Добавлена установка объекта на карту

This commit is contained in:
prodigygirl 2022-10-08 17:38:21 +04:00
parent c5828dace3
commit bbd11c3210

View File

@ -166,10 +166,11 @@ namespace ArmoredCar
/// <param name="g"></param>
private void DrawArmoredCars(Graphics g)
{
int width = _pictureWidth / _placeSizeWidth;
for (int i = 0; i < _setCars.Count; i++)
{
// TODO установка объекта
//_setCars.Get(i)?.SetObject(x, y, _pictureWidth, _pictureHeight);
{
_setCars.Get(i)?.SetObject(i % width * _placeSizeWidth + 10, i / width * _placeSizeHeight + 10, _pictureWidth, _pictureHeight);
_setCars.Get(i)?.DrawningObject(g);
}
}