Add chat support by default into the Whirled scene manager. This will

probably come out again because it should really be added by the manager
used by the target application. They may not want exactly the same kind of
chat support.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@307 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2001-08-22 00:09:52 +00:00
parent 0d1a4ba1db
commit 90fe366aff
@@ -1,9 +1,12 @@
//
// $Id: SceneManager.java,v 1.2 2001/08/21 01:07:19 mdb Exp $
// $Id: SceneManager.java,v 1.3 2001/08/22 00:09:52 mdb Exp $
package com.threerings.whirled.server;
import com.threerings.cocktail.party.chat.ChatMessageHandler;
import com.threerings.cocktail.party.chat.ChatService;
import com.threerings.cocktail.party.server.PlaceManager;
import com.threerings.whirled.data.Scene;
public class SceneManager extends PlaceManager
@@ -32,6 +35,11 @@ public class SceneManager extends PlaceManager
{
super.didStartup();
_screg.sceneManagerDidInit(this);
// register a chat message handler because we want to support
// chatting
MessageHandler handler = new ChatMessageHandler();
registerMessageHandler(ChatService.SPEAK_REQUEST, handler);
}
protected void toString (StringBuffer buf)