WwiseLanguageId.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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 "WwiseLanguageId.generated.h"
  17. USTRUCT(BlueprintType)
  18. struct WWISERESOURCELOADER_API FWwiseLanguageId
  19. {
  20. GENERATED_BODY()
  21. static const FWwiseLanguageId Sfx;
  22. FWwiseLanguageId()
  23. {}
  24. FWwiseLanguageId(int32 InLanguageId, const FName& InLanguageName) :
  25. LanguageId(InLanguageId),
  26. LanguageName(InLanguageName)
  27. {
  28. check(!LanguageName.IsNone());
  29. }
  30. UPROPERTY(BlueprintReadOnly, VisibleInstanceOnly, Category = "Wwise")
  31. int32 LanguageId = 0;
  32. UPROPERTY(BlueprintReadOnly, VisibleInstanceOnly, Category = "Wwise")
  33. FName LanguageName;
  34. bool operator==(const FWwiseLanguageId& Rhs) const
  35. {
  36. return LanguageId == Rhs.LanguageId;
  37. }
  38. bool operator!=(const FWwiseLanguageId& Rhs) const
  39. {
  40. return LanguageId != Rhs.LanguageId;
  41. }
  42. bool operator>=(const FWwiseLanguageId& Rhs) const
  43. {
  44. return LanguageId >= Rhs.LanguageId;
  45. }
  46. bool operator>(const FWwiseLanguageId& Rhs) const
  47. {
  48. return LanguageId > Rhs.LanguageId;
  49. }
  50. bool operator<=(const FWwiseLanguageId& Rhs) const
  51. {
  52. return LanguageId <= Rhs.LanguageId;
  53. }
  54. bool operator<(const FWwiseLanguageId& Rhs) const
  55. {
  56. return LanguageId < Rhs.LanguageId;
  57. }
  58. };
  59. inline uint32 GetTypeHash(const FWwiseLanguageId& Id)
  60. {
  61. return GetTypeHash(Id.LanguageId);
  62. }