undefined

This commit is contained in:
Aotumuri
2025-05-22 18:01:17 +09:00
parent aad1f63776
commit 460f952847
19 changed files with 40 additions and 44 deletions
+1 -1
View File
@@ -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,
) {}
}
+7 -11
View File
@@ -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(