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); }
void ApplyTo(CSpace& c_space, CLEDEntity& c_entity) { if(c_space.IsUsingSpaceHash()) { c_space.GetLEDEntitiesSpaceHash().RemoveElement(c_entity); } c_space.RemoveEntity(c_entity); }