mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-05 07:49:22 +00:00
Move many mods to Deprecated folder, fix spelling
This commit is contained in:
parent
5e822cec8d
commit
0042590aa6
539 changed files with 7475 additions and 3120 deletions
33
BetterContentLoading/DownloadManager/DownloadTask.Main.cs
Normal file
33
BetterContentLoading/DownloadManager/DownloadTask.Main.cs
Normal file
|
@ -0,0 +1,33 @@
|
|||
namespace NAK.BetterContentLoading;
|
||||
|
||||
public partial class DownloadTask
|
||||
{
|
||||
public DownloadInfo Info { get; set; }
|
||||
public DownloadTaskStatus Status { get; set; }
|
||||
public DownloadTaskType Type { get; set; }
|
||||
|
||||
public float BasePriority { get; set; }
|
||||
public float CurrentPriority => BasePriority * (1 + Progress / 100f);
|
||||
|
||||
public long BytesRead { get; set; }
|
||||
public int Progress { get; set; }
|
||||
|
||||
/// The avatar/prop instances that wish to utilize this bundle.
|
||||
public List<string> InstantiationTargets { get; } = new();
|
||||
|
||||
public void AddInstantiationTarget(string target)
|
||||
{
|
||||
if (InstantiationTargets.Contains(target))
|
||||
return;
|
||||
|
||||
InstantiationTargets.Add(target);
|
||||
}
|
||||
|
||||
public void RemoveInstantiationTarget(string target)
|
||||
{
|
||||
if (!InstantiationTargets.Contains(target))
|
||||
return;
|
||||
|
||||
InstantiationTargets.Remove(target);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue