Hold the phone. I already wrote this code. Sheesh.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5573 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -167,21 +167,6 @@ public class PlaceRegistry
|
|||||||
return _pmgrs.values().iterator();
|
return _pmgrs.values().iterator();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Locates the {@link PlaceManager} that manages the place occupied by the supplied body,
|
|
||||||
* obtains the canonical {@link OccupantInfo} record for that body, runs your updater to effect
|
|
||||||
* any desired modifications to the occupant info record and then broadcasts the updates by
|
|
||||||
* calling {@link PlaceManager#updateOccupantInfo}.
|
|
||||||
*
|
|
||||||
* @return true if the update was sent, false if the supplied body is not currently in a place.
|
|
||||||
*/
|
|
||||||
public <T extends OccupantInfo> boolean updateOccupantInfo (
|
|
||||||
BodyObject body, PlaceManager.OccInfoUpdater<T> updater)
|
|
||||||
{
|
|
||||||
PlaceManager pmgr = getPlaceManager(body.getPlaceOid());
|
|
||||||
return (pmgr == null) ? false : pmgr.updateOccupantInfo(body.getOid(), updater);
|
|
||||||
}
|
|
||||||
|
|
||||||
// from interface ShutdownManager.Shutdowner
|
// from interface ShutdownManager.Shutdowner
|
||||||
public void shutdown ()
|
public void shutdown ()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user