SEGS  0.6.1-develop [d2cac982]
Super Entity Game Server
EmailMessageStatus.h
Go to the documentation of this file.
1 /*
2  * SEGS - Super Entity Game Server
3  * http://www.segs.io/
4  * Copyright (c) 2006 - 2019 SEGS Team (see AUTHORS.md)
5  * This software is licensed under the terms of the 3-clause BSD License. See LICENSE.md for details.
6  */
7 
8 #pragma once
9 #include "GameCommand.h"
10 #include "MapEventTypes.h"
11 #include "BitStream.h"
12 
13 #include <QtCore/QString>
14 
15 namespace SEGSEvents
16 {
17 // [[ev_def:type]]
19 {
20 public:
21  explicit EmailMessageStatus() : GameCommandEvent(evEmailMessageStatus) {}
22  EmailMessageStatus(const int status, const QString recipient) : GameCommandEvent(evEmailMessageStatus),
23  m_status(status),
24  m_recipient(recipient)
25  {
26  }
27 
28  void serializeto(BitStream &bs) const override
29  {
30  bs.StorePackedBits(1, type()-evFirstServerToClient);
32  if (!m_status)
34  }
35 
36  // [[ev_def:field]]
37  int m_status;
38  // [[ev_def:field]]
39  QString m_recipient;
40 
42 };
43 
44 }
Definition: GameCommand.h:16
QString m_recipient
Definition: EmailMessageStatus.h:39
int m_status
Definition: EmailMessageStatus.h:37
EmailMessageStatus()
Definition: EmailMessageStatus.h:21
Definition: BitStream.h:34
Definition: LinkLevelEvent.h:13
void StorePackedBits(uint32_t nBits, uint32_t dataBits)
Definition: BitStream.cpp:161
void StoreString(const char *str)
Definition: BitStream.cpp:204
uint32_t type() const
Definition: SEGSEvent.h:66
void serializeto(BitStream &bs) const override
Definition: EmailMessageStatus.h:28
#define EVENT_IMPL(name)
Definition: SEGSEvent.h:77
Definition: EmailMessageStatus.h:18
EmailMessageStatus(const int status, const QString recipient)
Definition: EmailMessageStatus.h:22