mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2024-12-28 00:15:06 +00:00
3f14011087
Choose a parent base on which node is used to iterate over children nodes. This leads to duplicate handing of child nodes. A node will be handled so many times how many parents it has. For example: p1 p2 \ / c Will be handled as: p1 p2 | | c c If c has children they will be handled X times c is handled.
16 lines
222 B
C++
16 lines
222 B
C++
#ifndef OPENMW_COMPONENTS_NIF_PARENT_HPP
|
|
#define OPENMW_COMPONENTS_NIF_PARENT_HPP
|
|
|
|
namespace Nif
|
|
{
|
|
struct NiNode;
|
|
|
|
struct Parent
|
|
{
|
|
const NiNode& mNiNode;
|
|
const Parent* mParent;
|
|
};
|
|
}
|
|
|
|
#endif
|