aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine
diff options
context:
space:
mode:
authorJeff Ames2008-08-07 12:55:46 +0000
committerJeff Ames2008-08-07 12:55:46 +0000
commit0718aa0b7fd7cb3bb42d36b37f79d8d6cfc725bc (patch)
treeba6b41e2e10e717ed8743a035c10849db2f0cb14 /OpenSim/Region/ScriptEngine
parentUpdate svn properties. (diff)
downloadopensim-SC_OLD-0718aa0b7fd7cb3bb42d36b37f79d8d6cfc725bc.zip
opensim-SC_OLD-0718aa0b7fd7cb3bb42d36b37f79d8d6cfc725bc.tar.gz
opensim-SC_OLD-0718aa0b7fd7cb3bb42d36b37f79d8d6cfc725bc.tar.bz2
opensim-SC_OLD-0718aa0b7fd7cb3bb42d36b37f79d8d6cfc725bc.tar.xz
Minor formatting cleanup.
Diffstat (limited to 'OpenSim/Region/ScriptEngine')
-rw-r--r--OpenSim/Region/ScriptEngine/Common/BuiltIn_Commands_BaseClass.cs2
-rw-r--r--OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs20
-rw-r--r--OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventQueueThreadClass.cs4
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs20
4 files changed, 23 insertions, 23 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/BuiltIn_Commands_BaseClass.cs b/OpenSim/Region/ScriptEngine/Common/BuiltIn_Commands_BaseClass.cs
index cd2aa45..696967b 100644
--- a/OpenSim/Region/ScriptEngine/Common/BuiltIn_Commands_BaseClass.cs
+++ b/OpenSim/Region/ScriptEngine/Common/BuiltIn_Commands_BaseClass.cs
@@ -2426,7 +2426,7 @@ namespace OpenSim.Region.ScriptEngine.Common
2426 public static readonly vector ZERO_VECTOR = new vector(0.0, 0.0, 0.0); 2426 public static readonly vector ZERO_VECTOR = new vector(0.0, 0.0, 0.0);
2427 public static readonly rotation ZERO_ROTATION = new rotation(0.0, 0, 0.0, 1.0); 2427 public static readonly rotation ZERO_ROTATION = new rotation(0.0, 0, 0.0, 1.0);
2428 2428
2429 // constants for llSetCameraParams 2429 // constants for llSetCameraParams
2430 public const int CAMERA_PITCH = 0; 2430 public const int CAMERA_PITCH = 0;
2431 public const int CAMERA_FOCUS_OFFSET = 1; 2431 public const int CAMERA_FOCUS_OFFSET = 1;
2432 public const int CAMERA_FOCUS_OFFSET_X = 2; 2432 public const int CAMERA_FOCUS_OFFSET_X = 2;
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
index 30093eb..baa781e 100644
--- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
+++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
@@ -6924,7 +6924,7 @@ namespace OpenSim.Region.ScriptEngine.Common
6924 6924
6925 // the object we are in 6925 // the object we are in
6926 LLUUID objectID = m_host.ParentUUID; 6926 LLUUID objectID = m_host.ParentUUID;
6927 if(objectID == LLUUID.Zero) return; 6927 if (objectID == LLUUID.Zero) return;
6928 6928
6929 // we need the permission first, to know which avatar we want to set the camera for 6929 // we need the permission first, to know which avatar we want to set the camera for
6930 LLUUID agentID = m_host.TaskInventory[invItemID].PermsGranter; 6930 LLUUID agentID = m_host.TaskInventory[invItemID].PermsGranter;
@@ -6934,16 +6934,16 @@ namespace OpenSim.Region.ScriptEngine.Common
6934 ScenePresence presence = World.GetScenePresence(agentID); 6934 ScenePresence presence = World.GetScenePresence(agentID);
6935 6935
6936 // we are not interested in child-agents 6936 // we are not interested in child-agents
6937 if(presence.IsChildAgent) return; 6937 if (presence.IsChildAgent) return;
6938 6938
6939 SortedDictionary<int, float> parameters = new SortedDictionary<int, float>(); 6939 SortedDictionary<int, float> parameters = new SortedDictionary<int, float>();
6940 object[] data = rules.Data; 6940 object[] data = rules.Data;
6941 for(int i = 0; i < data.Length; ++i) { 6941 for (int i = 0; i < data.Length; ++i) {
6942 int type = Convert.ToInt32(data[i++]); 6942 int type = Convert.ToInt32(data[i++]);
6943 if(i >= data.Length) break; // odd number of entries => ignore the last 6943 if (i >= data.Length) break; // odd number of entries => ignore the last
6944 6944
6945 // some special cases: Vector parameters are split into 3 float parameters (with type+1, type+2, type+3) 6945 // some special cases: Vector parameters are split into 3 float parameters (with type+1, type+2, type+3)
6946 switch(type) { 6946 switch (type) {
6947 case BuiltIn_Commands_BaseClass.CAMERA_FOCUS: 6947 case BuiltIn_Commands_BaseClass.CAMERA_FOCUS:
6948 case BuiltIn_Commands_BaseClass.CAMERA_FOCUS_OFFSET: 6948 case BuiltIn_Commands_BaseClass.CAMERA_FOCUS_OFFSET:
6949 case BuiltIn_Commands_BaseClass.CAMERA_POSITION: 6949 case BuiltIn_Commands_BaseClass.CAMERA_POSITION:
@@ -6954,15 +6954,15 @@ namespace OpenSim.Region.ScriptEngine.Common
6954 break; 6954 break;
6955 default: 6955 default:
6956 // TODO: clean that up as soon as the implicit casts are in 6956 // TODO: clean that up as soon as the implicit casts are in
6957 if(data[i] is LSL_Types.LSLFloat) 6957 if (data[i] is LSL_Types.LSLFloat)
6958 parameters.Add(type, (float)((LSL_Types.LSLFloat)data[i]).value); 6958 parameters.Add(type, (float)((LSL_Types.LSLFloat)data[i]).value);
6959 else if(data[i] is LSL_Types.LSLInteger) 6959 else if (data[i] is LSL_Types.LSLInteger)
6960 parameters.Add(type, (float)((LSL_Types.LSLInteger)data[i]).value); 6960 parameters.Add(type, (float)((LSL_Types.LSLInteger)data[i]).value);
6961 else parameters.Add(type, Convert.ToSingle(data[i])); 6961 else parameters.Add(type, Convert.ToSingle(data[i]));
6962 break; 6962 break;
6963 } 6963 }
6964 } 6964 }
6965 if(parameters.Count > 0) presence.ControllingClient.SendSetFollowCamProperties(objectID, parameters); 6965 if (parameters.Count > 0) presence.ControllingClient.SendSetFollowCamProperties(objectID, parameters);
6966 } 6966 }
6967 6967
6968 public void llClearCameraParams() 6968 public void llClearCameraParams()
@@ -6975,7 +6975,7 @@ namespace OpenSim.Region.ScriptEngine.Common
6975 6975
6976 // the object we are in 6976 // the object we are in
6977 LLUUID objectID = m_host.ParentUUID; 6977 LLUUID objectID = m_host.ParentUUID;
6978 if(objectID == LLUUID.Zero) return; 6978 if (objectID == LLUUID.Zero) return;
6979 6979
6980 // we need the permission first, to know which avatar we want to clear the camera for 6980 // we need the permission first, to know which avatar we want to clear the camera for
6981 LLUUID agentID = m_host.TaskInventory[invItemID].PermsGranter; 6981 LLUUID agentID = m_host.TaskInventory[invItemID].PermsGranter;
@@ -6985,7 +6985,7 @@ namespace OpenSim.Region.ScriptEngine.Common
6985 ScenePresence presence = World.GetScenePresence(agentID); 6985 ScenePresence presence = World.GetScenePresence(agentID);
6986 6986
6987 // we are not interested in child-agents 6987 // we are not interested in child-agents
6988 if(presence.IsChildAgent) return; 6988 if (presence.IsChildAgent) return;
6989 6989
6990 presence.ControllingClient.SendClearFollowCamProperties(objectID); 6990 presence.ControllingClient.SendClearFollowCamProperties(objectID);
6991 } 6991 }
diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventQueueThreadClass.cs b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventQueueThreadClass.cs
index dabb128..4969df0 100644
--- a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventQueueThreadClass.cs
+++ b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventQueueThreadClass.cs
@@ -158,8 +158,8 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase
158 /// </summary> 158 /// </summary>
159 private void EventQueueThreadLoop() 159 private void EventQueueThreadLoop()
160 { 160 {
161 CultureInfo USCulture = new CultureInfo("en-US"); 161 CultureInfo USCulture = new CultureInfo("en-US");
162 Thread.CurrentThread.CurrentCulture = USCulture; 162 Thread.CurrentThread.CurrentCulture = USCulture;
163 163
164 //myScriptEngine.Log.Info("[" + ScriptEngineName + "]: EventQueueManager Worker thread spawned"); 164 //myScriptEngine.Log.Info("[" + ScriptEngineName + "]: EventQueueManager Worker thread spawned");
165 try 165 try
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index 401a5ea..2a1efd4 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -6702,7 +6702,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
6702 6702
6703 // the object we are in 6703 // the object we are in
6704 LLUUID objectID = m_host.ParentUUID; 6704 LLUUID objectID = m_host.ParentUUID;
6705 if(objectID == LLUUID.Zero) return; 6705 if (objectID == LLUUID.Zero) return;
6706 6706
6707 // we need the permission first, to know which avatar we want to set the camera for 6707 // we need the permission first, to know which avatar we want to set the camera for
6708 LLUUID agentID = m_host.TaskInventory[invItemID].PermsGranter; 6708 LLUUID agentID = m_host.TaskInventory[invItemID].PermsGranter;
@@ -6712,16 +6712,16 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
6712 ScenePresence presence = World.GetScenePresence(agentID); 6712 ScenePresence presence = World.GetScenePresence(agentID);
6713 6713
6714 // we are not interested in child-agents 6714 // we are not interested in child-agents
6715 if(presence.IsChildAgent) return; 6715 if (presence.IsChildAgent) return;
6716 6716
6717 SortedDictionary<int, float> parameters = new SortedDictionary<int, float>(); 6717 SortedDictionary<int, float> parameters = new SortedDictionary<int, float>();
6718 object[] data = rules.Data; 6718 object[] data = rules.Data;
6719 for(int i = 0; i < data.Length; ++i) { 6719 for (int i = 0; i < data.Length; ++i) {
6720 int type = Convert.ToInt32(data[i++]); 6720 int type = Convert.ToInt32(data[i++]);
6721 if(i >= data.Length) break; // odd number of entries => ignore the last 6721 if (i >= data.Length) break; // odd number of entries => ignore the last
6722 6722
6723 // some special cases: Vector parameters are split into 3 float parameters (with type+1, type+2, type+3) 6723 // some special cases: Vector parameters are split into 3 float parameters (with type+1, type+2, type+3)
6724 switch(type) { 6724 switch (type) {
6725 case ScriptBaseClass.CAMERA_FOCUS: 6725 case ScriptBaseClass.CAMERA_FOCUS:
6726 case ScriptBaseClass.CAMERA_FOCUS_OFFSET: 6726 case ScriptBaseClass.CAMERA_FOCUS_OFFSET:
6727 case ScriptBaseClass.CAMERA_POSITION: 6727 case ScriptBaseClass.CAMERA_POSITION:
@@ -6732,15 +6732,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
6732 break; 6732 break;
6733 default: 6733 default:
6734 // TODO: clean that up as soon as the implicit casts are in 6734 // TODO: clean that up as soon as the implicit casts are in
6735 if(data[i] is LSL_Types.LSLFloat) 6735 if (data[i] is LSL_Types.LSLFloat)
6736 parameters.Add(type, (float)((LSL_Types.LSLFloat)data[i]).value); 6736 parameters.Add(type, (float)((LSL_Types.LSLFloat)data[i]).value);
6737 else if(data[i] is LSL_Types.LSLInteger) 6737 else if (data[i] is LSL_Types.LSLInteger)
6738 parameters.Add(type, (float)((LSL_Types.LSLInteger)data[i]).value); 6738 parameters.Add(type, (float)((LSL_Types.LSLInteger)data[i]).value);
6739 else parameters.Add(type, Convert.ToSingle(data[i])); 6739 else parameters.Add(type, Convert.ToSingle(data[i]));
6740 break; 6740 break;
6741 } 6741 }
6742 } 6742 }
6743 if(parameters.Count > 0) presence.ControllingClient.SendSetFollowCamProperties(objectID, parameters); 6743 if (parameters.Count > 0) presence.ControllingClient.SendSetFollowCamProperties(objectID, parameters);
6744 } 6744 }
6745 6745
6746 public void llClearCameraParams() 6746 public void llClearCameraParams()
@@ -6753,7 +6753,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
6753 6753
6754 // the object we are in 6754 // the object we are in
6755 LLUUID objectID = m_host.ParentUUID; 6755 LLUUID objectID = m_host.ParentUUID;
6756 if(objectID == LLUUID.Zero) return; 6756 if (objectID == LLUUID.Zero) return;
6757 6757
6758 // we need the permission first, to know which avatar we want to clear the camera for 6758 // we need the permission first, to know which avatar we want to clear the camera for
6759 LLUUID agentID = m_host.TaskInventory[invItemID].PermsGranter; 6759 LLUUID agentID = m_host.TaskInventory[invItemID].PermsGranter;
@@ -6763,7 +6763,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
6763 ScenePresence presence = World.GetScenePresence(agentID); 6763 ScenePresence presence = World.GetScenePresence(agentID);
6764 6764
6765 // we are not interested in child-agents 6765 // we are not interested in child-agents
6766 if(presence.IsChildAgent) return; 6766 if (presence.IsChildAgent) return;
6767 6767
6768 presence.ControllingClient.SendClearFollowCamProperties(objectID); 6768 presence.ControllingClient.SendClearFollowCamProperties(objectID);
6769 } 6769 }