Added the ManagerCaller that was added a while back on the Java side.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4385 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2006-09-27 23:54:40 +00:00
parent 0650d58006
commit f544a76b62
2 changed files with 39 additions and 0 deletions
@@ -0,0 +1,24 @@
//
// $Id$
package com.threerings.crowd.data {
public class ManagerCaller
{
public function ManagerCaller (plobj :PlaceObject)
{
_plobj = plobj;
}
/**
* Called to call a method on the manager.
*/
public function invoke (method :String, ... args) :void
{
_plobj.postMessage(method, args);
}
/** The place object we're thingy-ing for. */
protected var _plobj :PlaceObject;
}
}
@@ -54,6 +54,11 @@ public class PlaceObject extends DObject
public static const SPEAK_SERVICE :String = "speakService";
// AUTO-GENERATED: FIELDS END
/**
* Allows the client to call methods on the manager.
*/
public var manager :ManagerCaller;
/**
* Tracks the oid of the body objects of all of the occupants of this
* place.
@@ -76,6 +81,16 @@ public class PlaceObject extends DObject
/** Used to generate speak requests on this place object. */
public var speakService :SpeakMarshaller;
/**
* We need a constructor here in actionscript to set up the
* ManagerCaller.
*/
public function PlaceObject ()
{
super();
manager = new ManagerCaller(this);
}
/**
* Looks up a user's occupant info by name.
*