Peoplemon  0.1.0
Peoplemon 3 game source documentation
Public Types | Public Member Functions | Public Attributes | List of all members
core::event::OpenBagMenu Struct Reference

Event that is fired when the bag menu should be opened. More...

#include <BagMenu.hpp>

Public Types

enum class  Context { BattleUse , PauseMenu }
 Represents how the menu should be opened. More...
 

Public Member Functions

 OpenBagMenu (Context ctx, item::Id *result=nullptr, int outNow=-1, int *chosenPeoplemon=nullptr)
 Construct a new Open Bag Menu event. More...
 

Public Attributes

const Context context
 
item::Id *const result
 
const int outNow
 
int *const chosenPeoplemon
 

Detailed Description

Event that is fired when the bag menu should be opened.

Definition at line 16 of file BagMenu.hpp.

Member Enumeration Documentation

◆ Context

Represents how the menu should be opened.

Enumerator
BattleUse 
PauseMenu 

Definition at line 18 of file BagMenu.hpp.

Constructor & Destructor Documentation

◆ OpenBagMenu()

core::event::OpenBagMenu::OpenBagMenu ( Context  ctx,
item::Id result = nullptr,
int  outNow = -1,
int *  chosenPeoplemon = nullptr 
)
inline

Construct a new Open Bag Menu event.

Parameters
ctxThe context to open the menu with
resultWhere to store the chosen item
outNowWhich peoplemon is out now
chosenPeoplemonWhere to store the chosen peoplemon

Definition at line 28 of file BagMenu.hpp.

Member Data Documentation

◆ chosenPeoplemon

int* const core::event::OpenBagMenu::chosenPeoplemon

Definition at line 38 of file BagMenu.hpp.

◆ context

const Context core::event::OpenBagMenu::context

Definition at line 35 of file BagMenu.hpp.

◆ outNow

const int core::event::OpenBagMenu::outNow

Definition at line 37 of file BagMenu.hpp.

◆ result

item::Id* const core::event::OpenBagMenu::result

Definition at line 36 of file BagMenu.hpp.


The documentation for this struct was generated from the following file: