C# 클래스 Aura.Channel.Skills.Base.ProductionSkill

Base class for production skills, like Handicraft and Weaving.
Starting production calls Prepare, once the creation process is done, Complete is called. There is no way to cancel the skill once Prepare was called. While the client tells us how many items are gonna be produced, it Prepares the skill again and again, so we must only create one product at a time.
상속: IPreparable, ICompletable
파일 보기 프로젝트 열기: aura-project/aura

공개 메소드들

메소드 설명
Complete ( Creature creature, Skill skill, Packet packet ) : void

Completes production.

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

Starts production, finished in Complete.

보호된 메소드들

메소드 설명
CheckCategory ( Creature creature, ProductionCategory category ) : bool

Checks if category can be handled by this skill, returns false if not.

CheckProp ( Creature creature, long propEntityId ) : bool

Checks if prop is valid and in range, returns false if not.

CheckTools ( Creature creature, Skill skill, ProductionData productData ) : bool

Checks tools from Prepare, to maybe cancel skill.

OnUse ( Creature creature, Skill skill ) : void

Called from successful Prepare.

SkillTraining ( Creature creature, Skill skill, ProductionData data, bool success ) : void

Handles skill training.

UpdateTool ( Creature creature, ProductionData productData ) : void

Updates tool's durability and proficiency.

비공개 메소드들

메소드 설명
CheckMana ( Creature creature, ProductionData productData ) : bool

Checks if creature has enough mana to produce product, returns false if not. Handles notices.

메소드 상세

CheckCategory() 보호된 추상적인 메소드

Checks if category can be handled by this skill, returns false if not.
protected abstract CheckCategory ( Creature creature, ProductionCategory category ) : bool
creature Aura.Channel.World.Entities.Creature
category ProductionCategory
리턴 bool

CheckProp() 보호된 메소드

Checks if prop is valid and in range, returns false if not.
protected CheckProp ( Creature creature, long propEntityId ) : bool
creature Aura.Channel.World.Entities.Creature
propEntityId long
리턴 bool

CheckTools() 보호된 메소드

Checks tools from Prepare, to maybe cancel skill.
protected CheckTools ( Creature creature, Skill skill, ProductionData productData ) : bool
creature Aura.Channel.World.Entities.Creature
skill Skill
productData ProductionData
리턴 bool

Complete() 공개 메소드

Completes production.
public Complete ( Creature creature, Skill skill, Packet packet ) : void
creature Aura.Channel.World.Entities.Creature
skill Skill
packet Packet
리턴 void

OnUse() 보호된 메소드

Called from successful Prepare.
protected OnUse ( Creature creature, Skill skill ) : void
creature Aura.Channel.World.Entities.Creature
skill Skill
리턴 void

Prepare() 공개 메소드

Starts production, finished in Complete.
public Prepare ( Creature creature, Skill skill, Packet packet ) : bool
creature Aura.Channel.World.Entities.Creature
skill Skill
packet Packet
리턴 bool

SkillTraining() 보호된 추상적인 메소드

Handles skill training.
protected abstract SkillTraining ( Creature creature, Skill skill, ProductionData data, bool success ) : void
creature Aura.Channel.World.Entities.Creature
skill Skill
data ProductionData
success bool
리턴 void

UpdateTool() 보호된 메소드

Updates tool's durability and proficiency.
protected UpdateTool ( Creature creature, ProductionData productData ) : void
creature Aura.Channel.World.Entities.Creature
productData ProductionData
리턴 void