Inheritance: Octgn.Server.IClientCalls
Ejemplo n.º 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);
 }
Ejemplo n.º 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);
            _binParser = new BinaryParser(this);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 4
0
 internal BinFormatter(Broadcaster bcast, Handler handler) : base(handler)
 {
     this.bcast = bcast;
 }
Ejemplo n.º 5
0
			internal BinFormatter(Broadcaster bcast, Handler handler) : base(handler)
			{ this.bcast = bcast; }
Ejemplo n.º 6
0
 internal XmlFormatter(Broadcaster bcast, Handler handler)
     : base(handler)
 {
     _bcast = bcast;
 }