18#ifndef INCLUDED_TEMPLATELOADER
19#define INCLUDED_TEMPLATELOADER
24#include <unordered_map>
ETemplatesType
Definition: TemplateLoader.h:27
@ ALL_TEMPLATES
Definition: TemplateLoader.h:28
@ SIMULATION_TEMPLATES
Definition: TemplateLoader.h:30
@ ACTOR_TEMPLATES
Definition: TemplateLoader.h:29
An entity initialisation parameter node.
Definition: ParamNode.h:151
Template loader: Handles the loading of entity template files for:
Definition: TemplateLoader.h:48
std::unordered_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:98
bool TemplateExists(const std::string &templateName) const
Check if the template XML file exits, without trying to load it.
Definition: TemplateLoader.cpp:134
const CParamNode & GetTemplateFileData(const std::string &templateName)
Provides the file data for requested template.
Definition: TemplateLoader.cpp:173
std::vector< std::string > FindTemplatesUnrestricted(const std::string &path, bool includeSubdirectories) const
Returns a list of strings that could validly be passed as templateName to LoadTemplateFile.
Definition: TemplateLoader.cpp:162
void ConstructTemplateActor(std::string_view actorName, CParamNode &out)
Constructs a standard static-decorative-object template for the given actor.
Definition: TemplateLoader.cpp:187
CTemplateLoader()
Definition: TemplateLoader.h:50
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:141
bool LoadTemplateFile(CParamNode &node, std::string_view templateName, bool compositing, int depth)
(Re)loads the given template, regardless of whether it exists already, and saves into m_TemplateFileD...
Definition: TemplateLoader.cpp:32
static void out(const wchar_t *fmt,...)
Definition: wdbg_sym.cpp:407