Ejemplo n.º 1
0
        public static void Save()
        {
            if (!savesInitialized)
            {
                InitializeSaveStates();
            }

            SaveState state = SaveState.Create(saveSlot);

            saves.SetState(saveSlot, state);
            WriteSaves();
            InterfaceManager.SetNotification("Slot " + saveSlot + " Saved");
        }
Ejemplo n.º 2
0
        public static void NotifySlot()
        {
            if (!savesInitialized)
            {
                InitializeSaveStates();
            }

            SaveState state = saves.GetState(saveSlot);
            string    level = "";

            if (state != null)
            {
                if (state.SavedInHub)
                {
                    level = "Hub ";
                }
                level += Text.Get(Map.LevelsStrings_withLevelPrepended[state.Level]);
            }
            else
            {
                level = "Empty";
            }
            InterfaceManager.SetNotification("Slot " + saveSlot + " - " + level);
        }