예제 #1
0
 internal static void GetUAVAssets(UAVDetail questDetail, FileAssets fileAssets)
 {
     if (questDetail.UAVs.Count > 0)
     {
         fileAssets.AddFPKFolder(Path.Combine(UAVAssetsPath, "FPK_Files"));
         fileAssets.AddFPKDFolder(Path.Combine(UAVAssetsPath, "FPKD_Files"));
     }
 }
예제 #2
0
 internal static void GetCameraAssets(CameraDetail questDetail, FileAssets fileAssets)
 {
     if (questDetail.cameras.Count > 0)
     {
         fileAssets.AddFPKFolder(Path.Combine(CameraAssetsPath, "FPK_Files"));
         fileAssets.AddFPKDFolder(Path.Combine(CameraAssetsPath, "FPKD_Files"));
     }
 }
예제 #3
0
        internal static void GetEnemyAssets(EnemyDetail questDetail, FileAssets fileAssets)
        {
            string enemyFPKDAssetsPath = Path.Combine(enemyAssetsPath, "FPKD_Files");

            if (HasZombie(questDetail.enemies))
            {
                fileAssets.AddFPKDFolder(Path.Combine(enemyFPKDAssetsPath, "zombie_fpkd"));
            }
        }
예제 #4
0
        internal static void GetAnimalAssets(AnimalDetail questDetail, FileAssets fileAssets)
        {
            string AniFPKAssetsPath  = Path.Combine(animalAssetsPath, "FPK_Files");
            string AniFPKDAssetsPath = Path.Combine(animalAssetsPath, "FPKD_Files");

            foreach (Animal animal in questDetail.animals)
            {
                string animalType = animal.animal;

                fileAssets.AddFPKFolder(Path.Combine(AniFPKAssetsPath, $"{animalType}_fpk"));
                fileAssets.AddFPKDFolder(Path.Combine(AniFPKDAssetsPath, $"{animalType}_fpkd"));
            }
        }
예제 #5
0
        internal static void GetVehicleAssets(VehicleDetail questDetail, FileAssets fileAssets)
        {
            string VehFPKAssetsPath  = Path.Combine(VehAssetsPath, "FPK_Files");
            string VehFPKDAssetsPath = Path.Combine(VehAssetsPath, "FPKD_Files");

            foreach (Vehicle vehicle in questDetail.vehicles)
            {
                string vehicleName;
                VehicleInfo.vehicleLuaName.TryGetValue(vehicle.vehicle, out vehicleName);

                fileAssets.AddFPKFolder(Path.Combine(VehFPKAssetsPath, $"{vehicleName}_fpk"));
                fileAssets.AddFPKDFolder(Path.Combine(VehFPKDAssetsPath, $"{vehicleName}_fpkd"));
            }
        }