EntityUtilityFunctions.h 636 B

12345678910111213141516171819
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution.
  3. *
  4. * SPDX-License-Identifier: Apache-2.0 OR MIT
  5. *
  6. */
  7. #pragma once
  8. #include <AzCore/std/string/string_view.h>
  9. #include <AzCore/Component/Entity.h>
  10. #include <AzFramework/Entity/EntityContext.h>
  11. namespace AtomSampleViewer
  12. {
  13. AZ::Entity* CreateEntity(const AZStd::string_view& name, AzFramework::EntityContextId entityContextId);
  14. void DestroyEntity(AZ::Entity*& entity, AzFramework::EntityContextId entityContextId);
  15. void DestroyEntity(AZ::Entity*& entity);
  16. }