mirror of
https://git.rezel.net/LudoTech/traque.git
synced 2026-02-09 02:10:18 +01:00
rever to 9615d4fecd
This commit is contained in:
@@ -35,7 +35,19 @@ export const io = new Server(httpsServer, {
|
||||
}
|
||||
});
|
||||
|
||||
export const game = new Game();
|
||||
//Zone update broadcast function, called by the game object
|
||||
function onUpdateNewZone(newZone) {
|
||||
playersBroadcast("new_zone", newZone)
|
||||
secureAdminBroadcast("new_zone", newZone)
|
||||
}
|
||||
|
||||
function onUpdateZone(zone) {
|
||||
playersBroadcast("zone", zone)
|
||||
secureAdminBroadcast("zone", zone)
|
||||
}
|
||||
|
||||
|
||||
export const game = new Game(onUpdateZone, onUpdateNewZone);
|
||||
export const penaltyController = new PenaltyController();
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user