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
7
class
LobbyPlayer
;
8
15
class
LadderPositionTask
:
public
NetTask
{
16
public
:
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
52
protected
:
59
void
OnStart
()
override
;
60
61
private
:
62
LobbyPlayer
*mPlayer;
63
};
LadderPositionTask::OnResponse
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::~LadderPositionTask
~LadderPositionTask() override=default
Destroy the object.
LadderPositionTask::LadderPositionTask
LadderPositionTask(LobbyPlayer *pPlayer)
Construct a step.
Definition
ladderpositiontask.h:32
LadderPositionTask::OnStart
void OnStart() override
Send the request.
LobbyPlayer
A player of the lobby server, as FindPlayerMsg reports it.
Definition
lobbyplayer.h:16
NetTask::NetTask
NetTask()
Construct a task outside any NetMultiTask.
Definition
nettask.h:24
nettask.h
src
netflow
ladderpositiontask.h
Generated by
1.15.0