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); }
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 }); }
bool ICompositeResourceProcesser.CanProcess(string filePath) { return(PlistParticleReader.CheckIsParticle(filePath)); }