fix(lua): move bindings to cpp files (#1757)

This commit is contained in:
Quentin
2023-07-18 13:07:33 +02:00
committed by GitHub
parent 95056d5af3
commit e1f70e84b4
29 changed files with 1267 additions and 1181 deletions

View File

@ -29,14 +29,5 @@ namespace lua::vector
// Field: z: float
// z component of the vector.
static void bind(sol::state& state)
{
//clang-format off
state.new_usertype<Vector3>("vec3",
sol::constructors<Vector3(float, float, float)>(),
"x", &Vector3::x, "y", &Vector3::y, "z", &Vector3::z,
"__tostring", &Vector3::to_string
);
//clang-format on
}
void bind(sol::state& state);
}