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
@@ -81,8 +81,9 @@ public class InvocationDirector
// if we're logged on, clear out any receiver id mapping
if (_clobj != null) {
var rreg :InvocationRegistration =
(_clobj.receivers.get(receiverCode) as InvocationRegistration);
var rreg :InvocationReceiver_Registration =
(_clobj.receivers.get(receiverCode) as
InvocationReceiver_Registration);
if (rreg == null) {
log.warning("Receiver unregistered for which we have no " +
"id to code mapping [code=" + receiverCode + "].");
@@ -102,8 +103,9 @@ public class InvocationDirector
*/
internal function assignReceiverId (decoder :InvocationDecoder) :void
{
var reg :InvocationRegistration = new InvocationRegistration(
decoder.getReceiverCode(), nextReceiverId());
var reg :InvocationReceiver_Registration =
new InvocationReceiver_Registration(decoder.getReceiverCode(),
nextReceiverId());
_clobj.addToReceivers(reg);
_receivers.put(reg.receiverId, decoder);
}
@@ -13,7 +13,7 @@ import com.threerings.presents.dobj.DSet_Entry;
* used to convert (large) hash codes into (small) registration
* numbers.
*/
public class InvocationRegistration
public class InvocationReceiver_Registration
implements DSet_Entry
{
/** The unique hash code associated with this invocation receiver class. */
@@ -24,8 +24,8 @@ public class InvocationRegistration
public var receiverId :int;
/** Creates and initializes a registration instance. */
public function InvocationRegistration (
receiverCode :String, receiverId :int)
public function InvocationReceiver_Registration (
receiverCode :String = null, receiverId :int = 0)
{
this.receiverCode = receiverCode;
this.receiverId = receiverId;