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
This commit is contained in:
Michael Bayne
2002-05-26 02:35:02 +00:00
parent d0e1722083
commit 0ce79473fb
2 changed files with 16 additions and 3 deletions
@@ -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);
}
/**
@@ -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);
}
/**