當前位置: 首頁>>代碼示例>>C#>>正文


C# Items.DyeTub類代碼示例

本文整理匯總了C#中Server.Items.DyeTub的典型用法代碼示例。如果您正苦於以下問題:C# DyeTub類的具體用法?C# DyeTub怎麽用?C# DyeTub使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


DyeTub類屬於Server.Items命名空間,在下文中一共展示了DyeTub類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: Dye

        public virtual bool Dye(Mobile from, DyeTub sender)
        {
            if (this.Deleted)
                return false;

            BaseHouse house = BaseHouse.FindHouseAt(this);

            if (house != null && house.IsCoOwner(from))
            {
                if (from.InRange(this.GetWorldLocation(), 1))
                {
                    this.Hue = sender.DyedHue;
                    return true;
                }
                else
                {
                    from.SendLocalizedMessage(500295); // You are too far away to do that.
                    return false;
                }
            }
            else 
            {
                return false;
            }
        }
開發者ID:Crome696,項目名稱:ServUO,代碼行數:25,代碼來源:Wreath.cs

示例2: Dye

 public bool Dye(Mobile from, DyeTub sender)
 {
     if (Deleted || !is_dyable)
         return false;  //  Fail for !Dyable and Delete
     Hue = sender.DyedHue;
     return true;
 }
開發者ID:Tukaramdas,項目名稱:ServUO-EC-Test-Fork,代碼行數:7,代碼來源:BoneContainers.cs

示例3: Dye

        public bool Dye(Mobile from, DyeTub sender)
        {
            if (Deleted) return false;

            Hue = sender.DyedHue;

            return true;
        }
開發者ID:greeduomacro,項目名稱:annox,代碼行數:8,代碼來源:HerbBasket.cs

示例4: Dye

		public bool Dye( Mobile from, DyeTub sender )
		{
			if( Deleted || !sender.AllowDyables )
				return false;

			Hue = sender.DyedHue;

			return true;
		}
開發者ID:nathanvy,項目名稱:runuo,代碼行數:9,代碼來源:DragonEasterEgg.cs

示例5: Dye

        public virtual bool Dye(Mobile from, DyeTub sender)
        {
            if (this.Deleted)
                return false;

            this.Hue = sender.DyedHue;

            return true;
        }
開發者ID:FreeReign,項目名稱:forkuo,代碼行數:9,代碼來源:Bandage.cs

示例6: Dye

		public bool Dye( Mobile from, DyeTub sender )
		{
			if ( Deleted )
				return false;

			if ( Addon != null )
				Addon.Hue = sender.DyedHue;

			return true;
		}
開發者ID:jsrn,項目名稱:MidnightWatchServer,代碼行數:10,代碼來源:WallBanner.cs

示例7: Dye

	// Implement Dye() member... tent roofs reflect dyed bag colour

	public virtual bool Dye(Mobile from, DyeTub sender)
	{
		if( Deleted )
			return false;
		else if( RootParent is Mobile && from != RootParent )
			return false;

		Hue = sender.DyedHue;
		return true;
	}
開發者ID:zerodowned,項目名稱:angelisland,代碼行數:12,代碼來源:TentBag.cs

示例8: Dye

		public virtual bool Dye(Mobile mob, DyeTub sender)
		{
			if (mob == null || sender == null || !mob.CanSee(sender) || !sender.IsAccessibleTo(mob))
			{
				return false;
			}

			Hue = sender.DyedHue;
			return true;
		}
開發者ID:Ravenwolfe,項目名稱:Core,代碼行數:10,代碼來源:BaseTrashContainer.cs

示例9: Dye

        public bool Dye(Mobile from, DyeTub sender)
        {
            if (Parent != null)
            {
                Hue = sender.DyedHue;
                return true;
            }

            from.SendMessage("You cannot dye bricks from the ground.");
            return false;
        }
開發者ID:Vorpalstar,項目名稱:runuo-custom-scripts,代碼行數:11,代碼來源:Bricks.cs

示例10: Dye

        public bool Dye( Mobile from, DyeTub sender )
        {
            if ( Deleted )
                return false;

            if ( ItemID >= 0x13A4 && ItemID <= 0x13AE )
            {
                Hue = sender.DyedHue;
                return true;
            }

            return false;
        }
開發者ID:cynricthehun,項目名稱:UOLegends,代碼行數:13,代碼來源:Bones.cs

示例11: Dye

        public bool Dye( Mobile from, DyeTub sender )
        {
            if ( Deleted )
                return false;

            if ( ItemID >= 0x13A4 && ItemID <= 0x13AE )
            {
                Hue = sender.DyedHue;
                return true;
            }

            from.SendAsciiMessage( sender.FailMessage );
            return false;
        }
開發者ID:Ravenwolfe,項目名稱:Origins,代碼行數:14,代碼來源:ShipwreckedItem.cs

示例12: Dye

		public override bool Dye(Mobile from, DyeTub sender)
		{
			if (from == null || sender == null || !from.CanSee(sender) || !sender.IsAccessibleTo(from))
			{
				return false;
			}

			if (!(sender is FurnitureDyeTub))
			{
				return false;
			}

			return base.Dye(from, sender);
		}
開發者ID:greeduomacro,項目名稱:UO-Forever,代碼行數:14,代碼來源:TrashCan.cs

示例13: Dye

        public bool Dye(Mobile from, DyeTub sender)
        {
            if (this.Deleted)
                return false;

            if (this.ItemID >= 0x13A4 && this.ItemID <= 0x13AE)
            {
                this.Hue = sender.DyedHue;
                return true;
            }

            from.SendLocalizedMessage(sender.FailMessage);
            return false;
        }
開發者ID:Crome696,項目名稱:ServUO,代碼行數:14,代碼來源:ShipwreckedItem.cs

示例14: Dye

        public bool Dye(Mobile from, DyeTub sender)
        {
            if (Deleted)
                return false;

            if (Parent != from.Backpack)
            {
                from.SendMessage(38, "It must be in your backpack for you to dye it.");
                return false;
            }

            Hue = sender.DyedHue;
            return true;
        }
開發者ID:felladrin,項目名稱:last-wish,代碼行數:14,代碼來源:BoundlessBag.cs

示例15: Dye

 }// enhanced bandage
 public override bool Dye(Mobile from, DyeTub sender)
 {
     return false;
 }
開發者ID:zerodowned,項目名稱:JustUO-merged-with-EC-Support,代碼行數:5,代碼來源:FountainOfLife.cs


注:本文中的Server.Items.DyeTub類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。