Public Member Functions | |
bool | GrabPositionIsReset () |
string | UpdateCardID (string name="") |
void | SetCardPool (DSCardPool settingCardPool_) |
void | ReturnCardToPool () |
DSCard[] | GetCardNeighbors () |
void | ResetCard () |
void | DestroyCard () |
Static Public Member Functions | |
static void | CardNullCheck (ref DSCard cardRef_, MonoBehaviour theMono_) |
Properties | |
DSCardArt | cardArt [get] |
DSCardData | cardData [get] |
DSCardFader | cardFader [get] |
DSCardFlipper | cardFlipper [get] |
DSCardGrabber | cardGrabber [get] |
string | cardID [get, set] |
DSCardInput | cardInput [get] |
DSCardMovementHelper | cardMoveHelper [get] |
DSCardSelector | cardSelector [get] |
DSCardTintHelper | cardTintHelper [get] |
RectTransform | rTransform [get] |
DSStack | stack [get, set] |
DSCardPool | cardPool [get, set] |
bool | isOffset [get, set] |
bool | isRotated [get] |
bool | isGrabbed [get] |
int | stackIndex [get] |
DSCardSpacing | cardSpacing [get] |
This script serves as a hub for the various components of a DeckStacker card to communicate data between eachother.
Should be attached to a card prefab.
|
inlinestatic |
Used in Awake calls for DeckStacker Monobehaviours attached to the card, to make sure all of them are referencing this script.
|
inline |
If you don't want to return a card to the card pool (for whatever reason) and have to remove it from the table: This method will destroy this GameObject and clean up the cards references in DeckStacker.
|
inline |
Gets a DSStack array containing neighboring cards in the card's current stack. This will only return up to 2 cards.
|
inline |
Returns whether the card's grab parent has been reset back to it's default position.
|
inline |
Used in the card pool system to reset a card when going back to the pool.
|
inline |
Return this card to card pool and cleanup some data.
|
inline |
When a card is instantiated, set the card pool to make sure associated data is accessible. This is used when a card pool is initializing new cards.
|
inline |
This method will give a generic or specified cardID to this card, and append a unique number to the end.\nIt will also return that string.
|
get |
Manages and updates card art
|
get |
References game-specific card data.
Default data is traditional playing card data: suit, rank
|
get |
This component controls card fading and visibility, through a CanvasGroup.
|
get |
DSCardFlipper animates card flipping via code
|
get |
Controls card "grabbing". "Grabbing" is another card offset that is designed to react to player input (like a mouse drag).
|
getset |
A non-unique identifier for the card. The default DSCardArt script uses this to select art to use.
|
get |
Used to handle card input, buttons, etc
|
get |
A helper component that communicates with the DSCardMover code to update card movement.
DSCardMovementHelper helps out with base card movement and offset movement (like for selection behavior).
|
getset |
Records which card pool spawned this card.
|
get |
Used to manage whether a card is "selected" by the DeckStacker system.
Card selection is a base feature of just about any game design.
|
get |
Fetches the card spacing settings from the card pool that spawned this card.
|
get |
This will provide color tint data to the DSCardTintManager, so you can add a color to a card for whatever UX purpose.
|
get |
A card is recorded as grabbed in the DSCardMover.cardsGrabbed list.
|
getset |
A card is offset when its offsetParent object is not at the local position of (0,0,0) and/or not scaled to (1,1,1).
|
get |
A card is rotated when this transform is not at a local rotation of (0,0,0).
|
get |
Used to avoid a GetComponent call for card sizing
|
getset |
A cached value to avoid less efficient ways of finding what stack a card belongs to.
Note: The DeckStacker system assumes that all non-pooled cards should be part of a stack.
If you want a card to float around a table without being forced into typical stack organization, consider using an Undefined stack.
|
get |
Fetches the card's index in its stack.cards list. This will also be the sibling index of the transform.