18 #ifndef INCLUDED_TEMPLATELOADER 19 #define INCLUDED_TEMPLATELOADER 93 #endif // INCLUDED_TEMPLATELOADER An entity initialisation parameter node.
Definition: ParamNode.h:148
Template loader: Handles the loading of entity template files for:
Definition: TemplateLoader.h:45
std::vector< std::string > FindPlaceableTemplates(const std::string &path, bool includeSubdirectories, ETemplatesType templatesType, ScriptInterface &scriptInterface) const
Definition: TemplateLoader.cpp:155
const CParamNode & GetTemplateFileData(const std::string &templateName)
Provides the file data for requested template.
Definition: TemplateLoader.cpp:259
void ConstructTemplateActor(const std::string &actorName, CParamNode &out)
Constructs a standard static-decorative-object template for the given actor.
Definition: TemplateLoader.cpp:271
bool LoadTemplateFile(const std::string &templateName, int depth)
(Re)loads the given template, regardless of whether it exists already, and saves into m_TemplateFileD...
Definition: TemplateLoader.cpp:32
ETemplatesType
Definition: TemplateLoader.h:24
static void out(const wchar_t *fmt,...)
Definition: wdbg_sym.cpp:419
Definition: TemplateLoader.h:28
std::vector< std::string > FindTemplates(const std::string &path, bool includeSubdirectories, ETemplatesType templatesType) const
Returns a list of strings that could be validly passed as templateName to LoadTemplateFile.
Definition: TemplateLoader.cpp:238
bool TemplateExists(const std::string &templateName) const
Check if the template XML file exits, without trying to load it.
Definition: TemplateLoader.cpp:148
Definition: TemplateLoader.h:26
Definition: TemplateLoader.h:27
CTemplateLoader()
Definition: TemplateLoader.h:48
Abstraction around a SpiderMonkey JSContext.
Definition: ScriptInterface.h:71
std::map< std::string, CParamNode > m_TemplateFileData
Map from template name (XML filename or special |-separated string) to the most recently loaded non-b...
Definition: TemplateLoader.h:90