void ApplyTo(CSpace& c_space, CDirectionalLEDEntity& c_entity) {
    /* Disable the entity - this ensures that the entity is
     * removed from the directional LED medium */
    c_entity.Disable();
    /* Remove the directional LED entity from space */
    c_space.RemoveEntity(c_entity);
 }
Exemplo n.º 2
0
 void ApplyTo(CSpace& c_space, CLEDEntity& c_entity) {
    if(c_space.IsUsingSpaceHash()) {
       c_space.GetLEDEntitiesSpaceHash().RemoveElement(c_entity);
    }
    c_space.RemoveEntity(c_entity);
 }