aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Services
diff options
context:
space:
mode:
authorMelanie2009-11-18 08:21:28 +0000
committerMelanie2009-11-18 08:21:28 +0000
commit06ecdf1967848e3f0c6b6f98aba61c7ad099f65d (patch)
tree56275806fb3df065c1734bd10d179ebfcea64c89 /OpenSim/Services
parentChange PresenceData to PresenceInfo to remove a naming conflict in the (diff)
downloadopensim-SC_OLD-06ecdf1967848e3f0c6b6f98aba61c7ad099f65d.zip
opensim-SC_OLD-06ecdf1967848e3f0c6b6f98aba61c7ad099f65d.tar.gz
opensim-SC_OLD-06ecdf1967848e3f0c6b6f98aba61c7ad099f65d.tar.bz2
opensim-SC_OLD-06ecdf1967848e3f0c6b6f98aba61c7ad099f65d.tar.xz
Tweak presence handling and whip up a database connector and handler
for testign the new generic table handling
Diffstat (limited to 'OpenSim/Services')
-rw-r--r--OpenSim/Services/Interfaces/IPresenceService.cs2
-rw-r--r--OpenSim/Services/PresenceService/PresenceService.cs9
2 files changed, 10 insertions, 1 deletions
diff --git a/OpenSim/Services/Interfaces/IPresenceService.cs b/OpenSim/Services/Interfaces/IPresenceService.cs
index 6ceeb45..aa1c5bf 100644
--- a/OpenSim/Services/Interfaces/IPresenceService.cs
+++ b/OpenSim/Services/Interfaces/IPresenceService.cs
@@ -35,7 +35,7 @@ namespace OpenSim.Services.Interfaces
35 { 35 {
36 public UUID PrincipalID; 36 public UUID PrincipalID;
37 public UUID RegionID; 37 public UUID RegionID;
38 public Dictionary<string, object> Data; 38 public Dictionary<string, string> Data;
39 } 39 }
40 40
41 public interface IPresenceService 41 public interface IPresenceService
diff --git a/OpenSim/Services/PresenceService/PresenceService.cs b/OpenSim/Services/PresenceService/PresenceService.cs
index 8931a26..2157462 100644
--- a/OpenSim/Services/PresenceService/PresenceService.cs
+++ b/OpenSim/Services/PresenceService/PresenceService.cs
@@ -52,6 +52,15 @@ namespace OpenSim.Services.PresenceService
52 52
53 public bool Report(PresenceInfo presence) 53 public bool Report(PresenceInfo presence)
54 { 54 {
55 PresenceData p = new PresenceData();
56 p.Data = new Dictionary<string, string>();
57
58 p.UUID = presence.PrincipalID;
59 p.currentRegion = presence.RegionID;
60
61 foreach (KeyValuePair<string, string> kvp in presence.Data)
62 p.Data[kvp.Key] = kvp.Value;
63
55 return false; 64 return false;
56 } 65 }
57 } 66 }