EditorStaticRigidBodyComponent.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  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 <AzToolsFramework/ToolsComponents/EditorComponentBase.h>
  10. namespace PhysX
  11. {
  12. //! Class for in-editor PhysX Static Rigid Body Component.
  13. class EditorStaticRigidBodyComponent : public AzToolsFramework::Components::EditorComponentBase
  14. {
  15. public:
  16. AZ_EDITOR_COMPONENT(
  17. EditorStaticRigidBodyComponent, "{DA884366-E00D-496B-A9C3-9CBF08B3537E}", AzToolsFramework::Components::EditorComponentBase);
  18. static void Reflect(AZ::ReflectContext* context);
  19. EditorStaticRigidBodyComponent() = default;
  20. ~EditorStaticRigidBodyComponent() = default;
  21. static void GetProvidedServices(AZ::ComponentDescriptor::DependencyArrayType& provided);
  22. static void GetIncompatibleServices(AZ::ComponentDescriptor::DependencyArrayType& incompatible);
  23. static void GetRequiredServices(AZ::ComponentDescriptor::DependencyArrayType& required);
  24. static void GetDependentServices(AZ::ComponentDescriptor::DependencyArrayType& dependent);
  25. // EditorComponentBase
  26. void BuildGameEntity(AZ::Entity* gameEntity) override;
  27. };
  28. } // namespace PhysX