diff options
Need to add the grid portion next to test this thing
Diffstat (limited to '')
-rw-r--r-- | OpenGridServices.Manager/OpenGridServices.Manager/RegionBlock.cs | 16 |
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 @@ | |||
1 | using System; | 1 | using System; |
2 | using System.Xml; | ||
2 | using libsecondlife; | 3 | using libsecondlife; |
3 | using OpenSim.Framework.Utilities; | 4 | using 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 | } |