summaryrefslogtreecommitdiff
path: root/NET/worlds/scape/SeqFile.java
blob: 2d20bc9534b24571930c9ca7b003dcf21c9fa6f0 (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
28
29
package NET.worlds.scape;

import NET.worlds.network.URL;

public class SeqFile implements BGLoaded {
   private int nativeNotifyObject;

   public SeqFile(int obj, URL path) {
      this.nativeNotifyObject = obj;
      BackgroundLoader.get(this, path);
   }

   @Override
   public Object asyncBackgroundLoad(String localName, URL remoteURL) {
      PendingCacheDrone.notifySeqLoaded(this.nativeNotifyObject, localName);
      return localName;
   }

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

   @Override
   public Room getBackgroundLoadRoom() {
      Pilot p = Pilot.getActive();
      return p != null ? p.getRoom() : null;
   }
}