Ejemplo n.º 1
0
        internal static void AddAssets(ModelDetail questDetail, FileAssets fileAssets)
        {
            foreach (Model model in questDetail.models)
            {
                string SourcemodelFileName = Path.Combine(modelAssetsPath, model.model);
                string destinationFpkPath  = Path.Combine(fileAssets.questFPKPath, "Assets", model.model);

                fileAssets.AddIndividualFile(SourcemodelFileName + ".fmdl", destinationFpkPath + ".fmdl");
                if (model.collision)
                {
                    fileAssets.AddIndividualFile(SourcemodelFileName + ".geom", destinationFpkPath + ".geom");
                }
            }
        }
Ejemplo n.º 2
0
        public static void BuildRouteAssets(string routeName, FileAssets fileAssets)
        {
            if (!routeName.Equals("NONE"))
            {
                string frtFilePath        = Path.Combine(routeAssetsPath, routeName) + ".frt";
                string destinationFpkPath = Path.Combine(fileAssets.questFPKPath, "Assets", routeName + ".frt");

                fileAssets.AddIndividualFile(frtFilePath, destinationFpkPath);
            }
        }