Server.Items.BaseJewel.Serialize C# (CSharp) Méthode

Serialize() public méthode

public Serialize ( GenericWriter writer ) : void
writer GenericWriter
Résultat void
		public override void Serialize( GenericWriter writer )
		{
			base.Serialize( writer );

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

			writer.WriteEncodedInt( (int) m_MaxHitPoints );
			writer.WriteEncodedInt( (int) m_HitPoints );

			writer.WriteEncodedInt( (int) m_Resource );
			writer.WriteEncodedInt( (int) m_GemType );
		}