Team Fortress 2 Source Code as on 22/4/2020
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.

54 lines
1.3 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: The main manager of the networking code in the game
  4. //
  5. // $Revision: $
  6. // $NoKeywords: $
  7. //===========================================================================//
  8. #ifndef NETWORKMESSAGES_H
  9. #define NETWORKMESSAGES_H
  10. #ifdef _WIN32
  11. #pragma once
  12. #endif
  13. #include "networksystem/inetworkmessage.h"
  14. #include "tier1/utlstring.h"
  15. //-----------------------------------------------------------------------------
  16. // Network message group
  17. //-----------------------------------------------------------------------------
  18. enum LegionNetworkGroups_t
  19. {
  20. LEGION_NETMESSAGE_GROUP = NETWORKSYSTEM_FIRST_GROUP,
  21. };
  22. //-----------------------------------------------------------------------------
  23. // Network message types
  24. //-----------------------------------------------------------------------------
  25. enum LegionNetworkTypes_t
  26. {
  27. CHAT_MESSAGE = 0,
  28. };
  29. //-----------------------------------------------------------------------------
  30. // Chat network message
  31. //-----------------------------------------------------------------------------
  32. class CNetworkMessage_Chat : public CNetworkMessage
  33. {
  34. public:
  35. CNetworkMessage_Chat();
  36. DECLARE_BASE_MESSAGE( LEGION_NETMESSAGE_GROUP, CHAT_MESSAGE, "Chat Message" )
  37. CUtlString m_Message;
  38. };
  39. #endif // NETWORKMESSAGES_H