2010-11-20 10:37:14 +00:00
|
|
|
/* (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. */
|
2010-05-29 07:25:38 +00:00
|
|
|
#ifndef ENGINE_MESSAGE_H
|
|
|
|
#define ENGINE_MESSAGE_H
|
2009-10-29 12:14:31 +00:00
|
|
|
|
2010-05-29 07:25:38 +00:00
|
|
|
#include <engine/shared/packer.h>
|
2017-05-21 23:07:13 +00:00
|
|
|
#include <engine/shared/uuid_manager.h>
|
2009-10-29 12:14:31 +00:00
|
|
|
|
2010-05-29 07:25:38 +00:00
|
|
|
class CMsgPacker : public CPacker
|
2009-10-29 12:14:31 +00:00
|
|
|
{
|
|
|
|
public:
|
2020-04-13 13:34:53 +00:00
|
|
|
int m_MsgID;
|
|
|
|
bool m_System;
|
2020-06-14 17:32:14 +00:00
|
|
|
bool m_NoTranslate;
|
2020-09-26 19:41:58 +00:00
|
|
|
CMsgPacker(int Type, bool System = false, bool NoTranslate = false) :
|
|
|
|
m_MsgID(Type), m_System(System), m_NoTranslate(NoTranslate)
|
2010-05-29 07:25:38 +00:00
|
|
|
{
|
|
|
|
Reset();
|
|
|
|
}
|
2009-10-29 12:14:31 +00:00
|
|
|
};
|
2010-05-29 07:25:38 +00:00
|
|
|
|
|
|
|
#endif
|