Class HeroDeveloper
- Namespace
- TaleWorlds.CampaignSystem.CharacterDevelopment
- Assembly
- TaleWorlds.CampaignSystem.dll
public class HeroDeveloper : PropertyOwnerF<PropertyObject>, IHeroDeveloper
- Inheritance
-
HeroDeveloper
- Implements
- Inherited Members
Properties
Hero
[SaveableProperty(103)]
public Hero Hero { get; }
Property Value
IsDeveloperInitialized
public bool IsDeveloperInitialized { get; }
Property Value
TotalXp
public int TotalXp { get; }
Property Value
UnspentAttributePoints
[SaveableProperty(102)]
public int UnspentAttributePoints { get; set; }
Property Value
UnspentFocusPoints
[SaveableProperty(101)]
public int UnspentFocusPoints { get; set; }
Property Value
Methods
AddAttribute(CharacterAttribute, int, bool)
public void AddAttribute(CharacterAttribute attrib, int changeAmount, bool checkUnspentPoints = true)
Parameters
attrib
CharacterAttributechangeAmount
intcheckUnspentPoints
bool
AddFocus(SkillObject, int, bool)
public void AddFocus(SkillObject skill, int changeAmount, bool checkUnspentFocusPoints = true)
Parameters
skill
SkillObjectchangeAmount
intcheckUnspentFocusPoints
bool
AddPerk(PerkObject)
public void AddPerk(PerkObject perk)
Parameters
perk
PerkObject
AddSkillXp(SkillObject, float, bool, bool)
public void AddSkillXp(SkillObject skill, float rawXp, bool isAffectedByFocusFactor = true, bool shouldNotify = true)
Parameters
skill
SkillObjectrawXp
floatisAffectedByFocusFactor
boolshouldNotify
bool
AfterLoad()
protected override void AfterLoad()
AutoGeneratedInstanceCollectObjects(List<object>)
protected override void AutoGeneratedInstanceCollectObjects(List<object> collectedObjects)
Parameters
CanAddFocusToSkill(SkillObject)
public bool CanAddFocusToSkill(SkillObject skill)
Parameters
skill
SkillObject
Returns
ChangeSkillLevel(SkillObject, int, bool)
public void ChangeSkillLevel(SkillObject skill, int changeAmount, bool shouldNotify = true)
Parameters
skill
SkillObjectchangeAmount
intshouldNotify
bool
ClearHero()
public void ClearHero()
ClearUnspentPoints()
public void ClearUnspentPoints()
DevelopCharacterStats()
public void DevelopCharacterStats()
GetFocus(SkillObject)
public int GetFocus(SkillObject skill)
Parameters
skill
SkillObject
Returns
GetFocusFactor(SkillObject)
public float GetFocusFactor(SkillObject skill)
Parameters
skill
SkillObject
Returns
GetPerkValue(PerkObject)
public bool GetPerkValue(PerkObject perk)
Parameters
perk
PerkObject
Returns
GetRequiredFocusPointsToAddFocus(SkillObject)
public int GetRequiredFocusPointsToAddFocus(SkillObject skill)
Parameters
skill
SkillObject
Returns
GetSkillXpProgress(SkillObject)
public int GetSkillXpProgress(SkillObject skill)
Parameters
skill
SkillObject
Returns
GetTotalSkillPoints()
public int GetTotalSkillPoints()
Returns
GetXpRequiredForLevel(int)
public int GetXpRequiredForLevel(int level)
Parameters
level
int
Returns
InitializeHeroDeveloper(bool, CharacterObject)
public void InitializeHeroDeveloper(bool isByNaturalGrowth = false, CharacterObject template = null)
Parameters
isByNaturalGrowth
booltemplate
CharacterObject
InitializeSkillXp(SkillObject)
public void InitializeSkillXp(SkillObject skill)
Parameters
skill
SkillObject
RemoveAttribute(CharacterAttribute, int)
public void RemoveAttribute(CharacterAttribute attrib, int changeAmount)
Parameters
attrib
CharacterAttributechangeAmount
int
RemoveFocus(SkillObject, int)
public void RemoveFocus(SkillObject skill, int changeAmount)
Parameters
skill
SkillObjectchangeAmount
int
SetInitialLevel(int)
public void SetInitialLevel(int level)
Parameters
level
int
SetInitialSkillLevel(SkillObject, int)
public void SetInitialSkillLevel(SkillObject skill, int newSkillValue)
Parameters
skill
SkillObjectnewSkillValue
int
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).