aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/OptionalModules/Scripting/Minimodule/Interfaces
diff options
context:
space:
mode:
authorCharles Krinke2009-06-29 21:47:47 +0000
committerCharles Krinke2009-06-29 21:47:47 +0000
commit6942eaed5b3d8065ebf01dc465e905ca456c0fa4 (patch)
treeba35780085d13474160ea9a39d2a83b5e401f6a4 /OpenSim/Region/OptionalModules/Scripting/Minimodule/Interfaces
parentThanks StrawberryFride, for a patch that fixes MSSQL migration: (diff)
downloadopensim-SC_OLD-6942eaed5b3d8065ebf01dc465e905ca456c0fa4.zip
opensim-SC_OLD-6942eaed5b3d8065ebf01dc465e905ca456c0fa4.tar.gz
opensim-SC_OLD-6942eaed5b3d8065ebf01dc465e905ca456c0fa4.tar.bz2
opensim-SC_OLD-6942eaed5b3d8065ebf01dc465e905ca456c0fa4.tar.xz
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.
Diffstat (limited to 'OpenSim/Region/OptionalModules/Scripting/Minimodule/Interfaces')
-rw-r--r--OpenSim/Region/OptionalModules/Scripting/Minimodule/Interfaces/IAvatar.cs8
-rw-r--r--OpenSim/Region/OptionalModules/Scripting/Minimodule/Interfaces/IInventoryItem.cs16
-rw-r--r--OpenSim/Region/OptionalModules/Scripting/Minimodule/Interfaces/IObject.cs4
3 files changed, 27 insertions, 1 deletions
diff --git a/OpenSim/Region/OptionalModules/Scripting/Minimodule/Interfaces/IAvatar.cs b/OpenSim/Region/OptionalModules/Scripting/Minimodule/Interfaces/IAvatar.cs
index 51ba36c..3345988 100644
--- a/OpenSim/Region/OptionalModules/Scripting/Minimodule/Interfaces/IAvatar.cs
+++ b/OpenSim/Region/OptionalModules/Scripting/Minimodule/Interfaces/IAvatar.cs
@@ -50,6 +50,12 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
50 //// <value> 50 //// <value>
51 /// Array of worn attachments, empty but not null, if no attachments are worn 51 /// Array of worn attachments, empty but not null, if no attachments are worn
52 /// </value> 52 /// </value>
53 IAvatarAttachment[] Attachments { get; } 53
54 IAvatarAttachment[] Attachments { get; }
55
56 /// <summary>
57 /// Request to open an url clientside
58 /// </summary>
59 void LoadUrl(IObject sender, string message, string url);
54 } 60 }
55} 61}
diff --git a/OpenSim/Region/OptionalModules/Scripting/Minimodule/Interfaces/IInventoryItem.cs b/OpenSim/Region/OptionalModules/Scripting/Minimodule/Interfaces/IInventoryItem.cs
new file mode 100644
index 0000000..7490dda
--- /dev/null
+++ b/OpenSim/Region/OptionalModules/Scripting/Minimodule/Interfaces/IInventoryItem.cs
@@ -0,0 +1,16 @@
1using System;
2using OpenMetaverse;
3
4namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
5{
6
7 /// <summary>
8 /// This implements the methods needed to operate on individual inventory items.
9 /// </summary>
10 public interface IInventoryItem
11 {
12 int Type { get; }
13 UUID AssetID { get; }
14 T RetreiveAsset<T>() where T : OpenMetaverse.Asset, new();
15 }
16}
diff --git a/OpenSim/Region/OptionalModules/Scripting/Minimodule/Interfaces/IObject.cs b/OpenSim/Region/OptionalModules/Scripting/Minimodule/Interfaces/IObject.cs
index dd9cc29..1be3b71 100644
--- a/OpenSim/Region/OptionalModules/Scripting/Minimodule/Interfaces/IObject.cs
+++ b/OpenSim/Region/OptionalModules/Scripting/Minimodule/Interfaces/IObject.cs
@@ -179,6 +179,10 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
179 /// <param name="msg">The message to send to the user</param> 179 /// <param name="msg">The message to send to the user</param>
180 void Say(string msg); 180 void Say(string msg);
181 181
182 //// <value>
183 /// Grants access to the objects inventory
184 /// </value>
185 IObjectInventory Inventory { get; }
182 } 186 }
183 187
184 public enum PhysicsMaterial 188 public enum PhysicsMaterial