added Serializer & Manager classes
This commit is contained in:
parent
d76110d06b
commit
2219ea93bf
24 changed files with 254 additions and 111 deletions
|
|
@ -1,5 +1,7 @@
|
|||
import {LeaderboardEntry} from "./LeaderboardEntry.js";
|
||||
export type Leaderboard<T> = LeaderboardEntry<T>[];
|
||||
|
||||
export class Leaderboard<T> {
|
||||
content: LeaderboardEntry<T>[];
|
||||
export interface LeaderboardEntry<T> {
|
||||
rank: number,
|
||||
username: string,
|
||||
score: T,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue