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.
function World:Save(path: string, flags: SaveFlags = SAVE_DEFAULT): boolean
path
: file path to save.flags
: optional save flags.The save routine works with the entity component system to save your own Lua classes.