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
Cue.cs
Go to the documentation of this file.
1using System;
2
4{
5 // Token: 0x020003CD RID: 973
6 public class Cue
7 {
8 // Token: 0x06001A67 RID: 6759 RVA: 0x0006C9BC File Offset: 0x0006ABBC
15
16 // Token: 0x17000374 RID: 884
17 // (get) Token: 0x06001A68 RID: 6760 RVA: 0x0006C9EC File Offset: 0x0006ABEC
18 public bool IsPaused
19 {
20 get
21 {
22 return this._paused;
23 }
24 }
25
26 // Token: 0x17000375 RID: 885
27 // (get) Token: 0x06001A69 RID: 6761 RVA: 0x0006CA00 File Offset: 0x0006AC00
28 public bool IsPlaying
29 {
30 get
31 {
32 return !this._paused || true;
33 }
34 }
35
36 // Token: 0x17000376 RID: 886
37 // (get) Token: 0x06001A6A RID: 6762 RVA: 0x0006CA18 File Offset: 0x0006AC18
38 public bool IsStopped
39 {
40 get
41 {
42 /*
43An exception occurred when decompiling this method (06001A6A)
44
45ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean Microsoft.Xna.Framework.Audio.Cue::get_IsStopped()
46
47 ---> System.Exception: Basic block has to end with unconditional control flow.
48{
49 Block_0:
50 stloc:SoundEffectInstance(var_0_06, ldfld:SoundEffectInstance(Cue::_audioInstance, ldloc:Cue(this)))
51}
52
53 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
54 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
55 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
56 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
57 --- End of inner exception stack trace ---
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 92
59 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
60*/;
61 }
62 }
63
64 // Token: 0x06001A6B RID: 6763 RVA: 0x0006CA2C File Offset: 0x0006AC2C
65 public void Play()
66 {
68 }
69
70 // Token: 0x06001A6C RID: 6764 RVA: 0x0006CA40 File Offset: 0x0006AC40
71 public void Pause()
72 {
74 this._paused = true;
76 if (playingInstance != null)
77 {
80 return;
81 }
82 }
83
84 // Token: 0x06001A6D RID: 6765 RVA: 0x0006CA74 File Offset: 0x0006AC74
85 public void Resume()
86 {
88 if (this._audioInstance._playingInstance != null)
89 {
90 float pausedTime = this._pausedTime;
91 }
92 }
93
94 // Token: 0x06001A6E RID: 6766 RVA: 0x0006CA9C File Offset: 0x0006AC9C
95 public void Stop(AudioStopOptions option)
96 {
98 }
99
100 // Token: 0x06001A6F RID: 6767 RVA: 0x0006CAB0 File Offset: 0x0006ACB0
101 public void SetVariable(string id, float value)
102 {
104 }
105
106 // Token: 0x040027D8 RID: 10200
107 private bool _paused;
108
109 // Token: 0x040027D9 RID: 10201
110 private float _pausedTime;
111
112 // Token: 0x040027DA RID: 10202
114
115 // Token: 0x040027DB RID: 10203
117 }
118}
class f__AnonymousType0<< Count > j__TPar
SoundEffectInstance _audioInstance
Definition Cue.cs:113
void SetVariable(string id, float value)
Definition Cue.cs:101
void Stop(AudioStopOptions option)
Definition Cue.cs:95
Cue(SoundEffect musicSource)
Definition Cue.cs:9
float CurrentPosition