DDraceNetwork Documentation
Loading...
Searching...
No Matches
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
6
#include <
engine/shared/packer.h
>
7
#include <
engine/shared/uuid_manager.h
>
8
9
class
CMsgPacker
:
public
CPacker
10
{
11
public
:
12
int
m_MsgId
;
13
bool
m_System
;
14
bool
m_NoTranslate
;
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
CAbstractPacker::Reset
void Reset()
Definition
packer.cpp:14
CMsgPacker
Definition
message.h:10
CMsgPacker::m_MsgId
int m_MsgId
Definition
message.h:12
CMsgPacker::m_System
bool m_System
Definition
message.h:13
CMsgPacker::m_NoTranslate
bool m_NoTranslate
Definition
message.h:14
CMsgPacker::CMsgPacker
CMsgPacker(const T *, bool System=false, bool NoTranslate=false)
Definition
message.h:22
CMsgPacker::CMsgPacker
CMsgPacker(int Type, bool System=false, bool NoTranslate=false)
Definition
message.h:15
CPacker
Definition
packer.h:38
vector2_base
Definition
vmath.h:15
packer.h
uuid_manager.h
src
engine
message.h
Generated by
1.9.8