ClientController
A class in Root.Township, ATT.MicroTutorial.
Client side of micro tutorials: creates and removes step instances when the sync controller reports the server spawning or clearing steps. Created by MicroTutorialSystem.
- Listed in ATT, Features and other game namespaces
Constructors
| Member | What it is |
|---|---|
ClientController(ISyncController syncController) | Creates a ClientController from syncController. |
Fields
2 private and internal fields
| Member | What it is |
|---|---|
private readonly MicroTutorialLogger logger | Micro tutorial logger. |
private readonly ClientStepInstanceMap stepMap | Step instances per player id. |
Methods
4 private and internal methods
| Member | What it is |
|---|---|
private void OnServerClearedTutorialSteps(int playerId) | Despawns all of a player's step content and removes their steps. |
private void OnServerDespawnedTutorialStepContent(int playerId, MicroTutorialStep step) | Despawns the static content of one step. |
private void OnServerSpawnedAdditionalStepContent(int playerId, MicroTutorialStep step) | Spawns the extra static content of an existing step. |
private void OnServerSpawnedStep(int playerId, MicroTutorialStep step, Transform parent) | Creates a step instance under the given parent for the player, unless one already exists. |
Used in
Members of other types that take, return or hold a ClientController: