diff options
| author | Fuwn <[email protected]> | 2021-05-03 16:38:41 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2021-05-03 16:38:41 -0700 |
| commit | e1e781bb2135ef78592226f1a3eaba4925702f1f (patch) | |
| tree | 8a5b590463ed413e1c6eabb719130e701b95ca63 /NET/worlds/scape/Light.java | |
| download | worlds.jar-main.tar.xz worlds.jar-main.zip | |
Diffstat (limited to 'NET/worlds/scape/Light.java')
| -rw-r--r-- | NET/worlds/scape/Light.java | 100 |
1 files changed, 100 insertions, 0 deletions
diff --git a/NET/worlds/scape/Light.java b/NET/worlds/scape/Light.java new file mode 100644 index 0000000..27148d7 --- /dev/null +++ b/NET/worlds/scape/Light.java @@ -0,0 +1,100 @@ +/* */ package NET.worlds.scape; +/* */ +/* */ import java.io.IOException; +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ public class Light +/* */ extends WObject +/* */ { +/* */ protected int lightID; +/* */ +/* */ protected void addRwChildren(WObject parent) +/* */ { +/* 29 */ super.addRwChildren(parent); +/* */ } +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ protected void markVoid() +/* */ { +/* 44 */ super.markVoid(); +/* */ +/* 46 */ if (this.lightID != 0) +/* 47 */ destroyLight(this.lightID); +/* */ } +/* */ +/* */ protected void noteTransformChange() { +/* 51 */ super.noteTransformChange(); +/* */ +/* 53 */ if (this.lightID != 0) { +/* 54 */ setLightTransform(this.lightID, this.clumpID); +/* */ } +/* */ } +/* */ +/* */ +/* */ private static native void setLightTransform(int paramInt1, int paramInt2); +/* */ +/* */ +/* */ private static native void destroyLight(int paramInt); +/* */ +/* */ +/* */ public Object properties(int index, int offset, int mode, Object value) +/* */ throws NoSuchPropertyException +/* */ { +/* 68 */ Object ret = null; +/* 69 */ (index - offset); +/* */ +/* 71 */ ret = super.properties(index, offset + 0, mode, value); +/* */ +/* 73 */ return ret; +/* */ } +/* */ +/* 76 */ private static Object classCookie = new Object(); +/* */ +/* */ public void saveState(Saver s) throws IOException +/* */ { +/* 80 */ s.saveVersion(0, classCookie); +/* 81 */ super.saveState(s); +/* */ } +/* */ +/* */ public void restoreState(Restorer r) throws IOException, TooNewException +/* */ { +/* 86 */ switch (r.restoreVersion(classCookie)) { +/* */ case 0: +/* 88 */ super.restoreState(r); +/* 89 */ break; +/* */ default: +/* 91 */ throw new TooNewException(); +/* */ } +/* */ } +/* */ } + + +/* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\scape\Light.class + * Java compiler version: 6 (50.0) + * JD-Core Version: 0.7.1 + */
\ No newline at end of file |