aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/UserDataBase.cs
diff options
context:
space:
mode:
authorSean Dague2008-05-15 20:25:42 +0000
committerSean Dague2008-05-15 20:25:42 +0000
commit4a9ee9f870b53abbc5ba8814c35d694c3fd186a1 (patch)
treefdda61e205703df149540656660e1efcd1f079f8 /OpenSim/Data/UserDataBase.cs
parent* Removing NUnit tests from CI build server temporarily while we work out wha... (diff)
downloadopensim-SC-4a9ee9f870b53abbc5ba8814c35d694c3fd186a1.zip
opensim-SC-4a9ee9f870b53abbc5ba8814c35d694c3fd186a1.tar.gz
opensim-SC-4a9ee9f870b53abbc5ba8814c35d694c3fd186a1.tar.bz2
opensim-SC-4a9ee9f870b53abbc5ba8814c35d694c3fd186a1.tar.xz
testing avatar appearance as a user service
Diffstat (limited to 'OpenSim/Data/UserDataBase.cs')
-rw-r--r--OpenSim/Data/UserDataBase.cs14
1 files changed, 12 insertions, 2 deletions
diff --git a/OpenSim/Data/UserDataBase.cs b/OpenSim/Data/UserDataBase.cs
index fb784dc..a4e2941 100644
--- a/OpenSim/Data/UserDataBase.cs
+++ b/OpenSim/Data/UserDataBase.cs
@@ -33,6 +33,8 @@ namespace OpenSim.Data
33{ 33{
34 public abstract class UserDataBase : IUserData 34 public abstract class UserDataBase : IUserData
35 { 35 {
36 private Dictionary<LLUUID, AvatarAppearance> aplist = new Dictionary<LLUUID, AvatarAppearance>();
37
36 public abstract UserProfileData GetUserByUUID(LLUUID user); 38 public abstract UserProfileData GetUserByUUID(LLUUID user);
37 public abstract UserProfileData GetUserByName(string fname, string lname); 39 public abstract UserProfileData GetUserByName(string fname, string lname);
38 public abstract UserAgentData GetAgentByUUID(LLUUID user); 40 public abstract UserAgentData GetAgentByUUID(LLUUID user);
@@ -53,8 +55,16 @@ namespace OpenSim.Data
53 public abstract string Name {get;} 55 public abstract string Name {get;}
54 public abstract void Initialise(string connect); 56 public abstract void Initialise(string connect);
55 public abstract List<AvatarPickerAvatar> GeneratePickerResults(LLUUID queryID, string query); 57 public abstract List<AvatarPickerAvatar> GeneratePickerResults(LLUUID queryID, string query);
56 public abstract AvatarAppearance GetUserAppearance(LLUUID user); 58 public AvatarAppearance GetUserAppearance(LLUUID user) {
57 public abstract void UpdateUserAppearance(LLUUID user, AvatarAppearance appearance); 59 if (aplist[user] != null) {
60 aplist[user] = new AvatarAppearance();
61 aplist[user].Owner = user;
62 }
63 return aplist[user];
64 }
65 public void UpdateUserAppearance(LLUUID user, AvatarAppearance appearance) {
66 aplist[user] = appearance;
67 }
58 public abstract void AddAttachment(LLUUID user, LLUUID item); 68 public abstract void AddAttachment(LLUUID user, LLUUID item);
59 public abstract void RemoveAttachment(LLUUID user, LLUUID item); 69 public abstract void RemoveAttachment(LLUUID user, LLUUID item);
60 public abstract List<LLUUID> GetAttachments(LLUUID user); 70 public abstract List<LLUUID> GetAttachments(LLUUID user);