keyword + animation
This commit is contained in:
@@ -13,11 +13,7 @@ namespace Continentis.MainGame
|
||||
static CardTextInterpreter()
|
||||
{
|
||||
TextInterpreter = new Interpreter();
|
||||
|
||||
TextInterpreter.SetFunction("Value", new Func<float, string>((cv) => DynamicTextInterpreter.GetValue(cv, false)));
|
||||
TextInterpreter.SetFunction("Value", new Func<float, float, string>((cv, bv) => DynamicTextInterpreter.GetValue(cv, bv, true, false)));
|
||||
TextInterpreter.SetFunction("Value", new Func<float, float, bool, string>((cv, bv, high) => DynamicTextInterpreter.GetValue(cv, bv, high, false)));
|
||||
TextInterpreter.SetFunction("Value", new Func<float, float, bool, bool, string>((cv, bv, high, percent) => DynamicTextInterpreter.GetValue(cv, bv, high, percent)));
|
||||
DynamicTextInterpreter.InitializeInterpreter(ref TextInterpreter);
|
||||
|
||||
foreach (KeyValuePair<string, InterpretedKeyword> keyword in MainGameManager.Instance.keywordData.interpretedKeywords)
|
||||
{
|
||||
@@ -27,7 +23,7 @@ namespace Continentis.MainGame
|
||||
|
||||
public static void InterpretText(CardLogicBase card, bool overrideDescription = false)
|
||||
{
|
||||
card.contentSubmodule.keywords.Clear();
|
||||
//card.contentSubmodule.keywords.Clear();
|
||||
|
||||
foreach (KeyValuePair<string, float> attribute in card.attributeSubmodule.attributeGroup.current)
|
||||
{
|
||||
@@ -40,7 +36,7 @@ namespace Continentis.MainGame
|
||||
TextInterpreter.SetFunction("Attribute", new Func<string, bool, bool, string>((name, high, percent) => GetAttribute(card, name, high, percent)));
|
||||
|
||||
string descriptionToParse = card.contentSubmodule.originalFunctionText;
|
||||
string result = DynamicTextInterpreter.Parse(TextInterpreter, descriptionToParse, card.contentSubmodule.keywords, card.contentSubmodule.hintKeywords);
|
||||
string result = DynamicTextInterpreter.Parse(TextInterpreter, descriptionToParse);
|
||||
|
||||
card.contentSubmodule.interpretedFunctionText = result;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user