protected void addBundle ( HashIntMap < TileSet > idmap , HashMap < String , Integer > namemap , TileSetBundle bundle ) { IMImageProvider improv = ( _imgr == null ) ? null : new IMImageProvider ( _imgr , bundle ) ; // map all of the tilesets in this bundle for ( IntMap . IntEntry < TileSet > entry : bundle . intEntrySet ( ) ) { Integer tsid = entry . getKey ( ) ; TileSet tset = entry . getValue ( ) ; tset . setImageProvider ( improv ) ; idmap . put ( tsid . intValue ( ) , tset ) ; namemap . put ( tset . getName ( ) , tsid ) ; } }
Adds the tilesets in the supplied bundle to our tileset mapping tables . Any tilesets with the same name or id will be overwritten .