Пример #1
0
 public static bool RemoveEntity(this Entity entity)
 {
     if (!EntityExists(entity))
     {
         return(false);
     }
     ApiProvider.RemoveEntityFromScene(entity);
     removed.Push(entity);                 //deallocate entity
     entities[entity.Index] = NULL_ENTITY; //invalidate components
     return(true);
 }