aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorAdam Frisby2009-04-05 01:28:23 +0000
committerAdam Frisby2009-04-05 01:28:23 +0000
commitf094847c43821cf4922f8e2156cacb7f6078c379 (patch)
treed41fa52f2898ca15cd901c9dc227fc1be80ba6eb /OpenSim
parent* Removes IsPhysical, IsPhantom from IObject, since this is now represented i... (diff)
downloadopensim-SC-f094847c43821cf4922f8e2156cacb7f6078c379.zip
opensim-SC-f094847c43821cf4922f8e2156cacb7f6078c379.tar.gz
opensim-SC-f094847c43821cf4922f8e2156cacb7f6078c379.tar.bz2
opensim-SC-f094847c43821cf4922f8e2156cacb7f6078c379.tar.xz
* Implements ISocialEntity - this represents the class of "user-like" objects such as Users, Groups, etc. Destined to be used as the return value of any "Owner" properties.
* Implements basic "SEUser" class which implements Avatar/Agent SE functions (primitive).
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/OptionalModules/Scripting/Minimodule/IPersistence.cs1
-rw-r--r--OpenSim/Region/OptionalModules/Scripting/Minimodule/ISocialEntity.cs14
-rw-r--r--OpenSim/Region/OptionalModules/Scripting/Minimodule/SEUser.cs34
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 @@
1using System;
2using System.Collections.Generic;
3using System.Text;
4using OpenMetaverse;
5
6namespace 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 @@
1using System;
2using System.Collections.Generic;
3using System.Text;
4using OpenMetaverse;
5
6namespace 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}