C# (CSharp) GenericWriter Code Examples

C# (CSharp) GenericWriter - 30 examples found. These are the top rated real world C# (CSharp) examples of GenericWriter extracted from open source projects. You can rate examples to help us improve the quality of examples
Example #1
0
        public override void Serialize(GenericWriter writer) // Default Serialize method
        {
            base.Serialize(writer);

            writer.Write(0); // version
            writer.WriteEncodedInt(m_Guild);
        }
        public override void Serialize(GenericWriter writer)
        {
            base.Serialize(writer);

            writer.Write((int)0);
            writer.Write(this.m_Board);
        }
Example #3
0
		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );

			writer.Write( (int) 0 );
			writer.Write( com );
		}
Example #4
0
        }// powder of fortifying
        public override void Serialize(GenericWriter writer)
        {
            base.Serialize(writer);

            writer.Write((int)0);
            writer.Write((int)this.m_UsesRemaining);
        }
Example #5
0
        public override void Serialize(GenericWriter writer)
        {
            base.Serialize(writer);

            writer.Write(0); // version

        }
      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 );
      }
Example #7
0
	public override void Serialize( GenericWriter writer )
	{
		base.Serialize( writer );
		writer.Write( (int) 0 ); // version
		
		writer.Write( (bool) isactive );
	}
Example #8
0
 public override void Serialize(GenericWriter writer)
 {
     base.Serialize(writer);
     writer.Write(0);
     writer.Write(_Hatch);
     writer.Write(_CanHatch);
 }
	public override void Serialize( GenericWriter writer )
	{
		base.Serialize( writer );
		writer.Write( (int) 0 );
		writer.Write( (int) m_Skill1 );
		writer.Write( (int) m_Skill2 );
	}
		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );

			writer.WriteEncodedInt( 1 ); // version
			writer.Write( m_East );
		}
Example #11
0
		public override void Serialize(GenericWriter writer)
		{
			base.Serialize(writer);

			int version = writer.SetVersion(0);

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

			writer.Write( (byte) 0 ); // version
			writer.WriteEncodedInt( (int) m_LabelNumber );
		}
Example #13
0
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);
        }
Example #15
0
		public void Serialize( GenericWriter writer )
		{
			writer.WriteEncodedInt( (int) 0 ); // version

			Faction.WriteReference( writer, m_Faction );
			writer.WriteEncodedInt( (int) m_Type );
		}
Example #16
0
		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );

			writer.Write( (int) 0 ); // version
			writer.Write( m_SkillBonus );
		}
 public void Serialize(GenericWriter writer)
 {
     writer.Write(0);//version
     writer.Write(Map);
     writer.Write(Location);
     writer.Write(Name);
 }
		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );

			writer.WriteEncodedInt( 0 );
			writer.Write( m_Sound );
		}
		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );

			writer.Write( (int) 0 ); // version
			writer.Write( (int) m_Resource );
		}
Example #20
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
         }
     }
Example #21
0
		public void Save( GenericWriter writer )
		{
			writer.Write( 0 ); // version

			writer.Write( m_First );
			writer.Write( m_Second );
		}
Example #22
0
     public static void Type(GenericWriter writer, Type type)
     {
         if (writer == null)
             return;
	
         writer.Write(type == null ? null : type.FullName);
     }
Example #23
0
        public override void Serialize(GenericWriter writer)
        {
            base.Serialize(writer);

            writer.Write((int)1); // version
            writer.Write(m_IsBarnacleItem);
        }
Example #24
0
        public override void Serialize(GenericWriter writer)
        {
            base.Serialize(writer);
            writer.Write(0);

            writer.Write(m_Owner);
        }
Example #25
0
		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(1); // version
            writer.Write(cleanupTime);
        }
Example #27
0
		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.WriteEncodedInt( (int) 0 ); // version
			writer.Write( (Mobile) m_Owner );
		}
Example #29
0
        public override void Serialize(GenericWriter writer)
        {
            base.Serialize(writer);
            writer.Write((int)0);

            writer.WriteDeltaTime(m_DecayTime);
        }
Example #30
0
		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );
            writer.Write(1);

            writer.Write(m_IsShipwreckedItem);
        }