Class PlayerInWorldTracker
Owns committed Player bindings and safe avatar access for one loaded World.
public sealed class PlayerInWorldTracker
- Inheritance
-
PlayerInWorldTracker
- Inherited Members
Properties
Count
Gets the number of Players still committed to this world.
public int Count { get; }
Property Value
Remarks
Counts committed bindings on demand, so use it for reporting rather than work performed each tick.
Methods
TryGet(Guid, out Player?)
Resolves the player committed to this world at the instant of lookup.
public bool TryGet(Guid playerId, out Player? player)
Parameters
Returns
Remarks
The returned Player may disconnect after lookup. Use Player.InWorldAsync for world work.