plugin struct utilization::??
Posted: Sat Sep 18, 2004 1:57 am
I am trying to better understand what takes place when I use something like this in my plugin:
((PCHARINFO)pCharData)->heading
I understand the concept, mostly. The first segment being the struct itself, the next being the defined location in eqgame.exe's memory. and heading being of course the name given to that specific variable.
What I seek to understand, is what MacroQuest is doing in the 2nd section, I am aware it is a pointer, what I want to do is learn how it is being understood by our compiler. I have tried following as much of MQ2's source by myself to no avail, thats a lot of coding. Is there something I can read up on?, is there any specific names to what is happening here?
// edit: perhaps I should've posted this in the Plugins directory
((PCHARINFO)pCharData)->heading
I understand the concept, mostly. The first segment being the struct itself, the next being the defined location in eqgame.exe's memory. and heading being of course the name given to that specific variable.
What I seek to understand, is what MacroQuest is doing in the 2nd section, I am aware it is a pointer, what I want to do is learn how it is being understood by our compiler. I have tried following as much of MQ2's source by myself to no avail, thats a lot of coding. Is there something I can read up on?, is there any specific names to what is happening here?
// edit: perhaps I should've posted this in the Plugins directory