| 203 | #endif |
| 204 | |
| 205 | PyObject *py_ue_get_owner(ue_PyUObject *self, PyObject * args) { |
| 206 | |
| 207 | ue_py_check(self); |
| 208 | |
| 209 | if (!self->ue_object->IsA<UActorComponent>()) { |
| 210 | return PyErr_Format(PyExc_Exception, "uobject is not a component"); |
| 211 | } |
| 212 | |
| 213 | UActorComponent *component = (UActorComponent *)self->ue_object; |
| 214 | |
| 215 | ue_PyUObject *ret = ue_get_python_wrapper(component->GetOwner()); |
| 216 | if (!ret) |
| 217 | return PyErr_Format(PyExc_Exception, "uobject is in invalid state"); |
| 218 | Py_INCREF(ret); |
| 219 | return (PyObject *)ret; |
| 220 | } |
| 221 | |
| 222 | PyObject *py_ue_register_component(ue_PyUObject *self, PyObject * args) { |
| 223 |
nothing calls this directly
no test coverage detected