()
| 319 | } |
| 320 | |
| 321 | private oneSecondCallback(): void{ |
| 322 | // If there's no last minute or it's different from the current minute |
| 323 | if(this.lastLocalAutosaveMinute == null || this.lastLocalAutosaveMinute != Math.ceil(this.getGame().getLocalAutosaveTime()/60)){ |
| 324 | // We set the minute |
| 325 | this.lastLocalAutosaveMinute = Math.ceil(this.getGame().getLocalAutosaveTime()/60); |
| 326 | // We update |
| 327 | this.createSlotsArray(); |
| 328 | this.update(); |
| 329 | this.getGame().updatePlace(); |
| 330 | } |
| 331 | } |
| 332 | |
| 333 | private resize(): void{ |
| 334 | // The size depends on if there's a translation or not |
nothing calls this directly
no test coverage detected