Exemple #1
0
 // 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);
 }
Exemple #2
0
        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);
            _xmlParser = new XmlParser(this);
            _binParser = new BinaryParser(this);
        }