Hi,
since I got tired of c'n'p ing descriptor enums and mostly to be able to access descriptor offsets uniformly with my other offsets, access them at runtime via a dynamic wrapper.
If you are interested, examine this gist: http://gist.github.com/Bananenbrot/5101381
If you want to swap out my pattern, memory and offset access stuff, use base+0x4FF30 for MirrorInitialize. Or if you read this after build 5.2.0.16650, try the pattern
and pray it is not yet broken.Code:e8 ? ? ? ? e8 ? ? ? ? e8 ? ? ? ? e8 ? ? ? ? e8 ? ? ? ? e8 ? ? ? ? e8 ? ? ? ? e8 ? ? ? ? e8 ? ? ? ? e8 ? ? ? ? e8 ? ? ? ? e8 ? ? ? ? e8 ? ? ? ? e8 ? ? ? ? 6a
Example:
Much sexier than enums. As noted, it is tailored to work seamless with my other code, which probably isn't the case for you. Regard it as a proof of concept.Code:dynamic offsets = ...; int healthOffset = offsets.Descriptors.Unit.Health;