This method serializes the world to a file that can be loaded later. This can be used for saving the current game state, saving a scene created with a custom editor, or relaying the current game state to a new player who joins a multiplayer game.
Parameter | Description |
---|---|
path | file path to save |
flags | optional save flags |
The save routine works with the entity component system to save your own C++ classes.