Table of Contents

Class TextObject

Namespace
TaleWorlds.Localization
Assembly
TaleWorlds.Localization.dll
public class TextObject
Inheritance
TextObject
Inherited Members

Constructors

TextObject(int, Dictionary<string, object>)

public TextObject(int value, Dictionary<string, object> attributes = null)

Parameters

value int
attributes Dictionary<string, object>

TextObject(float, Dictionary<string, object>)

public TextObject(float value, Dictionary<string, object> attributes = null)

Parameters

value float
attributes Dictionary<string, object>

TextObject(string, Dictionary<string, object>)

public TextObject(string value = "", Dictionary<string, object> attributes = null)

Parameters

value string
attributes Dictionary<string, object>

Fields

Value

[SaveableField(1)]
public string Value

Field Value

string

Properties

Attributes

[SaveableProperty(2)]
public Dictionary<string, object> Attributes { get; }

Property Value

Dictionary<string, object>

Empty

public static TextObject Empty { get; }

Property Value

TextObject
public bool IsLink { get; }

Property Value

bool

Length

public int Length { get; }

Property Value

int

Methods

AddIDToValue(string)

public void AddIDToValue(string id)

Parameters

id string

AutoGeneratedInstanceCollectObjects(List<object>)

protected virtual void AutoGeneratedInstanceCollectObjects(List<object> collectedObjects)

Parameters

collectedObjects List<object>

CacheTokens()

public void CacheTokens()

Contains(string)

public bool Contains(string text)

Parameters

text string

Returns

bool

Contains(TextObject)

public bool Contains(TextObject to)

Parameters

to TextObject

Returns

bool

ConvertToStringList(List<TextObject>)

public static List<string> ConvertToStringList(List<TextObject> to)

Parameters

to List<TextObject>

Returns

List<string>

CopyTextObject()

public TextObject CopyTextObject()

Returns

TextObject

Equals(TextObject)

public bool Equals(TextObject to)

Parameters

to TextObject

Returns

bool

Format(float)

public string Format(float p1)

Parameters

p1 float

Returns

string

GetID()

public string GetID()

Returns

string

GetValueHashCode()

public int GetValueHashCode()

Returns

int

GetVariableValue(string, out TextObject)

public bool GetVariableValue(string tag, out TextObject variable)

Parameters

tag string
variable TextObject

Returns

bool

HasSameValue(TextObject)

public bool HasSameValue(TextObject to)

Parameters

to TextObject

Returns

bool

IsNullOrEmpty(TextObject)

public static bool IsNullOrEmpty(TextObject to)

Parameters

to TextObject

Returns

bool

SetTextVariable(string, int)

public TextObject SetTextVariable(string tag, int variable)

Parameters

tag string
variable int

Returns

TextObject

SetTextVariable(string, float)

public TextObject SetTextVariable(string tag, float variable)

Parameters

tag string
variable float

Returns

TextObject

SetTextVariable(string, string)

public TextObject SetTextVariable(string tag, string variable)

Parameters

tag string
variable string

Returns

TextObject

SetTextVariable(string, TextObject)

public TextObject SetTextVariable(string tag, TextObject variable)

Parameters

tag string
variable TextObject

Returns

TextObject

ToString()

public override string ToString()

Returns

string

ToStringWithoutClear()

public string ToStringWithoutClear()

Returns

string

This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).