DeckStacker v1.0.4
A card game engine for Unity games
Loading...
Searching...
No Matches
DeckStacker.DSTintCardAction Class Reference
Inheritance diagram for DeckStacker.DSTintCardAction:
DeckStacker.DSAction

Public Member Functions

 DSTintCardAction (DSCard tintingCard_, Color newTint_, float spd_=1f)
 DSTintCardAction (DSCard tintingCard_, string newTintKey_, float spd_=1f)
 DSTintCardAction (List< DSCard > tintingCards_, Color newTint_, float spd_=1f)
 DSTintCardAction (List< DSCard > tintingCards_, string newTintKey_, float spd_=1f)
override void Execute ()
Public Member Functions inherited from DeckStacker.DSAction
void Execute ()
void Resolve ()
string PrintType ()

Additional Inherited Members

Protected Member Functions inherited from DeckStacker.DSAction
void LogAction (string actionMessage)
Protected Attributes inherited from DeckStacker.DSAction
System.Type _type = null
bool _actionLogged = false

Detailed Description

This DeckStacker action takes a card or list of cards and triggers a tint on it / them via the DSCardTintHelper.

Setting spd paramater to <= 0 will make the tint transition instant.

Constructor & Destructor Documentation

◆ DSTintCardAction() [1/4]

DeckStacker.DSTintCardAction.DSTintCardAction ( DSCard tintingCard_,
Color newTint_,
float spd_ = 1f )
inline

Constructor for a single card being queued up.

  • tintingCard = the DSCard to be tinted
  • newTint = the desired Color to tint the card
  • spd = a multiplier that speeds up or slows down the tint, applied to Time.deltaTime. A value <= 0 will make the tint transition instant.

◆ DSTintCardAction() [2/4]

DeckStacker.DSTintCardAction.DSTintCardAction ( DSCard tintingCard_,
string newTintKey_,
float spd_ = 1f )
inline

Constructor for a single card being queued up.

  • tintingCard = the DSCard to be tinted
  • newTintKey = the name of a color tint in the DSCardTintSettingsSO scriptable object.
  • spd = a multiplier that speeds up or slows down the tint, applied to Time.deltaTime. A value <= 0 will make the tint transition instant.

◆ DSTintCardAction() [3/4]

DeckStacker.DSTintCardAction.DSTintCardAction ( List< DSCard > tintingCards_,
Color newTint_,
float spd_ = 1f )
inline

Constructor for a DSCard list being queued up.

  • tintingCards = the DSCard list to be tinted
  • newTint = the desired Color to tint the cards
  • spd = a multiplier that speeds up or slows down the tint, applied to Time.deltaTime. A value <= 0 will make the tint transition instant.

◆ DSTintCardAction() [4/4]

DeckStacker.DSTintCardAction.DSTintCardAction ( List< DSCard > tintingCards_,
string newTintKey_,
float spd_ = 1f )
inline

Constructor for a DSCard list being queued up.

  • tintingCards = the DSCard list to be tinted
  • newTintKey = the name of a color tint in the DSCardTintSettingsSO scriptable object.
  • spd = a multiplier that speeds up or slows down the tint, applied to Time.deltaTime. A value <= 0 will make the tint transition instant.

Member Function Documentation

◆ Execute()

override void DeckStacker.DSTintCardAction.Execute ( )
inline

This code will execute when this DSAction is at the 0 index of the DSActionQueue.actionQueue list, and an RunUpdate call has been made.


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