-
Notifications
You must be signed in to change notification settings - Fork 2
List All Props
Pavle edited this page Sep 26, 2021
·
2 revisions
static ZHM5SBTargetPropManager* targetPropManager = Singletons::GetSBTargetPropManager();
int propsSize = targetPropManager->m_registeredProps.m_nSize;
TBinaryTreeIterator<TEntityRef<ZSpatialEntity> const> propIterator = targetPropManager->m_registeredProps.Begin();
TBinaryTreeNode<TEntityRef<ZSpatialEntity> const>* node;
for (int i = 0; i < propsSize; i++)
{
node = &propIterator.Node();
if (!node)
{
propIterator.operator++();
continue;
}
propIterator.operator++();
}