Example #1
0
 internal void Add(int k, ArenaConfigurationProto arenaConfigurationProto)
 {
     if (!configurations.ContainsKey(k))
     {
         configurations.Add(k, new ArenaConfiguration(arenaConfigurationProto));
     }
     else
     {
         if (arenaConfigurationProto.ToString() != configurations[k].protoString)
         {
             configurations[k] = new ArenaConfiguration(arenaConfigurationProto);
         }
     }
 }
Example #2
0
 public void Add(int k, ArenaParametersProto arena)
 {
     if (k < numberOfArenas)
     {
         if (!configurations.ContainsKey(k))
         {
             configurations.Add(k, new ArenaConfiguration(arena));
         }
         else
         {
             if (arena.ToString() != configurations[k].protoString)
             {
                 configurations[k] = new ArenaConfiguration(arena);
             }
         }
     }
 }