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< DSCard > | allCards = new List<DSCard>() |
static List< DSCard > | selectedCards = new List<DSCard>() |
static List< DSStack > | allStacks = new List<DSStack>() |
This script contians globally visible information relating to stacks and cards.
|
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.
|
inlinestatic |
Toggles all selectedCards to false.
|
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.
|
inlinestatic |
Safely removes a card from the lists in DSRegistry.
|
inlinestatic |
Sends all cards back to their respective pools. This should basically be used when clearing a table / level.
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.
Each stack is added to allStacks.
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.