void Lua_Startup( void ) { // Open the lua state luaState = lua_open(); // Load those cool? modules O_O! luaopen_base( luaState ); luaopen_table( luaState ); luaopen_string( luaState ); luaopen_math( luaState ); // Connect LuaBind to this lua state luabind::open(luaState); // Export our class with LuaBind luabind::module(luaState) [ // Use this in scripting like SetSolid( SOLID.NONE ) luabind::class_("SOLID") .enum_("SolidType_t") [ value("NONE", SOLID_NONE), value("BSP", SOLID_BSP), value("BBOX", SOLID_BBOX), value("OBB", SOLID_OBB), value("OBB_YAW", SOLID_OBB_YAW), value("CUSTOM", SOLID_CUSTOM), value("VPHYSICS", SOLID_VPHYSICS), value("LAST", SOLID_LAST), ]