3#include "../AI/BTEditorCommand.h"
4#include "../AI/BehaviorTree.h"
8 namespace NodeGraphShared
22 auto cmd = std::make_unique<AddNodeCommand>(
m_tree, type, name,
pos);
33 auto cmd = std::make_unique<DeleteNodeCommand>(
m_tree, nodeId);
40 auto cmd = std::make_unique<ConnectNodesCommand>(
m_tree, parentId, childId);
47 auto cmd = std::make_unique<DisconnectNodesCommand>(
m_tree, parentId, childId);
BTNodeType
Behavior tree node types.
ComponentTypeID GetComponentTypeID_Static()
Manages undo/redo stacks for editor commands.
void Execute(std::unique_ptr< BTEditorCommand > cmd)
Execute a command and add it to the undo stack.
uint32_t AddNode(BTNodeType type, const std::string &name, const Vector &pos)
void DisconnectNodes(uint32_t parentId, uint32_t childId)
void DeleteNode(uint32_t nodeId)
BehaviorTreeAsset * m_tree
CommandAdapter(BTCommandStack *stack, BehaviorTreeAsset *tree)
void MoveNode(uint32_t nodeId, const Vector &oldPos, const Vector &newPos)
void ConnectNodes(uint32_t parentId, uint32_t childId)
< Provides AssetID and INVALID_ASSET_ID
std::vector< BTNode > nodes