Sein Lobby State
Class · ASeinLobbyState : AActor
#include "SeinLobbyState.h"
Replicated lobby state actor. Server spawns one at first PostLogin; bAlwaysRelevant = true ensures every connected client receives the slot array via OnRep_Slots. Mutation is server-only and routed through USeinLobbySubsystem (validates + commits). Lobby widgets bind to OnLobbyStateChanged.
Functions
Section titled “Functions”Get Slots
Section titled “Get Slots”Read-only accessor: copy of the current slot array. Safe to call from BP.
const TArray<FSeinLobbySlotState>& GetSlots() const;Properties
Section titled “Properties”TArray<FSeinLobbySlotState> Slots
Blueprint read-only
Replicated per-slot state. Server is the single writer; clients mirror via OnRep_Slots.
Selected Map
Section titled “Selected Map”TSoftObjectPtr<UWorld> SelectedMap
Blueprint read-only
Lobby’s currently-selected gameplay map (host’s pick from the map dropdown). Drives:
-
Slot count (lobby resizes to the entry’s SlotCount on selection)
-
StartMatch ServerTravel destination Replicated so every client’s UI shows the same selection.
Network functions
Section titled “Network functions”On Rep Slots
Section titled “On Rep Slots”void OnRep_Slots();Runs on clients when the slot list replicates, and raises the lobby state changed event so lobby widgets refresh.
On Rep Selected Map
Section titled “On Rep Selected Map”void OnRep_SelectedMap();Runs on clients when the selected map replicates, and raises the lobby state changed event so lobby widgets refresh.
C++ members (2)
const FSeinLobbySlotState* FindSlot(int32 SlotIndex) const;Lookup by slot index (1-based). Returns nullptr if not present.FSeinLobbySlotState* FindSlotMutable(int32 SlotIndex);