mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-02 16:08:09 +00:00
0a40bcebf0
## Description: Enable the `sort-imports` eslint rule. Fixes #1784 ## Please complete the following: - [x] I have added screenshots for all UI updates - [x] I process any text displayed to the user through translateText() and I've added it to the en.json file - [x] I have added relevant tests to the test directory - [x] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced
26 lines
788 B
TypeScript
26 lines
788 B
TypeScript
import { ClientID, Winner } from "../core/Schemas";
|
|
import { Tick } from "../core/game/Game";
|
|
import { TokenPayload } from "../core/ApiSchemas";
|
|
import WebSocket from "ws";
|
|
|
|
export class Client {
|
|
public lastPing: number = Date.now();
|
|
|
|
public hashes: Map<Tick, number> = new Map();
|
|
|
|
public reportedWinner: Winner | null = null;
|
|
|
|
constructor(
|
|
public readonly clientID: ClientID,
|
|
public readonly persistentID: string,
|
|
public readonly claims: TokenPayload | null,
|
|
public readonly roles: string[] | undefined,
|
|
public readonly flares: string[] | undefined,
|
|
public readonly ip: string,
|
|
public readonly username: string,
|
|
public readonly ws: WebSocket,
|
|
public readonly flag: string | undefined,
|
|
public readonly pattern: string | undefined,
|
|
) {}
|
|
}
|