Example #1
0
        public void ReadXml(XmlNode node)
        {
            var entries = new List <VehicleRecordEntry>();

            var inodes = node.SelectNodes("Item");

            if (inodes != null)
            {
                foreach (XmlNode inode in inodes)
                {
                    var e = new VehicleRecordEntry();
                    e.ReadXml(inode);
                    entries.Add(e);
                }
            }

            Entries            = new ResourceSimpleList64 <VehicleRecordEntry>();
            Entries.data_items = entries.ToArray();
        }
Example #2
0
        public override void Read(ResourceDataReader reader, params object[] parameters)
        {
            base.Read(reader, parameters);

            this.Entries = reader.ReadBlock <ResourceSimpleList64 <VehicleRecordEntry> >();
        }
Example #3
0
 public VehicleRecordList()
 {
     this.Entries = new ResourceSimpleList64 <VehicleRecordEntry>();
 }