Beispiel #1
0
 public static void RemoveQuicksaveAt(int index)
 {
     Build.BuildQuicksaves buildQuicksaves = Build.BuildQuicksaves.LoadBuildQuicksaves();
     if (index != -1 && index < buildQuicksaves.QuicksavesCount)
     {
         buildQuicksaves.buildSaves.RemoveAt(index);
     }
     Build.BuildQuicksaves.SaveBuildQuicksaves(buildQuicksaves);
 }
Beispiel #2
0
            public static void AddQuicksave(Build.BuildSave newSave)
            {
                MyVesselSavedHook myVesselSavedHook = new MyVesselSavedHook(newSave);

                myVesselSavedHook = MyHookSystem.executeHook <MyVesselSavedHook>(myVesselSavedHook);
                if (myVesselSavedHook.isCanceled())
                {
                    return;
                }
                Build.BuildQuicksaves buildQuicksaves = Build.BuildQuicksaves.LoadBuildQuicksaves();
                buildQuicksaves.buildSaves.Add(newSave);
                Build.BuildQuicksaves.SaveBuildQuicksaves(buildQuicksaves);
            }
Beispiel #3
0
 public static void SaveBuildQuicksaves(Build.BuildQuicksaves buildQuicksaves)
 {
     Ref.SaveJsonString(JsonUtility.ToJson(buildQuicksaves), Saving.SaveKey.BuildQuicksaves);
 }
Beispiel #4
0
 public static void AddQuicksave(Build.BuildSave newSave)
 {
     Build.BuildQuicksaves buildQuicksaves = Build.BuildQuicksaves.LoadBuildQuicksaves();
     buildQuicksaves.buildSaves.Add(newSave);
     Build.BuildQuicksaves.SaveBuildQuicksaves(buildQuicksaves);
 }