#include <CeresEngine/Entity/EntityID.hpp>
◆ allocate() [1/2]
| EntityID CeresEngine::EntityIDAllocator::allocate |
( |
| ) |
|
|
noexcept |
Allocates a new entity ID from the allocator.
- Returns
- The newly allocated entity ID.
◆ allocate() [2/2]
Allocates n new entity IDs.
- Parameters
-
| n | The number of entity IDs to allocate |
- Returns
- A vector of the
n allocated entity IDs
◆ getLatestVersion()
Gets the latest version of a given entity index.
◆ release()
| void CeresEngine::EntityIDAllocator::release |
( |
EntityID |
entityID | ) |
|
|
noexcept |
Releases a previously allocated entity ID.
- Parameters
-
| entityID | The entity ID to be released. |
◆ mEntityVersions
A map of entity versions, indexed by their entity indexes.
◆ mFreeList
A list of free entities that are ready to be reused.
◆ mNextEntityIndex
| EntityIndex CeresEngine::EntityIDAllocator::mNextEntityIndex = 0 |
|
private |
The EntityIndex for the next entity allocation if the freeList is empty.
The documentation for this class was generated from the following file:
- /Users/Rogiel/Developer/CeresEngine/Engine/Sources/CeresEngine/Entity/EntityID.hpp