summaryrefslogtreecommitdiff
path: root/indra/newview/llenvironment.h
diff options
context:
space:
mode:
authorRider Linden <rider@lindenlab.com>2018-01-08 15:10:25 -0800
committerRider Linden <rider@lindenlab.com>2018-01-08 15:10:25 -0800
commit8211f57205f0008d8ffb9bfcd465ca26d906e19c (patch)
treed5ab9820e70d6828220841141abad38c548759ba /indra/newview/llenvironment.h
parent1df10afa2a7802763330475e1a90547c3cff7c06 (diff)
MAINT-7699: Deliver new settings to viewer via cap
Diffstat (limited to 'indra/newview/llenvironment.h')
-rw-r--r--indra/newview/llenvironment.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/indra/newview/llenvironment.h b/indra/newview/llenvironment.h
index 4d3d1f6a57..9e9c05b194 100644
--- a/indra/newview/llenvironment.h
+++ b/indra/newview/llenvironment.h
@@ -181,6 +181,10 @@ public:
inline LLVector4 getClampedLightDirection() const { return LLVector4(mCurrentSky->getClampedLightDirection(), 0.0f); }
inline LLVector4 getRotatedLight() const { return mRotatedLight; }
+ inline S64Seconds getDayLength() const { return mDayLength; }
+ void setDayLength(S64Seconds seconds);
+ inline S64Seconds getDayOffset() const { return mDayOffset; }
+ void setDayOffset(S64Seconds seconds);
//-------------------------------------------
connection_t setSkyListChange(const change_signal_t::slot_type& cb);
connection_t setWaterListChange(const change_signal_t::slot_type& cb);
@@ -190,6 +194,13 @@ public:
void onLegacyRegionSettings(LLSD data);
+ void requestRegion();
+ void updateRegion(LLSettingsDay::ptr_t &pday, S32 day_length, S32 day_offset);
+ void resetRegion();
+ void requestParcel(const LLUUID &parcel_id);
+ void updateParcel(const LLUUID &parcel_id, LLSettingsDay::ptr_t &pday, S32 day_length, S32 day_offset);
+ void resetParcel(const LLUUID &parcel_id);
+
protected:
virtual void initSingleton();
@@ -254,6 +265,9 @@ private:
change_signal_t mWaterListChange;
change_signal_t mDayCycleListChange;
+ S64Seconds mDayLength;
+ S64Seconds mDayOffset;
+
void onSkyTransitionDone(const LLSettingsBlender::ptr_t &blender);
void onWaterTransitionDone(const LLSettingsBlender::ptr_t &blender);
@@ -278,6 +292,12 @@ private:
void onRegionChange();
+ void coroRequestEnvironment(LLUUID parcel_id);
+ void coroUpdateEnvironment(LLUUID parcel_id, LLSettingsDay::ptr_t pday, S32 day_length, S32 day_offset);
+ void coroResetEnvironment(LLUUID parcel_id);
+
+ void applyEnvironment(LLSD environment);
+
//=========================================================================
void legacyLoadAllPresets();
LLSD legacyLoadPreset(const std::string& path);