fdfce50d01
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4151 542714f4-19e9-0310-aa3c-eee0fc999fb1
28 lines
776 B
ActionScript
28 lines
776 B
ActionScript
package com.threerings.crowd.data {
|
|
|
|
import com.threerings.presents.data.InvocationMarshaller_ListenerMarshaller;
|
|
|
|
import com.threerings.crowd.client.MoveListener
|
|
|
|
public class LocationMarshaller_MoveMarshaller extends InvocationMarshaller_ListenerMarshaller
|
|
{
|
|
/** The method id used to dispatch {@link #moveSucceeded}
|
|
* responses. */
|
|
public static const MOVE_SUCCEEDED :int = 1;
|
|
|
|
// documentation inherited
|
|
public override function dispatchResponse (methodId :int, args :Array) :void
|
|
{
|
|
switch (methodId) {
|
|
case MOVE_SUCCEEDED:
|
|
(listener as MoveListener).moveSucceeded(
|
|
(args[0] as PlaceConfig));
|
|
return;
|
|
|
|
default:
|
|
super.dispatchResponse(methodId, args);
|
|
}
|
|
}
|
|
}
|
|
}
|