class
MNetSessionSubsystem
- Module
- Networking
- Header
#include "Networking/Subsystems/MNetSessionSubsystem.h"- Namespace
Mowo- Reflection
- Reflected by MowoHeaderTool
Public functions
| Returns | Name | Description |
|---|---|---|
bool | IsInSession | |
bool | IsHost | |
int | GetPhase | 0 = lobby (the hub between runs), 1 = in a run. |
bool | SetReady | The local player's ready flag. |
bool | IsLocalReady | |
bool | AreAllPlayersReady | |
bool | StartRun | Host only. |
bool | ReturnToLobby | |
int | GetPlayerCount | The roster, by index, for a lobby list. |
int | GetPlayerIdAt | |
std::string | GetPlayerNameAt | |
bool | IsPlayerReadyAt | |
bool | IsPlayerHostAt | |
std::string | GetLastExitReason | Why the last session ended ("the host ended the session", "lost the connection to the host", a kick reason...), for the menu to show. |
void | LeaveSession |
Function details
IsInSession
C++
bool IsInSession() constIsHost
C++
bool IsHost() constGetPhase
C++
int GetPhase() const0 = 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() constAreAllPlayersReady
C++
bool AreAllPlayersReady() constStartRun
C++
bool StartRun(bool force)Host only. StartRun refuses while anyone is not ready unless forced.
ReturnToLobby
C++
bool ReturnToLobby()GetPlayerCount
C++
int GetPlayerCount() constThe roster, by index, for a lobby list.
GetPlayerIdAt
C++
int GetPlayerIdAt(int index) constGetPlayerNameAt
C++
std::string GetPlayerNameAt(int index) constIsPlayerReadyAt
C++
bool IsPlayerReadyAt(int index) constIsPlayerHostAt
C++
bool IsPlayerHostAt(int index) constGetLastExitReason
C++
std::string GetLastExitReason() constWhy 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