诸暨麻将添加redis
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

42 lines
998 B

  1. #ifndef GAME_PROPERTY_MANAGER_HEAD_FILE
  2. #define GAME_PROPERTY_MANAGER_HEAD_FILE
  3. #pragma once
  4. #include "GameServiceHead.h"
  5. //////////////////////////////////////////////////////////////////////////////////
  6. //类型定义
  7. typedef CWHArray<tagPropertyInfo> CPropertyInfoArray; //道具数组
  8. //////////////////////////////////////////////////////////////////////////////////
  9. //道具管理
  10. class GAME_SERVICE_CLASS CGamePropertyManager
  11. {
  12. //变量定义
  13. protected:
  14. CPropertyInfoArray m_PropertyInfoArray; //道具数组
  15. //函数定义
  16. public:
  17. //构造函数
  18. CGamePropertyManager();
  19. //析构函数
  20. virtual ~CGamePropertyManager();
  21. //配置函数
  22. public:
  23. //设置道具
  24. bool SetGamePropertyInfo(tagPropertyInfo PropertyInfo[], WORD wPropertyCount);
  25. //功能函数
  26. public:
  27. //查找道具
  28. tagPropertyInfo * SearchPropertyItem(WORD wPropertyIndex);
  29. };
  30. //////////////////////////////////////////////////////////////////////////////////
  31. #endif