import TileMap from "../components/TileMap" ; export function loadAsset ( player , entry , callback ) { player . getAssetData ( `assets/${ entry . storagePath }/tilemap.json` , "json" , ( err , data ) => { callback ( null , new TileMap ( data ) ) ; } ) ; } export function createOuterAsset ( player , asset ) { return new ( < any > window ) . Sup . TileMap ( asset ) ; }