From 7161689a97edcdeceee3d3eeeaee7eadc4e06a89 Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Thu, 14 Aug 2008 19:59:32 +0000 Subject: Adds UserFlags and GodLevel to the user data store and plumbs then in. This will have no effect unless both the UGAI and the region are this revision or later --- OpenSim/Region/Communications/OGS1/OGS1UserServices.cs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'OpenSim/Region/Communications') diff --git a/OpenSim/Region/Communications/OGS1/OGS1UserServices.cs b/OpenSim/Region/Communications/OGS1/OGS1UserServices.cs index 2d37e2f..ee5c7bb 100644 --- a/OpenSim/Region/Communications/OGS1/OGS1UserServices.cs +++ b/OpenSim/Region/Communications/OGS1/OGS1UserServices.cs @@ -85,6 +85,11 @@ namespace OpenSim.Region.Communications.OGS1 new LLVector3((float) Convert.ToDecimal((string) data["home_look_x"]), (float) Convert.ToDecimal((string) data["home_look_y"]), (float) Convert.ToDecimal((string) data["home_look_z"])); + if(data.Contains("user_flags")) + userData.UserFlags = Convert.ToInt32((string) data["user_flags"]); + if(data.Contains("god_level")) + userData.GodLevel = Convert.ToInt32((string) data["god_level"]); + return userData; } @@ -462,6 +467,8 @@ namespace OpenSim.Region.Communications.OGS1 param["home_look_x"] = UserProfile.HomeLookAtX.ToString(); param["home_look_y"] = UserProfile.HomeLookAtY.ToString(); param["home_look_z"] = UserProfile.HomeLookAtZ.ToString(); + param["user_flags"] = UserProfile.UserFlags.ToString(); + param["god_level"] = UserProfile.GodLevel.ToString(); IList parameters = new ArrayList(); parameters.Add(param); -- cgit v1.1