3#include <librtmedius.h>
34 BanPlayerTask(
int nWorldId,
int nAccountId) : mWorldId(nWorldId), mAccountId(nAccountId) {
48 OnResponse(
int nConnection,
int nType,
int nSize,
const rtMediusResponse *pResponse);
static constexpr int kBanDuration
The length of a ban the request gives.
Definition banplayertask.h:24
BanPlayerTask(int nWorldId, int nAccountId)
Construct a step for a player.
Definition banplayertask.h:34
static void OnResponse(int nConnection, int nType, int nSize, const rtMediusResponse *pResponse)
Ignore the response of the lobby server.
~BanPlayerTask() override=default
Destroy the object.
void OnStart() override
Send the request and finish.
NetTask()
Construct a task outside any NetMultiTask.
Definition nettask.h:24