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

◆ EntitySpriteDraw() [3/3]

static void Terraria.Main.EntitySpriteDraw ( Texture2D texture,
Vector2 position,
Rectangle? sourceRectangle,
Color color,
float rotation,
Vector2 origin,
Vector2 scale,
SpriteEffects effects,
float worthless = 0f )
inlinestatic

Definition at line 48893 of file Main.cs.

48894 {
48895 //IL_004a: Unknown result type (might be due to invalid IL or missing references)
48896 //IL_004c: Unknown result type (might be due to invalid IL or missing references)
48897 //IL_004f: Unknown result type (might be due to invalid IL or missing references)
48898 //IL_0051: Unknown result type (might be due to invalid IL or missing references)
48899 //IL_0053: Unknown result type (might be due to invalid IL or missing references)
48900 //IL_000b: Unknown result type (might be due to invalid IL or missing references)
48901 //IL_000d: Unknown result type (might be due to invalid IL or missing references)
48902 //IL_0010: Unknown result type (might be due to invalid IL or missing references)
48903 //IL_0012: Unknown result type (might be due to invalid IL or missing references)
48904 //IL_0014: Unknown result type (might be due to invalid IL or missing references)
48906 {
48907 DrawData value = new DrawData(texture, position, sourceRectangle, color, rotation, origin, scale, effects, worthless);
48909 value.Draw(spriteBatch);
48910 }
48911 else
48912 {
48913 spriteBatch.Draw(texture, position, sourceRectangle, color, rotation, origin, scale, effects, worthless);
48914 }
48915 }
static ArmorShaderDataSet Armor
Definition GameShaders.cs:7
static SpriteBatch spriteBatch
Definition Main.cs:1043
static int CurrentDrawnEntityShader
Definition Main.cs:247
static Entity CurrentDrawnEntity
Definition Main.cs:249
void Draw(SpriteBatch sb)
Definition DrawData.cs:222

References Terraria.Graphics.Shaders.GameShaders.Armor, Terraria.Main.CurrentDrawnEntity, Terraria.Main.CurrentDrawnEntityShader, Terraria.DataStructures.DrawData.Draw(), and Terraria.Main.spriteBatch.

+ Here is the call graph for this function: