3#include "../AI/BTGraphLayoutEngine.h"
4#include "../AI/BehaviorTree.h"
9 namespace NodeGraphShared
17 inline std::vector<BTNodeLayout>
ComputeLayout(
float nodeSpacingX,
float nodeSpacingY,
float zoomFactor)
20 return std::vector<BTNodeLayout>();
ComponentTypeID GetComponentTypeID_Static()
Computes clean hierarchical layouts for behavior trees.
bool UpdateNodePosition(uint32_t nodeId, float x, float y)
Update the stored position for a node (e.g.
const BTNodeLayout * GetNodeLayout(uint32_t nodeId) const
Get computed layout for a specific node.
std::vector< BTNodeLayout > ComputeLayout(const BehaviorTreeAsset *tree, float nodeSpacingX=320.0f, float nodeSpacingY=180.0f, float zoomFactor=1.0f)
Compute layout for a behavior tree.
const ::BehaviorTreeAsset * m_tree
BTGraphLayoutEngine * m_layoutEngine
std::vector< BTNodeLayout > ComputeLayout(float nodeSpacingX, float nodeSpacingY, float zoomFactor)
BehaviorTreeAdapter(const ::BehaviorTreeAsset *tree, BTGraphLayoutEngine *layoutEngine)
bool UpdateNodePosition(uint32_t nodeId, float x, float y)
const BTNodeLayout * GetNodeLayout(uint32_t nodeId) const
< Provides AssetID and INVALID_ASSET_ID
Layout information for a single behavior tree node.