wavelength 1.0.0
Loading...
Searching...
No Matches
lobbyrt.h
Go to the documentation of this file.
1#pragma once
2
3#include <list>
4#include <memory>
5#include <set>
6#include <vector>
7
8#include <librtdme.h>
9
11#include "netflow/lobbyplayer.h"
15#include "netflow/netlobby.h"
19#include "netflow/rtfilter.h"
20#include "netflow/tasklist.h"
21#include "os/string.h"
22
23class DataArray;
24
32class LobbyRT : public NetLobby {
33public:
34#ifdef VIDEO_STANDARD_PAL
36 static int sApplicationId;
37#else
39 static constexpr int kApplicationId = 10164;
40#endif
41
49 static int ApplicationId() {
50#ifdef VIDEO_STANDARD_PAL
51 return sApplicationId;
52#else
53 return kApplicationId;
54#endif
55 }
56
64
75
84
92
99 ~LobbyRT() override;
100
108 void SetProfile(Campaign *pProfile) override;
109
117 void Connect(MsgSink *pSink) override;
118
128 void Login(MsgSink *pSink, int nLocation, const char *pszPassword) override;
129
137 void Disconnect(MsgSink *pSink) override;
138
146 int GetAccountId() override;
147
156 void CreateAccount(MsgSink *pSink, const char *pszPassword) override;
157
165 void DeleteAccount(MsgSink *pSink) override;
166
176 void
177 ChangePassword(MsgSink *pSink, const char *pszOldPassword, const char *pszNewPassword) override;
178
186 void RequestLobbyPlayers(MsgSink *pSink) override;
187
196 void RequestLaunchpadPlayers(MsgSink *pSink, int nLaunchpad) override;
197
206 void AddLadderListener(MsgSink *pSink, int nAccount) override;
207
216 void SetMuted(int nAccount, bool bMuted) override;
217
231 int nStart,
232 int nMode,
233 const char *pszArena,
234 int nRuleSet,
235 int nSkillLevel) override;
236
245 void FindPlayer(MsgSink *pSink, const char *pszName) override;
246
254 void RequestChatrooms(MsgSink *pSink) override;
255
264 void JoinChatroom(MsgSink *pSink, int nChatroomId) override;
265
274 void CreateChatroom(MsgSink *pSink, const String &name) override;
275
286 void RequestRanks(MsgSink *pSink, int nCount, int nDirection, int nMode) override;
287
296 void UploadRemix(MsgSink *pSink, const char *pszNote) override;
297
305 void RequestRemixes(MsgSink *pSink) override;
306
315 void DownloadRemix(MsgSink *pSink, const char *pszName) override;
316
325 void RequestFiles(MsgSink *pSink, int nRemixes) override;
326
335 void UploadDirectory(MsgSink *pSink, std::list<NetRepoRemix> *pRemixes) override;
336
345 void DeleteFile(MsgSink *pSink, const char *pszName) override;
346
353 void Poll();
354
365 void Fail(MsgSink *pSink, int nResult, int nReason);
366
376 void SetAccount(int nAccount, int nChannel, const rtNetConnectionInfo *pInfo);
377
385 const char *GetName();
386
394 const char *GetPassword();
395
403 const char *GetPlayerStats();
404
413 void UpdateStats(const LobbyPlayer *pPlayer);
414
423 bool IsMuted(int nAccount);
424
433 void LogNetError(int nLine, int nError);
434
443 void LogMediusError(int nLine, int nError);
444
453 static void ReportNetError(int nLine, int nError);
454
463 static void ReportMediusError(int nLine, int nError);
464
472 void ReportProgress(float fProgress);
473
482 static void AllowUnlimitedUpload(DataArray *pCommand, void *pUserData);
483
495 static bool ReadNumber(int *pnValue, const char **ppszText, int *pnRemaining, int nDigits);
496
505 static int ConnectionTypeOf(int nClass);
506
515 static int ConnectionClassOf(int nType);
516
528 static void EncodeGameName(String *pName,
529 const NetGameParams *pParams,
530 int nPlayers,
531 int nConnectionType,
532 int nAccountId);
533
547 static void DecodeGameName(NetGameParams *pParams,
548 int *pnPlayers,
549 int *pnConnectionType,
550 int *pnAccountId,
551 const char *pszName);
552
562 static void EncodePlayer(String *pText, const LobbyPlayer *pPlayer);
563
572 static void DecodePlayer(LobbyPlayer *pPlayer, const char *pszText);
573
586 static void EncodeRules(int *pnValue, int *pnComparison, int nRuleSet, int nSkillLevel);
587
596 static void EncodeSong(int *pnLevel, const char *pszSong);
597
606 static void DecodeSong(NetGameParams *pParams, int nLevel);
607
616 static int LaunchpadStatusOf(int nWorldStatus);
617
630 static void Page(int *pnPage,
631 int *pnPageSize,
632 int nDirection,
633 int nPageSize,
634 int nLargePageSize,
635 int nCount);
636
644
647 return mDisconnectReason;
648 }
649
651 void SetDisconnectReason(int nValue) {
652 mDisconnectReason = nValue;
653 }
654
656 int GetDisconnected() const {
657 return mDisconnected;
658 }
659
661 void SetDisconnected(int nValue) {
662 mDisconnected = nValue;
663 }
664
667 return mConnectTask;
668 }
669
672 return mDisconnectTask;
673 }
674
677 return mLoginTask;
678 }
679
682 return mTasks;
683 }
684
686 int GetRtReady() const {
687 return mRtReady;
688 }
689
691 void SetRtReady(int nValue) {
692 mRtReady = nValue;
693 }
694
696 int GetMediusConnected() const {
697 return mMediusConnected;
698 }
699
701 void SetMediusConnected(int nValue) {
702 mMediusConnected = nValue;
703 }
704
706 const String &GetSessionKey() const {
707 return mSessionKey;
708 }
709
711 void SetSessionKey(const char *pszSessionKey) {
712 mSessionKey = pszSessionKey;
713 }
714
716 rtNetKeyPair &GetKeyPair() {
717 return mKeyPair;
718 }
719
721 int GetSecure() const {
722 return mSecure;
723 }
724
726 void SetSecure(int nValue) {
727 mSecure = nValue;
728 }
729
731 const char *GetServerName() const {
732 return mServerName;
733 }
734
736 void SetServerName(const char *pszValue) {
737 mServerName = pszValue;
738 }
739
741 int GetServerPort() const {
742 return mServerPort;
743 }
744
746 void SetServerPort(int nValue) {
747 mServerPort = nValue;
748 }
749
751 const String &GetServerAddress() const {
752 return mServerAddress;
753 }
754
756 void SetServerAddress(const char *pszAddress) {
757 mServerAddress = pszAddress;
758 }
759
761 int GetLocationId() const {
762 return mLocationId;
763 }
764
766 void SetLocationId(int nValue) {
767 mLocationId = nValue;
768 }
769
771 int GetJoinChatroomId() const {
772 return mJoinChatroomId;
773 }
774
776 void SetJoinChatroomId(int nValue) {
777 mJoinChatroomId = nValue;
778 }
779
782 return mNewChatroomName;
783 }
784
786 const String &GetNewChatroomName() const {
787 return mNewChatroomName;
788 }
789
792 return mLaunchpadsPageSize;
793 }
794
796 int GetLaunchpadsPage() const {
797 return mLaunchpadsPage;
798 }
799
801 int GetLaunchpadId() const {
802 return mLaunchpadId;
803 }
804
806 void SetLaunchpadId(int nValue) {
807 mLaunchpadId = nValue;
808 }
809
812 return mNewPassword;
813 }
814
816 const String &GetNewPassword() const {
817 return mNewPassword;
818 }
819
821 std::vector<RTFilter> &GetFilters() {
822 return mFilters;
823 }
824
826 const std::vector<RTFilter> &GetFilters() const {
827 return mFilters;
828 }
829
831 std::vector<RTFilter> &GetActiveFilters() {
832 return mActiveFilters;
833 }
834
836 const std::vector<RTFilter> &GetActiveFilters() const {
837 return mActiveFilters;
838 }
839
841 int GetRanksPage() const {
842 return mRanksPage;
843 }
844
846 int GetRanksPageSize() const {
847 return mRanksPageSize;
848 }
849
851 int GetRanksMode() const {
852 return mRanksMode;
853 }
854
856 int GetTransferSize() const {
857 return mTransferSize;
858 }
859
861 void SetTransferSize(int nValue) {
862 mTransferSize = nValue;
863 }
864
867 return mTransferName;
868 }
869
871 char *GetTransferBuffer() const {
872 return mTransferBuffer;
873 }
874
876 void SetTransferBuffer(char *pValue) {
877 mTransferBuffer = pValue;
878 }
879
882 return mLocalPlayer;
883 }
884
887 return mLocalPlayer;
888 }
889
891 rtNetConnectionInfo &GetLobbyInfo() {
892 return mLobbyInfo;
893 }
894
897 return mChatroom;
898 }
899
902 return mChatroom;
903 }
904
906 std::list<LobbyPlayer> &GetLobbyPlayers() {
907 return mLobbyPlayers;
908 }
909
911 std::list<LobbyPlayer> &GetLaunchpadPlayers() {
912 return mLaunchpadPlayers;
913 }
914
916 std::list<LobbyPlayer> &GetRankedPlayers() {
917 return mRankedPlayers;
918 }
919
921 std::list<NetLaunchpadInfo> &GetLaunchpads() {
922 return mLaunchpads;
923 }
924
926 std::list<NetChatroomInfo> &GetChatrooms() {
927 return mChatrooms;
928 }
929
932 return mFoundPlayer;
933 }
934
936 const String &GetAnnouncement() const {
937 return mAnnouncement;
938 }
939
941 void SetAnnouncement(const char *pszAnnouncement) {
942 mAnnouncement = pszAnnouncement;
943 }
944
947 return mPolicy;
948 }
949
951 const String &GetPolicy() const {
952 return mPolicy;
953 }
954
956 void SetPolicy(const char *pszPolicy) {
957 mPolicy = pszPolicy;
958 }
959
960private:
961 int mDisconnectReason;
962 int mDisconnected;
963 NetMultiTask mConnectTask;
964 NetMultiTask mDisconnectTask;
965 NetMultiTask mCreateAccountTask;
966 NetMultiTask mDeleteAccountTask;
967 NetMultiTask mChangePasswordTask;
968 NetMultiTask mLoginTask;
969 NetMultiTask mChatroomsTask;
970 NetMultiTask mJoinChatroomTask;
971 NetMultiTask mCreateChatroomTask;
972 NetMultiTask mLobbyPlayersTask;
973 NetMultiTask mLaunchpadPlayersTask;
974 NetMultiTask mLaunchpadsTask;
975 NetMultiTask mFindPlayerTask;
976 NetMultiTask mRanksTask;
977 NetMultiTask mDownloadTask;
978 NetMultiTask mUploadTask;
979 NetMultiTask mFileListTask;
980 NetMultiTask mDeleteFileTask;
981 TaskList mTasks;
982 PeriodicTask mCheckInet;
983 int mRtReady;
984 int mMediusConnected;
985 String mSessionKey;
986 rtNetKeyPair mKeyPair;
987 int mSecure;
988 const char *mServerName;
989 int mServerPort;
990 String mServerAddress;
991 std::list<LobbyLocation> mLocations;
992 int mLocationId;
993 int mJoinChatroomId;
994 String mNewChatroomName;
995 int mLaunchpadsPage;
996 int mLaunchpadsPageSize;
997 int mLaunchpadId;
998 String mReserved398; // +0x398, never read or written after construction.
999 String mNewPassword;
1000 std::vector<RTFilter> mFilters;
1001 int mRanksPage;
1002 int mRanksPageSize;
1003 int mRanksMode;
1004 int mUploadAttempts;
1005 int mTransferSize;
1006 String mTransferName;
1007 char *mTransferBuffer;
1009 int mTransferMode;
1010 int mDeleteBeforeUpload;
1011 std::list<String> mFiles;
1012 LobbyPlayer mLocalPlayer;
1013 String mPassword;
1014 String mStatsText;
1015 rtNetConnectionInfo mLobbyInfo;
1016 NetChatroomInfo mChatroom;
1017 std::set<int> mMuted;
1018 std::list<LobbyPlayer> mLobbyPlayers;
1019 std::list<LobbyPlayer> mLaunchpadPlayers;
1020 std::list<LobbyPlayer> mRankedPlayers;
1021 std::list<NetLaunchpadInfo> mLaunchpads;
1022 std::list<NetChatroomInfo> mChatrooms;
1023 LobbyPlayer mFoundPlayer;
1024 NetChatroomInfo mFoundChatroom;
1025 String mAnnouncement;
1026 String mPolicy;
1027 std::vector<RTFilter> mActiveFilters;
1028
1035 void LoadConfig();
1036
1044 void ApplyMuted(std::list<LobbyPlayer> *pPlayers);
1045
1053 void MoveLocalPlayerToFront(std::list<LobbyPlayer> *pPlayers);
1054
1061 void MoveChatroomToFront();
1062
1071 bool StartUpload(MsgSink *pSink);
1072
1080 void OnUploadDone(NetMultiTask *pTask);
1081
1089 void OnDownloadDone(NetMultiTask *pTask);
1090
1098 void OnFileListDone(NetMultiTask *pTask);
1099
1107 void OnDeleteFileDone(NetMultiTask *pTask);
1108};
1109
1116extern std::unique_ptr<LobbyRT> TheLobbyRT;
1117
1118inline void LobbyRT::ReportNetError(int nLine, int nError) {
1119 if (TheLobbyRT != nullptr) {
1120 TheLobbyRT->LogNetError(nLine, nError);
1121 }
1122}
1123
1124inline void LobbyRT::ReportMediusError(int nLine, int nError) {
1125 if (TheLobbyRT != nullptr) {
1126 TheLobbyRT->LogMediusError(nLine, nError);
1127 }
1128}
Saved settings and progress of one player, among them the controller bindings.
Definition campaign.h:20
Reference-counted array of script data nodes.
Definition dataarray.h:20
A player of the lobby server, as FindPlayerMsg reports it.
Definition lobbyplayer.h:16
void SetJoinChatroomId(int nValue)
Definition lobbyrt.h:776
void RequestChatrooms(MsgSink *pSink) override
Vtable slot 17.
char * GetTransferBuffer() const
Definition lobbyrt.h:871
std::list< NetLaunchpadInfo > & GetLaunchpads()
Definition lobbyrt.h:921
void SetServerAddress(const char *pszAddress)
Definition lobbyrt.h:756
void SetServerName(const char *pszValue)
Definition lobbyrt.h:736
static void ReportMediusError(int nLine, int nError)
Pass the result of a call to the lobby client to LogMediusError() of TheLobbyRT.
Definition lobbyrt.h:1124
std::list< NetChatroomInfo > & GetChatrooms()
Definition lobbyrt.h:926
int GetAccountId() override
Vtable slot 7.
const String & GetSessionKey() const
Definition lobbyrt.h:706
int GetRanksPage() const
Definition lobbyrt.h:841
const String & GetNewChatroomName() const
Definition lobbyrt.h:786
static constexpr int kApplicationId
The identifier of the game on the lobby server.
Definition lobbyrt.h:39
NetMultiTask & GetLoginTask()
Definition lobbyrt.h:676
void RequestRanks(MsgSink *pSink, int nCount, int nDirection, int nMode) override
Vtable slot 20.
static void Page(int *pnPage, int *pnPageSize, int nDirection, int nPageSize, int nLargePageSize, int nCount)
Move a page of a list.
void LogNetError(int nLine, int nError)
Record the result of a call to the peer-to-peer layer.
void Disconnect(MsgSink *pSink) override
Vtable slot 6.
void DownloadRemix(MsgSink *pSink, const char *pszName) override
Vtable slot 23.
static int LaunchpadStatusOf(int nWorldStatus)
Convert a state of a game on the lobby server to a NetLaunchpadInfo::Status.
String & GetNewChatroomName()
Definition lobbyrt.h:781
const char * GetName()
Report the name of the local player.
const char * GetPlayerStats()
Encode the record of the local player into mStatsText.
void Connect(MsgSink *pSink) override
Vtable slot 4.
void RequestFiles(MsgSink *pSink, int nRemixes) override
Vtable slot 24.
void FindPlayer(MsgSink *pSink, const char *pszName) override
Vtable slot 16.
void SetPolicy(const char *pszPolicy)
Definition lobbyrt.h:956
void UpdateStats(const LobbyPlayer *pPlayer)
Take the rating, the games, the record, and the rank of the local player after a game,...
LobbyPlayer & GetFoundPlayer()
Definition lobbyrt.h:931
std::list< LobbyPlayer > & GetLobbyPlayers()
Definition lobbyrt.h:906
NetMultiTask & GetDisconnectTask()
Definition lobbyrt.h:671
const NetChatroomInfo & GetChatroom() const
Definition lobbyrt.h:901
int GetDisconnectReason() const
Definition lobbyrt.h:646
void Login(MsgSink *pSink, int nLocation, const char *pszPassword) override
Vtable slot 5.
void RequestLaunchpadPlayers(MsgSink *pSink, int nLaunchpad) override
Vtable slot 12.
const String & GetPolicy() const
Definition lobbyrt.h:951
const String & GetNewPassword() const
Definition lobbyrt.h:816
void SetLaunchpadId(int nValue)
Definition lobbyrt.h:806
bool IsMuted(int nAccount)
Report whether an account is in mMuted.
void RequestRemixes(MsgSink *pSink) override
Vtable slot 22.
int GetDisconnected() const
Definition lobbyrt.h:656
std::vector< RTFilter > & GetFilters()
Definition lobbyrt.h:821
static void AllowUnlimitedUpload(DataArray *pCommand, void *pUserData)
The unlimited_upload script command, which lifts the limit of one upload a day.
PageDirection
Values of the direction of Page().
Definition lobbyrt.h:77
@ kPageFirst
Definition lobbyrt.h:78
@ kPageNext
Definition lobbyrt.h:79
@ kPagePrevious
Definition lobbyrt.h:81
@ kPageCurrent
Definition lobbyrt.h:80
@ kPageFirstAll
Definition lobbyrt.h:82
static void DecodeSong(NetGameParams *pParams, int nLevel)
Set the song of the settings from its number, or clear it for an unknown number.
int GetMediusConnected() const
Definition lobbyrt.h:696
void UploadRemix(MsgSink *pSink, const char *pszNote) override
Vtable slot 21.
static int sUnlimitedUpload
Non-zero once the unlimited_upload script command ran.
Definition lobbyrt.h:643
NetChatroomInfo & GetChatroom()
Definition lobbyrt.h:896
void SetDisconnectReason(int nValue)
Definition lobbyrt.h:651
static void DecodePlayer(LobbyPlayer *pPlayer, const char *pszText)
Decode the text EncodePlayer() writes.
rtNetKeyPair & GetKeyPair()
Definition lobbyrt.h:716
void AddLadderListener(MsgSink *pSink, int nAccount) override
Vtable slot 13.
void SetAccount(int nAccount, int nChannel, const rtNetConnectionInfo *pInfo)
Take the account, the chat channel, and the connection a login or a join reports.
const LobbyPlayer & GetLocalPlayer() const
Definition lobbyrt.h:886
void CreateChatroom(MsgSink *pSink, const String &name) override
Vtable slot 19.
void Fail(MsgSink *pSink, int nResult, int nReason)
Stop every request, forget the filters and the muted players, and start the chain of mDisconnectTask,...
int GetLaunchpadsPage() const
Definition lobbyrt.h:796
void SetAnnouncement(const char *pszAnnouncement)
Definition lobbyrt.h:941
const char * GetPassword()
Report the password of the local player.
std::list< LobbyPlayer > & GetLaunchpadPlayers()
Definition lobbyrt.h:911
static void ReportNetError(int nLine, int nError)
Pass the result of a call to the peer-to-peer layer to LogNetError() of TheLobbyRT.
Definition lobbyrt.h:1118
DisconnectReason
Values of mDisconnectReason, the result Poll() reports once mDisconnectTask finishes.
Definition lobbyrt.h:58
@ kReasonLogin
Definition lobbyrt.h:61
@ kReasonConnect
Definition lobbyrt.h:60
@ kReasonDisconnect
Definition lobbyrt.h:59
@ kReasonLost
Definition lobbyrt.h:62
int GetRanksPageSize() const
Definition lobbyrt.h:846
TaskList & GetTasks()
Definition lobbyrt.h:681
int GetSecure() const
Definition lobbyrt.h:721
NetMultiTask & GetConnectTask()
Definition lobbyrt.h:666
String & GetNewPassword()
Definition lobbyrt.h:811
const char * GetServerName() const
Definition lobbyrt.h:731
int GetLocationId() const
Definition lobbyrt.h:761
void Poll()
Service the library and every request, and report the finished chains.
static void DecodeGameName(NetGameParams *pParams, int *pnPlayers, int *pnConnectionType, int *pnAccountId, const char *pszName)
Decode the name EncodeGameName() writes.
void SetSecure(int nValue)
Definition lobbyrt.h:726
void SetTransferSize(int nValue)
Definition lobbyrt.h:861
int GetJoinChatroomId() const
Definition lobbyrt.h:771
LobbyPlayer & GetLocalPlayer()
Definition lobbyrt.h:881
LobbyRT()
Construct the service, read server.cfg, and build the chain of each request.
const std::vector< RTFilter > & GetActiveFilters() const
Definition lobbyrt.h:836
String & GetTransferName()
Definition lobbyrt.h:866
void SetTransferBuffer(char *pValue)
Definition lobbyrt.h:876
const String & GetServerAddress() const
Definition lobbyrt.h:751
void SetSessionKey(const char *pszSessionKey)
Definition lobbyrt.h:711
void DeleteAccount(MsgSink *pSink) override
Vtable slot 9.
void SetMuted(int nAccount, bool bMuted) override
Vtable slot 14.
void SetMediusConnected(int nValue)
Definition lobbyrt.h:701
~LobbyRT() override
Release the service.
void CreateAccount(MsgSink *pSink, const char *pszPassword) override
Vtable slot 8.
static int ApplicationId()
Report the identifier of the game on the lobby server.
Definition lobbyrt.h:49
static void EncodeGameName(String *pName, const NetGameParams *pParams, int nPlayers, int nConnectionType, int nAccountId)
Encode the settings of a game as the name the lobby server lists it by.
int GetLaunchpadsPageSize() const
Definition lobbyrt.h:791
TransferMode
Values of mTransferMode.
Definition lobbyrt.h:66
@ kTransferList
Definition lobbyrt.h:72
@ kTransferUploadDirectory
Definition lobbyrt.h:71
@ kTransferRemix
Definition lobbyrt.h:69
@ kTransferNone
Definition lobbyrt.h:67
@ kTransferDirectory
Definition lobbyrt.h:68
@ kTransferDelete
Definition lobbyrt.h:73
@ kTransferUploadRemix
Definition lobbyrt.h:70
static int ConnectionClassOf(int nType)
Convert a NetInet::GetConnectionType() value to a connection class of the lobby server.
int GetTransferSize() const
Definition lobbyrt.h:856
void SetProfile(Campaign *pProfile) override
Vtable slot 3.
void JoinChatroom(MsgSink *pSink, int nChatroomId) override
Vtable slot 18.
rtNetConnectionInfo & GetLobbyInfo()
Definition lobbyrt.h:891
void RequestLobbyPlayers(MsgSink *pSink) override
Vtable slot 11.
static void EncodePlayer(String *pText, const LobbyPlayer *pPlayer)
Encode the rating, the record, and the Freq of a player as the statistics text of the lobby server.
String & GetPolicy()
Definition lobbyrt.h:946
int GetServerPort() const
Definition lobbyrt.h:741
std::vector< RTFilter > & GetActiveFilters()
Definition lobbyrt.h:831
void UploadDirectory(MsgSink *pSink, std::list< NetRepoRemix > *pRemixes) override
Vtable slot 25.
void SetDisconnected(int nValue)
Definition lobbyrt.h:661
std::list< LobbyPlayer > & GetRankedPlayers()
Definition lobbyrt.h:916
static void EncodeRules(int *pnValue, int *pnComparison, int nRuleSet, int nSkillLevel)
Encode a game mode and a skill level as a value of the rules field and its comparison.
static bool ReadNumber(int *pnValue, const char **ppszText, int *pnRemaining, int nDigits)
Read a number of a fixed count of digits from encoded text.
void DeleteFile(MsgSink *pSink, const char *pszName) override
Vtable slot 26.
const String & GetAnnouncement() const
Definition lobbyrt.h:936
void SetLocationId(int nValue)
Definition lobbyrt.h:766
void ChangePassword(MsgSink *pSink, const char *pszOldPassword, const char *pszNewPassword) override
Vtable slot 10.
int GetRanksMode() const
Definition lobbyrt.h:851
int GetRtReady() const
Definition lobbyrt.h:686
static int ConnectionTypeOf(int nClass)
Convert a connection class of the lobby server to a LobbyPlayer::ConnectionType.
void SetServerPort(int nValue)
Definition lobbyrt.h:746
void SetRtReady(int nValue)
Definition lobbyrt.h:691
void RequestLaunchpads(MsgSink *pSink, int nStart, int nMode, const char *pszArena, int nRuleSet, int nSkillLevel) override
Vtable slot 15.
static void EncodeSong(int *pnLevel, const char *pszSong)
Encode a song as its number.
const std::vector< RTFilter > & GetFilters() const
Definition lobbyrt.h:826
void ReportProgress(float fProgress)
Send a RepoRemixStatusMsg with the progress to the running transfer.
void LogMediusError(int nLine, int nError)
Record the result of a call to the lobby client.
int GetLaunchpadId() const
Definition lobbyrt.h:801
Receiver of engine messages.
Definition msgsink.h:21
The settings of an online game that the host publishes with its session.
Definition netgameparams.h:13
NetLobby()
Construct a service with no receiver.
Definition netlobby.h:24
A request to the online library, as the NetTask steps that run one after another.
Definition netmultitask.h:14
A task that runs again a fixed time after each run ends.
Definition periodictask.h:12
Growable text buffer that is also a PrnStream.
Definition string.h:19
Tasks that run side by side until each one ends.
Definition tasklist.h:13
std::unique_ptr< LobbyRT > TheLobbyRT
The lobby service.
The description of one chat room of the online lobby.
Definition netchatroominfo.h:11