terraria-cpp2il v1.4.4.9
Terraria mobile dump, with CallAnalysis (see source code). Dump with reconstucted method: https://infinitynichto.github.io/terraria-cpp2il-methodrecon
Loading...
Searching...
No Matches
SoundPlayer.cs
Go to the documentation of this file.
1using System;
6
7namespace Terraria.Audio
8{
9 [global::Cpp2ILInjected.Token(Token = "0x200068D")]
10 public class SoundPlayer
11 {
12 [global::Cpp2ILInjected.Token(Token = "0x600380B")]
13 [global::Cpp2ILInjected.Address(RVA = "0x1435EAC", Offset = "0x1435EAC", Length = "0x1F0")]
14 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
15 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(SoundEngine), Member = "PlayTrackedSound", MemberParameters = new object[]
16 {
19 }, ReturnType = typeof(SlotId))]
20 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
21 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_screenPosition", ReturnType = typeof(Vector2))]
22 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_screenWidth", ReturnType = typeof(int))]
23 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_screenHeight", ReturnType = typeof(int))]
24 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = ".ctor", MemberParameters = new object[]
25 {
26 typeof(float),
27 typeof(float)
28 }, ReturnType = typeof(void))]
29 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = "op_Addition", MemberParameters = new object[]
30 {
33 }, ReturnType = typeof(Vector2))]
34 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = "DistanceSquared", MemberParameters = new object[]
35 {
38 }, ReturnType = typeof(float))]
39 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ActiveSound), Member = ".ctor", MemberParameters = new object[]
40 {
43 }, ReturnType = typeof(void))]
44 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(SlotVector<>), Member = "Add", MemberParameters = new object[] { "T" }, ReturnType = typeof(SlotId))]
45 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 10)]
46 public SlotId Play(SoundStyle style, Vector2 position)
47 {
48 throw null;
49 }
50
51 [global::Cpp2ILInjected.Token(Token = "0x600380C")]
52 [global::Cpp2ILInjected.Address(RVA = "0x14361AC", Offset = "0x14361AC", Length = "0x1F8")]
53 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
54 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(SoundEngine), Member = "PlayTrackedLoopedSound", MemberParameters = new object[]
55 {
59 }, ReturnType = typeof(SlotId))]
60 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
61 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_screenPosition", ReturnType = typeof(Vector2))]
62 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_screenWidth", ReturnType = typeof(int))]
63 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Main), Member = "get_screenHeight", ReturnType = typeof(int))]
64 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = ".ctor", MemberParameters = new object[]
65 {
66 typeof(float),
67 typeof(float)
68 }, ReturnType = typeof(void))]
69 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = "op_Addition", MemberParameters = new object[]
70 {
73 }, ReturnType = typeof(Vector2))]
74 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(Vector2), Member = "DistanceSquared", MemberParameters = new object[]
75 {
78 }, ReturnType = typeof(float))]
79 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ActiveSound), Member = ".ctor", MemberParameters = new object[]
80 {
81 typeof(SoundStyle),
83 typeof(ActiveSound.LoopedPlayCondition)
84 }, ReturnType = typeof(void))]
85 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(SlotVector<>), Member = "Add", MemberParameters = new object[] { "T" }, ReturnType = typeof(SlotId))]
86 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 10)]
88 {
89 throw null;
90 }
91
92 [global::Cpp2ILInjected.Token(Token = "0x600380D")]
93 [global::Cpp2ILInjected.Address(RVA = "0x14359E0", Offset = "0x14359E0", Length = "0x4")]
94 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
95 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(SoundPlayer), Member = "StopAll", ReturnType = typeof(void))]
96 public void Reload()
97 {
98 throw null;
99 }
100
101 [global::Cpp2ILInjected.Token(Token = "0x600380E")]
102 [global::Cpp2ILInjected.Address(RVA = "0x143648C", Offset = "0x143648C", Length = "0x114")]
103 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
104 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(SoundEngine), Member = "PlayTrackedSound", MemberParameters = new object[] { typeof(SoundStyle) }, ReturnType = typeof(SlotId))]
105 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
106 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ActiveSound), Member = ".ctor", MemberParameters = new object[] { typeof(SoundStyle) }, ReturnType = typeof(void))]
107 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(SlotVector<>), Member = "Add", MemberParameters = new object[] { "T" }, ReturnType = typeof(SlotId))]
108 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 7)]
109 public SlotId Play(SoundStyle style)
110 {
111 throw null;
112 }
113
114 [global::Cpp2ILInjected.Token(Token = "0x600380F")]
115 [global::Cpp2ILInjected.Address(RVA = "0x1435D14", Offset = "0x1435D14", Length = "0x98")]
116 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
117 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(SlotVector<>), Member = "Has", MemberParameters = new object[] { typeof(SlotId) }, ReturnType = typeof(bool))]
118 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(SlotVector<>), Member = "get_Item", MemberParameters = new object[] { typeof(SlotId) }, ReturnType = "T")]
119 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 2)]
121 {
122 throw null;
123 }
124
125 [global::Cpp2ILInjected.Token(Token = "0x6003810")]
126 [global::Cpp2ILInjected.Address(RVA = "0x1435030", Offset = "0x1435030", Length = "0x2B8")]
127 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
128 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(SoundEngine), Member = "Update", ReturnType = typeof(void))]
129 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
130 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ActiveSound), Member = "Pause", ReturnType = typeof(void))]
131 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 15)]
132 public void PauseAll()
133 {
134 throw null;
135 }
136
137 [global::Cpp2ILInjected.Token(Token = "0x6003811")]
138 [global::Cpp2ILInjected.Address(RVA = "0x14352E8", Offset = "0x14352E8", Length = "0x2B8")]
139 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
140 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(SoundEngine), Member = "Update", ReturnType = typeof(void))]
141 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
142 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ActiveSound), Member = "Resume", ReturnType = typeof(void))]
143 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 15)]
144 public void ResumeAll()
145 {
146 throw null;
147 }
148
149 [global::Cpp2ILInjected.Token(Token = "0x6003812")]
150 [global::Cpp2ILInjected.Address(RVA = "0x1436650", Offset = "0x1436650", Length = "0x2DC")]
151 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
152 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(SoundEngine), Member = "Reload", ReturnType = typeof(void))]
153 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(SoundPlayer), Member = "Reload", ReturnType = typeof(void))]
154 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 2)]
155 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ActiveSound), Member = "Stop", ReturnType = typeof(void))]
156 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(SlotVector<>), Member = "Clear", ReturnType = typeof(void))]
157 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 16)]
158 public void StopAll()
159 {
160 throw null;
161 }
162
163 [global::Cpp2ILInjected.Token(Token = "0x6003813")]
164 [global::Cpp2ILInjected.Address(RVA = "0x14355A0", Offset = "0x14355A0", Length = "0x3A8")]
165 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
166 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(SoundEngine), Member = "Update", ReturnType = typeof(void))]
167 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
168 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ActiveSound), Member = "Update", ReturnType = typeof(void))]
169 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(ActiveSound), Member = "get_IsPlaying", ReturnType = typeof(bool))]
170 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(SlotVector<>), Member = "Remove", MemberParameters = new object[] { typeof(SlotId) }, ReturnType = typeof(bool))]
171 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 24)]
172 public void Update()
173 {
174 throw null;
175 }
176
177 [global::Cpp2ILInjected.Token(Token = "0x6003814")]
178 [global::Cpp2ILInjected.Address(RVA = "0x1436AA0", Offset = "0x1436AA0", Length = "0x2F4")]
179 [global::Cpp2ILInjected.CallAnalysis.ContainsUnimplementedInstructions]
180 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 0)]
181 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 15)]
183 {
184 throw null;
185 }
186
187 [global::Cpp2ILInjected.Token(Token = "0x6003815")]
188 [global::Cpp2ILInjected.Address(RVA = "0x1434D14", Offset = "0x1434D14", Length = "0x80")]
189 [global::Cpp2ILInjected.CallAnalysis.CalledBy(Type = typeof(SoundEngine), Member = "Load", MemberParameters = new object[] { typeof(IServiceProvider) }, ReturnType = typeof(void))]
190 [global::Cpp2ILInjected.CallAnalysis.CallerCount(Count = 1)]
191 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(SlotVector<>), Member = ".ctor", MemberParameters = new object[] { typeof(int) }, ReturnType = typeof(void))]
192 [global::Cpp2ILInjected.CallAnalysis.Calls(Type = typeof(object), Member = ".ctor", ReturnType = typeof(void))]
193 [global::Cpp2ILInjected.CallAnalysis.CallsUnknownMethods(Count = 3)]
194 public SoundPlayer()
195 {
196 throw null;
197 }
198
199 [global::Cpp2ILInjected.Token(Token = "0x4007908")]
200 [global::Cpp2ILInjected.FieldOffset(Offset = "0x10")]
202 }
203}
class f__AnonymousType0<< Count > j__TPar
delegate bool LoopedPlayCondition()
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)