public override void Load(DocumentReader reader) { base.Load(reader); Name = reader.ReadString(); int count = reader.ReadInt(); for (int i = 0; i < count; i++) { Drawable item = reader.ReadPersistable <Drawable>(); items.Add(item); } }
public void Load(DocumentReader reader) { Color = reader.ReadColor(); LineWeight = reader.ReadFloat(); DashStyle = (DashStyle)reader.ReadInt(); }