Метод | Описание | |
---|---|---|
Cancel ( |
Cancels skill, removing prop.
|
|
CheckEquipment ( |
Returns true if creature has valid fishing equipment equipped.
|
|
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. |
|
Prepare ( |
Loads skill.
|
|
Ready ( |
Readies skill.
|
|
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? |
|
Training ( |
Handles skill training.
|
|
Use ( |
Starts fishing at target location.
|
Метод | Описание | |
---|---|---|
GetFishingDrop ( |
Finds best fishing ground match for creature's current fishing prop and gets a random item from it.
|
public Cancel ( |
||
creature | ||
skill | Skill | |
Результат | void |
public CheckEquipment ( |
||
creature | ||
Результат | bool |
public OnResponse ( |
||
creature | ||
method | FishingMethod | Method used on this try |
success | bool | Success of manual try |
Результат | void |
public Prepare ( |
||
creature | ||
skill | Skill | |
packet | Packet | |
Результат | bool |
public Ready ( |
||
creature | ||
skill | Skill | |
packet | Packet | |
Результат | bool |
public StartFishing ( |
||
creature | ||
delay | int | |
Результат | void |
public Training ( |
||
creature | ||
skill | Skill | |
success | bool | |
item | Item | |
Результат | void |
public Use ( |
||
creature | ||
skill | Skill | |
packet | Packet | |
Результат | void |