diff options
Diffstat (limited to '')
3 files changed, 48 insertions, 1 deletions
diff --git a/OpenSim/Region/OptionalModules/Scripting/Minimodule/IPersistence.cs b/OpenSim/Region/OptionalModules/Scripting/Minimodule/IPersistence.cs index 5ca4f59..e433c11 100644 --- a/OpenSim/Region/OptionalModules/Scripting/Minimodule/IPersistence.cs +++ b/OpenSim/Region/OptionalModules/Scripting/Minimodule/IPersistence.cs | |||
@@ -6,7 +6,6 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule | |||
6 | { | 6 | { |
7 | interface IPersistence | 7 | interface IPersistence |
8 | { | 8 | { |
9 | |||
10 | T Get<T>(Guid storageID); | 9 | T Get<T>(Guid storageID); |
11 | T Get<T>(); | 10 | T Get<T>(); |
12 | 11 | ||
diff --git a/OpenSim/Region/OptionalModules/Scripting/Minimodule/ISocialEntity.cs b/OpenSim/Region/OptionalModules/Scripting/Minimodule/ISocialEntity.cs new file mode 100644 index 0000000..fe4826a --- /dev/null +++ b/OpenSim/Region/OptionalModules/Scripting/Minimodule/ISocialEntity.cs | |||
@@ -0,0 +1,14 @@ | |||
1 | using System; | ||
2 | using System.Collections.Generic; | ||
3 | using System.Text; | ||
4 | using OpenMetaverse; | ||
5 | |||
6 | namespace OpenSim.Region.OptionalModules.Scripting.Minimodule | ||
7 | { | ||
8 | interface ISocialEntity | ||
9 | { | ||
10 | UUID GlobalID { get; } | ||
11 | string Name { get; } | ||
12 | bool IsUser { get; } | ||
13 | } | ||
14 | } \ No newline at end of file | ||
diff --git a/OpenSim/Region/OptionalModules/Scripting/Minimodule/SEUser.cs b/OpenSim/Region/OptionalModules/Scripting/Minimodule/SEUser.cs new file mode 100644 index 0000000..1fc1c55 --- /dev/null +++ b/OpenSim/Region/OptionalModules/Scripting/Minimodule/SEUser.cs | |||
@@ -0,0 +1,34 @@ | |||
1 | using System; | ||
2 | using System.Collections.Generic; | ||
3 | using System.Text; | ||
4 | using OpenMetaverse; | ||
5 | |||
6 | namespace OpenSim.Region.OptionalModules.Scripting.Minimodule | ||
7 | { | ||
8 | class SEUser : ISocialEntity | ||
9 | { | ||
10 | private readonly UUID m_uuid; | ||
11 | private readonly string m_name; | ||
12 | |||
13 | public SIUser(UUID uuid, string name) | ||
14 | { | ||
15 | this.m_uuid = uuid; | ||
16 | this.m_name = name; | ||
17 | } | ||
18 | |||
19 | public UUID GlobalID | ||
20 | { | ||
21 | get { return m_uuid; } | ||
22 | } | ||
23 | |||
24 | public string Name | ||
25 | { | ||
26 | get { return m_name; } | ||
27 | } | ||
28 | |||
29 | public bool IsUser | ||
30 | { | ||
31 | get { return true; } | ||
32 | } | ||
33 | } | ||
34 | } | ||