Package com.ngt.jopenmetaverse.shared.types.Enums

Examples of com.ngt.jopenmetaverse.shared.types.Enums.AssetType


                    folder.OwnerID = descFolder.get("agent_id").asUUID();
                    folder.ParentUUID = descFolder.get("parent_id").asUUID();
                    folder.Name = descFolder.get("name").asString();
                    folder.Version = descFolder.get("version").asInteger();
                    AssetType a;

                    folder.PreferredType = AssetType.get((byte)descFolder.get("type_default").asInteger());
                  }

                  // Fetch descendent items
View Full Code Here


   
              // In practice this appears to only be used for folders
              UUID itemID = UUID.Zero;
              UUID parentID = UUID.Zero;
              String name = "";
              AssetType assetType = AssetType.Unknown;
   
              while (lineNum < lines.length)
              {
                if (ParseLine(lines[lineNum++], key, value))
                {
                  if (key[0].equals("{"))
                  {
                    continue;
                  }
                  else if (key[0].equals("}"))
                  {
                    break;
                  }
                  else if (key[0].equals("obj_id"))
                  {
                    itemID= UUID.Parse(value[0]);
                  }
                  else if (key[0].equals("parent_id"))
                  {
                    parentID= UUID.Parse(value[0]);
                  }
                  else if (key[0].equals("type"))
                  {
                    assetType = Utils.StringToAssetType(value[0]);
                  }
                  else if (key[0].equals("name"))
                  {
                    name = value[0].substring(0, value[0].indexOf('|'));
                  }
                }
              }
   
              if (assetType == AssetType.Folder)
              {
                InventoryFolder folder = new InventoryFolder(itemID);
                folder.Name = name;
                folder.ParentUUID = parentID;
   
                items.add(folder);
              }
              else
              {
                InventoryItem item = new InventoryItem(itemID);
                item.Name = name;
                item.ParentUUID = parentID;
                item.AssetType = assetType;
   
                items.add(item);
              }
   
              //endregion inv_object
            }
            else if (key.equals("inv_item"))
            {
              //region inv_item
   
              // Any inventory item that links to an assetID, has permissions, etc
              UUID itemID = UUID.Zero;
              UUID assetID = UUID.Zero;
              UUID parentID = UUID.Zero;
              UUID creatorID = UUID.Zero;
              UUID ownerID = UUID.Zero;
              UUID lastOwnerID = UUID.Zero;
              UUID groupID = UUID.Zero;
              boolean groupOwned = false;
              String name = "";
              String desc = "";
              AssetType assetType = AssetType.Unknown;
              InventoryType inventoryType = InventoryType.Unknown;
              Date creationDate = Utils.Epoch;
              //uint
              long flags = 0;
              Permissions perms = Permissions.NoPermissions;
View Full Code Here

    if (onInventoryObjectOffered != null &&
        (e.getIM().Dialog == InstantMessageDialog.InventoryOffered
        || e.getIM().Dialog == InstantMessageDialog.TaskInventoryOffered))
    {
      AssetType type = AssetType.Unknown;
      UUID objectID = UUID.Zero;
      boolean fromTask = false;

      if (e.getIM().Dialog == InstantMessageDialog.InventoryOffered)
      {
View Full Code Here

            UUID uuid;
            uuid = UUID.Parse(filename.substring(0, filename.length() - extension.length()));

            if (ArchiveConstants.EXTENSION_TO_ASSET_TYPE.containsKey(extension))
            {
                AssetType assetType = ArchiveConstants.EXTENSION_TO_ASSET_TYPE.get(extension);
                Asset asset = null;

                switch (assetType)
                {
                    case Animation:
View Full Code Here

                    Permissions permissions = Permissions.NoPermissions;
                    int salePrice = 0;
                    SaleType saleType = SaleType.Not;
                    UUID parentUUID = UUID.Zero;
                    UUID assetUUID = UUID.Zero;
                    AssetType assetType = AssetType.Unknown;
                    InventoryType inventoryType = InventoryType.Unknown;
                    //uint
                    long flags = 0;
                    String name = "";
                    String description = "";
View Full Code Here

TOP

Related Classes of com.ngt.jopenmetaverse.shared.types.Enums.AssetType

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.