Exemplo n.º 1
0
        public override void Initialize(InitializeParameters p)
        {
            base.Initialize(p);

			PerfMon.Start("Other-KeyFrame");
			
            animation = (XNumAnimation)this.Parent;

            GenerateValueReaders();
            this.timeReader = Compiler.CompileExpression<double>(this.Parent, this.Time);
			this.CurrentTime = 0f;
		
			PerfMon.Stop("Other-KeyFrame");
        }
Exemplo n.º 2
0
        public override void Initialize(InitializeParameters p)
        {
            base.Initialize(p);

            PerfMon.Start("Other-KeyFrame");

            animation = (XNumAnimation)this.Parent;

            GenerateValueReaders();
            this.timeReader  = Compiler.CompileExpression <double>(this.Parent, this.Time);
            this.CurrentTime = 0f;

            PerfMon.Stop("Other-KeyFrame");
        }
Exemplo n.º 3
0
        public void Init()
        {
            Compiler.Instance.VariableStorage.Clear();

            level = new XLevel() { Id = "lvlTest", Subcomponents = new XObjectCollection() };
            system = new XSystem { Id="system" };
            block = new XBlock() { Id = "blkBlock01", Bounds = new RectangleF(10, 10, 20, 20) };
            numAnimation = new XNumAnimation() { Id = "anmNum01", Subcomponents = new XObjectCollection() };
            boolTrigger = new XBoolTrigger();

            numAnimation.Subcomponents.Add(boolTrigger);

            level.Subcomponents.Add(system);
            level.Subcomponents.Add(block);
            level.Subcomponents.Add(numAnimation);
        }