blob: a1e64f6d4e016b72abe93b524cc2a39529e2fb08 (
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
package NET.worlds.scape;
import java.io.IOException;
public class Light extends WObject {
protected int lightID;
private static Object classCookie = new Object();
@Override
protected void addRwChildren(WObject parent) {
super.addRwChildren(parent);
Point3Temp p = this.getWorldPosition();
}
@Override
protected void markVoid() {
super.markVoid();
if (this.lightID != 0) {
destroyLight(this.lightID);
}
}
@Override
protected void noteTransformChange() {
super.noteTransformChange();
if (this.lightID != 0) {
setLightTransform(this.lightID, this.clumpID);
}
}
private static native void setLightTransform(int var0, int var1);
private static native void destroyLight(int var0);
@Override
public Object properties(int index, int offset, int mode, Object value) throws NoSuchPropertyException {
Object ret = null;
int var10000 = index - offset;
return super.properties(index, offset + 0, mode, value);
}
@Override
public void saveState(Saver s) throws IOException {
s.saveVersion(0, classCookie);
super.saveState(s);
}
@Override
public void restoreState(Restorer r) throws IOException, TooNewException {
switch (r.restoreVersion(classCookie)) {
case 0:
super.restoreState(r);
return;
default:
throw new TooNewException();
}
}
}
|