Package com.ngt.jopenmetaverse.shared.sim.events.asm

Examples of com.ngt.jopenmetaverse.shared.sim.events.asm.AssetDownload


              MethodDelegate<Void, AssetReceivedCallbackArgs> assetReceivedCallback
              = new MethodDelegate<Void, AssetReceivedCallbackArgs>()
              {
                public Void execute(AssetReceivedCallbackArgs e) {
                  AssetDownload transfer = e.getTransfer();
                  Asset asset = e.getAsset();
                  if (transfer.Success && asset instanceof AssetWearable)
                  {
                    // Update this wearable with the freshly downloaded asset
                    wearable.Asset = (AssetWearable)asset;
View Full Code Here


    /// <param name="callback">The callback to fire when the simulator responds with the asset data</param>
    public void RequestAsset(UUID assetID, AssetType type, boolean priority,
        SourceType sourceType, UUID transactionID,
        MethodDelegate<Void, AssetReceivedCallbackArgs> callback)
    {
        AssetDownload transfer = new AssetDownload();
        transfer.ID = transactionID;
        transfer.AssetID = assetID;
        //transfer.AssetType = type; // Set in TransferInfoHandler.
        transfer.Priority = 100.0f + (priority ? 1.0f : 0.0f);
        transfer.Channel = ChannelType.Asset;
View Full Code Here

    /// <param name="callback"></param>
    public void RequestInventoryAsset(UUID assetID, UUID itemID, UUID taskID,
        UUID ownerID, AssetType type, boolean priority,
        MethodDelegate<Void, AssetReceivedCallbackArgs> callback)
    {
        AssetDownload transfer = new AssetDownload();
        transfer.ID = UUID.Random();
        transfer.AssetID = assetID;
        //transfer.AssetType = type; // Set in TransferInfoHandler.
        transfer.Priority = 100.0f + (priority ? 1.0f : 0.0f);
        transfer.Channel = ChannelType.Asset;
View Full Code Here

    /// <param name="e">The EventArgs object containing the packet data</param>
    protected void TransferInfoHandler(Object sender, PacketReceivedEventArgs e)
    {
        TransferInfoPacket info = (TransferInfoPacket)e.getPacket();
        Transfer transfer;
        AssetDownload download;

        if ((transfer = Transfers.get(info.TransferInfo.TransferID))!=null)
        {
            download = (AssetDownload)transfer;
View Full Code Here

    /// <param name="e">The EventArgs object containing the packet data</param>
    protected void TransferPacketHandler(Object sender, PacketReceivedEventArgs e) throws InterruptedException
    {
        TransferPacketPacket asset = (TransferPacketPacket)e.getPacket();
        Transfer transfer;
        AssetDownload download;

        if ((transfer = Transfers.get(asset.TransferData.TransferID))!=null)
        {
            download = (AssetDownload)transfer;
View Full Code Here

TOP

Related Classes of com.ngt.jopenmetaverse.shared.sim.events.asm.AssetDownload

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.