public static string GetMatchImage(string filePath) { PListDict plistDict = PlistParticleReader.ReadPlist(filePath); if (plistDict.ContainsKey("textureImageData")) { return((string)null); } return(((PListElement <string>)plistDict["textureFileName"]).Value); }
public static bool CheckIsParticle(string filePath) { try { if (!Path.GetExtension(filePath).Equals(".plist", StringComparison.OrdinalIgnoreCase)) { return(false); } return(PlistParticleReader.CheckPlist(filePath)); } catch (Exception ex) { LogConfig.Logger.Error((object)"Read plist failed.", ex); return(false); } }
private static bool CheckPlist(string filePath) { return(PlistParticleReader.ReadPlist(filePath).ContainsKey("particleLifespan")); }