Cleanup session changes and add on connection disconnected event
This commit is contained in:
@@ -22,7 +22,7 @@ namespace Multiplayer
|
||||
(
|
||||
AzNetworking::IConnection* connection,
|
||||
AzNetworking::IConnectionListener& connectionListener,
|
||||
AZStd::string providerTicket
|
||||
const AZStd::string& providerTicket
|
||||
)
|
||||
: m_connection(connection)
|
||||
, m_entityReplicationManager(*connection, connectionListener, EntityReplicationManager::Mode::LocalClientToRemoteServer)
|
||||
|
||||
@@ -25,7 +25,7 @@ namespace Multiplayer
|
||||
(
|
||||
AzNetworking::IConnection* connection,
|
||||
AzNetworking::IConnectionListener& connectionListener,
|
||||
AZStd::string providerTicket = ""
|
||||
const AZStd::string& providerTicket = ""
|
||||
);
|
||||
~ClientToServerConnectionData() override;
|
||||
|
||||
@@ -39,7 +39,7 @@ namespace Multiplayer
|
||||
void SetCanSendUpdates(bool canSendUpdates) override;
|
||||
//! @}
|
||||
|
||||
AZStd::string GetProviderTicket() const;
|
||||
const AZStd::string& GetProviderTicket() const;
|
||||
|
||||
private:
|
||||
EntityReplicationManager m_entityReplicationManager;
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace Multiplayer
|
||||
m_canSendUpdates = canSendUpdates;
|
||||
}
|
||||
|
||||
inline AZStd::string ClientToServerConnectionData::GetProviderTicket() const
|
||||
inline const AZStd::string& ClientToServerConnectionData::GetProviderTicket() const
|
||||
{
|
||||
return m_providerTicket;
|
||||
}
|
||||
|
||||
@@ -41,7 +41,7 @@ namespace Multiplayer
|
||||
|
||||
NetworkEntityHandle GetPrimaryPlayerEntity();
|
||||
const NetworkEntityHandle& GetPrimaryPlayerEntity() const;
|
||||
AZStd::string GetProviderTicket() const;
|
||||
const AZStd::string& GetProviderTicket() const;
|
||||
void SetProviderTicket(AZStd::string);
|
||||
|
||||
private:
|
||||
|
||||
@@ -33,7 +33,7 @@ namespace Multiplayer
|
||||
return m_controlledEntity;
|
||||
}
|
||||
|
||||
inline AZStd::string ServerToClientConnectionData::GetProviderTicket() const
|
||||
inline const AZStd::string& ServerToClientConnectionData::GetProviderTicket() const
|
||||
{
|
||||
return m_ticket;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user