NodeServer.defaultWorld

Sets the server's default world if the given world has been created and registered using the addWorld template method.

  1. shared(WorldInfo) defaultWorld [@property getter]
  2. uint defaultWorld [@property setter]
  3. WorldInfo defaultWorld [@property setter]
    class NodeServer
    shared pure nothrow @property
    shared(WorldInfo)
    defaultWorld
    ()

Return Value

Type: shared(WorldInfo)

The server's default world (the given world if it has been set as default)

Examples

auto test = server.addWorld!Test("test-world");
server.world = test;
assert(server.world == test);

Meta