From 2f6199cf0604563219e62838e718b3046d7e0fe3 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Sun, 16 Dec 2001 21:47:37 +0000 Subject: [PATCH] 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 --- src/java/com/threerings/whirled/spot/client/SpotCodes.java | 7 ++++++- .../threerings/whirled/spot/client/SpotSceneDirector.java | 4 ++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/java/com/threerings/whirled/spot/client/SpotCodes.java b/src/java/com/threerings/whirled/spot/client/SpotCodes.java index 0b600e143..c61e7fc56 100644 --- a/src/java/com/threerings/whirled/spot/client/SpotCodes.java +++ b/src/java/com/threerings/whirled/spot/client/SpotCodes.java @@ -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"; } diff --git a/src/java/com/threerings/whirled/spot/client/SpotSceneDirector.java b/src/java/com/threerings/whirled/spot/client/SpotSceneDirector.java index 8d15a4fe5..8b5428826 100644 --- a/src/java/com/threerings/whirled/spot/client/SpotSceneDirector.java +++ b/src/java/com/threerings/whirled/spot/client/SpotSceneDirector.java @@ -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; } }