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

◆ Draw()

override void Terraria.GameContent.Animations.Segments.PlayerSegment.Draw ( ref GameAnimationSegment info)
inline

Definition at line 210 of file Segments.cs.

211 {
212 //IL_00a3: Unknown result type (might be due to invalid IL or missing references)
213 //IL_00a8: Unknown result type (might be due to invalid IL or missing references)
214 //IL_00ad: Unknown result type (might be due to invalid IL or missing references)
215 //IL_00b2: Unknown result type (might be due to invalid IL or missing references)
216 //IL_00be: Unknown result type (might be due to invalid IL or missing references)
217 //IL_00dd: Unknown result type (might be due to invalid IL or missing references)
218 //IL_00e2: Unknown result type (might be due to invalid IL or missing references)
219 //IL_00e7: Unknown result type (might be due to invalid IL or missing references)
220 //IL_017a: Unknown result type (might be due to invalid IL or missing references)
221 //IL_018a: Unknown result type (might be due to invalid IL or missing references)
222 if ((float)info.TimeInAnimation > (float)_targetTime + base.DedicatedTimeNeeded || info.TimeInAnimation < _targetTime)
223 {
224 return;
225 }
227 float localTimeForObject = info.TimeInAnimation - _targetTime;
229 if (info.DisplayOpacity != 0f)
230 {
236 _player.socialIgnoreLight = true;
237 Player player = _player;
238 player.position += Main.screenPosition;
240 player2.position -= new Vector2((float)(_player.width / 2), (float)_player.height);
241 _player.opacityForAnimation *= info.DisplayOpacity;
244 float num = 1f - _player.opacityForAnimation;
245 num = 0f;
246 if (_shaderEffect != null)
247 {
249 }
250 Main.PlayerRenderer.DrawPlayer(Main.Camera, _player, _player.position, 0f, _player.fullRotationOrigin, num);
251 if (_shaderEffect != null)
252 {
254 }
256 }
257 }
Vector2 position
The position of this Entity in world coordinates.
Definition Entity.cs:28
int width
The width of this Entity's hitbox, in pixels.
Definition Entity.cs:46
int height
The height of this Entity's hitbox, in pixels.
Definition Entity.cs:51
void ResetPlayerAnimation(ref GameAnimationSegment info)
Definition Segments.cs:259
void ResetEffects()
Definition Player.cs:16711
float opacityForAnimation
Definition Player.cs:2014
void ResetVisibleAccessories()
Definition Player.cs:28799
void UpdateDyes()
Definition Player.cs:7641
void UpdateMiscCounter()
Definition Player.cs:27102
Vector2 fullRotationOrigin
Definition Player.cs:1803
Item[] inventory
The player's normal inventory. Indexes 0-9 hold the hotbar items, 10-49 the rest of the main inventor...
Definition Player.cs:1767
void PlayerFrame()
Definition Player.cs:34633

References Terraria.GameContent.Animations.Segments.PlayerSegment._blankItem, Terraria.GameContent.Animations.Segments.PlayerSegment._player, Terraria.GameContent.Animations.Segments.PlayerSegment._shaderEffect, Terraria.GameContent.Animations.Segments.AnimationSegmentWithActions< Player >._targetTime, Terraria.GameContent.Animations.Segments.PlayerSegment.IShaderEffect.AfterDrawing(), Terraria.GameContent.Animations.Segments.PlayerSegment.IShaderEffect.BeforeDrawing(), Terraria.Main.Camera, Terraria.Player.fullRotationOrigin, Terraria.Entity.height, Terraria.Player.inventory, Terraria.Player.opacityForAnimation, Terraria.Player.PlayerFrame(), Terraria.Main.PlayerRenderer, Terraria.Entity.position, Terraria.GameContent.Animations.Segments.AnimationSegmentWithActions< Player >.ProcessActions(), Terraria.Player.ResetEffects(), Terraria.GameContent.Animations.Segments.PlayerSegment.ResetPlayerAnimation(), Terraria.Player.ResetVisibleAccessories(), Terraria.Main.screenPosition, Terraria.Player.selectedItem, Terraria.Player.UpdateDyes(), Terraria.Player.UpdateMiscCounter(), and Terraria.Entity.width.

+ Here is the call graph for this function: