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

Event that is fired by the Core module to signal to the game to open a store. More...

#include <Store.hpp>

Public Member Functions

 StoreOpened (const std::vector< std::pair< item::Id, int >> &items, const std::vector< std::pair< item::Id, int >> &sellPrices)
 Construct a new Store Opened event. More...
 

Public Attributes

const std::vector< std::pair< item::Id, int > > & items
 
const std::vector< std::pair< item::Id, int > > & sellPrices
 

Detailed Description

Event that is fired by the Core module to signal to the game to open a store.

Definition at line 17 of file Store.hpp.

Constructor & Destructor Documentation

◆ StoreOpened()

core::event::StoreOpened::StoreOpened ( const std::vector< std::pair< item::Id, int >> &  items,
const std::vector< std::pair< item::Id, int >> &  sellPrices 
)
inline

Construct a new Store Opened event.

Parameters
itemsThe items to sell
sellPricesOptional overrides of the prices a player gets for selling certain items

Definition at line 24 of file Store.hpp.

Member Data Documentation

◆ items

const std::vector<std::pair<item::Id, int> >& core::event::StoreOpened::items

Definition at line 29 of file Store.hpp.

◆ sellPrices

const std::vector<std::pair<item::Id, int> >& core::event::StoreOpened::sellPrices

Definition at line 30 of file Store.hpp.


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