Esempio n. 1
0
        private Page GetOverrideSavePage(Page previous, int saveIndex, WorldSave currentGame)
        {
            WorldSave currentSaveInTheSlot = SaveLoad.Load(saveIndex, saveIndex.ToString());
            World     world = new World();

            world.InitFromSaveObject(currentSaveInTheSlot);
            Party  party    = world.Party;
            Flags  flags    = world.Flags;
            string saveName = SaveLoad.GetSaveFileDisplay(world.Flags.LastClearedArea.GetDescription(), world.Flags.LastClearedStage);

            Page page = PageUtil.GetConfirmationPage(
                previous,
                previous,
                GetSaveProcess(previous, "Overwrite", saveIndex, currentGame, string.Format("Save over file {0}.", saveIndex), string.Format("File {0} was overwritten.", saveIndex)),
                saveName,
                string.Format("Overwrite file {0}.", saveIndex),
                string.Format("Are you sure you want to overwrite file {0}?", saveIndex)
                );

            page.AddCharacters(Side.RIGHT, party.Collection);
            return(page);
        }