From 4e94989106dd9afb68b308f76ec4f46f46e04195 Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Sat, 8 Nov 2008 19:29:35 +0000 Subject: * Added IClientChat to IClientCore * Updated LLClientView * Removed defunct SendChatMessage(bytes[]...) method, see http://opensimulator.org/wiki/OpenSim_0.6_IClientAPI#Porting_Guide --- OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) (limited to 'OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs') diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs index 2a0f97d..e5a4101 100644 --- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs +++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs @@ -52,7 +52,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP /// Handles new client connections /// Constructor takes a single Packet and authenticates everything /// - public class LLClientView : IClientAPI, IClientCore, IClientIM + public class LLClientView : IClientAPI, IClientCore, IClientIM, IClientChat { private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); @@ -1046,26 +1046,12 @@ namespace OpenSim.Region.ClientStack.LindenUDP OutPacket(mov, ThrottleOutPacketType.Unknown); } - /// - /// - /// - /// - /// - /// - /// - /// public void SendChatMessage(string message, byte type, Vector3 fromPos, string fromName, UUID fromAgentID, byte source, byte audible) { - SendChatMessage(Utils.StringToBytes(message), type, fromPos, fromName, fromAgentID, source, audible); - } - - public void SendChatMessage(byte[] message, byte type, Vector3 fromPos, string fromName, - UUID fromAgentID, byte source, byte audible) - { ChatFromSimulatorPacket reply = (ChatFromSimulatorPacket)PacketPool.Instance.GetPacket(PacketType.ChatFromSimulator); reply.ChatData.Audible = audible; - reply.ChatData.Message = message; + reply.ChatData.Message = Utils.StringToBytes(message); reply.ChatData.ChatType = type; reply.ChatData.SourceType = source; reply.ChatData.Position = fromPos; @@ -7678,6 +7664,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP protected virtual void RegisterInterfaces() { RegisterInterface(this); + RegisterInterface(this); } public bool TryGet(out T iface) -- cgit v1.1