private AssetManagerInfo _Read(StringStreamReader reader) { Version = reader.ReadString(); Date = DateTime.Parse(reader.ReadString()); var count = reader.ReadNumber(); for (var i = 0; i < count; ++i) { var key = reader.ReadIndexString("/"); var value = new AssetPackInfo()._Read(reader); Packs.Add(key, value); } count = reader.ReadNumber(); for (var i = 0; i < count; ++i) { var key = reader.ReadIndexString("/"); var value = new AssetInfo()._Read(reader); Assets.Add(key, value); } return(this); }
internal AssetPackInfo _Read(StringStreamReader reader) { Type = (AssetPackType)reader.ReadNumber(); var length = reader.ReadNumber(); if (length > 0) { Dependencies = new string[length]; for (var i = 0; i < length; ++i) { Dependencies[i] = reader.ReadIndexString("/"); } } CheckCode = reader.ReadString(); Size = reader.ReadNumber(); return(this); }
internal AssetInfo _Read(StringStreamReader reader) { PackPath = reader.ReadIndexString("/"); return(this); }