From 7d89e122930be39e84a6d174548fa2d12ac0484a Mon Sep 17 00:00:00 2001
From: Teravus Ovares
Date: Sat, 6 Sep 2008 07:52:41 +0000
Subject: * This is the fabled LibOMV update with all of the libOMV types from
JHurliman * This is a HUGE OMG update and will definitely have unknown side
effects.. so this is really only for the strong hearted at this point.
Regular people should let the dust settle. * This has been tested to work
with most basic functions. However.. make sure you back up 'everything'
before using this. It's that big! * Essentially we're back at square 1 in
the testing phase.. so lets identify things that broke.
---
OpenSim/Region/Application/OpenSim.cs | 4 +-
OpenSim/Region/Application/OpenSimBase.cs | 28 +-
OpenSim/Region/ClientStack/LindenUDP/KillPacket.cs | 2 +-
.../Region/ClientStack/LindenUDP/LLClientView.cs | 768 ++++++++++-----------
.../ClientStack/LindenUDP/LLPacketHandler.cs | 10 +-
.../Region/ClientStack/LindenUDP/LLPacketQueue.cs | 10 +-
.../Region/ClientStack/LindenUDP/LLPacketServer.cs | 8 +-
OpenSim/Region/ClientStack/LindenUDP/LLQueItem.cs | 2 +-
.../Region/ClientStack/LindenUDP/LLUDPServer.cs | 4 +-
.../Region/ClientStack/RegionApplicationBase.cs | 6 +-
.../Communications/Local/LocalBackEndServices.cs | 26 +-
.../Communications/Local/LocalInventoryService.cs | 8 +-
.../Communications/Local/LocalLoginService.cs | 12 +-
.../Communications/Local/LocalUserServices.cs | 4 +-
.../Region/Communications/OGS1/OGS1GridServices.cs | 74 +-
.../Communications/OGS1/OGS1InterSimComms.cs | 34 +-
.../Communications/OGS1/OGS1InventoryService.cs | 18 +-
.../OGS1/OGS1SecureInventoryService.cs | 32 +-
.../Region/Communications/OGS1/OGS1UserServices.cs | 82 +--
OpenSim/Region/DataSnapshot/DataRequestHandler.cs | 4 +-
OpenSim/Region/DataSnapshot/DataSnapshotManager.cs | 6 +-
OpenSim/Region/DataSnapshot/EstateSnapshot.cs | 6 +-
OpenSim/Region/DataSnapshot/LandSnapshot.cs | 20 +-
OpenSim/Region/DataSnapshot/ObjectSnapshot.cs | 32 +-
OpenSim/Region/DataSnapshot/SnapshotStore.cs | 4 +-
.../Interfaces/IAgentAssetTransactions.cs | 8 +-
.../Environment/Interfaces/IAvatarFactory.cs | 6 +-
.../Interfaces/IDynamicTextureManager.cs | 16 +-
.../Region/Environment/Interfaces/IEmailModule.cs | 6 +-
.../Environment/Interfaces/IEstateDataStore.cs | 4 +-
.../Region/Environment/Interfaces/IEstateModule.cs | 4 +-
.../Region/Environment/Interfaces/IHttpRequests.cs | 10 +-
.../Environment/Interfaces/IInventoryModule.cs | 6 +-
.../Region/Environment/Interfaces/ILandChannel.cs | 6 +-
.../Region/Environment/Interfaces/ILandObject.cs | 18 +-
.../Environment/Interfaces/IRegionDataStore.cs | 20 +-
.../Region/Environment/Interfaces/IScriptModule.cs | 4 +-
.../Region/Environment/Interfaces/IWorldComm.cs | 16 +-
OpenSim/Region/Environment/Interfaces/IXMLRPC.cs | 16 +-
.../Agent/AssetDownload/AssetDownloadModule.cs | 30 +-
.../AssetTransaction/AgentAssetsTransactions.cs | 34 +-
.../AssetTransaction/AssetTransactionModule.cs | 24 +-
.../Agent/TextureDownload/TextureDownloadModule.cs | 10 +-
.../Agent/TextureDownload/TextureNotFoundSender.cs | 10 +-
.../TextureDownload/UserTextureDownloadService.cs | 14 +-
.../Modules/Agent/TextureSender/TextureSender.cs | 6 +-
.../Environment/Modules/Agent/Xfer/XferModule.cs | 4 +-
.../Avatar/AvatarFactory/AvatarFactoryModule.cs | 26 +-
.../Environment/Modules/Avatar/Chat/ChatModule.cs | 26 +-
.../Modules/Avatar/Chat/IRCBridgeModule.cs | 10 +-
.../Currency/SampleMoney/SampleMoneyModule.cs | 138 ++--
.../Modules/Avatar/Friends/FriendsModule.cs | 106 +--
.../Modules/Avatar/Groups/GroupsModule.cs | 36 +-
.../Avatar/InstantMessage/InstantMessageModule.cs | 104 +--
.../Modules/Avatar/Inventory/InventoryModule.cs | 24 +-
.../Avatar/Profiles/AvatarProfilesModule.cs | 6 +-
.../Voice/AsterixVoice/AsteriskVoiceModule.cs | 10 +-
.../Avatar/Voice/SIPVoice/SIPVoiceModule.cs | 10 +-
.../ContentManagementSystem/AuraMetaEntity.cs | 20 +-
.../ContentManagementSystem/BeamMetaEntity.cs | 22 +-
.../ContentManagementSystem/CMController.cs | 36 +-
.../ContentManagementSystem/CMEntityCollection.cs | 20 +-
.../Modules/ContentManagementSystem/CMModel.cs | 20 +-
.../Modules/ContentManagementSystem/CMView.cs | 12 +-
.../ContentManagementEntity.cs | 26 +-
.../ContentManagementModule.cs | 6 +-
.../ContentManagementSystem/FileSystemDatabase.cs | 30 +-
.../Modules/ContentManagementSystem/GitDatabase.cs | 38 +-
.../ContentManagementSystem/IContentDatabase.cs | 23 +-
.../Modules/ContentManagementSystem/MetaEntity.cs | 22 +-
.../ContentManagementSystem/PointMetaEntity.cs | 36 +-
.../SceneObjectGroupDiff.cs | 28 +-
.../Modules/InterGrid/OpenGridProtocolModule.cs | 86 +--
.../DynamicTexture/DynamicTextureModule.cs | 68 +-
.../Modules/Scripting/EMailModules/EmailModule.cs | 14 +-
.../Scripting/HttpRequest/ScriptsHttpRequests.cs | 24 +-
.../Scripting/LoadImageURL/LoadImageURLModule.cs | 16 +-
.../Scripting/VectorRender/VectorRenderModule.cs | 13 +-
.../Modules/Scripting/WorldComm/WorldCommModule.cs | 68 +-
.../Modules/Scripting/XMLRPC/XMLRPCModule.cs | 100 +--
.../Modules/World/Archiver/ArchiveConstants.cs | 16 +-
.../Modules/World/Archiver/ArchiveReadRequest.cs | 15 +-
.../World/Archiver/ArchiveWriteRequestExecution.cs | 12 +-
.../Archiver/ArchiveWriteRequestPreparation.cs | 32 +-
.../Modules/World/Archiver/ArchiverModule.cs | 2 +-
.../Modules/World/Archiver/AssetsArchiver.cs | 12 +-
.../Modules/World/Archiver/AssetsDearchiver.cs | 6 +-
.../Modules/World/Archiver/AssetsRequest.cs | 14 +-
.../Modules/World/Estate/EstateManagementModule.cs | 52 +-
.../Environment/Modules/World/Land/LandChannel.cs | 12 +-
.../Modules/World/Land/LandManagementModule.cs | 71 +-
.../Environment/Modules/World/Land/LandObject.cs | 46 +-
.../Environment/Modules/World/NPC/NPCAvatar.cs | 204 +++---
.../Environment/Modules/World/NPC/NPCModule.cs | 6 +-
.../Modules/World/Permissions/PermissionsModule.cs | 132 ++--
.../Modules/World/Serialiser/IRegionSerialiser.cs | 12 +-
.../Modules/World/Serialiser/SceneXmlLoader.cs | 15 +-
.../Modules/World/Serialiser/SerialiseObjects.cs | 6 +-
.../Modules/World/Serialiser/SerialiserModule.cs | 8 +-
.../Environment/Modules/World/Sun/SunModule.cs | 23 +-
.../Modules/World/Terrain/TerrainModule.cs | 6 +-
.../World/TreePopulator/TreePopulatorModule.cs | 37 +-
.../Modules/World/WorldMap/MapImageModule.cs | 79 ++-
.../World/WorldMap/ShadedMapTileRenderer.cs | 5 +-
.../World/WorldMap/TexturedMapTileRenderer.cs | 33 +-
.../Modules/World/WorldMap/WorldMapModule.cs | 49 +-
OpenSim/Region/Environment/Scenes/Animation.cs | 8 +-
OpenSim/Region/Environment/Scenes/AnimationSet.cs | 18 +-
.../Region/Environment/Scenes/AvatarAnimations.cs | 12 +-
OpenSim/Region/Environment/Scenes/EntityBase.cs | 61 +-
OpenSim/Region/Environment/Scenes/EntityList.cs | 21 +-
OpenSim/Region/Environment/Scenes/EventManager.cs | 88 +--
.../Environment/Scenes/IScenePresenceBody.cs | 4 +-
OpenSim/Region/Environment/Scenes/InnerScene.cs | 117 ++--
.../Region/Environment/Scenes/Scene.Inventory.cs | 202 +++---
.../Environment/Scenes/Scene.PacketHandlers.cs | 38 +-
OpenSim/Region/Environment/Scenes/Scene.cs | 303 ++++----
OpenSim/Region/Environment/Scenes/SceneBase.cs | 10 +-
.../Scenes/SceneCommunicationService.cs | 70 +-
.../Environment/Scenes/SceneExternalChecks.cs | 160 ++---
OpenSim/Region/Environment/Scenes/SceneManager.cs | 12 +-
.../Scenes/SceneObjectGroup.Inventory.cs | 10 +-
.../Region/Environment/Scenes/SceneObjectGroup.cs | 319 ++++-----
.../Scenes/SceneObjectPart.Inventory.cs | 48 +-
.../Region/Environment/Scenes/SceneObjectPart.cs | 698 +++++++++----------
OpenSim/Region/Environment/Scenes/ScenePresence.cs | 398 ++++++-----
.../Environment/Scenes/Scripting/IScriptHost.cs | 11 +-
.../Environment/Scenes/Scripting/NullScriptHost.cs | 19 +-
.../Region/Environment/Scenes/SimStatsReporter.cs | 2 +-
OpenSim/Region/Environment/Scenes/UndoState.cs | 10 +-
OpenSim/Region/Environment/Types/UpdateQueue.cs | 12 +-
.../Region/Examples/SimpleModule/ComplexObject.cs | 54 +-
.../Examples/SimpleModule/CpuCounterObject.cs | 6 +-
.../Examples/SimpleModule/FileSystemObject.cs | 6 +-
.../Region/Examples/SimpleModule/MyNpcCharacter.cs | 198 +++---
.../Region/Examples/SimpleModule/RegionModule.cs | 20 +-
OpenSim/Region/Interfaces/IMoneyModule.cs | 8 +-
.../Modules/AvatarFactory/AvatarFactoryModule.cs | 14 +-
.../Modules/SvnSerialiser/SvnBackupModule.cs | 4 +-
.../BasicPhysicsPlugin/BasicPhysicsPlugin.cs | 2 +-
.../Region/Physics/BulletXPlugin/BulletXPlugin.cs | 58 +-
OpenSim/Region/Physics/Manager/PhysicsActor.cs | 2 +-
.../Region/Physics/Manager/PhysicsPluginManager.cs | 88 ++-
OpenSim/Region/Physics/Manager/PhysicsScene.cs | 2 +-
OpenSim/Region/Physics/Manager/PhysicsVector.cs | 2 +-
OpenSim/Region/Physics/Meshing/Extruder.cs | 13 +-
OpenSim/Region/Physics/Meshing/HelperTypes.cs | 110 +--
OpenSim/Region/Physics/Meshing/Meshmerizer.cs | 3 +-
OpenSim/Region/Physics/Meshing/PrimMesher.cs | 11 +-
OpenSim/Region/Physics/Meshing/SculptMesh.cs | 7 +-
OpenSim/Region/Physics/OdePlugin/ODECharacter.cs | 3 +-
OpenSim/Region/Physics/OdePlugin/ODEPrim.cs | 96 +--
OpenSim/Region/Physics/OdePlugin/ODETestClass.cs | 4 +-
OpenSim/Region/Physics/OdePlugin/OdePlugin.cs | 51 +-
OpenSim/Region/Physics/POSPlugin/POSCharacter.cs | 2 +-
OpenSim/Region/Physics/POSPlugin/POSPlugin.cs | 1 -
OpenSim/Region/Physics/POSPlugin/POSPrim.cs | 2 +-
OpenSim/Region/Physics/POSPlugin/POSScene.cs | 17 +-
OpenSim/Region/Physics/PhysXPlugin/PhysXPlugin.cs | 12 +-
.../Region/ScriptEngine/Common/BuilIn_Commands.cs | 4 +-
.../ScriptEngine/Common/LSL_BuiltIn_Commands.cs | 586 ++++++++--------
OpenSim/Region/ScriptEngine/Common/LSL_Types.cs | 2 +-
.../ScriptEngine/Common/OSSL_BuilIn_Commands.cs | 29 +-
.../Common/ScriptEngineBase/AsyncCommandManager.cs | 4 +-
.../AsyncCommandPlugins/Dataserver.cs | 14 +-
.../AsyncCommandPlugins/SensorRepeat.cs | 42 +-
.../ScriptEngineBase/AsyncCommandPlugins/Timer.cs | 8 +-
.../Common/ScriptEngineBase/EventManager.cs | 64 +-
.../Common/ScriptEngineBase/EventQueueManager.cs | 10 +-
.../ScriptEngineBase/EventQueueThreadClass.cs | 4 +-
.../Common/ScriptEngineBase/ScriptManager.cs | 48 +-
.../ScriptEngine/Common/ScriptServerInterfaces.cs | 58 +-
OpenSim/Region/ScriptEngine/Common/TRPC_Remote.cs | 4 +-
.../DotNetEngine/Compiler/LSL/LSL2CSConverter.cs | 2 +-
.../ScriptEngine/DotNetEngine/ScriptManager.cs | 12 +-
.../Region/ScriptEngine/Interfaces/IScriptApi.cs | 4 +-
.../ScriptEngine/Interfaces/IScriptEngine.cs | 18 +-
.../ScriptEngine/Interfaces/IScriptInstance.cs | 12 +-
.../ScriptEngine/RemoteServer/EventManager.cs | 70 +-
.../Api/Implementation/AsyncCommandManager.cs | 8 +-
.../Shared/Api/Implementation/LSL_Api.cs | 559 ++++++++-------
.../Shared/Api/Implementation/OSSL_Api.cs | 31 +-
.../Api/Implementation/Plugins/Dataserver.cs | 14 +-
.../Shared/Api/Implementation/Plugins/Listener.cs | 6 +-
.../Api/Implementation/Plugins/SensorRepeat.cs | 50 +-
.../Shared/Api/Implementation/Plugins/Timer.cs | 12 +-
.../Shared/CodeTools/LSL2CSConverter.cs | 2 +-
OpenSim/Region/ScriptEngine/Shared/Helpers.cs | 28 +-
.../ScriptEngine/Shared/Instance/ScriptInstance.cs | 30 +-
.../Shared/Instance/ScriptSerializer.cs | 20 +-
OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs | 2 +-
.../Region/ScriptEngine/XEngine/EventManager.cs | 35 +-
OpenSim/Region/ScriptEngine/XEngine/XEngine.cs | 86 +--
193 files changed, 4375 insertions(+), 4555 deletions(-)
(limited to 'OpenSim/Region')
diff --git a/OpenSim/Region/Application/OpenSim.cs b/OpenSim/Region/Application/OpenSim.cs
index 6829bef..edb29db 100644
--- a/OpenSim/Region/Application/OpenSim.cs
+++ b/OpenSim/Region/Application/OpenSim.cs
@@ -32,7 +32,7 @@ using System.IO;
using System.Net;
using System.Reflection;
using System.Threading;
-using libsecondlife;
+using OpenMetaverse;
using log4net;
using Nini.Config;
using OpenSim.Framework;
@@ -776,7 +776,7 @@ namespace OpenSim
{
m_log.Error("[CONSOLE]: PLEASE NOTE, load-xml is DEPRECATED and may be REMOVED soon. If you are using this and there is some reason you can't use load-xml2, please file a mantis detailing the reason.");
- LLVector3 loadOffset = new LLVector3(0, 0, 0);
+ Vector3 loadOffset = new Vector3(0, 0, 0);
if (cmdparams.Length > 0)
{
bool generateNewIDS = false;
diff --git a/OpenSim/Region/Application/OpenSimBase.cs b/OpenSim/Region/Application/OpenSimBase.cs
index 4003001..86db865 100644
--- a/OpenSim/Region/Application/OpenSimBase.cs
+++ b/OpenSim/Region/Application/OpenSimBase.cs
@@ -32,7 +32,7 @@ using System.Net;
using System.Reflection;
using System.Text;
using System.Threading;
-using libsecondlife;
+using OpenMetaverse;
using log4net;
using Nini.Config;
using OpenSim.Framework;
@@ -64,7 +64,7 @@ namespace OpenSim
///
/// The file used to load and save prim backup xml if no filename has been specified
///
- protected const string DEFAULT_PRIM_BACKUP_FILENAME = "prim-backup.xml";
+ protected const string DEFAULT_PRIM_BACKUP_FILENAME = "prim-backup.Xml";
///
/// The file used to load and save an opensim archive if no filename has been specified
@@ -178,17 +178,17 @@ namespace OpenSim
}
else
{
- if (File.Exists("OpenSim.xml"))
+ if (File.Exists("OpenSim.Xml"))
{
//check for a xml config file
- Application.iniFilePath = "OpenSim.xml";
+ Application.iniFilePath = "OpenSim.Xml";
m_config.Source = new XmlConfigSource();
m_config.Source.Merge(new XmlConfigSource(Application.iniFilePath));
m_config.Source.Merge(configSource);
}
else
{
- //Application.iniFilePath = "OpenSim.xml";
+ //Application.iniFilePath = "OpenSim.Xml";
// m_config.ConfigSource = new XmlConfigSource();
// no default config files, so set default values, and save it
m_config.Source.Merge(DefaultConfig());
@@ -437,7 +437,7 @@ namespace OpenSim
m_sceneManager.OnRestartSim += handleRestartRegion;
}
- public LLUUID CreateUser(string tempfirstname, string templastname, string tempPasswd, uint regX, uint regY)
+ public UUID CreateUser(string tempfirstname, string templastname, string tempPasswd, uint regX, uint regY)
{
return m_commsManager.AddUser(tempfirstname, templastname, tempPasswd, regX, regY);
}
@@ -532,18 +532,18 @@ namespace OpenSim
// and has to happen before the region is registered with the grid.
scene.CreateTerrainTexture(false);
- try
- {
+ //try
+ //{
scene.RegisterRegionWithGrid();
- }
- catch (Exception e)
- {
- m_log.ErrorFormat("[STARTUP]: Registration of region with grid failed, aborting startup - {0}", e);
+ //}
+ //catch (Exception e)
+ //{
+ // m_log.ErrorFormat("[STARTUP]: Registration of region with grid failed, aborting startup - {0}", e);
// Carrying on now causes a lot of confusion down the
// line - we need to get the user's attention
- System.Environment.Exit(1);
- }
+ // System.Environment.Exit(1);
+ //}
// We need to do this after we've initialized the
// scripting engines.
diff --git a/OpenSim/Region/ClientStack/LindenUDP/KillPacket.cs b/OpenSim/Region/ClientStack/LindenUDP/KillPacket.cs
index d7d9128..8197ec7 100644
--- a/OpenSim/Region/ClientStack/LindenUDP/KillPacket.cs
+++ b/OpenSim/Region/ClientStack/LindenUDP/KillPacket.cs
@@ -28,7 +28,7 @@
using System;
using System.Collections.Generic;
using System.Text;
-using libsecondlife.Packets;
+using OpenMetaverse.Packets;
namespace OpenSim.Region.ClientStack.LindenUDP
{
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs
index 2a0190b..5e22e2d 100644
--- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs
+++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs
@@ -33,9 +33,8 @@ using System.Reflection;
using System.Text;
using System.Threading;
using System.Timers;
-using Axiom.Math;
-using libsecondlife;
-using libsecondlife.Packets;
+using OpenMetaverse;
+using OpenMetaverse.Packets;
using log4net;
using OpenSim.Framework;
using OpenSim.Framework.Communications.Cache;
@@ -62,12 +61,10 @@ namespace OpenSim.Region.ClientStack.LindenUDP
// }
/* static variables */
- public static TerrainManager TerrainManager = new TerrainManager(new SecondLife());
-
public static SynchronizeClientHandler SynchronizeClient = null;
/* private variables */
- private readonly LLUUID m_sessionId;
- private LLUUID m_secureSessionId = LLUUID.Zero;
+ private readonly UUID m_sessionId;
+ private UUID m_secureSessionId = UUID.Zero;
//private AgentAssetUpload UploadAssets;
private int m_debug = 0;
private readonly AssetCache m_assetCache;
@@ -81,16 +78,16 @@ namespace OpenSim.Region.ClientStack.LindenUDP
//private int m_lastPacketsReceived = 0;
//private byte[] ZeroOutBuffer = new byte[4096];
- private readonly LLUUID m_agentId;
+ private readonly UUID m_agentId;
private readonly uint m_circuitCode;
private int m_moneyBalance;
private IPacketHandler m_PacketHandler;
private int m_animationSequenceNumber = 1;
- private byte[] m_channelVersion = Helpers.StringToField("OpenSimulator 0.5"); // Dummy value needed by libSL
+ private byte[] m_channelVersion = Utils.StringToBytes("OpenSimulator 0.5"); // Dummy value needed by libSL
- private Dictionary m_defaultAnimations = new Dictionary();
+ private Dictionary m_defaultAnimations = new Dictionary();
private bool m_SendLogoutPacketWhenClosing = true;
@@ -112,13 +109,13 @@ namespace OpenSim.Region.ClientStack.LindenUDP
protected string m_firstName;
protected string m_lastName;
protected Thread m_clientThread;
- protected LLVector3 m_startpos;
+ protected Vector3 m_startpos;
protected EndPoint m_userEndPoint;
protected EndPoint m_proxyEndPoint;
- protected LLUUID m_activeGroupID = LLUUID.Zero;
+ protected UUID m_activeGroupID = UUID.Zero;
protected string m_activeGroupName = String.Empty;
protected ulong m_activeGroupPowers = 0;
- protected Dictionary m_groupPowers = new Dictionary();
+ protected Dictionary m_groupPowers = new Dictionary();
/* Instantiated Designated Event Delegates */
//- used so we don't create new objects for each incoming packet and then toss it out later */
@@ -264,7 +261,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
/* Properties */
- public LLUUID SecureSessionId
+ public UUID SecureSessionId
{
get { return m_secureSessionId; }
}
@@ -274,23 +271,23 @@ namespace OpenSim.Region.ClientStack.LindenUDP
get { return m_scene; }
}
- public LLUUID SessionId
+ public UUID SessionId
{
get { return m_sessionId; }
}
- public LLVector3 StartPos
+ public Vector3 StartPos
{
get { return m_startpos; }
set { m_startpos = value; }
}
- public LLUUID AgentId
+ public UUID AgentId
{
get { return m_agentId; }
}
- public LLUUID ActiveGroupId
+ public UUID ActiveGroupId
{
get { return m_activeGroupID; }
}
@@ -305,7 +302,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
get { return m_activeGroupPowers; }
}
- public ulong GetGroupPowers(LLUUID groupID)
+ public ulong GetGroupPowers(UUID groupID)
{
if (m_groupPowers.ContainsKey(groupID))
return m_groupPowers[groupID];
@@ -380,11 +377,11 @@ namespace OpenSim.Region.ClientStack.LindenUDP
/* METHODS */
public LLClientView(EndPoint remoteEP, IScene scene, AssetCache assetCache, LLPacketServer packServer,
- AgentCircuitManager authenSessions, LLUUID agentId, LLUUID sessionId, uint circuitCode, EndPoint proxyEP)
+ AgentCircuitManager authenSessions, UUID agentId, UUID sessionId, uint circuitCode, EndPoint proxyEP)
{
m_moneyBalance = 1000;
- m_channelVersion = Helpers.StringToField(scene.GetSimulatorVersion());
+ m_channelVersion = Utils.StringToBytes(scene.GetSimulatorVersion());
InitDefaultAnimations();
@@ -509,7 +506,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
kupack.UserInfo.SessionID = SessionId;
kupack.TargetBlock.TargetIP = (uint)0;
kupack.TargetBlock.TargetPort = (ushort)0;
- kupack.UserInfo.Reason = Helpers.StringToField(message);
+ kupack.UserInfo.Reason = Utils.StringToBytes(message);
OutPacket(kupack, ThrottleOutPacketType.Task);
// You must sleep here or users get no message!
Thread.Sleep(500);
@@ -760,7 +757,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
m_firstName = sessionInfo.LoginInfo.First;
m_lastName = sessionInfo.LoginInfo.Last;
- if (sessionInfo.LoginInfo.SecureSession != LLUUID.Zero)
+ if (sessionInfo.LoginInfo.SecureSession != UUID.Zero)
{
m_secureSessionId = sessionInfo.LoginInfo.SecureSession;
}
@@ -868,7 +865,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
public event UpdateVector OnUpdatePrimGroupScale;
public event StatusChange OnChildAgentStatus;
public event GenericCall2 OnStopMovement;
- public event Action OnRemoveAvatar;
+ public event Action OnRemoveAvatar;
public event RequestMapBlocks OnRequestMapBlocks;
public event RequestMapName OnMapNameRequest;
public event TeleportLocationRequest OnTeleportLocationRequest;
@@ -964,10 +961,10 @@ namespace OpenSim.Region.ClientStack.LindenUDP
// voire si c'est necessaire
- public void ActivateGesture(LLUUID assetId, LLUUID gestureId)
+ public void ActivateGesture(UUID assetId, UUID gestureId)
{
}
- public void DeactivateGesture(LLUUID assetId, LLUUID gestureId)
+ public void DeactivateGesture(UUID assetId, UUID gestureId)
{
}
#region Scene/Avatar to Client
@@ -994,7 +991,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
handshake.RegionInfo.WaterHeight = args.waterHeight;
handshake.RegionInfo.RegionFlags = args.regionFlags;
- handshake.RegionInfo.SimName = Helpers.StringToField(args.regionName);
+ handshake.RegionInfo.SimName = Utils.StringToBytes(args.regionName);
handshake.RegionInfo.SimOwner = args.SimOwner;
handshake.RegionInfo.TerrainBase0 = args.terrainBase0;
handshake.RegionInfo.TerrainBase1 = args.terrainBase1;
@@ -1004,7 +1001,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
handshake.RegionInfo.TerrainDetail1 = args.terrainDetail1;
handshake.RegionInfo.TerrainDetail2 = args.terrainDetail2;
handshake.RegionInfo.TerrainDetail3 = args.terrainDetail3;
- handshake.RegionInfo.CacheID = LLUUID.Random(); //I guess this is for the client to remember an old setting?
+ handshake.RegionInfo.CacheID = UUID.Random(); //I guess this is for the client to remember an old setting?
OutPacket(handshake, ThrottleOutPacketType.Task);
}
@@ -1013,7 +1010,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
///
///
///
- public void MoveAgentIntoRegion(RegionInfo regInfo, LLVector3 pos, LLVector3 look)
+ public void MoveAgentIntoRegion(RegionInfo regInfo, Vector3 pos, Vector3 look)
{
AgentMovementCompletePacket mov = (AgentMovementCompletePacket)PacketPool.Instance.GetPacket(PacketType.AgentMovementComplete);
mov.SimData.ChannelVersion = m_channelVersion;
@@ -1044,14 +1041,14 @@ namespace OpenSim.Region.ClientStack.LindenUDP
///
///
///
- public void SendChatMessage(string message, byte type, LLVector3 fromPos, string fromName,
- LLUUID fromAgentID, byte source, byte audible)
+ public void SendChatMessage(string message, byte type, Vector3 fromPos, string fromName,
+ UUID fromAgentID, byte source, byte audible)
{
- SendChatMessage(Helpers.StringToField(message), type, fromPos, fromName, fromAgentID, source, audible);
+ SendChatMessage(Utils.StringToBytes(message), type, fromPos, fromName, fromAgentID, source, audible);
}
- public void SendChatMessage(byte[] message, byte type, LLVector3 fromPos, string fromName,
- LLUUID fromAgentID, byte source, byte audible)
+ public void SendChatMessage(byte[] message, byte type, Vector3 fromPos, string fromName,
+ UUID fromAgentID, byte source, byte audible)
{
ChatFromSimulatorPacket reply = (ChatFromSimulatorPacket)PacketPool.Instance.GetPacket(PacketType.ChatFromSimulator);
reply.ChatData.Audible = audible;
@@ -1059,7 +1056,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
reply.ChatData.ChatType = type;
reply.ChatData.SourceType = source;
reply.ChatData.Position = fromPos;
- reply.ChatData.FromName = Helpers.StringToField(fromName);
+ reply.ChatData.FromName = Utils.StringToBytes(fromName);
reply.ChatData.OwnerID = fromAgentID;
reply.ChatData.SourceID = fromAgentID;
@@ -1071,8 +1068,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP
///
///
///
- public void SendInstantMessage(LLUUID fromAgent, LLUUID fromAgentSession, string message, LLUUID toAgent,
- LLUUID imSessionID, string fromName, byte dialog, uint timeStamp)
+ public void SendInstantMessage(UUID fromAgent, UUID fromAgentSession, string message, UUID toAgent,
+ UUID imSessionID, string fromName, byte dialog, uint timeStamp)
{
SendInstantMessage(
fromAgent, fromAgentSession, message, toAgent,
@@ -1084,8 +1081,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP
///
///
///
- public void SendInstantMessage(LLUUID fromAgent, LLUUID fromAgentSession, string message, LLUUID toAgent,
- LLUUID imSessionID, string fromName, byte dialog, uint timeStamp,
+ public void SendInstantMessage(UUID fromAgent, UUID fromAgentSession, string message, UUID toAgent,
+ UUID imSessionID, string fromName, byte dialog, uint timeStamp,
byte[] binaryBucket)
{
if (((Scene)(this.m_scene)).ExternalChecks.ExternalChecksCanInstantMessage(fromAgent, toAgent))
@@ -1095,17 +1092,17 @@ namespace OpenSim.Region.ClientStack.LindenUDP
msg.AgentData.AgentID = fromAgent;
msg.AgentData.SessionID = fromAgentSession;
- msg.MessageBlock.FromAgentName = Helpers.StringToField(fromName);
+ msg.MessageBlock.FromAgentName = Utils.StringToBytes(fromName);
msg.MessageBlock.Dialog = dialog;
msg.MessageBlock.FromGroup = false;
msg.MessageBlock.ID = imSessionID;
msg.MessageBlock.Offline = 0;
msg.MessageBlock.ParentEstateID = 0;
- msg.MessageBlock.Position = new LLVector3();
- msg.MessageBlock.RegionID = LLUUID.Random();
+ msg.MessageBlock.Position = new Vector3();
+ msg.MessageBlock.RegionID = UUID.Random();
msg.MessageBlock.Timestamp = timeStamp;
msg.MessageBlock.ToAgentID = toAgent;
- msg.MessageBlock.Message = Helpers.StringToField(message);
+ msg.MessageBlock.Message = Utils.StringToBytes(message);
msg.MessageBlock.BinaryBucket = binaryBucket;
OutPacket(msg, ThrottleOutPacketType.Task);
@@ -1188,7 +1185,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
patches[0] = patchx + 0 + patchy * 16;
- LayerDataPacket layerpack = LLClientView.TerrainManager.CreateLandPacket(map, patches);
+ LayerDataPacket layerpack = TerrainCompressor.CreateLandPacket(map, patches);
layerpack.Header.Zerocoded = true;
OutPacket(layerpack, ThrottleOutPacketType.Land);
@@ -1242,10 +1239,10 @@ namespace OpenSim.Region.ClientStack.LindenUDP
return agentData;
}
- public void CrossRegion(ulong newRegionHandle, LLVector3 pos, LLVector3 lookAt, IPEndPoint externalIPEndPoint,
+ public void CrossRegion(ulong newRegionHandle, Vector3 pos, Vector3 lookAt, IPEndPoint externalIPEndPoint,
string capsURL)
{
- LLVector3 look = new LLVector3(lookAt.X * 10, lookAt.Y * 10, lookAt.Z * 10);
+ Vector3 look = new Vector3(lookAt.X * 10, lookAt.Y * 10, lookAt.Z * 10);
//CrossedRegionPacket newSimPack = (CrossedRegionPacket)PacketPool.Instance.GetPacket(PacketType.CrossedRegion);
CrossedRegionPacket newSimPack = new CrossedRegionPacket();
@@ -1264,7 +1261,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
newSimPack.RegionData.SimIP += (uint)byteIP[1] << 8;
newSimPack.RegionData.SimIP += (uint)byteIP[0];
newSimPack.RegionData.SimPort = (ushort)externalIPEndPoint.Port;
- newSimPack.RegionData.SeedCapability = Helpers.StringToField(capsURL);
+ newSimPack.RegionData.SeedCapability = Utils.StringToBytes(capsURL);
// Hack to get this out immediately and skip throttles
OutPacket(newSimPack, ThrottleOutPacketType.Unknown);
@@ -1289,7 +1286,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
mapReply.Data[i].X = mapBlocks2[i].X;
mapReply.Data[i].Y = mapBlocks2[i].Y;
mapReply.Data[i].WaterHeight = mapBlocks2[i].WaterHeight;
- mapReply.Data[i].Name = Helpers.StringToField(mapBlocks2[i].Name);
+ mapReply.Data[i].Name = Utils.StringToBytes(mapBlocks2[i].Name);
mapReply.Data[i].RegionFlags = mapBlocks2[i].RegionFlags;
mapReply.Data[i].Access = mapBlocks2[i].Access;
mapReply.Data[i].Agents = mapBlocks2[i].Agents;
@@ -1319,7 +1316,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
}
}
- public void SendLocalTeleport(LLVector3 position, LLVector3 lookAt, uint flags)
+ public void SendLocalTeleport(Vector3 position, Vector3 lookAt, uint flags)
{
TeleportLocalPacket tpLocal = (TeleportLocalPacket)PacketPool.Instance.GetPacket(PacketType.TeleportLocal);
tpLocal.Info.AgentID = AgentId;
@@ -1342,7 +1339,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
teleport.Info.RegionHandle = regionHandle;
teleport.Info.SimAccess = simAccess;
- teleport.Info.SeedCapability = Helpers.StringToField(capsURL);
+ teleport.Info.SeedCapability = Utils.StringToBytes(capsURL);
IPAddress oIP = newRegionEndPoint.Address;
byte[] byteIP = oIP.GetAddressBytes();
@@ -1367,7 +1364,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
{
TeleportFailedPacket tpFailed = (TeleportFailedPacket)PacketPool.Instance.GetPacket(PacketType.TeleportFailed);
tpFailed.Info.AgentID = AgentId;
- tpFailed.Info.Reason = Helpers.StringToField(reason);
+ tpFailed.Info.Reason = Utils.StringToBytes(reason);
// Hack to get this out immediately and skip throttles
OutPacket(tpFailed, ThrottleOutPacketType.Unknown);
@@ -1386,7 +1383,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
OutPacket(tpStart, ThrottleOutPacketType.Unknown);
}
- public void SendMoneyBalance(LLUUID transaction, bool success, byte[] description, int balance)
+ public void SendMoneyBalance(UUID transaction, bool success, byte[] description, int balance)
{
MoneyBalanceReplyPacket money = (MoneyBalanceReplyPacket)PacketPool.Instance.GetPacket(PacketType.MoneyBalanceReply);
money.MoneyData.AgentID = AgentId;
@@ -1397,7 +1394,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
OutPacket(money, ThrottleOutPacketType.Task);
}
- public void SendPayPrice(LLUUID objectID, int[] payPrice)
+ public void SendPayPrice(UUID objectID, int[] payPrice)
{
if (payPrice[0] == 0 &&
payPrice[1] == 0 &&
@@ -1431,7 +1428,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
OutPacket(pc, ThrottleOutPacketType.Unknown);
}
- public void SendKillObject(ulong regionHandle, uint localID)
+ public void SendKiPrimitive(ulong regionHandle, uint localID)
{
KillObjectPacket kill = (KillObjectPacket)PacketPool.Instance.GetPacket(PacketType.KillObject);
// TODO: don't create new blocks if recycling an old packet
@@ -1453,7 +1450,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
/// The items contained in the folder identified by folderID
/// Do we need to send folder information?
/// Do we need to send item information?
- public void SendInventoryFolderDetails(LLUUID ownerID, LLUUID folderID, List items,
+ public void SendInventoryFolderDetails(UUID ownerID, UUID folderID, List items,
List folders,
bool fetchFolders, bool fetchItems)
{
@@ -1501,17 +1498,17 @@ namespace OpenSim.Region.ClientStack.LindenUDP
descend.ItemData[i].AssetID = item.AssetID;
descend.ItemData[i].CreatorID = item.Creator;
descend.ItemData[i].BaseMask = item.BasePermissions;
- descend.ItemData[i].Description = Helpers.StringToField(item.Description);
+ descend.ItemData[i].Description = Utils.StringToBytes(item.Description);
descend.ItemData[i].EveryoneMask = item.EveryOnePermissions;
descend.ItemData[i].OwnerMask = item.CurrentPermissions;
descend.ItemData[i].FolderID = item.Folder;
descend.ItemData[i].InvType = (sbyte)item.InvType;
- descend.ItemData[i].Name = Helpers.StringToField(item.Name);
+ descend.ItemData[i].Name = Utils.StringToBytes(item.Name);
descend.ItemData[i].NextOwnerMask = item.NextPermissions;
descend.ItemData[i].OwnerID = item.Owner;
descend.ItemData[i].Type = (sbyte)item.AssetType;
- //descend.ItemData[i].GroupID = new LLUUID("00000000-0000-0000-0000-000000000000");
+ //descend.ItemData[i].GroupID = new UUID("00000000-0000-0000-0000-000000000000");
descend.ItemData[i].GroupID = item.GroupID;
descend.ItemData[i].GroupOwned = item.GroupOwned;
descend.ItemData[i].GroupMask = 0;
@@ -1585,7 +1582,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
{
descend.FolderData[i] = new InventoryDescendentsPacket.FolderDataBlock();
descend.FolderData[i].FolderID = folder.ID;
- descend.FolderData[i].Name = Helpers.StringToField(folder.Name);
+ descend.FolderData[i].Name = Utils.StringToBytes(folder.Name);
descend.FolderData[i].ParentID = folder.ParentID;
descend.FolderData[i].Type = (sbyte)folder.Type;
@@ -1621,7 +1618,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
}
}
- private InventoryDescendentsPacket CreateInventoryDescendentsPacket(LLUUID ownerID, LLUUID folderID)
+ private InventoryDescendentsPacket CreateInventoryDescendentsPacket(UUID ownerID, UUID folderID)
{
InventoryDescendentsPacket descend = (InventoryDescendentsPacket)PacketPool.Instance.GetPacket(PacketType.InventoryDescendents);
descend.Header.Zerocoded = true;
@@ -1633,7 +1630,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
return descend;
}
- public void SendInventoryItemDetails(LLUUID ownerID, InventoryItemBase item)
+ public void SendInventoryItemDetails(UUID ownerID, InventoryItemBase item)
{
uint FULL_MASK_PERMISSIONS = (uint)PermissionMask.All;
FetchInventoryReplyPacket inventoryReply = (FetchInventoryReplyPacket)PacketPool.Instance.GetPacket(PacketType.FetchInventoryReply);
@@ -1647,17 +1644,17 @@ namespace OpenSim.Region.ClientStack.LindenUDP
inventoryReply.InventoryData[0].BaseMask = item.BasePermissions;
inventoryReply.InventoryData[0].CreationDate =
(int)(DateTime.UtcNow - new DateTime(1970, 1, 1)).TotalSeconds;
- inventoryReply.InventoryData[0].Description = Helpers.StringToField(item.Description);
+ inventoryReply.InventoryData[0].Description = Utils.StringToBytes(item.Description);
inventoryReply.InventoryData[0].EveryoneMask = item.EveryOnePermissions;
inventoryReply.InventoryData[0].FolderID = item.Folder;
inventoryReply.InventoryData[0].InvType = (sbyte)item.InvType;
- inventoryReply.InventoryData[0].Name = Helpers.StringToField(item.Name);
+ inventoryReply.InventoryData[0].Name = Utils.StringToBytes(item.Name);
inventoryReply.InventoryData[0].NextOwnerMask = item.NextPermissions;
inventoryReply.InventoryData[0].OwnerID = item.Owner;
inventoryReply.InventoryData[0].OwnerMask = item.CurrentPermissions;
inventoryReply.InventoryData[0].Type = (sbyte)item.AssetType;
- //inventoryReply.InventoryData[0].GroupID = new LLUUID("00000000-0000-0000-0000-000000000000");
+ //inventoryReply.InventoryData[0].GroupID = new UUID("00000000-0000-0000-0000-000000000000");
inventoryReply.InventoryData[0].GroupID = item.GroupID;
inventoryReply.InventoryData[0].GroupOwned = item.GroupOwned;
inventoryReply.InventoryData[0].GroupMask = 0;
@@ -1686,12 +1683,12 @@ namespace OpenSim.Region.ClientStack.LindenUDP
= (BulkUpdateInventoryPacket)PacketPool.Instance.GetPacket(PacketType.BulkUpdateInventory);
bulkUpdate.AgentData.AgentID = AgentId;
- bulkUpdate.AgentData.TransactionID = LLUUID.Random();
+ bulkUpdate.AgentData.TransactionID = UUID.Random();
bulkUpdate.FolderData = new BulkUpdateInventoryPacket.FolderDataBlock[1];
bulkUpdate.FolderData[0] = new BulkUpdateInventoryPacket.FolderDataBlock();
- bulkUpdate.FolderData[0].FolderID = LLUUID.Zero;
- bulkUpdate.FolderData[0].ParentID = LLUUID.Zero;
+ bulkUpdate.FolderData[0].FolderID = UUID.Zero;
+ bulkUpdate.FolderData[0].ParentID = UUID.Zero;
bulkUpdate.FolderData[0].Type = -1;
bulkUpdate.FolderData[0].Name = new byte[0];
@@ -1702,17 +1699,17 @@ namespace OpenSim.Region.ClientStack.LindenUDP
bulkUpdate.ItemData[0].CreatorID = item.Creator;
bulkUpdate.ItemData[0].BaseMask = item.BasePermissions;
bulkUpdate.ItemData[0].CreationDate = 1000;
- bulkUpdate.ItemData[0].Description = Helpers.StringToField(item.Description);
+ bulkUpdate.ItemData[0].Description = Utils.StringToBytes(item.Description);
bulkUpdate.ItemData[0].EveryoneMask = item.EveryOnePermissions;
bulkUpdate.ItemData[0].FolderID = item.Folder;
bulkUpdate.ItemData[0].InvType = (sbyte)item.InvType;
- bulkUpdate.ItemData[0].Name = Helpers.StringToField(item.Name);
+ bulkUpdate.ItemData[0].Name = Utils.StringToBytes(item.Name);
bulkUpdate.ItemData[0].NextOwnerMask = item.NextPermissions;
bulkUpdate.ItemData[0].OwnerID = item.Owner;
bulkUpdate.ItemData[0].OwnerMask = item.CurrentPermissions;
bulkUpdate.ItemData[0].Type = (sbyte)item.AssetType;
- //bulkUpdate.ItemData[0].GroupID = new LLUUID("00000000-0000-0000-0000-000000000000");
+ //bulkUpdate.ItemData[0].GroupID = new UUID("00000000-0000-0000-0000-000000000000");
bulkUpdate.ItemData[0].GroupID = item.GroupID;
bulkUpdate.ItemData[0].GroupOwned = item.GroupOwned;
bulkUpdate.ItemData[0].GroupMask = 0;
@@ -1750,17 +1747,17 @@ namespace OpenSim.Region.ClientStack.LindenUDP
InventoryReply.InventoryData[0].AssetID = Item.AssetID;
InventoryReply.InventoryData[0].CreatorID = Item.Creator;
InventoryReply.InventoryData[0].BaseMask = Item.BasePermissions;
- InventoryReply.InventoryData[0].Description = Helpers.StringToField(Item.Description);
+ InventoryReply.InventoryData[0].Description = Utils.StringToBytes(Item.Description);
InventoryReply.InventoryData[0].EveryoneMask = Item.EveryOnePermissions;
InventoryReply.InventoryData[0].FolderID = Item.Folder;
InventoryReply.InventoryData[0].InvType = (sbyte)Item.InvType;
- InventoryReply.InventoryData[0].Name = Helpers.StringToField(Item.Name);
+ InventoryReply.InventoryData[0].Name = Utils.StringToBytes(Item.Name);
InventoryReply.InventoryData[0].NextOwnerMask = Item.NextPermissions;
InventoryReply.InventoryData[0].OwnerID = Item.Owner;
InventoryReply.InventoryData[0].OwnerMask = Item.CurrentPermissions;
InventoryReply.InventoryData[0].Type = (sbyte)Item.AssetType;
- //InventoryReply.InventoryData[0].GroupID = new LLUUID("00000000-0000-0000-0000-000000000000");
+ //InventoryReply.InventoryData[0].GroupID = new UUID("00000000-0000-0000-0000-000000000000");
InventoryReply.InventoryData[0].GroupID = Item.GroupID;
InventoryReply.InventoryData[0].GroupOwned = Item.GroupOwned;
InventoryReply.InventoryData[0].GroupMask = 0;
@@ -1781,7 +1778,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
OutPacket(InventoryReply, ThrottleOutPacketType.Asset);
}
- public void SendRemoveInventoryItem(LLUUID itemID)
+ public void SendRemoveInventoryItem(UUID itemID)
{
RemoveInventoryItemPacket remove = (RemoveInventoryItemPacket)PacketPool.Instance.GetPacket(PacketType.RemoveInventoryItem);
// TODO: don't create new blocks if recycling an old packet
@@ -1807,7 +1804,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
OutPacket(scriptcontrol, ThrottleOutPacketType.Task);
}
- public void SendTaskInventory(LLUUID taskID, short serial, byte[] fileName)
+ public void SendTaskInventory(UUID taskID, short serial, byte[] fileName)
{
ReplyTaskInventoryPacket replytask = (ReplyTaskInventoryPacket)PacketPool.Instance.GetPacket(PacketType.ReplyTaskInventory);
replytask.InventoryData.TaskID = taskID;
@@ -1872,7 +1869,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
OutPacket(replyPacket, ThrottleOutPacketType.Task);
}
- public void SendAgentDataUpdate(LLUUID agentid, LLUUID activegroupid, string firstname, string lastname, ulong grouppowers, string groupname, string grouptitle)
+ public void SendAgentDataUpdate(UUID agentid, UUID activegroupid, string firstname, string lastname, ulong grouppowers, string groupname, string grouptitle)
{
m_activeGroupID = activegroupid;
@@ -1882,11 +1879,11 @@ namespace OpenSim.Region.ClientStack.LindenUDP
AgentDataUpdatePacket sendAgentDataUpdate = (AgentDataUpdatePacket)PacketPool.Instance.GetPacket(PacketType.AgentDataUpdate);
sendAgentDataUpdate.AgentData.ActiveGroupID = activegroupid;
sendAgentDataUpdate.AgentData.AgentID = agentid;
- sendAgentDataUpdate.AgentData.FirstName = Helpers.StringToField(firstname);
- sendAgentDataUpdate.AgentData.GroupName = Helpers.StringToField(groupname);
+ sendAgentDataUpdate.AgentData.FirstName = Utils.StringToBytes(firstname);
+ sendAgentDataUpdate.AgentData.GroupName = Utils.StringToBytes(groupname);
sendAgentDataUpdate.AgentData.GroupPowers = grouppowers;
- sendAgentDataUpdate.AgentData.GroupTitle = Helpers.StringToField(grouptitle);
- sendAgentDataUpdate.AgentData.LastName = Helpers.StringToField(lastname);
+ sendAgentDataUpdate.AgentData.GroupTitle = Utils.StringToBytes(grouptitle);
+ sendAgentDataUpdate.AgentData.LastName = Utils.StringToBytes(lastname);
OutPacket(sendAgentDataUpdate, ThrottleOutPacketType.Task);
}
@@ -1898,7 +1895,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
public void SendAlertMessage(string message)
{
AlertMessagePacket alertPack = (AlertMessagePacket)PacketPool.Instance.GetPacket(PacketType.AlertMessage);
- alertPack.AlertData.Message = Helpers.StringToField(message);
+ alertPack.AlertData.Message = Utils.StringToBytes(message);
OutPacket(alertPack, ThrottleOutPacketType.Task);
}
@@ -1924,46 +1921,46 @@ namespace OpenSim.Region.ClientStack.LindenUDP
{
AgentAlertMessagePacket alertPack = (AgentAlertMessagePacket)PacketPool.Instance.GetPacket(PacketType.AgentAlertMessage);
alertPack.AgentData.AgentID = AgentId;
- alertPack.AlertData.Message = Helpers.StringToField(message);
+ alertPack.AlertData.Message = Utils.StringToBytes(message);
alertPack.AlertData.Modal = modal;
return alertPack;
}
- public void SendLoadURL(string objectname, LLUUID objectID, LLUUID ownerID, bool groupOwned, string message,
+ public void SendLoadURL(string objectname, UUID objectID, UUID ownerID, bool groupOwned, string message,
string url)
{
LoadURLPacket loadURL = (LoadURLPacket)PacketPool.Instance.GetPacket(PacketType.LoadURL);
- loadURL.Data.ObjectName = Helpers.StringToField(objectname);
+ loadURL.Data.ObjectName = Utils.StringToBytes(objectname);
loadURL.Data.ObjectID = objectID;
loadURL.Data.OwnerID = ownerID;
loadURL.Data.OwnerIsGroup = groupOwned;
- loadURL.Data.Message = Helpers.StringToField(message);
- loadURL.Data.URL = Helpers.StringToField(url);
+ loadURL.Data.Message = Utils.StringToBytes(message);
+ loadURL.Data.URL = Utils.StringToBytes(url);
OutPacket(loadURL, ThrottleOutPacketType.Task);
}
- public void SendDialog(string objectname, LLUUID objectID, LLUUID ownerID, string msg, LLUUID textureID, int ch, string[] buttonlabels)
+ public void SendDialog(string objectname, UUID objectID, UUID ownerID, string msg, UUID textureID, int ch, string[] buttonlabels)
{
ScriptDialogPacket dialog = (ScriptDialogPacket)PacketPool.Instance.GetPacket(PacketType.ScriptDialog);
dialog.Data.ObjectID = objectID;
- dialog.Data.ObjectName = Helpers.StringToField(objectname);
- dialog.Data.FirstName = Helpers.StringToField(this.FirstName);
- dialog.Data.LastName = Helpers.StringToField(this.LastName);
- dialog.Data.Message = Helpers.StringToField(msg);
+ dialog.Data.ObjectName = Utils.StringToBytes(objectname);
+ dialog.Data.FirstName = Utils.StringToBytes(this.FirstName);
+ dialog.Data.LastName = Utils.StringToBytes(this.LastName);
+ dialog.Data.Message = Utils.StringToBytes(msg);
dialog.Data.ImageID = textureID;
dialog.Data.ChatChannel = ch;
ScriptDialogPacket.ButtonsBlock[] buttons = new ScriptDialogPacket.ButtonsBlock[buttonlabels.Length];
for (int i = 0; i < buttonlabels.Length; i++)
{
buttons[i] = new ScriptDialogPacket.ButtonsBlock();
- buttons[i].ButtonLabel = Helpers.StringToField(buttonlabels[i]);
+ buttons[i].ButtonLabel = Utils.StringToBytes(buttonlabels[i]);
}
dialog.Buttons = buttons;
OutPacket(dialog, ThrottleOutPacketType.Task);
}
- public void SendPreLoadSound(LLUUID objectID, LLUUID ownerID, LLUUID soundID)
+ public void SendPreLoadSound(UUID objectID, UUID ownerID, UUID soundID)
{
PreloadSoundPacket preSound = (PreloadSoundPacket)PacketPool.Instance.GetPacket(PacketType.PreloadSound);
// TODO: don't create new blocks if recycling an old packet
@@ -1976,7 +1973,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
OutPacket(preSound, ThrottleOutPacketType.Task);
}
- public void SendPlayAttachedSound(LLUUID soundID, LLUUID objectID, LLUUID ownerID, float gain, byte flags)
+ public void SendPlayAttachedSound(UUID soundID, UUID objectID, UUID ownerID, float gain, byte flags)
{
AttachedSoundPacket sound = (AttachedSoundPacket)PacketPool.Instance.GetPacket(PacketType.AttachedSound);
sound.DataBlock.SoundID = soundID;
@@ -1988,7 +1985,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
OutPacket(sound, ThrottleOutPacketType.Task);
}
- public void SendTriggeredSound(LLUUID soundID, LLUUID ownerID, LLUUID objectID, LLUUID parentID, ulong handle, LLVector3 position, float gain)
+ public void SendTriggeredSound(UUID soundID, UUID ownerID, UUID objectID, UUID parentID, ulong handle, Vector3 position, float gain)
{
SoundTriggerPacket sound = (SoundTriggerPacket)PacketPool.Instance.GetPacket(PacketType.SoundTrigger);
sound.SoundData.SoundID = soundID;
@@ -2002,7 +1999,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
OutPacket(sound, ThrottleOutPacketType.Task);
}
- public void SendAttachedSoundGainChange(LLUUID objectID, float gain)
+ public void SendAttachedSoundGainChange(UUID objectID, float gain)
{
AttachedSoundGainChangePacket sound = (AttachedSoundGainChangePacket)PacketPool.Instance.GetPacket(PacketType.AttachedSoundGainChange);
sound.DataBlock.ObjectID = objectID;
@@ -2011,7 +2008,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
OutPacket(sound, ThrottleOutPacketType.Task);
}
- public void SendSunPos(LLVector3 Position, LLVector3 Velocity, ulong CurrentTime, uint SecondsPerSunCycle, uint SecondsPerYear, float OrbitalPosition)
+ public void SendSunPos(Vector3 Position, Vector3 Velocity, ulong CurrentTime, uint SecondsPerSunCycle, uint SecondsPerYear, float OrbitalPosition)
{
SimulatorViewerTimeMessagePacket viewertime = (SimulatorViewerTimeMessagePacket)PacketPool.Instance.GetPacket(PacketType.SimulatorViewerTimeMessage);
viewertime.TimeInfo.SunDirection = Position;
@@ -2039,7 +2036,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
int sunPhase = (phase + 2) / 2;
if ((sunPhase < 6) || (sunPhase > 36))
{
- viewertime.TimeInfo.SunDirection = new LLVector3(0f, 0.8f, -0.8f);
+ viewertime.TimeInfo.SunDirection = new Vector3(0f, 0.8f, -0.8f);
Console.WriteLine("sending night");
}
else
@@ -2067,37 +2064,37 @@ namespace OpenSim.Region.ClientStack.LindenUDP
{
yValue *= -1;
}
- viewertime.TimeInfo.SunDirection = new LLVector3(0f, yValue, 0.3f);
+ viewertime.TimeInfo.SunDirection = new Vector3(0f, yValue, 0.3f);
Console.WriteLine("sending sun update " + yValue);
}
- viewertime.TimeInfo.SunAngVelocity = new LLVector3(0, 0.0f, 10.0f);
+ viewertime.TimeInfo.SunAngVelocity = new Vector3(0, 0.0f, 10.0f);
viewertime.TimeInfo.UsecSinceStart = (ulong)Util.UnixTimeSinceEpoch();
viewertime.Header.Reliable = false;
OutPacket(viewertime, ThrottleOutPacketType.Task);
*/
}
- public void SendAvatarProperties(LLUUID avatarID, string aboutText, string bornOn, Byte[] charterMember,
- string flAbout, uint flags, LLUUID flImageID, LLUUID imageID, string profileURL,
- LLUUID partnerID)
+ public void SendAvatarProperties(UUID avatarID, string aboutText, string bornOn, Byte[] charterMember,
+ string flAbout, uint flags, UUID flImageID, UUID imageID, string profileURL,
+ UUID partnerID)
{
AvatarPropertiesReplyPacket avatarReply = (AvatarPropertiesReplyPacket)PacketPool.Instance.GetPacket(PacketType.AvatarPropertiesReply);
avatarReply.AgentData.AgentID = AgentId;
avatarReply.AgentData.AvatarID = avatarID;
if (aboutText != null)
- avatarReply.PropertiesData.AboutText = Helpers.StringToField(aboutText);
+ avatarReply.PropertiesData.AboutText = Utils.StringToBytes(aboutText);
else
- avatarReply.PropertiesData.AboutText = Helpers.StringToField("");
- avatarReply.PropertiesData.BornOn = Helpers.StringToField(bornOn);
+ avatarReply.PropertiesData.AboutText = Utils.StringToBytes("");
+ avatarReply.PropertiesData.BornOn = Utils.StringToBytes(bornOn);
avatarReply.PropertiesData.CharterMember = charterMember;
if (flAbout != null)
- avatarReply.PropertiesData.FLAboutText = Helpers.StringToField(flAbout);
+ avatarReply.PropertiesData.FLAboutText = Utils.StringToBytes(flAbout);
else
- avatarReply.PropertiesData.FLAboutText = Helpers.StringToField("");
+ avatarReply.PropertiesData.FLAboutText = Utils.StringToBytes("");
avatarReply.PropertiesData.Flags = flags;
avatarReply.PropertiesData.FLImageID = flImageID;
avatarReply.PropertiesData.ImageID = imageID;
- avatarReply.PropertiesData.ProfileURL = Helpers.StringToField(profileURL);
+ avatarReply.PropertiesData.ProfileURL = Utils.StringToBytes(profileURL);
avatarReply.PropertiesData.PartnerID = partnerID;
OutPacket(avatarReply, ThrottleOutPacketType.Task);
}
@@ -2140,7 +2137,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
///
///
///
- public void SendAppearance(LLUUID agentID, byte[] visualParams, byte[] textureEntry)
+ public void SendAppearance(UUID agentID, byte[] visualParams, byte[] textureEntry)
{
AvatarAppearancePacket avp = (AvatarAppearancePacket)PacketPool.Instance.GetPacket(PacketType.AvatarAppearance);
// TODO: don't create new blocks if recycling an old packet
@@ -2160,7 +2157,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
OutPacket(avp, ThrottleOutPacketType.Task);
}
- public void SendAnimations(LLUUID[] animations, int[] seqs, LLUUID sourceAgentId)
+ public void SendAnimations(UUID[] animations, int[] seqs, UUID sourceAgentId)
{
AvatarAnimationPacket ani = (AvatarAnimationPacket)PacketPool.Instance.GetPacket(PacketType.AvatarAnimation);
// TODO: don't create new blocks if recycling an old packet
@@ -2194,8 +2191,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP
///
///
///
- public void SendAvatarData(ulong regionHandle, string firstName, string lastName, LLUUID avatarID,
- uint avatarLocalID, LLVector3 Pos, byte[] textureEntry, uint parentID, LLQuaternion rotation)
+ public void SendAvatarData(ulong regionHandle, string firstName, string lastName, UUID avatarID,
+ uint avatarLocalID, Vector3 Pos, byte[] textureEntry, uint parentID, Quaternion rotation)
{
ObjectUpdatePacket objupdate = (ObjectUpdatePacket)PacketPool.Instance.GetPacket(PacketType.ObjectUpdate);
// TODO: don't create new blocks if recycling an old packet
@@ -2209,9 +2206,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP
objupdate.ObjectData[0].FullID = avatarID;
objupdate.ObjectData[0].ParentID = parentID;
objupdate.ObjectData[0].NameValue =
- Helpers.StringToField("FirstName STRING RW SV " + firstName + "\nLastName STRING RW SV " + lastName);
+ Utils.StringToBytes("FirstName STRING RW SV " + firstName + "\nLastName STRING RW SV " + lastName);
- LLVector3 pos2 = new LLVector3((float)Pos.X, (float)Pos.Y, (float)Pos.Z);
+ Vector3 pos2 = new Vector3((float)Pos.X, (float)Pos.Y, (float)Pos.Z);
byte[] pb = pos2.GetBytes();
Array.Copy(pb, 0, objupdate.ObjectData[0].ObjectData, 16, pb.Length);
@@ -2230,11 +2227,11 @@ namespace OpenSim.Region.ClientStack.LindenUDP
///
///
///
- public void SendAvatarTerseUpdate(ulong regionHandle, ushort timeDilation, uint localID, LLVector3 position,
- LLVector3 velocity, LLQuaternion rotation)
+ public void SendAvatarTerseUpdate(ulong regionHandle, ushort timeDilation, uint localID, Vector3 position,
+ Vector3 velocity, Quaternion rotation)
{
if (rotation.X == rotation.Y && rotation.Y == rotation.Z && rotation.Z == rotation.W && rotation.W == 0)
- rotation = LLQuaternion.Identity;
+ rotation = Quaternion.Identity;
ImprovedTerseObjectUpdatePacket.ObjectDataBlock terseBlock =
CreateAvatarImprovedBlock(localID, position, velocity, rotation);
@@ -2251,7 +2248,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
OutPacket(terse, ThrottleOutPacketType.Task);
}
- public void SendCoarseLocationUpdate(List CoarseLocations)
+ public void SendCoarseLocationUpdate(List CoarseLocations)
{
CoarseLocationUpdatePacket loc = (CoarseLocationUpdatePacket)PacketPool.Instance.GetPacket(PacketType.CoarseLocationUpdate);
// TODO: don't create new blocks if recycling an old packet
@@ -2286,7 +2283,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
///
///
///
- public void AttachObject(uint localID, LLQuaternion rotation, byte attachPoint)
+ public void AttachObject(uint localID, Quaternion rotation, byte attachPoint)
{
ObjectAttachPacket attach = (ObjectAttachPacket)PacketPool.Instance.GetPacket(PacketType.ObjectAttach);
@@ -2305,8 +2302,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP
public void SendPrimitiveToClient(
ulong regionHandle, ushort timeDilation, uint localID, PrimitiveBaseShape primShape,
- LLVector3 pos, LLVector3 vel, LLVector3 acc, LLQuaternion rotation, LLVector3 rvel,
- uint flags, LLUUID objectID, LLUUID ownerID, string text, byte[] color,
+ Vector3 pos, Vector3 vel, Vector3 acc, Quaternion rotation, Vector3 rvel,
+ uint flags, UUID objectID, UUID ownerID, string text, byte[] color,
uint parentID, byte[] particleSystem, byte clickAction)
{
byte[] textureanim = new byte[0];
@@ -2314,19 +2311,19 @@ namespace OpenSim.Region.ClientStack.LindenUDP
SendPrimitiveToClient(regionHandle, timeDilation, localID, primShape, pos, vel,
acc, rotation, rvel, flags,
objectID, ownerID, text, color, parentID, particleSystem,
- clickAction, textureanim, false, (uint)0, LLUUID.Zero, LLUUID.Zero, 0, 0, 0);
+ clickAction, textureanim, false, (uint)0, UUID.Zero, UUID.Zero, 0, 0, 0);
}
public void SendPrimitiveToClient(
ulong regionHandle, ushort timeDilation, uint localID, PrimitiveBaseShape primShape,
- LLVector3 pos, LLVector3 velocity, LLVector3 acceleration, LLQuaternion rotation, LLVector3 rotational_velocity,
+ Vector3 pos, Vector3 velocity, Vector3 acceleration, Quaternion rotation, Vector3 rotational_velocity,
uint flags,
- LLUUID objectID, LLUUID ownerID, string text, byte[] color, uint parentID, byte[] particleSystem,
- byte clickAction, byte[] textureanim, bool attachment, uint AttachPoint, LLUUID AssetId, LLUUID SoundId, double SoundGain, byte SoundFlags, double SoundRadius)
+ UUID objectID, UUID ownerID, string text, byte[] color, uint parentID, byte[] particleSystem,
+ byte clickAction, byte[] textureanim, bool attachment, uint AttachPoint, UUID AssetId, UUID SoundId, double SoundGain, byte SoundFlags, double SoundRadius)
{
if (rotation.X == rotation.Y && rotation.Y == rotation.Z && rotation.Z == rotation.W && rotation.W == 0)
- rotation = LLQuaternion.Identity;
+ rotation = Quaternion.Identity;
ObjectUpdatePacket outPacket = (ObjectUpdatePacket)PacketPool.Instance.GetPacket(PacketType.ObjectUpdate);
@@ -2344,13 +2341,13 @@ namespace OpenSim.Region.ClientStack.LindenUDP
outPacket.ObjectData[0].OwnerID = ownerID;
// Anything more than 254 will cause libsecondlife to barf
- // (libsl 1550) adds an \0 on the Helpers.StringToField conversion if it isn't present
+ // (libsl 1550) adds an \0 on the Utils.StringToBytes conversion if it isn't present
if (text.Length > 254)
{
text = text.Remove(254);
}
- outPacket.ObjectData[0].Text = Helpers.StringToField(text);
+ outPacket.ObjectData[0].Text = Utils.StringToBytes(text);
outPacket.ObjectData[0].TextColor[0] = color[0];
outPacket.ObjectData[0].TextColor[1] = color[1];
@@ -2364,21 +2361,21 @@ namespace OpenSim.Region.ClientStack.LindenUDP
if (attachment)
{
// Necessary???
- outPacket.ObjectData[0].JointAxisOrAnchor = new LLVector3(0, 0, 2);
- outPacket.ObjectData[0].JointPivot = new LLVector3(0, 0, 0);
+ outPacket.ObjectData[0].JointAxisOrAnchor = new Vector3(0, 0, 2);
+ outPacket.ObjectData[0].JointPivot = new Vector3(0, 0, 0);
// Item from inventory???
outPacket.ObjectData[0].NameValue =
- Helpers.StringToField("AttachItemID STRING RW SV " + AssetId.UUID);
+ Utils.StringToBytes("AttachItemID STRING RW SV " + AssetId.Guid);
outPacket.ObjectData[0].State = (byte)((AttachPoint % 16) * 16 + (AttachPoint / 16));
}
// Xantor 20080528: Send sound info as well
// Xantor 20080530: Zero out everything if there's no SoundId, so zerocompression will work again
outPacket.ObjectData[0].Sound = SoundId;
- if (SoundId == LLUUID.Zero)
+ if (SoundId == UUID.Zero)
{
- outPacket.ObjectData[0].OwnerID = LLUUID.Zero;
+ outPacket.ObjectData[0].OwnerID = UUID.Zero;
outPacket.ObjectData[0].Gain = 0.0f;
outPacket.ObjectData[0].Radius = 0.0f;
outPacket.ObjectData[0].Flags = 0;
@@ -2420,11 +2417,11 @@ namespace OpenSim.Region.ClientStack.LindenUDP
///
///
///
- public void SendPrimTerseUpdate(ulong regionHandle, ushort timeDilation, uint localID, LLVector3 position,
- LLQuaternion rotation, LLVector3 velocity, LLVector3 rotationalvelocity, byte state, LLUUID AssetId)
+ public void SendPrimTerseUpdate(ulong regionHandle, ushort timeDilation, uint localID, Vector3 position,
+ Quaternion rotation, Vector3 velocity, Vector3 rotationalvelocity, byte state, UUID AssetId)
{
if (rotation.X == rotation.Y && rotation.Y == rotation.Z && rotation.Z == rotation.W && rotation.W == 0)
- rotation = LLQuaternion.Identity;
+ rotation = Quaternion.Identity;
ImprovedTerseObjectUpdatePacket terse = (ImprovedTerseObjectUpdatePacket)PacketPool.Instance.GetPacket(PacketType.ImprovedTerseObjectUpdate);
// TODO: don't create new blocks if recycling an old packet
terse.RegionData.RegionHandle = regionHandle;
@@ -2436,11 +2433,11 @@ namespace OpenSim.Region.ClientStack.LindenUDP
OutPacket(terse, ThrottleOutPacketType.Task | ThrottleOutPacketType.LowPriority);
}
- public void SendPrimTerseUpdate(ulong regionHandle, ushort timeDilation, uint localID, LLVector3 position,
- LLQuaternion rotation, LLVector3 velocity, LLVector3 rotationalvelocity)
+ public void SendPrimTerseUpdate(ulong regionHandle, ushort timeDilation, uint localID, Vector3 position,
+ Quaternion rotation, Vector3 velocity, Vector3 rotationalvelocity)
{
if (rotation.X == rotation.Y && rotation.Y == rotation.Z && rotation.Z == rotation.W && rotation.W == 0)
- rotation = LLQuaternion.Identity;
+ rotation = Quaternion.Identity;
ImprovedTerseObjectUpdatePacket terse = (ImprovedTerseObjectUpdatePacket)PacketPool.Instance.GetPacket(PacketType.ImprovedTerseObjectUpdate);
// TODO: don't create new blocks if recycling an old packet
terse.RegionData.RegionHandle = regionHandle;
@@ -2452,7 +2449,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
OutPacket(terse, ThrottleOutPacketType.Task | ThrottleOutPacketType.LowPriority);
}
- public void SendAssetUploadCompleteMessage(sbyte AssetType, bool Success, LLUUID AssetFullID)
+ public void SendAssetUploadCompleteMessage(sbyte AssetType, bool Success, UUID AssetFullID)
{
AssetUploadCompletePacket newPack = new AssetUploadCompletePacket();
newPack.AssetBlock.Type = AssetType;
@@ -2462,7 +2459,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
OutPacket(newPack, ThrottleOutPacketType.Asset);
}
- public void SendXferRequest(ulong XferID, short AssetType, LLUUID vFileID, byte FilePath, byte[] FileName)
+ public void SendXferRequest(ulong XferID, short AssetType, UUID vFileID, byte FilePath, byte[] FileName)
{
RequestXferPacket newPack = new RequestXferPacket();
newPack.XferID.ID = XferID;
@@ -2483,7 +2480,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
OutPacket(newPack, ThrottleOutPacketType.Asset);
}
- public void SendImagePart(ushort numParts, LLUUID ImageUUID, uint ImageSize, byte[] ImageData, byte imageCodec)
+ public void SendImagePart(ushort numParts, UUID ImageUUID, uint ImageSize, byte[] ImageData, byte imageCodec)
{
ImageDataPacket im = new ImageDataPacket();
im.Header.Reliable = false;
@@ -2510,10 +2507,10 @@ namespace OpenSim.Region.ClientStack.LindenUDP
OutPacket(pack, ThrottleOutPacketType.Task);
}
- public void SendObjectPropertiesFamilyData(uint RequestFlags, LLUUID ObjectUUID, LLUUID OwnerID, LLUUID GroupID,
+ public void SendObjectPropertiesFamilyData(uint RequestFlags, UUID ObjectUUID, UUID OwnerID, UUID GroupID,
uint BaseMask, uint OwnerMask, uint GroupMask, uint EveryoneMask,
uint NextOwnerMask, int OwnershipCost, byte SaleType, int SalePrice, uint Category,
- LLUUID LastOwnerID, string ObjectName, string Description)
+ UUID LastOwnerID, string ObjectName, string Description)
{
ObjectPropertiesFamilyPacket objPropFamilyPack = (ObjectPropertiesFamilyPacket)PacketPool.Instance.GetPacket(PacketType.ObjectPropertiesFamily);
// TODO: don't create new blocks if recycling an old packet
@@ -2535,16 +2532,16 @@ namespace OpenSim.Region.ClientStack.LindenUDP
objPropDB.SalePrice = SalePrice;
objPropDB.Category = Category;
objPropDB.LastOwnerID = LastOwnerID;
- objPropDB.Name = Helpers.StringToField(ObjectName);
- objPropDB.Description = Helpers.StringToField(Description);
+ objPropDB.Name = Utils.StringToBytes(ObjectName);
+ objPropDB.Description = Utils.StringToBytes(Description);
objPropFamilyPack.ObjectData = objPropDB;
objPropFamilyPack.Header.Zerocoded = true;
OutPacket(objPropFamilyPack, ThrottleOutPacketType.Task);
}
- public void SendObjectPropertiesReply(LLUUID ItemID, ulong CreationDate, LLUUID CreatorUUID, LLUUID FolderUUID, LLUUID FromTaskUUID,
- LLUUID GroupUUID, short InventorySerial, LLUUID LastOwnerUUID, LLUUID ObjectUUID,
- LLUUID OwnerUUID, string TouchTitle, byte[] TextureID, string SitTitle, string ItemName,
+ public void SendObjectPropertiesReply(UUID ItemID, ulong CreationDate, UUID CreatorUUID, UUID FolderUUID, UUID FromTaskUUID,
+ UUID GroupUUID, short InventorySerial, UUID LastOwnerUUID, UUID ObjectUUID,
+ UUID OwnerUUID, string TouchTitle, byte[] TextureID, string SitTitle, string ItemName,
string ItemDescription, uint OwnerMask, uint NextOwnerMask, uint GroupMask, uint EveryoneMask,
uint BaseMask, byte saleType, int salePrice)
{
@@ -2562,15 +2559,15 @@ namespace OpenSim.Region.ClientStack.LindenUDP
proper.ObjectData[0].InventorySerial = InventorySerial;
proper.ObjectData[0].LastOwnerID = LastOwnerUUID;
- // proper.ObjectData[0].LastOwnerID = LLUUID.Zero;
+ // proper.ObjectData[0].LastOwnerID = UUID.Zero;
proper.ObjectData[0].ObjectID = ObjectUUID;
proper.ObjectData[0].OwnerID = OwnerUUID;
- proper.ObjectData[0].TouchName = Helpers.StringToField(TouchTitle);
+ proper.ObjectData[0].TouchName = Utils.StringToBytes(TouchTitle);
proper.ObjectData[0].TextureID = TextureID;
- proper.ObjectData[0].SitName = Helpers.StringToField(SitTitle);
- proper.ObjectData[0].Name = Helpers.StringToField(ItemName);
- proper.ObjectData[0].Description = Helpers.StringToField(ItemDescription);
+ proper.ObjectData[0].SitName = Utils.StringToBytes(SitTitle);
+ proper.ObjectData[0].Name = Utils.StringToBytes(ItemName);
+ proper.ObjectData[0].Description = Utils.StringToBytes(ItemDescription);
proper.ObjectData[0].OwnerMask = OwnerMask;
proper.ObjectData[0].NextOwnerMask = NextOwnerMask;
proper.ObjectData[0].GroupMask = GroupMask;
@@ -2591,7 +2588,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
private bool convertParamStringToBool(byte[] field)
{
- string s = Helpers.FieldToUTF8String(field);
+ string s = Utils.BytesToString(field);
if (s == "1" || s.ToLower() == "y" || s.ToLower() == "yes" || s.ToLower() == "t" || s.ToLower() == "true")
{
return true;
@@ -2599,14 +2596,14 @@ namespace OpenSim.Region.ClientStack.LindenUDP
return false;
}
- public void SendEstateManagersList(LLUUID invoice, LLUUID[] EstateManagers, uint estateID)
+ public void SendEstateManagersList(UUID invoice, UUID[] EstateManagers, uint estateID)
{
EstateOwnerMessagePacket packet = new EstateOwnerMessagePacket();
- packet.AgentData.TransactionID = LLUUID.Random();
+ packet.AgentData.TransactionID = UUID.Random();
packet.AgentData.AgentID = this.AgentId;
packet.AgentData.SessionID = this.SessionId;
packet.MethodData.Invoice = invoice;
- packet.MethodData.Method = Helpers.StringToField("setaccess");
+ packet.MethodData.Method = Utils.StringToBytes("setaccess");
EstateOwnerMessagePacket.ParamListBlock[] returnblock = new EstateOwnerMessagePacket.ParamListBlock[6 + EstateManagers.Length];
@@ -2616,12 +2613,12 @@ namespace OpenSim.Region.ClientStack.LindenUDP
}
int j = 0;
- returnblock[j].Parameter = Helpers.StringToField(estateID.ToString()); j++;
- returnblock[j].Parameter = Helpers.StringToField(((int)Constants.EstateAccessCodex.EstateManagers).ToString()); j++;
- returnblock[j].Parameter = Helpers.StringToField("0"); j++;
- returnblock[j].Parameter = Helpers.StringToField("0"); j++;
- returnblock[j].Parameter = Helpers.StringToField("0"); j++;
- returnblock[j].Parameter = Helpers.StringToField(EstateManagers.Length.ToString()); j++;
+ returnblock[j].Parameter = Utils.StringToBytes(estateID.ToString()); j++;
+ returnblock[j].Parameter = Utils.StringToBytes(((int)Constants.EstateAccessCodex.EstateManagers).ToString()); j++;
+ returnblock[j].Parameter = Utils.StringToBytes("0"); j++;
+ returnblock[j].Parameter = Utils.StringToBytes("0"); j++;
+ returnblock[j].Parameter = Utils.StringToBytes("0"); j++;
+ returnblock[j].Parameter = Utils.StringToBytes(EstateManagers.Length.ToString()); j++;
for (int i = 0; i < EstateManagers.Length; i++)
{
returnblock[j].Parameter = EstateManagers[i].GetBytes(); j++;
@@ -2631,25 +2628,25 @@ namespace OpenSim.Region.ClientStack.LindenUDP
this.OutPacket(packet, ThrottleOutPacketType.Task);
}
- public void SendBannedUserList(LLUUID invoice, EstateBan[] bl, uint estateID)
+ public void SendBannedUserList(UUID invoice, EstateBan[] bl, uint estateID)
{
- ListBannedUsers = new List();
+ ListBannedUsers = new List();
for (int i = 0; i < bl.Length; i++)
{
if (bl[i] == null)
continue;
- if (bl[i].bannedUUID == LLUUID.Zero)
+ if (bl[i].bannedUUID == UUID.Zero)
continue;
BannedUsers.Add(bl[i].bannedUUID);
}
EstateOwnerMessagePacket packet = new EstateOwnerMessagePacket();
- packet.AgentData.TransactionID = LLUUID.Random();
+ packet.AgentData.TransactionID = UUID.Random();
packet.AgentData.AgentID = this.AgentId;
packet.AgentData.SessionID = this.SessionId;
packet.MethodData.Invoice = invoice;
- packet.MethodData.Method = Helpers.StringToField("setaccess");
+ packet.MethodData.Method = Utils.StringToBytes("setaccess");
EstateOwnerMessagePacket.ParamListBlock[] returnblock = new EstateOwnerMessagePacket.ParamListBlock[6 + BannedUsers.Count];
@@ -2659,14 +2656,14 @@ namespace OpenSim.Region.ClientStack.LindenUDP
}
int j = 0;
- returnblock[j].Parameter = Helpers.StringToField(estateID.ToString()); j++;
- returnblock[j].Parameter = Helpers.StringToField(((int)Constants.EstateAccessCodex.EstateBans).ToString()); j++;
- returnblock[j].Parameter = Helpers.StringToField("0"); j++;
- returnblock[j].Parameter = Helpers.StringToField("0"); j++;
- returnblock[j].Parameter = Helpers.StringToField(BannedUsers.Count.ToString()); j++;
- returnblock[j].Parameter = Helpers.StringToField("0"); j++;
+ returnblock[j].Parameter = Utils.StringToBytes(estateID.ToString()); j++;
+ returnblock[j].Parameter = Utils.StringToBytes(((int)Constants.EstateAccessCodex.EstateBans).ToString()); j++;
+ returnblock[j].Parameter = Utils.StringToBytes("0"); j++;
+ returnblock[j].Parameter = Utils.StringToBytes("0"); j++;
+ returnblock[j].Parameter = Utils.StringToBytes(BannedUsers.Count.ToString()); j++;
+ returnblock[j].Parameter = Utils.StringToBytes("0"); j++;
- foreach (LLUUID banned in BannedUsers)
+ foreach (UUID banned in BannedUsers)
{
returnblock[j].Parameter = banned.GetBytes(); j++;
}
@@ -2696,34 +2693,34 @@ namespace OpenSim.Region.ClientStack.LindenUDP
rinfoblk.TerrainRaiseLimit = args.terrainRaiseLimit;
rinfoblk.UseEstateSun = args.useEstateSun;
rinfoblk.WaterHeight = args.waterHeight;
- rinfoblk.SimName = Helpers.StringToField(args.simName);
+ rinfoblk.SimName = Utils.StringToBytes(args.simName);
rinfopack.RegionInfo = rinfoblk;
this.OutPacket(rinfopack, ThrottleOutPacketType.Task);
}
- public void SendEstateCovenantInformation(LLUUID covenant)
+ public void SendEstateCovenantInformation(UUID covenant)
{
EstateCovenantReplyPacket einfopack = new EstateCovenantReplyPacket();
EstateCovenantReplyPacket.DataBlock edata = new EstateCovenantReplyPacket.DataBlock();
edata.CovenantID = covenant;
edata.CovenantTimestamp = 0;
- if (m_scene.RegionInfo.EstateSettings.EstateOwner != LLUUID.Zero)
+ if (m_scene.RegionInfo.EstateSettings.EstateOwner != UUID.Zero)
edata.EstateOwnerID = m_scene.RegionInfo.EstateSettings.EstateOwner;
else
edata.EstateOwnerID = m_scene.RegionInfo.MasterAvatarAssignedUUID;
- edata.EstateName = Helpers.StringToField(m_scene.RegionInfo.EstateSettings.EstateName);
+ edata.EstateName = Utils.StringToBytes(m_scene.RegionInfo.EstateSettings.EstateName);
einfopack.Data = edata;
this.OutPacket(einfopack, ThrottleOutPacketType.Task);
}
- public void SendDetailedEstateData(LLUUID invoice, string estateName, uint estateID, uint parentEstate, uint estateFlags, uint sunPosition, LLUUID covenant, string abuseEmail)
+ public void SendDetailedEstateData(UUID invoice, string estateName, uint estateID, uint parentEstate, uint estateFlags, uint sunPosition, UUID covenant, string abuseEmail)
{
EstateOwnerMessagePacket packet = new EstateOwnerMessagePacket();
packet.MethodData.Invoice = invoice;
- packet.AgentData.TransactionID = LLUUID.Random();
- packet.MethodData.Method = Helpers.StringToField("estateupdateinfo");
+ packet.AgentData.TransactionID = UUID.Random();
+ packet.MethodData.Method = Utils.StringToBytes("estateupdateinfo");
EstateOwnerMessagePacket.ParamListBlock[] returnblock = new EstateOwnerMessagePacket.ParamListBlock[10];
for (int i = 0; i < 10; i++)
@@ -2732,22 +2729,22 @@ namespace OpenSim.Region.ClientStack.LindenUDP
}
//Sending Estate Settings
- returnblock[0].Parameter = Helpers.StringToField(estateName);
+ returnblock[0].Parameter = Utils.StringToBytes(estateName);
// TODO: remove this cruft once MasterAvatar is fully deprecated
//
- if (m_scene.RegionInfo.EstateSettings.EstateOwner != LLUUID.Zero)
- returnblock[1].Parameter = Helpers.StringToField(m_scene.RegionInfo.EstateSettings.EstateOwner.ToString());
+ if (m_scene.RegionInfo.EstateSettings.EstateOwner != UUID.Zero)
+ returnblock[1].Parameter = Utils.StringToBytes(m_scene.RegionInfo.EstateSettings.EstateOwner.ToString());
else
- returnblock[1].Parameter = Helpers.StringToField(m_scene.RegionInfo.MasterAvatarAssignedUUID.ToString());
- returnblock[2].Parameter = Helpers.StringToField(estateID.ToString());
+ returnblock[1].Parameter = Utils.StringToBytes(m_scene.RegionInfo.MasterAvatarAssignedUUID.ToString());
+ returnblock[2].Parameter = Utils.StringToBytes(estateID.ToString());
- returnblock[3].Parameter = Helpers.StringToField(estateFlags.ToString());
- returnblock[4].Parameter = Helpers.StringToField(sunPosition.ToString());
- returnblock[5].Parameter = Helpers.StringToField(parentEstate.ToString());
- returnblock[6].Parameter = Helpers.StringToField(covenant.ToString());
- returnblock[7].Parameter = Helpers.StringToField("1160895077"); // what is this?
- returnblock[8].Parameter = Helpers.StringToField("1"); // what is this?
- returnblock[9].Parameter = Helpers.StringToField(abuseEmail);
+ returnblock[3].Parameter = Utils.StringToBytes(estateFlags.ToString());
+ returnblock[4].Parameter = Utils.StringToBytes(sunPosition.ToString());
+ returnblock[5].Parameter = Utils.StringToBytes(parentEstate.ToString());
+ returnblock[6].Parameter = Utils.StringToBytes(covenant.ToString());
+ returnblock[7].Parameter = Utils.StringToBytes("1160895077"); // what is this?
+ returnblock[8].Parameter = Utils.StringToBytes("1"); // what is this?
+ returnblock[9].Parameter = Utils.StringToBytes(abuseEmail);
packet.ParamList = returnblock;
packet.Header.Reliable = false;
@@ -2783,7 +2780,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
updatePacket.ParcelData.Bitmap = landData.Bitmap;
- updatePacket.ParcelData.Desc = Helpers.StringToField(landData.Description);
+ updatePacket.ParcelData.Desc = Utils.StringToBytes(landData.Description);
updatePacket.ParcelData.Category = (byte)landData.Category;
updatePacket.ParcelData.ClaimDate = landData.ClaimDate;
updatePacket.ParcelData.ClaimPrice = landData.ClaimPrice;
@@ -2802,9 +2799,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP
}
updatePacket.ParcelData.MediaAutoScale = landData.MediaAutoScale;
updatePacket.ParcelData.MediaID = landData.MediaID;
- updatePacket.ParcelData.MediaURL = Helpers.StringToField(landData.MediaURL);
- updatePacket.ParcelData.MusicURL = Helpers.StringToField(landData.MusicURL);
- updatePacket.ParcelData.Name = Helpers.StringToField(landData.Name);
+ updatePacket.ParcelData.MediaURL = Utils.StringToBytes(landData.MediaURL);
+ updatePacket.ParcelData.MusicURL = Utils.StringToBytes(landData.MusicURL);
+ updatePacket.ParcelData.Name = Utils.StringToBytes(landData.Name);
updatePacket.ParcelData.OtherCleanTime = 0; //unemplemented
updatePacket.ParcelData.OtherCount = 0; //unemplemented
updatePacket.ParcelData.OtherPrims = landData.OtherPrims;
@@ -2851,7 +2848,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
remote_client.OutPacket((Packet)updatePacket, ThrottleOutPacketType.Task);
}
- public void SendLandAccessListData(List avatars, uint accessFlag, int localLandID)
+ public void SendLandAccessListData(List avatars, uint accessFlag, int localLandID)
{
ParcelAccessListReplyPacket replyPacket = (ParcelAccessListReplyPacket)PacketPool.Instance.GetPacket(PacketType.ParcelAccessListReply);
replyPacket.Data.AgentID = this.AgentId;
@@ -2860,7 +2857,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
replyPacket.Data.SequenceID = 0;
List list = new List();
- foreach (LLUUID avatar in avatars)
+ foreach (UUID avatar in avatars)
{
ParcelAccessListReplyPacket.ListBlock block = new ParcelAccessListReplyPacket.ListBlock();
block.Flags = accessFlag;
@@ -2913,7 +2910,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
}
}
- public void SendLandObjectOwners(Dictionary ownersAndCount)
+ public void SendLandObjectOwners(Dictionary ownersAndCount)
{
int notifyCount = ownersAndCount.Count;
ParcelObjectOwnersReplyPacket pack = (ParcelObjectOwnersReplyPacket)PacketPool.Instance.GetPacket(PacketType.ParcelObjectOwnersReply);
@@ -2933,7 +2930,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
= new ParcelObjectOwnersReplyPacket.DataBlock[notifyCount];
int num = 0;
- foreach (LLUUID owner in ownersAndCount.Keys)
+ foreach (UUID owner in ownersAndCount.Keys)
{
dataBlock[num] = new ParcelObjectOwnersReplyPacket.DataBlock();
dataBlock[num].Count = ownersAndCount[owner];
@@ -2959,9 +2956,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP
#region Helper Methods
- protected ImprovedTerseObjectUpdatePacket.ObjectDataBlock CreateAvatarImprovedBlock(uint localID, LLVector3 pos,
- LLVector3 velocity,
- LLQuaternion rotation)
+ protected ImprovedTerseObjectUpdatePacket.ObjectDataBlock CreateAvatarImprovedBlock(uint localID, Vector3 pos,
+ Vector3 velocity,
+ Quaternion rotation)
{
byte[] bytes = new byte[60];
int i = 0;
@@ -2992,13 +2989,13 @@ namespace OpenSim.Region.ClientStack.LindenUDP
internDirec = new Vector3(velocity.X, velocity.Y, velocity.Z);
internDirec = internDirec / 128.0f;
- internDirec.x += 1;
- internDirec.y += 1;
- internDirec.z += 1;
+ internDirec.X += 1;
+ internDirec.Y += 1;
+ internDirec.Z += 1;
- InternVelocityX = (ushort)(32768 * internDirec.x);
- InternVelocityY = (ushort)(32768 * internDirec.y);
- InternVelocityZ = (ushort)(32768 * internDirec.z);
+ InternVelocityX = (ushort)(32768 * internDirec.X);
+ InternVelocityY = (ushort)(32768 * internDirec.Y);
+ InternVelocityZ = (ushort)(32768 * internDirec.Z);
ushort ac = 32767;
bytes[i++] = (byte)(InternVelocityX % 256);
@@ -3054,10 +3051,10 @@ namespace OpenSim.Region.ClientStack.LindenUDP
///
///
protected ImprovedTerseObjectUpdatePacket.ObjectDataBlock CreatePrimImprovedBlock(uint localID,
- LLVector3 position,
- LLQuaternion rotation,
- LLVector3 velocity,
- LLVector3 rotationalvelocity,
+ Vector3 position,
+ Quaternion rotation,
+ Vector3 velocity,
+ Vector3 rotationalvelocity,
byte state)
{
uint ID = localID;
@@ -3082,13 +3079,13 @@ namespace OpenSim.Region.ClientStack.LindenUDP
Vector3 vel = new Vector3(velocity.X, velocity.Y, velocity.Z);
vel = vel / 128.0f;
- vel.x += 1;
- vel.y += 1;
- vel.z += 1;
+ vel.X += 1;
+ vel.Y += 1;
+ vel.Z += 1;
//vel
- velx = (ushort)(32768 * (vel.x));
- vely = (ushort)(32768 * (vel.y));
- velz = (ushort)(32768 * (vel.z));
+ velx = (ushort)(32768 * (vel.X));
+ vely = (ushort)(32768 * (vel.Y));
+ velz = (ushort)(32768 * (vel.Z));
bytes[i++] = (byte)(velx % 256);
bytes[i++] = (byte)((velx >> 8) % 256);
@@ -3126,13 +3123,13 @@ namespace OpenSim.Region.ClientStack.LindenUDP
Vector3 rvel = new Vector3(rotationalvelocity.X, rotationalvelocity.Y, rotationalvelocity.Z);
rvel = rvel / 128.0f;
- rvel.x += 1;
- rvel.y += 1;
- rvel.z += 1;
+ rvel.X += 1;
+ rvel.Y += 1;
+ rvel.Z += 1;
//vel
- rvelx = (ushort)(32768 * (rvel.x));
- rvely = (ushort)(32768 * (rvel.y));
- rvelz = (ushort)(32768 * (rvel.z));
+ rvelx = (ushort)(32768 * (rvel.X));
+ rvely = (ushort)(32768 * (rvel.Y));
+ rvelz = (ushort)(32768 * (rvel.Z));
bytes[i++] = (byte)(rvelx % 256);
bytes[i++] = (byte)((rvelx >> 8) % 256);
@@ -3204,11 +3201,11 @@ namespace OpenSim.Region.ClientStack.LindenUDP
objdata.NameValue = new byte[0];
objdata.Text = new byte[0];
objdata.TextColor = new byte[4];
- objdata.JointAxisOrAnchor = new LLVector3(0, 0, 0);
- objdata.JointPivot = new LLVector3(0, 0, 0);
+ objdata.JointAxisOrAnchor = new Vector3(0, 0, 0);
+ objdata.JointPivot = new Vector3(0, 0, 0);
objdata.Material = 3;
objdata.TextureAnim = new byte[0];
- objdata.Sound = LLUUID.Zero;
+ objdata.Sound = UUID.Zero;
objdata.State = 0;
objdata.Data = new byte[0];
@@ -3224,7 +3221,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
public ObjectUpdatePacket.ObjectDataBlock CreateDefaultAvatarPacket(byte[] textureEntry)
{
ObjectUpdatePacket.ObjectDataBlock objdata = new ObjectUpdatePacket.ObjectDataBlock();
- // new libsecondlife.Packets.ObjectUpdatePacket.ObjectDataBlock(data1, ref i);
+ // new OpenMetaverse.Packets.ObjectUpdatePacket.ObjectDataBlock(data1, ref i);
SetDefaultAvatarPacketValues(ref objdata);
objdata.UpdateFlags = 61 + (9 << 8) + (130 << 16) + (16 << 24);
@@ -3233,18 +3230,18 @@ namespace OpenSim.Region.ClientStack.LindenUDP
objdata.PathScaleX = 100;
objdata.PathScaleY = 100;
objdata.ParentID = 0;
- objdata.OwnerID = LLUUID.Zero;
- objdata.Scale = new LLVector3(1, 1, 1);
+ objdata.OwnerID = UUID.Zero;
+ objdata.Scale = new Vector3(1, 1, 1);
objdata.PCode = (byte)PCode.Avatar;
if (textureEntry != null)
{
objdata.TextureEntry = textureEntry;
}
- LLVector3 pos = new LLVector3(objdata.ObjectData, 16);
+ Vector3 pos = new Vector3(objdata.ObjectData, 16);
pos.X = 100f;
objdata.ID = 8880000;
- objdata.NameValue = Helpers.StringToField("FirstName STRING RW SV Test \nLastName STRING RW SV User ");
- //LLVector3 pos2 = new LLVector3(100f, 100f, 23f);
+ objdata.NameValue = Utils.StringToBytes("FirstName STRING RW SV Test \nLastName STRING RW SV User ");
+ //Vector3 pos2 = new Vector3(100f, 100f, 23f);
//objdata.FullID=user.AgentId;
byte[] pb = pos.GetBytes();
Array.Copy(pb, 0, objdata.ObjectData, 16, pb.Length);
@@ -3264,12 +3261,12 @@ namespace OpenSim.Region.ClientStack.LindenUDP
objdata.NameValue = new byte[0];
objdata.Text = new byte[0];
objdata.TextColor = new byte[4];
- objdata.JointAxisOrAnchor = new LLVector3(0, 0, 0);
- objdata.JointPivot = new LLVector3(0, 0, 0);
+ objdata.JointAxisOrAnchor = new Vector3(0, 0, 0);
+ objdata.JointPivot = new Vector3(0, 0, 0);
objdata.Material = 4;
objdata.TextureAnim = new byte[0];
- objdata.Sound = LLUUID.Zero;
- LLObject.TextureEntry ntex = new LLObject.TextureEntry(new LLUUID("00000000-0000-0000-5005-000000000005"));
+ objdata.Sound = UUID.Zero;
+ Primitive.TextureEntry ntex = new Primitive.TextureEntry(new UUID("00000000-0000-0000-5005-000000000005"));
objdata.TextureEntry = ntex.ToBytes();
objdata.State = 0;
@@ -3285,15 +3282,15 @@ namespace OpenSim.Region.ClientStack.LindenUDP
objdata.ObjectData[64] = 189;
}
- public void SendNameReply(LLUUID profileId, string firstname, string lastname)
+ public void SendNameReply(UUID profileId, string firstname, string lastname)
{
UUIDNameReplyPacket packet = (UUIDNameReplyPacket)PacketPool.Instance.GetPacket(PacketType.UUIDNameReply);
// TODO: don't create new blocks if recycling an old packet
packet.UUIDNameBlock = new UUIDNameReplyPacket.UUIDNameBlockBlock[1];
packet.UUIDNameBlock[0] = new UUIDNameReplyPacket.UUIDNameBlockBlock();
packet.UUIDNameBlock[0].ID = profileId;
- packet.UUIDNameBlock[0].FirstName = Helpers.StringToField(firstname);
- packet.UUIDNameBlock[0].LastName = Helpers.StringToField(lastname);
+ packet.UUIDNameBlock[0].FirstName = Utils.StringToBytes(firstname);
+ packet.UUIDNameBlock[0].LastName = Utils.StringToBytes(lastname);
OutPacket(packet, ThrottleOutPacketType.Task);
}
@@ -3382,7 +3379,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
{
for (int i = 0; i < ogpack.ObjectData.Length; i++)
{
- handlerObjectGroupRequest(this, ogpack.AgentData.GroupID, ogpack.ObjectData[i].ObjectLocalID, LLUUID.Zero);
+ handlerObjectGroupRequest(this, ogpack.AgentData.GroupID, ogpack.ObjectData[i].ObjectLocalID, UUID.Zero);
}
}
return true;
@@ -3415,7 +3412,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
return true;
}
- public void SendScriptQuestion(LLUUID taskID, string taskName, string ownerName, LLUUID itemID, int question)
+ public void SendScriptQuestion(UUID taskID, string taskName, string ownerName, UUID itemID, int question)
{
ScriptQuestionPacket scriptQuestion = (ScriptQuestionPacket)PacketPool.Instance.GetPacket(PacketType.ScriptQuestion);
scriptQuestion.Data = new ScriptQuestionPacket.DataBlock();
@@ -3423,8 +3420,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP
scriptQuestion.Data.TaskID = taskID;
scriptQuestion.Data.ItemID = itemID;
scriptQuestion.Data.Questions = question;
- scriptQuestion.Data.ObjectName = Helpers.StringToField(taskName);
- scriptQuestion.Data.ObjectOwner = Helpers.StringToField(ownerName);
+ scriptQuestion.Data.ObjectName = Utils.StringToBytes(taskName);
+ scriptQuestion.Data.ObjectOwner = Utils.StringToBytes(ownerName);
OutPacket(scriptQuestion, ThrottleOutPacketType.Task);
}
@@ -3433,11 +3430,11 @@ namespace OpenSim.Region.ClientStack.LindenUDP
{
}
- public LLUUID GetDefaultAnimation(string name)
+ public UUID GetDefaultAnimation(string name)
{
if (m_defaultAnimations.ContainsKey(name))
return m_defaultAnimations[name];
- return LLUUID.Zero;
+ return UUID.Zero;
}
///
@@ -3496,7 +3493,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
{
cachedresp.WearableData[i] = new AgentCachedTextureResponsePacket.WearableDataBlock();
cachedresp.WearableData[i].TextureIndex = cachedtex.WearableData[i].TextureIndex;
- cachedresp.WearableData[i].TextureID = LLUUID.Zero;
+ cachedresp.WearableData[i].TextureID = UUID.Zero;
cachedresp.WearableData[i].HostName = new byte[0];
}
@@ -3526,19 +3523,19 @@ namespace OpenSim.Region.ClientStack.LindenUDP
if (part == null)
{
// It's a ghost! tell the client to delete it from view.
- simClient.SendKillObject(Scene.RegionInfo.RegionHandle,
+ simClient.SendKiPrimitive(Scene.RegionInfo.RegionHandle,
localId);
}
else
{
- // LLUUID partId = part.UUID;
+ // UUID partId = part.UUID;
UpdatePrimRotation handlerUpdatePrimRotation = OnUpdatePrimGroupRotation;
UpdatePrimGroupRotation handlerUpdatePrimGroupRotation = OnUpdatePrimGroupMouseRotation;
switch (block.Type)
{
case 1:
- LLVector3 pos1 = new LLVector3(block.Data, 0);
+ Vector3 pos1 = new Vector3(block.Data, 0);
handlerUpdatePrimSinglePosition = OnUpdatePrimSinglePosition;
if (handlerUpdatePrimSinglePosition != null)
@@ -3548,7 +3545,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
}
break;
case 2:
- LLQuaternion rot1 = new LLQuaternion(block.Data, 0, true);
+ Quaternion rot1 = new Quaternion(block.Data, 0, true);
handlerUpdatePrimSingleRotation = OnUpdatePrimSingleRotation;
if (handlerUpdatePrimSingleRotation != null)
@@ -3559,7 +3556,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
break;
case 3:
- LLQuaternion rot2 = new LLQuaternion(block.Data, 12, true);
+ Quaternion rot2 = new Quaternion(block.Data, 12, true);
handlerUpdatePrimSingleRotation = OnUpdatePrimSingleRotation;
if (handlerUpdatePrimSingleRotation != null)
{
@@ -3569,8 +3566,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP
break;
case 5:
- LLVector3 scale1 = new LLVector3(block.Data, 12);
- LLVector3 pos11 = new LLVector3(block.Data, 0);
+ Vector3 scale1 = new Vector3(block.Data, 12);
+ Vector3 pos11 = new Vector3(block.Data, 0);
handlerUpdatePrimScale = OnUpdatePrimScale;
if (handlerUpdatePrimScale != null)
@@ -3586,7 +3583,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
}
break;
case 9:
- LLVector3 pos2 = new LLVector3(block.Data, 0);
+ Vector3 pos2 = new Vector3(block.Data, 0);
handlerUpdateVector = OnUpdatePrimGroupPosition;
@@ -3597,7 +3594,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
}
break;
case 10:
- LLQuaternion rot3 = new LLQuaternion(block.Data, 0, true);
+ Quaternion rot3 = new Quaternion(block.Data, 0, true);
handlerUpdatePrimRotation = OnUpdatePrimGroupRotation;
if (handlerUpdatePrimRotation != null)
@@ -3607,8 +3604,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP
}
break;
case 11:
- LLVector3 pos3 = new LLVector3(block.Data, 0);
- LLQuaternion rot4 = new LLQuaternion(block.Data, 12, true);
+ Vector3 pos3 = new Vector3(block.Data, 0);
+ Quaternion rot4 = new Quaternion(block.Data, 12, true);
handlerUpdatePrimGroupRotation = OnUpdatePrimGroupMouseRotation;
if (handlerUpdatePrimGroupRotation != null)
@@ -3619,8 +3616,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP
}
break;
case 13:
- LLVector3 scale2 = new LLVector3(block.Data, 12);
- LLVector3 pos4 = new LLVector3(block.Data, 0);
+ Vector3 scale2 = new Vector3(block.Data, 12);
+ Vector3 pos4 = new Vector3(block.Data, 0);
handlerUpdatePrimScale = OnUpdatePrimScale;
if (handlerUpdatePrimScale != null)
@@ -3638,8 +3635,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP
}
break;
case 29:
- LLVector3 scale5 = new LLVector3(block.Data, 12);
- LLVector3 pos5 = new LLVector3(block.Data, 0);
+ Vector3 scale5 = new Vector3(block.Data, 12);
+ Vector3 pos5 = new Vector3(block.Data, 0);
handlerUpdatePrimGroupScale = OnUpdatePrimGroupScale;
if (handlerUpdatePrimGroupScale != null)
@@ -3655,8 +3652,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP
}
break;
case 21:
- LLVector3 scale6 = new LLVector3(block.Data, 12);
- LLVector3 pos6 = new LLVector3(block.Data, 0);
+ Vector3 scale6 = new Vector3(block.Data, 12);
+ Vector3 pos6 = new Vector3(block.Data, 0);
handlerUpdatePrimScale = OnUpdatePrimScale;
if (handlerUpdatePrimScale != null)
@@ -3691,7 +3688,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
mapReply.LayerData[0].Left = 0;
mapReply.LayerData[0].Top = 30000;
mapReply.LayerData[0].Right = 30000;
- mapReply.LayerData[0].ImageID = new LLUUID("00000000-0000-1111-9999-000000000006");
+ mapReply.LayerData[0].ImageID = new UUID("00000000-0000-1111-9999-000000000006");
mapReply.Header.Zerocoded = true;
OutPacket(mapReply, ThrottleOutPacketType.Land);
}
@@ -3717,7 +3714,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
mbReply.Data[iii].Name = System.Text.Encoding.UTF8.GetBytes((string)mp["name"]);
mbReply.Data[iii].Access = System.Convert.ToByte(mp["access"]);
mbReply.Data[iii].Agents = System.Convert.ToByte(mp["agents"]);
- mbReply.Data[iii].MapImageID = new LLUUID((string)mp["map-image-id"]);
+ mbReply.Data[iii].MapImageID = new UUID((string)mp["map-image-id"]);
mbReply.Data[iii].RegionFlags = System.Convert.ToUInt32(mp["region-flags"]);
mbReply.Data[iii].WaterHeight = System.Convert.ToByte(mp["water-height"]);
mbReply.Data[iii].X = System.Convert.ToUInt16(mp["x"]);
@@ -3776,7 +3773,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
if (m_moneyBalance + debit >= 0)
{
m_moneyBalance += debit;
- SendMoneyBalance(LLUUID.Zero, true, Helpers.StringToField("Poof Poof!"), m_moneyBalance);
+ SendMoneyBalance(UUID.Zero, true, Utils.StringToBytes("Poof Poof!"), m_moneyBalance);
return true;
}
else
@@ -3791,7 +3788,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
///
///
///
- public void DecipherGenericMessage(string gmMethod, LLUUID gmInvoice, GenericMessagePacket.ParamListBlock[] gmParams)
+ public void DecipherGenericMessage(string gmMethod, UUID gmInvoice, GenericMessagePacket.ParamListBlock[] gmParams)
{
switch (gmMethod)
{
@@ -3804,9 +3801,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP
try
{
Helpers.LongToUInts(Scene.RegionInfo.RegionHandle, out regionX, out regionY);
- locx = Convert.ToSingle(Helpers.FieldToUTF8String(gmParams[0].Parameter)) - (float)regionX;
- locy = Convert.ToSingle(Helpers.FieldToUTF8String(gmParams[1].Parameter)) - (float)regionY;
- locz = Convert.ToSingle(Helpers.FieldToUTF8String(gmParams[2].Parameter));
+ locx = Convert.ToSingle(Utils.BytesToString(gmParams[0].Parameter)) - (float)regionX;
+ locy = Convert.ToSingle(Utils.BytesToString(gmParams[1].Parameter)) - (float)regionY;
+ locz = Convert.ToSingle(Utils.BytesToString(gmParams[2].Parameter));
}
catch (InvalidCastException)
{
@@ -3817,7 +3814,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
handlerAutoPilotGo = OnAutoPilotGo;
if (handlerAutoPilotGo != null)
{
- handlerAutoPilotGo(0, new LLVector3(locx, locy, locz), this);
+ handlerAutoPilotGo(0, new Vector3(locx, locy, locz), this);
}
m_log.InfoFormat("[CLIENT]: Client Requests autopilot to position <{0},{1},{2}>", locx, locy, locz);
@@ -3839,7 +3836,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
/// Entryway from the client to the simulator
/// all UDP packets from the client will end up here
///
- /// libsecondlife.packet
+ /// OpenMetaverse.packet
public void ProcessInPacket(Packet Pack)
{
// check if we've got a local packet handler for this packet.type. See RegisterLocalPacketHandlers()
@@ -3858,7 +3855,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
case PacketType.GenericMessage:
GenericMessagePacket gmpack = (GenericMessagePacket)Pack;
- DecipherGenericMessage(Helpers.FieldToUTF8String(gmpack.MethodData.Method), gmpack.MethodData.Invoice, gmpack.ParamList);
+ DecipherGenericMessage(Utils.BytesToString(gmpack.MethodData.Method), gmpack.MethodData.Invoice, gmpack.ParamList);
break;
case PacketType.AvatarPropertiesRequest:
@@ -3877,8 +3874,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP
string fromName = String.Empty; //ClientAvatar.firstname + " " + ClientAvatar.lastname;
byte[] message = inchatpack.ChatData.Message;
byte type = inchatpack.ChatData.Type;
- LLVector3 fromPos = new LLVector3(); // ClientAvatar.Pos;
- // LLUUID fromAgentID = AgentId;
+ Vector3 fromPos = new Vector3(); // ClientAvatar.Pos;
+ // UUID fromAgentID = AgentId;
int channel = inchatpack.ChatData.Channel;
@@ -3887,7 +3884,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
OSChatMessage args = new OSChatMessage();
args.Channel = channel;
args.From = fromName;
- args.Message = Helpers.FieldToUTF8String(message);
+ args.Message = Utils.BytesToString(message);
args.Type = (ChatTypeEnum)type;
args.Position = fromPos;
@@ -3908,8 +3905,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP
AvatarPropertiesUpdatePacket.PropertiesDataBlock Properties = Packet.PropertiesData;
UserProfileData UserProfile = new UserProfileData();
UserProfile.ID = AgentId;
- UserProfile.AboutText = Helpers.FieldToUTF8String(Properties.AboutText);
- UserProfile.FirstLifeAboutText = Helpers.FieldToUTF8String(Properties.FLAboutText);
+ UserProfile.AboutText = Utils.BytesToString(Properties.AboutText);
+ UserProfile.FirstLifeAboutText = Utils.BytesToString(Properties.FLAboutText);
UserProfile.FirstLifeImage = Properties.FLImageID;
UserProfile.Image = Properties.ImageID;
@@ -3926,9 +3923,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP
OSChatMessage args = new OSChatMessage();
args.Channel = ch;
args.From = String.Empty;
- args.Message = Helpers.FieldToUTF8String(msg);
+ args.Message = Utils.BytesToString(msg);
args.Type = ChatTypeEnum.Shout;
- args.Position = new LLVector3();
+ args.Position = new Vector3();
args.Scene = Scene;
args.Sender = this;
handlerChatFromViewer2 = OnChatFromViewer;
@@ -3940,7 +3937,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
case PacketType.ImprovedInstantMessage:
ImprovedInstantMessagePacket msgpack = (ImprovedInstantMessagePacket)Pack;
string IMfromName = Util.FieldToString(msgpack.MessageBlock.FromAgentName);
- string IMmessage = Helpers.FieldToUTF8String(msgpack.MessageBlock.Message);
+ string IMmessage = Utils.BytesToString(msgpack.MessageBlock.Message);
handlerInstantMessage = OnInstantMessage;
if (handlerInstantMessage != null)
@@ -3959,10 +3956,10 @@ namespace OpenSim.Region.ClientStack.LindenUDP
AcceptFriendshipPacket afriendpack = (AcceptFriendshipPacket)Pack;
// My guess is this is the folder to stick the calling card into
- List callingCardFolders = new List();
+ List callingCardFolders = new List();
- LLUUID agentID = afriendpack.AgentData.AgentID;
- LLUUID transactionID = afriendpack.TransactionBlock.TransactionID;
+ UUID agentID = afriendpack.AgentData.AgentID;
+ UUID transactionID = afriendpack.TransactionBlock.TransactionID;
for (int fi = 0; fi < afriendpack.FolderData.Length; fi++)
{
@@ -3977,8 +3974,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP
break;
case PacketType.TerminateFriendship:
TerminateFriendshipPacket tfriendpack = (TerminateFriendshipPacket)Pack;
- LLUUID listOwnerAgentID = tfriendpack.AgentData.AgentID;
- LLUUID exFriendID = tfriendpack.ExBlock.OtherID;
+ UUID listOwnerAgentID = tfriendpack.AgentData.AgentID;
+ UUID exFriendID = tfriendpack.ExBlock.OtherID;
handlerTerminateFriendship = OnTerminateFriendship;
if (handlerTerminateFriendship != null)
@@ -4130,8 +4127,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP
{
DetachAttachmentIntoInvPacket detachtoInv = (DetachAttachmentIntoInvPacket)Pack;
- LLUUID itemID = detachtoInv.ObjectData.ItemID;
- // LLUUID ATTACH_agentID = detachtoInv.ObjectData.AgentID;
+ UUID itemID = detachtoInv.ObjectData.ItemID;
+ // UUID ATTACH_agentID = detachtoInv.ObjectData.AgentID;
handlerDetachAttachmentIntoInv(itemID, this);
}
@@ -4266,13 +4263,13 @@ namespace OpenSim.Region.ClientStack.LindenUDP
AvatarPickerRequestPacket avRequestQuery = (AvatarPickerRequestPacket)Pack;
AvatarPickerRequestPacket.AgentDataBlock Requestdata = avRequestQuery.AgentData;
AvatarPickerRequestPacket.DataBlock querydata = avRequestQuery.Data;
- //Console.WriteLine("Agent Sends:" + Helpers.FieldToUTF8String(querydata.Name));
+ //Console.WriteLine("Agent Sends:" + Utils.BytesToString(querydata.Name));
handlerAvatarPickerRequest = OnAvatarPickerRequest;
if (handlerAvatarPickerRequest != null)
{
handlerAvatarPickerRequest(this, Requestdata.AgentID, Requestdata.QueryID,
- Helpers.FieldToUTF8String(querydata.Name));
+ Utils.BytesToString(querydata.Name));
}
break;
case PacketType.AgentDataUpdateRequest:
@@ -4613,8 +4610,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP
{
ObjectPermissionsPacket newobjPerms = (ObjectPermissionsPacket)Pack;
- LLUUID AgentID = newobjPerms.AgentData.AgentID;
- LLUUID SessionID = newobjPerms.AgentData.SessionID;
+ UUID AgentID = newobjPerms.AgentData.AgentID;
+ UUID SessionID = newobjPerms.AgentData.SessionID;
handlerObjectPermissions = null;
@@ -4654,7 +4651,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
{
for (int i = 0; i < undoitem.ObjectData.Length; i++)
{
- LLUUID objiD = undoitem.ObjectData[i].ObjectID;
+ UUID objiD = undoitem.ObjectData[i].ObjectID;
handlerOnUndo = OnUndo;
if (handlerOnUndo != null)
{
@@ -4762,15 +4759,15 @@ namespace OpenSim.Region.ClientStack.LindenUDP
//
if (transfer.TransferInfo.SourceType == 3)
{
- LLUUID taskID = null;
- LLUUID itemID = null;
- LLUUID requestID = null;
- taskID = new LLUUID(transfer.TransferInfo.Params, 48);
- itemID = new LLUUID(transfer.TransferInfo.Params, 64);
- requestID = new LLUUID(transfer.TransferInfo.Params, 80);
+ UUID taskID = null;
+ UUID itemID = null;
+ UUID requestID = null;
+ taskID = new UUID(transfer.TransferInfo.Params, 48);
+ itemID = new UUID(transfer.TransferInfo.Params, 64);
+ requestID = new UUID(transfer.TransferInfo.Params, 80);
if (!(((Scene)m_scene).ExternalChecks.ExternalChecksBypassPermissions()))
{
- if (taskID != LLUUID.Zero) // Prim
+ if (taskID != UUID.Zero) // Prim
{
SceneObjectPart part = ((Scene)m_scene).GetSceneObjectPart(taskID);
if (part == null)
@@ -4831,7 +4828,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
AssetUploadRequestPacket request = (AssetUploadRequestPacket)Pack;
// Console.WriteLine("upload request " + Pack.ToString());
// Console.WriteLine("upload request was for assetid: " + request.AssetBlock.TransactionID.Combine(this.SecureSessionId).ToString());
- LLUUID temp = LLUUID.Combine(request.AssetBlock.TransactionID, SecureSessionId);
+ UUID temp = UUID.Combine(request.AssetBlock.TransactionID, SecureSessionId);
handlerAssetUploadRequest = OnAssetUploadRequest;
@@ -5019,7 +5016,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
//Console.WriteLine(Pack.ToString());
/*for (int i = 0; i < update.InventoryData.Length; i++)
{
- if (update.InventoryData[i].TransactionID != LLUUID.Zero)
+ if (update.InventoryData[i].TransactionID != UUID.Zero)
{
AssetBase asset = m_assetCache.GetAsset(update.InventoryData[i].TransactionID.Combine(this.SecureSessionId));
if (asset != null)
@@ -5244,9 +5241,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP
break;
case PacketType.TeleportLandmarkRequest:
TeleportLandmarkRequestPacket tpReq = (TeleportLandmarkRequestPacket)Pack;
- LLUUID lmid = tpReq.Info.LandmarkID;
+ UUID lmid = tpReq.Info.LandmarkID;
AssetLandmark lm;
- if (lmid != LLUUID.Zero)
+ if (lmid != UUID.Zero)
{
AssetBase lma = m_assetCache.GetAsset(lmid, false);
@@ -5441,14 +5438,14 @@ namespace OpenSim.Region.ClientStack.LindenUDP
args.AuthBuyerID = parcelPropertiesPacket.ParcelData.AuthBuyerID;
args.Category = (Parcel.ParcelCategory)parcelPropertiesPacket.ParcelData.Category;
- args.Desc = Helpers.FieldToUTF8String(parcelPropertiesPacket.ParcelData.Desc);
+ args.Desc = Utils.BytesToString(parcelPropertiesPacket.ParcelData.Desc);
args.GroupID = parcelPropertiesPacket.ParcelData.GroupID;
args.LandingType = parcelPropertiesPacket.ParcelData.LandingType;
args.MediaAutoScale = parcelPropertiesPacket.ParcelData.MediaAutoScale;
args.MediaID = parcelPropertiesPacket.ParcelData.MediaID;
- args.MediaURL = Helpers.FieldToUTF8String(parcelPropertiesPacket.ParcelData.MediaURL);
- args.MusicURL = Helpers.FieldToUTF8String(parcelPropertiesPacket.ParcelData.MusicURL);
- args.Name = Helpers.FieldToUTF8String(parcelPropertiesPacket.ParcelData.Name);
+ args.MediaURL = Utils.BytesToString(parcelPropertiesPacket.ParcelData.MediaURL);
+ args.MusicURL = Utils.BytesToString(parcelPropertiesPacket.ParcelData.MusicURL);
+ args.Name = Utils.BytesToString(parcelPropertiesPacket.ParcelData.Name);
args.ParcelFlags = parcelPropertiesPacket.ParcelData.ParcelFlags;
args.PassHours = parcelPropertiesPacket.ParcelData.PassHours;
args.PassPrice = parcelPropertiesPacket.ParcelData.PassPrice;
@@ -5504,11 +5501,11 @@ namespace OpenSim.Region.ClientStack.LindenUDP
ParcelReturnObjectsPacket parcelReturnObjects = (ParcelReturnObjectsPacket)Pack;
- LLUUID[] puserselectedOwnerIDs = new LLUUID[parcelReturnObjects.OwnerIDs.Length];
+ UUID[] puserselectedOwnerIDs = new UUID[parcelReturnObjects.OwnerIDs.Length];
for (int parceliterator = 0; parceliterator < parcelReturnObjects.OwnerIDs.Length; parceliterator++)
puserselectedOwnerIDs[parceliterator] = parcelReturnObjects.OwnerIDs[parceliterator].OwnerID;
- LLUUID[] puserselectedTaskIDs = new LLUUID[parcelReturnObjects.TaskIDs.Length];
+ UUID[] puserselectedTaskIDs = new UUID[parcelReturnObjects.TaskIDs.Length];
for (int parceliterator = 0; parceliterator < parcelReturnObjects.TaskIDs.Length; parceliterator++)
puserselectedTaskIDs[parceliterator] = parcelReturnObjects.TaskIDs[parceliterator].TaskID;
@@ -5528,7 +5525,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
case PacketType.EstateOwnerMessage:
EstateOwnerMessagePacket messagePacket = (EstateOwnerMessagePacket)Pack;
- switch (Helpers.FieldToUTF8String(messagePacket.MethodData.Method))
+ switch (Utils.BytesToString(messagePacket.MethodData.Method))
{
case "getinfo":
if (((Scene)m_scene).ExternalChecks.ExternalChecksCanIssueEstateCommand(this.AgentId, false))
@@ -5541,9 +5538,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP
{
OnSetEstateFlagsRequest(convertParamStringToBool(messagePacket.ParamList[0].Parameter), convertParamStringToBool(messagePacket.ParamList[1].Parameter),
convertParamStringToBool(messagePacket.ParamList[2].Parameter), !convertParamStringToBool(messagePacket.ParamList[3].Parameter),
- Convert.ToInt16(Convert.ToDecimal(Helpers.FieldToUTF8String(messagePacket.ParamList[4].Parameter))),
- (float)Convert.ToDecimal(Helpers.FieldToUTF8String(messagePacket.ParamList[5].Parameter)),
- Convert.ToInt16(Helpers.FieldToUTF8String(messagePacket.ParamList[6].Parameter)),
+ Convert.ToInt16(Convert.ToDecimal(Utils.BytesToString(messagePacket.ParamList[4].Parameter))),
+ (float)Convert.ToDecimal(Utils.BytesToString(messagePacket.ParamList[5].Parameter)),
+ Convert.ToInt16(Utils.BytesToString(messagePacket.ParamList[6].Parameter)),
convertParamStringToBool(messagePacket.ParamList[7].Parameter), convertParamStringToBool(messagePacket.ParamList[8].Parameter));
}
@@ -5554,11 +5551,11 @@ namespace OpenSim.Region.ClientStack.LindenUDP
// {
// foreach (EstateOwnerMessagePacket.ParamListBlock block in messagePacket.ParamList)
// {
-// string s = Helpers.FieldToUTF8String(block.Parameter);
+// string s = Utils.BytesToString(block.Parameter);
// string[] splitField = s.Split(' ');
// if (splitField.Length == 2)
// {
-// LLUUID tempUUID = new LLUUID(splitField[1]);
+// UUID tempUUID = new UUID(splitField[1]);
// OnSetEstateTerrainBaseTexture(this, Convert.ToInt16(splitField[0]), tempUUID);
// }
// }
@@ -5569,12 +5566,12 @@ namespace OpenSim.Region.ClientStack.LindenUDP
{
foreach (EstateOwnerMessagePacket.ParamListBlock block in messagePacket.ParamList)
{
- string s = Helpers.FieldToUTF8String(block.Parameter);
+ string s = Utils.BytesToString(block.Parameter);
string[] splitField = s.Split(' ');
if (splitField.Length == 2)
{
Int16 corner = Convert.ToInt16(splitField[0]);
- LLUUID textureUUID = new LLUUID(splitField[1]);
+ UUID textureUUID = new UUID(splitField[1]);
OnSetEstateTerrainDetailTexture(this, corner, textureUUID);
}
@@ -5587,7 +5584,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
{
foreach (EstateOwnerMessagePacket.ParamListBlock block in messagePacket.ParamList)
{
- string s = Helpers.FieldToUTF8String(block.Parameter);
+ string s = Utils.BytesToString(block.Parameter);
string[] splitField = s.Split(' ');
if (splitField.Length == 3)
{
@@ -5615,21 +5612,21 @@ namespace OpenSim.Region.ClientStack.LindenUDP
try
{
string tmp;
- tmp = Helpers.FieldToUTF8String(messagePacket.ParamList[0].Parameter);
+ tmp = Utils.BytesToString(messagePacket.ParamList[0].Parameter);
if (!tmp.Contains(".")) tmp += ".00";
float WaterHeight = (float)Convert.ToDecimal(tmp);
- tmp = Helpers.FieldToUTF8String(messagePacket.ParamList[1].Parameter);
+ tmp = Utils.BytesToString(messagePacket.ParamList[1].Parameter);
if (!tmp.Contains(".")) tmp += ".00";
float TerrainRaiseLimit = (float)Convert.ToDecimal(tmp);
- tmp = Helpers.FieldToUTF8String(messagePacket.ParamList[2].Parameter);
+ tmp = Utils.BytesToString(messagePacket.ParamList[2].Parameter);
if (!tmp.Contains(".")) tmp += ".00";
float TerrainLowerLimit = (float)Convert.ToDecimal(tmp);
bool UseEstateSun = convertParamStringToBool(messagePacket.ParamList[3].Parameter);
bool UseFixedSun = convertParamStringToBool(messagePacket.ParamList[4].Parameter);
- float SunHour = (float)Convert.ToDecimal(Helpers.FieldToUTF8String(messagePacket.ParamList[5].Parameter));
+ float SunHour = (float)Convert.ToDecimal(Utils.BytesToString(messagePacket.ParamList[5].Parameter));
bool UseGlobal = convertParamStringToBool(messagePacket.ParamList[6].Parameter);
bool EstateFixedSun = convertParamStringToBool(messagePacket.ParamList[7].Parameter);
- float EstateSunHour = (float)Convert.ToDecimal(Helpers.FieldToUTF8String(messagePacket.ParamList[8].Parameter));
+ float EstateSunHour = (float)Convert.ToDecimal(Utils.BytesToString(messagePacket.ParamList[8].Parameter));
OnSetRegionTerrainSettings(WaterHeight, TerrainRaiseLimit, TerrainLowerLimit, UseEstateSun, UseFixedSun, SunHour, UseGlobal, EstateFixedSun, EstateSunHour);
@@ -5649,7 +5646,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
foreach (EstateOwnerMessagePacket.ParamListBlock block in messagePacket.ParamList)
{
float timeSeconds = 0;
- Helpers.TryParse(Helpers.FieldToUTF8String(block.Parameter), out timeSeconds);
+ Utils.TryParseSingle(Utils.BytesToString(block.Parameter), out timeSeconds);
timeSeconds = (int)timeSeconds;
OnEstateRestartSimRequest(this, (int)timeSeconds);
@@ -5661,7 +5658,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
{
foreach (EstateOwnerMessagePacket.ParamListBlock block in messagePacket.ParamList)
{
- LLUUID newCovenantID = new LLUUID(Helpers.FieldToUTF8String(block.Parameter));
+ UUID newCovenantID = new UUID(Utils.BytesToString(block.Parameter));
OnEstateChangeCovenantRequest(this, newCovenantID);
}
}
@@ -5669,19 +5666,19 @@ namespace OpenSim.Region.ClientStack.LindenUDP
case "estateaccessdelta": // Estate access delta manages the banlist and allow list too.
if (((Scene)m_scene).ExternalChecks.ExternalChecksCanIssueEstateCommand(this.AgentId, false))
{
- int estateAccessType = Convert.ToInt16(Helpers.FieldToUTF8String(messagePacket.ParamList[1].Parameter));
- OnUpdateEstateAccessDeltaRequest(this, messagePacket.MethodData.Invoice, estateAccessType, new LLUUID(Helpers.FieldToUTF8String(messagePacket.ParamList[2].Parameter)));
+ int estateAccessType = Convert.ToInt16(Utils.BytesToString(messagePacket.ParamList[1].Parameter));
+ OnUpdateEstateAccessDeltaRequest(this, messagePacket.MethodData.Invoice, estateAccessType, new UUID(Utils.BytesToString(messagePacket.ParamList[2].Parameter)));
}
break;
case "simulatormessage":
if (((Scene)m_scene).ExternalChecks.ExternalChecksCanIssueEstateCommand(this.AgentId, false))
{
- LLUUID invoice = messagePacket.MethodData.Invoice;
- LLUUID SenderID = new LLUUID(Helpers.FieldToUTF8String(messagePacket.ParamList[2].Parameter));
- string SenderName = Helpers.FieldToUTF8String(messagePacket.ParamList[3].Parameter);
- string Message = Helpers.FieldToUTF8String(messagePacket.ParamList[4].Parameter);
- LLUUID sessionID = messagePacket.AgentData.SessionID;
+ UUID invoice = messagePacket.MethodData.Invoice;
+ UUID SenderID = new UUID(Utils.BytesToString(messagePacket.ParamList[2].Parameter));
+ string SenderName = Utils.BytesToString(messagePacket.ParamList[3].Parameter);
+ string Message = Utils.BytesToString(messagePacket.ParamList[4].Parameter);
+ UUID sessionID = messagePacket.AgentData.SessionID;
OnSimulatorBlueBoxMessageRequest(this, invoice, SenderID, sessionID, SenderName, Message);
}
break;
@@ -5690,19 +5687,19 @@ namespace OpenSim.Region.ClientStack.LindenUDP
{
if (messagePacket.ParamList.Length < 5)
break;
- LLUUID invoice = messagePacket.MethodData.Invoice;
- LLUUID SenderID = new LLUUID(Helpers.FieldToUTF8String(messagePacket.ParamList[2].Parameter));
- string SenderName = Helpers.FieldToUTF8String(messagePacket.ParamList[3].Parameter);
- string Message = Helpers.FieldToUTF8String(messagePacket.ParamList[4].Parameter);
- LLUUID sessionID = messagePacket.AgentData.SessionID;
+ UUID invoice = messagePacket.MethodData.Invoice;
+ UUID SenderID = new UUID(Utils.BytesToString(messagePacket.ParamList[2].Parameter));
+ string SenderName = Utils.BytesToString(messagePacket.ParamList[3].Parameter);
+ string Message = Utils.BytesToString(messagePacket.ParamList[4].Parameter);
+ UUID sessionID = messagePacket.AgentData.SessionID;
OnEstateBlueBoxMessageRequest(this, invoice, SenderID, sessionID, SenderName, Message);
}
break;
case "setregiondebug":
if (((Scene)m_scene).ExternalChecks.ExternalChecksCanIssueEstateCommand(this.AgentId, false))
{
- LLUUID invoice = messagePacket.MethodData.Invoice;
- LLUUID SenderID = messagePacket.AgentData.AgentID;
+ UUID invoice = messagePacket.MethodData.Invoice;
+ UUID SenderID = messagePacket.AgentData.AgentID;
bool scripted = convertParamStringToBool(messagePacket.ParamList[0].Parameter);
bool collisionEvents = convertParamStringToBool(messagePacket.ParamList[1].Parameter);
bool physics = convertParamStringToBool(messagePacket.ParamList[2].Parameter);
@@ -5713,11 +5710,11 @@ namespace OpenSim.Region.ClientStack.LindenUDP
case "teleporthomeuser":
if (((Scene)m_scene).ExternalChecks.ExternalChecksCanIssueEstateCommand(this.AgentId, false))
{
- LLUUID invoice = messagePacket.MethodData.Invoice;
- LLUUID SenderID = messagePacket.AgentData.AgentID;
- LLUUID Prey = LLUUID.Zero;
+ UUID invoice = messagePacket.MethodData.Invoice;
+ UUID SenderID = messagePacket.AgentData.AgentID;
+ UUID Prey = UUID.Zero;
- Helpers.TryParse(Helpers.FieldToUTF8String(messagePacket.ParamList[1].Parameter), out Prey);
+ UUID.TryParse(Utils.BytesToString(messagePacket.ParamList[1].Parameter), out Prey);
OnEstateTeleportOneUserHomeRequest(this, invoice, SenderID, Prey);
}
@@ -5750,10 +5747,10 @@ namespace OpenSim.Region.ClientStack.LindenUDP
case "estatechangeinfo":
if (((Scene)m_scene).ExternalChecks.ExternalChecksCanIssueEstateCommand(this.AgentId, false))
{
- LLUUID invoice = messagePacket.MethodData.Invoice;
- LLUUID SenderID = messagePacket.AgentData.AgentID;
- UInt32 param1 = Convert.ToUInt32(Helpers.FieldToUTF8String(messagePacket.ParamList[1].Parameter));
- UInt32 param2 = Convert.ToUInt32(Helpers.FieldToUTF8String(messagePacket.ParamList[2].Parameter));
+ UUID invoice = messagePacket.MethodData.Invoice;
+ UUID SenderID = messagePacket.AgentData.AgentID;
+ UInt32 param1 = Convert.ToUInt32(Utils.BytesToString(messagePacket.ParamList[1].Parameter));
+ UInt32 param2 = Convert.ToUInt32(Utils.BytesToString(messagePacket.ParamList[2].Parameter));
handlerEstateChangeInfo = OnEstateChangeInfo;
if (handlerEstateChangeInfo != null)
@@ -5774,7 +5771,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
handlerLandStatRequest = OnLandStatRequest;
if (handlerLandStatRequest != null)
{
- handlerLandStatRequest(lsrp.RequestData.ParcelLocalID, lsrp.RequestData.ReportType, lsrp.RequestData.RequestFlags, Helpers.FieldToUTF8String(lsrp.RequestData.Filter), this);
+ handlerLandStatRequest(lsrp.RequestData.ParcelLocalID, lsrp.RequestData.ReportType, lsrp.RequestData.RequestFlags, Utils.BytesToString(lsrp.RequestData.Filter), this);
}
//int parcelID, uint reportType, uint requestflags, string filter
@@ -5813,7 +5810,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
case PacketType.RequestGodlikePowers:
RequestGodlikePowersPacket rglpPack = (RequestGodlikePowersPacket)Pack;
RequestGodlikePowersPacket.RequestBlockBlock rblock = rglpPack.RequestBlock;
- LLUUID token = rblock.Token;
+ UUID token = rblock.Token;
RequestGodlikePowersPacket.AgentDataBlock ablock = rglpPack.AgentData;
@@ -6086,7 +6083,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
shape.PathTaperY = addPacket.ObjectData.PathTaperY;
shape.PathTwist = addPacket.ObjectData.PathTwist;
shape.PathTwistBegin = addPacket.ObjectData.PathTwistBegin;
- LLObject.TextureEntry ntex = new LLObject.TextureEntry(new LLUUID("89556747-24cb-43ed-920b-47caed15465f"));
+ Primitive.TextureEntry ntex = new Primitive.TextureEntry(new UUID("89556747-24cb-43ed-920b-47caed15465f"));
shape.TextureEntry = ntex.ToBytes();
//shape.Textures = ntex;
return shape;
@@ -6099,7 +6096,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
///
///
///
- public void SendBlueBoxMessage(LLUUID FromAvatarID, LLUUID fromSessionID, String FromAvatarName, String Message)
+ public void SendBlueBoxMessage(UUID FromAvatarID, UUID fromSessionID, String FromAvatarName, String Message)
{
if (!ChildAgentStatus())
SendInstantMessage(FromAvatarID, fromSessionID, Message, AgentId, SessionId, FromAvatarName, (byte)1, (uint)Util.UnixTimeSinceEpoch());
@@ -6122,7 +6119,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
logReply.AgentData.SessionID = SessionId;
logReply.InventoryData = new LogoutReplyPacket.InventoryDataBlock[1];
logReply.InventoryData[0] = new LogoutReplyPacket.InventoryDataBlock();
- logReply.InventoryData[0].ItemID = LLUUID.Zero;
+ logReply.InventoryData[0].ItemID = UUID.Zero;
OutPacket(logReply, ThrottleOutPacketType.Task);
}
@@ -6135,7 +6132,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
OutPacket(healthpacket, ThrottleOutPacketType.Task);
}
- public void SendAgentOnline(LLUUID[] agentIDs)
+ public void SendAgentOnline(UUID[] agentIDs)
{
OnlineNotificationPacket onp = new OnlineNotificationPacket();
OnlineNotificationPacket.AgentBlockBlock[] onpb = new OnlineNotificationPacket.AgentBlockBlock[agentIDs.Length];
@@ -6150,7 +6147,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
OutPacket(onp, ThrottleOutPacketType.Task);
}
- public void SendAgentOffline(LLUUID[] agentIDs)
+ public void SendAgentOffline(UUID[] agentIDs)
{
OfflineNotificationPacket offp = new OfflineNotificationPacket();
OfflineNotificationPacket.AgentBlockBlock[] offpb = new OfflineNotificationPacket.AgentBlockBlock[agentIDs.Length];
@@ -6165,12 +6162,12 @@ namespace OpenSim.Region.ClientStack.LindenUDP
OutPacket(offp, ThrottleOutPacketType.Task);
}
- public void SendSitResponse(LLUUID TargetID, LLVector3 OffsetPos, LLQuaternion SitOrientation, bool autopilot,
- LLVector3 CameraAtOffset, LLVector3 CameraEyeOffset, bool ForceMouseLook)
+ public void SendSitResponse(UUID TargetID, Vector3 OffsetPos, Quaternion SitOrientation, bool autopilot,
+ Vector3 CameraAtOffset, Vector3 CameraEyeOffset, bool ForceMouseLook)
{
AvatarSitResponsePacket avatarSitResponse = new AvatarSitResponsePacket();
avatarSitResponse.SitObject.ID = TargetID;
- if (CameraAtOffset != LLVector3.Zero)
+ if (CameraAtOffset != Vector3.Zero)
{
avatarSitResponse.SitTransform.CameraAtOffset = CameraAtOffset;
avatarSitResponse.SitTransform.CameraEyeOffset = CameraEyeOffset;
@@ -6183,7 +6180,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
OutPacket(avatarSitResponse, ThrottleOutPacketType.Task);
}
- public void SendAdminResponse(LLUUID Token, uint AdminLevel)
+ public void SendAdminResponse(UUID Token, uint AdminLevel)
{
GrantGodlikePowersPacket respondPacket = new GrantGodlikePowersPacket();
GrantGodlikePowersPacket.GrantDataBlock gdb = new GrantGodlikePowersPacket.GrantDataBlock();
@@ -6210,7 +6207,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
Group.Contribution = GroupMembership[i].contribution;
Group.GroupID = GroupMembership[i].GroupID;
Group.GroupInsigniaID = GroupMembership[i].GroupPicture;
- Group.GroupName = Helpers.StringToField(GroupMembership[i].groupName);
+ Group.GroupName = Utils.StringToBytes(GroupMembership[i].groupName);
Group.GroupPowers = GroupMembership[i].groupPowers;
Groups[i] = Group;
Groupupdate.GroupData = Groups;
@@ -6220,13 +6217,13 @@ namespace OpenSim.Region.ClientStack.LindenUDP
OutPacket(Groupupdate, ThrottleOutPacketType.Task);
}
- public void SendGroupNameReply(LLUUID groupLLUID, string GroupName)
+ public void SendGroupNameReply(UUID groupLLUID, string GroupName)
{
UUIDGroupNameReplyPacket pack = new UUIDGroupNameReplyPacket();
UUIDGroupNameReplyPacket.UUIDNameBlockBlock[] uidnameblock = new UUIDGroupNameReplyPacket.UUIDNameBlockBlock[1];
UUIDGroupNameReplyPacket.UUIDNameBlockBlock uidnamebloc = new UUIDGroupNameReplyPacket.UUIDNameBlockBlock();
uidnamebloc.ID = groupLLUID;
- uidnamebloc.GroupName = Helpers.StringToField(GroupName);
+ uidnamebloc.GroupName = Utils.StringToBytes(GroupName);
uidnameblock[0] = uidnamebloc;
pack.UUIDNameBlock = uidnameblock;
OutPacket(pack, ThrottleOutPacketType.Task);
@@ -6251,15 +6248,15 @@ namespace OpenSim.Region.ClientStack.LindenUDP
lsrepdb.Score = lsrpia[i].Score;
lsrepdb.TaskID = lsrpia[i].TaskID;
lsrepdb.TaskLocalID = lsrpia[i].TaskLocalID;
- lsrepdb.TaskName = Helpers.StringToField(lsrpia[i].TaskName);
- lsrepdb.OwnerName = Helpers.StringToField(lsrpia[i].OwnerName);
+ lsrepdb.TaskName = Utils.StringToBytes(lsrpia[i].TaskName);
+ lsrepdb.OwnerName = Utils.StringToBytes(lsrpia[i].OwnerName);
lsrepdba[i] = lsrepdb;
}
lsrp.ReportData = lsrepdba;
OutPacket(lsrp, ThrottleOutPacketType.Task);
}
- public void SendScriptRunningReply(LLUUID objectID, LLUUID itemID, bool running)
+ public void SendScriptRunningReply(UUID objectID, UUID itemID, bool running)
{
ScriptRunningReplyPacket scriptRunningReply = new ScriptRunningReplyPacket();
scriptRunningReply.Script.ObjectID = objectID;
@@ -6310,8 +6307,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
else
{
int processedLength = 0;
- // libsecondlife hardcodes 1500 as the maximum data chunk size
- int maxChunkSize = 1250;
+ int maxChunkSize = Settings.MAX_PACKET_SIZE - 100;
int packetNumber = 0;
while (processedLength < req.AssetInf.Data.Length)
@@ -6378,17 +6374,17 @@ namespace OpenSim.Region.ClientStack.LindenUDP
OutPacket(commandMessagePacket, ThrottleOutPacketType.Unknown);
}
- public void SendParcelMediaUpdate(string mediaUrl, LLUUID mediaTextureID,
+ public void SendParcelMediaUpdate(string mediaUrl, UUID mediaTextureID,
byte autoScale, string mediaType, string mediaDesc, int mediaWidth, int mediaHeight,
byte mediaLoop)
{
ParcelMediaUpdatePacket updatePacket = new ParcelMediaUpdatePacket();
- updatePacket.DataBlock.MediaURL = Helpers.StringToField(mediaUrl);
+ updatePacket.DataBlock.MediaURL = Utils.StringToBytes(mediaUrl);
updatePacket.DataBlock.MediaID = mediaTextureID;
updatePacket.DataBlock.MediaAutoScale = autoScale;
- updatePacket.DataBlockExtended.MediaType = Helpers.StringToField(mediaType);
- updatePacket.DataBlockExtended.MediaDesc = Helpers.StringToField(mediaDesc);
+ updatePacket.DataBlockExtended.MediaType = Utils.StringToBytes(mediaType);
+ updatePacket.DataBlockExtended.MediaDesc = Utils.StringToBytes(mediaDesc);
updatePacket.DataBlockExtended.MediaWidth = mediaWidth;
updatePacket.DataBlockExtended.MediaWidth = mediaHeight;
updatePacket.DataBlockExtended.MediaLoop = mediaLoop;
@@ -6401,7 +6397,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
#region Camera
- public void SendSetFollowCamProperties (LLUUID objectID, SortedDictionary parameters)
+ public void SendSetFollowCamProperties (UUID objectID, SortedDictionary parameters)
{
SetFollowCamPropertiesPacket packet = (SetFollowCamPropertiesPacket)PacketPool.Instance.GetPacket(PacketType.SetFollowCamProperties);
packet.ObjectData.ObjectID = objectID;
@@ -6419,7 +6415,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
OutPacket(packet, ThrottleOutPacketType.Task);
}
- public void SendClearFollowCamProperties (LLUUID objectID)
+ public void SendClearFollowCamProperties (UUID objectID)
{
ClearFollowCamPropertiesPacket packet = (ClearFollowCamPropertiesPacket)PacketPool.Instance.GetPacket(PacketType.ClearFollowCamProperties);
packet.ObjectData.ObjectID = objectID;
@@ -6428,21 +6424,21 @@ namespace OpenSim.Region.ClientStack.LindenUDP
#endregion
- public void SendRegionHandle(LLUUID regionID, ulong handle) {
+ public void SendRegionHandle(UUID regionID, ulong handle) {
RegionIDAndHandleReplyPacket reply = (RegionIDAndHandleReplyPacket)PacketPool.Instance.GetPacket(PacketType.RegionIDAndHandleReply);
reply.ReplyBlock.RegionID = regionID;
reply.ReplyBlock.RegionHandle = handle;
OutPacket(reply, ThrottleOutPacketType.Land);
}
- public void SendParcelInfo(RegionInfo info, LandData land, LLUUID parcelID, uint x, uint y)
+ public void SendParcelInfo(RegionInfo info, LandData land, UUID parcelID, uint x, uint y)
{
ParcelInfoReplyPacket reply = (ParcelInfoReplyPacket)PacketPool.Instance.GetPacket(PacketType.ParcelInfoReply);
reply.AgentData.AgentID = m_agentId;
reply.Data.ParcelID = parcelID;
reply.Data.OwnerID = land.OwnerID;
- reply.Data.Name = Helpers.StringToField(land.Name != null ? land.Name : "");
- reply.Data.Desc = Helpers.StringToField(land.Description != null ? land.Description : "");
+ reply.Data.Name = Utils.StringToBytes(land.Name);
+ reply.Data.Desc = Utils.StringToBytes(land.Description);
reply.Data.ActualArea = land.Area;
reply.Data.BillableArea = land.Area; // TODO: what is this?
@@ -6451,15 +6447,15 @@ namespace OpenSim.Region.ClientStack.LindenUDP
((land.Flags & (uint)Parcel.ParcelFlags.MaturePublish) != 0 ? (1 << 0) : 0) +
((land.Flags & (uint)Parcel.ParcelFlags.ForSale) != 0 ? (1 << 7) : 0));
- LLVector3 pos = land.UserLocation;
- if (pos.Equals(LLVector3.Zero))
+ Vector3 pos = land.UserLocation;
+ if (pos.Equals(Vector3.Zero))
{
pos = (land.AABBMax + land.AABBMin) * 0.5f;
}
reply.Data.GlobalX = info.RegionLocX * Constants.RegionSize + x;
reply.Data.GlobalY = info.RegionLocY * Constants.RegionSize + y;
reply.Data.GlobalZ = pos.Z;
- reply.Data.SimName = Helpers.StringToField(info.RegionName != null ? info.RegionName : "");
+ reply.Data.SimName = Utils.StringToBytes(info.RegionName);
reply.Data.SnapshotID = land.SnapshotID;
reply.Data.Dwell = 0; // TODO: not implemented yet
reply.Data.SalePrice = land.SalePrice;
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLPacketHandler.cs b/OpenSim/Region/ClientStack/LindenUDP/LLPacketHandler.cs
index 551e7ab..eddee10 100644
--- a/OpenSim/Region/ClientStack/LindenUDP/LLPacketHandler.cs
+++ b/OpenSim/Region/ClientStack/LindenUDP/LLPacketHandler.cs
@@ -33,8 +33,8 @@ using System.Net.Sockets;
using System.Threading;
using System.Timers;
using System.Reflection;
-using libsecondlife;
-using libsecondlife.Packets;
+using OpenMetaverse;
+using OpenMetaverse.Packets;
using Timer = System.Timers.Timer;
using OpenSim.Framework;
using OpenSim.Region.ClientStack.LindenUDP;
@@ -44,7 +44,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
{
public delegate void PacketStats(int inPackets, int outPackets, int unAckedBytes);
public delegate void PacketDrop(Packet pack, Object id);
- public delegate bool SynchronizeClientHandler(IScene scene, Packet packet, LLUUID agentID, ThrottleOutPacketType throttlePacketType);
+ public delegate bool SynchronizeClientHandler(IScene scene, Packet packet, UUID agentID, ThrottleOutPacketType throttlePacketType);
public interface IPacketHandler
{
@@ -259,9 +259,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP
// acks being appended to the payload, just don't send
// any with them until libsl is fixed.
//
- if (packet is libsecondlife.Packets.ViewerEffectPacket)
+ if (packet is OpenMetaverse.Packets.ViewerEffectPacket)
return;
- if (packet is libsecondlife.Packets.SimStatsPacket)
+ if (packet is OpenMetaverse.Packets.SimStatsPacket)
return;
// Add acks to outgoing packets
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLPacketQueue.cs b/OpenSim/Region/ClientStack/LindenUDP/LLPacketQueue.cs
index 94f7214..1e369ec 100644
--- a/OpenSim/Region/ClientStack/LindenUDP/LLPacketQueue.cs
+++ b/OpenSim/Region/ClientStack/LindenUDP/LLPacketQueue.cs
@@ -29,8 +29,8 @@ using System;
using System.Collections.Generic;
using System.Threading;
using System.Timers;
-using libsecondlife;
-using libsecondlife.Packets;
+using OpenMetaverse;
+using OpenMetaverse.Packets;
using OpenSim.Framework;
using OpenSim.Framework.Statistics;
using OpenSim.Framework.Statistics.Interfaces;
@@ -82,9 +82,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP
// private long ThrottleInterval;
private Timer throttleTimer;
- private LLUUID m_agentId;
+ private UUID m_agentId;
- public LLPacketQueue(LLUUID agentId)
+ public LLPacketQueue(UUID agentId)
{
// While working on this, the BlockingQueue had me fooled for a bit.
// The Blocking queue causes the thread to stop until there's something
@@ -479,7 +479,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
for (int i = 0; i < 7; i++)
Array.Reverse(throttle, j + i*singlefloat, singlefloat);
- // values gotten from libsecondlife.org/wiki/Throttle. Thanks MW_
+ // values gotten from OpenMetaverse.org/wiki/Throttle. Thanks MW_
// bytes
// Convert to integer, since.. the full fp space isn't used.
tResend = (int) BitConverter.ToSingle(throttle, j);
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLPacketServer.cs b/OpenSim/Region/ClientStack/LindenUDP/LLPacketServer.cs
index 2a3f2e1..07d3c45 100644
--- a/OpenSim/Region/ClientStack/LindenUDP/LLPacketServer.cs
+++ b/OpenSim/Region/ClientStack/LindenUDP/LLPacketServer.cs
@@ -27,8 +27,8 @@
using System.Net;
using System.Net.Sockets;
-using libsecondlife;
-using libsecondlife.Packets;
+using OpenMetaverse;
+using OpenMetaverse.Packets;
using OpenSim.Framework;
using OpenSim.Framework.Communications.Cache;
using OpenSim.Region.ClientStack.LindenUDP;
@@ -73,7 +73,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
protected virtual IClientAPI CreateNewClient(EndPoint remoteEP, UseCircuitCodePacket initialcirpack,
ClientManager clientManager, IScene scene, AssetCache assetCache,
LLPacketServer packServer, AgentCircuitManager authenSessions,
- LLUUID agentId, LLUUID sessionId, uint circuitCode, EndPoint proxyEP)
+ UUID agentId, UUID sessionId, uint circuitCode, EndPoint proxyEP)
{
return
new LLClientView(remoteEP, scene, assetCache, packServer, authenSessions, agentId, sessionId, circuitCode, proxyEP);
@@ -147,4 +147,4 @@ namespace OpenSim.Region.ClientStack.LindenUDP
client.Close(false);
}
}
-}
\ No newline at end of file
+}
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLQueItem.cs b/OpenSim/Region/ClientStack/LindenUDP/LLQueItem.cs
index e836dd7..3bb0b7a 100644
--- a/OpenSim/Region/ClientStack/LindenUDP/LLQueItem.cs
+++ b/OpenSim/Region/ClientStack/LindenUDP/LLQueItem.cs
@@ -26,7 +26,7 @@
*/
using System;
-using libsecondlife.Packets;
+using OpenMetaverse.Packets;
using OpenSim.Framework;
namespace OpenSim.Region.ClientStack.LindenUDP
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs b/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs
index 8dec185..2d57d7f 100644
--- a/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs
+++ b/OpenSim/Region/ClientStack/LindenUDP/LLUDPServer.cs
@@ -31,7 +31,7 @@ using System.Collections.Generic;
using System.Net;
using System.Net.Sockets;
using System.Reflection;
-using libsecondlife.Packets;
+using OpenMetaverse.Packets;
using log4net;
using OpenSim.Framework;
using OpenSim.Framework.Communications.Cache;
@@ -136,7 +136,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
// Return new port
// This because in Grid mode it is not really important what port the region listens to as long as it is correctly registered.
- // So the option allow_alternate_ports="true" was added to default.xml
+ // So the option allow_alternate_ports="true" was added to default.Xml
port = (uint)(listenPort - proxyPortOffset);
}
diff --git a/OpenSim/Region/ClientStack/RegionApplicationBase.cs b/OpenSim/Region/ClientStack/RegionApplicationBase.cs
index 91f7472..d1572fd 100644
--- a/OpenSim/Region/ClientStack/RegionApplicationBase.cs
+++ b/OpenSim/Region/ClientStack/RegionApplicationBase.cs
@@ -28,7 +28,7 @@
using System.Collections.Generic;
using System.Net;
using System.Reflection;
-using libsecondlife;
+using OpenMetaverse;
using log4net;
using Nini.Config;
using OpenSim.Framework;
@@ -138,7 +138,7 @@ namespace OpenSim.Region.ClientStack
// TODO: Remove this cruft once MasterAvatar is fully deprecated
//Master Avatar Setup
UserProfileData masterAvatar;
- if (scene.RegionInfo.MasterAvatarAssignedUUID != LLUUID.Zero)
+ if (scene.RegionInfo.MasterAvatarAssignedUUID != UUID.Zero)
{
masterAvatar = m_commsManager.UserService.SetupMasterUser(scene.RegionInfo.MasterAvatarAssignedUUID);
scene.RegionInfo.MasterAvatarFirstName = masterAvatar.FirstName;
@@ -160,7 +160,7 @@ namespace OpenSim.Region.ClientStack
else
{
m_log.Info("[PARCEL]: No master avatar found, using null.");
- scene.RegionInfo.MasterAvatarAssignedUUID = LLUUID.Zero;
+ scene.RegionInfo.MasterAvatarAssignedUUID = UUID.Zero;
}
scene.LoadPrimsFromStorage(regionInfo.originRegionID);
diff --git a/OpenSim/Region/Communications/Local/LocalBackEndServices.cs b/OpenSim/Region/Communications/Local/LocalBackEndServices.cs
index a2c3c2c..aabddc6 100644
--- a/OpenSim/Region/Communications/Local/LocalBackEndServices.cs
+++ b/OpenSim/Region/Communications/Local/LocalBackEndServices.cs
@@ -29,7 +29,7 @@ using System;
using System.Collections;
using System.Collections.Generic;
using System.Reflection;
-using libsecondlife;
+using OpenMetaverse;
using log4net;
using OpenSim.Framework;
using OpenSim.Framework.Communications;
@@ -177,7 +177,7 @@ namespace OpenSim.Region.Communications.Local
return null;
}
- public RegionInfo RequestNeighbourInfo(LLUUID regionID)
+ public RegionInfo RequestNeighbourInfo(UUID regionID)
{
// TODO add a dictionary for faster lookup
foreach (RegionInfo info in m_regions.Values)
@@ -229,7 +229,7 @@ namespace OpenSim.Region.Communications.Local
return mapBlocks;
}
- public bool TellRegionToCloseChildConnection(ulong regionHandle, LLUUID agentID)
+ public bool TellRegionToCloseChildConnection(ulong regionHandle, UUID agentID)
{
if (m_regionListeners.ContainsKey(regionHandle))
{
@@ -306,7 +306,7 @@ namespace OpenSim.Region.Communications.Local
return false;
}
- public bool TriggerTellRegionToCloseChildConnection(ulong regionHandle, LLUUID agentID)
+ public bool TriggerTellRegionToCloseChildConnection(ulong regionHandle, UUID agentID)
{
if (m_regionListeners.ContainsKey(regionHandle))
{
@@ -338,7 +338,7 @@ namespace OpenSim.Region.Communications.Local
return false;
}
- public bool InformRegionOfPrimCrossing(ulong regionHandle, LLUUID primID, string objData, int XMLMethod)
+ public bool InformRegionOfPrimCrossing(ulong regionHandle, UUID primID, string objData, int XMLMethod)
{
if (m_regionListeners.ContainsKey(regionHandle))
{
@@ -355,7 +355,7 @@ namespace OpenSim.Region.Communications.Local
///
///
///
- public bool ExpectAvatarCrossing(ulong regionHandle, LLUUID agentID, LLVector3 position, bool isFlying)
+ public bool ExpectAvatarCrossing(ulong regionHandle, UUID agentID, Vector3 position, bool isFlying)
{
if (m_regionListeners.ContainsKey(regionHandle))
{
@@ -366,7 +366,7 @@ namespace OpenSim.Region.Communications.Local
return false;
}
- public bool ExpectPrimCrossing(ulong regionHandle, LLUUID primID, LLVector3 position, bool isPhysical)
+ public bool ExpectPrimCrossing(ulong regionHandle, UUID primID, Vector3 position, bool isPhysical)
{
if (m_regionListeners.ContainsKey(regionHandle))
{
@@ -376,7 +376,7 @@ namespace OpenSim.Region.Communications.Local
return false;
}
- public bool AcknowledgeAgentCrossed(ulong regionHandle, LLUUID agentId)
+ public bool AcknowledgeAgentCrossed(ulong regionHandle, UUID agentId)
{
if (m_regionListeners.ContainsKey(regionHandle))
{
@@ -385,7 +385,7 @@ namespace OpenSim.Region.Communications.Local
return false;
}
- public bool AcknowledgePrimCrossed(ulong regionHandle, LLUUID primID)
+ public bool AcknowledgePrimCrossed(ulong regionHandle, UUID primID)
{
if (m_regionListeners.ContainsKey(regionHandle))
{
@@ -430,7 +430,7 @@ namespace OpenSim.Region.Communications.Local
}
}
- public void TriggerLogOffUser(ulong regionHandle, LLUUID agentID, LLUUID RegionSecret, string message)
+ public void TriggerLogOffUser(ulong regionHandle, UUID agentID, UUID RegionSecret, string message)
{
if (m_regionListeners.ContainsKey(regionHandle))
{
@@ -440,7 +440,7 @@ namespace OpenSim.Region.Communications.Local
}
}
- public void TriggerExpectPrim(ulong regionHandle, LLUUID primID, string objData, int XMLMethod)
+ public void TriggerExpectPrim(ulong regionHandle, UUID primID, string objData, int XMLMethod)
{
if (m_regionListeners.ContainsKey(regionHandle))
{
@@ -461,7 +461,7 @@ namespace OpenSim.Region.Communications.Local
}
}
- public bool TriggerExpectAvatarCrossing(ulong regionHandle, LLUUID agentID, LLVector3 position, bool isFlying)
+ public bool TriggerExpectAvatarCrossing(ulong regionHandle, UUID agentID, Vector3 position, bool isFlying)
{
if (m_regionListeners.ContainsKey(regionHandle))
{
@@ -472,7 +472,7 @@ namespace OpenSim.Region.Communications.Local
return false;
}
- public bool TriggerExpectPrimCrossing(ulong regionHandle, LLUUID primID, LLVector3 position, bool isPhysical)
+ public bool TriggerExpectPrimCrossing(ulong regionHandle, UUID primID, Vector3 position, bool isPhysical)
{
if (m_regionListeners.ContainsKey(regionHandle))
{
diff --git a/OpenSim/Region/Communications/Local/LocalInventoryService.cs b/OpenSim/Region/Communications/Local/LocalInventoryService.cs
index 1d8ea53..5cb33cc 100644
--- a/OpenSim/Region/Communications/Local/LocalInventoryService.cs
+++ b/OpenSim/Region/Communications/Local/LocalInventoryService.cs
@@ -27,7 +27,7 @@
using System.Collections.Generic;
using System.Reflection;
-using libsecondlife;
+using OpenMetaverse;
using log4net;
using OpenSim.Framework;
using OpenSim.Framework.Communications;
@@ -44,7 +44,7 @@ namespace OpenSim.Region.Communications.Local
private static readonly ILog m_log
= LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
- public override void RequestInventoryForUser(LLUUID userID, InventoryReceiptCallback callback)
+ public override void RequestInventoryForUser(UUID userID, InventoryReceiptCallback callback)
{
m_log.InfoFormat("[LOCAL INVENTORY SERVICE]: Requesting inventory for user {0}", userID);
@@ -60,7 +60,7 @@ namespace OpenSim.Region.Communications.Local
// Need to retrieve the root folder on the first pass
foreach (InventoryFolderBase folder in skeletonFolders)
{
- if (folder.ParentID == LLUUID.Zero)
+ if (folder.ParentID == UUID.Zero)
{
rootFolder = new InventoryFolderImpl(folder);
folders.Add(rootFolder);
@@ -88,7 +88,7 @@ namespace OpenSim.Region.Communications.Local
callback(folders, items);
}
- public override bool HasInventoryForUser(LLUUID userID)
+ public override bool HasInventoryForUser(UUID userID)
{
InventoryFolderBase root = RequestRootFolder(userID);
if (root == null)
diff --git a/OpenSim/Region/Communications/Local/LocalLoginService.cs b/OpenSim/Region/Communications/Local/LocalLoginService.cs
index aeb9ae0..518ba09 100644
--- a/OpenSim/Region/Communications/Local/LocalLoginService.cs
+++ b/OpenSim/Region/Communications/Local/LocalLoginService.cs
@@ -30,7 +30,7 @@ using System.Collections;
using System.Collections.Generic;
using System.Reflection;
using System.Text.RegularExpressions;
-using libsecondlife;
+using OpenMetaverse;
using log4net;
using OpenSim.Framework;
using OpenSim.Framework.Communications;
@@ -246,9 +246,9 @@ namespace OpenSim.Region.Communications.Local
_login.SecureSession = response.SecureSessionID;
_login.CircuitCode = (uint) response.CircuitCode;
if (specificStartLocation)
- _login.StartPos = new LLVector3(locX, locY, locZ);
+ _login.StartPos = new Vector3(locX, locY, locZ);
else
- _login.StartPos = new LLVector3(128, 128, 128);
+ _login.StartPos = new Vector3(128, 128, 128);
_login.CapsPath = capsPath;
m_log.InfoFormat(
@@ -282,7 +282,7 @@ namespace OpenSim.Region.Communications.Local
}
// See LoginService
- protected override InventoryData GetInventorySkeleton(LLUUID userID)
+ protected override InventoryData GetInventorySkeleton(UUID userID)
{
List folders = m_Parent.InterServiceInventoryService.GetInventorySkeleton(userID);
@@ -293,12 +293,12 @@ namespace OpenSim.Region.Communications.Local
folders = m_Parent.InterServiceInventoryService.GetInventorySkeleton(userID);
}
- LLUUID rootID = LLUUID.Zero;
+ UUID rootID = UUID.Zero;
ArrayList AgentInventoryArray = new ArrayList();
Hashtable TempHash;
foreach (InventoryFolderBase InvFolder in folders)
{
- if (InvFolder.ParentID == LLUUID.Zero)
+ if (InvFolder.ParentID == UUID.Zero)
{
rootID = InvFolder.ID;
}
diff --git a/OpenSim/Region/Communications/Local/LocalUserServices.cs b/OpenSim/Region/Communications/Local/LocalUserServices.cs
index 2ee7981..c0887df 100644
--- a/OpenSim/Region/Communications/Local/LocalUserServices.cs
+++ b/OpenSim/Region/Communications/Local/LocalUserServices.cs
@@ -26,7 +26,7 @@
*/
using System;
-using libsecondlife;
+using OpenMetaverse;
using OpenSim.Framework;
using OpenSim.Framework.Communications;
@@ -88,7 +88,7 @@ namespace OpenSim.Region.Communications.Local
return profile;
}
- public override UserProfileData SetupMasterUser(LLUUID uuid)
+ public override UserProfileData SetupMasterUser(UUID uuid)
{
UserProfileData data = GetUserProfile(uuid);
if (data == null)
diff --git a/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs b/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs
index da2e4a2..1dd4219 100644
--- a/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs
+++ b/OpenSim/Region/Communications/OGS1/OGS1GridServices.cs
@@ -37,7 +37,7 @@ using System.Runtime.Remoting.Channels;
using System.Runtime.Remoting.Channels.Tcp;
using System.Security.Authentication;
using System.Threading;
-using libsecondlife;
+using OpenMetaverse;
using log4net;
using Nwc.XmlRpc;
using OpenSim.Framework;
@@ -125,7 +125,7 @@ namespace OpenSim.Region.Communications.OGS1
GridParams["server_uri"] = regionInfo.ServerURI;
GridParams["region_secret"] = regionInfo.regionSecret;
- if (regionInfo.MasterAvatarAssignedUUID != LLUUID.Zero)
+ if (regionInfo.MasterAvatarAssignedUUID != UUID.Zero)
GridParams["master_avatar_uuid"] = regionInfo.MasterAvatarAssignedUUID.ToString();
else
GridParams["master_avatar_uuid"] = regionInfo.EstateSettings.EstateOwner.ToString();
@@ -275,7 +275,7 @@ namespace OpenSim.Region.Communications.OGS1
sri.HttpPort = Convert.ToUInt32(neighbourData["http_port"]);
}
- sri.RegionID = new LLUUID((string) neighbourData["uuid"]);
+ sri.RegionID = new UUID((string) neighbourData["uuid"]);
neighbours.Add(sri);
}
@@ -294,7 +294,7 @@ namespace OpenSim.Region.Communications.OGS1
/// FIXME: Might be nicer to return a proper exception here since we could inform the client more about the
/// nature of the faiulre.
///
- public RegionInfo RequestNeighbourInfo(LLUUID Region_UUID)
+ public RegionInfo RequestNeighbourInfo(UUID Region_UUID)
{
RegionInfo regionInfo;
Hashtable requestData = new Hashtable();
@@ -344,7 +344,7 @@ namespace OpenSim.Region.Communications.OGS1
regionInfo.HttpPort = Convert.ToUInt32((string) responseData["http_port"]);
}
- regionInfo.RegionID = new LLUUID((string) responseData["region_UUID"]);
+ regionInfo.RegionID = new UUID((string) responseData["region_UUID"]);
regionInfo.RegionName = (string) responseData["region_name"];
if (requestData.ContainsKey("regionHandle"))
@@ -407,7 +407,7 @@ namespace OpenSim.Region.Communications.OGS1
regionInfo.HttpPort = Convert.ToUInt32((string) responseData["http_port"]);
}
- regionInfo.RegionID = new LLUUID((string) responseData["region_UUID"]);
+ regionInfo.RegionID = new UUID((string) responseData["region_UUID"]);
regionInfo.RegionName = (string) responseData["region_name"];
lock (m_remoteRegionInfoCache)
@@ -475,7 +475,7 @@ namespace OpenSim.Region.Communications.OGS1
regionInfo.HttpPort = Convert.ToUInt32((string) responseData["http_port"]);
}
- regionInfo.RegionID = new LLUUID((string) responseData["region_UUID"]);
+ regionInfo.RegionID = new UUID((string) responseData["region_UUID"]);
regionInfo.RegionName = (string) responseData["region_name"];
if (!m_remoteRegionInfoCache.ContainsKey(regionInfo.RegionHandle))
@@ -533,7 +533,7 @@ namespace OpenSim.Region.Communications.OGS1
neighbour.Access = Convert.ToByte(n["access"]);
neighbour.RegionFlags = Convert.ToUInt32(n["region-flags"]);
neighbour.WaterHeight = Convert.ToByte(n["water-height"]);
- neighbour.MapImageId = new LLUUID((string) n["map-image-id"]);
+ neighbour.MapImageId = new UUID((string) n["map-image-id"]);
neighbours.Add(neighbour);
}
@@ -606,11 +606,11 @@ namespace OpenSim.Region.Communications.OGS1
m_log.Debug("[CONNECTION DEBUGGING]: Expect User called, starting agent setup ... ");
Hashtable requestData = (Hashtable) request.Params[0];
AgentCircuitData agentData = new AgentCircuitData();
- agentData.SessionID = new LLUUID((string) requestData["session_id"]);
- agentData.SecureSessionID = new LLUUID((string) requestData["secure_session_id"]);
+ agentData.SessionID = new UUID((string) requestData["session_id"]);
+ agentData.SecureSessionID = new UUID((string) requestData["secure_session_id"]);
agentData.firstname = (string) requestData["firstname"];
agentData.lastname = (string) requestData["lastname"];
- agentData.AgentID = new LLUUID((string) requestData["agent_id"]);
+ agentData.AgentID = new UUID((string) requestData["agent_id"]);
agentData.circuitcode = Convert.ToUInt32(requestData["circuit_code"]);
agentData.CapsPath = (string) requestData["caps_path"];
@@ -623,7 +623,7 @@ namespace OpenSim.Region.Communications.OGS1
{
m_log.Debug("[CONNECTION DEBUGGING]: Main agent detected");
agentData.startpos =
- new LLVector3((float)Convert.ToDecimal((string)requestData["startpos_x"]),
+ new Vector3((float)Convert.ToDecimal((string)requestData["startpos_x"]),
(float)Convert.ToDecimal((string)requestData["startpos_y"]),
(float)Convert.ToDecimal((string)requestData["startpos_z"]));
agentData.child = false;
@@ -684,10 +684,10 @@ namespace OpenSim.Region.Communications.OGS1
m_log.Debug("[CONNECTION DEBUGGING]: LogOff User Called ");
Hashtable requestData = (Hashtable)request.Params[0];
string message = (string)requestData["message"];
- LLUUID agentID = LLUUID.Zero;
- LLUUID RegionSecret = LLUUID.Zero;
- Helpers.TryParse((string)requestData["agent_id"], out agentID);
- Helpers.TryParse((string)requestData["region_secret"], out RegionSecret);
+ UUID agentID = UUID.Zero;
+ UUID RegionSecret = UUID.Zero;
+ UUID.TryParse((string)requestData["agent_id"], out agentID);
+ UUID.TryParse((string)requestData["region_secret"], out RegionSecret);
ulong regionHandle = Convert.ToUInt64((string)requestData["regionhandle"]);
@@ -1072,7 +1072,7 @@ namespace OpenSim.Region.Communications.OGS1
///
///
///
- public bool InformRegionOfPrimCrossing(ulong regionHandle, LLUUID primID, string objData, int XMLMethod)
+ public bool InformRegionOfPrimCrossing(ulong regionHandle, UUID primID, string objData, int XMLMethod)
{
int failures = 0;
lock (m_deadRegionCache)
@@ -1106,7 +1106,7 @@ namespace OpenSim.Region.Communications.OGS1
if (remObject != null)
{
- retValue = remObject.InformRegionOfPrimCrossing(regionHandle, primID.UUID, objData, XMLMethod);
+ retValue = remObject.InformRegionOfPrimCrossing(regionHandle, primID.Guid, objData, XMLMethod);
}
else
{
@@ -1168,7 +1168,7 @@ namespace OpenSim.Region.Communications.OGS1
///
///
///
- public bool ExpectAvatarCrossing(ulong regionHandle, LLUUID agentID, LLVector3 position, bool isFlying)
+ public bool ExpectAvatarCrossing(ulong regionHandle, UUID agentID, Vector3 position, bool isFlying)
{
RegionInfo[] regions = m_regionsOnInstance.ToArray();
bool banned = false;
@@ -1212,7 +1212,7 @@ namespace OpenSim.Region.Communications.OGS1
if (remObject != null)
{
retValue =
- remObject.ExpectAvatarCrossing(regionHandle, agentID.UUID, new sLLVector3(position),
+ remObject.ExpectAvatarCrossing(regionHandle, agentID.Guid, position,
isFlying);
}
else
@@ -1246,7 +1246,7 @@ namespace OpenSim.Region.Communications.OGS1
}
}
- public bool ExpectPrimCrossing(ulong regionHandle, LLUUID agentID, LLVector3 position, bool isPhysical)
+ public bool ExpectPrimCrossing(ulong regionHandle, UUID agentID, Vector3 position, bool isPhysical)
{
RegionInfo regInfo = null;
try
@@ -1269,7 +1269,7 @@ namespace OpenSim.Region.Communications.OGS1
if (remObject != null)
{
retValue =
- remObject.ExpectAvatarCrossing(regionHandle, agentID.UUID, new sLLVector3(position),
+ remObject.ExpectAvatarCrossing(regionHandle, agentID.Guid, position,
isPhysical);
}
else
@@ -1322,7 +1322,7 @@ namespace OpenSim.Region.Communications.OGS1
}
}
- public bool TellRegionToCloseChildConnection(ulong regionHandle, LLUUID agentID)
+ public bool TellRegionToCloseChildConnection(ulong regionHandle, UUID agentID)
{
RegionInfo regInfo = null;
try
@@ -1345,7 +1345,7 @@ namespace OpenSim.Region.Communications.OGS1
if (remObject != null)
{
// retValue =
- remObject.TellRegionToCloseChildConnection(regionHandle, agentID.UUID);
+ remObject.TellRegionToCloseChildConnection(regionHandle, agentID.Guid);
}
else
{
@@ -1421,12 +1421,12 @@ namespace OpenSim.Region.Communications.OGS1
}
}
- public bool AcknowledgeAgentCrossed(ulong regionHandle, LLUUID agentId)
+ public bool AcknowledgeAgentCrossed(ulong regionHandle, UUID agentId)
{
return m_localBackend.AcknowledgeAgentCrossed(regionHandle, agentId);
}
- public bool AcknowledgePrimCrossed(ulong regionHandle, LLUUID primId)
+ public bool AcknowledgePrimCrossed(ulong regionHandle, UUID primId)
{
return m_localBackend.AcknowledgePrimCrossed(regionHandle, primId);
}
@@ -1509,7 +1509,7 @@ namespace OpenSim.Region.Communications.OGS1
///
///
///
- public bool IncomingPrim(ulong regionHandle, LLUUID primID, string objData, int XMLMethod)
+ public bool IncomingPrim(ulong regionHandle, UUID primID, string objData, int XMLMethod)
{
// Is this necessary?
try
@@ -1532,7 +1532,7 @@ namespace OpenSim.Region.Communications.OGS1
///
///
///
- public bool TriggerExpectAvatarCrossing(ulong regionHandle, LLUUID agentID, LLVector3 position, bool isFlying)
+ public bool TriggerExpectAvatarCrossing(ulong regionHandle, UUID agentID, Vector3 position, bool isFlying)
{
try
{
@@ -1545,7 +1545,7 @@ namespace OpenSim.Region.Communications.OGS1
}
}
- public bool TriggerExpectPrimCrossing(ulong regionHandle, LLUUID agentID, LLVector3 position, bool isPhysical)
+ public bool TriggerExpectPrimCrossing(ulong regionHandle, UUID agentID, Vector3 position, bool isPhysical)
{
try
{
@@ -1558,7 +1558,7 @@ namespace OpenSim.Region.Communications.OGS1
}
}
- public bool TriggerTellRegionToCloseChildConnection(ulong regionHandle, LLUUID agentID)
+ public bool TriggerTellRegionToCloseChildConnection(ulong regionHandle, UUID agentID)
{
try
{
@@ -1692,18 +1692,18 @@ namespace OpenSim.Region.Communications.OGS1
hash = (Hashtable)response.Value;
try {
landData = new LandData();
- landData.AABBMax = LLVector3.Parse((string)hash["AABBMax"]);
- landData.AABBMin = LLVector3.Parse((string)hash["AABBMin"]);
+ landData.AABBMax = Vector3.Parse((string)hash["AABBMax"]);
+ landData.AABBMin = Vector3.Parse((string)hash["AABBMin"]);
landData.Area = Convert.ToInt32(hash["Area"]);
landData.AuctionID = Convert.ToUInt32(hash["AuctionID"]);
landData.Description = (string)hash["Description"];
landData.Flags = Convert.ToUInt32(hash["Flags"]);
- landData.GlobalID = new LLUUID((string)hash["GlobalID"]);
+ landData.GlobalID = new UUID((string)hash["GlobalID"]);
landData.Name = (string)hash["Name"];
- landData.OwnerID = new LLUUID((string)hash["OwnerID"]);
+ landData.OwnerID = new UUID((string)hash["OwnerID"]);
landData.SalePrice = Convert.ToInt32(hash["SalePrice"]);
- landData.SnapshotID = new LLUUID((string)hash["SnapshotID"]);
- landData.UserLocation = LLVector3.Parse((string)hash["UserLocation"]);
+ landData.SnapshotID = new UUID((string)hash["SnapshotID"]);
+ landData.UserLocation = Vector3.Parse((string)hash["UserLocation"]);
m_log.DebugFormat("[OGS1 GRID SERVICES] Got land data for parcel {0}", landData.Name);
}
catch (Exception e)
@@ -1739,7 +1739,7 @@ namespace OpenSim.Region.Communications.OGS1
if (landData != null)
{
// for now, only push out the data we need for answering a ParcelInfoReqeust
- // FIXME: these Replace calls are necessary as LLVector3.Parse can't parse vectors with spaces in them. Can be removed as soon as we switch to a newer version
+ // FIXME: these Replace calls are necessary as Vector3.Parse can't parse vectors with spaces in them. Can be removed as soon as we switch to a newer version
hash["AABBMax"] = landData.AABBMax.ToString().Replace(" ", "");
hash["AABBMin"] = landData.AABBMin.ToString().Replace(" ", "");
hash["Area"] = landData.Area.ToString();
diff --git a/OpenSim/Region/Communications/OGS1/OGS1InterSimComms.cs b/OpenSim/Region/Communications/OGS1/OGS1InterSimComms.cs
index 8285fb1..1f0c067 100644
--- a/OpenSim/Region/Communications/OGS1/OGS1InterSimComms.cs
+++ b/OpenSim/Region/Communications/OGS1/OGS1InterSimComms.cs
@@ -28,7 +28,7 @@
using System;
using System.Reflection;
using System.Runtime.Remoting;
-using libsecondlife;
+using OpenMetaverse;
using log4net;
using OpenSim.Framework;
@@ -36,17 +36,17 @@ namespace OpenSim.Region.Communications.OGS1
{
public delegate bool InformRegionChild(ulong regionHandle, AgentCircuitData agentData);
- public delegate bool ExpectArrival(ulong regionHandle, LLUUID agentID, LLVector3 position, bool isFlying);
+ public delegate bool ExpectArrival(ulong regionHandle, UUID agentID, Vector3 position, bool isFlying);
- public delegate bool InformRegionPrimGroup(ulong regionHandle, LLUUID primID, LLVector3 Positon, bool isPhysical);
+ public delegate bool InformRegionPrimGroup(ulong regionHandle, UUID primID, Vector3 Positon, bool isPhysical);
- public delegate bool PrimGroupArrival(ulong regionHandle, LLUUID primID, string objData, int XMLMethod);
+ public delegate bool PrimGroupArrival(ulong regionHandle, UUID primID, string objData, int XMLMethod);
public delegate bool RegionUp(RegionUpData region, ulong regionhandle);
public delegate bool ChildAgentUpdate(ulong regionHandle, ChildAgentDataUpdate childUpdate);
- public delegate bool TellRegionToCloseChildConnection(ulong regionHandle, LLUUID agentID);
+ public delegate bool TellRegionToCloseChildConnection(ulong regionHandle, UUID agentID);
public sealed class InterRegionSingleton
{
@@ -112,7 +112,7 @@ namespace OpenSim.Region.Communications.OGS1
return false;
}
- public bool ExpectAvatarCrossing(ulong regionHandle, LLUUID agentID, LLVector3 position, bool isFlying)
+ public bool ExpectAvatarCrossing(ulong regionHandle, UUID agentID, Vector3 position, bool isFlying)
{
handlerArrival = OnArrival;
if (handlerArrival != null)
@@ -122,7 +122,7 @@ namespace OpenSim.Region.Communications.OGS1
return false;
}
- public bool InformRegionPrim(ulong regionHandle, LLUUID primID, LLVector3 position, bool isPhysical)
+ public bool InformRegionPrim(ulong regionHandle, UUID primID, Vector3 position, bool isPhysical)
{
handlerPrimGroupNear = OnPrimGroupNear;
if (handlerPrimGroupNear != null)
@@ -132,7 +132,7 @@ namespace OpenSim.Region.Communications.OGS1
return false;
}
- public bool ExpectPrimCrossing(ulong regionHandle, LLUUID primID, string objData, int XMLMethod)
+ public bool ExpectPrimCrossing(ulong regionHandle, UUID primID, string objData, int XMLMethod)
{
handlerPrimGroupArrival = OnPrimGroupArrival;
if (handlerPrimGroupArrival != null)
@@ -142,7 +142,7 @@ namespace OpenSim.Region.Communications.OGS1
return false;
}
- public bool TellRegionToCloseChildConnection(ulong regionHandle, LLUUID agentID)
+ public bool TellRegionToCloseChildConnection(ulong regionHandle, UUID agentID)
{
handlerTellRegionToCloseChildConnection = OnTellRegionToCloseChildConnection;
if (handlerTellRegionToCloseChildConnection != null)
@@ -202,13 +202,13 @@ namespace OpenSim.Region.Communications.OGS1
}
- public bool ExpectAvatarCrossing(ulong regionHandle, Guid agentID, sLLVector3 position, bool isFlying)
+ public bool ExpectAvatarCrossing(ulong regionHandle, Guid agentID, Vector3 position, bool isFlying)
{
try
{
return
- InterRegionSingleton.Instance.ExpectAvatarCrossing(regionHandle, new LLUUID(agentID),
- new LLVector3(position.x, position.y, position.z),
+ InterRegionSingleton.Instance.ExpectAvatarCrossing(regionHandle, new UUID(agentID),
+ position,
isFlying);
}
catch (RemotingException e)
@@ -218,13 +218,13 @@ namespace OpenSim.Region.Communications.OGS1
}
}
- public bool InformRegionPrim(ulong regionHandle, Guid SceneObjectGroupID, sLLVector3 position, bool isPhysical)
+ public bool InformRegionPrim(ulong regionHandle, Guid SceneObjectGroupID, Vector3 position, bool isPhysical)
{
try
{
return
- InterRegionSingleton.Instance.InformRegionPrim(regionHandle, new LLUUID(SceneObjectGroupID),
- new LLVector3(position.x, position.y, position.z),
+ InterRegionSingleton.Instance.InformRegionPrim(regionHandle, new UUID(SceneObjectGroupID),
+ position,
isPhysical);
}
catch (RemotingException e)
@@ -238,7 +238,7 @@ namespace OpenSim.Region.Communications.OGS1
{
try
{
- return InterRegionSingleton.Instance.ExpectPrimCrossing(regionHandle, new LLUUID(primID), objData, XMLMethod);
+ return InterRegionSingleton.Instance.ExpectPrimCrossing(regionHandle, new UUID(primID), objData, XMLMethod);
}
catch (RemotingException e)
{
@@ -251,7 +251,7 @@ namespace OpenSim.Region.Communications.OGS1
{
try
{
- return InterRegionSingleton.Instance.TellRegionToCloseChildConnection(regionHandle, new LLUUID(agentID));
+ return InterRegionSingleton.Instance.TellRegionToCloseChildConnection(regionHandle, new UUID(agentID));
}
catch (RemotingException)
{
diff --git a/OpenSim/Region/Communications/OGS1/OGS1InventoryService.cs b/OpenSim/Region/Communications/OGS1/OGS1InventoryService.cs
index 2828928..b9e8394 100644
--- a/OpenSim/Region/Communications/OGS1/OGS1InventoryService.cs
+++ b/OpenSim/Region/Communications/OGS1/OGS1InventoryService.cs
@@ -29,7 +29,7 @@ using System;
using System.Collections.Generic;
using System.Net;
using System.Reflection;
-using libsecondlife;
+using OpenMetaverse;
using log4net;
using OpenSim.Framework;
using OpenSim.Framework.Communications;
@@ -46,8 +46,8 @@ namespace OpenSim.Region.Communications.OGS1
private string _inventoryServerUrl;
private Uri m_Uri;
- private Dictionary m_RequestingInventory
- = new Dictionary();
+ private Dictionary m_RequestingInventory
+ = new Dictionary();
public OGS1InventoryService(string inventoryServerUrl)
{
@@ -67,7 +67,7 @@ namespace OpenSim.Region.Communications.OGS1
///
///
///
- public void RequestInventoryForUser(LLUUID userID, InventoryReceiptCallback callback)
+ public void RequestInventoryForUser(UUID userID, InventoryReceiptCallback callback)
{
if (!m_RequestingInventory.ContainsKey(userID))
{
@@ -83,7 +83,7 @@ namespace OpenSim.Region.Communications.OGS1
= new RestObjectPosterResponse();
requester.ResponseCallback = InventoryResponse;
- requester.BeginPostObject(_inventoryServerUrl + "/GetInventory/", userID.UUID);
+ requester.BeginPostObject(_inventoryServerUrl + "/GetInventory/", userID.Guid);
}
catch (WebException e)
{
@@ -106,7 +106,7 @@ namespace OpenSim.Region.Communications.OGS1
///
private void InventoryResponse(InventoryCollection response)
{
- LLUUID userID = response.UserID;
+ UUID userID = response.UserID;
if (m_RequestingInventory.ContainsKey(userID))
{
m_log.InfoFormat("[OGS1 INVENTORY SERVICE]: " +
@@ -121,7 +121,7 @@ namespace OpenSim.Region.Communications.OGS1
foreach (InventoryFolderBase folder in response.Folders)
{
- if (folder.ParentID == LLUUID.Zero)
+ if (folder.ParentID == UUID.Zero)
{
rootFolder = new InventoryFolderImpl(folder);
folders.Add(rootFolder);
@@ -296,12 +296,12 @@ namespace OpenSim.Region.Communications.OGS1
return false;
}
- public bool HasInventoryForUser(LLUUID userID)
+ public bool HasInventoryForUser(UUID userID)
{
return false;
}
- public InventoryFolderBase RequestRootFolder(LLUUID userID)
+ public InventoryFolderBase RequestRootFolder(UUID userID)
{
return null;
}
diff --git a/OpenSim/Region/Communications/OGS1/OGS1SecureInventoryService.cs b/OpenSim/Region/Communications/OGS1/OGS1SecureInventoryService.cs
index 26521ab..c690def 100644
--- a/OpenSim/Region/Communications/OGS1/OGS1SecureInventoryService.cs
+++ b/OpenSim/Region/Communications/OGS1/OGS1SecureInventoryService.cs
@@ -29,7 +29,7 @@ using System;
using System.Collections.Generic;
using System.Net;
using System.Reflection;
-using libsecondlife;
+using OpenMetaverse;
using log4net;
using OpenSim.Framework;
using OpenSim.Framework.Communications;
@@ -46,8 +46,8 @@ namespace OpenSim.Region.Communications.OGS1
private string _inventoryServerUrl;
private Uri m_Uri;
- private Dictionary m_RequestingInventory
- = new Dictionary();
+ private Dictionary m_RequestingInventory
+ = new Dictionary();
public OGS1SecureInventoryService(string inventoryServerUrl)
{
@@ -67,7 +67,7 @@ namespace OpenSim.Region.Communications.OGS1
///
///
///
- public void RequestInventoryForUser(LLUUID userID, LLUUID session_id, InventoryReceiptCallback callback)
+ public void RequestInventoryForUser(UUID userID, UUID session_id, InventoryReceiptCallback callback)
{
if (!m_RequestingInventory.ContainsKey(userID))
{
@@ -83,7 +83,7 @@ namespace OpenSim.Region.Communications.OGS1
= new RestSessionObjectPosterResponse();
requester.ResponseCallback = InventoryResponse;
- requester.BeginPostObject(_inventoryServerUrl + "/GetInventory/", userID.UUID, session_id.ToString(), userID.ToString());
+ requester.BeginPostObject(_inventoryServerUrl + "/GetInventory/", userID.Guid, session_id.ToString(), userID.ToString());
}
catch (WebException e)
{
@@ -106,7 +106,7 @@ namespace OpenSim.Region.Communications.OGS1
///
private void InventoryResponse(InventoryCollection response)
{
- LLUUID userID = response.UserID;
+ UUID userID = response.UserID;
if (m_RequestingInventory.ContainsKey(userID))
{
m_log.InfoFormat("[OGS1 INVENTORY SERVICE]: " +
@@ -121,7 +121,7 @@ namespace OpenSim.Region.Communications.OGS1
foreach (InventoryFolderBase folder in response.Folders)
{
- if (folder.ParentID == LLUUID.Zero)
+ if (folder.ParentID == UUID.Zero)
{
rootFolder = new InventoryFolderImpl(folder);
folders.Add(rootFolder);
@@ -166,7 +166,7 @@ namespace OpenSim.Region.Communications.OGS1
///
///
///
- public bool AddFolder(InventoryFolderBase folder, LLUUID session_id)
+ public bool AddFolder(InventoryFolderBase folder, UUID session_id)
{
try
{
@@ -186,7 +186,7 @@ namespace OpenSim.Region.Communications.OGS1
///
///
///
- public bool UpdateFolder(InventoryFolderBase folder, LLUUID session_id)
+ public bool UpdateFolder(InventoryFolderBase folder, UUID session_id)
{
try
{
@@ -206,7 +206,7 @@ namespace OpenSim.Region.Communications.OGS1
///
///
///
- public bool MoveFolder(InventoryFolderBase folder, LLUUID session_id)
+ public bool MoveFolder(InventoryFolderBase folder, UUID session_id)
{
try
{
@@ -225,7 +225,7 @@ namespace OpenSim.Region.Communications.OGS1
///
///
///
- public bool PurgeFolder(InventoryFolderBase folder, LLUUID session_id)
+ public bool PurgeFolder(InventoryFolderBase folder, UUID session_id)
{
try
{
@@ -244,7 +244,7 @@ namespace OpenSim.Region.Communications.OGS1
///
///
///
- public bool AddItem(InventoryItemBase item, LLUUID session_id)
+ public bool AddItem(InventoryItemBase item, UUID session_id)
{
try
{
@@ -261,7 +261,7 @@ namespace OpenSim.Region.Communications.OGS1
}
// TODO: this is a temporary workaround, the UpdateInventoryItem method need to be implemented
- public bool UpdateItem(InventoryItemBase item, LLUUID session_id)
+ public bool UpdateItem(InventoryItemBase item, UUID session_id)
{
try
{
@@ -280,7 +280,7 @@ namespace OpenSim.Region.Communications.OGS1
///
///
///
- public bool DeleteItem(InventoryItemBase item, LLUUID session_id)
+ public bool DeleteItem(InventoryItemBase item, UUID session_id)
{
try
{
@@ -296,12 +296,12 @@ namespace OpenSim.Region.Communications.OGS1
return false;
}
- public bool HasInventoryForUser(LLUUID userID)
+ public bool HasInventoryForUser(UUID userID)
{
return false;
}
- public InventoryFolderBase RequestRootFolder(LLUUID userID)
+ public InventoryFolderBase RequestRootFolder(UUID userID)
{
return null;
}
diff --git a/OpenSim/Region/Communications/OGS1/OGS1UserServices.cs b/OpenSim/Region/Communications/OGS1/OGS1UserServices.cs
index 2223aeb..317be13 100644
--- a/OpenSim/Region/Communications/OGS1/OGS1UserServices.cs
+++ b/OpenSim/Region/Communications/OGS1/OGS1UserServices.cs
@@ -31,7 +31,7 @@ using System.Collections.Generic;
using System.Net;
using System.Reflection;
using System.Text.RegularExpressions;
-using libsecondlife;
+using OpenMetaverse;
using log4net;
using Nwc.XmlRpc;
using OpenSim.Framework;
@@ -64,27 +64,27 @@ namespace OpenSim.Region.Communications.OGS1
UserProfileData userData = new UserProfileData();
userData.FirstName = (string) data["firstname"];
userData.SurName = (string) data["lastname"];
- userData.ID = new LLUUID((string) data["uuid"]);
+ userData.ID = new UUID((string) data["uuid"]);
userData.UserInventoryURI = (string) data["server_inventory"];
userData.UserAssetURI = (string) data["server_asset"];
userData.FirstLifeAboutText = (string) data["profile_firstlife_about"];
- userData.FirstLifeImage = new LLUUID((string) data["profile_firstlife_image"]);
+ userData.FirstLifeImage = new UUID((string) data["profile_firstlife_image"]);
userData.CanDoMask = Convert.ToUInt32((string) data["profile_can_do"]);
userData.WantDoMask = Convert.ToUInt32(data["profile_want_do"]);
userData.AboutText = (string)data["profile_about"];
- userData.Image = new LLUUID((string) data["profile_image"]);
+ userData.Image = new UUID((string) data["profile_image"]);
userData.LastLogin = Convert.ToInt32((string) data["profile_lastlogin"]);
userData.HomeRegion = Convert.ToUInt64((string) data["home_region"]);
if (data.Contains("home_region_id"))
- userData.HomeRegionID = new LLUUID((string)data["home_region_id"]);
+ userData.HomeRegionID = new UUID((string)data["home_region_id"]);
else
- userData.HomeRegionID = LLUUID.Zero;
+ userData.HomeRegionID = UUID.Zero;
userData.HomeLocation =
- new LLVector3((float) Convert.ToDecimal((string) data["home_coordinates_x"]),
+ new Vector3((float) Convert.ToDecimal((string) data["home_coordinates_x"]),
(float) Convert.ToDecimal((string) data["home_coordinates_y"]),
(float) Convert.ToDecimal((string) data["home_coordinates_z"]));
userData.HomeLookAt =
- new LLVector3((float) Convert.ToDecimal((string) data["home_look_x"]),
+ new Vector3((float) Convert.ToDecimal((string) data["home_look_x"]),
(float) Convert.ToDecimal((string) data["home_look_y"]),
(float) Convert.ToDecimal((string) data["home_look_z"]));
if (data.Contains("user_flags"))
@@ -100,9 +100,9 @@ namespace OpenSim.Region.Communications.OGS1
userData.CustomType = "";
if (data.Contains("partner"))
- userData.Partner = new LLUUID((string) data["partner"]);
+ userData.Partner = new UUID((string) data["partner"]);
else
- userData.Partner = LLUUID.Zero;
+ userData.Partner = UUID.Zero;
return userData;
}
@@ -112,7 +112,7 @@ namespace OpenSim.Region.Communications.OGS1
///
///
/// null if the request fails
- public UserAgentData GetAgentByUUID(LLUUID userId)
+ public UserAgentData GetAgentByUUID(UUID userId)
{
try
{
@@ -131,11 +131,11 @@ namespace OpenSim.Region.Communications.OGS1
"): " + (string)respData["error_desc"]);
return null;
}
- LLUUID sessionid = LLUUID.Zero;
+ UUID sessionid = UUID.Zero;
UserAgentData userAgent = new UserAgentData();
userAgent.Handle = Convert.ToUInt64((string)respData["handle"]);
- Helpers.TryParse((string)respData["sessionid"], out sessionid);
+ UUID.TryParse((string)respData["sessionid"], out sessionid);
userAgent.SessionID = sessionid;
if ((string)respData["agent_online"] == "TRUE")
@@ -183,17 +183,17 @@ namespace OpenSim.Region.Communications.OGS1
}
}
- public List ConvertXMLRPCDataToAvatarPickerList(LLUUID queryID, Hashtable data)
+ public List ConvertXMLRPCDataToAvatarPickerList(UUID queryID, Hashtable data)
{
List pickerlist = new List();
int pickercount = Convert.ToInt32((string) data["avcount"]);
- LLUUID respqueryID = new LLUUID((string) data["queryid"]);
+ UUID respqueryID = new UUID((string) data["queryid"]);
if (queryID == respqueryID)
{
for (int i = 0; i < pickercount; i++)
{
AvatarPickerAvatar apicker = new AvatarPickerAvatar();
- LLUUID avatarID = new LLUUID((string) data["avatarid" + i.ToString()]);
+ UUID avatarID = new UUID((string) data["avatarid" + i.ToString()]);
string firstname = (string) data["firstname" + i.ToString()];
string lastname = (string) data["lastname" + i.ToString()];
apicker.AvatarID = avatarID;
@@ -219,8 +219,8 @@ namespace OpenSim.Region.Communications.OGS1
{
FriendListItem buddylistitem = new FriendListItem();
- buddylistitem.FriendListOwner = new LLUUID((string)data["ownerID" + i.ToString()]);
- buddylistitem.Friend = new LLUUID((string)data["friendID" + i.ToString()]);
+ buddylistitem.FriendListOwner = new UUID((string)data["ownerID" + i.ToString()]);
+ buddylistitem.Friend = new UUID((string)data["friendID" + i.ToString()]);
buddylistitem.FriendListOwnerPerms = (uint)Convert.ToInt32((string)data["ownerPerms" + i.ToString()]);
buddylistitem.FriendPerms = (uint)Convert.ToInt32((string)data["friendPerms" + i.ToString()]);
@@ -239,11 +239,11 @@ namespace OpenSim.Region.Communications.OGS1
/// final position x
/// final position y
/// final position z
- public void LogOffUser(LLUUID userid, LLUUID regionid, ulong regionhandle, float posx, float posy, float posz)
+ public void LogOffUser(UUID userid, UUID regionid, ulong regionhandle, float posx, float posy, float posz)
{
Hashtable param = new Hashtable();
- param["avatar_uuid"] = userid.UUID.ToString();
- param["region_uuid"] = regionid.UUID.ToString();
+ param["avatar_uuid"] = userid.ToString();
+ param["region_uuid"] = regionid.ToString();
param["region_handle"] = regionhandle.ToString();
param["region_pos_x"] = posx.ToString();
param["region_pos_y"] = posy.ToString();
@@ -268,7 +268,7 @@ namespace OpenSim.Region.Communications.OGS1
return GetUserProfile(firstName + " " + lastName);
}
- public void UpdateUserCurrentRegion(LLUUID avatarid, LLUUID regionuuid, ulong regionhandle)
+ public void UpdateUserCurrentRegion(UUID avatarid, UUID regionuuid, ulong regionhandle)
{
Hashtable param = new Hashtable();
param.Add("avatar_id", avatarid.ToString());
@@ -320,7 +320,7 @@ namespace OpenSim.Region.Communications.OGS1
}
}
- public List GenerateAgentPickerRequestResponse(LLUUID queryID, string query)
+ public List GenerateAgentPickerRequestResponse(UUID queryID, string query)
{
List pickerlist = new List();
Regex objAlphaNumericPattern = new Regex("[^a-zA-Z0-9 ]");
@@ -379,7 +379,7 @@ namespace OpenSim.Region.Communications.OGS1
///
///
/// null if the request fails
- public UserProfileData GetUserProfile(LLUUID avatarID)
+ public UserProfileData GetUserProfile(UUID avatarID)
{
try
{
@@ -404,7 +404,7 @@ namespace OpenSim.Region.Communications.OGS1
}
- public void ClearUserAgent(LLUUID avatarID)
+ public void ClearUserAgent(UUID avatarID)
{
// TODO: implement
}
@@ -435,7 +435,7 @@ namespace OpenSim.Region.Communications.OGS1
///
///
///
- public UserProfileData SetupMasterUser(LLUUID uuid)
+ public UserProfileData SetupMasterUser(UUID uuid)
{
UserProfileData data = GetUserProfile(uuid);
@@ -448,7 +448,7 @@ namespace OpenSim.Region.Communications.OGS1
return data;
}
- public LLUUID AddUserProfile(string firstName, string lastName, string pass, uint regX, uint regY)
+ public UUID AddUserProfile(string firstName, string lastName, string pass, uint regX, uint regY)
{
throw new Exception("The method or operation is not implemented.");
}
@@ -523,13 +523,13 @@ namespace OpenSim.Region.Communications.OGS1
/// The agent that who's friends list is being added to
/// The agent that being added to the friends list of the friends list owner
/// A uint bit vector for set perms that the friend being added has; 0 = none, 1=This friend can see when they sign on, 2 = map, 4 edit objects
- public void AddNewUserFriend(LLUUID friendlistowner, LLUUID friend, uint perms)
+ public void AddNewUserFriend(UUID friendlistowner, UUID friend, uint perms)
{
try
{
Hashtable param = new Hashtable();
- param["ownerID"] = friendlistowner.UUID.ToString();
- param["friendID"] = friend.UUID.ToString();
+ param["ownerID"] = friendlistowner.ToString();
+ param["friendID"] = friend.ToString();
param["friendPerms"] = perms.ToString();
IList parameters = new ArrayList();
parameters.Add(param);
@@ -575,13 +575,13 @@ namespace OpenSim.Region.Communications.OGS1
///
/// The agent that who's friends list is being updated
/// The Ex-friend agent
- public void RemoveUserFriend(LLUUID friendlistowner, LLUUID friend)
+ public void RemoveUserFriend(UUID friendlistowner, UUID friend)
{
try
{
Hashtable param = new Hashtable();
- param["ownerID"] = friendlistowner.UUID.ToString();
- param["friendID"] = friend.UUID.ToString();
+ param["ownerID"] = friendlistowner.ToString();
+ param["friendID"] = friend.ToString();
IList parameters = new ArrayList();
parameters.Add(param);
@@ -627,13 +627,13 @@ namespace OpenSim.Region.Communications.OGS1
/// The agent that who's friends list is being updated
/// The agent that is getting or loosing permissions
/// A uint bit vector for set perms that the friend being added has; 0 = none, 1=This friend can see when they sign on, 2 = map, 4 edit objects
- public void UpdateUserFriendPerms(LLUUID friendlistowner, LLUUID friend, uint perms)
+ public void UpdateUserFriendPerms(UUID friendlistowner, UUID friend, uint perms)
{
try
{
Hashtable param = new Hashtable();
- param["ownerID"] = friendlistowner.UUID.ToString();
- param["friendID"] = friend.UUID.ToString();
+ param["ownerID"] = friendlistowner.ToString();
+ param["friendID"] = friend.ToString();
param["friendPerms"] = perms.ToString();
IList parameters = new ArrayList();
parameters.Add(param);
@@ -672,17 +672,17 @@ namespace OpenSim.Region.Communications.OGS1
}
}
///
- /// Returns a list of FriendsListItems that describe the friends and permissions in the friend relationship for LLUUID friendslistowner
+ /// Returns a list of FriendsListItems that describe the friends and permissions in the friend relationship for UUID friendslistowner
///
/// The agent that we're retreiving the friends Data.
- public List GetUserFriendList(LLUUID friendlistowner)
+ public List GetUserFriendList(UUID friendlistowner)
{
List buddylist = new List();
try
{
Hashtable param = new Hashtable();
- param["ownerID"] = friendlistowner.UUID.ToString();
+ param["ownerID"] = friendlistowner.ToString();
IList parameters = new ArrayList();
parameters.Add(param);
@@ -708,7 +708,7 @@ namespace OpenSim.Region.Communications.OGS1
#endregion
/// Appearance
- public AvatarAppearance GetUserAppearance(LLUUID user)
+ public AvatarAppearance GetUserAppearance(UUID user)
{
AvatarAppearance appearance = null;
@@ -733,7 +733,7 @@ namespace OpenSim.Region.Communications.OGS1
return appearance;
}
- public void UpdateUserAppearance(LLUUID user, AvatarAppearance appearance)
+ public void UpdateUserAppearance(UUID user, AvatarAppearance appearance)
{
try
{
diff --git a/OpenSim/Region/DataSnapshot/DataRequestHandler.cs b/OpenSim/Region/DataSnapshot/DataRequestHandler.cs
index 7ddd072..8030b59 100644
--- a/OpenSim/Region/DataSnapshot/DataRequestHandler.cs
+++ b/OpenSim/Region/DataSnapshot/DataRequestHandler.cs
@@ -34,7 +34,7 @@ using log4net;
using OpenSim.Region.Environment.Scenes;
using OpenSim.Framework.Communications.Capabilities;
using Caps = OpenSim.Framework.Communications.Capabilities.Caps;
-using libsecondlife;
+using OpenMetaverse;
using OpenSim.Framework.Servers;
namespace OpenSim.Region.DataSnapshot
@@ -64,7 +64,7 @@ namespace OpenSim.Region.DataSnapshot
//harbl
}
- public void OnRegisterCaps(LLUUID agentID, Caps caps)
+ public void OnRegisterCaps(UUID agentID, Caps caps)
{
m_log.Info("[DATASNAPSHOT]: Registering service discovery capability for " + agentID);
string capsBase = "/CAPS/" + caps.CapsObjectPath;
diff --git a/OpenSim/Region/DataSnapshot/DataSnapshotManager.cs b/OpenSim/Region/DataSnapshot/DataSnapshotManager.cs
index da72b61..46c9b3c 100644
--- a/OpenSim/Region/DataSnapshot/DataSnapshotManager.cs
+++ b/OpenSim/Region/DataSnapshot/DataSnapshotManager.cs
@@ -34,7 +34,7 @@ using System.Reflection;
using System.Text;
using System.Timers;
using System.Xml;
-using libsecondlife;
+using OpenMetaverse;
using log4net;
using Nini.Config;
using OpenSim.Framework;
@@ -42,7 +42,7 @@ using OpenSim.Framework.Communications;
using OpenSim.Region.DataSnapshot.Interfaces;
using OpenSim.Region.Environment.Interfaces;
using OpenSim.Region.Environment.Scenes;
-using libsecondlife.Packets;
+using OpenMetaverse.Packets;
namespace OpenSim.Region.DataSnapshot
{
@@ -219,7 +219,7 @@ namespace OpenSim.Region.DataSnapshot
return null;
}
- public Scene SceneForUUID(LLUUID id)
+ public Scene SceneForUUID(UUID id)
{
foreach (Scene scene in m_scenes)
if (scene.RegionInfo.RegionID == id)
diff --git a/OpenSim/Region/DataSnapshot/EstateSnapshot.cs b/OpenSim/Region/DataSnapshot/EstateSnapshot.cs
index eccdcf1..f25aad4 100644
--- a/OpenSim/Region/DataSnapshot/EstateSnapshot.cs
+++ b/OpenSim/Region/DataSnapshot/EstateSnapshot.cs
@@ -27,7 +27,7 @@
using System;
using System.Xml;
-using libsecondlife;
+using OpenMetaverse;
using OpenSim.Framework;
using OpenSim.Region.DataSnapshot.Interfaces;
using OpenSim.Region.Environment.Scenes;
@@ -54,8 +54,8 @@ namespace OpenSim.Region.DataSnapshot.Providers
//Now in DataSnapshotProvider module form!
XmlNode estatedata = factory.CreateNode(XmlNodeType.Element, "estate", "");
- LLUUID ownerid = m_scene.RegionInfo.MasterAvatarAssignedUUID;
- if (m_scene.RegionInfo.EstateSettings.EstateOwner != LLUUID.Zero)
+ UUID ownerid = m_scene.RegionInfo.MasterAvatarAssignedUUID;
+ if (m_scene.RegionInfo.EstateSettings.EstateOwner != UUID.Zero)
ownerid = m_scene.RegionInfo.EstateSettings.EstateOwner;
// Can't fail because if it weren't in cache, we wouldn't be here
diff --git a/OpenSim/Region/DataSnapshot/LandSnapshot.cs b/OpenSim/Region/DataSnapshot/LandSnapshot.cs
index 930ea8f..b0ba29d 100644
--- a/OpenSim/Region/DataSnapshot/LandSnapshot.cs
+++ b/OpenSim/Region/DataSnapshot/LandSnapshot.cs
@@ -29,14 +29,14 @@ using System;
using System.Collections.Generic;
using System.Reflection;
using System.Xml;
-using libsecondlife;
+using OpenMetaverse;
using log4net;
using OpenSim.Framework;
using OpenSim.Region.DataSnapshot.Interfaces;
using OpenSim.Region.Environment.Interfaces;
using OpenSim.Region.Environment.Modules.World.Land;
using OpenSim.Region.Environment.Scenes;
-using libsecondlife.Packets;
+using OpenMetaverse.Packets;
namespace OpenSim.Region.DataSnapshot.Providers
{
@@ -179,16 +179,16 @@ namespace OpenSim.Region.DataSnapshot.Providers
//default location
XmlNode tpLocation = nodeFactory.CreateNode(XmlNodeType.Element, "location", "");
- LLVector3 loc = parcel.UserLocation;
- if (loc.Equals(LLVector3.Zero)) // This test is mute at this point: the location is wrong by default
- loc = new LLVector3((parcel.AABBMax.X - parcel.AABBMin.X) / 2, (parcel.AABBMax.Y - parcel.AABBMin.Y) / 2, (parcel.AABBMax.Y - parcel.AABBMin.Y) / 2);
+ Vector3 loc = parcel.UserLocation;
+ if (loc.Equals(Vector3.Zero)) // This test is mute at this point: the location is wrong by default
+ loc = new Vector3((parcel.AABBMax.X - parcel.AABBMin.X) / 2, (parcel.AABBMax.Y - parcel.AABBMin.Y) / 2, (parcel.AABBMax.Y - parcel.AABBMin.Y) / 2);
tpLocation.InnerText = loc.X.ToString() + "/" + loc.Y.ToString() + "/" + loc.Z.ToString();
xmlparcel.AppendChild(tpLocation);
//TODO: figure how to figure out teleport system landData.landingType
//land texture snapshot uuid
- if (parcel.SnapshotID != LLUUID.Zero)
+ if (parcel.SnapshotID != UUID.Zero)
{
XmlNode textureuuid = nodeFactory.CreateNode(XmlNodeType.Element, "image", "");
textureuuid.InnerText = parcel.SnapshotID.ToString();
@@ -196,7 +196,7 @@ namespace OpenSim.Region.DataSnapshot.Providers
}
//attached user and group
- if (parcel.GroupID != LLUUID.Zero)
+ if (parcel.GroupID != UUID.Zero)
{
XmlNode groupblock = nodeFactory.CreateNode(XmlNodeType.Element, "group", "");
XmlNode groupuuid = nodeFactory.CreateNode(XmlNodeType.Element, "uuid", "");
@@ -213,7 +213,7 @@ namespace OpenSim.Region.DataSnapshot.Providers
{
XmlNode userblock = nodeFactory.CreateNode(XmlNodeType.Element, "owner", "");
- LLUUID userOwnerUUID = parcel.OwnerID;
+ UUID userOwnerUUID = parcel.OwnerID;
XmlNode useruuid = nodeFactory.CreateNode(XmlNodeType.Element, "uuid", "");
useruuid.InnerText = userOwnerUUID.ToString();
@@ -298,7 +298,7 @@ namespace OpenSim.Region.DataSnapshot.Providers
IClientAPI remote_client) { this.Stale = true; };
client.OnParcelPropertiesUpdateRequest += delegate(LandUpdateArgs args, int local_id,
IClientAPI remote_client) { this.Stale = true; };
- client.OnParcelBuy += delegate (LLUUID agentId, LLUUID groupId, bool final, bool groupOwned,
+ client.OnParcelBuy += delegate (UUID agentId, UUID groupId, bool final, bool groupOwned,
bool removeContribution, int parcelLocalID, int parcelArea, int parcelPrice, bool authenticated)
{ this.Stale = true; };
}
@@ -315,4 +315,4 @@ namespace OpenSim.Region.DataSnapshot.Providers
#endregion
}
-}
\ No newline at end of file
+}
diff --git a/OpenSim/Region/DataSnapshot/ObjectSnapshot.cs b/OpenSim/Region/DataSnapshot/ObjectSnapshot.cs
index d2a5051..c23c697 100644
--- a/OpenSim/Region/DataSnapshot/ObjectSnapshot.cs
+++ b/OpenSim/Region/DataSnapshot/ObjectSnapshot.cs
@@ -33,7 +33,7 @@ using log4net;
using OpenSim.Region.DataSnapshot.Interfaces;
using OpenSim.Region.Environment.Scenes;
using OpenSim.Framework;
-using libsecondlife;
+using OpenMetaverse;
namespace OpenSim.Region.DataSnapshot.Providers
{
@@ -59,29 +59,29 @@ namespace OpenSim.Region.DataSnapshot.Providers
//Detect object data changes by hooking into the IClientAPI.
//Very dirty, and breaks whenever someone changes the client API.
- client.OnAddPrim += delegate (LLUUID ownerID, LLVector3 RayEnd, LLQuaternion rot,
- PrimitiveBaseShape shape, byte bypassRaycast, LLVector3 RayStart, LLUUID RayTargetID,
+ client.OnAddPrim += delegate (UUID ownerID, Vector3 RayEnd, Quaternion rot,
+ PrimitiveBaseShape shape, byte bypassRaycast, Vector3 RayStart, UUID RayTargetID,
byte RayEndIsIntersection) { this.Stale = true; };
client.OnLinkObjects += delegate (IClientAPI remoteClient, uint parent, List children)
{ this.Stale = true; };
client.OnDelinkObjects += delegate(List primIds) { this.Stale = true; };
- client.OnGrabUpdate += delegate(LLUUID objectID, LLVector3 offset, LLVector3 grapPos,
+ client.OnGrabUpdate += delegate(UUID objectID, Vector3 offset, Vector3 grapPos,
IClientAPI remoteClient) { this.Stale = true; };
client.OnObjectAttach += delegate(IClientAPI remoteClient, uint objectLocalID, uint AttachmentPt,
- LLQuaternion rot) { this.Stale = true; };
- client.OnObjectDuplicate += delegate(uint localID, LLVector3 offset, uint dupeFlags, LLUUID AgentID,
- LLUUID GroupID) { this.Stale = true; };
- client.OnObjectDuplicateOnRay += delegate(uint localID, uint dupeFlags, LLUUID AgentID, LLUUID GroupID,
- LLUUID RayTargetObj, LLVector3 RayEnd, LLVector3 RayStart, bool BypassRaycast,
+ Quaternion rot) { this.Stale = true; };
+ client.OnObjectDuplicate += delegate(uint localID, Vector3 offset, uint dupeFlags, UUID AgentID,
+ UUID GroupID) { this.Stale = true; };
+ client.OnObjectDuplicateOnRay += delegate(uint localID, uint dupeFlags, UUID AgentID, UUID GroupID,
+ UUID RayTargetObj, Vector3 RayEnd, Vector3 RayStart, bool BypassRaycast,
bool RayEndIsIntersection, bool CopyCenters, bool CopyRotates) { this.Stale = true; };
client.OnObjectIncludeInSearch += delegate(IClientAPI remoteClient, bool IncludeInSearch, uint localID)
{ this.Stale = true; };
- client.OnObjectPermissions += delegate(IClientAPI controller, LLUUID agentID, LLUUID sessionID,
+ client.OnObjectPermissions += delegate(IClientAPI controller, UUID agentID, UUID sessionID,
byte field, uint localId, uint mask, byte set) { this.Stale = true; };
- client.OnRezObject += delegate(IClientAPI remoteClient, LLUUID itemID, LLVector3 RayEnd,
- LLVector3 RayStart, LLUUID RayTargetID, byte BypassRayCast, bool RayEndIsIntersection,
+ client.OnRezObject += delegate(IClientAPI remoteClient, UUID itemID, Vector3 RayEnd,
+ Vector3 RayStart, UUID RayTargetID, byte BypassRayCast, bool RayEndIsIntersection,
uint EveryoneMask, uint GroupMask, uint NextOwnerMask, uint ItemFlags, bool RezSelected,
- bool RemoveItem, LLUUID fromTaskID) { this.Stale = true; };
+ bool RemoveItem, UUID fromTaskID) { this.Stale = true; };
}
public Scene GetParentScene
@@ -105,11 +105,11 @@ namespace OpenSim.Region.DataSnapshot.Providers
m_log.Debug("[DATASNAPSHOT]: Found object " + obj.Name + " in scene");
- if ((obj.RootPart.Flags & LLObject.ObjectFlags.JointWheel) == LLObject.ObjectFlags.JointWheel) {
+ if ((obj.RootPart.Flags & PrimFlags.JointWheel) == PrimFlags.JointWheel) {
XmlNode xmlobject = nodeFactory.CreateNode(XmlNodeType.Element, "object", "");
node = nodeFactory.CreateNode(XmlNodeType.Element, "uuid", "");
- node.InnerText = obj.UUID.ToString();
+ node.InnerText = obj.ToString();
xmlobject.AppendChild(node);
SceneObjectPart m_rootPart = null;
@@ -170,4 +170,4 @@ namespace OpenSim.Region.DataSnapshot.Providers
public event ProviderStale OnStale;
}
-}
\ No newline at end of file
+}
diff --git a/OpenSim/Region/DataSnapshot/SnapshotStore.cs b/OpenSim/Region/DataSnapshot/SnapshotStore.cs
index e1a6651..d913cc5 100644
--- a/OpenSim/Region/DataSnapshot/SnapshotStore.cs
+++ b/OpenSim/Region/DataSnapshot/SnapshotStore.cs
@@ -32,7 +32,7 @@ using System.Xml;
using System.IO;
using OpenSim.Region.Environment.Scenes;
using OpenSim.Region.DataSnapshot.Interfaces;
-using libsecondlife;
+using OpenMetaverse;
namespace OpenSim.Region.DataSnapshot
{
@@ -211,7 +211,7 @@ namespace OpenSim.Region.DataSnapshot
private string DataFileNameScene(Scene scene)
{
return Path.Combine(m_directory, Path.ChangeExtension(scene.RegionInfo.RegionName, "xml"));
- //return (m_snapsDir + Path.DirectorySeparatorChar + scene.RegionInfo.RegionName + ".xml");
+ //return (m_snapsDir + Path.DirectorySeparatorChar + scene.RegionInfo.RegionName + ".Xml");
}
private XmlNode MakeRegionNode(Scene scene, XmlDocument basedoc)
diff --git a/OpenSim/Region/Environment/Interfaces/IAgentAssetTransactions.cs b/OpenSim/Region/Environment/Interfaces/IAgentAssetTransactions.cs
index c099fa1..90d1c12 100644
--- a/OpenSim/Region/Environment/Interfaces/IAgentAssetTransactions.cs
+++ b/OpenSim/Region/Environment/Interfaces/IAgentAssetTransactions.cs
@@ -25,20 +25,20 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-using libsecondlife;
+using OpenMetaverse;
using OpenSim.Framework;
namespace OpenSim.Region.Environment.Interfaces
{
public interface IAgentAssetTransactions
{
- void HandleItemUpdateFromTransaction(IClientAPI remoteClient, LLUUID transactionID,
+ void HandleItemUpdateFromTransaction(IClientAPI remoteClient, UUID transactionID,
InventoryItemBase item);
- void HandleItemCreationFromTransaction(IClientAPI remoteClient, LLUUID transactionID, LLUUID folderID,
+ void HandleItemCreationFromTransaction(IClientAPI remoteClient, UUID transactionID, UUID folderID,
uint callbackID, string description, string name, sbyte invType,
sbyte type, byte wearableType, uint nextOwnerMask);
- void RemoveAgentAssetTransactions(LLUUID userID);
+ void RemoveAgentAssetTransactions(UUID userID);
}
}
diff --git a/OpenSim/Region/Environment/Interfaces/IAvatarFactory.cs b/OpenSim/Region/Environment/Interfaces/IAvatarFactory.cs
index d03e167..a722833 100644
--- a/OpenSim/Region/Environment/Interfaces/IAvatarFactory.cs
+++ b/OpenSim/Region/Environment/Interfaces/IAvatarFactory.cs
@@ -25,7 +25,7 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-using libsecondlife;
+using OpenMetaverse;
using OpenSim.Framework;
using OpenSim.Region.Environment.Scenes;
@@ -33,7 +33,7 @@ namespace OpenSim.Region.Environment.Interfaces
{
public interface IAvatarFactory
{
- bool TryGetAvatarAppearance(LLUUID avatarId, out AvatarAppearance appearance);
- void UpdateDatabase(LLUUID userID, AvatarAppearance avatAppearance);
+ bool TryGetAvatarAppearance(UUID avatarId, out AvatarAppearance appearance);
+ void UpdateDatabase(UUID userID, AvatarAppearance avatAppearance);
}
}
diff --git a/OpenSim/Region/Environment/Interfaces/IDynamicTextureManager.cs b/OpenSim/Region/Environment/Interfaces/IDynamicTextureManager.cs
index aeb47e1..c54c697 100644
--- a/OpenSim/Region/Environment/Interfaces/IDynamicTextureManager.cs
+++ b/OpenSim/Region/Environment/Interfaces/IDynamicTextureManager.cs
@@ -26,22 +26,22 @@
*/
using System.IO;
-using libsecondlife;
+using OpenMetaverse;
namespace OpenSim.Region.Environment.Interfaces
{
public interface IDynamicTextureManager
{
void RegisterRender(string handleType, IDynamicTextureRender render);
- void ReturnData(LLUUID id, byte[] data);
+ void ReturnData(UUID id, byte[] data);
- LLUUID AddDynamicTextureURL(LLUUID simID, LLUUID primID, string contentType, string url, string extraParams,
+ UUID AddDynamicTextureURL(UUID simID, UUID primID, string contentType, string url, string extraParams,
int updateTimer);
- LLUUID AddDynamicTextureURL(LLUUID simID, LLUUID primID, string contentType, string url, string extraParams,
+ UUID AddDynamicTextureURL(UUID simID, UUID primID, string contentType, string url, string extraParams,
int updateTimer, bool SetBlending, byte AlphaValue);
- LLUUID AddDynamicTextureData(LLUUID simID, LLUUID primID, string contentType, string data, string extraParams,
+ UUID AddDynamicTextureData(UUID simID, UUID primID, string contentType, string data, string extraParams,
int updateTimer);
- LLUUID AddDynamicTextureData(LLUUID simID, LLUUID primID, string contentType, string data, string extraParams,
+ UUID AddDynamicTextureData(UUID simID, UUID primID, string contentType, string data, string extraParams,
int updateTimer, bool SetBlending, byte AlphaValue);
}
@@ -52,7 +52,7 @@ namespace OpenSim.Region.Environment.Interfaces
bool SupportsAsynchronous();
byte[] ConvertUrl(string url, string extraParams);
byte[] ConvertStream(Stream data, string extraParams);
- bool AsyncConvertUrl(LLUUID id, string url, string extraParams);
- bool AsyncConvertData(LLUUID id, string bodyData, string extraParams);
+ bool AsyncConvertUrl(UUID id, string url, string extraParams);
+ bool AsyncConvertData(UUID id, string bodyData, string extraParams);
}
}
diff --git a/OpenSim/Region/Environment/Interfaces/IEmailModule.cs b/OpenSim/Region/Environment/Interfaces/IEmailModule.cs
index 3726ba5..5f1bcf3 100644
--- a/OpenSim/Region/Environment/Interfaces/IEmailModule.cs
+++ b/OpenSim/Region/Environment/Interfaces/IEmailModule.cs
@@ -27,7 +27,7 @@
using System;
using OpenSim.Framework;
-using libsecondlife;
+using OpenMetaverse;
namespace OpenSim.Region.Environment.Interfaces
{
@@ -42,7 +42,7 @@ namespace OpenSim.Region.Environment.Interfaces
public interface IEmailModule : IRegionModule
{
- void SendEmail(LLUUID objectID, string address, string subject, string body);
- Email GetNextEmail(LLUUID objectID, string sender, string subject);
+ void SendEmail(UUID objectID, string address, string subject, string body);
+ Email GetNextEmail(UUID objectID, string sender, string subject);
}
}
diff --git a/OpenSim/Region/Environment/Interfaces/IEstateDataStore.cs b/OpenSim/Region/Environment/Interfaces/IEstateDataStore.cs
index ecac2ca..f2d14a6 100644
--- a/OpenSim/Region/Environment/Interfaces/IEstateDataStore.cs
+++ b/OpenSim/Region/Environment/Interfaces/IEstateDataStore.cs
@@ -27,7 +27,7 @@
using System;
using OpenSim.Framework;
-using libsecondlife;
+using OpenMetaverse;
namespace OpenSim.Region.Environment.Interfaces
{
@@ -35,7 +35,7 @@ namespace OpenSim.Region.Environment.Interfaces
{
void Initialise(string connectstring);
- EstateSettings LoadEstateSettings(LLUUID regionID);
+ EstateSettings LoadEstateSettings(UUID regionID);
void StoreEstateSettings(EstateSettings es);
}
}
diff --git a/OpenSim/Region/Environment/Interfaces/IEstateModule.cs b/OpenSim/Region/Environment/Interfaces/IEstateModule.cs
index bfe3591..70c5800 100644
--- a/OpenSim/Region/Environment/Interfaces/IEstateModule.cs
+++ b/OpenSim/Region/Environment/Interfaces/IEstateModule.cs
@@ -27,13 +27,13 @@
using System;
using OpenSim.Framework;
-using libsecondlife;
+using OpenMetaverse;
namespace OpenSim.Region.Environment.Interfaces
{
public interface IEstateModule : IRegionModule
{
uint GetRegionFlags();
- bool IsManager(LLUUID avatarID);
+ bool IsManager(UUID avatarID);
}
}
diff --git a/OpenSim/Region/Environment/Interfaces/IHttpRequests.cs b/OpenSim/Region/Environment/Interfaces/IHttpRequests.cs
index 3a635de..216782b 100644
--- a/OpenSim/Region/Environment/Interfaces/IHttpRequests.cs
+++ b/OpenSim/Region/Environment/Interfaces/IHttpRequests.cs
@@ -26,17 +26,17 @@
*/
using System.Collections.Generic;
-using libsecondlife;
+using OpenMetaverse;
using OpenSim.Region.Environment.Modules.Scripting.HttpRequest;
namespace OpenSim.Region.Environment.Interfaces
{
public interface IHttpRequests
{
- LLUUID MakeHttpRequest(string url, string parameters, string body);
- LLUUID StartHttpRequest(uint localID, LLUUID itemID, string url, List parameters, Dictionary headers, string body);
- void StopHttpRequest(uint m_localID, LLUUID m_itemID);
+ UUID MakeHttpRequest(string url, string parameters, string body);
+ UUID StartHttpRequest(uint localID, UUID itemID, string url, List parameters, Dictionary headers, string body);
+ void StopHttpRequest(uint m_localID, UUID m_itemID);
HttpRequestClass GetNextCompletedRequest();
- void RemoveCompletedRequest(LLUUID id);
+ void RemoveCompletedRequest(UUID id);
}
}
diff --git a/OpenSim/Region/Environment/Interfaces/IInventoryModule.cs b/OpenSim/Region/Environment/Interfaces/IInventoryModule.cs
index c93694a9..50f4af3 100644
--- a/OpenSim/Region/Environment/Interfaces/IInventoryModule.cs
+++ b/OpenSim/Region/Environment/Interfaces/IInventoryModule.cs
@@ -26,7 +26,7 @@
*/
using System.Collections.Generic;
-using libsecondlife;
+using OpenMetaverse;
using OpenSim.Region.Environment;
using OpenSim.Region.Environment.Scenes;
@@ -37,7 +37,7 @@ namespace OpenSim.Framework
///
public interface IInventoryModule
{
- void SetRootAgentScene(LLUUID agentID, Scene scene);
- bool NeedSceneCacheClear(LLUUID agentID, Scene scene);
+ void SetRootAgentScene(UUID agentID, Scene scene);
+ bool NeedSceneCacheClear(UUID agentID, Scene scene);
}
}
diff --git a/OpenSim/Region/Environment/Interfaces/ILandChannel.cs b/OpenSim/Region/Environment/Interfaces/ILandChannel.cs
index c1f6f45..4a74949 100644
--- a/OpenSim/Region/Environment/Interfaces/ILandChannel.cs
+++ b/OpenSim/Region/Environment/Interfaces/ILandChannel.cs
@@ -26,7 +26,7 @@
*/
using System.Collections.Generic;
-using libsecondlife;
+using OpenMetaverse;
using OpenSim.Framework;
using OpenSim.Region.Environment.Scenes;
@@ -35,13 +35,13 @@ namespace OpenSim.Region.Environment.Interfaces
public interface ILandChannel
{
- List ParcelsNearPoint(LLVector3 position);
+ List ParcelsNearPoint(Vector3 position);
ILandObject GetLandObject(int x, int y);
ILandObject GetLandObject(float x, float y);
bool IsLandPrimCountTainted();
bool IsForcefulBansAllowed();
void UpdateLandObject(int localID, LandData data);
- void ReturnObjectsInParcel(int localID, uint returnType, LLUUID[] agentIDs, LLUUID[] taskIDs, IClientAPI remoteClient);
+ void ReturnObjectsInParcel(int localID, uint returnType, UUID[] agentIDs, UUID[] taskIDs, IClientAPI remoteClient);
void setParcelObjectMaxOverride(overrideParcelMaxPrimCountDelegate overrideDel);
void setSimulatorObjectMaxOverride(overrideSimulatorMaxPrimCountDelegate overrideDel);
}
diff --git a/OpenSim/Region/Environment/Interfaces/ILandObject.cs b/OpenSim/Region/Environment/Interfaces/ILandObject.cs
index 750b387..96fa378 100644
--- a/OpenSim/Region/Environment/Interfaces/ILandObject.cs
+++ b/OpenSim/Region/Environment/Interfaces/ILandObject.cs
@@ -26,7 +26,7 @@
*/
using System.Collections.Generic;
-using libsecondlife;
+using OpenMetaverse;
using OpenSim.Framework;
using OpenSim.Region.Environment.Scenes;
@@ -42,7 +42,7 @@ namespace OpenSim.Region.Environment.Interfaces
LandData landData { get; set; }
bool[,] landBitmap { get; set; }
- LLUUID regionUUID { get; }
+ UUID regionUUID { get; }
bool containsPoint(int x, int y);
ILandObject Copy();
@@ -50,12 +50,12 @@ namespace OpenSim.Region.Environment.Interfaces
void sendLandProperties(int sequence_id, bool snap_selection, int request_result, IClientAPI remote_client);
void updateLandProperties(LandUpdateArgs args, IClientAPI remote_client);
- bool isEitherBannedOrRestricted(LLUUID avatar);
- bool isBannedFromLand(LLUUID avatar);
- bool isRestrictedFromLand(LLUUID avatar);
+ bool isEitherBannedOrRestricted(UUID avatar);
+ bool isBannedFromLand(UUID avatar);
+ bool isRestrictedFromLand(UUID avatar);
void sendLandUpdateToClient(IClientAPI remote_client);
- List createAccessListArrayByFlag(ParcelManager.AccessList flag);
- void sendAccessList(LLUUID agentID, LLUUID sessionID, uint flags, int sequenceID, IClientAPI remote_client);
+ List createAccessListArrayByFlag(ParcelManager.AccessList flag);
+ void sendAccessList(UUID agentID, UUID sessionID, uint flags, int sequenceID, IClientAPI remote_client);
void updateAccessList(uint flags, List entries, IClientAPI remote_client);
void updateLandBitmapByteArray();
void setLandBitmapFromByteArray();
@@ -71,11 +71,11 @@ namespace OpenSim.Region.Environment.Interfaces
void sendForceObjectSelect(int local_id, int request_type, IClientAPI remote_client);
void sendLandObjectOwners(IClientAPI remote_client);
void returnObject(SceneObjectGroup obj);
- void returnLandObjects(uint type, LLUUID[] owners, IClientAPI remote_client);
+ void returnLandObjects(uint type, UUID[] owners, IClientAPI remote_client);
void resetLandPrimCounts();
void addPrimToCount(SceneObjectGroup obj);
void removePrimFromCount(SceneObjectGroup obj);
- void updateLandSold(LLUUID avatarID, LLUUID groupID, bool groupOwned, uint AuctionID, int claimprice, int area);
+ void updateLandSold(UUID avatarID, UUID groupID, bool groupOwned, uint AuctionID, int claimprice, int area);
void setParcelObjectMaxOverride(overrideParcelMaxPrimCountDelegate overrideDel);
void setSimulatorObjectMaxOverride(overrideSimulatorMaxPrimCountDelegate overrideDel);
diff --git a/OpenSim/Region/Environment/Interfaces/IRegionDataStore.cs b/OpenSim/Region/Environment/Interfaces/IRegionDataStore.cs
index 4e716a2..5f10ec5 100644
--- a/OpenSim/Region/Environment/Interfaces/IRegionDataStore.cs
+++ b/OpenSim/Region/Environment/Interfaces/IRegionDataStore.cs
@@ -26,7 +26,7 @@
*/
using System.Collections.Generic;
-using libsecondlife;
+using OpenMetaverse;
using OpenSim.Framework;
using OpenSim.Region.Environment.Scenes;
@@ -46,7 +46,7 @@ namespace OpenSim.Region.Environment.Interfaces
///
///
///
- void StoreObject(SceneObjectGroup obj, LLUUID regionUUID);
+ void StoreObject(SceneObjectGroup obj, UUID regionUUID);
///
/// Entirely removes the object, including inventory
@@ -54,25 +54,25 @@ namespace OpenSim.Region.Environment.Interfaces
///
///
///
- void RemoveObject(LLUUID uuid, LLUUID regionUUID);
+ void RemoveObject(UUID uuid, UUID regionUUID);
///
/// Store a prim's inventory
///
///
- void StorePrimInventory(LLUUID primID, ICollection items);
+ void StorePrimInventory(UUID primID, ICollection items);
- List LoadObjects(LLUUID regionUUID);
+ List LoadObjects(UUID regionUUID);
- void StoreTerrain(double[,] terrain, LLUUID regionID);
- double[,] LoadTerrain(LLUUID regionID);
+ void StoreTerrain(double[,] terrain, UUID regionID);
+ double[,] LoadTerrain(UUID regionID);
void StoreLandObject(ILandObject Parcel);
- void RemoveLandObject(LLUUID globalID);
- List LoadLandObjects(LLUUID regionUUID);
+ void RemoveLandObject(UUID globalID);
+ List LoadLandObjects(UUID regionUUID);
void StoreRegionSettings(RegionSettings rs);
- RegionSettings LoadRegionSettings(LLUUID regionUUID);
+ RegionSettings LoadRegionSettings(UUID regionUUID);
void Shutdown();
}
diff --git a/OpenSim/Region/Environment/Interfaces/IScriptModule.cs b/OpenSim/Region/Environment/Interfaces/IScriptModule.cs
index 8d3868e..efe7944 100644
--- a/OpenSim/Region/Environment/Interfaces/IScriptModule.cs
+++ b/OpenSim/Region/Environment/Interfaces/IScriptModule.cs
@@ -27,12 +27,12 @@
using System;
using OpenSim.Framework;
-using libsecondlife;
+using OpenMetaverse;
namespace OpenSim.Region.Environment.Interfaces
{
public interface IScriptModule : IRegionModule
{
- bool GetScriptRunning(LLUUID objectID, LLUUID itemID);
+ bool GetScriptRunning(UUID objectID, UUID itemID);
}
}
diff --git a/OpenSim/Region/Environment/Interfaces/IWorldComm.cs b/OpenSim/Region/Environment/Interfaces/IWorldComm.cs
index c2a55eb..1a33450 100644
--- a/OpenSim/Region/Environment/Interfaces/IWorldComm.cs
+++ b/OpenSim/Region/Environment/Interfaces/IWorldComm.cs
@@ -26,7 +26,7 @@
*/
using System;
-using libsecondlife;
+using OpenMetaverse;
using OpenSim.Framework;
using OpenSim.Region.Environment.Modules.Scripting.WorldComm;
@@ -34,15 +34,15 @@ namespace OpenSim.Region.Environment.Interfaces
{
public interface IWorldComm
{
- int Listen(uint LocalID, LLUUID itemID, LLUUID hostID, int channel, string name, LLUUID id, string msg);
- void DeliverMessage(ChatTypeEnum type, int channel, string name, LLUUID id, string msg);
+ int Listen(uint LocalID, UUID itemID, UUID hostID, int channel, string name, UUID id, string msg);
+ void DeliverMessage(ChatTypeEnum type, int channel, string name, UUID id, string msg);
bool HasMessages();
ListenerInfo GetNextMessage();
- void ListenControl(LLUUID itemID, int handle, int active);
- void ListenRemove(LLUUID itemID, int handle);
- void DeleteListener(LLUUID itemID);
- Object[] GetSerializationData(LLUUID itemID);
- void CreateFromData(uint localID, LLUUID itemID, LLUUID hostID,
+ void ListenControl(UUID itemID, int handle, int active);
+ void ListenRemove(UUID itemID, int handle);
+ void DeleteListener(UUID itemID);
+ Object[] GetSerializationData(UUID itemID);
+ void CreateFromData(uint localID, UUID itemID, UUID hostID,
Object[] data);
}
}
diff --git a/OpenSim/Region/Environment/Interfaces/IXMLRPC.cs b/OpenSim/Region/Environment/Interfaces/IXMLRPC.cs
index a2c164f..88e9ab5 100644
--- a/OpenSim/Region/Environment/Interfaces/IXMLRPC.cs
+++ b/OpenSim/Region/Environment/Interfaces/IXMLRPC.cs
@@ -25,24 +25,24 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-using libsecondlife;
+using OpenMetaverse;
using OpenSim.Region.Environment.Modules.Scripting.XMLRPC;
namespace OpenSim.Region.Environment.Interfaces
{
public interface IXMLRPC
{
- LLUUID OpenXMLRPCChannel(uint localID, LLUUID itemID, LLUUID channelID);
- void CloseXMLRPCChannel(LLUUID channelKey);
+ UUID OpenXMLRPCChannel(uint localID, UUID itemID, UUID channelID);
+ void CloseXMLRPCChannel(UUID channelKey);
bool hasRequests();
void RemoteDataReply(string channel, string message_id, string sdata, int idata);
bool IsEnabled();
RPCRequestInfo GetNextCompletedRequest();
- void RemoveCompletedRequest(LLUUID id);
- void DeleteChannels(LLUUID itemID);
- LLUUID SendRemoteData(uint localID, LLUUID itemID, string channel, string dest, int idata, string sdata);
+ void RemoveCompletedRequest(UUID id);
+ void DeleteChannels(UUID itemID);
+ UUID SendRemoteData(uint localID, UUID itemID, string channel, string dest, int idata, string sdata);
SendRemoteDataRequest GetNextCompletedSRDRequest();
- void RemoveCompletedSRDRequest(LLUUID id);
- void CancelSRDRequests(LLUUID itemID);
+ void RemoveCompletedSRDRequest(UUID id);
+ void CancelSRDRequests(UUID itemID);
}
}
diff --git a/OpenSim/Region/Environment/Modules/Agent/AssetDownload/AssetDownloadModule.cs b/OpenSim/Region/Environment/Modules/Agent/AssetDownload/AssetDownloadModule.cs
index d3cf41e..3b521c3 100644
--- a/OpenSim/Region/Environment/Modules/Agent/AssetDownload/AssetDownloadModule.cs
+++ b/OpenSim/Region/Environment/Modules/Agent/AssetDownload/AssetDownloadModule.cs
@@ -26,8 +26,8 @@
*/
using System.Collections.Generic;
-using libsecondlife;
-using libsecondlife.Packets;
+using OpenMetaverse;
+using OpenMetaverse.Packets;
using Nini.Config;
using OpenSim.Framework;
using OpenSim.Region.Environment.Interfaces;
@@ -43,16 +43,16 @@ namespace OpenSim.Region.Environment.Modules.Agent.AssetDownload
private List AssetRequests;
private Scene m_scene;
- private Dictionary RegisteredScenes = new Dictionary();
+ private Dictionary RegisteredScenes = new Dictionary();
///
/// Assets requests (for each user) which are waiting for asset server data. This includes texture requests
///
- private Dictionary> RequestedAssets;
+ private Dictionary> RequestedAssets;
public AssetDownloadModule()
{
- RequestedAssets = new Dictionary>();
+ RequestedAssets = new Dictionary>();
AssetRequests = new List();
}
@@ -109,24 +109,24 @@ namespace OpenSim.Region.Environment.Modules.Agent.AssetDownload
///
public void AddAssetRequest(IClientAPI userInfo, TransferRequestPacket transferRequest)
{
- LLUUID requestID = null;
+ UUID requestID = null;
byte source = 2;
if (transferRequest.TransferInfo.SourceType == 2)
{
//direct asset request
- requestID = new LLUUID(transferRequest.TransferInfo.Params, 0);
+ requestID = new UUID(transferRequest.TransferInfo.Params, 0);
}
else if (transferRequest.TransferInfo.SourceType == 3)
{
//inventory asset request
- requestID = new LLUUID(transferRequest.TransferInfo.Params, 80);
+ requestID = new UUID(transferRequest.TransferInfo.Params, 80);
source = 3;
//Console.WriteLine("asset request " + requestID);
}
//not found asset
// so request from asset server
- Dictionary userRequests = null;
+ Dictionary userRequests = null;
if (RequestedAssets.TryGetValue(userInfo.AgentId, out userRequests))
{
if (!userRequests.ContainsKey(requestID))
@@ -143,7 +143,7 @@ namespace OpenSim.Region.Environment.Modules.Agent.AssetDownload
}
else
{
- userRequests = new Dictionary();
+ userRequests = new Dictionary();
AssetRequest request = new AssetRequest();
request.RequestUser = userInfo;
request.RequestAssetID = requestID;
@@ -156,11 +156,11 @@ namespace OpenSim.Region.Environment.Modules.Agent.AssetDownload
}
}
- public void AssetCallback(LLUUID assetID, AssetBase asset)
+ public void AssetCallback(UUID assetID, AssetBase asset)
{
if (asset != null)
{
- foreach (Dictionary userRequests in RequestedAssets.Values)
+ foreach (Dictionary userRequests in RequestedAssets.Values)
{
if (userRequests.ContainsKey(assetID))
{
@@ -212,9 +212,9 @@ namespace OpenSim.Region.Environment.Modules.Agent.AssetDownload
public int NumPackets = 0;
public int PacketCounter = 0;
public byte[] Params = null;
- public LLUUID RequestAssetID;
+ public UUID RequestAssetID;
public IClientAPI RequestUser;
- public LLUUID TransferRequestID;
+ public UUID TransferRequestID;
//public bool AssetInCache;
//public int TimeRequested;
@@ -225,4 +225,4 @@ namespace OpenSim.Region.Environment.Modules.Agent.AssetDownload
#endregion
}
-}
\ No newline at end of file
+}
diff --git a/OpenSim/Region/Environment/Modules/Agent/AssetTransaction/AgentAssetsTransactions.cs b/OpenSim/Region/Environment/Modules/Agent/AssetTransaction/AgentAssetsTransactions.cs
index bc1d710..c46c4a4 100644
--- a/OpenSim/Region/Environment/Modules/Agent/AssetTransaction/AgentAssetsTransactions.cs
+++ b/OpenSim/Region/Environment/Modules/Agent/AssetTransaction/AgentAssetsTransactions.cs
@@ -28,8 +28,8 @@
using System;
using System.Collections.Generic;
using System.IO;
-using libsecondlife;
-using libsecondlife.Packets;
+using OpenMetaverse;
+using OpenMetaverse.Packets;
using OpenSim.Framework;
using OpenSim.Framework.Communications.Cache;
@@ -46,18 +46,18 @@ namespace OpenSim.Region.Environment.Modules.Agent.AssetTransaction
// Fields
private bool m_dumpAssetsToFile;
public AgentAssetTransactionsManager Manager;
- public LLUUID UserID;
- public Dictionary XferUploaders = new Dictionary();
+ public UUID UserID;
+ public Dictionary XferUploaders = new Dictionary();
// Methods
- public AgentAssetTransactions(LLUUID agentID, AgentAssetTransactionsManager manager, bool dumpAssetsToFile)
+ public AgentAssetTransactions(UUID agentID, AgentAssetTransactionsManager manager, bool dumpAssetsToFile)
{
UserID = agentID;
Manager = manager;
m_dumpAssetsToFile = dumpAssetsToFile;
}
- public AssetXferUploader RequestXferUploader(LLUUID transactionID)
+ public AssetXferUploader RequestXferUploader(UUID transactionID)
{
if (!XferUploaders.ContainsKey(transactionID))
{
@@ -90,7 +90,7 @@ namespace OpenSim.Region.Environment.Modules.Agent.AssetTransaction
}
}
- public void RequestCreateInventoryItem(IClientAPI remoteClient, LLUUID transactionID, LLUUID folderID,
+ public void RequestCreateInventoryItem(IClientAPI remoteClient, UUID transactionID, UUID folderID,
uint callbackID, string description, string name, sbyte invType,
sbyte type, byte wearableType, uint nextOwnerMask)
{
@@ -102,7 +102,7 @@ namespace OpenSim.Region.Environment.Modules.Agent.AssetTransaction
}
}
- public void RequestUpdateInventoryItem(IClientAPI remoteClient, LLUUID transactionID,
+ public void RequestUpdateInventoryItem(IClientAPI remoteClient, UUID transactionID,
InventoryItemBase item)
{
if (XferUploaders.ContainsKey(transactionID))
@@ -116,7 +116,7 @@ namespace OpenSim.Region.Environment.Modules.Agent.AssetTransaction
///
///
/// The asset if the upload has completed, null if it has not.
- public AssetBase GetTransactionAsset(LLUUID transactionID)
+ public AssetBase GetTransactionAsset(UUID transactionID)
{
if (XferUploaders.ContainsKey(transactionID))
{
@@ -143,7 +143,7 @@ namespace OpenSim.Region.Environment.Modules.Agent.AssetTransaction
// Fields
public bool AddToInventory;
public AssetBase Asset;
- public LLUUID InventFolder = LLUUID.Zero;
+ public UUID InventFolder = UUID.Zero;
private sbyte invType = 0;
private bool m_createItem = false;
private string m_description = String.Empty;
@@ -154,7 +154,7 @@ namespace OpenSim.Region.Environment.Modules.Agent.AssetTransaction
private AgentAssetTransactions m_userTransactions;
private uint nextPerm = 0;
private IClientAPI ourClient;
- public LLUUID TransactionID = LLUUID.Zero;
+ public UUID TransactionID = UUID.Zero;
private sbyte type = 0;
public bool UploadComplete;
private byte wearableType = 0;
@@ -210,7 +210,7 @@ namespace OpenSim.Region.Environment.Modules.Agent.AssetTransaction
///
///
/// True if the transfer is complete, false otherwise
- public bool Initialise(IClientAPI remoteClient, LLUUID assetID, LLUUID transaction, sbyte type, byte[] data,
+ public bool Initialise(IClientAPI remoteClient, UUID assetID, UUID transaction, sbyte type, byte[] data,
bool storeLocal, bool tempFile)
{
ourClient = remoteClient;
@@ -297,7 +297,7 @@ namespace OpenSim.Region.Environment.Modules.Agent.AssetTransaction
fs.Close();
}
- public void RequestCreateInventoryItem(IClientAPI remoteClient, LLUUID transactionID, LLUUID folderID,
+ public void RequestCreateInventoryItem(IClientAPI remoteClient, UUID transactionID, UUID folderID,
uint callbackID, string description, string name, sbyte invType,
sbyte type, byte wearableType, uint nextOwnerMask)
{
@@ -321,7 +321,7 @@ namespace OpenSim.Region.Environment.Modules.Agent.AssetTransaction
}
}
- public void RequestUpdateInventoryItem(IClientAPI remoteClient, LLUUID transactionID,
+ public void RequestUpdateInventoryItem(IClientAPI remoteClient, UUID transactionID,
InventoryItemBase item)
{
if (TransactionID == transactionID)
@@ -332,7 +332,7 @@ namespace OpenSim.Region.Environment.Modules.Agent.AssetTransaction
if (userInfo != null)
{
- LLUUID assetID = LLUUID.Combine(transactionID, remoteClient.SecureSessionId);
+ UUID assetID = UUID.Combine(transactionID, remoteClient.SecureSessionId);
AssetBase asset
= m_userTransactions.Manager.MyScene.CommsManager.AssetCache.GetAsset(
@@ -346,7 +346,7 @@ namespace OpenSim.Region.Environment.Modules.Agent.AssetTransaction
if (asset != null && asset.FullID == assetID)
{
// Assets never get updated, new ones get created
- asset.FullID = LLUUID.Random();
+ asset.FullID = UUID.Random();
asset.Name = item.Name;
asset.Description = item.Description;
asset.Type = (sbyte) item.AssetType;
@@ -371,7 +371,7 @@ namespace OpenSim.Region.Environment.Modules.Agent.AssetTransaction
InventoryItemBase item = new InventoryItemBase();
item.Owner = ourClient.AgentId;
item.Creator = ourClient.AgentId;
- item.ID = LLUUID.Random();
+ item.ID = UUID.Random();
item.AssetID = Asset.FullID;
item.Description = m_description;
item.Name = m_name;
diff --git a/OpenSim/Region/Environment/Modules/Agent/AssetTransaction/AssetTransactionModule.cs b/OpenSim/Region/Environment/Modules/Agent/AssetTransaction/AssetTransactionModule.cs
index b1cbdcc..e6e27be 100644
--- a/OpenSim/Region/Environment/Modules/Agent/AssetTransaction/AssetTransactionModule.cs
+++ b/OpenSim/Region/Environment/Modules/Agent/AssetTransaction/AssetTransactionModule.cs
@@ -28,7 +28,7 @@
using System;
using System.Collections.Generic;
using System.Reflection;
-using libsecondlife;
+using OpenMetaverse;
using log4net;
using Nini.Config;
using OpenSim.Framework;
@@ -40,7 +40,7 @@ namespace OpenSim.Region.Environment.Modules.Agent.AssetTransaction
{
public class AssetTransactionModule : IRegionModule, IAgentAssetTransactions
{
- private readonly Dictionary RegisteredScenes = new Dictionary();
+ private readonly Dictionary RegisteredScenes = new Dictionary();
private bool m_dumpAssetsToFile = false;
private Scene m_scene = null;
@@ -53,7 +53,7 @@ namespace OpenSim.Region.Environment.Modules.Agent.AssetTransaction
#region IAgentAssetTransactions Members
- public void HandleItemCreationFromTransaction(IClientAPI remoteClient, LLUUID transactionID, LLUUID folderID,
+ public void HandleItemCreationFromTransaction(IClientAPI remoteClient, UUID transactionID, UUID folderID,
uint callbackID, string description, string name, sbyte invType,
sbyte type, byte wearableType, uint nextOwnerMask)
{
@@ -61,13 +61,13 @@ namespace OpenSim.Region.Environment.Modules.Agent.AssetTransaction
wearableType, nextOwnerMask);
}
- public void HandleItemUpdateFromTransaction(IClientAPI remoteClient, LLUUID transactionID,
+ public void HandleItemUpdateFromTransaction(IClientAPI remoteClient, UUID transactionID,
InventoryItemBase item)
{
m_transactionManager.HandleItemUpdateFromTransaction(remoteClient, transactionID, item);
}
- public void RemoveAgentAssetTransactions(LLUUID userID)
+ public void RemoveAgentAssetTransactions(UUID userID)
{
m_transactionManager.RemoveAgentAssetTransactions(userID);
}
@@ -146,8 +146,8 @@ namespace OpenSim.Region.Environment.Modules.Agent.AssetTransaction
///
/// Each agent has its own singleton collection of transactions
///
- private Dictionary AgentTransactions =
- new Dictionary();
+ private Dictionary AgentTransactions =
+ new Dictionary();
///
/// Should we dump uploaded assets to the filesystem?
@@ -168,7 +168,7 @@ namespace OpenSim.Region.Environment.Modules.Agent.AssetTransaction
///
///
///
- private AgentAssetTransactions GetUserTransactions(LLUUID userID)
+ private AgentAssetTransactions GetUserTransactions(UUID userID)
{
lock (AgentTransactions)
{
@@ -188,7 +188,7 @@ namespace OpenSim.Region.Environment.Modules.Agent.AssetTransaction
/// from a scene (and hence won't be making any more transactions here).
///
///
- public void RemoveAgentAssetTransactions(LLUUID userID)
+ public void RemoveAgentAssetTransactions(UUID userID)
{
// m_log.DebugFormat("Removing agent asset transactions structure for agent {0}", userID);
@@ -214,7 +214,7 @@ namespace OpenSim.Region.Environment.Modules.Agent.AssetTransaction
///
///
///
- public void HandleItemCreationFromTransaction(IClientAPI remoteClient, LLUUID transactionID, LLUUID folderID,
+ public void HandleItemCreationFromTransaction(IClientAPI remoteClient, UUID transactionID, UUID folderID,
uint callbackID, string description, string name, sbyte invType,
sbyte type, byte wearableType, uint nextOwnerMask)
{
@@ -237,7 +237,7 @@ namespace OpenSim.Region.Environment.Modules.Agent.AssetTransaction
///
///
///
- public void HandleItemUpdateFromTransaction(IClientAPI remoteClient, LLUUID transactionID,
+ public void HandleItemUpdateFromTransaction(IClientAPI remoteClient, UUID transactionID,
InventoryItemBase item)
{
m_log.DebugFormat(
@@ -259,7 +259,7 @@ namespace OpenSim.Region.Environment.Modules.Agent.AssetTransaction
///
///
///
- public void HandleUDPUploadRequest(IClientAPI remoteClient, LLUUID assetID, LLUUID transaction, sbyte type,
+ public void HandleUDPUploadRequest(IClientAPI remoteClient, UUID assetID, UUID transaction, sbyte type,
byte[] data, bool storeLocal, bool tempFile)
{
if (((AssetType)type == AssetType.Texture ||
diff --git a/OpenSim/Region/Environment/Modules/Agent/TextureDownload/TextureDownloadModule.cs b/OpenSim/Region/Environment/Modules/Agent/TextureDownload/TextureDownloadModule.cs
index 8f81f3d..813d271 100644
--- a/OpenSim/Region/Environment/Modules/Agent/TextureDownload/TextureDownloadModule.cs
+++ b/OpenSim/Region/Environment/Modules/Agent/TextureDownload/TextureDownloadModule.cs
@@ -28,7 +28,7 @@
using System;
using System.Collections.Generic;
using System.Threading;
-using libsecondlife;
+using OpenMetaverse;
using Nini.Config;
using OpenSim.Framework;
using OpenSim.Region.Environment.Interfaces;
@@ -50,8 +50,8 @@ namespace OpenSim.Region.Environment.Modules.Agent.TextureDownload
///
/// Each user has their own texture download service.
///
- private readonly Dictionary m_userTextureServices =
- new Dictionary();
+ private readonly Dictionary m_userTextureServices =
+ new Dictionary();
private Scene m_scene;
private List m_scenes = new List();
@@ -109,7 +109,7 @@ namespace OpenSim.Region.Environment.Modules.Agent.TextureDownload
/// Cleanup the texture service related objects for the removed presence.
///
///
- private void EventManager_OnRemovePresence(LLUUID agentId)
+ private void EventManager_OnRemovePresence(UUID agentId)
{
UserTextureDownloadService textureService;
@@ -216,4 +216,4 @@ namespace OpenSim.Region.Environment.Modules.Agent.TextureDownload
m_scene.AddPendingDownloads(-1);
}
}
-}
\ No newline at end of file
+}
diff --git a/OpenSim/Region/Environment/Modules/Agent/TextureDownload/TextureNotFoundSender.cs b/OpenSim/Region/Environment/Modules/Agent/TextureDownload/TextureNotFoundSender.cs
index c5af174..f6d8543 100644
--- a/OpenSim/Region/Environment/Modules/Agent/TextureDownload/TextureNotFoundSender.cs
+++ b/OpenSim/Region/Environment/Modules/Agent/TextureDownload/TextureNotFoundSender.cs
@@ -25,8 +25,8 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-using libsecondlife;
-using libsecondlife.Packets;
+using OpenMetaverse;
+using OpenMetaverse.Packets;
using OpenSim.Framework;
using OpenSim.Region.Environment.Interfaces;
@@ -46,11 +46,11 @@ namespace OpenSim.Region.Environment.Modules.Agent.TextureDownload
// See ITextureSender
// private bool m_sending = false;
- private LLUUID m_textureId;
+ private UUID m_textureId;
// See ITextureSender
- public TextureNotFoundSender(IClientAPI client, LLUUID textureID)
+ public TextureNotFoundSender(IClientAPI client, UUID textureID)
{
// // m_client = client;
m_textureId = textureID;
@@ -101,4 +101,4 @@ namespace OpenSim.Region.Environment.Modules.Agent.TextureDownload
#endregion
}
-}
\ No newline at end of file
+}
diff --git a/OpenSim/Region/Environment/Modules/Agent/TextureDownload/UserTextureDownloadService.cs b/OpenSim/Region/Environment/Modules/Agent/TextureDownload/UserTextureDownloadService.cs
index e6ee75f..c38bc62 100644
--- a/OpenSim/Region/Environment/Modules/Agent/TextureDownload/UserTextureDownloadService.cs
+++ b/OpenSim/Region/Environment/Modules/Agent/TextureDownload/UserTextureDownloadService.cs
@@ -27,7 +27,7 @@
using System.Collections.Generic;
using System.Reflection;
-using libsecondlife;
+using OpenMetaverse;
using log4net;
using OpenSim.Framework;
using OpenSim.Framework.Communications.Limit;
@@ -65,8 +65,8 @@ namespace OpenSim.Region.Environment.Modules.Agent.TextureDownload
///
/// XXX Also going to limit requests for found textures.
///
- private readonly IRequestLimitStrategy foundTextureLimitStrategy
- = new RepeatLimitStrategy(MAX_ALLOWED_TEXTURE_REQUESTS);
+ private readonly IRequestLimitStrategy foundTextureLimitStrategy
+ = new RepeatLimitStrategy(MAX_ALLOWED_TEXTURE_REQUESTS);
private readonly IClientAPI m_client;
private readonly Scene m_scene;
@@ -80,15 +80,15 @@ namespace OpenSim.Region.Environment.Modules.Agent.TextureDownload
///
/// Holds texture senders before they have received the appropriate texture from the asset cache.
///
- private readonly Dictionary m_textureSenders = new Dictionary();
+ private readonly Dictionary m_textureSenders = new Dictionary();
///
/// We're going to limit requests for the same missing texture.
/// XXX This is really a temporary solution to deal with the situation where a client continually requests
/// the same missing textures
///
- private readonly IRequestLimitStrategy missingTextureLimitStrategy
- = new RepeatLimitStrategy(MAX_ALLOWED_TEXTURE_REQUESTS);
+ private readonly IRequestLimitStrategy missingTextureLimitStrategy
+ = new RepeatLimitStrategy(MAX_ALLOWED_TEXTURE_REQUESTS);
public UserTextureDownloadService(
IClientAPI client, Scene scene, BlockingQueue sharedQueue)
@@ -172,7 +172,7 @@ namespace OpenSim.Region.Environment.Modules.Agent.TextureDownload
///
///
///
- public void TextureCallback(LLUUID textureID, AssetBase texture)
+ public void TextureCallback(UUID textureID, AssetBase texture)
{
//m_log.DebugFormat("[USER TEXTURE DOWNLOAD SERVICE]: Calling TextureCallback with {0}, texture == null is {1}", textureID, (texture == null ? true : false));
diff --git a/OpenSim/Region/Environment/Modules/Agent/TextureSender/TextureSender.cs b/OpenSim/Region/Environment/Modules/Agent/TextureSender/TextureSender.cs
index 7554d1a..dbfd4d2 100644
--- a/OpenSim/Region/Environment/Modules/Agent/TextureSender/TextureSender.cs
+++ b/OpenSim/Region/Environment/Modules/Agent/TextureSender/TextureSender.cs
@@ -27,7 +27,7 @@
using System;
using System.Reflection;
-using libsecondlife.Packets;
+using OpenMetaverse.Packets;
using log4net;
using OpenSim.Framework;
using OpenSim.Region.Environment.Interfaces;
@@ -55,7 +55,7 @@ namespace OpenSim.Region.Environment.Modules.Agent.TextureSender
///
private AssetBase m_asset;
- //public LLUUID assetID { get { return m_asset.FullID; } }
+ //public UUID assetID { get { return m_asset.FullID; } }
// private bool m_cancel = false;
@@ -220,4 +220,4 @@ namespace OpenSim.Region.Environment.Modules.Agent.TextureSender
return numPackets;
}
}
-}
\ No newline at end of file
+}
diff --git a/OpenSim/Region/Environment/Modules/Agent/Xfer/XferModule.cs b/OpenSim/Region/Environment/Modules/Agent/Xfer/XferModule.cs
index 16874d7..3c69621 100644
--- a/OpenSim/Region/Environment/Modules/Agent/Xfer/XferModule.cs
+++ b/OpenSim/Region/Environment/Modules/Agent/Xfer/XferModule.cs
@@ -27,7 +27,7 @@
using System;
using System.Collections.Generic;
-using libsecondlife;
+using OpenMetaverse;
using Nini.Config;
using OpenSim.Framework;
using OpenSim.Region.Environment.Interfaces;
@@ -228,4 +228,4 @@ namespace OpenSim.Region.Environment.Modules.Agent.Xfer
#endregion
}
-}
\ No newline at end of file
+}
diff --git a/OpenSim/Region/Environment/Modules/Avatar/AvatarFactory/AvatarFactoryModule.cs b/OpenSim/Region/Environment/Modules/Avatar/AvatarFactory/AvatarFactoryModule.cs
index 5df3f52..9433cf6 100644
--- a/OpenSim/Region/Environment/Modules/Avatar/AvatarFactory/AvatarFactoryModule.cs
+++ b/OpenSim/Region/Environment/Modules/Avatar/AvatarFactory/AvatarFactoryModule.cs
@@ -29,7 +29,7 @@
using System;
using System.Collections.Generic;
using System.Threading;
-using libsecondlife;
+using OpenMetaverse;
using Nini.Config;
using OpenSim.Framework;
using OpenSim.Framework.Communications.Cache;
@@ -43,7 +43,7 @@ namespace OpenSim.Region.Environment.Modules
public class AvatarFactoryModule : IAvatarFactory
{
private Scene m_scene = null;
- private readonly Dictionary m_avatarsAppearance = new Dictionary();
+ private readonly Dictionary m_avatarsAppearance = new Dictionary();
private bool m_enablePersist = false;
private string m_connectionString;
@@ -51,10 +51,10 @@ namespace OpenSim.Region.Environment.Modules
private BaseDatabaseConnector m_databaseMapper;
private AppearanceTableMapper m_appearanceMapper;
- private Dictionary m_fetchesInProgress = new Dictionary();
+ private Dictionary m_fetchesInProgress = new Dictionary();
private object m_syncLock = new object();
- public bool TryGetAvatarAppearance(LLUUID avatarId, out AvatarAppearance appearance)
+ public bool TryGetAvatarAppearance(UUID avatarId, out AvatarAppearance appearance)
{
//should only let one thread at a time do this part
@@ -163,7 +163,7 @@ namespace OpenSim.Region.Environment.Modules
}
}
- private AvatarAppearance CreateDefault(LLUUID avatarId)
+ private AvatarAppearance CreateDefault(UUID avatarId)
{
AvatarAppearance appearance = null;
AvatarWearable[] wearables;
@@ -174,7 +174,7 @@ namespace OpenSim.Region.Environment.Modules
return appearance;
}
- private AvatarAppearance CheckDatabase(LLUUID avatarId)
+ private AvatarAppearance CheckDatabase(UUID avatarId)
{
AvatarAppearance appearance = null;
if (m_enablePersist)
@@ -192,7 +192,7 @@ namespace OpenSim.Region.Environment.Modules
return appearance;
}
- private AvatarAppearance CheckCache(LLUUID avatarId)
+ private AvatarAppearance CheckCache(UUID avatarId)
{
AvatarAppearance appearance = null;
lock (m_avatarsAppearance)
@@ -282,16 +282,16 @@ namespace OpenSim.Region.Environment.Modules
{
if (wear.Type < 13)
{
- if (wear.ItemID == LLUUID.Zero)
+ if (wear.ItemID == UUID.Zero)
{
- avatAppearance.Wearables[wear.Type].ItemID = LLUUID.Zero;
- avatAppearance.Wearables[wear.Type].AssetID = LLUUID.Zero;
+ avatAppearance.Wearables[wear.Type].ItemID = UUID.Zero;
+ avatAppearance.Wearables[wear.Type].AssetID = UUID.Zero;
UpdateDatabase(clientView.AgentId, avatAppearance);
}
else
{
- LLUUID assetId;
+ UUID assetId;
InventoryItemBase baseItem = profile.RootFolder.FindItem(wear.ItemID);
if (baseItem != null)
@@ -310,11 +310,11 @@ namespace OpenSim.Region.Environment.Modules
}
}
- public void UpdateDatabase(LLUUID userID, AvatarAppearance avatAppearance)
+ public void UpdateDatabase(UUID userID, AvatarAppearance avatAppearance)
{
if (m_enablePersist)
{
- m_appearanceMapper.Update(userID.UUID, avatAppearance);
+ m_appearanceMapper.Update(userID.Guid, avatAppearance);
}
}
diff --git a/OpenSim/Region/Environment/Modules/Avatar/Chat/ChatModule.cs b/OpenSim/Region/Environment/Modules/Avatar/Chat/ChatModule.cs
index 1493e32..e1599a8 100644
--- a/OpenSim/Region/Environment/Modules/Avatar/Chat/ChatModule.cs
+++ b/OpenSim/Region/Environment/Modules/Avatar/Chat/ChatModule.cs
@@ -32,7 +32,7 @@ using System.Net.Sockets;
using System.Reflection;
using System.Text.RegularExpressions;
using System.Threading;
-using libsecondlife;
+using OpenMetaverse;
using log4net;
using Nini.Config;
using OpenSim.Framework;
@@ -115,7 +115,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Chat
// chat works by redistributing every incoming chat
// message to each avatar in the scene
- LLVector3 pos = new LLVector3(128, 128, 30);
+ Vector3 pos = new Vector3(128, 128, 30);
((Scene)c.Scene).ForEachScenePresence(delegate(ScenePresence presence)
{
if (presence.IsChildAgent) return;
@@ -129,12 +129,12 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Chat
if (null == c.SenderObject)
client.SendChatMessage(c.Message, (byte)c.Type,
- pos, c.From, LLUUID.Zero,
+ pos, c.From, UUID.Zero,
(byte)ChatSourceType.Agent,
(byte)ChatAudibleLevel.Fully);
else
client.SendChatMessage(c.Message, (byte)c.Type,
- pos, c.From, LLUUID.Zero,
+ pos, c.From, UUID.Zero,
(byte)ChatSourceType.Object,
(byte)ChatAudibleLevel.Fully);
});
@@ -153,13 +153,13 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Chat
scene = m_scenes[0];
// Filled in since it's easier than rewriting right now.
- LLVector3 fromPos = e.Position;
- LLVector3 regionPos = new LLVector3(scene.RegionInfo.RegionLocX * Constants.RegionSize,
+ Vector3 fromPos = e.Position;
+ Vector3 regionPos = new Vector3(scene.RegionInfo.RegionLocX * Constants.RegionSize,
scene.RegionInfo.RegionLocY * Constants.RegionSize, 0);
string fromName = e.From;
string message = e.Message;
- LLUUID fromID = e.SenderUUID;
+ UUID fromID = e.SenderUUID;
if(message.Length >= 1000) // libomv limit
message = message.Substring(0, 1000);
@@ -172,7 +172,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Chat
if (avatar != null)
{
fromPos = avatar.AbsolutePosition;
- regionPos = new LLVector3(scene.RegionInfo.RegionLocX * Constants.RegionSize,
+ regionPos = new Vector3(scene.RegionInfo.RegionLocX * Constants.RegionSize,
scene.RegionInfo.RegionLocY * Constants.RegionSize, 0);
fromName = avatar.Firstname + " " + avatar.Lastname;
fromID = e.Sender.AgentId;
@@ -217,16 +217,16 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Chat
}
}
- private void TrySendChatMessage(ScenePresence presence, LLVector3 fromPos, LLVector3 regionPos,
- LLUUID fromAgentID, string fromName, ChatTypeEnum type,
+ private void TrySendChatMessage(ScenePresence presence, Vector3 fromPos, Vector3 regionPos,
+ UUID fromAgentID, string fromName, ChatTypeEnum type,
string message, ChatSourceType src)
{
// don't send stuff to child agents
if (presence.IsChildAgent) return;
- LLVector3 fromRegionPos = fromPos + regionPos;
- LLVector3 toRegionPos = presence.AbsolutePosition +
- new LLVector3(presence.Scene.RegionInfo.RegionLocX * Constants.RegionSize,
+ Vector3 fromRegionPos = fromPos + regionPos;
+ Vector3 toRegionPos = presence.AbsolutePosition +
+ new Vector3(presence.Scene.RegionInfo.RegionLocX * Constants.RegionSize,
presence.Scene.RegionInfo.RegionLocY * Constants.RegionSize, 0);
int dis = Math.Abs((int) Util.GetDistanceTo(toRegionPos, fromRegionPos));
diff --git a/OpenSim/Region/Environment/Modules/Avatar/Chat/IRCBridgeModule.cs b/OpenSim/Region/Environment/Modules/Avatar/Chat/IRCBridgeModule.cs
index 9df05e0..8fe5080 100644
--- a/OpenSim/Region/Environment/Modules/Avatar/Chat/IRCBridgeModule.cs
+++ b/OpenSim/Region/Environment/Modules/Avatar/Chat/IRCBridgeModule.cs
@@ -32,7 +32,7 @@ using System.Net.Sockets;
using System.Reflection;
using System.Text.RegularExpressions;
using System.Threading;
-using libsecondlife;
+using OpenMetaverse;
using log4net;
using Nini.Config;
using OpenSim.Framework;
@@ -617,7 +617,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Chat
public void ListenerRun()
{
string inputLine;
- LLVector3 pos = new LLVector3(128, 128, 20);
+ Vector3 pos = new Vector3(128, 128, 20);
while (m_enabled)
{
try
@@ -638,7 +638,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Chat
c.Position = pos;
c.From = data["nick"];
c.Sender = null;
- c.SenderUUID = LLUUID.Zero;
+ c.SenderUUID = UUID.Zero;
// is message "\001ACTION foo
// bar\001"? -> "/me foo bar"
@@ -684,9 +684,9 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Chat
c.Message = String.Format(format, args);
c.Type = ChatTypeEnum.Say;
c.Channel = 0;
- c.Position = new LLVector3(128, 128, 20);
+ c.Position = new Vector3(128, 128, 20);
c.Sender = null;
- c.SenderUUID = LLUUID.Zero;
+ c.SenderUUID = UUID.Zero;
foreach (Scene m_scene in m_scenes)
{
diff --git a/OpenSim/Region/Environment/Modules/Avatar/Currency/SampleMoney/SampleMoneyModule.cs b/OpenSim/Region/Environment/Modules/Avatar/Currency/SampleMoney/SampleMoneyModule.cs
index 2a0bba4..19c193f 100644
--- a/OpenSim/Region/Environment/Modules/Avatar/Currency/SampleMoney/SampleMoneyModule.cs
+++ b/OpenSim/Region/Environment/Modules/Avatar/Currency/SampleMoney/SampleMoneyModule.cs
@@ -32,7 +32,7 @@ using System.Net;
using System.Net.Sockets;
using System.Reflection;
using System.Xml;
-using libsecondlife;
+using OpenMetaverse;
using log4net;
using Nini.Config;
using Nwc.XmlRpc;
@@ -62,7 +62,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney
///
/// Where Stipends come from and Fees go to.
///
- // private LLUUID EconomyBaseAccount = LLUUID.Zero;
+ // private UUID EconomyBaseAccount = UUID.Zero;
private float EnergyEfficiency = 0f;
private bool gridmode = false;
@@ -72,7 +72,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney
private IConfigSource m_gConfig;
private bool m_keepMoneyAcrossLogins = true;
- private Dictionary m_KnownClientFunds = new Dictionary();
+ private Dictionary m_KnownClientFunds = new Dictionary();
// private string m_LandAddress = String.Empty;
private int m_minFundsBeforeRefresh = 100;
@@ -81,7 +81,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney
///
/// Region UUIDS indexed by AgentID
///
- private Dictionary m_rootAgents = new Dictionary();
+ private Dictionary m_rootAgents = new Dictionary();
///
/// Scenes by Region Handle
@@ -184,11 +184,11 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney
}
}
- public void ApplyUploadCharge(LLUUID agentID)
+ public void ApplyUploadCharge(UUID agentID)
{
}
- public bool ObjectGiveMoney(LLUUID objectID, LLUUID fromID, LLUUID toID, int amount)
+ public bool ObjectGiveMoney(UUID objectID, UUID fromID, UUID toID, int amount)
{
string description = String.Format("Object {0} pays {1}", resolveObjectName(objectID), resolveAgentName(toID));
@@ -252,7 +252,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney
PriceObjectScaleFactor = startupConfig.GetFloat("PriceObjectScaleFactor", 10);
PriceParcelRent = startupConfig.GetInt("PriceParcelRent", 1);
PriceGroupCreate = startupConfig.GetInt("PriceGroupCreate", -1);
- // string EBA = startupConfig.GetString("EconomyBaseAccount", LLUUID.Zero.ToString());
+ // string EBA = startupConfig.GetString("EconomyBaseAccount", UUID.Zero.ToString());
// Helpers.TryParse(EBA, out EconomyBaseAccount);
// UserLevelPaysFees = startupConfig.GetInt("UserLevelPaysFees", -1);
@@ -294,7 +294,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney
if (s != null && agent != null && childYN == false)
{
//s.RegionInfo.RegionHandle;
- LLUUID agentID = LLUUID.Zero;
+ UUID agentID = UUID.Zero;
int funds = 0;
Hashtable hbinfo =
@@ -302,7 +302,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney
s.RegionInfo.regionSecret);
if ((bool) hbinfo["success"] == true)
{
- Helpers.TryParse((string) hbinfo["agentId"], out agentID);
+ UUID.TryParse((string)hbinfo["agentId"], out agentID);
try
{
funds = (Int32) hbinfo["funds"];
@@ -331,7 +331,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney
(string) hbinfo["errorMessage"]);
client.SendAlertMessage((string) hbinfo["errorMessage"]);
}
- SendMoneyBalance(client, agentID, client.SessionId, LLUUID.Zero);
+ SendMoneyBalance(client, agentID, client.SessionId, UUID.Zero);
}
}
}
@@ -365,7 +365,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney
///
///
///
- private bool doMoneyTransfer(LLUUID Sender, LLUUID Receiver, int amount, int transactiontype, string description)
+ private bool doMoneyTransfer(UUID Sender, UUID Receiver, int amount, int transactiontype, string description)
{
bool result = false;
if (amount >= 0)
@@ -425,7 +425,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney
///
///
///
- public void SendMoneyBalance(IClientAPI client, LLUUID agentID, LLUUID SessionID, LLUUID TransactionID)
+ public void SendMoneyBalance(IClientAPI client, UUID agentID, UUID SessionID, UUID TransactionID)
{
if (client.AgentId == agentID && client.SessionId == SessionID)
{
@@ -456,7 +456,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney
///
///
///
- public Hashtable GetBalanceForUserFromMoneyServer(LLUUID agentId, LLUUID secureSessionID, LLUUID regionId, string regionSecret)
+ public Hashtable GetBalanceForUserFromMoneyServer(UUID agentId, UUID secureSessionID, UUID regionId, string regionSecret)
{
Hashtable MoneyBalanceRequestParams = new Hashtable();
MoneyBalanceRequestParams["agentId"] = agentId.ToString();
@@ -551,7 +551,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney
///
///
///
- public Hashtable claim_user(LLUUID agentId, LLUUID secureSessionID, LLUUID regionId, string regionSecret)
+ public Hashtable claim_user(UUID agentId, UUID secureSessionID, UUID regionId, string regionSecret)
{
Hashtable MoneyBalanceRequestParams = new Hashtable();
MoneyBalanceRequestParams["agentId"] = agentId.ToString();
@@ -563,12 +563,12 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney
IClientAPI sendMoneyBal = LocateClientObject(agentId);
if (sendMoneyBal != null)
{
- SendMoneyBalance(sendMoneyBal, agentId, sendMoneyBal.SessionId, LLUUID.Zero);
+ SendMoneyBalance(sendMoneyBal, agentId, sendMoneyBal.SessionId, UUID.Zero);
}
return MoneyRespData;
}
- private SceneObjectPart findPrim(LLUUID objectID)
+ private SceneObjectPart findPrim(UUID objectID)
{
lock (m_scenel)
{
@@ -584,7 +584,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney
return null;
}
- private string resolveObjectName(LLUUID objectID)
+ private string resolveObjectName(UUID objectID)
{
SceneObjectPart part = findPrim(objectID);
if (part != null)
@@ -594,7 +594,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney
return String.Empty;
}
- private string resolveAgentName(LLUUID agentID)
+ private string resolveAgentName(UUID agentID)
{
// try avatar username surname
Scene scene = GetRandomScene();
@@ -607,7 +607,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney
return String.Empty;
}
- private void BalanceUpdate(LLUUID senderID, LLUUID receiverID, bool transactionresult, string description)
+ private void BalanceUpdate(UUID senderID, UUID receiverID, bool transactionresult, string description)
{
IClientAPI sender = LocateClientObject(senderID);
IClientAPI receiver = LocateClientObject(receiverID);
@@ -616,12 +616,12 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney
{
if (sender != null)
{
- sender.SendMoneyBalance(LLUUID.Random(), transactionresult, Helpers.StringToField(description), GetFundsForAgentID(senderID));
+ sender.SendMoneyBalance(UUID.Random(), transactionresult, Utils.StringToBytes(description), GetFundsForAgentID(senderID));
}
if (receiver != null)
{
- receiver.SendMoneyBalance(LLUUID.Random(), transactionresult, Helpers.StringToField(description), GetFundsForAgentID(receiverID));
+ receiver.SendMoneyBalance(UUID.Random(), transactionresult, Utils.StringToBytes(description), GetFundsForAgentID(receiverID));
}
}
}
@@ -633,7 +633,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney
///
///
///
- public bool TransferMoneyonMoneyServer(LLUUID sourceId, LLUUID destId, int amount, int transactiontype, string description)
+ public bool TransferMoneyonMoneyServer(UUID sourceId, UUID destId, int amount, int transactiontype, string description)
{
int aggregatePermInventory = 0;
int aggregatePermNextOwner = 0;
@@ -709,7 +709,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney
return rvalue;
}
- public int GetRemoteBalance(LLUUID agentId)
+ public int GetRemoteBalance(UUID agentId)
{
int funds = 0;
@@ -755,7 +755,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney
}
SetLocalFundsForAgentID(agentId, funds);
- SendMoneyBalance(aClient, agentId, aClient.SessionId, LLUUID.Zero);
+ SendMoneyBalance(aClient, agentId, aClient.SessionId, UUID.Zero);
}
else
{
@@ -776,10 +776,10 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney
if (requestData.ContainsKey("agentId"))
{
- LLUUID agentId = LLUUID.Zero;
+ UUID agentId = UUID.Zero;
- Helpers.TryParse((string) requestData["agentId"], out agentId);
- if (agentId != LLUUID.Zero)
+ UUID.TryParse((string) requestData["agentId"], out agentId);
+ if (agentId != UUID.Zero)
{
GetRemoteBalance(agentId);
}
@@ -809,13 +809,13 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney
Hashtable retparam = new Hashtable();
Hashtable requestData = (Hashtable) request.Params[0];
- LLUUID agentId = LLUUID.Zero;
- LLUUID soundId = LLUUID.Zero;
- LLUUID regionId = LLUUID.Zero;
+ UUID agentId = UUID.Zero;
+ UUID soundId = UUID.Zero;
+ UUID regionId = UUID.Zero;
- Helpers.TryParse((string) requestData["agentId"], out agentId);
- Helpers.TryParse((string) requestData["soundId"], out soundId);
- Helpers.TryParse((string) requestData["regionId"], out regionId);
+ UUID.TryParse((string) requestData["agentId"], out agentId);
+ UUID.TryParse((string) requestData["soundId"], out soundId);
+ UUID.TryParse((string) requestData["regionId"], out regionId);
string text = (string) requestData["text"];
string secret = (string) requestData["secret"];
@@ -828,9 +828,12 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney
IClientAPI client = LocateClientObject(agentId);
if (client != null)
{
- if (soundId != LLUUID.Zero)
- client.SendPlayAttachedSound(soundId, LLUUID.Zero, LLUUID.Zero, 1.0f, 0);
- client.SendBlueBoxMessage(LLUUID.Zero, LLUUID.Zero, "", text);
+
+ if (soundId != UUID.Zero)
+ client.SendPlayAttachedSound(soundId, UUID.Zero, UUID.Zero, 1.0f, 0);
+
+ client.SendBlueBoxMessage(UUID.Zero, UUID.Zero, "", text);
+
retparam.Add("success", true);
}
else
@@ -843,10 +846,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney
retparam.Add("success", false);
}
}
- else
- {
- retparam.Add("success", false);
- }
+
ret.Value = retparam;
return ret;
}
@@ -856,14 +856,14 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney
public XmlRpcResponse quote_func(XmlRpcRequest request)
{
Hashtable requestData = (Hashtable) request.Params[0];
- LLUUID agentId = LLUUID.Zero;
+ UUID agentId = UUID.Zero;
int amount = 0;
Hashtable quoteResponse = new Hashtable();
XmlRpcResponse returnval = new XmlRpcResponse();
if (requestData.ContainsKey("agentId") && requestData.ContainsKey("currencyBuy"))
{
- Helpers.TryParse((string) requestData["agentId"], out agentId);
+ UUID.TryParse((string) requestData["agentId"], out agentId);
try
{
amount = (Int32) requestData["currencyBuy"];
@@ -894,11 +894,11 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney
public XmlRpcResponse buy_func(XmlRpcRequest request)
{
Hashtable requestData = (Hashtable) request.Params[0];
- LLUUID agentId = LLUUID.Zero;
+ UUID agentId = UUID.Zero;
int amount = 0;
if (requestData.ContainsKey("agentId") && requestData.ContainsKey("currencyBuy"))
{
- Helpers.TryParse((string) requestData["agentId"], out agentId);
+ UUID.TryParse((string) requestData["agentId"], out agentId);
try
{
amount = (Int32) requestData["currencyBuy"];
@@ -906,7 +906,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney
catch (InvalidCastException)
{
}
- if (agentId != LLUUID.Zero)
+ if (agentId != UUID.Zero)
{
lock (m_KnownClientFunds)
{
@@ -922,7 +922,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney
IClientAPI client = LocateClientObject(agentId);
if (client != null)
{
- SendMoneyBalance(client, agentId, client.SessionId, LLUUID.Zero);
+ SendMoneyBalance(client, agentId, client.SessionId, UUID.Zero);
}
}
}
@@ -974,11 +974,11 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney
Hashtable retparam = new Hashtable();
Hashtable requestData = (Hashtable) request.Params[0];
- LLUUID agentId = LLUUID.Zero;
+ UUID agentId = UUID.Zero;
int amount = 0;
if (requestData.ContainsKey("agentId") && requestData.ContainsKey("currencyBuy"))
{
- Helpers.TryParse((string) requestData["agentId"], out agentId);
+ UUID.TryParse((string) requestData["agentId"], out agentId);
try
{
amount = (Int32) requestData["currencyBuy"];
@@ -986,7 +986,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney
catch (InvalidCastException)
{
}
- if (agentId != LLUUID.Zero)
+ if (agentId != UUID.Zero)
{
lock (m_KnownClientFunds)
{
@@ -1002,7 +1002,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney
IClientAPI client = LocateClientObject(agentId);
if (client != null)
{
- SendMoneyBalance(client, agentId, client.SessionId, LLUUID.Zero);
+ SendMoneyBalance(client, agentId, client.SessionId, UUID.Zero);
}
}
}
@@ -1020,7 +1020,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney
/// Ensures that the agent accounting data is set up in this instance.
///
///
- private void CheckExistAndRefreshFunds(LLUUID agentID)
+ private void CheckExistAndRefreshFunds(UUID agentID)
{
lock (m_KnownClientFunds)
{
@@ -1043,7 +1043,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney
///
///
///
- private int GetFundsForAgentID(LLUUID AgentID)
+ private int GetFundsForAgentID(UUID AgentID)
{
int returnfunds = 0;
lock (m_KnownClientFunds)
@@ -1060,7 +1060,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney
return returnfunds;
}
- private void SetLocalFundsForAgentID(LLUUID AgentID, int amount)
+ private void SetLocalFundsForAgentID(UUID AgentID, int amount)
{
lock (m_KnownClientFunds)
{
@@ -1084,7 +1084,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney
///
///
///
- private IClientAPI LocateClientObject(LLUUID AgentID)
+ private IClientAPI LocateClientObject(UUID AgentID)
{
ScenePresence tPresence = null;
IClientAPI rclient = null;
@@ -1110,7 +1110,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney
return null;
}
- private Scene LocateSceneClientIn(LLUUID AgentId)
+ private Scene LocateSceneClientIn(UUID AgentId)
{
lock (m_scenel)
{
@@ -1148,7 +1148,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney
///
///
///
- public Scene GetSceneByUUID(LLUUID RegionID)
+ public Scene GetSceneByUUID(UUID RegionID)
{
lock (m_scenel)
{
@@ -1167,7 +1167,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney
#region event Handlers
- public void requestPayPrice(IClientAPI client, LLUUID objectID)
+ public void requestPayPrice(IClientAPI client, UUID objectID)
{
Scene scene = LocateSceneClientIn(client.AgentId);
if (scene == null)
@@ -1186,7 +1186,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney
/// When the client closes the connection we remove their accounting info from memory to free up resources.
///
///
- public void ClientClosed(LLUUID AgentID)
+ public void ClientClosed(UUID AgentID)
{
lock (m_KnownClientFunds)
{
@@ -1204,7 +1204,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney
/// Event called Economy Data Request handler.
///
///
- public void EconomyDataRequestHandler(LLUUID agentId)
+ public void EconomyDataRequestHandler(UUID agentId)
{
IClientAPI user = LocateClientObject(agentId);
@@ -1309,11 +1309,11 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney
if (e.sender != e.receiver)
{
- sender.SendMoneyBalance(LLUUID.Random(), transactionresult, Helpers.StringToField(e.description), GetFundsForAgentID(e.sender));
+ sender.SendMoneyBalance(UUID.Random(), transactionresult, Utils.StringToBytes(e.description), GetFundsForAgentID(e.sender));
}
if (receiver != null)
{
- receiver.SendMoneyBalance(LLUUID.Random(), transactionresult, Helpers.StringToField(e.description), GetFundsForAgentID(part.OwnerID));
+ receiver.SendMoneyBalance(UUID.Random(), transactionresult, Utils.StringToBytes(e.description), GetFundsForAgentID(part.OwnerID));
}
}
return;
@@ -1330,13 +1330,13 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney
{
if (sender != null)
{
- sender.SendMoneyBalance(LLUUID.Random(), transactionresult, Helpers.StringToField(e.description), GetFundsForAgentID(e.sender));
+ sender.SendMoneyBalance(UUID.Random(), transactionresult, Utils.StringToBytes(e.description), GetFundsForAgentID(e.sender));
}
}
if (receiver != null)
{
- receiver.SendMoneyBalance(LLUUID.Random(), transactionresult, Helpers.StringToField(e.description), GetFundsForAgentID(e.receiver));
+ receiver.SendMoneyBalance(UUID.Random(), transactionresult, Utils.StringToBytes(e.description), GetFundsForAgentID(e.receiver));
}
}
else
@@ -1369,7 +1369,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney
/// Event Handler for when the client logs out.
///
///
- private void ClientLoggedOut(LLUUID AgentId)
+ private void ClientLoggedOut(UUID AgentId)
{
lock (m_rootAgents)
{
@@ -1396,7 +1396,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney
///
///
///
- private void AvatarEnteringParcel(ScenePresence avatar, int localLandID, LLUUID regionID)
+ private void AvatarEnteringParcel(ScenePresence avatar, int localLandID, UUID regionID)
{
lock (m_rootAgents)
{
@@ -1404,8 +1404,6 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney
{
if (avatar.Scene.RegionInfo.originRegionID != m_rootAgents[avatar.UUID])
{
-
-
m_rootAgents[avatar.UUID] = avatar.Scene.RegionInfo.originRegionID;
@@ -1527,7 +1525,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney
else
{
string killer = DeadAvatar.Scene.CommsManager.UUIDNameRequestString(part.OwnerID);
- DeadAvatar.ControllingClient.SendAgentAlertMessage("You impailed yourself on " + part.Name + " owned by " + killer +"!", true);
+ DeadAvatar.ControllingClient.SendAgentAlertMessage("You impaled yourself on " + part.Name + " owned by " + killer +"!", true);
}
//DeadAvatar.Scene. part.ObjectOwner
}
@@ -1564,8 +1562,8 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Currency.SampleMoney
#endregion
- public void ObjectBuy(IClientAPI remoteClient, LLUUID agentID,
- LLUUID sessionID, LLUUID groupID, LLUUID categoryID,
+ public void ObjectBuy(IClientAPI remoteClient, UUID agentID,
+ UUID sessionID, UUID groupID, UUID categoryID,
uint localID, byte saleType, int salePrice)
{
GetClientFunds(remoteClient);
diff --git a/OpenSim/Region/Environment/Modules/Avatar/Friends/FriendsModule.cs b/OpenSim/Region/Environment/Modules/Avatar/Friends/FriendsModule.cs
index 4a98622..0be540d 100644
--- a/OpenSim/Region/Environment/Modules/Avatar/Friends/FriendsModule.cs
+++ b/OpenSim/Region/Environment/Modules/Avatar/Friends/FriendsModule.cs
@@ -28,8 +28,8 @@ using System;
using System.Collections;
using System.Collections.Generic;
using System.Reflection;
-using libsecondlife;
-using libsecondlife.Packets;
+using OpenMetaverse;
+using OpenMetaverse.Packets;
using log4net;
using Nini.Config;
using Nwc.XmlRpc;
@@ -43,10 +43,10 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Friends
{
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
- private Dictionary> FriendLists = new Dictionary>();
- private Dictionary m_pendingFriendRequests = new Dictionary();
- private Dictionary m_rootAgents = new Dictionary();
- private Dictionary> StoredFriendListUpdates = new Dictionary>();
+ private Dictionary> FriendLists = new Dictionary>();
+ private Dictionary m_pendingFriendRequests = new Dictionary();
+ private Dictionary m_rootAgents = new Dictionary();
+ private Dictionary> StoredFriendListUpdates = new Dictionary>();
private List m_scene = new List();
@@ -98,16 +98,16 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Friends
if (requestData.ContainsKey("agent_id") && requestData.ContainsKey("notify_id") && requestData.ContainsKey("status"))
{
- LLUUID notifyAgentId = LLUUID.Zero;
- LLUUID notifyAboutAgentId = LLUUID.Zero;
+ UUID notifyAgentId = UUID.Zero;
+ UUID notifyAboutAgentId = UUID.Zero;
bool notifyOnlineStatus = false;
if ((string)requestData["status"] == "TRUE")
notifyOnlineStatus = true;
- Helpers.TryParse((string)requestData["notify_id"], out notifyAgentId);
+ UUID.TryParse((string)requestData["notify_id"], out notifyAgentId);
- Helpers.TryParse((string)requestData["agent_id"], out notifyAboutAgentId);
+ UUID.TryParse((string)requestData["agent_id"], out notifyAboutAgentId);
m_log.InfoFormat("[PRESENCE]: Got presence update for {0}, and we're telling {1}, with a status {2}", notifyAboutAgentId.ToString(), notifyAgentId.ToString(), notifyOnlineStatus.ToString());
ScenePresence avatar = GetPresenceFromAgentID(notifyAgentId);
if (avatar != null)
@@ -189,7 +189,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Friends
}
- private void doFriendListUpdateOnline(LLUUID AgentId)
+ private void doFriendListUpdateOnline(UUID AgentId)
{
List fl = new List();
@@ -213,7 +213,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Friends
}
}
- List UpdateUsers = new List();
+ List UpdateUsers = new List();
foreach (FriendListItem f in fl)
{
@@ -226,7 +226,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Friends
}
}
}
- foreach (LLUUID user in UpdateUsers)
+ foreach (UUID user in UpdateUsers)
{
ScenePresence av = GetPresenceFromAgentID(user);
if (av != null)
@@ -245,7 +245,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Friends
if (fli.Friend == AgentId)
{
fli.onlinestatus = true;
- LLUUID[] Agents = new LLUUID[1];
+ UUID[] Agents = new UUID[1];
Agents[0] = AgentId;
av.ControllingClient.SendAgentOnline(Agents);
@@ -266,7 +266,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Friends
}
}
- private void ClientLoggedOut(LLUUID AgentId)
+ private void ClientLoggedOut(UUID AgentId)
{
lock (m_rootAgents)
{
@@ -284,7 +284,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Friends
lfli = FriendLists[AgentId];
}
}
- List updateUsers = new List();
+ List updateUsers = new List();
foreach (FriendListItem fli in lfli)
{
if (fli.onlinestatus == true)
@@ -352,7 +352,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Friends
ScenePresence av = GetPresenceFromAgentID(updateUsers[i]);
if (av != null)
{
- LLUUID[] agents = new LLUUID[1];
+ UUID[] agents = new UUID[1];
agents[0] = AgentId;
av.ControllingClient.SendAgentOffline(agents);
}
@@ -364,7 +364,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Friends
}
}
- private void AvatarEnteringParcel(ScenePresence avatar, int localLandID, LLUUID regionID)
+ private void AvatarEnteringParcel(ScenePresence avatar, int localLandID, UUID regionID)
{
lock (m_rootAgents)
{
@@ -427,7 +427,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Friends
}
}
- private ScenePresence GetPresenceFromAgentID(LLUUID AgentID)
+ private ScenePresence GetPresenceFromAgentID(UUID AgentID)
{
ScenePresence returnAgent = null;
lock (m_scene)
@@ -451,11 +451,11 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Friends
#region FriendRequestHandling
- private void OnInstantMessage(IClientAPI client, LLUUID fromAgentID,
- LLUUID fromAgentSession, LLUUID toAgentID,
- LLUUID imSessionID, uint timestamp, string fromAgentName,
+ private void OnInstantMessage(IClientAPI client, UUID fromAgentID,
+ UUID fromAgentSession, UUID toAgentID,
+ UUID imSessionID, uint timestamp, string fromAgentName,
string message, byte dialog, bool fromGroup, byte offline,
- uint ParentEstateID, LLVector3 Position, LLUUID RegionID,
+ uint ParentEstateID, Vector3 Position, UUID RegionID,
byte[] binaryBucket)
{
// Friend Requests go by Instant Message.. using the dialog param
@@ -464,17 +464,17 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Friends
// 38 == Offer friendship
if (dialog == (byte) 38)
{
- LLUUID friendTransactionID = LLUUID.Random();
+ UUID friendTransactionID = UUID.Random();
m_pendingFriendRequests.Add(friendTransactionID, fromAgentID);
m_log.Info("[FRIEND]: 38 - From:" + fromAgentID.ToString() + " To: " + toAgentID.ToString() + " Session:" + imSessionID.ToString() + " Message:" +
message);
GridInstantMessage msg = new GridInstantMessage();
- msg.fromAgentID = fromAgentID.UUID;
- msg.fromAgentSession = fromAgentSession.UUID;
- msg.toAgentID = toAgentID.UUID;
- msg.imSessionID = friendTransactionID.UUID; // This is the item we're mucking with here
+ msg.fromAgentID = fromAgentID.Guid;
+ msg.fromAgentSession = fromAgentSession.Guid;
+ msg.toAgentID = toAgentID.Guid;
+ msg.imSessionID = friendTransactionID.Guid; // This is the item we're mucking with here
m_log.Info("[FRIEND]: Filling Session: " + msg.imSessionID.ToString());
msg.timestamp = timestamp;
if (client != null)
@@ -490,8 +490,8 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Friends
msg.fromGroup = fromGroup;
msg.offline = offline;
msg.ParentEstateID = ParentEstateID;
- msg.Position = new sLLVector3(Position);
- msg.RegionID = RegionID.UUID;
+ msg.Position = Position;
+ msg.RegionID = RegionID.Guid;
msg.binaryBucket = binaryBucket;
// We don't really care which scene we pipe it through.
m_scene[0].TriggerGridInstantMessage(msg, InstantMessageReceiver.IMModule);
@@ -512,7 +512,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Friends
}
}
- private void OnApprovedFriendRequest(IClientAPI client, LLUUID agentID, LLUUID transactionID, List callingCardFolders)
+ private void OnApprovedFriendRequest(IClientAPI client, UUID agentID, UUID transactionID, List callingCardFolders)
{
if (m_pendingFriendRequests.ContainsKey(transactionID))
{
@@ -528,18 +528,18 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Friends
// Compose response to other agent.
GridInstantMessage msg = new GridInstantMessage();
- msg.toAgentID = m_pendingFriendRequests[transactionID].UUID;
- msg.fromAgentID = agentID.UUID;
+ msg.toAgentID = m_pendingFriendRequests[transactionID].Guid;
+ msg.fromAgentID = agentID.Guid;
msg.fromAgentName = client.Name;
- msg.fromAgentSession = client.SessionId.UUID;
+ msg.fromAgentSession = client.SessionId.Guid;
msg.fromGroup = false;
- msg.imSessionID = transactionID.UUID;
- msg.message = agentID.UUID.ToString();
+ msg.imSessionID = transactionID.Guid;
+ msg.message = agentID.Guid.ToString();
msg.ParentEstateID = 0;
msg.timestamp = (uint) Util.UnixTimeSinceEpoch();
- msg.RegionID = SceneAgentIn.RegionInfo.RegionID.UUID;
+ msg.RegionID = SceneAgentIn.RegionInfo.RegionID.Guid;
msg.dialog = (byte) 39; // Approved friend request
- msg.Position = new sLLVector3();
+ msg.Position = Vector3.Zero;
msg.offline = (byte) 0;
msg.binaryBucket = new byte[0];
// We don't really care which scene we pipe it through, it goes to the shared IM Module and/or the database
@@ -548,7 +548,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Friends
SceneAgentIn.StoreAddFriendship(m_pendingFriendRequests[transactionID], agentID, (uint) 1);
- //LLUUID[] Agents = new LLUUID[1];
+ //UUID[] Agents = new UUID[1];
//Agents[0] = msg.toAgentID;
//av.ControllingClient.SendAgentOnline(Agents);
@@ -557,7 +557,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Friends
}
}
- private void OnDenyFriendRequest(IClientAPI client, LLUUID agentID, LLUUID transactionID, List callingCardFolders)
+ private void OnDenyFriendRequest(IClientAPI client, UUID agentID, UUID transactionID, List callingCardFolders)
{
if (m_pendingFriendRequests.ContainsKey(transactionID))
{
@@ -571,18 +571,18 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Friends
}
// Compose response to other agent.
GridInstantMessage msg = new GridInstantMessage();
- msg.toAgentID = m_pendingFriendRequests[transactionID].UUID;
- msg.fromAgentID = agentID.UUID;
+ msg.toAgentID = m_pendingFriendRequests[transactionID].Guid;
+ msg.fromAgentID = agentID.Guid;
msg.fromAgentName = client.Name;
- msg.fromAgentSession = client.SessionId.UUID;
+ msg.fromAgentSession = client.SessionId.Guid;
msg.fromGroup = false;
- msg.imSessionID = transactionID.UUID;
- msg.message = agentID.UUID.ToString();
+ msg.imSessionID = transactionID.Guid;
+ msg.message = agentID.Guid.ToString();
msg.ParentEstateID = 0;
msg.timestamp = (uint) Util.UnixTimeSinceEpoch();
- msg.RegionID = SceneAgentIn.RegionInfo.RegionID.UUID;
+ msg.RegionID = SceneAgentIn.RegionInfo.RegionID.Guid;
msg.dialog = (byte) 40; // Deny friend request
- msg.Position = new sLLVector3();
+ msg.Position = Vector3.Zero;
msg.offline = (byte) 0;
msg.binaryBucket = new byte[0];
SceneAgentIn.TriggerGridInstantMessage(msg, InstantMessageReceiver.IMModule);
@@ -590,7 +590,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Friends
}
}
- private void OnTerminateFriendship(IClientAPI client, LLUUID agent, LLUUID exfriendID)
+ private void OnTerminateFriendship(IClientAPI client, UUID agent, UUID exfriendID)
{
m_scene[0].StoreRemoveFriendship(agent, exfriendID);
// TODO: Inform the client that the ExFriend is offline
@@ -599,10 +599,10 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Friends
private void OnGridInstantMessage(GridInstantMessage msg)
{
// Trigger the above event handler
- OnInstantMessage(null, new LLUUID(msg.fromAgentID), new LLUUID(msg.fromAgentSession),
- new LLUUID(msg.toAgentID), new LLUUID(msg.imSessionID), msg.timestamp, msg.fromAgentName,
+ OnInstantMessage(null, new UUID(msg.fromAgentID), new UUID(msg.fromAgentSession),
+ new UUID(msg.toAgentID), new UUID(msg.imSessionID), msg.timestamp, msg.fromAgentName,
msg.message, msg.dialog, msg.fromGroup, msg.offline, msg.ParentEstateID,
- new LLVector3(msg.Position.x, msg.Position.y, msg.Position.z), new LLUUID(msg.RegionID),
+ new Vector3(msg.Position.X, msg.Position.Y, msg.Position.Z), new UUID(msg.RegionID),
msg.binaryBucket);
}
@@ -611,8 +611,8 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Friends
public struct StoredFriendListUpdate
{
- public LLUUID storedFor;
- public LLUUID storedAbout;
+ public UUID storedFor;
+ public UUID storedAbout;
public bool OnlineYN;
}
}
diff --git a/OpenSim/Region/Environment/Modules/Avatar/Groups/GroupsModule.cs b/OpenSim/Region/Environment/Modules/Avatar/Groups/GroupsModule.cs
index eaa5013..ad0cac0 100644
--- a/OpenSim/Region/Environment/Modules/Avatar/Groups/GroupsModule.cs
+++ b/OpenSim/Region/Environment/Modules/Avatar/Groups/GroupsModule.cs
@@ -28,7 +28,7 @@
using System;
using System.Collections.Generic;
using System.Reflection;
-using libsecondlife;
+using OpenMetaverse;
using log4net;
using Nini.Config;
using OpenSim.Framework;
@@ -41,11 +41,11 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Groups
{
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
- private Dictionary m_grouplistmap = new Dictionary();
- private Dictionary m_groupmap = new Dictionary();
- private Dictionary m_iclientmap = new Dictionary();
- private Dictionary m_groupUUIDGroup = new Dictionary();
- private LLUUID opensimulatorGroupID = new LLUUID("00000000-68f9-1111-024e-222222111123");
+ private Dictionary m_grouplistmap = new Dictionary();
+ private Dictionary m_groupmap = new Dictionary();
+ private Dictionary m_iclientmap = new Dictionary();
+ private Dictionary m_groupUUIDGroup = new Dictionary();
+ private UUID opensimulatorGroupID = new UUID("00000000-68f9-1111-024e-222222111123");
private List m_scene = new List();
@@ -161,13 +161,13 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Groups
client.SendGroupMembership(updateGroups);
}
- private void OnAgentDataUpdateRequest(IClientAPI remoteClient, LLUUID AgentID, LLUUID SessionID)
+ private void OnAgentDataUpdateRequest(IClientAPI remoteClient, UUID AgentID, UUID SessionID)
{
// Adam, this is one of those impossible to refactor items without resorting to .Split hackery
string firstname = remoteClient.FirstName;
string lastname = remoteClient.LastName;
- LLUUID ActiveGroupID = LLUUID.Zero;
+ UUID ActiveGroupID = UUID.Zero;
uint ActiveGroupPowers = 0;
string ActiveGroupName = "OpenSimulator Tester";
string ActiveGroupTitle = "I IZ N0T";
@@ -202,11 +202,11 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Groups
}
}
- private void OnInstantMessage(IClientAPI client, LLUUID fromAgentID,
- LLUUID fromAgentSession, LLUUID toAgentID,
- LLUUID imSessionID, uint timestamp, string fromAgentName,
+ private void OnInstantMessage(IClientAPI client, UUID fromAgentID,
+ UUID fromAgentSession, UUID toAgentID,
+ UUID imSessionID, uint timestamp, string fromAgentName,
string message, byte dialog, bool fromGroup, byte offline,
- uint ParentEstateID, LLVector3 Position, LLUUID RegionID,
+ uint ParentEstateID, Vector3 Position, UUID RegionID,
byte[] binaryBucket)
{
}
@@ -214,16 +214,16 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Groups
private void OnGridInstantMessage(GridInstantMessage msg)
{
// Trigger the above event handler
- OnInstantMessage(null, new LLUUID(msg.fromAgentID), new LLUUID(msg.fromAgentSession),
- new LLUUID(msg.toAgentID), new LLUUID(msg.imSessionID), msg.timestamp, msg.fromAgentName,
+ OnInstantMessage(null, new UUID(msg.fromAgentID), new UUID(msg.fromAgentSession),
+ new UUID(msg.toAgentID), new UUID(msg.imSessionID), msg.timestamp, msg.fromAgentName,
msg.message, msg.dialog, msg.fromGroup, msg.offline, msg.ParentEstateID,
- new LLVector3(msg.Position.x, msg.Position.y, msg.Position.z), new LLUUID(msg.RegionID),
+ new Vector3(msg.Position.X, msg.Position.Y, msg.Position.Z), new UUID(msg.RegionID),
msg.binaryBucket);
}
- private void HandleUUIDGroupNameRequest(LLUUID id,IClientAPI remote_client)
+ private void HandleUUIDGroupNameRequest(UUID id,IClientAPI remote_client)
{
string groupnamereply = "Unknown";
- LLUUID groupUUID = LLUUID.Zero;
+ UUID groupUUID = UUID.Zero;
lock (m_groupUUIDGroup)
{
@@ -236,7 +236,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Groups
}
remote_client.SendGroupNameReply(groupUUID, groupnamereply);
}
- private void OnClientClosed(LLUUID agentID)
+ private void OnClientClosed(UUID agentID)
{
lock (m_iclientmap)
{
diff --git a/OpenSim/Region/Environment/Modules/Avatar/InstantMessage/InstantMessageModule.cs b/OpenSim/Region/Environment/Modules/Avatar/InstantMessage/InstantMessageModule.cs
index bb3303f..6b2de80 100644
--- a/OpenSim/Region/Environment/Modules/Avatar/InstantMessage/InstantMessageModule.cs
+++ b/OpenSim/Region/Environment/Modules/Avatar/InstantMessage/InstantMessageModule.cs
@@ -30,7 +30,7 @@ using System.Collections.Generic;
using System.Reflection;
using System.Net;
using System.Threading;
-using libsecondlife;
+using OpenMetaverse;
using log4net;
using Nini.Config;
using Nwc.XmlRpc;
@@ -45,7 +45,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.InstantMessage
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
private readonly List m_scenes = new List();
- private Dictionary m_userRegionMap = new Dictionary();
+ private Dictionary m_userRegionMap = new Dictionary();
#region IRegionModule Members
@@ -106,11 +106,11 @@ namespace OpenSim.Region.Environment.Modules.Avatar.InstantMessage
client.OnInstantMessage += OnInstantMessage;
}
- private void OnInstantMessage(IClientAPI client, LLUUID fromAgentID,
- LLUUID fromAgentSession, LLUUID toAgentID,
- LLUUID imSessionID, uint timestamp, string fromAgentName,
+ private void OnInstantMessage(IClientAPI client, UUID fromAgentID,
+ UUID fromAgentSession, UUID toAgentID,
+ UUID imSessionID, uint timestamp, string fromAgentName,
string message, byte dialog, bool fromGroup, byte offline,
- uint ParentEstateID, LLVector3 Position, LLUUID RegionID,
+ uint ParentEstateID, Vector3 Position, UUID RegionID,
byte[] binaryBucket)
{
bool dialogHandledElsewhere
@@ -122,8 +122,8 @@ namespace OpenSim.Region.Environment.Modules.Avatar.InstantMessage
// IM dialogs need to be pre-processed and have their sessionID filled by the server
// so the sim can match the transaction on the return packet.
- // Don't send a Friend Dialog IM with a LLUUID.Zero session.
- if (!(dialogHandledElsewhere && imSessionID == LLUUID.Zero))
+ // Don't send a Friend Dialog IM with a UUID.Zero session.
+ if (!(dialogHandledElsewhere && imSessionID == UUID.Zero))
{
// Try root avatar only first
foreach (Scene scene in m_scenes)
@@ -195,10 +195,10 @@ namespace OpenSim.Region.Environment.Modules.Avatar.InstantMessage
private void OnGridInstantMessage(GridInstantMessage msg)
{
// Trigger the above event handler
- OnInstantMessage(null, new LLUUID(msg.fromAgentID), new LLUUID(msg.fromAgentSession),
- new LLUUID(msg.toAgentID), new LLUUID(msg.imSessionID), msg.timestamp, msg.fromAgentName,
+ OnInstantMessage(null, new UUID(msg.fromAgentID), new UUID(msg.fromAgentSession),
+ new UUID(msg.toAgentID), new UUID(msg.imSessionID), msg.timestamp, msg.fromAgentName,
msg.message, msg.dialog, msg.fromGroup, msg.offline, msg.ParentEstateID,
- new LLVector3(msg.Position.x, msg.Position.y, msg.Position.z), new LLUUID(msg.RegionID),
+ new Vector3(msg.Position.X, msg.Position.Y, msg.Position.Z), new UUID(msg.RegionID),
msg.binaryBucket);
}
@@ -214,10 +214,10 @@ namespace OpenSim.Region.Environment.Modules.Avatar.InstantMessage
{
bool successful = false;
// various rational defaults
- LLUUID fromAgentID = LLUUID.Zero;
- LLUUID fromAgentSession = LLUUID.Zero;
- LLUUID toAgentID = LLUUID.Zero;
- LLUUID imSessionID = LLUUID.Zero;
+ UUID fromAgentID = UUID.Zero;
+ UUID fromAgentSession = UUID.Zero;
+ UUID toAgentID = UUID.Zero;
+ UUID imSessionID = UUID.Zero;
uint timestamp = 0;
string fromAgentName = "";
string message = "";
@@ -225,8 +225,8 @@ namespace OpenSim.Region.Environment.Modules.Avatar.InstantMessage
bool fromGroup = false;
byte offline = (byte)0;
uint ParentEstateID=0;
- LLVector3 Position = LLVector3.Zero;
- LLUUID RegionID = LLUUID.Zero ;
+ Vector3 Position = Vector3.Zero;
+ UUID RegionID = UUID.Zero ;
byte[] binaryBucket = new byte[0];
float pos_x = 0;
@@ -248,11 +248,11 @@ namespace OpenSim.Region.Environment.Modules.Avatar.InstantMessage
&& requestData.ContainsKey("binary_bucket") && requestData.ContainsKey("region_handle"))
{
// Do the easy way of validating the UUIDs
- Helpers.TryParse((string)requestData["from_agent_id"], out fromAgentID);
- Helpers.TryParse((string)requestData["from_agent_session"], out fromAgentSession);
- Helpers.TryParse((string)requestData["to_agent_id"], out toAgentID);
- Helpers.TryParse((string)requestData["im_session_id"], out imSessionID);
- Helpers.TryParse((string)requestData["region_id"], out RegionID);
+ UUID.TryParse((string)requestData["from_agent_id"], out fromAgentID);
+ UUID.TryParse((string)requestData["from_agent_session"], out fromAgentSession);
+ UUID.TryParse((string)requestData["to_agent_id"], out toAgentID);
+ UUID.TryParse((string)requestData["im_session_id"], out imSessionID);
+ UUID.TryParse((string)requestData["region_id"], out RegionID);
# region timestamp
try
@@ -345,24 +345,24 @@ namespace OpenSim.Region.Environment.Modules.Avatar.InstantMessage
}
# endregion
- Position = new LLVector3(pos_x, pos_y, pos_z);
+ Position = new Vector3(pos_x, pos_y, pos_z);
binaryBucket = Convert.FromBase64String((string)requestData["binary_bucket"]);
// Create a New GridInstantMessageObject the the data
GridInstantMessage gim = new GridInstantMessage();
- gim.fromAgentID = fromAgentID.UUID;
+ gim.fromAgentID = fromAgentID.Guid;
gim.fromAgentName = fromAgentName;
- gim.fromAgentSession = fromAgentSession.UUID;
+ gim.fromAgentSession = fromAgentSession.Guid;
gim.fromGroup = fromGroup;
- gim.imSessionID = imSessionID.UUID;
- gim.RegionID = RegionID.UUID;
+ gim.imSessionID = imSessionID.Guid;
+ gim.RegionID = RegionID.Guid;
gim.timestamp = timestamp;
- gim.toAgentID = toAgentID.UUID;
+ gim.toAgentID = toAgentID.Guid;
gim.message = message;
gim.dialog = dialog;
gim.offline = offline;
gim.ParentEstateID = ParentEstateID;
- gim.Position = new sLLVector3(Position);
+ gim.Position = Position;
gim.binaryBucket = binaryBucket;
@@ -418,11 +418,11 @@ namespace OpenSim.Region.Environment.Modules.Avatar.InstantMessage
///
///
///
- public delegate void GridInstantMessageDelegate(IClientAPI client, LLUUID fromAgentID,
- LLUUID fromAgentSession, LLUUID toAgentID,
- LLUUID imSessionID, uint timestamp, string fromAgentName,
+ public delegate void GridInstantMessageDelegate(IClientAPI client, UUID fromAgentID,
+ UUID fromAgentSession, UUID toAgentID,
+ UUID imSessionID, uint timestamp, string fromAgentName,
string message, byte dialog, bool fromGroup, byte offline,
- uint ParentEstateID, LLVector3 Position, LLUUID RegionID,
+ uint ParentEstateID, Vector3 Position, UUID RegionID,
byte[] binaryBucket, ulong regionhandle, ulong prevRegionHandle);
private void GridInstantMessageCompleted(IAsyncResult iar)
@@ -432,11 +432,11 @@ namespace OpenSim.Region.Environment.Modules.Avatar.InstantMessage
}
- protected virtual void SendGridInstantMessageViaXMLRPC(IClientAPI client, LLUUID fromAgentID,
- LLUUID fromAgentSession, LLUUID toAgentID,
- LLUUID imSessionID, uint timestamp, string fromAgentName,
+ protected virtual void SendGridInstantMessageViaXMLRPC(IClientAPI client, UUID fromAgentID,
+ UUID fromAgentSession, UUID toAgentID,
+ UUID imSessionID, uint timestamp, string fromAgentName,
string message, byte dialog, bool fromGroup, byte offline,
- uint ParentEstateID, LLVector3 Position, LLUUID RegionID,
+ uint ParentEstateID, Vector3 Position, UUID RegionID,
byte[] binaryBucket, ulong regionhandle, ulong prevRegionHandle)
{
GridInstantMessageDelegate d = SendGridInstantMessageViaXMLRPCAsync;
@@ -459,11 +459,11 @@ namespace OpenSim.Region.Environment.Modules.Avatar.InstantMessage
/// if it's the same as the user's looked up region handle, then we end the recursive loop
///
///
- protected virtual void SendGridInstantMessageViaXMLRPCAsync(IClientAPI client, LLUUID fromAgentID,
- LLUUID fromAgentSession, LLUUID toAgentID,
- LLUUID imSessionID, uint timestamp, string fromAgentName,
+ protected virtual void SendGridInstantMessageViaXMLRPCAsync(IClientAPI client, UUID fromAgentID,
+ UUID fromAgentSession, UUID toAgentID,
+ UUID imSessionID, uint timestamp, string fromAgentName,
string message, byte dialog, bool fromGroup, byte offline,
- uint ParentEstateID, LLVector3 Position, LLUUID RegionID,
+ uint ParentEstateID, Vector3 Position, UUID RegionID,
byte[] binaryBucket, ulong regionhandle, ulong prevRegionHandle)
{
UserAgentData upd = null;
@@ -527,10 +527,10 @@ namespace OpenSim.Region.Environment.Modules.Avatar.InstantMessage
if (reginfo != null)
{
GridInstantMessage msg = new GridInstantMessage();
- msg.fromAgentID = fromAgentID.UUID;
- msg.fromAgentSession = fromAgentSession.UUID;
- msg.toAgentID = toAgentID.UUID;
- msg.imSessionID = imSessionID.UUID;
+ msg.fromAgentID = fromAgentID.Guid;
+ msg.fromAgentSession = fromAgentSession.Guid;
+ msg.toAgentID = toAgentID.Guid;
+ msg.imSessionID = imSessionID.Guid;
msg.timestamp = timestamp;
msg.fromAgentName = fromAgentName;
msg.message = message;
@@ -538,8 +538,8 @@ namespace OpenSim.Region.Environment.Modules.Avatar.InstantMessage
msg.fromGroup = fromGroup;
msg.offline = offline;
msg.ParentEstateID = ParentEstateID;
- msg.Position = new sLLVector3(Position);
- msg.RegionID = RegionID.UUID;
+ msg.Position = Position;
+ msg.RegionID = RegionID.Guid;
msg.binaryBucket = binaryBucket;
Hashtable msgdata = ConvertGridInstantMessageToXMLRPC(msg);
@@ -649,7 +649,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.InstantMessage
///
/// UUID of region to get the region handle for
///
- private ulong getLocalRegionHandleFromUUID(LLUUID regionID)
+ private ulong getLocalRegionHandleFromUUID(UUID regionID)
{
ulong returnhandle = 0;
@@ -692,13 +692,13 @@ namespace OpenSim.Region.Environment.Modules.Avatar.InstantMessage
byte[] offlinedata = new byte[1]; offlinedata[0] = msg.offline;
gim["offline"] = Convert.ToBase64String(offlinedata, Base64FormattingOptions.None);
gim["parent_estate_id"] = msg.ParentEstateID.ToString();
- gim["position_x"] = msg.Position.x.ToString();
- gim["position_y"] = msg.Position.y.ToString();
- gim["position_z"] = msg.Position.z.ToString();
+ gim["position_x"] = msg.Position.X.ToString();
+ gim["position_y"] = msg.Position.Y.ToString();
+ gim["position_z"] = msg.Position.Z.ToString();
gim["region_id"] = msg.RegionID.ToString();
gim["binary_bucket"] = Convert.ToBase64String(msg.binaryBucket,Base64FormattingOptions.None);
return gim;
}
}
-}
\ No newline at end of file
+}
diff --git a/OpenSim/Region/Environment/Modules/Avatar/Inventory/InventoryModule.cs b/OpenSim/Region/Environment/Modules/Avatar/Inventory/InventoryModule.cs
index d036dbb..344cb5e 100644
--- a/OpenSim/Region/Environment/Modules/Avatar/Inventory/InventoryModule.cs
+++ b/OpenSim/Region/Environment/Modules/Avatar/Inventory/InventoryModule.cs
@@ -27,7 +27,7 @@
using System.Collections.Generic;
using System.Reflection;
-using libsecondlife;
+using OpenMetaverse;
using log4net;
using Nini.Config;
using OpenSim.Framework;
@@ -46,10 +46,10 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Inventory
/// occurs in the initial offer message, not the accept message. So this dictionary links
/// IM Session Ids to ItemIds
///
- private IDictionary m_pendingOffers = new Dictionary();
+ private IDictionary m_pendingOffers = new Dictionary();
private List m_Scenelist = new List();
- private Dictionary m_AgentRegions = new Dictionary();
+ private Dictionary m_AgentRegions = new Dictionary();
#region IRegionModule Members
@@ -92,11 +92,11 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Inventory
client.OnInstantMessage += OnInstantMessage;
}
- private void OnInstantMessage(IClientAPI client, LLUUID fromAgentID,
- LLUUID fromAgentSession, LLUUID toAgentID,
- LLUUID imSessionID, uint timestamp, string fromAgentName,
+ private void OnInstantMessage(IClientAPI client, UUID fromAgentID,
+ UUID fromAgentSession, UUID toAgentID,
+ UUID imSessionID, uint timestamp, string fromAgentName,
string message, byte dialog, bool fromGroup, byte offline,
- uint ParentEstateID, LLVector3 Position, LLUUID RegionID,
+ uint ParentEstateID, Vector3 Position, UUID RegionID,
byte[] binaryBucket)
{
if (dialog == (byte) InstantMessageDialog.InventoryOffered)
@@ -117,8 +117,8 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Inventory
// Next 16 bytes are the UUID
//Array.Copy(binaryBucket, 1, rawId, 0, 16);
- //LLUUID itemId = new LLUUID(new Guid(rawId));
- LLUUID itemId = new LLUUID(binaryBucket, 1);
+ //UUID itemId = new UUID(new Guid(rawId));
+ UUID itemId = new UUID(binaryBucket, 1);
m_log.DebugFormat(
"[AGENT INVENTORY]: ItemId for giving is {0}", itemId);
@@ -225,12 +225,12 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Inventory
}
}
- public void SetRootAgentScene(LLUUID agentID, Scene scene)
+ public void SetRootAgentScene(UUID agentID, Scene scene)
{
m_AgentRegions[agentID] = scene;
}
- public bool NeedSceneCacheClear(LLUUID agentID, Scene scene)
+ public bool NeedSceneCacheClear(UUID agentID, Scene scene)
{
if (!m_AgentRegions.ContainsKey(agentID))
{
@@ -279,7 +279,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Inventory
return false;
}
- public void ClientLoggedOut(LLUUID agentID)
+ public void ClientLoggedOut(UUID agentID)
{
if (m_AgentRegions.ContainsKey(agentID))
m_AgentRegions.Remove(agentID);
diff --git a/OpenSim/Region/Environment/Modules/Avatar/Profiles/AvatarProfilesModule.cs b/OpenSim/Region/Environment/Modules/Avatar/Profiles/AvatarProfilesModule.cs
index 20b1c1c..f9c0dcf 100644
--- a/OpenSim/Region/Environment/Modules/Avatar/Profiles/AvatarProfilesModule.cs
+++ b/OpenSim/Region/Environment/Modules/Avatar/Profiles/AvatarProfilesModule.cs
@@ -27,7 +27,7 @@
using System;
using System.Reflection;
-using libsecondlife;
+using OpenMetaverse;
using log4net;
using Nini.Config;
using OpenSim.Framework;
@@ -90,7 +90,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Profiles
///
///
///
- public void RequestAvatarProperty(IClientAPI remoteClient, LLUUID avatarID)
+ public void RequestAvatarProperty(IClientAPI remoteClient, UUID avatarID)
{
// FIXME: finish adding fields such as url, masking, etc.
UserProfileData profile = m_scene.CommsManager.UserService.GetUserProfile(avatarID);
@@ -104,7 +104,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Profiles
}
else
{
- charterMember = Helpers.StringToField(profile.CustomType);
+ charterMember = Utils.StringToBytes(profile.CustomType);
}
remoteClient.SendAvatarProperties(profile.ID, profile.AboutText,
diff --git a/OpenSim/Region/Environment/Modules/Avatar/Voice/AsterixVoice/AsteriskVoiceModule.cs b/OpenSim/Region/Environment/Modules/Avatar/Voice/AsterixVoice/AsteriskVoiceModule.cs
index 1f41a92..e3a9a45 100644
--- a/OpenSim/Region/Environment/Modules/Avatar/Voice/AsterixVoice/AsteriskVoiceModule.cs
+++ b/OpenSim/Region/Environment/Modules/Avatar/Voice/AsterixVoice/AsteriskVoiceModule.cs
@@ -28,7 +28,7 @@
using System;
using System.Collections;
using System.Reflection;
-using libsecondlife;
+using OpenMetaverse;
using log4net;
using Nini.Config;
using Nwc.XmlRpc;
@@ -125,7 +125,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Voice.AsterixVoice
#endregion
- public void OnRegisterCaps(LLUUID agentID, Caps caps)
+ public void OnRegisterCaps(UUID agentID, Caps caps)
{
m_log.DebugFormat("[ASTERISKVOICE] OnRegisterCaps: agentID {0} caps {1}", agentID, caps);
string capsBase = "/CAPS/" + caps.CapsObjectPath;
@@ -157,7 +157,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Voice.AsterixVoice
///
///
public string ParcelVoiceInfoRequest(string request, string path, string param,
- LLUUID agentID, Caps caps)
+ UUID agentID, Caps caps)
{
// we need to do:
// - send channel_uri: as "sip:regionID@m_sipDomain"
@@ -226,7 +226,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Voice.AsterixVoice
///
///
public string ProvisionVoiceAccountRequest(string request, string path, string param,
- LLUUID agentID, Caps caps)
+ UUID agentID, Caps caps)
{
// we need to
// - get user data from UserProfileCacheService
@@ -289,4 +289,4 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Voice.AsterixVoice
}
}
}
-}
\ No newline at end of file
+}
diff --git a/OpenSim/Region/Environment/Modules/Avatar/Voice/SIPVoice/SIPVoiceModule.cs b/OpenSim/Region/Environment/Modules/Avatar/Voice/SIPVoice/SIPVoiceModule.cs
index c6852f7..bd89175 100644
--- a/OpenSim/Region/Environment/Modules/Avatar/Voice/SIPVoice/SIPVoiceModule.cs
+++ b/OpenSim/Region/Environment/Modules/Avatar/Voice/SIPVoice/SIPVoiceModule.cs
@@ -28,7 +28,7 @@
using System;
using System.Collections;
using System.Reflection;
-using libsecondlife;
+using OpenMetaverse;
using log4net;
using Nini.Config;
using OpenSim.Framework;
@@ -98,7 +98,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Voice.SIPVoice
#endregion
- public void OnRegisterCaps(LLUUID agentID, Caps caps)
+ public void OnRegisterCaps(UUID agentID, Caps caps)
{
m_log.DebugFormat("[VOICE] OnRegisterCaps: agentID {0} caps {1}", agentID, caps);
string capsBase = "/CAPS/" + caps.CapsObjectPath;
@@ -130,7 +130,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Voice.SIPVoice
///
///
public string ParcelVoiceInfoRequest(string request, string path, string param,
- LLUUID agentID, Caps caps)
+ UUID agentID, Caps caps)
{
try
{
@@ -172,7 +172,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Voice.SIPVoice
///
///
public string ProvisionVoiceAccountRequest(string request, string path, string param,
- LLUUID agentID, Caps caps)
+ UUID agentID, Caps caps)
{
try
{
@@ -199,4 +199,4 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Voice.SIPVoice
return null;
}
}
-}
\ No newline at end of file
+}
diff --git a/OpenSim/Region/Environment/Modules/ContentManagementSystem/AuraMetaEntity.cs b/OpenSim/Region/Environment/Modules/ContentManagementSystem/AuraMetaEntity.cs
index f99bfc5..dd592dd 100644
--- a/OpenSim/Region/Environment/Modules/ContentManagementSystem/AuraMetaEntity.cs
+++ b/OpenSim/Region/Environment/Modules/ContentManagementSystem/AuraMetaEntity.cs
@@ -39,7 +39,7 @@ using System;
using System.Collections.Generic;
using System.Drawing;
-using libsecondlife;
+using OpenMetaverse;
using Nini.Config;
@@ -50,8 +50,6 @@ using OpenSim.Region.Physics.Manager;
using log4net;
-using Axiom.Math;
-
namespace OpenSim.Region.Environment.Modules.ContentManagement
{
public class AuraMetaEntity : PointMetaEntity
@@ -59,13 +57,13 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
#region Constructors
//transparency of root part, NOT particle system. Should probably add support for changing particle system transparency.
- public AuraMetaEntity(Scene scene, uint LocalId, LLVector3 groupPos, float transparency, LLVector3 color, LLVector3 scale)
+ public AuraMetaEntity(Scene scene, uint LocalId, Vector3 groupPos, float transparency, Vector3 color, Vector3 scale)
: base(scene, LocalId, groupPos, transparency)
{
SetAura(color, scale);
}
- public AuraMetaEntity(Scene scene, LLUUID uuid, uint LocalId, LLVector3 groupPos, float transparency, LLVector3 color, LLVector3 scale)
+ public AuraMetaEntity(Scene scene, UUID uuid, uint LocalId, Vector3 groupPos, float transparency, Vector3 color, Vector3 scale)
: base(scene, uuid, LocalId, groupPos, transparency)
{
SetAura(color, scale);
@@ -75,7 +73,7 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
#region Private Methods
- private float Average(LLVector3 values)
+ private float Average(Vector3 values)
{
return (values.X + values.Y + values.Z)/3f;
}
@@ -84,12 +82,12 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
#region Public Methods
- public void SetAura(LLVector3 color, LLVector3 scale)
+ public void SetAura(Vector3 color, Vector3 scale)
{
SetAura(color, Average(scale) * 2.0f);
}
- public void SetAura(LLVector3 color, float radius)
+ public void SetAura(Vector3 color, float radius)
{
SceneObjectPart From = m_Entity.RootPart;
@@ -110,7 +108,7 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
SetAura(From, color, radius, burstRadius, age, burstRate, patternFlags);
}
- public void SetAura(SceneObjectPart From, LLVector3 color, float radius, float burstRadius, float age, float burstRate, libsecondlife.Primitive.ParticleSystem.SourcePattern patternFlags)
+ public void SetAura(SceneObjectPart From, Vector3 color, float radius, float burstRadius, float age, float burstRate, Primitive.ParticleSystem.SourcePattern patternFlags)
{
Primitive.ParticleSystem prules = new Primitive.ParticleSystem();
//prules.PartDataFlags = Primitive.ParticleSystem.ParticleDataFlags.Emissive |
@@ -139,7 +137,7 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
prules.PartAcceleration.Y = 0.0f;
prules.PartAcceleration.Z = 0.0f;
prules.Pattern = patternFlags; //PSYS_SRC_PATTERN
- //prules.Texture = LLUUID.Zero;//= LLUUID //PSYS_SRC_TEXTURE, default used if blank
+ //prules.Texture = UUID.Zero;//= UUID //PSYS_SRC_TEXTURE, default used if blank
prules.BurstRate = burstRate; //PSYS_SRC_BURST_RATE
prules.BurstPartCount = 2; //PSYS_SRC_BURST_PART_COUNT
//prules.BurstRadius = radius; //PSYS_SRC_BURST_RADIUS
@@ -160,4 +158,4 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
#endregion Public Methods
}
-}
\ No newline at end of file
+}
diff --git a/OpenSim/Region/Environment/Modules/ContentManagementSystem/BeamMetaEntity.cs b/OpenSim/Region/Environment/Modules/ContentManagementSystem/BeamMetaEntity.cs
index 9e39088..b27bbc0 100644
--- a/OpenSim/Region/Environment/Modules/ContentManagementSystem/BeamMetaEntity.cs
+++ b/OpenSim/Region/Environment/Modules/ContentManagementSystem/BeamMetaEntity.cs
@@ -39,7 +39,7 @@ using System;
using System.Collections.Generic;
using System.Drawing;
-using libsecondlife;
+using OpenMetaverse;
using Nini.Config;
@@ -50,21 +50,19 @@ using OpenSim.Region.Physics.Manager;
using log4net;
-using Axiom.Math;
-
namespace OpenSim.Region.Environment.Modules.ContentManagement
{
public class BeamMetaEntity : PointMetaEntity
{
#region Constructors
- public BeamMetaEntity(Scene scene, uint LocalId, LLVector3 groupPos, float transparency, SceneObjectPart To, LLVector3 color)
+ public BeamMetaEntity(Scene scene, uint LocalId, Vector3 groupPos, float transparency, SceneObjectPart To, Vector3 color)
: base(scene, LocalId, groupPos, transparency)
{
SetBeamToUUID(To, color);
}
- public BeamMetaEntity(Scene scene, LLUUID uuid, uint LocalId, LLVector3 groupPos, float transparency, SceneObjectPart To, LLVector3 color)
+ public BeamMetaEntity(Scene scene, UUID uuid, uint LocalId, Vector3 groupPos, float transparency, SceneObjectPart To, Vector3 color)
: base(scene, uuid, LocalId, groupPos, transparency)
{
SetBeamToUUID(To, color);
@@ -74,13 +72,13 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
#region Public Methods
- public void SetBeamToUUID(SceneObjectPart To, LLVector3 color)
+ public void SetBeamToUUID(SceneObjectPart To, Vector3 color)
{
SceneObjectPart From = m_Entity.RootPart;
//Scale size of particles to distance objects are apart (for better visibility)
- LLVector3 FromPos = From.GetWorldPosition();
- LLVector3 ToPos = From.GetWorldPosition();
-// LLUUID toUUID = To.UUID;
+ Vector3 FromPos = From.GetWorldPosition();
+ Vector3 ToPos = From.GetWorldPosition();
+ UUID toUUID = To.UUID;
float distance = (float) (Math.Sqrt(Math.Pow(FromPos.X-ToPos.X, 2) +
Math.Pow(FromPos.X-ToPos.Y, 2) +
Math.Pow(FromPos.X-ToPos.Z, 2)
@@ -94,7 +92,7 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
SetBeamToUUID(From, To, color, rate, scale, speed);
}
- public void SetBeamToUUID(SceneObjectPart From, SceneObjectPart To, LLVector3 color, float rate, float scale, float speed)
+ public void SetBeamToUUID(SceneObjectPart From, SceneObjectPart To, Vector3 color, float rate, float scale, float speed)
{
Primitive.ParticleSystem prules = new Primitive.ParticleSystem();
//prules.PartDataFlags = Primitive.ParticleSystem.ParticleDataFlags.Emissive |
@@ -118,7 +116,7 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
prules.PartAcceleration.Y = 0.0f;
prules.PartAcceleration.Z = 0.0f;
//prules.Pattern = Primitive.ParticleSystem.SourcePattern.Explode; //PSYS_SRC_PATTERN
- //prules.Texture = LLUUID.Zero;//= LLUUID //PSYS_SRC_TEXTURE, default used if blank
+ //prules.Texture = UUID.Zero;//= UUID //PSYS_SRC_TEXTURE, default used if blank
prules.BurstRate = rate; //PSYS_SRC_BURST_RATE
prules.BurstPartCount = 1; //PSYS_SRC_BURST_PART_COUNT
prules.BurstRadius = 0.5f; //PSYS_SRC_BURST_RADIUS
@@ -138,4 +136,4 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
#endregion Public Methods
}
-}
\ No newline at end of file
+}
diff --git a/OpenSim/Region/Environment/Modules/ContentManagementSystem/CMController.cs b/OpenSim/Region/Environment/Modules/ContentManagementSystem/CMController.cs
index 6ccb646..072de5e 100644
--- a/OpenSim/Region/Environment/Modules/ContentManagementSystem/CMController.cs
+++ b/OpenSim/Region/Environment/Modules/ContentManagementSystem/CMController.cs
@@ -39,7 +39,7 @@ using System.Collections.Generic;
using System.Diagnostics;
using System.Threading;
-using libsecondlife;
+using OpenMetaverse;
using OpenSim;
using OpenSim.Framework;
@@ -49,8 +49,6 @@ using OpenSim.Region.Physics.Manager;
using log4net;
-using Axiom.Math;
-
namespace OpenSim.Region.Environment.Modules.ContentManagement
{
///
@@ -266,7 +264,7 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
///
/// Only called by the MainLoop.
///
- private void UndoDid(CMModel model, CMView view, LLUUID uuid)
+ private void UndoDid(CMModel model, CMView view, UUID uuid)
{
if ((m_state & State.SHOWING_CHANGES) > 0)
{
@@ -289,7 +287,7 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
m_WorkQueue.Enqueue(moreWork);
}
- protected void ObjectDuplicated(uint localID, LLVector3 offset, uint dupeFlags, LLUUID AgentID, LLUUID GroupID)
+ protected void ObjectDuplicated(uint localID, Vector3 offset, uint dupeFlags, UUID AgentID, UUID GroupID)
{
Work moreWork = new Work();
moreWork.Type = WorkType.OBJECTDUPLICATED;
@@ -298,8 +296,8 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
m_log.Debug("[CONTENT MANAGEMENT] dup queue");
}
- protected void ObjectDuplicatedOnRay(uint localID, uint dupeFlags, LLUUID AgentID, LLUUID GroupID,
- LLUUID RayTargetObj, LLVector3 RayEnd, LLVector3 RayStart,
+ protected void ObjectDuplicatedOnRay(uint localID, uint dupeFlags, UUID AgentID, UUID GroupID,
+ UUID RayTargetObj, Vector3 RayEnd, Vector3 RayStart,
bool BypassRaycast, bool RayEndIsIntersection, bool CopyCenters, bool CopyRotates)
{
Work moreWork = new Work();
@@ -318,7 +316,7 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
m_log.Debug("[CONTENT MANAGEMENT] new client");
}
- protected void OnUnDid(IClientAPI remoteClient, LLUUID primId)
+ protected void OnUnDid(IClientAPI remoteClient, UUID primId)
{
Work moreWork = new Work();
moreWork.Type = WorkType.UNDODID;
@@ -405,7 +403,7 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
///
///
///
- protected void StopManaging(LLUUID clientUUID)
+ protected void StopManaging(UUID clientUUID)
{
foreach(Object sceneobj in m_sceneList.Values)
{
@@ -433,7 +431,7 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
}
}
- protected void UpdateMultiplePosition(uint localID, LLVector3 pos, IClientAPI remoteClient)
+ protected void UpdateMultiplePosition(uint localID, Vector3 pos, IClientAPI remoteClient)
{
Work moreWork = new Work();
moreWork.Type = WorkType.OBJECTATTRIBUTECHANGE;
@@ -442,7 +440,7 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
m_log.Debug("[CONTENT MANAGEMENT] pos");
}
- protected void UpdateMultipleRotation(uint localID, LLQuaternion rot, IClientAPI remoteClient)
+ protected void UpdateMultipleRotation(uint localID, Quaternion rot, IClientAPI remoteClient)
{
Work moreWork = new Work();
moreWork.Type = WorkType.OBJECTATTRIBUTECHANGE;
@@ -451,7 +449,7 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
m_log.Debug("[CONTENT MANAGEMENT] rot");
}
- protected void UpdateMultipleScale(uint localID, LLVector3 scale, IClientAPI remoteClient)
+ protected void UpdateMultipleScale(uint localID, Vector3 scale, IClientAPI remoteClient)
{
Work moreWork = new Work();
moreWork.Type = WorkType.OBJECTATTRIBUTECHANGE;
@@ -460,8 +458,8 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
m_log.Debug("[CONTENT MANAGEMENT]scale");
}
- protected void UpdateNewParts(LLUUID ownerID, LLVector3 RayEnd, LLQuaternion rot, PrimitiveBaseShape shape,
- byte bypassRaycast, LLVector3 RayStart, LLUUID RayTargetID,
+ protected void UpdateNewParts(UUID ownerID, Vector3 RayEnd, Quaternion rot, PrimitiveBaseShape shape,
+ byte bypassRaycast, Vector3 RayStart, UUID RayTargetID,
byte RayEndIsIntersection)
{
Work moreWork = new Work();
@@ -471,7 +469,7 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
m_log.Debug("[CONTENT MANAGEMENT] new parts");
}
- protected void UpdateSinglePosition(uint localID, LLVector3 pos, IClientAPI remoteClient)
+ protected void UpdateSinglePosition(uint localID, Vector3 pos, IClientAPI remoteClient)
{
Work moreWork = new Work();
moreWork.Type = WorkType.OBJECTATTRIBUTECHANGE;
@@ -483,7 +481,7 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
///
///
///
- protected void UpdateSingleRotation(uint localID, LLQuaternion rot, IClientAPI remoteClient)
+ protected void UpdateSingleRotation(uint localID, Quaternion rot, IClientAPI remoteClient)
{
Work moreWork = new Work();
moreWork.Type = WorkType.OBJECTATTRIBUTECHANGE;
@@ -492,7 +490,7 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
m_log.Debug("[CONTENT MANAGEMENT] rot");
}
- protected void UpdateSingleScale(uint localID, LLVector3 scale, IClientAPI remoteClient)
+ protected void UpdateSingleScale(uint localID, Vector3 scale, IClientAPI remoteClient)
{
Work moreWork = new Work();
moreWork.Type = WorkType.OBJECTATTRIBUTECHANGE;
@@ -723,7 +721,7 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
public Object Data2; //Just more space for holding data.
public uint LocalId; //Convenient
public WorkType Type;
- public LLUUID UUID; //Convenient
+ public UUID UUID; //Convenient
#endregion Fields
}
@@ -745,4 +743,4 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
#endregion Other
}
-}
\ No newline at end of file
+}
diff --git a/OpenSim/Region/Environment/Modules/ContentManagementSystem/CMEntityCollection.cs b/OpenSim/Region/Environment/Modules/ContentManagementSystem/CMEntityCollection.cs
index 454429c..996badf 100644
--- a/OpenSim/Region/Environment/Modules/ContentManagementSystem/CMEntityCollection.cs
+++ b/OpenSim/Region/Environment/Modules/ContentManagementSystem/CMEntityCollection.cs
@@ -40,7 +40,7 @@ using System.Collections;
using System.Collections.Generic;
using System.Threading;
-using libsecondlife;
+using OpenMetaverse;
using Nini.Config;
@@ -52,8 +52,6 @@ using OpenSim.Region.Physics.Manager;
using log4net;
-using Axiom.Math;
-
namespace OpenSim.Region.Environment.Modules.ContentManagement
{
public class CMEntityCollection
@@ -63,12 +61,12 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
// private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
// Any ContentManagementEntities that represent old versions of current SceneObjectGroups or
// old versions of deleted SceneObjectGroups will be stored in this hash table.
- // The LLUUID keys are from the SceneObjectGroup RootPart UUIDs
- protected Hashtable m_CMEntityHash = Hashtable.Synchronized(new Hashtable()); //LLUUID to ContentManagementEntity
+ // The UUID keys are from the SceneObjectGroup RootPart UUIDs
+ protected Hashtable m_CMEntityHash = Hashtable.Synchronized(new Hashtable()); //UUID to ContentManagementEntity
// SceneObjectParts that have not been revisioned will be given green auras stored in this hashtable
- // The LLUUID keys are from the SceneObjectPart that they are supposed to be on.
- protected Hashtable m_NewlyCreatedEntityAura = Hashtable.Synchronized(new Hashtable()); //LLUUID to AuraMetaEntity
+ // The UUID keys are from the SceneObjectPart that they are supposed to be on.
+ protected Hashtable m_NewlyCreatedEntityAura = Hashtable.Synchronized(new Hashtable()); //UUID to AuraMetaEntity
#endregion Fields
@@ -151,7 +149,7 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
part.ParentGroup.Scene.PrimIDAllocate(),
part.GetWorldPosition(),
MetaEntity.TRANSLUCENT,
- new LLVector3(0,254,0),
+ new Vector3(0,254,0),
part.Scale
);
m_NewlyCreatedEntityAura.Add(part.UUID, ent);
@@ -175,7 +173,7 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
return ent;
}
- public bool RemoveEntity(LLUUID uuid)
+ public bool RemoveEntity(UUID uuid)
{
if (!m_CMEntityHash.ContainsKey(uuid))
return false;
@@ -183,7 +181,7 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
return true;
}
- public bool RemoveNewlyCreatedEntityAura(LLUUID uuid)
+ public bool RemoveNewlyCreatedEntityAura(UUID uuid)
{
if (!m_NewlyCreatedEntityAura.ContainsKey(uuid))
return false;
@@ -193,4 +191,4 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
#endregion Public Methods
}
-}
\ No newline at end of file
+}
diff --git a/OpenSim/Region/Environment/Modules/ContentManagementSystem/CMModel.cs b/OpenSim/Region/Environment/Modules/ContentManagementSystem/CMModel.cs
index 92ae0d7..e1b4129 100644
--- a/OpenSim/Region/Environment/Modules/ContentManagementSystem/CMModel.cs
+++ b/OpenSim/Region/Environment/Modules/ContentManagementSystem/CMModel.cs
@@ -39,7 +39,7 @@ using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
-using libsecondlife;
+using OpenMetaverse;
using OpenSim;
using OpenSim.Framework;
@@ -49,8 +49,6 @@ using OpenSim.Region.Physics.Manager;
using log4net;
-using Axiom.Math;
-
namespace OpenSim.Region.Environment.Modules.ContentManagement
{
public class CMModel
@@ -133,14 +131,14 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
m_MetaEntityCollection.ClearAll();
}
- public ContentManagementEntity FindMetaEntityAffectedByUndo(LLUUID uuid)
+ public ContentManagementEntity FindMetaEntityAffectedByUndo(UUID uuid)
{
ContentManagementEntity ent = GetMetaGroupByPrim(uuid);
return ent;
}
//-------------------------------- HELPERS --------------------------------------------------------------------//
- public ContentManagementEntity GetMetaGroupByPrim(LLUUID uuid)
+ public ContentManagementEntity GetMetaGroupByPrim(UUID uuid)
{
foreach (Object ent in m_MetaEntityCollection.Entities.Values)
{
@@ -194,7 +192,7 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
SceneObjectGroup temp = null;
System.Collections.Hashtable deleteListUUIDs = new Hashtable();
// Dictionary SearchList = new Dictionary();
- Dictionary ReplacementList = new Dictionary();
+ Dictionary ReplacementList = new Dictionary();
int revision = m_database.GetMostRecentRevision(scene.RegionInfo.RegionID);
// EntityBase[] searchArray;
@@ -255,14 +253,14 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
break;
}
- foreach(LLUUID uuid in deleteListUUIDs.Keys)
+ foreach(UUID uuid in deleteListUUIDs.Keys)
{
try
{
// I thought that the DeleteGroup() function would handle all of this, but it doesn't. I'm not sure WHAT it handles.
((SceneObjectGroup)scene.Entities[uuid]).DetachFromBackup((SceneObjectGroup)scene.Entities[uuid]);
scene.PhysicsScene.RemovePrim(((SceneObjectGroup)scene.Entities[uuid]).RootPart.PhysActor);
- scene.SendKillObject(scene.Entities[uuid].LocalId);
+ scene.SendKiPrimitive(scene.Entities[uuid].LocalId);
scene.m_innerScene.DeleteSceneObject(uuid, false);
((SceneObjectGroup)scene.Entities[uuid]).DeleteGroup();
}
@@ -284,7 +282,7 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
if (!(ent is SceneObjectGroup))
continue;
- if ((((SceneObjectGroup)ent).RootPart.GetEffectiveObjectFlags() & (uint) LLObject.ObjectFlags.Phantom) == 0)
+ if ((((SceneObjectGroup)ent).RootPart.GetEffectiveObjectFlags() & (uint) PrimFlags.Phantom) == 0)
((SceneObjectGroup)ent).ApplyPhysics(true);
((SceneObjectGroup)ent).AttachToBackup();
((SceneObjectGroup)ent).HasGroupChanged = true; // If not true, then attaching to backup does nothing because no change is detected.
@@ -346,7 +344,7 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
{
if (m_MetaEntityCollection.Auras.ContainsKey(part.UUID))
{
- ((AuraMetaEntity)m_MetaEntityCollection.Auras[part.UUID]).SetAura(new LLVector3(0,254,0), part.Scale);
+ ((AuraMetaEntity)m_MetaEntityCollection.Auras[part.UUID]).SetAura(new Vector3(0,254,0), part.Scale);
((AuraMetaEntity)m_MetaEntityCollection.Auras[part.UUID]).RootPart.GroupPosition = part.GetWorldPosition();
auraList.Add((AuraMetaEntity)m_MetaEntityCollection.Auras[part.UUID]);
}
@@ -356,4 +354,4 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
#endregion Public Methods
}
-}
\ No newline at end of file
+}
diff --git a/OpenSim/Region/Environment/Modules/ContentManagementSystem/CMView.cs b/OpenSim/Region/Environment/Modules/ContentManagementSystem/CMView.cs
index fca2830..90ef6ef 100644
--- a/OpenSim/Region/Environment/Modules/ContentManagementSystem/CMView.cs
+++ b/OpenSim/Region/Environment/Modules/ContentManagementSystem/CMView.cs
@@ -39,7 +39,7 @@ using System;
using System.Collections;
using System.Collections.Generic;
-using libsecondlife;
+using OpenMetaverse;
using OpenSim;
using OpenSim.Framework;
@@ -49,8 +49,6 @@ using OpenSim.Region.Physics.Manager;
using log4net;
-using Axiom.Math;
-
namespace OpenSim.Region.Environment.Modules.ContentManagement
{
public class CMView
@@ -136,7 +134,7 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
SendSimChatMessage(scene, menu);
}
- public void DisplayMetaEntity(LLUUID uuid)
+ public void DisplayMetaEntity(UUID uuid)
{
ContentManagementEntity group = m_model.GetMetaGroupByPrim(uuid);
if (group != null)
@@ -199,10 +197,10 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
public void SendSimChatMessage(Scene scene, string message)
{
- scene.SimChat(Helpers.StringToField(message),
- ChatTypeEnum.Broadcast, 0, new LLVector3(0,0,0), "Content Manager", LLUUID.Zero, false);
+ scene.SimChat(Utils.StringToBytes(message),
+ ChatTypeEnum.Broadcast, 0, new Vector3(0,0,0), "Content Manager", UUID.Zero, false);
}
#endregion Public Methods
}
-}
\ No newline at end of file
+}
diff --git a/OpenSim/Region/Environment/Modules/ContentManagementSystem/ContentManagementEntity.cs b/OpenSim/Region/Environment/Modules/ContentManagementSystem/ContentManagementEntity.cs
index 8e0dd33..819ff87 100644
--- a/OpenSim/Region/Environment/Modules/ContentManagementSystem/ContentManagementEntity.cs
+++ b/OpenSim/Region/Environment/Modules/ContentManagementSystem/ContentManagementEntity.cs
@@ -38,7 +38,7 @@ using System;
using System.Collections.Generic;
using System.Drawing;
-using libsecondlife;
+using OpenMetaverse;
using Nini.Config;
@@ -49,8 +49,6 @@ using OpenSim.Region.Physics.Manager;
using log4net;
-using Axiom.Math;
-
namespace OpenSim.Region.Environment.Modules.ContentManagement
{
public class ContentManagementEntity : MetaEntity
@@ -64,8 +62,8 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
#region Fields
- protected Dictionary m_AuraEntities = new Dictionary();
- protected Dictionary m_BeamEntities = new Dictionary();
+ protected Dictionary m_AuraEntities = new Dictionary();
+ protected Dictionary m_BeamEntities = new Dictionary();
// The LinkNum of parts in m_Entity and m_UnchangedEntity are the same though UUID and LocalId are different.
// This can come in handy.
@@ -108,7 +106,7 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
///
/// Check if an entitybase list (like that returned by scene.GetEntities() ) contains a group with the rootpart uuid that matches the current uuid.
///
- private bool ContainsKey(List list, LLUUID uuid)
+ private bool ContainsKey(List list, UUID uuid)
{
foreach( EntityBase part in list)
if (part.UUID == uuid)
@@ -116,7 +114,7 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
return false;
}
- private SceneObjectGroup GetGroupByUUID(System.Collections.Generic.List list, LLUUID uuid)
+ private SceneObjectGroup GetGroupByUUID(System.Collections.Generic.List list, UUID uuid)
{
foreach (EntityBase ent in list)
{
@@ -150,7 +148,7 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
// if already displaying a red aura over part, make sure its red
if (m_AuraEntities.ContainsKey(part.UUID))
{
- m_AuraEntities[part.UUID].SetAura(new LLVector3(254,0,0), part.Scale);
+ m_AuraEntities[part.UUID].SetAura(new Vector3(254,0,0), part.Scale);
}
else
{
@@ -158,7 +156,7 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
m_Entity.Scene.PrimIDAllocate(),
part.GetWorldPosition(),
MetaEntity.TRANSLUCENT,
- new LLVector3(254,0,0),
+ new Vector3(254,0,0),
part.Scale
);
m_AuraEntities.Add(part.UUID, auraGroup);
@@ -189,7 +187,7 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
///
/// Check if the revisioned scene object group that this CMEntity is based off of contains a child with the given UUID.
///
- public bool HasChildPrim(LLUUID uuid)
+ public bool HasChildPrim(UUID uuid)
{
if (m_UnchangedEntity.Children.ContainsKey(uuid))
return true;
@@ -266,7 +264,7 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
m_UnchangedEntity.RootPart.GetWorldPosition(),
MetaEntity.TRANSLUCENT,
sceneEntityPart,
- new LLVector3(0,0,254)
+ new Vector3(0,0,254)
);
m_BeamEntities.Add(m_UnchangedEntity.RootPart.UUID, beamGroup);
}
@@ -280,7 +278,7 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
m_Entity.Scene.PrimIDAllocate(),
UnchangedPart.GetWorldPosition(),
MetaEntity.TRANSLUCENT,
- new LLVector3(0,0,254),
+ new Vector3(0,0,254),
UnchangedPart.Scale
);
m_AuraEntities.Add(UnchangedPart.UUID, auraGroup);
@@ -314,7 +312,7 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
m_Entity.Scene.PrimIDAllocate(),
UnchangedPart.GetWorldPosition(),
MetaEntity.TRANSLUCENT,
- new LLVector3(254,0,0),
+ new Vector3(254,0,0),
UnchangedPart.Scale
);
m_AuraEntities.Add(UnchangedPart.UUID, auraGroup);
@@ -386,4 +384,4 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
#endregion Public Methods
}
-}
\ No newline at end of file
+}
diff --git a/OpenSim/Region/Environment/Modules/ContentManagementSystem/ContentManagementModule.cs b/OpenSim/Region/Environment/Modules/ContentManagementSystem/ContentManagementModule.cs
index d5423e0..85eb927 100644
--- a/OpenSim/Region/Environment/Modules/ContentManagementSystem/ContentManagementModule.cs
+++ b/OpenSim/Region/Environment/Modules/ContentManagementSystem/ContentManagementModule.cs
@@ -36,7 +36,7 @@ using System;
using System.Collections.Generic;
using System.Threading;
-using libsecondlife;
+using OpenMetaverse;
using Nini.Config;
@@ -48,8 +48,6 @@ using OpenSim.Region.Physics.Manager;
using log4net;
-using Axiom.Math;
-
namespace OpenSim.Region.Environment.Modules.ContentManagement
{
public class ContentManagementModule : IRegionModule
@@ -162,4 +160,4 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
#endregion Public Methods
}
-}
\ No newline at end of file
+}
diff --git a/OpenSim/Region/Environment/Modules/ContentManagementSystem/FileSystemDatabase.cs b/OpenSim/Region/Environment/Modules/ContentManagementSystem/FileSystemDatabase.cs
index c675365..66d279a 100644
--- a/OpenSim/Region/Environment/Modules/ContentManagementSystem/FileSystemDatabase.cs
+++ b/OpenSim/Region/Environment/Modules/ContentManagementSystem/FileSystemDatabase.cs
@@ -40,7 +40,7 @@ using Slash = System.IO.Path;
using System.Reflection;
using System.Xml;
-using libsecondlife;
+using OpenMetaverse;
using Nini.Config;
@@ -53,8 +53,6 @@ using OpenSim.Region.Physics.Manager;
using log4net;
-using Axiom.Math;
-
namespace OpenSim.Region.Environment.Modules.ContentManagement
{
public class FileSystemDatabase : IContentDatabase
@@ -70,8 +68,8 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
#region Fields
private string m_repodir = null;
- private Dictionary m_scenes = new Dictionary();
- private Dictionary m_serialiser = new Dictionary();
+ private Dictionary m_scenes = new Dictionary();
+ private Dictionary m_serialiser = new Dictionary();
#endregion Fields
@@ -92,7 +90,7 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
if (!Directory.Exists(m_repodir))
Directory.CreateDirectory(m_repodir);
- foreach (LLUUID region in m_scenes.Keys)
+ foreach (UUID region in m_scenes.Keys)
{
scenedir = m_repodir + Slash.DirectorySeparatorChar + region + Slash.DirectorySeparatorChar;
if (!Directory.Exists(scenedir))
@@ -104,7 +102,7 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
private void SetupSerialiser()
{
if (m_serialiser.Count == 0)
- foreach(LLUUID region in m_scenes.Keys)
+ foreach(UUID region in m_scenes.Keys)
m_serialiser.Add(region,
m_scenes[region].RequestModuleInterface()
);
@@ -114,12 +112,12 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
#region Public Methods
- public int GetMostRecentRevision(LLUUID regionid)
+ public int GetMostRecentRevision(UUID regionid)
{
return NumOfRegionRev(regionid);
}
- public string GetRegionObjectHeightMap(LLUUID regionid)
+ public string GetRegionObjectHeightMap(UUID regionid)
{
String filename = m_repodir + Slash.DirectorySeparatorChar + regionid +
Slash.DirectorySeparatorChar + "heightmap.r32";
@@ -131,7 +129,7 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
return result;
}
- public string GetRegionObjectHeightMap(LLUUID regionid, int revision)
+ public string GetRegionObjectHeightMap(UUID regionid, int revision)
{
String filename = m_repodir + Slash.DirectorySeparatorChar + regionid +
Slash.DirectorySeparatorChar + "heightmap.r32";
@@ -143,7 +141,7 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
return result;
}
- public System.Collections.ArrayList GetRegionObjectXMLList(LLUUID regionid, int revision)
+ public System.Collections.ArrayList GetRegionObjectXMLList(UUID regionid, int revision)
{
System.Collections.ArrayList objectList = new System.Collections.ArrayList();
string filename = m_repodir + Slash.DirectorySeparatorChar + regionid + Slash.DirectorySeparatorChar +
@@ -169,7 +167,7 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
return null;
}
- public System.Collections.ArrayList GetRegionObjectXMLList(LLUUID regionid)
+ public System.Collections.ArrayList GetRegionObjectXMLList(UUID regionid)
{
int revision = NumOfRegionRev(regionid);
m_log.Info("[FSDB]: found revisions:" + revision);
@@ -215,7 +213,7 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
m_scenes.Add(scene.RegionInfo.RegionID, scene);
}
- public System.Collections.Generic.SortedDictionary ListOfRegionRevisions(LLUUID regionid)
+ public System.Collections.Generic.SortedDictionary ListOfRegionRevisions(UUID regionid)
{
SortedDictionary revisionDict = new SortedDictionary();
@@ -244,7 +242,7 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
return revisionDict;
}
- public int NumOfRegionRev(LLUUID regionid)
+ public int NumOfRegionRev(UUID regionid)
{
string scenedir = m_repodir + Slash.DirectorySeparatorChar + regionid + Slash.DirectorySeparatorChar;
m_log.Info("[FSDB]: Reading scene dir: " + scenedir);
@@ -261,7 +259,7 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
CreateDirectory();
}
- public void SaveRegion(LLUUID regionid, string regionName, string logMessage)
+ public void SaveRegion(UUID regionid, string regionName, string logMessage)
{
m_log.Info("[FSDB]: ...............................");
string scenedir = m_repodir + Slash.DirectorySeparatorChar + regionid + Slash.DirectorySeparatorChar;
@@ -311,4 +309,4 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
#endregion Public Methods
}
-}
\ No newline at end of file
+}
diff --git a/OpenSim/Region/Environment/Modules/ContentManagementSystem/GitDatabase.cs b/OpenSim/Region/Environment/Modules/ContentManagementSystem/GitDatabase.cs
index 6417a0f..9fd542c 100644
--- a/OpenSim/Region/Environment/Modules/ContentManagementSystem/GitDatabase.cs
+++ b/OpenSim/Region/Environment/Modules/ContentManagementSystem/GitDatabase.cs
@@ -41,7 +41,7 @@ using Slash = System.IO.Path;
using System.Reflection;
using System.Xml;
-using libsecondlife;
+using OpenMetaverse;
using Nini.Config;
@@ -54,8 +54,6 @@ using OpenSim.Region.Physics.Manager;
using log4net;
-using Axiom.Math;
-
namespace OpenSim.Region.Environment.Modules.ContentManagement
{
///
@@ -73,57 +71,57 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
#region Public Methods
- public SceneObjectGroup GetMostRecentObjectRevision(LLUUID id)
+ public SceneObjectGroup GetMostRecentObjectRevision(UUID id)
{
return null;
}
- public int GetMostRecentRevision(LLUUID regionid)
+ public int GetMostRecentRevision(UUID regionid)
{
return 0;
}
- public SceneObjectGroup GetObjectRevision(LLUUID id, int revision)
+ public SceneObjectGroup GetObjectRevision(UUID id, int revision)
{
return null;
}
- public System.Collections.ArrayList GetObjectsFromRegion(LLUUID regionid, int revision)
+ public System.Collections.ArrayList GetObjectsFromRegion(UUID regionid, int revision)
{
return null;
}
- public string GetRegionObjectHeightMap(LLUUID regionid)
+ public string GetRegionObjectHeightMap(UUID regionid)
{
return null;
}
- public string GetRegionObjectHeightMap(LLUUID regionid, int revision)
+ public string GetRegionObjectHeightMap(UUID regionid, int revision)
{
return null;
}
- public string GetRegionObjectXML(LLUUID regionid)
+ public string GetRegionObjectXML(UUID regionid)
{
return null;
}
- public string GetRegionObjectXML(LLUUID regionid, int revision)
+ public string GetRegionObjectXML(UUID regionid, int revision)
{
return null;
}
- public System.Collections.ArrayList GetRegionObjectXMLList(LLUUID regionid)
+ public System.Collections.ArrayList GetRegionObjectXMLList(UUID regionid)
{
return null;
}
- public System.Collections.ArrayList GetRegionObjectXMLList(LLUUID regionid, int revision)
+ public System.Collections.ArrayList GetRegionObjectXMLList(UUID regionid, int revision)
{
return null;
}
- public bool InRepository(LLUUID id)
+ public bool InRepository(UUID id)
{
return false;
}
@@ -132,22 +130,22 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
{
}
- public System.Collections.Generic.SortedDictionary ListOfObjectRevisions(LLUUID id)
+ public System.Collections.Generic.SortedDictionary ListOfObjectRevisions(UUID id)
{
return null;
}
- public System.Collections.Generic.SortedDictionary ListOfRegionRevisions(LLUUID id)
+ public System.Collections.Generic.SortedDictionary ListOfRegionRevisions(UUID id)
{
return null;
}
- public int NumOfObjectRev(LLUUID id)
+ public int NumOfObjectRev(UUID id)
{
return 0;
}
- public int NumOfRegionRev(LLUUID regionid)
+ public int NumOfRegionRev(UUID regionid)
{
return 0;
}
@@ -160,10 +158,10 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
{
}
- public void SaveRegion(LLUUID regionid, string regionName, string logMessage)
+ public void SaveRegion(UUID regionid, string regionName, string logMessage)
{
}
#endregion Public Methods
}
-}
\ No newline at end of file
+}
diff --git a/OpenSim/Region/Environment/Modules/ContentManagementSystem/IContentDatabase.cs b/OpenSim/Region/Environment/Modules/ContentManagementSystem/IContentDatabase.cs
index 6a940d3..638172b 100644
--- a/OpenSim/Region/Environment/Modules/ContentManagementSystem/IContentDatabase.cs
+++ b/OpenSim/Region/Environment/Modules/ContentManagementSystem/IContentDatabase.cs
@@ -36,11 +36,8 @@
#endregion Header
using System;
-
-using libsecondlife;
-
+using OpenMetaverse;
using OpenSim.Region.Environment.Scenes;
-
using Nini.Config;
namespace OpenSim.Region.Environment.Modules.ContentManagement
@@ -52,18 +49,18 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
///
/// Returns the most recent revision number of a region.
///
- int GetMostRecentRevision(LLUUID regionid);
+ int GetMostRecentRevision(UUID regionid);
- string GetRegionObjectHeightMap(LLUUID regionid);
+ string GetRegionObjectHeightMap(UUID regionid);
- string GetRegionObjectHeightMap(LLUUID regionid, int revision);
+ string GetRegionObjectHeightMap(UUID regionid, int revision);
///
/// Retrieves the xml that describes each individual object from the last revision or specific revision of the given region.
///
- System.Collections.ArrayList GetRegionObjectXMLList(LLUUID regionid);
+ System.Collections.ArrayList GetRegionObjectXMLList(UUID regionid);
- System.Collections.ArrayList GetRegionObjectXMLList(LLUUID regionid, int revision);
+ System.Collections.ArrayList GetRegionObjectXMLList(UUID regionid, int revision);
///
/// Similar to the IRegionModule function. This is the function to be called before attempting to interface with the database.
@@ -75,12 +72,12 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
///
/// Returns a list of the revision numbers and corresponding log messages for a given region.
///
- System.Collections.Generic.SortedDictionary ListOfRegionRevisions(LLUUID id);
+ System.Collections.Generic.SortedDictionary ListOfRegionRevisions(UUID id);
///
/// Returns the total number of revisions saved for a specific region.
///
- int NumOfRegionRev(LLUUID regionid);
+ int NumOfRegionRev(UUID regionid);
///
/// Should be called once after Initialise has been called.
@@ -90,8 +87,8 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
///
/// Saves the Region terrain map and objects within the region as xml to the database.
///
- void SaveRegion(LLUUID regionid, string regionName, string logMessage);
+ void SaveRegion(UUID regionid, string regionName, string logMessage);
#endregion Methods
}
-}
\ No newline at end of file
+}
diff --git a/OpenSim/Region/Environment/Modules/ContentManagementSystem/MetaEntity.cs b/OpenSim/Region/Environment/Modules/ContentManagementSystem/MetaEntity.cs
index 4823bfd..5a6dbc8 100644
--- a/OpenSim/Region/Environment/Modules/ContentManagementSystem/MetaEntity.cs
+++ b/OpenSim/Region/Environment/Modules/ContentManagementSystem/MetaEntity.cs
@@ -39,7 +39,7 @@ using System;
using System.Collections.Generic;
using System.Drawing;
-using libsecondlife;
+using OpenMetaverse;
using Nini.Config;
@@ -50,8 +50,6 @@ using OpenSim.Region.Physics.Manager;
using log4net;
-using Axiom.Math;
-
namespace OpenSim.Region.Environment.Modules.ContentManagement
{
public class MetaEntity
@@ -109,7 +107,7 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
#region Public Properties
- public Dictionary Children
+ public Dictionary Children
{
get { return m_Entity.Children; }
set { m_Entity.Children = value; }
@@ -142,7 +140,7 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
get { return m_Entity.Scene; }
}
- public LLUUID UUID
+ public UUID UUID
{
get { return m_Entity.UUID; }
set { m_Entity.UUID = value; }
@@ -161,7 +159,7 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
protected void Initialize(bool physics)
{
//make new uuids
- Dictionary parts = new Dictionary();
+ Dictionary parts = new Dictionary();
foreach(SceneObjectPart part in m_Entity.Children.Values)
{
part.ResetIDs(part.LinkNum);
@@ -191,7 +189,7 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
//This is important because we are not IN any database.
//m_Entity.FakeDeleteGroup();
foreach( SceneObjectPart part in m_Entity.Children.Values)
- client.SendKillObject(m_Entity.RegionHandle, part.LocalId);
+ client.SendKiPrimitive(m_Entity.RegionHandle, part.LocalId);
}
///
@@ -201,7 +199,7 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
{
foreach( SceneObjectPart part in m_Entity.Children.Values)
m_Entity.Scene.ClientManager.ForEachClient(delegate(IClientAPI controller)
- { controller.SendKillObject(m_Entity.RegionHandle, part.LocalId); }
+ { controller.SendKiPrimitive(m_Entity.RegionHandle, part.LocalId); }
);
}
@@ -237,12 +235,12 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
///
public static void SetPartTransparency(SceneObjectPart part, float transparencyAmount)
{
- LLObject.TextureEntry tex = null;
- LLColor texcolor;
+ Primitive.TextureEntry tex = null;
+ Color4 texcolor;
try
{
tex = part.Shape.Textures;
- texcolor = new LLColor();
+ texcolor = new Color4();
}
catch(Exception)
{
@@ -280,4 +278,4 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
#endregion Public Methods
}
-}
\ No newline at end of file
+}
diff --git a/OpenSim/Region/Environment/Modules/ContentManagementSystem/PointMetaEntity.cs b/OpenSim/Region/Environment/Modules/ContentManagementSystem/PointMetaEntity.cs
index cafc2bf..b0c6955 100644
--- a/OpenSim/Region/Environment/Modules/ContentManagementSystem/PointMetaEntity.cs
+++ b/OpenSim/Region/Environment/Modules/ContentManagementSystem/PointMetaEntity.cs
@@ -39,7 +39,7 @@ using System;
using System.Collections.Generic;
using System.Drawing;
-using libsecondlife;
+using OpenMetaverse;
using Nini.Config;
@@ -50,22 +50,20 @@ using OpenSim.Region.Physics.Manager;
using log4net;
-using Axiom.Math;
-
namespace OpenSim.Region.Environment.Modules.ContentManagement
{
public class PointMetaEntity : MetaEntity
{
#region Constructors
- public PointMetaEntity(Scene scene, uint LocalId, LLVector3 groupPos, float transparency)
+ public PointMetaEntity(Scene scene, uint LocalId, Vector3 groupPos, float transparency)
: base()
{
- CreatePointEntity(scene, LLUUID.Random(), LocalId, groupPos);
+ CreatePointEntity(scene, UUID.Random(), LocalId, groupPos);
SetPartTransparency(m_Entity.RootPart, transparency);
}
- public PointMetaEntity(Scene scene, LLUUID uuid, uint LocalId, LLVector3 groupPos, float transparency)
+ public PointMetaEntity(Scene scene, UUID uuid, uint LocalId, Vector3 groupPos, float transparency)
: base()
{
CreatePointEntity(scene, uuid, LocalId, groupPos);
@@ -76,7 +74,7 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
#region Private Methods
- private void CreatePointEntity(Scene scene, LLUUID uuid, uint LocalId, LLVector3 groupPos)
+ private void CreatePointEntity(Scene scene, UUID uuid, uint LocalId, Vector3 groupPos)
{
SceneObjectGroup x = new SceneObjectGroup();
SceneObjectPart y = new SceneObjectPart();
@@ -85,23 +83,23 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
y.Name = "Very Small Point";
y.RegionHandle = scene.RegionInfo.RegionHandle;
y.CreationDate = (Int32) (DateTime.UtcNow - new DateTime(1970, 1, 1)).TotalSeconds;
- y.OwnerID = LLUUID.Zero;
- y.CreatorID = LLUUID.Zero;
- y.LastOwnerID = LLUUID.Zero;
+ y.OwnerID = UUID.Zero;
+ y.CreatorID = UUID.Zero;
+ y.LastOwnerID = UUID.Zero;
y.UUID = uuid;
y.LocalId = LocalId;
y.Shape = PrimitiveBaseShape.CreateBox();
- y.Scale = new LLVector3(0.01f,0.01f,0.01f);
- y.LastOwnerID = LLUUID.Zero;
+ y.Scale = new Vector3(0.01f,0.01f,0.01f);
+ y.LastOwnerID = UUID.Zero;
y.GroupPosition = groupPos;
- y.OffsetPosition = new LLVector3(0, 0, 0);
- y.RotationOffset = new LLQuaternion(0,0,0,0);
- y.Velocity = new LLVector3(0, 0, 0);
- y.RotationalVelocity = new LLVector3(0, 0, 0);
- y.AngularVelocity = new LLVector3(0, 0, 0);
- y.Acceleration = new LLVector3(0, 0, 0);
+ y.OffsetPosition = new Vector3(0, 0, 0);
+ y.RotationOffset = new Quaternion(0,0,0,0);
+ y.Velocity = new Vector3(0, 0, 0);
+ y.RotationalVelocity = new Vector3(0, 0, 0);
+ y.AngularVelocity = new Vector3(0, 0, 0);
+ y.Acceleration = new Vector3(0, 0, 0);
y.Flags = 0;
y.TrimPermissions();
@@ -121,4 +119,4 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
#endregion Private Methods
}
-}
\ No newline at end of file
+}
diff --git a/OpenSim/Region/Environment/Modules/ContentManagementSystem/SceneObjectGroupDiff.cs b/OpenSim/Region/Environment/Modules/ContentManagementSystem/SceneObjectGroupDiff.cs
index 38938c6..ba937f5 100644
--- a/OpenSim/Region/Environment/Modules/ContentManagementSystem/SceneObjectGroupDiff.cs
+++ b/OpenSim/Region/Environment/Modules/ContentManagementSystem/SceneObjectGroupDiff.cs
@@ -37,7 +37,7 @@ using System.Collections.Generic;
using System.Diagnostics;
using System.Drawing;
-using libsecondlife;
+using OpenMetaverse;
using Nini.Config;
@@ -48,8 +48,6 @@ using OpenSim.Region.Physics.Manager;
using log4net;
-using Axiom.Math;
-
namespace OpenSim.Region.Environment.Modules.ContentManagement
{
#region Enumerations
@@ -99,14 +97,14 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
#region Private Methods
- private static bool AreQuaternionsEquivalent(LLQuaternion first, LLQuaternion second)
+ private static bool AreQuaternionsEquivalent(Quaternion first, Quaternion second)
{
- LLVector3 firstVector = llRot2Euler(first);
- LLVector3 secondVector = llRot2Euler(second);
+ Vector3 firstVector = llRot2Euler(first);
+ Vector3 secondVector = llRot2Euler(second);
return AreVectorsEquivalent(firstVector, secondVector);
}
- private static bool AreVectorsEquivalent(LLVector3 first, LLVector3 second)
+ private static bool AreVectorsEquivalent(Vector3 first, Vector3 second)
{
if(TruncateSignificant(first.X, 2) == TruncateSignificant(second.X, 2)
&& TruncateSignificant(first.Y, 2) == TruncateSignificant(second.Y, 2)
@@ -133,21 +131,21 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
// Taken from Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
// Also changed the original function from LSL_Types to LL types
- private static LLVector3 llRot2Euler(LLQuaternion r)
+ private static Vector3 llRot2Euler(Quaternion r)
{
- LLQuaternion t = new LLQuaternion(r.X * r.X, r.Y * r.Y, r.Z * r.Z, r.W * r.W);
+ Quaternion t = new Quaternion(r.X * r.X, r.Y * r.Y, r.Z * r.Z, r.W * r.W);
double m = (t.X + t.Y + t.Z + t.W);
- if (m == 0) return new LLVector3();
+ if (m == 0) return new Vector3();
double n = 2 * (r.Y * r.W + r.X * r.Z);
double p = m * m - n * n;
if (p > 0)
- return new LLVector3((float)NormalizeAngle(Math.Atan2(2.0 * (r.X * r.W - r.Y * r.Z), (-t.X - t.Y + t.Z + t.W))),
+ return new Vector3((float)NormalizeAngle(Math.Atan2(2.0 * (r.X * r.W - r.Y * r.Z), (-t.X - t.Y + t.Z + t.W))),
(float)NormalizeAngle(Math.Atan2(n, Math.Sqrt(p))),
(float)NormalizeAngle(Math.Atan2(2.0 * (r.Z * r.W - r.X * r.Y), (t.X - t.Y - t.Z + t.W))));
else if (n > 0)
- return new LLVector3(0.0f, (float)(Math.PI / 2), (float)NormalizeAngle(Math.Atan2((r.Z * r.W + r.X * r.Y), 0.5 - t.X - t.Z)));
+ return new Vector3(0.0f, (float)(Math.PI / 2), (float)NormalizeAngle(Math.Atan2((r.Z * r.W + r.X * r.Y), 0.5 - t.X - t.Z)));
else
- return new LLVector3(0.0f, (float)(-Math.PI / 2), (float)NormalizeAngle(Math.Atan2((r.Z * r.W + r.X * r.Y), 0.5 - t.X - t.Z)));
+ return new Vector3(0.0f, (float)(-Math.PI / 2), (float)NormalizeAngle(Math.Atan2((r.Z * r.W + r.X * r.Y), 0.5 - t.X - t.Z)));
}
#endregion Private Methods
@@ -187,7 +185,7 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
result |= Diff.ROTATIONOFFSET;
- // MISC COMPARISONS (LLUUID, Byte)
+ // MISC COMPARISONS (UUID, Byte)
if(first.ClickAction != second.ClickAction)
result |= Diff.CLICKACTION;
if(first.ObjectOwner != second.ObjectOwner)
@@ -217,4 +215,4 @@ namespace OpenSim.Region.Environment.Modules.ContentManagement
#endregion Public Methods
}
-}
\ No newline at end of file
+}
diff --git a/OpenSim/Region/Environment/Modules/InterGrid/OpenGridProtocolModule.cs b/OpenSim/Region/Environment/Modules/InterGrid/OpenGridProtocolModule.cs
index 8fad62f..8fd4104 100644
--- a/OpenSim/Region/Environment/Modules/InterGrid/OpenGridProtocolModule.cs
+++ b/OpenSim/Region/Environment/Modules/InterGrid/OpenGridProtocolModule.cs
@@ -37,8 +37,8 @@ using System.Reflection;
using System.Text.RegularExpressions;
using System.Threading;
-using libsecondlife;
-using libsecondlife.StructuredData;
+using OpenMetaverse;
+using OpenMetaverse.StructuredData;
using log4net;
using Nini.Config;
@@ -50,9 +50,9 @@ using OpenSim.Region.Environment.Scenes;
using OpenSim.Framework.Communications.Cache;
using OpenSim.Framework.Communications.Capabilities;
using OpenSim.Framework.Statistics;
-using LLSD = libsecondlife.StructuredData.LLSD;
-using LLSDMap = libsecondlife.StructuredData.LLSDMap;
-using LLSDArray = libsecondlife.StructuredData.LLSDArray;
+using LLSD = OpenMetaverse.StructuredData.LLSD;
+using LLSDMap = OpenMetaverse.StructuredData.LLSDMap;
+using LLSDArray = OpenMetaverse.StructuredData.LLSDArray;
namespace OpenSim.Region.Environment.Modules.InterGrid
{
@@ -60,12 +60,12 @@ namespace OpenSim.Region.Environment.Modules.InterGrid
{
public string first_name;
public string last_name;
- public LLUUID agent_id;
- public LLUUID local_agent_id;
- public LLUUID region_id;
+ public UUID agent_id;
+ public UUID local_agent_id;
+ public UUID region_id;
public uint circuit_code;
- public LLUUID secure_session_id;
- public LLUUID session_id;
+ public UUID secure_session_id;
+ public UUID session_id;
public bool agent_access;
public string sim_access;
public uint god_level;
@@ -89,7 +89,7 @@ namespace OpenSim.Region.Environment.Modules.InterGrid
private List m_scene = new List();
private Dictionary CapsLoginID = new Dictionary();
- private Dictionary m_OGPState = new Dictionary();
+ private Dictionary m_OGPState = new Dictionary();
private string LastNameSuffix = "_EXTERNAL";
private string FirstNamePrefix = "";
@@ -231,10 +231,10 @@ namespace OpenSim.Region.Environment.Modules.InterGrid
//string RegionURI = reg.ServerURI;
//int RegionPort = (int)reg.HttpPort;
- LLUUID RemoteAgentID = requestMap["agent_id"].AsUUID();
+ UUID RemoteAgentID = requestMap["agent_id"].AsUUID();
// will be used in the future. The client always connects with the aditi agentid currently
- LLUUID LocalAgentID = RemoteAgentID;
+ UUID LocalAgentID = RemoteAgentID;
string FirstName = requestMap["first_name"].AsString();
string LastName = requestMap["last_name"].AsString();
@@ -274,15 +274,15 @@ namespace OpenSim.Region.Environment.Modules.InterGrid
// Generate a dummy agent for the user so we can get back a CAPS path
AgentCircuitData agentData = new AgentCircuitData();
agentData.AgentID = LocalAgentID;
- agentData.BaseFolder=LLUUID.Zero;
+ agentData.BaseFolder=UUID.Zero;
agentData.CapsPath=Util.GetRandomCapsPath();
agentData.child = false;
agentData.circuitcode = (uint)(Util.RandomClass.Next());
agentData.firstname = FirstName;
agentData.lastname = LastName;
- agentData.SecureSessionID=LLUUID.Random();
- agentData.SessionID=LLUUID.Random();
- agentData.startpos = new LLVector3(128f, 128f, 100f);
+ agentData.SecureSessionID=UUID.Random();
+ agentData.SessionID=UUID.Random();
+ agentData.startpos = new Vector3(128f, 128f, 100f);
// Pre-Fill our region cache with information on the agent.
UserAgentData useragent = new UserAgentData();
@@ -308,14 +308,14 @@ namespace OpenSim.Region.Environment.Modules.InterGrid
userProfile.CurrentAgent = useragent;
userProfile.CustomType = "OGP";
userProfile.FirstLifeAboutText = "I'm testing OpenGrid Protocol";
- userProfile.FirstLifeImage = LLUUID.Zero;
+ userProfile.FirstLifeImage = UUID.Zero;
userProfile.FirstName = agentData.firstname;
userProfile.GodLevel = 0;
userProfile.HomeLocation = agentData.startpos;
userProfile.HomeLocationX = agentData.startpos.X;
userProfile.HomeLocationY = agentData.startpos.Y;
userProfile.HomeLocationZ = agentData.startpos.Z;
- userProfile.HomeLookAt = LLVector3.Zero;
+ userProfile.HomeLookAt = Vector3.Zero;
userProfile.HomeLookAtX = userProfile.HomeLookAt.X;
userProfile.HomeLookAtY = userProfile.HomeLookAt.Y;
userProfile.HomeLookAtZ = userProfile.HomeLookAt.Z;
@@ -324,18 +324,18 @@ namespace OpenSim.Region.Environment.Modules.InterGrid
userProfile.HomeRegionX = reg.RegionLocX;
userProfile.HomeRegionY = reg.RegionLocY;
userProfile.ID = agentData.AgentID;
- userProfile.Image = LLUUID.Zero;
+ userProfile.Image = UUID.Zero;
userProfile.LastLogin = Util.UnixTimeSinceEpoch();
- userProfile.Partner = LLUUID.Zero;
+ userProfile.Partner = UUID.Zero;
userProfile.PasswordHash = "$1$";
userProfile.PasswordSalt = "";
- userProfile.RootInventoryFolderID = LLUUID.Zero;
+ userProfile.RootInventoryFolderID = UUID.Zero;
userProfile.SurName = agentData.lastname;
userProfile.UserAssetURI = homeScene.CommsManager.NetworkServersInfo.AssetURL;
userProfile.UserFlags = 0;
userProfile.UserInventoryURI = homeScene.CommsManager.NetworkServersInfo.InventoryURL;
userProfile.WantDoMask = 0;
- userProfile.WebLoginKey = LLUUID.Random();
+ userProfile.WebLoginKey = UUID.Random();
// Do caps registration
// get seed cap
@@ -348,7 +348,7 @@ namespace OpenSim.Region.Environment.Modules.InterGrid
//string raCap = string.Empty;
- LLUUID AvatarRezCapUUID = LLUUID.Random();
+ UUID AvatarRezCapUUID = UUID.Random();
string rezAvatarPath = "/agent/" + AvatarRezCapUUID + "/rez_avatar";
// Get a reference to the user's cap so we can pull out the Caps Object Path
@@ -389,8 +389,8 @@ namespace OpenSim.Region.Environment.Modules.InterGrid
LLSDMap requestMap = (LLSDMap)request;
// take these values to start. There's a few more
- LLUUID SecureSessionID=requestMap["secure_session_id"].AsUUID();
- LLUUID SessionID = requestMap["session_id"].AsUUID();
+ UUID SecureSessionID=requestMap["secure_session_id"].AsUUID();
+ UUID SessionID = requestMap["session_id"].AsUUID();
int circuitcode = requestMap["circuit_code"].AsInteger();
LLSDArray Parameter = new LLSDArray();
if (requestMap.ContainsKey("parameter"))
@@ -401,7 +401,7 @@ namespace OpenSim.Region.Environment.Modules.InterGrid
//int version = 1;
int estateID = 1;
int parentEstateID = 1;
- LLUUID regionID = LLUUID.Zero;
+ UUID regionID = UUID.Zero;
bool visibleToParent = true;
for (int i = 0; i < Parameter.Count; i++)
@@ -537,17 +537,17 @@ namespace OpenSim.Region.Environment.Modules.InterGrid
m_log.InfoFormat("[OGP]: prefix {0}, uuid {1}, suffix {2}", PathArray[1], PathArray[2], PathArray[3]);
string uuidString = PathArray[2];
m_log.InfoFormat("[OGP]: Request to Derez avatar with UUID {0}", uuidString);
- LLUUID userUUID = LLUUID.Zero;
- if (Helpers.TryParse(uuidString, out userUUID))
+ UUID userUUID = UUID.Zero;
+ if (UUID.TryParse(uuidString, out userUUID))
{
- LLUUID RemoteID = uuidString;
- LLUUID LocalID = RemoteID;
+ UUID RemoteID = uuidString;
+ UUID LocalID = RemoteID;
// FIXME: TODO: Routine to map RemoteUUIDs to LocalUUIds
// would be done already.. but the client connects with the Aditi UUID
// regardless over the UDP stack
OGPState userState = GetOGPState(LocalID);
- if (userState.agent_id != LLUUID.Zero)
+ if (userState.agent_id != UUID.Zero)
{
//LLSDMap outboundRequestMap = new LLSDMap();
LLSDMap inboundRequestMap = (LLSDMap)request;
@@ -592,7 +592,7 @@ namespace OpenSim.Region.Environment.Modules.InterGrid
int rrX = rezResponseMap["region_x"].AsInteger();
int rrY = rezResponseMap["region_y"].AsInteger();
m_log.ErrorFormat("X:{0}, Y:{1}", rrX, rrY);
- LLUUID rrRID = rezResponseMap["region_id"].AsUUID();
+ UUID rrRID = rezResponseMap["region_id"].AsUUID();
string rrAccess = rezResponseMap["sim_access"].AsString();
@@ -802,12 +802,12 @@ namespace OpenSim.Region.Environment.Modules.InterGrid
OGPState returnState = new OGPState();
returnState.first_name = "";
returnState.last_name = "";
- returnState.agent_id = LLUUID.Zero;
- returnState.local_agent_id = LLUUID.Zero;
- returnState.region_id = LLUUID.Zero;
+ returnState.agent_id = UUID.Zero;
+ returnState.local_agent_id = UUID.Zero;
+ returnState.region_id = UUID.Zero;
returnState.circuit_code = 0;
- returnState.secure_session_id = LLUUID.Zero;
- returnState.session_id = LLUUID.Zero;
+ returnState.secure_session_id = UUID.Zero;
+ returnState.session_id = UUID.Zero;
returnState.agent_access = true;
returnState.god_level = 0;
returnState.god_overide = false;
@@ -827,7 +827,7 @@ namespace OpenSim.Region.Environment.Modules.InterGrid
return returnState;
}
- private OGPState GetOGPState(LLUUID agentId)
+ private OGPState GetOGPState(UUID agentId)
{
lock (m_OGPState)
{
@@ -842,7 +842,7 @@ namespace OpenSim.Region.Environment.Modules.InterGrid
}
}
- public void DeleteOGPState(LLUUID agentId)
+ public void DeleteOGPState(UUID agentId)
{
lock (m_OGPState)
{
@@ -851,7 +851,7 @@ namespace OpenSim.Region.Environment.Modules.InterGrid
}
}
- private void UpdateOGPState(LLUUID agentId, OGPState state)
+ private void UpdateOGPState(UUID agentId, OGPState state)
{
lock (m_OGPState)
{
@@ -866,7 +866,7 @@ namespace OpenSim.Region.Environment.Modules.InterGrid
}
}
- public void ShutdownConnection(LLUUID avatarId, OpenGridProtocolModule mod)
+ public void ShutdownConnection(UUID avatarId, OpenGridProtocolModule mod)
{
Scene homeScene = GetRootScene();
ScenePresence avatar = null;
@@ -905,7 +905,7 @@ namespace OpenSim.Region.Environment.Modules.InterGrid
public void ShutdownNoLogout()
{
- LLUUID avUUID = LLUUID.Zero;
+ UUID avUUID = UUID.Zero;
if (avToBeKilled != null)
{
diff --git a/OpenSim/Region/Environment/Modules/Scripting/DynamicTexture/DynamicTextureModule.cs b/OpenSim/Region/Environment/Modules/Scripting/DynamicTexture/DynamicTextureModule.cs
index 15ce584..59d29d6 100644
--- a/OpenSim/Region/Environment/Modules/Scripting/DynamicTexture/DynamicTextureModule.cs
+++ b/OpenSim/Region/Environment/Modules/Scripting/DynamicTexture/DynamicTextureModule.cs
@@ -29,9 +29,9 @@ using System;
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Imaging;
-using libsecondlife;
+using OpenMetaverse;
+using OpenMetaverse.Imaging;
using Nini.Config;
-using OpenJPEGNet;
using OpenSim.Framework;
using OpenSim.Region.Environment.Interfaces;
using OpenSim.Region.Environment.Scenes;
@@ -40,12 +40,12 @@ namespace OpenSim.Region.Environment.Modules.Scripting.DynamicTexture
{
public class DynamicTextureModule : IRegionModule, IDynamicTextureManager
{
- private Dictionary RegisteredScenes = new Dictionary();
+ private Dictionary RegisteredScenes = new Dictionary();
private Dictionary RenderPlugins =
new Dictionary();
- private Dictionary Updaters = new Dictionary();
+ private Dictionary Updaters = new Dictionary();
#region IDynamicTextureManager Members
@@ -62,7 +62,7 @@ namespace OpenSim.Region.Environment.Modules.Scripting.DynamicTexture
///
///
///
- public void ReturnData(LLUUID id, byte[] data)
+ public void ReturnData(UUID id, byte[] data)
{
if (Updaters.ContainsKey(id))
{
@@ -75,13 +75,13 @@ namespace OpenSim.Region.Environment.Modules.Scripting.DynamicTexture
}
}
- public LLUUID AddDynamicTextureURL(LLUUID simID, LLUUID primID, string contentType, string url,
+ public UUID AddDynamicTextureURL(UUID simID, UUID primID, string contentType, string url,
string extraParams, int updateTimer)
{
return AddDynamicTextureURL(simID, primID, contentType, url, extraParams, updateTimer, false, 255);
}
- public LLUUID AddDynamicTextureURL(LLUUID simID, LLUUID primID, string contentType, string url,
+ public UUID AddDynamicTextureURL(UUID simID, UUID primID, string contentType, string url,
string extraParams, int updateTimer, bool SetBlending, byte AlphaValue)
{
if (RenderPlugins.ContainsKey(contentType))
@@ -94,7 +94,7 @@ namespace OpenSim.Region.Environment.Modules.Scripting.DynamicTexture
updater.ContentType = contentType;
updater.Url = url;
updater.UpdateTimer = updateTimer;
- updater.UpdaterID = LLUUID.Random();
+ updater.UpdaterID = UUID.Random();
updater.Params = extraParams;
updater.BlendWithOldTexture = SetBlending;
updater.FrontAlpha = AlphaValue;
@@ -107,16 +107,16 @@ namespace OpenSim.Region.Environment.Modules.Scripting.DynamicTexture
RenderPlugins[contentType].AsyncConvertUrl(updater.UpdaterID, url, extraParams);
return updater.UpdaterID;
}
- return LLUUID.Zero;
+ return UUID.Zero;
}
- public LLUUID AddDynamicTextureData(LLUUID simID, LLUUID primID, string contentType, string data,
+ public UUID AddDynamicTextureData(UUID simID, UUID primID, string contentType, string data,
string extraParams, int updateTimer)
{
return AddDynamicTextureData(simID, primID, contentType, data, extraParams, updateTimer, false, 255);
}
- public LLUUID AddDynamicTextureData(LLUUID simID, LLUUID primID, string contentType, string data,
+ public UUID AddDynamicTextureData(UUID simID, UUID primID, string contentType, string data,
string extraParams, int updateTimer, bool SetBlending, byte AlphaValue)
{
if (RenderPlugins.ContainsKey(contentType))
@@ -127,7 +127,7 @@ namespace OpenSim.Region.Environment.Modules.Scripting.DynamicTexture
updater.ContentType = contentType;
updater.BodyData = data;
updater.UpdateTimer = updateTimer;
- updater.UpdaterID = LLUUID.Random();
+ updater.UpdaterID = UUID.Random();
updater.Params = extraParams;
updater.BlendWithOldTexture = SetBlending;
updater.FrontAlpha = AlphaValue;
@@ -140,7 +140,7 @@ namespace OpenSim.Region.Environment.Modules.Scripting.DynamicTexture
RenderPlugins[contentType].AsyncConvertData(updater.UpdaterID, data, extraParams);
return updater.UpdaterID;
}
- return LLUUID.Zero;
+ return UUID.Zero;
}
#endregion
@@ -184,18 +184,18 @@ namespace OpenSim.Region.Environment.Modules.Scripting.DynamicTexture
public string BodyData;
public string ContentType;
public byte FrontAlpha = 255;
- public LLUUID LastAssetID;
+ public UUID LastAssetID;
public string Params;
- public LLUUID PrimID;
+ public UUID PrimID;
public bool SetNewFrontAlpha = false;
- public LLUUID SimUUID;
- public LLUUID UpdaterID;
+ public UUID SimUUID;
+ public UUID UpdaterID;
public int UpdateTimer;
public string Url;
public DynamicTextureUpdater()
{
- LastAssetID = LLUUID.Zero;
+ LastAssetID = UUID.Zero;
UpdateTimer = 0;
BodyData = null;
}
@@ -211,7 +211,7 @@ namespace OpenSim.Region.Environment.Modules.Scripting.DynamicTexture
if (BlendWithOldTexture)
{
- LLUUID lastTextureID = part.Shape.Textures.DefaultTexture.TextureID;
+ UUID lastTextureID = part.Shape.Textures.DefaultTexture.TextureID;
oldAsset = scene.AssetCache.GetAsset(lastTextureID, true);
if (oldAsset != null)
{
@@ -231,7 +231,7 @@ namespace OpenSim.Region.Environment.Modules.Scripting.DynamicTexture
// Create a new asset for user
AssetBase asset = new AssetBase();
- asset.FullID = LLUUID.Random();
+ asset.FullID = UUID.Random();
asset.Data = assetData;
asset.Name = "DynamicImage" + Util.RandomClass.Next(1, 10000);
asset.Type = 0;
@@ -243,10 +243,10 @@ namespace OpenSim.Region.Environment.Modules.Scripting.DynamicTexture
LastAssetID = asset.FullID;
// mostly keep the values from before
- LLObject.TextureEntry tmptex = part.Shape.Textures;
+ Primitive.TextureEntry tmptex = part.Shape.Textures;
// remove the old asset from the cache
- LLUUID oldID = tmptex.DefaultTexture.TextureID;
+ UUID oldID = tmptex.DefaultTexture.TextureID;
scene.AssetCache.ExpireAsset(oldID);
tmptex.DefaultTexture.TextureID = asset.FullID;
@@ -259,15 +259,27 @@ namespace OpenSim.Region.Environment.Modules.Scripting.DynamicTexture
private byte[] BlendTextures(byte[] frontImage, byte[] backImage, bool setNewAlpha, byte newAlpha)
{
- Bitmap image1 = new Bitmap(OpenJPEG.DecodeToImage(frontImage));
- Bitmap image2 = new Bitmap(OpenJPEG.DecodeToImage(backImage));
- if (setNewAlpha)
+ ManagedImage managedImage;
+ Image image;
+
+ if (OpenJPEG.DecodeToImage(frontImage, out managedImage, out image))
{
- SetAlpha(ref image1, newAlpha);
+ Bitmap image1 = new Bitmap(image);
+
+ if (OpenJPEG.DecodeToImage(backImage, out managedImage, out image))
+ {
+ Bitmap image2 = new Bitmap(image);
+
+ if (setNewAlpha)
+ SetAlpha(ref image1, newAlpha);
+
+ Bitmap joint = MergeBitMaps(image1, image2);
+
+ return OpenJPEG.EncodeFromImage(joint, true);
+ }
}
- Bitmap joint = MergeBitMaps(image1, image2);
- return OpenJPEG.EncodeFromImage(joint, true);
+ return null;
}
public Bitmap MergeBitMaps(Bitmap front, Bitmap back)
diff --git a/OpenSim/Region/Environment/Modules/Scripting/EMailModules/EmailModule.cs b/OpenSim/Region/Environment/Modules/Scripting/EMailModules/EmailModule.cs
index bcf3e76..5a715f5 100644
--- a/OpenSim/Region/Environment/Modules/Scripting/EMailModules/EmailModule.cs
+++ b/OpenSim/Region/Environment/Modules/Scripting/EMailModules/EmailModule.cs
@@ -29,7 +29,7 @@ using System;
using System.Reflection;
using System.Collections.Generic;
using System.Text.RegularExpressions;
-using libsecondlife;
+using OpenMetaverse;
using OpenSim.Framework;
using OpenSim.Region.Environment.Interfaces;
using OpenSim.Region.Environment.Scenes;
@@ -161,7 +161,7 @@ namespace OpenSim.Region.Environment.Modules.Scripting.EmailModules
}
}
- private SceneObjectPart findPrim(LLUUID objectID, out string ObjectRegionName)
+ private SceneObjectPart findPrim(UUID objectID, out string ObjectRegionName)
{
lock (m_Scenes)
{
@@ -179,7 +179,7 @@ namespace OpenSim.Region.Environment.Modules.Scripting.EmailModules
return null;
}
- private void resolveNamePositionRegionName(LLUUID objectID, out string ObjectName, out string ObjectAbsolutePosition, out string ObjectRegionName)
+ private void resolveNamePositionRegionName(UUID objectID, out string ObjectName, out string ObjectAbsolutePosition, out string ObjectRegionName)
{
string m_ObjectRegionName;
SceneObjectPart part = findPrim(objectID, out m_ObjectRegionName);
@@ -203,7 +203,7 @@ namespace OpenSim.Region.Environment.Modules.Scripting.EmailModules
///
///
///
- public void SendEmail(LLUUID objectID, string address, string subject, string body)
+ public void SendEmail(UUID objectID, string address, string subject, string body)
{
//Check if address is empty
if (address == string.Empty)
@@ -240,7 +240,7 @@ namespace OpenSim.Region.Environment.Modules.Scripting.EmailModules
//Creation EmailMessage
EmailMessage emailMessage = new EmailMessage();
//From
- emailMessage.FromAddress = new EmailAddress(objectID.UUID.ToString()+"@"+m_HostName);
+ emailMessage.FromAddress = new EmailAddress(objectID.ToString()+"@"+m_HostName);
//To - Only One
emailMessage.AddToAddress(new EmailAddress(address));
//Subject
@@ -264,7 +264,7 @@ namespace OpenSim.Region.Environment.Modules.Scripting.EmailModules
//Send Email Message
emailMessage.Send(smtpServer);
//Log
- m_log.Info("[EMAIL] EMail sent to: " + address + " from object: " + objectID.UUID.ToString());
+ m_log.Info("[EMAIL] EMail sent to: " + address + " from object: " + objectID.ToString());
}
catch (Exception e)
{
@@ -280,7 +280,7 @@ namespace OpenSim.Region.Environment.Modules.Scripting.EmailModules
///
///
///
- public Email GetNextEmail(LLUUID objectID, string sender, string subject)
+ public Email GetNextEmail(UUID objectID, string sender, string subject)
{
return null;
}
diff --git a/OpenSim/Region/Environment/Modules/Scripting/HttpRequest/ScriptsHttpRequests.cs b/OpenSim/Region/Environment/Modules/Scripting/HttpRequest/ScriptsHttpRequests.cs
index 1eb0387..9595588 100644
--- a/OpenSim/Region/Environment/Modules/Scripting/HttpRequest/ScriptsHttpRequests.cs
+++ b/OpenSim/Region/Environment/Modules/Scripting/HttpRequest/ScriptsHttpRequests.cs
@@ -31,7 +31,7 @@ using System.IO;
using System.Net;
using System.Text;
using System.Threading;
-using libsecondlife;
+using OpenMetaverse;
using Nini.Config;
using OpenSim.Framework;
using OpenSim.Framework.Servers;
@@ -91,7 +91,7 @@ namespace OpenSim.Region.Environment.Modules.Scripting.HttpRequest
private string m_name = "HttpScriptRequests";
//
- private Dictionary m_pendingRequests;
+ private Dictionary m_pendingRequests;
private Scene m_scene;
// private Queue rpcQueue = new Queue();
@@ -101,14 +101,14 @@ namespace OpenSim.Region.Environment.Modules.Scripting.HttpRequest
#region IHttpRequests Members
- public LLUUID MakeHttpRequest(string url, string parameters, string body)
+ public UUID MakeHttpRequest(string url, string parameters, string body)
{
- return LLUUID.Zero;
+ return UUID.Zero;
}
- public LLUUID StartHttpRequest(uint localID, LLUUID itemID, string url, List parameters, Dictionary headers, string body)
+ public UUID StartHttpRequest(uint localID, UUID itemID, string url, List parameters, Dictionary headers, string body)
{
- LLUUID reqID = LLUUID.Random();
+ UUID reqID = UUID.Random();
HttpRequestClass htc = new HttpRequestClass();
// Partial implementation: support for parameter flags needed
@@ -163,7 +163,7 @@ namespace OpenSim.Region.Environment.Modules.Scripting.HttpRequest
return reqID;
}
- public void StopHttpRequest(uint m_localID, LLUUID m_itemID)
+ public void StopHttpRequest(uint m_localID, UUID m_itemID)
{
if (m_pendingRequests != null)
{
@@ -192,7 +192,7 @@ namespace OpenSim.Region.Environment.Modules.Scripting.HttpRequest
{
lock (HttpListLock)
{
- foreach (LLUUID luid in m_pendingRequests.Keys)
+ foreach (UUID luid in m_pendingRequests.Keys)
{
HttpRequestClass tmpReq;
@@ -208,7 +208,7 @@ namespace OpenSim.Region.Environment.Modules.Scripting.HttpRequest
return null;
}
- public void RemoveCompletedRequest(LLUUID id)
+ public void RemoveCompletedRequest(UUID id)
{
lock (HttpListLock)
{
@@ -232,7 +232,7 @@ namespace OpenSim.Region.Environment.Modules.Scripting.HttpRequest
m_scene.RegisterModuleInterface(this);
- m_pendingRequests = new Dictionary();
+ m_pendingRequests = new Dictionary();
}
public void PostInitialise()
@@ -274,11 +274,11 @@ namespace OpenSim.Region.Environment.Modules.Scripting.HttpRequest
public bool httpVerifyCert = true; // not implemented
// Request info
- public LLUUID itemID;
+ public UUID itemID;
public uint localID;
public DateTime next;
public string outbound_body;
- public LLUUID reqID;
+ public UUID reqID;
public HttpWebRequest request;
public string response_body;
public List response_metadata;
diff --git a/OpenSim/Region/Environment/Modules/Scripting/LoadImageURL/LoadImageURLModule.cs b/OpenSim/Region/Environment/Modules/Scripting/LoadImageURL/LoadImageURLModule.cs
index 725322b..339ad42 100644
--- a/OpenSim/Region/Environment/Modules/Scripting/LoadImageURL/LoadImageURLModule.cs
+++ b/OpenSim/Region/Environment/Modules/Scripting/LoadImageURL/LoadImageURLModule.cs
@@ -29,9 +29,9 @@ using System;
using System.Drawing;
using System.IO;
using System.Net;
-using libsecondlife;
+using OpenMetaverse;
+using OpenMetaverse.Imaging;
using Nini.Config;
-using OpenJPEGNet;
using OpenSim.Region.Environment.Interfaces;
using OpenSim.Region.Environment.Scenes;
@@ -70,13 +70,13 @@ namespace OpenSim.Region.Environment.Modules.Scripting.LoadImageURL
return null;
}
- public bool AsyncConvertUrl(LLUUID id, string url, string extraParams)
+ public bool AsyncConvertUrl(UUID id, string url, string extraParams)
{
MakeHttpRequest(url, id);
return true;
}
- public bool AsyncConvertData(LLUUID id, string bodyData, string extraParams)
+ public bool AsyncConvertData(UUID id, string bodyData, string extraParams)
{
return false;
}
@@ -118,7 +118,7 @@ namespace OpenSim.Region.Environment.Modules.Scripting.LoadImageURL
#endregion
- private void MakeHttpRequest(string url, LLUUID requestID)
+ private void MakeHttpRequest(string url, UUID requestID)
{
WebRequest request = HttpWebRequest.Create(url);
RequestState state = new RequestState((HttpWebRequest) request, requestID);
@@ -177,10 +177,10 @@ namespace OpenSim.Region.Environment.Modules.Scripting.LoadImageURL
public class RequestState
{
public HttpWebRequest Request = null;
- public LLUUID RequestID = LLUUID.Zero;
+ public UUID RequestID = UUID.Zero;
public int TimeOfRequest = 0;
- public RequestState(HttpWebRequest request, LLUUID requestID)
+ public RequestState(HttpWebRequest request, UUID requestID)
{
Request = request;
RequestID = requestID;
@@ -189,4 +189,4 @@ namespace OpenSim.Region.Environment.Modules.Scripting.LoadImageURL
#endregion
}
-}
\ No newline at end of file
+}
diff --git a/OpenSim/Region/Environment/Modules/Scripting/VectorRender/VectorRenderModule.cs b/OpenSim/Region/Environment/Modules/Scripting/VectorRender/VectorRenderModule.cs
index 27f1182..256bf27 100644
--- a/OpenSim/Region/Environment/Modules/Scripting/VectorRender/VectorRenderModule.cs
+++ b/OpenSim/Region/Environment/Modules/Scripting/VectorRender/VectorRenderModule.cs
@@ -31,12 +31,11 @@ using System.Drawing.Imaging;
using System.Globalization;
using System.IO;
using System.Net;
-using libsecondlife;
+using OpenMetaverse;
+using OpenMetaverse.Imaging;
using Nini.Config;
-using OpenJPEGNet;
using OpenSim.Region.Environment.Interfaces;
using OpenSim.Region.Environment.Scenes;
-using Image=System.Drawing.Image;
//using Cairo;
@@ -79,12 +78,12 @@ namespace OpenSim.Region.Environment.Modules.Scripting.VectorRender
return null;
}
- public bool AsyncConvertUrl(LLUUID id, string url, string extraParams)
+ public bool AsyncConvertUrl(UUID id, string url, string extraParams)
{
return false;
}
- public bool AsyncConvertData(LLUUID id, string bodyData, string extraParams)
+ public bool AsyncConvertData(UUID id, string bodyData, string extraParams)
{
Draw(bodyData, id, extraParams);
return true;
@@ -127,7 +126,7 @@ namespace OpenSim.Region.Environment.Modules.Scripting.VectorRender
#endregion
- private void Draw(string data, LLUUID id, string extraParams)
+ private void Draw(string data, UUID id, string extraParams)
{
// TODO: this is a brutal hack. extraParams should actually be parsed reasonably.
int size = 256;
@@ -374,4 +373,4 @@ namespace OpenSim.Region.Environment.Modules.Scripting.VectorRender
return null;
}
}
-}
\ No newline at end of file
+}
diff --git a/OpenSim/Region/Environment/Modules/Scripting/WorldComm/WorldCommModule.cs b/OpenSim/Region/Environment/Modules/Scripting/WorldComm/WorldCommModule.cs
index 2f67dee..ae5eefc 100644
--- a/OpenSim/Region/Environment/Modules/Scripting/WorldComm/WorldCommModule.cs
+++ b/OpenSim/Region/Environment/Modules/Scripting/WorldComm/WorldCommModule.cs
@@ -28,7 +28,7 @@
using System;
using System.Collections;
using System.Collections.Generic;
-using libsecondlife;
+using OpenMetaverse;
using Nini.Config;
using OpenSim.Framework;
using OpenSim.Region.Environment.Interfaces;
@@ -66,7 +66,7 @@ using OpenSim.Region.Environment.Scenes;
*
* For LSL compliance, note the following:
* (Tested again 1.21.1 on May 2, 2008)
- * 1. 'id' has to be parsed into a LLUUID. None-UUID keys are
+ * 1. 'id' has to be parsed into a UUID. None-UUID keys are
* to be replaced by the ZeroID key. (Well, TryParse does
* that for us.
* 2. Setting up an listen event from the same script, with the
@@ -157,7 +157,7 @@ namespace OpenSim.Region.Environment.Modules.Scripting.WorldComm
/// key to filter on (user given, could be totally faked)
/// msg to filter on
/// number of the scripts handle
- public int Listen(uint localID, LLUUID itemID, LLUUID hostID, int channel, string name, LLUUID id, string msg)
+ public int Listen(uint localID, UUID itemID, UUID hostID, int channel, string name, UUID id, string msg)
{
return m_listenerManager.AddListener(localID, itemID, hostID, channel, name, id, msg);
}
@@ -169,7 +169,7 @@ namespace OpenSim.Region.Environment.Modules.Scripting.WorldComm
/// UUID of the script engine
/// handle returned by Listen()
/// temp. activate or deactivate the Listen()
- public void ListenControl(LLUUID itemID, int handle, int active)
+ public void ListenControl(UUID itemID, int handle, int active)
{
if (active == 1)
m_listenerManager.Activate(itemID, handle);
@@ -182,7 +182,7 @@ namespace OpenSim.Region.Environment.Modules.Scripting.WorldComm
///
/// UUID of the script engine
/// handle returned by Listen()
- public void ListenRemove(LLUUID itemID, int handle)
+ public void ListenRemove(UUID itemID, int handle)
{
m_listenerManager.Remove(itemID, handle);
}
@@ -192,7 +192,7 @@ namespace OpenSim.Region.Environment.Modules.Scripting.WorldComm
/// (script engine)
///
/// UUID of the script engine
- public void DeleteListener(LLUUID itemID)
+ public void DeleteListener(UUID itemID)
{
m_listenerManager.DeleteListener(itemID);
}
@@ -210,11 +210,11 @@ namespace OpenSim.Region.Environment.Modules.Scripting.WorldComm
/// name of sender (object or avatar)
/// key of sender (object or avatar)
/// msg to sent
- public void DeliverMessage(ChatTypeEnum type, int channel, string name, LLUUID id, string msg)
+ public void DeliverMessage(ChatTypeEnum type, int channel, string name, UUID id, string msg)
{
SceneObjectPart source = null;
ScenePresence avatar = null;
- LLVector3 position;
+ Vector3 position;
source = m_scene.GetSceneObjectPart(id);
if (source != null)
@@ -231,7 +231,7 @@ namespace OpenSim.Region.Environment.Modules.Scripting.WorldComm
// Determine which listen event filters match the given set of arguments, this results
// in a limited set of listeners, each belonging a host. If the host is in range, add them
// to the pending queue.
- foreach (ListenerInfo li in m_listenerManager.GetListeners(LLUUID.Zero, channel, name, id, msg))
+ foreach (ListenerInfo li in m_listenerManager.GetListeners(UUID.Zero, channel, name, id, msg))
{
// Dont process if this message is from yourself!
if (li.GetHostID().Equals(id))
@@ -331,12 +331,12 @@ namespace OpenSim.Region.Environment.Modules.Scripting.WorldComm
e.Message);
}
- public Object[] GetSerializationData(LLUUID itemID)
+ public Object[] GetSerializationData(UUID itemID)
{
return m_listenerManager.GetSerializationData(itemID);
}
- public void CreateFromData(uint localID, LLUUID itemID, LLUUID hostID,
+ public void CreateFromData(uint localID, UUID itemID, UUID hostID,
Object[] data)
{
m_listenerManager.AddFromData(localID, itemID, hostID, data);
@@ -357,7 +357,7 @@ namespace OpenSim.Region.Environment.Modules.Scripting.WorldComm
m_curlisteners = 0;
}
- public int AddListener(uint localID, LLUUID itemID, LLUUID hostID, int channel, string name, LLUUID id, string msg)
+ public int AddListener(uint localID, UUID itemID, UUID hostID, int channel, string name, UUID id, string msg)
{
// do we already have a match on this particular filter event?
List coll = GetListeners(itemID, channel, name, id, msg);
@@ -395,7 +395,7 @@ namespace OpenSim.Region.Environment.Modules.Scripting.WorldComm
return -1;
}
- public void Remove(LLUUID itemID, int handle)
+ public void Remove(UUID itemID, int handle)
{
lock (m_listeners)
{
@@ -419,7 +419,7 @@ namespace OpenSim.Region.Environment.Modules.Scripting.WorldComm
}
}
- public void DeleteListener(LLUUID itemID)
+ public void DeleteListener(UUID itemID)
{
List emptyChannels = new List();
List removedListeners = new List();
@@ -455,7 +455,7 @@ namespace OpenSim.Region.Environment.Modules.Scripting.WorldComm
}
}
- public void Activate(LLUUID itemID, int handle)
+ public void Activate(UUID itemID, int handle)
{
lock (m_listeners)
{
@@ -474,7 +474,7 @@ namespace OpenSim.Region.Environment.Modules.Scripting.WorldComm
}
}
- public void Dectivate(LLUUID itemID, int handle)
+ public void Dectivate(UUID itemID, int handle)
{
lock (m_listeners)
{
@@ -494,7 +494,7 @@ namespace OpenSim.Region.Environment.Modules.Scripting.WorldComm
}
// non-locked access, since its always called in the context of the lock
- private int GetNewHandle(LLUUID itemID)
+ private int GetNewHandle(UUID itemID)
{
List handles = new List();
@@ -521,7 +521,7 @@ namespace OpenSim.Region.Environment.Modules.Scripting.WorldComm
// Theres probably a more clever and efficient way to
// do this, maybe with regex.
// PM2008: Ha, one could even be smart and define a specialized Enumerator.
- public List GetListeners(LLUUID itemID, int channel, string name, LLUUID id, string msg)
+ public List GetListeners(UUID itemID, int channel, string name, UUID id, string msg)
{
List collection = new List();
@@ -539,7 +539,7 @@ namespace OpenSim.Region.Environment.Modules.Scripting.WorldComm
{
continue;
}
- if (!itemID.Equals(LLUUID.Zero) && !li.GetItemID().Equals(itemID))
+ if (!itemID.Equals(UUID.Zero) && !li.GetItemID().Equals(itemID))
{
continue;
}
@@ -547,7 +547,7 @@ namespace OpenSim.Region.Environment.Modules.Scripting.WorldComm
{
continue;
}
- if (!li.GetID().Equals(LLUUID.Zero) && !li.GetID().Equals(id))
+ if (!li.GetID().Equals(UUID.Zero) && !li.GetID().Equals(id))
{
continue;
}
@@ -561,7 +561,7 @@ namespace OpenSim.Region.Environment.Modules.Scripting.WorldComm
return collection;
}
- public Object[] GetSerializationData(LLUUID itemID)
+ public Object[] GetSerializationData(UUID itemID)
{
List