You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.3 KiB
55 lines
1.3 KiB
5 years ago
|
//========= Copyright Valve Corporation, All rights reserved. ============//
|
||
|
//
|
||
|
// Purpose: The main manager of the networking code in the game
|
||
|
//
|
||
|
// $Revision: $
|
||
|
// $NoKeywords: $
|
||
|
//===========================================================================//
|
||
|
|
||
|
#ifndef NETWORKMESSAGES_H
|
||
|
#define NETWORKMESSAGES_H
|
||
|
|
||
|
#ifdef _WIN32
|
||
|
#pragma once
|
||
|
#endif
|
||
|
|
||
|
|
||
|
#include "networksystem/inetworkmessage.h"
|
||
|
#include "tier1/utlstring.h"
|
||
|
|
||
|
|
||
|
//-----------------------------------------------------------------------------
|
||
|
// Network message group
|
||
|
//-----------------------------------------------------------------------------
|
||
|
enum LegionNetworkGroups_t
|
||
|
{
|
||
|
LEGION_NETMESSAGE_GROUP = NETWORKSYSTEM_FIRST_GROUP,
|
||
|
};
|
||
|
|
||
|
|
||
|
//-----------------------------------------------------------------------------
|
||
|
// Network message types
|
||
|
//-----------------------------------------------------------------------------
|
||
|
enum LegionNetworkTypes_t
|
||
|
{
|
||
|
CHAT_MESSAGE = 0,
|
||
|
};
|
||
|
|
||
|
|
||
|
//-----------------------------------------------------------------------------
|
||
|
// Chat network message
|
||
|
//-----------------------------------------------------------------------------
|
||
|
class CNetworkMessage_Chat : public CNetworkMessage
|
||
|
{
|
||
|
public:
|
||
|
CNetworkMessage_Chat();
|
||
|
|
||
|
DECLARE_BASE_MESSAGE( LEGION_NETMESSAGE_GROUP, CHAT_MESSAGE, "Chat Message" )
|
||
|
|
||
|
CUtlString m_Message;
|
||
|
};
|
||
|
|
||
|
#endif // NETWORKMESSAGES_H
|
||
|
|
||
|
|