Skip to main content

MicroTutorialAnalyticsEvent

A class in Root.Township, ATT.MicroTutorial.

Analytics event for micro tutorials (enter, exit, step completed), with the tutorial name, session ID, replay flag and step details.

Constructors​

MemberWhat it is
MicroTutorialAnalyticsEvent(string eventName, IMicroTutorial tutorial, IPlayer player)Creates a MicroTutorialAnalyticsEvent from eventName, tutorial and player.

Fields​

MemberWhat it is
const string EnterEventEvent name sent when a player enters a tutorial.
const string ExitEventEvent name sent when a player leaves a tutorial.
const string StepCompletedEventEvent name sent when a tutorial step is completed.
7 private and internal fields
MemberWhat it is
private const string IsReplayKeyProperty key for whether the player had already completed the tutorial (the key text has a typo, "Turorial").
private static readonly Logger loggerClass logger.
private const string NameKeyProperty key for the tutorial name.
private const string SessionIdKeyProperty key for the tutorial session ID.
private const string StepCountKeyProperty key for the number of steps.
private const string StepNameKeyProperty key for the current step's name.
private const string StepNumberKeyProperty key for the current step number, counted from 1.

Methods​

1 private and internal method
MemberWhat it is
private static ValueTuple<int, string> GetCurrentStepData(IMicroTutorial tutorial)Returns the step index and name to report, based on the tutorial state; logs and returns "Error" for a bad index.