Exemplo n.º 1
0
 internal Player()
 {
     spamChecker = new SpamChecker(this);
     SessionID   = Interlocked.Increment(ref sessionCounter) & SessionIDMask;
     for (int b = 0; b < BlockBindings.Length; b++)
     {
         BlockBindings[b] = (BlockID)b;
     }
 }
Exemplo n.º 2
0
 internal Player()
 {
     spamChecker = new SpamChecker(this);
     SessionID   = Interlocked.Increment(ref sessionCounter) & SessionIDMask;
     for (int i = 0; i < BlockBindings.Length; i++)
     {
         BlockBindings[i] = ExtBlock.FromRaw((byte)i);
     }
 }
Exemplo n.º 3
0
        internal Player(INetSocket socket)
        {
            Socket = socket;
            SetIP(Socket.IP);

            spamChecker = new SpamChecker(this);
            SessionID   = Interlocked.Increment(ref sessionCounter) & SessionIDMask;

            for (int b = 0; b < BlockBindings.Length; b++)
            {
                BlockBindings[b] = (BlockID)b;
            }
        }
Exemplo n.º 4
0
        public Player(INetSocket socket, IGameSession session)
        {
            Socket  = socket;
            Session = session;
            SetIP(Socket.IP);

            spamChecker = new SpamChecker(this);
            session.ID  = Interlocked.Increment(ref sessionCounter) & SESSION_ID_MASK;

            for (int b = 0; b < BlockBindings.Length; b++)
            {
                BlockBindings[b] = (BlockID)b;
            }
        }