Lua Scripting (#1334)

Closes #83
Fixes #1309
Fixes #1287
Fixes #1129 (actually fixed now)
This commit is contained in:
maybegreat48
2023-06-06 07:40:40 +00:00
committed by GitHub
parent a8750a30fb
commit 70efa40afe
202 changed files with 156693 additions and 839 deletions

View File

@ -0,0 +1,15 @@
#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
}
}