Bestenliste und Scores gespeichert und beim Ende eines Spiel Rang anzeige
This commit is contained in:
12
backend/src/Database/ScoreManager/Score.js
Normal file
12
backend/src/Database/ScoreManager/Score.js
Normal file
@@ -0,0 +1,12 @@
|
||||
class Score{
|
||||
/** @param {UserManager} usermanager */
|
||||
constructor(scoreJson){
|
||||
this.id = scoreJson.id;
|
||||
this.user1ID = scoreJson.user1;
|
||||
this.user2ID = scoreJson.user2;
|
||||
this.score = scoreJson.score;
|
||||
this.time = new Date(scoreJson.time);
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = Score;
|
||||
Reference in New Issue
Block a user