Exemplo n.º 1
0
 public void Load(SerBlackboard sb)
 {
     foreach (var value in sb.Values)
     {
         this.AddData(value.Name, value.Value);
     }
 }
Exemplo n.º 2
0
        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);
            }
        }