Dodano przejście między domkami
This commit is contained in:
parent
cc9ccd26ba
commit
c2f5acee58
@ -80,12 +80,14 @@ namespace CzokoŚmieciarka.WPFv2
|
||||
}
|
||||
|
||||
IEnumerable<TrashCan> trashCans = new List<TrashCan>();
|
||||
WPFHouse house = new WPFHouse(new Coords(i, i), trashCans);
|
||||
Objects[i, i] = house;
|
||||
Grid.SetRow(Objects[i, i].Image, i);
|
||||
Grid.SetColumn(Objects[i, i].Image, i);
|
||||
Board.Children.Add(Objects[i, i].Image);
|
||||
|
||||
if(i != 6)
|
||||
{
|
||||
WPFHouse house = new WPFHouse(new Coords(i, i), trashCans);
|
||||
Objects[i, i] = house;
|
||||
Grid.SetRow(Objects[i, i].Image, i);
|
||||
Grid.SetColumn(Objects[i, i].Image, i);
|
||||
Board.Children.Add(Objects[i, i].Image);
|
||||
}
|
||||
}
|
||||
Objects[2,7] = new WPFDump(new TypeOfGarbage(GarbageType.Glass,1,1), 10000,new Coords(2,7));
|
||||
Grid.SetColumn(Objects[2, 7].Image, 2);
|
||||
|
Loading…
Reference in New Issue
Block a user