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

◆ DeactivateIfOutsideOfWorld()

bool Terraria.Gore.DeactivateIfOutsideOfWorld ( )
inlineprivate

Definition at line 356 of file Gore.cs.

357 {
358 //IL_0001: Unknown result type (might be due to invalid IL or missing references)
359 //IL_0006: Unknown result type (might be due to invalid IL or missing references)
360 //IL_000b: Unknown result type (might be due to invalid IL or missing references)
361 //IL_000c: Unknown result type (might be due to invalid IL or missing references)
362 //IL_0012: Unknown result type (might be due to invalid IL or missing references)
363 //IL_002e: Unknown result type (might be due to invalid IL or missing references)
364 //IL_0034: Unknown result type (might be due to invalid IL or missing references)
365 Point point = position.ToTileCoordinates();
366 if (!WorldGen.InWorld(point.X, point.Y))
367 {
368 active = false;
369 return true;
370 }
371 if (Main.tile[point.X, point.Y] == null)
372 {
373 active = false;
374 return true;
375 }
376 return false;
377 }
Vector2 position
Definition Gore.cs:18
bool active
Definition Gore.cs:32

References Terraria.Gore.active, Terraria.WorldGen.InWorld(), Terraria.Gore.position, and Terraria.Main.tile.

Referenced by Terraria.Gore.Update().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: