Engine:Console commands: Difference between revisions

No edit summary
Line 14: Line 14:
* 'Global commands' and 'Global variables' - below are short-hand for commands placed in the 'global' context.
* 'Global commands' and 'Global variables' - below are short-hand for commands placed in the 'global' context.
* 'Default command' - is run by default if its context is addressed by name or is the current context. Examples:
* 'Default command' - is run by default if its context is addressed by name or is the current context. Examples:
** Will print 3. Where 'lua' is a child context and 'print' is a real Lua command, not an Engine script one. <pre>lua print(1 + 3)</pre>  
** Will print 3. Where the 'lua' context is addressable from 'global' and 'print' is a real Lua command, not an Engine script one. <pre>lua print(1 + 3)</pre>  
** Will also print 3 and return to global. Where context is switched to, then the Lua command is run. <pre>context lua; print(1 + 3); exit</pre>
** Will also print 3 and return to global. Where context is switched to, then the Lua command is run. <pre>context lua; print(1 + 3); exit</pre>
** Will start the client module. <pre lang="lua">client start</pre>  
** Will start the client module. <pre lang="lua">client start</pre>  
Line 26: Line 26:
* Associations - Module or context associations and features
* Associations - Module or context associations and features
* Service - here refers to messaging service. Which may be internal, local or through a network for send or receive.
* Service - here refers to messaging service. Which may be internal, local or through a network for send or receive.


=== Data module ===
=== Data module ===