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

Event that is fired when an item is purchased in a store. More...

#include <Store.hpp>

Public Member Functions

 ItemPurchased (item::Id item, int qty)
 Construct a new Item Purchased event. More...
 

Public Attributes

const item::Id item
 
const int qty
 

Detailed Description

Event that is fired when an item is purchased in a store.

Definition at line 39 of file Store.hpp.

Constructor & Destructor Documentation

◆ ItemPurchased()

core::event::ItemPurchased::ItemPurchased ( item::Id  item,
int  qty 
)
inline

Construct a new Item Purchased event.

Parameters
itemThe item that was purchased
qtyThe amount that was purchased

Definition at line 46 of file Store.hpp.

Member Data Documentation

◆ item

const item::Id core::event::ItemPurchased::item

Definition at line 50 of file Store.hpp.

◆ qty

const int core::event::ItemPurchased::qty

Definition at line 51 of file Store.hpp.


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