mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
* Implements Scene.SimChat(string,...) rather than byte[]. We should probably mark byte[] as obsolete.
* Implements SOPObject.Say for MRM. (Note, not IObject yet)
This commit is contained in:
@@ -84,6 +84,16 @@ namespace OpenSim.Region.Framework.Scenes
|
||||
SimChat(message, type, channel, fromPos, fromName, fromID, fromAgent, false);
|
||||
}
|
||||
|
||||
public void SimChat(string message, ChatTypeEnum type, Vector3 fromPos, string fromName, UUID fromID, bool fromAgent)
|
||||
{
|
||||
SimChat(Utils.StringToBytes(message), type, 0, fromPos, fromName, fromID, fromAgent);
|
||||
}
|
||||
|
||||
public void SimChat(string message, string fromName)
|
||||
{
|
||||
SimChat(message, ChatTypeEnum.Broadcast, Vector3.Zero, fromName, UUID.Zero, false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
|
||||
@@ -215,6 +215,17 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
|
||||
set { throw new System.NotImplementedException(); }
|
||||
}
|
||||
|
||||
#region Public Functions
|
||||
|
||||
public void Say(string msg)
|
||||
{
|
||||
SceneObjectPart sop = GetSOP();
|
||||
|
||||
m_rootScene.SimChat(msg, ChatTypeEnum.Say, sop.AbsolutePosition, sop.Name, sop.UUID, false);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
#region Supporting Functions
|
||||
|
||||
|
||||
Reference in New Issue
Block a user