aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Grid/Manager/OpenGridServices.Manager/RegionBlock.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Grid/Manager/OpenGridServices.Manager/RegionBlock.cs')
-rw-r--r--OpenSim/Grid/Manager/OpenGridServices.Manager/RegionBlock.cs52
1 files changed, 25 insertions, 27 deletions
diff --git a/OpenSim/Grid/Manager/OpenGridServices.Manager/RegionBlock.cs b/OpenSim/Grid/Manager/OpenGridServices.Manager/RegionBlock.cs
index 90e1ab6..ad28d65 100644
--- a/OpenSim/Grid/Manager/OpenGridServices.Manager/RegionBlock.cs
+++ b/OpenSim/Grid/Manager/OpenGridServices.Manager/RegionBlock.cs
@@ -33,33 +33,31 @@ using OpenSim.Framework.Utilities;
33 33
34namespace OpenGridServices.Manager 34namespace OpenGridServices.Manager
35{ 35{
36 36 public class RegionBlock
37 37 {
38 public class RegionBlock 38 public uint regloc_x;
39 { 39 public uint regloc_y;
40 public uint regloc_x;
41 public uint regloc_y;
42
43 public string httpd_url;
44
45 public string region_name;
46
47 public ulong regionhandle {
48 get { return Util.UIntsToLong(regloc_x*256,regloc_y*256); }
49 }
50 40
51 public Gdk.Pixbuf MiniMap; 41 public string httpd_url;
52
53 public RegionBlock()
54 {
55 }
56 42
57 public void LoadFromXmlNode(XmlNode sourcenode) 43 public string region_name;
58 { 44
59 this.regloc_x=Convert.ToUInt32(sourcenode.Attributes.GetNamedItem("loc_x").Value); 45 public ulong regionhandle {
60 this.regloc_y=Convert.ToUInt32(sourcenode.Attributes.GetNamedItem("loc_y").Value); 46 get { return Util.UIntsToLong(regloc_x*256,regloc_y*256); }
61 this.region_name=sourcenode.Attributes.GetNamedItem("region_name").Value; 47 }
62 this.httpd_url=sourcenode.Attributes.GetNamedItem("httpd_url").Value; 48
63 } 49 public Gdk.Pixbuf MiniMap;
64 } 50
51 public RegionBlock()
52 {
53 }
54
55 public void LoadFromXmlNode(XmlNode sourcenode)
56 {
57 this.regloc_x=Convert.ToUInt32(sourcenode.Attributes.GetNamedItem("loc_x").Value);
58 this.regloc_y=Convert.ToUInt32(sourcenode.Attributes.GetNamedItem("loc_y").Value);
59 this.region_name=sourcenode.Attributes.GetNamedItem("region_name").Value;
60 this.httpd_url=sourcenode.Attributes.GetNamedItem("httpd_url").Value;
61 }
62 }
65} 63}