public TilePool ImportPool(string name, TextureResource source, TilePool.TileImportOptions options) { //if (Pools.Contains(name)) // throw new ArgumentException("Manager already contains a pool with the given name.", "name"); TilePool pool = new TilePool(this, name, options.TileWidth, options.TileHeight); pool.ImportMerge(source, options); Pools.Add(pool); return(pool); }
public TilePool ImportPool(string name, TextureResource source, TilePool.TileImportOptions options) { return(GetManager(Default).ImportPool(name, source, options)); }