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.

23 lines
611 B

  1. //====== Copyright c, Valve Corporation, All rights reserved. =======
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================
  6. #include "cbase.h"
  7. #include "base_gcmessages.pb.h"
  8. #include "lobby.h"
  9. #include "gcsdk/accountdetails.h"
  10. using namespace GCSDK;
  11. #ifdef GC
  12. void CLobbyInvite::YldInitFromPlayerGroup( const GCSDK::IPlayerGroup *pPlayerGroup )
  13. {
  14. SetGroupID( pPlayerGroup->GetGroupID() );
  15. SetSenderID( pPlayerGroup->GetLeader().ConvertToUint64() );
  16. SetSenderName( GGCBase()->YieldingGetPersonaName( pPlayerGroup->GetLeader(), "Unknown Player" ) );
  17. }
  18. #endif