I need using some user data (like ItemIndex, ItemType, Attribute...etc)which linked to an entity. Now I get the Entity's pointer, how can I access those data?
I try to do this:
Using a struct collect the values,
typedef struct Item
{
int iIndex;
int iType;
int iMaxEffection;
int iMinEffection;
int iEquipLimit;
...
STRING *pszItemName;
STRING *pszItmeText;
ENTITY *pItemEnt;
}T_Item;
and then create a Item implementation in game,
use c_trace get the target pointer what I touched,
now I want to show the target name, how can I using the pointer(T_Item->pItemEnt) to get other struct members (T_Item->pszItemName)?
Thanks to read.