Ejemplo n.º 1
0
 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>();
 }
Ejemplo n.º 2
0
        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;
            }
        }