mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 06:06:06 +08:00
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user