Ejemplo n.º 1
0
 internal void Set(string name, byte[] value)
 {
     for (int i = 0; i < itemsCount; i++)
     {
         if (items[i] == null)
         {
             continue;
         }
         if (Game.StringEquals(items[i].name, name))
         {
             items[i].data = value;
             return;
         }
     }
     for (int i = 0; i < itemsCount; i++)
     {
         if (items[i] == null)
         {
             items[i]      = new StringByteArray();
             items[i].name = name;
             items[i].data = value;
             return;
         }
     }
 }
Ejemplo n.º 2
0
 internal void Set(string name, byte[] value)
 {
     for (int i = 0; i < itemsCount; i++)
     {
         if (items[i] == null) { continue; }
         if (Game.StringEquals(items[i].name, name))
         {
             items[i].data = value;
             return;
         }
     }
     for (int i = 0; i < itemsCount; i++)
     {
         if (items[i] == null)
         {
             items[i] = new StringByteArray();
             items[i].name = name;
             items[i].data = value;
             return;
         }
     }
 }
Ejemplo n.º 3
0
 public DictionaryStringByteArray()
 {
     items      = new StringByteArray[1024];
     itemsCount = 1024;
 }