using System; using System.IO; using ICSharpCode.SharpZipLib.Zip; using TriLibCore.General; namespace TriLibCore { /// <summary>Represents a class passed as the custom data to the Asset Loader Context when loading Models from Zip files.</summary> public class ZipLoadCustomContextData { /// <summary> /// The zip file to be used. /// </summary> public ZipFile ZipFile; /// <summary> /// The model zip entry inside the zip file. /// </summary> public ZipEntry ZipEntry; /// <summary> /// The stream used to load the zip file. /// </summary> public Stream Stream; /// <summary> /// The original error event passed to the Zip loading method. /// </summary> public Action<IContextualizedError> OnError; /// <summary> /// The original materials load event passed to the Zip loading method. /// </summary> public Action<AssetLoaderContext> OnMaterialsLoad; } }