Started work on invocation/receiver stuff, but jeez ActionScript is making

it a pain in the ass.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3893 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2006-02-27 21:56:39 +00:00
parent 72f33bbbc0
commit abd7f75ae9
6 changed files with 299 additions and 7 deletions
@@ -21,6 +21,8 @@
package com.threerings.presents.data {
import mx.utils.ObjectUtil;
import com.threerings.presents.dobj.DObject;
import com.threerings.presents.dobj.DSet;
@@ -35,6 +37,11 @@ import com.threerings.io.ObjectOutputStream;
*/
public class ClientObject extends DObject
{
// AUTO-GENERATED: FIELDS START
/** The field name of the <code>receivers</code> field. */
public static const RECEIVERS :String = "receivers";
// AUTO-GENERATED: FIELDS END
/** Used to publish all invocation service receivers registered on
* this client. */
public var receivers :DSet;
@@ -58,5 +65,14 @@ public class ClientObject extends DObject
super.readObject(ins);
receivers = (ins.readObject() as DSet);
}
// AUTO-GENERATED: METHODS START
public function setReceivers (value :DSet) :void
{
requestAttributeChange(RECEIVERS, value, this.receivers);
this.receivers = (value == null) ? null
: (ObjectUtil.copy(value) as DSet);
}
// AUTO-GENERATED: METHODS END
}
}