DDraceNetwork Docs
message.h
Go to the documentation of this file.
1/* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */
2/* If you are missing that file, acquire a complete release at teeworlds.com. */
3#ifndef ENGINE_MESSAGE_H
4#define ENGINE_MESSAGE_H
5
8
9class CMsgPacker : public CPacker
10{
11public:
15 CMsgPacker(int Type, bool System = false, bool NoTranslate = false) :
16 m_MsgId(Type), m_System(System), m_NoTranslate(NoTranslate)
17 {
18 Reset();
19 }
20
21 template<typename T>
22 CMsgPacker(const T *, bool System = false, bool NoTranslate = false) :
23 CMsgPacker(T::ms_MsgId, System, NoTranslate)
24 {
25 }
26};
27
28#endif
Definition: message.h:10
int m_MsgId
Definition: message.h:12
bool m_System
Definition: message.h:13
bool m_NoTranslate
Definition: message.h:14
CMsgPacker(const T *, bool System=false, bool NoTranslate=false)
Definition: message.h:22
CMsgPacker(int Type, bool System=false, bool NoTranslate=false)
Definition: message.h:15
Definition: packer.h:7
void Reset()
Definition: packer.cpp:8