mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-11 02:28:18 +00:00
29 lines
722 B
C++
29 lines
722 B
C++
/* (c) Magnus Auvinen. See licence.txt in the root of the distribution for more information. */
|
|
/* If you are missing that file, acquire a complete release at teeworlds.com. */
|
|
#ifndef ENGINE_MESSAGE_H
|
|
#define ENGINE_MESSAGE_H
|
|
|
|
#include <engine/shared/packer.h>
|
|
#include <engine/shared/uuid_manager.h>
|
|
|
|
class CMsgPacker : public CPacker
|
|
{
|
|
public:
|
|
int m_MsgID;
|
|
bool m_System;
|
|
bool m_NoTranslate;
|
|
CMsgPacker(int Type, bool System = false, bool NoTranslate = false) :
|
|
m_MsgID(Type), m_System(System), m_NoTranslate(NoTranslate)
|
|
{
|
|
Reset();
|
|
}
|
|
|
|
template<typename T>
|
|
CMsgPacker(const T *, bool System = false, bool NoTranslate = false) :
|
|
CMsgPacker(T::ms_MsgID, System, NoTranslate)
|
|
{
|
|
}
|
|
};
|
|
|
|
#endif
|