resonance 1.0.1
Loading...
Searching...
No Matches
scripttemplatemap.h File Reference
#include <map>
#include "os/hxstr.h"
Include dependency graph for scripttemplatemap.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ScriptTemplateMap
 Registry of script call templates by integer identifier. More...

Functions

void RegisterScriptTemplate (int nTemplate, const HxStr &text)
 Register a script call template in g_scriptTemplates.
HxStr Resid2Str (unsigned int nResid)
 Look a script call template up in g_scriptTemplates.

Variables

ScriptTemplateMap g_scriptTemplates
 Every script call template.

Function Documentation

◆ RegisterScriptTemplate()

void RegisterScriptTemplate ( int nTemplate,
const HxStr & text )

Register a script call template in g_scriptTemplates.

RegisterScriptCallTemplates() and the routine at 0x005e1210 are the callers, each passing a temporary built from a literal.

Parameters
nTemplateThe identifier.
textThe template text.
Ghidra address:
NTSC-U/C: 0x00466470
Ghidra address:
PAL: 0x004a3ea0

◆ Resid2Str()

HxStr Resid2Str ( unsigned int nResid)

Look a script call template up in g_scriptTemplates.

CallScriptTemplate(), the script evaluators, and the configuration queries read templates through this routine.

Parameters
nResidThe identifier.
Returns
A copy of the template, or an empty string when none is registered.
Ghidra address:
NTSC-U/C: 0x00466438
Ghidra address:
PAL: 0x004a3e68

Variable Documentation

◆ g_scriptTemplates

ScriptTemplateMap g_scriptTemplates
extern

Every script call template.

Ghidra address:
NTSC-U/C: 0x00773fb0
Ghidra address:
PAL: 0x007506a8