Encompasses all API of component NilkinsScripts. More...
Classes | |
struct | ArrayAccessorDescriptor |
Holds information about the way to access a user type as an array. More... | |
struct | CompilationResult |
Holds information about script loading attempt. More... | |
class | ContentLoader |
Allows to export and import content through their declaration files. More... | |
class | ContentLoadResult |
Holds information about a content load attempt. More... | |
class | Environment |
Defines an environment in which scripts can execute. More... | |
class | EnvironmentManager |
Manages the environments available. More... | |
struct | ExecutionResult |
Holds information about the execution result of a script in an environment. More... | |
class | Function |
Holds information, and controls, over a function in a scripting environment. More... | |
struct | FunctionParameter |
A function parameter, used within the stack of arguments. More... | |
class | LogManager |
Responsible for logging all messages from the component. More... | |
class | Namespace |
Holds information and allow control over a namespace in a scripting environment. More... | |
class | ProjectLoader |
Offers project loading / saving capabilities. More... | |
struct | ProjectLoadQuery |
Holds information about a project load query. More... | |
struct | ProjectLoadResult |
Holds information about a project load attempt. More... | |
struct | ProjectSaveQuery |
Holds information for a project saving query. More... | |
class | ResourceDeclAugmentCallback |
Represents a callback enabling to "augment" a loading or saving of a project. More... | |
class | Script |
Holds all information for a script. More... | |
class | ScriptManager |
Manages the scripts available in the component. More... | |
class | ScriptObjectInterpreterReference |
Base interface for interpreter specific reference over script object. More... | |
class | ScriptObjectInterpreterView |
Base interface for an interpreter specific script object view. More... | |
class | ScriptObjectReference |
A reference over an object in the scripting environment. More... | |
struct | ScriptObjectReferenceStruct |
Holds information about a reference. More... | |
class | ScriptObjectView |
A view over an object in the scripting environment. More... | |
class | StringUtils |
Utility for string manipulations. More... | |
class | UserType |
Represents a user type and all the information and control related. More... | |
struct | UserTypeFieldDescriptor |
Holds all the information required to define a field. More... | |
struct | UserTypeHolder |
Holds information about a user type parameter. More... | |
Typedefs | |
using | DataStack = nkMemory::BufferView< FunctionParameter > |
A data stack, mainly used for parameters. | |
using | OutputValue = FunctionParameter |
The ouput value for a function. | |
using | FunctionCallback = std::function< OutputValue(const DataStack &)> |
A callback in C++, the script environment will call when tied. | |
using | ArrayReadFunction = FunctionCallback |
Callback function signature for array reading. | |
using | ArrayWriteFunction = std::function< void(const DataStack &)> |
Callback function signature for array writing. | |
using | ConstructorCallback = std::function< void *(const DataStack &)> |
Callback function signature for a constructor. | |
using | DestructorCallback = std::function< void(void *)> |
Callback function signature for a destructor. | |
using | FieldGetter = std::function< OutputValue(void *)> |
Callback function signature for a field getter. | |
using | FieldSetter = std::function< void(const DataStack &)> |
Callback function signature for a field setter. | |
using | ContentLoadResultScript = ContentLoadResult< Script > |
A shorthand for a script content load result. | |
Encompasses all API of component NilkinsScripts.
This components enables scripting capabilities. Currently, supported scripting language is lua, through LuaJIT.
Heart of the component are nkScripts::Environment, where all information relative to execution can be set. Prepare an environment by specifying the functions, namespaces, user types that should be addressable inside.
Then, take advantage of the environment setup by dynamically executing nkScripts::Script.
For more information, be sure to check the dedicated tutorials as they will hold a lot of valuable clues to get started.
|
strong |
Describes a type of script execution failure.
|
strong |
Describes a variable type.
|
strong |
Available overridable built in functions.
|
strong |
|
strong |
|
strong |