summaryrefslogtreecommitdiff
path: root/game/shared/lobby.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'game/shared/lobby.cpp')
-rw-r--r--game/shared/lobby.cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/game/shared/lobby.cpp b/game/shared/lobby.cpp
new file mode 100644
index 0000000..8edb38a
--- /dev/null
+++ b/game/shared/lobby.cpp
@@ -0,0 +1,23 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+//=============================================================================
+
+
+#include "cbase.h"
+#include "gcsdk/gcsdk_auto.h"
+#include "base_gcmessages.pb.h"
+#include "lobby.h"
+#include "gcsdk/accountdetails.h"
+
+using namespace GCSDK;
+
+#ifdef GC
+void CLobbyInvite::YldInitFromPlayerGroup( GCSDK::IPlayerGroup *pPlayerGroup )
+{
+ SetGroupID( pPlayerGroup->GetGroupID() );
+ SetSenderID( pPlayerGroup->GetLeader().ConvertToUint64() );
+ SetSenderName( GGCBase()->YieldingGetPersonaName( pPlayerGroup->GetLeader(), "Unknown Player" ) );
+}
+#endif \ No newline at end of file