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

27 lines
827 B
C++
Executable file

#pragma once
#include "CoreMinimal.h"
#include "Engine/DataAsset.h"
#include "FSDEventActivateChangedDelegate.h"
#include "FSDEventCollection.generated.h"
class UFSDEvent;
UCLASS(Blueprintable)
class FSD_API UFSDEventCollection : public UDataAsset {
GENERATED_BODY()
public:
UPROPERTY(BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
TSet<UFSDEvent*> Events;
UPROPERTY(BlueprintAssignable, BlueprintReadWrite, EditAnywhere, meta=(AllowPrivateAccess=true))
FFSDEventActivateChanged OnEventActiveChanged;
UFSDEventCollection();
UFUNCTION(BlueprintCallable, BlueprintPure)
UFSDEvent* FindEventHandler(const FName& EventName) const;
UFUNCTION(BlueprintCallable, BlueprintPure)
TArray<UFSDEvent*> FindAllEventHandlers(const FName& EventName) const;
};