예제 #1
0
    // Token: 0x06003442 RID: 13378 RVA: 0x000D6FC4 File Offset: 0x000D51C4
    public void CreateCheckpoint()
    {
        SaveGameData saveGameData = Game.Checkpoint.SaveGameData;

        SaveSceneManager.Master.SaveWithoutClearing(saveGameData.Master);
        saveGameData.ApplyPendingScenes();
        if (Scenes.Manager)
        {
            foreach (SceneManagerScene sceneManagerScene in Scenes.Manager.ActiveScenes)
            {
                if (sceneManagerScene.IsVisible && sceneManagerScene.HasStartBeenCalled && sceneManagerScene.SceneRoot.SaveSceneManager)
                {
                    sceneManagerScene.SceneRoot.SaveSceneManager.Save(saveGameData.InsertScene(sceneManagerScene.MetaData.SceneMoonGuid));
                }
            }
        }
        Game.Checkpoint.Events.OnPostCreate.Call();
    }