Ejemplo n.º 1
0
 void EconomyDataRequestHandler(IClientAPI remoteClient)
 {
     if (Config == null)
     {
         remoteClient.SendEconomyData(0, remoteClient.Scene.RegionInfo.ObjectCapacity,
                                      remoteClient.Scene.RegionInfo.ObjectCapacity,
                                      0, 0,
                                      0, 0,
                                      0, 0,
                                      0,
                                      0, 0,
                                      0, 0,
                                      0,
                                      0, 0);
     }
     else
     {
         remoteClient.SendEconomyData(0, remoteClient.Scene.RegionInfo.ObjectCapacity,
                                      remoteClient.Scene.RegionInfo.ObjectCapacity,
                                      0, Config.PriceGroupCreate,
                                      0, 0,
                                      0, 0,
                                      0,
                                      0, 0,
                                      0, 0,
                                      Config.PriceUpload,
                                      0, 0);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 ///     Event called Economy Data Request handler.
 /// </summary>
 /// <param name="remoteClient"></param>
 public void EconomyDataRequestHandler(IClientAPI remoteClient)
 {
     remoteClient.SendEconomyData(0, remoteClient.Scene.RegionInfo.ObjectCapacity, 0, 0, 0,
                                  0, 0, 0, 0, 0,
                                  0, 0, 0, 0, 0,
                                  0, 0);
 }
Ejemplo n.º 3
0
        /// <summary>
        /// Event called Economy Data Request handler.
        /// </summary>
        /// <param name="agentId"></param>
        public void EconomyDataRequestHandler(IClientAPI user)
        {
            Scene s = (Scene)user.Scene;

            user.SendEconomyData(EnergyEfficiency, s.RegionInfo.ObjectCapacity, ObjectCount, PriceEnergyUnit, PriceGroupCreate,
                                 PriceObjectClaim, PriceObjectRent, PriceObjectScaleFactor, PriceParcelClaim, PriceParcelClaimFactor,
                                 PriceParcelRent, PricePublicObjectDecay, PricePublicObjectDelete, PriceRentLight, PriceUpload,
                                 TeleportMinPrice, TeleportPriceExponent);
        }
Ejemplo n.º 4
0
        private void EconomyDataRequestHandler(IClientAPI remoteClient)
        {
            bool wasnull = (m_options == null);

            if (wasnull)
            {
                m_options = new StarDustConfig();
            }
            remoteClient.SendEconomyData(0, m_objectCapacity, remoteClient.Scene.RegionInfo.ObjectCapacity,
                                         m_options.PriceEnergyUnit, m_options.PriceGroupCreate,
                                         m_options.PriceObjectClaim, m_options.PriceObjectRent,
                                         m_options.PriceObjectScaleFactor, m_options.PriceParcelClaim,
                                         m_options.PriceParcelClaimFactor,
                                         m_options.PriceParcelRent, m_options.PricePublicObjectDecay,
                                         m_options.PricePublicObjectDelete, m_options.PriceRentLight,
                                         m_options.PriceUpload,
                                         m_options.TeleportMinPrice, m_options.TeleportPriceExponent);
            if (wasnull)
            {
                m_options = null;
            }
        }
 /// <summary>
 ///   Event called Economy Data Request handler.
 /// </summary>
 /// <param name = "agentId"></param>
 public void EconomyDataRequestHandler(IClientAPI remoteClient)
 {
     remoteClient.SendEconomyData(0, remoteClient.Scene.RegionInfo.ObjectCapacity, 0, 0, 0,
                                  0, 0, 0, 0, 0,
                                  0, 0, 0, 0, 0,
                                  0, 0);
 }
Ejemplo n.º 6
0
 private void EconomyDataRequestHandler(IClientAPI client, UUID agentID)
 {
     client.SendEconomyData(EnergyEfficiency, ObjectCapacity, ObjectCount, PriceEnergyUnit,
             PriceGroupCreate, PriceObjectClaim, PriceObjectRent, PriceObjectScaleFactor,
             PriceParcelClaim, PriceParcelClaimFactor, PriceParcelRent, PricePublicObjectDecay,
             PricePublicObjectDelete, PriceRentLight, PriceUpload, TeleportMinPrice, TeleportPriceExponent);
 }
Ejemplo n.º 7
0
        /// <summary>
        /// Event called Economy Data Request handler.
        /// </summary>
        /// <param name="agentId"></param>
        public void EconomyDataRequestHandler(IClientAPI user)
        {
            Scene s = (Scene)user.Scene;

            user.SendEconomyData(EnergyEfficiency, s.RegionInfo.ObjectCapacity, ObjectCount, PriceEnergyUnit, PriceGroupCreate,
                                 PriceObjectClaim, PriceObjectRent, PriceObjectScaleFactor, PriceParcelClaim, PriceParcelClaimFactor,
                                 PriceParcelRent, PricePublicObjectDecay, PricePublicObjectDelete, PriceRentLight, PriceUpload,
                                 TeleportMinPrice, TeleportPriceExponent);
        }
 void EconomyDataRequestHandler(IClientAPI remoteClient)
 {
     if (Config == null) {
         remoteClient.SendEconomyData (0, remoteClient.Scene.RegionInfo.ObjectCapacity,
             remoteClient.Scene.RegionInfo.ObjectCapacity,
             0, 0,
             0, 0,
             0, 0,
             0,
             0, 0,
             0, 0,
             0,
             0, 0);
     } else
         remoteClient.SendEconomyData (0, remoteClient.Scene.RegionInfo.ObjectCapacity,
             remoteClient.Scene.RegionInfo.ObjectCapacity,
             0, Config.PriceGroupCreate,
             0, 0,
             0, 0,
             0,
             0, 0,
             0, 0,
             Config.PriceUpload,
             0, 0);
 }