public void ResetReq() { _turnNumber = 0; _turnStopPlayers.Clear(); _phaseStopPlayers.Clear(); _broadcaster.Reset(State.Instance.GetPlayer(_sender).Id); }
/// <summary> /// Reset the game state and broadcast the reset to other players /// </summary> /// <param name="playerId">The player initiating the reset</param> public void Reset(byte playerId) { State.TurnNumber = 0; State.PhaseNumber = 0; State.TurnStopPlayers.Clear(); State.PhaseStops.Clear(); Broadcaster.Reset(playerId); }
public void ResetReq() { _turnNumber = 0; _turnStopPlayers.Clear(); _broadcaster.Reset(_clients[_sender].Id); }