More plumbing on agent states
parent
e1a455eae5
commit
17e920aacd
|
@ -174,6 +174,12 @@ namespace OpenSim.Server.Handlers.Simulation
|
|||
resp["reason"] = OSD.FromString(reason);
|
||||
resp["version"] = OSD.FromString(version);
|
||||
|
||||
OSDArray featuresWanted = new OSDArray();
|
||||
foreach (UUID feature in features)
|
||||
featuresWanted.Add(OSD.FromString(feature.ToString()));
|
||||
|
||||
resp["features"] = featuresWanted;
|
||||
|
||||
// We must preserve defaults here, otherwise a false "success" will not be put into the JSON map!
|
||||
responsedata["str_response_string"] = OSDParser.SerializeJsonString(resp, true);
|
||||
|
||||
|
|
|
@ -356,6 +356,17 @@ namespace OpenSim.Services.Connectors.Simulation
|
|||
return false;
|
||||
}
|
||||
|
||||
|
||||
featuresAvailable.Clear();
|
||||
|
||||
if (result.ContainsKey("features"))
|
||||
{
|
||||
OSDArray array = (OSDArray)result["features"];
|
||||
|
||||
foreach (OSD o in array)
|
||||
featuresAvailable.Add(new UUID(o.AsString()));
|
||||
}
|
||||
|
||||
return success;
|
||||
}
|
||||
catch (Exception e)
|
||||
|
|
Loading…
Reference in New Issue