Lua API reference

Lua API reference

148 classes and 203 functions, dumped from the running game's Lua registry for Evospace 0.21.1. The same dump ships as type definitions for editor completion — see Evospace/lua-api.

Globals

  • game Game Global game instance
  • db DB Global prototype database
  • engine Engine Global engine data
  • music Music Global music manager
  • quests QuestSubsystem Global quest manager
Functions and values available without a class
--- @type boolean|nil
LuaLogFlag = false

--- Prints info to log
--- @param message string
function print_info(message) end

--- Prints error to log but do not breaks execution
--- @param message string
function print_err(message) end

--- Prints warning to log
--- @param message string
function print_warn(message) end

--- Dimension of the running session
--- @type Dimension
dim = {}

Prototypes

Block logic

Inventories

Accessors

Widgets

World actors

Instances

Namespaces

  • cs Block, sector and world coordinate conversions
  • defines.events Identifiers of the gameplay events the event bus can emit
  • defines.quest_state Values StaticQuest.state takes
  • hud The player's own heads-up display
  • shot Scripted screenshot capture
  • sim Simulation tick scheduler
  • weather Runtime weather control

Values and engine objects