Class Talentset
Inheritance
System.Object
Talentset
Implements
System.ComponentModel.INotifyPropertyChanged
Assembly: Eco.Gameplay.dll
Syntax
public class Talentset : Object, IController, IViewController, IHasUniversalID, INotifyPropertyChanged
Constructors
Talentset()
Declaration
Fields
OnPlantHarvest
Declaration
public Func<Plant, ItemStack, User, ItemStack> OnPlantHarvest
Field Value
TalentsetChanged
Declaration
public static ThreadSafeAction<Talentset, User> TalentsetChanged
Field Value
Properties
ControllerID
Declaration
public ref int ControllerID { get; }
Property Value
Type |
Description |
System.Int32 |
|
Talents
Declaration
public ControllerList<Type> Talents { get; set; }
Property Value
TalentStrings
Declaration
public IEnumerable<string> TalentStrings { get; }
Property Value
Type |
Description |
System.Collections.Generic.IEnumerable<System.String> |
|
Methods
ClearTalent(Type)
Declaration
public void ClearTalent(Type talentType)
Parameters
Type |
Name |
Description |
System.Type |
talentType |
|
ClearTalents()
Declaration
public void ClearTalents()
GetTalent(Type)
Declaration
public Talent GetTalent(Type t)
Parameters
Type |
Name |
Description |
System.Type |
t |
|
Returns
GetTalent<T>()
Declaration
public T GetTalent<T>()
where T : Talent
Returns
Type Parameters
HasTalent(String)
Declaration
public bool HasTalent(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Returns
Type |
Description |
System.Boolean |
|
HasTalent(Type)
Declaration
public bool HasTalent(Type type)
Parameters
Type |
Name |
Description |
System.Type |
type |
|
Returns
Type |
Description |
System.Boolean |
|
HasTalent<T>()
Declaration
public bool HasTalent<T>()
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
Initialize()
Declaration
LearnTalent(Type)
Declaration
public void LearnTalent(Type talentType)
Parameters
Type |
Name |
Description |
System.Type |
talentType |
|
ResetAllTalents()
Declaration
public void ResetAllTalents()
SetOwner(User)
Declaration
public void SetOwner(User owner)
Parameters
Type |
Name |
Description |
User |
owner |
|
UnLearnTalent(Type)
Declaration
public void UnLearnTalent(Type talentType)
Parameters
Type |
Name |
Description |
System.Type |
talentType |
|
Events
PropertyChanged
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type |
Description |
System.ComponentModel.PropertyChangedEventHandler |
|
Implements
System.ComponentModel.INotifyPropertyChanged
Extension Methods