private void readJsonEmbeddedData(JToken node, ReadingOptions options) { EmbeddedData.Clear(); if (!options.EmbeddedData) { return; } JArray embeddedDataArray = node.Value <JArray>("embeddedData"); if (embeddedDataArray == null) { return; } EmbeddedData.Capacity = embeddedDataArray.Count; EmbeddedData.AddRange(embeddedDataArray.Values <JObject>().Select(data => new EmbeddedData(data))); }
protected void readBinaryEmbeddedData(ArkArchive archive, bool embeddedData = true) { var count = archive.GetInt(); if (embeddedData) { EmbeddedData.Clear(); for (var n = 0; n < count; n++) { EmbeddedData.Add(new EmbeddedData(archive)); } } else { for (int n = 0; n < count; n++) { Types.EmbeddedData.Skip(archive); } } }
private void readBinaryEmbeddedData(ArkArchive archive, ReadingOptions options) { int count = archive.ReadInt(); EmbeddedData.Clear(); if (options.EmbeddedData) { for (int n = 0; n < count; n++) { EmbeddedData.Add(new EmbeddedData(archive)); } } else { archive.HasUnknownData = true; for (int n = 0; n < count; n++) { Types.EmbeddedData.Skip(archive); } } }