Lobby2Client_Steam.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * Copyright (c) 2014, Oculus VR, Inc.
  3. * All rights reserved.
  4. *
  5. * This source code is licensed under the BSD-style license found in the
  6. * LICENSE file in the root directory of this source tree. An additional grant
  7. * of patent rights can be found in the PATENTS file in the same directory.
  8. *
  9. */
  10. #ifndef __LOBBY_2_CLIENT_STEAM_H
  11. #define __LOBBY_2_CLIENT_STEAM_H
  12. #include "Lobby2Plugin.h"
  13. #include "DS_OrderedList.h"
  14. #include "RakNetTypes.h"
  15. namespace RakNet
  16. {
  17. // This is a pure interface for Lobby2Client_SteamImpl
  18. class RAK_DLL_EXPORT Lobby2Client_Steam : public RakNet::Lobby2Plugin
  19. {
  20. public:
  21. // GetInstance() and DestroyInstance(instance*)
  22. STATIC_FACTORY_DECLARATIONS(Lobby2Client_Steam)
  23. virtual ~Lobby2Client_Steam() {}
  24. virtual void SendMsg(Lobby2Message *msg)=0;
  25. virtual void GetRoomMembers(DataStructures::OrderedList<uint64_t, uint64_t> &_roomMembers)=0;
  26. virtual const char * GetRoomMemberName(uint64_t memberId)=0;
  27. virtual bool IsRoomOwner(const uint64_t cSteamID)=0;
  28. virtual bool IsInRoom(void) const=0;
  29. virtual uint64_t GetNumRoomMembers(const uint64_t roomid)=0;
  30. virtual uint64_t GetMyUserID(void)=0;
  31. virtual const char* GetMyUserPersonalName(void)=0;
  32. virtual uint64_t GetRoomID(void) const=0;
  33. protected:
  34. };
  35. };
  36. #endif
粤ICP备19079148号