private void ProcessData() { for (int i = 0; i < _tokenCount; i += 2) { if (_functionsById.ContainsKey(_tokens[i])) { NetworkFunction function = _functionsById[_tokens[i]]; function.ProcessNetworkData(_tokens[i], _tokens[i + 1]); } else { ConfigManager.LogManager.LogWarning("UDP interface received data for missing function. (Key=\"" + _tokens[i] + "\")"); } } }
protected void AddFunction(NetworkFunction function, bool debug) { function.IsDebugMode = debug; Functions.Add(function); }
protected void AddFunction(NetworkFunction function) { Functions.Add(function); }