Inherits AZ::EBusTraits.
|
virtual AzFramework::EntityContextId | GetEditorEntityContextId ()=0 |
| Retrieve the Id of the editor entity context.
|
|
virtual AzFramework::EntityContext * | GetEditorEntityContextInstance ()=0 |
|
virtual AZ::EntityId | CreateNewEditorEntity (const char *name)=0 |
|
virtual AZ::EntityId | CreateNewEditorEntityWithId (const char *name, const AZ::EntityId &entityId)=0 |
|
virtual void | AddEditorEntity (AZ::Entity *entity)=0 |
| Registers an existing entity with the editor context.
|
|
virtual void | AddEditorEntities (const EntityList &entities)=0 |
| Registers an existing set of entities with the editor context.
|
|
virtual void | HandleEntitiesAdded (const EntityList &entities)=0 |
| Triggers registered callbacks for an existing set of entities with the editor context.
|
|
virtual void | FinalizeEditorEntity (AZ::Entity *entity)=0 |
| Creates an editor ready entity, and sends out notification for the creation.
|
|
virtual bool | DestroyEditorEntity (AZ::EntityId entityId)=0 |
|
virtual bool | CloneEditorEntities (const EntityIdList &sourceEntities, EntityList &resultEntities, AZ::SliceComponent::EntityIdToEntityIdMap &sourceToCloneEntityIdMap)=0 |
|
virtual bool | SaveToStreamForEditor (AZ::IO::GenericStream &stream, const EntityList &entitiesInLayers, AZ::SliceComponent::SliceReferenceToInstancePtrs &instancesInLayers)=0 |
|
virtual void | GetLooseEditorEntities (EntityList &entityList)=0 |
|
virtual bool | SaveToStreamForGame (AZ::IO::GenericStream &stream, AZ::DataStream::StreamType streamType)=0 |
|
virtual bool | LoadFromStream (AZ::IO::GenericStream &stream)=0 |
|
virtual bool | LoadFromStreamWithLayers (AZ::IO::GenericStream &stream, QString levelPakFile)=0 |
|
virtual void | ResetEditorContext ()=0 |
| Completely resets the context (slices and entities deleted).
|
|
virtual void | StartPlayInEditor ()=0 |
|
virtual void | StopPlayInEditor ()=0 |
| When stopping, we shut down the game context and re-activate the editor context.
|
|
virtual bool | IsEditorRunningGame ()=0 |
| Is used to check whether the Editor is running the game simulation or in normal edit mode.
|
|
virtual bool | IsEditorRequestingGame ()=0 |
| Has the Editor been requested to move to Game Mode (but may not have fully entered it yet).
|
|
virtual bool | IsEditorEntity (AZ::EntityId id)=0 |
|
virtual void | AddRequiredComponents (AZ::Entity &entity)=0 |
| Adds the required editor components to the entity.
|
|
virtual const AZ::ComponentTypeList & | GetRequiredComponentTypes ()=0 |
| Returns an array of the required editor component types added by AddRequiredComponents()
|
|
virtual bool | MapEditorIdToRuntimeId (const AZ::EntityId &editorId, AZ::EntityId &runtimeId)=0 |
|
virtual bool | MapRuntimeIdToEditorId (const AZ::EntityId &runtimeId, AZ::EntityId &editorId)=0 |
|
Bus for making requests to the edit-time entity context component.