diff options
Diffstat (limited to 'NET/worlds/scape/WrVisiRectPatch.java')
| -rw-r--r-- | NET/worlds/scape/WrVisiRectPatch.java | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/NET/worlds/scape/WrVisiRectPatch.java b/NET/worlds/scape/WrVisiRectPatch.java new file mode 100644 index 0000000..c2e04b1 --- /dev/null +++ b/NET/worlds/scape/WrVisiRectPatch.java @@ -0,0 +1,68 @@ +/* */ package NET.worlds.scape; +/* */ +/* */ import java.io.IOException; +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ +/* */ class WrVisiRectPatch +/* */ extends RectPatch +/* */ { +/* 20 */ private static Object classCookie = new Object(); +/* */ +/* */ public void saveState(Saver s) throws IOException +/* */ { +/* 24 */ if (!$assertionsDisabled) throw new AssertionError(); +/* */ } +/* */ +/* */ public void restoreState(Restorer r) throws IOException, TooNewException +/* */ { +/* 29 */ RectPatch p = new RectPatch(); +/* 30 */ r.replace(this, p); +/* */ +/* 32 */ switch (r.restoreVersion(classCookie)) { +/* */ case 0: +/* 34 */ super.restoreState(r); +/* 35 */ this.xTile = r.restoreFloat(); +/* 36 */ this.xTileOffset = r.restoreFloat(); +/* 37 */ this.yTile = r.restoreFloat(); +/* 38 */ this.yTileOffset = r.restoreFloat(); +/* 39 */ this.mat = ((Material)r.restoreMaybeNull()); +/* 40 */ this.t[0] = ((Polygon)r.restoreMaybeNull()); +/* 41 */ this.t[1] = ((Polygon)r.restoreMaybeNull()); +/* 42 */ this.t[2] = ((Polygon)r.restoreMaybeNull()); +/* 43 */ this.t[3] = ((Polygon)r.restoreMaybeNull()); +/* 44 */ break; +/* */ default: +/* 46 */ throw new TooNewException(); +/* */ } +/* */ +/* 49 */ p.xDim = this.xDim; +/* 50 */ p.yDim = this.yDim; +/* 51 */ p.z[0] = this.z[0]; +/* 52 */ p.z[1] = this.z[1]; +/* 53 */ p.z[2] = this.z[2]; +/* 54 */ p.z[3] = this.z[3]; +/* 55 */ p.xTile = this.xTile; +/* 56 */ p.xTileOffset = this.xTileOffset; +/* 57 */ p.yTile = this.yTile; +/* 58 */ p.yTileOffset = this.yTileOffset; +/* 59 */ p.mat = this.mat; +/* 60 */ p.setVisible(true); +/* */ } +/* */ } + + +/* Location: C:\Program Files (x86)\Worlds Inc\WorldsPlayer - Win7\lib\worlds.jar!\NET\worlds\scape\WrVisiRectPatch.class + * Java compiler version: 6 (50.0) + * JD-Core Version: 0.7.1 + */
\ No newline at end of file |