/// <summary> /// Removes an item from the world. Also takes care of physics removal. /// </summary> /// <param name="item">The item to remove</param> public void Remove(Item item) { Items.Remove(item); entityManager.RemoveEntity(item); physics.RemovePhysicsEntity(item.GetBox()); }
/// <summary> /// Adds an item to the item manager. Takes care of setting the item up for the physics engine and game environment /// </summary> /// <param name="item"></param> public void Add(Item item) { Items.Add(item); entityManager.AddEntity(item); physics.AddPhysicsEntity(item.GetBox()); }