Пример #1
0
        public bool LoadFile(string resFile, string resName)
        {
            ImageResourceGroup rg = ResourceManagerUtil.LoadResFileIntoResourceGroup(resFile);

            if (rg == null)
            {
                Logging.Instance.Log("Resource group '{0}' loading failed. ", resFile);
                return(false);
            }
            m_resGroupsLut.Add(resName, rg);
            return(true);
        }
Пример #2
0
        public bool LoadDefault(string resFile)
        {
            ImageResourceGroup rg = ResourceManagerUtil.LoadResFileIntoResourceGroup(resFile);

            if (rg == null)
            {
                Logging.Instance.Message("默认资源组 '{0}' 加载失败. ", resFile);
                return(false);
            }

            m_defaultResGroup = rg;
            return(true);
        }