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

@@ -37,6 +37,9 @@ namespace OpenSim.Region.Framework.Interfaces
RegionLightShareData ToLightShare();
byte[] GetDefaultAssetData(int type);
void WindlightRefresh(int interpolate, bool notforparcel = true);
void WindlightRefresh(IScenePresence sp, int interpolate);
ViewerEnvironment GetRegionEnvironment();
float GetRegionDayFractionTime();
int GetRegionDayLength();

View File

@@ -83,6 +83,31 @@ namespace OpenSim.Region.Framework.Scenes
// m_log.DebugFormat("[SCENE PRESENCE]: Destructor called on {0}", Name);
// }
public int EnvironmentVersion = -1;
private ViewerEnvironment m_environment;
public ViewerEnvironment Environment
{
get
{
return m_environment;
}
set
{
m_environment = value;
if (value == null)
EnvironmentVersion = -1;
else
{
if(EnvironmentVersion <= 0)
EnvironmentVersion = 0x7000000;
else
++EnvironmentVersion;
m_environment.version = EnvironmentVersion;
}
}
}
public void TriggerScenePresenceUpdated()
{
if (m_scene != null)