internal Player() { spamChecker = new SpamChecker(this); SessionID = Interlocked.Increment(ref sessionCounter) & SessionIDMask; for (int b = 0; b < BlockBindings.Length; b++) { BlockBindings[b] = (BlockID)b; } }
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); } }
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; } }
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; } }