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

◆ Size

Vector2 Terraria.Entity.Size
getsetinherited

Definition at line 220 of file Entity.cs.

221 {
222 get
223 {
224 //IL_000e: Unknown result type (might be due to invalid IL or missing references)
225 return new Vector2((float)width, (float)height);
226 }
227 set
228 {
229 //IL_0001: Unknown result type (might be due to invalid IL or missing references)
230 //IL_000e: Unknown result type (might be due to invalid IL or missing references)
231 width = (int)value.X;
232 height = (int)value.Y;
233 }
234 }
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

Referenced by Terraria.DataStructures.PlayerDrawSet.BoringSetup_2(), Terraria.GameContent.Shaders.WaterShaderData.DrawWaves(), Terraria.Projectile.DropGeodeLoot(), Terraria.GameContent.ItemDropRules.CommonCode.DropItemForEachInteractingPlayerOnThePlayer(), Terraria.Cinematics.DD2Film.DryadPortalFade(), Terraria.Physics.BallCollision.Step(), Terraria.Collision.StepConveyorBelt(), and Terraria.GameContent.PressurePlateHelper.UpdatePlayerPosition().