internal static void SetAll(ref _Sect st, int idx, IList <string> rec) { st.Volume = byte.Parse(rec[0].Substring(0, 1)); st.Ordinal = byte.Parse(rec[0].Substring(2, 2)); foreach (var ch in rec[1]) { int i = 0; for (; i != ESection.Table.Length; ++i) { if (ESection.Table[i].Name == ch) { break; } } _19ToEr.Add((byte)idx, (byte)i); _erTo19[i].Add((byte)idx); } }
internal static void SetAll(ref _Sect st, int idx, IList <string> rec) { st.Volume = byte.Parse(rec[0].Substring(0, 1)); st.Ordinal = byte.Parse(rec[0].Substring(2, 2)); st.Name = rec[0][4]; foreach (var o in rec.Skip(1).Select(it => byte.Parse(it))) { int i = 0; for (; i != ESection.Table.Length; ++i) { if (ESection.Table[i].Volume == st.Volume && ESection.Table[i].Ordinal == o) { break; } } _106ToEr.Add((byte)idx, (byte)i); _erTo106[i] = (byte)idx; } _titleDict[st.Name] = (byte)idx; }
internal static void SetAll(ref _Sect st, int idx, IList <string> rec) { st.Volume = byte.Parse(rec[0].Substring(0, 1)); st.Ordinal = byte.Parse(rec[0].Substring(2, 2)); st.Name = rec[0][4]; }