Class Talent
Inheritance
System.Object
Talent
Assembly: Eco.Gameplay.dll
Syntax
public abstract class Talent : Object, IHasBonuses
Constructors
Talent()
Declaration
Properties
Base
Declaration
public virtual bool Base { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Bonuses
Bonuses provided by this talent. Subclasses populate during construction.
Declaration
public List<Bonus> Bonuses { get; }
Property Value
| Type |
Description |
| System.Collections.Generic.List<Bonus> |
|
HasActiveRequirements
Declaration
public virtual bool HasActiveRequirements { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
TalentGroupType
Declaration
public virtual Type TalentGroupType { get; }
Property Value
| Type |
Description |
| System.Type |
|
TalentType
Declaration
public virtual Type TalentType { get; }
Property Value
| Type |
Description |
| System.Type |
|
Value
Declaration
public float Value { get; set; }
Property Value
| Type |
Description |
| System.Single |
|
Methods
Active(Object, User)
Declaration
public virtual bool Active(object obj, User user = null)
Parameters
| Type |
Name |
Description |
| System.Object |
obj |
|
| User |
user |
|
Returns
| Type |
Description |
| System.Boolean |
|
OnLearned(User)
This method called when talent just learned to apply modifications to existing objects (like reduce requirements, update statuses etc).
Declaration
public virtual void OnLearned(User user)
Parameters
| Type |
Name |
Description |
| User |
user |
|
OnUnLearned(User)
Declaration
public virtual void OnUnLearned(User user)
Parameters
| Type |
Name |
Description |
| User |
user |
|
RegisterTalent(User)
This method called every time when talent added to user either when learned or deserialized.
Use this method for callbacks registration.
Declaration
public virtual void RegisterTalent(User user)
Parameters
| Type |
Name |
Description |
| User |
user |
|
UnRegisterTalent(User)
Declaration
public virtual void UnRegisterTalent(User user)
Parameters
| Type |
Name |
Description |
| User |
user |
|
Explicit Interface Implementations
IHasBonuses.Bonuses
Declaration
IEnumerable<Bonus> IHasBonuses.Bonuses { get; }
Returns
| Type |
Description |
| System.Collections.Generic.IEnumerable<Bonus> |
|
Implements
Extension Methods