aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenGridServices.Manager/OpenGridServices.Manager/RegionBlock.cs
diff options
context:
space:
mode:
authorgareth2007-05-20 16:17:19 +0000
committergareth2007-05-20 16:17:19 +0000
commit3b1eba2ffc5964b307ca25c5485a55f6a733e333 (patch)
tree68e23bc05357a5dd34d7b210859a95ab67f07f35 /OpenGridServices.Manager/OpenGridServices.Manager/RegionBlock.cs
parent* Added UnixTimeSinceEpoch() function to Util class (god knows how many times... (diff)
downloadopensim-SC_OLD-3b1eba2ffc5964b307ca25c5485a55f6a733e333.zip
opensim-SC_OLD-3b1eba2ffc5964b307ca25c5485a55f6a733e333.tar.gz
opensim-SC_OLD-3b1eba2ffc5964b307ca25c5485a55f6a733e333.tar.bz2
opensim-SC_OLD-3b1eba2ffc5964b307ca25c5485a55f6a733e333.tar.xz
Need to add the grid portion next to test this thing
Diffstat (limited to '')
-rw-r--r--OpenGridServices.Manager/OpenGridServices.Manager/RegionBlock.cs16
1 files changed, 13 insertions, 3 deletions
diff --git a/OpenGridServices.Manager/OpenGridServices.Manager/RegionBlock.cs b/OpenGridServices.Manager/OpenGridServices.Manager/RegionBlock.cs
index b4e5cca..00f7c65 100644
--- a/OpenGridServices.Manager/OpenGridServices.Manager/RegionBlock.cs
+++ b/OpenGridServices.Manager/OpenGridServices.Manager/RegionBlock.cs
@@ -1,4 +1,5 @@
1using System; 1using System;
2using System.Xml;
2using libsecondlife; 3using libsecondlife;
3using OpenSim.Framework.Utilities; 4using OpenSim.Framework.Utilities;
4 5
@@ -8,11 +9,12 @@ namespace OpenGridServices.Manager
8 9
9 public class RegionBlock 10 public class RegionBlock
10 { 11 {
11 12 public uint regloc_x;
12 private uint regloc_x; 13 public uint regloc_y;
13 private uint regloc_y;
14 14
15 public string httpd_url;
15 16
17 public string region_name;
16 18
17 public ulong regionhandle { 19 public ulong regionhandle {
18 get { return Util.UIntsToLong(regloc_x*256,regloc_y*256); } 20 get { return Util.UIntsToLong(regloc_x*256,regloc_y*256); }
@@ -23,5 +25,13 @@ namespace OpenGridServices.Manager
23 public RegionBlock() 25 public RegionBlock()
24 { 26 {
25 } 27 }
28
29 public void LoadFromXmlNode(XmlNode sourcenode)
30 {
31 this.regloc_x=Convert.ToUInt32(sourcenode.Attributes.GetNamedItem("loc_x").Value);
32 this.regloc_y=Convert.ToUInt32(sourcenode.Attributes.GetNamedItem("loc_y").Value);
33 this.region_name=sourcenode.Attributes.GetNamedItem("region_name").Value;
34 this.httpd_url=sourcenode.Attributes.GetNamedItem("httpd_url").Value;
35 }
26 } 36 }
27} 37}