Пример #1
0
        private void ParseTurretGunSection()
        {
            int bankCount = reader.ReadInt();

            for (int i = 0; i < bankCount; i++)
            {
                TurretInfo turret = new TurretInfo(TurretType.Gun);
                turret.parentSubObjectIndex       = reader.ReadInt();
                turret.rotationBaseSubObjectIndex = reader.ReadInt();
                turret.turretNormal = reader.ReadVector3();
                turret.firingPoints = reader.ReadVector3Array(reader.ReadInt());
                model.turrets.Add(turret);
            }
        }