CardGame
Rogue-like card videogame
Loading...
Searching...
No Matches
DeckEntry Struct Reference

Represents a single card entry in the player's persistent deck. More...

#include <deckEntry.h>

Collaboration diagram for DeckEntry:

Public Attributes

std::string cardId
 Identifier matching a CardDefinition.
 
int cardCount
 Number of copies owned.
 

Detailed Description

Represents a single card entry in the player's persistent deck.

Each entry stores:

  • The card's ID (matches a CardDefinition ID)
  • The number of copies the player owns

Used for saving, loading, and modifying the player's deck outside of combat.

Member Data Documentation

◆ cardCount

int DeckEntry::cardCount

Number of copies owned.

◆ cardId

std::string DeckEntry::cardId

Identifier matching a CardDefinition.


The documentation for this struct was generated from the following file: