UnityEngine.Networking.NetworkServer.CheckPlayerControllerIdForConnection C# (CSharp) Method

CheckPlayerControllerIdForConnection() private static method

private static CheckPlayerControllerIdForConnection ( NetworkConnection conn, short playerControllerId ) : bool
conn NetworkConnection
playerControllerId short
return bool
        private static bool CheckPlayerControllerIdForConnection(NetworkConnection conn, short playerControllerId)
        {
            if (playerControllerId < 0)
            {
                if (LogFilter.logError)
                {
                    Debug.LogError("AddPlayer: playerControllerId of " + playerControllerId + " is negative");
                }
                return false;
            }
            if (playerControllerId > 0x20)
            {
                if (LogFilter.logError)
                {
                    Debug.Log(string.Concat(new object[] { "AddPlayer: playerControllerId of ", playerControllerId, " is too high. max is ", 0x20 }));
                }
                return false;
            }
            if ((playerControllerId > 0x10) && LogFilter.logWarn)
            {
                Debug.LogWarning("AddPlayer: playerControllerId of " + playerControllerId + " is unusually high");
            }
            return true;
        }