mirror of
https://github.com/opensim/opensim.git
synced 2026-08-10 11:33:28 +08:00
Merge branch 'master' into careminster
Conflicts: OpenSim/Data/MySQL/MySQLSimulationData.cs OpenSim/Data/MySQL/Resources/RegionStore.migrations OpenSim/Region/ClientStack/Linden/Caps/WebFetchInvDescModule.cs OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs OpenSim/Region/CoreModules/Avatar/Inventory/Transfer/InventoryTransferModule.cs OpenSim/Region/CoreModules/World/LightShare/LightShareModule.cs OpenSim/Region/Framework/Scenes/Scene.cs OpenSim/Region/Framework/Scenes/ScenePresence.cs OpenSim/Region/Framework/Scenes/Tests/ScenePresenceCapabilityTests.cs OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
This commit is contained in:
@@ -86,24 +86,26 @@ namespace OpenSim.Framework
|
||||
event restart OnRestart;
|
||||
|
||||
/// <summary>
|
||||
/// Add a new client and create a presence for it. All clients except initial login clients will starts off as a child agent
|
||||
/// Add a new agent with an attached client. All agents except initial login clients will starts off as a child agent
|
||||
/// - the later agent crossing will promote it to a root agent.
|
||||
/// </summary>
|
||||
/// <param name="client"></param>
|
||||
/// <param name="type">The type of agent to add.</param>
|
||||
/// <returns>
|
||||
/// The scene agent if the new client was added or if an agent that already existed.</returns>
|
||||
ISceneAgent AddNewClient(IClientAPI client, PresenceType type);
|
||||
ISceneAgent AddNewAgent(IClientAPI client, PresenceType type);
|
||||
|
||||
/// <summary>
|
||||
/// Remove the given client from the scene.
|
||||
/// Tell a single agent to disconnect from the region.
|
||||
/// </summary>
|
||||
/// <param name="agentID"></param>
|
||||
/// <param name="closeChildAgents">Close the neighbour child agents associated with this client.</param>
|
||||
void RemoveClient(UUID agentID, bool closeChildAgents);
|
||||
/// <param name="force">
|
||||
/// Force the agent to close even if it might be in the middle of some other operation. You do not want to
|
||||
/// force unless you are absolutely sure that the agent is dead and a normal close is not working.
|
||||
/// </param>
|
||||
bool CloseAgent(UUID agentID, bool force);
|
||||
|
||||
void Restart();
|
||||
//RegionInfo OtherRegionUp(RegionInfo thisRegion);
|
||||
|
||||
string GetSimulatorVersion();
|
||||
|
||||
|
||||
@@ -105,6 +105,7 @@ namespace OpenSim.Framework
|
||||
private ushort _profileHollow;
|
||||
private Vector3 _scale;
|
||||
private byte _state;
|
||||
private byte _lastattach;
|
||||
private ProfileShape _profileShape;
|
||||
private HollowShape _hollowShape;
|
||||
|
||||
@@ -207,6 +208,7 @@ namespace OpenSim.Framework
|
||||
PCode = (byte)prim.PrimData.PCode;
|
||||
|
||||
State = prim.PrimData.State;
|
||||
LastAttachPoint = prim.PrimData.State;
|
||||
PathBegin = Primitive.PackBeginCut(prim.PrimData.PathBegin);
|
||||
PathEnd = Primitive.PackEndCut(prim.PrimData.PathEnd);
|
||||
PathScaleX = Primitive.PackPathScale(prim.PrimData.PathScaleX);
|
||||
@@ -583,6 +585,15 @@ namespace OpenSim.Framework
|
||||
}
|
||||
}
|
||||
|
||||
public byte LastAttachPoint {
|
||||
get {
|
||||
return _lastattach;
|
||||
}
|
||||
set {
|
||||
_lastattach = value;
|
||||
}
|
||||
}
|
||||
|
||||
public ProfileShape ProfileShape {
|
||||
get {
|
||||
return _profileShape;
|
||||
|
||||
@@ -200,7 +200,7 @@ namespace OpenSim.Framework
|
||||
set { m_ObjectBonus = value; }
|
||||
}
|
||||
|
||||
private int m_Maturity = 1;
|
||||
private int m_Maturity = 0;
|
||||
|
||||
public int Maturity
|
||||
{
|
||||
|
||||
@@ -1057,7 +1057,21 @@ namespace OpenSim.Framework.Servers.HttpServer
|
||||
}
|
||||
|
||||
response.ContentType = "text/xml";
|
||||
responseString = XmlRpcResponseSerializer.Singleton.Serialize(xmlRpcResponse);
|
||||
using (MemoryStream outs = new MemoryStream())
|
||||
{
|
||||
using (XmlTextWriter writer = new XmlTextWriter(outs, Encoding.UTF8))
|
||||
{
|
||||
writer.Formatting = Formatting.None;
|
||||
XmlRpcResponseSerializer.Singleton.Serialize(writer, xmlRpcResponse);
|
||||
writer.Flush();
|
||||
outs.Flush();
|
||||
outs.Position = 0;
|
||||
using (StreamReader sr = new StreamReader(outs))
|
||||
{
|
||||
responseString = sr.ReadToEnd();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user