Set legacy api score statistics directly

This commit is contained in:
smoogipoo 2019-03-27 17:08:01 +09:00
parent eceecde0f8
commit d2af2cf21d
1 changed files with 10 additions and 6 deletions

View File

@ -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);
} }
} }
} }