From 05a8a19a129379bb1b999ca65cd5f8caad74118d Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Fri, 8 Feb 2002 23:54:25 +0000 Subject: [PATCH] New gendobj added the set() method. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@972 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/java/com/threerings/crowd/data/PlaceObject.java | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/java/com/threerings/crowd/data/PlaceObject.java b/src/java/com/threerings/crowd/data/PlaceObject.java index 640f2a2e1..29845b793 100644 --- a/src/java/com/threerings/crowd/data/PlaceObject.java +++ b/src/java/com/threerings/crowd/data/PlaceObject.java @@ -1,5 +1,5 @@ // -// $Id: PlaceObject.java,v 1.1 2002/02/08 23:10:36 mdb Exp $ +// $Id: PlaceObject.java,v 1.2 2002/02/08 23:54:25 mdb Exp $ package com.threerings.crowd.data; @@ -70,4 +70,15 @@ public class PlaceObject extends DObject { requestElementUpdate(OCCUPANT_INFO, elem); } + + /** + * Requests that the occupantInfo field be set to the + * specified value. Generally one only adds, updates and removes + * elements of a distributed set, but certain situations call for a + * complete replacement of the set value. + */ + public void setOccupantInfo (DSet value) + { + requestAttributeChange(OCCUPANT_INFO, value); + } }