Step that reports the position of an account in the ranking to a sink as a PlayerRankMsg.
More...
#include <ladderposition2task.h>
|
| static void | OnResponse (int nConnection, int nType, int nSize, const rtMediusLadderPositionResponse *pResponse) |
| | Finish the step the response is tagged with, and report the position.
|
| 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, or finish and report a position of 0 when it cannot be sent.
|
| 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 reports the position of an account in the ranking to a sink as a PlayerRankMsg.
The RTTI includes the name and records NetTask as the base. The vtable is at 0x003d5638 and the object is 0x14 bytes. LobbyRT::AddLadderListener() adds the step to LobbyRT::mTasks. The step always succeeds, and reports a position of 0 after an error.
◆ ~LadderPosition2Task()
| LadderPosition2Task::~LadderPosition2Task |
( |
| ) |
|
|
overridedefault |
Destroy the object.
- Ghidra address:
- NTSC-U/C: 0x0039bc30
- Ghidra address:
- PAL: 0x0040a878
◆ LadderPosition2Task()
| LadderPosition2Task::LadderPosition2Task |
( |
MsgSink * | pSink, |
|
|
int | nAccount ) |
|
inline |
Construct a step.
Inline.
- Parameters
-
| pSink | The receiver of the PlayerRankMsg, or null. |
| nAccount | The account. |
◆ OnResponse()
| void LadderPosition2Task::OnResponse |
( |
int | nConnection, |
|
|
int | nType, |
|
|
int | nSize, |
|
|
const rtMediusLadderPositionResponse * | pResponse ) |
|
static |
Finish the step the response is tagged with, and report the position.
The name is inferred.
- Parameters
-
| nConnection | The connection. |
| nType | The kind of response. |
| nSize | The size of the response. |
| pResponse | The response. |
- Ghidra address:
- NTSC-U/C: 0x00265cd0
- Ghidra address:
- PAL: 0x0026f790
◆ OnStart()
| void LadderPosition2Task::OnStart |
( |
| ) |
|
|
overrideprotectedvirtual |
Send the request, or finish and report a position of 0 when it cannot be sent.
- Ghidra address:
- NTSC-U/C: 0x00265bd0
- Ghidra address:
- PAL: 0x0026f690
Reimplemented from Task.
The documentation for this class was generated from the following file: