コード例 #1
0
 protected override bool OnCanReadFile(FilePath file, Type expectedObjectType)
 {
     try
     {
         if (!FileFormat.CheckFileSuffix(file, ".plist") || !expectedObjectType.Equals(typeof(ResourceItem)))
         {
             return(false);
         }
         return(PlistParticleReader.CheckIsParticle((string)file));
     }
     catch
     {
     }
     return(false);
 }
コード例 #2
0
        List <string> ICompositeResourceProcesser.GetMatchedImages(string filePath)
        {
            FilePath filePath1 = (FilePath)PlistParticleReader.GetMatchImage(filePath);

            if (filePath1 == (FilePath)((string)null))
            {
                return((List <string>)null);
            }
            string directoryName = Path.GetDirectoryName(filePath);

            filePath1 = filePath1.ToAbsolute((FilePath)directoryName);
            return(new List <string>()
            {
                (string)filePath1
            });
        }
コード例 #3
0
 bool ICompositeResourceProcesser.CanProcess(string filePath)
 {
     return(PlistParticleReader.CheckIsParticle(filePath));
 }