mirror of
https://git.rezel.net/LudoTech/traque.git
synced 2026-02-09 02:10:18 +01:00
started working on zone manager for backend
This commit is contained in:
@@ -11,6 +11,7 @@ export default class Game {
|
||||
constructor() {
|
||||
this.teams = [];
|
||||
this.state = GameState.SETUP;
|
||||
this.zone = new ZoneManager(null, null)
|
||||
}
|
||||
|
||||
setState(newState) {
|
||||
@@ -150,4 +151,12 @@ export default class Game {
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
setZone(newSettings) {
|
||||
//cannot change zones while playing
|
||||
if(game.state == GameState.PLAYING || game.state == GameState.FINISHED) {
|
||||
return false;
|
||||
}
|
||||
this.zone.udpateSettings(newSettings)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user