mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Minor API inconsistencies
This commit is contained in:
parent
13deb0fba8
commit
c9eaeb47d5
3 changed files with 12 additions and 5 deletions
|
@ -133,7 +133,8 @@ namespace LuaUtil
|
|||
|
||||
// Lua bindings for Box
|
||||
util["box"] = sol::overload([](const Vec3& center, const Vec3& halfSize) { return Box(center, halfSize); },
|
||||
[](const TransformM& transform) { return Box(transform.mM); });
|
||||
[](const TransformM& transform) { return Box(transform.mM); },
|
||||
[](const TransformQ& transform) { return Box(Vec3(), Vec3(1, 1, 1), transform.mQ); });
|
||||
sol::usertype<Box> boxType = lua.new_usertype<Box>("Box");
|
||||
boxType["center"] = sol::readonly_property([](const Box& b) { return b.mCenter; });
|
||||
boxType["halfSize"] = sol::readonly_property([](const Box& b) { return b.mHalfSize; });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue