aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/UserDataBase.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-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);