M&B: Bannerlord 1.2.7
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
TaleWorlds.CampaignSystem.ExplainedNumber Struct Reference

Public Member Functions

 ExplainedNumber (float baseNumber=0f, bool includeDescriptions=false, TextObject baseText=null)
 
string GetExplanations ()
 
List<(string name, float number)> GetLines ()
 
void AddFromExplainedNumber (ExplainedNumber explainedNumber, TextObject baseText)
 
void Add (float value, TextObject description=null, TextObject variable=null)
 
void AddFactor (float value, TextObject description=null)
 
void LimitMin (float minValue)
 
void LimitMax (float maxValue)
 
void Clamp (float minValue, float maxValue)
 

Properties

float ResultNumber [get]
 
float BaseNumber [get]
 
bool IncludeDescriptions [get]
 
float LimitMinValue [get]
 
float LimitMaxValue [get]
 

Constructor & Destructor Documentation

◆ ExplainedNumber()

TaleWorlds.CampaignSystem.ExplainedNumber.ExplainedNumber ( float  baseNumber = 0f,
bool  includeDescriptions = false,
TextObject  baseText = null 
)

Member Function Documentation

◆ GetExplanations()

string TaleWorlds.CampaignSystem.ExplainedNumber.GetExplanations ( )

◆ GetLines()

List<(string name, float number)> TaleWorlds.CampaignSystem.ExplainedNumber.GetLines ( )

◆ AddFromExplainedNumber()

void TaleWorlds.CampaignSystem.ExplainedNumber.AddFromExplainedNumber ( ExplainedNumber  explainedNumber,
TextObject  baseText 
)

◆ Add()

void TaleWorlds.CampaignSystem.ExplainedNumber.Add ( float  value,
TextObject  description = null,
TextObject  variable = null 
)

◆ AddFactor()

void TaleWorlds.CampaignSystem.ExplainedNumber.AddFactor ( float  value,
TextObject  description = null 
)

◆ LimitMin()

void TaleWorlds.CampaignSystem.ExplainedNumber.LimitMin ( float  minValue)

◆ LimitMax()

void TaleWorlds.CampaignSystem.ExplainedNumber.LimitMax ( float  maxValue)

◆ Clamp()

void TaleWorlds.CampaignSystem.ExplainedNumber.Clamp ( float  minValue,
float  maxValue 
)

Property Documentation

◆ ResultNumber

float TaleWorlds.CampaignSystem.ExplainedNumber.ResultNumber
get

◆ BaseNumber

float TaleWorlds.CampaignSystem.ExplainedNumber.BaseNumber
get

◆ IncludeDescriptions

bool TaleWorlds.CampaignSystem.ExplainedNumber.IncludeDescriptions
get

◆ LimitMinValue

float TaleWorlds.CampaignSystem.ExplainedNumber.LimitMinValue
get

◆ LimitMaxValue

float TaleWorlds.CampaignSystem.ExplainedNumber.LimitMaxValue
get