Beispiel #1
0
        /// <summary>
        /// Get the full asset path for a specific asset type and name
        /// </summary>
        /// <param name="featureType">The type of feature this asset is</param>
        /// <param name="assetName">The file name of the asset</param>
        /// <returns>Fully qualified path of the asset</returns>
        public static string GetGaiaAssetPath(Gaia.GaiaConstants.FeatureType featureType, string assetName)
        {
            string path = GetGaiaAssetDirectory(featureType);

            path = Path.Combine(GetGaiaAssetDirectory(featureType), assetName);
            return(path.Replace('\\', '/'));
        }
Beispiel #2
0
        /// <summary>
        /// Get the asset directory for a particular featiure type
        /// </summary>
        /// <param name="featureType"></param>
        /// <returns>Path of feature type</returns>
        public static string GetGaiaAssetDirectory(Gaia.GaiaConstants.FeatureType featureType)
        {
            string path = Path.Combine(Application.dataPath, Gaia.GaiaConstants.AssetDir);

            path = Path.Combine(path, featureType.ToString());
            return(path.Replace('\\', '/'));
        }
Beispiel #3
0
 /// <summary>
 /// Get a list of the Gaia stamps for the feature type provided
 /// </summary>
 /// <param name="featureType"></param>
 /// <returns></returns>
 public static List <string> GetGaiaStampsList(Gaia.GaiaConstants.FeatureType featureType)
 {
     return(new List <string>(System.IO.Directory.GetFiles(GetGaiaAssetDirectory(featureType), "*.jpg")));
 }