Framework/Audio/TableSound.cs

An enum defining table-related sound events used by the game's audio system. It lists named moments like CardDraw, CardPickup, CardDrop, Bet, Win, Loss, and Push that map to actual SoundEvent assets elsewhere.

namespace CardGames;

/// <summary>
/// The set of table moments a sound can be hooked to. A <see cref="GameSounds"/> component maps each
/// of these to a <see cref="Sandbox.SoundEvent"/>; game code fires them via
/// <see cref="CardGame.PlaySound"/> (heard by everyone) or <see cref="CardGame.PlaySoundForSeat"/>
/// (heard only by the affected player, for personal win/loss/push results).
/// </summary>
public enum TableSound
{
	CardDraw,   // a card is dealt/drawn onto the table
	CardPickup, // the player grabs a card to start a drag
	CardDrop,   // the player releases a dragged card
	Bet,        // chips committed to a wager
	Win,        // this player won the round
	Loss,       // this player lost the round
	Push        // this player tied (no win, no loss)
}