]> git.deb.at Git - rhonda/impostor.git/commitdiff
Recorder start
authorAeonLucid <aeonlucid@gmail.com>
Fri, 16 Oct 2020 22:31:10 +0000 (00:31 +0200)
committerAeonLucid <aeonlucid@gmail.com>
Sun, 18 Oct 2020 19:17:41 +0000 (21:17 +0200)
src/Impostor.Server/Data/DebugConfig.cs [new file with mode: 0644]
src/Impostor.Server/Program.cs
src/Impostor.Server/Recorder/GameRecorder.cs [new file with mode: 0644]
src/Impostor.Server/config.full.json

diff --git a/src/Impostor.Server/Data/DebugConfig.cs b/src/Impostor.Server/Data/DebugConfig.cs
new file mode 100644 (file)
index 0000000..b0f942f
--- /dev/null
@@ -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
index 73888adcc1930176c5ec05b3402c06609f4acd6a..31433b2af4b63874c8043e1c02743ce4ca777c01 100644 (file)
@@ -69,6 +69,9 @@ namespace Impostor.Server
                         .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));
 
diff --git a/src/Impostor.Server/Recorder/GameRecorder.cs b/src/Impostor.Server/Recorder/GameRecorder.cs
new file mode 100644 (file)
index 0000000..785e026
--- /dev/null
@@ -0,0 +1,7 @@
+namespace Impostor.Server.Recorder
+{
+    public class GameRecorder
+    {
+        
+    }
+}
\ No newline at end of file
index d64bd7fb69f34e2d50e48c70ef8a1c0bb39b1bbd..d13e17b9c999356935a01a2ece38d157410bc9bc 100644 (file)
@@ -18,5 +18,8 @@
         "Port": 22024
       }
     ]
+  },
+  "Debug": {
+    "EnableGameRecorder": true
   }
 }
\ No newline at end of file