diff options
updated libsecondlife.dll to a 1.18 version (from the libsecondlife aditi branch, so when they have a trunk version that is 1.18 ready, best to update again).
Started some work on a userProfile/inventory cache.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Caches/UserProfileCache.cs | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/OpenSim/Region/Caches/UserProfileCache.cs b/OpenSim/Region/Caches/UserProfileCache.cs new file mode 100644 index 0000000..0717e55 --- /dev/null +++ b/OpenSim/Region/Caches/UserProfileCache.cs | |||
@@ -0,0 +1,75 @@ | |||
1 | using System; | ||
2 | using System.Collections.Generic; | ||
3 | using System.Text; | ||
4 | using libsecondlife; | ||
5 | using OpenSim.Framework.Data; | ||
6 | |||
7 | namespace OpenSim.Region.Caches | ||
8 | { | ||
9 | public class UserProfileCache | ||
10 | { | ||
11 | public Dictionary<LLUUID, CachedUserInfo> UserProfiles = new Dictionary<LLUUID, CachedUserInfo>(); | ||
12 | |||
13 | public UserProfileCache() | ||
14 | { | ||
15 | |||
16 | } | ||
17 | |||
18 | /// <summary> | ||
19 | /// A new user has moved into a region in this instance | ||
20 | /// so get info from servers | ||
21 | /// </summary> | ||
22 | /// <param name="userID"></param> | ||
23 | public void AddNewUser(LLUUID userID) | ||
24 | { | ||
25 | |||
26 | } | ||
27 | |||
28 | /// <summary> | ||
29 | /// A user has left this instance | ||
30 | /// so make sure servers have been updated | ||
31 | /// Then remove cached info | ||
32 | /// </summary> | ||
33 | /// <param name="userID"></param> | ||
34 | public void UserLogOut(LLUUID userID) | ||
35 | { | ||
36 | |||
37 | } | ||
38 | |||
39 | /// <summary> | ||
40 | /// Request the user profile from User server | ||
41 | /// </summary> | ||
42 | /// <param name="userID"></param> | ||
43 | private void RequestUserProfileForUser(LLUUID userID) | ||
44 | { | ||
45 | |||
46 | } | ||
47 | |||
48 | /// <summary> | ||
49 | /// Request Iventory Info from Inventory server | ||
50 | /// </summary> | ||
51 | /// <param name="userID"></param> | ||
52 | private void RequestInventoryForUser(LLUUID userID) | ||
53 | { | ||
54 | |||
55 | } | ||
56 | |||
57 | /// <summary> | ||
58 | /// Make sure UserProfile is updated on user server | ||
59 | /// </summary> | ||
60 | /// <param name="userID"></param> | ||
61 | private void UpdateUserProfileToServer(LLUUID userID) | ||
62 | { | ||
63 | |||
64 | } | ||
65 | |||
66 | /// <summary> | ||
67 | /// Update Inventory data to Inventory server | ||
68 | /// </summary> | ||
69 | /// <param name="userID"></param> | ||
70 | private void UpdateInventoryToServer(LLUUID userID) | ||
71 | { | ||
72 | |||
73 | } | ||
74 | } | ||
75 | } | ||