Mono:Lua:mono class getStaticFieldAddress

From Cheat Engine
Revision as of 01:13, 6 May 2018 by TheyCallMeTim13 (talk | contribs) (Created page with 'Category:Mono Category:Lua '''function''' mono_class_getStaticFieldAddress(''domainId'', ''classId'') ''':''' string Returns the base address for a special area that sto…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

function mono_class_getStaticFieldAddress(domainId, classId) : string

Returns the base address for a special area that stores static addresses for a given class.

i.e.: If you have a class that has 5 static fields, their offsets will be added to this base address to get the memory location.

Function Parameters[edit]

Parameter Type Description
domainId integer The domain's ID
classId integer The class' ID


Examples[edit]

In Lua Engine form[edit]

While attached to Cuphead.

Input:

local cId = mono_findClass('', 'PlayerStatsManager')
return mono_class_getStaticFieldAddress(mono_enumDomains()[1], cId)

Output:

:307699432


See also[edit]

Related Functions[edit]