tModLoader v2024.03
A mod to make and play Terraria mods
Segments.SpriteSegment Class Reference

Inherits Segments.AnimationSegmentWithActions< LooseSprite >.

Classes

interface  IShaderEffect
 
class  MaskedFadeEffect
 

Public Member Functions

 SpriteSegment (Asset< Texture2D > asset, int targetTime, DrawData data, Vector2 anchorOffset)
 
override void Draw (ref GameAnimationSegment info)
 
SpriteSegment UseShaderEffect (IShaderEffect shaderEffect)
 
- Public Member Functions inherited from Segments.AnimationSegmentWithActions< LooseSprite >
 AnimationSegmentWithActions (int targetTime)
 
abstract void Draw (ref GameAnimationSegment info)
 
AnimationSegmentWithActions< T > Then (IAnimationSegmentAction< T > act)
 
AnimationSegmentWithActions< T > With (IAnimationSegmentAction< T > act)
 

Protected Member Functions

override void Bind (IAnimationSegmentAction< LooseSprite > act)
 
- Protected Member Functions inherited from Segments.AnimationSegmentWithActions< LooseSprite >
abstract void Bind (IAnimationSegmentAction< T > act)
 
void ProcessActions (T obj, float localTimeForObject)
 

Additional Inherited Members

- Protected Attributes inherited from Segments.AnimationSegmentWithActions< LooseSprite >
int _targetTime
 
- Properties inherited from Segments.AnimationSegmentWithActions< LooseSprite >
float DedicatedTimeNeeded [get]
 

Member Function Documentation

◆ Draw()

override void Segments.SpriteSegment.Draw ( ref GameAnimationSegment  info)
virtual