1
0
mirror of synced 2025-01-31 12:23:50 +01:00
This commit is contained in:
shiibe 2024-06-02 19:35:03 -04:00
parent 35f2448e00
commit e806ae6588
2 changed files with 3 additions and 20 deletions

View File

@ -11,12 +11,6 @@ namespace GameDatabase.Entities
public uint BestRate { get; set; }
public CrownType BestCrown { get; set; }
public ScoreRank BestScoreRank { get; set; }
public uint GoodCount { get; set; }
public uint OkCount { get; set; }
public uint MissCount { get; set; }
public uint ComboCount { get; set; }
public uint HitCount { get; set; }
public uint DrumrollCount { get; set; }
public virtual UserDatum? Ba { get; set; }
}
}

View File

@ -28,6 +28,7 @@ public class SongLeaderboardService : ISongLeaderboardService
.Take(limit)
.ToListAsync();
// get the user data for each score
var leaderboard = new List<SongLeaderboard>();
@ -46,13 +47,7 @@ public class SongLeaderboardService : ISongLeaderboardService
BestScore = score.BestScore,
BestRate = score.BestRate,
BestCrown = score.BestCrown,
BestScoreRank = score.BestScoreRank,
GoodCount = score.GoodCount,
OkCount = score.OkCount,
MissCount = score.MissCount,
ComboCount = score.ComboCount,
HitCount = score.HitCount,
DrumrollCount = score.DrumrollCount
BestScoreRank = score.BestScoreRank
});
}
@ -81,13 +76,7 @@ public class SongLeaderboardService : ISongLeaderboardService
BestScore = currentUserScore.BestScore,
BestRate = currentUserScore.BestRate,
BestCrown = currentUserScore.BestCrown,
BestScoreRank = currentUserScore.BestScoreRank,
GoodCount = currentUserScore.GoodCount,
OkCount = currentUserScore.OkCount,
MissCount = currentUserScore.MissCount,
ComboCount = currentUserScore.ComboCount,
HitCount = currentUserScore.HitCount,
DrumrollCount = currentUserScore.DrumrollCount
BestScoreRank = currentUserScore.BestScoreRank
});
}
}