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.
- Listed in ATT, Features and other game namespaces
- Derived types
SyncController
Events
| Member | What it is |
|---|---|
event Action<IPlayer> ClientLoadCompleted | Server: raised with the player when their client has finished spawning step content. |
event Action<int> ServerClearedTutorialSteps | Client: raised with the player ID when the server asks to clear all steps. |
event Action<int, MicroTutorialStep> ServerDespawnedTutorialStepContent | Client: raised with the player ID and step when the server asks to despawn it. |
event Action<int, MicroTutorialStep> ServerSpawnedAdditionalStepContent | Client: raised with the player ID and step when the server asks for its additional content. |
event Action<int, MicroTutorialStep, Transform> ServerSpawnedStep | Client: raised with the player ID, step and parent transform when the server asks to spawn a step. |
Methods
| Member | What 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: