| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- /*
- * 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.
- *
- * SPDX-License-Identifier: Apache-2.0 OR MIT
- *
- */
- #pragma once
- #include <Multiplayer/ReplicationWindows/IReplicationWindow.h>
- #include <AzNetworking/ConnectionLayer/IConnection.h>
- namespace Multiplayer
- {
- class NullReplicationWindow
- : public IReplicationWindow
- {
- public:
- NullReplicationWindow(AzNetworking::IConnection* connection);
- //! IReplicationWindow interface
- //! @{
- bool ReplicationSetUpdateReady() override;
- const ReplicationSet& GetReplicationSet() const override;
- uint32_t GetMaxProxyEntityReplicatorSendCount() const override;
- bool IsInWindow(const ConstNetworkEntityHandle& entityPtr, NetEntityRole& outNetworkRole) const override;
- bool AddEntity(AZ::Entity* entity) override;
- void RemoveEntity(AZ::Entity* entity) override;
- void UpdateWindow() override;
- AzNetworking::PacketId SendEntityUpdateMessages(NetworkEntityUpdateVector& entityUpdateVector) override;
- void SendEntityRpcs(NetworkEntityRpcVector& entityRpcVector, bool reliable) override;
- void SendEntityResets(const NetEntityIdSet& resetIds) override;
- void DebugDraw() const override;
- //! @}
- private:
- ReplicationSet m_emptySet;
- AzNetworking::IConnection* m_connection = nullptr;
- };
- }
|