wavelength 1.0.0
Loading...
Searching...
No Matches
ladderpositionfasttask.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
17public:
24 ~LadderPositionFastTask() override = default;
25
33 explicit LadderPositionFastTask(LobbyPlayer *pPlayer) : mPlayer(pPlayer) {
34 }
35
48 static void OnResponse(int nConnection,
49 int nType,
50 int nSize,
51 const rtMediusLadderPositionResponse *pResponse);
52
53protected:
60 void OnStart() override;
61
62private:
63 LobbyPlayer *mPlayer;
64};
void OnStart() override
Send the request.
LadderPositionFastTask(LobbyPlayer *pPlayer)
Construct a step.
Definition ladderpositionfasttask.h:33
~LadderPositionFastTask() override=default
Destroy the object.
static void OnResponse(int nConnection, int nType, int nSize, const rtMediusLadderPositionResponse *pResponse)
Take the position and finish the step the response is tagged with.
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