Changeset View
Changeset View
Standalone View
Standalone View
source/ps/TemplateLoader.h
Show First 20 Lines • Show All 59 Lines • ▼ Show 20 Lines | public: | ||||||||||
* Check if the template XML file exits, without trying to load it. | * Check if the template XML file exits, without trying to load it. | ||||||||||
*/ | */ | ||||||||||
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 std::vector<std::string> ignoredTemplateStarts) const; | ||||||||||
phositUnsubmitted Not Done Inline Actions
phosit: | |||||||||||
/** | |||||||||||
* 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. | ||||||||||
Show All 19 Lines |
Wildfire Games · Phabricator