This commit is contained in:
2022-04-21 12:48:20 +08:00
parent ba3f6c0325
commit d2fb2a75d2
7 changed files with 150 additions and 29 deletions

View File

@@ -1,7 +1,7 @@
#pragma once
//普通 STL
#if defined NORMAL_STL
//构造int类型容器
static std::map<std::string, int>Int_STL;
//构造float类型容器
@@ -11,17 +11,6 @@ static std::map<std::string, std::string>String_STL;
//构造bool类型容器
static std::map<std::string, bool>Bool_STL;
struct TimeSTLStruct
{
wchar_t* Name;
int Max_Time;
int Now_Time;
long long Static_Time;
HANDLE Thand;
};
//构造Time类型容器
static std::map<wchar_t*, TimeSTLStruct>Time_STL;
//构造intarr类型容器
static std::map<std::string, std::map<int, int>>IntArr_STL;
//构造floatarr类型容器
@@ -31,16 +20,28 @@ static std::map<std::string, std::map<int, std::string>>StringArr_STL;
//构造boolarr类型容器
static std::map<std::string, std::map<int, bool>>BoolArr_STL;
static std::map<int, int>aod;
static std::map<int, float>bod;
static std::map<int, std::string>cod;
static std::map<int, bool>dod;
#endif
//时间 STL
#if defined TIME_STL
struct TimeSTLStruct
{
wchar_t* Name;
int Max_Time;
int Now_Time;
long long Static_Time;
HANDLE Thand;
};
//构造Time类型容器
static std::map<wchar_t*, TimeSTLStruct>Time_STL;
#endif
ifdenf DRAGONBOX_SWITCH
//龙盒
#if defined DRAGONBOX_SWITCH
//抽奖 类型结构体
struct Dargonresult
{
@@ -60,7 +61,7 @@ struct DargonMap
static std::map<std::string, DargonMap>DargonState_STL;
//龙盒模式Map
static std::map<std::string, int>DargonModel_STL;
ifndef
#endif
class STL
{
@@ -68,8 +69,8 @@ private:
public:
//普通 STL
#if defined NORMAL_STL
//查询指定容器是否存在
static int Check_STL(std::string name,int Type,int idx = 0);
//static int Check_STL_Idx(std::string name,int idx);
@@ -92,14 +93,17 @@ public:
static float GetFloatArr_STL(std::string name, int idx);
static std::string GetStringArr_STL(std::string name, int idx);
static bool GetBoolArr_STL(std::string name, int idx);
#endif
//龙盒
#if defined DRAGONBOX_SWITCH
static void SyncDargonBox_STL();//同调龙盒包
static void DrawDargonBox_STL(char* Buffer);//设置龙盒包
static int SelectDargonBox_STL(int Type,int Index = 0);//获取龙盒包
static void DrawDargonModel_STL(int Value);//设置龙盒模式
static int SelectDargonModel_STL(int Type);//获取龙盒模式
#endif
};