mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-06 05:48:00 +03:00
Add customRatings support
This commit is contained in:
Vendored
+4
-4
@@ -463,13 +463,13 @@ export interface PublicUserDocument extends MongoDBDocument {
|
||||
};
|
||||
clan: string | null;
|
||||
}
|
||||
export interface UserGameStats<T extends Game = Game> extends MongoDBDocument {
|
||||
export interface UserGameStats<I extends IDStrings> extends MongoDBDocument {
|
||||
userID: integer;
|
||||
game: T;
|
||||
playtype: Playtypes[T];
|
||||
game: IDStringToGame[I];
|
||||
playtype: IDStringToPlaytype[I];
|
||||
rating: number;
|
||||
lampRating: number;
|
||||
customRatings: Record<string, number>;
|
||||
customRatings: GameSpecificCalcLookup[I];
|
||||
classes: Record<string, string>;
|
||||
}
|
||||
/**
|
||||
|
||||
+5
-5
@@ -636,14 +636,14 @@ export interface PublicUserDocument extends MongoDBDocument {
|
||||
clan: string | null;
|
||||
}
|
||||
|
||||
export interface UserGameStats<T extends Game = Game> extends MongoDBDocument {
|
||||
export interface UserGameStats<I extends IDStrings> extends MongoDBDocument {
|
||||
userID: integer;
|
||||
game: T;
|
||||
playtype: Playtypes[T];
|
||||
game: IDStringToGame[I];
|
||||
playtype: IDStringToPlaytype[I];
|
||||
rating: number;
|
||||
lampRating: number;
|
||||
customRatings: Record<string, number>;
|
||||
classes: Record<string, string>;
|
||||
customRatings: GameSpecificCalcLookup[I];
|
||||
classes: Record<string, string>; // bad
|
||||
}
|
||||
|
||||
// the bottom set of types are horrifically confusing.
|
||||
|
||||
Reference in New Issue
Block a user