Peoplemon  0.1.0
Peoplemon 3 game source documentation
PeoplemonMenu.hpp
Go to the documentation of this file.
1 #ifndef CORE_EVENTS_PEOPLEMONMENU_HPP
2 #define CORE_EVENTS_PEOPLEMONMENU_HPP
3 
4 namespace core
5 {
6 namespace event
7 {
19  enum struct Context {
25  PauseMenu,
26  GiveItem,
27  UseItem,
29  };
30 
38  OpenPeoplemonMenu(Context ctx, int outNow = -1, int* chosen = nullptr)
39  : context(ctx)
40  , outNow(outNow)
41  , chosen(chosen) {}
42 
44  const int outNow;
45  int* chosen;
46 };
47 
48 } // namespace event
49 } // namespace core
50 
51 #endif
Core classes and functionality for both the editor and game.
Special event to trigger the opening of the peoplemon menu.
Context
Represents where the menu is being opened from.
OpenPeoplemonMenu(Context ctx, int outNow=-1, int *chosen=nullptr)
Construct a new Open Peoplemon Menu event.