Ejemplo n.º 1
0
        private static EnumerationMember CreateSaveEnumerationMember(string file, string name)
        {
            var member = new EnumerationMember();

            member.Value = file;

            var slotJson = EncryptString.Decompress(File.ReadAllBytes(file));
            var slotData = JsonConvert.DeserializeObject <SlotDataDisplayNameProxy>(slotJson);

            member.Description = slotData.m_DisplayName + " (" + name + ")";

            return(member);
        }
Ejemplo n.º 2
0
        private static EnumerationMember CreateSaveEnumerationMember(string file, string name)
        {
            var member = new EnumerationMember();

            member.Value = file;

            var slotJson = EncryptString.Decompress(File.ReadAllBytes(file));
            var slotData = new DynamicSerializable <SlotData>(slotJson).Obj;

            member.Description = slotData.m_DisplayName + " (" + name + ")";

            return(member);
        }
Ejemplo n.º 3
0
        private static EnumerationMember CreateSaveEnumerationMember(string file, string name)
        {
            var member = new EnumerationMember();

            member.Value = file;

            var data     = EncryptString.DecompressBytesToString(File.ReadAllBytes(file));
            var slotData = Util.DeserializeObject <SlotData>(data);

            var bytes      = slotData.m_Dict["global"];
            var json       = EncryptString.DecompressBytesToString(bytes);
            var globalData = JsonConvert.DeserializeObject <GlobalSaveGameFormat>(json);

            member.Description = slotData.m_DisplayName + " (" + name + ")";

            return(member);
        }