Added OnDeleteLineRequested in Subsystem timer

Added BP_RunnerManagerFillKey To manage Stage Timings
This commit is contained in:
2024-07-18 19:48:58 +02:00
parent 68a7b34304
commit 68ad60c0fd
2 changed files with 13 additions and 1 deletions

View File

@ -184,6 +184,11 @@ void UDTFluxSubsystemTimer::TriggerStageLoading(const TArray<int> ContestIds, co
OnStageLoading.Broadcast(ContestIds, StageId, DelayBeforeStageStart);
}
void UDTFluxSubsystemTimer::TriggerOnDeleteRequested(const TArray<int> LineIndex)
{
OnRemoveLineRequested.Broadcast(LineIndex);
}
UDTFluxSubsystem* UDTFluxSubsystemTimer::GetDTFluxSubSystem()
{
return GEngine->GetEngineSubsystem<UDTFluxSubsystem>();

View File

@ -34,6 +34,7 @@ public:
DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams(FOnCutoff, TArray<int>, ContestIds, int, StageId);
DECLARE_DYNAMIC_MULTICAST_DELEGATE_TwoParams(FOnStageStarted, TArray<int>, ContestIds, int, StageId);
DECLARE_DYNAMIC_MULTICAST_DELEGATE_ThreeParams(FOnStageLoading, TArray<int>, ContestIds, int, StageId, int, DelayBeforeStageStart);
DECLARE_DYNAMIC_MULTICAST_DELEGATE_OneParam(FOnRemoveLineRequested, TArray<int>, LineIndex);
UCLASS(BlueprintType, Category="DTFlux|Timer")
@ -67,6 +68,9 @@ public:
UPROPERTY(BlueprintAssignable, Category="DTFlux|Timer")
FOnStageLoading OnStageLoading;
UPROPERTY(BlueprintAssignable, Category="DTFlux|Timer")
FOnRemoveLineRequested OnRemoveLineRequested;
UFUNCTION()
void OnDataStorageInit();
@ -86,6 +90,9 @@ public:
UFUNCTION(BlueprintCallable, Category="DTFlux|Timer")
void TriggerStageLoading(const TArray<int> ContestIds, const int StageId, int DelayBeforeStageStart);
UFUNCTION(BlueprintCallable, Category="DTFlux|Timer")
void TriggerOnDeleteRequested(const TArray<int> LineIndex);
static UDTFluxSubsystem* GetDTFluxSubSystem();
static UDTFluxDataStorage* GetDTFluxDataStorage();