// C'tor internal Handler(Guid gameId, Version gameVersion) { this.gameId = gameId; this.gameVersion = gameVersion; // Init fields broadcaster = new Broadcaster(clients, this); xmlParser = new XmlParser(this); binParser = new BinaryParser(this); }
private int _turnNumber; // Turn number, used to validate TurnStop requests #endregion Fields #region Constructors // C'tor internal Handler(Guid gameId, Version gameVersion) { GameStarted = false; _gameId = gameId; _gameVersion = gameVersion; // Init fields _broadcaster = new Broadcaster(_clients, this); _binParser = new BinaryParser(this); }
private int _turnNumber; // Turn number, used to validate TurnStop requests #endregion Fields #region Constructors // C'tor internal Handler() { GameStarted = false; _gameId = State.Instance.Engine.Game.GameId; _gameVersion = State.Instance.Engine.Game.GameVersion; _password = State.Instance.Engine.Game.Password; // Init fields _broadcaster = new Broadcaster(this); _binParser = new BinaryParser(this); }
internal BinFormatter(Broadcaster bcast, Handler handler) : base(handler) { this.bcast = bcast; }
internal XmlFormatter(Broadcaster bcast, Handler handler) : base(handler) { _bcast = bcast; }