public void Load(BinaryReader read) { int lenght = read.ReadInt32(); strStores = new Dictionary <string, StringStore>(lenght); for (int i = 0; i < lenght; i++) { string key = read.ReadString(); StringStore stringStore = StringStore.Load(read); strStores.Add(key, stringStore); } }
public static StringStore Load(BinaryReader reader) { StringStore stringStore = new StringStore(); stringStore.CustomInfo = CustomStoreInfo.Load(reader); stringStore.Height = reader.ReadInt32(); stringStore.Width = reader.ReadInt32(); stringStore.StoreType = (StringStoreType)reader.ReadInt32(); stringStore.Style = (NoteStyle)reader.ReadInt32(); stringStore.Category = reader.ReadString(); int count = reader.ReadInt32(); stringStore.StringLines = new List <StringLine>(count); for (int i = 0; i < count; i++) { stringStore.StringLines.Add(StringLine.Load(reader)); } return(stringStore); }