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.

64 lines
1.9 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. // Inter-Game Coordinator messages. Note that we never use types
  5. // with undefined length (like int). Always use an explicit type
  6. // (like int32).
  7. //
  8. //=============================================================================
  9. #ifndef SHARED_GCMESSAGES_H
  10. #define SHARED_GCMESSAGES_H
  11. #ifdef _WIN32
  12. #pragma once
  13. #endif
  14. enum EGCSharedMsg
  15. {
  16. k_EMsgInterGCBase = 7000,
  17. k_EMsgInterGCAchievementAwarded = k_EMsgInterGCBase + 1,
  18. k_EMsgInterGCAchievementAwardedResponse = k_EMsgInterGCBase + 2,
  19. k_EMsgInterGCLoadAchievements = k_EMsgInterGCBase + 3,
  20. k_EMsgInterGCLoadAchievementResponse = k_EMsgInterGCBase + 4,
  21. };
  22. // k_EMsgInterGCAchievementAwarded
  23. struct MsgInterGCAchievementAwarded_t
  24. {
  25. uint64 m_ulSteamID; // steam ID of the user that earned the achievement
  26. // Variable data:
  27. // - name of the achievement
  28. };
  29. // k_EMsgInterGCAchievementAwardedResponse
  30. struct MsgInterGCAchievementAwardedResponse_t
  31. {
  32. uint64 m_ulSteamID; // steam ID of the user that earned the achievement
  33. uint64 m_ulItemID; // ID of the item awarded
  34. bool m_bAppPlayed; // true if the user has played the target game
  35. // Variable data:
  36. // - name of the achievement
  37. };
  38. // k_EMsgInterGCLoadAchievements
  39. struct MsgInterGCLoadAchievements_t
  40. {
  41. uint64 m_ulSteamID; // steam ID of the user that earned the achievement
  42. uint32 m_cAchievements; // number of achievement names in the variable data
  43. // Variable data:
  44. // - name of the achievement
  45. };
  46. // k_EMsgInterGCLoadAchievementsResponse
  47. struct MsgInterGCLoadAchievementsResponse_t
  48. {
  49. uint64 m_ulSteamID; // steam ID of the user that earned the achievement
  50. uint32 m_cAchievements; // number of achievement bools in the variable data
  51. // Variable data:
  52. // - a bool for the achievement
  53. };
  54. #endif