IMicroTutorial
An interface in Root.Township, ATT.MicroTutorial.
Server: one run of a micro tutorial for one player. It moves the player into a tutorial domain, runs the steps in order and brings them back afterwards. MicroTutorial is the implementation.
- Listed in ATT, Features and other game namespaces
- Derived types
MicroTutorial
Properties
| Member | What it is |
|---|---|
LocationChunk Chunk { get; } | Location chunk the tutorial content is in. |
NetworkEntity Entity { get; } | The tutorial's network entity, which step content loads into. |
bool IsReplay { get; } | True if the player had already completed this tutorial when the run was created. |
IPlayer Player { get; } | The player doing the tutorial. |
string SessionId { get; } | Hash identifying this run, from the server id, tutorial name and a counter. Used in analytics. |
IMicroTutorialSettings Settings { get; } | The tutorial's settings, including its steps. |
TutorialState State { get; } | Inactive, started or completed. |
int StepIndex { get; } | Index of the current step. |
IReadOnlyList<IServerStepInstance> Steps { get; } | The step instances, one per step in the settings. |
Transform Transform { get; } | Transform of the tutorial content. |
Events
| Member | What it is |
|---|---|
event Action<IPlayer, IMicroTutorial> Despawned | Raised after Despawn finishes. |
event Action<IPlayer, IMicroTutorial> Spawned | Raised once the tutorial has spawned and the client has loaded. |
event Action<IPlayer, IMicroTutorial> StepCompleted | Raised after each step completes. |
event Action<IPlayer, IMicroTutorial> TutorialCompleted | Raised when the final step completes. |
Methods
Used in
Members of other types that take, return or hold a IMicroTutorial:
IMicroTutorialFactory.CreateTutorial, IServerStepInstance.Tutorial, MicroTutorial.Despawned, MicroTutorial.Spawned, MicroTutorial.StepCompleted, MicroTutorial.TutorialCompleted, MicroTutorialAnalyticsEvent.GetCurrentStepData, MicroTutorialAnalyticsEvent.MicroTutorialAnalyticsEvent, MicroTutorialFactory.CreateTutorial, MicroTutorialModule.GetActiveTutorialForPlayer, ServerController.activeTutorialMap, ServerController.ActiveTutorials, ServerController.OnStepCompleted, ServerController.OnTutorialCompleted, ServerController.OnTutorialDespawned, ServerController.OnTutorialSpawned, ServerController.SendAnalyticsEvent, ServerStepInstance.ServerStepInstance, ServerStepInstance.Tutorial.