Peoplemon  0.1.0
Peoplemon 3 game source documentation
BagMenu.hpp
Go to the documentation of this file.
1 #ifndef CORE_EVENTS_BAGMENU_HPP
2 #define CORE_EVENTS_BAGMENU_HPP
3 
4 #include <Core/Items/Id.hpp>
5 
6 namespace core
7 {
8 namespace event
9 {
16 struct OpenBagMenu {
18  enum struct Context { BattleUse, PauseMenu };
19 
28  OpenBagMenu(Context ctx, item::Id* result = nullptr, int outNow = -1,
29  int* chosenPeoplemon = nullptr)
30  : context(ctx)
31  , result(result)
32  , outNow(outNow)
34 
36  item::Id* const result;
37  const int outNow;
38  int* const chosenPeoplemon;
39 };
40 
41 } // namespace event
42 } // namespace core
43 
44 #endif
Id
Represents an item in its simplist form.
Definition: Id.hpp:24
Core classes and functionality for both the editor and game.
Event that is fired when the bag menu should be opened.
Definition: BagMenu.hpp:16
item::Id *const result
Definition: BagMenu.hpp:36
const Context context
Definition: BagMenu.hpp:35
int *const chosenPeoplemon
Definition: BagMenu.hpp:38
OpenBagMenu(Context ctx, item::Id *result=nullptr, int outNow=-1, int *chosenPeoplemon=nullptr)
Construct a new Open Bag Menu event.
Definition: BagMenu.hpp:28
Context
Represents how the menu should be opened.
Definition: BagMenu.hpp:18