Added support for initiating a place/scene/zone transition from the

server; chat director no longer needs to wait until we're logged on to
register itself with the invocation director.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1393 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2002-05-26 02:24:46 +00:00
parent 8a7a046df8
commit 97197d49cc
10 changed files with 251 additions and 73 deletions
@@ -1,5 +1,5 @@
//
// $Id: ChatDirector.java,v 1.21 2002/05/22 21:44:54 shaper Exp $
// $Id: ChatDirector.java,v 1.22 2002/05/26 02:24:45 mdb Exp $
package com.threerings.crowd.chat;
@@ -34,15 +34,9 @@ public class ChatDirector
// keep the context around
_ctx = ctx;
// register a client observer that will register us as the chat
// receiver when we log on
_ctx.getClient().addClientObserver(new ClientAdapter() {
public void clientDidLogon (Client client)
{
client.getInvocationDirector().registerReceiver(
MODULE_NAME, ChatDirector.this);
}
});
// register for chat notifications
_ctx.getClient().getInvocationDirector().registerReceiver(
MODULE_NAME, this);
// register ourselves as a location observer
_ctx.getLocationDirector().addLocationObserver(this);