Example #1
0
        public override void WriteToStream(Stream stream)
        {
            BinaryWriter writer = new BinaryWriter(stream);

            writer.Write(UnknownStreetPass1);
            writer.Write(UnknownStreetPass2);
            writer.Write(UnknownStreetPass3);
            foreach (CharacterListing charaListing in CharacterListings)
            {
                charaListing.WriteToStream(stream);
            }
            UnknownUnusedCharacterListing.WriteToStream(stream);
            GuildCardCharacter.WriteToStream(stream);
            writer.Write(guildName);
            writer.Write(skyshipName);
            writer.Write(message);
            writer.Write(EnemyDiscoveryRaw);
            writer.Write(ItemDiscoveryRaw);
            writer.Write(MaxLevel);
            writer.Write(VenturedDays);
            writer.Write(Walked);
            writer.Write(EnemiesHunted);
            writer.Write(TotalEn);
            Achievement.WriteToStream(stream);
            writer.Write(Background);
            writer.Write(TreasureMap);
            writer.Write(Unknown1);
            writer.Write(Unknown2);
        }
Example #2
0
        public override void ReadFromStream(Stream stream)
        {
            BinaryReader reader = new BinaryReader(stream);

            UnknownStreetPass1 = reader.ReadUInt32();
            UnknownStreetPass2 = reader.ReadUInt32();
            UnknownStreetPass3 = reader.ReadUInt32();
            CharacterListings  = new CharacterListing[5];
            for (int i = 0; i < CharacterListings.Length; i++)
            {
                CharacterListings[i] = new CharacterListing(stream);
            }
            UnknownUnusedCharacterListing = new CharacterListing(stream);
            GuildCardCharacter            = new GuildCardCharacter(stream);
            guildName         = reader.ReadBytes(16);
            skyshipName       = reader.ReadBytes(16);
            message           = reader.ReadBytes(32);
            EnemyDiscoveryRaw = reader.ReadUInt32();
            ItemDiscoveryRaw  = reader.ReadUInt32();
            MaxLevel          = reader.ReadUInt32();
            VenturedDays      = reader.ReadUInt32();
            Walked            = reader.ReadUInt32();
            EnemiesHunted     = reader.ReadUInt32();
            TotalEn           = reader.ReadUInt32();
            Achievement       = new Achievements(stream);
            Background        = reader.ReadByte();
            TreasureMap       = reader.ReadByte();
            Unknown1          = reader.ReadByte();
            Unknown2          = reader.ReadByte();
        }