예제 #1
0
 public void AddPath(Pathway path)
 {
     paths.Add(path);
 }
예제 #2
0
 public void AddScene(Scene sourceScene, List<PathwayInfo> pathInfos)
 {
     //if(!scenes.ContainsKey(sourceScene.uniqueID))
         scenes.Add(sourceScene.uniqueID, sourceScene);
     foreach (var info in pathInfos)
     {
         if (!scenes.ContainsKey(info.Scene.uniqueID))
             scenes.Add(info.Scene.uniqueID, info.Scene);
         Pathway path = new Pathway(sourceScene, info.Scene, info.Distance, info.DiscoveredProbability);
         sourceScene.AddPath(path);
         info.Scene.AddPath(path);
         paths.Add(path.uniqueID, path);
     }
 }