You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
650 B
23 lines
650 B
using System.Collections.Generic;
|
|
using TNodeCore.Models;
|
|
using UnityEngine;
|
|
|
|
namespace TNodeCore.Runtime{
|
|
public class RuntimeGraph:MonoBehaviour{
|
|
public GraphData graphData;
|
|
public SortedSet<RuntimeNode> _sortedSet;
|
|
[SerializeReference]
|
|
public BlackboardData runtimeBlackboardData;
|
|
|
|
public void OnValidate(){
|
|
if(runtimeBlackboardData==null||runtimeBlackboardData.GetType()==typeof(BlackboardData)){
|
|
runtimeBlackboardData = graphData?.blackboardData;
|
|
}
|
|
}
|
|
}
|
|
|
|
public enum ProcessingStrategy{
|
|
BreadthFirst,
|
|
DepthFirst
|
|
}
|
|
} |