diff options
author | Teravus Ovares | 2008-02-02 17:43:21 +0000 |
---|---|---|
committer | Teravus Ovares | 2008-02-02 17:43:21 +0000 |
commit | 7476b26ae77733ad2015b70946e42c39d56edca6 (patch) | |
tree | 3b7b2537899d91bff5abd77cf6ce85835a995b5c /OpenSim/Region/Environment/EstateManager.cs | |
parent | Change casting slightly for reading owner_uuid from mysql. (diff) | |
download | opensim-SC_OLD-7476b26ae77733ad2015b70946e42c39d56edca6.zip opensim-SC_OLD-7476b26ae77733ad2015b70946e42c39d56edca6.tar.gz opensim-SC_OLD-7476b26ae77733ad2015b70946e42c39d56edca6.tar.bz2 opensim-SC_OLD-7476b26ae77733ad2015b70946e42c39d56edca6.tar.xz |
* Added a way to temporarily disable physics using the estate tools
* Added a method for Tedd to hook to in scene to disable the Scripting engine that currently says, [TOTEDD] Here is the method to trigger disabling of the scripting engine.
Diffstat (limited to 'OpenSim/Region/Environment/EstateManager.cs')
-rw-r--r-- | OpenSim/Region/Environment/EstateManager.cs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/OpenSim/Region/Environment/EstateManager.cs b/OpenSim/Region/Environment/EstateManager.cs index 9700e6c..edc86e5 100644 --- a/OpenSim/Region/Environment/EstateManager.cs +++ b/OpenSim/Region/Environment/EstateManager.cs | |||
@@ -216,12 +216,28 @@ namespace OpenSim.Region.Environment | |||
216 | SendEstateBlueBoxMessage(remote_client, packet); | 216 | SendEstateBlueBoxMessage(remote_client, packet); |
217 | } | 217 | } |
218 | break; | 218 | break; |
219 | case "setregiondebug": | ||
220 | if (m_scene.PermissionsMngr.GenericEstatePermission(remote_client.AgentId)) | ||
221 | { | ||
222 | SetRegionDebug(remote_client, packet); | ||
223 | } | ||
224 | break; | ||
219 | default: | 225 | default: |
220 | MainLog.Instance.Error("EstateOwnerMessage: Unknown method requested\n" + packet.ToString()); | 226 | MainLog.Instance.Error("EstateOwnerMessage: Unknown method requested\n" + packet.ToString()); |
221 | break; | 227 | break; |
222 | } | 228 | } |
223 | } | 229 | } |
224 | 230 | ||
231 | private void SetRegionDebug(IClientAPI remote_client, EstateOwnerMessagePacket packet) | ||
232 | { | ||
233 | LLUUID invoice = packet.MethodData.Invoice; | ||
234 | LLUUID SenderID = packet.AgentData.AgentID; | ||
235 | bool scripted = convertParamStringToBool(packet.ParamList[0].Parameter); | ||
236 | bool collisionEvents = convertParamStringToBool(packet.ParamList[1].Parameter); | ||
237 | bool physics = convertParamStringToBool(packet.ParamList[2].Parameter); | ||
238 | m_scene.SetSceneCoreDebug(scripted, collisionEvents, physics); | ||
239 | } | ||
240 | |||
225 | private void SendSimulatorBlueBoxMessage(IClientAPI remote_client, EstateOwnerMessagePacket packet) | 241 | private void SendSimulatorBlueBoxMessage(IClientAPI remote_client, EstateOwnerMessagePacket packet) |
226 | { | 242 | { |
227 | LLUUID invoice = packet.MethodData.Invoice; | 243 | LLUUID invoice = packet.MethodData.Invoice; |