public override void Restore() { base.Restore(); _gameStarted = _blob.GetBool("gameStarted", false); RedTeamScore = (int)_blob.GetLong("redTeamScore", 0L); BlueTeamScore = (int)_blob.GetLong("blueTeamScore", 0L); _variant = (uint)_blob.GetLong("variant"); _tileCenter = _blob.GetBlob("tileCenter").GetVector3D(); Component = Configuration.Components.Get <SoccerTotemComponentBuilder.SoccerTotemComponent>(); }
public override void Construct(Blob arguments, EntityUniverseFacade entityUniverseFacade) { base.Construct(arguments, entityUniverseFacade); _gameStarted = arguments.GetBool("gameStarted", false); RedTeamScore = (int)arguments.GetLong("redTeamScore", 0L); BlueTeamScore = (int)arguments.GetLong("blueTeamScore", 0L); _variant = (uint)arguments.GetLong("variant"); Component = Configuration.Components.Get <SoccerTotemComponentBuilder.SoccerTotemComponent>(); }