MovieSceneAkTrack.h 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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 "MovieScene.h"
  17. #include "MovieSceneTrack.h"
  18. #include "WwiseDefines.h"
  19. #include "MovieSceneAkTrack.generated.h"
  20. /**
  21. * Handles manipulation of an Ak track in a movie scene
  22. */
  23. UCLASS(abstract, MinimalAPI)
  24. class UMovieSceneAkTrack
  25. : public UMovieSceneTrack
  26. {
  27. GENERATED_BODY()
  28. public:
  29. /** begin UMovieSceneTrack interface */
  30. virtual void RemoveAllAnimationData() override { Sections.Empty(); }
  31. virtual bool HasSection(const UMovieSceneSection& Section) const override { return Sections.Contains(&Section); }
  32. virtual void AddSection(UMovieSceneSection& Section) override { Sections.Add(&Section); }
  33. virtual void RemoveSection(UMovieSceneSection& Section) override { Sections.Remove(&Section); }
  34. virtual bool IsEmpty() const override { return Sections.Num() == 0; }
  35. virtual const TArray<UMovieSceneSection*>& GetAllSections() const override { return Sections; }
  36. /** end UMovieSceneTrack interface */
  37. void SetIsAMasterTrack(bool AMasterTrack) { bIsAMasterTrack = AMasterTrack; }
  38. bool IsAMasterTrack() const { return bIsAMasterTrack; }
  39. protected:
  40. /** All the sections in this track */
  41. UPROPERTY()
  42. TArray<UMovieSceneSection*> Sections;
  43. UPROPERTY()
  44. bool bIsAMasterTrack = false;
  45. };