Functions§
- build_
registry - Build a card registry from card definitions without validation
- build_
validated_ registry - Build a card registry from card definitions with ruleset validation This validates that cards only reference keywords defined in the ruleset
- card_
has_ keyword - Check if a card has a specific keyword
- generate_
ability_ commands - Generate commands from a card’s abilities when an event matches a trigger
- get_
card - Get a card definition by ID
- get_
card_ stat - Get a card’s stat value by key
- get_
card_ stat_ i32 - Get a card’s stat as an integer
- parse_
card_ stat_ i32 - Get a card’s stat as an integer, returning Result for better error handling
Type Aliases§
- Card
Registry - Maps card IDs to their definitions for O(1) lookup during gameplay