Mono:Lua:mono class getStaticFieldAddress

From Cheat Engine
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

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


Examples

In Lua Engine form

While attached to Cuphead.

Input:

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

Output:

:307699432


See also

Related Functions