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

			writer.Write( (int)1 );//version
            writer.Write(GiveEthereals);
		}
Example #2
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( (int) 0 );
            writer.Write( (int) SkillBonus );
        }
		public override void Serialize(GenericWriter writer)
		{
			base.Serialize(writer);

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

			writer.Write(m_WallCoordinates.Count);
			for (int i = 0; i < m_WallCoordinates.Count; i++)
				writer.Write((Point3D)m_WallCoordinates[i]);

			writer.Write(m_StartLocations.Count);
			for (int i = 0; i < m_StartLocations.Count; i++)
				writer.Write((Point3D)m_StartLocations[i]);

			writer.Write(m_GameTime);
			writer.Write((Item)m_RegionControl);
			writer.Write(m_ExitLosers);
			writer.Write(m_LinkBombs);
			writer.Write(m_ChanceForUpgrade);
			writer.Write(m_DanageWhileFS);
			writer.Write(m_WriteScoreboard);

			writer.Write(m_ExitWinner);
			writer.Write(m_ExitOnDraw);
			writer.Write(m_AutoStart);
			writer.Write(m_KeepOpenJoin);
		}
Example #5
1
		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );
			writer.Write( (int) 1 ); // version

			writer.Write( (int)m_Level );
		}
Example #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((bool)m_IsRewardItem);
        }
Example #8
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);
 }
Example #9
1
		public override void Serialize(GenericWriter writer)
		{
			writer.WriteVersion(0);

			// Version 0
			writer.Write(_Enabled);
		}
Example #10
1
		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );
			writer.WriteEncodedInt( (int)0 ); // Version

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

			writer.WriteEncodedInt( (int) 0 );
			writer.Write( m_Points );
		}
Example #12
1
		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );
			writer.Write( (int) 1 );

			writer.Write( m_IsShipwreckedItem );
		}
Example #13
1
        public override void Serialize( GenericWriter writer )
        {
            base.Serialize( writer );
            writer.Write( (int)0 );

            writer.Write( m_StrengthBonus );
        }
Example #14
1
        public override void Serialize(GenericWriter writer)
        {
            base.Serialize(writer);

            writer.Write((int)0);
            // version 0
        }
Example #15
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] );
		}
		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );

			writer.Write( (int) 1 ); // version
			writer.Write( m_AllowCombat );
		}
		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );
			writer.Write( (int)0 ); // version
			
			writer.Write( (Item)m_stone );
		}
		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );

			writer.Write( (int) 0 );
			writer.Write( (int) m_Charges );
		}
Example #19
1
        public override void Serialize(GenericWriter writer)
        {
            base.Serialize(writer);
            writer.Write((int)1);

            writer.Write((int)m_PlantHue);
        }
		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );
			writer.Write( 1 ); // Version
			
			writer.Write( m_IsRewardItem );
		}
Example #21
0
		public override void Serialize(GenericWriter writer)
		{
			base.Serialize(writer);

			int version = writer.SetVersion(1);

			switch (version)
			{
				case 1:
					{
						writer.Write(SkipTicks);
						writer.Write(SkippedTicks);
					}
					goto case 0;
				case 0:
					{
						writer.WriteBlock(
							w =>
							{
								writer.Write(CurrentSeason);
								writer.Write(TopListCount);
								writer.Write(RunnersUpCount);

								writer.WriteType(ScheduleInfo, t => ScheduleInfo.Serialize(w));

								writer.Write(AutoPvP.SeasonSchedule.Enabled);
							});

						writer.WriteBlock(w => writer.WriteType(Rewards, t => Rewards.Serialize(w)));
					}
					break;
			}
		}
Example #22
0
        /// <summary>
        /// Serialization
        /// </summary>
        protected override void Serialize(Server.GenericWriter writer)
        {
            base.Serialize(writer);

            writer.Write((int)1); //version
            writer.Write(BowConverted);
        }
		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );

			writer.Write( (int) 0 );
			writer.Write( (int) m_UsesRemaining );
		}
Example #24
0
		public static void Type( GenericWriter writer, Type type )
		{
			if ( writer == null )
				return;
				
			writer.Write( type == null ? null : type.FullName );
		}
Example #25
0
 public override void Serialize(GenericWriter writer)
 {
     base.Serialize(writer);
     writer.Write((int)0);
     writer.Write(m_CaughtBy);
     writer.Write(m_DateCaught);
 }
Example #26
0
        public override void Serialize( GenericWriter writer )
        {
            base.Serialize( writer );

            writer.Write( (byte) 0 ); // version
            writer.WriteEncodedInt( (int) m_LabelNumber );
        }
Example #27
0
			public override void Serialize( GenericWriter writer )
			{
				base.Serialize( writer );

				writer.Write( (int)0 );
				writer.Write( m_Tent );
			}
Example #28
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);
 }
Example #29
0
		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
			}
		}
        public override void Serialize(GenericWriter writer)
        {
            base.Serialize(writer);

            int version = writer.SetVersion(0);

        }
Example #31
0
		public override void Serialize(GenericWriter writer)
		{
			base.Serialize(writer);

			int version = writer.SetVersion(1);

			switch (version)
			{
				case 1:
					{
						writer.WriteBlock(
							() => writer.WriteType(
								Misc,
								t =>
								{
									if (t != null)
									{
										Misc.Serialize(writer);
									}
								}));
					}
					goto case 0;
				case 0:
					{
						writer.WriteBlock(
							() => writer.WriteType(
								Commands,
								t =>
								{
									if (t != null)
									{
										Commands.Serialize(writer);
									}
								}));

						writer.WriteBlock(
							() => writer.WriteType(
								Profiles,
								t =>
								{
									if (t != null)
									{
										Profiles.Serialize(writer);
									}
								}));

						writer.WriteBlock(
							() => writer.WriteType(
								Seasons,
								t =>
								{
									if (t != null)
									{
										Seasons.Serialize(writer);
									}
								}));
					}
					break;
			}
		}
Example #32
0
 /// <summary>
 /// Serialization
 /// </summary>
 protected override void Serialize(Server.GenericWriter writer)
 {
     base.Serialize(writer);
 }