27 lines
827 B
C++
Executable file
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;
|
|
|
|
};
|
|
|