Module worlds
Worlds Container for registered Worlds
Functions
Worlds.register (name, world) | Registers a World. |
Worlds.has (name) | Returns true if the containter has the World with the name |
Worlds.get (name) | Returns the World with the name |
Functions
- Worlds.register (name, world)
-
Registers a World.
Parameters:
- name string Name to register under
- world World to register
- Worlds.has (name)
-
Returns true if the containter has the World with the name
Parameters:
- name string Name of the World to check
Returns:
-
boolean
- Worlds.get (name)
-
Returns the World with the name
Parameters:
- name string Name of the World to get
Returns:
-
World with the name