GlueViewOfficialPlugins.Scripting.ScriptParsingPlugin.StartUpForTests C# (CSharp) Method

StartUpForTests() public method

public StartUpForTests ( ) : void
return void
        public void StartUpForTests()
        {
            SaveFieldsAndPropertiesForType(typeof(PositionedObject));
            SaveFieldsAndPropertiesForType(typeof(Sprite));
            SaveFieldsAndPropertiesForType(typeof(Text));
            SaveFieldsAndPropertiesForType(typeof(Circle));



            mExpressionParser = new ExpressionParser();
            mExpressionParser.LogStringBuilder = mParserLog;

        }

Usage Example

Ejemplo n.º 1
0
        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);
        }