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
SoundPlayer.cs
Go to the documentation of this file.
1using System;
4
5namespace Terraria.Audio
6{
7 // Token: 0x0200068D RID: 1677
8 public class SoundPlayer
9 {
10 // Token: 0x0600380B RID: 14347 RVA: 0x00224C5C File Offset: 0x00222E5C
11 public SlotId Play(SoundStyle style, Vector2 position)
12 {
13 if (!true)
14 {
15 }
16 if (style != null && !true)
17 {
18 Vector2 screenPosition = Main.screenPosition;
19 int screenWidth = Main.screenWidth;
20 int screenHeight = Main.screenHeight;
21 }
24 return slotId;
25 }
26
27 // Token: 0x0600380C RID: 14348 RVA: 0x00224C9C File Offset: 0x00222E9C
29 {
30 if (!true)
31 {
32 }
33 if (style != null && !true)
34 {
35 Vector2 screenPosition = Main.screenPosition;
36 int screenWidth = Main.screenWidth;
37 int screenHeight = Main.screenHeight;
38 }
41 return slotId;
42 }
43
44 // Token: 0x0600380D RID: 14349 RVA: 0x00224CDC File Offset: 0x00222EDC
45 public void Reload()
46 {
47 this.StopAll();
48 }
49
50 // Token: 0x0600380E RID: 14350 RVA: 0x00224CF0 File Offset: 0x00222EF0
51 public SlotId Play(SoundStyle style)
52 {
53 while (((!true || style == null) && style == null) || true)
54 {
55 }
58 return slotId;
59 }
60
61 // Token: 0x0600380F RID: 14351 RVA: 0x00224D14 File Offset: 0x00222F14
63 {
64 bool flag = this._trackedSounds.Has(id);
65 return this._trackedSounds[id];
66 }
67
68 // Token: 0x06003810 RID: 14352 RVA: 0x00224D3C File Offset: 0x00222F3C
73
74 // Token: 0x06003811 RID: 14353 RVA: 0x00224D80 File Offset: 0x00222F80
79
80 // Token: 0x06003812 RID: 14354 RVA: 0x00224DC4 File Offset: 0x00222FC4
81 public void StopAll()
82 {
84 }
85
86 // Token: 0x06003813 RID: 14355 RVA: 0x00224E14 File Offset: 0x00223014
87 public void Update()
88 {
90 }
91
92 // Token: 0x06003814 RID: 14356 RVA: 0x00224E74 File Offset: 0x00223074
94 {
96 long num;
97 if (trackedSounds == null)
98 {
99 num = 0L;
100 if (trackedSounds != null)
101 {
102 }
103 }
104 if (num == 0L)
105 {
106 }
107 throw new OutOfMemoryException();
108 }
109
110 // Token: 0x06003815 RID: 14357 RVA: 0x00224EBC File Offset: 0x002230BC
111 public SoundPlayer()
112 {
113 }
114
115 // Token: 0x04007908 RID: 30984
117 }
118}
class f__AnonymousType0<< Count > j__TPar
ActiveSound FindActiveSound(SoundStyle style)
SlotId Play(SoundStyle style, Vector2 position)
SlotId Play(SoundStyle style)
SlotId PlayLooped(SoundStyle style, Vector2 position, ActiveSound.LoopedPlayCondition loopingCondition)
readonly SlotVector< ActiveSound > _trackedSounds
ActiveSound GetActiveSound(SlotId id)
static Microsoft.Xna.Framework.Vector2 screenPosition
Definition Main.cs:1973
static int screenHeight
Definition Main.cs:2015
static int screenWidth
Definition Main.cs:2001