Table of Contents

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

store World
entity Entity
id NetworkEntityId

Returns

bool

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

store World
entity Entity
id StableEntityId

Returns

bool

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

store World
id StableEntityId
entity Entity

Returns

bool