* reset the game Object manager * destroy all current objects
()
| 601 | * destroy all current objects |
| 602 | */ |
| 603 | reset(): void { |
| 604 | // point to the current active stage "default" camera |
| 605 | const current = state.get(); |
| 606 | if (typeof current !== "undefined") { |
| 607 | this.viewport = current.cameras.get("default")!; |
| 608 | } |
| 609 | |
| 610 | // publish reset notification |
| 611 | emit(GAME_RESET); |
| 612 | |
| 613 | // Refresh internal variables for framerate limiting |
| 614 | this.updateFrameRate(); |
| 615 | } |
| 616 | |
| 617 | /** |
| 618 | * Specify the property to be used when sorting renderables for this application game world. |
nothing calls this directly
no test coverage detected