Class TalentGroup
Inheritance
System.Object
TalentGroup
Implements
System.ComponentModel.INotifyPropertyChanged
Assembly: Eco.Gameplay.dll
Syntax
[ItemGroup("Talents")]
public abstract class TalentGroup : Item, IItem, ILinkableParameterized<LinkConfig>, ILinkable, IHasIcon, IController, IViewController, IHasUniversalID, INotifyPropertyChanged
Constructors
TalentGroup()
Declaration
Fields
OwningSkill
Declaration
Field Value
| Type |
Description |
| System.Type |
|
Properties
Level
Declaration
public int Level { get; set; }
Property Value
| Type |
Description |
| System.Int32 |
|
MaxTalentLevel
Maximum talent level. Players start at level 1 when learned. Auto-computed from bonuses during initialization (talents with level-scaling effects get 5, others stay 1). Override in subclass for custom caps.
Declaration
public virtual int MaxTalentLevel { get; set; }
Property Value
| Type |
Description |
| System.Int32 |
|
StarCost
Star cost to learn this talent group. Default 1. Override in subclass for custom costs.
Declaration
public virtual int StarCost { get; set; }
Property Value
| Type |
Description |
| System.Int32 |
|
TalentKind
Classification of the talent's effects for UI cues. Computed from the underlying bonuses. Named TalentKind to avoid collision with Item.Category.
Declaration
public TalentCategory TalentKind { get; }
Property Value
Talents
Declaration
public Type[] Talents { get; set; }
Property Value
| Type |
Description |
| System.Type[] |
|
TalentsEnabled
Declaration
public bool TalentsEnabled { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
TalentStrings
Declaration
public IEnumerable<string> TalentStrings { get; }
Property Value
| Type |
Description |
| System.Collections.Generic.IEnumerable<System.String> |
|
Methods
LearnTalent(User)
Declaration
public void LearnTalent(User user)
Parameters
| Type |
Name |
Description |
| User |
user |
|
LevelUpTalent(User)
Declaration
public void LevelUpTalent(User user)
Parameters
| Type |
Name |
Description |
| User |
user |
|
UnLearnTalent(User)
Declaration
public void UnLearnTalent(User user)
Parameters
| Type |
Name |
Description |
| User |
user |
|
Events
PropertyChanged
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
| Type |
Description |
| System.ComponentModel.PropertyChangedEventHandler |
|
Implements
System.ComponentModel.INotifyPropertyChanged
Extension Methods