Began porting 'whirled'.

The basic whirled stuff is here; compiling and working.
'Spot' still to come.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4133 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2006-05-20 02:18:18 +00:00
parent fb10d38232
commit f7eb18460a
26 changed files with 1950 additions and 26 deletions
@@ -0,0 +1,60 @@
package com.threerings.presents.client {
import com.threerings.util.Comparable;
import com.threerings.io.ObjectInputStream;
import com.threerings.io.ObjectOutputStream;
import com.threerings.presents.dobj.DSet;
import com.threerings.presents.dobj.DSet_Entry;
/**
* Used to maintain a registry of invocation receivers that can be
* used to convert (large) hash codes into (small) registration
* numbers.
*/
public class InvocationReceiver_Registration
implements DSet_Entry
{
/** The unique hash code associated with this invocation receiver class. */
public var receiverCode :String;
/** The unique id assigned to this invocation receiver class at
* registration time. */
public var receiverId :int;
/** Creates and initializes a registration instance. */
public function InvocationReceiver_Registration (
receiverCode :String = null, receiverId :int = 0)
{
this.receiverCode = receiverCode;
this.receiverId = receiverId;
}
// documentation inherited from interface DSet_Entry
public function getKey () :Object
{
return receiverCode;
}
// documentation inherited
public function toString () :String
{
return "[" + receiverCode + " => " + receiverId + "]";
}
// documentation inherited from superinterface Streamable
public function writeObject (out :ObjectOutputStream) :void
{
out.writeField(receiverCode);
out.writeShort(receiverId);
}
// documentation inherited from superinterface Streamable
public function readObject (ins :ObjectInputStream) :void
{
receiverCode = (ins.readField(String) as String);
receiverId = ins.readShort();
}
}
}