Added some missing marshallers.
Use Long instead of long. I had them both (it may be useful so that we know if we're streaming an object or just 8 bytes of value) but Windows couldn't fucking tell them apart (case insensitivity) so I nixed one. Reference some more marshallers in the client so that the classes will be compiled in.. gawd. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3977 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
package com.threerings.util {
|
||||
|
||||
/**
|
||||
* Equivalent to java.lang.Long.
|
||||
*/
|
||||
public class Long
|
||||
implements Equalable
|
||||
{
|
||||
public var high :int;
|
||||
public var low :int;
|
||||
|
||||
public function Long (low :int, high :int = 0)
|
||||
{
|
||||
this.low = low;
|
||||
this.high = high;
|
||||
}
|
||||
|
||||
// documentation inherited from interface Equalable
|
||||
public function equals (other :Object) :Boolean
|
||||
{
|
||||
if (!(other is Long)) {
|
||||
return false;
|
||||
}
|
||||
var that :Long = (other as Long);
|
||||
return (this.high == that.high) && (this.low == that.low);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,39 +0,0 @@
|
||||
package com.threerings.util {
|
||||
|
||||
import com.threerings.io.ObjectInputStream;
|
||||
import com.threerings.io.ObjectOutputStream;
|
||||
import com.threerings.io.Streamable;
|
||||
|
||||
|
||||
/**
|
||||
* TODO: stuff.
|
||||
*/
|
||||
public class long extends Object
|
||||
implements Streamable
|
||||
{
|
||||
public function long (lowbits :int, highbits :int = 0)
|
||||
{
|
||||
_lowbits = lowbits;
|
||||
_highbits = highbits;
|
||||
}
|
||||
|
||||
// documentation inherited from interface Streamable
|
||||
public function writeObject (out :ObjectOutputStream) :void
|
||||
//throws IOError
|
||||
{
|
||||
out.writeInt(_highbits);
|
||||
out.writeInt(_lowbits);
|
||||
}
|
||||
|
||||
// documentation inherited from interface Streamable
|
||||
public function readObject (ins :ObjectInputStream) :void
|
||||
//throws IOError
|
||||
{
|
||||
_highbits = ins.readInt();
|
||||
_lowbits = ins.readInt();
|
||||
}
|
||||
|
||||
/** Yon bits. */
|
||||
protected var _lowbits :int, _highbits :int;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user