AkJsonFactory.h 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. /*=============================================================================
  16. AkJsonFactory.h:
  17. =============================================================================*/
  18. #pragma once
  19. #include "Factories/Factory.h"
  20. #include "AkJsonFactory.generated.h"
  21. /*------------------------------------------------------------------------------------
  22. UAkJsonFactory
  23. ------------------------------------------------------------------------------------*/
  24. UCLASS(hidecategories=Object)
  25. class UAkJsonFactory : public UFactory
  26. {
  27. GENERATED_BODY()
  28. public:
  29. UAkJsonFactory(const class FObjectInitializer& ObjectInitializer);
  30. #if CPP
  31. /*------------------------------------------------------------------------------------
  32. UFactory Interface
  33. ------------------------------------------------------------------------------------*/
  34. /**
  35. * Create a new instance
  36. *
  37. * @param Class The type of class to create
  38. * @param InParent The parent class
  39. * @param Name The name of the new instance
  40. * @param Flags Creation flags
  41. * @param Context Creation context
  42. * @param Warn Warnings
  43. * @return The new object if creation was successful, otherwise false
  44. */
  45. virtual UObject* FactoryCreateNew(UClass* Class,UObject* InParent,FName Name,EObjectFlags Flags,UObject* Context,FFeedbackContext* Warn) override;
  46. #endif
  47. /**
  48. * @return true if this factory can deal with the file sent in.
  49. */
  50. virtual bool FactoryCanImport(const FString& Filename) override;
  51. virtual bool ShouldShowInNewMenu() const override;
  52. };