From da17648ade1ff365ab1648796262d0f580e3b0bb Mon Sep 17 00:00:00 2001 From: Garry Newman Date: Tue, 16 Apr 2019 14:54:05 +0100 Subject: [PATCH] BaseSteamInterface becomes SteamInterface --- Facepunch.Steamworks/Generated/Interfaces/ISteamApps.cs | 2 +- Facepunch.Steamworks/Generated/Interfaces/ISteamFriends.cs | 2 +- Facepunch.Steamworks/Generated/Interfaces/ISteamGameServer.cs | 2 +- .../Generated/Interfaces/ISteamMatchmakingServers.cs | 2 +- Facepunch.Steamworks/Generated/Interfaces/ISteamMusic.cs | 2 +- .../Generated/Interfaces/ISteamParentalSettings.cs | 2 +- Facepunch.Steamworks/Generated/Interfaces/ISteamUser.cs | 2 +- Facepunch.Steamworks/Generated/Interfaces/ISteamUtils.cs | 2 +- Facepunch.Steamworks/Generated/Interfaces/ISteamVideo.cs | 2 +- .../Utility/{BaseSteamInterface.cs => SteamInterface.cs} | 4 ++-- Generator/CodeWriter/ClassVTable.cs | 2 +- 11 files changed, 12 insertions(+), 12 deletions(-) rename Facepunch.Steamworks/Utility/{BaseSteamInterface.cs => SteamInterface.cs} (94%) diff --git a/Facepunch.Steamworks/Generated/Interfaces/ISteamApps.cs b/Facepunch.Steamworks/Generated/Interfaces/ISteamApps.cs index f7d806e..ef8c356 100644 --- a/Facepunch.Steamworks/Generated/Interfaces/ISteamApps.cs +++ b/Facepunch.Steamworks/Generated/Interfaces/ISteamApps.cs @@ -7,7 +7,7 @@ namespace Steamworks { - internal class ISteamApps : BaseSteamInterface + internal class ISteamApps : SteamInterface { public ISteamApps( bool server = false ) : base( server ) { diff --git a/Facepunch.Steamworks/Generated/Interfaces/ISteamFriends.cs b/Facepunch.Steamworks/Generated/Interfaces/ISteamFriends.cs index 4052d0c..45229ce 100644 --- a/Facepunch.Steamworks/Generated/Interfaces/ISteamFriends.cs +++ b/Facepunch.Steamworks/Generated/Interfaces/ISteamFriends.cs @@ -7,7 +7,7 @@ namespace Steamworks { - internal class ISteamFriends : BaseSteamInterface + internal class ISteamFriends : SteamInterface { public ISteamFriends( bool server = false ) : base( server ) { diff --git a/Facepunch.Steamworks/Generated/Interfaces/ISteamGameServer.cs b/Facepunch.Steamworks/Generated/Interfaces/ISteamGameServer.cs index ea09d57..b3ef075 100644 --- a/Facepunch.Steamworks/Generated/Interfaces/ISteamGameServer.cs +++ b/Facepunch.Steamworks/Generated/Interfaces/ISteamGameServer.cs @@ -7,7 +7,7 @@ namespace Steamworks { - internal class ISteamGameServer : BaseSteamInterface + internal class ISteamGameServer : SteamInterface { public ISteamGameServer( bool server = false ) : base( server ) { diff --git a/Facepunch.Steamworks/Generated/Interfaces/ISteamMatchmakingServers.cs b/Facepunch.Steamworks/Generated/Interfaces/ISteamMatchmakingServers.cs index 95bac9f..1dfdc4f 100644 --- a/Facepunch.Steamworks/Generated/Interfaces/ISteamMatchmakingServers.cs +++ b/Facepunch.Steamworks/Generated/Interfaces/ISteamMatchmakingServers.cs @@ -7,7 +7,7 @@ namespace Steamworks { - internal class ISteamMatchmakingServers : BaseSteamInterface + internal class ISteamMatchmakingServers : SteamInterface { public ISteamMatchmakingServers( bool server = false ) : base( server ) { diff --git a/Facepunch.Steamworks/Generated/Interfaces/ISteamMusic.cs b/Facepunch.Steamworks/Generated/Interfaces/ISteamMusic.cs index 7b94bf3..3048716 100644 --- a/Facepunch.Steamworks/Generated/Interfaces/ISteamMusic.cs +++ b/Facepunch.Steamworks/Generated/Interfaces/ISteamMusic.cs @@ -7,7 +7,7 @@ namespace Steamworks { - internal class ISteamMusic : BaseSteamInterface + internal class ISteamMusic : SteamInterface { public ISteamMusic( bool server = false ) : base( server ) { diff --git a/Facepunch.Steamworks/Generated/Interfaces/ISteamParentalSettings.cs b/Facepunch.Steamworks/Generated/Interfaces/ISteamParentalSettings.cs index 0fa5862..406beb7 100644 --- a/Facepunch.Steamworks/Generated/Interfaces/ISteamParentalSettings.cs +++ b/Facepunch.Steamworks/Generated/Interfaces/ISteamParentalSettings.cs @@ -7,7 +7,7 @@ namespace Steamworks { - internal class ISteamParentalSettings : BaseSteamInterface + internal class ISteamParentalSettings : SteamInterface { public ISteamParentalSettings( bool server = false ) : base( server ) { diff --git a/Facepunch.Steamworks/Generated/Interfaces/ISteamUser.cs b/Facepunch.Steamworks/Generated/Interfaces/ISteamUser.cs index 904b99f..0cc6382 100644 --- a/Facepunch.Steamworks/Generated/Interfaces/ISteamUser.cs +++ b/Facepunch.Steamworks/Generated/Interfaces/ISteamUser.cs @@ -7,7 +7,7 @@ namespace Steamworks { - internal class ISteamUser : BaseSteamInterface + internal class ISteamUser : SteamInterface { public ISteamUser( bool server = false ) : base( server ) { diff --git a/Facepunch.Steamworks/Generated/Interfaces/ISteamUtils.cs b/Facepunch.Steamworks/Generated/Interfaces/ISteamUtils.cs index 7401d10..17fb980 100644 --- a/Facepunch.Steamworks/Generated/Interfaces/ISteamUtils.cs +++ b/Facepunch.Steamworks/Generated/Interfaces/ISteamUtils.cs @@ -7,7 +7,7 @@ namespace Steamworks { - internal class ISteamUtils : BaseSteamInterface + internal class ISteamUtils : SteamInterface { public ISteamUtils( bool server = false ) : base( server ) { diff --git a/Facepunch.Steamworks/Generated/Interfaces/ISteamVideo.cs b/Facepunch.Steamworks/Generated/Interfaces/ISteamVideo.cs index 4cbd75b..bbe5f3a 100644 --- a/Facepunch.Steamworks/Generated/Interfaces/ISteamVideo.cs +++ b/Facepunch.Steamworks/Generated/Interfaces/ISteamVideo.cs @@ -7,7 +7,7 @@ namespace Steamworks { - internal class ISteamVideo : BaseSteamInterface + internal class ISteamVideo : SteamInterface { public ISteamVideo( bool server = false ) : base( server ) { diff --git a/Facepunch.Steamworks/Utility/BaseSteamInterface.cs b/Facepunch.Steamworks/Utility/SteamInterface.cs similarity index 94% rename from Facepunch.Steamworks/Utility/BaseSteamInterface.cs rename to Facepunch.Steamworks/Utility/SteamInterface.cs index 4269c63..638ba59 100644 --- a/Facepunch.Steamworks/Utility/BaseSteamInterface.cs +++ b/Facepunch.Steamworks/Utility/SteamInterface.cs @@ -9,14 +9,14 @@ namespace Steamworks { - internal abstract class BaseSteamInterface + internal abstract class SteamInterface { public IntPtr Self; public IntPtr VTable; public virtual string InterfaceName => null; - public BaseSteamInterface( bool server = false ) + public SteamInterface( bool server = false ) { // // If teh client isn't initialized but the server is, diff --git a/Generator/CodeWriter/ClassVTable.cs b/Generator/CodeWriter/ClassVTable.cs index 09b237d..0775a8e 100644 --- a/Generator/CodeWriter/ClassVTable.cs +++ b/Generator/CodeWriter/ClassVTable.cs @@ -25,7 +25,7 @@ public void GenerateVTableClass( string className, string filename ) StartBlock( $"namespace Steamworks" ); { - StartBlock( $"internal class {clss.Name} : BaseSteamInterface" ); + StartBlock( $"internal class {clss.Name} : SteamInterface" ); { StartBlock( $"public {clss.Name}( bool server = false ) : base( server )" ); {