ids
ids: (WorldQuery, { number }) -> WorldQueryKeep only these world numbers.
worlds- World numbers to keep.
world:search()| Method | Returns | Description |
|---|---|---|
ids({ number }) | WorldQuery | Keep only these world numbers. |
members(boolean) | WorldQuery | Keep only members worlds, or only free ones. |
online() | WorldQuery | Keep only worlds that are up. |
region(WorldRegionCode | "??") | WorldQuery | Keep only worlds in one country. Raises for another code, in any case. |
activityContaining(string) | WorldQuery | Keep only worlds whose activity label contains this, ignoring case and markup. |
hasType(WorldTypeName) | WorldQuery | Keep only worlds of a kind. Raises for a name outside WorldTypeName. |
withoutType(WorldTypeName) | WorldQuery | Keep only worlds NOT of a kind. Raises for a name outside WorldTypeName. |
playersAtMost(number) | WorldQuery | Keep only worlds at or below a player count. |
count() | number | How many worlds survived the filters. Consumes the query. |
first() | WorldInfo? | The first world that survived the filters. Consumes the query. |
random() | WorldInfo? | One survivor, chosen at random. Consumes the query. |
collect() | { WorldInfo } | Every world that survived the filters. Consumes the query. |
| Method | Returns | Description |
|---|---|---|
WorldDomain.search | WorldQuery | A query over the directory. |
idsids: (WorldQuery, { number }) -> WorldQueryKeep only these world numbers.
worldsmembersmembers: (WorldQuery, boolean) -> WorldQueryKeep only members worlds, or only free ones.
memberstrue for members, false for free.onlineonline: (WorldQuery) -> WorldQueryKeep only worlds that are up.
regionregion: (WorldQuery, WorldRegionCode | "??") -> WorldQueryKeep only worlds in one country. Raises for another code, in any case.
codeWorldInfo.region carries it: "??" is the worlds whose location is unknown.activityContainingactivityContaining: (WorldQuery, string) -> WorldQueryKeep only worlds whose activity label contains this, ignoring case and markup.
texthasTypehasType: (WorldQuery, WorldTypeName) -> WorldQueryKeep only worlds of a kind. Raises for a name outside WorldTypeName.
kindwithoutTypewithoutType: (WorldQuery, WorldTypeName) -> WorldQueryKeep only worlds NOT of a kind. Raises for a name outside WorldTypeName.
kindplayersAtMostplayersAtMost: (WorldQuery, number) -> WorldQueryKeep only worlds at or below a player count.
playerscountcount: (WorldQuery) -> numberHow many worlds survived the filters. Consumes the query.
firstfirst: (WorldQuery) -> WorldInfo?The first world that survived the filters. Consumes the query.
nil when nothing matched.randomrandom: (WorldQuery) -> WorldInfo?One survivor, chosen at random. Consumes the query.
nil when nothing matched.collectcollect: (WorldQuery) -> { WorldInfo }Every world that survived the filters. Consumes the query.