示例#1
0
        public string ComposeDefaultResURL(string resName)
        {
            if (m_defaultResGroup == null)
            {
                return("");
            }

            return(ResProtocol.ComposeURL(m_defaultResGroup.ResFilePath, resName));
        }
示例#2
0
        public ImageResource GetResource(string url)
        {
            string atlasName;
            string tileName;

            if (!ResProtocol.ParseURL(url, out atlasName, out tileName))
            {
                return(null);
            }

            return(GetResource(atlasName, tileName));
        }
示例#3
0
        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));
        }