Method | Description | |
---|---|---|
Complete ( |
Completes production.
|
|
Prepare ( |
Starts production, finished in Complete.
|
Method | Description | |
---|---|---|
CheckCategory ( |
Checks if category can be handled by this skill, returns false if not.
|
|
CheckProp ( |
Checks if prop is valid and in range, returns false if not.
|
|
CheckTools ( |
Checks tools from Prepare, to maybe cancel skill.
|
|
OnUse ( |
Called from successful Prepare.
|
|
SkillTraining ( |
Handles skill training.
|
|
UpdateTool ( |
Updates tool's durability and proficiency.
|
Method | Description | |
---|---|---|
CheckMana ( |
Checks if creature has enough mana to produce product, returns false if not. Handles notices.
|
protected abstract CheckCategory ( |
||
creature | ||
category | ProductionCategory | |
return | bool |
protected CheckProp ( |
||
creature | ||
propEntityId | long | |
return | bool |
protected CheckTools ( |
||
creature | ||
skill | Skill | |
productData | ProductionData | |
return | bool |
public Complete ( |
||
creature | ||
skill | Skill | |
packet | Packet | |
return | void |
protected OnUse ( |
||
creature | ||
skill | Skill | |
return | void |
public Prepare ( |
||
creature | ||
skill | Skill | |
packet | Packet | |
return | bool |
protected abstract SkillTraining ( |
||
creature | ||
skill | Skill | |
data | ProductionData | |
success | bool | |
return | void |
protected UpdateTool ( |
||
creature | ||
productData | ProductionData | |
return | void |