blob: 781f093b2b91404b5361f5dfd688ef0967fce097 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#ifndef SHOWWINDOWACTION_H
#define SHOWWINDOWACTION_H
#include "Game/Systems/UI/uisystem.h"
#include <map>
#include "buttonaction.h"
class ShowWindowAction : public ButtonAction
{
public:
ShowWindowAction(std::map<std::string, std::shared_ptr<UIScreen>>& screens,
std::set<std::string>& shownScreens,
const std::string screenName);
void activate() override;
void deactivate() override;
private:
std::set<std::string>& m_shownScreens;
std::string m_screenName;
std::map<std::string, std::shared_ptr<UIScreen>>& m_screens;
};
#endif // SHOWWINDOWACTION_H
|