void ApplyTo(CSpace& c_space, CDirectionalLEDEntity& c_entity) {
    /* Add entity to space - this ensures that the directional LED entity
     * gets an id before being added to the directional LED medium */
    c_space.AddEntity(c_entity);
    /* Enable the directional LED entity, if it's enabled - this ensures that
     * the entity gets added to the directional LED medium if it's enabled */
    c_entity.SetEnabled(c_entity.IsEnabled());
 }
Esempio n. 2
0
 void ApplyTo(CSpace& c_space, CLEDEntity& c_entity) {
    c_space.AddEntity(c_entity);
    if(c_space.IsUsingSpaceHash()) {
       c_space.GetLEDEntitiesSpaceHash().AddElement(c_entity);
    }
 }