mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 14:12:54 +08:00
Move logic to handleEvent
This commit is contained in:
parent
a523dfc388
commit
e46e1d96a7
@ -208,6 +208,17 @@ namespace osu.Game.Beatmaps.Formats
|
||||
|
||||
private void handleEvents(Beatmap beatmap, string val)
|
||||
{
|
||||
do
|
||||
{
|
||||
string[] valSplit = val.Split(',');
|
||||
for (int i = 0; i < valSplit.Length; i++)
|
||||
{
|
||||
if (valSplit[i][0] == '$' && variables.ContainsKey(valSplit[i]))
|
||||
valSplit[i] = variables[valSplit[i]];
|
||||
}
|
||||
val = string.Join(",", valSplit);
|
||||
} while (val.IndexOf('$') != -1);
|
||||
|
||||
string[] split = val.Split(',');
|
||||
|
||||
EventType type;
|
||||
@ -415,16 +426,6 @@ namespace osu.Game.Beatmaps.Formats
|
||||
handleDifficulty(beatmap, key, val);
|
||||
break;
|
||||
case Section.Events:
|
||||
do
|
||||
{
|
||||
string[] valSplit = val.Split(',');
|
||||
for (int i = 0; i < valSplit.Length; i++)
|
||||
{
|
||||
if (valSplit[i][0] == '$' && variables.ContainsKey(valSplit[i]))
|
||||
valSplit[i] = variables[valSplit[i]];
|
||||
}
|
||||
val = string.Join(",", valSplit);
|
||||
} while (val.IndexOf('$') != -1);
|
||||
handleEvents(beatmap, val);
|
||||
break;
|
||||
case Section.TimingPoints:
|
||||
|
Loading…
Reference in New Issue
Block a user