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

Static Public Member Functions

static void RunUpdate ()
 
static void Restack (DSStack stack_)
 

Static Public Attributes

static List< DSStackrestackList = new List<DSStack>()
 

Detailed Description

This script queues up and triggers restacks in the scene.

A "restack" is when some kind of change has happened in a stack, and cards need to be moved to relect that change.
Restacks are the primary way cards are moved in DeckStacker.

Example of a restack: Cards are removed from one stack and added to another.
The 2 stacks are added to the restack list, because both have gone under a change.

Member Function Documentation

◆ Restack()

static void DeckStacker.DSRestacker.Restack ( DSStack stack_)
inlinestatic

This is the code that moves the stack's cards into place, according to the stack type.

This method is public in the event that you need to force a restack immediately, such as in the Execute() method of DSShuffleAction.

◆ RunUpdate()

static void DeckStacker.DSRestacker.RunUpdate ( )
inlinestatic

Called in the DSTableRunner Update loop.
This triggers the TriggerRestacks() and acts as the Update loop for this script.

Field Documentation

◆ restackList

List<DSStack> DeckStacker.DSRestacker.restackList = new List<DSStack>()
static

Restack queue. Each frame, this list is checked and stacks in it have a restack triggered for them.


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