本文整理匯總了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;
}
}
示例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;
}
示例3: Dye
public bool Dye(Mobile from, DyeTub sender)
{
if (Deleted) return false;
Hue = sender.DyedHue;
return true;
}
示例4: Dye
public bool Dye( Mobile from, DyeTub sender )
{
if( Deleted || !sender.AllowDyables )
return false;
Hue = sender.DyedHue;
return true;
}
示例5: Dye
public virtual bool Dye(Mobile from, DyeTub sender)
{
if (this.Deleted)
return false;
this.Hue = sender.DyedHue;
return true;
}
示例6: Dye
public bool Dye( Mobile from, DyeTub sender )
{
if ( Deleted )
return false;
if ( Addon != null )
Addon.Hue = sender.DyedHue;
return true;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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);
}
示例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;
}
示例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;
}
示例15: Dye
}// enhanced bandage
public override bool Dye(Mobile from, DyeTub sender)
{
return false;
}