Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Draw()

void Terraria.GameContent.Animations.StardewValleyAnimation.Draw ( SpriteBatch spriteBatch,
int timeInAnimation,
Vector2 positionInScreen )
inline

Definition at line 65 of file StardewValleyAnimation.cs.

66 {
67 GameAnimationSegment gameAnimationSegment = default(GameAnimationSegment);
68 gameAnimationSegment.SpriteBatch = spriteBatch;
69 gameAnimationSegment.AnchorPositionOnScreen = positionInScreen;
70 gameAnimationSegment.TimeInAnimation = timeInAnimation;
71 gameAnimationSegment.DisplayOpacity = 1f;
72 GameAnimationSegment info = gameAnimationSegment;
73 for (int i = 0; i < _segments.Count; i++)
74 {
75 _segments[i].Draw(ref info);
76 }
77 }

References Terraria.GameContent.Animations.StardewValleyAnimation._segments, and System.Collections.Generic.List< T >.Count.