Card game utilities: MVP (Model, View, Presenter), deck/hand/board components, poker combinations, and sample games (e.g. Drunkard). Scripts in Scripts/Cards/. Full documentation is in Russian; key entry points below.
| Page | Description |
|---|---|
| CardData | Core card value type and comparison helpers |
| DeckConfig | Deck visuals, generation rules, and validation |
| CardComponent | Scene-facing card component, interaction, and animation |
| Cards README | Full Russian module documentation |
Cards are no longer limited to 36/52/54-card decks. Use CardData.CreateCustom(...) for TCG, deckbuilder, board-game, ability, or item cards. DeckConfig can generate a custom deck from Custom Cards, while DeckModel.Initialize(IEnumerable<CardData>) still accepts any explicit card list.
CardComponent, CardView, and CardViewUniversal can also run without a DeckConfig by calling SetSpriteOverrides(faceSprite, backSprite). This keeps the card view reusable in standalone card projects where card identity, rules, and art come from another data model.
BoardComponent exposes MaxCards, FaceUp, CanPlaceCard(...), SetCapacity(...), and SetFaceUp(...) so one board component can support table rows, lanes, discard piles, market rows, or custom TCG zones.
- Cards README — quick start, layout types, card comparison, dependencies
| Page | Description |
|---|---|
| CardData | Card data structure |
| DeckConfig | Deck configuration (36/52/54) |
| CardComponent | Card component |
| DeckComponent | Deck component |
| HandComponent | Hand component |
| BoardComponent | Board component |
| View (CardView, DeckView, HandView) | MVP view layer |
| Poker | Poker combinations and rules |
| Drunkard example | DrunkardGame sample |