C# Класс Aura.Channel.Skills.Life.Gathering

Наследование: IPreparable, ICompletable, ICancelable
Показать файл Открыть проект

Открытые методы

Метод Описание
Cancel ( Creature creature, Skill skill ) : void

Cancels skill, or rather the animation.

Complete ( Creature creature, Skill skill, Aura.Shared.Network.Packet packet ) : void

Completes skill, handling the whole item gathering process.

Prepare ( Creature creature, Skill skill, Aura.Shared.Network.Packet packet ) : bool

Prepares skill, skips right to used.

Doesn't check anything, like what you can gather with what, because at this point there's no chance for abuse.

Приватные методы

Метод Описание
CheckHand ( string tag, Item item ) : bool

Returns true if item is correct for collect tag.

DoComplete ( Creature creature, long entityId, int collectId, bool success, short failCode ) : void

Sends use motion and SkillComplete.

GetSuccessChance ( Creature creature, CollectingData collectData ) : float

Returns chance for a successful gathering.

GetTargetEntity ( Region region, long entityId ) : Entity

Returns entity by id or null.

Описание методов

Cancel() публичный Метод

Cancels skill, or rather the animation.
public Cancel ( Creature creature, Skill skill ) : void
creature Aura.Channel.World.Entities.Creature
skill Skill
Результат void

Complete() публичный Метод

Completes skill, handling the whole item gathering process.
public Complete ( Creature creature, Skill skill, Aura.Shared.Network.Packet packet ) : void
creature Aura.Channel.World.Entities.Creature
skill Skill
packet Aura.Shared.Network.Packet
Результат void

Prepare() публичный Метод

Prepares skill, skips right to used.
Doesn't check anything, like what you can gather with what, because at this point there's no chance for abuse.
public Prepare ( Creature creature, Skill skill, Aura.Shared.Network.Packet packet ) : bool
creature Aura.Channel.World.Entities.Creature
skill Skill
packet Aura.Shared.Network.Packet
Результат bool