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
LegacySoundStyle.cs
Go to the documentation of this file.
1using System;
4
5namespace Terraria.Audio
6{
7 // Token: 0x0200068A RID: 1674
9 {
10 // Token: 0x170006C2 RID: 1730
11 // (get) Token: 0x060037E8 RID: 14312 RVA: 0x002248D0 File Offset: 0x00222AD0
12 public int Style
13 {
14 get
15 {
16 int variations = this.Variations;
17 return this._style;
18 }
19 }
20
21 // Token: 0x170006C3 RID: 1731
22 // (get) Token: 0x060037E9 RID: 14313 RVA: 0x002248FC File Offset: 0x00222AFC
23 public override bool IsTrackable
24 {
25 get
26 {
27 /*
28An exception occurred when decompiling this method (060037E9)
29
30ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.Audio.LegacySoundStyle::get_IsTrackable()
31
32 ---> System.Exception: Basic block has to end with unconditional control flow.
33{
34 Block_0:
35 stloc:int32(var_0_06, ldfld:int32(LegacySoundStyle::SoundId, ldloc:LegacySoundStyle(this)))
36}
37
38 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
39 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
40 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
41 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
42 --- End of inner exception stack trace ---
43 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
44 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
45*/;
46 }
47 }
48
49 // Token: 0x060037EA RID: 14314 RVA: 0x00224910 File Offset: 0x00222B10
50 public LegacySoundStyle(int soundId, int style, SoundType type = SoundType.Sound)
51 {
52 if (!true)
53 {
54 }
55 base..ctor();
56 this._type = type;
57 this.Variations = style;
59 }
60
61 // Token: 0x060037EB RID: 14315 RVA: 0x0022493C File Offset: 0x00222B3C
62 public LegacySoundStyle(int soundId, int style, int variations, SoundType type = SoundType.Sound)
63 {
64 if (!true)
65 {
66 }
67 base..ctor();
68 this._type = type;
69 this.Variations = style;
71 }
72
73 // Token: 0x060037EC RID: 14316 RVA: 0x00224968 File Offset: 0x00222B68
74 private LegacySoundStyle(int soundId, int style, int variations, SoundType type, float volume, float pitchVariance)
75 {
76 if (!true)
77 {
78 }
79 base..ctor();
80 this._type = type;
81 this.Variations = style;
83 }
84
85 // Token: 0x060037ED RID: 14317 RVA: 0x00224994 File Offset: 0x00222B94
86 public LegacySoundStyle WithVolume(float volume)
87 {
88 /*
89An exception occurred when decompiling this method (060037ED)
90
91ICSharpCode.Decompiler.DecompilerException: Error decompiling Terraria.Audio.LegacySoundStyle Terraria.Audio.LegacySoundStyle::WithVolume(System.Single)
92
93 ---> System.Exception: Basic block has to end with unconditional control flow.
94{
95 Block_0:
96 stloc:int32(var_0_06, ldfld:int32(LegacySoundStyle::Variations, ldloc:LegacySoundStyle(this)))
97 stloc:SoundType(var_1_0D, ldfld:SoundType(SoundStyle::_type, ldloc:LegacySoundStyle[exp:SoundStyle](this)))
98 stloc:int32(var_2_14, ldfld:int32(LegacySoundStyle::Variations, ldloc:LegacySoundStyle(this)))
99 stloc:float32(var_3_1B, ldfld:float32(SoundStyle::_pitchVariance, ldloc:LegacySoundStyle[exp:SoundStyle](this)))
100}
101
102 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
103 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
104 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
105 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
106 --- End of inner exception stack trace ---
107 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
108 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
109*/;
110 }
111
112 // Token: 0x060037EE RID: 14318 RVA: 0x002249BC File Offset: 0x00222BBC
114 {
115 /*
116An exception occurred when decompiling this method (060037EE)
117
118ICSharpCode.Decompiler.DecompilerException: Error decompiling Terraria.Audio.LegacySoundStyle Terraria.Audio.LegacySoundStyle::WithPitchVariance(System.Single)
119
120 ---> System.Exception: Basic block has to end with unconditional control flow.
121{
122 Block_0:
123 stloc:int32(var_0_06, ldfld:int32(LegacySoundStyle::Variations, ldloc:LegacySoundStyle(this)))
124 stloc:SoundType(var_1_0D, ldfld:SoundType(SoundStyle::_type, ldloc:LegacySoundStyle[exp:SoundStyle](this)))
125 stloc:int32(var_2_14, ldfld:int32(LegacySoundStyle::Variations, ldloc:LegacySoundStyle(this)))
126 stloc:float32(var_3_1B, ldfld:float32(SoundStyle::_volume, ldloc:LegacySoundStyle[exp:SoundStyle](this)))
127}
128
129 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
130 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
131 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
132 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
133 --- End of inner exception stack trace ---
134 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
135 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
136*/;
137 }
138
139 // Token: 0x060037EF RID: 14319 RVA: 0x002249E4 File Offset: 0x00222BE4
141 {
142 /*
143An exception occurred when decompiling this method (060037EF)
144
145ICSharpCode.Decompiler.DecompilerException: Error decompiling Terraria.Audio.LegacySoundStyle Terraria.Audio.LegacySoundStyle::AsMusic()
146
147 ---> System.Exception: Basic block has to end with unconditional control flow.
148{
149 Block_0:
150 stloc:int32(var_0_06, ldfld:int32(LegacySoundStyle::Variations, ldloc:LegacySoundStyle(this)))
151 stloc:int32(var_1_0D, ldfld:int32(LegacySoundStyle::_style, ldloc:LegacySoundStyle(this)))
152 stloc:float32(var_2_14, ldfld:float32(SoundStyle::_volume, ldloc:LegacySoundStyle[exp:SoundStyle](this)))
153 stloc:float32(var_3_1B, ldfld:float32(SoundStyle::_pitchVariance, ldloc:LegacySoundStyle[exp:SoundStyle](this)))
154}
155
156 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
157 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
158 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
159 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
160 --- End of inner exception stack trace ---
161 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
162 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
163*/;
164 }
165
166 // Token: 0x060037F0 RID: 14320 RVA: 0x00224A0C File Offset: 0x00222C0C
168 {
169 /*
170An exception occurred when decompiling this method (060037F0)
171
172ICSharpCode.Decompiler.DecompilerException: Error decompiling Terraria.Audio.LegacySoundStyle Terraria.Audio.LegacySoundStyle::AsAmbient()
173
174 ---> System.Exception: Basic block has to end with unconditional control flow.
175{
176 Block_0:
177 stloc:int32(var_0_06, ldfld:int32(LegacySoundStyle::Variations, ldloc:LegacySoundStyle(this)))
178 stloc:int32(var_1_0D, ldfld:int32(LegacySoundStyle::_style, ldloc:LegacySoundStyle(this)))
179 stloc:float32(var_2_14, ldfld:float32(SoundStyle::_volume, ldloc:LegacySoundStyle[exp:SoundStyle](this)))
180 stloc:float32(var_3_1B, ldfld:float32(SoundStyle::_pitchVariance, ldloc:LegacySoundStyle[exp:SoundStyle](this)))
181}
182
183 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
184 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
185 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
186 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
187 --- End of inner exception stack trace ---
188 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
189 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
190*/;
191 }
192
193 // Token: 0x060037F1 RID: 14321 RVA: 0x00224A34 File Offset: 0x00222C34
195 {
196 /*
197An exception occurred when decompiling this method (060037F1)
198
199ICSharpCode.Decompiler.DecompilerException: Error decompiling Terraria.Audio.LegacySoundStyle Terraria.Audio.LegacySoundStyle::AsSound()
200
201 ---> System.Exception: Basic block has to end with unconditional control flow.
202{
203 Block_0:
204 stloc:int32(var_0_06, ldfld:int32(LegacySoundStyle::Variations, ldloc:LegacySoundStyle(this)))
205 stloc:int32(var_1_0D, ldfld:int32(LegacySoundStyle::_style, ldloc:LegacySoundStyle(this)))
206 stloc:float32(var_2_14, ldfld:float32(SoundStyle::_volume, ldloc:LegacySoundStyle[exp:SoundStyle](this)))
207 stloc:float32(var_3_1B, ldfld:float32(SoundStyle::_pitchVariance, ldloc:LegacySoundStyle[exp:SoundStyle](this)))
208}
209
210 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
211 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
212 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
213 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
214 --- End of inner exception stack trace ---
215 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
216 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
217*/;
218 }
219
220 // Token: 0x060037F2 RID: 14322 RVA: 0x00224A5C File Offset: 0x00222C5C
221 public bool Includes(int soundId, int style)
222 {
223 /*
224An exception occurred when decompiling this method (060037F2)
225
226ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Terraria.Audio.LegacySoundStyle::Includes(System.Int32,System.Int32)
227
228 ---> System.Exception: Basic block has to end with unconditional control flow.
229{
230 Block_0:
231 stloc:int32(var_0_06, ldfld:int32(LegacySoundStyle::SoundId, ldloc:LegacySoundStyle(this)))
232 stloc:int32(var_1_0D, ldfld:int32(LegacySoundStyle::_style, ldloc:LegacySoundStyle(this)))
233}
234
235 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
236 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
237 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
238 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
239 --- End of inner exception stack trace ---
240 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
241 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
242*/;
243 }
244
245 // Token: 0x060037F3 RID: 14323 RVA: 0x00224A78 File Offset: 0x00222C78
246 public override SoundEffect GetRandomSound()
247 {
249 }
250
251 // Token: 0x060037F4 RID: 14324 RVA: 0x00224A94 File Offset: 0x00222C94
252 // Note: this type is marked as 'beforefieldinit'.
254 {
255 }
256
257 // Token: 0x040078FF RID: 30975
259
260 // Token: 0x04007900 RID: 30976
261 private readonly int _style;
262
263 // Token: 0x04007901 RID: 30977
265
266 // Token: 0x04007902 RID: 30978
267 public readonly int SoundId;
268 }
269}
class f__AnonymousType0<< Count > j__TPar
LegacySoundStyle(int soundId, int style, int variations, SoundType type=SoundType.Sound)
LegacySoundStyle WithVolume(float volume)
bool Includes(int soundId, int style)
LegacySoundStyle(int soundId, int style, int variations, SoundType type, float volume, float pitchVariance)
LegacySoundStyle WithPitchVariance(float pitchVariance)
static readonly UnifiedRandom Random
LegacySoundStyle(int soundId, int style, SoundType type=SoundType.Sound)
override SoundEffect GetRandomSound()
static SoundEffect GetTrackableSoundByStyleId(int id)