mono_class_getStaticFieldAddress
Description:
Returns the start address of static fields from a given class.
Command Parameters:
A)
Type
|
Description
|
long
|
Class address
|
B)
Use this, if its a subclass
Type
|
Description
|
long
|
Domain address
|
long
|
Class address
|
Returns:
Type
|
Description
|
long
|
Start address of static fields within this class
|
Example A)
local classBase = mono_findClass("MyGame", "Player")
local staticFieldsBaseAddess = mono_class_getStaticFieldAddress(classBase)
-- print(tohex(staticFieldsBaseAddess))
registerSymbol("ReputationStaticField", staticFieldsBaseAddess + 0x58)