诸暨麻将添加redis
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 
 
 
 

101 satır
2.8 KiB

  1. #ifndef CMD_COMMOM_HEAD_FILE
  2. #define CMD_COMMOM_HEAD_FILE
  3. #pragma pack(1)
  4. //////////////////////////////////////////////////////////////////////////////////
  5. #define MDM_CM_SYSTEM 1000 //系统命令
  6. #define SUB_CM_SYSTEM_MESSAGE 1 //系统消息
  7. #define SUB_CM_ACTION_MESSAGE 2 //动作消息
  8. #define SUB_CM_DOWN_LOAD_MODULE 3 //下载消息
  9. //////////////////////////////////////////////////////////////////////////////////
  10. //类型掩码
  11. //#define SMT_CHAT 0x0001 //聊天消息
  12. //#define SMT_EJECT 0x0002 //弹出消息
  13. //#define SMT_GLOBAL 0x0004 //全局消息
  14. //#define SMT_PROMPT 0x0008 //提示消息
  15. //#define SMT_TABLE_ROLL 0x0010 //滚动消息
  16. //控制掩码
  17. #define SMT_CLOSE_ROOM 0x0100 //关闭房间
  18. #define SMT_CLOSE_GAME 0x0200 //关闭游戏
  19. #define SMT_CLOSE_LINK 0x0400 //中断连接
  20. #define SMT_CLOSE_INSURE 0x0800 //关闭银行
  21. #define SMT_CLOSE_SEND 0x0014 //相同用户登录 先前用户被T
  22. #define SMT_SYS 0x0015 //系统消息
  23. #define SMT_TABLE_EXIT 0x0012 //房间解散
  24. //系统消息
  25. struct CMD_CM_SystemMessage
  26. {
  27. WORD wType; //消息类型
  28. WORD wLength; //消息长度
  29. TCHAR szString[1024]; //消息内容
  30. };
  31. //////////////////////////////////////////////////////////////////////////////////
  32. //动作类型
  33. #define ACT_BROWSE 1 //浏览动作
  34. #define ACT_DOWN_LOAD 2 //下载动作
  35. //动作信息
  36. struct tagActionHead
  37. {
  38. UINT uResponseID; //响应标识
  39. WORD wAppendSize; //附加大小
  40. BYTE cbActionType; //动作类型
  41. };
  42. //浏览类型
  43. #define BRT_IE 0x01 //I E 浏览
  44. #define BRT_PLAZA 0x02 //大厅浏览
  45. #define BRT_WINDOWS 0x04 //窗口浏览
  46. //浏览动作
  47. struct tagActionBrowse
  48. {
  49. BYTE cbBrowseType; //浏览类型
  50. TCHAR szBrowseUrl[256]; //浏览地址
  51. };
  52. //下载类型
  53. #define DLT_IE 1 //I E 下载
  54. #define DLT_MODULE 2 //下载模块
  55. //下载动作
  56. struct tagActionDownLoad
  57. {
  58. BYTE cbDownLoadMode; //下载方式
  59. TCHAR szDownLoadUrl[256]; //下载地址
  60. };
  61. //动作消息
  62. struct CMD_CM_ActionMessage
  63. {
  64. WORD wType; //消息类型
  65. WORD wLength; //消息长度
  66. UINT nButtonType; //按钮类型
  67. TCHAR szString[1024]; //消息内容
  68. };
  69. //////////////////////////////////////////////////////////////////////////////////
  70. //下载信息
  71. struct CMD_CM_DownLoadModule
  72. {
  73. BYTE cbShowUI; //显示界面
  74. BYTE cbAutoInstall; //自动安装
  75. WORD wFileNameSize; //名字长度
  76. WORD wDescribeSize; //描述长度
  77. WORD wDownLoadUrlSize; //地址长度
  78. };
  79. //////////////////////////////////////////////////////////////////////////////////
  80. #pragma pack()
  81. #endif