Exemplo n.º 1
0
        public Dictionary <string, object> ToKeyValuePairs()
        {
            Dictionary <string, object> kvp = new Dictionary <string, object>();

            kvp["uuid"]       = RegionID.ToString();
            kvp["locX"]       = RegionLocX.ToString();
            kvp["locY"]       = RegionLocY.ToString();
            kvp["sizeX"]      = RegionSizeX.ToString();
            kvp["sizeY"]      = RegionSizeY.ToString();
            kvp["regionName"] = RegionName;

            if (RegionFlags != null)
            {
                kvp["flags"] = ((int)RegionFlags).ToString();
            }

            kvp["serverIP"]         = ExternalHostName; //ExternalEndPoint.Address.ToString();
            kvp["serverHttpPort"]   = HttpPort.ToString();
            kvp["serverURI"]        = ServerURI;
            kvp["serverPort"]       = InternalEndPoint.Port.ToString();
            kvp["regionMapTexture"] = TerrainImage.ToString();
            kvp["parcelMapTexture"] = ParcelImage.ToString();
            kvp["access"]           = Access.ToString();
            kvp["regionSecret"]     = RegionSecret;
            kvp["owner_uuid"]       = EstateOwner.ToString();
            kvp["Token"]            = Token.ToString();
            // Maturity doesn't seem to exist in the DB

            return(kvp);
        }
Exemplo n.º 2
0
        public OSDMap PackRegionInfoData()
        {
            OSDMap args = new OSDMap();

            args["region_id"] = OSD.FromUUID(RegionID);
            if ((RegionName != null) && !RegionName.Equals(""))
            {
                args["region_name"] = OSD.FromString(RegionName);
            }
            args["external_host_name"]  = OSD.FromString(ExternalHostName);
            args["http_port"]           = OSD.FromString(HttpPort.ToString());
            args["server_uri"]          = OSD.FromString(ServerURI);
            args["region_xloc"]         = OSD.FromString(RegionLocX.ToString());
            args["region_yloc"]         = OSD.FromString(RegionLocY.ToString());
            args["internal_ep_address"] = OSD.FromString(InternalEndPoint.Address.ToString());
            args["internal_ep_port"]    = OSD.FromString(InternalEndPoint.Port.ToString());
            if ((RemotingAddress != null) && !RemotingAddress.Equals(""))
            {
                args["remoting_address"] = OSD.FromString(RemotingAddress);
            }
            args["remoting_port"]   = OSD.FromString(RemotingPort.ToString());
            args["allow_alt_ports"] = OSD.FromBoolean(m_allow_alternate_ports);
            if ((proxyUrl != null) && !proxyUrl.Equals(""))
            {
                args["proxy_url"] = OSD.FromString(proxyUrl);
            }
            if (RegionType != String.Empty)
            {
                args["region_type"] = OSD.FromString(RegionType);
            }

            return(args);
        }
Exemplo n.º 3
0
        public OSDMap PackRegionInfoData()
        {
            OSDMap args = new OSDMap();

            args["region_id"] = OSD.FromUUID(RegionID);
            if (!String.IsNullOrEmpty(RegionName))
            {
                args["region_name"] = OSD.FromString(RegionName);
            }
            args["external_host_name"]  = OSD.FromString(ExternalHostName);
            args["http_port"]           = OSD.FromString(HttpPort.ToString());
            args["region_xloc"]         = OSD.FromString(RegionLocX.ToString());
            args["region_yloc"]         = OSD.FromString(RegionLocY.ToString());
            args["internal_ep_address"] = OSD.FromString(InternalEndPoint.Address.ToString());
            args["internal_ep_port"]    = OSD.FromString(InternalEndPoint.Port.ToString());
            if (!String.IsNullOrEmpty(RemotingAddress))
            {
                args["remoting_address"] = OSD.FromString(RemotingAddress);
            }
            args["remoting_port"]   = OSD.FromString(RemotingPort.ToString());
            args["allow_alt_ports"] = OSD.FromBoolean(m_allow_alternate_ports);
            if (!String.IsNullOrEmpty(proxyUrl))
            {
                args["proxy_url"] = OSD.FromString(proxyUrl);
            }

            if (OutsideIP != null)
            {
                args["outside_ip"] = OSD.FromString(OutsideIP);
            }

            return(args);
        }
