File size: 2,733 Bytes
7fd553e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 | // Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "Engine/DataAsset.h"
#include "LyraUserFacingExperienceDefinition.generated.h"
class FString;
class UCommonSession_HostSessionRequest;
class UObject;
class UTexture2D;
class UUserWidget;
struct FFrame;
/** Description of settings used to display experiences in the UI and start a new session */
UCLASS(BlueprintType)
class ULyraUserFacingExperienceDefinition : public UPrimaryDataAsset
{
GENERATED_BODY()
public:
/** The specific map to load */
UPROPERTY(BlueprintReadWrite, EditAnywhere, Category=Experience, meta=(AllowedTypes="Map"))
FPrimaryAssetId MapID;
/** The gameplay experience to load */
UPROPERTY(BlueprintReadWrite, EditAnywhere, Category=Experience, meta=(AllowedTypes="LyraExperienceDefinition"))
FPrimaryAssetId ExperienceID;
/** Extra arguments passed as URL options to the game */
UPROPERTY(BlueprintReadWrite, EditAnywhere, Category=Experience)
TMap<FString, FString> ExtraArgs;
/** Primary title in the UI */
UPROPERTY(BlueprintReadWrite, EditAnywhere, Category=Experience)
FText TileTitle;
/** Secondary title */
UPROPERTY(BlueprintReadWrite, EditAnywhere, Category=Experience)
FText TileSubTitle;
/** Full description */
UPROPERTY(BlueprintReadWrite, EditAnywhere, Category=Experience)
FText TileDescription;
/** Icon used in the UI */
UPROPERTY(BlueprintReadWrite, EditAnywhere, Category=Experience)
TObjectPtr<UTexture2D> TileIcon;
/** The loading screen widget to show when loading into (or back out of) a given experience */
UPROPERTY(BlueprintReadWrite, EditAnywhere, Category=LoadingScreen)
TSoftClassPtr<UUserWidget> LoadingScreenWidget;
/** If true, this is a default experience that should be used for quick play and given priority in the UI */
UPROPERTY(BlueprintReadWrite, EditAnywhere, Category=Experience)
bool bIsDefaultExperience = false;
/** If true, this will show up in the experiences list in the front-end */
UPROPERTY(BlueprintReadWrite, EditAnywhere, Category=Experience)
bool bShowInFrontEnd = true;
/** If true, a replay will be recorded of the game */
UPROPERTY(BlueprintReadWrite, EditAnywhere, Category=Experience)
bool bRecordReplay = false;
/** Max number of players for this session */
UPROPERTY(BlueprintReadWrite, EditAnywhere, Category=Experience)
int32 MaxPlayerCount = 16;
public:
/** Create a request object that is used to actually start a session with these settings */
UFUNCTION(BlueprintCallable, BlueprintPure=false, meta = (WorldContext = "WorldContextObject"))
UCommonSession_HostSessionRequest* CreateHostingRequest(const UObject* WorldContextObject) const;
};
|