예제 #1
0
 // Removes an Entity from the MultiSpatialMap
 public void Remove(Entity entity)
 {
     // remove from SpatialMap
     Entities.Remove(entity);
     // unsubscribes the entity
     entity.Moved -= OnEntityMoved;
 }
예제 #2
0
        // 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;
        }
예제 #3
0
파일: Map.cs 프로젝트: bgudna/urukx
        // 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;
        }
예제 #4
0
        // 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;
        }
예제 #5
0
 public void Remove(Entity entity)
 {
     Entities.Remove(entity);
     entity.Moved -= OnEntityMoved;
 }