mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 11:57:03 +08:00
Agent gets there through the Gatekeeper, but still a few quirks to fix.
This commit is contained in:
@@ -52,6 +52,8 @@ namespace OpenSim.Server.Handlers.Simulation
|
||||
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||
private ISimulationService m_SimulationService;
|
||||
|
||||
public ObjectHandler() { }
|
||||
|
||||
public ObjectHandler(ISimulationService sim)
|
||||
{
|
||||
m_SimulationService = sim;
|
||||
@@ -110,7 +112,7 @@ namespace OpenSim.Server.Handlers.Simulation
|
||||
|
||||
}
|
||||
|
||||
protected virtual void DoObjectPost(Hashtable request, Hashtable responsedata, UUID regionID)
|
||||
protected void DoObjectPost(Hashtable request, Hashtable responsedata, UUID regionID)
|
||||
{
|
||||
OSDMap args = Utils.GetOSDMap((string)request["body"]);
|
||||
if (args == null)
|
||||
@@ -181,7 +183,7 @@ namespace OpenSim.Server.Handlers.Simulation
|
||||
try
|
||||
{
|
||||
// This is the meaning of POST object
|
||||
result = m_SimulationService.CreateObject(destination, sog, false);
|
||||
result = CreateObject(destination, sog);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
@@ -192,6 +194,12 @@ namespace OpenSim.Server.Handlers.Simulation
|
||||
responsedata["str_response_string"] = result.ToString();
|
||||
}
|
||||
|
||||
// subclasses can override this
|
||||
protected virtual bool CreateObject(GridRegion destination, ISceneObject sog)
|
||||
{
|
||||
return m_SimulationService.CreateObject(destination, sog, false);
|
||||
}
|
||||
|
||||
protected virtual void DoObjectPut(Hashtable request, Hashtable responsedata, UUID regionID)
|
||||
{
|
||||
OSDMap args = Utils.GetOSDMap((string)request["body"]);
|
||||
|
||||
Reference in New Issue
Block a user