Wrapped values are now automatically unwrapped at a lower layer.
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@179 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
@@ -25,7 +25,6 @@ import com.threerings.parlor.client.ParlorReceiver;
|
|||||||
import com.threerings.parlor.game.data.GameConfig;
|
import com.threerings.parlor.game.data.GameConfig;
|
||||||
import com.threerings.presents.client.InvocationDecoder;
|
import com.threerings.presents.client.InvocationDecoder;
|
||||||
import com.threerings.util.Name;
|
import com.threerings.util.Name;
|
||||||
import com.threerings.util.Integer;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Dispatches calls to a {@link ParlorReceiver} instance.
|
* Dispatches calls to a {@link ParlorReceiver} instance.
|
||||||
@@ -73,25 +72,25 @@ public class ParlorDecoder extends InvocationDecoder
|
|||||||
var prec :ParlorReceiver = (receiver as ParlorReceiver);
|
var prec :ParlorReceiver = (receiver as ParlorReceiver);
|
||||||
switch (methodId) {
|
switch (methodId) {
|
||||||
case GAME_IS_READY:
|
case GAME_IS_READY:
|
||||||
prec.gameIsReady((args[0] as Integer).value);
|
prec.gameIsReady(args[0] as int);
|
||||||
return;
|
return;
|
||||||
|
|
||||||
case RECEIVED_INVITE:
|
case RECEIVED_INVITE:
|
||||||
prec.receivedInvite(
|
prec.receivedInvite(
|
||||||
(args[0] as Integer).value, (args[1] as Name),
|
(args[0] as int), (args[1] as Name),
|
||||||
(args[2] as GameConfig)
|
(args[2] as GameConfig)
|
||||||
);
|
);
|
||||||
return;
|
return;
|
||||||
|
|
||||||
case RECEIVED_INVITE_CANCELLATION:
|
case RECEIVED_INVITE_CANCELLATION:
|
||||||
prec.receivedInviteCancellation(
|
prec.receivedInviteCancellation(
|
||||||
(args[0] as Integer).value
|
(args[0] as int)
|
||||||
);
|
);
|
||||||
return;
|
return;
|
||||||
|
|
||||||
case RECEIVED_INVITE_RESPONSE:
|
case RECEIVED_INVITE_RESPONSE:
|
||||||
prec.receivedInviteResponse(
|
prec.receivedInviteResponse(
|
||||||
(args[0] as Integer).value, (args[1] as Integer).value, args[2]
|
(args[0] as int), (args[1] as int), args[2]
|
||||||
);
|
);
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user