public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );

			writer.WriteEncodedInt( 0 );
			writer.Write( m_Sound );
		}
Ejemplo n.º 2
1
        public override void Serialize(GenericWriter writer)
        {
            base.Serialize(writer);
            writer.Write((int)0);

            writer.WriteDeltaTime(m_DecayTime);
        }
Ejemplo n.º 3
1
		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );
			writer.Write( (int) 1 ); // version

			writer.Write( (int)m_Level );
		}
Ejemplo n.º 4
1
        public static void Object(GenericWriter writer, object obj)
        {
            if (writer == null)
                return;
				
            if (obj is int)
            {
                writer.Write((byte)0x1);
                writer.Write((int)obj);
            }
            else if (obj is String)
            {
                writer.Write((byte)0x2);
                writer.Write((String)obj);
            }
            else if (obj is Item)
            {
                writer.Write((byte)0x3);				
                writer.Write((Item)obj);
            }
            else if (obj is Mobile)
            {
                writer.Write((byte)0x4);				
                writer.Write((Mobile)obj);
            }
            else
            {
                writer.Write((byte)0x0); // invalid
            }
        }
Ejemplo n.º 5
1
		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );

			writer.Write( (int) 0 );
			writer.Write( com );
		}
Ejemplo n.º 6
1
		internal void Serialize(GenericWriter writer)
		{
			writer.WriteEncodedInt(0); // version

			writer.Write((TimeSpan)m_DuelTime);
			writer.WriteMobileList<Mobile>(m_AgainstList);
		}
        public override void Serialize(GenericWriter writer)
        {
            base.Serialize(writer);

            writer.Write((int)0);
            writer.Write(this.m_Board);
        }
Ejemplo n.º 8
1
        public override void Serialize(GenericWriter writer)
        {
            base.Serialize(writer);

            writer.Write((int)1); // version
            writer.Write(m_IsBarnacleItem);
        }
Ejemplo n.º 9
1
        public static void Type(GenericWriter writer, Type type)
        {
            if (writer == null)
                return;
				
            writer.Write(type == null ? null : type.FullName);
        }
Ejemplo n.º 10
1
        public override void Serialize(GenericWriter writer)
        {
            base.Serialize(writer);
            writer.Write(0);

            writer.Write(m_Owner);
        }
Ejemplo n.º 11
1
        }// powder of fortifying
        public override void Serialize(GenericWriter writer)
        {
            base.Serialize(writer);

            writer.Write((int)0);
            writer.Write((int)this.m_UsesRemaining);
        }
Ejemplo n.º 12
1
		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );
            writer.Write(1);

            writer.Write(m_IsShipwreckedItem);
        }
Ejemplo n.º 13
1
      public override void Serialize( GenericWriter writer )
      {
         base.Serialize( writer );

         writer.Write( (int) 0 ); // version

         writer.Write( (int) Slot1Graphic );
         writer.Write( (int) Slot2Graphic );
         writer.Write( (int) Slot3Graphic );

         writer.Write( (int) Slot1_x );
         writer.Write( (int) Slot1_y );
         writer.Write( (int) Slot2_x );
         writer.Write( (int) Slot2_y );
         writer.Write( (int) Slot3_x );
         writer.Write( (int) Slot3_y );
         writer.Write( (int) Prize1WinTotal );
         writer.Write( (int) Prize2WinTotal );
         writer.Write( (int) Prize3WinTotal );
         writer.Write( (int) Prize4WinTotal );
         writer.Write( (int) Prize5WinTotal );
         writer.Write( (int) Prize6WinTotal );
         writer.Write( (int) Prize7WinTotal );
         writer.Write( (int) Prize8WinTotal );
      }
Ejemplo n.º 14
1
		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );
			writer.Write( (int) 0 ); // version
			
			writer.Write( (bool) isactive );
		}
Ejemplo n.º 15
1
		public override void Serialize(GenericWriter writer)
		{
			base.Serialize(writer);

			int version = writer.SetVersion(0);

		}
Ejemplo n.º 16
1
		public void Serialize( GenericWriter writer )
		{
			writer.WriteEncodedInt( (int) 0 ); // version

			Faction.WriteReference( writer, m_Faction );
			writer.WriteEncodedInt( (int) m_Type );
		}
Ejemplo n.º 17
1
		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );

			writer.Write( (byte) 0 ); // version
			writer.WriteEncodedInt( (int) m_LabelNumber );
		}
Ejemplo n.º 18
1
		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );

			writer.WriteEncodedInt( 1 ); // version
			writer.Write( m_East );
		}
Ejemplo n.º 19
1
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 0 ); // version
writer.Write( m_Placer );
writer.Write( m_Value );
}
        public override void Write(GenericWriter writer)
        {
            base.Write(writer);

            writer.Write(0);//version
            CustomSaving.SerializeStringList(Components, writer);
        }
Ejemplo n.º 21
1
        public override void Serialize(GenericWriter writer) // Default Serialize method
        {
            base.Serialize(writer);

            writer.Write(0); // version
            writer.WriteEncodedInt(m_Guild);
        }
