public bool HasObject <T>(uint objectId) { if (ObjectLookup.ContainsKey(typeof(T))) { return(ObjectLookup[typeof(T)].ContainsKey(objectId)); } return(false); }
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); }