Description:
Render tiles only for active contracts.
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
@@ -53,9 +53,9 | |||||
|
53 | } |
|
53 | } |
|
54 | } |
|
54 | } |
|
55 |
|
55 | ||
|
|
56 | game.in_zone = false; | ||
|
56 | foreach (ref readonly var entity in ReadEntities<AreaComponent>()) |
|
57 | foreach (ref readonly var entity in ReadEntities<AreaComponent>()) |
|
57 | { |
|
58 | { |
|
58 | game.in_zone = false; |
|
||
|
59 | var areaComponent = GetComponent<AreaComponent>(entity); |
|
59 | var areaComponent = GetComponent<AreaComponent>(entity); |
|
60 | foreach (var square in areaComponent.squares) |
|
60 | foreach (var square in areaComponent.squares) |
|
61 | { |
|
61 | { |
@@ -90,7 +90,6 | |||||
|
90 | private BudgetWindow budgetWindow; |
|
90 | private BudgetWindow budgetWindow; |
|
91 | public bool showForest; |
|
91 | public bool showForest; |
|
92 | public bool showNews; |
|
92 | public bool showNews; |
|
93 | public bool showContracts; |
|
||
|
94 |
|
93 | ||
|
95 | //Encompass |
|
94 | //Encompass |
|
96 | private WorldBuilder WorldBuilder = new WorldBuilder(); |
|
95 | private WorldBuilder WorldBuilder = new WorldBuilder(); |
@@ -231,8 +230,11 | |||||
|
231 | WorldBuilder.SendMessage(new SpawnContractMessage{squares = new[] {new Vector2(4,4), new Vector2(5,4)}, |
|
230 | WorldBuilder.SendMessage(new SpawnContractMessage{squares = new[] {new Vector2(4,4), new Vector2(5,4)}, |
|
232 | name = "Northshore Logging"}); |
|
231 | name = "Northshore Logging"}); |
|
233 |
|
232 | ||
|
234 |
WorldBuilder.SendMessage(new SpawnContractMessage |
|
233 | WorldBuilder.SendMessage(new SpawnContractMessage |
|
235 | name = "Aeres Maximalis Ltd."}); |
|
234 | { |
|
|
235 | squares = new[] { new Vector2(6, 6), new Vector2(6, 7), new Vector2(6, 8) }, | ||
|
|
236 | name = "Aeres Maximalis Ltd." | ||
|
|
237 | }); | ||
|
236 | World = WorldBuilder.Build(); |
|
238 | World = WorldBuilder.Build(); |
|
237 |
|
239 | ||
|
238 | var bakedMono = TtfFontBaker.Bake(File.OpenRead(@"Content/iosevka-term-extendedmedium.ttf"), |
|
240 | var bakedMono = TtfFontBaker.Bake(File.OpenRead(@"Content/iosevka-term-extendedmedium.ttf"), |
@@ -31,8 +31,11 | |||||
|
31 | foreach (ref readonly var entity in ReadEntities<AreaComponent>()) |
|
31 | foreach (ref readonly var entity in ReadEntities<AreaComponent>()) |
|
32 | { |
|
32 | { |
|
33 | var areaComponent = GetComponent<AreaComponent>(entity); |
|
33 | var areaComponent = GetComponent<AreaComponent>(entity); |
|
34 | Tile.DrawOutlinedSquares(batch, areaComponent.squares, Color.Teal); |
|
34 | if (!HasComponent<ContractStatusComponent>(entity) |
|
35 |
|
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