Public Member Functions | |
AZ_RTTI (SimulationEntityManagerRequests, SimulationInterfacesRequestsTypeId) | |
virtual AZ::Outcome< EntityNameList, FailedResult > | GetEntities (const EntityFilters &filter)=0 |
virtual AZ::Outcome< EntityState, FailedResult > | GetEntityState (const AZStd::string &name)=0 |
virtual AZ::Outcome< MultipleEntitiesStates, FailedResult > | GetEntitiesStates (const EntityFilters &filter)=0 |
virtual AZ::Outcome< void, FailedResult > | SetEntityState (const AZStd::string &name, const EntityState &state)=0 |
virtual void | DeleteEntity (const AZStd::string &name, DeletionCompletedCb completedCb)=0 |
virtual void | DeleteAllEntities (DeletionCompletedCb completedCb)=0 |
Remove all previously spawned entities from the simulation. | |
virtual AZ::Outcome< SpawnableList, FailedResult > | GetSpawnables ()=0 |
virtual void | SpawnEntity (const AZStd::string &name, const AZStd::string &uri, const AZStd::string &entityNamespace, const AZ::Transform &initialPose, const bool allowRename, PreInsertionCb preinsertionCb, SpawnCompletedCb completedCb)=0 |
virtual AZ::Outcome< void, FailedResult > | ResetAllEntitiesToInitialState ()=0 |
virtual AZ::Outcome< AZStd::string, FailedResult > | RegisterNewSimulatedBody (const AZStd::string &proposedName, const AZ::EntityId &entityId)=0 |
virtual AZ::Outcome< void, FailedResult > | UnregisterSimulatedBody (const AZStd::string &name)=0 |
virtual AZ::Outcome< void, FailedResult > | SetEntityInfo (const AZStd::string &name, const EntityInfo &info)=0 |
virtual AZ::Outcome< EntityInfo, FailedResult > | GetEntityInfo (const AZStd::string &name)=0 |
virtual AZ::Outcome< Bounds, FailedResult > | GetEntityBounds (const AZStd::string &name)=0 |
virtual AZ::Outcome< AZ::EntityId, FailedResult > | GetEntityId (const AZStd::string &name)=0 |
virtual AZ::Outcome< AZ::EntityId, FailedResult > | GetEntityRoot (const AZStd::string &name)=0 |
|
pure virtual |
Remove previously spawned entity from the simulation.
|
pure virtual |
Supported filters:
|
pure virtual |
Get the state of all entities that match the filter.
|
pure virtual |
Get information about bounds of the entity with given name
name | Name of entity to get |
|
pure virtual |
Get Entity Id of the simulated Entity, for physical prefabs it will be first physical entity, For non-physical entities prefab root will be returned
name | Name of entity to get |
|
pure virtual |
Get information about spawned entity, empty object is returned if no information was set before
name | Name of entity to get |
|
pure virtual |
Get Entity Id of the root of the prefab spawned as simulated Entity
name | Name of entity to get |
|
pure virtual |
Get the state of an entity.
|
pure virtual |
Get a list of spawnable entities.
|
pure virtual |
Registers a new simulated body to the simulation interface. This method adds entity to simulation Interfaces cache with its name and initial state This method allows to register entity spawned by interface other than simulation_interfaces If given name already exists in the registry, new unique name will be created.
proposedName | Name to register entity under |
entityId | id of entity related to given name |
|
pure virtual |
Reset the simulation to begin. This will revert the entire simulation to the initial state.
|
pure virtual |
Set informations such as category, description to spawned entity with given name
name | name of entity to set info for |
info | object with entity info |
|
pure virtual |
Set the state of an entity.
|
pure virtual |
Callback for when an entity has been spawned and registered. The string is the name of the entity in the simulation interface. Note: The names are empty, if the entity could not be registered (e.g. prefab has no simulated entities)
|
pure virtual |
Unregisters simulated body from the simulation interface. This method doesn't despawn entity, it removes it from simulation_interfaces registry
name | Name of entity to unregister |