WwiseRefSwitchGroup.h 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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 FWwiseRefSwitchGroup : public FWwiseRefSoundBank
  18. {
  19. public:
  20. static const TCHAR* const NAME;
  21. static constexpr EWwiseRefType TYPE = EWwiseRefType::SwitchGroup;
  22. struct FGlobalIdsMap;
  23. WwiseRefIndexType SwitchGroupIndex;
  24. FWwiseRefSwitchGroup() {}
  25. FWwiseRefSwitchGroup(const WwiseMetadataSharedRootFileConstPtr& InRootMediaRef, const FName& InJsonFilePath,
  26. WwiseRefIndexType InSoundBankIndex, uint32 InLanguageId,
  27. WwiseRefIndexType InSwitchGroupIndex) :
  28. FWwiseRefSoundBank(InRootMediaRef, InJsonFilePath, InSoundBankIndex, InLanguageId),
  29. SwitchGroupIndex(InSwitchGroupIndex)
  30. {}
  31. const FWwiseMetadataSwitchGroup* GetSwitchGroup() const;
  32. bool IsControlledByGameParameter() const;
  33. uint32 SwitchGroupId() const;
  34. FGuid SwitchGroupGuid() const;
  35. FName SwitchGroupName() const;
  36. FName SwitchGroupObjectPath() const;
  37. uint32 Hash() const override;
  38. EWwiseRefType Type() const override { return TYPE; }
  39. bool operator==(const FWwiseRefSwitchGroup& Rhs) const
  40. {
  41. return FWwiseRefSoundBank::operator ==(Rhs)
  42. && SwitchGroupIndex == Rhs.SwitchGroupIndex;
  43. }
  44. bool operator!=(const FWwiseRefSwitchGroup& Rhs) const { return !operator==(Rhs); }
  45. };
  46. struct WWISEPROJECTDATABASE_API FWwiseRefSwitchGroup::FGlobalIdsMap
  47. {
  48. WwiseSwitchGroupGlobalIdsMap GlobalIdsMap;
  49. };