Merge branch 'master' of melanie@opensimulator.org:/var/git/opensim
commit
f2d2073f2b
|
@ -232,7 +232,26 @@ namespace OpenSim.Framework.Communications.Cache
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public Dictionary<UUID, InventoryFolderImpl> RequestSelfAndDescendentFolders()
|
public Dictionary<UUID, InventoryFolderImpl> RequestSelfAndDescendentFolders()
|
||||||
{
|
{
|
||||||
return libraryFolders;
|
Dictionary<UUID, InventoryFolderImpl> fs = new Dictionary<UUID, InventoryFolderImpl>();
|
||||||
|
fs.Add(ID, this);
|
||||||
|
List<InventoryFolderImpl> fis = TraverseFolder(this);
|
||||||
|
foreach (InventoryFolderImpl f in fis)
|
||||||
|
{
|
||||||
|
fs.Add(f.ID, f);
|
||||||
|
}
|
||||||
|
//return libraryFolders;
|
||||||
|
return fs;
|
||||||
|
}
|
||||||
|
|
||||||
|
private List<InventoryFolderImpl> TraverseFolder(InventoryFolderImpl node)
|
||||||
|
{
|
||||||
|
List<InventoryFolderImpl> folders = node.RequestListOfFolderImpls();
|
||||||
|
List<InventoryFolderImpl> subs = new List<InventoryFolderImpl>();
|
||||||
|
foreach (InventoryFolderImpl f in folders)
|
||||||
|
subs.AddRange(TraverseFolder(f));
|
||||||
|
|
||||||
|
folders.AddRange(subs);
|
||||||
|
return folders;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -322,15 +322,15 @@ namespace OpenSim.Framework.Servers.HttpServer
|
||||||
HandleRequest(req, resp);
|
HandleRequest(req, resp);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void ConvertIHttpClientContextToOSHttp(object stateinfo)
|
// public void ConvertIHttpClientContextToOSHttp(object stateinfo)
|
||||||
{
|
// {
|
||||||
HttpServerContextObj objstate = (HttpServerContextObj)stateinfo;
|
// HttpServerContextObj objstate = (HttpServerContextObj)stateinfo;
|
||||||
|
|
||||||
OSHttpRequest request = objstate.oreq;
|
// OSHttpRequest request = objstate.oreq;
|
||||||
OSHttpResponse resp = objstate.oresp;
|
// OSHttpResponse resp = objstate.oresp;
|
||||||
|
|
||||||
HandleRequest(request,resp);
|
// HandleRequest(request,resp);
|
||||||
}
|
// }
|
||||||
|
|
||||||
public virtual void HandleRequest(OSHttpRequest request, OSHttpResponse response)
|
public virtual void HandleRequest(OSHttpRequest request, OSHttpResponse response)
|
||||||
{
|
{
|
||||||
|
|
|
@ -175,6 +175,12 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver
|
||||||
return nodesLoaded;
|
return nodesLoaded;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void Close()
|
||||||
|
{
|
||||||
|
if (m_loadStream != null)
|
||||||
|
m_loadStream.Close();
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Replicate the inventory paths in the archive to the user's inventory as necessary.
|
/// Replicate the inventory paths in the archive to the user's inventory as necessary.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -180,6 +180,8 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
|
||||||
/// <param name="msg">The message to send to the user</param>
|
/// <param name="msg">The message to send to the user</param>
|
||||||
void Say(string msg);
|
void Say(string msg);
|
||||||
|
|
||||||
|
void Say(string msg,int channel);
|
||||||
|
|
||||||
//// <value>
|
//// <value>
|
||||||
/// Grants access to the objects inventory
|
/// Grants access to the objects inventory
|
||||||
/// </value>
|
/// </value>
|
||||||
|
|
|
@ -41,6 +41,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
|
||||||
{
|
{
|
||||||
public string Text;
|
public string Text;
|
||||||
public IEntity Sender;
|
public IEntity Sender;
|
||||||
|
public int Channel;
|
||||||
}
|
}
|
||||||
|
|
||||||
public delegate void OnChatDelegate(IWorld sender, ChatEventArgs e);
|
public delegate void OnChatDelegate(IWorld sender, ChatEventArgs e);
|
||||||
|
|
|
@ -384,6 +384,15 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
|
||||||
m_rootScene.SimChat(msg, ChatTypeEnum.Say, sop.AbsolutePosition, sop.Name, sop.UUID, false);
|
m_rootScene.SimChat(msg, ChatTypeEnum.Say, sop.AbsolutePosition, sop.Name, sop.UUID, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void Say(string msg,int channel)
|
||||||
|
{
|
||||||
|
if (!CanEdit())
|
||||||
|
return;
|
||||||
|
|
||||||
|
SceneObjectPart sop = GetSOP();
|
||||||
|
m_rootScene.SimChat(Utils.StringToBytes(msg), ChatTypeEnum.Say,channel, sop.AbsolutePosition, sop.Name, sop.UUID, false);
|
||||||
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -148,6 +148,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
|
||||||
ChatEventArgs e = new ChatEventArgs();
|
ChatEventArgs e = new ChatEventArgs();
|
||||||
e.Sender = new SOPObject(m_internalScene, ((SceneObjectPart) chat.SenderObject).LocalId, m_security);
|
e.Sender = new SOPObject(m_internalScene, ((SceneObjectPart) chat.SenderObject).LocalId, m_security);
|
||||||
e.Text = chat.Message;
|
e.Text = chat.Message;
|
||||||
|
e.Channel = chat.Channel;
|
||||||
|
|
||||||
_OnChat(this, e);
|
_OnChat(this, e);
|
||||||
return;
|
return;
|
||||||
|
@ -158,6 +159,7 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
|
||||||
ChatEventArgs e = new ChatEventArgs();
|
ChatEventArgs e = new ChatEventArgs();
|
||||||
e.Sender = new SPAvatar(m_internalScene, chat.SenderUUID, m_security);
|
e.Sender = new SPAvatar(m_internalScene, chat.SenderUUID, m_security);
|
||||||
e.Text = chat.Message;
|
e.Text = chat.Message;
|
||||||
|
e.Channel = chat.Channel;
|
||||||
|
|
||||||
_OnChat(this, e);
|
_OnChat(this, e);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue