Difference between revisions of "Mono:Lua:mono class getParent"
Jump to navigation
Jump to search
(Created page with 'Category:Mono Category:Lua '''function''' mono_class_getNamespace(''classId'') ''':''' integer Returns the classId of the parent class of the given class. ===Function P…') |
|||
Line 1: | Line 1: | ||
[[Category:Mono]] | [[Category:Mono]] | ||
[[Category:Lua]] | [[Category:Lua]] | ||
− | '''function''' | + | '''function''' mono_class_getParent(''classId'') ''':''' integer |
Returns the classId of the parent class of the given class. | Returns the classId of the parent class of the given class. |
Latest revision as of 00:46, 6 May 2018
function mono_class_getParent(classId) : integer
Returns the classId of the parent class of the given class.
Function Parameters[edit]
Parameter | Type | Description |
---|---|---|
classId | integer | The class' ID |
Examples[edit]
In Lua Engine form[edit]
- While attached to Cuphead.
Input:
local cId = mono_findClass('', 'PlayerStatsManager') local pcId = mono_class_getParent(cId) return mono_class_getName(pcId)
Output:
:AbstractPlayerComponent