接入 UE 机甲搜打撤原型与性能面板

This commit is contained in:
2026-11-13 21:35:01 +08:00
parent 55262351ab
commit 766b5fa390
128 changed files with 9475 additions and 0 deletions
@@ -0,0 +1,17 @@
using System.IO;
using UnrealBuildTool;
public class GameFrameworkExternal : ModuleRules
{
public GameFrameworkExternal(ReadOnlyTargetRules Target) : base(Target)
{
Type = ModuleType.External;
string Root = Path.GetFullPath(Path.Combine(ModuleDirectory, "../.."));
string Library = Path.Combine(Root, "Builds/gameFramework/vs2022-x64/Release/gameFramework.lib");
if (Target.Platform != UnrealTargetPlatform.Win64 || Target.bDebugBuildsActuallyUseDebugCRT)
throw new BuildException("gameFramework host requires Win64 /MD Release ABI.");
if (!File.Exists(Library)) throw new BuildException("Build the independent core first: Tools/Framework/Build.ps1");
PublicIncludePaths.Add(Path.Combine(Root, "gameFramework/include"));
PublicAdditionalLibraries.Add(Library);
ExternalDependencies.Add(Library);
}
}