public StructureEnumerateReference(PsdReader reader) { this.Add("Name", reader.ReadString()); this.Add("ClassID", reader.ReadKey()); this.Add("TypeID", reader.ReadKey()); this.Add("EnumID", reader.ReadKey()); }
public StructureEnumerateReference(PsdReader reader) { Name = reader.ReadString(); ClassId = reader.ReadKey(); TypeId = reader.ReadKey(); EnumId = reader.ReadKey(); }
public StructureEnumerateReference(PsdReader reader) { this.Add("Name", reader.ReadString()); this.Add("ClassID", reader.ReadKey()); this.Add("TypeID", reader.ReadKey()); this.Add("EnumID", reader.ReadKey()); }
public DescriptorStructure(PsdReader reader, bool hasVersion) { if (hasVersion == true) { this.version = reader.ReadInt32(); } this.Add("Name", reader.ReadString()); this.Add("ClassID", reader.ReadKey()); int count = reader.ReadInt32(); for (int i = 0; i < count; i++) { string key = reader.ReadKey(); string osType = reader.ReadType(); if (key == "EngineData") { this.Add(key.Trim(), new StructureEngineData(reader)); } else { object value = StructureReader.Read(osType, reader); this.Add(key.Trim(), value); } } }
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 StructureDescriptor(PsdReader reader, bool hasVersion) { if (hasVersion == true) { this.version = reader.ReadInt32(); } ClassName = reader.ReadString(); ClassId = reader.ReadKey(); Items = new Properties(); int count = reader.ReadInt32(); for (int i = 0; i < count; i++) { string key = reader.ReadKey(); string osType = reader.ReadType(); if (key == "EngineData") { Items.Add(key.Trim(), new StructureEngineData(reader)); } else { StructureItem value = StructureReader.Read(osType, reader); Items.Add(key.Trim(), value); } } }
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); } }
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 StructureProperty(PsdReader reader) { this.Add("Name", reader.ReadString()); this.Add("ClassID", reader.ReadKey()); this.Add("KeyID", reader.ReadKey()); }
public StructureEnumerate(PsdReader reader) { Type = reader.ReadKey(); Value = reader.ReadKey(); }
public StructureOffset(PsdReader reader) { this.Add("Name", reader.ReadString()); this.Add("ClassID", reader.ReadKey()); this.Add("Offset", reader.ReadInt32()); }
public StructureClass(PsdReader reader) { Name = reader.ReadString(); ClassId = reader.ReadKey(); }
public StructureOffset(PsdReader reader) { Name = reader.ReadString(); ClassId = reader.ReadKey(); Offset = reader.ReadInt32(); }
public StructureProperty(PsdReader reader) { Name = reader.ReadString(); ClassId = reader.ReadKey(); KeyId = reader.ReadKey(); }
public StructureProperty(PsdReader reader) { this.Add("Name", reader.ReadString()); this.Add("ClassID", reader.ReadKey()); this.Add("KeyID", reader.ReadKey()); }
public StructureOffset(PsdReader reader) { this.Add("Name", reader.ReadString()); this.Add("ClassID", reader.ReadKey()); this.Add("Offset", reader.ReadInt32()); }
public StructureEnumerate(PsdReader reader) { this.Add("Type", reader.ReadKey()); this.Add("Value", reader.ReadKey()); }
public StructureEnumerate(PsdReader reader) { this.Add("Type", reader.ReadKey()); this.Add("Value", reader.ReadKey()); }