RegionProfileData.cs 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284
  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. using System;
  28. using System.Collections;
  29. using Nwc.XmlRpc;
  30. using OpenMetaverse;
  31. using OpenSim.Framework;
  32. namespace OpenSim.Data
  33. {
  34. /// <summary>
  35. /// A class which contains information known to the grid server about a region
  36. /// </summary>
  37. [Serializable]
  38. public class RegionProfileData
  39. {
  40. /// <summary>
  41. /// The name of the region
  42. /// </summary>
  43. public string regionName = String.Empty;
  44. /// <summary>
  45. /// A 64-bit number combining map position into a (mostly) unique ID
  46. /// </summary>
  47. public ulong regionHandle;
  48. /// <summary>
  49. /// OGS/OpenSim Specific ID for a region
  50. /// </summary>
  51. public UUID UUID;
  52. /// <summary>
  53. /// Coordinates of the region
  54. /// </summary>
  55. public uint regionLocX;
  56. public uint regionLocY;
  57. public uint regionLocZ; // Reserved (round-robin, layers, etc)
  58. /// <summary>
  59. /// Authentication secrets
  60. /// </summary>
  61. /// <remarks>Not very secure, needs improvement.</remarks>
  62. public string regionSendKey = String.Empty;
  63. public string regionRecvKey = String.Empty;
  64. public string regionSecret = String.Empty;
  65. /// <summary>
  66. /// Whether the region is online
  67. /// </summary>
  68. public bool regionOnline;
  69. /// <summary>
  70. /// Information about the server that the region is currently hosted on
  71. /// </summary>
  72. public string serverIP = String.Empty;
  73. public uint serverPort;
  74. public string serverURI = String.Empty;
  75. public uint httpPort;
  76. public uint remotingPort;
  77. public string httpServerURI = String.Empty;
  78. /// <summary>
  79. /// Set of optional overrides. Can be used to create non-eulicidean spaces.
  80. /// </summary>
  81. public ulong regionNorthOverrideHandle;
  82. public ulong regionSouthOverrideHandle;
  83. public ulong regionEastOverrideHandle;
  84. public ulong regionWestOverrideHandle;
  85. /// <summary>
  86. /// Optional: URI Location of the region database
  87. /// </summary>
  88. /// <remarks>Used for floating sim pools where the region data is not nessecarily coupled to a specific server</remarks>
  89. public string regionDataURI = String.Empty;
  90. /// <summary>
  91. /// Region Asset Details
  92. /// </summary>
  93. public string regionAssetURI = String.Empty;
  94. public string regionAssetSendKey = String.Empty;
  95. public string regionAssetRecvKey = String.Empty;
  96. /// <summary>
  97. /// Region Userserver Details
  98. /// </summary>
  99. public string regionUserURI = String.Empty;
  100. public string regionUserSendKey = String.Empty;
  101. public string regionUserRecvKey = String.Empty;
  102. /// <summary>
  103. /// Region Map Texture Asset
  104. /// </summary>
  105. public UUID regionMapTextureID = new UUID("00000000-0000-1111-9999-000000000006");
  106. /// <summary>
  107. /// this particular mod to the file provides support within the spec for RegionProfileData for the
  108. /// owner_uuid for the region
  109. /// </summary>
  110. public UUID owner_uuid = UUID.Zero;
  111. /// <summary>
  112. /// OGS/OpenSim Specific original ID for a region after move/split
  113. /// </summary>
  114. public UUID originUUID;
  115. //Data Wrappers
  116. public string RegionName
  117. {
  118. get { return regionName; }
  119. set { regionName = value; }
  120. }
  121. public ulong RegionHandle
  122. {
  123. get { return regionHandle; }
  124. set { regionHandle = value; }
  125. }
  126. public UUID Uuid
  127. {
  128. get { return UUID; }
  129. set { UUID = value; }
  130. }
  131. public uint RegionLocX
  132. {
  133. get { return regionLocX; }
  134. set { regionLocX = value; }
  135. }
  136. public uint RegionLocY
  137. {
  138. get { return regionLocY; }
  139. set { regionLocY = value; }
  140. }
  141. public uint RegionLocZ
  142. {
  143. get { return regionLocZ; }
  144. set { regionLocZ = value; }
  145. }
  146. public string RegionSendKey
  147. {
  148. get { return regionSendKey; }
  149. set { regionSendKey = value; }
  150. }
  151. public string RegionRecvKey
  152. {
  153. get { return regionRecvKey; }
  154. set { regionRecvKey = value; }
  155. }
  156. public string RegionSecret
  157. {
  158. get { return regionSecret; }
  159. set { regionSecret = value; }
  160. }
  161. public bool RegionOnline
  162. {
  163. get { return regionOnline; }
  164. set { regionOnline = value; }
  165. }
  166. public string ServerIP
  167. {
  168. get { return serverIP; }
  169. set { serverIP = value; }
  170. }
  171. public uint ServerPort
  172. {
  173. get { return serverPort; }
  174. set { serverPort = value; }
  175. }
  176. public string ServerURI
  177. {
  178. get { return serverURI; }
  179. set { serverURI = value; }
  180. }
  181. public uint ServerHttpPort
  182. {
  183. get { return httpPort; }
  184. set { httpPort = value; }
  185. }
  186. public uint ServerRemotingPort
  187. {
  188. get { return remotingPort; }
  189. set { remotingPort = value; }
  190. }
  191. public ulong NorthOverrideHandle
  192. {
  193. get { return regionNorthOverrideHandle; }
  194. set { regionNorthOverrideHandle = value; }
  195. }
  196. public ulong SouthOverrideHandle
  197. {
  198. get { return regionSouthOverrideHandle; }
  199. set { regionSouthOverrideHandle = value; }
  200. }
  201. public ulong EastOverrideHandle
  202. {
  203. get { return regionEastOverrideHandle; }
  204. set { regionEastOverrideHandle = value; }
  205. }
  206. public ulong WestOverrideHandle
  207. {
  208. get { return regionWestOverrideHandle; }
  209. set { regionWestOverrideHandle = value; }
  210. }
  211. public string RegionDataURI
  212. {
  213. get { return regionDataURI; }
  214. set { regionDataURI = value; }
  215. }
  216. public string RegionAssetURI
  217. {
  218. get { return regionAssetURI; }
  219. set { regionAssetURI = value; }
  220. }
  221. public string RegionAssetSendKey
  222. {
  223. get { return regionAssetSendKey; }
  224. set { regionAssetSendKey = value; }
  225. }
  226. public string RegionAssetRecvKey
  227. {
  228. get { return regionAssetRecvKey; }
  229. set { regionAssetRecvKey = value; }
  230. }
  231. public string RegionUserURI
  232. {
  233. get { return regionUserURI; }
  234. set { regionUserURI = value; }
  235. }
  236. public string RegionUserSendKey
  237. {
  238. get { return regionUserSendKey; }
  239. set { regionUserSendKey = value; }
  240. }
  241. public string RegionUserRecvKey
  242. {
  243. get { return regionUserRecvKey; }
  244. set { regionUserRecvKey = value; }
  245. }
  246. public UUID RegionMapTextureID
  247. {
  248. get { return regionMapTextureID; }
  249. set { regionMapTextureID = value; }
  250. }
  251. public UUID Owner_uuid
  252. {
  253. get { return owner_uuid; }
  254. set { owner_uuid = value; }
  255. }
  256. public UUID OriginUUID
  257. {
  258. get { return originUUID; }
  259. set { originUUID = value; }
  260. }
  261. }
  262. }