resonance 1.0.1
Loading...
Searching...
No Matches
scripttemplatemap.h
Go to the documentation of this file.
1#pragma once
2
3#include <map>
4
5#include "os/hxstr.h"
6
18public:
27 void Add(int nTemplate, const HxStr &text);
28
37 HxStr Find(int nTemplate);
38
39private:
40 std::map<int, HxStr> mTemplates; // +0x00
41};
42
50
62void RegisterScriptTemplate(int nTemplate, const HxStr &text);
63
75HxStr Resid2Str(unsigned int nResid);
Heap-allocated NUL-terminated string.
Definition hxstr.h:41
Registry of script call templates by integer identifier.
Definition scripttemplatemap.h:17
HxStr Find(int nTemplate)
Look a template up.
void Add(int nTemplate, const HxStr &text)
Register a template, retaining any template already registered under the identifier.
ScriptTemplateMap g_scriptTemplates
Every script call template.
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.