ClientStepInstanceMap
A class in Root.Township, ATT.MicroTutorial.
Client-side lookup of micro tutorial step instances by player id and step. Owned by ClientController.
- Listed in ATT, Features and other game namespaces
Constructors
| Member | What it is |
|---|---|
ClientStepInstanceMap() | Creates a ClientStepInstanceMap with default values. |
Fields
2 private and internal fields
| Member | What it is |
|---|---|
private readonly IDictionary<int, IDictionary<MicroTutorialStep, IStepInstance>> clientMap | Player id to a map of step settings to step instance. |
private readonly MicroTutorialLogger logger | Micro tutorial logger for this class. |
Methods
| Member | What 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: