public override void ReadHeader(INIReaderHeader header) { if (header.Check("System")) { foreach (INIReaderParameter p in header.parameters) ReadParameter(p); } else if (header.Check("Zone")) ReadZone(header); else if (header.Check("Solar")) ReadSolar(header); }
override public void ReadHeader(INIReaderHeader header) { if (header.Check("System")) { foreach (INIReaderParameter p in header.parameters) { ReadParameter(p); } } else if (header.Check("Zone")) { ReadZone(header); } else if (header.Check("Solar")) { ReadSolar(header); } }
public override void ReadHeader(INIReaderHeader header) { if (header.Check("SubComponents")) { foreach (INIReaderParameter p in header.parameters) { ArchSubComponentReference comp = new ArchSubComponentReference(); comp.arch = p.GetStrkey64(0); comp.hp = p.GetStrkey64(1); subComponents.Add(comp); } } else if (header.Check("Component")) { base.ReadHeader(header); foreach (INIReaderParameter p in header.parameters) { if (p.Check("required_hardpoint_type")) { requiredConnectionHardpoint = p.GetStrkey64(0); } } } else if (header.Check("Hull")) { ReadHull(header); } else if (header.Check("Hardpoints")) { ReadHardpoints(header); } else if (header.Check("Engine")) { ReadEngine(header); } else if (header.Check("Weapon")) { //ReadWeapon(header); } }