Exemplo n.º 4
0
 public OSDMap PackRegionInfoData()
 {
     OSDMap args = new OSDMap();
     args["region_id"] = OSD.FromUUID(RegionID);
     if ((RegionName != null) && !RegionName.Equals(""))
         args["region_name"] = OSD.FromString(RegionName);
     args["region_xloc"] = OSD.FromString(RegionLocX.ToString());
     args["region_yloc"] = OSD.FromString(RegionLocY.ToString());
     if (RegionType != String.Empty)
         args["region_type"] = OSD.FromString(RegionType);
     args["region_size_x"] = OSD.FromInteger(RegionSizeX);
     args["region_size_y"] = OSD.FromInteger(RegionSizeY);
     args["region_size_z"] = OSD.FromInteger(RegionSizeZ);
     args["InfiniteRegion"] = OSD.FromBoolean(InfiniteRegion);
     args["scope_id"] = OSD.FromUUID(ScopeID);
     args["all_scope_ids"] = AllScopeIDs.ToOSDArray();
     args["object_capacity"] = OSD.FromInteger(m_objectCapacity);
     args["region_type"] = OSD.FromString(RegionType);
     args["see_into_this_sim_from_neighbor"] = OSD.FromBoolean(SeeIntoThisSimFromNeighbor);
     args["startupType"] = OSD.FromInteger((int) Startup);
     args["RegionSettings"] = RegionSettings.ToOSD();
     args["GridSecureSessionID"] = GridSecureSessionID;
     if (EnvironmentSettings != null)
         args["EnvironmentSettings"] = EnvironmentSettings;
     args["OpenRegionSettings"] = OpenRegionSettings.ToOSD();
     return args;
 }
Exemplo n.º 5
0
        public Dictionary <string, object> ToKeyValuePairs()
        {
            Dictionary <string, object> kvp = new Dictionary <string, object>();

            kvp["uuid"] = RegionID.ToString();
            kvp["locX"] = RegionLocX.ToString();
            kvp["locY"] = RegionLocY.ToString();
            kvp["external_ip_address"] = ExternalEndPoint.Address.ToString();
            kvp["external_port"]       = ExternalEndPoint.Port.ToString();
            kvp["external_host_name"]  = ExternalHostName;
            kvp["http_port"]           = HttpPort.ToString();
            kvp["internal_ip_address"] = InternalEndPoint.Address.ToString();
            kvp["internal_port"]       = InternalEndPoint.Port.ToString();
            kvp["alternate_ports"]     = m_allow_alternate_ports.ToString();
            kvp["server_uri"]          = ServerURI;

            return(kvp);
        }
Exemplo n.º 6
0
        public OSDMap PackRegionInfoData(bool secure)
        {
            OSDMap args = new OSDMap();

            args["region_id"] = OSD.FromUUID(RegionID);
            if ((RegionName != null) && !RegionName.Equals(""))
            {
                args["region_name"] = OSD.FromString(RegionName);
            }
            args["region_xloc"]         = OSD.FromString(RegionLocX.ToString());
            args["region_yloc"]         = OSD.FromString(RegionLocY.ToString());
            args["internal_ep_address"] = OSD.FromString(InternalEndPoint.Address.ToString());
            args["internal_ep_port"]    = OSD.FromString(InternalEndPoint.Port.ToString());
            if (RegionType != String.Empty)
            {
                args["region_type"] = OSD.FromString(RegionType);
            }
            args["password"]      = OSD.FromUUID(Password);
            args["region_size_x"] = OSD.FromInteger(RegionSizeX);
            args["region_size_y"] = OSD.FromInteger(RegionSizeY);
            args["region_size_z"] = OSD.FromInteger(RegionSizeZ);
#if (!ISWIN)
            OSDArray ports = new OSDArray(UDPPorts.ConvertAll <OSD>(delegate(int a) { return(a); }));
#else
            OSDArray ports = new OSDArray(UDPPorts.ConvertAll <OSD>(a => a));
#endif
            args["UDPPorts"]       = ports;
            args["InfiniteRegion"] = OSD.FromBoolean(InfiniteRegion);
            if (secure)
            {
                args["disabled"]        = OSD.FromBoolean(Disabled);
                args["scope_id"]        = OSD.FromUUID(ScopeID);
                args["object_capacity"] = OSD.FromInteger(m_objectCapacity);
                args["region_type"]     = OSD.FromString(RegionType);
                args["see_into_this_sim_from_neighbor"]  = OSD.FromBoolean(SeeIntoThisSimFromNeighbor);
                args["trust_binaries_from_foreign_sims"] = OSD.FromBoolean(TrustBinariesFromForeignSims);
                args["allow_script_crossing"]            = OSD.FromBoolean(AllowScriptCrossing);
                args["allow_physical_prims"]             = OSD.FromBoolean(AllowPhysicalPrims);
                args["number_startup"] = OSD.FromInteger(NumberStartup);
                args["startupType"]    = OSD.FromInteger((int)Startup);
                args["RegionSettings"] = RegionSettings.ToOSD();
            }
            return(args);
        }
