Move fruit visual logic from CHO to DrawableFruit

This commit is contained in:
ekrctb
2020-11-27 10:10:05 +09:00
parent c272fda416
commit 5e36fb322a
7 changed files with 77 additions and 42 deletions

View File

@ -58,8 +58,6 @@ namespace osu.Game.Rulesets.Catch.Objects
set => IndexInBeatmapBindable.Value = value;
}
public virtual FruitVisualRepresentation VisualRepresentation => (FruitVisualRepresentation)(IndexInBeatmap % 4);
public virtual bool NewCombo { get; set; }
public int ComboOffset { get; set; }
@ -115,13 +113,4 @@ namespace osu.Game.Rulesets.Catch.Objects
XBindable.BindValueChanged(x => originalX = x.NewValue - xOffset);
}
}
public enum FruitVisualRepresentation
{
Pear,
Grape,
Pineapple,
Raspberry,
Banana // banananananannaanana
}
}