예제 #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);
 }
예제 #2
0
파일: Handler.cs 프로젝트: 0M3G4/OCTGN
        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);
        }