Difference between revisions of "Mono:Lua:mono method getSignature"
								
								Jump to navigation
				Jump to search
				
				
		
		|  (Created page with 'Category:Mono Category:Lua '''function''' mono_method_getHeader(''methodId'') ''':''' integer  returns ''result'', ''parameternames'', ''returntype''. ;result - string : …') | |||
| Line 1: | Line 1: | ||
| [[Category:Mono]] | [[Category:Mono]] | ||
| [[Category:Lua]] | [[Category:Lua]] | ||
| − | '''function'''  | + | '''function''' mono_method_getSignature(''methodId'') ''':''' integer | 
| returns ''result'', ''parameternames'', ''returntype''. | returns ''result'', ''parameternames'', ''returntype''. | ||
| Line 29: | Line 29: | ||
| <pre> | <pre> | ||
| local mId = mono_findMethod('', 'PlayerStatsManager', 'TakeDamage') | local mId = mono_findMethod('', 'PlayerStatsManager', 'TakeDamage') | ||
| − | return  | + | return mono_method_getSignature(mId) | 
| </pre> | </pre> | ||
| '''Output:''' | '''Output:''' | ||
| <pre> | <pre> | ||
| − | : | + | : | 
| + | :table | ||
| + | [ | ||
| + | ] | ||
| + | :System.Void | ||
| </pre> | </pre> | ||
Latest revision as of 01:43, 6 May 2018
function mono_method_getSignature(methodId) : integer
returns result, parameternames, returntype.
- result - string
- parameterNames - table
- strings representing parameter names
- returnType - string
- ?? - mono type string?
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_getSignature(mId)
Output:
: :table [ ] :System.Void

