diff options
author | Diva Canto | 2009-09-26 07:48:21 -0700 |
---|---|---|
committer | Diva Canto | 2009-09-26 07:48:21 -0700 |
commit | 5757afe7665543e8b3ed4a322a7d6e095dafcdb3 (patch) | |
tree | bed3c7ab11459e84baa5a0fbd98dde4a81fd5e16 /OpenSim/Services/Interfaces | |
parent | More small changes to FlotsamAssetCache as per mcortez' request. (diff) | |
download | opensim-SC_OLD-5757afe7665543e8b3ed4a322a7d6e095dafcdb3.zip opensim-SC_OLD-5757afe7665543e8b3ed4a322a7d6e095dafcdb3.tar.gz opensim-SC_OLD-5757afe7665543e8b3ed4a322a7d6e095dafcdb3.tar.bz2 opensim-SC_OLD-5757afe7665543e8b3ed4a322a7d6e095dafcdb3.tar.xz |
First pass at the heart surgery for grid services. Compiles and runs minimally. A few bugs to catch now.
Diffstat (limited to 'OpenSim/Services/Interfaces')
-rw-r--r-- | OpenSim/Services/Interfaces/IGridService.cs | 27 |
1 files changed, 21 insertions, 6 deletions
diff --git a/OpenSim/Services/Interfaces/IGridService.cs b/OpenSim/Services/Interfaces/IGridService.cs index ce432ab..96dc82b9 100644 --- a/OpenSim/Services/Interfaces/IGridService.cs +++ b/OpenSim/Services/Interfaces/IGridService.cs | |||
@@ -122,9 +122,6 @@ namespace OpenSim.Services.Interfaces | |||
122 | } | 122 | } |
123 | protected string m_regionName = String.Empty; | 123 | protected string m_regionName = String.Empty; |
124 | 124 | ||
125 | protected bool Allow_Alternate_Ports; | ||
126 | public bool m_allow_alternate_ports; | ||
127 | |||
128 | protected string m_externalHostName; | 125 | protected string m_externalHostName; |
129 | 126 | ||
130 | protected IPEndPoint m_internalEndPoint; | 127 | protected IPEndPoint m_internalEndPoint; |
@@ -146,6 +143,10 @@ namespace OpenSim.Services.Interfaces | |||
146 | public UUID RegionID = UUID.Zero; | 143 | public UUID RegionID = UUID.Zero; |
147 | public UUID ScopeID = UUID.Zero; | 144 | public UUID ScopeID = UUID.Zero; |
148 | 145 | ||
146 | public UUID TerrainImage = UUID.Zero; | ||
147 | public byte Access; | ||
148 | public int Maturity; | ||
149 | |||
149 | public GridRegion() | 150 | public GridRegion() |
150 | { | 151 | { |
151 | } | 152 | } |
@@ -183,9 +184,11 @@ namespace OpenSim.Services.Interfaces | |||
183 | m_internalEndPoint = ConvertFrom.InternalEndPoint; | 184 | m_internalEndPoint = ConvertFrom.InternalEndPoint; |
184 | m_externalHostName = ConvertFrom.ExternalHostName; | 185 | m_externalHostName = ConvertFrom.ExternalHostName; |
185 | m_httpPort = ConvertFrom.HttpPort; | 186 | m_httpPort = ConvertFrom.HttpPort; |
186 | m_allow_alternate_ports = ConvertFrom.m_allow_alternate_ports; | 187 | RegionID = ConvertFrom.RegionID; |
187 | RegionID = UUID.Zero; | ||
188 | ServerURI = ConvertFrom.ServerURI; | 188 | ServerURI = ConvertFrom.ServerURI; |
189 | TerrainImage = ConvertFrom.RegionSettings.TerrainImageID; | ||
190 | Access = ConvertFrom.AccessLevel; | ||
191 | Maturity = ConvertFrom.RegionSettings.Maturity; | ||
189 | } | 192 | } |
190 | 193 | ||
191 | 194 | ||
@@ -268,7 +271,9 @@ namespace OpenSim.Services.Interfaces | |||
268 | kvp["serverHttpPort"] = HttpPort.ToString(); | 271 | kvp["serverHttpPort"] = HttpPort.ToString(); |
269 | kvp["serverURI"] = ServerURI; | 272 | kvp["serverURI"] = ServerURI; |
270 | kvp["serverPort"] = InternalEndPoint.Port.ToString(); | 273 | kvp["serverPort"] = InternalEndPoint.Port.ToString(); |
271 | 274 | kvp["regionMapTexture"] = TerrainImage.ToString(); | |
275 | kvp["access"] = Access.ToString(); | ||
276 | // Maturity doesn't seem to exist in the DB | ||
272 | return kvp; | 277 | return kvp; |
273 | } | 278 | } |
274 | 279 | ||
@@ -312,6 +317,16 @@ namespace OpenSim.Services.Interfaces | |||
312 | 317 | ||
313 | if (kvp.ContainsKey("serverURI")) | 318 | if (kvp.ContainsKey("serverURI")) |
314 | ServerURI = (string)kvp["serverURI"]; | 319 | ServerURI = (string)kvp["serverURI"]; |
320 | |||
321 | if (kvp.ContainsKey("regionMapTexture")) | ||
322 | { | ||
323 | UUID.TryParse((string)kvp["regionMapTexture"], out TerrainImage); | ||
324 | } | ||
325 | |||
326 | if (kvp.ContainsKey("access")) | ||
327 | { | ||
328 | Access = Byte.Parse((string)kvp["access"]); ; | ||
329 | } | ||
315 | } | 330 | } |
316 | } | 331 | } |
317 | 332 | ||