WwiseRefBus.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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 "Wwise/Ref/WwiseRefSoundBank.h"
  17. class WWISEPROJECTDATABASE_API FWwiseRefBus : public FWwiseRefSoundBank
  18. {
  19. public:
  20. static const TCHAR* const NAME;
  21. static constexpr EWwiseRefType TYPE = EWwiseRefType::Bus;
  22. struct FGlobalIdsMap;
  23. WwiseRefIndexType BusIndex;
  24. FWwiseRefBus() {}
  25. FWwiseRefBus(const WwiseMetadataSharedRootFileConstPtr& InRootMediaRef, const FName& InJsonFilePath,
  26. WwiseRefIndexType InSoundBankIndex, uint32 InLanguageId,
  27. WwiseRefIndexType InBusIndex) :
  28. FWwiseRefSoundBank(InRootMediaRef, InJsonFilePath, InSoundBankIndex, InLanguageId),
  29. BusIndex(InBusIndex)
  30. {}
  31. const FWwiseMetadataBus* GetBus() const;
  32. uint32 BusId() const;
  33. FGuid BusGuid() const;
  34. FName BusName() const;
  35. FName BusObjectPath() const;
  36. uint32 Hash() const override;
  37. EWwiseRefType Type() const override { return TYPE; }
  38. bool operator==(const FWwiseRefBus& Rhs) const
  39. {
  40. return FWwiseRefSoundBank::operator ==(Rhs)
  41. && BusIndex == Rhs.BusIndex;
  42. }
  43. bool operator!=(const FWwiseRefBus& Rhs) const { return !operator==(Rhs); }
  44. };
  45. struct WWISEPROJECTDATABASE_API FWwiseRefBus::FGlobalIdsMap
  46. {
  47. WwiseBusGlobalIdsMap GlobalIdsMap;
  48. };