RuntimeTextData

Namespace: Murder.Core.Graphics
Assembly: Murder.dll

public sealed struct RuntimeTextData

This has runtime information about a text which is displayed in screen.

⭐ Constructors

public RuntimeTextData()
public RuntimeTextData(string text, ImmutableDictionary<TKey, TValue> letters)

Parameters
text string
letters ImmutableDictionary<TKey, TValue>

public RuntimeTextData(string text)

Parameters
text string

⭐ Properties

Empty

public bool Empty { get; }

Returns
bool

Font

public int Font { get; public set; }

Index of the font used to calculate the runtime text data.

Returns
int

HiRes

public bool HiRes { get; public set; }

Whether this is high resolution.

Returns
bool

Length

public int Length { get; }

Returns
int

Text

public readonly string Text;

Returns
string

⭐ Methods

TryGetLetterProperty(int)

public T? TryGetLetterProperty(int index)

Parameters
index int

Returns
T?