示例#1
0
        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);
        }
示例#2
0
 public TilePool ImportPool(string name, TextureResource source, TilePool.TileImportOptions options)
 {
     return(GetManager(Default).ImportPool(name, source, options));
 }