Description:
Rename Bridge Engine.
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
|
1 | NO CONTENT: modified file, binary diff hidden |
|
NO CONTENT: modified file, binary diff hidden |
|
1 | NO CONTENT: modified file, binary diff hidden |
|
NO CONTENT: modified file, binary diff hidden |
|
1 | NO CONTENT: modified file, binary diff hidden |
|
NO CONTENT: modified file, binary diff hidden |
|
1 | NO CONTENT: modified file, binary diff hidden |
|
NO CONTENT: modified file, binary diff hidden |
|
1 | NO CONTENT: modified file, binary diff hidden |
|
NO CONTENT: modified file, binary diff hidden |
@@ -7,12 +7,12 | |||||
|
7 | namespace isometricparkfna.Engines { |
|
7 | namespace isometricparkfna.Engines { |
|
8 |
|
8 | ||
|
9 | [Sends(typeof(ToggleWindowMessage))] |
|
9 | [Sends(typeof(ToggleWindowMessage))] |
|
10 |
public class |
|
10 | public class ImGuiWindowBridgeEngine : Engine |
|
11 | { |
|
11 | { |
|
12 |
|
12 | ||
|
13 | public List<ToggleWindowMessage> messages; |
|
13 | public List<ToggleWindowMessage> messages; |
|
14 |
|
14 | ||
|
15 |
public |
|
15 | public ImGuiWindowBridgeEngine() |
|
16 | { |
|
16 | { |
|
17 | this.messages = new List<ToggleWindowMessage>(); |
|
17 | this.messages = new List<ToggleWindowMessage>(); |
|
18 | } |
|
18 | } |
@@ -89,7 +89,7 | |||||
|
89 | private WorldBuilder WorldBuilder = new WorldBuilder(); |
|
89 | private WorldBuilder WorldBuilder = new WorldBuilder(); |
|
90 | private World World; |
|
90 | private World World; |
|
91 |
|
91 | ||
|
92 |
private |
|
92 | private ImGuiWindowBridgeEngine imGuiWindowBridgeEngine; |
|
93 |
|
93 | ||
|
94 | private static void Main(string[] args) |
|
94 | private static void Main(string[] args) |
|
95 | { |
|
95 | { |
@@ -190,8 +190,8 | |||||
|
190 | WorldBuilder.AddEngine(new GameBridgeEngine(this)); |
|
190 | WorldBuilder.AddEngine(new GameBridgeEngine(this)); |
|
191 | WorldBuilder.AddEngine(new SimulationBridgeEngine(this.simulation)); |
|
191 | WorldBuilder.AddEngine(new SimulationBridgeEngine(this.simulation)); |
|
192 | WorldBuilder.AddEngine(new CameraBridgeEngine(this.camera)); |
|
192 | WorldBuilder.AddEngine(new CameraBridgeEngine(this.camera)); |
|
193 |
|
|
193 | this.imGuiWindowBridgeEngine = new ImGuiWindowBridgeEngine(); |
|
194 |
WorldBuilder.AddEngine(this. |
|
194 | WorldBuilder.AddEngine(this.imGuiWindowBridgeEngine); |
|
195 |
|
195 | ||
|
196 | // var budgetWindow = WorldBuilder.CreateEntity(); |
|
196 | // var budgetWindow = WorldBuilder.CreateEntity(); |
|
197 | // WorldBuilder.SetComponent(budgetWindow, new VisibilityComponent{visible = true}); |
|
197 | // WorldBuilder.SetComponent(budgetWindow, new VisibilityComponent{visible = true}); |
@@ -820,7 +820,7 | |||||
|
820 |
|
820 | ||
|
821 | if (this.showNews) |
|
821 | if (this.showNews) |
|
822 | { |
|
822 | { |
|
823 |
NewsWindow.Render(this.showNews, debugWindow.monoFont, this.simulation, this. |
|
823 | NewsWindow.Render(this.showNews, debugWindow.monoFont, this.simulation, this.imGuiWindowBridgeEngine); |
|
824 | } |
|
824 | } |
|
825 |
|
825 | ||
|
826 | bool quit = false; |
|
826 | bool quit = false; |
@@ -63,7 +63,7 | |||||
|
63 | public static class NewsWindow |
|
63 | public static class NewsWindow |
|
64 | { |
|
64 | { |
|
65 |
|
65 | ||
|
66 |
public static void Render(bool show, ImFontPtr font, Simulation sim, |
|
66 | public static void Render(bool show, ImFontPtr font, Simulation sim, ImGuiWindowBridgeEngine engine) |
|
67 | { |
|
67 | { |
|
68 | bool newShow = show; |
|
68 | bool newShow = show; |
|
69 | if (show) |
|
69 | if (show) |
You need to be logged in to leave comments.
Login now