コード例 #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]]);
     }
 }