| 117 | bindMountablePath["priority"] = &obe::System::MountablePath::priority; |
| 118 | } |
| 119 | void LoadClassPath(sol::state_view state) |
| 120 | { |
| 121 | sol::table SystemNamespace = state["obe"]["System"].get<sol::table>(); |
| 122 | sol::usertype<obe::System::Path> bindPath |
| 123 | = SystemNamespace.new_usertype<obe::System::Path>("Path", |
| 124 | sol::call_constructor, |
| 125 | sol::constructors<obe::System::Path(), |
| 126 | obe::System::Path(const std::vector<obe::System::MountablePath>&), |
| 127 | obe::System::Path(const obe::System::Path&), |
| 128 | obe::System::Path(std::string_view)>()); |
| 129 | bindPath["set"] = &obe::System::Path::set; |
| 130 | bindPath["add"] = &obe::System::Path::add; |
| 131 | bindPath["last"] = &obe::System::Path::last; |
| 132 | bindPath["getPath"] = &obe::System::Path::getPath; |
| 133 | bindPath["find"] = sol::overload( |
| 134 | [](obe::System::Path* self) -> std::string { return self->find(); }, |
| 135 | [](obe::System::Path* self, obe::System::PathType pathType) -> std::string { |
| 136 | return self->find(pathType); |
| 137 | }); |
| 138 | bindPath["findAll"] = sol::overload( |
| 139 | [](obe::System::Path* self) -> std::vector<std::string> { |
| 140 | return self->findAll(); |
| 141 | }, |
| 142 | [](obe::System::Path* self, obe::System::PathType pathType) |
| 143 | -> std::vector<std::string> { return self->findAll(pathType); }); |
| 144 | bindPath["toString"] = &obe::System::Path::toString; |
| 145 | bindPath["operator="] = &obe::System::Path::operator=; |
| 146 | } |
| 147 | void LoadClassPlugin(sol::state_view state) |
| 148 | { |
| 149 | sol::table SystemNamespace = state["obe"]["System"].get<sol::table>(); |