PageRenderTime 21ms CodeModel.GetById 15ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

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