Exemple #1
0
        public static Save_Info get_save_info(int file_id, Save_File file, bool suspend)
        {
            Save_Info result = new Save_Info();

            result.File_Id = file_id;

            result.Time = new DateTime(); //@Yeti
            var mostRecent = file.most_recent_save;

            if (mostRecent != null)
            {
                result.Time = mostRecent.time;
            }

            result.Style           = file.Style;
            result.Map_Save_Exists = false;
            result.Suspend_Exists  = suspend;

            if (file.NoData)
            {
                result.Chapter_Id = "";
                result.Difficulty = file.Difficulty;
            }
            else
            {
                Save_Data data = file.most_recent_save;
                result.Chapter_Id = data.chapter_id;
                result.Difficulty = data.difficulty;
                //result.Chapter_Id = file.data[chapter_id][indices[index]].chapter_id; //Debug
                //result.Difficulty = file.data[chapter_id][indices[index]].difficulty;
            }

            result.get_save_info(file);
            return(result);
        }
Exemple #2
0
        public static Save_Info get_save_info(int file_id, Save_File file, Suspend_Info suspend_info, bool map_save = false, bool suspend = false)
        {
            Save_Info result = new Save_Info();

            result.File_Id = file_id;

            result.Time            = suspend_info.time;
            result.Style           = suspend_info.style;
            result.Map_Save_Exists = map_save;
            result.Suspend_Exists  = suspend;

            result.Chapter_Id = suspend_info.chapter_id;
            result.Difficulty = suspend_info.difficulty;

            result.get_save_info(file);
            return(result);
        }