diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/CoreModules/World/Objects/Commands/ObjectCommandsModule.cs | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/OpenSim/Region/CoreModules/World/Objects/Commands/ObjectCommandsModule.cs b/OpenSim/Region/CoreModules/World/Objects/Commands/ObjectCommandsModule.cs index 688648b..e53ab95 100644 --- a/OpenSim/Region/CoreModules/World/Objects/Commands/ObjectCommandsModule.cs +++ b/OpenSim/Region/CoreModules/World/Objects/Commands/ObjectCommandsModule.cs | |||
@@ -152,6 +152,15 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands | |||
152 | m_console.Commands.AddCommand( | 152 | m_console.Commands.AddCommand( |
153 | "Objects", | 153 | "Objects", |
154 | false, | 154 | false, |
155 | "show object owner", | ||
156 | "show object owner [--full] <OwnerID>", | ||
157 | "Show details of scene objects with given owner.", | ||
158 | "The --full option will print out information on all the parts of the object.\n", | ||
159 | HandleShowObjectByOwnerID); | ||
160 | |||
161 | m_console.Commands.AddCommand( | ||
162 | "Objects", | ||
163 | false, | ||
155 | "show object pos", | 164 | "show object pos", |
156 | "show object pos [--full] <start-coord> to <end-coord>", | 165 | "show object pos [--full] <start-coord> to <end-coord>", |
157 | "Show details of scene objects within the given area.", | 166 | "Show details of scene objects within the given area.", |
@@ -325,6 +334,32 @@ namespace OpenSim.Region.CoreModules.World.Objects.Commands | |||
325 | OutputSogsToConsole(searchPredicate, showFull); | 334 | OutputSogsToConsole(searchPredicate, showFull); |
326 | } | 335 | } |
327 | 336 | ||
337 | private void HandleShowObjectByOwnerID(string module, string[] cmdparams) | ||
338 | { | ||
339 | if (!(m_console.ConsoleScene == null || m_console.ConsoleScene == m_scene)) | ||
340 | return; | ||
341 | |||
342 | bool showFull = false; | ||
343 | OptionSet options = new OptionSet().Add("full", v => showFull = v != null); | ||
344 | |||
345 | List<string> mainParams = options.Parse(cmdparams); | ||
346 | |||
347 | if (mainParams.Count < 4) | ||
348 | { | ||
349 | m_console.OutputFormat("Usage: show object owner <OwnerID>"); | ||
350 | return; | ||
351 | } | ||
352 | |||
353 | UUID ownerID; | ||
354 | if (!ConsoleUtil.TryParseConsoleUuid(m_console, mainParams[3], out ownerID)) | ||
355 | return; | ||
356 | |||
357 | Predicate<SceneObjectGroup> searchPredicate | ||
358 | = so => so.OwnerID == ownerID && !so.IsAttachment; | ||
359 | |||
360 | OutputSogsToConsole(searchPredicate, showFull); | ||
361 | } | ||
362 | |||
328 | private void HandleShowObjectByPos(string module, string[] cmdparams) | 363 | private void HandleShowObjectByPos(string module, string[] cmdparams) |
329 | { | 364 | { |
330 | if (!(m_console.ConsoleScene == null || m_console.ConsoleScene == m_scene)) | 365 | if (!(m_console.ConsoleScene == null || m_console.ConsoleScene == m_scene)) |