mirror of
https://github.com/osukey/osukey.git
synced 2025-05-15 02:27:33 +09:00
Set legacy api score statistics directly
This commit is contained in:
parent
eceecde0f8
commit
d2af2cf21d
@ -74,23 +74,27 @@ namespace osu.Game.Online.API.Requests.Responses
|
|||||||
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…
x
Reference in New Issue
Block a user