|
|
|
|
| #pragma once
|
|
|
| #include "Engine/DeveloperSettingsBackedByCVars.h"
|
| #include "UObject/PrimaryAssetId.h"
|
| #include "UObject/SoftObjectPath.h"
|
| #include "LyraDeveloperSettings.generated.h"
|
|
|
| struct FPropertyChangedEvent;
|
|
|
| class ULyraExperienceDefinition;
|
|
|
| UENUM()
|
| enum class ECheatExecutionTime
|
| {
|
|
|
| OnCheatManagerCreated,
|
|
|
|
|
| OnPlayerPawnPossession
|
| };
|
|
|
| USTRUCT()
|
| struct FLyraCheatToRun
|
| {
|
| GENERATED_BODY()
|
|
|
| UPROPERTY(EditAnywhere)
|
| ECheatExecutionTime Phase = ECheatExecutionTime::OnPlayerPawnPossession;
|
|
|
| UPROPERTY(EditAnywhere)
|
| FString Cheat;
|
| };
|
|
|
| |
| |
|
|
| UCLASS(config=EditorPerProjectUserSettings, MinimalAPI)
|
| class ULyraDeveloperSettings : public UDeveloperSettingsBackedByCVars
|
| {
|
| GENERATED_BODY()
|
|
|
| public:
|
| ULyraDeveloperSettings();
|
|
|
|
|
| virtual FName GetCategoryName() const override;
|
|
|
|
|
| public:
|
|
|
| UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, config, Category=Lyra, meta=(AllowedTypes="LyraExperienceDefinition"))
|
| FPrimaryAssetId ExperienceOverride;
|
|
|
| UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, config, Category=LyraBots, meta=(InlineEditConditionToggle))
|
| bool bOverrideBotCount = false;
|
|
|
| UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, config, Category=LyraBots, meta=(EditCondition=bOverrideBotCount))
|
| int32 OverrideNumPlayerBotsToSpawn = 0;
|
|
|
| UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, config, Category=LyraBots)
|
| bool bAllowPlayerBotsToAttack = true;
|
|
|
|
|
| UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, config, Category=Lyra)
|
| bool bTestFullGameFlowInPIE = false;
|
|
|
| |
| |
| |
|
|
| UPROPERTY(config, EditAnywhere, Category = Lyra, meta = (ConsoleVariable = "LyraPC.ShouldAlwaysPlayForceFeedback"))
|
| bool bShouldAlwaysPlayForceFeedback = false;
|
|
|
|
|
| UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, config, Category=Lyra)
|
| bool bSkipLoadingCosmeticBackgroundsInPIE = false;
|
|
|
|
|
| UPROPERTY(config, EditAnywhere, Category=Lyra)
|
| TArray<FLyraCheatToRun> CheatsToRun;
|
|
|
|
|
| UPROPERTY(config, EditAnywhere, Category=GameplayMessages, meta=(ConsoleVariable="GameplayMessageSubsystem.LogMessages"))
|
| bool LogGameplayMessages = false;
|
|
|
| #if WITH_EDITORONLY_DATA
|
|
|
| UPROPERTY(config, EditAnywhere, BlueprintReadOnly, Category=Maps, meta=(AllowedClasses="/Script/Engine.World"))
|
| TArray<FSoftObjectPath> CommonEditorMaps;
|
| #endif
|
|
|
| #if WITH_EDITOR
|
| public:
|
|
|
| LYRAGAME_API void OnPlayInEditorStarted() const;
|
|
|
| private:
|
| void ApplySettings();
|
| #endif
|
|
|
| public:
|
|
|
| #if WITH_EDITOR
|
| virtual void PostEditChangeProperty(FPropertyChangedEvent& PropertyChangedEvent) override;
|
| virtual void PostReloadConfig(FProperty* PropertyThatWasLoaded) override;
|
| virtual void PostInitProperties() override;
|
| #endif
|
|
|
| };
|
|
|