| 142 | }); |
| 143 | } |
| 144 | void LoadClassPolygonSegment(sol::state_view state) |
| 145 | { |
| 146 | sol::table TransformNamespace = state["obe"]["Transform"].get<sol::table>(); |
| 147 | sol::usertype<obe::Transform::PolygonSegment> bindPolygonSegment |
| 148 | = TransformNamespace.new_usertype<obe::Transform::PolygonSegment>( |
| 149 | "PolygonSegment", sol::call_constructor, |
| 150 | sol::constructors<obe::Transform::PolygonSegment( |
| 151 | const obe::Transform::PolygonPoint&, |
| 152 | const obe::Transform::PolygonPoint&)>()); |
| 153 | bindPolygonSegment["getAngle"] = &obe::Transform::PolygonSegment::getAngle; |
| 154 | bindPolygonSegment["getLength"] = &obe::Transform::PolygonSegment::getLength; |
| 155 | bindPolygonSegment["first"] = sol::property( |
| 156 | [](obe::Transform::PolygonSegment* self) -> const PolygonPoint& { |
| 157 | return self->first; |
| 158 | }); |
| 159 | bindPolygonSegment["second"] = sol::property( |
| 160 | [](obe::Transform::PolygonSegment* self) -> const PolygonPoint& { |
| 161 | return self->second; |
| 162 | }); |
| 163 | } |
| 164 | void LoadClassRect(sol::state_view state) |
| 165 | { |
| 166 | sol::table TransformNamespace = state["obe"]["Transform"].get<sol::table>(); |
nothing calls this directly
no test coverage detected