public override void ReadHeader(INIReaderHeader header) { base.ReadHeader(header); foreach (INIReaderParameter p in header.parameters) { if (p.Check("position")) { position = p.GetVector3(0); continue; } else if (p.Check("size")) { size = p.GetVector3(0); continue; } else if (p.Check("seed")) { seed = (uint)p.GetInt(0); continue; } else if (p.Check("shape")) { shapeType = FromString(p.GetString(0)); continue; } else if (p.Check("zone_arch")) { zoneArch = p.GetStrkey64(0); continue; } } }
void ReadEngine(INIReaderHeader header) { ArchSolarComponentPropertyEngine engine = new ArchSolarComponentPropertyEngine(); engine.ReadHeader(header); properties.Add(engine); }
void ReadHull(INIReaderHeader header) { ArchSolarComponentPropertyRigidHull hull = new ArchSolarComponentPropertyRigidHull(); hull.ReadHeader(header); properties.Add(hull); }
void ReadZone(INIReaderHeader header) { ArchSystemZone zone = new ArchSystemZone(); zone.ReadHeader(header); zones[zone.id] = zone; }
public override void ReadHeader(INIReaderHeader header) { foreach (INIReaderParameter p in header.parameters) { ReadParameter(p); } }
void ReadSolar(INIReaderHeader header) { ArchSystemSolar solar = new ArchSystemSolar(); solar.ReadHeader(header); solars[solar.id] = solar; }
public virtual void ReadHeader(INIReaderHeader header) { foreach (INIReaderParameter p in header.parameters) { ReadParameter(p); } }
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); }
public override void ReadHeader(INIReaderHeader header) { foreach (INIReaderParameter param in header.parameters) { if (param == "torque") torque = param.Get<Vector3>(0); else if (param == "force_positive") forcePositive = param.Get<Vector3>(0); else if (param == "force_negative") forceNegative = param.Get<Vector3>(0); else base.ReadParameter(param); } }
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); } }
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 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); } }
public override void ReadHeader(INIReaderHeader header) { foreach (INIReaderParameter param in header.parameters) { if (param == "torque") { torque = param.Get <Vector3>(0); } else if (param == "force_positive") { forcePositive = param.Get <Vector3>(0); } else if (param == "force_negative") { forceNegative = param.Get <Vector3>(0); } else { base.ReadParameter(param); } } }
public override void ReadHeader(INIReaderHeader header) { foreach (INIReaderParameter p in header.parameters) ReadParameter(p); }
public override void ReadHeader(INIReaderHeader header) { hptype = HP_TYPE_ANY; }
public virtual void ReadHeader(INIReaderHeader header) { foreach (INIReaderParameter p in header.parameters) ReadParameter(p); }