Skip to content
Version 2.11.0
↓ Get the launcher

EntityId structure

Strongly-typed wrapper around the int64 entity UUID used by the BPSR world server. The low 16 bits encode the entity type (640 = player, 64 / 32832 = monster); the upper bits encode the numeric uid.

public struct EntityId : IEquatable<EntityId>
name description
EntityId(…) Strongly-typed wrapper around the int64 entity UUID used by the BPSR world server. The low 16 bits encode the entity type (640 = player, 64 / 32832 = monster); the upper bits encode the numeric uid.
static readonly None Sentinel representing an absent or unknown entity.
IsMonster { get; } True when the low 16 bits equal 64 or 32832 (monster entity-type markers).
IsNone { get; } True when this id represents no entity (value zero).
IsPlayer { get; } True when the low 16 bits equal 640 (player entity-type marker).
Uid { get; } Numeric uid extracted from the upper 48 bits of the full entity id.
Value { get; set; }