Ejemplo n.º 1
0
 //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;
 }
Ejemplo n.º 2
0
 public void Add(Entity entity)
 {
     Entities.Add(entity, entity.Position);
     entity.Moved += OnEntityMoved;
 }