WwiseSharedGroupValueKey.h 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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/CookedData/WwiseGroupValueCookedData.h"
  17. #include "WwiseSharedGroupValueKey.generated.h"
  18. USTRUCT(BlueprintType)
  19. struct WWISERESOURCELOADER_API FWwiseSharedGroupValueKey
  20. {
  21. GENERATED_BODY()
  22. TSharedRef<FWwiseGroupValueCookedData, ESPMode::ThreadSafe> GroupValueCookedData;
  23. FWwiseSharedGroupValueKey() :
  24. GroupValueCookedData(new FWwiseGroupValueCookedData)
  25. {}
  26. FWwiseSharedGroupValueKey(const FWwiseGroupValueCookedData& InGroupValueCookedData) :
  27. GroupValueCookedData(new FWwiseGroupValueCookedData(InGroupValueCookedData))
  28. {}
  29. bool operator==(const FWwiseSharedGroupValueKey& Rhs) const
  30. {
  31. return *GroupValueCookedData == *Rhs.GroupValueCookedData;
  32. }
  33. bool operator!=(const FWwiseSharedGroupValueKey& Rhs) const
  34. {
  35. return *GroupValueCookedData != *Rhs.GroupValueCookedData;
  36. }
  37. bool operator>=(const FWwiseSharedGroupValueKey& Rhs) const
  38. {
  39. return *GroupValueCookedData >= *Rhs.GroupValueCookedData;
  40. }
  41. bool operator>(const FWwiseSharedGroupValueKey& Rhs) const
  42. {
  43. return *GroupValueCookedData > *Rhs.GroupValueCookedData;
  44. }
  45. bool operator<=(const FWwiseSharedGroupValueKey& Rhs) const
  46. {
  47. return *GroupValueCookedData <= *Rhs.GroupValueCookedData;
  48. }
  49. bool operator<(const FWwiseSharedGroupValueKey& Rhs) const
  50. {
  51. return *GroupValueCookedData < *Rhs.GroupValueCookedData;
  52. }
  53. };
  54. inline uint32 GetTypeHash(const FWwiseSharedGroupValueKey& Id)
  55. {
  56. return GetTypeHash(*Id.GroupValueCookedData);
  57. }