aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/OptionalModules/Scripting/Minimodule/SEUser.cs
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/Region/OptionalModules/Scripting/Minimodule/SEUser.cs
parent* Removes IsPhysical, IsPhantom from IObject, since this is now represented i... (diff)
downloadopensim-SC_OLD-f094847c43821cf4922f8e2156cacb7f6078c379.zip
opensim-SC_OLD-f094847c43821cf4922f8e2156cacb7f6078c379.tar.gz
opensim-SC_OLD-f094847c43821cf4922f8e2156cacb7f6078c379.tar.bz2
opensim-SC_OLD-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/Region/OptionalModules/Scripting/Minimodule/SEUser.cs')
-rw-r--r--OpenSim/Region/OptionalModules/Scripting/Minimodule/SEUser.cs34
1 files changed, 34 insertions, 0 deletions
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}