mirror of https://github.com/ppy/osu
Set legacy api score statistics directly
This commit is contained in:
parent
eceecde0f8
commit
d2af2cf21d
|
@ -74,23 +74,27 @@ private Dictionary<string, int> jsonStats
|
||||||
HitResult newKey;
|
HitResult newKey;
|
||||||
switch (kvp.Key)
|
switch (kvp.Key)
|
||||||
{
|
{
|
||||||
|
case @"count_geki":
|
||||||
|
CountGeki = kvp.Value;
|
||||||
|
break;
|
||||||
case @"count_300":
|
case @"count_300":
|
||||||
newKey = HitResult.Great;
|
Count300 = kvp.Value;
|
||||||
|
break;
|
||||||
|
case @"count_katu":
|
||||||
|
CountKatu = kvp.Value;
|
||||||
break;
|
break;
|
||||||
case @"count_100":
|
case @"count_100":
|
||||||
newKey = HitResult.Good;
|
Count100 = kvp.Value;
|
||||||
break;
|
break;
|
||||||
case @"count_50":
|
case @"count_50":
|
||||||
newKey = HitResult.Meh;
|
Count50 = kvp.Value;
|
||||||
break;
|
break;
|
||||||
case @"count_miss":
|
case @"count_miss":
|
||||||
newKey = HitResult.Miss;
|
CountMiss = kvp.Value;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
Statistics.Add(newKey, kvp.Value);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue