Remove "fruit visual representation" state from DrawableFruit

Instead, skin pieces compute visual representation from `IndexInBeatmap`.
This commit is contained in:
ekrctb
2021-06-07 14:49:37 +09:00
parent 166e4565be
commit ac5c55bd2c
10 changed files with 20 additions and 47 deletions

View File

@ -9,5 +9,7 @@ namespace osu.Game.Rulesets.Catch.Objects
public class Fruit : PalpableCatchHitObject
{
public override Judgement CreateJudgement() => new CatchJudgement();
public static FruitVisualRepresentation GetVisualRepresentation(int indexInBeatmap) => (FruitVisualRepresentation)(indexInBeatmap % 4);
}
}