C# Класс Aura.Channel.Skills.Skill

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Info Aura.Mabi.Structs.SkillInfo

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

Метод Описание
Activate ( SkillFlags flags ) : void

Activates given flag(s).

ChangeRank ( SkillRank rank ) : void

Changes rank, resets experience, loads rank data.

Deactivate ( SkillFlags flags ) : void

Deativates given flag(s).

GetCastTime ( ) : int

Returns cast time of skill, specific for its creature.

GetExpBonus ( ) : int

Returns exp that the creature would get for a rank up of this skill in its current state.

The formula is entirely custom and is based on a very small amout of test values, which it doesn't match 100% either. However, the results seem reasonable, they appear to be close to officials, and going by the lack of research, nobody ever bothered to take a closer look at this feature anyway.

Has ( SkillFlags flags ) : bool

Returns true if skill has the given flags.

Is ( ) : bool

Returns true if the skill has one of the given ids.

LoadRankData ( ) : void

Loads rank data, based on current rank.

Skill ( Creature creature, SkillId id, SkillRank rank, int race ) : System

New Skill.

Train ( int condition, int amount = 1 ) : void

Increases training condition count.

UpdateExperience ( ) : float

Updates exp and returns gained amount.

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

Метод Описание
CheckMaster ( ) : void

Enables master title if skill is on r1 and fully trained.

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

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

Activates given flag(s).
public Activate ( SkillFlags flags ) : void
flags SkillFlags
Результат void

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

Changes rank, resets experience, loads rank data.
public ChangeRank ( SkillRank rank ) : void
rank SkillRank
Результат void

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

Deativates given flag(s).
public Deactivate ( SkillFlags flags ) : void
flags SkillFlags
Результат void

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

Returns cast time of skill, specific for its creature.
public GetCastTime ( ) : int
Результат int

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

Returns exp that the creature would get for a rank up of this skill in its current state.
The formula is entirely custom and is based on a very small amout of test values, which it doesn't match 100% either. However, the results seem reasonable, they appear to be close to officials, and going by the lack of research, nobody ever bothered to take a closer look at this feature anyway.
public GetExpBonus ( ) : int
Результат int

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

Returns true if skill has the given flags.
public Has ( SkillFlags flags ) : bool
flags SkillFlags
Результат bool

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

Returns true if the skill has one of the given ids.
public Is ( ) : bool
Результат bool

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

Loads rank data, based on current rank.
public LoadRankData ( ) : void
Результат void

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

New Skill.
public Skill ( Creature creature, SkillId id, SkillRank rank, int race ) : System
creature Aura.Channel.World.Entities.Creature
id SkillId
rank SkillRank
race int
Результат System

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

Increases training condition count.
public Train ( int condition, int amount = 1 ) : void
condition int
amount int
Результат void

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

Updates exp and returns gained amount.
public UpdateExperience ( ) : float
Результат float

Описание свойств

Info публичное свойство

Information about the skill, serialized to packets.
public SkillInfo,Aura.Mabi.Structs Info
Результат Aura.Mabi.Structs.SkillInfo