* 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).
0.6.5-rc1
Adam Frisby 2009-04-05 01:28:23 +00:00
parent 2e1646d368
commit f094847c43
3 changed files with 48 additions and 1 deletions

View File

@ -6,7 +6,6 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
{ {
interface IPersistence interface IPersistence
{ {
T Get<T>(Guid storageID); T Get<T>(Guid storageID);
T Get<T>(); T Get<T>();

View File

@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Text;
using OpenMetaverse;
namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
{
interface ISocialEntity
{
UUID GlobalID { get; }
string Name { get; }
bool IsUser { get; }
}
}

View File

@ -0,0 +1,34 @@
using System;
using System.Collections.Generic;
using System.Text;
using OpenMetaverse;
namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
{
class SEUser : ISocialEntity
{
private readonly UUID m_uuid;
private readonly string m_name;
public SIUser(UUID uuid, string name)
{
this.m_uuid = uuid;
this.m_name = name;
}
public UUID GlobalID
{
get { return m_uuid; }
}
public string Name
{
get { return m_name; }
}
public bool IsUser
{
get { return true; }
}
}
}