public override void Serialize(IDataWriter writer) { base.Serialize(writer); var flag = new byte(); flag = BooleanByteWrapper.SetFlag(0, flag, KeyRingBonus); flag = BooleanByteWrapper.SetFlag(1, flag, HasHardcoreDrop); flag = BooleanByteWrapper.SetFlag(2, flag, HasAVARewardToken); writer.WriteByte(flag); StaticInfos.Serialize(writer); writer.WriteSByte(LootShare); writer.WriteSByte(AlignmentSide); }
public new void Serialize(IDataWriter writer) { base.Serialize(writer); UInt32 wrappedBoolean = 0; StaticInfos.Serialize(writer); writer.WriteDouble(CreationTime); writer.WriteInt((Int32)AgeBonusRate); writer.WriteByte((Byte)LootShare); writer.WriteByte((Byte)AlignmentSide); wrappedBoolean = 0; wrappedBoolean = BooleanByteWrapper.SetFlag(wrappedBoolean, 0, KeyRingBonus); wrappedBoolean = BooleanByteWrapper.SetFlag(wrappedBoolean, 1, HasHardcoreDrop); wrappedBoolean = BooleanByteWrapper.SetFlag(wrappedBoolean, 2, HasAVARewardToken); writer.WriteByte((Byte)wrappedBoolean); }