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,
@ -580,7 +580,7 @@ public enum FriendState : int
LookingToPlay = 6,
Invisible = 7,
Max = 8,
}
}
//
// EFriendFlags
@ -600,7 +600,7 @@ public enum FriendFlags : int
ChatMember = 4096,
All = 65535,
}
//
// EUserRestriction
//

View File

@ -464,6 +464,14 @@ public static unsafe void HandleIncomingPacket( byte[] data, int size, uint addr
public static unsafe void HandleIncomingPacket( IntPtr ptr, int size, uint address, ushort 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 @@ 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";
}