Engine:Console commands: Difference between revisions

Line 15: Line 15:
** <kua>lua print(1 + 3)</kua> Prints '3'. The 'lua' context is addressable from 'global'. The default command 'lua_edit' in the 'lua' context, runs the lua statement in the Lua runtime, where the 'print' is a real Lua statement, not an Engine script one.
** <kua>lua print(1 + 3)</kua> Prints '3'. The 'lua' context is addressable from 'global'. The default command 'lua_edit' in the 'lua' context, runs the lua statement in the Lua runtime, where the 'print' is a real Lua statement, not an Engine script one.
** <kua>context lua; print(1 + 3); exit</kua> Also prints '3' and returns to 'global'. Where the 'lua' context is switched to first, then the Lua command is run unqualified also using the default 'lua_edit' command.
** <kua>context lua; print(1 + 3); exit</kua> Also prints '3' and returns to 'global'. Where the 'lua' context is switched to first, then the Lua command is run unqualified also using the default 'lua_edit' command.
* Context - A script or command context. Each context may have its own commands and variables and rules. Examples:
** <kua>client start</kua> Starts the client module.
** <kua>context client; start; context global</kua> Starts the client module and returns to global.
* Command - An engine module command.
* Command - An engine module command.
* Variable - An engine variable, similar to 'CVars' or config vars.
* Variable - An engine variable, similar to 'CVars' or config vars.
Line 22: Line 25:
* Service - An engine messaging service. Which may be internal, local, or network for send or receive.
* Service - An engine messaging service. Which may be internal, local, or network for send or receive.
* Script - May refer to the base Engine script language, which can contain elements here. Or to strings of commands for an alias, or integrated higher-level scripting like blended in-line engine script with lua, JS, or C#.
* Script - May refer to the base Engine script language, which can contain elements here. Or to strings of commands for an alias, or integrated higher-level scripting like blended in-line engine script with lua, JS, or C#.
* Context - A script or command context. Each context may have its own commands and variables and rules.
** <kua>client start</kua> Starts the client module.
** <kua>context client; start; context global</kua> Starts the client module and returns to global.
* Module - An independent static module built into the engine.
* Module - An independent static module built into the engine.