Wax

Mode

game.Mode: a dedicated server, a host, a client or alone, and whether there is a screen.

The Explorer searches everything on this page, and the classes of the game too.

game.Mode

How this copy of the game runs, game.Mode. It is read when Wax starts and again when the map changes.

Type name: WaxMode.

Open in the Explorer

MemberTypeDescription
kind"server" | "host" | "client" | "single""server": a dedicated server, with no screen and nobody at the keyboard. "host": a player hosting a world from the game. "client": joined someone else's world. "single": alone.
IsServerbooleanTrue on a dedicated server.
IsAuthoritybooleanTrue where the session's rules run: a dedicated server, a host, or alone. False for a client.
HasScreenbooleanFalse on a dedicated server, where there is no interface: ui is nil there, and nothing of a mod can be shown or pressed. True in a game, from its first frame.
SignalHandler receivesDescription
Changedkind: string, before: stringFires after a map change when the kind is not what it was, with the new kind and the one before.

On this page