Navigation
API > API/Runtime > API/Runtime/MassEntity
Inheritance Hierarchy
- IEntityStorageInterface
- FSingleThreadedEntityStorage
References
| Module | MassEntity |
| Header | /Engine/Source/Runtime/MassEntity/Public/MassEntityManagerStorage.h |
| Include | #include "MassEntityManagerStorage.h" |
Syntax
class FSingleThreadedEntityStorage : public UE::Mass::IEntityStorageInterface
Remarks
This storage backend should be used when the user of MassEntityManager can guarantee that all entity management will be done on a single thread.
Functions
| Type | Name | Description | |
|---|---|---|---|
| int32 | Acquire
(
const int32 Count, |
||
| void |
Overridden from IEntityStorageInterface
| Type | Name | Description | |
|---|---|---|---|
| int32 | Acquire
(
TArrayView< FMassEntityHandle > OutEntityHandles |
||
| FMassEntityHandle | AcquireOne () |
||
| int32 | Returns the number of entities that are free For debug purposes only. | ||
| int32 | ForceRelease
(
TConstArrayView< FMassEntityHandle > Handles |
Bypasses Serial Number Check Only use if caller has ensured serial number matches or for debug purposes | |
| int32 | ForceReleaseOne
(
FMassEntityHandle Handle |
||
| SIZE_T | |||
| const FMassArchetypeData * | GetArchetype
(
int32 Index |
||
| FMassArchetypeData * | GetArchetype
(
int32 Index |
||
| const TSharedPtr< FMassArchetypeData > & | GetArchetypeAsShared
(
int32 Index |
||
| TSharedPtr< FMassArchetypeData > & | GetArchetypeAsShared
(
int32 Index |
||
| EEntityState | GetEntityState
(
int32 Index |
Returns true if the given entity at index is currently reserved False if free or assigned an archetype | |
| int32 | GetSerialNumber
(
int32 Index |
||
| bool | Checks if entity at Index is built. | ||
| bool | IsValidIndex
(
int32 Index |
Checks if index can be used to access entity data. | |
| int32 | Num () |
Returns the number of entities that are not free For debug purposes only. | |
| int32 | Release
(
TConstArrayView< FMassEntityHandle > Handles |
||
| int32 | ReleaseOne
(
FMassEntityHandle Handle |
||
| void | SetArchetypeFromShared
(
int32 Index, |
||
| void | SetArchetypeFromShared
(
int32 Index, |