Public Member Functions | |
DSCard | SpawnCard (DSStack targetStack_, DSCardFacing facing_=DSCardFacing.Down) |
DSCard | SpawnCard (DSStack targetStack_, DSCardPlacementInDeck placement_, DSCardFacing facing_=DSCardFacing.Down) |
DSCard | SpawnCard (DSStack targetStack_, int exactPlacement_, DSCardFacing facing_=DSCardFacing.Down) |
DSCard | GetCardFromPool () |
void | ReturnCardToPool (DSCard returningCard_) |
Properties | |
DSCard | cardPrefab [get] |
SpriteAtlas | poolCardSpriteAtlas [get] |
DSCardManagementData | cardManageData [get] |
Creates an object pool of cards from the designated prefab.
The card pool is also a gateway for data attached to cards from that prefab, such as:
|
inline |
Gets a card in the pool, readys it for use, and then returns that card.
|
inline |
After a card is no longer used and needs to be removed from the table, this method will reset the card's data and send it back to the object pool.
|
inline |
Spawn a card on top of a target stack
|
inline |
Spawn a card in target stack. Card placement is defined by DSCardPlacementInDeck.
|
inline |
Spawn a card in target stack at a particular index of the stack's cards list.
|
get |
Data attached to this card pool, derived from the card prefab assigned to it.
|
get |
The card template used by this pool.
|
get |
The SpriteAtlas that cards managed by this pool update from.