shoehive
Version:
WebSocket-based multiplayer game framework for real-time, event-driven gameplay
36 lines (35 loc) • 1.27 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.TABLE_EVENTS = void 0;
/**
* Table events
*
* This is a comprehensive list of all events that can be emitted by the Table class.
*
* You can use these events to listen for changes in the table state, or to trigger actions based on table events.
*/
exports.TABLE_EVENTS = {
// Table creation events
CREATED: "table:created",
EMPTY: "table:empty",
// Table state events
STATE_UPDATED: "table:state:updated",
ATTRIBUTE_CHANGED: "table:attribute:changed",
ATTRIBUTES_CHANGED: "table:attributes:changed",
// Player-related table events
PLAYER_JOINED: "table:player:joined",
PLAYER_LEFT: "table:player:left",
PLAYER_SAT: "table:player:sat",
PLAYER_STOOD: "table:player:stood",
// Deck-related table events
DECK_CREATED: "table:deck:created",
DECK_SHUFFLED: "table:deck:shuffled",
DECK_CARD_DRAWN: "table:deck:card:drawn",
// Card-related table events
CARD_DEALT: "table:card:dealt",
// Hand-related table events
SEAT_HAND_ADDED: "table:seat:hand:added",
SEAT_HAND_REMOVED: "table:seat:hand:removed",
SEAT_HAND_CLEARED: "table:seat:hand:cleared",
SEATS_HANDS_CLEARED: "table:seats:hands:cleared"
};