RuntimeAssetSystemComponent.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #pragma once
  9. #include <AzCore/Component/Component.h>
  10. #include <ScriptCanvas/Asset/AssetRegistry.h>
  11. namespace ScriptCanvas
  12. {
  13. class RuntimeAssetSystemComponent
  14. : public AZ::Component
  15. {
  16. public:
  17. AZ_COMPONENT(RuntimeAssetSystemComponent, "{521BF54E-29A9-4367-B9E5-19736AA3A957}");
  18. RuntimeAssetSystemComponent() = default;
  19. ~RuntimeAssetSystemComponent() override;
  20. static void Reflect(AZ::ReflectContext* context);
  21. static void GetProvidedServices(AZ::ComponentDescriptor::DependencyArrayType& provided);
  22. static void GetRequiredServices(AZ::ComponentDescriptor::DependencyArrayType& required);
  23. static void GetDependentServices(AZ::ComponentDescriptor::DependencyArrayType& dependent);
  24. ////////////////////////////////////////////////////////////////////////
  25. // AZ::Component...
  26. void Init() override;
  27. void Activate() override;
  28. void Deactivate() override;
  29. ////////////////////////////////////////////////////////////////////////
  30. AssetRegistry& GetAssetRegistry();
  31. private:
  32. RuntimeAssetSystemComponent(const RuntimeAssetSystemComponent&) = delete;
  33. AssetRegistry m_runtimeAssetRegistry;
  34. };
  35. }