opensim-development – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | eva | 1 | /* |
2 | * Copyright (c) Contributors, http://opensimulator.org/ |
||
3 | * See CONTRIBUTORS.TXT for a full list of copyright holders. |
||
4 | * |
||
5 | * Redistribution and use in source and binary forms, with or without |
||
6 | * modification, are permitted provided that the following conditions are met: |
||
7 | * * Redistributions of source code must retain the above copyright |
||
8 | * notice, this list of conditions and the following disclaimer. |
||
9 | * * Redistributions in binary form must reproduce the above copyright |
||
10 | * notice, this list of conditions and the following disclaimer in the |
||
11 | * documentation and/or other materials provided with the distribution. |
||
12 | * * Neither the name of the OpenSimulator Project nor the |
||
13 | * names of its contributors may be used to endorse or promote products |
||
14 | * derived from this software without specific prior written permission. |
||
15 | * |
||
16 | * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY |
||
17 | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
||
18 | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
||
19 | * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY |
||
20 | * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
||
21 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
||
22 | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
||
23 | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
||
24 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS |
||
25 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
||
26 | */ |
||
27 | using System; |
||
28 | |||
29 | namespace OpenSim.Framework |
||
30 | { |
||
31 | public class Constants |
||
32 | { |
||
33 | // 'RegionSize' is the legacy region size. |
||
34 | // DO NOT USE THIS FOR ANY NEW CODE. Use Scene.RegionInfo.RegionSize[XYZ] as a region might not |
||
35 | // be the legacy region size. |
||
36 | public const uint RegionSize = 256; |
||
37 | public const uint RegionHeight = 4096; |
||
38 | // This could be a parameters but, really, a region of greater than this is pretty unmanageable |
||
39 | public const uint MaximumRegionSize = 8192; |
||
40 | |||
41 | // Since terrain is stored in 16x16 heights, regions must be a multiple of this number and that is the minimum |
||
42 | public const int MinRegionSize = 16; |
||
43 | public const int TerrainPatchSize = 16; |
||
44 | |||
45 | public const string DefaultTexture = "89556747-24cb-43ed-920b-47caed15465f"; |
||
46 | |||
47 | public enum EstateAccessCodex : uint |
||
48 | { |
||
49 | AccessOptions = 1, |
||
50 | AllowedGroups = 2, |
||
51 | EstateBans = 4, |
||
52 | EstateManagers = 8 |
||
53 | } |
||
54 | |||
55 | [Flags]public enum TeleportFlags : uint |
||
56 | { |
||
57 | /// <summary>No flags set, or teleport failed</summary> |
||
58 | Default = 0, |
||
59 | /// <summary>Set when newbie leaves help island for first time</summary> |
||
60 | SetHomeToTarget = 1 << 0, |
||
61 | /// <summary></summary> |
||
62 | SetLastToTarget = 1 << 1, |
||
63 | /// <summary>Via Lure</summary> |
||
64 | ViaLure = 1 << 2, |
||
65 | /// <summary>Via Landmark</summary> |
||
66 | ViaLandmark = 1 << 3, |
||
67 | /// <summary>Via Location</summary> |
||
68 | ViaLocation = 1 << 4, |
||
69 | /// <summary>Via Home</summary> |
||
70 | ViaHome = 1 << 5, |
||
71 | /// <summary>Via Telehub</summary> |
||
72 | ViaTelehub = 1 << 6, |
||
73 | /// <summary>Via Login</summary> |
||
74 | ViaLogin = 1 << 7, |
||
75 | /// <summary>Linden Summoned</summary> |
||
76 | ViaGodlikeLure = 1 << 8, |
||
77 | /// <summary>Linden Forced me</summary> |
||
78 | Godlike = 1 << 9, |
||
79 | /// <summary></summary> |
||
80 | NineOneOne = 1 << 10, |
||
81 | /// <summary>Agent Teleported Home via Script</summary> |
||
82 | DisableCancel = 1 << 11, |
||
83 | /// <summary></summary> |
||
84 | ViaRegionID = 1 << 12, |
||
85 | /// <summary></summary> |
||
86 | IsFlying = 1 << 13, |
||
87 | /// <summary></summary> |
||
88 | ResetHome = 1 << 14, |
||
89 | /// <summary>forced to new location for example when avatar is banned or ejected</summary> |
||
90 | ForceRedirect = 1 << 15, |
||
91 | /// <summary>Teleport Finished via a Lure</summary> |
||
92 | FinishedViaLure = 1 << 26, |
||
93 | /// <summary>Finished, Sim Changed</summary> |
||
94 | FinishedViaNewSim = 1 << 28, |
||
95 | /// <summary>Finished, Same Sim</summary> |
||
96 | FinishedViaSameSim = 1 << 29, |
||
97 | /// <summary>Agent coming into the grid from another grid</summary> |
||
98 | ViaHGLogin = 1 << 30 |
||
99 | } |
||
100 | |||
101 | } |
||
102 | } |