tango_loading.zh#
Variables#
const int |
|
const int |
|
const int |
Functions#
void |
Tango_LoadString(int slot, char32[] string) |
void |
Tango_LoadString(int slot, char32[] string, int startChar) |
void |
Tango_AppendString(int slot, char32[] string) |
void |
Tango_AppendString(int slot, char32[] string, int startChar) |
void |
Tango_LoadMessage(int slot, int messageID) |
void |
Tango_LoadMessage(int slot, int messageID, int startChar) |
void |
Tango_AppendMessage(int slot, int messageID) |
void |
Tango_AppendMessage(int slot, int messageID, int startChar) |
void |
__Tango_LoadString(int slot, char32[] str, bool append, int startChar) |
void |
__Tango_LoadMessage(int slot, int msg, bool append, int startChar) |
int |
__Tango_FindSrcStart(char32[] str, char32 startChar) |
int |
__Tango_FindDestStart(bool append) |
void |
__Tango_LoadIntoBuffer(char32[] src, int srcPtr, int destPtr) |
bool |
__Tango_ParseTopLevelCode(char32[] src, int srcPtr, int destPtr, int[] ptrOut) |
bool |
__Tango_ParseArguments(char32[] src, int srcPtr, int destPtr, int[] ptrOut) |
bool |
__Tango_ParseArgumentCode(char32[] src, int srcPtr, int destPtr, bool negative, int[] ptrOut) |
int |
__Tango_ReadNumber(char32[] src, int srcPtr, bool integer, int[] ptrOut) |
int |
__Tango_ReadIdentifier(char32[] src, int srcPtr, int[] ptrOut) |
void |
__Tango_SetStartMarker(int destPtr, int func) |
int |
__Tango_SetEndMarker(int destPtr, int func) |
bool |
__Tango_LoadStringControlCode(char32[] src, int srcPtr, int destPtr, int[] ptrOut) |
int |
__Tango_EatSpaces(char32[] src, int srcPtr) |
int |
__Tango_AddPadding(int function, int fnStart, int destPtr) |
void |
__Tango_SetChar(int pos, int character) |
int |
__Tango_GetStringEnd(char32[] string) |
Variable descriptions#
const int __TANGO_PAD_NUMBER = 12
π Source
Functions involved in loading text into __Tango_Buffer[]. Text-producing functions need a bit of padding to overwrite.
const int __TANGO_PAD_ORDINAL = 9
π Source
Function descriptions#
void Tango_LoadString(int slot, char32[] string) π Source
void Tango_LoadString(int slot, char32[] string, int startChar) π Source
void Tango_AppendString(int slot, char32[] string) π Source
void Tango_AppendString(int slot, char32[] string, int startChar) π Source
void Tango_LoadMessage(int slot, int messageID) π Source
Loads a ZC message into a text slot.
void Tango_LoadMessage(int slot, int messageID, int startChar) π Source
void Tango_AppendMessage(int slot, int messageID) π Source
void Tango_AppendMessage(int slot, int messageID, int startChar) π Source
void __Tango_LoadString(int slot, char32[] str, bool append, int startChar) π Source
Implementation of the above
void __Tango_LoadMessage(int slot, int msg, bool append, int startChar) π Source
int __Tango_FindSrcStart(char32[] str, char32 startChar) π Source
Find the position after the start character or 0 if itβs not in the string.
int __Tango_FindDestStart(bool append) π Source
Find the start of the slot or the end of its current text, depending on append.
void __Tango_LoadIntoBuffer(char32[] src, int srcPtr, int destPtr) π Source
Copies a string into __Tango_Buffer and compiles any code it contains.
bool __Tango_ParseTopLevelCode(char32[] src, int srcPtr, int destPtr, int[] ptrOut) π Source
Parses functions and ASCII values at the top level in src and writes them to the buffer. srcPtr points to just after β@β. Returns true if there was an error, false if not.
bool __Tango_ParseArguments(char32[] src, int srcPtr, int destPtr, int[] ptrOut) π Source
Parse the arguments to a function and writes them to __Tango_Buffer[]. srcPtr points to the first character after β(β; the closing parenthesis will be handled. Returns true if there was an error, false if not.
bool __Tango_ParseArgumentCode(char32[] src, int srcPtr, int destPtr, bool negative, int[] ptrOut) π Source
Reads a code argument from src``srcPtr`` and writes it to the buffer. srcPtr points to just after the β@β. Returns true if there was an error, false if not.
int __Tango_ReadNumber(char32[] src, int srcPtr, bool integer, int[] ptrOut) π Source
Reads and returns a number starting from src``srcPtr``.
int __Tango_ReadIdentifier(char32[] src, int srcPtr, int[] ptrOut) π Source
Reads the name of a variable or function starting from src``srcPtr`` and returns the compiled form.
void __Tango_SetStartMarker(int destPtr, int func) π Source
Set the appropriate start marker for the given function.
int __Tango_SetEndMarker(int destPtr, int func) π Source
Set the appropriate end marker for the given function. Returns the new value of destPtr.
bool __Tango_LoadStringControlCode(char32[] src, int srcPtr, int destPtr, int[] ptrOut) π Source
int __Tango_EatSpaces(char32[] src, int srcPtr) π Source
Advances srcPtr beyond any spaces in src.
int __Tango_AddPadding(int function, int fnStart, int destPtr) π Source
Adds filler characters for text functions to be overwritten. Returns the new value of destPtr.
void __Tango_SetChar(int pos, int character) π Source
int __Tango_GetStringEnd(char32[] string) π Source
Finds the position of the last character before the null terminator or any trailing space. This function will not detect @0.