#include <PrefabSystemComponentInterface.h>
Inherited by AzToolsFramework::Prefab::PrefabSystemComponent [private]
.
Public Types | |
using | InstantiatedEntitiesCallback = AZStd::function< void(AZStd::vector< AZ::Entity * > &)> |
Public Member Functions | |
AZ_RTTI (PrefabSystemComponentInterface, "{8E95A029-67F9-4F74-895F-DDBFE29516A0}") | |
virtual TemplateReference | FindTemplate (TemplateId id)=0 |
virtual LinkReference | FindLink (const LinkId &id)=0 |
virtual TemplateId | AddTemplate (const AZ::IO::Path &filePath, PrefabDom prefabDom)=0 |
virtual void | UpdateTemplateFilePath (TemplateId templateId, const AZ::IO::PathView &filePath)=0 |
virtual void | RemoveTemplate (TemplateId templateId)=0 |
virtual void | RemoveAllTemplates ()=0 |
virtual LinkId | AddLink (TemplateId sourceTemplateId, TemplateId targetTemplateId, PrefabDomValue::MemberIterator &instanceIterator, InstanceOptionalReference instance)=0 |
virtual LinkId | CreateLink (TemplateId linkTargetId, TemplateId linkSourceId, const InstanceAlias &instanceAlias, const PrefabDomConstReference linkPatches, const LinkId &linkId=InvalidLinkId)=0 |
virtual bool | RemoveLink (const LinkId &linkId)=0 |
virtual TemplateId | GetTemplateIdFromFilePath (AZ::IO::PathView filePath) const =0 |
virtual bool | IsTemplateDirty (TemplateId templateId)=0 |
virtual void | SetTemplateDirtyFlag (TemplateId templateId, bool dirty)=0 |
virtual bool | AreDirtyTemplatesPresent (TemplateId rootTemplateId)=0 |
virtual void | SaveAllDirtyTemplates (TemplateId rootTemplateId)=0 |
virtual AZStd::set< AZ::IO::PathView > | GetDirtyTemplatePaths (TemplateId rootTemplateId)=0 |
virtual PrefabDom & | FindTemplateDom (TemplateId templateId)=0 |
virtual void | UpdatePrefabTemplate (TemplateId templateId, const PrefabDom &updatedDom)=0 |
virtual void | PropagateTemplateChanges (TemplateId templateId, InstanceOptionalConstReference instanceToExclude=AZStd::nullopt)=0 |
virtual AZStd::unique_ptr< Instance > | InstantiatePrefab (AZ::IO::PathView filePath, InstanceOptionalReference parent=AZStd::nullopt, const InstantiatedEntitiesCallback &instantiatedEntitiesCallback={})=0 |
virtual AZStd::unique_ptr< Instance > | InstantiatePrefab (TemplateId templateId, InstanceOptionalReference parent=AZStd::nullopt, const InstantiatedEntitiesCallback &instantiatedEntitiesCallback={})=0 |
virtual AZStd::unique_ptr< Instance > | CreatePrefab (const AZStd::vector< AZ::Entity * > &entities, AZStd::vector< AZStd::unique_ptr< Instance > > &&nestedInstances, AZ::IO::PathView filePath, AZStd::unique_ptr< AZ::Entity > containerEntity=nullptr, InstanceOptionalReference parent=AZStd::nullopt, bool shouldCreateLinks=true)=0 |
virtual AZStd::unique_ptr< Instance > | CreatePrefabWithCustomEntityAliases (const AZStd::map< EntityAlias, AZ::Entity * > &entities, AZStd::vector< AZStd::unique_ptr< Instance > > &&nestedInstances, AZ::IO::PathView filePath, AZStd::unique_ptr< AZ::Entity > containerEntity=nullptr, InstanceOptionalReference parent=AZStd::nullopt, bool shouldCreateLinks=true)=0 |
PrefabSystemComponentInterface Interface serviced by the Prefab System Component.
|
pure virtual |
Implemented in AzToolsFramework::Prefab::PrefabSystemComponent.
|
pure virtual |
Implemented in AzToolsFramework::Prefab::PrefabSystemComponent.
|
pure virtual |
Recursive function to check if the template is dirty or if any dirty templates are presents in the links of the template.
rootTemplateId | The id of the template provided as the beginning template to check the outgoing links. |
Implemented in AzToolsFramework::Prefab::PrefabSystemComponent.
|
pure virtual |
Implemented in AzToolsFramework::Prefab::PrefabSystemComponent.
|
pure virtual |
Implemented in AzToolsFramework::Prefab::PrefabSystemComponent.
|
pure virtual |
Creates a prefab instance using the entities and nested instances provided.
entities | The map of entities to add to the instance. Map ensures insertion order. |
nestedInstances | The instances to add to the newly created instance. |
filePath | The path at which the prefab should be created. |
containerEntity | The container entity for the new instance. |
parent | The parent instance of the newly created instance. |
Implemented in AzToolsFramework::Prefab::PrefabSystemComponent.
|
pure virtual |
Implemented in AzToolsFramework::Prefab::PrefabSystemComponent.
|
pure virtual |
Implemented in AzToolsFramework::Prefab::PrefabSystemComponent.
|
pure virtual |
Recursive function that fetches the set of dirty templates given a starting template to check for outgoing links.
rootTemplateId | The id of the template provided as the beginning template to check the outgoing links. |
Implemented in AzToolsFramework::Prefab::PrefabSystemComponent.
|
pure virtual |
Implemented in AzToolsFramework::Prefab::PrefabSystemComponent.
|
pure virtual |
Implemented in AzToolsFramework::Prefab::PrefabSystemComponent.
|
pure virtual |
Implemented in AzToolsFramework::Prefab::PrefabSystemComponent.
|
pure virtual |
Implemented in AzToolsFramework::Prefab::PrefabSystemComponent.
|
pure virtual |
Implemented in AzToolsFramework::Prefab::PrefabSystemComponent.
|
pure virtual |
Implemented in AzToolsFramework::Prefab::PrefabSystemComponent.
|
pure virtual |
Implemented in AzToolsFramework::Prefab::PrefabSystemComponent.
|
pure virtual |
Recursive function to save if the template is dirty and save all the dirty templates in the links of the template.
rootTemplateId | The id of the template provided as the beginning template to check the outgoing links. |
Implemented in AzToolsFramework::Prefab::PrefabSystemComponent.
|
pure virtual |
Implemented in AzToolsFramework::Prefab::PrefabSystemComponent.
|
pure virtual |
Implemented in AzToolsFramework::Prefab::PrefabSystemComponent.
|
pure virtual |
Implemented in AzToolsFramework::Prefab::PrefabSystemComponent.