mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 02:36:00 +08:00
Some work on restructuring the namespaces / project names. Note this doesn't compile yet as not all the code has been changed to use the new namespaces. Am committing it now for feedback on the namespaces.
This commit is contained in:
37
OpenSim/Grid/Manager/OpenGridServices.Manager/RegionBlock.cs
Normal file
37
OpenSim/Grid/Manager/OpenGridServices.Manager/RegionBlock.cs
Normal file
@@ -0,0 +1,37 @@
|
||||
using System;
|
||||
using System.Xml;
|
||||
using libsecondlife;
|
||||
using OpenSim.Framework.Utilities;
|
||||
|
||||
namespace OpenGridServices.Manager
|
||||
{
|
||||
|
||||
|
||||
public class RegionBlock
|
||||
{
|
||||
public uint regloc_x;
|
||||
public uint regloc_y;
|
||||
|
||||
public string httpd_url;
|
||||
|
||||
public string region_name;
|
||||
|
||||
public ulong regionhandle {
|
||||
get { return Util.UIntsToLong(regloc_x*256,regloc_y*256); }
|
||||
}
|
||||
|
||||
public Gdk.Pixbuf MiniMap;
|
||||
|
||||
public RegionBlock()
|
||||
{
|
||||
}
|
||||
|
||||
public void LoadFromXmlNode(XmlNode sourcenode)
|
||||
{
|
||||
this.regloc_x=Convert.ToUInt32(sourcenode.Attributes.GetNamedItem("loc_x").Value);
|
||||
this.regloc_y=Convert.ToUInt32(sourcenode.Attributes.GetNamedItem("loc_y").Value);
|
||||
this.region_name=sourcenode.Attributes.GetNamedItem("region_name").Value;
|
||||
this.httpd_url=sourcenode.Attributes.GetNamedItem("httpd_url").Value;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user