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"); }
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"); }
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); }