|
|
|
|
@ -597,12 +597,6 @@ namespace Multiplayer
|
|
|
|
|
connection->SetUserData(nullptr);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Signal to session management that a user triggered a disconnect
|
|
|
|
|
if (m_agentType == MultiplayerAgentType::Client && connection->GetConnectionRole() == ConnectionRole::Connector)
|
|
|
|
|
{
|
|
|
|
|
AZ::Interface<AzFramework::ISessionRequests>::Get()->LeaveSession();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Signal to session management that a user has left the server
|
|
|
|
|
if (m_agentType == MultiplayerAgentType::DedicatedServer || m_agentType == MultiplayerAgentType::ClientServer)
|
|
|
|
|
{
|
|
|
|
|
@ -854,7 +848,6 @@ namespace Multiplayer
|
|
|
|
|
}
|
|
|
|
|
AZ_CONSOLEFREEFUNC(host, AZ::ConsoleFunctorFlags::DontReplicate, "Opens a multiplayer connection as a host for other clients to connect to");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void connect([[maybe_unused]] const AZ::ConsoleCommandContainer& arguments)
|
|
|
|
|
{
|
|
|
|
|
AZ::Interface<IMultiplayer>::Get()->InitializeMultiplayer(MultiplayerAgentType::Client);
|
|
|
|
|
|