Exemplo n.º 1
0
        internal static void OnDrawNPC(Main m, int nid, bool behindTiles)
        {
            var n = Main.npc[nid];
            var bh = n.P_BHandler as NpcBHandler;

            if (bh == null || bh.PreDraw(Main.spriteBatch, behindTiles))
            {
                m.RealDrawNPC(nid, behindTiles);

                if (bh != null)
                    bh.OnDraw(Main.spriteBatch, behindTiles);
            }
        }