Mono:Lua:mono class getStaticFieldAddress

From Cheat Engine

Jump to: navigation, 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.


[edit] Function Parameters

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

[edit] Examples

[edit] In Lua Engine form

While attached to Cuphead.


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



[edit] See also

[edit] Related Functions

Personal tools