* Partial implementation of RezScript
* Ported LSL to C# conversion code from OpenSim. Big thank you to all of the OpenSim contributors
* Moved Simian scripting code to a new folder

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2518 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
John Hurliman
2009-03-20 00:19:32 +00:00
parent b8d7cdc027
commit 47c6034f9c
22 changed files with 31382 additions and 235 deletions

View File

@@ -294,6 +294,40 @@ namespace Simian
}
}
public static ObjectPropertiesPacket.ObjectDataBlock BuildPropertiesBlock(Primitive prim)
{
ObjectPropertiesPacket.ObjectDataBlock block = new ObjectPropertiesPacket.ObjectDataBlock();
block.AggregatePerms = prim.Properties.AggregatePerms;
block.AggregatePermTextures = prim.Properties.AggregatePermTextures;
block.AggregatePermTexturesOwner = prim.Properties.AggregatePermTexturesOwner;
block.BaseMask = (uint)prim.Properties.Permissions.BaseMask;
block.Category = (uint)prim.Properties.Category;
block.CreationDate = Utils.DateTimeToUnixTime(prim.Properties.CreationDate);
block.CreatorID = prim.Properties.CreatorID;
block.Description = Utils.StringToBytes(prim.Properties.Description);
block.EveryoneMask = (uint)prim.Properties.Permissions.EveryoneMask;
block.FolderID = prim.Properties.FolderID;
block.FromTaskID = prim.Properties.FromTaskID;
block.GroupID = prim.Properties.GroupID;
block.GroupMask = (uint)prim.Properties.Permissions.GroupMask;
block.InventorySerial = prim.Properties.InventorySerial;
block.ItemID = prim.Properties.ItemID;
block.LastOwnerID = prim.Properties.LastOwnerID;
block.Name = Utils.StringToBytes(prim.Properties.Name);
block.NextOwnerMask = (uint)prim.Properties.Permissions.NextOwnerMask;
block.ObjectID = prim.ID;
block.OwnerID = prim.Properties.OwnerID;
block.OwnerMask = (uint)prim.Properties.Permissions.OwnerMask;
block.OwnershipCost = prim.Properties.OwnershipCost;
block.SalePrice = prim.Properties.SalePrice;
block.SaleType = (byte)prim.Properties.SaleType;
block.SitName = Utils.StringToBytes(prim.Properties.SitName);
block.TextureID = prim.Properties.GetTextureIDBytes();
block.TouchName = Utils.StringToBytes(prim.Properties.TouchName);
return block;
}
public static ObjectUpdatePacket.ObjectDataBlock BuildUpdateBlock(Primitive prim, PrimFlags flags, uint crc)
{
byte[] objectData = new byte[60];