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

Static Public Member Functions

static void RemoveCardFromRegistry (DSCard removeCard_)
 
static DSCard Get_Card_By_Name (string cardName)
 
static void ClearAllStaticLists ()
 
static void DeselectAll ()
 
static void ReturnAllCardsToPool ()
 

Static Public Attributes

static List< DSCardallCards = new List<DSCard>()
 
static List< DSCardselectedCards = new List<DSCard>()
 
static List< DSStackallStacks = new List<DSStack>()
 

Detailed Description

This script contians globally visible information relating to stacks and cards.

Member Function Documentation

◆ ClearAllStaticLists()

static void DeckStacker.DSRegistry.ClearAllStaticLists ( )
inlinestatic

Clears all lists in static DeckStacker scripts.

This is needed when you are clearing a "level" from the scene, or some similar "clear the table" operation.
You will need to make sure there isn't any lingering data that is hanging out, that will corrupt the next level you load.

◆ DeselectAll()

static void DeckStacker.DSRegistry.DeselectAll ( )
inlinestatic

Toggles all selectedCards to false.

◆ Get_Card_By_Name()

static DSCard DeckStacker.DSRegistry.Get_Card_By_Name ( string cardName)
inlinestatic

Returns the DSCard that has a matching Transform.name.
Note that this will return the first card that matches the name, so be sure that cards have unique names if you want to leverage this method, properly.

◆ RemoveCardFromRegistry()

static void DeckStacker.DSRegistry.RemoveCardFromRegistry ( DSCard removeCard_)
inlinestatic

Safely removes a card from the lists in DSRegistry.

◆ ReturnAllCardsToPool()

static void DeckStacker.DSRegistry.ReturnAllCardsToPool ( )
inlinestatic

Sends all cards back to their respective pools. This should basically be used when clearing a table / level.

Field Documentation

◆ allCards

List<DSCard> DeckStacker.DSRegistry.allCards = new List<DSCard>()
static

Each card pull from a card pool is added to allCards.
Cards that are held in a card pool are not reflected in this list, so this represents all active cards on the table.

◆ allStacks

List<DSStack> DeckStacker.DSRegistry.allStacks = new List<DSStack>()
static

Each stack is added to allStacks.

◆ selectedCards

List<DSCard> DeckStacker.DSRegistry.selectedCards = new List<DSCard>()
static

This list is a record of any card that is marked as "selected".
When a card is toggled to "selected", it is added to this list.


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