예제 #1
0
    public void LoadPathsFromData(PathsData pd_)
    {
        List <Node>    nodesPath = new List <Node>();
        PersonBehavior person    = null;

        foreach (PathData p in pd_.paths)
        {
            person = FindPersonByID(p.personID);
            if (person != null)
            {
                foreach (int n in p.nodes)
                {
                    nodesPath.Add(sc.GetGraph().FindNodeByID(n));
                }
                person.SetNodesPath(nodesPath);
                nodesPath = new List <Node>();
            }
        }

        alreadyBaked = true;
    }
예제 #2
0
 public static void SetPathsData(PathsData pd_)
 {
     pathsData = pd_;
 }
예제 #3
0
 public static void LoadPaths()
 {
     pathsData = LoadData <PathsData>(dataPathsFilename);
 }