ULimenLevelManagerSubsystem
Overview
ULimenLevelManagerSubsystem is a subsystem that handles the opening and management of different levels in the game. It provides functions to open various types of levels such as initialization, main menu, game end, and specific game levels. The subsystem also includes methods to reset the current level based on the context (local, connect, server).
Properties
Type | Name | Access | Description |
|---|---|---|---|
UEnum | ELevelOpenContext | Public | Enumerates different contexts for opening levels: Local, Connect, Server. |
Functions
Return Type | Signature | Description |
|---|---|---|
bool | OpenInitializationLevel() | Opens the initialization level as defined in the developer settings. |
void | OpenMainMenu() | Opens the main menu level as defined in the developer settings. |
void | OpenGameEndLevel() | Opens the game end level as defined in the developer settings. |
void | OpenGameLevel(ELevelOpenContext Context = ELevelOpenContext::Local, const int32 Index = 0, FString Options = TEXT("")) | Opens a specific game level based on the context and index. |
void | OpenLevel(const TSoftObjectPtr & Level, ELevelOpenContext Context = ELevelOpenContext::Local, FString Options = TEXT("")) | Opens a given level with the specified context and options. |
void | ResetCurrentLevel(ELevelOpenContext Context = ELevelOpenContext::Local) | Resets the current level based on the provided context. |
Usage & Implementation Notes
This subsystem is initialized during the game instance's initialization phase.
It uses
UGameMapsSettingsto set and retrieve default map settings.The
OpenOfflineLevel_Internal,ConnectToServer_Internal, andOpenServerLevel_Internalfunctions handle the actual level opening based on the context.