DRG-Femboy-Voice/Source/FSD/Public/NotificationSubSystem.h
2025-04-15 12:39:31 -07:00

40 lines
1.4 KiB
C++
Executable file

#pragma once
#include "CoreMinimal.h"
#include "Subsystems/GameInstanceSubsystem.h"
#include "CampaignNotificationSignatureDelegate.h"
#include "DelegateDelegate.h"
#include "SpaceRigNotification.h"
#include "NotificationSubSystem.generated.h"
class UCampaignNotification;
UCLASS(Blueprintable)
class FSD_API UNotificationSubSystem : public UGameInstanceSubsystem {
GENERATED_BODY()
public:
UPROPERTY(BlueprintAssignable, BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
FDelegate OnNewSpaceRigNotificationEvent;
UPROPERTY(BlueprintAssignable, BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
FCampaignNotificationSignature OnCampaignNotification;
protected:
UPROPERTY(BlueprintReadWrite, EditAnywhere, Transient, meta=(AllowPrivateAccess=true))
TArray<FSpaceRigNotification> SpaceRigNotifications;
UPROPERTY(BlueprintReadWrite, EditAnywhere, Transient, meta=(AllowPrivateAccess=true))
UCampaignNotification* CampaignNotification;
public:
UNotificationSubSystem();
UFUNCTION(BlueprintCallable)
bool GetNextSpaceRigNotification(FSpaceRigNotification& NextNotification);
UFUNCTION(BlueprintCallable)
void ClearCampaignNotifications();
UFUNCTION(BlueprintCallable)
void AddSpaceRigNotification(FSpaceRigNotification NewNotification, const FString& ID, bool TriggerEvent);
};