This commit is contained in:
CortexCore
2024-03-31 23:31:00 +08:00
parent e179d2eb53
commit b7b89ee71a
641 changed files with 31286 additions and 22134 deletions

View File

@@ -16,10 +16,15 @@ namespace BITKit.IO
public DateTime LastModifiedTime;
// ReSharper disable once CollectionNeverQueried.Global
public readonly List<string> Files = new List<string>();
// ReSharper disable once FieldCanBeMadeReadOnly.Global
public List<string> Files = new List<string>();
}
public class BITAssets : List<IAsset>
{
public static BITHeader ReadHeader(string path)
{
return Read<BITHeader>(path,"manifest.json");
}
public static void Build(string path, params IAsset[] assets)
{
List<IAsset> assetList = new();
@@ -54,6 +59,7 @@ namespace BITKit.IO
using var ms = new MemoryStream(x.Buffer);
using var writer = entry.Open();
ms.CopyTo(writer);
writer.Flush();
}
zipFile.Dispose();