mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 08:20:00 +09:00
Let fruits know what index they are in the beatmap to draw a visual representation
This commit is contained in:
@ -16,7 +16,10 @@ namespace osu.Game.Rulesets.Catch.Objects
|
||||
public float X { get; set; }
|
||||
|
||||
public Color4 ComboColour { get; set; } = Color4.Gray;
|
||||
public int ComboIndex { get; set; }
|
||||
|
||||
public int IndexInBeatmap { get; set; }
|
||||
|
||||
public virtual FruitVisualRepresentation VisualRepresentation => (FruitVisualRepresentation)(IndexInBeatmap % 4);
|
||||
|
||||
public virtual bool NewCombo { get; set; }
|
||||
|
||||
@ -44,4 +47,13 @@ namespace osu.Game.Rulesets.Catch.Objects
|
||||
Scale = 1.0f - 0.7f * (difficulty.CircleSize - 5) / 5;
|
||||
}
|
||||
}
|
||||
|
||||
public enum FruitVisualRepresentation
|
||||
{
|
||||
Pear,
|
||||
Grape,
|
||||
Apple,
|
||||
Orange,
|
||||
Banana // banananananannaanana
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user