DeckStacker v1.0
A card game engine for Unity games
 
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Properties Pages
Loading...
Searching...
No Matches
DeckStacker.DSCardSpacingFan Class Reference

Public Member Functions

 DSCardSpacingFan ()
 
 DSCardSpacingFan (DSCardSpacingFan newSpacing_)
 

Properties

float maxYOffset [get, set]
 
float maxZRotation [get, set]
 
float cardSpacing [get, set]
 
AnimationCurve yOffsetCurve [get, set]
 

Detailed Description

RowFan stacks require extra data for card spacing and positioning.
This class provides that data, which is saved in a DSCardSpacingSettingsSO scriptable object.

Constructor & Destructor Documentation

◆ DSCardSpacingFan() [1/2]

DeckStacker.DSCardSpacingFan.DSCardSpacingFan ( )
inline

Constructor used for Inspector initialization. Default values are used.

◆ DSCardSpacingFan() [2/2]

DeckStacker.DSCardSpacingFan.DSCardSpacingFan ( DSCardSpacingFan newSpacing_)
inline

Constructor used for cloning the data of another DSCardSpacingFan object.

Property Documentation

◆ cardSpacing

float DeckStacker.DSCardSpacingFan.cardSpacing
getset

The spacing amount between cards.

◆ maxYOffset

float DeckStacker.DSCardSpacingFan.maxYOffset
getset

The max amount a fanned row will offset, vertically.

◆ maxZRotation

float DeckStacker.DSCardSpacingFan.maxZRotation
getset

The max amount a fanned card will rotation (Z rotation).
This rotation is symmetrical.

◆ yOffsetCurve

AnimationCurve DeckStacker.DSCardSpacingFan.yOffsetCurve
getset

Influences the Y offset to create the curved "card hand" look in a stack


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