public WorldObject this[WorldID key] { get { WorldObject obj; if (TryGetValue(key, out obj) == false) { return(null); } return(obj); } }
public WorldObject(WorldID dbID, bool addToWorld) { mWorldID = dbID; mAddToWorld = addToWorld; WorldID = WorldID.Dynamic(dbID.Type); if (mAddToWorld && Library.World.Objects[dbID] == null) { Library.World.Objects.Add(this); } }
public WorldObject(WorldID dbID) : this(dbID, false) { }
public bool Remove(WorldID key) { return(base.Remove(key.ID)); }
public bool ContainsKey(WorldID key) { return(base.ContainsKey(key.ID)); }
public void Add(WorldID key, WorldObject obj) { base.Add(key.ID, obj); }
public bool TryGetValue(WorldID key, out WorldObject obj) { return(base.TryGetValue(key.ID, out obj)); }
public WorldObjectUnit(WorldID dbID, bool addToWorld) : base(dbID, addToWorld) { }