Mono:Lua:mono class getParent
From Cheat Engine
function mono_class_getParent(classId) : integer
Returns the classId of the parent class of the given class.
Contents |
[edit] Function Parameters
Parameter | Type | Description |
---|---|---|
classId | integer | The class' ID |
[edit] Examples
[edit] In Lua Engine form
- While attached to Cuphead.
Input:
local cId = mono_findClass('', 'PlayerStatsManager') local pcId = mono_class_getParent(cId) return mono_class_getName(pcId)
Output:
:AbstractPlayerComponent
[edit] See also
[edit] Related Functions
- mono_object_getClass
- mono_image_findClass
- mono_findClass
- mono_class_getName
- mono_class_getNamespace
- mono_class_getParent
- mono_class_getStaticFieldAddress
- mono_class_enumFields
- mono_class_enumMethods
- mono_class_findMethod