* 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
parent
2e1646d368
commit
f094847c43
|
@ -6,7 +6,6 @@ namespace OpenSim.Region.OptionalModules.Scripting.Minimodule
|
|||
{
|
||||
interface IPersistence
|
||||
{
|
||||
|
||||
T Get<T>(Guid storageID);
|
||||
T Get<T>();
|
||||
|
||||
|
|
|
@ -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; }
|
||||
}
|
||||
}
|
|
@ -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; }
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue