DeckStacker v1.0
A card manager plugin for Unity games.
 
Loading...
Searching...
No Matches
DeckStacker.DSCardData Class Reference

Data Fields

DSSuit suit = DSSuit.None
 
int rank = 0
 
int value = 0
 

Detailed Description

This script keeps game specific data for a card.

Data provided in this script is related to traditional playing cards.

If your game requires more, either add it to this script or just remake it in your image.

Field Documentation

◆ rank

int DeckStacker.DSCardData.rank = 0

Stores the rank value of the associated card.

Rank = the number of the card.
Face cards are defined as:

  • Jack = 11
  • Queen = 12
  • King = 13
  • Ace = 14

◆ suit

DSSuit DeckStacker.DSCardData.suit = DSSuit.None

Stores the suit of the associated card.

◆ value

int DeckStacker.DSCardData.value = 0

Value is not used in DeckStacker, explicitly, but is here as a generic placeholder for a value that is independent of rank.


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