Ejemplo n.º 22
1
        public override void Serialize(GenericWriter writer)
        {
            base.Serialize(writer);

            writer.Write(1); // version
            writer.Write(cleanupTime);
        }
Ejemplo n.º 23
1
 public override void Serialize(GenericWriter writer)
 {
     base.Serialize(writer);
     writer.Write(0);
     writer.Write(_Hatch);
     writer.Write(_CanHatch);
 }
Ejemplo n.º 24
1
		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );

			writer.WriteEncodedInt( (int) 0 ); // version
			writer.Write( (Mobile) m_Owner );
		}
Ejemplo n.º 25
1
		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );
			writer.Write( (int) 0 );
			writer.Write( (int) m_Skill1 );
			writer.Write( (int) m_Skill2 );
		}
 public void Serialize(GenericWriter writer)
 {
     writer.Write(0);//version
     writer.Write(Map);
     writer.Write(Location);
     writer.Write(Name);
 }
Ejemplo n.º 27
1
		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );

			writer.Write( (int) 0 ); // version
			writer.Write( m_SkillBonus );
		}
Ejemplo n.º 28
1
		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );

			writer.Write( (int) 0 ); // version
			writer.Write( (int) m_Resource );
		}
Ejemplo n.º 29
1
        public override void Serialize(GenericWriter writer)
        {
            base.Serialize(writer);

            writer.Write(0); // version

        }
Ejemplo n.º 30
1
		public void Save( GenericWriter writer )
		{
			writer.Write( 0 ); // version

			writer.Write( m_First );
			writer.Write( m_Second );
		}
Ejemplo n.º 31
0
 public override void Serialize(GenericWriter writer)
 {
     base.Serialize(writer);
     writer.Write((int)0);
     writer.Write((int)m_DrainIntensity);
 }
Ejemplo n.º 32
0
        public override void Serialize(GenericWriter writer)
        {
            base.Serialize(writer);

            writer.Write(0); // version
        }
Ejemplo n.º 33
0
 public override void Serialize(GenericWriter writer)
 {
     base.Serialize(writer);
     writer.Write((int)0);
 }
Ejemplo n.º 34
0
 public override void Serialize(GenericWriter writer)
 {
     base.Serialize(writer);
     writer.Write(1);
     writer.Write(m_Owner);
 }
Ejemplo n.º 35
0
        public override void Serialize(GenericWriter writer)
        {
            base.Serialize(writer);

            writer.Write(0); // version

            SaveFlag flags = SaveFlag.None;

            SetSaveFlag(ref flags, SaveFlag.Attributes, !this.m_Attributes.IsEmpty);
            SetSaveFlag(ref flags, SaveFlag.LowerAmmoCost, this.m_LowerAmmoCost != 0);
            SetSaveFlag(ref flags, SaveFlag.WeightReduction, this.m_WeightReduction != 0);
            SetSaveFlag(ref flags, SaveFlag.DamageIncrease, this.m_DamageIncrease != 0);
            SetSaveFlag(ref flags, SaveFlag.Crafter, this.m_Crafter != null);
            SetSaveFlag(ref flags, SaveFlag.Quality, true);
            SetSaveFlag(ref flags, SaveFlag.Capacity, this.m_Capacity > 0);

            #region Mondain's Legacy Sets
            SetSaveFlag(ref flags, SaveFlag.SetAttributes, !this.m_SetAttributes.IsEmpty);
            SetSaveFlag(ref flags, SaveFlag.SetSkillAttributes, !this.m_SetSkillBonuses.IsEmpty);
            SetSaveFlag(ref flags, SaveFlag.SetHue, this.m_SetHue != 0);
            SetSaveFlag(ref flags, SaveFlag.LastEquipped, this.m_LastEquipped);
            SetSaveFlag(ref flags, SaveFlag.SetEquipped, this.m_SetEquipped);
            #endregion

            writer.WriteEncodedInt((int)flags);

            if (GetSaveFlag(flags, SaveFlag.Attributes))
            {
                this.m_Attributes.Serialize(writer);
            }

            if (GetSaveFlag(flags, SaveFlag.LowerAmmoCost))
            {
                writer.Write((int)this.m_LowerAmmoCost);
            }

            if (GetSaveFlag(flags, SaveFlag.WeightReduction))
            {
                writer.Write((int)this.m_WeightReduction);
            }

            if (GetSaveFlag(flags, SaveFlag.DamageIncrease))
            {
                writer.Write((int)this.m_DamageIncrease);
            }

            if (GetSaveFlag(flags, SaveFlag.Crafter))
            {
                writer.Write((Mobile)this.m_Crafter);
            }

            if (GetSaveFlag(flags, SaveFlag.Quality))
            {
                writer.Write((int)this.m_Quality);
            }

            if (GetSaveFlag(flags, SaveFlag.Capacity))
            {
                writer.Write((int)this.m_Capacity);
            }

            #region Mondain's Legacy Sets
            if (GetSaveFlag(flags, SaveFlag.SetAttributes))
            {
                this.m_SetAttributes.Serialize(writer);
            }

            if (GetSaveFlag(flags, SaveFlag.SetSkillAttributes))
            {
                this.m_SetSkillBonuses.Serialize(writer);
            }

            if (GetSaveFlag(flags, SaveFlag.SetHue))
            {
                writer.Write((int)this.m_SetHue);
            }

            if (GetSaveFlag(flags, SaveFlag.LastEquipped))
            {
                writer.Write((bool)this.m_LastEquipped);
            }

            if (GetSaveFlag(flags, SaveFlag.SetEquipped))
            {
                writer.Write((bool)this.m_SetEquipped);
            }
            #endregion
        }
