wavelength 1.0.0
Loading...
Searching...
No Matches
ladderpositiontask.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
16public:
23 ~LadderPositionTask() override = default;
24
32 explicit LadderPositionTask(LobbyPlayer *pPlayer) : mPlayer(pPlayer) {
33 }
34
47 static void OnResponse(int nConnection,
48 int nType,
49 int nSize,
50 const rtMediusLadderPositionResponse *pResponse);
51
52protected:
59 void OnStart() override;
60
61private:
62 LobbyPlayer *mPlayer;
63};
static void OnResponse(int nConnection, int nType, int nSize, const rtMediusLadderPositionResponse *pResponse)
Take the position, or 0 after an error, and finish the step the response is tagged with.
~LadderPositionTask() override=default
Destroy the object.
LadderPositionTask(LobbyPlayer *pPlayer)
Construct a step.
Definition ladderpositiontask.h:32
void OnStart() override
Send the request.
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