tModLoader v2024.08
A mod to make and play Terraria mods
Segments.NPCSegment Class Reference

Inherits Segments.AnimationSegmentWithActions< NPC >.

Public Member Functions

 NPCSegment (int targetTime, int npcId, Vector2 anchorOffset, Vector2 normalizedNPCHitboxOrigin)
 
override void Draw (ref GameAnimationSegment info)
 
- Public Member Functions inherited from Segments.AnimationSegmentWithActions< NPC >
 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< NPC > act)
 
- Protected Member Functions inherited from Segments.AnimationSegmentWithActions< NPC >
abstract void Bind (IAnimationSegmentAction< T > act)
 
void ProcessActions (T obj, float localTimeForObject)
 

Additional Inherited Members

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

Member Function Documentation

◆ Draw()

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