summaryrefslogtreecommitdiff
path: root/NET/worlds/scape/ShapeTextureLoader.java
blob: 1ba82e36ec11b7d0bc7081f51ba2b54d27d7348f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package NET.worlds.scape;

import NET.worlds.network.URL;

class ShapeTextureLoader implements BGLoaded {
   ShapeLoader shapeLoader;

   public ShapeTextureLoader(ShapeLoader s) {
      this.shapeLoader = s;
   }

   @Override
   public Object asyncBackgroundLoad(String localName, URL remoteName) {
      this.shapeLoader.textureLoadEnd(TextureDecoder.decode(remoteName, remoteName.getBaseWithoutExt(), localName));
      return null;
   }

   @Override
   public boolean syncBackgroundLoad(Object obj, URL remoteURL) {
      return false;
   }

   @Override
   public Room getBackgroundLoadRoom() {
      return this.shapeLoader.getBackgroundLoadRoom();
   }
}