Esempio n. 1
0
 public bool HasObject <T>(uint objectId)
 {
     if (ObjectLookup.ContainsKey(typeof(T)))
     {
         return(ObjectLookup[typeof(T)].ContainsKey(objectId));
     }
     return(false);
 }
Esempio n. 2
0
 public T GetObject <T>(uint objectId) where T : ToffeeObject
 {
     if (ObjectLookup.ContainsKey(typeof(T)))
     {
         if (ObjectLookup[typeof(T)].ContainsKey(objectId))
         {
             return((T)ObjectLookup[typeof(T)][objectId]);
         }
     }
     return(null);
 }