Lighting is now in its own class using the new Pathing class. This should allow me to make it more consistent and possibly make Pathing more efficient.
This commit is contained in:
parent
e05335b153
commit
3f7a9cc124
18 changed files with 209 additions and 257 deletions
3
gui.hpp
3
gui.hpp
|
@ -18,9 +18,11 @@
|
|||
#include "sound.hpp"
|
||||
#include "render.hpp"
|
||||
#include "panel.hpp"
|
||||
#include "lights.hpp"
|
||||
|
||||
using std::string;
|
||||
using ftxui::Canvas, ftxui::Component, ftxui::Screen, ftxui::Button;
|
||||
using lighting::LightRender;
|
||||
|
||||
constexpr int SCREEN_WIDTH = 40;
|
||||
constexpr int SCREEN_HEIGHT = 30;
|
||||
|
@ -47,6 +49,7 @@ class GUI {
|
|||
ActionLog $log;
|
||||
Panel $status_ui;
|
||||
Panel $map_view;
|
||||
LightRender $lights;
|
||||
bool $show_modal = false;
|
||||
Component $test_button;
|
||||
DinkyECS::World& $world;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue