예제 #1
0
 bool tryResolveName(jmpHash hash, out string name)
 {
     name = null;
     if (mResolver == null)
     {
         return(false);
     }
     return(mResolver(hash, out name));
 }
예제 #2
0
 public string this[jmpHash hash] {
     get {
         string name;
         if (!mNames.TryGetValue(hash, out name))
         {
             return(null);
         }
         return(name);
     }
 }
예제 #3
0
 public int this[jmpHash hash] {
     get {
         for (var i = 0; i < mFields.Length; ++i)
         {
             if (mFields[i].hash == hash)
             {
                 return(i);
             }
         }
         return(-1);
     }
 }
예제 #4
0
 public jmpValue this[int index, jmpHash hash] {
     get {
         return(this[index, this[hash]]);
     }
 }