send zone info on socket connexion

This commit is contained in:
2024-04-20 12:58:53 +00:00
parent 6393ee12dc
commit 64748d26b3
3 changed files with 20 additions and 0 deletions

View File

@@ -75,6 +75,11 @@ export function initTeamSocket() {
sendUpdatedTeamInformations(loginTeamId);
socket.emit("login_response", true);
socket.emit("game_state", game.state)
socket.emit("zone", game.zone.currentZone)
socket.emit("new_zone", {
begin: game.zone.currentStartZone,
end: game.zone.nextZone
})
});
socket.on("logout", () => {