terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
TileFont.cs
Go to the documentation of this file.
1using System;
4
6{
7 // Token: 0x020004E9 RID: 1257
8 public class TileFont
9 {
10 // Token: 0x0600307A RID: 12410 RVA: 0x001F6630 File Offset: 0x001F4830
11 public static void DrawString(Point start, string text, TileFont.DrawMode mode)
12 {
13 int stringLength = text._stringLength;
14 long num = 0L;
15 char c = text[(int)num];
16 if (stringLength == 0)
17 {
18 }
19 int stringLength2 = text._stringLength;
20 }
21
22 // Token: 0x0600307B RID: 12411 RVA: 0x001F6658 File Offset: 0x001F4858
23 private static void DrawChar(Point position, byte[] charData, TileFont.DrawMode mode)
24 {
25 int num = 1;
26 if (num == 0)
27 {
28 }
29 Tile tile;
30 tile.ResetToType((ushort)1610612736);
31 if (num == 0)
32 {
33 }
34 long num2 = 0L;
35 long num3 = 0L;
36 WorldGen.TileFrame(0, 1610612736, num2 != 0L, num3 != 0L);
37 if (num == 0)
38 {
39 }
40 if (num == 0)
41 {
42 }
43 long num4 = 0L;
44 long num5 = 0L;
45 WorldGen.TileFrame(0, 1610612736, num4 != 0L, num5 != 0L);
46 }
47
48 // Token: 0x0600307C RID: 12412 RVA: 0x001F66AC File Offset: 0x001F48AC
49 public static Point MeasureString(string text)
50 {
51 /*
52An exception occurred when decompiling this method (0600307C)
53
54ICSharpCode.Decompiler.DecompilerException: Error decompiling Microsoft.Xna.Framework.Point Terraria.WorldBuilding.TileFont::MeasureString(System.String)
55
56 ---> System.Exception: Basic block has to end with unconditional control flow.
57{
58 IL_0014:
59 stloc:int32(var_5_1D, call:int32(Math::Max, ldloc:char[exp:int32](var_4), ldloc:char[exp:int32](var_4)))
60}
61
62 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
63 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
64 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
65 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
66 --- End of inner exception stack trace ---
67 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
68 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
69*/;
70 }
71
72 // Token: 0x0600307D RID: 12413 RVA: 0x001F66D8 File Offset: 0x001F48D8
73 public static void HLineLabel(Point start, int width, string text, TileFont.DrawMode mode, bool rightSideText = false)
74 {
75 int num = 1;
76 if (num == 0)
77 {
78 }
80 if (num == 0)
81 {
82 }
83 if (num == 0)
84 {
85 }
86 }
87
88 // Token: 0x0600307E RID: 12414 RVA: 0x001F66FC File Offset: 0x001F48FC
89 public static void VLineLabel(Point start, int height, string text, TileFont.DrawMode mode, bool bottomText = false)
90 {
91 int num = 1;
92 if (num == 0)
93 {
94 }
96 if (num == 0)
97 {
98 }
99 if (num == 0)
100 {
101 }
102 }
103
104 // Token: 0x0600307F RID: 12415 RVA: 0x001F671C File Offset: 0x001F491C
105 public TileFont()
106 {
107 }
108
109 // Token: 0x06003080 RID: 12416 RVA: 0x001F6730 File Offset: 0x001F4930
110 // Note: this type is marked as 'beforefieldinit'.
111 static TileFont()
112 {
113 }
114
115 // Token: 0x04003A8F RID: 14991
117
118 // Token: 0x020004EA RID: 1258
119 public struct DrawMode
120 {
121 // Token: 0x06003081 RID: 12417 RVA: 0x001F6740 File Offset: 0x001F4940
126
127 // Token: 0x06003082 RID: 12418 RVA: 0x001F6754 File Offset: 0x001F4954
134
135 // Token: 0x04003A90 RID: 14992
137
138 // Token: 0x04003A91 RID: 14993
140
141 // Token: 0x04003A92 RID: 14994
143 }
144 }
145}
class f__AnonymousType0<< Count > j__TPar
static Point MeasureString(string text)
Definition TileFont.cs:49
static void DrawChar(Point position, byte[] charData, TileFont.DrawMode mode)
Definition TileFont.cs:23
static void DrawString(Point start, string text, TileFont.DrawMode mode)
Definition TileFont.cs:11
static readonly Dictionary< char, byte[]> MicroFont
Definition TileFont.cs:116
static void VLineLabel(Point start, int height, string text, TileFont.DrawMode mode, bool bottomText=false)
Definition TileFont.cs:89
static void HLineLabel(Point start, int width, string text, TileFont.DrawMode mode, bool rightSideText=false)
Definition TileFont.cs:73
static void TileFrame(int i, int j, bool resetFrame=false, bool noBreak=false)
void ResetToType(ushort type)
Definition Tile.cs:1298
DrawMode(ushort foregroundTile, ushort backgroundTile)
Definition TileFont.cs:128