| // Copyright Epic Games, Inc. All Rights Reserved. | |
| struct FLyraCharacterPart; | |
| struct FPropertyChangedEvent; | |
| class ULyraExperienceDefinition; | |
| UENUM() | |
| enum class ECosmeticCheatMode | |
| { | |
| ReplaceParts, | |
| AddParts | |
| }; | |
| /** | |
| * Cosmetic developer settings / editor cheats | |
| */ | |
| UCLASS(config=EditorPerProjectUserSettings, MinimalAPI) | |
| class ULyraCosmeticDeveloperSettings : public UDeveloperSettingsBackedByCVars | |
| { | |
| GENERATED_BODY() | |
| public: | |
| ULyraCosmeticDeveloperSettings(); | |
| //~UDeveloperSettings interface | |
| virtual FName GetCategoryName() const override; | |
| //~End of UDeveloperSettings interface | |
| public: | |
| UPROPERTY(Transient, EditAnywhere) | |
| TArray<FLyraCharacterPart> CheatCosmeticCharacterParts; | |
| UPROPERTY(Transient, EditAnywhere) | |
| ECosmeticCheatMode CheatMode; | |
| public: | |
| // Called by the editor engine to let us pop reminder notifications when cheats are active | |
| LYRAGAME_API void OnPlayInEditorStarted() const; | |
| private: | |
| void ApplySettings(); | |
| void ReapplyLoadoutIfInPIE(); | |
| public: | |
| //~UObject interface | |
| virtual void PostEditChangeProperty(FPropertyChangedEvent& PropertyChangedEvent) override; | |
| virtual void PostReloadConfig(FProperty* PropertyThatWasLoaded) override; | |
| virtual void PostInitProperties() override; | |
| //~End of UObject interface | |
| private: | |
| }; | |