public void Load(SerBlackboard sb) { foreach (var value in sb.Values) { this.AddData(value.Name, value.Value); } }
public void Init(Graph graph) { Blackboard = new SerBlackboard(); Blackboard.Init(graph.Blackboard); foreach (var node in graph.Nodes.Values) { SerNode sn = new SerNode(); sn.Init(node); Nodes.Add(sn); } foreach (var connect in graph.Connections) { SerConnect sc = new SerConnect(); sc.Init(connect); Connections.Add(sc); } }