public override void WriteToStream(Stream stream) { BinaryWriter writer = new BinaryWriter(stream); writer.Write((byte)BaseFlags); writer.Write(Portrait); writer.Write(ID); writer.Write(Level); writer.Write((byte)Class); writer.Write((byte)Subclass); writer.Write((ushort)StatusAilments); WeaponSlot.WriteToStream(stream); EquipmentSlot.WriteToStream(stream); ArmorSlot1.WriteToStream(stream); ArmorSlot2.WriteToStream(stream); writer.Write(Unknown1); writer.Write(Unknown2); writer.Write(Unknown3); writer.Write(Unknown4); writer.Write(Unknown5); BaseStats.WriteToStream(stream); CumulativeStatsAfterSkills.WriteToStream(stream); CumulativeStatsAfterEquipment.WriteToStream(stream); CumulativeStatsAfterUnknown1.WriteToStream(stream); CumulativeStatsAfterUnknown2.WriteToStream(stream); CumulativeStatsAfterUnknown3.WriteToStream(stream); writer.Write(CurrentHP); writer.Write(CurrentTP); writer.Write(CurrentEXP); writer.Write(name); writer.Write(NamePadding); writer.Write(UnknownTotalSkillPoints); writer.Write(AvailableSkillPoints); writer.Write(MainSkillLevels); writer.Write(SubSkillLevels); writer.Write(Unknown6); writer.Write(BookSTRModifier); writer.Write(BookVITModifier); writer.Write(BookAGIModifier); writer.Write(BookLUCModifier); writer.Write(BookTECModifier); writer.Write(Unknown7); writer.Write(Unknown8); writer.Write(Unknown9); writer.Write(Unknown10); writer.Write(Unknown11); writer.Write(Unknown12); writer.Write(Unknown13); writer.Write(Unknown14); writer.Write(Unknown15); writer.Write(Unknown16); writer.Write(Unknown17); writer.Write(Unknown18); writer.Write(DuplicateID); writer.Write(PartySlot); writer.Write(Unknown19); writer.Write(originGuildName); writer.Write(Unknown20); }
public override void WriteToStream(Stream stream) { BinaryWriter writer = new BinaryWriter(stream); writer.Write(Portrait); writer.Write(Level); writer.Write((byte)Class); writer.Write((byte)Subclass); WeaponSlot.WriteToStream(stream); EquipmentSlot.WriteToStream(stream); ArmorSlot1.WriteToStream(stream); ArmorSlot2.WriteToStream(stream); CumulativeStats.WriteToStream(stream); writer.Write(CurrentHP); writer.Write(CurrentTP); writer.Write(name); writer.Write(MainSkillLevels); writer.Write(SubSkillLevels); }