Exemple #1
0
        //复制自己
        public TileGfxManager clone()
        {
            TileGfxManager newInstance = new TileGfxManager(mapsManager, imagesManager);

            newInstance.RemoveAt(0);
            for (short i = 0; i < this.Count(); i++)
            {
                TileGfxContainer gfxContainer    = this[i];
                TileGfxContainer newGfxContainer = gfxContainer.clone();
                newInstance.Add(newGfxContainer);
            }
            return(newInstance);
        }
Exemple #2
0
        //复制自己
        public TileGfxManager cloneForExport(MapsManager mapsManagerT, MImgsManager imagesManagerT)
        {
            TileGfxManager newInstance = new TileGfxManager(mapsManagerT, imagesManagerT);

            newInstance.RemoveAt(0);
            for (short i = 0; i < this.Count(); i++)
            {
                TileGfxContainer gfxContainer    = this[i];
                TileGfxContainer newGfxContainer = gfxContainer.cloneForExceport(mapsManagerT, imagesManagerT);
                newInstance.Add(newGfxContainer);
            }
            return(newInstance);
        }