mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2025-01-14 07:38:06 +03:00
Added public methods for playtime tracking
This commit is contained in:
parent
e3ce99bc12
commit
4997a74d15
@ -64,5 +64,23 @@ namespace Steamworks
|
||||
|
||||
return item;
|
||||
}
|
||||
|
||||
public static async Task<bool> StartPlaytimeTracking(PublishedFileId fileId)
|
||||
{
|
||||
var result = await Internal.StartPlaytimeTracking(new[] {fileId}, 1);
|
||||
return result.Value.Result == Result.OK;
|
||||
}
|
||||
|
||||
public static async Task<bool> StopPlaytimeTracking(PublishedFileId fileId)
|
||||
{
|
||||
var result = await Internal.StopPlaytimeTracking(new[] {fileId}, 1);
|
||||
return result.Value.Result == Result.OK;
|
||||
}
|
||||
|
||||
public static async Task<bool> StopPlaytimeTrackingForAllItems()
|
||||
{
|
||||
var result = await Internal.StopPlaytimeTrackingForAllItems();
|
||||
return result.Value.Result == Result.OK;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user