diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-10-08 17:04:40 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-10-08 17:04:40 +0100 |
commit | f6890e8077133b5dd2cc0a92270d2a328d6c5ab9 (patch) | |
tree | e24cf13bf3e5d90409ed46a86f87668718e48fcf /ui/gameMainWindow.cpp | |
parent | Add collection methods for finding and/or creating objects (diff) | |
download | ilt-f6890e8077133b5dd2cc0a92270d2a328d6c5ab9.tar.bz2 ilt-f6890e8077133b5dd2cc0a92270d2a328d6c5ab9.tar.xz ilt-f6890e8077133b5dd2cc0a92270d2a328d6c5ab9.zip |
Initial commit of a basic working network editor
Diffstat (limited to 'ui/gameMainWindow.cpp')
-rw-r--r-- | ui/gameMainWindow.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/gameMainWindow.cpp b/ui/gameMainWindow.cpp index daa5494..84d0ca6 100644 --- a/ui/gameMainWindow.cpp +++ b/ui/gameMainWindow.cpp @@ -11,6 +11,7 @@ #include <SDL2/SDL.h> #include <collection.hpp> #include <game/gamestate.h> +#include <game/network/rail.h> #include <game/worldobject.h> // IWYU pragma: keep #include <gfx/renderable.h> #include <glm/glm.hpp> @@ -22,7 +23,7 @@ public: explicit GameMainToolbar(GameMainSelector * gms_) : Mode<decltype(GameMainSelector::target)> {gms_->target}, Toolbar { {"ui/icon/network.png", - toggle<EditNetwork>()}, + toggle<EditNetworkOf<RailLinks>>()}, } { } |