Added SteamServer.UserHasLicenseForApp

This commit is contained in:
Garry Newman 2019-12-04 11:15:58 +00:00
parent 32fbf63644
commit 04ad04f95d
3 changed files with 12 additions and 3 deletions

View File

@ -211,7 +211,7 @@ public enum AuthResponse : int
//
// EUserHasLicenseForAppResult
//
internal enum UserHasLicenseForAppResult : int
public enum UserHasLicenseForAppResult : int
{
HasLicense = 0,
DoesNotHaveLicense = 1,

View File

@ -465,5 +465,13 @@ public static unsafe void HandleIncomingPacket( IntPtr ptr, int size, uint addre
{
Internal.HandleIncomingPacket( ptr, size, address, port );
}
/// <summary>
/// Does the user own this app (which could be DLC)
/// </summary>
public static UserHasLicenseForAppResult UserHasLicenseForApp( SteamId steamid, AppId appid )
{
return Internal.UserHasLicenseForApp( steamid, appid );
}
}
}

View File

@ -87,6 +87,7 @@ internal static string Expose( string name )
if ( name == "P2PSessionError" ) return "public";
if ( name == "InputType" ) return "public";
if ( name == "InputSourceMode" ) return "public";
if ( name == "UserHasLicenseForAppResult" ) return "public";
return "internal";
}