Added getter and delegate for automatic profile switching

This commit is contained in:
Jordon Brooks 2024-05-15 21:31:08 +01:00
parent 16061e077b
commit 3f43bdb16b
Signed by: jordon
GPG key ID: DBD9758CD53E786A
2 changed files with 13 additions and 0 deletions

View file

@ -10,6 +10,7 @@
#include "HarmonyLinkGraphics.generated.h"
DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FOnProfileChanged, EProfile, Profile);
DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FOnAutomaticSwitchChanged, bool, bAutomaticSwich);
/**
*
@ -25,6 +26,9 @@ public:
UPROPERTY(BlueprintAssignable)
FOnProfileChanged OnProfileChanged;
UPROPERTY(BlueprintAssignable)
FOnAutomaticSwitchChanged OnAutomaticSwitchChanged;
UFUNCTION(BlueprintCallable, Category="HarmonyLink Settings")
void LoadConfig(const bool bForceReload = false);
@ -51,6 +55,9 @@ public:
UFUNCTION(BlueprintCallable, Category="HarmonyLink Settings")
void SetAutomaticSwitching(const bool bAutomaticSwitch);
UFUNCTION(BlueprintCallable, BlueprintPure, Category="HarmonyLink Settings")
bool GetAutomaticSwitching() const;
static void DestroySettings();
private: