wavelength 1.0.0
Loading...
Searching...
No Matches
accountgetidtask.h
Go to the documentation of this file.
1#pragma once
2
3#include <librtmedius.h>
4
5#include "netflow/nettask.h"
6
7class LobbyPlayer;
8
15class AccountGetIDTask : public NetTask {
16public:
23 ~AccountGetIDTask() override = default;
24
32 explicit AccountGetIDTask(LobbyPlayer *pPlayer) : mPlayer(pPlayer) {
33 }
34
47 static void OnResponse(int nConnection,
48 int nType,
49 int nSize,
50 const rtMediusAccountGetIdResponse *pResponse);
51
52protected:
59 void OnStart() override;
60
61private:
62 LobbyPlayer *mPlayer;
63};
static void OnResponse(int nConnection, int nType, int nSize, const rtMediusAccountGetIdResponse *pResponse)
Take the account and finish the step the response is tagged with.
void OnStart() override
Send the request.
AccountGetIDTask(LobbyPlayer *pPlayer)
Construct a step.
Definition accountgetidtask.h:32
~AccountGetIDTask() override=default
Destroy the object.
A player of the lobby server, as FindPlayerMsg reports it.
Definition lobbyplayer.h:16
NetTask()
Construct a task outside any NetMultiTask.
Definition nettask.h:24