本文整理汇总了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;
}