Beispiel #1
0
 public void Set(string key, string value)
 {
     for (int i = 0; i < count; i++)
     {
         if (items[i] == null)
         {
             continue;
         }
         if (Game.StringEquals(items[i].key, key))
         {
             items[i].value = value;
             return;
         }
     }
     for (int i = 0; i < count; i++)
     {
         if (items[i] == null)
         {
             items[i]       = new KeyValueStringString();
             items[i].key   = key;
             items[i].value = value;
             return;
         }
     }
 }
 public void Set(string key, string value)
 {
     for (int i = 0; i < count; i++)
     {
         if (items[i] == null)
         {
             continue;
         }
         if (Game.StringEquals(items[i].key, key))
         {
             items[i].value = value;
             return;
         }
     }
     for (int i = 0; i < count; i++)
     {
         if (items[i] == null)
         {
             items[i] = new KeyValueStringString();
             items[i].key = key;
             items[i].value = value;
             return;
         }
     }
 }
Beispiel #3
0
 public void Start(int count_)
 {
     items = new KeyValueStringString[count_];
     count = count_;
 }
Beispiel #4
0
 public void Start(int size_)
 {
     items = new KeyValueStringString[size_];
     size  = size_;
 }