This commit is contained in:
Aotumuri
2025-05-21 21:09:20 +09:00
parent 1f56c46331
commit f14089c764
+11 -7
View File
@@ -11,6 +11,7 @@ import {
GameStartInfo,
GameStartInfoSchema,
Intent,
Player,
PlayerRecord,
ServerDesyncSchema,
ServerPrestartMessageSchema,
@@ -290,13 +291,16 @@ 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,
})),
players: this.activeClients.map(
(c) =>
({
playerID: c.playerID,
username: c.username,
clientID: c.clientID,
pattern: c.pattern,
flag: c.flag,
}) satisfies Player,
),
} satisfies GameStartInfo);
this.endTurnIntervalID = setInterval(