add LSL_Integer osReplaceAgentEnvironment(LSL_Key agentkey, LSL_Integer transition, LSL_String environment). note this is a hack, we cant do the ll* one

This commit is contained in:
UbitUmarov
2020-06-19 19:55:40 +01:00
parent d322248fd1
commit e3ecf0ddbe
7 changed files with 174 additions and 18 deletions

View File

@@ -1179,18 +1179,19 @@ namespace OpenSim.Framework
IsLegacy = false;
}
public void CycleFromOSD(OSD osd)
public bool CycleFromOSD(OSD osd)
{
OSDMap map = osd as OSDMap;
if (map == null)
return;
return false;
if(!map.TryGetValue("type", out OSD tmp))
return;
return false;
string type = tmp.AsString();
if(type != "daycycle")
return;
return false;
Cycle = new DayCycle();
Cycle.FromOSD(map);
return true;
}
public OSD ToOSD()