mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-22 11:17:03 +00:00
undefined
This commit is contained in:
@@ -19,6 +19,6 @@ export class Client {
|
||||
public readonly username: string,
|
||||
public readonly ws: WebSocket,
|
||||
public readonly flag: string | undefined,
|
||||
public readonly pattern: string | null,
|
||||
public readonly pattern: string | undefined,
|
||||
) {}
|
||||
}
|
||||
|
||||
@@ -11,7 +11,6 @@ import {
|
||||
GameStartInfo,
|
||||
GameStartInfoSchema,
|
||||
Intent,
|
||||
Player,
|
||||
PlayerRecord,
|
||||
ServerDesyncSchema,
|
||||
ServerPrestartMessageSchema,
|
||||
@@ -291,16 +290,13 @@ export class GameServer {
|
||||
this.gameStartInfo = GameStartInfoSchema.parse({
|
||||
gameID: this.id,
|
||||
config: this.gameConfig,
|
||||
players: this.activeClients.map(
|
||||
(c) =>
|
||||
({
|
||||
playerID: c.playerID,
|
||||
username: c.username,
|
||||
clientID: c.clientID,
|
||||
pattern: c.pattern,
|
||||
flag: c.flag,
|
||||
}) satisfies Player,
|
||||
),
|
||||
players: this.activeClients.map((c) => ({
|
||||
playerID: c.playerID,
|
||||
username: c.username,
|
||||
clientID: c.clientID,
|
||||
pattern: c.pattern,
|
||||
flag: c.flag,
|
||||
})),
|
||||
} satisfies GameStartInfo);
|
||||
|
||||
this.endTurnIntervalID = setInterval(
|
||||
|
||||
Reference in New Issue
Block a user