12 lines
231 B
C++
12 lines
231 B
C++
|
struct Vector3 {
|
||
|
int x;
|
||
|
int y;
|
||
|
int z;
|
||
|
};
|
||
|
|
||
|
void registerVector3(lua_State* L) {
|
||
|
luabridge::getGlobalNamespace(L)
|
||
|
.beginNamespace("Core")
|
||
|
.beginClass <Vector3> ("Vector3").endClass()
|
||
|
.endNamespace();
|
||
|
}
|