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

Public Member Functions

void SetupData (DSCard cardPrefab_)
 

Properties

DSCardSpacing cardSpacing [get]
 
AnimationCurve moveCurve [get]
 
DSCardMovementSettingsSO.RotationCurves rotationCurves [get]
 

Detailed Description

This object is stored in a Card Pool and fetches the following data for use with a particular card prefab:

  1. Card Spacing
  2. Movement Curve
  3. Rotation Curves

Different card prefabs may need different sizing, spacing, and movement behavior / settings.
Card pools are then used as a common location where this data is stored.
Each card has a record of what pool it came from, which then gives any object that is referencing the card's DSCard script a pathway to find this CardManagementdata.

For instance: If you want to use 2 different card prefabs in your game, you may want to adjust spacing and movement to fit those cards.
Cards of different sizes will almost certainly need differnt spacing values, and their movement curves may also need to be slightly different.

Member Function Documentation

◆ SetupData()

void DeckStacker.DSCardManagementData.SetupData ( DSCard cardPrefab_)
inline

Called by the DSCardPool component of a card pool object to update this DSCardManagementData's data based on the cardPrefab assigned to the pool.

Property Documentation

◆ cardSpacing

DSCardSpacing DeckStacker.DSCardManagementData.cardSpacing
get

Used by the Restack system, this allows different card prefabs to have different card spacing.

◆ moveCurve

AnimationCurve DeckStacker.DSCardManagementData.moveCurve
get

Used by the DSCardMover system for card movement easing.

◆ rotationCurves

DSCardMovementSettingsSO.RotationCurves DeckStacker.DSCardManagementData.rotationCurves
get

Used by a card's DSCardFlipper system for rotation easing.


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