Mono:Lua:mono class enumMethods
Revision as of 00:52, 6 May 2018 by TheyCallMeTim13 (talk | contribs) (Created page with 'Category:Mono Category:Lua '''function''' mono_class_enumMethods(''classId'') ''':''' integer Returns a table of method objects for the methods in the given class ;meth…')
function mono_class_enumMethods(classId) : integer
Returns a table of method objects for the methods in the given class
- method - integer
- method ID
- name - string
- name of the method
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') return mono_class_enumMethods(cId)
Output:
:table [ 1 = table [ method = 284816768 name = .ctor ] 2 = table [ method = 284816800 name = get_GlobalInvincibility ] 3 = table [ method = 284816832 name = set_GlobalInvincibility ] 4 = table [ method = 284816864 name = get_HealthMax ] 5 = table [ method = 284816896 name = set_HealthMax ] 6 = table [ method = 284816928 name = get_Health ] 7 = table [ method = 284816960 name = set_Health ] 8 = table [ method = 284816992 name = get_SuperMeterMax ] 9 = table [ method = 284817024 name = set_SuperMeterMax ] 10 = table [ method = 284817056 name = get_SuperMeter ] ... ]