Example #1
0
 public BehaviourTreeExecutionData(BehaviourTreeMetadata <TBlackboard> metadata, Pool pool)
 {
     _pool     = pool;
     Stack     = new Deque <BehaviourTreeNode <TBlackboard> >(metadata.NodesCount);
     Variables = new int[metadata.VariablesCount];
     Statuses  = new BehaviourTreeStatus[metadata.NodesCount];
 }
Example #2
0
        public override void DeclareNode(BehaviourTreeMetadata <TBlackboard> metadata)
        {
            base.DeclareNode(metadata);

            foreach (var node in _children)
            {
                node.DeclareNode(metadata);
            }
        }
Example #3
0
 public Pool(BehaviourTreeMetadata <TBlackboard> metadata)
 {
     _metadata = metadata;
 }
 public virtual void DeclareNode(BehaviourTreeMetadata <TBlackboard> metadata)
 {
     Id = metadata.DeclareNode(this);
 }