Quest Machine-specific string constants (tags) and utility methods to replace tags with their runtime values. More...
Static Public Member Functions | |
static StringField | GetIDBySpecifier (QuestMessageParticipant specifier, StringField id) |
Returns the ID string (pre-ReplaceTags) for a participant specifier. | |
static void | AddTagsToDictionary (TagDictionary staticTags, StringField stringField) |
Adds any tags in a StringField to a dictionary. | |
static void | AddTagsToDictionary (TagDictionary staticTags, string s) |
Adds any tags in a string to a dictionary. | |
static void | AddTagValuesToDictionary (TagDictionary tagDictionary, TextTable textTable) |
Associates tags in a tag dictionary with values from a primary text table (i.e., quest giver's text table), or failing that QuestMachine's default text table, or failing that the tag name itself. | |
static string | ReplaceTags (StringField stringField, Quest quest) |
Replaces the tags in a StringField. | |
static string | ReplaceTags (string s, Quest quest) |
Replaces the tags in a string. | |
static string | SecondsToTimeString (int seconds) |
Converts seconds into DD HH:MM:SS time format. | |
static void | AddQuestTagsToTextTable (Quest quest, TextTable textTable) |
static void | AddQuestTagsToTextTable (List< QuestNode > nodeList, TextTable textTable) |
static void | AddQuestTagsToTextTable (QuestNode node, TextTable textTable) |
static void | AddQuestTagsToTextTable (List< QuestStateInfo > stateInfoList, TextTable textTable) |
static void | AddQuestTagsToTextTable (QuestStateInfo stateInfo, TextTable textTable) |
static void | AddQuestTagsToTextTable (QuestContentSet contentSet, TextTable textTable) |
static void | AddQuestTagsToTextTable (List< QuestContent > contentList, TextTable textTable) |
static void | AddQuestTagsToTextTable (QuestContent content, TextTable textTable) |
static void | AddQuestTagsToTextTable (StringField stringField, TextTable textTable) |
static void | AddQuestTagsToTextTable (string s, TextTable textTable) |
Static Public Attributes | |
const string | TagPrefix = @"{" |
All tags start with an open brace. | |
const string | CounterValueTagPrefix = @"{#" |
All counter value tags start with an open brace and hash sign. | |
const string | CounterMinValueTagPrefix = @"{<#" |
All counter min value tags start with an open brace and less-than sign. | |
const string | CounterMaxValueTagPrefix = @"{>#" |
All counter max value tags start with an open brace and greater-than sign. | |
const string | CounterTimeValueTagPrefix = @"{:" |
Tag to show a counter value as HH:MM:SS time. | |
const string | CounterTagQuestNameSeparator = @":" |
Separator character between quest name and counter name. | |
const string | QUESTID = @"{QUESTID}" |
The quest's ID. | |
const string | QUEST = @"{QUEST}" |
The quest's title. | |
const string | QUESTGIVER = @"{QUESTGIVER}" |
The display name of the quest's giver. | |
const string | QUESTGIVERID = @"{QUESTGIVERID}" |
The ID of the quest's giver. | |
const string | QUESTER = @"{QUESTER}" |
The display name of the quester. | |
const string | QUESTERID = @"{QUESTERID}" |
The ID of the quest's quester. | |
const string | GREETERID = @"{GREETERID}" |
The ID of the quester who is greeting the quest giver. | |
const string | GREETER = @"{GREETER}" |
The display name of the quester who is greeting the quest giver. | |
const string | DOMAIN = @"{DOMAIN}" |
const string | ACTION = @"{ACTION}" |
const string | TARGETDESCRIPTOR = @"{TARGETDESCRIPTOR}" |
const string | TARGET = @"{TARGET}" |
const string | TARGETS = @"{TARGETS}" |
const string | COUNTERGOAL = @"{COUNTERGOAL}" |
const string | REWARD = @"{REWARD}" |
static StringField | QuestGiverIDStringField = new StringField(QUESTGIVERID) |
static StringField | QuesterIDStringField = new StringField(QUESTERID) |
Properties | |
static TextTable | fallbackTextTable [get, set] |
Quest Machine-specific string constants (tags) and utility methods to replace tags with their runtime values.
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
Adds any tags in a string to a dictionary.
staticTags | Dictionary. |
stringField | string to scan for tags. |
|
inlinestatic |
Adds any tags in a StringField to a dictionary.
staticTags | Dictionary. |
stringField | StringField to scan for tags. |
|
inlinestatic |
Associates tags in a tag dictionary with values from a primary text table (i.e., quest giver's text table), or failing that QuestMachine's default text table, or failing that the tag name itself.
Leaves ID tags such as {QUESTERID} untouched.
tagDictionary | The tag dictionary containing tags that need values assigned. |
textTable | The primary text table from which to look up values. |
|
inlinestatic |
Returns the ID string (pre-ReplaceTags) for a participant specifier.
specifier | |
id |
|
inlinestatic |
Replaces the tags in a string.
|
inlinestatic |
Replaces the tags in a StringField.
|
inlinestatic |
Converts seconds into DD HH:MM:SS time format.
|
static |
|
static |
|
static |
All counter max value tags start with an open brace and greater-than sign.
|
static |
All counter min value tags start with an open brace and less-than sign.
|
static |
Separator character between quest name and counter name.
|
static |
Tag to show a counter value as HH:MM:SS time.
Format can be {:counter} or {:questID:counter}.
Examples:
|
static |
All counter value tags start with an open brace and hash sign.
Format can be {#counter} or {#questID:counter}.
Examples:
|
static |
|
static |
The display name of the quester who is greeting the quest giver.
|
static |
The ID of the quester who is greeting the quest giver.
|
static |
The quest's title.
|
static |
The display name of the quester.
|
static |
The ID of the quest's quester.
|
static |
|
static |
The display name of the quest's giver.
|
static |
The ID of the quest's giver.
|
static |
|
static |
The quest's ID.
|
static |
|
static |
All tags start with an open brace.
Examples:
|
static |
|
static |
|
static |
|
staticgetset |