Updated the entire library (where appropriate) to use LLUUID.Zero, LLVector*.Zero, and LLQuaternion.Unit instead of creating new instances of the class

git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@528 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
John Hurliman
2006-11-07 23:30:09 +00:00
parent f001299254
commit 28ecfa5976
20 changed files with 125 additions and 88 deletions

View File

@@ -258,7 +258,7 @@ namespace libsecondlife.InventorySystem
// TODO: Either overload this method to allow inclusion of region info or
// overload the ImprovedInstantMessage in the avatar class to allow item payloads
p.MessageBlock.RegionID = new LLUUID();
p.MessageBlock.RegionID = LLUUID.Zero;
p.MessageBlock.ParentEstateID = (uint)0;
return p;
@@ -271,7 +271,7 @@ namespace libsecondlife.InventorySystem
CreateInventoryItemPacket p = new CreateInventoryItemPacket();
p.InventoryBlock.CallbackID = 0;
p.InventoryBlock.TransactionID = new LLUUID();
p.InventoryBlock.TransactionID = LLUUID.Zero;
p.InventoryBlock.WearableType = 0; //TODO: Specify the current type here
p.InventoryBlock.Type = iitem.Type;
@@ -362,7 +362,7 @@ namespace libsecondlife.InventorySystem
/* IDs */
CRC += iitem.AssetID.CRC(); // AssetID
CRC += iitem.FolderID.CRC(); // FolderID
CRC += iitem.ItemID==null?new LLUUID().CRC():iitem.ItemID.CRC(); // ItemID
CRC += iitem.ItemID == null ? LLUUID.Zero.CRC() : iitem.ItemID.CRC(); // ItemID
/* Permission stuff */
CRC += iitem.CreatorID.CRC(); // CreatorID