Пример #1
1
		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );
			writer.Write( (int) 1 ); // version

			writer.Write( (int)m_Level );
		}
		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );
			writer.Write( (int)0 ); // version
			
			writer.Write( (Item)m_stone );
		}
Пример #3
1
 public override void Serialize(GenericWriter writer)
 {
     base.Serialize(writer);
     writer.Write((int)0); // version
     writer.Write((PlayerMobile)m_Taken);
     writer.Write((PlayerMobile)m_From);
 }
Пример #4
1
		public void Serialize( GenericWriter writer )
		{
			writer.Write( m_Lines.Length );

			for ( int i = 0; i < m_Lines.Length; ++i )
				writer.Write( m_Lines[i] );
		}
Пример #5
1
        public override void Serialize(GenericWriter writer)
        {
            base.Serialize(writer);

            writer.Write((int)0);
            writer.Write((bool)m_IsRewardItem);
        }
Пример #6
1
		public void Save( GenericWriter writer )
		{
			writer.Write( (int) 0 ); // version

			writer.Write( m_First );
			writer.Write( m_Second );
		}
		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );

			writer.Write( (int) 0 );
			writer.Write( (int) m_Charges );
		}
Пример #8
1
        public override void Serialize( GenericWriter writer )
        {
            base.Serialize( writer );
            writer.Write( (int)0 );

            writer.Write( m_StrengthBonus );
        }
Пример #9
1
		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );

			writer.Write( (int)1 );//version
            writer.Write(GiveEthereals);
		}
Пример #10
1
        public override void Serialize( GenericWriter writer )
        {
            base.Serialize( writer );

            writer.Write( (int)0 );
            writer.Write( (Mobile)m_Target );
        }
		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );
			writer.Write( 1 ); // Version
			
			writer.Write( m_IsRewardItem );
		}
        public override void Serialize( GenericWriter writer )
        {
            base.Serialize( writer );

            writer.Write( (int) 0 );
            writer.Write( (int) SkillBonus );
        }
Пример #13
1
        public override void Serialize(GenericWriter writer)
        {
            base.Serialize(writer);
            writer.Write((int)1);

            writer.Write((int)m_PlantHue);
        }
Пример #14
1
		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );
			writer.Write( (int) 1 );

			writer.Write( m_IsShipwreckedItem );
		}
Пример #15
0
 public override void Serialize(GenericWriter writer)
 {
     base.Serialize(writer);
     writer.Write((int)0);
     writer.Write(m_CaughtBy);
     writer.Write(m_DateCaught);
 }
Пример #16
0
 public override void Serialize(GenericWriter writer)
 {
     base.Serialize(writer);
     writer.Write((int)0); // version
     writer.Write((int)m_Track);
     writer.Write((int)m_Song);
 }
Пример #17
0
        public void Serialize(GenericWriter writer)
        {
            writer.Write((int)0); //version

            writer.Write((string)m_SpellType.Name);
            writer.Write((int)m_School);
        }
        public override void Serialize(GenericWriter writer)
        {
            base.Serialize(writer);

            writer.Write(0); // version
            writer.Write(m_Price);
        }
Пример #19
0
		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );

			writer.Write( (int) 0 );
			writer.Write( (int) m_UsesRemaining );
		}
Пример #20
0
		public override void Serialize(GenericWriter writer)
		{
			base.Serialize(writer);
			writer.Write((int)0); // version
			writer.Write(m_Charged);
			writer.Write(m_LastRecharged);
		}
        public override void Serialize( GenericWriter writer )
        {
            base.Serialize( writer );
            writer.Write( (int) 0 ); // version

            writer.Write( (int) m_EggType );
        }
Пример #22
0
		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );
			writer.Write( (int) 0 );

			writer.Write( (bool) m_HasPitcher );
		}
Пример #23
0
        public override void Serialize(GenericWriter writer)
        {
            base.Serialize(writer);

            writer.Write((int)0); // version
            writer.Write((int)m_UsesRemaining); // on ecrit le nombre de charge
        }
Пример #24
0
		public override void Serialize(GenericWriter writer)
		{
			base.Serialize(writer);

            int version = writer.SetVersion(1);

            switch(version)
		    {
		        case 1:
                    writer.Write(MeleeMod);
		            goto case 0;
                case 0:
		        {
                    writer.Write(MeleeVsChampMod);
                    writer.Write(ArcherVsChampMod);
                    writer.Write(ArcherMod);
                    writer.Write(BardMod);
                    writer.Write(TamerMod);
                    writer.Write(SummonMod);
                    writer.Write(ChampionMod);
                    writer.Write(MaxPoints);		            
		        }
		        break;
		    }

		}
