C# 클래스 Aura.Channel.Skills.Life.Fishing

상속: ISkillHandler, IPreparable, IReadyable, IUseable, ICancelable
파일 보기 프로젝트 열기: aura-project/aura

공개 메소드들

메소드 설명
Cancel ( Creature creature, Skill skill ) : void

Cancels skill, removing prop.

CheckEquipment ( Creature creature ) : bool

Returns true if creature has valid fishing equipment equipped.

OnResponse ( Creature creature, FishingMethod method, bool success ) : void

Called once ready to pull the fish out.

When you catch something just before running out of bait, and you send MotionCancel2 from Cancel, there's a visual bug on Aura, where the item keeps flying to you until you move. This does not happen on NA for unknown reason. The workaround: Check for cancellation in advance and only send the real in effect if the skill wasn't canceled.

Prepare ( Creature creature, Skill skill, Packet packet ) : bool

Loads skill.

Ready ( Creature creature, Skill skill, Packet packet ) : bool

Readies skill.

StartFishing ( Creature creature, int delay ) : void

Starts fishing with given delay.

This method uses async Tasks to control when the skill continues (basically timers). Since the player could cancel the skill before the method continues, or props could be removed because of a reload, we need to make sure not to continue and not to crash because of a change in the prop situation. TODO: Use cancellation tokens? TODO: Don't reload spawned props, but only scripted ones?

Training ( Creature creature, Skill skill, bool success, Item item ) : void

Handles skill training.

Use ( Creature creature, Skill skill, Packet packet ) : void

Starts fishing at target location.

비공개 메소드들

메소드 설명
GetFishingDrop ( Creature creature, Random rnd ) : DropData

Finds best fishing ground match for creature's current fishing prop and gets a random item from it.

메소드 상세

Cancel() 공개 메소드

Cancels skill, removing prop.
public Cancel ( Creature creature, Skill skill ) : void
creature Aura.Channel.World.Entities.Creature
skill Skill
리턴 void

CheckEquipment() 공개 메소드

Returns true if creature has valid fishing equipment equipped.
public CheckEquipment ( Creature creature ) : bool
creature Aura.Channel.World.Entities.Creature
리턴 bool

OnResponse() 공개 메소드

Called once ready to pull the fish out.
When you catch something just before running out of bait, and you send MotionCancel2 from Cancel, there's a visual bug on Aura, where the item keeps flying to you until you move. This does not happen on NA for unknown reason. The workaround: Check for cancellation in advance and only send the real in effect if the skill wasn't canceled.
public OnResponse ( Creature creature, FishingMethod method, bool success ) : void
creature Aura.Channel.World.Entities.Creature
method FishingMethod Method used on this try
success bool Success of manual try
리턴 void

Prepare() 공개 메소드

Loads skill.
public Prepare ( Creature creature, Skill skill, Packet packet ) : bool
creature Aura.Channel.World.Entities.Creature
skill Skill
packet Packet
리턴 bool

Ready() 공개 메소드

Readies skill.
public Ready ( Creature creature, Skill skill, Packet packet ) : bool
creature Aura.Channel.World.Entities.Creature
skill Skill
packet Packet
리턴 bool

StartFishing() 공개 메소드

Starts fishing with given delay.
This method uses async Tasks to control when the skill continues (basically timers). Since the player could cancel the skill before the method continues, or props could be removed because of a reload, we need to make sure not to continue and not to crash because of a change in the prop situation. TODO: Use cancellation tokens? TODO: Don't reload spawned props, but only scripted ones?
public StartFishing ( Creature creature, int delay ) : void
creature Aura.Channel.World.Entities.Creature
delay int
리턴 void

Training() 공개 메소드

Handles skill training.
public Training ( Creature creature, Skill skill, bool success, Item item ) : void
creature Aura.Channel.World.Entities.Creature
skill Skill
success bool
item Item
리턴 void

Use() 공개 메소드

Starts fishing at target location.
public Use ( Creature creature, Skill skill, Packet packet ) : void
creature Aura.Channel.World.Entities.Creature
skill Skill
packet Packet
리턴 void