Definition at line 8 of file MapLegend.cs.
◆ MapLegend()
Terraria.ModLoader.MapLegend.MapLegend |
( |
int |
size | ) |
|
◆ FromTile()
string Terraria.ModLoader.MapLegend.FromTile |
( |
MapTile |
mapTile, |
|
|
int |
x, |
|
|
int |
y |
|
) |
| |
Definition at line 45 of file MapLegend.cs.
45 {
46 string name =
legend[mapTile.Type].Value;
47 if (MapLoader.nameFuncs.ContainsKey(mapTile.Type)) {
48 name = MapLoader.nameFuncs[mapTile.Type](name, x, y);
49 }
50 return name;
51 }
References Terraria.ModLoader.MapLegend.legend.
◆ FromType()
LocalizedText Terraria.ModLoader.MapLegend.FromType |
( |
int |
type | ) |
|
Definition at line 40 of file MapLegend.cs.
40 {
41 return this[MapHelper.TileToLookup(type, 0)];
42 }
◆ legend
LocalizedText [] Terraria.ModLoader.MapLegend.legend |
|
private |
◆ Length
int Terraria.ModLoader.MapLegend.Length |
|
get |
◆ this[int i]
LocalizedText Terraria.ModLoader.MapLegend.this[int i] |
|
getset |
Definition at line 27 of file MapLegend.cs.
27 {
28 get {
30 }
31 set {
33 }
34 }