RealtimeStyleTransferRuntime/Source/LyraGame/Cosmetics/LyraCosmeticCheats.h

39 lines
1.0 KiB
C
Raw Normal View History

2022-05-23 18:41:30 +00:00
// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
2022-09-13 07:18:28 +00:00
#include "Containers/UnrealString.h"
2022-05-23 18:41:30 +00:00
#include "GameFramework/CheatManager.h"
2022-09-13 07:18:28 +00:00
#include "UObject/UObjectGlobals.h"
2022-05-23 18:41:30 +00:00
#include "LyraCosmeticCheats.generated.h"
class ULyraControllerComponent_CharacterParts;
2022-09-13 07:18:28 +00:00
class UObject;
struct FFrame;
2022-05-23 18:41:30 +00:00
/** Cheats related to bots */
UCLASS(NotBlueprintable)
class ULyraCosmeticCheats final : public UCheatManagerExtension
{
GENERATED_BODY()
public:
ULyraCosmeticCheats();
// Adds a character part
UFUNCTION(Exec, BlueprintAuthorityOnly)
void AddCharacterPart(const FString& AssetName, bool bSuppressNaturalParts = true);
// Replaces previous cheat parts with a new one
UFUNCTION(Exec, BlueprintAuthorityOnly)
void ReplaceCharacterPart(const FString& AssetName, bool bSuppressNaturalParts = true);
// Clears any existing cheats
UFUNCTION(Exec, BlueprintAuthorityOnly)
void ClearCharacterPartOverrides();
private:
ULyraControllerComponent_CharacterParts* GetCosmeticComponent() const;
};