Exemple #1
0
    public void StartNewGame()
    {
        modpanel.ApplyChanges();


        SavedFile state = new SaveStateWorldMap(curretnCampaign);


        FilePath.CurrentSaveFilePath = SaveLoadManager.AutoSaveCampaignProgress(state);
        Globals.campaign             = curretnCampaign;


        if (curretnCampaign.initalCutscene != "")
        {
            Globals.cutsceneData = new CutsceneData(curretnCampaign.GetCutsceneCopy(curretnCampaign.initalCutscene), state, true);
            CustomeSceneLoader.LoadCutsceneScene();
        }
        else if (curretnCampaign.initalCombat != "")
        {
            state = new SavedFileMission(curretnCampaign, curretnCampaign.GetMissionData(curretnCampaign.initalCombat));
            FilePath.CurrentSaveFilePath = SaveLoadManager.AutoSaveCampaignProgress(state);

            state.SwitchScene();
        }
        else
        {
            state.SwitchScene();
        }
    }
    private void WatchCutscene()
    {
        SaveStateWorldMap wm_state = new SaveStateWorldMap(Globals.campaign);

        Globals.cutsceneData = new CutsceneData(currCutscene, wm_state, false);


        CustomeSceneLoader.LoadCutsceneScene();
    }
Exemple #3
0
    public void Collect()
    {
        SavedFile stat = (SavedFile)(SaveLoadManager.LoadFile(FilePath.CurrentSaveFilePath));

        if (currMission.end_cutscenekey != "")
        {
            Globals.cutsceneData = new CutsceneData(Globals.campaign.GetCutsceneCopy(currMission.end_cutscenekey), stat, true);
            CustomeSceneLoader.LoadCutsceneScene();
        }
        else
        {
            stat.SwitchScene();
        }
    }