Terraria v1.4.4.9
Terraria 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 1424 of file WorldGen.cs.

1425 {
1426 switch (eventType)
1427 {
1428 case TileChangeType.LavaWater:
1429 SoundEngine.PlaySound(SoundID.LiquidsWaterLava, x * 16 + count * 8, y * 16 + count * 8);
1430 break;
1431 case TileChangeType.HoneyWater:
1432 SoundEngine.PlaySound(SoundID.LiquidsHoneyWater, x * 16 + count * 8, y * 16 + count * 8);
1433 break;
1434 case TileChangeType.HoneyLava:
1435 SoundEngine.PlaySound(SoundID.LiquidsHoneyLava, x * 16 + count * 8, y * 16 + count * 8);
1436 break;
1437 case TileChangeType.ShimmerWater:
1438 SoundEngine.PlaySound(19, x * 16 + count * 8, y * 16 + count * 8, 4);
1439 break;
1440 case TileChangeType.ShimmerLava:
1441 SoundEngine.PlaySound(19, x * 16 + count * 8, y * 16 + count * 8, 4);
1442 break;
1443 case TileChangeType.ShimmerHoney:
1444 SoundEngine.PlaySound(19, x * 16 + count * 8, y * 16 + count * 8, 4);
1445 break;
1446 }
1447 }
static void PlaySound(int type, Vector2 position, int style=1)
static readonly LegacySoundStyle LiquidsHoneyWater
Definition SoundID.cs:782
static readonly LegacySoundStyle LiquidsWaterLava
Definition SoundID.cs:786
static readonly LegacySoundStyle LiquidsHoneyLava
Definition SoundID.cs:784

References System.count, 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().