https://wiki.cheatengine.org/index.php?title=Mono:Lua:mono_findMethod&feed=atom&action=history
Mono:Lua:mono findMethod - Revision history
2024-03-29T15:13:02Z
Revision history for this page on the wiki
MediaWiki 1.32.0
https://wiki.cheatengine.org/index.php?title=Mono:Lua:mono_findMethod&diff=5987&oldid=prev
TheyCallMeTim13: Created page with 'Category:Mono Category:Lua '''function''' mono_findMethod(''namespace'', ''className'', ''methodName'') ''':''' integer Returns the method Id of the given method name in…'
2018-05-06T01:31:55Z
<p>Created page with '<a href="/index.php?title=Category:Mono" title="Category:Mono">Category:Mono</a> <a href="/index.php?title=Category:Lua" title="Category:Lua">Category:Lua</a> '''function''' mono_findMethod(''namespace'', ''className'', ''methodName'') ''':''' integer Returns the method Id of the given method name in…'</p>
<p><b>New page</b></p><div>[[Category:Mono]]<br />
[[Category:Lua]]<br />
'''function''' mono_findMethod(''namespace'', ''className'', ''methodName'') ''':''' integer<br />
<br />
Returns the method Id of the given method name in the given class name in the namespace.<br />
<br />
===Function Parameters===<br />
{|width="85%" cellpadding="10%" cellpadding="5%" cellspacing="0" border="0"<br />
!align="left"|Parameter<br />
!align="left"|Type<br />
!style="width: 80%;background-color:white;" align="left"|Description<br />
|-<br />
|namespace<br />
|string<br />
|The namespace of the method<br />
|-<br />
|className<br />
|string<br />
|The class name of the method<br />
|-<br />
|methodName<br />
|string<br />
|The name of the method<br />
|}<br />
<br />
<br />
== Examples ==<br />
=== In Lua Engine form ===<br />
: While attached to [https://wikipedia.org/wiki/Cuphead Cuphead].<br />
'''Input:'''<br />
<pre><br />
return mono_findMethod('', 'PlayerStatsManager', 'TakeDamage')<br />
</pre><br />
'''Output:'''<br />
<pre><br />
:284818304<br />
</pre><br />
'''Input:'''<br />
<pre><br />
return mono_findMethod('Assembly-CSharp', 'PlayerStatsManager', 'TakeDamage')<br />
</pre><br />
'''Output:'''<br />
<pre><br />
:284818304<br />
</pre><br />
<br />
<br />
{{MonoSeeAlso}}<br />
<br />
=== Related Functions ===<br />
* [[Mono:Lua:mono_class_findMethod|mono_class_findMethod]]<br />
* [[Mono:Lua:mono_findMethod|mono_findMethod]]<br />
* [[Mono:Lua:mono_method_getName|mono_method_getName]]<br />
* [[Mono:Lua:mono_method_getHeader|mono_method_getHeader]]<br />
* [[Mono:Lua:mono_method_getSignature|mono_method_getSignature]]<br />
* [[Mono:Lua:mono_method_disassemble|mono_method_disassemble]]<br />
* [[Mono:Lua:mono_method_getClass|mono_method_getClass]]<br />
* [[Mono:Lua:mono_methodheader_getILCode|mono_methodheader_getILCode]]<br />
* [[Mono:Lua:mono_getILCodeFromMethod|mono_getILCodeFromMethod]]<br />
* [[Mono:Lua:mono_invoke_method|mono_invoke_method]]</div>
TheyCallMeTim13