Skip to content

Commit

Permalink
Support reading EngineAssets tpk files
Browse files Browse the repository at this point in the history
  • Loading branch information
ds5678 committed Oct 8, 2023
1 parent 2b74873 commit 7fdc3c1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Tpk/TpkDataType.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using AssetRipper.Tpk.TypeTrees;
using AssetRipper.Tpk.EngineAssets;
using AssetRipper.Tpk.TypeTrees;

namespace AssetRipper.Tpk
{
Expand Down Expand Up @@ -40,6 +41,7 @@ public static TpkDataBlob ToBlob(this TpkDataType dataType)
TpkDataType.Collection => new TpkCollectionBlob(),
TpkDataType.FileSystem => new TpkFileSystemBlob(),
TpkDataType.Json => new TpkJsonBlob(),
TpkDataType.EngineAssets => new TpkEngineAssetsBlob(),
_ => throw new NotSupportedException($"Data type {dataType} not supported"),
};
}
Expand Down

0 comments on commit 7fdc3c1

Please sign in to comment.