예제 #1
0
        protected override void OnNewDrawableHitObject(DrawableHitObject drawableHitObject)
        {
            base.OnNewDrawableHitObject(drawableHitObject);

            var taikoObject = (DrawableTaikoHitObject)drawableHitObject;

            topLevelHitContainer.Add(taikoObject.CreateProxiedContent());
        }
예제 #2
0
        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;
            }
        }
예제 #3
0
        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()}");
            }
        }
예제 #4
0
파일: RushPlayfield.cs 프로젝트: xE0F9/rush
        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);
        }