mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 20:55:43 +08:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user