Mono:Lua:mono class getStaticFieldAddress
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