public void InitAnimationScripting()
        {
            AnimationManager = new ScriptingManager();

            AnimationManager.functions["setKey"] = new Action <int, int, float, float, float, float>(AddAnimationKey);


            AnimationManager.EnumParam["setKey"] = new Dictionary <string, int>(StringComparer.InvariantCultureIgnoreCase)
            {
                {
                    "Position", 1
                },
                {
                    "Rotation", 2
                },
                {
                    "Scale", 3
                }
            };

            AnimationManager.functions["reset"] = new Action(ResetAnimator);

            AnimationManager.functions["setProperty"] = new Action <int, int>(SetProperty);

            AnimationManager.EnumParam["setProperty"] = new Dictionary <string, int>(StringComparer.InvariantCultureIgnoreCase)
            {
                {
                    "None", 0
                },
                {
                    "Endless", 1
                },
                {
                    "True", 1
                },
                {
                    "False", 0
                },
                {
                    "No", 0
                },
                {
                    "Yes", 1
                }
            };

            AnimationManager.ProcessSyntax();
        }
        public void InitScripting()
        {
            ScriptingManager = new ScriptingManager();

            ScriptingManager.functions["create"] = new Action <int>(CreateEntity);
            ScriptingManager.EnumParam["create"] = new Dictionary <string, int>(StringComparer.InvariantCultureIgnoreCase)
            {
                {
                    "None", 0
                },
                {
                    "Box", 1
                },
                {
                    "Cube", 1
                },
            };

            ScriptingManager.functions["loadFromModel"] = new Action <string>(LoadFromModel);

            //ScriptingManager.functions["создать"] = ScriptingManager.functions["create"];
            //ScriptingManager.EnumParam["создать"] = ScriptingManager.EnumParam["create"];

            ScriptingManager.functions["move"] = new Action <float, float, float>(MoveEntity);

            ScriptingManager.functions["select"] = new Action <int>(SelectEntity);

            ScriptingManager.functions["scale"] = new Action <float, float, float>(ScaleEntity);

            ScriptingManager.functions["rotate"] = new Action <float, float, float>(RotateEntity);

            ScriptingManager.functions["incDec"] = new Action <float, float, float>(IncreaseDecreaseEntity);

            ScriptingManager.functions["delete"] = new Action(DeleteEntity1);

            ScriptingManager.functions["setTexture"] = new Action <string>(SetEntityTexture);

            ScriptingManager.functions["translate"] = new Action <float, float, float>(TranslateEntity);

            ScriptingManager.functions["name"] = new Action <string>(ChangeName);

            ScriptingManager.functions["setColor"] = new Action <int, int, int>(ChangeEntity_Color);

            ScriptingManager.functions["startAnimation"] = new Action(StartAnimation);

            ScriptingManager.functions["clone"] = new Action(Copy);

            ScriptingManager.functions["next"] = new Action(Next);

            ScriptingManager.functions["prev"] = new Action(Prev);

            //UI language

            ScriptingManager.functions["clearUI"] = new Action(CleanUI);

            ScriptingManager.functions["initUI"] = new Action(InitializeUI);

            ScriptingManager.functions["addText"] = new Action <string, string, int, int, int, int, int>(AddText2D);

            ScriptingManager.ProcessSyntax();
        }