Skip to main content

ISyncController

An interface in Root.Township, ATT.MicroTutorial.

Messages between server and client for micro tutorials: the server tells a player's client to spawn, add to or remove step content, and the client says when it has loaded. SyncController is the implementation.

Events​

MemberWhat it is
event Action<IPlayer> ClientLoadCompletedServer: raised with the player when their client has finished spawning step content.
event Action<int> ServerClearedTutorialStepsClient: raised with the player ID when the server asks to clear all steps.
event Action<int, MicroTutorialStep> ServerDespawnedTutorialStepContentClient: raised with the player ID and step when the server asks to despawn it.
event Action<int, MicroTutorialStep> ServerSpawnedAdditionalStepContentClient: raised with the player ID and step when the server asks for its additional content.
event Action<int, MicroTutorialStep, Transform> ServerSpawnedStepClient: raised with the player ID, step and parent transform when the server asks to spawn a step.

Methods​

MemberWhat it is
void NotifyClientToClearTutorialSteps(IPlayer player)Server: tells the player's client to clear all tutorial steps.
void NotifyClientToDespawnStep(IPlayer player, DespawnStepContentCommand content)Server: tells the player's client to despawn one step's content.
void NotifyClientToSpawnAdditionalStepContent(IPlayer player, SpawnStepContentCommand content)Server: tells the player's client to spawn a step's additional content.
void NotifyClientToSpawnStep(IPlayer player, SpawnStepContentCommand content)Server: tells the player's client to spawn a step's content under a parent entity. The client answers with a load complete message.

Used in​

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