Skip to main content

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.

Constructors​

MemberWhat it is
ClientController(ISyncController syncController)Creates a ClientController from syncController.

Fields​

2 private and internal fields
MemberWhat it is
private readonly MicroTutorialLogger loggerMicro tutorial logger.
private readonly ClientStepInstanceMap stepMapStep instances per player id.

Methods​

4 private and internal methods
MemberWhat 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: