Class WorldEntityIdentity
- Namespace
- Shard.Gameplay.World
- Assembly
- Shard.Gameplay.World.dll
Gives access to entity identities that World owns. Use the returned entity only during the current synchronous World callback.
public static class WorldEntityIdentity
- Inheritance
-
WorldEntityIdentity
- Inherited Members
Remarks
Call these methods on the World thread that owns the entities. Use WorldReplication.TryWithInboundEntity to check network IDs from remote clients against the connection's presentation state.
Methods
TryGetNetworkId(World, Entity, out NetworkEntityId)
Gets the network ID of a live resident entity that this World replicates.
public static bool TryGetNetworkId(World store, Entity entity, out NetworkEntityId id)
Parameters
storeWorldentityEntityidNetworkEntityId
Returns
TryGetStableId(World, Entity, out StableEntityId)
Gets the stable ID of a live resident entity in this World.
public static bool TryGetStableId(World store, Entity entity, out StableEntityId id)
Parameters
storeWorldentityEntityidStableEntityId
Returns
TryResolveStable(World, StableEntityId, out Entity)
Finds a live resident entity by its stable ID. Use the entity only during the current callback.
public static bool TryResolveStable(World store, StableEntityId id, out Entity entity)
Parameters
storeWorldidStableEntityIdentityEntity