struct Vector3 { int x; int y; int z; }; void registerVector3(lua_State* L) { luabridge::getGlobalNamespace(L) .beginNamespace("Core") .beginClass ("Vector3").endClass() .endNamespace(); }