#pragma once #include "gui/state.h" #include class Group; class MainMenu : public GUIState { public: struct Callbacks { std::function onAppendGameState; }; explicit MainMenu(sf::RenderWindow& game_window, Callbacks&& callbacks); virtual void input(const sf::Event& event) override; virtual void update() override; virtual void draw() const override; virtual void enter() override; virtual void leave() override; private: std::shared_ptr _buttons; sf::RenderWindow& _game_window; };