QuestWeaver
A procedural quest generator
|
Wraps the quest description texts for the QuestTemplate. More...
#include <QuestTemplate.h>
Public Member Functions | |
TemplateQuestDescription (const std::vector< std::string > &conditions, const std::string &text) noexcept | |
Creates a new description that is valid for the given conditions. More... | |
std::string | GetText (FormatterType format) const noexcept |
Returns the description text containing placeholders for the corresponding QuestPropertyValue. More... | |
bool | SupportsConditions (const std::vector< std::string > &conditions) const noexcept |
Returns true if this description text can be constructed under the given conditions. More... | |
Wraps the quest description texts for the QuestTemplate.
Contains a text from the template files and the required conditions for the text to appear.
Definition at line 39 of file QuestTemplate.h.
|
noexcept |
Creates a new description that is valid for the given conditions.
conditions | The names of the TemplateQuestProperty values required for the description to be used. |
text | the description text containing placeholders for the conditions. A placeholder is a string with a leading %-sign. When the quest is created, each placeholder will be substituted with the corresponding QuestPropertyValue. |
|
noexcept |
Returns the description text containing placeholders for the corresponding QuestPropertyValue.
|
noexcept |
Returns true if this description text can be constructed under the given conditions.
conditions | the sorted list of conditions. |