mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-25 04:04:36 +00:00
test
This commit is contained in:
+1
-1
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
}),
|
||||
),
|
||||
);
|
||||
|
||||
@@ -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,
|
||||
) {}
|
||||
}
|
||||
|
||||
@@ -273,6 +273,7 @@ export class GameServer {
|
||||
playerID: c.playerID,
|
||||
username: c.username,
|
||||
clientID: c.clientID,
|
||||
pattern: c.pattern,
|
||||
flag: c.flag,
|
||||
})),
|
||||
});
|
||||
|
||||
@@ -301,6 +301,7 @@ export function startWorker() {
|
||||
clientMsg.username,
|
||||
ws,
|
||||
clientMsg.flag,
|
||||
clientMsg.pattern,
|
||||
);
|
||||
|
||||
const wasFound = gm.addClient(
|
||||
|
||||
Reference in New Issue
Block a user