30 using OpenMetaverse.Assets;
31 using OpenSim.Framework;
32 using OpenSim.Region.Framework.Scenes;
33 using OpenSim.Region.Framework.Scenes.Serialization;
34 using OpenSim.Services.Interfaces;
36 namespace OpenSim.Tests.Common
46 return CreateNotecardAsset(UUID.Random());
56 return CreateNotecardAsset(assetId,
"hello");
67 return CreateAsset(assetId, AssetType.Notecard, text, UUID.Random());
93 return CreateAsset(
new UUID(
string.Format(
"00000000-0000-0000-0000-{0:X12}", assetUuidTail)), sog);
122 return CreateAsset(
new UUID(
string.Format(
"00000000-0000-0000-0000-{0:X12}", assetUuidTail)), coa);
145 AssetNotecard anc =
new AssetNotecard();
149 return CreateAsset(assetUuid, assetType, anc.AssetData, creatorID);
157 AssetBase asset =
new AssetBase(assetUuid, assetUuid.ToString(), (sbyte)assetType, creatorID.ToString());
164 byte[] assetData = assetService.GetData(uuid.ToString());
165 return Encoding.ASCII.GetString(assetData);
static AssetBase CreateNotecardAsset(UUID assetId)
Create a notecard asset with dummy text and a random owner.
static string ReadAssetAsString(IAssetService assetService, UUID uuid)
A scene object group is conceptually an object in the scene. The object is constituted of SceneObject...
static AssetBase CreateAsset(int assetUuidTail, CoalescedSceneObjects coa)
Create an asset from the given scene object.
Serialize and deserialize scene objects.
static AssetBase CreateAsset(UUID assetUuid, AssetType assetType, byte[] data, UUID creatorID)
Create an asset from the given data.
Asset class. All Assets are reference by this class or a class derived from this class ...
static string ToOriginalXmlFormat(SceneObjectGroup sceneObject)
Serialize a scene object to the original xml format
static AssetBase CreateNotecardAsset(UUID assetId, string text)
Create a notecard asset with a random owner.
static AssetBase CreateNotecardAsset()
Create a notecard asset with a random uuids and dummy text.
static AssetBase CreateAsset(int assetUuidTail, SceneObjectGroup sog)
Create an asset from the given object.
Serialize and deserialize coalesced scene objects.
static AssetBase CreateAsset(UUID assetUuid, AssetType assetType, string text, UUID creatorID)
Create an asset from the given data.
static AssetBase CreateAsset(UUID assetUuid, CoalescedSceneObjects coa)
Create an asset from the given scene object.
static AssetBase CreateAsset(UUID assetUuid, SceneObjectGroup sog)
Create an asset from the given object.
static string ToXml(CoalescedSceneObjects coa)
Serialize coalesced objects to Xml
Represents a coalescene of scene objects. A coalescence occurs when objects that are not in the same ...
UUID CreatorId
The creator of this coalesence, though not necessarily the objects within it.