예제 #1
1
		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );

			writer.Write( (int)1 );//version
            writer.Write(GiveEthereals);
		}
예제 #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);
		}
예제 #5
1
파일: BaseBoard.cs 프로젝트: Godkong/RunUO
		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );
			writer.Write( (int) 1 ); // version

			writer.Write( (int)m_Level );
		}
예제 #6
1
		public void Save( GenericWriter writer )
		{
			writer.Write( (int) 0 ); // version

			writer.Write( m_First );
			writer.Write( m_Second );
		}
예제 #7
1
        public override void Serialize(GenericWriter writer)
        {
            base.Serialize(writer);

            writer.Write((int)0);
            writer.Write((bool)m_IsRewardItem);
        }
예제 #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);
 }
예제 #9
1
파일: BaseCore.cs 프로젝트: Crome696/ServUO
		public override void Serialize(GenericWriter writer)
		{
			writer.WriteVersion(0);

			// Version 0
			writer.Write(_Enabled);
		}
예제 #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 );
		}
예제 #12
1
		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );
			writer.Write( (int) 1 );

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

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

            writer.Write((int)0);
            // version 0
        }
예제 #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 );
		}
예제 #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 );
		}
예제 #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;
			}
		}
예제 #22
0
        /// <summary>
        /// Serialization
        /// </summary>
        protected override void Serialize(Server.GenericWriter writer)
        {
            base.Serialize(writer);

            writer.Write((int)1); //version
            writer.Write(BowConverted);
        }
예제 #23
0
		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );

			writer.Write( (int) 0 );
			writer.Write( (int) m_UsesRemaining );
		}
예제 #24
0
		public static void Type( GenericWriter writer, Type type )
		{
			if ( writer == null )
				return;
				
			writer.Write( type == null ? null : type.FullName );
		}
예제 #25
0
파일: RareFish.cs 프로젝트: Crome696/ServUO
 public override void Serialize(GenericWriter writer)
 {
     base.Serialize(writer);
     writer.Write((int)0);
     writer.Write(m_CaughtBy);
     writer.Write(m_DateCaught);
 }
예제 #26
0
        public override void Serialize( GenericWriter writer )
        {
            base.Serialize( writer );

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

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

            int version = writer.SetVersion(0);

        }
예제 #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;
			}
		}
예제 #32
0
 /// <summary>
 /// Serialization
 /// </summary>
 protected override void Serialize(Server.GenericWriter writer)
 {
     base.Serialize(writer);
 }