CEngineSharp_Client.World.Map.DrawNpcs C# (CSharp) Method

DrawNpcs() private method

private DrawNpcs ( RenderTarget window, int left, int top, int width, int height ) : void
window RenderTarget
left int
top int
width int
height int
return void
        private void DrawNpcs(RenderTarget window, int left, int top, int width, int height)
        {
            foreach (var npc in this._mapNpcs)
            {
                if (npc.X < left || npc.X > (left + width)) continue;
                if (npc.Y < top || npc.Y > (top + height)) continue;

                npc.Draw(window);
            }
        }