diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Data/MySQL/MySQLGridData.cs | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/OpenSim/Data/MySQL/MySQLGridData.cs b/OpenSim/Data/MySQL/MySQLGridData.cs index e5940e2..394dbbd 100644 --- a/OpenSim/Data/MySQL/MySQLGridData.cs +++ b/OpenSim/Data/MySQL/MySQLGridData.cs | |||
@@ -49,8 +49,12 @@ namespace OpenSim.Data.MySQL | |||
49 | private MySQLManager database; | 49 | private MySQLManager database; |
50 | 50 | ||
51 | /// <summary> | 51 | /// <summary> |
52 | /// Initialises the Grid Interface | 52 | /// Initialises Grid interface |
53 | /// Loads and initialises the MySQL storage plugin | ||
54 | /// Warns and uses the obsolete mysql_connection.ini if connect string is empty. | ||
55 | /// Check for migration | ||
53 | /// </summary> | 56 | /// </summary> |
57 | /// <param name="connect">connect string.</param> | ||
54 | override public void Initialise(string connect) | 58 | override public void Initialise(string connect) |
55 | { | 59 | { |
56 | if (connect != String.Empty) | 60 | if (connect != String.Empty) |
@@ -166,7 +170,7 @@ namespace OpenSim.Data.MySQL | |||
166 | /// <param name="ymin">Minimum Y coordinate</param> | 170 | /// <param name="ymin">Minimum Y coordinate</param> |
167 | /// <param name="xmax">Maximum X coordinate</param> | 171 | /// <param name="xmax">Maximum X coordinate</param> |
168 | /// <param name="ymax">Maximum Y coordinate</param> | 172 | /// <param name="ymax">Maximum Y coordinate</param> |
169 | /// <returns></returns> | 173 | /// <returns>Array of sim profiles</returns> |
170 | override public RegionProfileData[] GetProfilesInRange(uint xmin, uint ymin, uint xmax, uint ymax) | 174 | override public RegionProfileData[] GetProfilesInRange(uint xmin, uint ymin, uint xmax, uint ymax) |
171 | { | 175 | { |
172 | try | 176 | try |
@@ -332,15 +336,21 @@ namespace OpenSim.Data.MySQL | |||
332 | } | 336 | } |
333 | } | 337 | } |
334 | 338 | ||
339 | /// <summary> | ||
340 | /// Update a sim profile | ||
341 | /// </summary> | ||
342 | /// <param name="profile">The profile to update</param> | ||
343 | /// <returns>Sucessful?</returns> | ||
344 | /// <remarks>Same as AddProfile</remarks> | ||
335 | override public DataResponse UpdateProfile(RegionProfileData profile) | 345 | override public DataResponse UpdateProfile(RegionProfileData profile) |
336 | { | 346 | { |
337 | return AddProfile(profile); | 347 | return AddProfile(profile); |
338 | } | 348 | } |
339 | 349 | ||
340 | /// <summary> | 350 | /// <summary> |
341 | /// Deletes a profile from the database | 351 | /// Deletes a sim profile from the database |
342 | /// </summary> | 352 | /// </summary> |
343 | /// <param name="profile">The profile to delete</param> | 353 | /// <param name="uuid">the sim UUID</param> |
344 | /// <returns>Successful?</returns> | 354 | /// <returns>Successful?</returns> |
345 | //public DataResponse DeleteProfile(RegionProfileData profile) | 355 | //public DataResponse DeleteProfile(RegionProfileData profile) |
346 | public DataResponse DeleteProfile(string uuid) | 356 | public DataResponse DeleteProfile(string uuid) |
@@ -397,6 +407,12 @@ namespace OpenSim.Data.MySQL | |||
397 | return false; | 407 | return false; |
398 | } | 408 | } |
399 | 409 | ||
410 | /// <summary> | ||
411 | /// Adds a location reservation | ||
412 | /// </summary> | ||
413 | /// <param name="x"></param> | ||
414 | /// <param name="y"></param> | ||
415 | /// <returns></returns> | ||
400 | override public ReservationData GetReservationAtPoint(uint x, uint y) | 416 | override public ReservationData GetReservationAtPoint(uint x, uint y) |
401 | { | 417 | { |
402 | try | 418 | try |