49
edits
No edit summary |
|||
| (8 intermediate revisions by the same user not shown) | |||
| Line 48: | Line 48: | ||
Global vars: | Global vars: | ||
: [[CVAR lib_path|lib_path]] - './lib/' - Path for native 'world' | : [[CVAR lib_path|lib_path]] - './lib/' - Path for native 'world' libraries. | ||
: [[CVAR base_path|base_path]] - './data/' - Path for content and assets. | : [[CVAR base_path|base_path]] - './data/' - Path for content and assets. | ||
: [[CVAR module|module]] - 'game' - Base name for 'world' module, without platform postfix. | : [[CVAR module|module]] - 'game' - Base name for 'world' module, without platform postfix. | ||
| Line 78: | Line 78: | ||
Assignments: | Assignments: | ||
: Explicit context name is 'lua' reachable through 'global' | : Explicit context name is 'lua' reachable through 'global' | ||
: | : Default reachable contexts: none. See 'exit' command | ||
: Optional reachable contexts: none | |||
: Default self-reference context: 'lua' | |||
: Does not inherit 'global' context | |||
Lua context commands: | Lua context commands: | ||
| Line 85: | Line 88: | ||
: [[CCMD lua.block|block]] - lua run - Runs a Lua command block in the Lua runtime | : [[CCMD lua.block|block]] - lua run - Runs a Lua command block in the Lua runtime | ||
: [[CCMD lua.exit|exit]] - lua exit - Immediately switches current context to 'global' | : [[CCMD lua.exit|exit]] - lua exit - Immediately switches current context to 'global' | ||
Lua context variables: | |||
: none | |||
Lua context aliases: | Lua context aliases: | ||
: none | : none | ||
Lua functions placed in a Lua runtime by the lua context: | |||
: [[CLUA script|script]] - Runs an engine script from the Lua runtime. | |||
: [[CLUA require|require]] - Loads and runs lua text file asset from engine data. | |||
=== Msg module === | === Msg module === | ||