//Adds an Entity to the MultiSpatialMap public void Add(Entity entity) { //add Entity to the SpatialMap Entities.Add(entity, entity.Position); // link the entity moved event to a new handler entity.Moved += OnEntityMoved; }
public void Add(Entity entity) { Entities.Add(entity, entity.Position); entity.Moved += OnEntityMoved; }