Beispiel #1
0
    public void Save()
    {
        PlayerData        player = new PlayerData(GlobalVar.instance.runtime.player, WorldStreamer.instance.loadedScenes);
        GlobalData        global = new GlobalData(GlobalVar.instance);
        MetaData          meta   = GlobalVar.instance.metaData;
        List <PuzzleData> puzzle = PuzzleManager.instance.puzzles;

        SaveData saveData = new SaveData(player, global, meta, puzzle);

        SaveFormatter.Save(saveData);
    }
Beispiel #2
0
        private void buttonNewGame_Click(object sender, EventArgs e)
        {
            double newBalanceAmount = 2000;

            SaveFormatter.Save(0);
            GameForm gameForm = new GameForm(newBalanceAmount);

            gameForm.Show();
            gameForm.StartPosition = FormStartPosition.Manual;
            gameForm.Location      = this.Location;
            this.Hide();
        }