Fix: change score -> record, bestRecord
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
class RankingRecord {
|
||||
|
||||
constructor(rank, userID, userName, score) {
|
||||
constructor(rank, userID, userName, bestRecord) {
|
||||
this.rank = rank;
|
||||
this.userID = userID;
|
||||
this.userName = userName;
|
||||
this.score = score;
|
||||
this.bestRecord = bestRecord;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -44,8 +44,8 @@ class RankingRecordManager {
|
||||
return this.rankingRecords[index].userName;
|
||||
}
|
||||
|
||||
getScoreAt(index) {
|
||||
return this.rankingRecords[index].score;
|
||||
getBestRecordAt(index) {
|
||||
return this.rankingRecords[index].bestRecord;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user