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
LegacySoundPlayer.cs
Go to the documentation of this file.
1using System;
7using Terraria.ID;
8
9namespace Terraria.Audio
10{
11 // Token: 0x02000689 RID: 1673
12 public class LegacySoundPlayer
13 {
14 // Token: 0x060037DE RID: 14302 RVA: 0x002228EC File Offset: 0x00220AEC
16 {
17 if (!true)
18 {
19 }
20 base..ctor();
21 this._services = services;
22 this.LoadAll();
23 }
24
25 // Token: 0x060037DF RID: 14303 RVA: 0x00222918 File Offset: 0x00220B18
26 public void Reload()
27 {
29 }
30
31 // Token: 0x060037E0 RID: 14304 RVA: 0x0022292C File Offset: 0x00220B2C
32 private void LoadAll()
33 {
35 Asset<SoundEffect> asset = this.Load("Sounds/Mech_0");
36 if (asset == null || asset != null)
37 {
38 Asset<SoundEffect> asset2 = this.Load("Sounds/Grab");
40 Asset<SoundEffect> asset3 = this.Load("Sounds/Pixie");
43 Asset<SoundEffect> asset4 = this.Load("Sounds/Dig_0");
44 if (asset4 == null || asset4 != null)
45 {
47 Asset<SoundEffect> asset5 = this.Load("Sounds/Dig_1");
48 if (asset5 == null || asset5 != null)
49 {
51 Asset<SoundEffect> asset6 = this.Load("Sounds/Dig_2");
52 if (asset6 == null || asset6 != null)
53 {
55 Asset<SoundEffect> asset7 = this.Load("Sounds/Thunder_0");
56 if (asset7 == null || asset7 != null)
57 {
59 Asset<SoundEffect> asset8 = this.Load("Sounds/Thunder_1");
60 if (asset8 == null || asset8 != null)
61 {
63 Asset<SoundEffect> asset9 = this.Load("Sounds/Thunder_2");
64 if (asset9 == null || asset9 != null)
65 {
67 Asset<SoundEffect> asset10 = this.Load("Sounds/Thunder_3");
68 if (asset10 == null || asset10 != null)
69 {
71 Asset<SoundEffect> asset11 = this.Load("Sounds/Thunder_4");
72 if (asset11 == null || asset11 != null)
73 {
75 Asset<SoundEffect> asset12 = this.Load("Sounds/Thunder_5");
76 if (asset12 == null || asset12 != null)
77 {
79 Asset<SoundEffect> asset13 = this.Load("Sounds/Thunder_6");
80 if (asset13 == null || asset13 != null)
81 {
83 Asset<SoundEffect> asset14 = this.Load("Sounds/Research_0");
84 if (asset14 == null || asset14 != null)
85 {
87 Asset<SoundEffect> asset15 = this.Load("Sounds/Research_1");
88 if (asset15 == null || asset15 != null)
89 {
91 Asset<SoundEffect> asset16 = this.Load("Sounds/Research_2");
92 if (asset16 == null || asset16 != null)
93 {
95 Asset<SoundEffect> asset17 = this.Load("Sounds/Research_3");
96 if (asset17 == null || asset17 != null)
97 {
99 Asset<SoundEffect> asset18 = this.Load("Sounds/Tink_0");
100 if (asset18 == null || asset18 != null)
101 {
103 Asset<SoundEffect> asset19 = this.Load("Sounds/Tink_1");
104 if (asset19 == null || asset19 != null)
105 {
107 Asset<SoundEffect> asset20 = this.Load("Sounds/Tink_2");
108 if (asset20 == null || asset20 != null)
109 {
111 Asset<SoundEffect> asset21 = this.Load("Sounds/Player_Hit_0");
112 if (asset21 == null || asset21 != null)
113 {
115 Asset<SoundEffect> asset22 = this.Load("Sounds/Player_Hit_1");
116 if (asset22 == null || asset22 != null)
117 {
119 Asset<SoundEffect> asset23 = this.Load("Sounds/Player_Hit_2");
120 if (asset23 == null || asset23 != null)
121 {
123 Asset<SoundEffect> asset24 = this.Load("Sounds/Female_Hit_0");
124 if (asset24 == null || asset24 != null)
125 {
127 Asset<SoundEffect> asset25 = this.Load("Sounds/Female_Hit_1");
128 if (asset25 == null || asset25 != null)
129 {
131 Asset<SoundEffect> asset26 = this.Load("Sounds/Female_Hit_2");
132 if (asset26 == null || asset26 != null)
133 {
134 Asset<SoundEffect> asset27 = this.Load("Sounds/Player_Killed");
136 Asset<SoundEffect> asset28 = this.Load("Sounds/Chat");
138 Asset<SoundEffect> asset29 = this.Load("Sounds/Grass");
140 Asset<SoundEffect> asset30 = this.Load("Sounds/Door_Opened");
142 Asset<SoundEffect> asset31 = this.Load("Sounds/Door_Closed");
144 Asset<SoundEffect> asset32 = this.Load("Sounds/Menu_Tick");
146 Asset<SoundEffect> asset33 = this.Load("Sounds/Menu_Open");
148 Asset<SoundEffect> asset34 = this.Load("Sounds/Menu_Close");
150 Asset<SoundEffect> asset35 = this.Load("Sounds/Shatter");
152 Asset<SoundEffect> asset36 = this.Load("Sounds/Camera");
155 string text2;
156 string text = "Sounds/Coin_" + text2;
157 Asset<SoundEffect> asset37 = this.Load(text);
158 if (asset37 == null || asset37 != null)
159 {
162 string text4;
163 string text3 = "Sounds/Drip_" + text4;
164 Asset<SoundEffect> asset38 = this.Load(text3);
165 if (asset38 == null || asset38 != null)
166 {
169 string text6;
170 string text5 = "Sounds/Zombie_" + text6;
171 Asset<SoundEffect> asset39 = this.Load(text5);
172 if (asset39 == null || asset39 != null)
173 {
176 string text8;
177 string text7 = "Sounds/Liquid_" + text8;
178 Asset<SoundEffect> asset40 = this.Load(text7);
179 if (asset40 == null || asset40 != null)
180 {
183 string text10;
184 string text9 = "Sounds/Roar_" + text10;
185 Asset<SoundEffect> asset41 = this.Load(text9);
186 if (asset41 == null || asset41 != null)
187 {
189 string text12;
190 string text11 = "Sounds/Splash_" + text12;
191 Asset<SoundEffect> asset42 = this.Load(text11);
192 if (asset42 == null || asset42 != null)
193 {
195 Asset<SoundEffect> asset43 = this.Load("Sounds/Double_Jump");
197 Asset<SoundEffect> asset44 = this.Load("Sounds/Run");
199 Asset<SoundEffect> asset45 = this.Load("Sounds/Coins");
201 Asset<SoundEffect> asset46 = this.Load("Sounds/Unlock");
203 Asset<SoundEffect> asset47 = this.Load("Sounds/MaxMana");
205 Asset<SoundEffect> asset48 = this.Load("Sounds/Drown");
208 string text14;
209 string text13 = "Sounds/Item_" + text14;
210 Asset<SoundEffect> asset49 = this.Load(text13);
211 if (asset49 == null || asset49 != null)
212 {
215 string text16;
216 string text15 = "Sounds/NPC_Hit_" + text16;
217 Asset<SoundEffect> asset50 = this.Load(text15);
218 if (asset50 == null || asset50 != null)
219 {
222 string text18;
223 string text17 = "Sounds/NPC_Killed_" + text18;
224 Asset<SoundEffect> asset51 = this.Load(text17);
225 if (asset51 == null || asset51 != null)
226 {
231 string text20;
232 string text19 = "Sounds/Custom" + text20 + trackableLegacySoundPath;
233 Asset<SoundEffect> asset52 = this.Load(text19);
234 if (asset52 == null || asset52 != null)
235 {
237 return;
238 }
239 }
240 }
241 }
242 }
243 }
244 }
245 }
246 }
247 }
248 }
249 }
250 }
251 }
252 }
253 }
254 }
255 }
256 }
257 }
258 }
259 }
260 }
261 }
262 }
263 }
264 }
265 }
266 }
267 }
268 }
269 }
270 }
271 }
272 throw new ArrayTypeMismatchException();
273 }
274
275 // Token: 0x060037E1 RID: 14305 RVA: 0x000021DB File Offset: 0x000003DB
277 {
278 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
279 }
280
281 // Token: 0x060037E2 RID: 14306 RVA: 0x000021DB File Offset: 0x000003DB
283 {
284 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
285 }
286
287 // Token: 0x060037E3 RID: 14307 RVA: 0x00222FD4 File Offset: 0x002211D4
289 {
290 /*
291An exception occurred when decompiling this method (060037E3)
292
293ICSharpCode.Decompiler.DecompilerException: Error decompiling ReLogic.Content.Asset`1<Microsoft.Xna.Framework.Audio.SoundEffect> Terraria.Audio.LegacySoundPlayer::Load(System.String)
294
295 ---> System.Exception: Basic block has to end with unconditional control flow.
296{
297 Block_0:
298 stloc:IAssetRepository(var_0_0B, call:IAssetRepository(XnaExtensions::Get, ldfld:IServiceProvider(LegacySoundPlayer::_services, ldloc:LegacySoundPlayer(this))))
299}
300
301 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
302 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
303 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
304 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
305 --- End of inner exception stack trace ---
306 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
307 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
308*/;
309 }
310
311 // Token: 0x060037E4 RID: 14308 RVA: 0x00222FEC File Offset: 0x002211EC
312 public SoundEffectInstance PlaySound(int type, int x = -1, int y = -1, int Style = 1, float volumeScale = 1f, float pitchOffset = 0f)
313 {
314 int num = 1;
315 if (num == 0)
316 {
317 }
318 if (num == 0)
319 {
320 if (num == 0)
321 {
322 }
323 float soundVolume = Main.soundVolume;
324 int num2 = 1;
325 if (num2 == 0)
326 {
327 }
328 if (num2 == 0)
329 {
330 }
332 if (num2 == 0)
333 {
334 }
335 Vector2 screenPosition = Main.screenPosition;
336 int screenWidth = Main.screenWidth;
338 int screenHeight = Main.screenHeight;
339 if (!false)
340 {
341 }
342 int num3 = 1;
343 long num4 = 49152L;
344 if (num3 == 0)
345 {
346 }
347 float ambientVolume = Main.ambientVolume;
348 if (num4 == 0L)
349 {
350 }
351 bool gameMenu = Main.gameMenu;
352 int num5 = 1;
353 long num6 = 1904L;
354 if (num5 == 0)
355 {
356 }
361 if (soundEffectInstance != null && soundEffectInstance == null)
362 {
363 goto IL_17A3;
364 }
365 float volume = this.SoundInstanceDrip._volume;
366 float volume2 = this.SoundInstanceDrip._volume;
367 float volume3 = this.SoundInstanceDrip._volume;
368 if (num6 == 0L)
369 {
370 }
372 int digLastFrame = this._digLastFrame;
373 if (num6 == 0L)
374 {
375 }
376 if (this.SoundDigPlayCount == null)
377 {
378 }
380 float volume4 = this.SoundInstanceDig._volume;
381 if (volume4 != null)
382 {
383 if (volume4 == null)
384 {
385 goto IL_14D2;
386 }
387 if (this.SoundInstanceDig._volume != null)
388 {
390 if (!true)
391 {
392 }
394 int num7;
395 if (num7 != 0)
396 {
397 if (num7 == 0)
398 {
399 goto IL_1756;
400 }
402 }
405 if (soundEffectInstance2 != null && soundEffectInstance2 == null)
406 {
407 throw new ArrayTypeMismatchException();
408 }
412 float volume7 = soundInstanceZombie3._volume;
413 if (num6 == 0L)
414 {
415 }
417 float volume8 = soundInstanceZombie3._volume;
418 if (volume8 != null)
419 {
420 if (volume8 == null)
421 {
422 goto IL_1756;
423 }
425 }
428 if (soundEffectInstance3 != null && soundEffectInstance3 == null)
429 {
430 throw new ArrayTypeMismatchException();
431 }
435 if (num6 == 0L)
436 {
437 }
439 if (this.SoundInstanceResearch._volume != null)
440 {
441 soundInstanceResearch = this.SoundInstanceResearch;
442 }
445 if (soundEffectInstance4 != null && soundEffectInstance4 == null)
446 {
447 throw new ArrayTypeMismatchException();
448 }
453 if (soundInstanceResearch2 == null)
454 {
455 }
457 if (soundInstanceResearch2._volume != null)
458 {
460 }
463 if (soundEffectInstance5 != null && soundEffectInstance5 == null)
464 {
465 throw new ArrayTypeMismatchException();
466 }
471 if (volume15 != null)
472 {
473 if (volume15 == null)
474 {
475 goto IL_1756;
476 }
478 }
481 if (soundEffectInstance6 == null || soundEffectInstance6 != null)
482 {
484 soundEffectInstance6.Volume = pitchOffset;
486 soundEffectInstance6.Pan = pitchOffset;
488 if (num6 == 0L)
489 {
490 }
491 soundEffectInstance6.Pitch = pitchOffset;
494 }
495 throw new ArrayTypeMismatchException();
496 }
497 }
500 if (array._volume != null)
501 {
503 }
506 if (soundEffectInstance7 != null && soundEffectInstance7 == null)
507 {
508 throw new ArrayTypeMismatchException();
509 }
513 int num8;
514 if (num8 == 0)
515 {
516 }
518 long num9;
519 if (volume19 != null)
520 {
521 if (volume19 != null)
522 {
523 if (this.SoundInstanceItem._volume != null)
524 {
525 }
526 }
527 else
528 {
530 float volume20 = array2._volume;
531 float volume21 = array2._volume;
532 float volume22 = array2._volume;
533 if (num8 == 0)
534 {
535 }
536 if (num8 == 0)
537 {
538 }
539 if (num8 == 0)
540 {
541 }
542 if (num8 == 0)
543 {
544 }
545 if (num8 == 0)
546 {
547 }
548 if (num8 == 0)
549 {
550 }
551 num9 = 1024L;
552 if (num9 == 0L)
553 {
554 }
556 if (soundEffectInstance8 == null || soundEffectInstance8 != null)
557 {
558 soundEffectInstance8.Volume = pitchOffset;
559 soundEffectInstance8.Pan = pitchOffset;
560 if (num9 == 0L)
561 {
562 }
563 soundEffectInstance8.Pitch = pitchOffset;
564 goto IL_14D2;
565 }
566 throw new ArrayTypeMismatchException();
567 }
568 }
572 if (soundEffectInstance9 == null || soundEffectInstance9 != null)
573 {
575 }
576 throw new ArrayTypeMismatchException();
577 IL_14D2:
579 if (soundEffectInstance10 != null && soundEffectInstance10 == null)
580 {
581 throw new ArrayTypeMismatchException();
582 }
583 if (num9 == 0L)
584 {
585 }
587 if (soundEffectInstance11 != null && soundEffectInstance11 == null)
588 {
589 throw new ArrayTypeMismatchException();
590 }
591 if (num9 == 0L)
592 {
593 }
595 if (soundEffectInstance12 == null || soundEffectInstance12 != null)
596 {
597 soundEffectInstance12.Volume = pitchOffset;
598 soundEffectInstance12.Pan = pitchOffset;
600 }
601 throw new ArrayTypeMismatchException();
602 }
603 IL_1756:
605 DateTime finishTime = soundEffectInstance13._playingInstance.FinishTime;
606 DateTime finishTime2 = soundEffectInstance13._playingInstance.FinishTime;
607 bool fading = soundEffectInstance13._playingInstance._fading;
608 bool fading2 = soundEffectInstance13._playingInstance._fading;
609 IL_17A3:
610 throw new ArrayTypeMismatchException();
611 }
612
613 // Token: 0x060037E5 RID: 14309 RVA: 0x00224890 File Offset: 0x00222A90
615 {
616 /*
617An exception occurred when decompiling this method (060037E5)
618
619ICSharpCode.Decompiler.DecompilerException: Error decompiling Microsoft.Xna.Framework.Audio.SoundEffect Terraria.Audio.LegacySoundPlayer::GetTrackableSoundByStyleId(System.Int32)
620
621 ---> System.Exception: Basic block has to end with unconditional control flow.
622{
623 Block_0:
624 stloc:class ReLogic.Content.Asset`1<class Microsoft.Xna.Framework.Audio.SoundEffect>[](var_0_06, ldfld:class ReLogic.Content.Asset`1<class Microsoft.Xna.Framework.Audio.SoundEffect>[](LegacySoundPlayer::TrackableSounds, ldloc:LegacySoundPlayer(this)))
625}
626
627 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
628 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
629 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
630 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
631 --- End of inner exception stack trace ---
632 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
633 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
634*/;
635 }
636
637 // Token: 0x060037E6 RID: 14310 RVA: 0x002248A4 File Offset: 0x00222AA4
638 public void StopAmbientSounds()
639 {
640 bool loop = this.SoundInstanceLiquid._loop;
641 if (this != null)
642 {
644 }
645 }
646
647 // Token: 0x060037E7 RID: 14311 RVA: 0x000021DB File Offset: 0x000003DB
649 {
650 throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
651 }
652
653 // Token: 0x040078B4 RID: 30900
655
656 // Token: 0x040078B5 RID: 30901
658
659 // Token: 0x040078B6 RID: 30902
661
662 // Token: 0x040078B7 RID: 30903
664
665 // Token: 0x040078B8 RID: 30904
667
668 // Token: 0x040078B9 RID: 30905
670
671 // Token: 0x040078BA RID: 30906
673
674 // Token: 0x040078BB RID: 30907
676
677 // Token: 0x040078BC RID: 30908
678 private int _digLastFrame = 1;
679
680 // Token: 0x040078BD RID: 30909
681 public int[] SoundDigPlayCount;
682
683 // Token: 0x040078BE RID: 30910
685
686 // Token: 0x040078BF RID: 30911
688
689 // Token: 0x040078C0 RID: 30912
691
692 // Token: 0x040078C1 RID: 30913
694
695 // Token: 0x040078C2 RID: 30914
697
698 // Token: 0x040078C3 RID: 30915
700
701 // Token: 0x040078C4 RID: 30916
703
704 // Token: 0x040078C5 RID: 30917
706
707 // Token: 0x040078C6 RID: 30918
709
710 // Token: 0x040078C7 RID: 30919
712
713 // Token: 0x040078C8 RID: 30920
715
716 // Token: 0x040078C9 RID: 30921
718
719 // Token: 0x040078CA RID: 30922
721
722 // Token: 0x040078CB RID: 30923
724
725 // Token: 0x040078CC RID: 30924
727
728 // Token: 0x040078CD RID: 30925
730
731 // Token: 0x040078CE RID: 30926
733
734 // Token: 0x040078CF RID: 30927
736
737 // Token: 0x040078D0 RID: 30928
739
740 // Token: 0x040078D1 RID: 30929
742
743 // Token: 0x040078D2 RID: 30930
745
746 // Token: 0x040078D3 RID: 30931
748
749 // Token: 0x040078D4 RID: 30932
751
752 // Token: 0x040078D5 RID: 30933
754
755 // Token: 0x040078D6 RID: 30934
757
758 // Token: 0x040078D7 RID: 30935
760
761 // Token: 0x040078D8 RID: 30936
763
764 // Token: 0x040078D9 RID: 30937
766
767 // Token: 0x040078DA RID: 30938
769
770 // Token: 0x040078DB RID: 30939
772
773 // Token: 0x040078DC RID: 30940
775
776 // Token: 0x040078DD RID: 30941
778
779 // Token: 0x040078DE RID: 30942
781
782 // Token: 0x040078DF RID: 30943
784
785 // Token: 0x040078E0 RID: 30944
787
788 // Token: 0x040078E1 RID: 30945
790
791 // Token: 0x040078E2 RID: 30946
793
794 // Token: 0x040078E3 RID: 30947
796
797 // Token: 0x040078E4 RID: 30948
799
800 // Token: 0x040078E5 RID: 30949
802
803 // Token: 0x040078E6 RID: 30950
805
806 // Token: 0x040078E7 RID: 30951
808
809 // Token: 0x040078E8 RID: 30952
811
812 // Token: 0x040078E9 RID: 30953
814
815 // Token: 0x040078EA RID: 30954
817
818 // Token: 0x040078EB RID: 30955
820
821 // Token: 0x040078EC RID: 30956
823
824 // Token: 0x040078ED RID: 30957
826
827 // Token: 0x040078EE RID: 30958
829
830 // Token: 0x040078EF RID: 30959
832
833 // Token: 0x040078F0 RID: 30960
835
836 // Token: 0x040078F1 RID: 30961
838
839 // Token: 0x040078F2 RID: 30962
841
842 // Token: 0x040078F3 RID: 30963
844
845 // Token: 0x040078F4 RID: 30964
847
848 // Token: 0x040078F5 RID: 30965
850
851 // Token: 0x040078F6 RID: 30966
853
854 // Token: 0x040078F7 RID: 30967
856
857 // Token: 0x040078F8 RID: 30968
859
860 // Token: 0x040078F9 RID: 30969
862
863 // Token: 0x040078FA RID: 30970
865
866 // Token: 0x040078FB RID: 30971
868
869 // Token: 0x040078FC RID: 30972
871
872 // Token: 0x040078FD RID: 30973
874
875 // Token: 0x040078FE RID: 30974
877 }
878}
class f__AnonymousType0<< Count > j__TPar
SoundEffectInstance SoundInstanceMenuOpen
SoundEffectInstance[] SoundInstanceThunder
SoundEffectInstance[] SoundInstanceNpcHit
List< SoundEffectInstance > _trackedInstances
SoundEffectInstance[] SoundInstanceSplash
SoundEffect GetTrackableSoundByStyleId(int id)
SoundEffectInstance SoundInstanceMoonlordCry
SoundEffectInstance[] SoundInstancePlayerHit
Asset< SoundEffect > Load(string assetName)
Asset< SoundEffect >[] TrackableSounds
SoundEffectInstance SoundInstanceMenuClose
SoundEffectInstance[] SoundInstanceDig
Asset< SoundEffect >[] SoundThunder
SoundEffectInstance[] SoundInstanceDrip
bool DoesSoundScaleWithAmbientVolume(int soundType)
SoundEffectInstance SoundInstanceDoorClosed
readonly IServiceProvider _services
SoundEffectInstance[] SoundInstanceCoin
SoundEffectInstance[] SoundInstanceZombie
Asset< SoundEffect >[] SoundResearch
SoundEffectInstance[] SoundInstanceMech
LegacySoundPlayer(IServiceProvider services)
SoundEffectInstance SoundInstanceDoorOpen
SoundEffectInstance SoundInstanceMenuTick
Asset< SoundEffect >[] SoundNpcKilled
SoundEffectInstance CreateInstance(Asset< SoundEffect > asset)
SoundEffectInstance PlaySound(int type, int x=-1, int y=-1, int Style=1, float volumeScale=1f, float pitchOffset=0f)
SoundEffectInstance[] SoundInstanceItem
SoundEffectInstance[] SoundInstanceNpcKilled
SoundEffectInstance[] SoundInstanceResearch
SoundEffectInstance[] SoundInstanceLiquid
SoundEffectInstance SoundInstanceDoubleJump
SoundEffectInstance SoundInstancePlayerKilled
SoundEffectInstance[] SoundInstanceRoar
Asset< SoundEffect >[] SoundPlayerHit
SoundEffectInstance[] TrackableSoundInstances
Asset< SoundEffect >[] SoundFemaleHit
SoundEffectInstance[] SoundInstanceFemaleHit
SoundEffectInstance[] SoundInstanceTink
static string GetTrackableLegacySoundPath(int id)
Definition SoundID.cs:44
static int TrackableLegacySoundCount
Definition SoundID.cs:15
static bool NetHostOnly
Definition Main.cs:5482
static float ambientVolume
Definition Main.cs:1847
static Microsoft.Xna.Framework.Vector2 screenPosition
Definition Main.cs:1973
static int screenHeight
Definition Main.cs:2015
static int screenWidth
Definition Main.cs:2001
static bool gameMenu
Definition Main.cs:2673
static float soundVolume
Definition Main.cs:1861