HAxis sos
This commit is contained in:
		| @@ -0,0 +1,33 @@ | ||||
| // Copyright 1998-2014 Epic Games, Inc. All Rights Reserved. | ||||
| #pragma once | ||||
|  | ||||
| #include "ModuleManager.h" | ||||
| #include "IPolishBuildingsTool.h" | ||||
|  | ||||
|  | ||||
| /** | ||||
|  * Merge Actors module interface | ||||
|  */ | ||||
| class IPolishBuildingsModule : public IModuleInterface | ||||
| { | ||||
|  | ||||
| public: | ||||
|  | ||||
| 	/** | ||||
| 	 * Get reference to the Merge Actors module instance | ||||
| 	 */ | ||||
| 	static inline IPolishBuildingsModule& Get() | ||||
| 	{ | ||||
| 		return FModuleManager::LoadModuleChecked<IPolishBuildingsModule>("PolishBuildings"); | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * Register an IPolishBuildingsTool with the module, passing ownership to it | ||||
| 	 */ | ||||
| 	virtual bool RegisterPolishBuildingsTool(TUniquePtr<IPolishBuildingsTool> Tool) = 0; | ||||
|  | ||||
| 	/** | ||||
| 	 * Unregister an IPolishBuildingsTool with the module | ||||
| 	 */ | ||||
| 	virtual bool UnregisterPolishBuildingsTool(IPolishBuildingsTool* Tool) = 0; | ||||
| }; | ||||
							
								
								
									
										43
									
								
								Plugins/PolishBuildings/Source/Public/IPolishBuildingsTool.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										43
									
								
								Plugins/PolishBuildings/Source/Public/IPolishBuildingsTool.h
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,43 @@ | ||||
| // Copyright 1998-2014 Epic Games, Inc. All Rights Reserved. | ||||
| #pragma once | ||||
|  | ||||
| /** | ||||
| * Merge Actors tool interface | ||||
| */ | ||||
| class IPolishBuildingsTool | ||||
| { | ||||
|  | ||||
| public: | ||||
|  | ||||
| 	/** Virtual destructor */ | ||||
| 	virtual ~IPolishBuildingsTool() {} | ||||
|  | ||||
| 	/** | ||||
| 	 * Gets the widget instance associated with this tool | ||||
| 	 */ | ||||
| 	virtual TSharedRef<SWidget> GetWidget() = 0; | ||||
|  | ||||
| 	/** | ||||
| 	 * Get the name of the icon displayed in the Merge Actors toolbar | ||||
| 	 */ | ||||
| 	virtual FName GetIconName() const = 0; | ||||
|  | ||||
| 	/** | ||||
| 	 * Get Tooltip text displayed in the Merge Actors toolbar | ||||
| 	 */ | ||||
| 	virtual FText GetTooltipText() const = 0; | ||||
|  | ||||
| 	/** | ||||
| 	 * Get default name for the merged asset package | ||||
| 	 */ | ||||
| 	virtual FString GetDefaultPackageName() const = 0; | ||||
|  | ||||
| 	/** | ||||
| 	 * Perform merge operation | ||||
| 	 * | ||||
| 	 * @param	PackageName		Long package name of the asset to create | ||||
| 	 * @return	true if the merge succeeded | ||||
| 	 */ | ||||
| 	virtual bool RunMerge(const FString& PackageName) = 0; | ||||
|  | ||||
| }; | ||||
		Reference in New Issue
	
	Block a user