/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
- //
- // Generated by lua
- // 2009-2011 (C) Simplay Inc. Reserved
- //
-
- #ifndef __MSG_DB_CoolDown_H__
- #define __MSG_DB_CoolDown_H__
-
- #include "DBMessage.h"
-
- #pragma pack(push, 1)
-
- //
- // Message Definition for DBCoolDown//
- struct DBCoolDown{
- public:
- DBCoolDown()
- {
- type = 0;
- time = 0;
- datax = 0;
- datay = 0;
- dataz = 0;
- }
-
- DBCoolDown& operator = (const DBCoolDown& o)
- {
- type = o.type;
- time = o.time;
- datax = o.datax;
- datay = o.datay;
- dataz = o.dataz;
- }
-
-
- short type;
- int time;
- int datax;
- int datay;
- int dataz;
- };
-
-
- //
- // Message Definition for LoadCoolDowns//
- class MsgLoadCoolDowns : public DBMessage{
- public:
- enum { Category = Msg::MC_DB_CoolDown, Id = 1};
- MsgLoadCoolDowns():DBMessage(Category, Id)
- {
- pid = 0;
- }
-
- int pid;
- typedef std::list< DBCoolDown > DBCoolDownList;
- DBCoolDownList cds;
- };
-
- //
- // Message Definition for CreateCoolDown//
- class MsgCreateCoolDown : public DBMessage{
- public:
- enum { Category = Msg::MC_DB_CoolDown, Id = 2};
- MsgCreateCoolDown():DBMessage(Category, Id)
- {
- pid = 0;
- }
-
- int pid;
- DBCoolDown cd;
- };
-
- //
- // Message Definition for UpdateCoolDown//
- class MsgUpdateCoolDown : public DBMessage{
- public:
- enum { Category = Msg::MC_DB_CoolDown, Id = 3};
- MsgUpdateCoolDown():DBMessage(Category, Id)
- {
- pid = 0;
- }
-
- int pid;
- DBCoolDown cd;
- };
-
- //
- // Message Definition for RemoveCoolDown//
- class MsgRemoveCoolDown : public DBMessage{
- public:
- enum { Category = Msg::MC_DB_CoolDown, Id = 4};
- MsgRemoveCoolDown():DBMessage(Category, Id)
- {
- pid = 0;
- type = 0;
- }
-
- int pid;
- int type;
- };
-
-
-
- #pragma pack(pop)
-
- #endif