Step that finds the chat room a player is in.
More...
#include <findplayertask.h>
|
| static void | OnResponse (int nConnection, int nType, int nSize, const rtMediusFindPlayerResponse *pResponse) |
| | Take the room of a location of the player, and finish the step the response is tagged with after the last location.
|
| 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 |
| | Clear the room and send the request, or finish for an offline player.
|
| 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 finds the chat room a player is in.
The RTTI includes the name and records NetTask as the base. The vtable is at 0x003d5218 and the object is 0x14 bytes. The step always succeeds.
◆ ~FindPlayerTask()
| FindPlayerTask::~FindPlayerTask |
( |
| ) |
|
|
overridedefault |
Destroy the object.
- Ghidra address:
- NTSC-U/C: 0x0039c5c8
- Ghidra address:
- PAL: 0x0040b280
◆ FindPlayerTask()
Construct a step.
Inline.
- Parameters
-
| pChatroom | Receives the identifier of the room. |
| pPlayer | The player. |
◆ OnResponse()
| void FindPlayerTask::OnResponse |
( |
int | nConnection, |
|
|
int | nType, |
|
|
int | nSize, |
|
|
const rtMediusFindPlayerResponse * | pResponse ) |
|
static |
Take the room of a location of the player, and finish the step the response is tagged with after the last location.
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: 0x00265fd8
- Ghidra address:
- PAL: 0x0026fa98
◆ OnStart()
| void FindPlayerTask::OnStart |
( |
| ) |
|
|
overrideprotectedvirtual |
Clear the room and send the request, or finish for an offline player.
- Ghidra address:
- NTSC-U/C: 0x00265ef8
- Ghidra address:
- PAL: 0x0026f9b8
Reimplemented from Task.
The documentation for this class was generated from the following file: