コード例 #1
0
ファイル: Connections.cs プロジェクト: jhurliman/simian
        private void RegionHandshakeReplyHandler(Packet packet, LLAgent agent)
        {
            //FIXME: is this really where this belongs?

            EconomyDataPacket economy = new EconomyDataPacket();

            economy.Info.PriceUpload = 0;
            //TODO: populate economy.*

            m_udp.SendPacket(agent, economy, ThrottleCategory.Task, false);
        }
コード例 #2
0
ファイル: Settings.cs プロジェクト: mdickson/libopenmetaverse
        /// <summary>Process an incoming packet and raise the appropriate events</summary>
        /// <param name="sender">The sender</param>
        /// <param name="e">The EventArgs object containing the packet data</param>
        protected void EconomyDataHandler(object sender, PacketReceivedEventArgs e)
        {
            EconomyDataPacket econ = (EconomyDataPacket)e.Packet;

            priceUpload = econ.Info.PriceUpload;
        }
コード例 #3
0
ファイル: Settings.cs プロジェクト: xjc90s/libopenmetaverse
        /// <summary>
        /// Gets the cost of uploading an asset to the grid
        /// </summary>
        /// <param name="packet"></param>
        /// <param name="simulator"></param>
        private void EconomyDataHandler(Packet packet, Simulator simulator)
        {
            EconomyDataPacket econ = (EconomyDataPacket)packet;

            priceUpload = econ.Info.PriceUpload;
        }
コード例 #4
0
ファイル: Connections.cs プロジェクト: osgrid/openmetaverse
        private void RegionHandshakeReplyHandler(Packet packet, LLAgent agent)
        {
            //FIXME: is this really where this belongs?

            EconomyDataPacket economy = new EconomyDataPacket();
            economy.Info.PriceUpload = 0;
            //TODO: populate economy.*

            m_udp.SendPacket(agent, economy, ThrottleCategory.Task, false);
        }