예제 #1
0
 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] + "\")");
         }
     }
 }
예제 #2
0
 protected void AddFunction(NetworkFunction function, bool debug)
 {
     function.IsDebugMode = debug;
     Functions.Add(function);
 }
예제 #3
0
 protected void AddFunction(NetworkFunction function)
 {
     Functions.Add(function);
 }
예제 #4
0
 protected void AddFunction(NetworkFunction function, bool debug)
 {
     function.IsDebugMode = debug;
     Functions.Add(function);
 }
예제 #5
0
 protected void AddFunction(NetworkFunction function)
 {
     Functions.Add(function);
 }