Files
2022-10-26 12:25:11 +08:00

90 lines
2.3 KiB
C++

#pragma once
#include <slm/IncludeSLM.h>
namespace ConvenienceStore
{
class PropertyInfo;
class ProductInfo;
class ProductItem;
class PurchaseItem;
namespace Define
{
enum ShopMenuType
{
kShopMenuType_Cash = 0,
kShopMenuType_PPCard,
kShopMenuType_Mileage,
kShopMenuType_Mypage,
kShopMenuType_Size,
};
enum MyPageType
{
kMyPageType_BuyBox = 0,
kMyPageType_RecvBox,
kMyPageType_Size,
};
enum PopupMenuKind
{
kPopupMenuKind_Two = 0,
kPopupMenuKind_Three,
kPopupMenuKind_Four,
kPopupMenuKind_Five,
kPopupMenuKind_Size,
};
enum CashType
{
kCashType_Cash = 0,
kCashType_PPCard,
kCashType_Mileage,
kCashType_Size,
};
enum ShopPropertyType
{
kShopProperty_Price = 0,
kShopProperty_SellKind,
kShopProperty_Inchant,
kShopProperty_Socket,
kShopProperty_Size,
};
enum ShopProductType
{
kShopProduct_Waste = 0,
kShopProduct_Infinite,
kShopProduct_Date,
kShopProduct_Size,
};
static const int kProductType[kShopProduct_Size] = {138, 139, 140};
static const int kPropertySeq_Waste[kShopProperty_Size] = {7, 111, 114, 117};
static const int kPropertySeq_Infinite[kShopProperty_Size] = {8, 112, 115, 118};
static const int kPropertySeq_Date[kShopProperty_Size] = {10, 113, 116, 119};
static const int kPropertyType_Price = 142;
static const int kPropertyType_Attribute = 141;
static const int kCapsuleFlag_Normal = 177;
static const int kCapsuleFlag_Lotto = 176;
}
Define::ShopProductType GetProductType(IN CShopProduct* const shop_product);
bool FindShopProduct(CShopPackage* shop_package, int price_seq,
OUT CShopProduct*& shop_product,
OUT CShopProductLink*& shop_product_link);
CShopCategoryList* category_list();
CShopPackageList* package_list();
CShopProductList* product_list();
CShopPropertyList* property_list();
CShopProductLinkList* productlink_list();
}