private void HandleRegionInfoRequest(IClientAPI remote_client)
        {
            RegionInfoForEstateMenuArgs args = new RegionInfoForEstateMenuArgs
                                                   {
                                                       billableFactor = m_scene.RegionInfo.EstateSettings.BillableFactor,
                                                       estateID = m_scene.RegionInfo.EstateSettings.EstateID,
                                                       maxAgents = (byte) m_scene.RegionInfo.RegionSettings.AgentLimit,
                                                       objectBonusFactor =
                                                           (float) m_scene.RegionInfo.RegionSettings.ObjectBonus,
                                                       parentEstateID = m_scene.RegionInfo.EstateSettings.ParentEstateID,
                                                       pricePerMeter = m_scene.RegionInfo.EstateSettings.PricePerMeter,
                                                       redirectGridX = m_scene.RegionInfo.EstateSettings.RedirectGridX,
                                                       redirectGridY = m_scene.RegionInfo.EstateSettings.RedirectGridY,
                                                       regionFlags = GetRegionFlags(),
                                                       simAccess = m_scene.RegionInfo.AccessLevel,
                                                       sunHour = (float) m_scene.RegionInfo.RegionSettings.SunPosition,
                                                       terrainLowerLimit =
                                                           (float) m_scene.RegionInfo.RegionSettings.TerrainLowerLimit,
                                                       terrainRaiseLimit =
                                                           (float) m_scene.RegionInfo.RegionSettings.TerrainRaiseLimit,
                                                       useEstateSun = m_scene.RegionInfo.RegionSettings.UseEstateSun,
                                                       waterHeight =
                                                           (float) m_scene.RegionInfo.RegionSettings.WaterHeight,
                                                       simName = m_scene.RegionInfo.RegionName,
                                                       regionType = m_scene.RegionInfo.RegionType
                                                   };

            remote_client.SendRegionInfoToEstateMenu(args);
        }
Exemplo n.º 2
0
        /// <summary>
        ///   Tell the client about the changes
        /// </summary>
        /// <param name = "remote_client"></param>
        /// <param name = "m_scene"></param>
        private void HandleRegionInfoRequest(IClientAPI remote_client, IScene m_scene)
        {
            RegionInfoForEstateMenuArgs args = new RegionInfoForEstateMenuArgs
                                                   {
                                                       billableFactor = m_scene.RegionInfo.EstateSettings.BillableFactor,
                                                       estateID = m_scene.RegionInfo.EstateSettings.EstateID,
                                                       maxAgents = (byte) m_scene.RegionInfo.RegionSettings.AgentLimit,
                                                       objectBonusFactor =
                                                           (float) m_scene.RegionInfo.RegionSettings.ObjectBonus,
                                                       parentEstateID = m_scene.RegionInfo.EstateSettings.ParentEstateID,
                                                       pricePerMeter = m_scene.RegionInfo.EstateSettings.PricePerMeter,
                                                       redirectGridX = m_scene.RegionInfo.EstateSettings.RedirectGridX,
                                                       redirectGridY = m_scene.RegionInfo.EstateSettings.RedirectGridY
                                                   };

            IEstateModule estate = m_scene.RequestModuleInterface<IEstateModule>();
            args.regionFlags = estate == null ? 0 : (uint)estate.GetRegionFlags();

            args.simAccess = m_scene.RegionInfo.AccessLevel;
            args.sunHour = (float) m_scene.RegionInfo.RegionSettings.SunPosition;
            args.terrainLowerLimit = (float) m_scene.RegionInfo.RegionSettings.TerrainLowerLimit;
            args.terrainRaiseLimit = (float) m_scene.RegionInfo.RegionSettings.TerrainRaiseLimit;
            args.useEstateSun = m_scene.RegionInfo.RegionSettings.UseEstateSun;
            args.waterHeight = (float) m_scene.RegionInfo.RegionSettings.WaterHeight;
            args.simName = m_scene.RegionInfo.RegionName;
            args.regionType = m_scene.RegionInfo.RegionType;

            remote_client.SendRegionInfoToEstateMenu(args);
        }