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.

22 lines
640 B

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