Enumerations
Generated from the source code of the Toto backend (version 2.4.8).
Values of the enumerations used in the API. Values are case sensitive.
Element type (t of an element)
Section titled “Element type (t of an element)”RepoElementType
| Value | Meaning |
|---|---|
Coin |
bonus item, collected with its secret; associated with a story, not part of a challenge graph |
Task |
has to be solved (or skipped) by the player |
Info |
shows content, processed when acknowledged |
Choice |
the player chooses one of its successors in the challenge graph |
Dynamic |
a script chooses one of its successors |
Geofence event (solutions.geofence.event)
Section titled “Geofence event (solutions.geofence.event)”GeoFenceEventType
| Value | Meaning |
|---|---|
Enter |
solved when the player enters the area |
Exit |
solved when the player leaves the area |
Variable type (t of a variable)
Section titled “Variable type (t of a variable)”RepoVarType
| Value | Meaning |
|---|---|
Boolean |
true / false |
Number |
a number, stored as decimal (3 is stored as 3.0) |
String |
a text |
Variable scope (scope of a variable)
Section titled “Variable scope (scope of a variable)”RepoVarScope
| Value | Meaning |
|---|---|
Account |
one value per player account, across all sessions of the repository |
Repo |
one value for the whole repository, shared by all players |
Session |
one value per session |
Script language (lang of scripts)
Section titled “Script language (lang of scripts)”RepoScriptLang
| Value | Meaning |
|---|---|
Javascript |
JavaScript (ECMAScript 5) – the only language that is executed |
Lua |
defined in the data model but not supported |
File access (access of an attached file)
Section titled “File access (access of an attached file)”RepoBinaryAccess
| Value | Meaning |
|---|---|
Public |
everyone, also without login |
Account |
every logged in player of the story |
Attendee |
only players of the session |
Progress |
only players of a session in which the element has been released |
Repository role
Section titled “Repository role”RepoPermissionRole – Ordered from most to least rights; a role includes the rights of the roles below it.
| Value | Meaning |
|---|---|
Owner |
everything, including permissions and access tokens |
Author |
create and change content |
Operator |
operate running games: sessions, user inputs, TotoObject configuration |
Tester |
read the activity log |
Repository status
Section titled “Repository status”RepoStatus
| Value | Meaning |
|---|---|
Active |
content can be changed |
Inactive |
new repositories; content can be read but not changed |
Archived |
no longer in use |
Session status
Section titled “Session status”TotoSessionStatus
| Value | Meaning |
|---|---|
Initialized |
created with a voucher, not started yet |
Started |
being played |
Finished |
ended after the story was completed |
Canceled |
ended before the story was completed |
NeverFinished |
defined but not set by the backend |
Attendee role
Section titled “Attendee role”AttendeeRole – Players of a session currently always get the role Player.
| Value | Meaning |
|---|---|
Agent |
defined but not assigned by the backend |
Player |
plays the session |
Tester |
defined but not assigned by the backend |
Visibility of a user input
Section titled “Visibility of a user input”SessionInputAccess – Who can see what a player submitted for a user input task; default Private.
| Value | Meaning |
|---|---|
World |
everyone |
Repo |
players of the repository |
Story |
players of the story |
Session |
players of the same session |
Attendees |
the attendees of the session |
Private |
only the player (and the operators of the repository) |