Adventure Creator
1.79.1
An adventure game toolkit for Unity, by Chris Burton, ICEBOX Studios 2013-2022
|
Public Member Functions | |
CustomToken (int _ID, string _replacementText) | |
The default Constructor. More... | |
string | GetSafeReplacementText () |
Converts the replacementText into a temporary one that has no colon or pipe characters, so that it is safe for saving. More... | |
void | SetSafeReplacementText (string safeText) |
Assigns the replacementText from a safe-to-store string that was stored in save data. More... | |
Public Attributes | |
int | ID |
string | replacementText |
A data container for custom tokens. MenuLabel elements and speech text will replace occurences of [token:ID] with the relevant token's replacementText string. Tokens are created and stored within the RuntimeVariables script.
AC.CustomToken.CustomToken | ( | int | _ID, |
string | _replacementText | ||
) |
The default Constructor.
_ID | The token's unique identifier |
_replacementText | The token's replacement text. |
string AC.CustomToken.GetSafeReplacementText | ( | ) |
Converts the replacementText into a temporary one that has no colon or pipe characters, so that it is safe for saving.
void AC.CustomToken.SetSafeReplacementText | ( | string | safeText | ) |
Assigns the replacementText from a safe-to-store string that was stored in save data.
safeText | The safe-to-store variant of replacementText that was stored in save data |
int AC.CustomToken.ID |
The token's unique identifier
string AC.CustomToken.replacementText |
The token's replacement text.