Drag[en]gine Script Module DragonScript Script API
1.0
|
Public Member Functions | |
Constructors | |
Server | new () |
Create server. More... | |
Management | |
String | getAddress () |
Network address. More... | |
bool | listenOn (String address) |
Start listening on address for incoming connections. More... | |
void | stopListening () |
Stop listening. More... | |
ServerListener | getServerListener () |
Server listener or null if not set. More... | |
void | setServerListener (ServerListener listener) |
Set server listener or null if not set. More... | |
Worlds | |
int | getWorldCount () |
Number of worlds. More... | |
World | getWorldAt (int index) |
World at index. More... | |
void | addWorld (World world) |
Add world. More... | |
void | removeWorld (World world) |
Remove world. More... | |
void | removeAllWorlds () |
Remove all worlds. More... | |
void addWorld | ( | World | world | ) |
Add world.
String getAddress | ( | ) |
Network address.
ServerListener getServerListener | ( | ) |
Server listener or null if not set.
World getWorldAt | ( | int | index | ) |
World at index.
EOutOfBoundary | index is less than 0 or greater than or equal to getWorldCount(). |
int getWorldCount | ( | ) |
Number of worlds.
bool listenOn | ( | String | address | ) |
Start listening on address for incoming connections.
The format of the address is specific to the network module.
Server new | ( | ) |
Create server.
void removeAllWorlds | ( | ) |
Remove all worlds.
void removeWorld | ( | World | world | ) |
Remove world.
void setServerListener | ( | ServerListener | listener | ) |
Set server listener or null if not set.
void stopListening | ( | ) |
Stop listening.