Progress on the presents client.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3848 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
package com.threerings.util {
|
||||
|
||||
public class JavaConstants
|
||||
{
|
||||
public static const SHORT_MAX_VALUE :int = (Math.pow(2, 15) - 1);
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,11 @@
|
||||
package com.threerings.util {
|
||||
|
||||
import com.threerings.io.ObjectInputStream;
|
||||
import com.threerings.io.ObjectOutputStream;
|
||||
|
||||
/**
|
||||
* TODO: stuff.
|
||||
*/
|
||||
public class long extends Object
|
||||
implements Streamable
|
||||
{
|
||||
@@ -13,16 +19,16 @@ public class long extends Object
|
||||
public function writeObject (out :ObjectOutputStream) :void
|
||||
//throws IOError
|
||||
{
|
||||
out.writeInt(_lowbits);
|
||||
out.writeInt(_highbits);
|
||||
out.writeInt(_lowbits);
|
||||
}
|
||||
|
||||
// documentation inherited from interface Streamable
|
||||
public function readObject (ins :ObjectInputStream) :void
|
||||
//throws IOError
|
||||
{
|
||||
_lowbits = ins.readInt();
|
||||
_highbits = ins.readInt();
|
||||
_lowbits = ins.readInt();
|
||||
}
|
||||
|
||||
/** Yon bits. */
|
||||
|
||||
Reference in New Issue
Block a user