Actions |
Action Subgroups
The following group of actions is used to load Lua code into the currently bound state. Source can come from an external file, a string, or a script embedded directly in the XLua object at runtime.
Run File
Loads a lua source file into the lua runtime, and executes it.
Parameters
Filename | Path to Lua source file |
Run String
Loads Lua source stored in a string into the Lua runtime, and executes it. There may be a size limit on strings.
Parameters
String | String containing Lua source |
Run Named String
Loads Lua source stored in a string into the Lua runtime, and executes it. When reporting errors or information about the source string, it will be identified by the included name.
Parameters
String | String containing Lua source |
String | Name identifying source string |
Run Embedded Script
Each XLua object can hold one or more embedded scripts internally. In fact, the XLua object sports an entire script editor and manager. This action will load one of those scripts.
Parameters
String | Name of embedded script |
Copyright 2010 Justin Aquadro