NodeServer.addWorld

Creates and registers a world in the given group, initialising its terrain, registering events, commands and tasks.

  1. shared(WorldInfo) addWorld(GroupInfo group, E args)
    class NodeServer
    shared synchronized
    shared(WorldInfo)
    addWorld
    (
    T : World = World
    E...
    )
    (,)
  2. shared(WorldInfo) addWorld(string name, E args)

Return Value

Type: shared(WorldInfo)

the WorldInfo of the created world. * Example: * --- * server.addWorld(server.mainWorldGroup); * server.addWorld(server.addWorldGroup("test")); * ---

Meta