TmpMenu/src/lua/bindings/vector.hpp
maybegreat48 03c1a96b67 Lua Scripting (#1334)
Closes #83
Fixes #1309
Fixes #1287
Fixes #1129 (actually fixed now)
2023-06-06 09:40:40 +02:00

15 lines
314 B
C++

#pragma once
namespace lua::vector
{
static void bind(sol::state& state)
{
// clang-format off
state.new_usertype<rage::fvector3>("vec3", sol::constructors<rage::fvector3(float, float, float)>(),
"x", &rage::fvector3::x,
"y", &rage::fvector3::y,
"z", &rage::fvector3::z
);
// clang-format on
}
}