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:
@@ -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";
|
public static const SPEAK_SERVICE :String = "speakService";
|
||||||
// AUTO-GENERATED: FIELDS END
|
// 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
|
* Tracks the oid of the body objects of all of the occupants of this
|
||||||
* place.
|
* place.
|
||||||
@@ -76,6 +81,16 @@ public class PlaceObject extends DObject
|
|||||||
/** Used to generate speak requests on this place object. */
|
/** Used to generate speak requests on this place object. */
|
||||||
public var speakService :SpeakMarshaller;
|
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.
|
* Looks up a user's occupant info by name.
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user