Esempio n. 1
0
 public InventoryScript(InventoryManager manager, InventoryItem ii)
     : base(manager, ii.Name, ii.Description, ii.FolderID, ii.InvType, ii.Type, ii.CreatorID)
 {
     if (ii.InvType != 10 || ii.Type != (sbyte)Asset.AssetType.LSLText)
         throw new Exception("The InventoryItem cannot be converted to a Script, wrong InvType/Type.");
     this.iManager = manager;
     this._ItemID = ii._ItemID;
     this._Asset = ii._Asset;
     this._AssetID = ii._AssetID;
     this._BaseMask = ii._BaseMask;
     this._CRC = ii._CRC;
     this._CreationDate = ii._CreationDate;
     this._EveryoneMask = ii._EveryoneMask;
     this._Flags = ii._Flags;
     this._GroupID = ii._GroupID;
     this._GroupMask = ii._GroupMask;
     this._GroupOwned = ii._GroupOwned;
     this._InvType = ii._InvType;
     this._NextOwnerMask = ii._NextOwnerMask;
     this._OwnerID = ii._OwnerID;
     this._OwnerMask = ii._OwnerMask;
     this._SalePrice = ii._SalePrice;
     this._SaleType = ii._SaleType;
     this._Type = ii._Type;
 }
Esempio n. 2
0
 /// <summary>
 /// Default constructor
 /// </summary>
 public SecondLife()
 {
     // These are order-dependant
     Network = new NetworkManager(this);
     Settings = new Settings(this);
     Parcels = new ParcelManager(this);
     Self = new MainAvatar(this);
     Avatars = new AvatarManager(this);
     Friends = new FriendManager(this);
     Grid = new GridManager(this);
     Objects = new ObjectManager(this);
     Groups = new GroupManager(this);
     Assets = new libsecondlife.AssetSystem.AssetManager(this);
     Appearance = new libsecondlife.AssetSystem.AppearanceManager(this);
     Images = new ImageManager(this);
     Inventory = new InventoryManager(this);
     Directory = new DirectoryManager(this);
     Terrain = new TerrainManager(this);
     Throttle = new AgentThrottle(this);
 }
Esempio n. 3
0
 public InventoryScript(InventoryManager manager, string name, string description, LLUUID folderID, LLUUID uuidOwnerCreater)
     : base(manager, name, description, folderID, 10, 10, uuidOwnerCreater)
 {
 }