Caffeine

Core

Reference Core Last updated: Lua 1 · Dryad 0

Top-level helpers of the caffeine table.

All namespaces

Namespace: caffeine

require#

Lua: caffeine.require

text
require(name)

Loads and runs another script module from the project's scripts/ folder. It returns nothing; an error is raised if loading fails.

ParametersTypeDescription
namestringModule name; dots become folders, so 'util.maths' loads scripts/util/maths.lua.

Returns: none

Example

lua
caffeine.require('util.maths')