示例#1
0
 void ReadHardpoints(INIReaderHeader header)
 {
     foreach (INIReaderParameter p in header.parameters)
     {
         if (p.Check("hardpoint"))
         {
             ArchComponentHardpoint hp = new ArchComponentHardpoint();
             hp.ReadParameter(p);
             hardpoints.Add(hp);
             continue;
         }
         else if (p.Check("connection_hardpoint"))
         {
             connectionHardpoint = new ArchComponentHardpoint();
             connectionHardpoint.ReadParameter(p);
             continue;
         }
     }
 }
 void ReadHardpoints(INIReaderHeader header)
 {
     foreach (INIReaderParameter p in header.parameters)
     {
         if (p.Check("hardpoint"))
         {
             ArchComponentHardpoint hp = new ArchComponentHardpoint();
             hp.ReadParameter(p);
             hardpoints.Add(hp);
             continue;
         }
         else if (p.Check("connection_hardpoint"))
         {
             connectionHardpoint = new ArchComponentHardpoint();
             connectionHardpoint.ReadParameter(p);
             continue;
         }
     }
 }
 public SolarComponentHardpoint(ArchComponentHardpoint arch, SolarComponentPropertyRigidHull hull)
 {
     this.id = arch.id;
     this.hull = hull;
 }