28 lines
597 B
C++
28 lines
597 B
C++
#pragma once
|
|
#include <slm/IncludeSLM.h>
|
|
#include "ProductItemList.h"
|
|
#include "Config.h"
|
|
namespace ConvenienceStore
|
|
{
|
|
class CashShop
|
|
{
|
|
public:
|
|
CashShop(void);
|
|
~CashShop(void);
|
|
private:
|
|
static CashShop* static_instance_;
|
|
CShopListManager* shop_list_manager_;
|
|
ProductItemList product_list_;
|
|
public:
|
|
static CashShop* instance() { return static_instance_; }
|
|
|
|
bool BuildShopList( CConfig * config);
|
|
|
|
ProductItem* GetProduct(int Seq);
|
|
|
|
CShopListManager* GetShopListManager(){return shop_list_manager_;}
|
|
ProductItemList& GetProductItemData() { return product_list_; }
|
|
};
|
|
}
|
|
|