Exemple #1
0
        public Hearthstone()
            : base(DefStoneItemID)
        {
            Name   = DefStoneName;
            Weight = 0.0;

            _Home = new HomeEntry(this);
        }
		public Hearthstone()
			: base(DefStoneItemID)
		{
			Name = DefStoneName;
			Weight = 0.0;

			_Home = new HomeEntry(this);
		}
Exemple #3
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadInt();

            _Owner = reader.ReadMobile();

            DeserializeUsage(reader);

            _Home = new HomeEntry(this);
            _Home.Deserialize(reader);

            Register(_Owner, this);
        }
Exemple #4
0
        public override void Serialize(GenericWriter writer)
        {
            base.Serialize(writer);

            writer.Write((int)0);

            writer.Write((Mobile)_Owner);

            SerializeUsage(writer);

            if (_Home == null)
            {
                _Home = new HomeEntry(this);
            }

            _Home.Serialize(writer);
        }
		public override void Deserialize(GenericReader reader)
		{
			base.Deserialize(reader);

			int version = reader.ReadInt();

			_Owner = reader.ReadMobile();

			DeserializeUsage(reader);

			_Home = new HomeEntry(this);
			_Home.Deserialize(reader);

			Register(_Owner, this);
		}
		public override void Serialize(GenericWriter writer)
		{
			base.Serialize(writer);

			writer.Write((int)0);

			writer.Write((Mobile)_Owner);

			SerializeUsage(writer);

			if (_Home == null)
				_Home = new HomeEntry(this);

			_Home.Serialize(writer);
		}