This class provides a wrapping around handle ids. It is optimized to avoid using the hashmap lookup unless the hashmap has had an item removed.
More...
#include <NetworkEntityHandle.h>
Inherited by Multiplayer::NetworkEntityHandle.
This class provides a wrapping around handle ids. It is optimized to avoid using the hashmap lookup unless the hashmap has had an item removed.
◆ ConstNetworkEntityHandle()
Multiplayer::ConstNetworkEntityHandle::ConstNetworkEntityHandle |
( |
AZ::Entity * |
entity, |
|
|
const NetworkEntityTracker * |
entityTracker = nullptr |
|
) |
| |
Constructs a ConstNetworkEntityHandle given an entity, an entity tracker
- Parameters
-
entity | pointer to the entity to construct a ConstNetworkEntityHandle for |
entityTracker | pointer to the entity tracker that tracks the entity can optionally be null in which case the entity tracker will be looked up |
◆ Exists()
bool Multiplayer::ConstNetworkEntityHandle::Exists |
( |
| ) |
const |
Access the AZ::Entity if it safely exists, nullptr or false is returned if the entity does not exist.
◆ FindComponent() [1/2]
template<typename Component >
const Component* Multiplayer::ConstNetworkEntityHandle::FindComponent |
( |
| ) |
const |
Returns a specific component on of entity by class type.
- Returns
- pointer to the requested component, or nullptr if it doesn't exist on the entity
◆ FindComponent() [2/2]
const AZ::Component* Multiplayer::ConstNetworkEntityHandle::FindComponent |
( |
const AZ::TypeId & |
typeId | ) |
const |
Returns a specific component on of entity given a typeId.
- Parameters
-
typeId | the typeId of the component to find and return |
- Returns
- pointer to the requested component, or nullptr if it doesn't exist on the entity
◆ GetNetBindComponent()
NetBindComponent* Multiplayer::ConstNetworkEntityHandle::GetNetBindComponent |
( |
| ) |
const |
Returns the cached netBindComponent for this entity, or nullptr if it doesn't exist.
- Returns
- the cached netBindComponent for this entity, or nullptr if it doesn't exist
◆ GetNetEntityId()
NetEntityId Multiplayer::ConstNetworkEntityHandle::GetNetEntityId |
( |
| ) |
const |
|
inline |
Returns the networkEntityId of the entity this handle points to.
- Returns
- the networkEntityId of the entity this handle points to
◆ operator==()
Operators providing pointer semantics.
The documentation for this class was generated from the following files:
- Gems/Multiplayer/Code/Include/Multiplayer/NetworkEntity/NetworkEntityHandle.h
- Gems/Multiplayer/Code/Include/Multiplayer/NetworkEntity/NetworkEntityHandle.inl