UnityEngine.Networking.NetworkCRC.ValidateInternal C# (CSharp) Method

ValidateInternal() private method

private ValidateInternal ( CRCMessageEntry remoteScripts, int numChannels ) : bool
remoteScripts UnityEngine.Networking.NetworkSystem.CRCMessageEntry
numChannels int
return bool
        private bool ValidateInternal(CRCMessageEntry[] remoteScripts, int numChannels)
        {
            if (this.m_Scripts.Count != remoteScripts.Length)
            {
                if (LogFilter.logWarn)
                {
                    Debug.LogWarning("Network configuration mismatch detected. The number of networked scripts on the client does not match the number of networked scripts on the server. This could be caused by lazy loading of scripts on the client. This warning can be disabled by the checkbox in NetworkManager Script CRC Check.");
                }
                this.Dump(remoteScripts);
                return false;
            }
            for (int i = 0; i < remoteScripts.Length; i++)
            {
                CRCMessageEntry entry = remoteScripts[i];
                if (LogFilter.logDebug)
                {
                    Debug.Log(string.Concat(new object[] { "Script: ", entry.name, " Channel: ", entry.channel }));
                }
                if (this.m_Scripts.ContainsKey(entry.name))
                {
                    int num2 = this.m_Scripts[entry.name];
                    if (num2 != entry.channel)
                    {
                        if (LogFilter.logError)
                        {
                            Debug.LogError(string.Concat(new object[] { "HLAPI CRC Channel Mismatch. Script: ", entry.name, " LocalChannel: ", num2, " RemoteChannel: ", entry.channel }));
                        }
                        this.Dump(remoteScripts);
                        return false;
                    }
                }
                if (entry.channel >= numChannels)
                {
                    if (LogFilter.logError)
                    {
                        Debug.LogError(string.Concat(new object[] { "HLAPI CRC channel out of range! Script: ", entry.name, " Channel: ", entry.channel }));
                    }
                    this.Dump(remoteScripts);
                    return false;
                }
            }
            return true;
        }