public static StringLine Load(BinaryReader reader) { StringLine stringLine = new StringLine(); int count = reader.ReadInt32(); stringLine.Inlines = new List <StringInline>(count); for (int i = 0; i < count; i++) { stringLine.Inlines.Add(StringInline.Load(reader)); } return(stringLine); }
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); }