Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 669 Bytes

File metadata and controls

27 lines (17 loc) · 669 Bytes

ScriptSystem that executes lua scripts attached to Entities through LuaComponents.

Helper functions are also provided to easily register new types and functions with the lua state.

Members

These are defined in the kengine::lua namespace.

registerType

template<typename T>
void registerType(EntityManager & em);

Registers a reflectible type with the lua state.

registerFunction

template<typename F>
void registerFunction(EntityManager & em, const char * name, F && func);

Register a new function with the lua state.