| 35 | { "EditorWindow", obe::System::WindowContext::EditorWindow } }); |
| 36 | } |
| 37 | void LoadClassCursor(sol::state_view state) |
| 38 | { |
| 39 | sol::table SystemNamespace = state["obe"]["System"].get<sol::table>(); |
| 40 | sol::usertype<obe::System::Cursor> bindCursor |
| 41 | = SystemNamespace.new_usertype<obe::System::Cursor>("Cursor", |
| 42 | sol::call_constructor, |
| 43 | sol::constructors<obe::System::Cursor( |
| 44 | obe::System::Window&, obe::Triggers::TriggerManager&)>()); |
| 45 | bindCursor["getConstrainedX"] = &obe::System::Cursor::getConstrainedX; |
| 46 | bindCursor["getConstrainedY"] = &obe::System::Cursor::getConstrainedY; |
| 47 | bindCursor["getX"] = &obe::System::Cursor::getX; |
| 48 | bindCursor["getY"] = &obe::System::Cursor::getY; |
| 49 | bindCursor["setX"] = &obe::System::Cursor::setX; |
| 50 | bindCursor["setY"] = &obe::System::Cursor::setY; |
| 51 | bindCursor["setPosition"] = &obe::System::Cursor::setPosition; |
| 52 | bindCursor["show"] = &obe::System::Cursor::show; |
| 53 | bindCursor["hide"] = &obe::System::Cursor::hide; |
| 54 | bindCursor["setVisible"] = &obe::System::Cursor::setVisible; |
| 55 | bindCursor["isVisible"] = &obe::System::Cursor::isVisible; |
| 56 | bindCursor["getPosition"] = &obe::System::Cursor::getPosition; |
| 57 | bindCursor["update"] = &obe::System::Cursor::update; |
| 58 | bindCursor["setConstraint"] = sol::overload( |
| 59 | [](obe::System::Cursor* self, |
| 60 | std::function<std::pair<int, int>(obe::System::Cursor*)> constraint) |
| 61 | -> void { return self->setConstraint(constraint); }, |
| 62 | [](obe::System::Cursor* self, |
| 63 | std::function<std::pair<int, int>(obe::System::Cursor*)> constraint, |
| 64 | std::function<bool()> condition) -> void { |
| 65 | return self->setConstraint(constraint, condition); |
| 66 | }); |
| 67 | bindCursor["isPressed"] = &obe::System::Cursor::isPressed; |
| 68 | } |
| 69 | void LoadClassLoaderMultipleResult(sol::state_view state) |
| 70 | { |
| 71 | sol::table SystemNamespace = state["obe"]["System"].get<sol::table>(); |
nothing calls this directly
no test coverage detected