Mono:Lua:mono class getParent
Revision as of 00:45, 6 May 2018 by TheyCallMeTim13 (talk | contribs) (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…')
function mono_class_getNamespace(classId) : integer
Returns the classId of the parent class of the given class.
Function Parameters
Parameter | Type | Description |
---|---|---|
classId | integer | The class' ID |
Examples
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