From 13feee328d7c8eddbbf0cfaaefba7225522de164 Mon Sep 17 00:00:00 2001 From: Garry Newman Date: Wed, 26 Feb 2020 14:55:13 +0000 Subject: [PATCH] Renamed var ConnectionInfo from data to info --- .../Networking/ConnectionInterface.cs | 16 ++++++++-------- .../Networking/SocketInterface.cs | 16 ++++++++-------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/Facepunch.Steamworks/Networking/ConnectionInterface.cs b/Facepunch.Steamworks/Networking/ConnectionInterface.cs index f59dc6b..877ff88 100644 --- a/Facepunch.Steamworks/Networking/ConnectionInterface.cs +++ b/Facepunch.Steamworks/Networking/ConnectionInterface.cs @@ -26,20 +26,20 @@ namespace Steamworks public override string ToString() => Connection.ToString(); - public virtual void OnConnectionChanged( ConnectionInfo data ) + public virtual void OnConnectionChanged( ConnectionInfo info ) { - switch ( data.State ) + switch ( info.State ) { case ConnectionState.Connecting: - OnConnecting( data ); + OnConnecting( info ); break; case ConnectionState.Connected: - OnConnected( data ); + OnConnected( info ); break; case ConnectionState.ClosedByPeer: case ConnectionState.ProblemDetectedLocally: case ConnectionState.None: - OnDisconnected( data ); + OnDisconnected( info ); break; } } @@ -47,7 +47,7 @@ namespace Steamworks /// /// We're trying to connect! /// - public virtual void OnConnecting( ConnectionInfo data ) + public virtual void OnConnecting( ConnectionInfo info ) { Connecting = true; } @@ -55,7 +55,7 @@ namespace Steamworks /// /// Client is connected. They move from connecting to Connections /// - public virtual void OnConnected( ConnectionInfo data ) + public virtual void OnConnected( ConnectionInfo info ) { Connected = true; Connecting = false; @@ -64,7 +64,7 @@ namespace Steamworks /// /// The connection has been closed remotely or disconnected locally. Check data.State for details. /// - public virtual void OnDisconnected( ConnectionInfo data ) + public virtual void OnDisconnected( ConnectionInfo info ) { Connected = false; Connecting = false; diff --git a/Facepunch.Steamworks/Networking/SocketInterface.cs b/Facepunch.Steamworks/Networking/SocketInterface.cs index 91b416e..649d693 100644 --- a/Facepunch.Steamworks/Networking/SocketInterface.cs +++ b/Facepunch.Steamworks/Networking/SocketInterface.cs @@ -40,20 +40,20 @@ namespace Steamworks return true; } - public virtual void OnConnectionChanged( Connection connection, ConnectionInfo data ) + public virtual void OnConnectionChanged( Connection connection, ConnectionInfo info ) { - switch ( data.State ) + switch ( info.State ) { case ConnectionState.Connecting: if ( !Connecting.Contains( connection ) ) { - OnConnecting( connection, data ); + OnConnecting( connection, info ); } break; case ConnectionState.Connected: if ( !Connected.Contains( connection ) ) { - OnConnected( connection, data ); + OnConnected( connection, info ); } break; case ConnectionState.ClosedByPeer: @@ -61,7 +61,7 @@ namespace Steamworks case ConnectionState.None: if ( Connecting.Contains( connection ) || Connected.Contains( connection ) ) { - OnDisconnected( connection, data ); + OnDisconnected( connection, info ); } break; } @@ -70,7 +70,7 @@ namespace Steamworks /// /// Default behaviour is to accept every connection /// - public virtual void OnConnecting( Connection connection, ConnectionInfo data ) + public virtual void OnConnecting( Connection connection, ConnectionInfo info ) { connection.Accept(); Connecting.Add( connection ); @@ -79,7 +79,7 @@ namespace Steamworks /// /// Client is connected. They move from connecting to Connections /// - public virtual void OnConnected( Connection connection, ConnectionInfo data ) + public virtual void OnConnected( Connection connection, ConnectionInfo info ) { Connecting.Remove( connection ); Connected.Add( connection ); @@ -89,7 +89,7 @@ namespace Steamworks /// /// The connection has been closed remotely or disconnected locally. Check data.State for details. /// - public virtual void OnDisconnected( Connection connection, ConnectionInfo data ) + public virtual void OnDisconnected( Connection connection, ConnectionInfo info ) { SteamNetworkingSockets.Internal.SetConnectionPollGroup( connection, 0 );