示例#1
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);
            int version = reader.ReadInt();

            m_Sleeper = (SleeperEWCleanableAddon)reader.ReadItem();
        }
示例#2
0
            protected override void OnTarget(Mobile from, object targeted)
            {
                if (targeted is Sheets)
                {
                    Sheets sheets = (Sheets)targeted;

                    from.SendMessage("You make the bed.");
                    from.AddToBackpack(new Sheets(m_SleeperEWUsedAddon.Hue));

                    Point3D sleeploc = m_SleeperEWUsedAddon.Location;
                    m_SleeperEWUsedAddon.Delete();
                    SleeperEWCleanableAddon bed = new SleeperEWCleanableAddon();
                    bed.Location = sleeploc;
                    bed.MoveToWorld(sleeploc, from.Map);

                    bed.Hue = sheets.Hue;
                    sheets.Delete();
                }
                else
                {
                    from.SendMessage("You should first put some clean sheets on the bed.");
                }
                return;
            }
示例#3
0
            protected override void OnTarget(Mobile from, object targeted)
            {
                if (targeted is Sheets)
                {
                    Sheets sheets = (Sheets)targeted;

                    from.SendMessage("You make the bed.");
                    from.AddToBackpack(new Sheets(m_SleeperEWUsedAddon.Hue));

                    Point3D sleeploc = m_SleeperEWUsedAddon.Location;
                    m_SleeperEWUsedAddon.Delete();
                    SleeperEWCleanableAddon bed = new SleeperEWCleanableAddon();
                    bed.Location = sleeploc;
                    bed.MoveToWorld(sleeploc, from.Map);

                    bed.Hue = sheets.Hue;
                    sheets.Delete();
                }
                else
                    from.SendMessage("You should first put some clean sheets on the bed.");
                return;
            }
示例#4
0
		public override void Deserialize( GenericReader reader )
		{
			base.Deserialize( reader );
			int version = reader.ReadInt();
			m_Sleeper = (SleeperEWCleanableAddon)reader.ReadItem();

		}
示例#5
0
		public SleeperEWCleanablePiece( SleeperEWCleanableAddon sleeper, int itemid ) : base( itemid )
		{
			m_Sleeper = sleeper;
		}
示例#6
0
 public SleeperEWCleanablePiece(SleeperEWCleanableAddon sleeper, int itemid) : base(itemid)
 {
     m_Sleeper = sleeper;
 }