public TileGfxContainer clone() { TileGfxContainer newInstance = new TileGfxContainer((TileGfxManager)parent, name); for (int i = 0; i < Count(); i++) { TileGfxElement baseClip = (TileGfxElement)this[i]; TileGfxElement newBaseClip = baseClip.Clone(newInstance); newInstance.Add(newBaseClip); } return(newInstance); }
public TileGfxContainer cloneForExceport(MapsManager mapsManager, MImgsManager imagesManager) { TileGfxContainer newInstance = new TileGfxContainer((TileGfxManager)parent, name); for (int i = 0; i < Count(); i++) { TileGfxElement baseClip = (TileGfxElement)this[i]; TileGfxElement newBaseClip = baseClip.Clone(newInstance); newBaseClip.imageElement = imagesManager[newBaseClip.imageElement.GetID()]; newInstance.Add(newBaseClip); } return(newInstance); }