Tutorials
#
Read more about the Tutorials system in Hiro here.
Get all tutorials
#
Get the tutorials and current progress step for the player.
1
2
| var tutorial_list = await hiro.tutorialGet(session!);
print(tutorial_list);
|
Accept a tutorial
#
Accept an offer to step through a tutorial.
1
2
3
4
5
| var request = TutorialAcceptRequest();
request.id = "tutorial_1";
var tutorial = await hiro.tutorialsAccept(session!, request);
print(tutorial);
|
Decline a tutorial
#
Decline an offer to start a tutorial.
1
2
3
4
5
| var request = TutorialDeclineRequest();
request.id = "tutorial_1";
var tutorial = await hiro.tutorialsDecline(session!, request);
print(tutorial);
|
Abandon a tutorial
#
Abandon progress on a tutorial.
1
2
3
4
5
| var request = TutorialAbandonRequest();
request.id = "tutorial_1";
var tutorial = await hiro.tutorialsAbandon(session!, request);
print(tutorial);
|
Update progress of a tutorial
#
Update the current progress step in the tutorial by ID.
1
2
3
4
5
6
| var request = TutorialUpdateRequest();
request.id = "tutorial_1";
request.step = 1;
var tutorial_list = await hiro.tutorialsUpdate(session!, request);
print(tutorial_list);
|