record demos automatically

This commit is contained in:
2022-06-28 19:40:44 +03:00
parent 1efcfabe35
commit 368a48b27e

View File

@@ -171,7 +171,8 @@ namespace Game
else if (playerId == NetworkManager.LocalPlayerClientId)
{
Console.Print("local player: " + playerId.ToString());
input = new PlayerInputLocal(); // TODO: support recording
string demoPath = System.IO.Path.Combine(AssetManager.DemoPath, $"{DateTimeOffset.Now.ToUnixTimeSeconds()}.gdem");
input = new PlayerInputLocal(demoPath); // TODO: support recording
PlayerId = playerId;
}
else