Step that creates the game of the host on the game server.
More...
#include <mgclcreategametask.h>
|
| static void | OnResponse (int nConnection, int nType, int nSize, const rtMgclCreateGameResponse *pResponse) |
| | Take the game into LaunchpadRT::mWorldId and finish sTask.
|
| 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, whose name encodes the settings of the game.
|
| 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 creates the game of the host on the game server.
The RTTI includes the name and records NetTask as the base. The vtable is at 0x003d4b18. The step fails with LaunchpadAbortedMsg::kReasonInit when the request cannot be sent, and with LaunchpadAbortedMsg::kReasonCreateFailed when the server refuses the game.
◆ ~MGCLCreateGameTask()
| MGCLCreateGameTask::~MGCLCreateGameTask |
( |
| ) |
|
|
overridedefault |
Destroy the object.
- Ghidra address:
- NTSC-U/C: 0x0039a128
- Ghidra address:
- PAL: 0x004089b0
◆ OnResponse()
| void MGCLCreateGameTask::OnResponse |
( |
int | nConnection, |
|
|
int | nType, |
|
|
int | nSize, |
|
|
const rtMgclCreateGameResponse * | pResponse ) |
|
static |
Take the game into LaunchpadRT::mWorldId and finish sTask.
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: 0x0025c060
- Ghidra address:
- PAL: 0x002650c0
◆ OnStart()
| void MGCLCreateGameTask::OnStart |
( |
| ) |
|
|
overrideprotectedvirtual |
Send the request, whose name encodes the settings of the game.
- Ghidra address:
- NTSC-U/C: 0x0025bec8
- Ghidra address:
- PAL: 0x00264f20
Reimplemented from Task.
◆ sTask
The step that waits for OnResponse(), or null.
- Ghidra address:
- NTSC-U/C: 0x003b0ae4
- Ghidra address:
- PAL: 0x0042f9b0
The documentation for this class was generated from the following file: