Terraria.ModLoader.ProjectileLoader.DrawBehind C# (CSharp) Method

DrawBehind() static private method

static private DrawBehind ( Projectile projectile, int index, List drawCacheProjsBehindNPCsAndTiles, List drawCacheProjsBehindNPCs, List drawCacheProjsBehindProjectiles, List drawCacheProjsOverWiresUI ) : void
projectile Projectile
index int
drawCacheProjsBehindNPCsAndTiles List
drawCacheProjsBehindNPCs List
drawCacheProjsBehindProjectiles List
drawCacheProjsOverWiresUI List
return void
        internal static void DrawBehind(Projectile projectile, int index, List<int> drawCacheProjsBehindNPCsAndTiles, List<int> drawCacheProjsBehindNPCs, List<int> drawCacheProjsBehindProjectiles, List<int> drawCacheProjsOverWiresUI)
        {
            projectile.modProjectile?.DrawBehind(index, drawCacheProjsBehindNPCsAndTiles, drawCacheProjsBehindNPCs, drawCacheProjsBehindProjectiles, drawCacheProjsOverWiresUI);

            foreach (var hook in HookDrawBehind)
            {
                hook(projectile, index, drawCacheProjsBehindNPCsAndTiles, drawCacheProjsBehindNPCs, drawCacheProjsBehindProjectiles, drawCacheProjsOverWiresUI);
            }
        }