diff options
author | Melanie | 2011-04-08 04:16:29 +0100 |
---|---|---|
committer | Melanie | 2011-04-08 04:16:29 +0100 |
commit | 738daadaceada157eb0a8ea4a3437e037859b4d2 (patch) | |
tree | 1d0f8d63180928d77a7842e73c56e922666af75b /OpenSim/Tests | |
parent | Add support for the new display name related functions in LSL. This does not (diff) | |
parent | trivial whitespace removal to trigger a panda rebuild (diff) | |
download | opensim-SC_OLD-738daadaceada157eb0a8ea4a3437e037859b4d2.zip opensim-SC_OLD-738daadaceada157eb0a8ea4a3437e037859b4d2.tar.gz opensim-SC_OLD-738daadaceada157eb0a8ea4a3437e037859b4d2.tar.bz2 opensim-SC_OLD-738daadaceada157eb0a8ea4a3437e037859b4d2.tar.xz |
Merge branch 'master' into careminster-presence-refactor
Diffstat (limited to 'OpenSim/Tests')
-rw-r--r-- | OpenSim/Tests/Common/Setup/SceneSetupHelpers.cs | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/OpenSim/Tests/Common/Setup/SceneSetupHelpers.cs b/OpenSim/Tests/Common/Setup/SceneSetupHelpers.cs index 57850c1..709dd78 100644 --- a/OpenSim/Tests/Common/Setup/SceneSetupHelpers.cs +++ b/OpenSim/Tests/Common/Setup/SceneSetupHelpers.cs | |||
@@ -489,32 +489,38 @@ namespace OpenSim.Tests.Common.Setup | |||
489 | /// <returns></returns> | 489 | /// <returns></returns> |
490 | public static SceneObjectGroup CreateSceneObject(int parts, UUID ownerId) | 490 | public static SceneObjectGroup CreateSceneObject(int parts, UUID ownerId) |
491 | { | 491 | { |
492 | return CreateSceneObject(parts, ownerId, 0x1); | 492 | return CreateSceneObject(parts, ownerId, "", 0x1); |
493 | } | 493 | } |
494 | 494 | ||
495 | /// <summary> | 495 | /// <summary> |
496 | /// Create a scene object but do not add it to the scene. | 496 | /// Create a scene object but do not add it to the scene. |
497 | /// </summary> | 497 | /// </summary> |
498 | /// <param name="parts">The number of parts that should be in the scene object</param> | 498 | /// <param name="parts"> |
499 | /// The number of parts that should be in the scene object | ||
500 | /// </param> | ||
499 | /// <param name="ownerId"></param> | 501 | /// <param name="ownerId"></param> |
502 | /// <param name="partNamePrefix"> | ||
503 | /// The prefix to be given to part names. This will be suffixed with "Part<part no>" | ||
504 | /// (e.g. mynamePart0 for the root part) | ||
505 | /// </param> | ||
500 | /// <param name="uuidTail"> | 506 | /// <param name="uuidTail"> |
501 | /// The hexadecimal last part of the UUID for parts created. A UUID of the form "00000000-0000-0000-0000-{0:XD12}" | 507 | /// The hexadecimal last part of the UUID for parts created. A UUID of the form "00000000-0000-0000-0000-{0:XD12}" |
502 | /// will be given to the root part, and incremented for each part thereafter. | 508 | /// will be given to the root part, and incremented for each part thereafter. |
503 | /// </param> | 509 | /// </param> |
504 | /// <returns></returns> | 510 | /// <returns></returns> |
505 | public static SceneObjectGroup CreateSceneObject(int parts, UUID ownerId, int uuidTail) | 511 | public static SceneObjectGroup CreateSceneObject(int parts, UUID ownerId, string partNamePrefix, int uuidTail) |
506 | { | 512 | { |
507 | string rawSogId = string.Format("00000000-0000-0000-0000-{0:X12}", uuidTail); | 513 | string rawSogId = string.Format("00000000-0000-0000-0000-{0:X12}", uuidTail); |
508 | 514 | ||
509 | SceneObjectGroup sog | 515 | SceneObjectGroup sog |
510 | = new SceneObjectGroup( | 516 | = new SceneObjectGroup( |
511 | CreateSceneObjectPart("part0", new UUID(rawSogId), ownerId)); | 517 | CreateSceneObjectPart(string.Format("{0}Part0", partNamePrefix), new UUID(rawSogId), ownerId)); |
512 | 518 | ||
513 | if (parts > 1) | 519 | if (parts > 1) |
514 | for (int i = 1; i < parts; i++) | 520 | for (int i = 1; i < parts; i++) |
515 | sog.AddPart( | 521 | sog.AddPart( |
516 | CreateSceneObjectPart( | 522 | CreateSceneObjectPart( |
517 | string.Format("obj{0}", i), | 523 | string.Format("{0}Part{1}", partNamePrefix, i), |
518 | new UUID(string.Format("00000000-0000-0000-0000-{0:X12}", uuidTail + i)), | 524 | new UUID(string.Format("00000000-0000-0000-0000-{0:X12}", uuidTail + i)), |
519 | ownerId)); | 525 | ownerId)); |
520 | 526 | ||