Changed removeObject to removeObjects.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3648 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Andrzej Kapolka
2005-07-13 23:06:12 +00:00
parent 8dd1890a18
commit 9e7f85e873
5 changed files with 15 additions and 16 deletions
@@ -20,8 +20,8 @@ public interface StageSceneService extends InvocationService
ConfirmListener listener); ConfirmListener listener);
/** /**
* Requests to remove the supplied object from the current scene. * Requests to remove the supplied objects from the current scene.
*/ */
public void removeObject (Client client, ObjectInfo info, public void removeObjects (Client client, ObjectInfo[] info,
ConfirmListener listener); ConfirmListener listener);
} }
@@ -51,15 +51,15 @@ public class StageSceneMarshaller extends InvocationMarshaller
}); });
} }
/** The method id used to dispatch {@link #removeObject} requests. */ /** The method id used to dispatch {@link #removeObjects} requests. */
public static final int REMOVE_OBJECT = 2; public static final int REMOVE_OBJECTS = 2;
// documentation inherited from interface // documentation inherited from interface
public void removeObject (Client arg1, ObjectInfo arg2, InvocationService.ConfirmListener arg3) public void removeObjects (Client arg1, ObjectInfo[] arg2, InvocationService.ConfirmListener arg3)
{ {
InvocationMarshaller.ConfirmMarshaller listener3 = new InvocationMarshaller.ConfirmMarshaller(); InvocationMarshaller.ConfirmMarshaller listener3 = new InvocationMarshaller.ConfirmMarshaller();
listener3.listener = arg3; listener3.listener = arg3;
sendRequest(arg1, REMOVE_OBJECT, new Object[] { sendRequest(arg1, REMOVE_OBJECTS, new Object[] {
arg2, listener3 arg2, listener3
}); });
} }
@@ -64,10 +64,10 @@ public class StageSceneDispatcher extends InvocationDispatcher
); );
return; return;
case StageSceneMarshaller.REMOVE_OBJECT: case StageSceneMarshaller.REMOVE_OBJECTS:
((StageSceneProvider)provider).removeObject( ((StageSceneProvider)provider).removeObjects(
source, source,
(ObjectInfo)args[0], (InvocationService.ConfirmListener)args[1] (ObjectInfo[])args[0], (InvocationService.ConfirmListener)args[1]
); );
return; return;
@@ -174,8 +174,8 @@ public class StageSceneManager extends SpotSceneManager
} }
// documentation inherited from interface // documentation inherited from interface
public void removeObject (ClientObject caller, ObjectInfo info, public void removeObjects (ClientObject caller, ObjectInfo[] info,
StageSceneService.ConfirmListener listener) StageSceneService.ConfirmListener listener)
throws InvocationException throws InvocationException
{ {
BodyObject user = (BodyObject)caller; BodyObject user = (BodyObject)caller;
@@ -187,8 +187,7 @@ public class StageSceneManager extends SpotSceneManager
// create our scene update which will be stored in the database // create our scene update which will be stored in the database
// and used to efficiently update clients // and used to efficiently update clients
ModifyObjectsUpdate update = new ModifyObjectsUpdate(); ModifyObjectsUpdate update = new ModifyObjectsUpdate();
update.init(_sscene.getId(), _sscene.getVersion(), update.init(_sscene.getId(), _sscene.getVersion(), null, info);
null, new ObjectInfo[] { info });
Log.info("Modifying objects '" + update + "."); Log.info("Modifying objects '" + update + ".");
recordUpdate(update, true); recordUpdate(update, true);
@@ -26,7 +26,7 @@ public interface StageSceneProvider extends InvocationProvider
/** /**
* Handles a {@link StageSceneService#removeObject} request. * Handles a {@link StageSceneService#removeObject} request.
*/ */
public void removeObject (ClientObject caller, ObjectInfo info, public void removeObjects (ClientObject caller, ObjectInfo[] info,
StageSceneService.ConfirmListener listener) StageSceneService.ConfirmListener listener)
throws InvocationException; throws InvocationException;
} }