aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/hippoLimits.h
blob: a5fe3518c6c3419ca220e921d988e6237026c3d8 (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
#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 F32&	getMinPrimScale()   const { return mMinPrimScale;   }
	const S32&	getMaxLinkedPrims() const { return mMaxLinkedPrims; }

	// Returns the max prim size we can use on a grid
	F32		getMaxPrimScale() const;

	void	setLimits();

	S32		mMaxAgentGroups;

	F32		mMaxHeight;
	F32		mMinHoleSize;
	F32		mMaxHollow;
	F32		mMaxPrimScale;
	F32		mMinPrimScale;
	S32		mMaxLinkedPrims;

private:
	void	setOpenSimLimits();
	void	setSecondLifeLimits();
};


extern HippoLimits* gHippoLimits;


#endif