private DrawNpcs ( RenderTarget window, int left, int top, int width, int height ) : void | ||
window | RenderTarget | |
left | int | |
top | int | |
width | int | |
height | int | |
Résultat | 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);
}
}