Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros
RuntimeLabel.cs
Go to the documentation of this file.
3
5
6internal readonly struct RuntimeLabel
7{
8 public readonly int Index;
9
10 public readonly int StackDepth;
11
12 public readonly int ContinuationStackDepth;
13
14 public RuntimeLabel(int index, int continuationStackDepth, int stackDepth)
15 {
16 Index = index;
17 ContinuationStackDepth = continuationStackDepth;
18 StackDepth = stackDepth;
19 }
20
21 public override string ToString()
22 {
24 DefaultInterpolatedStringHandler handler = new DefaultInterpolatedStringHandler(10, 3, invariantCulture);
25 handler.AppendLiteral("->");
26 handler.AppendFormatted(Index);
27 handler.AppendLiteral(" C(");
29 handler.AppendLiteral(") S(");
31 handler.AppendLiteral(")");
32 return string.Create(invariantCulture, ref handler);
33 }
34}
static CultureInfo InvariantCulture
RuntimeLabel(int index, int continuationStackDepth, int stackDepth)