mirror of
https://git.rezel.net/LudoTech/traque.git
synced 2026-02-09 10:20:16 +01:00
send zone info on socket connexion
This commit is contained in:
@@ -46,6 +46,11 @@ export function initAdminSocketHandler() {
|
||||
socket.emit("game_state", game.state)
|
||||
//Other settings that need initialization
|
||||
socket.emit("zone_settings", game.zone.zoneSettings)
|
||||
socket.emit("zone", game.zone.currentZone)
|
||||
socket.emit("new_zone", {
|
||||
begin: game.zone.currentStartZone,
|
||||
end: game.zone.nextZone
|
||||
})
|
||||
|
||||
} else {
|
||||
//Attempt unsuccessful
|
||||
|
||||
Reference in New Issue
Block a user