Ejemplo n.º 36
0
 public override void Serialize(GenericWriter writer)
 {
     base.Serialize(writer);
     writer.WriteEncodedInt(0);
 }
Ejemplo n.º 37
0
        public override void Serialize(GenericWriter writer)
        {
            base.Serialize(writer);

            writer.WriteEncodedInt((int)0);                // version
        }
Ejemplo n.º 38
0
        public override void Serialize(GenericWriter writer)
        {
            base.Serialize(writer);

            writer.Write((int)0); // version

            SaveFlag flags = SaveFlag.None;

            SetSaveFlag(ref flags, SaveFlag.Attributes, !m_AosAttributes.IsEmpty);
            SetSaveFlag(ref flags, SaveFlag.SkillBonuses, !m_AosSkillBonuses.IsEmpty);
            SetSaveFlag(ref flags, SaveFlag.Protection, m_Protection != null && !m_Protection.IsEmpty);
            SetSaveFlag(ref flags, SaveFlag.Killer, m_Killer != null && !m_Killer.IsEmpty);
            SetSaveFlag(ref flags, SaveFlag.Summoner, m_Summoner != null && !m_Summoner.IsEmpty);
            SetSaveFlag(ref flags, SaveFlag.Removal, m_Removal != TalismanRemoval.None);
            SetSaveFlag(ref flags, SaveFlag.Skill, (int)m_Skill != 0);
            SetSaveFlag(ref flags, SaveFlag.SuccessBonus, m_SuccessBonus != 0);
            SetSaveFlag(ref flags, SaveFlag.ExceptionalBonus, m_ExceptionalBonus != 0);
            SetSaveFlag(ref flags, SaveFlag.MaxCharges, m_MaxCharges != 0);
            SetSaveFlag(ref flags, SaveFlag.Charges, m_Charges != 0);
            SetSaveFlag(ref flags, SaveFlag.MaxChargeTime, m_MaxChargeTime != 0);
            SetSaveFlag(ref flags, SaveFlag.ChargeTime, m_ChargeTime != 0);
            SetSaveFlag(ref flags, SaveFlag.Blessed, m_Blessed);
            SetSaveFlag(ref flags, SaveFlag.Slayer, m_Slayer != TalismanSlayerName.None);

            writer.WriteEncodedInt((int)flags);

            if (GetSaveFlag(flags, SaveFlag.Attributes))
            {
                m_AosAttributes.Serialize(writer);
            }

            if (GetSaveFlag(flags, SaveFlag.SkillBonuses))
            {
                m_AosSkillBonuses.Serialize(writer);
            }

            if (GetSaveFlag(flags, SaveFlag.Protection))
            {
                m_Protection.Serialize(writer);
            }

            if (GetSaveFlag(flags, SaveFlag.Killer))
            {
                m_Killer.Serialize(writer);
            }

            if (GetSaveFlag(flags, SaveFlag.Summoner))
            {
                m_Summoner.Serialize(writer);
            }

            if (GetSaveFlag(flags, SaveFlag.Removal))
            {
                writer.WriteEncodedInt((int)m_Removal);
            }

            if (GetSaveFlag(flags, SaveFlag.Skill))
            {
                writer.WriteEncodedInt((int)m_Skill);
            }

            if (GetSaveFlag(flags, SaveFlag.SuccessBonus))
            {
                writer.WriteEncodedInt(m_SuccessBonus);
            }

            if (GetSaveFlag(flags, SaveFlag.ExceptionalBonus))
            {
                writer.WriteEncodedInt(m_ExceptionalBonus);
            }

            if (GetSaveFlag(flags, SaveFlag.MaxCharges))
            {
                writer.WriteEncodedInt(m_MaxCharges);
            }

            if (GetSaveFlag(flags, SaveFlag.Charges))
            {
                writer.WriteEncodedInt(m_Charges);
            }

            if (GetSaveFlag(flags, SaveFlag.MaxChargeTime))
            {
                writer.WriteEncodedInt(m_MaxChargeTime);
            }

            if (GetSaveFlag(flags, SaveFlag.ChargeTime))
            {
                writer.WriteEncodedInt(m_ChargeTime);
            }

            if (GetSaveFlag(flags, SaveFlag.Slayer))
            {
                writer.WriteEncodedInt((int)m_Slayer);
            }
        }
Ejemplo n.º 39
0
 public override void Serialize(GenericWriter writer)
 {
     base.Serialize(writer);
     writer.Write((int)2);                       // version
     //writer.Write( (bool) false );	// removed deco field in version 2
 }