第一次提交
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
// Copyright 2025 https://yuewu.dev/en All Rights Reserved.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "CoreMinimal.h"
|
||||
#include "GameplayEffectComponent.h"
|
||||
#include "GCS_GEComponent_PredictivelyExecute.generated.h"
|
||||
|
||||
/**
|
||||
* This component will predictively execute instant GE which treated as infinite one.
|
||||
* @attention Internally will mark this effect context as local predicting context, so you can conditional apply logic in subsequent codes.
|
||||
*/
|
||||
UCLASS()
|
||||
class GENERICCOMBATSYSTEM_API UGCS_GEComponent_PredictivelyExecute : public UGameplayEffectComponent
|
||||
{
|
||||
GENERATED_BODY()
|
||||
|
||||
public:
|
||||
virtual void OnGameplayEffectApplied(FActiveGameplayEffectsContainer& ActiveGEContainer, FGameplayEffectSpec& GESpec, FPredictionKey& PredictionKey) const override;
|
||||
|
||||
private:
|
||||
UPROPERTY(EditDefaultsOnly, Category = GCS)
|
||||
bool bPredictGameplayCues{false};
|
||||
};
|
||||
Reference in New Issue
Block a user