|
|
|
|
| #pragma once
|
|
|
| #include "GameFramework/CheatManager.h"
|
| #include "LyraCheatManager.generated.h"
|
|
|
| class ULyraAbilitySystemComponent;
|
|
|
|
|
| #ifndef USING_CHEAT_MANAGER
|
| #define USING_CHEAT_MANAGER (1 && !UE_BUILD_SHIPPING)
|
| #endif
|
|
|
| DECLARE_LOG_CATEGORY_EXTERN(LogLyraCheat, Log, All);
|
|
|
|
|
| |
| |
| |
| |
|
|
| UCLASS(config = Game, Within = PlayerController, MinimalAPI)
|
| class ULyraCheatManager : public UCheatManager
|
| {
|
| GENERATED_BODY()
|
|
|
| public:
|
|
|
| ULyraCheatManager();
|
|
|
| virtual void InitCheatManager() override;
|
|
|
|
|
| static void CheatOutputText(const FString& TextToOutput);
|
|
|
|
|
| UFUNCTION(exec)
|
| void Cheat(const FString& Msg);
|
|
|
|
|
| UFUNCTION(exec)
|
| void CheatAll(const FString& Msg);
|
|
|
|
|
| UFUNCTION(Exec, BlueprintAuthorityOnly)
|
| void PlayNextGame();
|
|
|
| UFUNCTION(Exec)
|
| virtual void ToggleFixedCamera();
|
|
|
| UFUNCTION(Exec)
|
| virtual void CycleDebugCameras();
|
|
|
| UFUNCTION(Exec)
|
| virtual void CycleAbilitySystemDebug();
|
|
|
|
|
| UFUNCTION(Exec, BlueprintAuthorityOnly)
|
| virtual void CancelActivatedAbilities();
|
|
|
|
|
| UFUNCTION(Exec, BlueprintAuthorityOnly)
|
| virtual void AddTagToSelf(FString TagName);
|
|
|
|
|
| UFUNCTION(Exec, BlueprintAuthorityOnly)
|
| virtual void RemoveTagFromSelf(FString TagName);
|
|
|
|
|
| UFUNCTION(Exec, BlueprintAuthorityOnly)
|
| virtual void DamageSelf(float DamageAmount);
|
|
|
|
|
| virtual void DamageTarget(float DamageAmount) override;
|
|
|
|
|
| UFUNCTION(Exec, BlueprintAuthorityOnly)
|
| virtual void HealSelf(float HealAmount);
|
|
|
|
|
| UFUNCTION(Exec, BlueprintAuthorityOnly)
|
| virtual void HealTarget(float HealAmount);
|
|
|
|
|
| UFUNCTION(Exec, BlueprintAuthorityOnly)
|
| virtual void DamageSelfDestruct();
|
|
|
|
|
| virtual void God() override;
|
|
|
|
|
| UFUNCTION(Exec, BlueprintAuthorityOnly)
|
| virtual void UnlimitedHealth(int32 Enabled = -1);
|
|
|
| protected:
|
|
|
| virtual void EnableDebugCamera() override;
|
| virtual void DisableDebugCamera() override;
|
| bool InDebugCamera() const;
|
|
|
| virtual void EnableFixedCamera();
|
| virtual void DisableFixedCamera();
|
| bool InFixedCamera() const;
|
|
|
| void ApplySetByCallerDamage(ULyraAbilitySystemComponent* LyraASC, float DamageAmount);
|
| void ApplySetByCallerHeal(ULyraAbilitySystemComponent* LyraASC, float HealAmount);
|
|
|
| ULyraAbilitySystemComponent* GetPlayerAbilitySystemComponent() const;
|
| };
|
|
|