diff options
Diffstat (limited to 'NET/worlds/scape/FileTexture.java')
| -rw-r--r-- | NET/worlds/scape/FileTexture.java | 112 |
1 files changed, 112 insertions, 0 deletions
diff --git a/NET/worlds/scape/FileTexture.java b/NET/worlds/scape/FileTexture.java new file mode 100644 index 0000000..a18a6a2 --- /dev/null +++ b/NET/worlds/scape/FileTexture.java @@ -0,0 +1,112 @@ +/* */ package NET.worlds.scape; +/* */ +/* */ import java.io.IOException; +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ public class FileTexture +/* */ extends Texture +/* */ implements Persister +/* */ { +/* */ private String _urlName; +/* */ +/* */ static {} +/* */ +/* */ public FileTexture(String urlName, String filename) +/* */ { +/* 40 */ makeTexture(urlName, filename); +/* */ } +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ protected FileTexture() {} +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ public static native void nativeInit(); +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ public static native FileTexture dictLookup(String paramString); +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ private native void makeTexture(String paramString1, String paramString2); +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* 80 */ public String getName() { return this._urlName; } +/* */ +/* 82 */ private static Object classCookie = new Object(); +/* */ +/* */ public void saveState(Saver s) throws IOException +/* */ { +/* 86 */ s.saveVersion(0, classCookie); +/* 87 */ super.saveState(s); +/* 88 */ s.saveString(this._urlName); +/* */ } +/* */ +/* */ +/* */ public void restoreState(Restorer r) +/* */ throws IOException, TooNewException +/* */ { +/* 95 */ switch (r.restoreVersion(classCookie)) { +/* */ case 0: +/* 97 */ super.restoreState(r); +/* 98 */ String name = r.restoreString(); +/* 99 */ makeTexture(name, name); +/* 100 */ break; +/* */ default: +/* 102 */ throw new TooNewException(); +/* */ } +/* */ String name; +/* */ } +/* */ } + + +/* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\scape\FileTexture.class + * Java compiler version: 6 (50.0) + * JD-Core Version: 0.7.1 + */
\ No newline at end of file |