World

game and camera

Time, view state, icons, interface settings and the camera.

game

Whether you're in the world (not loading, at character select or in a cinematic).
One of the game.VIEW_STATE_* constants.
How far a map load is.
Sets the loading stage.
The game window's size in pixels.
Ticks since the game started.
The game clock, in milliseconds.
The time of day in the world.
Sets the time of day on your screen.
Your ping, in milliseconds.
{model, map, agent}: how long the game keeps unused models, maps and agents loaded.
Whether the game runs through Steam.
Whether color-blind mode is on.
Turns color-blind mode on or off.
Whether overlays are drawn.
Turns overlays on or off.
A profession's icon, for ui.image and gfx.image.
A specialization's icon.
The icon for a profession with a specialization.
View states
VIEW_STATE_IN_GAMEVIEW_STATE_LOADING_SCREENVIEW_STATE_CHAR_SELECTVIEW_STATE_CINEMATICVIEW_STATE_SCOUT

professions

Profession and specialization ids, as professions.GUARDIAN and so on, for game.profession_icon, game.spec_icon and agent:profession().

Professions
GUARDIANWARRIORENGINEERRANGERTHIEFELEMENTALISTMESMERNECROMANCERREVENANT
Elite specializations
DRAGONHUNTERFIREBRANDWILLBENDERLUMINARYBERSERKERSPELLBREAKERBLADESWORNPARAGONSCRAPPERHOLOSMITHMECHANISTAMALGAMDRUIDSOULBEASTUNTAMEDGALESHOTDAREDEVILDEADEYESPECTERANTIQUARYTEMPESTWEAVERCATALYSTEVOKERCHRONOMANCERMIRAGEVIRTUOSOTROUBADOURREAPERSCOURGEHARBINGERRITUALISTHERALDRENEGADEVINDICATORCONDUIT

game_ui

The game's own interface settings.

Whether the player is typing in a text box, such as chat. Let keys through while this is true.
0 small, 1 normal, 2 large, 3 larger.
0 normal, 1 fast with range indicator, 2 instant.
Raw interface state.
"en", "fr", "de", "es" or "zh".

camera

Where a world position is on screen; nil when it's behind the camera.
The world position under the mouse cursor.
The first thing between two points: {position, normal}.
The camera's zoom.
How far the camera can zoom out.
Sets how far it can zoom out.
Whether the world is drawn.
Turns drawing the world on or off.