LIBOMV-727 Added an overload in GridProxyLoader SayToUser

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3170 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
Latif Khalifa
2009-10-24 08:57:03 +00:00
parent 8e3d1bb711
commit 4868f1df73

View File

@@ -212,10 +212,21 @@ namespace GridProxy
/// </summary>
/// <param name="message">A string containing the message to send</param>
public void SayToUser(string message)
{
SayToUser("GridProxy", message);
}
/// <summary>
/// Send a message to the viewer
/// </summary>
/// <param name="fromName">A string containing text indicating the origin of the message</param>
/// <param name="message">A string containing the message to send</param>
public void SayToUser(string fromName, string message)
{
ChatFromSimulatorPacket packet = new ChatFromSimulatorPacket();
packet.ChatData.FromName = Utils.StringToBytes("GridProxy");
packet.ChatData.SourceID = UUID.Random();
packet.ChatData.FromName = Utils.StringToBytes(fromName);
packet.ChatData.OwnerID = agentID;
packet.ChatData.SourceType = (byte)2;
packet.ChatData.ChatType = (byte)1;