class

FArcLobbyModel

The lobby screen's logic with no widgets in it: which view to show, what the footer may do, the status line, and the browser's ordering. The screen rebuilds only when Poll says the state it draws from changed, so a roster polled every frame does not tear the widget tree down sixty times a second.

Module
ArcUI
Header
#include "ArcUI/Lobby/FArcLobbyModel.h"
Namespace
Mowo

Properties

TypeNameDescription
static constexpr uint16_tkDefaultPortDefault 7777.

Public functions

ReturnsNameDescription
voidSetSource
IArcLobbySource*Source
EArcLobbyViewView
std::vector<FArcLobbyPlayer>Players
int32_tReadyCount
boolIsLocalReady
boolIsHost
boolCanStartHost, lobby phase, at least one player, everyone ready.
std::stringStatusLine"Waiting for 2 players to ready up", "Everyone is ready", ...
boolToggleReady
boolStart
boolReturnToLobby
voidLeave
std::vector<FArcLobbyServer>SortedServersThe browser, joinable sessions first, then fuller ones, then by name.
boolIsFull
boolJoin
boolParseAddress"host", "host:port", "[v6]:port".
boolParseAddresshost:port#KEY — the key a direct join from another machine presents.
boolJoinAddress
boolHost
std::stringExitBannerA banner for why the last session ended; cleared by Dismiss.
voidDismissExitBanner
boolPollTrue when anything the screen draws differs from the last Poll.
std::string&AddressDraftThe text typed into Direct Connect survives a rebuild.

Function details

SetSource

C++
void SetSource(std::shared_ptr<IArcLobbySource> source)

Source

C++
IArcLobbySource* Source() const

View

C++
EArcLobbyView View() const

Players

C++
std::vector<FArcLobbyPlayer> Players() const

ReadyCount

C++
int32_t ReadyCount() const

IsLocalReady

C++
bool IsLocalReady() const

IsHost

C++
bool IsHost() const

CanStart

C++
bool CanStart() const

Host, lobby phase, at least one player, everyone ready.

StatusLine

C++
std::string StatusLine() const

"Waiting for 2 players to ready up", "Everyone is ready", ...

ToggleReady

C++
bool ToggleReady()

Start

C++
bool Start(bool force)

ReturnToLobby

C++
bool ReturnToLobby()

Leave

C++
void Leave()

SortedServers

C++
std::vector<FArcLobbyServer> SortedServers() const

The browser, joinable sessions first, then fuller ones, then by name.

IsFull

C++
static bool IsFull(const FArcLobbyServer& server)

Join

C++
bool Join(const FArcLobbyServer& server)

ParseAddress

C++
static bool ParseAddress(const std::string& text, std::string& outHost, uint16_t& outPort)

"host", "host:port", "[v6]:port". The port defaults to 7777; a port that is not 1-65535 or a host with spaces is refused before anything dials.

ParseAddress

C++
static bool ParseAddress(const std::string& text, std::string& outHost, uint16_t& outPort, std::string& outJoinKey)

host:port#KEY — the key a direct join from another machine presents.

JoinAddress

C++
bool JoinAddress(const std::string& text)

Host

C++
bool Host()

ExitBanner

C++
std::string ExitBanner() const

A banner for why the last session ended; cleared by Dismiss.

DismissExitBanner

C++
void DismissExitBanner()

Poll

C++
bool Poll()

True when anything the screen draws differs from the last Poll.

AddressDraft

C++
std::string& AddressDraft()

The text typed into Direct Connect survives a rebuild.

Generated from ArcUI/Lobby/FArcLobbyModel.h via arcui.json · Nov 4, 2026Version 1.0.0