Source setup

This commit is contained in:
Edward R. Gonzalez 2024-04-12 12:42:41 -04:00
parent f4613fea2a
commit 665ef9ef16
13 changed files with 179 additions and 0 deletions

5
.gitignore vendored
View File

@ -9,3 +9,8 @@ Project/Saved/Config/WindowsEditor
Project/Saved/Config/WorldState Project/Saved/Config/WorldState
Project/Saved/AutoScreenshot.png Project/Saved/AutoScreenshot.png
Project/Platforms Project/Platforms
Project/.vs
Project/.vsconfig
*.sln
*.target
*.modules

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,15 @@
using BuildSettingsVersion = UnrealBuildTool.BuildSettingsVersion;
using TargetInfo = UnrealBuildTool.TargetInfo;
using TargetRules = UnrealBuildTool.TargetRules;
using TargetType = UnrealBuildTool.TargetType;
public class GasaTarget : TargetRules
{
public GasaTarget(TargetInfo Target) : base(Target)
{
Type = TargetType.Game;
DefaultBuildSettings = BuildSettingsVersion.Latest;
ExtraModuleNames.Add("Gasa");
}
}

View 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");
}
}

View File

@ -0,0 +1,13 @@
#include "GasaModule.h"
IMPLEMENT_PRIMARY_GAME_MODULE(FGasaModule, Gasa, Gasa);
void FGasaModule::StartupModule()
{
}
void FGasaModule::ShutdownModule()
{
}

View 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;
};

View File

@ -0,0 +1,17 @@
using BuildSettingsVersion = UnrealBuildTool.BuildSettingsVersion;
using TargetInfo = UnrealBuildTool.TargetInfo;
using TargetRules = UnrealBuildTool.TargetRules;
using TargetType = UnrealBuildTool.TargetType;
public class GasaEditorTarget : TargetRules
{
public GasaEditorTarget(TargetInfo Target) : base(Target)
{
Type = TargetType.Editor;
DefaultBuildSettings = BuildSettingsVersion.Latest;
ExtraModuleNames.Add("Gasa");
ExtraModuleNames.Add("GasaEditor");
}
}

View File

@ -0,0 +1,19 @@
using ModuleRules = UnrealBuildTool.ModuleRules;
using ReadOnlyTargetRules = UnrealBuildTool.ReadOnlyTargetRules;
public class GasaEditor : ModuleRules
{
public GasaEditor(ReadOnlyTargetRules Target) : base(Target)
{
#region Engine
PrivateIncludePathModuleNames.AddRange(new string[] {
"Core",
});
PrivateDependencyModuleNames.AddRange(new string[] {
"Core",
});
#endregion Engine
PublicIncludePathModuleNames.Add("Gasa");
}
}

View File

@ -0,0 +1,14 @@
#include "GasaEditorModule.h"
IMPLEMENT_PRIMARY_GAME_MODULE(FGasaEditorModule, GasaEditor, GasaEditor);
void FGasaEditorModule::StartupModule()
{
}
void FGasaEditorModule::ShutdownModule()
{
}

View File

@ -0,0 +1,19 @@
#pragma once
#include "Modules/ModuleInterface.h"
class GASAEDITOR_API FGasaEditorModule : public IModuleInterface
{
public:
static bool IsAvailable() {
return FModuleManager::Get().IsModuleLoaded("GasaEditor");
}
static FGasaEditorModule& Get() {
return FModuleManager::LoadModuleChecked<FGasaEditorModule>("GasaEditor");
}
protected:
void StartupModule() override;
void ShutdownModule() override;
};