wavelength
1.0.0
Loading...
Searching...
No Matches
playerinfotask.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
PlayerInfoTask
:
public
NetTask
{
16
public
:
23
~PlayerInfoTask
()
override
=
default
;
24
33
PlayerInfoTask
(
LobbyPlayer
*pPlayer,
int
nFlag) : mPlayer(pPlayer), mFlag(nFlag) {
34
}
35
49
static
void
50
OnResponse
(
int
nConnection,
int
nType,
int
nSize,
const
rtMediusPlayerInfoResponse *pResponse);
51
52
protected
:
59
void
OnStart
()
override
;
60
61
private
:
62
LobbyPlayer
*mPlayer;
63
int
mFlag;
64
};
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
PlayerInfoTask::OnResponse
static void OnResponse(int nConnection, int nType, int nSize, const rtMediusPlayerInfoResponse *pResponse)
Take the name, the connection, and the statistics, and finish the step the response is tagged with.
PlayerInfoTask::~PlayerInfoTask
~PlayerInfoTask() override=default
Destroy the object.
PlayerInfoTask::PlayerInfoTask
PlayerInfoTask(LobbyPlayer *pPlayer, int nFlag)
Construct a step.
Definition
playerinfotask.h:33
PlayerInfoTask::OnStart
void OnStart() override
Send the request.
nettask.h
src
netflow
playerinfotask.h
Generated by
1.15.0