Class FZagalaSpecWorldHelper#
Defined in File ZagalaSpecWorldHelper.h
Class Documentation#
-
class FZagalaSpecWorldHelper#
Stateless helper that resolves the active gameplay UWorld for protocol driver chain links.
GetWorldFromCache() returns the PlaySessionWorld tagged data stored in the cacher by UZagalaSpecCEEnsureTestWorld. GetActiveWorld() returns GEditor->PlayWorld during PIE (WITH_EDITOR) or GWorld in packaged builds. GetPlaySessionWorlds() returns every play session world with a given net mode (one per PIE instance). GetPlaySessionSettingsFromCache() loads the settings asset referenced by the cached PlaySessionSettings data.
Protocol driver chain links pass their AssignedCacher (forwarded from the owning step) as the Cacher argument.
Public Static Functions
-
static UWorld *GetWorldFromCache(IZagalaSpecTaggedDataCacher *Cacher)#
Returns the world stored in PlaySessionWorld tagged data, or nullptr if none is available.
- Parameters:
Cacher – The tagged-data cacher to query for a stored PlaySessionWorld reference. Returns nullptr if Cacher is null.
- Returns:
The cached PlaySessionWorld, or nullptr if unavailable.
-
static UWorld *GetActiveWorld()#
Returns the PIE world (editor) or GWorld (packaged), or nullptr if none is available.
- Returns:
The active gameplay world, or nullptr.
-
static TArray<UWorld*> GetPlaySessionWorlds(ENetMode NetMode)#
Returns every play session world running with the given net mode.
In the editor these are the PIE instance worlds; in packaged builds only GWorld is considered.
- Parameters:
NetMode – Net mode to match (e.g. NM_ListenServer, NM_Client).
- Returns:
Matching worlds, ordered by PIE instance; empty when none match.
-
static UZagalaSpecPlaySessionSettings *GetPlaySessionSettingsFromCache(IZagalaSpecTaggedDataCacher *Cacher)#
Returns the settings asset referenced by the cached PlaySessionSettings data, loading it if needed.
- Parameters:
Cacher – The tagged-data cacher to query. Returns nullptr if Cacher is null.
- Returns:
The play session settings, or nullptr if unavailable.
-
static UWorld *GetWorldFromCache(IZagalaSpecTaggedDataCacher *Cacher)#