NodeDataVector
for unique execution data like random seeds, ensuring independent behaviors. This design reduces memory overhead, enhances runtime efficiency, and simplifies instance creation without duplicating the tree's logic.NodeDataVector
, ensuring flexibility and adaptability in node behavior. By allowing custom logic at the leaf level, this design provides a powerful way to tailor AI behaviors while maintaining the efficiency and structure of the shared behavior tree. It ensures extensibility without compromising the tree's core logic.