| 101 | } |
| 102 | |
| 103 | PyObject *py_ue_get_world(ue_PyUObject *self, PyObject * args) { |
| 104 | |
| 105 | ue_py_check(self); |
| 106 | |
| 107 | UWorld *world = ue_get_uworld(self); |
| 108 | if (!world) |
| 109 | return PyErr_Format(PyExc_Exception, "unable to retrieve UWorld from uobject"); |
| 110 | |
| 111 | ue_PyUObject *ret = ue_get_python_wrapper(world); |
| 112 | if (!ret) |
| 113 | return PyErr_Format(PyExc_Exception, "PyUObject is in invalid state"); |
| 114 | Py_INCREF(ret); |
| 115 | return (PyObject *)ret; |
| 116 | |
| 117 | } |
| 118 | |
| 119 | PyObject *py_ue_has_world(ue_PyUObject *self, PyObject * args) { |
| 120 |
nothing calls this directly
no test coverage detected