| 38 | } |
| 39 | |
| 40 | void addChild(uint16_t childIndex) |
| 41 | { |
| 42 | size_t index = 0; |
| 43 | for (; index < MaxChildren; ++index) { |
| 44 | if (childIndices[index] == InvalidIndex) |
| 45 | break; |
| 46 | } |
| 47 | assert(index < MaxChildren); |
| 48 | childIndices[index] = childIndex; |
| 49 | } |
| 50 | }; |
| 51 | |
| 52 | PathNode PathNodes[MaxPathNodes]; |