mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-23 17:16:50 +00:00
fixed
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user