/// <summary> /// Insert an object into the game object table. /// </summary> /// <param name="Obj">Supplies the object to insert.</param> public void AddGameObject(GameObject Obj) { if (GameObjectTable.ContainsKey(Obj.ObjectId)) { GameObjectTable[Obj.ObjectId] = Obj; } else { GameObjectTable.Add(Obj.ObjectId, Obj); } }
/// <summary> /// Remove an object from the game object table. /// </summary> /// <param name="Obj">Supplies the object to remove.</param> public void RemoveGameObject(GameObject Obj) { GameObjectTable.Remove(Obj.ObjectId); ObjectsToDelete.Add(Obj); }
/// <summary> /// Insert an object into the game object table. /// </summary> /// <param name="Obj">Supplies the object to insert.</param> public void AddGameObject(GameObject Obj) { GameObjectTable.Add(Obj.ObjectId, Obj); }