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

◆ CacheProjDraws()

void Terraria.Main.CacheProjDraws ( )
inlineprotected

Definition at line 34771 of file Main.cs.

34772 {
34779 for (int i = 0; i < 1000; i++)
34780 {
34781 if (!projectile[i].active)
34782 {
34783 continue;
34784 }
34785 if (projectile[i].type == 857)
34786 {
34788 }
34789 if (projectile[i].type == 578 || projectile[i].type == 579 || projectile[i].type == 641 || projectile[i].type == 617 || projectile[i].type == 813)
34790 {
34792 }
34793 if (projectile[i].type == 625 || projectile[i].type == 626 || projectile[i].type == 627 || projectile[i].type == 628 || projectile[i].type == 525 || projectile[i].type == 960 || projectile[i].type == 734 || projectile[i].type == 946 || (projectile[i].type == 908 && projectile[i].localAI[0] <= 0f))
34794 {
34796 }
34797 if (projectile[i].type == 759 || (projectile[i].type == 908 && projectile[i].localAI[0] > 0f))
34798 {
34800 }
34801 if (projectile[i].type == 651)
34802 {
34804 }
34805 if (projectile[i].type == 673 || projectile[i].type == 674 || projectile[i].type == 691 || projectile[i].type == 692 || projectile[i].type == 693 || projectile[i].type == 923)
34806 {
34808 }
34809 if (projectile[i].type != 636 && projectile[i].type != 598 && projectile[i].type != 971)
34810 {
34811 continue;
34812 }
34813 bool flag = true;
34814 if (projectile[i].ai[0] == 1f)
34815 {
34816 int num = (int)projectile[i].ai[1];
34817 if (num >= 0 && num < 200 && npc[num].active && npc[num].type != 492)
34818 {
34819 if (npc[num].behindTiles)
34820 {
34822 }
34823 else
34824 {
34826 }
34827 flag = false;
34828 }
34829 }
34830 if (flag)
34831 {
34833 }
34834 }
34835 }
List< int > DrawCacheFirstFractals
Definition Main.cs:2247
List< int > DrawCacheProjsBehindNPCsAndTiles
Definition Main.cs:2237
List< int > DrawCacheProjsBehindNPCs
Definition Main.cs:2239
List< int > DrawCacheProjsOverWiresUI
Definition Main.cs:2243
static Projectile[] projectile
Definition Main.cs:1691
static NPC[] npc
Definition Main.cs:1685
List< int > DrawCacheProjsBehindProjectiles
Definition Main.cs:2241
List< int > DrawCacheProjsOverPlayers
Definition Main.cs:2245

References System.Collections.Generic.List< T >.Add(), System.Collections.Generic.List< T >.Clear(), Terraria.Main.DrawCacheFirstFractals, Terraria.Main.DrawCacheProjsBehindNPCs, Terraria.Main.DrawCacheProjsBehindNPCsAndTiles, Terraria.Main.DrawCacheProjsBehindProjectiles, Terraria.Main.DrawCacheProjsOverPlayers, Terraria.Main.DrawCacheProjsOverWiresUI, System.Text.RegularExpressions.i, Terraria.Main.npc, Terraria.Main.projectile, and System.type.

Referenced by Terraria.Main.DoDraw_WallsTilesNPCs(), and Terraria.Main.DrawCapture().