dotnet7 compat, DLSS, network manager rewrite and other fixes

This commit is contained in:
2023-01-27 16:24:11 +02:00
parent 36c09efac0
commit 51dcad2cc4
54 changed files with 767 additions and 821 deletions

View File

@@ -1,8 +1,11 @@
//#define COMPILE_WITH_DLSS
using Flax.Build;
using Flax.Build.NativeCpp;
using System;
using System.Collections.Generic;
using System.Linq;
using System.IO;
public class Game : GameModule
{
@@ -13,7 +16,7 @@ public class Game : GameModule
// C#-only scripting
BuildCSharp = true;
BuildNativeCode = true;
//BuildNativeCode = true;
}
/// <inheritdoc />
@@ -25,7 +28,14 @@ public class Game : GameModule
base.Setup(options);
options.PublicDependencies.Add("FidelityFXFSR");
options.PrivateDependencies.Add("FidelityFXFSR");
//options.ScriptingAPI.FileReferences.Add(Path.Combine(Globals.EngineRoot, "Source", "Platforms", "DotNet", "Newtonsoft.Json.dll"));
#if COMPILE_WITH_DLSS
DLSS.ConditionalImport(options, options.PrivateDependencies);
options.PrivateDefinitions.Add("COMPILE_WITH_DLSS");
#endif
// Here you can modify the build options for your game module
// To reference another module use: options.PublicDependencies.Add("Audio");
// To add C++ define use: options.PublicDefinitions.Add("COMPILE_WITH_FLAX");