public POFModel() { header = new Header(); shieldData = new ShieldData(); subObjects = new List <SubObject>(); specialPoints = new List <SpecialPoint>(); gunSlots = new List <GunSlot>(); missileSlots = new List <MissileSlot>(); turrets = new List <TurretInfo>(); dockPoints = new List <DockPoint>(); thrusters = new List <Thruster>(); aiPaths = new List <PathInfo>(); hullLights = new List <HullLight>(); eyePositions = new List <EyePosition>(); }
private void ParseShieldSection() { ShieldData shieldData = model.shieldData; shieldData.vertices = reader.ReadVector3Array(reader.ReadInt()); shieldData.faces = new Face[reader.ReadInt()]; for (int i = 0; i < shieldData.faces.Length; i++) { Face face = new Face(); face.normal = reader.ReadVector3(); face.vertexIndices = reader.ReadIntArray(3); face.neighborIndices = reader.ReadIntArray(3); shieldData.faces[i] = face; } }