TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ KillWall_PlaySounds()

static void Terraria.WorldGen.KillWall_PlaySounds ( int i,
int j,
Tile tileCache,
bool fail = false )
inlinestaticprivate

Definition at line 54753 of file WorldGen.cs.

54754 {
54755 if (WallLoader.KillSound(i, j, tileCache.wall, fail))
54756 {
54757 if (tileCache.wall == 241 || (tileCache.wall >= 88 && tileCache.wall <= 93) || tileCache.wall == 21 || tileCache.wall == 186 || tileCache.wall == 136 || tileCache.wall == 137 || tileCache.wall == 168 || tileCache.wall == 169 || tileCache.wall == 172 || tileCache.wall == 226 || tileCache.wall == 227 || tileCache.wall == 242 || tileCache.wall == 243)
54758 {
54759 SoundEngine.PlaySound(13, i * 16, j * 16);
54760 }
54761 else if ((tileCache.wall >= 63 && tileCache.wall <= 70) || tileCache.wall == 264 || tileCache.wall == 268 || tileCache.wall == 265)
54762 {
54763 SoundEngine.PlaySound(6, i * 16, j * 16);
54764 }
54765 else
54766 {
54767 SoundEngine.PlaySound(0, i * 16, j * 16);
54768 }
54769 }
54770 }
static SlotId PlaySound(in SoundStyle? style, Vector2? position=null, SoundUpdateCallback? updateCallback=null)
Attempts to play a sound style with the provided sound style (if it's not null), and returns a valid ...
static bool KillSound(int i, int j, int type, bool fail)
This serves as the central class from which wall-related functions are supported and carried out.
Definition WallLoader.cs:17

References Terraria.ModLoader.WallLoader.KillSound(), Terraria.Audio.SoundEngine.PlaySound(), and Terraria.Tile.wall.

+ Here is the call graph for this function: