MCPcopy Create free account
hub / github.com/Monogatari/Monogatari / replaceVariables

Method replaceVariables

src/monogatari.ts:1723–1725  ·  view source on GitHub ↗

* @static replaceVariables - Recursively replace all occurrences of * {{variable_name}} with the actual value for that variable name on the * storage object. * * @param {string} statement - The text where to interpolate the variables * * @returns {string} - The text with the interp

(statement: string)

Source from the content-addressed store, hash-verified

1721 * @returns {string} - The text with the interpolated variables
1722 */
1723 static replaceVariables (statement: string): string {
1724 return _replaceVariables (this.asEngine (), statement);
1725 }
1726
1727 /**
1728 * @static saveTo - Save the current game state into a given Slot

Callers 11

applyMethod · 0.80
applyMethod · 0.80
displayNvlDialogMethod · 0.80
characterDialogMethod · 0.80
applyMethod · 0.80
renderMethod · 0.80
renderMethod · 0.80
writeMethod · 0.80
didMountMethod · 0.80
renderMethod · 0.80
prepareActionFunction · 0.80

Calls 1

asEngineMethod · 0.95

Tested by

no test coverage detected