networking basics

This commit is contained in:
2022-05-09 18:08:56 +03:00
parent c4f5d4d4d2
commit 3b8a226fdc
17 changed files with 466 additions and 783 deletions

View File

@@ -29,11 +29,14 @@ public class GameTarget : GameProjectTarget
public override string GetOutputFilePath(BuildOptions options, TargetOutputType? outputType = null)
{
// For IDE builds only, these do not work during cooking (fails to update cooked files in multiple ways)
if (options.Configuration == TargetConfiguration.Development)
options.OutputFolder = @"C:\dev\GoakeFlax\Output\WindowsDevelopment";
else if (options.Configuration == TargetConfiguration.Release)
options.OutputFolder = @"C:\dev\GoakeFlax\Output\WindowsRelease";
if (!Environment.CommandLine.Contains("Cooker")) // Hacky way to detect if this is run during cooking
{
// Output files directly to cooked folders (used only during development)
if (options.Configuration == TargetConfiguration.Development)
options.OutputFolder = @"C:\dev\GoakeFlax\Output\WindowsDevelopment";
else if (options.Configuration == TargetConfiguration.Release)
options.OutputFolder = @"C:\dev\GoakeFlax\Output\WindowsRelease";
}
return base.GetOutputFilePath(options, outputType);
}