#pragma once #include struct Fish_LuckyDrawCFGData { //索引 int mIndex; //价值校验值 std::vector mPinValue; //类型 int mStarLvl; //物品类型 int mItemType; //物品数量 int mItemCount; //道具价值 int mItemValue; //普通概率 std::vector mNormalProb; //无彩券概率 std::vector mNoChipProb; }; class Fish_LuckyDrawCFG { public: private: static std::auto_ptr msSingleton; public: int GetCount(); const Fish_LuckyDrawCFGData* GetData(int Index); const std::map& GetMapData(); void Load(); void LoadLua(); void Reload(); static Fish_LuckyDrawCFG* GetSingleton(); static void Release(); private: std::map mMapData; };