Added the ability to look up a Net Entity ID for a given AZ Entity ID

Signed-off-by: pereslav <pereslav@amazon.com>
This commit is contained in:
pereslav
2021-08-19 16:57:32 +01:00
parent f76d09e215
commit 92a46c705e
6 changed files with 38 additions and 1 deletions
@@ -89,6 +89,11 @@ namespace Multiplayer
//! @return the total number of entities tracked by this INetworkEntityManager instance
virtual uint32_t GetEntityCount() const = 0;
//! Returns the Net Entity ID for a given AZ Entity ID.
//! @param entityId the AZ Entity ID
//! @return the Net Entity ID
virtual NetEntityId GetNetEntityIdById(const AZ::EntityId& entityId) const = 0;
//! Adds the provided entity to the internal entity map identified by the provided netEntityId.
//! @param netEntityId the identifier to use for the added entity
//! @param entity the entity to add to the internal entity map