Extremely basic game ticker. (#126)

You can theoretically restart the round (resetting the map) now, but it breaks very badly if a client is connected due to various edge cases/race conditions.
This commit is contained in:
Pieter-Jan Briers
2018-11-22 10:37:58 +01:00
committed by GitHub
parent 744af3be3e
commit 574512f1bf
8 changed files with 345 additions and 65 deletions

View File

@@ -123,6 +123,11 @@ namespace Content.Client.GameObjects.Components.Storage
if(!spriteComp.Running)
return;
if (spriteComp.BaseRSI == null)
{
return;
}
var baseName = spriteComp.LayerGetState(0).Name;
var stateId = open ? $"{baseName}_open" : $"{baseName}_door";