Removing unused member, simplify API

Signed-off-by: kberg-amzn <karlberg@amazon.com>
This commit is contained in:
kberg-amzn
2021-10-08 21:36:54 -07:00
parent 4449e83c3b
commit 05e8b2941a
2 changed files with 0 additions and 17 deletions
@@ -57,10 +57,6 @@ namespace Multiplayer
EntityReplicationManager(AzNetworking::IConnection& connection, AzNetworking::IConnectionListener& connectionListener, Mode mode);
~EntityReplicationManager() = default;
//! Used to override during client migration if your host has a specially assigned publically routable address.
//! @param remoteHostId the publically routable address to use in place of the remote HostId
void SetMigrateHostId(const HostId& remoteHostId);
const HostId& GetMigrateHostId() const;
const HostId& GetRemoteHostId() const;
void ActivatePendingEntities();
@@ -211,7 +207,6 @@ namespace Multiplayer
AZ::TimeMs m_entityPendingRemovalMs = AZ::TimeMs{ 0 };
AZ::TimeMs m_frameTimeMs = AZ::TimeMs{ 0 };
HostId m_remoteHostId = InvalidHostId;
HostId m_migrateHostId = InvalidHostId;
uint32_t m_maxRemoteEntitiesPendingCreationCount = AZStd::numeric_limits<uint32_t>::max();
uint32_t m_maxPayloadSize = 0;
Mode m_updateMode = Mode::Invalid;
@@ -49,7 +49,6 @@ namespace Multiplayer
{
// Set up our remote host identifier, by default we use the IP address of the remote host
m_remoteHostId = connection.GetRemoteAddress();
m_migrateHostId = m_remoteHostId;
// Our max payload size is whatever is passed in, minus room for a udp packetheader
m_maxPayloadSize = connection.GetConnectionMtu() - UdpPacketHeaderSerializeSize - ReplicationManagerPacketOverhead;
@@ -72,17 +71,6 @@ namespace Multiplayer
}
}
void EntityReplicationManager::SetMigrateHostId(const HostId& remoteHostId)
{
// Allows overriding the remote HostId
m_migrateHostId = remoteHostId;
}
const HostId& EntityReplicationManager::GetMigrateHostId() const
{
return m_migrateHostId;
}
const HostId& EntityReplicationManager::GetRemoteHostId() const
{
return m_remoteHostId;