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

◆ PlayLiquidChangeSound()

static void Terraria.WorldGen.PlayLiquidChangeSound ( TileChangeType eventType,
int x,
int y,
int count = 1 )
inlinestatic

Definition at line 1668 of file WorldGen.cs.

1669 {
1670 switch (eventType)
1671 {
1672 case TileChangeType.LavaWater:
1673 SoundEngine.PlaySound(SoundID.LiquidsWaterLava, x * 16 + count * 8, y * 16 + count * 8);
1674 break;
1675 case TileChangeType.HoneyWater:
1676 SoundEngine.PlaySound(SoundID.LiquidsHoneyWater, x * 16 + count * 8, y * 16 + count * 8);
1677 break;
1678 case TileChangeType.HoneyLava:
1679 SoundEngine.PlaySound(SoundID.LiquidsHoneyLava, x * 16 + count * 8, y * 16 + count * 8);
1680 break;
1681 case TileChangeType.ShimmerWater:
1682 SoundEngine.PlaySound(19, x * 16 + count * 8, y * 16 + count * 8, 4);
1683 break;
1684 case TileChangeType.ShimmerLava:
1685 SoundEngine.PlaySound(19, x * 16 + count * 8, y * 16 + count * 8, 4);
1686 break;
1687 case TileChangeType.ShimmerHoney:
1688 SoundEngine.PlaySound(19, x * 16 + count * 8, y * 16 + count * 8, 4);
1689 break;
1690 }
1691 }
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 readonly SoundStyle LiquidsHoneyLava
Definition SoundID.cs:55
static readonly SoundStyle LiquidsHoneyWater
Definition SoundID.cs:53
static readonly SoundStyle LiquidsWaterLava
Definition SoundID.cs:57

References Terraria.ID.SoundID.LiquidsHoneyLava, Terraria.ID.SoundID.LiquidsHoneyWater, Terraria.ID.SoundID.LiquidsWaterLava, and Terraria.Audio.SoundEngine.PlaySound().

Referenced by Terraria.Liquid.LiquidCheck(), and Terraria.Main.OnTileChangeEvent().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: