Public Member Functions | |
List< DSCard > | GetCardsOffTop (int howManyCards_) |
DSCard | TopCard () |
void | AddToRestackList () |
bool | HasSelectOffset () |
string[] | Stack_To_String_Array () |
void | ReturnCardsToPool () |
Properties | |
DSCardManager | cardManager [get] |
List< DSCard > | cards [get, set] |
RectTransform | rTransform [get] |
DSStackRenderManager | renderManager [get] |
DSRestackHelper | restackHelper [get] |
Vector3 | selectedCardPositionOffset [get, set] |
Vector3 | selectedCardScaleOffset [get, set] |
Stacks are objects that parent a collection of cards, and save data on how those cards should be arranged.
This should be attached to a stack prefab.
Similar to the DSCard script, this serves as a communication hub between the various scripts that control an individual stack's behavior.
|
inline |
Stacks need to be added to the DSRestacker.restackList in order for a Restack to trigger properly.
This method adds this stack to the restack list, if it isn't there already.
|
inline |
Shortcut method that returns a list of n cards at the end of the cards list (aka At the "top" of the stack).
|
inline |
Returns whether the stack has defined a position and / or scale offset for selected cards.
|
inline |
Returns this stack's cards to theie respective pool(s).
|
inline |
Returns an array of strings made from the names of the card game objects in the cards list.
Useful for recording saved game info.
|
inline |
Shortcut method that returns the last card of the cards list. Similar to GetCardsOffTop, but only one card.
|
get |
Assign the stack's DSCardManager component, here.
|
getset |
Shortcut to Care Manager cards list because this gets used all over DeckStacker.
|
get |
Assign the stack's DSStackRenderManager component, here.
|
get |
Assign the stack's DSRestackHelper component, here.
|
get |
Assign the stack's RectTransform component, here.
Even though the DeckStacker system doesn't use this component, explicitly, exposing this in a get call should be generally useful in many scenerios.
Example: Dynamically placing stacks in the scene in a grid layout, requiring code to know the dimensions of a stack.
|
getset |
Default position offset for all selected cards in this stack.
In other words, when you use the default select code in DSCardSelector, it looks for the card position offset here.
|
getset |
Default scale offset for all selected cards in this stack.
In other words, when you use the default select code in DSCardSelector, it looks for the card scale offset here.