MovieSceneAkAudioEventTemplate.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*******************************************************************************
  2. The content of this file includes portions of the proprietary AUDIOKINETIC Wwise
  3. Technology released in source code form as part of the game integration package.
  4. The content of this file may not be used without valid licenses to the
  5. AUDIOKINETIC Wwise Technology.
  6. Note that the use of the game engine is subject to the Unreal(R) Engine End User
  7. License Agreement at https://www.unrealengine.com/en-US/eula/unreal
  8. License Usage
  9. Licensees holding valid licenses to the AUDIOKINETIC Wwise Technology may use
  10. this file in accordance with the end user license agreement provided with the
  11. software or, alternatively, in accordance with the terms contained
  12. in a written agreement between you and Audiokinetic Inc.
  13. Copyright (c) 2023 Audiokinetic Inc.
  14. *******************************************************************************/
  15. #pragma once
  16. #include "CoreMinimal.h"
  17. #include "UObject/ObjectMacros.h"
  18. #include "Evaluation/MovieSceneEvalTemplate.h"
  19. #include "MovieSceneAkAudioEventTemplate.generated.h"
  20. class UMovieSceneAkAudioEventSection;
  21. USTRUCT()
  22. struct AKAUDIO_API FMovieSceneAkAudioEventTemplate
  23. : public FMovieSceneEvalTemplate
  24. {
  25. GENERATED_BODY()
  26. FMovieSceneAkAudioEventTemplate() {}
  27. FMovieSceneAkAudioEventTemplate(const UMovieSceneAkAudioEventSection* InSection);
  28. virtual void Evaluate(const FMovieSceneEvaluationOperand& Operand, const FMovieSceneContext& Context, const FPersistentEvaluationData& PersistentData, FMovieSceneExecutionTokens& ExecutionTokens) const override;
  29. virtual UScriptStruct& GetScriptStructImpl() const override { return *StaticStruct(); }
  30. virtual void Setup(FPersistentEvaluationData& PersistentData, IMovieScenePlayer& Player) const override;
  31. virtual void TearDown(FPersistentEvaluationData& PersistentData, IMovieScenePlayer& Player) const override;
  32. virtual void SetupOverrides() override { EnableOverrides(RequiresSetupFlag | RequiresTearDownFlag); }
  33. UPROPERTY()
  34. const UMovieSceneAkAudioEventSection* Section = nullptr;
  35. };