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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user