From: AeonLucid Date: Fri, 16 Oct 2020 22:31:10 +0000 (+0200) Subject: Recorder start X-Git-Tag: v1.2.2~96^2~78 X-Git-Url: https://git.deb.at/?a=commitdiff_plain;h=00a9e2fde73609438d026a947a725b1e0b035dfb;p=rhonda%2Fimpostor.git Recorder start --- diff --git a/src/Impostor.Server/Data/DebugConfig.cs b/src/Impostor.Server/Data/DebugConfig.cs new file mode 100644 index 0000000..b0f942f --- /dev/null +++ b/src/Impostor.Server/Data/DebugConfig.cs @@ -0,0 +1,9 @@ +namespace Impostor.Server.Data +{ + public class DebugConfig + { + public const string Section = "Debug"; + + public bool EnableGameRecorder { get; set; } + } +} \ No newline at end of file diff --git a/src/Impostor.Server/Program.cs b/src/Impostor.Server/Program.cs index 73888ad..31433b2 100644 --- a/src/Impostor.Server/Program.cs +++ b/src/Impostor.Server/Program.cs @@ -69,6 +69,9 @@ namespace Impostor.Server .GetSection(ServerRedirectorConfig.Section) .Get() ?? new ServerRedirectorConfig(); +#if DEBUG + services.Configure(host.Configuration.GetSection(DebugConfig.Section)); +#endif services.Configure(host.Configuration.GetSection(ServerConfig.Section)); services.Configure(host.Configuration.GetSection(ServerRedirectorConfig.Section)); diff --git a/src/Impostor.Server/Recorder/GameRecorder.cs b/src/Impostor.Server/Recorder/GameRecorder.cs new file mode 100644 index 0000000..785e026 --- /dev/null +++ b/src/Impostor.Server/Recorder/GameRecorder.cs @@ -0,0 +1,7 @@ +namespace Impostor.Server.Recorder +{ + public class GameRecorder + { + + } +} \ No newline at end of file diff --git a/src/Impostor.Server/config.full.json b/src/Impostor.Server/config.full.json index d64bd7f..d13e17b 100644 --- a/src/Impostor.Server/config.full.json +++ b/src/Impostor.Server/config.full.json @@ -18,5 +18,8 @@ "Port": 22024 } ] + }, + "Debug": { + "EnableGameRecorder": true } } \ No newline at end of file