Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 683 Bytes

File metadata and controls

27 lines (17 loc) · 683 Bytes

ScriptSystem that executes lua scripts attached to Entities through PyComponents.

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

Members

These are defined in the kengine::python namespace.

registerType

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

Registers a reflectible type with the Python state.

registerFunction

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

Register a new function with the Python state.