diff options
author | Sean Dague | 2008-04-10 14:50:52 +0000 |
---|---|---|
committer | Sean Dague | 2008-04-10 14:50:52 +0000 |
commit | 55ac1c6dce15d768cc7240b75f903076a131c39e (patch) | |
tree | ec8ec06c14f382265228d756f89a6c1e43ded15c /OpenSim/Data | |
parent | changing UserAgentData to use properties. This caused more (diff) | |
download | opensim-SC_OLD-55ac1c6dce15d768cc7240b75f903076a131c39e.zip opensim-SC_OLD-55ac1c6dce15d768cc7240b75f903076a131c39e.tar.gz opensim-SC_OLD-55ac1c6dce15d768cc7240b75f903076a131c39e.tar.bz2 opensim-SC_OLD-55ac1c6dce15d768cc7240b75f903076a131c39e.tar.xz |
renaming of attributes in UserAgentData for readability
Diffstat (limited to 'OpenSim/Data')
-rw-r--r-- | OpenSim/Data/MSSQL/MSSQLManager.cs | 6 | ||||
-rw-r--r-- | OpenSim/Data/MySQL/MySQLManager.cs | 12 | ||||
-rw-r--r-- | OpenSim/Data/SQLite/SQLiteUserData.cs | 20 |
3 files changed, 19 insertions, 19 deletions
diff --git a/OpenSim/Data/MSSQL/MSSQLManager.cs b/OpenSim/Data/MSSQL/MSSQLManager.cs index 524efc4..e3179f7 100644 --- a/OpenSim/Data/MSSQL/MSSQLManager.cs +++ b/OpenSim/Data/MSSQL/MSSQLManager.cs | |||
@@ -366,11 +366,11 @@ namespace OpenSim.Data.MSSQL | |||
366 | retval.LogoutTime = Convert.ToInt32(reader["logoutTime"].ToString()); | 366 | retval.LogoutTime = Convert.ToInt32(reader["logoutTime"].ToString()); |
367 | 367 | ||
368 | // Current position | 368 | // Current position |
369 | retval.CurrentRegion = (string)reader["currentRegion"]; | 369 | retval.Region = (string)reader["currentRegion"]; |
370 | retval.CurrentHandle = Convert.ToUInt64(reader["currentHandle"].ToString()); | 370 | retval.Handle = Convert.ToUInt64(reader["currentHandle"].ToString()); |
371 | LLVector3 tmp_v; | 371 | LLVector3 tmp_v; |
372 | LLVector3.TryParse((string)reader["currentPos"], out tmp_v); | 372 | LLVector3.TryParse((string)reader["currentPos"], out tmp_v); |
373 | retval.CurrentPos = tmp_v; | 373 | retval.Position = tmp_v; |
374 | 374 | ||
375 | } | 375 | } |
376 | else | 376 | else |
diff --git a/OpenSim/Data/MySQL/MySQLManager.cs b/OpenSim/Data/MySQL/MySQLManager.cs index f2ec6be..38f56c4 100644 --- a/OpenSim/Data/MySQL/MySQLManager.cs +++ b/OpenSim/Data/MySQL/MySQLManager.cs | |||
@@ -427,11 +427,11 @@ namespace OpenSim.Data.MySQL | |||
427 | retval.LogoutTime = Convert.ToInt32(reader["logoutTime"].ToString()); | 427 | retval.LogoutTime = Convert.ToInt32(reader["logoutTime"].ToString()); |
428 | 428 | ||
429 | // Current position | 429 | // Current position |
430 | retval.CurrentRegion = new LLUUID((string)reader["currentRegion"]); | 430 | retval.Region = new LLUUID((string)reader["currentRegion"]); |
431 | retval.CurrentHandle = Convert.ToUInt64(reader["currentHandle"].ToString()); | 431 | retval.Handle = Convert.ToUInt64(reader["currentHandle"].ToString()); |
432 | LLVector3 tmp_v; | 432 | LLVector3 tmp_v; |
433 | LLVector3.TryParse((string) reader["currentPos"], out tmp_v); | 433 | LLVector3.TryParse((string) reader["currentPos"], out tmp_v); |
434 | retval.CurrentPos = tmp_v; | 434 | retval.Position = tmp_v; |
435 | } | 435 | } |
436 | else | 436 | else |
437 | { | 437 | { |
@@ -915,9 +915,9 @@ namespace OpenSim.Data.MySQL | |||
915 | parameters["?agentOnline"] = (agentdata.AgentOnline == true) ? "1" : "0"; | 915 | parameters["?agentOnline"] = (agentdata.AgentOnline == true) ? "1" : "0"; |
916 | parameters["?loginTime"] = agentdata.LoginTime.ToString(); | 916 | parameters["?loginTime"] = agentdata.LoginTime.ToString(); |
917 | parameters["?logoutTime"] = agentdata.LogoutTime.ToString(); | 917 | parameters["?logoutTime"] = agentdata.LogoutTime.ToString(); |
918 | parameters["?currentRegion"] = agentdata.CurrentRegion.ToString(); | 918 | parameters["?currentRegion"] = agentdata.Region.ToString(); |
919 | parameters["?currentHandle"] = agentdata.CurrentHandle.ToString(); | 919 | parameters["?currentHandle"] = agentdata.Handle.ToString(); |
920 | parameters["?currentPos"] = "<" + ((int)agentdata.CurrentPos.X).ToString() + "," + ((int)agentdata.CurrentPos.Y).ToString() + "," + ((int)agentdata.CurrentPos.Z).ToString() + ">"; | 920 | parameters["?currentPos"] = "<" + ((int)agentdata.Position.X).ToString() + "," + ((int)agentdata.Position.Y).ToString() + "," + ((int)agentdata.Position.Z).ToString() + ">"; |
921 | 921 | ||
922 | bool returnval = false; | 922 | bool returnval = false; |
923 | 923 | ||
diff --git a/OpenSim/Data/SQLite/SQLiteUserData.cs b/OpenSim/Data/SQLite/SQLiteUserData.cs index 3ee0c03..089c9df 100644 --- a/OpenSim/Data/SQLite/SQLiteUserData.cs +++ b/OpenSim/Data/SQLite/SQLiteUserData.cs | |||
@@ -680,12 +680,12 @@ namespace OpenSim.Data.SQLite | |||
680 | ua.AgentOnline = Convert.ToBoolean(row["agentOnline"]); | 680 | ua.AgentOnline = Convert.ToBoolean(row["agentOnline"]); |
681 | ua.SessionID = new LLUUID((String) row["sessionID"]); | 681 | ua.SessionID = new LLUUID((String) row["sessionID"]); |
682 | ua.SecureSessionID = new LLUUID((String) row["secureSessionID"]); | 682 | ua.SecureSessionID = new LLUUID((String) row["secureSessionID"]); |
683 | ua.RegionID = new LLUUID((String) row["regionID"]); | 683 | ua.InitialRegion = new LLUUID((String) row["regionID"]); |
684 | ua.LoginTime = Convert.ToInt32(row["loginTime"]); | 684 | ua.LoginTime = Convert.ToInt32(row["loginTime"]); |
685 | ua.LogoutTime = Convert.ToInt32(row["logoutTime"]); | 685 | ua.LogoutTime = Convert.ToInt32(row["logoutTime"]); |
686 | ua.CurrentRegion = new LLUUID((String) row["currentRegion"]); | 686 | ua.Region = new LLUUID((String) row["currentRegion"]); |
687 | ua.CurrentHandle = Convert.ToUInt64(row["currentHandle"]); | 687 | ua.Handle = Convert.ToUInt64(row["currentHandle"]); |
688 | ua.CurrentPos = new LLVector3( | 688 | ua.Position = new LLVector3( |
689 | Convert.ToSingle(row["currentPosX"]), | 689 | Convert.ToSingle(row["currentPosX"]), |
690 | Convert.ToSingle(row["currentPosY"]), | 690 | Convert.ToSingle(row["currentPosY"]), |
691 | Convert.ToSingle(row["currentPosZ"]) | 691 | Convert.ToSingle(row["currentPosZ"]) |
@@ -701,15 +701,15 @@ namespace OpenSim.Data.SQLite | |||
701 | row["agentOnline"] = ua.AgentOnline; | 701 | row["agentOnline"] = ua.AgentOnline; |
702 | row["sessionID"] = ua.SessionID; | 702 | row["sessionID"] = ua.SessionID; |
703 | row["secureSessionID"] = ua.SecureSessionID; | 703 | row["secureSessionID"] = ua.SecureSessionID; |
704 | row["regionID"] = ua.RegionID; | 704 | row["regionID"] = ua.InitialRegion; |
705 | row["loginTime"] = ua.LoginTime; | 705 | row["loginTime"] = ua.LoginTime; |
706 | row["logoutTime"] = ua.LogoutTime; | 706 | row["logoutTime"] = ua.LogoutTime; |
707 | row["currentRegion"] = ua.CurrentRegion; | 707 | row["currentRegion"] = ua.Region; |
708 | row["currentHandle"] = ua.CurrentHandle.ToString(); | 708 | row["currentHandle"] = ua.Handle.ToString(); |
709 | // vectors | 709 | // vectors |
710 | row["currentPosX"] = ua.CurrentPos.X; | 710 | row["currentPosX"] = ua.Position.X; |
711 | row["currentPosY"] = ua.CurrentPos.Y; | 711 | row["currentPosY"] = ua.Position.Y; |
712 | row["currentPosZ"] = ua.CurrentPos.Z; | 712 | row["currentPosZ"] = ua.Position.Z; |
713 | } | 713 | } |
714 | 714 | ||
715 | /*********************************************************************** | 715 | /*********************************************************************** |