mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-26 06:35:49 +03:00
Added SteamApps.IsTimedTrial
This commit is contained in:
parent
68a1886283
commit
88c742d415
@ -266,5 +266,24 @@ public static string CommandLine
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// check if game is a timed trial with limited playtime
|
||||
/// </summary>
|
||||
public static bool IsTimedTrial( out int secondsAllowed, out int secondsPlayed )
|
||||
{
|
||||
uint a = 0;
|
||||
uint b = 0;
|
||||
secondsAllowed = 0;
|
||||
secondsPlayed = 0;
|
||||
|
||||
if ( !Internal.BIsTimedTrial( ref a, ref b ) )
|
||||
return false;
|
||||
|
||||
secondsAllowed = (int) a;
|
||||
secondsPlayed = (int) b;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user