Counter Strike : Global Offensive Source Code
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.

51 lines
1.1 KiB

  1. //====== Copyright (C), Valve Corporation, All rights reserved. =======
  2. //
  3. // Purpose: This file defines all of our over-the-wire net protocols for the
  4. // Game Coordinator that are mod-independent. Note that we never use types
  5. // with undefined length (like int). Always use an explicit type
  6. // (like int32).
  7. //
  8. //=============================================================================
  9. #ifndef GENERIC_GCMESSAGES_H
  10. #define GENERIC_GCMESSAGES_H
  11. #ifdef _WIN32
  12. #pragma once
  13. #endif
  14. enum EGCMsg
  15. {
  16. k_EMsgGCInvalid = 0,
  17. k_EMsgGCMulti = 1,
  18. k_EMsgGCGenericReply = 10,
  19. k_EMsgGCBase = 1000,
  20. k_EMsgGCKVCommand = k_EMsgGCBase + 1,
  21. k_EMsgGCKVCommandResponse = k_EMsgGCBase + 2,
  22. k_EMsgGCModBase = 2000,
  23. };
  24. // generic zero-length message struct
  25. struct MsgGCEmpty_t
  26. {
  27. };
  28. // k_EMsgGCKVCommand
  29. struct MsgGCGenericKV_t
  30. {
  31. // Variable length data:
  32. // A serialized KeyValues structure
  33. };
  34. // k_EMsgGCKVCommandResponse
  35. struct MsgGCGenericKVResponse_t
  36. {
  37. bool m_bSuccess;
  38. // Variable length data:
  39. // A serialized KeyValues structure
  40. };
  41. #endif