using Newtonsoft.Json; using System.Collections.Generic; namespace AssetStudio { public class Index { public PPtr Object; public ulong Size; public Index(ObjectReader reader) { Object = new PPtr(reader); Size = reader.ReadUInt64(); } } public sealed class IndexObject : NamedObject { public static bool Exportable; public int Count; public Dictionary AssetMap; public Dictionary Names = new Dictionary(); public IndexObject(ObjectReader reader) : base(reader) { Count = reader.ReadInt32(); AssetMap = new Dictionary(Count); for (int i = 0; i < Count; i++) { var key = reader.ReadAlignedString(); var value = new Index(reader); AssetMap.Add(key, value); if (value.Object.m_FileID == 0) Names.Add(value.Object.m_PathID, key); } } } }