Thank you kindly, Snowdrop, for a patch that solves:

The current API for MRM is quite sparse, this patch 
supplies basic support for accessing the task 
inventory of object.
This commit is contained in:
Charles Krinke
2009-06-29 21:47:47 +00:00
parent dc9900d73f
commit 6942eaed5b
8 changed files with 320 additions and 2 deletions

View File

@@ -50,6 +50,12 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
//// <value>
/// Array of worn attachments, empty but not null, if no attachments are worn
/// </value>
IAvatarAttachment[] Attachments { get; }
IAvatarAttachment[] Attachments { get; }
/// <summary>
/// Request to open an url clientside
/// </summary>
void LoadUrl(IObject sender, string message, string url);
}
}

View File

@@ -0,0 +1,16 @@
using System;
using OpenMetaverse;
namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
{
/// <summary>
/// This implements the methods needed to operate on individual inventory items.
/// </summary>
public interface IInventoryItem
{
int Type { get; }
UUID AssetID { get; }
T RetreiveAsset<T>() where T : OpenMetaverse.Asset, new();
}
}

View File

@@ -179,6 +179,10 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
/// <param name="msg">The message to send to the user</param>
void Say(string msg);
//// <value>
/// Grants access to the objects inventory
/// </value>
IObjectInventory Inventory { get; }
}
public enum PhysicsMaterial