aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llviewerregion.h
diff options
context:
space:
mode:
authorJacek Antonelli2009-04-30 13:04:20 -0500
committerJacek Antonelli2009-04-30 13:07:16 -0500
commitca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e (patch)
tree8348301d0ac44a524f1819b777686bf086907d76 /linden/indra/newview/llviewerregion.h
parentSecond Life viewer sources 1.22.11 (diff)
downloadmeta-impy-ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e.zip
meta-impy-ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e.tar.gz
meta-impy-ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e.tar.bz2
meta-impy-ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e.tar.xz
Second Life viewer sources 1.23.0-RC
Diffstat (limited to 'linden/indra/newview/llviewerregion.h')
-rw-r--r--linden/indra/newview/llviewerregion.h27
1 files changed, 21 insertions, 6 deletions
diff --git a/linden/indra/newview/llviewerregion.h b/linden/indra/newview/llviewerregion.h
index 58ebf60..b0a98a9 100644
--- a/linden/indra/newview/llviewerregion.h
+++ b/linden/indra/newview/llviewerregion.h
@@ -17,7 +17,8 @@
17 * There are special exceptions to the terms and conditions of the GPL as 17 * There are special exceptions to the terms and conditions of the GPL as
18 * it is applied to this Source Code. View the full text of the exception 18 * it is applied to this Source Code. View the full text of the exception
19 * in the file doc/FLOSS-exception.txt in this software distribution, or 19 * in the file doc/FLOSS-exception.txt in this software distribution, or
20 * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception 20 * online at
21 * http://secondlifegrid.net/programs/open_source/licensing/flossexception
21 * 22 *
22 * By copying, modifying or distributing this software, you acknowledge 23 * By copying, modifying or distributing this software, you acknowledge
23 * that you have read and understood your obligations described above, 24 * that you have read and understood your obligations described above,
@@ -181,18 +182,24 @@ public:
181 void setSimAccess(U8 sim_access) { mSimAccess = sim_access; } 182 void setSimAccess(U8 sim_access) { mSimAccess = sim_access; }
182 U8 getSimAccess() const { return mSimAccess; } 183 U8 getSimAccess() const { return mSimAccess; }
183 const std::string getSimAccessString() const; 184 const std::string getSimAccessString() const;
185
186 // Homestead-related getters; there are no setters as nobody should be
187 // setting them other than the individual message handler which is a member
188 S32 getSimClassID() const { return mClassID; }
189 S32 getSimCPURatio() const { return mCPURatio; }
190 const std::string& getSimColoName() const { return mColoName; }
191 const std::string& getSimProductSKU() const { return mProductSKU; }
192 const std::string& getSimProductName() const { return mProductName; }
184 193
185 // Returns "Sandbox", "Expensive", etc. 194 // Returns "Sandbox", "Expensive", etc.
186 static std::string regionFlagsToString(U32 flags); 195 static std::string regionFlagsToString(U32 flags);
187 196
188 // Returns "Mature", "PG", etc. 197 // Returns translated version of "Mature", "PG", "Adult", etc.
189 static std::string accessToString(U8 sim_access); 198 static std::string accessToString(U8 sim_access);
190 199
191 static U8 stringToAccess(const std::string& access_str); 200 // Returns "M", "PG", "A" etc.
192
193 // Returns "M", "PG", etc.
194 static std::string accessToShortString(U8 sim_access); 201 static std::string accessToShortString(U8 sim_access);
195 202
196 // helper function which just makes sure all interested parties 203 // helper function which just makes sure all interested parties
197 // can process the message. 204 // can process the message.
198 static void processRegionInfo(LLMessageSystem* msg, void**); 205 static void processRegionInfo(LLMessageSystem* msg, void**);
@@ -356,6 +363,14 @@ private:
356 U32 mMaxTasks; // max prim count 363 U32 mMaxTasks; // max prim count
357 F32 mCameraDistanceSquared; // updated once per frame 364 F32 mCameraDistanceSquared; // updated once per frame
358 365
366 // Information for Homestead / CR-53
367 S32 mClassID;
368 S32 mCPURatio;
369 std::string mColoName;
370 std::string mProductSKU;
371 std::string mProductName;
372
373
359 // Maps local ids to cache entries. 374 // Maps local ids to cache entries.
360 // Regions can have order 10,000 objects, so assume 375 // Regions can have order 10,000 objects, so assume
361 // a structure of size 2^14 = 16,000 376 // a structure of size 2^14 = 16,000