Updating Asset/Inv/Appearance to use some enums, and to be somewhat more fault tolerant.

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@979 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
Michael Cortez
2007-02-14 20:26:37 +00:00
parent a20e1dcd6c
commit ce524caf28
14 changed files with 143 additions and 25 deletions

View File

@@ -46,7 +46,7 @@ namespace libsecondlife.InventorySystem
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 != Asset.ASSET_TYPE_SCRIPT )
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;