Esempio n. 1
0
        public override bool Remove(DrawableHitObject h)
        {
            switch (h)
            {
            case DrawableBarLine barline:
                return(barlineContainer.Remove(barline));

            case DrawableTaikoHitObject _:
                h.OnNewResult -= OnNewResult;
                // todo: consider tidying of proxied content if required.
                return(base.Remove(h));

            default:
                throw new ArgumentException($"Unsupported {nameof(DrawableHitObject)} type");
            }
        }
 protected void RemoveHitObject(DrawableHitObject hitObject)
 => AddStep("remove from SHOC", () => hitObjectContainer.Remove(hitObject));