1
0
mirror of synced 2024-12-19 01:46:09 +01:00
TaikoLocalServer/GameDatabase/Entities/SongBestDatumMethods.cs

29 lines
589 B
C#
Raw Normal View History

using SharedProject.Enums;
namespace GameDatabase.Entities;
public partial class SongBestDatum
{
public void UpdateBestData(CrownType crown, uint scoreRank, uint playScore, uint scoreRate)
{
if (BestCrown < crown)
{
BestCrown = crown;
}
2022-10-26 18:42:41 +02:00
if ((uint)BestScoreRank < scoreRank)
{
2022-10-26 18:42:41 +02:00
BestScoreRank = (ScoreRank)scoreRank;
}
2022-10-26 18:42:41 +02:00
if (BestScore < playScore)
{
BestScore = playScore;
}
2022-10-26 18:42:41 +02:00
if (BestRate < scoreRate)
{
BestRate = scoreRate;
}
}
}