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
SoundDefinition.cs
Go to the documentation of this file.
1using System;
4using UnityEngine;
5
6// Token: 0x02000050 RID: 80
7public class SoundDefinition
8{
9 // Token: 0x1700006E RID: 110
10 // (get) Token: 0x060001A8 RID: 424 RVA: 0x00004D58 File Offset: 0x00002F58
11 public float MaxLength
12 {
13 get
14 {
15 /*
16An exception occurred when decompiling this method (060001A8)
17
18ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Single SoundDefinition::get_MaxLength()
19
20 ---> System.Exception: Basic block has to end with unconditional control flow.
21{
22 Block_0:
23 stloc:float32(var_0_06, ldfld:float32(SoundDefinition::_maxLength, ldloc:SoundDefinition(this)))
24}
25
26 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
27 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
28 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
29 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
30 --- End of inner exception stack trace ---
31 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
32 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
33*/;
34 }
35 }
36
37 // Token: 0x060001A9 RID: 425 RVA: 0x00004D6C File Offset: 0x00002F6C
38 public SoundInstance Play(float volume = 1f, float pan = 0f, float pitch = 1f, bool loop = false)
39 {
40 int size = this._variations._size;
42 if (soundChannel != null)
43 {
44 float volumeScale = this.VolumeScale;
45 return;
46 }
47 }
48
49 // Token: 0x060001AA RID: 426 RVA: 0x00004D90 File Offset: 0x00002F90
51 {
52 /*
53An exception occurred when decompiling this method (060001AA)
54
55ICSharpCode.Decompiler.DecompilerException: Error decompiling UnityEngine.AudioClip SoundDefinition::GetRandomClip()
56
57 ---> System.Exception: Basic block has to end with unconditional control flow.
58{
59 Block_0:
60 stloc:class [mscorlib]System.Collections.Generic.List`1<class [UnityEngine.AudioModule]UnityEngine.AudioClip>(var_0_06, ldfld:class [mscorlib]System.Collections.Generic.List`1<class [UnityEngine.AudioModule]UnityEngine.AudioClip>(SoundDefinition::_variations, ldloc:SoundDefinition(this)))
61 stloc:int64(var_1_08, ldc.i4:int64(0))
62 stloc:int32(var_2_0F, ldfld:int32(List`1::_size, ldloc:class [mscorlib]System.Collections.Generic.List`1<class [UnityEngine.AudioModule]UnityEngine.AudioClip>[exp:List`1](var_0_06)))
63 stloc:int32(var_3_17, call:int32(Random::Range, ldloc:int64[exp:int32](var_1_08), ldloc:int32(var_2_0F)))
64}
65
66 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
67 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
68 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
69 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
70 --- End of inner exception stack trace ---
71 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
72 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
73*/;
74 }
75
76 // Token: 0x060001AB RID: 427 RVA: 0x000021DB File Offset: 0x000003DB
77 public void AddVariation(AudioClip clip)
78 {
79 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
80 }
81
82 // Token: 0x060001AC RID: 428 RVA: 0x00004DB4 File Offset: 0x00002FB4
84 {
85 }
86
87 // Token: 0x0400011E RID: 286
88 public string Id;
89
90 // Token: 0x0400011F RID: 287
92
93 // Token: 0x04000120 RID: 288
94 public int Priority;
95
96 // Token: 0x04000121 RID: 289
97 public float VolumeScale = (float)16256;
98
99 // Token: 0x04000122 RID: 290
100 private float _maxLength;
101
102 // Token: 0x04000123 RID: 291
104}
class f__AnonymousType0<< Count > j__TPar
AudioClip GetRandomClip()
void AddVariation(AudioClip clip)
List< AudioClip > _variations
SoundInstance Play(float volume=1f, float pan=0f, float pitch=1f, bool loop=false)