/// <summary> /// Loads the string list. /// </summary> /// <param name="reader">The stream to read from.</param> private void Load(IReader reader) { reader.SeekTo(Tag.MetaLocation.AsOffset()); StructureValueCollection values = StructureReader.ReadStructure(reader, _layout); StructureValueCollection[] rangeValues = values.GetArray("language ranges"); Ranges = rangeValues.Select(v => StringRange.Deserialize(v)).ToArray(); }
public ThirdGenMultilingualStringList(ITag tag, StringRange[] ranges, EngineDescription buildInfo) { _layout = buildInfo.Layouts.GetLayout("unic"); Tag = tag; Ranges = ranges; }