Table of Contents

Class PlayerInWorldTracker

Namespace
Shard.Gameplay.Universe.Players
Assembly
Shard.Gameplay.Universe.dll

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

int

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

playerId Guid
player Player

Returns

bool

Remarks

The returned Player may disconnect after lookup. Use Player.InWorldAsync for world work.