internal PackageString(Package package, int index, BinaryReader reader) { Index = index; Package = package; Type = (PackageType)reader.ReadUInt32(); CRC = reader.ReadUInt32(); int nameLength = reader.ReadInt32(); Name = reader.ReadString(nameLength, Encoding.ASCII); }
internal PackageFile(Package package, int index, AssetLoader loader) : base(package, "") { BinaryReader reader = loader.Reader; Index = index; Compression = (PackageCompression)reader.ReadInt32(); Type = (PackageType)reader.ReadInt32(); CRC = reader.ReadUInt32(); Size = reader.ReadInt32(); Offset = reader.ReadUInt32(); }