wavelength
1.0.0
Loading...
Searching...
No Matches
mgclcreategametask.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <librtmgcl.h>
4
5
#include "
netflow/nettask.h
"
6
14
class
MGCLCreateGameTask
:
public
NetTask
{
15
public
:
22
~MGCLCreateGameTask
()
override
=
default
;
23
36
static
void
37
OnResponse
(
int
nConnection,
int
nType,
int
nSize,
const
rtMgclCreateGameResponse *pResponse);
38
45
static
MGCLCreateGameTask
*
sTask
;
46
47
protected
:
54
void
OnStart
()
override
;
55
};
MGCLCreateGameTask
Step that creates the game of the host on the game server.
Definition
mgclcreategametask.h:14
MGCLCreateGameTask::OnStart
void OnStart() override
Send the request, whose name encodes the settings of the game.
MGCLCreateGameTask::OnResponse
static void OnResponse(int nConnection, int nType, int nSize, const rtMgclCreateGameResponse *pResponse)
Take the game into LaunchpadRT::mWorldId and finish sTask.
MGCLCreateGameTask::~MGCLCreateGameTask
~MGCLCreateGameTask() override=default
Destroy the object.
MGCLCreateGameTask::sTask
static MGCLCreateGameTask * sTask
The step that waits for OnResponse(), or null.
Definition
mgclcreategametask.h:45
NetTask::NetTask
NetTask()
Construct a task outside any NetMultiTask.
Definition
nettask.h:24
nettask.h
src
netflow
mgclcreategametask.h
Generated by
1.15.0