protected override void OnNewDrawableHitObject(DrawableHitObject drawableHitObject) { base.OnNewDrawableHitObject(drawableHitObject); var taikoObject = (DrawableTaikoHitObject)drawableHitObject; topLevelHitContainer.Add(taikoObject.CreateProxiedContent()); }
public override void Add(DrawableHitObject h) { h.OnNewResult += OnNewResult; base.Add(h); switch (h) { case DrawableBarLine barline: barlineContainer.Add(barline.CreateProxy()); break; case DrawableTaikoHitObject taikoObject: topLevelHitContainer.Add(taikoObject.CreateProxiedContent()); break; } }
public override void Add(DrawableHitObject h) { switch (h) { case DrawableBarLine barLine: barLinePlayfield.Add(barLine); break; case DrawableTaikoHitObject taikoObject: h.OnNewResult += OnNewResult; topLevelHitContainer.Add(taikoObject.CreateProxiedContent()); base.Add(h); break; default: throw new ArgumentException($"Unsupported {nameof(DrawableHitObject)} type: {h.GetType()}"); } }
public override void Add(DrawableHitObject hitObject) { hitObject.OnNewResult += onNewResult; if (hitObject is DrawableMiniBoss drawableMiniBoss) { drawableMiniBoss.Attacked += onMiniBossAttacked; } switch (hitObject) { case DrawableRushHitObject drho: proxiedHitObjects.Add(drho.CreateProxiedContent()); break; } base.Add(hitObject); }