Exemplo n.º 7
0
        public OSDMap PackRegionInfoData(bool secure)
        {
            OSDMap args = new OSDMap();

            args["region_id"] = OSD.FromUUID(RegionID);
            if ((RegionName != null) && !RegionName.Equals(""))
            {
                args["region_name"] = OSD.FromString(RegionName);
            }
            args["external_host_name"]  = OSD.FromString(ExternalHostName);
            args["http_port"]           = OSD.FromString(HttpPort.ToString());
            args["server_uri"]          = OSD.FromString(ServerURI);
            args["region_xloc"]         = OSD.FromString(RegionLocX.ToString());
            args["region_yloc"]         = OSD.FromString(RegionLocY.ToString());
            args["internal_ep_address"] = OSD.FromString(InternalEndPoint.Address.ToString());
            args["internal_ep_port"]    = OSD.FromString(InternalEndPoint.Port.ToString());
            args["allow_alt_ports"]     = OSD.FromBoolean(m_allow_alternate_ports);
            if (RegionType != String.Empty)
            {
                args["region_type"] = OSD.FromString(RegionType);
            }
            args["password"]      = OSD.FromUUID(Password);
            args["region_size_x"] = OSD.FromInteger(RegionSizeX);
            args["region_size_y"] = OSD.FromInteger(RegionSizeY);
            args["region_size_z"] = OSD.FromInteger(RegionSizeZ);
            if (secure)
            {
                args["disabled"]        = OSD.FromBoolean(Disabled);
                args["scope_id"]        = OSD.FromUUID(ScopeID);
                args["object_capacity"] = OSD.FromInteger(m_objectCapacity);
                args["region_type"]     = OSD.FromString(RegionType);
                args["see_into_this_sim_from_neighbor"]  = OSD.FromBoolean(SeeIntoThisSimFromNeighbor);
                args["trust_binaries_from_foreign_sims"] = OSD.FromBoolean(TrustBinariesFromForeignSims);
                args["allow_script_crossing"]            = OSD.FromBoolean(AllowScriptCrossing);
                args["allow_physical_prims"]             = OSD.FromBoolean(AllowPhysicalPrims);
                args["number_startup"] = OSD.FromInteger(NumberStartup);
                args["startupType"]    = OSD.FromInteger((int)Startup);
                args["FindExternalIP"] = OSD.FromBoolean(FindExternalAutomatically);
                args["RegionSettings"] = RegionSettings.ToOSD();
            }
            return(args);
        }
Exemplo n.º 8
0
        public Dictionary <string, object> ToKeyValuePairs()
        {
            Dictionary <string, object> kvp = new Dictionary <string, object>();

            kvp["uuid"]                 = RegionID.ToString();
            kvp["locX"]                 = RegionLocX.ToString();
            kvp["locY"]                 = RegionLocY.ToString();
            kvp["regionName"]           = RegionName;
            kvp["regionType"]           = RegionType;
            kvp["serverIP"]             = ExternalHostName; //ExternalEndPoint.Address.ToString();
            kvp["serverHttpPort"]       = HttpPort.ToString();
            kvp["serverURI"]            = ServerURI;
            kvp["serverPort"]           = InternalEndPoint.Port.ToString();
            kvp["regionMapTexture"]     = TerrainImage.ToString();
            kvp["regionTerrainTexture"] = TerrainMapImage.ToString();
            kvp["access"]               = Access.ToString();
            kvp["owner_uuid"]           = EstateOwner.ToString();
            kvp["Token"]                = AuthToken.ToString();
            kvp["sizeX"]                = RegionSizeX.ToString();
            kvp["sizeY"]                = RegionSizeY.ToString();
            return(kvp);
        }