Hey guys,
So ive been dumping the vTables today. Not sure if ive done it right thought xD
Anyway, the reason for my dumping, is that I need a good way to check if im casting when InProcess.
I found CGPlayer_C__GetSpellCastingTime which seems to be 0x85.
I am using WhiteMagic to do this.
My code is as follows:
Code:
private readonly CastTimeDelegate _castingTime;
public WoWLocalPlayer(IntPtr pointer)
: base(pointer)
{
_castingTime = RegisterVirtualFunction<CastTimeDelegate>((uint) vTables.CGPlayer_C.CGPlayer_C__GetSpellCastingTime);
}
#region Nested type: CastTimeDelegate
[UnmanagedFunctionPointer(CallingConvention.ThisCall)]
private delegate int CastTimeDelegate(IntPtr thisObj);
#endregion
and to call it I am using
Code:
public int CastingTime()
{
return _castingTime(Pointer);
}
This is returning a huge result...
Any ideas?