public StructureUnitFloat(PsdReader reader) { String type = reader.ReadType(); this.Add("Type", PsdUtility.ToUnitType(type)); this.Add("Value", reader.ReadDouble()); }
public StructureUnitFloat(PsdReader reader) { string type = reader.ReadType(); Unit = PsdUtility.ToUnitType(type); Value = reader.ReadDouble(); }
public StructureObjectArray(PsdReader reader) { int version = reader.ReadInt32(); this.Add("Name", reader.ReadString()); this.Add("ClassID", reader.ReadKey()); int count = reader.ReadInt32(); List <Properties> items = new List <Properties>(); for (int i = 0; i < count; i++) { Properties props = new Properties(); props.Add("Type1", reader.ReadKey()); props.Add("EnumName", reader.ReadType()); props.Add("Type2", PsdUtility.ToUnitType(reader.ReadType())); int d4 = reader.ReadInt32(); props.Add("Values", reader.ReadDoubles(d4)); items.Add(props); } this.Add("items", items.ToArray()); }
public StructureObjectArray(PsdReader reader) { int version = reader.ReadInt32(); Name = reader.ReadString(); ClassId = reader.ReadKey(); int count = reader.ReadInt32(); Items = new List <ArrayResourceItem>(); for (int i = 0; i < count; i++) { ArrayResourceItem props = new ArrayResourceItem(); props.Type1 = reader.ReadKey(); props.EnumName = reader.ReadType(); props.Unit = PsdUtility.ToUnitType(reader.ReadType()); int d4 = reader.ReadInt32(); props.Values = reader.ReadDoubles(d4); Items.Add(props); } }