MCPcopy Create free account
hub / github.com/20tab/UnrealEnginePython / py_ue_is_a

Function py_ue_is_a

Source/UnrealEnginePython/Private/UEPyObject.cpp:73–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73PyObject *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
98PyObject *py_ue_is_child_of(ue_PyUObject * self, PyObject * args) {
99

Callers

nothing calls this directly

Calls 1

ue_is_pyuobjectFunction · 0.85

Tested by

no test coverage detected