| 330 | } |
| 331 | |
| 332 | maajs::ValueType ControllerImpl::locate_object(maajs::EnvType env, MaaController* ctrl) |
| 333 | { |
| 334 | if (auto obj = ExtContext::get(env)->controllers.find(ctrl)) { |
| 335 | return *obj; |
| 336 | } |
| 337 | else { |
| 338 | return maajs::CallCtorHelper(ExtContext::get(env)->controllerCtor, std::to_string(reinterpret_cast<uintptr_t>(ctrl))); |
| 339 | } |
| 340 | } |
| 341 | |
| 342 | void ControllerImpl::init_bind(maajs::ObjectType self) |
| 343 | { |
nothing calls this directly
no test coverage detected