Regenerated more actionscript service business.

git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@103 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
Ray Greenwell
2006-10-06 01:40:52 +00:00
parent 77e22d65fc
commit 7e3e8b981d
20 changed files with 742 additions and 412 deletions
@@ -1,9 +1,9 @@
//
// $Id: ParlorMarshaller.java 4145 2006-05-24 01:24:24Z ray $
// $Id$
//
// Narya library - tools for developing networked games
// Vilya library - tools for developing networked games
// Copyright (C) 2002-2006 Three Rings Design, Inc., All Rights Reserved
// http://www.threerings.net/code/narya/
// 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
@@ -21,21 +21,22 @@
package com.threerings.parlor.data {
import com.threerings.util.*; // for Float, Integer, etc.
import com.threerings.parlor.client.ParlorService;
import com.threerings.parlor.client.ParlorService_InviteListener;
import com.threerings.parlor.client.ParlorService_TableListener;
import com.threerings.parlor.data.ParlorMarshaller_InviteMarshaller;
import com.threerings.parlor.data.ParlorMarshaller_TableMarshaller;
import com.threerings.parlor.data.TableConfig;
import com.threerings.parlor.game.data.GameConfig;
import com.threerings.presents.client.Client;
import com.threerings.presents.client.InvocationService;
import com.threerings.presents.client.InvocationService_ConfirmListener;
import com.threerings.presents.client.InvocationService_InvocationListener;
import com.threerings.presents.data.InvocationMarshaller;
import com.threerings.presents.data.InvocationMarshaller_ConfirmMarshaller;
import com.threerings.presents.data.InvocationMarshaller_InvocationMarshaller;
import com.threerings.presents.data.InvocationMarshaller_ListenerMarshaller;
import com.threerings.presents.dobj.InvocationResponseEvent;
import com.threerings.util.Integer;
import com.threerings.util.Name;
/**
@@ -51,11 +52,10 @@ public class ParlorMarshaller extends InvocationMarshaller
/** The method id used to dispatch {@link #cancel} requests. */
public static const CANCEL :int = 1;
// documentation inherited from interface
// from interface ParlorService
public function cancel (arg1 :Client, arg2 :int, arg3 :InvocationService_InvocationListener) :void
{
var listener3 :InvocationMarshaller_ListenerMarshaller =
new InvocationMarshaller_ListenerMarshaller();
var listener3 :InvocationMarshaller_ListenerMarshaller = new InvocationMarshaller_ListenerMarshaller();
listener3.listener = arg3;
sendRequest(arg1, CANCEL, [
Integer.valueOf(arg2), listener3
@@ -65,11 +65,10 @@ public class ParlorMarshaller extends InvocationMarshaller
/** The method id used to dispatch {@link #createTable} requests. */
public static const CREATE_TABLE :int = 2;
// documentation inherited from interface
// from interface ParlorService
public function createTable (arg1 :Client, arg2 :int, arg3 :TableConfig, arg4 :GameConfig, arg5 :ParlorService_TableListener) :void
{
var listener5 :ParlorMarshaller_TableMarshaller =
new ParlorMarshaller_TableMarshaller();
var listener5 :ParlorMarshaller_TableMarshaller = new ParlorMarshaller_TableMarshaller();
listener5.listener = arg5;
sendRequest(arg1, CREATE_TABLE, [
Integer.valueOf(arg2), arg3, arg4, listener5
@@ -79,11 +78,10 @@ public class ParlorMarshaller extends InvocationMarshaller
/** The method id used to dispatch {@link #invite} requests. */
public static const INVITE :int = 3;
// documentation inherited from interface
// from interface ParlorService
public function invite (arg1 :Client, arg2 :Name, arg3 :GameConfig, arg4 :ParlorService_InviteListener) :void
{
var listener4 :ParlorMarshaller_InviteMarshaller =
new ParlorMarshaller_InviteMarshaller();
var listener4 :ParlorMarshaller_InviteMarshaller = new ParlorMarshaller_InviteMarshaller();
listener4.listener = arg4;
sendRequest(arg1, INVITE, [
arg2, arg3, listener4
@@ -93,11 +91,10 @@ public class ParlorMarshaller extends InvocationMarshaller
/** The method id used to dispatch {@link #joinTable} requests. */
public static const JOIN_TABLE :int = 4;
// documentation inherited from interface
// from interface ParlorService
public function joinTable (arg1 :Client, arg2 :int, arg3 :int, arg4 :int, arg5 :InvocationService_InvocationListener) :void
{
var listener5 :InvocationMarshaller_ListenerMarshaller =
new InvocationMarshaller_ListenerMarshaller();
var listener5 :InvocationMarshaller_ListenerMarshaller = new InvocationMarshaller_ListenerMarshaller();
listener5.listener = arg5;
sendRequest(arg1, JOIN_TABLE, [
Integer.valueOf(arg2), Integer.valueOf(arg3), Integer.valueOf(arg4), listener5
@@ -107,11 +104,10 @@ public class ParlorMarshaller extends InvocationMarshaller
/** The method id used to dispatch {@link #leaveTable} requests. */
public static const LEAVE_TABLE :int = 5;
// documentation inherited from interface
// from interface ParlorService
public function leaveTable (arg1 :Client, arg2 :int, arg3 :int, arg4 :InvocationService_InvocationListener) :void
{
var listener4 :InvocationMarshaller_ListenerMarshaller =
new InvocationMarshaller_ListenerMarshaller();
var listener4 :InvocationMarshaller_ListenerMarshaller = new InvocationMarshaller_ListenerMarshaller();
listener4.listener = arg4;
sendRequest(arg1, LEAVE_TABLE, [
Integer.valueOf(arg2), Integer.valueOf(arg3), listener4
@@ -121,11 +117,10 @@ public class ParlorMarshaller extends InvocationMarshaller
/** The method id used to dispatch {@link #respond} requests. */
public static const RESPOND :int = 6;
// documentation inherited from interface
// from interface ParlorService
public function respond (arg1 :Client, arg2 :int, arg3 :int, arg4 :Object, arg5 :InvocationService_InvocationListener) :void
{
var listener5 :InvocationMarshaller_ListenerMarshaller =
new InvocationMarshaller_ListenerMarshaller();
var listener5 :InvocationMarshaller_ListenerMarshaller = new InvocationMarshaller_ListenerMarshaller();
listener5.listener = arg5;
sendRequest(arg1, RESPOND, [
Integer.valueOf(arg2), Integer.valueOf(arg3), arg4, listener5
@@ -135,16 +130,14 @@ public class ParlorMarshaller extends InvocationMarshaller
/** The method id used to dispatch {@link #startSolitaire} requests. */
public static const START_SOLITAIRE :int = 7;
// documentation inherited from interface
// from interface ParlorService
public function startSolitaire (arg1 :Client, arg2 :GameConfig, arg3 :InvocationService_ConfirmListener) :void
{
var listener3 :InvocationMarshaller_ConfirmMarshaller =
new InvocationMarshaller_ConfirmMarshaller();
var listener3 :InvocationMarshaller_ConfirmMarshaller = new InvocationMarshaller_ConfirmMarshaller();
listener3.listener = arg3;
sendRequest(arg1, START_SOLITAIRE, [
arg2, listener3
]);
}
}
}
@@ -1,21 +1,47 @@
//
// $Id$
//
// Vilya library - tools for developing networked games
// Copyright (C) 2002-2006 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.parlor.data {
import com.threerings.util.Integer;
import com.threerings.presents.dobj.InvocationResponseEvent;
import com.threerings.presents.data.InvocationMarshaller_ListenerMarshaller;
import com.threerings.util.*; // for Float, Integer, etc.
import com.threerings.parlor.client.ParlorService;
import com.threerings.parlor.client.ParlorService_InviteListener;
import com.threerings.parlor.data.TableConfig;
import com.threerings.parlor.game.data.GameConfig;
import com.threerings.presents.client.Client;
import com.threerings.presents.client.InvocationService;
import com.threerings.presents.data.InvocationMarshaller_ListenerMarshaller;
import com.threerings.util.Name;
/**
* Marshalls instances of the ParlorService_InviteMarshaller interface.
*/
public class ParlorMarshaller_InviteMarshaller
extends InvocationMarshaller_ListenerMarshaller
{
/** The method id used to dispatch {@link #inviteReceived}
* responses. */
/** The method id used to dispatch {@link #inviteReceived} responses. */
public static const INVITE_RECEIVED :int = 1;
// documentation inherited
// from InvocationMarshaller_ListenerMarshaller
override public function dispatchResponse (methodId :int, args :Array) :void
{
switch (methodId) {
@@ -1,21 +1,47 @@
//
// $Id$
//
// Vilya library - tools for developing networked games
// Copyright (C) 2002-2006 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.parlor.data {
import com.threerings.util.Integer;
import com.threerings.presents.dobj.InvocationResponseEvent;
import com.threerings.presents.data.InvocationMarshaller_ListenerMarshaller;
import com.threerings.util.*; // for Float, Integer, etc.
import com.threerings.parlor.client.ParlorService;
import com.threerings.parlor.client.ParlorService_TableListener;
import com.threerings.parlor.data.TableConfig;
import com.threerings.parlor.game.data.GameConfig;
import com.threerings.presents.client.Client;
import com.threerings.presents.client.InvocationService;
import com.threerings.presents.data.InvocationMarshaller_ListenerMarshaller;
import com.threerings.util.Name;
/**
* Marshalls instances of the ParlorService_TableMarshaller interface.
*/
public class ParlorMarshaller_TableMarshaller
extends InvocationMarshaller_ListenerMarshaller
{
/** The method id used to dispatch {@link #tableCreated}
* responses. */
/** The method id used to dispatch {@link #tableCreated} responses. */
public static const TABLE_CREATED :int = 1;
// documentation inherited
// from InvocationMarshaller_ListenerMarshaller
override public function dispatchResponse (methodId :int, args :Array) :void
{
switch (methodId) {