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
OptionalInt16.cs
Go to the documentation of this file.
1using System;
4using UnityEngine;
5
6namespace InControl
7{
8 // Token: 0x02000067 RID: 103
10 public struct OptionalInt16
11 {
12 // Token: 0x060004AA RID: 1194 RVA: 0x0000F720 File Offset: 0x0000D920
13 public OptionalInt16(short value)
14 {
15 this.hasValue = true;
16 }
17
18 // Token: 0x17000156 RID: 342
19 // (get) Token: 0x060004AB RID: 1195 RVA: 0x000025E1 File Offset: 0x000007E1
20 public bool HasValue
21 {
22 get
23 {
24 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
25 }
26 }
27
28 // Token: 0x17000157 RID: 343
29 // (get) Token: 0x060004AC RID: 1196 RVA: 0x000025E1 File Offset: 0x000007E1
30 public bool HasNoValue
31 {
32 get
33 {
34 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
35 }
36 }
37
38 // Token: 0x17000158 RID: 344
39 // (get) Token: 0x060004AD RID: 1197 RVA: 0x0000F734 File Offset: 0x0000D934
40 // (set) Token: 0x060004AE RID: 1198 RVA: 0x0000F748 File Offset: 0x0000D948
41 public short Value
42 {
43 get
44 {
45 return this.value;
46 }
47 set
48 {
50 this.hasValue = true;
51 }
52 }
53
54 // Token: 0x060004AF RID: 1199 RVA: 0x0000F764 File Offset: 0x0000D964
55 public void Clear()
56 {
57 }
58
59 // Token: 0x060004B0 RID: 1200 RVA: 0x0000F774 File Offset: 0x0000D974
60 public short GetValueOrDefault(short defaultValue)
61 {
62 return this.value;
63 }
64
65 // Token: 0x060004B1 RID: 1201 RVA: 0x0000F78C File Offset: 0x0000D98C
66 public short GetValueOrZero()
67 {
68 return this.value;
69 }
70
71 // Token: 0x060004B2 RID: 1202 RVA: 0x0000F7A4 File Offset: 0x0000D9A4
72 public void SetValue(short value)
73 {
75 this.hasValue = true;
76 }
77
78 // Token: 0x060004B3 RID: 1203 RVA: 0x0000F7C0 File Offset: 0x0000D9C0
79 public override bool Equals(object other)
80 {
81 if (other == null)
82 {
83 }
84 bool flag;
85 return flag;
86 }
87
88 // Token: 0x060004B4 RID: 1204 RVA: 0x0000F7D4 File Offset: 0x0000D9D4
90 {
91 }
92
93 // Token: 0x060004B5 RID: 1205 RVA: 0x0000F7E4 File Offset: 0x0000D9E4
94 public bool Equals(short other)
95 {
96 /*
97An exception occurred when decompiling this method (060004B5)
98
99ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean InControl.OptionalInt16::Equals(System.Int16)
100
101 ---> System.Exception: Basic block has to end with unconditional control flow.
102{
103 Block_0:
104 stloc:int16(var_0_06, ldfld:int16(OptionalInt16::value, ldloc:valuetype InControl.OptionalInt16&(this)))
105}
106
107 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
108 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
109 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
110 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
111 --- End of inner exception stack trace ---
112 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
113 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
114*/;
115 }
116
117 // Token: 0x060004B6 RID: 1206 RVA: 0x000025E1 File Offset: 0x000007E1
118 public static bool operator ==(OptionalInt16 a, OptionalInt16 b)
119 {
120 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
121 }
122
123 // Token: 0x060004B7 RID: 1207 RVA: 0x000025E1 File Offset: 0x000007E1
124 public static bool operator !=(OptionalInt16 a, OptionalInt16 b)
125 {
126 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
127 }
128
129 // Token: 0x060004B8 RID: 1208 RVA: 0x0000F7FC File Offset: 0x0000D9FC
130 public static bool operator ==(OptionalInt16 a, short b)
131 {
132 }
133
134 // Token: 0x060004B9 RID: 1209 RVA: 0x0000F80C File Offset: 0x0000DA0C
135 public static bool operator !=(OptionalInt16 a, short b)
136 {
137 return true;
138 }
139
140 // Token: 0x060004BA RID: 1210 RVA: 0x000025E1 File Offset: 0x000007E1
141 private static int CombineHashCodes(int h1, int h2)
142 {
143 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
144 }
145
146 // Token: 0x060004BB RID: 1211 RVA: 0x0000F81C File Offset: 0x0000DA1C
147 public override int GetHashCode()
148 {
149 int num;
150 return num;
151 }
152
153 // Token: 0x060004BC RID: 1212 RVA: 0x0000F82C File Offset: 0x0000DA2C
154 public override string ToString()
155 {
157 string text;
158 return text;
159 }
160
161 // Token: 0x060004BD RID: 1213 RVA: 0x0000F848 File Offset: 0x0000DA48
162 public static implicit operator OptionalInt16(short value)
163 {
164 return 1;
165 }
166
167 // Token: 0x060004BE RID: 1214 RVA: 0x0000F858 File Offset: 0x0000DA58
168 public static explicit operator short(OptionalInt16 optional)
169 {
170 short num;
171 return num;
172 }
173
174 // Token: 0x040003E8 RID: 1000
176 private bool hasValue;
177
178 // Token: 0x040003E9 RID: 1001
180 private short value;
181 }
182}
class f__AnonymousType0<< Count > j__TPar
static CultureInfo InvariantCulture
short GetValueOrDefault(short defaultValue)
static bool operator==(OptionalInt16 a, OptionalInt16 b)
bool Equals(short other)
bool Equals(OptionalInt16 other)
void SetValue(short value)
static bool operator!=(OptionalInt16 a, OptionalInt16 b)
override string ToString()
override int GetHashCode()
static int CombineHashCodes(int h1, int h2)
override bool Equals(object other)