Добавлена установка объекта на карту
This commit is contained in:
parent
c5828dace3
commit
bbd11c3210
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user