M&B: Bannerlord 1.2.12
The horns sound, the ravens gather.
Loading...
Searching...
No Matches
TaleWorlds.Library.ParameterContainer Class Reference

Public Member Functions

 ParameterContainer ()
 
void AddParameter (string key, string value, bool overwriteIfExists)
 Adds a parameter. Use AddParameterConcurrent for thread safe alternative.
 
void AddParameterConcurrent (string key, string value, bool overwriteIfExists)
 Adds a parameter. Thread safe but rather costly option.
 
void AddParametersConcurrent (IEnumerable< KeyValuePair< string, string > > parameters, bool overwriteIfExists)
 Adds multiple parameters. Thread safe but rather costly option.
 
void ClearParameters ()
 
bool TryGetParameter (string key, out string outValue)
 
bool TryGetParameterAsBool (string key, out bool outValue)
 
bool TryGetParameterAsInt (string key, out int outValue)
 
bool TryGetParameterAsUInt16 (string key, out ushort outValue)
 
bool TryGetParameterAsFloat (string key, out float outValue)
 
bool TryGetParameterAsByte (string key, out byte outValue)
 
bool TryGetParameterAsSByte (string key, out sbyte outValue)
 
bool TryGetParameterAsVec3 (string key, out Vec3 outValue)
 
bool TryGetParameterAsVec2 (string key, out Vec2 outValue)
 
string GetParameter (string key)
 
ParameterContainer Clone ()
 

Properties

IEnumerable< KeyValuePair< string, string > > Iterator [get]
 

Constructor & Destructor Documentation

◆ ParameterContainer()

TaleWorlds.Library.ParameterContainer.ParameterContainer ( )

Member Function Documentation

◆ AddParameter()

void TaleWorlds.Library.ParameterContainer.AddParameter ( string key,
string value,
bool overwriteIfExists )

◆ AddParameterConcurrent()

void TaleWorlds.Library.ParameterContainer.AddParameterConcurrent ( string key,
string value,
bool overwriteIfExists )

◆ AddParametersConcurrent()

void TaleWorlds.Library.ParameterContainer.AddParametersConcurrent ( IEnumerable< KeyValuePair< string, string > > parameters,
bool overwriteIfExists )

◆ ClearParameters()

void TaleWorlds.Library.ParameterContainer.ClearParameters ( )

◆ TryGetParameter()

bool TaleWorlds.Library.ParameterContainer.TryGetParameter ( string key,
out string outValue )

◆ TryGetParameterAsBool()

bool TaleWorlds.Library.ParameterContainer.TryGetParameterAsBool ( string key,
out bool outValue )

◆ TryGetParameterAsInt()

bool TaleWorlds.Library.ParameterContainer.TryGetParameterAsInt ( string key,
out int outValue )

◆ TryGetParameterAsUInt16()

bool TaleWorlds.Library.ParameterContainer.TryGetParameterAsUInt16 ( string key,
out ushort outValue )

◆ TryGetParameterAsFloat()

bool TaleWorlds.Library.ParameterContainer.TryGetParameterAsFloat ( string key,
out float outValue )

◆ TryGetParameterAsByte()

bool TaleWorlds.Library.ParameterContainer.TryGetParameterAsByte ( string key,
out byte outValue )

◆ TryGetParameterAsSByte()

bool TaleWorlds.Library.ParameterContainer.TryGetParameterAsSByte ( string key,
out sbyte outValue )

◆ TryGetParameterAsVec3()

bool TaleWorlds.Library.ParameterContainer.TryGetParameterAsVec3 ( string key,
out Vec3 outValue )

◆ TryGetParameterAsVec2()

bool TaleWorlds.Library.ParameterContainer.TryGetParameterAsVec2 ( string key,
out Vec2 outValue )

◆ GetParameter()

string TaleWorlds.Library.ParameterContainer.GetParameter ( string key)

◆ Clone()

ParameterContainer TaleWorlds.Library.ParameterContainer.Clone ( )

Property Documentation

◆ Iterator

IEnumerable<KeyValuePair<string, string> > TaleWorlds.Library.ParameterContainer.Iterator
get