Description:
Render tiles only for active contracts.
Commit status:
[Not Reviewed]
References:
Comments:
0 Commit comments 0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
Add another comment

r198:34cb19453592 -

@@ -53,9 +53,9
53 53 }
54 54 }
55 55
56 game.in_zone = false;
56 57 foreach (ref readonly var entity in ReadEntities<AreaComponent>())
57 58 {
58 game.in_zone = false;
59 59 var areaComponent = GetComponent<AreaComponent>(entity);
60 60 foreach (var square in areaComponent.squares)
61 61 {
@@ -90,7 +90,6
90 90 private BudgetWindow budgetWindow;
91 91 public bool showForest;
92 92 public bool showNews;
93 public bool showContracts;
94 93
95 94 //Encompass
96 95 private WorldBuilder WorldBuilder = new WorldBuilder();
@@ -231,8 +230,11
231 230 WorldBuilder.SendMessage(new SpawnContractMessage{squares = new[] {new Vector2(4,4), new Vector2(5,4)},
232 231 name = "Northshore Logging"});
233 232
234 WorldBuilder.SendMessage(new SpawnContractMessage{squares = new[] {new Vector2(4,4), new Vector2(5,4)},
235 name = "Aeres Maximalis Ltd."});
233 WorldBuilder.SendMessage(new SpawnContractMessage
234 {
235 squares = new[] { new Vector2(6, 6), new Vector2(6, 7), new Vector2(6, 8) },
236 name = "Aeres Maximalis Ltd."
237 });
236 238 World = WorldBuilder.Build();
237 239
238 240 var bakedMono = TtfFontBaker.Bake(File.OpenRead(@"Content/iosevka-term-extendedmedium.ttf"),
@@ -31,8 +31,11
31 31 foreach (ref readonly var entity in ReadEntities<AreaComponent>())
32 32 {
33 33 var areaComponent = GetComponent<AreaComponent>(entity);
34 Tile.DrawOutlinedSquares(batch, areaComponent.squares, Color.Teal);
35
34 if (!HasComponent<ContractStatusComponent>(entity)
35 || GetComponent<ContractStatusComponent>(entity).status == ContractStatus.Accepted )
36 {
37 Tile.DrawOutlinedSquares(batch, areaComponent.squares, Color.Teal);
38 }
36 39 }
37 40 }
38 41 }
You need to be logged in to leave comments. Login now