From b1101797307504cfc2eea6317d4c4dc2b5964480 Mon Sep 17 00:00:00 2001
From: Adam Frisby
Date: Sun, 13 May 2007 14:59:24 +0000
Subject: * Fixed MySQL Grid Manager * Added preliminary support for DB
UserServer (incomplete) * Added better handling of defaults to Grid Manager.
* Renamed SQL/regions.sql to SQL/mysql-regions.sql.
---
OpenGrid.Framework.Data/SimProfileData.cs | 26 +++++++++++++-------------
OpenGrid.Framework.Data/UserProfileData.cs | 2 ++
2 files changed, 15 insertions(+), 13 deletions(-)
(limited to 'OpenGrid.Framework.Data')
diff --git a/OpenGrid.Framework.Data/SimProfileData.cs b/OpenGrid.Framework.Data/SimProfileData.cs
index d5a5392..f86fb95 100644
--- a/OpenGrid.Framework.Data/SimProfileData.cs
+++ b/OpenGrid.Framework.Data/SimProfileData.cs
@@ -9,7 +9,7 @@ namespace OpenGrid.Framework.Data
///
/// The name of the region
///
- public string regionName;
+ public string regionName = "";
///
/// A 64-bit number combining map position into a (mostly) unique ID
@@ -32,9 +32,9 @@ namespace OpenGrid.Framework.Data
/// Authentication secrets
///
/// Not very secure, needs improvement.
- public string regionSendKey;
- public string regionRecvKey;
- public string regionSecret;
+ public string regionSendKey = "";
+ public string regionRecvKey = "";
+ public string regionSecret = "";
///
/// Whether the region is online
@@ -44,9 +44,9 @@ namespace OpenGrid.Framework.Data
///
/// Information about the server that the region is currently hosted on
///
- public string serverIP;
+ public string serverIP = "";
public uint serverPort;
- public string serverURI;
+ public string serverURI = "";
///
/// Set of optional overrides. Can be used to create non-eulicidean spaces.
@@ -60,20 +60,20 @@ namespace OpenGrid.Framework.Data
/// Optional: URI Location of the region database
///
/// Used for floating sim pools where the region data is not nessecarily coupled to a specific server
- public string regionDataURI;
+ public string regionDataURI = "";
///
/// Region Asset Details
///
- public string regionAssetURI;
- public string regionAssetSendKey;
- public string regionAssetRecvKey;
+ public string regionAssetURI = "";
+ public string regionAssetSendKey = "";
+ public string regionAssetRecvKey = "";
///
/// Region Userserver Details
///
- public string regionUserURI;
- public string regionUserSendKey;
- public string regionUserRecvKey;
+ public string regionUserURI = "";
+ public string regionUserSendKey = "";
+ public string regionUserRecvKey = "";
}
}
diff --git a/OpenGrid.Framework.Data/UserProfileData.cs b/OpenGrid.Framework.Data/UserProfileData.cs
index 3a54828..8d72c6b 100644
--- a/OpenGrid.Framework.Data/UserProfileData.cs
+++ b/OpenGrid.Framework.Data/UserProfileData.cs
@@ -15,6 +15,8 @@ namespace OpenGrid.Framework.Data
public ulong homeRegion; // RegionHandle of home
public LLVector3 homeLocation; // Home Location inside the sim
+ public LLVector3 homeLookAt; // Coordinates where the user is looking
+
public int created; // UNIX Epoch Timestamp (User Creation)
public int lastLogin; // UNIX Epoch Timestamp (Last Login Time)
--
cgit v1.1