M_GrowthFund.h 556 B

123456789101112131415161718192021222324252627282930313233
  1. #pragma once
  2. #include <map>
  3. struct M_GrowthFundData
  4. {
  5. //ID
  6. int mID;
  7. //ÀàÐÍ
  8. int mFundType;
  9. //µÈ¼¶
  10. int mLevel;
  11. //½±ÀøÎïÆ·ID
  12. std::vector<int> mItemId;
  13. //Àñ°üID
  14. int mGiftId;
  15. };
  16. class M_GrowthFund
  17. {
  18. public:
  19. private:
  20. static std::auto_ptr<M_GrowthFund> msSingleton;
  21. public:
  22. int GetCount();
  23. const M_GrowthFundData* GetData(int ID);
  24. const std::map<int, M_GrowthFundData>& GetMapData();
  25. void Load();
  26. void LoadLua();
  27. void Reload();
  28. static M_GrowthFund* GetSingleton();
  29. static void Release();
  30. private:
  31. std::map<int, M_GrowthFundData> mMapData;
  32. };