示例#1
0
        //private Dictionary<string, Info_Combo> DefaultVisualDic = new Dictionary<string, Info_Combo>();

        public void SetScenario(StoryBase story, string queue)
        {
            Story = story;
            var Queue = story.SceneInfos.Where(x => x.Queue == queue && x.Active).ToList();

            Queue.Sort(delegate(Info_Scene x, Info_Scene y)
            {
                if (x.Group == null)
                {
                    x.Group = string.Empty;
                }
                if (y.Group == null)
                {
                    y.Group = string.Empty;
                }
                return(x.Group.CompareTo(y.Group));
            });
            this.Process(Queue, null);
        }
示例#2
0
        public void Go()
        {
            string        file       = @"";
            List <string> clipsinstr = new List <string>(File.ReadAllLines(file));
            StoryBase     story      = new StoryBase();

            story.GamePath = Path.GetDirectoryName(file);
            story.LoadFrom(clipsinstr);
            //StoGenWPF.MainWindow.ReadIni(file);

            BaseScene scene = null;

            scene = new StoryScene();
            ((StoryScene)scene).SetScenario(story, story.SceneInfos[0].Queue);


            //StoGenWPF.MainWindow window = new StoGenWPF.MainWindow();
            //Projector.ProjectorWindow = window;
            //window.GlobalMenuCreator = GameWorldFactory.GameWorld;
            //window.Scene = scene;
            //window.Show();
            //window.IsVisibleChanged += Window_IsVisibleChanged;
        }