From 0ce79473fb3dd45d24249d31d9174a823e6e04b6 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Sun, 26 May 2002 02:35:02 +0000 Subject: [PATCH] Whoops, forgot to register the scene and zone directors as invocation receivers. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1395 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- .../com/threerings/whirled/client/SceneDirector.java | 10 ++++++++-- .../threerings/whirled/zone/client/ZoneDirector.java | 9 ++++++++- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/src/java/com/threerings/whirled/client/SceneDirector.java b/src/java/com/threerings/whirled/client/SceneDirector.java index e06441e51..37679a96f 100644 --- a/src/java/com/threerings/whirled/client/SceneDirector.java +++ b/src/java/com/threerings/whirled/client/SceneDirector.java @@ -1,5 +1,5 @@ // -// $Id: SceneDirector.java,v 1.14 2002/05/26 02:24:46 mdb Exp $ +// $Id: SceneDirector.java,v 1.15 2002/05/26 02:35:02 mdb Exp $ package com.threerings.whirled.client; @@ -7,6 +7,7 @@ import java.io.IOException; import com.samskivert.util.HashIntMap; import com.threerings.presents.client.Client; +import com.threerings.presents.client.InvocationReceiver; import com.threerings.presents.client.SessionObserver; import com.threerings.presents.dobj.DObject; import com.threerings.presents.dobj.ObjectAccessException; @@ -36,7 +37,8 @@ import com.threerings.whirled.util.WhirledContext; * LocationObserver#locationChangeFailed}. */ public class SceneDirector - implements SceneCodes, SessionObserver, LocationDirector.FailureHandler + implements SceneCodes, SessionObserver, LocationDirector.FailureHandler, + InvocationReceiver { /** * Creates a new scene director with the specified context. @@ -65,6 +67,10 @@ public class SceneDirector // register ourselves as a client observer so that we can clear // out our scene when the client logs off _ctx.getClient().addClientObserver(this); + + // register for scene notifications + _ctx.getClient().getInvocationDirector().registerReceiver( + MODULE_NAME, this); } /** diff --git a/src/java/com/threerings/whirled/zone/client/ZoneDirector.java b/src/java/com/threerings/whirled/zone/client/ZoneDirector.java index 81dcbb425..95a503241 100644 --- a/src/java/com/threerings/whirled/zone/client/ZoneDirector.java +++ b/src/java/com/threerings/whirled/zone/client/ZoneDirector.java @@ -1,10 +1,11 @@ // -// $Id: ZoneDirector.java,v 1.5 2002/05/26 02:24:46 mdb Exp $ +// $Id: ZoneDirector.java,v 1.6 2002/05/26 02:35:02 mdb Exp $ package com.threerings.whirled.zone.client; import java.util.ArrayList; +import com.threerings.presents.client.InvocationReceiver; import com.threerings.crowd.data.PlaceConfig; import com.threerings.whirled.client.SceneDirector; @@ -12,6 +13,7 @@ import com.threerings.whirled.data.SceneModel; import com.threerings.whirled.util.WhirledContext; import com.threerings.whirled.zone.Log; +import com.threerings.whirled.zone.data.ZoneCodes; import com.threerings.whirled.zone.data.ZoneSummary; /** @@ -24,6 +26,7 @@ import com.threerings.whirled.zone.data.ZoneSummary; * generate an overview map or similar. */ public class ZoneDirector + implements InvocationReceiver, ZoneCodes { /** * Constructs a zone director with the supplied context, and delegate @@ -35,6 +38,10 @@ public class ZoneDirector { _ctx = ctx; _scdir = scdir; + + // register for zone notifications + _ctx.getClient().getInvocationDirector().registerReceiver( + MODULE_NAME, this); } /**