|
@@ -266,15 +266,6 @@ public:
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- /**
|
|
|
|
|
- * @brief Reserves enough space to store `count` pools.
|
|
|
|
|
- * @param count Number of pools to reserve space for.
|
|
|
|
|
- */
|
|
|
|
|
- [[deprecated("No longer supported")]]
|
|
|
|
|
- void reserve_pools(const size_t count) {
|
|
|
|
|
- pools.reserve(count);
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
/**
|
|
/**
|
|
|
* @brief Returns the capacity of the pool for the given component.
|
|
* @brief Returns the capacity of the pool for the given component.
|
|
|
* @tparam Component Type of component in which one is interested.
|
|
* @tparam Component Type of component in which one is interested.
|
|
@@ -353,12 +344,6 @@ public:
|
|
|
return free_list;
|
|
return free_list;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- /*! @copydoc released */
|
|
|
|
|
- [[deprecated("Use ::released instead")]]
|
|
|
|
|
- [[nodiscard]] entity_type destroyed() const ENTT_NOEXCEPT {
|
|
|
|
|
- return released();
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
/**
|
|
/**
|
|
|
* @brief Checks if an entity identifier refers to a valid entity.
|
|
* @brief Checks if an entity identifier refers to a valid entity.
|
|
|
* @param entity An entity identifier, either valid or not.
|
|
* @param entity An entity identifier, either valid or not.
|
|
@@ -833,36 +818,6 @@ public:
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- /*! @copydoc remove */
|
|
|
|
|
- template<typename... Component>
|
|
|
|
|
- [[deprecated("Use ::remove instead")]]
|
|
|
|
|
- size_type remove_if_exists(const entity_type entity) {
|
|
|
|
|
- return remove<Component...>(entity);
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- /**
|
|
|
|
|
- * @brief Removes all the components from an entity and makes it orphaned.
|
|
|
|
|
- *
|
|
|
|
|
- * @warning
|
|
|
|
|
- * In case there are listeners that observe the destruction of components
|
|
|
|
|
- * and assign other components to the entity in their bodies, the result of
|
|
|
|
|
- * invoking this function may not be as expected. In the worst case, it
|
|
|
|
|
- * could lead to undefined behavior.
|
|
|
|
|
- *
|
|
|
|
|
- * @warning
|
|
|
|
|
- * Attempting to use an invalid entity results in undefined behavior.
|
|
|
|
|
- *
|
|
|
|
|
- * @param entity A valid entity identifier.
|
|
|
|
|
- */
|
|
|
|
|
- [[deprecated("Use ::destroy(entity)/::create(entity) instead")]]
|
|
|
|
|
- void remove_all(const entity_type entity) {
|
|
|
|
|
- ENTT_ASSERT(valid(entity), "Invalid entity");
|
|
|
|
|
-
|
|
|
|
|
- for(auto &&pdata: pools) {
|
|
|
|
|
- pdata.pool && pdata.pool->remove(entity, this);
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
/**
|
|
/**
|
|
|
* @brief Checks if an entity has all the given components.
|
|
* @brief Checks if an entity has all the given components.
|
|
|
*
|
|
*
|