This commit is contained in:
Aotumuri
2025-04-26 13:50:07 +09:00
parent fab63c73bf
commit 43cd037ada
5 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -202,8 +202,8 @@ class Client {
consolex.log("joining lobby, stopping existing game");
this.gameStop();
}
console.log("territoryPattern", localStorage.getItem("territoryPattern"));
const config = await getServerConfigFromClient();
this.gameStop = joinLobby(
{
gameID: lobby.gameID,
+1 -1
View File
@@ -339,7 +339,7 @@ export class Transport {
persistentID: this.lobbyConfig.persistentID,
username: this.lobbyConfig.playerName,
flag: this.lobbyConfig.flag,
pattern: localStorage.getItem("territoryPattern"),
pattern: this.lobbyConfig.pattern,
}),
),
);
+1
View File
@@ -17,5 +17,6 @@ export class Client {
public readonly username: string,
public readonly ws: WebSocket,
public readonly flag: string | null,
public readonly pattern: string | null,
) {}
}
+1
View File
@@ -273,6 +273,7 @@ export class GameServer {
playerID: c.playerID,
username: c.username,
clientID: c.clientID,
pattern: c.pattern,
flag: c.flag,
})),
});
+1
View File
@@ -301,6 +301,7 @@ export function startWorker() {
clientMsg.username,
ws,
clientMsg.flag,
clientMsg.pattern,
);
const wasFound = gm.addClient(