Hi guys,
I'm coding my own ObjectManager from many threads and source codes.
I've seen in the most of the managers something "weird" for me I don't understand.
There is the "WoWObject" class representing an object that is inherited by others objects. In this class, there is a method:
Code:
public T GetDescriptorField<T>(uint field) where T : struct
{
return (T)ObjectManager.Memory.Read<T>(DescriptorBase + (int)field);
}
The property "DescriptorBase" is declared:
Code:
public IntPtr DescriptorBase
{
get { return ObjectManager.Memory.Read<IntPtr>(BaseAddress + (int)Offsets.Descriptors.Descriptor); }
}
and then, in the inherited classes, it used like this:
Code:
public int DisplayId
{
get { return GetDescriptorField<int>((uint)Offsets.WoWUnit.DisplayID); }
}
So, I'd like to know why it this method is used instead of adding "0x4" to the offsets concerned by this method.
Hope you will give me an answer 
Thanks,
Raphy