diff options
author | Jacek Antonelli | 2008-08-15 23:45:42 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:42 -0500 |
commit | ce28e056c20bf2723f565bbf464b87781ec248a2 (patch) | |
tree | ef7b0501c4de4b631a916305cbc2a5fdc125e52d /linden/indra/llinventory/lleconomy.h | |
parent | Second Life viewer sources 1.19.1.4b (diff) | |
download | meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.zip meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.gz meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.bz2 meta-impy-ce28e056c20bf2723f565bbf464b87781ec248a2.tar.xz |
Second Life viewer sources 1.20.2
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llinventory/lleconomy.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/linden/indra/llinventory/lleconomy.h b/linden/indra/llinventory/lleconomy.h index c5caa42..dcc97b2 100644 --- a/linden/indra/llinventory/lleconomy.h +++ b/linden/indra/llinventory/lleconomy.h | |||
@@ -31,6 +31,8 @@ | |||
31 | #ifndef LL_LLECONOMY_H | 31 | #ifndef LL_LLECONOMY_H |
32 | #define LL_LLECONOMY_H | 32 | #define LL_LLECONOMY_H |
33 | 33 | ||
34 | #include "llmemory.h" | ||
35 | |||
34 | class LLMessageSystem; | 36 | class LLMessageSystem; |
35 | class LLVector3; | 37 | class LLVector3; |
36 | 38 | ||
@@ -40,9 +42,14 @@ public: | |||
40 | LLGlobalEconomy(); | 42 | LLGlobalEconomy(); |
41 | virtual ~LLGlobalEconomy(); | 43 | virtual ~LLGlobalEconomy(); |
42 | 44 | ||
45 | // This class defines its singleton internally as a typedef instead of inheriting from | ||
46 | // LLSingleton like most others because the LLRegionEconomy sub-class might also | ||
47 | // become a singleton and this pattern will more easily disambiguate them. | ||
48 | typedef LLSingleton<LLGlobalEconomy> Singleton; | ||
49 | |||
43 | virtual void print(); | 50 | virtual void print(); |
44 | 51 | ||
45 | static void processEconomyData(LLMessageSystem *msg, void **user_data); | 52 | static void processEconomyData(LLMessageSystem *msg, LLGlobalEconomy* econ_data); |
46 | 53 | ||
47 | S32 calculateTeleportCost(F32 distance) const; | 54 | S32 calculateTeleportCost(F32 distance) const; |
48 | S32 calculateLightRent(const LLVector3& object_size) const; | 55 | S32 calculateLightRent(const LLVector3& object_size) const; |
@@ -136,6 +143,4 @@ private: | |||
136 | 143 | ||
137 | }; | 144 | }; |
138 | 145 | ||
139 | extern LLGlobalEconomy* gGlobalEconomy; | ||
140 | |||
141 | #endif | 146 | #endif |