getId
getId: (World) -> numberThe world number.
client:createWorld()| Method | Returns | Description |
|---|---|---|
getId() | number | The world number. |
setId(number) | () | Set the world number. |
getTypes() | {[WorldType]: boolean} | Its types. |
setTypes({[WorldType]: boolean}) | () | Set its types. |
getPlayerCount() | number | How many players are on it. |
setPlayerCount(number) | () | Set the player count. |
getLocation() | number | Its location (region) code. |
setLocation(number) | () | Set the location code. |
getIndex() | number | Its index in the client's world list. |
setIndex(number) | () | Set the index. |
getActivity() | string | Its activity text. |
setActivity(string) | () | Set the activity text. |
getAddress() | string | Its host address. |
setAddress(string) | () | Set the host address. |
| Method | Returns | Description |
|---|---|---|
Client.createWorld | World | A new, empty world description to fill in with the World setters. |
WorldListLoad.getWorlds | {World} | Every world, in the order the server sent them, before the client sorts the list. Each World is a copy: its setters change only it. |
getIdgetId: (World) -> numberThe world number.
setIdsetId: (World, number) -> ()Set the world number.
getTypesgetTypes: (World) -> {[WorldType]: boolean}Its types.
setTypessetTypes: (World, {[WorldType]: boolean}) -> ()Set its types.
getPlayerCountgetPlayerCount: (World) -> numberHow many players are on it.
setPlayerCountsetPlayerCount: (World, number) -> ()Set the player count.
getLocationgetLocation: (World) -> numberIts location (region) code.
setLocationsetLocation: (World, number) -> ()Set the location code.
getIndexgetIndex: (World) -> numberIts index in the client's world list.
setIndexsetIndex: (World, number) -> ()Set the index.
getActivitygetActivity: (World) -> stringIts activity text.
setActivitysetActivity: (World, string) -> ()Set the activity text.
getAddressgetAddress: (World) -> stringIts host address.
setAddresssetAddress: (World, string) -> ()Set the host address.