Files
Sun1602/Server/ShopServer/CashShop.h
T
2022-10-26 12:25:11 +08:00

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_; }
};
}