forked from OpenWF/SpaceNinjaServer
		
	Initial leaderboard system. Currently only tracking races, tho. Reviewed-on: OpenWF/SpaceNinjaServer#1314
		
			
				
	
	
		
			18 lines
		
	
	
		
			380 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			380 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import { Types } from "mongoose";
 | |
| 
 | |
| export interface ILeaderboardEntryDatabase {
 | |
|     leaderboard: string;
 | |
|     ownerId: Types.ObjectId;
 | |
|     displayName: string;
 | |
|     score: number;
 | |
|     guildId?: Types.ObjectId;
 | |
|     expiry: Date;
 | |
| }
 | |
| 
 | |
| export interface ILeaderboardEntryClient {
 | |
|     _id: string; // owner id
 | |
|     s: number; // score
 | |
|     r: number; // rank
 | |
|     n: string; // displayName
 | |
| }
 |