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:
@@ -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();
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user