Inheritance: Octgn.Server.IClientCalls
示例#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 项目: haplo63/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);
            _binParser = new BinaryParser(this);
        }
示例#3
0
        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);
        }
示例#4
0
 internal BinFormatter(Broadcaster bcast, Handler handler) : base(handler)
 {
     this.bcast = bcast;
 }
示例#5
0
			internal BinFormatter(Broadcaster bcast, Handler handler) : base(handler)
			{ this.bcast = bcast; }
示例#6
0
 internal XmlFormatter(Broadcaster bcast, Handler handler)
     : base(handler)
 {
     _bcast = bcast;
 }