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>Public Members
Section titled “Public Members”| 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; } |
See Also
Section titled “See Also”- namespace Stellar.Abstractions.Domain