mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 16:20:32 +00:00
18 lines
432 B
TypeScript
18 lines
432 B
TypeScript
import WebSocket from "ws";
|
|
import { ClientID } from "../core/Schemas";
|
|
import { Tick } from "../core/game/Game";
|
|
|
|
export class Client {
|
|
public lastPing: number;
|
|
|
|
public hashes: Map<Tick, number> = new Map();
|
|
|
|
constructor(
|
|
public readonly clientID: ClientID,
|
|
public readonly persistentID: string,
|
|
public readonly ip: string | null,
|
|
public readonly username: string,
|
|
public readonly ws: WebSocket,
|
|
) {}
|
|
}
|