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 @@ namespace Steamworks
// //
// EUserHasLicenseForAppResult // EUserHasLicenseForAppResult
// //
internal enum UserHasLicenseForAppResult : int public enum UserHasLicenseForAppResult : int
{ {
HasLicense = 0, HasLicense = 0,
DoesNotHaveLicense = 1, DoesNotHaveLicense = 1,

View File

@ -465,5 +465,13 @@ namespace Steamworks
{ {
Internal.HandleIncomingPacket( ptr, size, address, port ); 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 @@ public static class Cleanup
if ( name == "P2PSessionError" ) return "public"; if ( name == "P2PSessionError" ) return "public";
if ( name == "InputType" ) return "public"; if ( name == "InputType" ) return "public";
if ( name == "InputSourceMode" ) return "public"; if ( name == "InputSourceMode" ) return "public";
if ( name == "UserHasLicenseForAppResult" ) return "public";
return "internal"; return "internal";
} }