-
Notifications
You must be signed in to change notification settings - Fork 2
List All Items
Pavle edited this page Mar 2, 2021
·
2 revisions
static ZHM5ActionManager* actionManager = reinterpret_cast<ZHM5ActionManager*>(Globals::g_pHM5ActionManagerSingleton);
TSListIterator<SActionTreeEntry> iterator;
TSListIterator<SActionTreeEntry>* ptr;
for (ptr = pThis->m_Actions.Begin(&iterator); ptr != pThis->m_Actions.End(&iterator); ptr++)
{
ZHM5Action* action = ptr->m_pCurrent->m_pNodeAction;
if (action->m_eActionType == EActionType::AT_PICKUP)
{
STypeID* typeID = TTypeIDHelper<IHM5Item>::GetTypeID();
ZEntityType** type = action->m_Object.QueryInterfacePtr(typeID);
IHM5Item* item = reinterpret_cast<IHM5Item*>(type);
}
}