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:
@@ -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;
|
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.cocktail.party.server.PlaceManager;
|
||||||
|
|
||||||
import com.threerings.whirled.data.Scene;
|
import com.threerings.whirled.data.Scene;
|
||||||
|
|
||||||
public class SceneManager extends PlaceManager
|
public class SceneManager extends PlaceManager
|
||||||
@@ -32,6 +35,11 @@ public class SceneManager extends PlaceManager
|
|||||||
{
|
{
|
||||||
super.didStartup();
|
super.didStartup();
|
||||||
_screg.sceneManagerDidInit(this);
|
_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)
|
protected void toString (StringBuffer buf)
|
||||||
|
|||||||
Reference in New Issue
Block a user