Class NumberText

Namespace
TDMaker.Unity.Hud
Assembly
TDMaker.Unity.dll

Shared strings for integers (0..TableSize-1 in a table, other values in a bounded map): each number is turned into a string once per session, so labels that show changing counts, timers or health do not allocate when a value comes back.

public static class NumberText
Inheritance
NumberText
Inherited Members

Fields

TableSize

Numbers below this value use the table.

public const int TableSize = 10000

Field Value

int

Methods

Get(int)

The invariant decimal text of number (a cached string).

public static string Get(int number)

Parameters

number int

Returns

string