Hooking up new telehub data to the database

iar_mods
BlueWall 2012-01-22 11:46:16 -05:00
parent 24b20f6e4b
commit 1cd26ba85e
1 changed files with 14 additions and 0 deletions

View File

@ -1299,6 +1299,20 @@ namespace OpenSim.Data.MySQL
newSettings.LoadedCreationID = (String) row["loaded_creation_id"]; newSettings.LoadedCreationID = (String) row["loaded_creation_id"];
newSettings.TerrainImageID = DBGuid.FromDB(row["map_tile_ID"]); newSettings.TerrainImageID = DBGuid.FromDB(row["map_tile_ID"]);
newSettings.HasTelehub = Convert.ToBoolean(row["TelehubEnabled"]);
newSettings.TelehubObject = DBGuid.FromDB(row["TelehubObject"]);
newSettings.TelehubName = (string) row["TelehubName"];
newSettings.TelehubPos = new Vector3 (
Convert.ToSingle(row["TelehubPosX"]),
Convert.ToSingle(row["TelehubPosY"]),
Convert.ToSingle(row["TelehubPosZ"])
);
newSettings.TelehubRot = new Quaternion (
Convert.ToSingle(row["TelehubRotX"]),
Convert.ToSingle(row["TelehubRotY"]),
Convert.ToSingle(row["TelehubRotZ"]),
Convert.ToSingle(row["TelehubRotW"])
);
return newSettings; return newSettings;
} }