Restoring the only part of r911 that it turns out I actually wanted in the first place. And even that I'm not using yet.

git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@915 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
Mike Thomas
2010-05-27 21:07:38 +00:00
parent 87d851a6f9
commit b206917ee7
3 changed files with 109 additions and 2 deletions
-2
View File
@@ -242,7 +242,6 @@
<!-- generate our services that have no ActionScript counterpart -->
<genservice header="lib/SOURCE_HEADER" classpathref="classpath">
<fileset dir="src/java">
<include name="**/stage/client/*Service.java"/>
<include name="**/puzzle/client/*Service.java"/>
<include name="**/micasa/simulator/client/*Service.java"/>
<include name="**/micasa/lobby/*Service.java"/>
@@ -254,7 +253,6 @@
<genservice header="lib/SOURCE_HEADER" asroot="src/as" classpathref="classpath">
<fileset dir="src/java">
<include name="**/client/*Service.java"/>
<exclude name="**/stage/client/*Service.java"/>
<exclude name="**/puzzle/client/*Service.java"/>
<exclude name="**/micasa/simulator/client/*Service.java"/>
<exclude name="**/parlor/tourney/client/*Service.java"/>
@@ -0,0 +1,41 @@
//
// $Id$
//
// Vilya library - tools for developing networked games
// Copyright (C) 2002-2010 Three Rings Design, Inc., All Rights Reserved
// http://www.threerings.net/code/vilya/
//
// This library is free software; you can redistribute it and/or modify it
// under the terms of the GNU Lesser General Public License as published
// by the Free Software Foundation; either version 2.1 of the License, or
// (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
package com.threerings.stage.client {
import com.threerings.io.TypedArray;
import com.threerings.miso.data.ObjectInfo;
import com.threerings.presents.client.Client;
import com.threerings.presents.client.InvocationService;
import com.threerings.presents.client.InvocationService_ConfirmListener;
/**
* An ActionScript version of the Java StageSceneService interface.
*/
public interface StageSceneService extends InvocationService
{
// from Java interface StageSceneService
function addObject (arg1 :ObjectInfo, arg2 :InvocationService_ConfirmListener) :void;
// from Java interface StageSceneService
function removeObjects (arg1 :TypedArray /* of class com.threerings.miso.data.ObjectInfo */, arg2 :InvocationService_ConfirmListener) :void;
}
}
@@ -0,0 +1,68 @@
//
// $Id$
//
// Vilya library - tools for developing networked games
// Copyright (C) 2002-2010 Three Rings Design, Inc., All Rights Reserved
// http://www.threerings.net/code/vilya/
//
// This library is free software; you can redistribute it and/or modify it
// under the terms of the GNU Lesser General Public License as published
// by the Free Software Foundation; either version 2.1 of the License, or
// (at your option) any later version.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
package com.threerings.stage.data {
import com.threerings.io.TypedArray;
import com.threerings.miso.data.ObjectInfo;
import com.threerings.presents.client.Client;
import com.threerings.presents.client.InvocationService_ConfirmListener;
import com.threerings.presents.data.InvocationMarshaller;
import com.threerings.presents.data.InvocationMarshaller_ConfirmMarshaller;
import com.threerings.stage.client.StageSceneService;
/**
* Provides the implementation of the <code>StageSceneService</code> interface
* that marshalls the arguments and delivers the request to the provider
* on the server. Also provides an implementation of the response listener
* interfaces that marshall the response arguments and deliver them back
* to the requesting client.
*/
public class StageSceneMarshaller extends InvocationMarshaller
implements StageSceneService
{
/** The method id used to dispatch <code>addObject</code> requests. */
public static const ADD_OBJECT :int = 1;
// from interface StageSceneService
public function addObject (arg1 :ObjectInfo, arg2 :InvocationService_ConfirmListener) :void
{
var listener2 :InvocationMarshaller_ConfirmMarshaller = new InvocationMarshaller_ConfirmMarshaller();
listener2.listener = arg2;
sendRequest(ADD_OBJECT, [
arg1, listener2
]);
}
/** The method id used to dispatch <code>removeObjects</code> requests. */
public static const REMOVE_OBJECTS :int = 2;
// from interface StageSceneService
public function removeObjects (arg1 :TypedArray /* of class com.threerings.miso.data.ObjectInfo */, arg2 :InvocationService_ConfirmListener) :void
{
var listener2 :InvocationMarshaller_ConfirmMarshaller = new InvocationMarshaller_ConfirmMarshaller();
listener2.listener = arg2;
sendRequest(REMOVE_OBJECTS, [
arg1, listener2
]);
}
}
}