Universe.Framework.SceneInfo.RegionSettings.FromOSD C# (CSharp) Method

FromOSD() public method

public FromOSD ( OSDMap map ) : void
map OSDMap
return void
        public void FromOSD(OSDMap map)
        {
            AgentLimit = map["AgentLimit"];
            AllowLandJoinDivide = map["AllowLandJoinDivide"];
            AllowLandResell = map["AllowLandResell"];
            BlockFly = map["BlockFly"];
            BlockShowInSearch = map["BlockShowInSearch"];
            BlockTerraform = map["BlockTerraform"];
            Covenant = map["Covenant"];
            CovenantLastUpdated = map["CovenantLastUpdated"];
            DisableCollisions = map["DisableCollisions"];
            DisablePhysics = map["DisablePhysics"];
            DisableScripts = map["DisableScripts"];
            Elevation1NE = map["Elevation1NE"];
            Elevation1NW = map["Elevation1NW"];
            Elevation1SE = map["Elevation1SE"];
            Elevation1SW = map["Elevation1SW"];
            Elevation2NE = map["Elevation2NE"];
            Elevation2NW = map["Elevation2NW"];
            Elevation2SE = map["Elevation2SE"];
            Elevation2SW = map["Elevation2SW"];
            FixedSun = map["FixedSun"];
            LoadedCreationDateTime = map["LoadedCreationDateTime"];
            LoadedCreationID = map["LoadedCreationID"];
            Maturity = map["Maturity"];
            MinimumAge = map["MinimumAge"];
            ObjectBonus = map["ObjectBonus"];
            RegionUUID = map["RegionUUID"];
            RestrictPushing = map["RestrictPushing"];
            Sandbox = map["Sandbox"];
            SunPosition = map["SunPosition"];
            SunVector = map["SunVector"];
            TerrainImageID = map["TerrainImageID"];
            TerrainMapImageID = map["TerrainMapImageID"];
            TerrainMapLastRegenerated = map["TerrainMapLastRegenerated"];
            ParcelMapImageID = map["ParcelMapImageID"];
            TerrainLowerLimit = map["TerrainLowerLimit"];
            TerrainRaiseLimit = map["TerrainRaiseLimit"];
            TerrainTexture1 = map["TerrainTexture1"];
            TerrainTexture2 = map["TerrainTexture2"];
            TerrainTexture3 = map["TerrainTexture3"];
            TerrainTexture4 = map["TerrainTexture4"];
            UseEstateSun = map["UseEstateSun"];
            WaterHeight = map["WaterHeight"];
            if (map.ContainsKey ("TeleHub"))
            {
                TeleHub = new Telehub ();
                TeleHub.FromOSD ((OSDMap)map ["Telehub"]);
            }

        }
    }

Usage Example

Example #1
0
        public void UnpackRegionInfoData(OSDMap args)
        {
            if (args.ContainsKey("region_id"))
                RegionID = args["region_id"].AsUUID();
            if (args.ContainsKey("region_name"))
                RegionName = args["region_name"].AsString();
            if (args.ContainsKey("http_port"))
                UInt32.TryParse(args["http_port"].AsString(), out m_httpPort);
            if (args.ContainsKey("region_xloc"))
            {
                int locx;
                Int32.TryParse(args["region_xloc"].AsString(), out locx);
                RegionLocX = locx;
            }
            if (args.ContainsKey("region_yloc"))
            {
                int locy;
                Int32.TryParse(args["region_yloc"].AsString(), out locy);
                RegionLocY = locy;
            }
            if (args.ContainsKey("region_type"))
                m_regionType = args["region_type"].AsString();

            if (args.ContainsKey("scope_id"))
                ScopeID = args["scope_id"].AsUUID();
            if (args.ContainsKey("all_scope_ids"))
                AllScopeIDs = ((OSDArray) args["all_scope_ids"]).ConvertAll<UUID>(o => o);

            if (args.ContainsKey("region_size_x"))
                RegionSizeX = args["region_size_x"].AsInteger();
            if (args.ContainsKey("region_size_y"))
                RegionSizeY = args["region_size_y"].AsInteger();
            if (args.ContainsKey("region_size_z"))
                RegionSizeZ = args["region_size_z"].AsInteger();

            if (args.ContainsKey("object_capacity"))
                m_objectCapacity = args["object_capacity"].AsInteger();
            if (args.ContainsKey("region_type"))
                RegionType = args["region_type"].AsString();
            if (args.ContainsKey("see_into_this_sim_from_neighbor"))
                SeeIntoThisSimFromNeighbor = args["see_into_this_sim_from_neighbor"].AsBoolean();
            if (args.ContainsKey("startupType"))
                Startup = (StartupType) args["startupType"].AsInteger();
            if (args.ContainsKey("InfiniteRegion"))
                InfiniteRegion = args["InfiniteRegion"].AsBoolean();
            if (args.ContainsKey("RegionSettings"))
            {
                RegionSettings = new RegionSettings();
                RegionSettings.FromOSD((OSDMap) args["RegionSettings"]);
            }
            if (args.ContainsKey("GridSecureSessionID"))
                GridSecureSessionID = args["GridSecureSessionID"];
            if (args.ContainsKey("OpenRegionSettings"))
            {
                OpenRegionSettings = new OpenRegionSettings();
                OpenRegionSettings.FromOSD((OSDMap) args["OpenRegionSettings"]);
            }
            else
                OpenRegionSettings = new OpenRegionSettings();
            if (args.ContainsKey("EnvironmentSettings"))
                EnvironmentSettings = args["EnvironmentSettings"];
            if (args.ContainsKey("region_terrain"))
                m_regionTerrain = args["region_terrain"].AsString();
            if (args.ContainsKey("region_area"))
                RegionArea = (uint) args["region_area"].AsInteger();
        }
All Usage Examples Of Universe.Framework.SceneInfo.RegionSettings::FromOSD