Skip to main content

ClientStepInstanceMap

A class in Root.Township, ATT.MicroTutorial.

Client-side lookup of micro tutorial step instances by player id and step. Owned by ClientController.

Constructors​

MemberWhat it is
ClientStepInstanceMap()Creates a ClientStepInstanceMap with default values.

Fields​

2 private and internal fields
MemberWhat it is
private readonly IDictionary<int, IDictionary<MicroTutorialStep, IStepInstance>> clientMapPlayer id to a map of step settings to step instance.
private readonly MicroTutorialLogger loggerMicro tutorial logger for this class.

Methods​

MemberWhat it is
void Add(int playerId, IStepInstance stepInstance)Adds a step instance for a player, keyed by its step settings, creating the player's map if needed.
IDictionary<MicroTutorialStep, IStepInstance> GetSteps(int playerId)Returns the player's step map, creating an empty one if none exists.
bool InstanceExists(int playerId, MicroTutorialStep step)True if the player has an instance of the given step.
bool Remove(int playerId)Removes all step instances for a player.
bool TryGet(int playerId, MicroTutorialStep step, out IStepInstance stepInstance)Looks up the player's instance of a step.

Used in​

Members of other types that take, return or hold a ClientStepInstanceMap: