| 71 | } |
| 72 | |
| 73 | PyObject *py_ue_is_a(ue_PyUObject * self, PyObject * args) { |
| 74 | |
| 75 | ue_py_check(self); |
| 76 | |
| 77 | PyObject *obj; |
| 78 | if (!PyArg_ParseTuple(args, "O:is_a", &obj)) { |
| 79 | return NULL; |
| 80 | } |
| 81 | |
| 82 | if (!ue_is_pyuobject(obj)) { |
| 83 | return PyErr_Format(PyExc_Exception, "argument is not a UObject"); |
| 84 | } |
| 85 | |
| 86 | ue_PyUObject *py_obj = (ue_PyUObject *)obj; |
| 87 | |
| 88 | if (self->ue_object->IsA((UClass *)py_obj->ue_object)) { |
| 89 | Py_INCREF(Py_True); |
| 90 | return Py_True; |
| 91 | } |
| 92 | |
| 93 | |
| 94 | Py_INCREF(Py_False); |
| 95 | return Py_False; |
| 96 | } |
| 97 | |
| 98 | PyObject *py_ue_is_child_of(ue_PyUObject * self, PyObject * args) { |
| 99 |
nothing calls this directly
no test coverage detected