Poziom zapełnienia niektórych śmietników z domów nie dodaje się do displayera

This commit is contained in:
Michał Dulski 2019-05-12 13:49:19 +02:00
parent 0d840d4a77
commit 9669431c3a
2 changed files with 172 additions and 1 deletions

View File

@ -181,7 +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(), house.TrashCans.LastOrDefault().FillPercent.ToString()); 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() + "2", 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() + "4", house.TrashCans.ElementAtOrDefault(3).Garbage.Volume.ToString());
} }
} }
} }

View File

@ -174,6 +174,48 @@
100 100
</Volume> </Volume>
</Can> </Can>
<Can>
<GarbageType>
Organic
</GarbageType>
<Density>
1
</Density>
<ProcessingTimePerUnit>
1
</ProcessingTimePerUnit>
<Volume>
100
</Volume>
</Can>
<Can>
<GarbageType>
Paper
</GarbageType>
<Density>
1
</Density>
<ProcessingTimePerUnit>
1
</ProcessingTimePerUnit>
<Volume>
100
</Volume>
</Can>
<Can>
<GarbageType>
PlasticMetal
</GarbageType>
<Density>
1
</Density>
<ProcessingTimePerUnit>
1
</ProcessingTimePerUnit>
<Volume>
100
</Volume>
</Can>
</TrashCans> </TrashCans>
</Object> </Object>
<Object> <Object>
@ -280,6 +322,48 @@
<Volume> <Volume>
100 100
</Volume> </Volume>
</Can>
<Can>
<GarbageType>
Organic
</GarbageType>
<Density>
1
</Density>
<ProcessingTimePerUnit>
1
</ProcessingTimePerUnit>
<Volume>
100
</Volume>
</Can>
<Can>
<GarbageType>
Paper
</GarbageType>
<Density>
1
</Density>
<ProcessingTimePerUnit>
1
</ProcessingTimePerUnit>
<Volume>
100
</Volume>
</Can>
<Can>
<GarbageType>
PlasticMetal
</GarbageType>
<Density>
1
</Density>
<ProcessingTimePerUnit>
1
</ProcessingTimePerUnit>
<Volume>
100
</Volume>
</Can> </Can>
</TrashCans> </TrashCans>
</Object> </Object>
@ -1171,6 +1255,48 @@
<Volume> <Volume>
100 100
</Volume> </Volume>
</Can>
<Can>
<GarbageType>
Organic
</GarbageType>
<Density>
1
</Density>
<ProcessingTimePerUnit>
1
</ProcessingTimePerUnit>
<Volume>
100
</Volume>
</Can>
<Can>
<GarbageType>
Paper
</GarbageType>
<Density>
1
</Density>
<ProcessingTimePerUnit>
1
</ProcessingTimePerUnit>
<Volume>
100
</Volume>
</Can>
<Can>
<GarbageType>
PlasticMetal
</GarbageType>
<Density>
1
</Density>
<ProcessingTimePerUnit>
1
</ProcessingTimePerUnit>
<Volume>
100
</Volume>
</Can> </Can>
</TrashCans> </TrashCans>
</Object> </Object>
@ -1278,6 +1404,48 @@
<Volume> <Volume>
100 100
</Volume> </Volume>
</Can>
<Can>
<GarbageType>
Organic
</GarbageType>
<Density>
1
</Density>
<ProcessingTimePerUnit>
1
</ProcessingTimePerUnit>
<Volume>
100
</Volume>
</Can>
<Can>
<GarbageType>
Paper
</GarbageType>
<Density>
1
</Density>
<ProcessingTimePerUnit>
1
</ProcessingTimePerUnit>
<Volume>
100
</Volume>
</Can>
<Can>
<GarbageType>
PlasticMetal
</GarbageType>
<Density>
1
</Density>
<ProcessingTimePerUnit>
1
</ProcessingTimePerUnit>
<Volume>
100
</Volume>
</Can> </Can>
</TrashCans> </TrashCans>
</Object> </Object>