Méthode | Description | |
---|---|---|
Add ( |
Adds skill silently. Returns false if the skill already exists, with a rank that's equal or higher.
|
|
Add ( SkillId skillId, SkillRank skillRank, int raceId ) : bool |
Adds skill silently. Returns false if the skill already exists, with a rank that's equal or higher.
|
|
AddBonuses ( |
Adds stat bonuses for skill's rank to creature.
|
|
Callback ( SkillId skillId ) : void |
Runs and resets callback (it one was set)
|
|
Callback ( SkillId skillId, System.Action action ) : void |
Adds callback
|
|
CancelActiveSkill ( ) : void |
Cancels active skill. SkillCancel is sent in any case, even if something goes wrong, like the method not being implemented. Unless no skill is active. |
|
CancleAfter ( SkillId skillId, System.TimeSpan timeSpan ) : void |
Cancels given skill if it's active after the given time span.
|
|
CountRanks ( ) : int |
Sums the ranks of the given skills.
|
|
CreatureSkills ( Creature creature ) : System |
New skill manager for creature.
|
|
Get ( SkillId id ) : |
Returns skill by id, or null.
|
|
GetList ( bool>.Func |
Returns new list of all skills.
|
|
GetSafe ( SkillId id ) : |
||
Give ( SkillId id, SkillRank rank ) : void |
Adds skill at rank, or updates it. Sends appropriate packets.
|
|
Has ( SkillId id, SkillRank rank = SkillRank.Novice ) : bool |
Returns true if creature has skill and its rank is equal or greater than the given rank.
|
|
Is ( SkillId id, SkillRank rank ) : bool |
Returns true if rank of skill is equal.
|
|
IsActive ( SkillId skillId ) : bool |
Returns true if the specified skill is active (somewhere between Prepare and Complete/Cancel).
|
|
IsReady ( SkillId skillId ) : bool |
Returns true if the specified skill is active and on state "Ready".
|
|
OnSecondsTimeTick ( |
Checks for skills to auto cancel.
|
|
RemoveSilent ( SkillId skillId ) : bool |
Removes skill with given id and its bonuses, without updating the client. If we want a non-silent version of this, we need to know the skill removal packet. |
|
Train ( SkillId skillId, SkillRank rank, int condition, int amount = 1 ) : void |
Trains condition in skill if it has the given rank.
|
|
Train ( SkillId skillId, int condition, int amount = 1 ) : void |
Trains condition in skill.
|
Méthode | Description | |
---|---|---|
RemoveBonuses ( |
Removes stat bonuses for skill's rank from creature. (To be run before changing a skills rank.)
|
|
UpdateHighestSkills ( ) : void |
Updates highest skill CPs.
|
public Add ( |
||
skill | ||
Résultat | bool |
public Add ( SkillId skillId, SkillRank skillRank, int raceId ) : bool | ||
skillId | SkillId | |
skillRank | SkillRank | |
raceId | int | |
Résultat | bool |
public AddBonuses ( |
||
skill | ||
Résultat | void |
public Callback ( SkillId skillId, System.Action action ) : void | ||
skillId | SkillId | |
action | System.Action | |
Résultat | void |
public CancleAfter ( SkillId skillId, System.TimeSpan timeSpan ) : void | ||
skillId | SkillId | |
timeSpan | System.TimeSpan | |
Résultat | void |
public CreatureSkills ( Creature creature ) : System | ||
creature | Creature | |
Résultat | System |
public Get ( SkillId id ) : |
||
id | SkillId | |
Résultat |
public GetList ( bool>.Func |
||
predicate | bool>.Func | |
Résultat | ICollection |
public GetSafe ( SkillId id ) : |
||
id | SkillId | |
Résultat |
public Give ( SkillId id, SkillRank rank ) : void | ||
id | SkillId | |
rank | SkillRank | |
Résultat | void |
public Has ( SkillId id, SkillRank rank = SkillRank.Novice ) : bool | ||
id | SkillId | |
rank | SkillRank | |
Résultat | bool |
public Is ( SkillId id, SkillRank rank ) : bool | ||
id | SkillId | |
rank | SkillRank | |
Résultat | bool |
public OnSecondsTimeTick ( |
||
time | ||
Résultat | void |
public RemoveSilent ( SkillId skillId ) : bool | ||
skillId | SkillId | |
Résultat | bool |
public Train ( SkillId skillId, SkillRank rank, int condition, int amount = 1 ) : void | ||
skillId | SkillId | |
rank | SkillRank | Rank to which the training is limited. |
condition | int | Condition nr (1-9) |
amount | int | |
Résultat | void |
public Train ( SkillId skillId, int condition, int amount = 1 ) : void | ||
skillId | SkillId | |
condition | int | Condition nr (1-9) |
amount | int | |
Résultat | void |