public void Initialize() { OverallInitializer.Initialize(); mPlugin = new ScriptParsingPlugin(); mPlugin.StartUpForTests(); mExpressionParser = new ExpressionParser(); mExpressionParser.LogStringBuilder = mLog; CreateElementRuntime("ExpressionParserTestEntity"); CreateParentElementRuntime(); List<string> languages = new List<string>(); languages.Add("ID"); languages.Add("English"); languages.Add("Spanish"); Dictionary<string, string[]> entries = new Dictionary<string, string[]>(); entries.Add("T_Test", new string[] { "T_Test", "Test in English", "Test in Spanish" }); LocalizationManager.AddDatabase(entries, languages); }
public MethodCallParser(ExpressionParser expressionParser) { mExpressionParser = expressionParser; }
public void StartUpForTests() { SaveFieldsAndPropertiesForType(typeof(PositionedObject)); SaveFieldsAndPropertiesForType(typeof(Sprite)); SaveFieldsAndPropertiesForType(typeof(Text)); SaveFieldsAndPropertiesForType(typeof(Circle)); mExpressionParser = new ExpressionParser(); mExpressionParser.LogStringBuilder = mParserLog; }