C# Класс Aura.Channel.Skills.Music.PlayingInstrument

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

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

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

Cancales skill.

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

Completes skill, called when done playing the current song.

CustomPrepareUsage ( Creature creature, Skill skill ) : void

Use stamina while skill is active if no scroll was used.

Init ( ) : void

Subscribes handler to events required for training.

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

Prepares skill, goes straight to Use and starts playing.

Защищенные методы

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

Called when completing (training).

GetInstrumentType ( Creature creature ) : InstrumentType

Returns instrument type to use.

GetQualityRating ( int quality ) : PlayingQuality

Return PlayingQuality based on given quality from 0~100.

GetRandomQualityMessage ( int quality ) : string

Returns a random result message for the given quality.

Reference: http://wiki.mabinogiworld.com/view/Playing_Instrument

GetRandomScore ( Random rnd ) : int

Returns random score scroll id.

OnCreatureAttackedByPlayer ( TargetAction action ) : void

Called when a player attacks someone (training).

OnPlay ( Creature creature, Skill skill, int quality ) : void

Called when starting playing (training).

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

Метод Описание
GetScore ( Creature creature ) : string

Returns score from magazine's item.

StartPlay ( Creature creature, Skill skill, InstrumentType instrumentType, int quality, string compressedMml, int scoreId ) : void

Starts play effect.

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

AfterPlay() защищенный Метод

Called when completing (training).
protected AfterPlay ( Creature creature, Skill skill, int quality ) : void
creature Aura.Channel.World.Entities.Creature
skill Skill
quality int
Результат void

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

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

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

Completes skill, called when done playing the current song.
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

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

Use stamina while skill is active if no scroll was used.
public CustomPrepareUsage ( Creature creature, Skill skill ) : void
creature Aura.Channel.World.Entities.Creature
skill Skill
Результат void

GetInstrumentType() защищенный Метод

Returns instrument type to use.
protected GetInstrumentType ( Creature creature ) : InstrumentType
creature Aura.Channel.World.Entities.Creature
Результат InstrumentType

GetQualityRating() защищенный Метод

Return PlayingQuality based on given quality from 0~100.
protected GetQualityRating ( int quality ) : PlayingQuality
quality int
Результат PlayingQuality

GetRandomQualityMessage() защищенный Метод

Returns a random result message for the given quality.
Reference: http://wiki.mabinogiworld.com/view/Playing_Instrument
protected GetRandomQualityMessage ( int quality ) : string
quality int
Результат string

GetRandomScore() защищенный Метод

Returns random score scroll id.
protected GetRandomScore ( Random rnd ) : int
rnd System.Random
Результат int

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

Subscribes handler to events required for training.
public Init ( ) : void
Результат void

OnCreatureAttackedByPlayer() защищенный Метод

Called when a player attacks someone (training).
protected OnCreatureAttackedByPlayer ( TargetAction action ) : void
action TargetAction
Результат void

OnPlay() защищенный Метод

Called when starting playing (training).
protected OnPlay ( Creature creature, Skill skill, int quality ) : void
creature Aura.Channel.World.Entities.Creature
skill Skill
quality int
Результат void

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

Prepares skill, goes straight to Use and starts playing.
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