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
SoundStyle.cs
Go to the documentation of this file.
1using System;
4
5namespace Terraria.Audio
6{
7 // Token: 0x0200068E RID: 1678
8 public abstract class SoundStyle
9 {
10 // Token: 0x170006C5 RID: 1733
11 // (get) Token: 0x06003816 RID: 14358 RVA: 0x00224ED0 File Offset: 0x002230D0
12 public float Volume
13 {
14 get
15 {
16 /*
17An exception occurred when decompiling this method (06003816)
18
19ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single Terraria.Audio.SoundStyle::get_Volume()
20
21 ---> System.Exception: Basic block has to end with unconditional control flow.
22{
23 Block_0:
24 stloc:float32(var_0_06, ldfld:float32(SoundStyle::_volume, ldloc:SoundStyle(this)))
25}
26
27 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
28 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
29 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
30 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
31 --- End of inner exception stack trace ---
32 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
33 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
34*/;
35 }
36 }
37
38 // Token: 0x170006C6 RID: 1734
39 // (get) Token: 0x06003817 RID: 14359 RVA: 0x00224EE4 File Offset: 0x002230E4
40 public float PitchVariance
41 {
42 get
43 {
44 /*
45An exception occurred when decompiling this method (06003817)
46
47ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single Terraria.Audio.SoundStyle::get_PitchVariance()
48
49 ---> System.Exception: Basic block has to end with unconditional control flow.
50{
51 Block_0:
52 stloc:float32(var_0_06, ldfld:float32(SoundStyle::_pitchVariance, ldloc:SoundStyle(this)))
53}
54
55 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
56 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
57 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
58 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
59 --- End of inner exception stack trace ---
60 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
61 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
62*/;
63 }
64 }
65
66 // Token: 0x170006C7 RID: 1735
67 // (get) Token: 0x06003818 RID: 14360 RVA: 0x00224EF8 File Offset: 0x002230F8
69 {
70 get
71 {
72 return this._type;
73 }
74 }
75
76 // Token: 0x170006C8 RID: 1736
77 // (get) Token: 0x06003819 RID: 14361
78 public abstract bool IsTrackable { get; }
79
80 // Token: 0x0600381A RID: 14362 RVA: 0x00224F0C File Offset: 0x0022310C
81 public SoundStyle(float volume, float pitchVariance, SoundType type = SoundType.Sound)
82 {
83 this._type = type;
84 }
85
86 // Token: 0x0600381B RID: 14363 RVA: 0x00224F28 File Offset: 0x00223128
87 public SoundStyle(SoundType type = SoundType.Sound)
88 {
89 this._type = type;
90 }
91
92 // Token: 0x0600381C RID: 14364 RVA: 0x00224F44 File Offset: 0x00223144
93 public float GetRandomPitch()
94 {
95 /*
96An exception occurred when decompiling this method (0600381C)
97
98ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single Terraria.Audio.SoundStyle::GetRandomPitch()
99
100 ---> System.Exception: Basic block has to end with unconditional control flow.
101{
102 IL_0003:
103 stloc:float32(var_1_09, ldfld:float32(SoundStyle::_pitchVariance, ldloc:SoundStyle(this)))
104}
105
106 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
107 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
108 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
109 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
110 --- End of inner exception stack trace ---
111 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
112 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
113*/;
114 }
115
116 // Token: 0x0600381D RID: 14365
117 public abstract SoundEffect GetRandomSound();
118
119 // Token: 0x0600381E RID: 14366 RVA: 0x00224F5C File Offset: 0x0022315C
120 // Note: this type is marked as 'beforefieldinit'.
121 static SoundStyle()
122 {
123 }
124
125 // Token: 0x04007909 RID: 30985
126 private static UnifiedRandom _random;
127
128 // Token: 0x0400790A RID: 30986
129 private float _volume;
130
131 // Token: 0x0400790B RID: 30987
132 private float _pitchVariance;
133
134 // Token: 0x0400790C RID: 30988
136 }
137}
class f__AnonymousType0<< Count > j__TPar
SoundStyle(SoundType type=SoundType.Sound)
Definition SoundStyle.cs:87
static UnifiedRandom _random
SoundStyle(float volume, float pitchVariance, SoundType type=SoundType.Sound)
Definition SoundStyle.cs:81
SoundEffect GetRandomSound()