public void AddObject(PowerObject obj) { if (objects.ContainsKey(obj.GetInstanceID()) == false) { objects.Add(obj.GetInstanceID(), obj); } }
public void RemoveObject(PowerObject obj) { objects.Remove(obj.GetInstanceID()); }