// Removes an Entity from the MultiSpatialMap public void Remove(Entity entity) { // remove from SpatialMap Entities.Remove(entity); // unsubscribes the entity entity.Moved -= OnEntityMoved; }
// Removes an Entity ffrom the MultiSpatialMap. public void Remove(Entity entity) { Entities.Remove(entity); // Link up the entity's Moved event to a new handler. entity.Moved -= OnEntityMoved; }
// Removes an Entity from the MultiSpatialMap public void Remove(Entity entity) { // remove from SpatialMap Entities.Remove(entity); // Link up the entity's Moved event to a new handler entity.Moved -= OnEntityMoved; }
// Removes an Entity from the MultiSpatialMap and SadConsole's map public void Remove(Entity entity) { // remove from SpatialMap Entities.Remove(entity); // now remove the entity from the renderer GameLoop.UIManager.RemoveEntity(entity); entity.Moved -= OnEntityMove; }
public void Remove(Entity entity) { Entities.Remove(entity); entity.Moved -= OnEntityMoved; }