class

MNetSessionSubsystem

Module
Networking
Header
#include "Networking/Subsystems/MNetSessionSubsystem.h"
Namespace
Mowo
Reflection
Reflected by MowoHeaderTool

Public functions

ReturnsNameDescription
boolIsInSession
boolIsHost
intGetPhase0 = lobby (the hub between runs), 1 = in a run.
boolSetReadyThe local player's ready flag.
boolIsLocalReady
boolAreAllPlayersReady
boolStartRunHost only.
boolReturnToLobby
intGetPlayerCountThe roster, by index, for a lobby list.
intGetPlayerIdAt
std::stringGetPlayerNameAt
boolIsPlayerReadyAt
boolIsPlayerHostAt
std::stringGetLastExitReasonWhy the last session ended ("the host ended the session", "lost the connection to the host", a kick reason...), for the menu to show.
voidLeaveSession

Function details

IsInSession

C++
bool IsInSession() const

IsHost

C++
bool IsHost() const

GetPhase

C++
int GetPhase() const

0 = lobby (the hub between runs), 1 = in a run.

SetReady

C++
bool SetReady(bool ready)

The local player's ready flag. A client's request is confirmed by the host's echo, so IsLocalReady turns true a round trip later.

IsLocalReady

C++
bool IsLocalReady() const

AreAllPlayersReady

C++
bool AreAllPlayersReady() const

StartRun

C++
bool StartRun(bool force)

Host only. StartRun refuses while anyone is not ready unless forced.

ReturnToLobby

C++
bool ReturnToLobby()

GetPlayerCount

C++
int GetPlayerCount() const

The roster, by index, for a lobby list.

GetPlayerIdAt

C++
int GetPlayerIdAt(int index) const

GetPlayerNameAt

C++
std::string GetPlayerNameAt(int index) const

IsPlayerReadyAt

C++
bool IsPlayerReadyAt(int index) const

IsPlayerHostAt

C++
bool IsPlayerHostAt(int index) const

GetLastExitReason

C++
std::string GetLastExitReason() const

Why the last session ended ("the host ended the session", "lost the connection to the host", a kick reason...), for the menu to show.

LeaveSession

C++
void LeaveSession()
Generated from Networking/Subsystems/MNetSessionSubsystem.h via networking.json · Nov 4, 2026Version 1.0.0