EzAbilityTask.h 754 B

1234567891011121314151617181920212223242526272829
  1. // Fill out your copyright notice in the Description page of Project Settings.
  2. #pragma once
  3. #include "CoreMinimal.h"
  4. #include "EzAbilityNodeBase.h"
  5. #include "UObject/Object.h"
  6. #include "EzAbilityTask.generated.h"
  7. struct FEzAbilityContext;
  8. struct FEzAbilityTransitionResult;
  9. /**
  10. *
  11. */
  12. USTRUCT()
  13. struct EZABILITY_API FEzAbilityTask : public FEzAbilityNodeBase
  14. {
  15. GENERATED_BODY()
  16. virtual void ExitState(FEzAbilityContext& Context, const FEzAbilityTransitionResult& Transition) const {}
  17. /** If set to true, TriggerTransitions() is called during transition handling. Default false. */
  18. uint8 bShouldAffectTransitions : 1;
  19. /** True if the node is Enabled (i.e. not explicitly disabled in the asset). */
  20. UPROPERTY()
  21. uint8 bTaskEnabled : 1;
  22. };