diff options
author | Dr Scofield | 2009-02-10 13:10:57 +0000 |
---|---|---|
committer | Dr Scofield | 2009-02-10 13:10:57 +0000 |
commit | 180be7de07014aa33bc6066f12a0819b731c1c9d (patch) | |
tree | 3aa13af3cda4b808fa9453655875327699b61311 /OpenSim/Region/Environment/Modules/World/Land/LandChannel.cs | |
parent | Stopgap measure: To use gridlaunch, or GUI, start opensim with (diff) | |
download | opensim-SC_OLD-180be7de07014aa33bc6066f12a0819b731c1c9d.zip opensim-SC_OLD-180be7de07014aa33bc6066f12a0819b731c1c9d.tar.gz opensim-SC_OLD-180be7de07014aa33bc6066f12a0819b731c1c9d.tar.bz2 opensim-SC_OLD-180be7de07014aa33bc6066f12a0819b731c1c9d.tar.xz |
this is step 2 of 2 of the OpenSim.Region.Environment refactor.
NOTHING has been deleted or moved off to forge at this point. what
has happened is that OpenSim.Region.Environment.Modules has been split
in two:
- OpenSim.Region.CoreModules: all those modules that are either
directly or indirectly referenced from other OpenSim packages, or
that provide functionality that the OpenSim developer community
considers core functionality:
CoreModules/Agent/AssetTransaction
CoreModules/Agent/Capabilities
CoreModules/Agent/TextureDownload
CoreModules/Agent/TextureSender
CoreModules/Agent/TextureSender/Tests
CoreModules/Agent/Xfer
CoreModules/Avatar/AvatarFactory
CoreModules/Avatar/Chat/ChatModule
CoreModules/Avatar/Combat
CoreModules/Avatar/Currency/SampleMoney
CoreModules/Avatar/Dialog
CoreModules/Avatar/Friends
CoreModules/Avatar/Gestures
CoreModules/Avatar/Groups
CoreModules/Avatar/InstantMessage
CoreModules/Avatar/Inventory
CoreModules/Avatar/Inventory/Archiver
CoreModules/Avatar/Inventory/Transfer
CoreModules/Avatar/Lure
CoreModules/Avatar/ObjectCaps
CoreModules/Avatar/Profiles
CoreModules/Communications/Local
CoreModules/Communications/REST
CoreModules/Framework/EventQueue
CoreModules/Framework/InterfaceCommander
CoreModules/Hypergrid
CoreModules/InterGrid
CoreModules/Scripting/DynamicTexture
CoreModules/Scripting/EMailModules
CoreModules/Scripting/HttpRequest
CoreModules/Scripting/LoadImageURL
CoreModules/Scripting/VectorRender
CoreModules/Scripting/WorldComm
CoreModules/Scripting/XMLRPC
CoreModules/World/Archiver
CoreModules/World/Archiver/Tests
CoreModules/World/Estate
CoreModules/World/Land
CoreModules/World/Permissions
CoreModules/World/Serialiser
CoreModules/World/Sound
CoreModules/World/Sun
CoreModules/World/Terrain
CoreModules/World/Terrain/DefaultEffects
CoreModules/World/Terrain/DefaultEffects/bin
CoreModules/World/Terrain/DefaultEffects/bin/Debug
CoreModules/World/Terrain/Effects
CoreModules/World/Terrain/FileLoaders
CoreModules/World/Terrain/FloodBrushes
CoreModules/World/Terrain/PaintBrushes
CoreModules/World/Terrain/Tests
CoreModules/World/Vegetation
CoreModules/World/Wind
CoreModules/World/WorldMap
- OpenSim.Region.OptionalModules: all those modules that are not core
modules:
OptionalModules/Avatar/Chat/IRC-stuff
OptionalModules/Avatar/Concierge
OptionalModules/Avatar/Voice/AsterixVoice
OptionalModules/Avatar/Voice/SIPVoice
OptionalModules/ContentManagementSystem
OptionalModules/Grid/Interregion
OptionalModules/Python
OptionalModules/SvnSerialiser
OptionalModules/World/NPC
OptionalModules/World/TreePopulator
Diffstat (limited to 'OpenSim/Region/Environment/Modules/World/Land/LandChannel.cs')
-rw-r--r-- | OpenSim/Region/Environment/Modules/World/Land/LandChannel.cs | 188 |
1 files changed, 0 insertions, 188 deletions
diff --git a/OpenSim/Region/Environment/Modules/World/Land/LandChannel.cs b/OpenSim/Region/Environment/Modules/World/Land/LandChannel.cs deleted file mode 100644 index 76555d2..0000000 --- a/OpenSim/Region/Environment/Modules/World/Land/LandChannel.cs +++ /dev/null | |||
@@ -1,188 +0,0 @@ | |||
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 OpenSim 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 | |||
28 | using System; | ||
29 | using System.Collections.Generic; | ||
30 | using OpenMetaverse; | ||
31 | using OpenSim.Framework; | ||
32 | using OpenSim.Region.Framework.Interfaces; | ||
33 | using OpenSim.Region.Framework.Scenes; | ||
34 | |||
35 | namespace OpenSim.Region.Environment.Modules.World.Land | ||
36 | { | ||
37 | public class LandChannel : ILandChannel | ||
38 | { | ||
39 | #region Constants | ||
40 | |||
41 | //Land types set with flags in ParcelOverlay. | ||
42 | //Only one of these can be used. | ||
43 | public const float BAN_LINE_SAFETY_HIEGHT = 100; | ||
44 | public const byte LAND_FLAG_PROPERTY_BORDER_SOUTH = 128; //Equals 10000000 | ||
45 | public const byte LAND_FLAG_PROPERTY_BORDER_WEST = 64; //Equals 01000000 | ||
46 | |||
47 | //RequestResults (I think these are right, they seem to work): | ||
48 | public const int LAND_RESULT_MULTIPLE = 1; // The request they made contained more than a single peice of land | ||
49 | public const int LAND_RESULT_SINGLE = 0; // The request they made contained only a single piece of land | ||
50 | |||
51 | //ParcelSelectObjects | ||
52 | public const int LAND_SELECT_OBJECTS_GROUP = 4; | ||
53 | public const int LAND_SELECT_OBJECTS_OTHER = 8; | ||
54 | public const int LAND_SELECT_OBJECTS_OWNER = 2; | ||
55 | public const byte LAND_TYPE_IS_BEING_AUCTIONED = 5; //Equals 00000101 | ||
56 | public const byte LAND_TYPE_IS_FOR_SALE = 4; //Equals 00000100 | ||
57 | public const byte LAND_TYPE_OWNED_BY_GROUP = 2; //Equals 00000010 | ||
58 | public const byte LAND_TYPE_OWNED_BY_OTHER = 1; //Equals 00000001 | ||
59 | public const byte LAND_TYPE_OWNED_BY_REQUESTER = 3; //Equals 00000011 | ||
60 | public const byte LAND_TYPE_PUBLIC = 0; //Equals 00000000 | ||
61 | |||
62 | //These are other constants. Yay! | ||
63 | public const int START_LAND_LOCAL_ID = 1; | ||
64 | |||
65 | #endregion | ||
66 | |||
67 | private readonly Scene m_scene; | ||
68 | private readonly LandManagementModule m_landManagementModule; | ||
69 | |||
70 | public LandChannel(Scene scene, LandManagementModule landManagementMod) | ||
71 | { | ||
72 | m_scene = scene; | ||
73 | m_landManagementModule = landManagementMod; | ||
74 | } | ||
75 | |||
76 | #region ILandChannel Members | ||
77 | |||
78 | |||
79 | /// <summary> | ||
80 | /// Get the land object at the specified point | ||
81 | /// </summary> | ||
82 | /// <param name="x_float">Value between 0 - 256 on the x axis of the point</param> | ||
83 | /// <param name="y_float">Value between 0 - 256 on the y axis of the point</param> | ||
84 | /// <returns>Land object at the point supplied</returns> | ||
85 | public ILandObject GetLandObject(float x_float, float y_float) | ||
86 | { | ||
87 | if (m_landManagementModule != null) | ||
88 | { | ||
89 | return m_landManagementModule.GetLandObject(x_float, y_float); | ||
90 | } | ||
91 | ILandObject obj = new LandObject(UUID.Zero, false, m_scene); | ||
92 | obj.landData.Name = "NO LAND"; | ||
93 | return obj; | ||
94 | } | ||
95 | |||
96 | public ILandObject GetLandObject(int x, int y) | ||
97 | { | ||
98 | if (m_landManagementModule != null) | ||
99 | { | ||
100 | return m_landManagementModule.GetLandObject(x, y); | ||
101 | } | ||
102 | ILandObject obj = new LandObject(UUID.Zero, false, m_scene); | ||
103 | obj.landData.Name = "NO LAND"; | ||
104 | return obj; | ||
105 | } | ||
106 | |||
107 | public List<ILandObject> AllParcels() | ||
108 | { | ||
109 | if (m_landManagementModule != null) | ||
110 | { | ||
111 | return m_landManagementModule.AllParcels(); | ||
112 | } | ||
113 | |||
114 | return new List<ILandObject>(); | ||
115 | } | ||
116 | |||
117 | public List<ILandObject> ParcelsNearPoint(Vector3 position) | ||
118 | { | ||
119 | if (m_landManagementModule != null) | ||
120 | { | ||
121 | return m_landManagementModule.ParcelsNearPoint(position); | ||
122 | } | ||
123 | |||
124 | return new List<ILandObject>(); | ||
125 | } | ||
126 | |||
127 | public bool IsLandPrimCountTainted() | ||
128 | { | ||
129 | if (m_landManagementModule != null) | ||
130 | { | ||
131 | return m_landManagementModule.IsLandPrimCountTainted(); | ||
132 | } | ||
133 | |||
134 | return false; | ||
135 | } | ||
136 | |||
137 | public bool IsForcefulBansAllowed() | ||
138 | { | ||
139 | if (m_landManagementModule != null) | ||
140 | { | ||
141 | return m_landManagementModule.AllowedForcefulBans; | ||
142 | } | ||
143 | |||
144 | return false; | ||
145 | } | ||
146 | |||
147 | public void UpdateLandObject(int localID, LandData data) | ||
148 | { | ||
149 | if (m_landManagementModule != null) | ||
150 | { | ||
151 | m_landManagementModule.UpdateLandObject(localID, data); | ||
152 | } | ||
153 | } | ||
154 | public void ReturnObjectsInParcel(int localID, uint returnType, UUID[] agentIDs, UUID[] taskIDs, IClientAPI remoteClient) | ||
155 | { | ||
156 | if (m_landManagementModule != null) | ||
157 | { | ||
158 | m_landManagementModule.ReturnObjectsInParcel(localID, returnType, agentIDs, taskIDs, remoteClient); | ||
159 | } | ||
160 | } | ||
161 | |||
162 | public void setParcelObjectMaxOverride(overrideParcelMaxPrimCountDelegate overrideDel) | ||
163 | { | ||
164 | if (m_landManagementModule != null) | ||
165 | { | ||
166 | m_landManagementModule.setParcelObjectMaxOverride(overrideDel); | ||
167 | } | ||
168 | } | ||
169 | |||
170 | public void setSimulatorObjectMaxOverride(overrideSimulatorMaxPrimCountDelegate overrideDel) | ||
171 | { | ||
172 | if (m_landManagementModule != null) | ||
173 | { | ||
174 | m_landManagementModule.setSimulatorObjectMaxOverride(overrideDel); | ||
175 | } | ||
176 | } | ||
177 | |||
178 | public void SetParcelOtherCleanTime(IClientAPI remoteClient, int localID, int otherCleanTime) | ||
179 | { | ||
180 | if (m_landManagementModule != null) | ||
181 | { | ||
182 | m_landManagementModule.setParcelOtherCleanTime(remoteClient, localID, otherCleanTime); | ||
183 | } | ||
184 | } | ||
185 | |||
186 | #endregion | ||
187 | } | ||
188 | } | ||