Vixen
c7401864
csharp
public sealed class GameplayIdentityMap

A join a test can drive, and what a realm fills in at admission.

Read the guide page for this →

Remarks

⚠ Admitting the same key twice replaces the id rather than keeping both. A reconnect inside the window is the same character on a new session, and leaving the old id resolvable would let a stale rule write to somebody who is no longer there.

Fields and properties (2)

  • public int Count

    How many are on this realm.

  • public IEnumerable<KeyValuePair<PlayerId, PlayerKey>> Players

    Everybody here, in id order.

Methods (5)

  • public PlayerId Admit(PlayerKey key, PlayerId session)

    Records that somebody was let in.

  • public bool Release(PlayerId player)

    Forgets somebody who left.

  • public bool TryResolve(PlayerId player, out PlayerKey key)

    Who a gameplay rule's player is, durably.

  • public PlayerId PlayerFor(PlayerKey key)

    What a durable player is called while they are here.

  • public static PlayerId From(PlayerId session)

    Widens a session id into the one gameplay passes around.

Used by (8)

  • FleetMmo.Soak
  • MmoRealmMmo.Realm
  • ShardMmo.Soak
  • SoakMmo.Soak
  • HousekeepingTestsVixen.Live.Gameplay.Tests
  • LedgerBridgeTestsVixen.Live.Gameplay.Tests
  • LockoutBridgeTestsVixen.Live.Gameplay.Tests
  • SocialBridgeTestsVixen.Live.Gameplay.Tests