resonance 1.0.1
Loading...
Searching...
No Matches
ScriptTemplateMap Class Reference

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

#include <scripttemplatemap.h>

Public Member Functions

void Add (int nTemplate, const HxStr &text)
 Register a template, retaining any template already registered under the identifier.
HxStr Find (int nTemplate)
 Look a template up.

Detailed Description

Registry of script call templates by integer identifier.

The class emits no RTTI and the image records no name for it, so the name is inferred from the one instance, g_scriptTemplates, and what RegisterScriptCallTemplates() stores there. Its unit (static initialiser 0x005a57c8) holds the instance, the two members below, and the std::map<int, HxStr> instantiations they reach, which bill their nodes to stl_maptree. The member is the whole object: the constructor at 0x005a4e70 and the destructor at 0x005a4ff8 build and tear down nothing but the map, and both are compiler-generated.

Member Function Documentation

◆ Add()

void ScriptTemplateMap::Add ( int nTemplate,
const HxStr & text )

Register a template, retaining any template already registered under the identifier.

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

◆ Find()

HxStr ScriptTemplateMap::Find ( int nTemplate)

Look a template up.

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

The documentation for this class was generated from the following file: