wyświetlanie zawartości śmietników w domach
This commit is contained in:
parent
9669431c3a
commit
42180bf440
@ -181,10 +181,10 @@ namespace CzokoŚmieciarka.MonoGameView
|
|||||||
if (item is House)
|
if (item is House)
|
||||||
{
|
{
|
||||||
var house = item as House;
|
var house = item as House;
|
||||||
displayer.Content.Add(house.Coords.X.ToString() + ":" + house.Coords.Y.ToString() + "1", house.TrashCans.ElementAtOrDefault(0).Garbage.Volume.ToString());
|
displayer.Content.Add(house.Coords.X.ToString() + ":" + house.Coords.Y.ToString() + house.TrashCans.ElementAtOrDefault(0).Garbage.TypeOfGarbage.GarbageType.ToString(), house.TrashCans.ElementAtOrDefault(0).Garbage.Volume.ToString());
|
||||||
//displayer.Content.Add(house.Coords.X.ToString() + ":" + house.Coords.Y.ToString() + "2", house.TrashCans.ElementAtOrDefault(1).Garbage.Volume.ToString());
|
displayer.Content.Add(house.Coords.X.ToString() + ":" + house.Coords.Y.ToString() + house.TrashCans.ElementAtOrDefault(1).Garbage.TypeOfGarbage.GarbageType.ToString(), house.TrashCans.ElementAtOrDefault(1).Garbage.Volume.ToString());
|
||||||
//displayer.Content.Add(house.Coords.X.ToString() + ":" + house.Coords.Y.ToString() + "3", house.TrashCans.ElementAtOrDefault(2).Garbage.Volume.ToString());
|
displayer.Content.Add(house.Coords.X.ToString() + ":" + house.Coords.Y.ToString() + house.TrashCans.ElementAtOrDefault(2).Garbage.TypeOfGarbage.GarbageType.ToString(), house.TrashCans.ElementAtOrDefault(2).Garbage.Volume.ToString());
|
||||||
//displayer.Content.Add(house.Coords.X.ToString() + ":" + house.Coords.Y.ToString() + "4", house.TrashCans.ElementAtOrDefault(3).Garbage.Volume.ToString());
|
displayer.Content.Add(house.Coords.X.ToString() + ":" + house.Coords.Y.ToString() + house.TrashCans.ElementAtOrDefault(3).Garbage.TypeOfGarbage.GarbageType.ToString(), house.TrashCans.ElementAtOrDefault(3).Garbage.Volume.ToString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user