tModLoader v2024.10
A mod to make and play Terraria mods
Actions.Sprites.LinearScale Class Reference

Inherits Actions.Sprites.AScale.

Public Member Functions

 LinearScale (Vector2 scaleTarget)
 
 LinearScale (Vector2 scaleTarget, int duration)
 
- Public Member Functions inherited from Actions.Sprites.AScale
 AScale (Vector2 scaleTarget)
 
 AScale (Vector2 scaleTarget, int duration)
 
void ApplyTo (Segments.LooseSprite obj, float localTimeForObj)
 
void BindTo (Segments.LooseSprite obj)
 
void SetDelay (float delay)
 
- Public Member Functions inherited from IAnimationSegmentAction< Segments.LooseSprite >
void ApplyTo (T obj, float localTimeForObj)
 
void BindTo (T obj)
 
void SetDelay (float delay)
 

Protected Member Functions

override float GetProgress (float durationInFramesToApply)
 
abstract float GetProgress (float durationInFramesToApply)
 

Additional Inherited Members

- Protected Attributes inherited from Actions.Sprites.AScale
int Duration
 
- Properties inherited from Actions.Sprites.AScale
int ExpectedLengthOfActionInFrames [get]
 
- Properties inherited from IAnimationSegmentAction< Segments.LooseSprite >
int ExpectedLengthOfActionInFrames [get]
 

Member Function Documentation

◆ GetProgress()

override float Actions.Sprites.LinearScale.GetProgress ( float  durationInFramesToApply)
protectedvirtual