Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

minor: Move co-ordinate related help to object commands to common Con…

…soleUtil.CoordHelp
  • Loading branch information...
commit 938fa96b9f5377ef330171232262b4d8aaca0918 1 parent 319ebac
@justincc justincc authored
View
17 OpenSim/Framework/Console/ConsoleUtil.cs
@@ -36,6 +36,23 @@ public class ConsoleUtil
{
// private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
+ /// <summary>
+ /// Used by modules to display stock co-ordinate help, though possibly this should be under some general section
+ /// rather than in each help summary.
+ /// </summary>
+ public const string CoordHelp
+= @"Each component of the coord is comma separated. There must be no spaces between the commas.
+If you don't care about the z component you can simply omit it.
+If you don't care about the x or y components then you can leave them blank (though a comma is still required)
+If you want to specify the maxmimum value of a component then you can use ~ instead of a number
+If you want to specify the minimum value of a component then you can use -~ instead of a number
+e.g.
+delete object pos 20,20,20 to 40,40,40
+delete object pos 20,20 to 40,40
+delete object pos ,20,20 to ,40,40
+delete object pos ,,30 to ,,~
+delete object pos ,,-~ to ,,30";
+
public const string MinRawConsoleVectorValue = "-~";
public const string MaxRawConsoleVectorValue = "~";
View
36 OpenSim/Region/CoreModules/World/Objects/Commands/ObjectCommandsModule.cs
@@ -122,17 +122,7 @@ public void AddRegion(Scene scene)
"delete object pos",
"delete object pos <start-coord> to <end-coord>",
"Delete scene objects within the given area.",
- "Each component of the coord is comma separated. There must be no spaces between the commas.\n"
- + "If you don't care about the z component you can simply omit it.\n"
- + "If you don't care about the x or y components then you can leave them blank (though a comma is still required)\n"
- + "If you want to specify the maxmimum value of a component then you can use ~ instead of a number\n"
- + "If you want to specify the minimum value of a component then you can use -~ instead of a number\n"
- + "e.g.\n"
- + "delete object pos 20,20,20 to 40,40,40\n"
- + "delete object pos 20,20 to 40,40\n"
- + "delete object pos ,20,20 to ,40,40\n"
- + "delete object pos ,,30 to ,,~\n"
- + "delete object pos ,,-~ to ,,30",
+ ConsoleUtil.CoordHelp,
HandleDeleteObject);
m_console.Commands.AddCommand(
@@ -164,17 +154,7 @@ public void AddRegion(Scene scene)
"Show details of scene objects within the given area.",
"The --full option will print out information on all the parts of the object.\n"
+ "For yet more detailed part information, use the \"show part\" commands.\n"
- + "Each component of the coord is comma separated. There must be no spaces between the commas.\n"
- + "If you don't care about the z component you can simply omit it.\n"
- + "If you don't care about the x or y components then you can leave them blank (though a comma is still required)\n"
- + "If you want to specify the maxmimum value of a component then you can use ~ instead of a number\n"
- + "If you want to specify the minimum value of a component then you can use -~ instead of a number\n"
- + "e.g.\n"
- + "show object pos 20,20,20 to 40,40,40\n"
- + "show object pos 20,20 to 40,40\n"
- + "show object pos ,20,20 to ,40,40\n"
- + "show object pos ,,30 to ,,~\n"
- + "show object pos ,,-~ to ,,30",
+ + ConsoleUtil.CoordHelp,
HandleShowObjectByPos);
m_console.Commands.AddCommand(
@@ -199,17 +179,7 @@ public void AddRegion(Scene scene)
"show part pos",
"show part pos <start-coord> to <end-coord>",
"Show details of scene object parts within the given area.",
- "Each component of the coord is comma separated. There must be no spaces between the commas.\n"
- + "If you don't care about the z component you can simply omit it.\n"
- + "If you don't care about the x or y components then you can leave them blank (though a comma is still required)\n"
- + "If you want to specify the maxmimum value of a component then you can use ~ instead of a number\n"
- + "If you want to specify the minimum value of a component then you can use -~ instead of a number\n"
- + "e.g.\n"
- + "show object pos 20,20,20 to 40,40,40\n"
- + "show object pos 20,20 to 40,40\n"
- + "show object pos ,20,20 to ,40,40\n"
- + "show object pos ,,30 to ,,~\n"
- + "show object pos ,,-~ to ,,30",
+ ConsoleUtil.CoordHelp,
HandleShowPartByPos);
}
Please sign in to comment.
Something went wrong with that request. Please try again.