コード例 #1
0
ファイル: Player.cs プロジェクト: 8cta/MCGalaxy
 internal Player()
 {
     spamChecker = new SpamChecker(this);
     SessionID   = Interlocked.Increment(ref sessionCounter) & SessionIDMask;
     for (int b = 0; b < BlockBindings.Length; b++)
     {
         BlockBindings[b] = (BlockID)b;
     }
 }
コード例 #2
0
ファイル: Player.cs プロジェクト: ProtheanGod/KingMC
 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);
     }
 }
コード例 #3
0
ファイル: Player.cs プロジェクト: DireClanMC/MCGalaxy
        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;
            }
        }
コード例 #4
0
ファイル: Player.cs プロジェクト: UnknownShadow200/MCGalaxy
        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;
            }
        }