示例#1
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;
 }
        public void SetSettings(UUID regionID, OpenRegionSettings settings)
        {
            IGenericsConnector connector = DataManager.DataManager.RequestPlugin<IGenericsConnector>();

            //Update the database
            if (connector != null)
                connector.AddGeneric(regionID, "OpenRegionSettings", "OpenRegionSettings", settings.ToOSD());
        }
        public void SetSettings(UUID regionID, OpenRegionSettings settings)
        {
            IGenericsConnector connector = DataManager.DataManager.RequestPlugin <IGenericsConnector>();

            //Update the database
            if (connector != null)
            {
                connector.AddGeneric(regionID, "OpenRegionSettings", "OpenRegionSettings", settings.ToOSD());
            }
        }