Register our cluster chat objects with their own happy chat message type.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@809 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: SpotCodes.java,v 1.3 2001/12/16 21:02:18 mdb Exp $
|
||||
// $Id: SpotCodes.java,v 1.4 2001/12/16 21:47:37 mdb Exp $
|
||||
|
||||
package com.threerings.whirled.spot.client;
|
||||
|
||||
@@ -43,4 +43,9 @@ public interface SpotCodes extends ChatCodes, SceneCodes
|
||||
|
||||
/** The message identifier for a cluster speak request. */
|
||||
public static final String CLUSTER_SPEAK_REQUEST = "ClusterSpeak";
|
||||
|
||||
/** The chat type code with which we register our cluster auxilliary
|
||||
* chat objects. Chat display implementations should interpret chat
|
||||
* messages with this type accordingly. */
|
||||
public static final String CLUSTER_CHAT_TYPE = "clusterChat";
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: SpotSceneDirector.java,v 1.6 2001/12/16 21:23:27 mdb Exp $
|
||||
// $Id: SpotSceneDirector.java,v 1.7 2001/12/16 21:47:37 mdb Exp $
|
||||
|
||||
package com.threerings.whirled.spot.client;
|
||||
|
||||
@@ -275,7 +275,7 @@ public class SpotSceneDirector
|
||||
// we've got our cluster chat object, configure the chat director
|
||||
// with it and keep a reference ourselves
|
||||
if (_chatdir != null) {
|
||||
_chatdir.addAuxilliarySource(object);
|
||||
_chatdir.addAuxilliarySource(CLUSTER_CHAT_TYPE, object);
|
||||
_clobj = object;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user