public static RenderResult GenerateRenderResultFromFile(string path, string settingKey) { var type = BaseReader.GetDiamondType(path); if (type == DiamondType.NotExist || !levelRenders.Keys.Contains(type)) { throw new NotSupportedException(path); } return(levelRenders[type].GenerateRenderResult(path, settingKey)); }