#include <SliceComponent.h>
Public Member Functions | |
AZ_TYPE_INFO (EntityRestoreInfo, "{AF2BE53F-C212-4BA4-880C-E1859BE75EA9}") | |
EntityRestoreInfo (const Data::Asset< SliceAsset > &asset, const SliceInstanceId &instanceId, const EntityId &ancestorId, const DataPatch::FlagsMap &dataFlags) | |
operator bool () const | |
Public Attributes | |
Data::AssetId | m_assetId |
SliceInstanceId | m_instanceId |
EntityId | m_ancestorId |
DataPatch::FlagsMap | m_dataFlags |
Stores information required to restore an entity back into an internal slice instance, which includes the address of the reference and owning instance at the time of capture. EntityRestoreInfo must be retrieved via SliceReference::GetEntityRestoreInfo(). It can then be provided to SliceComponent::RestoreEntity() to restore the entity, at which point the owning reference and instance will be re-created if needed.
|
inline |
asset | The source slice asset of the slice instance containing the to-be-restored entity. |
instanceId | The Id of the slice instance that manages local data patches for its entities, including the entity in question. |
ancestorId | The Id of the entity defined in the source slice asset, that is the immediate ancestor of the to-be-restored entity. |
dataFlags | A copy of the slice instance data flags before the entity is removed. |