|
80 | 80 | ---@field state any Current game state enum value |
81 | 81 | ---@field game? GGame Game information (null if not in game) |
82 | 82 | ---@field hand? GHand Hand information (null if not available) |
83 | | ----@field jokers GJokersCards[] Array of joker cards |
| 83 | +---@field jokers GJokers Jokers area object (with sub-field `cards`) |
| 84 | +---@field consumeables GConsumeables Consumables area object (typo intentional to match API) |
84 | 85 |
|
85 | 86 | -- Game state (G.GAME) |
86 | 87 | ---@class GGame |
|
206 | 207 | ---@field suit string Card suit |
207 | 208 | ---@field value string Card value |
208 | 209 |
|
| 210 | +---@class GCardAreaConfig |
| 211 | +---@field card_count number Number of cards currently present in the area |
| 212 | +---@field card_limit number Maximum cards allowed in the area |
| 213 | + |
| 214 | +---@class GJokers |
| 215 | +---@field config GCardAreaConfig Config for jokers card area |
| 216 | +---@field cards GJokersCard[] Array of joker card objects |
| 217 | + |
| 218 | +-- Keeping typo "consumeables" for compatibility with the runtime table name |
| 219 | +---@class GConsumeables |
| 220 | +---@field config GCardAreaConfig Configuration for the consumables slot |
| 221 | + |
209 | 222 | -- Joker card (G.jokers.cards[]) |
210 | | ----@class GJokersCards |
| 223 | +---@class GJokersCard |
211 | 224 | ---@field label string Display label of the joker |
212 | | ----@field config GJokersCardsConfig Joker configuration |
| 225 | +---@field cost number Purchase cost of the joker |
| 226 | +---@field config GJokersCardConfig Joker card configuration |
213 | 227 |
|
214 | 228 | -- Joker card configuration (G.jokers.cards[].config) |
215 | | ----@class GJokersCardsConfig |
| 229 | +---@class GJokersCardConfig |
216 | 230 | ---@field center table Center configuration for joker |
217 | | ----@field card_count number Number of cards in joker area |
218 | | ----@field card_limit number Maximum number of cards in joker area |
| 231 | + |
| 232 | +-- Consumable card (G.consumeables.cards[]) |
| 233 | +---@class GConsumablesCard |
| 234 | +---@field label string Display label of the consumable |
| 235 | +---@field cost number Purchase cost of the consumable |
| 236 | +---@field config GConsumablesCardConfig Consumable configuration |
| 237 | + |
| 238 | +-- Consumable card configuration (G.consumeables.cards[].config) |
| 239 | +---@class GConsumablesCardConfig |
| 240 | +---@field center table Center configuration for consumable |
219 | 241 |
|
220 | 242 | -- ============================================================================= |
221 | 243 | -- Utility Module (implemented in utils.lua) |
|
264 | 286 | ---@field dt number Tells the game that every update is dt seconds long |
265 | 287 | ---@field max_fps integer? Maximum frames per second |
266 | 288 | ---@field vsync_enabled boolean Whether vertical sync is enabled |
| 289 | + |
| 290 | +-- ============================================================================= |
| 291 | +-- New composite area types (match utils.lua) |
| 292 | +-- ============================================================================= |
| 293 | + |
0 commit comments