Source setup
This commit is contained in:
		
							
								
								
									
										58
									
								
								Project/Source/Gasa/Gasa.Build.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										58
									
								
								Project/Source/Gasa/Gasa.Build.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,58 @@ | ||||
| using System; | ||||
| using System.Collections.Generic; | ||||
|  | ||||
| using ModuleRules = UnrealBuildTool.ModuleRules; | ||||
| using ReadOnlyTargetRules = UnrealBuildTool.ReadOnlyTargetRules; | ||||
| using TargetRules = UnrealBuildTool.TargetRules; | ||||
| using UnrealTargetConfiguration = UnrealBuildTool.UnrealTargetConfiguration; | ||||
|  | ||||
| public class Gasa : ModuleRules | ||||
| { | ||||
|     public Gasa(ReadOnlyTargetRules Target) : base(Target) | ||||
|     { | ||||
|     #region Engine | ||||
|         PrivateIncludePathModuleNames.AddRange(new string[] { | ||||
|             "Core", | ||||
|         }); | ||||
|         PrivateDependencyModuleNames.AddRange(new string[] { | ||||
|             "Core", | ||||
|              | ||||
|             "AIModule", | ||||
|             "CoreUObject",  | ||||
|             "Engine",  | ||||
|             "EnhancedInput", | ||||
|             "GameplayAbilities", | ||||
|             "GameplayTags", | ||||
|             "GameplayTasks", | ||||
|             "InputCore",  | ||||
|             "NetCore", | ||||
|             "Niagara", | ||||
|         }); | ||||
|     #endregion Engine | ||||
|      | ||||
|     #region Plugins | ||||
| 		if (Target.Configuration != UnrealTargetConfiguration.Shipping && Target.Type != TargetRules.TargetType.Server) | ||||
|         { | ||||
| 	        PrivateIncludePathModuleNames.AddRange( new string[] | ||||
| 	        { | ||||
| 		        "CogCommon", | ||||
| 	        }); | ||||
|             PrivateDependencyModuleNames.AddRange(new string[] | ||||
|             { | ||||
| 	            // "UE_ImGui", | ||||
| 	            "CogCommon", | ||||
|                 "CogAbility", | ||||
|                 "CogAI", | ||||
|                 "CogAll", | ||||
|                 "CogDebug", | ||||
|                 "CogEngine", | ||||
|                 "CogImgui", | ||||
|                 "CogInput", | ||||
|                 "CogWindow", | ||||
|             }); | ||||
|         } | ||||
|     #endregion Plugins | ||||
|      | ||||
| 		PublicIncludePathModuleNames.Add("Gasa"); | ||||
|     } | ||||
| } | ||||
							
								
								
									
										13
									
								
								Project/Source/Gasa/GasaModule.cpp
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								Project/Source/Gasa/GasaModule.cpp
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,13 @@ | ||||
| #include "GasaModule.h" | ||||
|  | ||||
| IMPLEMENT_PRIMARY_GAME_MODULE(FGasaModule, Gasa, Gasa); | ||||
|  | ||||
| void FGasaModule::StartupModule() | ||||
| { | ||||
|  | ||||
| } | ||||
|  | ||||
| void FGasaModule::ShutdownModule() | ||||
| { | ||||
|  | ||||
| } | ||||
							
								
								
									
										19
									
								
								Project/Source/Gasa/GasaModule.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								Project/Source/Gasa/GasaModule.h
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,19 @@ | ||||
| #pragma once | ||||
|  | ||||
| #include "Modules/ModuleInterface.h" | ||||
|  | ||||
| class GASA_API FGasaModule : public IModuleInterface | ||||
| { | ||||
| public: | ||||
| 	static bool IsAvailable() { | ||||
| 		return FModuleManager::Get().IsModuleLoaded("Gasa"); | ||||
| 	} | ||||
| 	 | ||||
| 	static FGasaModule& Get() 	{ | ||||
| 		return FModuleManager::LoadModuleChecked<FGasaModule>("Gasa"); | ||||
| 	} | ||||
| 	 | ||||
| protected: | ||||
| 	void StartupModule() override; | ||||
| 	void ShutdownModule() override; | ||||
| }; | ||||
		Reference in New Issue
	
	Block a user