LIBOMV-540 Adds parameter to CopyScriptToTask method which allows the scripts running state to be set.

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@2758 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
Jim Radford
2009-05-13 21:27:38 +00:00
parent 8290681242
commit f2dbbb00b6
4 changed files with 57 additions and 12 deletions

View File

@@ -45,17 +45,17 @@ namespace OpenMetaverse.TestClient
using (StreamReader reader = new StreamReader(file))
{
string body = reader.ReadToEnd();
string desc = String.Format("{0} created by OpenMetaverse BotClient {1}", file, DateTime.Now);
string desc = String.Format("{0} created by OpenMetaverse TestClient {1}", file, DateTime.Now);
// create the asset
Client.Inventory.RequestCreateItem(Client.Inventory.FindFolderForType(AssetType.LSLText), file, desc, AssetType.LSLText, UUID.Random(), InventoryType.LSL, PermissionMask.All,
delegate(bool success, InventoryItem item)
{
if (success)
// upload the asset
Client.Inventory.RequestUpdateScriptAgentInventory(EncodeScript(body), item.UUID, new InventoryManager.ScriptUpdatedCallback(delegate(bool success1, string status, UUID itemid, UUID assetid)
Client.Inventory.RequestUpdateScriptAgentInventory(EncodeScript(body), item.UUID, true, new InventoryManager.ScriptUpdatedCallback(delegate(bool success1, string status, UUID itemid, UUID assetid)
{
if (success1)
ret += String.Format("Script successfully uploaded, ItemID {0} AssetID {1}", itemid, assetid);
ret += String.Format(" Script successfully uploaded, ItemID {0} AssetID {1}", itemid, assetid);
}));
});
}