public void ResetState() { this.blueTeam = null; this.redTeam = null; this.stateData = new StateData(); this.backEndData = new BackEndData(); this.pastIngameEvents = new List <DirtyEvent>(); Logging.Info("Game State reset"); }
public State(GameController controller) { pastIngameEvents = new List <DirtyEvent>(); this.stateData = null; this.backEndData = null; this.controller = controller; this.blueTeam = null; this.redTeam = null; this.lastGoldDifference = 0; this.lastGoldUpdate = 0; StateController.GameStop += (s, e) => { lastGoldDifference = 0; lastGoldUpdate = 0; }; }