diff options
Diffstat (limited to 'OpenSim/Tests/Common/Helpers/SceneHelpers.cs')
-rw-r--r-- | OpenSim/Tests/Common/Helpers/SceneHelpers.cs | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/OpenSim/Tests/Common/Helpers/SceneHelpers.cs b/OpenSim/Tests/Common/Helpers/SceneHelpers.cs index 584ca17..345ca8a 100644 --- a/OpenSim/Tests/Common/Helpers/SceneHelpers.cs +++ b/OpenSim/Tests/Common/Helpers/SceneHelpers.cs | |||
@@ -595,6 +595,32 @@ namespace OpenSim.Tests.Common | |||
595 | 595 | ||
596 | return so; | 596 | return so; |
597 | } | 597 | } |
598 | |||
599 | /// <summary> | ||
600 | /// Add a test object | ||
601 | /// </summary> | ||
602 | /// <param name="scene"></param> | ||
603 | /// <param name="parts"> | ||
604 | /// The number of parts that should be in the scene object | ||
605 | /// </param> | ||
606 | /// <param name="ownerId"></param> | ||
607 | /// <param name="partNamePrefix"> | ||
608 | /// The prefix to be given to part names. This will be suffixed with "Part<part no>" | ||
609 | /// (e.g. mynamePart1 for the root part) | ||
610 | /// </param> | ||
611 | /// <param name="uuidTail"> | ||
612 | /// The hexadecimal last part of the UUID for parts created. A UUID of the form "00000000-0000-0000-0000-{0:XD12}" | ||
613 | /// will be given to the root part, and incremented for each part thereafter. | ||
614 | /// </param> | ||
615 | /// <returns></returns> | ||
616 | public static SceneObjectGroup AddSceneObject(Scene scene, int parts, UUID ownerId, string partNamePrefix, int uuidTail) | ||
617 | { | ||
618 | SceneObjectGroup so = CreateSceneObject(parts, ownerId, partNamePrefix, uuidTail); | ||
619 | |||
620 | scene.AddNewSceneObject(so, false); | ||
621 | |||
622 | return so; | ||
623 | } | ||
598 | 624 | ||
599 | /// <summary> | 625 | /// <summary> |
600 | /// Create a scene object part. | 626 | /// Create a scene object part. |