Ejemplo n.º 1
0
        public void regDirect(string name, spriteAtlas atlas)
        {
            if (this.mapInfo.ContainsKey(name))
            //    var item = this.mapInfo[name];
            //if (item != Script.Undefined)
            {
                throw new Exception("you can't reg the same name"); //ness
            }
            var item = new atlasMgrItem();                          //ness

            this.mapInfo[name] = item;
            item.atals         = atlas;
        }
Ejemplo n.º 2
0
        public void reg(string name, string urlatlas, string urlatalstex, string urlatalstex_add)
        {
            //重复注册处理
            if (this.mapInfo.ContainsKey(name))
            //var item = this.mapInfo[name];
            //if (item != Script.Undefined)
            {
                throw new Exception("you can't reg the same name"); //ness
            }
            var item = new atlasMgrItem();                          //ness

            this.mapInfo[name]   = item;
            item.url             = urlatlas;
            item.urlatalstex     = urlatalstex;
            item.urlatalstex_add = urlatalstex_add;
        }