Method LoadWorld
LoadWorld(int, World)
Loads a stored NetworkDriver and Connection data into a new or existing World.
Declaration
public World LoadWorld(int ticket, World newWorld = null)
Parameters
Type | Name | Description |
---|---|---|
int | ticket | A ticket to a stored World |
World | newWorld | An optional world we would want to Load into. |
Returns
Type | Description |
---|---|
World | A prepared world that is ready to have its systems added. |
Remarks
This function needs to be called before any systems are initialized on the world we want to migrate to.
Exceptions
Type | Condition |
---|---|
ArgumentException | Is thrown incase a invalid world is supplied. Only Netcode worlds work. |