partitionOfEntity

function partitionOfEntity
authority.ts:193
partitionOfEntity(world: World, id: EntityId | null) → PartitionKey | null

The partition an entity is currently in, or null if it is not in the world.

Goes through partitionForFrames rather than reading the address, because a ship has no address at all — authority follows the frame it is standing in.

worldWorld
Undocumented
idEntityId | null
Undocumented
ReturnsPartitionKey | null