Пример #25
0
		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );
			writer.Write( (int) 1 );

			writer.Write( m_MagicLight );
		}
Пример #26
0
        public override void Serialize( GenericWriter writer )
        {
            base.Serialize( writer );

            writer.Write( (int) 0 );
            writer.Write( (BaseCreature)m_Creature );
        }
Пример #27
0
		public override void Serialize(GenericWriter writer)
		{
			base.Serialize(writer);
			writer.Write((int)0);
			
			writer.Write(m_BacterialResistance);
		}
Пример #28
0
		public override void Serialize( GenericWriter writer )
		{
			if ( this.LastFealty+TimeSpan.FromDays( 1.0 ) < DateTime.Now )
				this.CalculateGuildmaster();

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

			writer.WriteGuildList( m_AllyDeclarations, true );
			writer.WriteGuildList( m_AllyInvitations, true );

			writer.Write( m_TypeLastChange );

			writer.Write( (int)m_Type );

			writer.Write( m_LastFealty );

			writer.Write( m_Leader );
			writer.Write( m_Name );
			writer.Write( m_Abbreviation );

			writer.WriteGuildList( m_Allies, true );
			writer.WriteGuildList( m_Enemies, true );
			writer.WriteGuildList( m_WarDeclarations, true );
			writer.WriteGuildList( m_WarInvitations, true );

			writer.WriteMobileList( m_Members, true );
			writer.WriteMobileList( m_Candidates, true );
			writer.WriteMobileList( m_Accepted, true );

			writer.Write( m_Guildstone );
			writer.Write( m_Teleporter );

			writer.Write( m_Charter );
			writer.Write( m_Website );
		}
Пример #29
0
			public override void Serialize( GenericWriter writer )
			{
				base.Serialize( writer );

				writer.Write( (int)0 );
				writer.Write( m_Tent );
			}
        public override void Serialize(GenericWriter writer)
        {
            base.Serialize(writer);

            writer.Write((int)0); // version
            writer.Write(m_Arena);
        }
Пример #31
0
        /// <summary>
        /// Serialization
        /// </summary>
        protected override void Serialize(Server.GenericWriter writer)
        {
            base.Serialize(writer);

            writer.Write((int)1); //version
            writer.Write(BowConverted);
        }
Пример #32
0
        public void Serialize(GenericWriter writer)
        {
            if (m_Base == 0 && m_Cap == 1000 && Lock == SkillLock.Up && VolumeLearned == 0 && NextGGSGain == DateTime.MinValue)
            {
                writer.Write((byte)0xFF); // default
            }
            else
            {
                int flags = 0x0;

                if (m_Base != 0)
                {
                    flags |= 0x1;
                }

                if (m_Cap != 1000)
                {
                    flags |= 0x2;
                }

                if (Lock != SkillLock.Up)
                {
                    flags |= 0x4;
                }

                if (VolumeLearned != 0)
                {
                    flags |= 0x8;
                }

                if (NextGGSGain != DateTime.MinValue)
                {
                    flags |= 0x10;
                }

                writer.Write((byte)flags); // version

                if (m_Base != 0)
                {
                    writer.Write((short)m_Base);
                }

                if (m_Cap != 1000)
                {
                    writer.Write((short)m_Cap);
                }

                if (Lock != SkillLock.Up)
                {
                    writer.Write((byte)Lock);
                }

                if (VolumeLearned != 0)
                {
                    writer.Write((int)VolumeLearned);
                }

                if (NextGGSGain != DateTime.MinValue)
                {
                    writer.Write(NextGGSGain);
                }
            }
        }
Пример #33
0
        public void Serialize(GenericWriter writer)
        {
            writer.Write((int)0);                // version;

            writer.Write(m_Min);
            writer.Write(m_Max);
            writer.Write(m_Center);

            writer.Write((int)m_Width);
            writer.Write((int)m_Height);

            writer.Write((int)m_List.Length);

            for (int i = 0; i < m_List.Length; ++i)
            {
                MultiTileEntry ent = m_List[i];

                writer.Write((short)ent.m_ItemID);
                writer.Write((short)ent.m_OffsetX);
                writer.Write((short)ent.m_OffsetY);
                writer.Write((short)ent.m_OffsetZ);
                writer.Write((int)ent.m_Flags);
            }
        }