d411c1d1d9
* WIP. Autonomous->Authority network properties now functional. Still need some research in regards to entity ownership when it comes to the PropertyPublisher. Signed-off-by: Gene Walters <genewalt@amazon.com> * WIP. Exposing Auton->Auth Properties accessors and onchange events Signed-off-by: Gene Walters <genewalt@amazon.com> * Fix propertypublisher constructor to skip the creation state if we arent the owner. Removing ClientToServerReplicationWindow, return to just using NullReplicationWindow. Signed-off-by: Gene Walters <genewalt@amazon.com> * Reverting some wip debug prints Signed-off-by: Gene Walters <genewalt@amazon.com> * Minor whitespacing fix Signed-off-by: Gene Walters <genewalt@amazon.com> * minor undoing of whitespacing Signed-off-by: Gene Walters <genewalt@amazon.com> * NullReplicationWindow MaxReplication is 0, but now Autonomous entity updates will always be added to the send list (ignoring the max replication limit) Signed-off-by: Gene Walters <genewalt@amazon.com> * Updating PropertyPublisher comment to explicitly call out if we dont own the entity locally, the remote replicator must exist Signed-off-by: Gene Walters <genewalt@amazon.com> * Renaming RepiclationWindow GetMaxEntityReplicatorSendCount to GetMaxProxyEntityReplicatorSendCount; this number only affects the number of proxy sends and allows autonomous properties to always send Signed-off-by: Gene Walters <genewalt@amazon.com>
35 lines
965 B
C++
35 lines
965 B
C++
/*
|
|
* 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>
|
|
|
|
namespace Multiplayer
|
|
{
|
|
class NullReplicationWindow
|
|
: public IReplicationWindow
|
|
{
|
|
public:
|
|
NullReplicationWindow() = default;
|
|
|
|
//! IReplicationWindow interface
|
|
//! @{
|
|
bool ReplicationSetUpdateReady() override;
|
|
const ReplicationSet& GetReplicationSet() const override;
|
|
uint32_t GetMaxProxyEntityReplicatorSendCount() const override;
|
|
bool IsInWindow(const ConstNetworkEntityHandle& entityPtr, NetEntityRole& outNetworkRole) const override;
|
|
void UpdateWindow() override;
|
|
void DebugDraw() const override;
|
|
//! @}
|
|
|
|
private:
|
|
ReplicationSet m_emptySet;
|
|
};
|
|
}
|