tango_loading.zh#

Variables#

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


const int __TANGO_PAD_SAVENAME = 8 πŸ”— 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.