This commit is contained in:
Garry Newman 2019-04-11 21:38:19 +01:00
parent d91ba6d84a
commit b6266a7386
29 changed files with 825 additions and 800 deletions

View File

@ -25,7 +25,7 @@ internal SteamApi()
// //
// Class is invalid if we don't have a valid implementation // Class is invalid if we don't have a valid implementation
// //
public bool IsValid{ get{ return platform != null && platform.IsValid; } } public bool IsValid => platform != null && platform.IsValid;
// //
// When shutting down clear all the internals to avoid accidental use // When shutting down clear all the internals to avoid accidental use

View File

@ -27,7 +27,7 @@ internal SteamAppList( Facepunch.Steamworks.BaseSteamworks steamworks, IntPtr po
// //
// Class is invalid if we don't have a valid implementation // Class is invalid if we don't have a valid implementation
// //
public bool IsValid{ get{ return platform != null && platform.IsValid; } } public bool IsValid => platform != null && platform.IsValid;
// //
// When shutting down clear all the internals to avoid accidental use // When shutting down clear all the internals to avoid accidental use

View File

@ -27,7 +27,7 @@ internal SteamApps( Facepunch.Steamworks.BaseSteamworks steamworks, IntPtr point
// //
// Class is invalid if we don't have a valid implementation // Class is invalid if we don't have a valid implementation
// //
public bool IsValid{ get{ return platform != null && platform.IsValid; } } public bool IsValid => platform != null && platform.IsValid;
// //
// When shutting down clear all the internals to avoid accidental use // When shutting down clear all the internals to avoid accidental use

View File

@ -27,7 +27,7 @@ internal SteamClient( Facepunch.Steamworks.BaseSteamworks steamworks, IntPtr poi
// //
// Class is invalid if we don't have a valid implementation // Class is invalid if we don't have a valid implementation
// //
public bool IsValid{ get{ return platform != null && platform.IsValid; } } public bool IsValid => platform != null && platform.IsValid;
// //
// When shutting down clear all the internals to avoid accidental use // When shutting down clear all the internals to avoid accidental use
@ -82,6 +82,7 @@ public SteamAppList GetISteamAppList( HSteamUser hSteamUser /*HSteamUser*/, HSte
{ {
IntPtr interface_pointer; IntPtr interface_pointer;
interface_pointer = platform.ISteamClient_GetISteamAppList( hSteamUser.Value, hSteamPipe.Value, pchVersion ); interface_pointer = platform.ISteamClient_GetISteamAppList( hSteamUser.Value, hSteamPipe.Value, pchVersion );
if ( interface_pointer == IntPtr.Zero ) throw new System.Exception( $"Error getting interface {pchVersion}");
return new SteamAppList( steamworks, interface_pointer ); return new SteamAppList( steamworks, interface_pointer );
} }
@ -90,6 +91,7 @@ public SteamApps GetISteamApps( HSteamUser hSteamUser /*HSteamUser*/, HSteamPipe
{ {
IntPtr interface_pointer; IntPtr interface_pointer;
interface_pointer = platform.ISteamClient_GetISteamApps( hSteamUser.Value, hSteamPipe.Value, pchVersion ); interface_pointer = platform.ISteamClient_GetISteamApps( hSteamUser.Value, hSteamPipe.Value, pchVersion );
if ( interface_pointer == IntPtr.Zero ) throw new System.Exception( $"Error getting interface {pchVersion}");
return new SteamApps( steamworks, interface_pointer ); return new SteamApps( steamworks, interface_pointer );
} }
@ -98,6 +100,7 @@ public SteamController GetISteamController( HSteamUser hSteamUser /*HSteamUser*/
{ {
IntPtr interface_pointer; IntPtr interface_pointer;
interface_pointer = platform.ISteamClient_GetISteamController( hSteamUser.Value, hSteamPipe.Value, pchVersion ); interface_pointer = platform.ISteamClient_GetISteamController( hSteamUser.Value, hSteamPipe.Value, pchVersion );
if ( interface_pointer == IntPtr.Zero ) throw new System.Exception( $"Error getting interface {pchVersion}");
return new SteamController( steamworks, interface_pointer ); return new SteamController( steamworks, interface_pointer );
} }
@ -106,6 +109,7 @@ public SteamFriends GetISteamFriends( HSteamUser hSteamUser /*HSteamUser*/, HSte
{ {
IntPtr interface_pointer; IntPtr interface_pointer;
interface_pointer = platform.ISteamClient_GetISteamFriends( hSteamUser.Value, hSteamPipe.Value, pchVersion ); interface_pointer = platform.ISteamClient_GetISteamFriends( hSteamUser.Value, hSteamPipe.Value, pchVersion );
if ( interface_pointer == IntPtr.Zero ) throw new System.Exception( $"Error getting interface {pchVersion}");
return new SteamFriends( steamworks, interface_pointer ); return new SteamFriends( steamworks, interface_pointer );
} }
@ -114,6 +118,7 @@ public SteamGameSearch GetISteamGameSearch( HSteamUser hSteamuser /*HSteamUser*/
{ {
IntPtr interface_pointer; IntPtr interface_pointer;
interface_pointer = platform.ISteamClient_GetISteamGameSearch( hSteamuser.Value, hSteamPipe.Value, pchVersion ); interface_pointer = platform.ISteamClient_GetISteamGameSearch( hSteamuser.Value, hSteamPipe.Value, pchVersion );
if ( interface_pointer == IntPtr.Zero ) throw new System.Exception( $"Error getting interface {pchVersion}");
return new SteamGameSearch( steamworks, interface_pointer ); return new SteamGameSearch( steamworks, interface_pointer );
} }
@ -122,6 +127,7 @@ public SteamGameServer GetISteamGameServer( HSteamUser hSteamUser /*HSteamUser*/
{ {
IntPtr interface_pointer; IntPtr interface_pointer;
interface_pointer = platform.ISteamClient_GetISteamGameServer( hSteamUser.Value, hSteamPipe.Value, pchVersion ); interface_pointer = platform.ISteamClient_GetISteamGameServer( hSteamUser.Value, hSteamPipe.Value, pchVersion );
if ( interface_pointer == IntPtr.Zero ) throw new System.Exception( $"Error getting interface {pchVersion}");
return new SteamGameServer( steamworks, interface_pointer ); return new SteamGameServer( steamworks, interface_pointer );
} }
@ -130,6 +136,7 @@ public SteamGameServerStats GetISteamGameServerStats( HSteamUser hSteamuser /*HS
{ {
IntPtr interface_pointer; IntPtr interface_pointer;
interface_pointer = platform.ISteamClient_GetISteamGameServerStats( hSteamuser.Value, hSteamPipe.Value, pchVersion ); interface_pointer = platform.ISteamClient_GetISteamGameServerStats( hSteamuser.Value, hSteamPipe.Value, pchVersion );
if ( interface_pointer == IntPtr.Zero ) throw new System.Exception( $"Error getting interface {pchVersion}");
return new SteamGameServerStats( steamworks, interface_pointer ); return new SteamGameServerStats( steamworks, interface_pointer );
} }
@ -144,6 +151,7 @@ public SteamHTMLSurface GetISteamHTMLSurface( HSteamUser hSteamuser /*HSteamUser
{ {
IntPtr interface_pointer; IntPtr interface_pointer;
interface_pointer = platform.ISteamClient_GetISteamHTMLSurface( hSteamuser.Value, hSteamPipe.Value, pchVersion ); interface_pointer = platform.ISteamClient_GetISteamHTMLSurface( hSteamuser.Value, hSteamPipe.Value, pchVersion );
if ( interface_pointer == IntPtr.Zero ) throw new System.Exception( $"Error getting interface {pchVersion}");
return new SteamHTMLSurface( steamworks, interface_pointer ); return new SteamHTMLSurface( steamworks, interface_pointer );
} }
@ -152,6 +160,7 @@ public SteamHTTP GetISteamHTTP( HSteamUser hSteamuser /*HSteamUser*/, HSteamPipe
{ {
IntPtr interface_pointer; IntPtr interface_pointer;
interface_pointer = platform.ISteamClient_GetISteamHTTP( hSteamuser.Value, hSteamPipe.Value, pchVersion ); interface_pointer = platform.ISteamClient_GetISteamHTTP( hSteamuser.Value, hSteamPipe.Value, pchVersion );
if ( interface_pointer == IntPtr.Zero ) throw new System.Exception( $"Error getting interface {pchVersion}");
return new SteamHTTP( steamworks, interface_pointer ); return new SteamHTTP( steamworks, interface_pointer );
} }
@ -160,6 +169,7 @@ public SteamInput GetISteamInput( HSteamUser hSteamUser /*HSteamUser*/, HSteamPi
{ {
IntPtr interface_pointer; IntPtr interface_pointer;
interface_pointer = platform.ISteamClient_GetISteamInput( hSteamUser.Value, hSteamPipe.Value, pchVersion ); interface_pointer = platform.ISteamClient_GetISteamInput( hSteamUser.Value, hSteamPipe.Value, pchVersion );
if ( interface_pointer == IntPtr.Zero ) throw new System.Exception( $"Error getting interface {pchVersion}");
return new SteamInput( steamworks, interface_pointer ); return new SteamInput( steamworks, interface_pointer );
} }
@ -168,6 +178,7 @@ public SteamInventory GetISteamInventory( HSteamUser hSteamuser /*HSteamUser*/,
{ {
IntPtr interface_pointer; IntPtr interface_pointer;
interface_pointer = platform.ISteamClient_GetISteamInventory( hSteamuser.Value, hSteamPipe.Value, pchVersion ); interface_pointer = platform.ISteamClient_GetISteamInventory( hSteamuser.Value, hSteamPipe.Value, pchVersion );
if ( interface_pointer == IntPtr.Zero ) throw new System.Exception( $"Error getting interface {pchVersion}");
return new SteamInventory( steamworks, interface_pointer ); return new SteamInventory( steamworks, interface_pointer );
} }
@ -176,6 +187,7 @@ public SteamMatchmaking GetISteamMatchmaking( HSteamUser hSteamUser /*HSteamUser
{ {
IntPtr interface_pointer; IntPtr interface_pointer;
interface_pointer = platform.ISteamClient_GetISteamMatchmaking( hSteamUser.Value, hSteamPipe.Value, pchVersion ); interface_pointer = platform.ISteamClient_GetISteamMatchmaking( hSteamUser.Value, hSteamPipe.Value, pchVersion );
if ( interface_pointer == IntPtr.Zero ) throw new System.Exception( $"Error getting interface {pchVersion}");
return new SteamMatchmaking( steamworks, interface_pointer ); return new SteamMatchmaking( steamworks, interface_pointer );
} }
@ -184,6 +196,7 @@ public SteamMatchmakingServers GetISteamMatchmakingServers( HSteamUser hSteamUse
{ {
IntPtr interface_pointer; IntPtr interface_pointer;
interface_pointer = platform.ISteamClient_GetISteamMatchmakingServers( hSteamUser.Value, hSteamPipe.Value, pchVersion ); interface_pointer = platform.ISteamClient_GetISteamMatchmakingServers( hSteamUser.Value, hSteamPipe.Value, pchVersion );
if ( interface_pointer == IntPtr.Zero ) throw new System.Exception( $"Error getting interface {pchVersion}");
return new SteamMatchmakingServers( steamworks, interface_pointer ); return new SteamMatchmakingServers( steamworks, interface_pointer );
} }
@ -192,6 +205,7 @@ public SteamMusic GetISteamMusic( HSteamUser hSteamuser /*HSteamUser*/, HSteamPi
{ {
IntPtr interface_pointer; IntPtr interface_pointer;
interface_pointer = platform.ISteamClient_GetISteamMusic( hSteamuser.Value, hSteamPipe.Value, pchVersion ); interface_pointer = platform.ISteamClient_GetISteamMusic( hSteamuser.Value, hSteamPipe.Value, pchVersion );
if ( interface_pointer == IntPtr.Zero ) throw new System.Exception( $"Error getting interface {pchVersion}");
return new SteamMusic( steamworks, interface_pointer ); return new SteamMusic( steamworks, interface_pointer );
} }
@ -200,6 +214,7 @@ public SteamMusicRemote GetISteamMusicRemote( HSteamUser hSteamuser /*HSteamUser
{ {
IntPtr interface_pointer; IntPtr interface_pointer;
interface_pointer = platform.ISteamClient_GetISteamMusicRemote( hSteamuser.Value, hSteamPipe.Value, pchVersion ); interface_pointer = platform.ISteamClient_GetISteamMusicRemote( hSteamuser.Value, hSteamPipe.Value, pchVersion );
if ( interface_pointer == IntPtr.Zero ) throw new System.Exception( $"Error getting interface {pchVersion}");
return new SteamMusicRemote( steamworks, interface_pointer ); return new SteamMusicRemote( steamworks, interface_pointer );
} }
@ -208,6 +223,7 @@ public SteamNetworking GetISteamNetworking( HSteamUser hSteamUser /*HSteamUser*/
{ {
IntPtr interface_pointer; IntPtr interface_pointer;
interface_pointer = platform.ISteamClient_GetISteamNetworking( hSteamUser.Value, hSteamPipe.Value, pchVersion ); interface_pointer = platform.ISteamClient_GetISteamNetworking( hSteamUser.Value, hSteamPipe.Value, pchVersion );
if ( interface_pointer == IntPtr.Zero ) throw new System.Exception( $"Error getting interface {pchVersion}");
return new SteamNetworking( steamworks, interface_pointer ); return new SteamNetworking( steamworks, interface_pointer );
} }
@ -216,6 +232,7 @@ public SteamParentalSettings GetISteamParentalSettings( HSteamUser hSteamuser /*
{ {
IntPtr interface_pointer; IntPtr interface_pointer;
interface_pointer = platform.ISteamClient_GetISteamParentalSettings( hSteamuser.Value, hSteamPipe.Value, pchVersion ); interface_pointer = platform.ISteamClient_GetISteamParentalSettings( hSteamuser.Value, hSteamPipe.Value, pchVersion );
if ( interface_pointer == IntPtr.Zero ) throw new System.Exception( $"Error getting interface {pchVersion}");
return new SteamParentalSettings( steamworks, interface_pointer ); return new SteamParentalSettings( steamworks, interface_pointer );
} }
@ -224,6 +241,7 @@ public SteamParties GetISteamParties( HSteamUser hSteamUser /*HSteamUser*/, HSte
{ {
IntPtr interface_pointer; IntPtr interface_pointer;
interface_pointer = platform.ISteamClient_GetISteamParties( hSteamUser.Value, hSteamPipe.Value, pchVersion ); interface_pointer = platform.ISteamClient_GetISteamParties( hSteamUser.Value, hSteamPipe.Value, pchVersion );
if ( interface_pointer == IntPtr.Zero ) throw new System.Exception( $"Error getting interface {pchVersion}");
return new SteamParties( steamworks, interface_pointer ); return new SteamParties( steamworks, interface_pointer );
} }
@ -232,6 +250,7 @@ public SteamRemoteStorage GetISteamRemoteStorage( HSteamUser hSteamuser /*HSteam
{ {
IntPtr interface_pointer; IntPtr interface_pointer;
interface_pointer = platform.ISteamClient_GetISteamRemoteStorage( hSteamuser.Value, hSteamPipe.Value, pchVersion ); interface_pointer = platform.ISteamClient_GetISteamRemoteStorage( hSteamuser.Value, hSteamPipe.Value, pchVersion );
if ( interface_pointer == IntPtr.Zero ) throw new System.Exception( $"Error getting interface {pchVersion}");
return new SteamRemoteStorage( steamworks, interface_pointer ); return new SteamRemoteStorage( steamworks, interface_pointer );
} }
@ -240,6 +259,7 @@ public SteamScreenshots GetISteamScreenshots( HSteamUser hSteamuser /*HSteamUser
{ {
IntPtr interface_pointer; IntPtr interface_pointer;
interface_pointer = platform.ISteamClient_GetISteamScreenshots( hSteamuser.Value, hSteamPipe.Value, pchVersion ); interface_pointer = platform.ISteamClient_GetISteamScreenshots( hSteamuser.Value, hSteamPipe.Value, pchVersion );
if ( interface_pointer == IntPtr.Zero ) throw new System.Exception( $"Error getting interface {pchVersion}");
return new SteamScreenshots( steamworks, interface_pointer ); return new SteamScreenshots( steamworks, interface_pointer );
} }
@ -248,6 +268,7 @@ public SteamUGC GetISteamUGC( HSteamUser hSteamUser /*HSteamUser*/, HSteamPipe h
{ {
IntPtr interface_pointer; IntPtr interface_pointer;
interface_pointer = platform.ISteamClient_GetISteamUGC( hSteamUser.Value, hSteamPipe.Value, pchVersion ); interface_pointer = platform.ISteamClient_GetISteamUGC( hSteamUser.Value, hSteamPipe.Value, pchVersion );
if ( interface_pointer == IntPtr.Zero ) throw new System.Exception( $"Error getting interface {pchVersion}");
return new SteamUGC( steamworks, interface_pointer ); return new SteamUGC( steamworks, interface_pointer );
} }
@ -256,6 +277,7 @@ public SteamUser GetISteamUser( HSteamUser hSteamUser /*HSteamUser*/, HSteamPipe
{ {
IntPtr interface_pointer; IntPtr interface_pointer;
interface_pointer = platform.ISteamClient_GetISteamUser( hSteamUser.Value, hSteamPipe.Value, pchVersion ); interface_pointer = platform.ISteamClient_GetISteamUser( hSteamUser.Value, hSteamPipe.Value, pchVersion );
if ( interface_pointer == IntPtr.Zero ) throw new System.Exception( $"Error getting interface {pchVersion}");
return new SteamUser( steamworks, interface_pointer ); return new SteamUser( steamworks, interface_pointer );
} }
@ -264,6 +286,7 @@ public SteamUserStats GetISteamUserStats( HSteamUser hSteamUser /*HSteamUser*/,
{ {
IntPtr interface_pointer; IntPtr interface_pointer;
interface_pointer = platform.ISteamClient_GetISteamUserStats( hSteamUser.Value, hSteamPipe.Value, pchVersion ); interface_pointer = platform.ISteamClient_GetISteamUserStats( hSteamUser.Value, hSteamPipe.Value, pchVersion );
if ( interface_pointer == IntPtr.Zero ) throw new System.Exception( $"Error getting interface {pchVersion}");
return new SteamUserStats( steamworks, interface_pointer ); return new SteamUserStats( steamworks, interface_pointer );
} }
@ -272,6 +295,7 @@ public SteamUtils GetISteamUtils( HSteamPipe hSteamPipe /*HSteamPipe*/, string p
{ {
IntPtr interface_pointer; IntPtr interface_pointer;
interface_pointer = platform.ISteamClient_GetISteamUtils( hSteamPipe.Value, pchVersion ); interface_pointer = platform.ISteamClient_GetISteamUtils( hSteamPipe.Value, pchVersion );
if ( interface_pointer == IntPtr.Zero ) throw new System.Exception( $"Error getting interface {pchVersion}");
return new SteamUtils( steamworks, interface_pointer ); return new SteamUtils( steamworks, interface_pointer );
} }
@ -280,6 +304,7 @@ public SteamVideo GetISteamVideo( HSteamUser hSteamuser /*HSteamUser*/, HSteamPi
{ {
IntPtr interface_pointer; IntPtr interface_pointer;
interface_pointer = platform.ISteamClient_GetISteamVideo( hSteamuser.Value, hSteamPipe.Value, pchVersion ); interface_pointer = platform.ISteamClient_GetISteamVideo( hSteamuser.Value, hSteamPipe.Value, pchVersion );
if ( interface_pointer == IntPtr.Zero ) throw new System.Exception( $"Error getting interface {pchVersion}");
return new SteamVideo( steamworks, interface_pointer ); return new SteamVideo( steamworks, interface_pointer );
} }

View File

@ -27,7 +27,7 @@ internal SteamController( Facepunch.Steamworks.BaseSteamworks steamworks, IntPtr
// //
// Class is invalid if we don't have a valid implementation // Class is invalid if we don't have a valid implementation
// //
public bool IsValid{ get{ return platform != null && platform.IsValid; } } public bool IsValid => platform != null && platform.IsValid;
// //
// When shutting down clear all the internals to avoid accidental use // When shutting down clear all the internals to avoid accidental use

View File

@ -27,7 +27,7 @@ internal SteamFriends( Facepunch.Steamworks.BaseSteamworks steamworks, IntPtr po
// //
// Class is invalid if we don't have a valid implementation // Class is invalid if we don't have a valid implementation
// //
public bool IsValid{ get{ return platform != null && platform.IsValid; } } public bool IsValid => platform != null && platform.IsValid;
// //
// When shutting down clear all the internals to avoid accidental use // When shutting down clear all the internals to avoid accidental use

View File

@ -27,7 +27,7 @@ internal SteamGameSearch( Facepunch.Steamworks.BaseSteamworks steamworks, IntPtr
// //
// Class is invalid if we don't have a valid implementation // Class is invalid if we don't have a valid implementation
// //
public bool IsValid{ get{ return platform != null && platform.IsValid; } } public bool IsValid => platform != null && platform.IsValid;
// //
// When shutting down clear all the internals to avoid accidental use // When shutting down clear all the internals to avoid accidental use

View File

@ -27,7 +27,7 @@ internal SteamGameServer( Facepunch.Steamworks.BaseSteamworks steamworks, IntPtr
// //
// Class is invalid if we don't have a valid implementation // Class is invalid if we don't have a valid implementation
// //
public bool IsValid{ get{ return platform != null && platform.IsValid; } } public bool IsValid => platform != null && platform.IsValid;
// //
// When shutting down clear all the internals to avoid accidental use // When shutting down clear all the internals to avoid accidental use

View File

@ -27,7 +27,7 @@ internal SteamGameServerStats( Facepunch.Steamworks.BaseSteamworks steamworks, I
// //
// Class is invalid if we don't have a valid implementation // Class is invalid if we don't have a valid implementation
// //
public bool IsValid{ get{ return platform != null && platform.IsValid; } } public bool IsValid => platform != null && platform.IsValid;
// //
// When shutting down clear all the internals to avoid accidental use // When shutting down clear all the internals to avoid accidental use

View File

@ -27,7 +27,7 @@ internal SteamHTMLSurface( Facepunch.Steamworks.BaseSteamworks steamworks, IntPt
// //
// Class is invalid if we don't have a valid implementation // Class is invalid if we don't have a valid implementation
// //
public bool IsValid{ get{ return platform != null && platform.IsValid; } } public bool IsValid => platform != null && platform.IsValid;
// //
// When shutting down clear all the internals to avoid accidental use // When shutting down clear all the internals to avoid accidental use

View File

@ -27,7 +27,7 @@ internal SteamHTTP( Facepunch.Steamworks.BaseSteamworks steamworks, IntPtr point
// //
// Class is invalid if we don't have a valid implementation // Class is invalid if we don't have a valid implementation
// //
public bool IsValid{ get{ return platform != null && platform.IsValid; } } public bool IsValid => platform != null && platform.IsValid;
// //
// When shutting down clear all the internals to avoid accidental use // When shutting down clear all the internals to avoid accidental use

View File

@ -27,7 +27,7 @@ internal SteamInput( Facepunch.Steamworks.BaseSteamworks steamworks, IntPtr poin
// //
// Class is invalid if we don't have a valid implementation // Class is invalid if we don't have a valid implementation
// //
public bool IsValid{ get{ return platform != null && platform.IsValid; } } public bool IsValid => platform != null && platform.IsValid;
// //
// When shutting down clear all the internals to avoid accidental use // When shutting down clear all the internals to avoid accidental use

View File

@ -27,7 +27,7 @@ internal SteamInventory( Facepunch.Steamworks.BaseSteamworks steamworks, IntPtr
// //
// Class is invalid if we don't have a valid implementation // Class is invalid if we don't have a valid implementation
// //
public bool IsValid{ get{ return platform != null && platform.IsValid; } } public bool IsValid => platform != null && platform.IsValid;
// //
// When shutting down clear all the internals to avoid accidental use // When shutting down clear all the internals to avoid accidental use

View File

@ -27,7 +27,7 @@ internal SteamMatchmaking( Facepunch.Steamworks.BaseSteamworks steamworks, IntPt
// //
// Class is invalid if we don't have a valid implementation // Class is invalid if we don't have a valid implementation
// //
public bool IsValid{ get{ return platform != null && platform.IsValid; } } public bool IsValid => platform != null && platform.IsValid;
// //
// When shutting down clear all the internals to avoid accidental use // When shutting down clear all the internals to avoid accidental use

View File

@ -27,7 +27,7 @@ internal SteamMatchmakingServers( Facepunch.Steamworks.BaseSteamworks steamworks
// //
// Class is invalid if we don't have a valid implementation // Class is invalid if we don't have a valid implementation
// //
public bool IsValid{ get{ return platform != null && platform.IsValid; } } public bool IsValid => platform != null && platform.IsValid;
// //
// When shutting down clear all the internals to avoid accidental use // When shutting down clear all the internals to avoid accidental use

View File

@ -27,7 +27,7 @@ internal SteamMusic( Facepunch.Steamworks.BaseSteamworks steamworks, IntPtr poin
// //
// Class is invalid if we don't have a valid implementation // Class is invalid if we don't have a valid implementation
// //
public bool IsValid{ get{ return platform != null && platform.IsValid; } } public bool IsValid => platform != null && platform.IsValid;
// //
// When shutting down clear all the internals to avoid accidental use // When shutting down clear all the internals to avoid accidental use

View File

@ -27,7 +27,7 @@ internal SteamMusicRemote( Facepunch.Steamworks.BaseSteamworks steamworks, IntPt
// //
// Class is invalid if we don't have a valid implementation // Class is invalid if we don't have a valid implementation
// //
public bool IsValid{ get{ return platform != null && platform.IsValid; } } public bool IsValid => platform != null && platform.IsValid;
// //
// When shutting down clear all the internals to avoid accidental use // When shutting down clear all the internals to avoid accidental use

View File

@ -27,7 +27,7 @@ internal SteamNetworking( Facepunch.Steamworks.BaseSteamworks steamworks, IntPtr
// //
// Class is invalid if we don't have a valid implementation // Class is invalid if we don't have a valid implementation
// //
public bool IsValid{ get{ return platform != null && platform.IsValid; } } public bool IsValid => platform != null && platform.IsValid;
// //
// When shutting down clear all the internals to avoid accidental use // When shutting down clear all the internals to avoid accidental use

View File

@ -27,7 +27,7 @@ internal SteamParentalSettings( Facepunch.Steamworks.BaseSteamworks steamworks,
// //
// Class is invalid if we don't have a valid implementation // Class is invalid if we don't have a valid implementation
// //
public bool IsValid{ get{ return platform != null && platform.IsValid; } } public bool IsValid => platform != null && platform.IsValid;
// //
// When shutting down clear all the internals to avoid accidental use // When shutting down clear all the internals to avoid accidental use

View File

@ -27,7 +27,7 @@ internal SteamParties( Facepunch.Steamworks.BaseSteamworks steamworks, IntPtr po
// //
// Class is invalid if we don't have a valid implementation // Class is invalid if we don't have a valid implementation
// //
public bool IsValid{ get{ return platform != null && platform.IsValid; } } public bool IsValid => platform != null && platform.IsValid;
// //
// When shutting down clear all the internals to avoid accidental use // When shutting down clear all the internals to avoid accidental use

View File

@ -27,7 +27,7 @@ internal SteamRemoteStorage( Facepunch.Steamworks.BaseSteamworks steamworks, Int
// //
// Class is invalid if we don't have a valid implementation // Class is invalid if we don't have a valid implementation
// //
public bool IsValid{ get{ return platform != null && platform.IsValid; } } public bool IsValid => platform != null && platform.IsValid;
// //
// When shutting down clear all the internals to avoid accidental use // When shutting down clear all the internals to avoid accidental use

View File

@ -27,7 +27,7 @@ internal SteamScreenshots( Facepunch.Steamworks.BaseSteamworks steamworks, IntPt
// //
// Class is invalid if we don't have a valid implementation // Class is invalid if we don't have a valid implementation
// //
public bool IsValid{ get{ return platform != null && platform.IsValid; } } public bool IsValid => platform != null && platform.IsValid;
// //
// When shutting down clear all the internals to avoid accidental use // When shutting down clear all the internals to avoid accidental use

View File

@ -27,7 +27,7 @@ internal SteamUGC( Facepunch.Steamworks.BaseSteamworks steamworks, IntPtr pointe
// //
// Class is invalid if we don't have a valid implementation // Class is invalid if we don't have a valid implementation
// //
public bool IsValid{ get{ return platform != null && platform.IsValid; } } public bool IsValid => platform != null && platform.IsValid;
// //
// When shutting down clear all the internals to avoid accidental use // When shutting down clear all the internals to avoid accidental use

View File

@ -27,7 +27,7 @@ internal SteamUser( Facepunch.Steamworks.BaseSteamworks steamworks, IntPtr point
// //
// Class is invalid if we don't have a valid implementation // Class is invalid if we don't have a valid implementation
// //
public bool IsValid{ get{ return platform != null && platform.IsValid; } } public bool IsValid => platform != null && platform.IsValid;
// //
// When shutting down clear all the internals to avoid accidental use // When shutting down clear all the internals to avoid accidental use

View File

@ -27,7 +27,7 @@ internal SteamUserStats( Facepunch.Steamworks.BaseSteamworks steamworks, IntPtr
// //
// Class is invalid if we don't have a valid implementation // Class is invalid if we don't have a valid implementation
// //
public bool IsValid{ get{ return platform != null && platform.IsValid; } } public bool IsValid => platform != null && platform.IsValid;
// //
// When shutting down clear all the internals to avoid accidental use // When shutting down clear all the internals to avoid accidental use

View File

@ -27,7 +27,7 @@ internal SteamUtils( Facepunch.Steamworks.BaseSteamworks steamworks, IntPtr poin
// //
// Class is invalid if we don't have a valid implementation // Class is invalid if we don't have a valid implementation
// //
public bool IsValid{ get{ return platform != null && platform.IsValid; } } public bool IsValid => platform != null && platform.IsValid;
// //
// When shutting down clear all the internals to avoid accidental use // When shutting down clear all the internals to avoid accidental use

View File

@ -27,7 +27,7 @@ internal SteamVideo( Facepunch.Steamworks.BaseSteamworks steamworks, IntPtr poin
// //
// Class is invalid if we don't have a valid implementation // Class is invalid if we don't have a valid implementation
// //
public bool IsValid{ get{ return platform != null && platform.IsValid; } } public bool IsValid => platform != null && platform.IsValid;
// //
// When shutting down clear all the internals to avoid accidental use // When shutting down clear all the internals to avoid accidental use

View File

@ -82,7 +82,7 @@ private void Class( string classname, SteamApiDefinition.MethodDef[] methodDef )
WriteLine( "//" ); WriteLine( "//" );
WriteLine( "// Class is invalid if we don't have a valid implementation" ); WriteLine( "// Class is invalid if we don't have a valid implementation" );
WriteLine( "//" ); WriteLine( "//" );
WriteLine( "public bool IsValid{ get{ return platform != null && platform.IsValid; } }" ); WriteLine( "public bool IsValid => platform != null && platform.IsValid;" );
WriteLine(); WriteLine();
WriteLine( "//" ); WriteLine( "//" );