EntityUtilityFunctions.h 638 B

1234567891011121314151617181920
  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/std/string/string_view.h>
  10. #include <AzCore/Component/Entity.h>
  11. #include <AzFramework/Entity/EntityContext.h>
  12. namespace AtomSampleViewer
  13. {
  14. AZ::Entity* CreateEntity(const AZStd::string_view& name, AzFramework::EntityContextId entityContextId);
  15. void DestroyEntity(AZ::Entity*& entity, AzFramework::EntityContextId entityContextId);
  16. void DestroyEntity(AZ::Entity*& entity);
  17. }