Difference between revisions of "Mono:Lua:mono method getClass"
Jump to navigation
Jump to search
(Replaced content with '<span style="font-size:25px;color:red">Sorry! Content not available.</span>') |
m (Reverted edits by This content is not available (Talk) to last revision by TheyCallMeTim13) |
||
| Line 1: | Line 1: | ||
| − | + | [[Category:Mono]] | |
| + | [[Category:Lua]] | ||
| + | '''function''' mono_method_getClass(''methodId'') ''':''' integer | ||
| + | |||
| + | Returns the class Id a method belongs in. | ||
| + | |||
| + | ===Function Parameters=== | ||
| + | {|width="85%" cellpadding="10%" cellpadding="5%" cellspacing="0" border="0" | ||
| + | !align="left"|Parameter | ||
| + | !align="left"|Type | ||
| + | !style="width: 80%;background-color:white;" align="left"|Description | ||
| + | |- | ||
| + | |methodId | ||
| + | |integer | ||
| + | |The method's ID | ||
| + | |} | ||
| + | |||
| + | |||
| + | == Examples == | ||
| + | === In Lua Engine form === | ||
| + | : While attached to [https://wikipedia.org/wiki/Cuphead Cuphead]. | ||
| + | '''Input:''' | ||
| + | <pre> | ||
| + | local mId = mono_findMethod('', 'PlayerStatsManager', 'TakeDamage') | ||
| + | return mono_method_getClass(mId) | ||
| + | </pre> | ||
| + | '''Output:''' | ||
| + | <pre> | ||
| + | :284773608 | ||
| + | </pre> | ||
| + | |||
| + | |||
| + | {{MonoSeeAlso}} | ||
| + | |||
| + | === Related Functions === | ||
| + | * [[Mono:Lua:mono_class_findMethod|mono_class_findMethod]] | ||
| + | * [[Mono:Lua:mono_findMethod|mono_findMethod]] | ||
| + | * [[Mono:Lua:mono_method_getName|mono_method_getName]] | ||
| + | * [[Mono:Lua:mono_method_getHeader|mono_method_getHeader]] | ||
| + | * [[Mono:Lua:mono_method_getSignature|mono_method_getSignature]] | ||
| + | * [[Mono:Lua:mono_method_disassemble|mono_method_disassemble]] | ||
| + | * [[Mono:Lua:mono_method_getClass|mono_method_getClass]] | ||
| + | * [[Mono:Lua:mono_methodheader_getILCode|mono_methodheader_getILCode]] | ||
| + | * [[Mono:Lua:mono_getILCodeFromMethod|mono_getILCodeFromMethod]] | ||
| + | * [[Mono:Lua:mono_invoke_method|mono_invoke_method]] | ||
Latest revision as of 19:06, 18 March 2019
function mono_method_getClass(methodId) : integer
Returns the class Id a method belongs in.
Function Parameters[edit]
| Parameter | Type | Description |
|---|---|---|
| methodId | integer | The method's ID |
Examples[edit]
In Lua Engine form[edit]
- While attached to Cuphead.
Input:
local mId = mono_findMethod('', 'PlayerStatsManager', 'TakeDamage')
return mono_method_getClass(mId)
Output:
:284773608