Example #1
0
        // 遷移するときに値を持たせてフラグ処理でセーブ読み込み
        public MainWindow()
        {
            InitializeComponent();
            this.MouseLeftButtonDown += (sender, e) => this.DragMove();
            reader = new Reader();
            parser = new Parser(reader.GetList(),this);
            Controller = new ViewController(this);
            SWFlag = false;
            TextFlag = false;
            EventChecker = false;
            testCount = 0;
            LineCount = 0;
            LoadScinarios();// if シナリオがあるか セーブスタートか

            State = new CurrentState();

            this.Root.DataContext = State;

            this.Title = "Platinum Toybox";

            foreach(var d in CtlDatas){ Console.WriteLine(d); }
        }
Example #2
0
 private void LoadScinarios(string FilePath)
 {
     this.Scinarios = reader.Load(FilePath);
     parser = new Parser(reader.GetList(), this);
     parser.Parsing();
     Scinarios = parser.GetData();
     CtlDatas = parser.GetControllData();
     //"/Assets/Scenarios/FirstScenario.txt"
 }