blob: 9cc6160b3a15851a887e98f1d2f8e0358dc7b70d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
#ifndef __HIPPO_LIMITS_H__
#define __HIPPO_LIMITS_H__
class HippoLimits
{
public:
HippoLimits();
const S32& getMaxAgentGroups() const { return mMaxAgentGroups; }
const F32& getMaxHeight() const { return mMaxHeight; }
const F32& getMinHoleSize() const { return mMinHoleSize; }
const F32& getMaxHollow() const { return mMaxHollow; }
const S32& getMaxLinkedPrims() const { return mMaxLinkedPrims; }
const S32& getMaxPhysLinkedPrims() const { return mMaxPhysLinkedPrims; }
const F32& getMaxInventoryItemsTransfer() const { return mMaxInventoryItemsTransfer; }
const std::string& getVoiceConnector() const { return mVoiceConnector; }
const F32& getMaxSelectDistance() const { return mMaxSelectDistance; }
// Returns the max prim size we can use on a grid
F32 getMinPrimScale() const;
F32 getMaxPrimScale() const;
F32 getMaxDragDistance() const;
F32 getMinPrimXPos() const;
F32 getMinPrimYPos() const;
F32 getMinPrimZPos() const;
F32 getMaxPrimXPos() const;
F32 getMaxPrimYPos() const;
F32 getMaxPrimZPos() const;
void setLimits();
S32 mMaxAgentGroups;
F32 mMaxHeight;
F32 mMinHoleSize;
F32 mMaxHollow;
F32 mMaxPrimScale;
F32 mMinPrimScale;
S32 mMaxLinkedPrims;
S32 mMaxPhysLinkedPrims;
F32 mMaxPrimXPos;
F32 mMaxPrimYPos;
F32 mMaxPrimZPos;
F32 mMinPrimXPos;
F32 mMinPrimYPos;
F32 mMinPrimZPos;
F32 mMaxSelectDistance;
S32 mRenderName;
F32 mMaxInventoryItemsTransfer;
F32 mMaxDragDistance;
BOOL skyUseClassicClouds;
BOOL mAllowParcelWindLight;
BOOL mAllowMinimap;
BOOL mAllowPhysicalPrims;
BOOL mEnableTeenMode;
BOOL mEnforceMaxBuild;
BOOL mRenderWater;
std::string mVoiceConnector;
private:
void setOpenSimLimits();
void setSecondLifeLimits();
void setSecondLifeMaxPrimScale();
};
extern HippoLimits* gHippoLimits;
#endif
|