public string ComposeDefaultResURL(string resName) { if (m_defaultResGroup == null) { return(""); } return(ResProtocol.ComposeURL(m_defaultResGroup.ResFilePath, resName)); }
public ImageResource GetResource(string url) { string atlasName; string tileName; if (!ResProtocol.ParseURL(url, out atlasName, out tileName)) { return(null); } return(GetResource(atlasName, tileName)); }
public AssetDesc GetAssetDesc(string url) { if (!ResProtocol.IsSingleTexture(url)) { return(null); } string assetName = ResProtocol.GetSingleTextureAssetName(url); if (string.IsNullOrEmpty(assetName)) { return(null); } return(Root.Assets.GetAssetDesc(assetName)); }