FullOwnershipEntityDomain.h 942 B

1234567891011121314151617181920212223242526272829303132
  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 <Multiplayer/EntityDomains/IEntityDomain.h>
  10. namespace Multiplayer
  11. {
  12. class FullOwnershipEntityDomain
  13. : public IEntityDomain
  14. {
  15. public:
  16. FullOwnershipEntityDomain() = default;
  17. FullOwnershipEntityDomain(const FullOwnershipEntityDomain& rhs) = default;
  18. //! IEntityDomain overrides.
  19. //! @{
  20. void SetAabb(const AZ::Aabb& aabb) override;
  21. const AZ::Aabb& GetAabb() const override;
  22. bool IsInDomain(const ConstNetworkEntityHandle& entityHandle) const override;
  23. void HandleLossOfAuthoritativeReplicator(const ConstNetworkEntityHandle& entityHandle) override;
  24. void DebugDraw() const override;
  25. //! @}
  26. };
  27. }