public Wheel(Balder.Core.Application application, WheelType type) { this._application = application; this._roll = new Sprite(); this._roll.AddRange(new ImageRange { FrameCount = 10, ArchivePath = this.GetAssetName(type), FileName = this.GetFileName(type), FileType = "png", NumberingFormat = "{0:00000}", ImageWidth = 32, ImageHeight = 64, }); this._roll.Position = this.GetPosition(type); this._roll.Visibility = Visibility.Collapsed; application.Viewport.Scene.Nodes.Add(this._roll); this.Symbol = new Symbol(type); application.Viewport.Scene.Nodes.Add(this.Symbol); this.Symbol.Visibility = Visibility.Collapsed; this.IsHeld = false; this.WheelType = type; }
public override bool StartSpecialSkill(Cooldown sk) { if (Balder.Skill != null && sk.Skill.IconName == Balder.Skill.IconName) { Balder.Start(sk.Duration); return(true); } if (Bombardment.Skill != null && sk.Skill.IconName == Bombardment.Skill.IconName) { Bombardment.Start(sk.Duration); return(true); } if (ModularSystem.Cooldown.Skill != null && sk.Skill.IconName == ModularSystem.Cooldown.Skill.IconName) { ModularSystem.Cooldown.Start(sk.Duration); return(true); } return(false); }
protected override void BeforeRendering(Balder.Core.Display.Viewport viewport, Balder.Core.Math.Matrix view, Balder.Core.Math.Matrix projection, Balder.Core.Math.Matrix world) { while( _addedItems.Count > 0 ) { var item = _addedItems.Pop(); var node = _templateContent.Clone(); AddItemAsChild(item, node); } base.BeforeRendering(viewport, view, projection, world); }
public override void Dispose() { Bombardment.Dispose(); Balder.Dispose(); ModularSystem.Dispose(); }