FullOwnershipEntityDomain.cpp 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. #include <Source/EntityDomains/FullOwnershipEntityDomain.h>
  9. namespace Multiplayer
  10. {
  11. void FullOwnershipEntityDomain::SetAabb([[maybe_unused]] const AZ::Aabb& aabb)
  12. {
  13. ; // Do nothing, by definition we own everything
  14. }
  15. const AZ::Aabb& FullOwnershipEntityDomain::GetAabb() const
  16. {
  17. static AZ::Aabb nullAabb = AZ::Aabb::CreateNull();
  18. return nullAabb;
  19. }
  20. bool FullOwnershipEntityDomain::IsInDomain([[maybe_unused]] const ConstNetworkEntityHandle& entityHandle) const
  21. {
  22. return true;
  23. }
  24. void FullOwnershipEntityDomain::HandleLossOfAuthoritativeReplicator([[maybe_unused]] const ConstNetworkEntityHandle& entityHandle)
  25. {
  26. AZ_Assert(false, "FullOwnershipEntityDomain has authoritative control over all entities, something unexpected has happened");
  27. }
  28. void FullOwnershipEntityDomain::DebugDraw() const
  29. {
  30. ;
  31. }
  32. }