aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Services
diff options
context:
space:
mode:
authorMelanie2009-12-27 01:27:51 +0000
committerMelanie2009-12-27 01:27:51 +0000
commit982e3ff5d927df498c1d14111e2c61f0251c09d4 (patch)
tree5488a47eedaadf5fd4800e2ac64f4aed2cd33a48 /OpenSim/Services
parentAdd AvatarInterestsReply (diff)
downloadopensim-SC_OLD-982e3ff5d927df498c1d14111e2c61f0251c09d4.zip
opensim-SC_OLD-982e3ff5d927df498c1d14111e2c61f0251c09d4.tar.gz
opensim-SC_OLD-982e3ff5d927df498c1d14111e2c61f0251c09d4.tar.bz2
opensim-SC_OLD-982e3ff5d927df498c1d14111e2c61f0251c09d4.tar.xz
Presence Step 1
Diffstat (limited to 'OpenSim/Services')
-rw-r--r--OpenSim/Services/Interfaces/IPresenceService.cs9
-rw-r--r--OpenSim/Services/PresenceService/PresenceService.cs7
2 files changed, 10 insertions, 6 deletions
diff --git a/OpenSim/Services/Interfaces/IPresenceService.cs b/OpenSim/Services/Interfaces/IPresenceService.cs
index aa1c5bf..4de57e3 100644
--- a/OpenSim/Services/Interfaces/IPresenceService.cs
+++ b/OpenSim/Services/Interfaces/IPresenceService.cs
@@ -25,6 +25,7 @@
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */ 26 */
27 27
28using System;
28using OpenSim.Framework; 29using OpenSim.Framework;
29using System.Collections.Generic; 30using System.Collections.Generic;
30using OpenMetaverse; 31using OpenMetaverse;
@@ -35,7 +36,13 @@ namespace OpenSim.Services.Interfaces
35 { 36 {
36 public UUID PrincipalID; 37 public UUID PrincipalID;
37 public UUID RegionID; 38 public UUID RegionID;
38 public Dictionary<string, string> Data; 39 public UUID SessionID;
40 public UUID SecureSessionID;
41 public bool Online;
42 public DateTime Login;
43 public DateTime Logout;
44 public Vector3 Position;
45 public Vector3 LookAt;
39 } 46 }
40 47
41 public interface IPresenceService 48 public interface IPresenceService
diff --git a/OpenSim/Services/PresenceService/PresenceService.cs b/OpenSim/Services/PresenceService/PresenceService.cs
index 2157462..04bcee6 100644
--- a/OpenSim/Services/PresenceService/PresenceService.cs
+++ b/OpenSim/Services/PresenceService/PresenceService.cs
@@ -55,11 +55,8 @@ namespace OpenSim.Services.PresenceService
55 PresenceData p = new PresenceData(); 55 PresenceData p = new PresenceData();
56 p.Data = new Dictionary<string, string>(); 56 p.Data = new Dictionary<string, string>();
57 57
58 p.UUID = presence.PrincipalID; 58 p.PrincipalID = presence.PrincipalID;
59 p.currentRegion = presence.RegionID; 59 p.RegionID = presence.RegionID;
60
61 foreach (KeyValuePair<string, string> kvp in presence.Data)
62 p.Data[kvp.Key] = kvp.Value;
63 60
64 return false; 61 return false;
65 } 62 }