Removed some code that only needs to be on the server-side.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4360 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -4,17 +4,10 @@ import com.threerings.presents.client.InvocationService_ConfirmListener;
|
||||
|
||||
public class InvocationMarshaller_ConfirmMarshaller
|
||||
extends InvocationMarshaller_ListenerMarshaller
|
||||
implements InvocationService_ConfirmListener
|
||||
{
|
||||
public static const REQUEST_PROCESSED :int = 1;
|
||||
|
||||
// documetnation inherited from interfacc
|
||||
public function requestProcessed () :void
|
||||
{
|
||||
// TODO: server only?
|
||||
}
|
||||
|
||||
// documetnation inherited
|
||||
// documentation inherited
|
||||
override public function dispatchResponse (methodId :int, args :Array) :void
|
||||
{
|
||||
switch (methodId) {
|
||||
|
||||
@@ -8,11 +8,10 @@ import com.threerings.io.Streamable;
|
||||
|
||||
import com.threerings.presents.client.InvocationService_InvocationListener;
|
||||
|
||||
import com.threerings.presents.dobj.DObjectManager;
|
||||
import com.threerings.presents.dobj.InvocationResponseEvent;
|
||||
|
||||
public class InvocationMarshaller_ListenerMarshaller
|
||||
implements Streamable, InvocationService_InvocationListener
|
||||
implements Streamable
|
||||
{
|
||||
/** The method id used to dispatch a requestFailed response. */
|
||||
public static const REQUEST_FAILED_RSPID :int = 0;
|
||||
@@ -31,18 +30,6 @@ public class InvocationMarshaller_ListenerMarshaller
|
||||
* This is only valid on the client. */
|
||||
public var mapStamp :Number;
|
||||
|
||||
/** The distributed object manager to use when dispatching proxied
|
||||
* responses. This is only valid on the server. */
|
||||
public var omgr :DObjectManager;
|
||||
|
||||
// documentation inherited from interface
|
||||
public function requestFailed (cause :String) :void
|
||||
{
|
||||
// omgr.postEvent(new InvocationResponseEvent(
|
||||
// callerOid, requestId, REQUEST_FAILED_RSPID,
|
||||
// [ cause ]));
|
||||
}
|
||||
|
||||
/**
|
||||
* Called to dispatch an invocation response to our target
|
||||
* listener.
|
||||
@@ -77,10 +64,9 @@ public class InvocationMarshaller_ListenerMarshaller
|
||||
}
|
||||
|
||||
// documentation inherited from interface Streamable
|
||||
public function readObject (ins :ObjectInputStream) :void
|
||||
public final function readObject (ins :ObjectInputStream) :void
|
||||
{
|
||||
callerOid = ins.readInt();
|
||||
requestId = ins.readShort();
|
||||
throw new Error(); // abstract: not needed
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,16 +4,9 @@ import com.threerings.presents.client.InvocationService_ResultListener;
|
||||
|
||||
public class InvocationMarshaller_ResultMarshaller
|
||||
extends InvocationMarshaller_ListenerMarshaller
|
||||
implements InvocationService_ResultListener
|
||||
{
|
||||
public static const REQUEST_PROCESSED :int = 1;
|
||||
|
||||
// documetnation inherited from interfacc
|
||||
public function requestProcessed (result :Object) :void
|
||||
{
|
||||
// TODO: server only?
|
||||
}
|
||||
|
||||
// documetnation inherited
|
||||
override public function dispatchResponse (methodId :int, args :Array) :void
|
||||
{
|
||||
|
||||
@@ -7,16 +7,9 @@ import com.threerings.presents.dobj.InvocationResponseEvent;
|
||||
// TODO: this will be autogenerated
|
||||
public class TimeBaseMarshaller_GotTimeBaseMarshaller
|
||||
extends InvocationMarshaller_ListenerMarshaller
|
||||
implements GotTimeBaseListener
|
||||
{
|
||||
public static const GOT_TIME_OID :int = 1;
|
||||
|
||||
public function gotTimeOid (arg1 :int) :void
|
||||
{
|
||||
// omgr.postEvent(new InvocationResponseEvent(
|
||||
// callerOid, requestId, GOT_TIME_OID, [ arg1 ]));
|
||||
}
|
||||
|
||||
override public function dispatchResponse (methodId :int, args :Array) :void
|
||||
{
|
||||
switch (methodId) {
|
||||
|
||||
Reference in New Issue
Block a user