Use seeded RNG for catch explosion animation

The animation is always the same when a replay is rewound or a beatmap is played multiple times.
This commit is contained in:
ekrctb
2021-06-04 19:54:46 +09:00
parent 5512231bf4
commit 8e20f90ed5
3 changed files with 9 additions and 6 deletions

View File

@ -11,13 +11,15 @@ namespace osu.Game.Rulesets.Catch.UI
public readonly float Position;
public readonly float Scale;
public readonly Color4 ObjectColour;
public readonly int RNGSeed;
public HitExplosionEntry(double startTime, float position, float scale, Color4 objectColour)
public HitExplosionEntry(double startTime, float position, float scale, Color4 objectColour, int rngSeed)
{
LifetimeStart = startTime;
Position = position;
Scale = scale;
ObjectColour = objectColour;
RNGSeed = rngSeed;
}
}
}