Step that bans a player from the game of the host on the lobby server.
More...
#include <banplayertask.h>
|
| static void | OnResponse (int nConnection, int nType, int nSize, const rtMediusResponse *pResponse) |
| | Ignore the response of the lobby server.
|
| static void | MakeTag (NetTask *pTask, char *pszTag) |
| | Create the next tag of a task and copy its text.
|
| static void | RemoveTag (NetTask *pTask) |
| | Remove the first tag of a task.
|
| static NetTask * | FindTag (const char *pszTag) |
| | Find the task of a tag.
|
|
| void | OnStart () override |
| | Send the request and finish.
|
| void | OnStop () override |
| | Remove the tag of the task.
|
| virtual void | OnPoll () |
| | Advance the work, and set mState to kStateDone when it finishes.
|
Step that bans a player from the game of the host on the lobby server.
The RTTI includes the name and records NetTask as the base. The vtable is at 0x003d49c8, and the object is 0x14 bytes. HostpadRT::Kick() runs the step on the stack.
◆ ~BanPlayerTask()
| BanPlayerTask::~BanPlayerTask |
( |
| ) |
|
|
overridedefault |
Destroy the object.
- Ghidra address:
- NTSC-U/C: 0x0039a438
- Ghidra address:
- PAL: 0x00408cc0
◆ BanPlayerTask()
| BanPlayerTask::BanPlayerTask |
( |
int | nWorldId, |
|
|
int | nAccountId ) |
|
inline |
Construct a step for a player.
Inline.
- Parameters
-
| nWorldId | The game. |
| nAccountId | The account of the player. |
◆ OnResponse()
| void BanPlayerTask::OnResponse |
( |
int | nConnection, |
|
|
int | nType, |
|
|
int | nSize, |
|
|
const rtMediusResponse * | pResponse ) |
|
static |
Ignore the response of the lobby server.
- Parameters
-
| nConnection | The connection. |
| nType | The kind of response. |
| nSize | The size of the response. |
| pResponse | The response. |
- Ghidra address:
- NTSC-U/C: 0x0025c6e0
- Ghidra address:
- PAL: 0x00265740
◆ OnStart()
| void BanPlayerTask::OnStart |
( |
| ) |
|
|
overrideprotectedvirtual |
Send the request and finish.
- Ghidra address:
- NTSC-U/C: 0x0025c660
- Ghidra address:
- PAL: 0x002656c0
Reimplemented from Task.
◆ kBanDuration
| int BanPlayerTask::kBanDuration = 60 |
|
staticconstexpr |
The length of a ban the request gives.
The documentation for this class was generated from the following file: