/// <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); }
public override void Reset() { hitObjectCreatorScript = new RpHitObjectCreatorScript(); containerLineGroup = new DrawableRpContainerLineGroup(hitObjectCreatorScript.CreateRpContainerLineGroup(new Vector2(), 0, 10000)); AddStep("Add ContainerLine", addLine); AddStep("Delete ContainerLine", deleteLine); }
public static void AddDrawableRpContainerLine(this IHasGameField field, DrawableRpContainerLine drawableRpContainerLine) { DrawableRpContainerLineGroup drawableRpContainerLineGroup = GeDrawableByRpObject <DrawableRpContainerLineGroup>(field, drawableRpContainerLine.HitObject.ParentObject); drawableRpContainerLineGroup.GameFieldContainer.Add(drawableRpContainerLine); drawableRpContainerLineGroup.AddObject(drawableRpContainerLine); drawableRpContainerLine.ParentObject = drawableRpContainerLineGroup; // field.ListDrawableObject.Add(drawableRpContainerLine); }
public static void AddDrawableRpContainerLineGroup(this IHasGameField field, DrawableRpContainerLineGroup drawableRpContainerLineGroup) { Container container = new Container(); drawableRpContainerLineGroup.GameFieldContainer = container; container.Position = drawableRpContainerLineGroup.HitObject.Position; container.Rotation = drawableRpContainerLineGroup.HitObject.Rotation; container.Add(drawableRpContainerLineGroup); // field.ListDrawableObject.Add(drawableRpContainerLineGroup); field.ListGroupContainer.Add(container); }
/// <summary> /// ����Container /// </summary> public void AddContainer(DrawableRpContainerLineGroup drawableContainer) { _listContainer.Add(drawableContainer); Add(drawableContainer); }