diff options
author | Teravus Ovares | 2008-04-30 16:08:24 +0000 |
---|---|---|
committer | Teravus Ovares | 2008-04-30 16:08:24 +0000 |
commit | a9cc76e0efba7496909d613c75b81de6a9c5d979 (patch) | |
tree | e83763d4dfb3b78ead9b5926dce1d2468b496845 /OpenSim/Region/ClientStack | |
parent | move IUserService into the OpenSim.Framework.Communications assembly (diff) | |
download | opensim-SC-a9cc76e0efba7496909d613c75b81de6a9c5d979.zip opensim-SC-a9cc76e0efba7496909d613c75b81de6a9c5d979.tar.gz opensim-SC-a9cc76e0efba7496909d613c75b81de6a9c5d979.tar.bz2 opensim-SC-a9cc76e0efba7496909d613c75b81de6a9c5d979.tar.xz |
* Long awaited patch from A_Biondi Mantis 923. Kept alive by Melanie. Thanks A_Biondi and Melanie!
* This builds but might not work. JustinCC will examine.. it may work out of the box.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ClientStack/ClientView.cs | 84 |
1 files changed, 59 insertions, 25 deletions
diff --git a/OpenSim/Region/ClientStack/ClientView.cs b/OpenSim/Region/ClientStack/ClientView.cs index aac96d1..010a37f 100644 --- a/OpenSim/Region/ClientStack/ClientView.cs +++ b/OpenSim/Region/ClientStack/ClientView.cs | |||
@@ -1284,21 +1284,25 @@ namespace OpenSim.Region.ClientStack | |||
1284 | descend.ItemData[i].AssetID = item.AssetID; | 1284 | descend.ItemData[i].AssetID = item.AssetID; |
1285 | descend.ItemData[i].CreatorID = item.Creator; | 1285 | descend.ItemData[i].CreatorID = item.Creator; |
1286 | descend.ItemData[i].BaseMask = item.BasePermissions; | 1286 | descend.ItemData[i].BaseMask = item.BasePermissions; |
1287 | descend.ItemData[i].CreationDate = 1000; | ||
1288 | descend.ItemData[i].Description = Helpers.StringToField(item.Description); | 1287 | descend.ItemData[i].Description = Helpers.StringToField(item.Description); |
1289 | descend.ItemData[i].EveryoneMask = item.EveryOnePermissions; | 1288 | descend.ItemData[i].EveryoneMask = item.EveryOnePermissions; |
1290 | descend.ItemData[i].Flags = 1; | 1289 | descend.ItemData[i].OwnerMask = item.CurrentPermissions; |
1291 | descend.ItemData[i].FolderID = item.Folder; | 1290 | descend.ItemData[i].FolderID = item.Folder; |
1292 | descend.ItemData[i].GroupID = new LLUUID("00000000-0000-0000-0000-000000000000"); | 1291 | descend.ItemData[i].InvType = (sbyte)item.InvType; |
1293 | descend.ItemData[i].GroupMask = 0; | ||
1294 | descend.ItemData[i].InvType = (sbyte) item.InvType; | ||
1295 | descend.ItemData[i].Name = Helpers.StringToField(item.Name); | 1292 | descend.ItemData[i].Name = Helpers.StringToField(item.Name); |
1296 | descend.ItemData[i].NextOwnerMask = item.NextPermissions; | 1293 | descend.ItemData[i].NextOwnerMask = item.NextPermissions; |
1297 | descend.ItemData[i].OwnerID = item.Owner; | 1294 | descend.ItemData[i].OwnerID = item.Owner; |
1298 | descend.ItemData[i].OwnerMask = item.CurrentPermissions; | 1295 | descend.ItemData[i].Type = (sbyte)item.AssetType; |
1299 | descend.ItemData[i].SalePrice = 0; | 1296 | |
1300 | descend.ItemData[i].SaleType = 0; | 1297 | //descend.ItemData[i].GroupID = new LLUUID("00000000-0000-0000-0000-000000000000"); |
1301 | descend.ItemData[i].Type = (sbyte) item.AssetType; | 1298 | descend.ItemData[i].GroupID = item.GroupID; |
1299 | descend.ItemData[i].GroupOwned = item.GroupOwned; | ||
1300 | descend.ItemData[i].GroupMask = 0; | ||
1301 | descend.ItemData[i].CreationDate = item.CreationDate; | ||
1302 | descend.ItemData[i].SalePrice = item.SalePrice; | ||
1303 | descend.ItemData[i].SaleType = item.SaleType; | ||
1304 | descend.ItemData[i].Flags = item.Flags; | ||
1305 | |||
1302 | descend.ItemData[i].CRC = | 1306 | descend.ItemData[i].CRC = |
1303 | Helpers.InventoryCRC(descend.ItemData[i].CreationDate, descend.ItemData[i].SaleType, | 1307 | Helpers.InventoryCRC(descend.ItemData[i].CreationDate, descend.ItemData[i].SaleType, |
1304 | descend.ItemData[i].InvType, descend.ItemData[i].Type, | 1308 | descend.ItemData[i].InvType, descend.ItemData[i].Type, |
@@ -1433,18 +1437,22 @@ namespace OpenSim.Region.ClientStack | |||
1433 | (int)(DateTime.UtcNow - new DateTime(1970, 1, 1)).TotalSeconds; | 1437 | (int)(DateTime.UtcNow - new DateTime(1970, 1, 1)).TotalSeconds; |
1434 | inventoryReply.InventoryData[0].Description = Helpers.StringToField(item.Description); | 1438 | inventoryReply.InventoryData[0].Description = Helpers.StringToField(item.Description); |
1435 | inventoryReply.InventoryData[0].EveryoneMask = item.EveryOnePermissions; | 1439 | inventoryReply.InventoryData[0].EveryoneMask = item.EveryOnePermissions; |
1436 | inventoryReply.InventoryData[0].Flags = 0; | ||
1437 | inventoryReply.InventoryData[0].FolderID = item.Folder; | 1440 | inventoryReply.InventoryData[0].FolderID = item.Folder; |
1438 | inventoryReply.InventoryData[0].GroupID = new LLUUID("00000000-0000-0000-0000-000000000000"); | ||
1439 | inventoryReply.InventoryData[0].GroupMask = 0; | ||
1440 | inventoryReply.InventoryData[0].InvType = (sbyte)item.InvType; | 1441 | inventoryReply.InventoryData[0].InvType = (sbyte)item.InvType; |
1441 | inventoryReply.InventoryData[0].Name = Helpers.StringToField(item.Name); | 1442 | inventoryReply.InventoryData[0].Name = Helpers.StringToField(item.Name); |
1442 | inventoryReply.InventoryData[0].NextOwnerMask = item.NextPermissions; | 1443 | inventoryReply.InventoryData[0].NextOwnerMask = item.NextPermissions; |
1443 | inventoryReply.InventoryData[0].OwnerID = item.Owner; | 1444 | inventoryReply.InventoryData[0].OwnerID = item.Owner; |
1444 | inventoryReply.InventoryData[0].OwnerMask = item.CurrentPermissions; | 1445 | inventoryReply.InventoryData[0].OwnerMask = item.CurrentPermissions; |
1445 | inventoryReply.InventoryData[0].SalePrice = 0; | ||
1446 | inventoryReply.InventoryData[0].SaleType = 0; | ||
1447 | inventoryReply.InventoryData[0].Type = (sbyte)item.AssetType; | 1446 | inventoryReply.InventoryData[0].Type = (sbyte)item.AssetType; |
1447 | |||
1448 | //inventoryReply.InventoryData[0].GroupID = new LLUUID("00000000-0000-0000-0000-000000000000"); | ||
1449 | inventoryReply.InventoryData[0].GroupID = item.GroupID; | ||
1450 | inventoryReply.InventoryData[0].GroupOwned = item.GroupOwned; | ||
1451 | inventoryReply.InventoryData[0].GroupMask = 0; | ||
1452 | inventoryReply.InventoryData[0].Flags = item.Flags; | ||
1453 | inventoryReply.InventoryData[0].SalePrice = item.SalePrice; | ||
1454 | inventoryReply.InventoryData[0].SaleType = item.SaleType; | ||
1455 | |||
1448 | inventoryReply.InventoryData[0].CRC = | 1456 | inventoryReply.InventoryData[0].CRC = |
1449 | Helpers.InventoryCRC(1000, 0, inventoryReply.InventoryData[0].InvType, | 1457 | Helpers.InventoryCRC(1000, 0, inventoryReply.InventoryData[0].InvType, |
1450 | inventoryReply.InventoryData[0].Type, inventoryReply.InventoryData[0].AssetID, | 1458 | inventoryReply.InventoryData[0].Type, inventoryReply.InventoryData[0].AssetID, |
@@ -1484,18 +1492,22 @@ namespace OpenSim.Region.ClientStack | |||
1484 | bulkUpdate.ItemData[0].CreationDate = 1000; | 1492 | bulkUpdate.ItemData[0].CreationDate = 1000; |
1485 | bulkUpdate.ItemData[0].Description = Helpers.StringToField(item.Description); | 1493 | bulkUpdate.ItemData[0].Description = Helpers.StringToField(item.Description); |
1486 | bulkUpdate.ItemData[0].EveryoneMask = item.EveryOnePermissions; | 1494 | bulkUpdate.ItemData[0].EveryoneMask = item.EveryOnePermissions; |
1487 | bulkUpdate.ItemData[0].Flags = 0; | ||
1488 | bulkUpdate.ItemData[0].FolderID = item.Folder; | 1495 | bulkUpdate.ItemData[0].FolderID = item.Folder; |
1489 | bulkUpdate.ItemData[0].GroupID = new LLUUID("00000000-0000-0000-0000-000000000000"); | ||
1490 | bulkUpdate.ItemData[0].GroupMask = 0; | ||
1491 | bulkUpdate.ItemData[0].InvType = (sbyte)item.InvType; | 1496 | bulkUpdate.ItemData[0].InvType = (sbyte)item.InvType; |
1492 | bulkUpdate.ItemData[0].Name = Helpers.StringToField(item.Name); | 1497 | bulkUpdate.ItemData[0].Name = Helpers.StringToField(item.Name); |
1493 | bulkUpdate.ItemData[0].NextOwnerMask = item.NextPermissions; | 1498 | bulkUpdate.ItemData[0].NextOwnerMask = item.NextPermissions; |
1494 | bulkUpdate.ItemData[0].OwnerID = item.Owner; | 1499 | bulkUpdate.ItemData[0].OwnerID = item.Owner; |
1495 | bulkUpdate.ItemData[0].OwnerMask = item.CurrentPermissions; | 1500 | bulkUpdate.ItemData[0].OwnerMask = item.CurrentPermissions; |
1496 | bulkUpdate.ItemData[0].SalePrice = 100; | ||
1497 | bulkUpdate.ItemData[0].SaleType = 0; | ||
1498 | bulkUpdate.ItemData[0].Type = (sbyte)item.AssetType; | 1501 | bulkUpdate.ItemData[0].Type = (sbyte)item.AssetType; |
1502 | |||
1503 | //bulkUpdate.ItemData[0].GroupID = new LLUUID("00000000-0000-0000-0000-000000000000"); | ||
1504 | bulkUpdate.ItemData[0].GroupID = item.GroupID; | ||
1505 | bulkUpdate.ItemData[0].GroupOwned = item.GroupOwned; | ||
1506 | bulkUpdate.ItemData[0].GroupMask = 0; | ||
1507 | bulkUpdate.ItemData[0].Flags = item.Flags; | ||
1508 | bulkUpdate.ItemData[0].SalePrice = item.SalePrice; | ||
1509 | bulkUpdate.ItemData[0].SaleType = item.SaleType; | ||
1510 | |||
1499 | bulkUpdate.ItemData[0].CRC = | 1511 | bulkUpdate.ItemData[0].CRC = |
1500 | Helpers.InventoryCRC(1000, 0, bulkUpdate.ItemData[0].InvType, | 1512 | Helpers.InventoryCRC(1000, 0, bulkUpdate.ItemData[0].InvType, |
1501 | bulkUpdate.ItemData[0].Type, bulkUpdate.ItemData[0].AssetID, | 1513 | bulkUpdate.ItemData[0].Type, bulkUpdate.ItemData[0].AssetID, |
@@ -1526,21 +1538,24 @@ namespace OpenSim.Region.ClientStack | |||
1526 | InventoryReply.InventoryData[0].AssetID = Item.AssetID; | 1538 | InventoryReply.InventoryData[0].AssetID = Item.AssetID; |
1527 | InventoryReply.InventoryData[0].CreatorID = Item.Creator; | 1539 | InventoryReply.InventoryData[0].CreatorID = Item.Creator; |
1528 | InventoryReply.InventoryData[0].BaseMask = Item.BasePermissions; | 1540 | InventoryReply.InventoryData[0].BaseMask = Item.BasePermissions; |
1529 | InventoryReply.InventoryData[0].CreationDate = 1000; | ||
1530 | InventoryReply.InventoryData[0].Description = Helpers.StringToField(Item.Description); | 1541 | InventoryReply.InventoryData[0].Description = Helpers.StringToField(Item.Description); |
1531 | InventoryReply.InventoryData[0].EveryoneMask = Item.EveryOnePermissions; | 1542 | InventoryReply.InventoryData[0].EveryoneMask = Item.EveryOnePermissions; |
1532 | InventoryReply.InventoryData[0].Flags = 0; | ||
1533 | InventoryReply.InventoryData[0].FolderID = Item.Folder; | 1543 | InventoryReply.InventoryData[0].FolderID = Item.Folder; |
1534 | InventoryReply.InventoryData[0].GroupID = new LLUUID("00000000-0000-0000-0000-000000000000"); | ||
1535 | InventoryReply.InventoryData[0].GroupMask = 0; | ||
1536 | InventoryReply.InventoryData[0].InvType = (sbyte)Item.InvType; | 1544 | InventoryReply.InventoryData[0].InvType = (sbyte)Item.InvType; |
1537 | InventoryReply.InventoryData[0].Name = Helpers.StringToField(Item.Name); | 1545 | InventoryReply.InventoryData[0].Name = Helpers.StringToField(Item.Name); |
1538 | InventoryReply.InventoryData[0].NextOwnerMask = Item.NextPermissions; | 1546 | InventoryReply.InventoryData[0].NextOwnerMask = Item.NextPermissions; |
1539 | InventoryReply.InventoryData[0].OwnerID = Item.Owner; | 1547 | InventoryReply.InventoryData[0].OwnerID = Item.Owner; |
1540 | InventoryReply.InventoryData[0].OwnerMask = Item.CurrentPermissions; | 1548 | InventoryReply.InventoryData[0].OwnerMask = Item.CurrentPermissions; |
1541 | InventoryReply.InventoryData[0].SalePrice = 100; | ||
1542 | InventoryReply.InventoryData[0].SaleType = 0; | ||
1543 | InventoryReply.InventoryData[0].Type = (sbyte)Item.AssetType; | 1549 | InventoryReply.InventoryData[0].Type = (sbyte)Item.AssetType; |
1550 | |||
1551 | //InventoryReply.InventoryData[0].GroupID = new LLUUID("00000000-0000-0000-0000-000000000000"); | ||
1552 | InventoryReply.InventoryData[0].GroupID = Item.GroupID; | ||
1553 | InventoryReply.InventoryData[0].GroupOwned = Item.GroupOwned; | ||
1554 | InventoryReply.InventoryData[0].GroupMask = 0; | ||
1555 | InventoryReply.InventoryData[0].Flags = Item.Flags; | ||
1556 | InventoryReply.InventoryData[0].SalePrice = Item.SalePrice; | ||
1557 | InventoryReply.InventoryData[0].SaleType = Item.SaleType; | ||
1558 | |||
1544 | InventoryReply.InventoryData[0].CRC = | 1559 | InventoryReply.InventoryData[0].CRC = |
1545 | Helpers.InventoryCRC(1000, 0, InventoryReply.InventoryData[0].InvType, | 1560 | Helpers.InventoryCRC(1000, 0, InventoryReply.InventoryData[0].InvType, |
1546 | InventoryReply.InventoryData[0].Type, InventoryReply.InventoryData[0].AssetID, | 1561 | InventoryReply.InventoryData[0].Type, InventoryReply.InventoryData[0].AssetID, |
@@ -4162,11 +4177,30 @@ namespace OpenSim.Region.ClientStack | |||
4162 | 4177 | ||
4163 | if (handlerUpdateInventoryItem != null) | 4178 | if (handlerUpdateInventoryItem != null) |
4164 | { | 4179 | { |
4180 | InventoryItemBase itemUpd = new InventoryItemBase(); | ||
4181 | itemUpd.ID = update.InventoryData[i].ItemID; | ||
4182 | itemUpd.Name = Util.FieldToString(update.InventoryData[i].Name); | ||
4183 | itemUpd.Description = Util.FieldToString(update.InventoryData[i].Description); | ||
4184 | itemUpd.GroupID = update.InventoryData[i].GroupID; | ||
4185 | itemUpd.GroupOwned = update.InventoryData[i].GroupOwned; | ||
4186 | itemUpd.NextPermissions = update.InventoryData[i].NextOwnerMask; | ||
4187 | itemUpd.EveryOnePermissions = update.InventoryData[i].EveryoneMask; | ||
4188 | itemUpd.CreationDate = update.InventoryData[i].CreationDate; | ||
4189 | itemUpd.Folder = update.InventoryData[i].FolderID; | ||
4190 | itemUpd.InvType = update.InventoryData[i].InvType; | ||
4191 | itemUpd.SalePrice = update.InventoryData[i].SalePrice; | ||
4192 | itemUpd.SaleType = update.InventoryData[i].SaleType; | ||
4193 | itemUpd.Flags = update.InventoryData[i].Flags; | ||
4194 | /* | ||
4165 | OnUpdateInventoryItem(this, update.InventoryData[i].TransactionID, | 4195 | OnUpdateInventoryItem(this, update.InventoryData[i].TransactionID, |
4166 | update.InventoryData[i].ItemID, | 4196 | update.InventoryData[i].ItemID, |
4167 | Util.FieldToString(update.InventoryData[i].Name), | 4197 | Util.FieldToString(update.InventoryData[i].Name), |
4168 | Util.FieldToString(update.InventoryData[i].Description), | 4198 | Util.FieldToString(update.InventoryData[i].Description), |
4169 | update.InventoryData[i].NextOwnerMask); | 4199 | update.InventoryData[i].NextOwnerMask); |
4200 | */ | ||
4201 | OnUpdateInventoryItem(this, update.InventoryData[i].TransactionID, | ||
4202 | update.InventoryData[i].ItemID, | ||
4203 | itemUpd); | ||
4170 | } | 4204 | } |
4171 | } | 4205 | } |
4172 | } | 4206 | } |