--- /dev/null
+namespace Impostor.Server.Data
+{
+ public class DebugConfig
+ {
+ public const string Section = "Debug";
+
+ public bool EnableGameRecorder { get; set; }
+ }
+}
\ No newline at end of file
.GetSection(ServerRedirectorConfig.Section)
.Get<ServerRedirectorConfig>() ?? new ServerRedirectorConfig();
+#if DEBUG
+ services.Configure<DebugConfig>(host.Configuration.GetSection(DebugConfig.Section));
+#endif
services.Configure<ServerConfig>(host.Configuration.GetSection(ServerConfig.Section));
services.Configure<ServerRedirectorConfig>(host.Configuration.GetSection(ServerRedirectorConfig.Section));
--- /dev/null
+namespace Impostor.Server.Recorder
+{
+ public class GameRecorder
+ {
+
+ }
+}
\ No newline at end of file
"Port": 22024
}
]
+ },
+ "Debug": {
+ "EnableGameRecorder": true
}
}
\ No newline at end of file