Changeset View
Changeset View
Standalone View
Standalone View
source/ps/TemplateLoader.h
Show First 20 Lines • Show All 61 Lines • ▼ Show 20 Lines | public: | ||||
bool TemplateExists(const std::string& templateName) const; | bool TemplateExists(const std::string& templateName) const; | ||||
/** | /** | ||||
* Returns a list of strings that could be validly passed as @c templateName to LoadTemplateFile. | * Returns a list of strings that could be validly passed as @c templateName to LoadTemplateFile. | ||||
* (This includes "actor|foo" etc names). | * (This includes "actor|foo" etc names). | ||||
*/ | */ | ||||
std::vector<std::string> FindTemplates(const std::string& path, bool includeSubdirectories, ETemplatesType templatesType) const; | std::vector<std::string> FindTemplates(const std::string& path, bool includeSubdirectories, ETemplatesType templatesType) const; | ||||
/** | |||||
* Returns a list of strings that could validly be passed as @c templateName to LoadTemplateFile. | |||||
* Not ignoring any special directories. | |||||
*/ | |||||
std::vector<std::string> FindTemplatesUnrestricted(const std::string& path, bool includeSubdirectories) const; | |||||
private: | private: | ||||
/** | /** | ||||
* (Re)loads the given template, regardless of whether it exists already, | * (Re)loads the given template, regardless of whether it exists already, | ||||
* and saves into m_TemplateFileData. Also loads any parents that are not yet | * and saves into m_TemplateFileData. Also loads any parents that are not yet | ||||
* loaded. Returns false on error. | * loaded. Returns false on error. | ||||
* @param templateName - XML filename to load (may be a |-separated string) | * @param templateName - XML filename to load (may be a |-separated string) | ||||
* @param compositing - whether this template is an intermediary layer in a |-separated string. | * @param compositing - whether this template is an intermediary layer in a |-separated string. | ||||
* @param depth - the current recursion depth. | * @param depth - the current recursion depth. | ||||
Show All 18 Lines |
Wildfire Games · Phabricator