Esempio n. 1
0
        public override void Serialize(GenericWriter writer)
        {
            base.Serialize(writer);

            writer.Write(10); // version

            writer.Write(m_PlayerConstructed);

            m_TalismanProtection.Serialize(writer);

            writer.Write(_VvVItem);
            writer.Write(_Owner);
            writer.Write(_OwnerName);

            //Version 7
            writer.Write((bool)m_IsImbued);

            // Version 6
            m_NegativeAttributes.Serialize(writer);

            // Version 5
            #region Region Reforging
            writer.Write((int)m_ReforgedPrefix);
            writer.Write((int)m_ReforgedSuffix);
            writer.Write((int)m_ItemPower);
            writer.Write(m_BlockRepair);
            #endregion

            #region Stygian Abyss
            writer.Write(m_GorgonLenseCharges);
            writer.Write((int)m_GorgonLenseType);

            // Version 4
            writer.WriteEncodedInt((int)m_TimesImbued);

            m_SAAbsorptionAttributes.Serialize(writer);
            #endregion

            writer.Write((Mobile)m_BlessedBy);
            writer.Write((bool)m_LastEquipped);
            writer.Write((bool)m_SetEquipped);
            writer.WriteEncodedInt((int)m_SetHue);

            m_SetAttributes.Serialize(writer);
            m_SetSkillBonuses.Serialize(writer);

            writer.Write(m_Crafter);
            writer.Write((int)m_Quality);

            // Version 3
            writer.WriteEncodedInt((int)m_MaxHitPoints);
            writer.WriteEncodedInt((int)m_HitPoints);

            writer.WriteEncodedInt((int)m_Resource);
            writer.WriteEncodedInt((int)m_GemType);

            m_AosAttributes.Serialize(writer);
            m_AosResistances.Serialize(writer);
            m_AosSkillBonuses.Serialize(writer);
        }
Esempio n. 2
0
        public override void Serialize(GenericWriter writer)
        {
            base.Serialize(writer);

            // Bumped to 8
            writer.Write((int)8);                // version

            #region SF Imbuing
            writer.WriteEncodedInt((int)m_TimesImbued);
            #endregion
            #region SA
            m_SAAbsorptionAttributes.Serialize(writer);
            #endregion

            writer.WriteEncodedInt((int)m_MaxHitPoints);
            writer.WriteEncodedInt((int)m_HitPoints);

            writer.Write((Mobile)m_BlessedBy);               // Personal Bless Deed

            #region Mondain's Legacy Sets version 4
            writer.Write((bool)m_LastEquipped);
            writer.Write((bool)m_SetEquipped);
            writer.WriteEncodedInt((int)m_SetHue);

            m_SetAttributes.Serialize(writer);
            m_SetSkillBonuses.Serialize(writer);
            #endregion

            #region Mondain's Legacy version 3
            writer.Write((Mobile)m_Crafter);
            writer.Write((int)m_Quality);
            #endregion

            writer.WriteEncodedInt((int)m_Resource);
            writer.WriteEncodedInt((int)m_GemType);

            m_AosAttributes.Serialize(writer);
            m_AosResistances.Serialize(writer);
            m_AosSkillBonuses.Serialize(writer);
        }
Esempio n. 3
0
        public override void Serialize(GenericWriter writer)
        {
            base.Serialize(writer);

            writer.Write(12); // version

            // Version 12 - removed VvV Item (handled in VvV System) and BlockRepair (Handled as negative attribute)

            writer.Write(m_SetPhysicalBonus);
            writer.Write(m_SetFireBonus);
            writer.Write(m_SetColdBonus);
            writer.Write(m_SetPoisonBonus);
            writer.Write(m_SetEnergyBonus);

            writer.Write(m_PlayerConstructed);

            m_TalismanProtection.Serialize(writer);

            writer.Write(_Owner);
            writer.Write(_OwnerName);

            //Version 7
            writer.Write(m_IsImbued);

            // Version 6
            m_NegativeAttributes.Serialize(writer);

            // Version 5
            #region Region Reforging
            writer.Write((int)m_ReforgedPrefix);
            writer.Write((int)m_ReforgedSuffix);
            writer.Write((int)m_ItemPower);
            #endregion

            #region Stygian Abyss
            writer.Write(m_GorgonLenseCharges);
            writer.Write((int)m_GorgonLenseType);

            // Version 4
            writer.WriteEncodedInt(m_TimesImbued);

            m_SAAbsorptionAttributes.Serialize(writer);
            #endregion

            writer.Write(m_BlessedBy);
            writer.Write(m_LastEquipped);
            writer.Write(m_SetEquipped);
            writer.WriteEncodedInt(m_SetHue);

            m_SetAttributes.Serialize(writer);
            m_SetSkillBonuses.Serialize(writer);

            writer.Write(m_Crafter);
            writer.Write((int)m_Quality);

            // Version 3
            writer.WriteEncodedInt(m_MaxHitPoints);
            writer.WriteEncodedInt(m_HitPoints);

            writer.WriteEncodedInt((int)m_Resource);
            writer.WriteEncodedInt((int)m_GemType);

            m_AosAttributes.Serialize(writer);
            m_AosResistances.Serialize(writer);
            m_AosSkillBonuses.Serialize(writer);
        }