Exemple #1
0
        /// <summary>
        ///     Change objects into drawable
        /// </summary>
        /// <param name="h"></param>
        /// <returns></returns>
        protected override DrawableHitObject <BaseRpObject, RpJudgement> GetVisualRepresentation(BaseRpObject h)
        {
            DrawableHitObject <BaseRpObject, RpJudgement> returnObject = null;

            if (h is RpHitObject)
            {
                returnObject = new DrawableRpHitObject((RpHitObject)h);
            }
            if (h is RpHoldObject)
            {
                returnObject = new DrawableRpHoldObject((RpHoldObject)h);
            }
            if (h is RpContainerLineHoldObject)
            {
                returnObject = new DrawableRpContainerLineHoldObject((RpContainerLineHoldObject)h);
            }
            if (h is RpContainerLineGroup)
            {
                returnObject = new DrawableRpContainerLineGroup((RpContainerLineGroup)h);
            }

            //adding Mods
            _modProcessor.ProcessHitObject(returnObject);

            return(returnObject);
        }
Exemple #2
0
 /// <summary>
 ///     增加物件
 /// </summary>
 /// <param name="drawableHitObject"></param>
 public void AddObject(DrawableRpContainerLineHoldObject drawableHitObject)
 {
     ContainerLongPressDrawComponent.Add(drawableHitObject);
 }
Exemple #3
0
 /// <summary>
 ///     增加物件
 /// </summary>
 public void Add(DrawableRpContainerLineHoldObject drawableHitObject)
 {
     ListPressObject.Add(drawableHitObject);
 }