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
15public:
22 ~MGCLCreateGameTask() override = default;
23
36 static void
37 OnResponse(int nConnection, int nType, int nSize, const rtMgclCreateGameResponse *pResponse);
38
46
47protected:
54 void OnStart() override;
55};
Step that creates the game of the host on the game server.
Definition mgclcreategametask.h:14
void OnStart() override
Send the request, whose name encodes the settings of the game.
static void OnResponse(int nConnection, int nType, int nSize, const rtMgclCreateGameResponse *pResponse)
Take the game into LaunchpadRT::mWorldId and finish sTask.
~MGCLCreateGameTask() override=default
Destroy the object.
static MGCLCreateGameTask * sTask
The step that waits for OnResponse(), or null.
Definition mgclcreategametask.h:45
NetTask()
Construct a task outside any NetMultiTask.
Definition nettask.h:24