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

Public Member Functions

 DSFanStackInfo (DSStack fanStack_, Vector3 newLocalPos_)
 
float GetLerpAmount ()
 

Properties

float stackWidth [get]
 
float startX [get]
 
float percentOfWidth [get]
 
float cardSpacing [get]
 
float maxYOffset [get, set]
 
float maxZRotation [get]
 
AnimationCurve yOffsetCurve [get, set]
 
Transform stackTransform [get]
 

Detailed Description

This class stores data helpful in the DSRestacker "fan stack" calculations.

Constructor & Destructor Documentation

◆ DSFanStackInfo()

DeckStacker.DSFanStackInfo.DSFanStackInfo ( DSStack fanStack_,
Vector3 newLocalPos_ )
inline
  • fanStack = caches this value so properties can access it during restack operations.
  • newLocalPos = used in restack operations

Member Function Documentation

◆ GetLerpAmount()

float DeckStacker.DSFanStackInfo.GetLerpAmount ( )
inline

Returns an evaluation of yOffsetCurve based on percentOfWidth

Property Documentation

◆ cardSpacing

float DeckStacker.DSFanStackInfo.cardSpacing
get

Returns the stack's current card spacing settings for fans

◆ maxYOffset

float DeckStacker.DSFanStackInfo.maxYOffset
getset

Returns the stack's current settings for the maximum Y offset this fan will do with cards.

◆ maxZRotation

float DeckStacker.DSFanStackInfo.maxZRotation
get

Returns the stack's current settings for the maximum X rotation this fan will do with cards.

◆ percentOfWidth

float DeckStacker.DSFanStackInfo.percentOfWidth
get

Used for calculating card positioning in restack code.

◆ stackTransform

Transform DeckStacker.DSFanStackInfo.stackTransform
get

Returns the DSStack's transform.

◆ stackWidth

float DeckStacker.DSFanStackInfo.stackWidth
get

Returns the rect width of the cardStackParent of the stack that generated this object.

◆ startX

float DeckStacker.DSFanStackInfo.startX
get

Used for calculating card positioning in restack code.

◆ yOffsetCurve

AnimationCurve DeckStacker.DSFanStackInfo.yOffsetCurve
getset

Returns the stack's current settings for the Y offset curve for fanning cards.


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