/TGame/TCommonSvr/Message/DBMessageCoolDown.h

http://awoe.googlecode.com/ · C Header · 107 lines · 72 code · 21 blank · 14 comment · 0 complexity · 352a1a95520dc7d452889739d9953fdb MD5 · raw file

  1. //
  2. // Generated by lua
  3. // 2009-2011 (C) Simplay Inc. Reserved
  4. //
  5. #ifndef __MSG_DB_CoolDown_H__
  6. #define __MSG_DB_CoolDown_H__
  7. #include "DBMessage.h"
  8. #pragma pack(push, 1)
  9. //
  10. // Message Definition for DBCoolDown//
  11. struct DBCoolDown{
  12. public:
  13. DBCoolDown()
  14. {
  15. type = 0;
  16. time = 0;
  17. datax = 0;
  18. datay = 0;
  19. dataz = 0;
  20. }
  21. DBCoolDown& operator = (const DBCoolDown& o)
  22. {
  23. type = o.type;
  24. time = o.time;
  25. datax = o.datax;
  26. datay = o.datay;
  27. dataz = o.dataz;
  28. }
  29. short type;
  30. int time;
  31. int datax;
  32. int datay;
  33. int dataz;
  34. };
  35. //
  36. // Message Definition for LoadCoolDowns//
  37. class MsgLoadCoolDowns : public DBMessage{
  38. public:
  39. enum { Category = Msg::MC_DB_CoolDown, Id = 1};
  40. MsgLoadCoolDowns():DBMessage(Category, Id)
  41. {
  42. pid = 0;
  43. }
  44. int pid;
  45. typedef std::list< DBCoolDown > DBCoolDownList;
  46. DBCoolDownList cds;
  47. };
  48. //
  49. // Message Definition for CreateCoolDown//
  50. class MsgCreateCoolDown : public DBMessage{
  51. public:
  52. enum { Category = Msg::MC_DB_CoolDown, Id = 2};
  53. MsgCreateCoolDown():DBMessage(Category, Id)
  54. {
  55. pid = 0;
  56. }
  57. int pid;
  58. DBCoolDown cd;
  59. };
  60. //
  61. // Message Definition for UpdateCoolDown//
  62. class MsgUpdateCoolDown : public DBMessage{
  63. public:
  64. enum { Category = Msg::MC_DB_CoolDown, Id = 3};
  65. MsgUpdateCoolDown():DBMessage(Category, Id)
  66. {
  67. pid = 0;
  68. }
  69. int pid;
  70. DBCoolDown cd;
  71. };
  72. //
  73. // Message Definition for RemoveCoolDown//
  74. class MsgRemoveCoolDown : public DBMessage{
  75. public:
  76. enum { Category = Msg::MC_DB_CoolDown, Id = 4};
  77. MsgRemoveCoolDown():DBMessage(Category, Id)
  78. {
  79. pid = 0;
  80. type = 0;
  81. }
  82. int pid;
  83. int type;
  84. };
  85. #pragma pack(pop)
  86. #endif