Show / Hide Table of Contents

Class Skillset

Inheritance
System.Object
Skillset
Implements
IController
IViewController
IHasUniversalID
System.ComponentModel.INotifyPropertyChanged
Namespace: Eco.Gameplay.Skills
Assembly: Eco.Gameplay.dll
Syntax
[ChatCommandHandler]
public class Skillset : Object, IController, IViewController, IHasUniversalID, INotifyPropertyChanged

Constructors

Skillset()

Declaration
public Skillset()

Fields

OnExperienceGained

Declaration
public static ThreadSafeAction<User, Skill> OnExperienceGained
Field Value
Type Description
ThreadSafeAction<User, Skill>

OnSkillLevelChanged

Declaration
public ThreadSafeAction<Skill> OnSkillLevelChanged
Field Value
Type Description
ThreadSafeAction<Skill>

UserSkillLevelChangedEvent

Raised when any skill of any user changes level

Declaration
public static ThreadSafeAction<User, Skill> UserSkillLevelChangedEvent
Field Value
Type Description
ThreadSafeAction<User, Skill>

Properties

ControllerID

Declaration
public ref int ControllerID { get; }
Property Value
Type Description
System.Int32

CostPerAdditionalSpecialty

Synced copy of CostPerAdditionalSpecialty so clients can compute effective cost for unlearned specialties.

Declaration
public float CostPerAdditionalSpecialty { get; }
Property Value
Type Description
System.Single

Item[Type]

Declaration
public Skill this[Type skillType] { get; }
Parameters
Type Name Description
System.Type skillType
Property Value
Type Description
Skill

LastSkillsGained

Declaration
public ThreadSafeList<int> LastSkillsGained { get; }
Property Value
Type Description
ThreadSafeList<System.Int32>

OnAddExperience

Declaration
public ThreadSafeAction OnAddExperience { get; }
Property Value
Type Description
ThreadSafeAction

ProfessionCount

Declaration
public int ProfessionCount { get; }
Property Value
Type Description
System.Int32

QueuedLevelUps

Declaration
public ThreadSafeHashSet<Type> QueuedLevelUps { get; set; }
Property Value
Type Description
ThreadSafeHashSet<System.Type>

RefundableSpecialties

Declaration
public int RefundableSpecialties { get; }
Property Value
Type Description
System.Int32

ScrollsRead

Declaration
public int ScrollsRead { get; set; }
Property Value
Type Description
System.Int32

Skills

Declaration
public Skill[] Skills { get; set; }
Property Value
Type Description
Skill[]

SpecialtyCount

Declaration
public int SpecialtyCount { get; }
Property Value
Type Description
System.Int32

Methods

AddExperience(Type, Single, GameActionDescription)

Declaration
public bool AddExperience(Type skillType, float exp, GameActionDescription desc)
Parameters
Type Name Description
System.Type skillType
System.Single exp
GameActionDescription desc
Returns
Type Description
System.Boolean

AddExperience(Type, Single, LocString)

Declaration
public bool AddExperience(Type skillType, float exp, LocString desc)
Parameters
Type Name Description
System.Type skillType
System.Single exp
LocString desc
Returns
Type Description
System.Boolean

AddExperience(Type, Single, Single, GameActionDescription)

Declaration
public bool AddExperience(Type skillType, float skillRate, float exp, GameActionDescription desc)
Parameters
Type Name Description
System.Type skillType
System.Single skillRate
System.Single exp
GameActionDescription desc
Returns
Type Description
System.Boolean

AddExperience(Type, Single, Single, LocString)

Declaration
public bool AddExperience(Type skillType, float skillRate, float exp, LocString desc)
Parameters
Type Name Description
System.Type skillType
System.Single skillRate
System.Single exp
LocString desc
Returns
Type Description
System.Boolean

Clear()

Declaration
public void Clear()

EducationTooltip(Player)

Declaration
public TooltipSection EducationTooltip(Player player)
Parameters
Type Name Description
Player player
Returns
Type Description
TooltipSection

GetOrAddSkill(Type)

Declaration
public Skill GetOrAddSkill(Type skillType)
Parameters
Type Name Description
System.Type skillType
Returns
Type Description
Skill

GetSkill(SkillTree)

Declaration
public Skill GetSkill(SkillTree tree)
Parameters
Type Name Description
SkillTree tree
Returns
Type Description
Skill

GetSkill(Type)

Declaration
public Skill GetSkill(Type skillType)
Parameters
Type Name Description
System.Type skillType
Returns
Type Description
Skill

HasProfession(Type)

Declaration
public bool HasProfession(Type skillType)
Parameters
Type Name Description
System.Type skillType
Returns
Type Description
System.Boolean

HasSkill(Type)

Declaration
public bool HasSkill(Type skillType)
Parameters
Type Name Description
System.Type skillType
Returns
Type Description
System.Boolean

LearnSkill(Type)

Declaration
public Skill LearnSkill(Type skillType)
Parameters
Type Name Description
System.Type skillType
Returns
Type Description
Skill

LearnSkillAndNotify(Skill)

Declaration
public void LearnSkillAndNotify(Skill skill)
Parameters
Type Name Description
Skill skill

LevelUp(Type)

Declaration
public Result LevelUp(Type skillType = null)
Parameters
Type Name Description
System.Type skillType
Returns
Type Description
Result

PointsChanged(User, Skill)

Declaration
public void PointsChanged(User user, Skill skill)
Parameters
Type Name Description
User user
Skill skill

RefreshSkills()

Declaration
public void RefreshSkills()

Reset()

Declaration
public void Reset()

Reset(Type, Boolean)

Declaration
public Task<(bool, Skill)> Reset(Type skillType, bool isSelf = false)
Parameters
Type Name Description
System.Type skillType
System.Boolean isSelf
Returns
Type Description
System.Threading.Tasks.Task<System.ValueTuple<System.Boolean, Skill>>

ResetTalentsInTree(Type)

Declaration
public bool ResetTalentsInTree(Type skillType)
Parameters
Type Name Description
System.Type skillType
Returns
Type Description
System.Boolean

SetOwner(User)

Declaration
public void SetOwner(User owner)
Parameters
Type Name Description
User owner

SkillsetTooltip(TooltipOrigin)

Declaration
[NewTooltip]
public LocString SkillsetTooltip(TooltipOrigin origin)
Parameters
Type Name Description
TooltipOrigin origin
Returns
Type Description
LocString

UnLearnSkillInSkillset(Type, User)

Declaration
public Task UnLearnSkillInSkillset(Type skillType, User user)
Parameters
Type Name Description
System.Type skillType
User user
Returns
Type Description
System.Threading.Tasks.Task

Events

PropertyChanged

Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type Description
System.ComponentModel.PropertyChangedEventHandler

Implements

IController
IViewController
IHasUniversalID
System.ComponentModel.INotifyPropertyChanged

Extension Methods

TagUtils.TagNames(Object, Boolean)
TagUtils.TagDisplayNames(Object, Boolean)
ClientSetViewExtensions.SetClassOfProperty(Object, Player, String, String, Int32)
TypeTooltipExtensions.UILinkGeneric(Object)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