aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--.gitignore3
-rw-r--r--CONTRIBUTORS.txt2
-rw-r--r--OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs166
-rw-r--r--OpenSim/Data/AssetDataBase.cs2
-rw-r--r--OpenSim/Data/IAssetData.cs2
-rw-r--r--OpenSim/Data/IUserAccountData.cs1
-rw-r--r--OpenSim/Data/MSSQL/MSSQLAssetData.cs4
-rw-r--r--OpenSim/Data/MSSQL/MSSQLAvatarData.cs2
-rw-r--r--OpenSim/Data/MSSQL/MSSQLGenericTableHandler.cs4
-rw-r--r--OpenSim/Data/MSSQL/MSSQLGridUserData.cs2
-rw-r--r--OpenSim/Data/MSSQL/MSSQLManager.cs4
-rw-r--r--OpenSim/Data/MSSQL/MSSQLPresenceData.cs2
-rw-r--r--OpenSim/Data/MSSQL/MSSQLSimulationData.cs5
-rw-r--r--OpenSim/Data/MSSQL/MSSQLUserAccountData.cs5
-rw-r--r--OpenSim/Data/MSSQL/MSSQLXInventoryData.cs4
-rw-r--r--OpenSim/Data/MySQL/MySQLAssetData.cs6
-rw-r--r--OpenSim/Data/MySQL/MySQLGenericTableHandler.cs7
-rw-r--r--OpenSim/Data/MySQL/MySQLSimulationData.cs199
-rw-r--r--OpenSim/Data/MySQL/MySQLUserAccountData.cs46
-rw-r--r--OpenSim/Data/MySQL/MySQLXAssetData.cs2
-rw-r--r--OpenSim/Data/MySQL/Resources/RegionStore.migrations2
-rw-r--r--OpenSim/Data/Null/NullSimulationData.cs5
-rw-r--r--OpenSim/Data/Null/NullUserAccountData.cs5
-rw-r--r--OpenSim/Data/SQLite/SQLiteAssetData.cs4
-rw-r--r--OpenSim/Data/SQLite/SQLiteSimulationData.cs4
-rw-r--r--OpenSim/Data/SQLite/SQLiteUserAccountData.cs5
-rw-r--r--OpenSim/Framework/AssetBase.cs8
-rw-r--r--OpenSim/Framework/AvatarAppearance.cs73
-rw-r--r--OpenSim/Framework/AvatarWearable.cs18
-rw-r--r--OpenSim/Framework/ChildAgentDataUpdate.cs36
-rw-r--r--OpenSim/Framework/Communications/RestClient.cs2
-rw-r--r--OpenSim/Framework/EstateSettings.cs56
-rw-r--r--OpenSim/Framework/ExtraPhysicsData.cs50
-rw-r--r--OpenSim/Framework/IClientAPI.cs24
-rw-r--r--OpenSim/Framework/IMoneyModule.cs1
-rw-r--r--OpenSim/Framework/LandData.cs2
-rw-r--r--OpenSim/Framework/ObjectChangeData.cs80
-rw-r--r--OpenSim/Framework/ParcelMediaCommandEnum.cs2
-rw-r--r--OpenSim/Framework/PluginLoader.cs17
-rw-r--r--OpenSim/Framework/PrimitiveBaseShape.cs38
-rw-r--r--OpenSim/Framework/RegionInfo.cs15
-rw-r--r--OpenSim/Framework/RegionLoader/Web/RegionLoaderWebServer.cs118
-rw-r--r--OpenSim/Framework/RegionSettings.cs22
-rw-r--r--OpenSim/Framework/Servers/BaseOpenSimServer.cs2
-rw-r--r--OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs32
-rw-r--r--OpenSim/Framework/Servers/VersionInfo.cs6
-rw-r--r--OpenSim/Framework/TaskInventoryDictionary.cs189
-rw-r--r--OpenSim/Framework/TaskInventoryItem.cs12
-rw-r--r--OpenSim/Framework/Tests/MundaneFrameworkTests.cs6
-rw-r--r--OpenSim/Framework/Util.cs46
-rw-r--r--OpenSim/Framework/Watchdog.cs4
-rw-r--r--OpenSim/Framework/WebUtil.cs12
-rw-r--r--OpenSim/Region/Application/OpenSim.cs4
-rw-r--r--OpenSim/Region/Application/OpenSimBase.cs83
-rw-r--r--OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs158
-rw-r--r--OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueGetModule.cs8
-rw-r--r--OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueHelper.cs20
-rw-r--r--OpenSim/Region/ClientStack/Linden/UDP/J2KImage.cs3
-rw-r--r--OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs1175
-rw-r--r--OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs65
-rw-r--r--OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs6
-rw-r--r--OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs4
-rw-r--r--OpenSim/Region/CoreModules/Agent/AssetTransaction/AssetXferUploader.cs127
-rw-r--r--OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs93
-rw-r--r--OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs184
-rw-r--r--OpenSim/Region/CoreModules/Avatar/Attachments/Tests/AttachmentsModuleTests.cs4
-rw-r--r--OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs17
-rw-r--r--OpenSim/Region/CoreModules/Avatar/Chat/ChatModule.cs104
-rw-r--r--OpenSim/Region/CoreModules/Avatar/Dialog/DialogModule.cs2
-rw-r--r--OpenSim/Region/CoreModules/Avatar/Gods/GodsModule.cs202
-rw-r--r--OpenSim/Region/CoreModules/Avatar/InstantMessage/InstantMessageModule.cs67
-rw-r--r--OpenSim/Region/CoreModules/Avatar/InstantMessage/MessageTransferModule.cs97
-rw-r--r--OpenSim/Region/CoreModules/Avatar/InstantMessage/OfflineMessageModule.cs52
-rw-r--r--OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveReadRequest.cs2
-rw-r--r--OpenSim/Region/CoreModules/Avatar/Inventory/Transfer/InventoryTransferModule.cs171
-rw-r--r--OpenSim/Region/CoreModules/Avatar/Lure/LureModule.cs32
-rw-r--r--OpenSim/Region/CoreModules/Framework/Caps/CapabilitiesModule.cs3
-rw-r--r--OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs209
-rw-r--r--OpenSim/Region/CoreModules/Framework/EntityTransfer/HGEntityTransferModule.cs23
-rw-r--r--OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs129
-rw-r--r--OpenSim/Region/CoreModules/LightShare/LightShareModule.cs3
-rw-r--r--OpenSim/Region/CoreModules/Scripting/HttpRequest/ScriptsHttpRequests.cs31
-rw-r--r--OpenSim/Region/CoreModules/Scripting/LSLHttp/UrlModule.cs373
-rw-r--r--OpenSim/Region/CoreModules/ServiceConnectorsOut/MapImage/MapImageServiceModule.cs19
-rw-r--r--OpenSim/Region/CoreModules/ServiceConnectorsOut/Simulation/LocalSimulationConnector.cs12
-rw-r--r--OpenSim/Region/CoreModules/ServiceConnectorsOut/Simulation/RemoteSimulationConnector.cs15
-rw-r--r--OpenSim/Region/CoreModules/ServiceConnectorsOut/UserAccounts/LocalUserAccountServiceConnector.cs8
-rw-r--r--OpenSim/Region/CoreModules/ServiceConnectorsOut/UserAccounts/RemoteUserAccountServiceConnector.cs12
-rw-r--r--OpenSim/Region/CoreModules/ServiceConnectorsOut/UserAccounts/UserAccountCache.cs15
-rw-r--r--OpenSim/Region/CoreModules/World/Archiver/ArchiveReadRequest.cs18
-rw-r--r--OpenSim/Region/CoreModules/World/Archiver/AssetsRequest.cs8
-rw-r--r--OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs83
-rw-r--r--OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs328
-rw-r--r--OpenSim/Region/CoreModules/World/Land/LandObject.cs63
-rw-r--r--OpenSim/Region/CoreModules/World/Land/PrimCountModule.cs4
-rw-r--r--OpenSim/Region/CoreModules/World/Objects/BuySell/BuySellModule.cs7
-rw-r--r--OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs2
-rw-r--r--OpenSim/Region/CoreModules/World/Region/RestartModule.cs115
-rw-r--r--OpenSim/Region/CoreModules/World/Terrain/TerrainModule.cs2
-rw-r--r--OpenSim/Region/CoreModules/World/Warp3DMap/Warp3DImageModule.cs32
-rw-r--r--OpenSim/Region/CoreModules/World/WorldMap/MapSearchModule.cs12
-rw-r--r--OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs50
-rw-r--r--OpenSim/Region/Framework/Interfaces/IAttachmentsModule.cs8
-rw-r--r--OpenSim/Region/Framework/Interfaces/IEntityInventory.cs3
-rw-r--r--OpenSim/Region/Framework/Interfaces/IEntityTransferModule.cs32
-rw-r--r--OpenSim/Region/Framework/Interfaces/IEstateModule.cs2
-rw-r--r--OpenSim/Region/Framework/Interfaces/IEventQueue.cs2
-rw-r--r--OpenSim/Region/Framework/Interfaces/IInterregionComms.cs8
-rw-r--r--OpenSim/Region/Framework/Interfaces/IRestartModule.cs1
-rw-r--r--OpenSim/Region/Framework/Interfaces/IScriptModule.cs4
-rw-r--r--OpenSim/Region/Framework/Interfaces/ISimulationDataService.cs1
-rw-r--r--OpenSim/Region/Framework/Interfaces/ISimulationDataStore.cs1
-rw-r--r--OpenSim/Region/Framework/Interfaces/ISnmpModule.cs27
-rw-r--r--OpenSim/Region/Framework/Interfaces/IUserAccountCacheModule.cs13
-rw-r--r--OpenSim/Region/Framework/ModuleLoader.cs3
-rw-r--r--OpenSim/Region/Framework/Scenes/Animation/ScenePresenceAnimator.cs20
-rw-r--r--OpenSim/Region/Framework/Scenes/CollisionSounds.cs304
-rw-r--r--OpenSim/Region/Framework/Scenes/EventManager.cs24
-rw-r--r--OpenSim/Region/Framework/Scenes/KeyframeMotion.cs422
-rw-r--r--OpenSim/Region/Framework/Scenes/Prioritizer.cs4
-rw-r--r--OpenSim/Region/Framework/Scenes/SOPMaterial.cs95
-rw-r--r--OpenSim/Region/Framework/Scenes/SOPVehicle.cs742
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.Inventory.cs320
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.PacketHandlers.cs70
-rw-r--r--OpenSim/Region/Framework/Scenes/Scene.cs695
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneBase.cs2
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneCommunicationService.cs32
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneGraph.cs480
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneManager.cs268
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneObjectGroup.Inventory.cs17
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs1359
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneObjectPart.cs1639
-rw-r--r--OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs801
-rw-r--r--OpenSim/Region/Framework/Scenes/ScenePresence.cs574
-rw-r--r--OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs122
-rw-r--r--OpenSim/Region/Framework/Scenes/SimStatsReporter.cs30
-rw-r--r--OpenSim/Region/Framework/Scenes/UndoState.cs367
-rw-r--r--OpenSim/Region/Framework/Scenes/UuidGatherer.cs4
-rw-r--r--OpenSim/Region/OptionalModules/Agent/InternetRelayClientView/Server/IRCClientView.cs16
-rw-r--r--OpenSim/Region/OptionalModules/Avatar/Voice/FreeSwitchVoice/FreeSwitchVoiceModule.cs4
-rw-r--r--OpenSim/Region/OptionalModules/Avatar/Voice/VivoxVoice/VivoxVoiceModule.cs31
-rw-r--r--OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/GroupsModule.cs2
-rw-r--r--OpenSim/Region/OptionalModules/PrimLimitsModule/PrimLimitsModule.cs8
-rw-r--r--OpenSim/Region/OptionalModules/Scripting/XmlRpcRouterModule/XmlRpcRouterModule.cs16
-rw-r--r--OpenSim/Region/OptionalModules/World/MoneyModule/SampleMoneyModule.cs4
-rw-r--r--OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs22
-rw-r--r--OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs47
-rw-r--r--OpenSim/Region/Physics/ChOdePlugin/AssemblyInfo.cs58
-rw-r--r--OpenSim/Region/Physics/ChOdePlugin/ODECharacter.cs1467
-rw-r--r--OpenSim/Region/Physics/ChOdePlugin/ODEPrim.cs4124
-rw-r--r--OpenSim/Region/Physics/ChOdePlugin/ODERayCastRequestManager.cs384
-rw-r--r--OpenSim/Region/Physics/ChOdePlugin/OdePhysicsJoint.cs48
-rw-r--r--OpenSim/Region/Physics/ChOdePlugin/OdePlugin.cs3887
-rw-r--r--OpenSim/Region/Physics/ChOdePlugin/OdeUtils.cs353
-rw-r--r--OpenSim/Region/Physics/ChOdePlugin/Tests/ODETestClass.cs122
-rw-r--r--OpenSim/Region/Physics/ChOdePlugin/drawstuff.cs98
-rw-r--r--OpenSim/Region/Physics/Manager/IMesher.cs2
-rw-r--r--OpenSim/Region/Physics/Manager/PhysicsActor.cs75
-rw-r--r--OpenSim/Region/Physics/Manager/PhysicsScene.cs69
-rw-r--r--OpenSim/Region/Physics/Manager/VehicleConstants.cs45
-rw-r--r--OpenSim/Region/Physics/Manager/ZeroMesher.cs5
-rw-r--r--OpenSim/Region/Physics/Meshing/Mesh.cs72
-rw-r--r--OpenSim/Region/Physics/Meshing/Meshmerizer.cs28
-rw-r--r--OpenSim/Region/Physics/Meshing/SculptMap.cs62
-rw-r--r--OpenSim/Region/Physics/OdePlugin/ODEPrim.cs6
-rw-r--r--OpenSim/Region/Physics/OdePlugin/ODERayCastRequestManager.cs11
-rw-r--r--OpenSim/Region/Physics/POSPlugin/POSPrim.cs2
-rw-r--r--OpenSim/Region/Physics/UbitMeshing/HelperTypes.cs340
-rw-r--r--OpenSim/Region/Physics/UbitMeshing/Mesh.cs401
-rw-r--r--OpenSim/Region/Physics/UbitMeshing/Meshmerizer.cs1026
-rw-r--r--OpenSim/Region/Physics/UbitMeshing/PrimMesher.cs2284
-rw-r--r--OpenSim/Region/Physics/UbitMeshing/SculptMap.cs197
-rw-r--r--OpenSim/Region/Physics/UbitMeshing/SculptMesh.cs646
-rw-r--r--OpenSim/Region/Physics/UbitOdePlugin/AssemblyInfo.cs58
-rw-r--r--OpenSim/Region/Physics/UbitOdePlugin/ODECharacter.cs1470
-rw-r--r--OpenSim/Region/Physics/UbitOdePlugin/ODEDynamics.cs1083
-rw-r--r--OpenSim/Region/Physics/UbitOdePlugin/ODEPrim.cs4074
-rw-r--r--OpenSim/Region/Physics/UbitOdePlugin/ODERayCastRequestManager.cs603
-rw-r--r--OpenSim/Region/Physics/UbitOdePlugin/OdeApi.cs2005
-rw-r--r--OpenSim/Region/Physics/UbitOdePlugin/OdePlugin.cs90
-rw-r--r--OpenSim/Region/Physics/UbitOdePlugin/OdeScene.cs2835
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/AsyncCommandManager.cs20
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/CM_Api.cs116
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs3142
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs102
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs11
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/Timer.cs32
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Interface/ICM_Api.cs46
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Interface/ILSL_Api.cs9
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Interface/IOSSL_Api.cs2
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Runtime/CM_Stub.cs71
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Runtime/Executor.cs2
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs26
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Stub.cs46
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LS_Stub.cs21
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Runtime/ScriptBase.cs2
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Helpers.cs8
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs86
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs39
-rw-r--r--OpenSim/Region/ScriptEngine/XEngine/XEngine.cs360
-rw-r--r--OpenSim/Server/Handlers/Simulation/AgentHandlers.cs23
-rw-r--r--OpenSim/Services/AssetService/AssetService.cs5
-rw-r--r--OpenSim/Services/AuthenticationService/AuthenticationServiceBase.cs9
-rw-r--r--OpenSim/Services/AuthenticationService/PasswordAuthenticationService.cs81
-rw-r--r--OpenSim/Services/AuthenticationService/WebkeyAuthenticationService.cs5
-rw-r--r--OpenSim/Services/Connectors/Asset/AssetServicesConnector.cs196
-rw-r--r--OpenSim/Services/Connectors/Grid/GridServicesConnector.cs10
-rw-r--r--OpenSim/Services/Connectors/Hypergrid/GatekeeperServiceConnector.cs6
-rw-r--r--OpenSim/Services/Connectors/Hypergrid/UserAgentServiceConnector.cs2
-rw-r--r--OpenSim/Services/Connectors/Land/LandServicesConnector.cs2
-rw-r--r--OpenSim/Services/Connectors/Presence/PresenceServicesConnector.cs11
-rw-r--r--OpenSim/Services/Connectors/SimianGrid/SimianGridServiceConnector.cs90
-rw-r--r--OpenSim/Services/Connectors/SimianGrid/SimianUserAccountServiceConnector.cs5
-rw-r--r--OpenSim/Services/Connectors/Simulation/SimulationDataService.cs4
-rw-r--r--OpenSim/Services/Connectors/Simulation/SimulationServiceConnector.cs23
-rw-r--r--OpenSim/Services/Connectors/UserAccounts/UserAccountServicesConnector.cs5
-rw-r--r--OpenSim/Services/HypergridService/UserAccountCache.cs5
-rw-r--r--OpenSim/Services/HypergridService/UserAgentService.cs10
-rw-r--r--OpenSim/Services/Interfaces/IAttachmentsService.cs17
-rw-r--r--OpenSim/Services/Interfaces/IAvatarService.cs20
-rw-r--r--OpenSim/Services/Interfaces/IGridService.cs14
-rw-r--r--OpenSim/Services/Interfaces/ISimulationService.cs8
-rw-r--r--OpenSim/Services/Interfaces/IUserAccountService.cs5
-rw-r--r--OpenSim/Services/LLLoginService/LLLoginResponse.cs6
-rw-r--r--OpenSim/Services/LLLoginService/LLLoginService.cs9
-rw-r--r--OpenSim/Services/UserAccountService/UserAccountService.cs21
-rw-r--r--OpenSim/Tests/Common/Mock/MockAssetDataPlugin.cs3
-rw-r--r--OpenSim/Tests/Common/Mock/MockRegionDataPlugin.cs10
-rw-r--r--OpenSim/Tests/Common/Mock/TestClient.cs16
-rw-r--r--ThirdParty/SmartThreadPool/SmartThreadPool.cs13
-rwxr-xr-xbin/MsgPack.dllbin0 -> 37376 bytes
-rwxr-xr-xbin/OpenMetaverse.Rendering.Meshmerizer.dllbin24576 -> 11776 bytes
-rw-r--r--bin/OpenMetaverse.StructuredData.XML408
-rwxr-xr-xbin/OpenMetaverse.StructuredData.dllbin102400 -> 95232 bytes
-rw-r--r--bin/OpenMetaverse.XML31378
-rwxr-xr-xbin/OpenMetaverse.dllbin1753088 -> 1812992 bytes
-rw-r--r--bin/OpenMetaverseTypes.XML2513
-rwxr-xr-xbin/OpenMetaverseTypes.dllbin114688 -> 105984 bytes
-rw-r--r--bin/OpenSimDefaults.ini4
-rw-r--r--bin/OpenSimDefaults.ini.example1325
-rw-r--r--bin/Physics/OpenSim.Region.Physics.UbitOdePlugin.dll.config7
-rw-r--r--bin/assets/TexturesAssetSet/defaultalpha.jp2bin0 -> 319 bytes
-rw-r--r--prebuild.xml284
-rwxr-xr-xrunprebuild.bat2
244 files changed, 61849 insertions, 21143 deletions
diff --git a/.gitignore b/.gitignore
index 0fd1e58..c8990d2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,6 @@
1.project 1.project
2.settings 2.settings
3.gitignore
3*.csproj 4*.csproj
4*.csproj.user 5*.csproj.user
5*.build 6*.build
@@ -10,6 +11,7 @@
10*.pidb 11*.pidb
11*.dll.build 12*.dll.build
12*.dll 13*.dll
14*.log
13*.VisualState.xml 15*.VisualState.xml
14*/*/obj 16*/*/obj
15*/*/*/obj 17*/*/*/obj
@@ -23,6 +25,7 @@
23*/*/*/*/*/bin 25*/*/*/*/*/bin
24*/*/*/*/*/*/bin 26*/*/*/*/*/*/bin
25*/*/*/*/*/*/*/bin 27*/*/*/*/*/*/*/bin
28addon-modules/
26bin/Debug/*.dll 29bin/Debug/*.dll
27bin/*.dll.mdb 30bin/*.dll.mdb
28bin/*.db 31bin/*.db
diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt
index 608a032..b1c3452 100644
--- a/CONTRIBUTORS.txt
+++ b/CONTRIBUTORS.txt
@@ -1,4 +1,4 @@
1 <<<>>>>The following people have contributed to OpenSim (Thank you 1<<<>>>>The following people have contributed to OpenSim (Thank you
2for your effort!) 2for your effort!)
3 3
4= Current OpenSim Developers (in very rough order of appearance) = 4= Current OpenSim Developers (in very rough order of appearance) =
diff --git a/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs b/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs
index 24570d6..437d150 100644
--- a/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs
+++ b/OpenSim/ApplicationPlugins/RemoteController/RemoteAdminPlugin.cs
@@ -131,6 +131,7 @@ namespace OpenSim.ApplicationPlugins.RemoteController
131 availableMethods["admin_region_query"] = (req, ep) => InvokeXmlRpcMethod(req, ep, XmlRpcRegionQueryMethod); 131 availableMethods["admin_region_query"] = (req, ep) => InvokeXmlRpcMethod(req, ep, XmlRpcRegionQueryMethod);
132 availableMethods["admin_shutdown"] = (req, ep) => InvokeXmlRpcMethod(req, ep, XmlRpcShutdownMethod); 132 availableMethods["admin_shutdown"] = (req, ep) => InvokeXmlRpcMethod(req, ep, XmlRpcShutdownMethod);
133 availableMethods["admin_broadcast"] = (req, ep) => InvokeXmlRpcMethod(req, ep, XmlRpcAlertMethod); 133 availableMethods["admin_broadcast"] = (req, ep) => InvokeXmlRpcMethod(req, ep, XmlRpcAlertMethod);
134 availableMethods["admin_dialog"] = (req, ep) => InvokeXmlRpcMethod(req, ep, XmlRpcDialogMethod);
134 availableMethods["admin_restart"] = (req, ep) => InvokeXmlRpcMethod(req, ep, XmlRpcRestartMethod); 135 availableMethods["admin_restart"] = (req, ep) => InvokeXmlRpcMethod(req, ep, XmlRpcRestartMethod);
135 availableMethods["admin_load_heightmap"] = (req, ep) => InvokeXmlRpcMethod(req, ep, XmlRpcLoadHeightmapMethod); 136 availableMethods["admin_load_heightmap"] = (req, ep) => InvokeXmlRpcMethod(req, ep, XmlRpcLoadHeightmapMethod);
136 availableMethods["admin_save_heightmap"] = (req, ep) => InvokeXmlRpcMethod(req, ep, XmlRpcSaveHeightmapMethod); 137 availableMethods["admin_save_heightmap"] = (req, ep) => InvokeXmlRpcMethod(req, ep, XmlRpcSaveHeightmapMethod);
@@ -257,23 +258,101 @@ namespace OpenSim.ApplicationPlugins.RemoteController
257 { 258 {
258 m_log.Info("[RADMIN]: Request to restart Region."); 259 m_log.Info("[RADMIN]: Request to restart Region.");
259 260
260 CheckRegionParams(requestData, responseData);
261
262 Scene rebootedScene = null; 261 Scene rebootedScene = null;
263 GetSceneFromRegionParams(requestData, responseData, out rebootedScene); 262 bool restartAll = false;
263
264 IConfig startupConfig = m_configSource.Configs["Startup"];
265 if (startupConfig != null)
266 {
267 if (startupConfig.GetBoolean("InworldRestartShutsDown", false))
268 {
269 rebootedScene = m_application.SceneManager.CurrentOrFirstScene;
270 restartAll = true;
271 }
272 }
273
274 if (rebootedScene == null)
275 {
276 CheckRegionParams(requestData, responseData);
277
278 GetSceneFromRegionParams(requestData, responseData, out rebootedScene);
279 }
280
281 IRestartModule restartModule = rebootedScene.RequestModuleInterface<IRestartModule>();
264 282
265 responseData["success"] = false; 283 responseData["success"] = false;
266 responseData["accepted"] = true; 284 responseData["accepted"] = true;
267 responseData["rebooting"] = true; 285 responseData["rebooting"] = true;
268 286
269 IRestartModule restartModule = rebootedScene.RequestModuleInterface<IRestartModule>(); 287 string message;
270 if (restartModule != null) 288 List<int> times = new List<int>();
289
290 if (requestData.ContainsKey("alerts"))
271 { 291 {
272 List<int> times = new List<int> { 30, 15 }; 292 string[] alertTimes = requestData["alerts"].ToString().Split( new char[] {','});
293 if (alertTimes.Length == 1 && Convert.ToInt32(alertTimes[0]) == -1)
294 {
295 if (restartModule != null)
296 {
297 message = "Restart has been cancelled";
273 298
274 restartModule.ScheduleRestart(UUID.Zero, "Region will restart in {0}", times.ToArray(), true); 299 if (requestData.ContainsKey("message"))
275 responseData["success"] = true; 300 message = requestData["message"].ToString();
301
302 restartModule.AbortRestart(message);
303
304 responseData["success"] = true;
305 responseData["rebooting"] = false;
306
307 return;
308 }
309 }
310 foreach (string a in alertTimes)
311 times.Add(Convert.ToInt32(a));
276 } 312 }
313 else
314 {
315 int timeout = 30;
316 if (requestData.ContainsKey("milliseconds"))
317 timeout = Int32.Parse(requestData["milliseconds"].ToString()) / 1000;
318 while (timeout > 0)
319 {
320 times.Add(timeout);
321 if (timeout > 300)
322 timeout -= 120;
323 else if (timeout > 30)
324 timeout -= 30;
325 else
326 timeout -= 15;
327 }
328 }
329
330 message = "Region is restarting in {0}. Please save what you are doing and log out.";
331
332 if (requestData.ContainsKey("message"))
333 message = requestData["message"].ToString();
334
335 bool notice = true;
336 if (requestData.ContainsKey("noticetype")
337 && ((string)requestData["noticetype"] == "dialog"))
338 {
339 notice = false;
340 }
341
342 List<Scene> restartList;
343
344 if (restartAll)
345 restartList = m_application.SceneManager.Scenes;
346 else
347 restartList = new List<Scene>() { rebootedScene };
348
349 foreach (Scene s in m_application.SceneManager.Scenes)
350 {
351 restartModule = s.RequestModuleInterface<IRestartModule>();
352 if (restartModule != null)
353 restartModule.ScheduleRestart(UUID.Zero, message, times.ToArray(), notice);
354 }
355 responseData["success"] = true;
277 } 356 }
278 catch (Exception e) 357 catch (Exception e)
279 { 358 {
@@ -310,6 +389,32 @@ namespace OpenSim.ApplicationPlugins.RemoteController
310 m_log.Info("[RADMIN]: Alert request complete"); 389 m_log.Info("[RADMIN]: Alert request complete");
311 } 390 }
312 391
392 public void XmlRpcDialogMethod(XmlRpcRequest request, XmlRpcResponse response, IPEndPoint remoteClient)
393 {
394 Hashtable responseData = (Hashtable)response.Value;
395
396 m_log.Info("[RADMIN]: Dialog request started");
397
398 Hashtable requestData = (Hashtable)request.Params[0];
399
400 string message = (string)requestData["message"];
401 string fromuuid = (string)requestData["from"];
402 m_log.InfoFormat("[RADMIN]: Broadcasting: {0}", message);
403
404 responseData["accepted"] = true;
405 responseData["success"] = true;
406
407 m_application.SceneManager.ForEachScene(
408 delegate(Scene scene)
409 {
410 IDialogModule dialogModule = scene.RequestModuleInterface<IDialogModule>();
411 if (dialogModule != null)
412 dialogModule.SendNotificationToUsersInRegion(UUID.Zero, fromuuid, message);
413 });
414
415 m_log.Info("[RADMIN]: Dialog request complete");
416 }
417
313 private void XmlRpcLoadHeightmapMethod(XmlRpcRequest request, XmlRpcResponse response, IPEndPoint remoteClient) 418 private void XmlRpcLoadHeightmapMethod(XmlRpcRequest request, XmlRpcResponse response, IPEndPoint remoteClient)
314 { 419 {
315 m_log.Info("[RADMIN]: Load height maps request started"); 420 m_log.Info("[RADMIN]: Load height maps request started");
@@ -398,13 +503,32 @@ namespace OpenSim.ApplicationPlugins.RemoteController
398 message = "Region is going down now."; 503 message = "Region is going down now.";
399 } 504 }
400 505
401 m_application.SceneManager.ForEachScene( 506 if (requestData.ContainsKey("noticetype")
507 && ((string) requestData["noticetype"] == "dialog"))
508 {
509 m_application.SceneManager.ForEachScene(
510
402 delegate(Scene scene) 511 delegate(Scene scene)
512 {
513 IDialogModule dialogModule = scene.RequestModuleInterface<IDialogModule>();
514 if (dialogModule != null)
515 dialogModule.SendNotificationToUsersInRegion(UUID.Zero, "System", message);
516 });
517 }
518 else
519 {
520 if (!requestData.ContainsKey("noticetype")
521 || ((string)requestData["noticetype"] != "none"))
522 {
523 m_application.SceneManager.ForEachScene(
524 delegate(Scene scene)
403 { 525 {
404 IDialogModule dialogModule = scene.RequestModuleInterface<IDialogModule>(); 526 IDialogModule dialogModule = scene.RequestModuleInterface<IDialogModule>();
405 if (dialogModule != null) 527 if (dialogModule != null)
406 dialogModule.SendGeneralAlert(message); 528 dialogModule.SendGeneralAlert(message);
407 }); 529 });
530 }
531 }
408 532
409 // Perform shutdown 533 // Perform shutdown
410 System.Timers.Timer shutdownTimer = new System.Timers.Timer(timeout); // Wait before firing 534 System.Timers.Timer shutdownTimer = new System.Timers.Timer(timeout); // Wait before firing
@@ -1570,21 +1694,31 @@ namespace OpenSim.ApplicationPlugins.RemoteController
1570 1694
1571 private void XmlRpcRegionQueryMethod(XmlRpcRequest request, XmlRpcResponse response, IPEndPoint remoteClient) 1695 private void XmlRpcRegionQueryMethod(XmlRpcRequest request, XmlRpcResponse response, IPEndPoint remoteClient)
1572 { 1696 {
1573 m_log.Info("[RADMIN]: Received Query XML Administrator Request");
1574
1575 Hashtable responseData = (Hashtable)response.Value; 1697 Hashtable responseData = (Hashtable)response.Value;
1576 Hashtable requestData = (Hashtable)request.Params[0]; 1698 Hashtable requestData = (Hashtable)request.Params[0];
1577 1699
1700 int flags = 0;
1701 string text = String.Empty;
1702 int health = 0;
1703 responseData["success"] = true;
1704
1578 CheckRegionParams(requestData, responseData); 1705 CheckRegionParams(requestData, responseData);
1579 1706
1580 Scene scene = null; 1707 Scene scene = null;
1581 GetSceneFromRegionParams(requestData, responseData, out scene); 1708 try
1582 1709 {
1583 int health = scene.GetHealth(); 1710 GetSceneFromRegionParams(requestData, responseData, out scene);
1584 responseData["health"] = health; 1711 health = scene.GetHealth(out flags, out text);
1712 }
1713 catch (Exception e)
1714 {
1715 responseData["error"] = null;
1716 }
1585 1717
1586 responseData["success"] = true; 1718 responseData["success"] = true;
1587 m_log.Info("[RADMIN]: Query XML Administrator Request complete"); 1719 responseData["health"] = health;
1720 responseData["flags"] = flags;
1721 responseData["message"] = text;
1588 } 1722 }
1589 1723
1590 private void XmlRpcConsoleCommandMethod(XmlRpcRequest request, XmlRpcResponse response, IPEndPoint remoteClient) 1724 private void XmlRpcConsoleCommandMethod(XmlRpcRequest request, XmlRpcResponse response, IPEndPoint remoteClient)
diff --git a/OpenSim/Data/AssetDataBase.cs b/OpenSim/Data/AssetDataBase.cs
index e1a810c..b4ae913 100644
--- a/OpenSim/Data/AssetDataBase.cs
+++ b/OpenSim/Data/AssetDataBase.cs
@@ -38,7 +38,7 @@ namespace OpenSim.Data
38 { 38 {
39 public abstract AssetBase GetAsset(UUID uuid); 39 public abstract AssetBase GetAsset(UUID uuid);
40 40
41 public abstract void StoreAsset(AssetBase asset); 41 public abstract bool StoreAsset(AssetBase asset);
42 public abstract bool ExistsAsset(UUID uuid); 42 public abstract bool ExistsAsset(UUID uuid);
43 43
44 public abstract List<AssetMetadata> FetchAssetMetadataSet(int start, int count); 44 public abstract List<AssetMetadata> FetchAssetMetadataSet(int start, int count);
diff --git a/OpenSim/Data/IAssetData.cs b/OpenSim/Data/IAssetData.cs
index f31b215c..0c8eadd 100644
--- a/OpenSim/Data/IAssetData.cs
+++ b/OpenSim/Data/IAssetData.cs
@@ -34,7 +34,7 @@ namespace OpenSim.Data
34 public interface IAssetDataPlugin : IPlugin 34 public interface IAssetDataPlugin : IPlugin
35 { 35 {
36 AssetBase GetAsset(UUID uuid); 36 AssetBase GetAsset(UUID uuid);
37 void StoreAsset(AssetBase asset); 37 bool StoreAsset(AssetBase asset);
38 bool ExistsAsset(UUID uuid); 38 bool ExistsAsset(UUID uuid);
39 List<AssetMetadata> FetchAssetMetadataSet(int start, int count); 39 List<AssetMetadata> FetchAssetMetadataSet(int start, int count);
40 void Initialise(string connect); 40 void Initialise(string connect);
diff --git a/OpenSim/Data/IUserAccountData.cs b/OpenSim/Data/IUserAccountData.cs
index 906ba6c..bc7eda7 100644
--- a/OpenSim/Data/IUserAccountData.cs
+++ b/OpenSim/Data/IUserAccountData.cs
@@ -50,5 +50,6 @@ namespace OpenSim.Data
50 bool Store(UserAccountData data); 50 bool Store(UserAccountData data);
51 bool Delete(string field, string val); 51 bool Delete(string field, string val);
52 UserAccountData[] GetUsers(UUID scopeID, string query); 52 UserAccountData[] GetUsers(UUID scopeID, string query);
53 UserAccountData[] GetUsersWhere(UUID scopeID, string where);
53 } 54 }
54} 55}
diff --git a/OpenSim/Data/MSSQL/MSSQLAssetData.cs b/OpenSim/Data/MSSQL/MSSQLAssetData.cs
index c7488d8..c882555 100644
--- a/OpenSim/Data/MSSQL/MSSQLAssetData.cs
+++ b/OpenSim/Data/MSSQL/MSSQLAssetData.cs
@@ -143,7 +143,7 @@ namespace OpenSim.Data.MSSQL
143 /// Create asset in m_database 143 /// Create asset in m_database
144 /// </summary> 144 /// </summary>
145 /// <param name="asset">the asset</param> 145 /// <param name="asset">the asset</param>
146 override public void StoreAsset(AssetBase asset) 146 override public bool StoreAsset(AssetBase asset)
147 { 147 {
148 148
149 string sql = 149 string sql =
@@ -192,10 +192,12 @@ namespace OpenSim.Data.MSSQL
192 try 192 try
193 { 193 {
194 command.ExecuteNonQuery(); 194 command.ExecuteNonQuery();
195 return true;
195 } 196 }
196 catch(Exception e) 197 catch(Exception e)
197 { 198 {
198 m_log.Error("[ASSET DB]: Error storing item :" + e.Message); 199 m_log.Error("[ASSET DB]: Error storing item :" + e.Message);
200 return false;
199 } 201 }
200 } 202 }
201 } 203 }
diff --git a/OpenSim/Data/MSSQL/MSSQLAvatarData.cs b/OpenSim/Data/MSSQL/MSSQLAvatarData.cs
index 301b424..49a6b09 100644
--- a/OpenSim/Data/MSSQL/MSSQLAvatarData.cs
+++ b/OpenSim/Data/MSSQL/MSSQLAvatarData.cs
@@ -43,7 +43,7 @@ namespace OpenSim.Data.MSSQL
43 public class MSSQLAvatarData : MSSQLGenericTableHandler<AvatarBaseData>, 43 public class MSSQLAvatarData : MSSQLGenericTableHandler<AvatarBaseData>,
44 IAvatarData 44 IAvatarData
45 { 45 {
46// private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); 46 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
47 47
48 public MSSQLAvatarData(string connectionString, string realm) : 48 public MSSQLAvatarData(string connectionString, string realm) :
49 base(connectionString, realm, "Avatar") 49 base(connectionString, realm, "Avatar")
diff --git a/OpenSim/Data/MSSQL/MSSQLGenericTableHandler.cs b/OpenSim/Data/MSSQL/MSSQLGenericTableHandler.cs
index 4145d95..8f471c4 100644
--- a/OpenSim/Data/MSSQL/MSSQLGenericTableHandler.cs
+++ b/OpenSim/Data/MSSQL/MSSQLGenericTableHandler.cs
@@ -40,8 +40,8 @@ namespace OpenSim.Data.MSSQL
40{ 40{
41 public class MSSQLGenericTableHandler<T> where T : class, new() 41 public class MSSQLGenericTableHandler<T> where T : class, new()
42 { 42 {
43// private static readonly ILog m_log = 43 private static readonly ILog m_log =
44// LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); 44 LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
45 45
46 protected string m_ConnectionString; 46 protected string m_ConnectionString;
47 protected MSSQLManager m_database; //used for parameter type translation 47 protected MSSQLManager m_database; //used for parameter type translation
diff --git a/OpenSim/Data/MSSQL/MSSQLGridUserData.cs b/OpenSim/Data/MSSQL/MSSQLGridUserData.cs
index 9e215f9..1870273 100644
--- a/OpenSim/Data/MSSQL/MSSQLGridUserData.cs
+++ b/OpenSim/Data/MSSQL/MSSQLGridUserData.cs
@@ -43,7 +43,7 @@ namespace OpenSim.Data.MSSQL
43 public class MSSQLGridUserData : MSSQLGenericTableHandler<GridUserData>, 43 public class MSSQLGridUserData : MSSQLGenericTableHandler<GridUserData>,
44 IGridUserData 44 IGridUserData
45 { 45 {
46// private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); 46 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
47 47
48 public MSSQLGridUserData(string connectionString, string realm) : 48 public MSSQLGridUserData(string connectionString, string realm) :
49 base(connectionString, realm, "GridUserStore") 49 base(connectionString, realm, "GridUserStore")
diff --git a/OpenSim/Data/MSSQL/MSSQLManager.cs b/OpenSim/Data/MSSQL/MSSQLManager.cs
index 9a0015c..62c38d3 100644
--- a/OpenSim/Data/MSSQL/MSSQLManager.cs
+++ b/OpenSim/Data/MSSQL/MSSQLManager.cs
@@ -41,7 +41,7 @@ namespace OpenSim.Data.MSSQL
41 /// </summary> 41 /// </summary>
42 public class MSSQLManager 42 public class MSSQLManager
43 { 43 {
44// private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); 44 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
45 45
46 /// <summary> 46 /// <summary>
47 /// Connection string for ADO.net 47 /// Connection string for ADO.net
@@ -185,6 +185,8 @@ namespace OpenSim.Data.MSSQL
185 return parameter; 185 return parameter;
186 } 186 }
187 187
188 private static readonly Dictionary<string, string> emptyDictionary = new Dictionary<string, string>();
189
188 /// <summary> 190 /// <summary>
189 /// Checks if we need to do some migrations to the database 191 /// Checks if we need to do some migrations to the database
190 /// </summary> 192 /// </summary>
diff --git a/OpenSim/Data/MSSQL/MSSQLPresenceData.cs b/OpenSim/Data/MSSQL/MSSQLPresenceData.cs
index 8068d23..e7b3d9c 100644
--- a/OpenSim/Data/MSSQL/MSSQLPresenceData.cs
+++ b/OpenSim/Data/MSSQL/MSSQLPresenceData.cs
@@ -43,7 +43,7 @@ namespace OpenSim.Data.MSSQL
43 public class MSSQLPresenceData : MSSQLGenericTableHandler<PresenceData>, 43 public class MSSQLPresenceData : MSSQLGenericTableHandler<PresenceData>,
44 IPresenceData 44 IPresenceData
45 { 45 {
46// private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); 46 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
47 47
48 public MSSQLPresenceData(string connectionString, string realm) : 48 public MSSQLPresenceData(string connectionString, string realm) :
49 base(connectionString, realm, "Presence") 49 base(connectionString, realm, "Presence")
diff --git a/OpenSim/Data/MSSQL/MSSQLSimulationData.cs b/OpenSim/Data/MSSQL/MSSQLSimulationData.cs
index 3f29f5b..47fb6d7 100644
--- a/OpenSim/Data/MSSQL/MSSQLSimulationData.cs
+++ b/OpenSim/Data/MSSQL/MSSQLSimulationData.cs
@@ -2202,5 +2202,10 @@ VALUES
2202 } 2202 }
2203 } 2203 }
2204 } 2204 }
2205
2206 public UUID[] GetObjectIDs(UUID regionID)
2207 {
2208 return new UUID[0];
2209 }
2205 } 2210 }
2206} 2211}
diff --git a/OpenSim/Data/MSSQL/MSSQLUserAccountData.cs b/OpenSim/Data/MSSQL/MSSQLUserAccountData.cs
index 7feec91..dd0689c 100644
--- a/OpenSim/Data/MSSQL/MSSQLUserAccountData.cs
+++ b/OpenSim/Data/MSSQL/MSSQLUserAccountData.cs
@@ -242,5 +242,10 @@ namespace OpenSim.Data.MSSQL
242 return DoQuery(cmd); 242 return DoQuery(cmd);
243 } 243 }
244 } 244 }
245
246 public UserAccountData[] GetUsersWhere(UUID scopeID, string where)
247 {
248 return null;
249 }
245 } 250 }
246} 251}
diff --git a/OpenSim/Data/MSSQL/MSSQLXInventoryData.cs b/OpenSim/Data/MSSQL/MSSQLXInventoryData.cs
index b19a0da..a1069c6 100644
--- a/OpenSim/Data/MSSQL/MSSQLXInventoryData.cs
+++ b/OpenSim/Data/MSSQL/MSSQLXInventoryData.cs
@@ -40,8 +40,8 @@ namespace OpenSim.Data.MSSQL
40{ 40{
41 public class MSSQLXInventoryData : IXInventoryData 41 public class MSSQLXInventoryData : IXInventoryData
42 { 42 {
43// private static readonly ILog m_log = LogManager.GetLogger( 43 private static readonly ILog m_log = LogManager.GetLogger(
44// MethodBase.GetCurrentMethod().DeclaringType); 44 MethodBase.GetCurrentMethod().DeclaringType);
45 45
46 private MSSQLGenericTableHandler<XInventoryFolder> m_Folders; 46 private MSSQLGenericTableHandler<XInventoryFolder> m_Folders;
47 private MSSQLItemHandler m_Items; 47 private MSSQLItemHandler m_Items;
diff --git a/OpenSim/Data/MySQL/MySQLAssetData.cs b/OpenSim/Data/MySQL/MySQLAssetData.cs
index 73de64b..20df234 100644
--- a/OpenSim/Data/MySQL/MySQLAssetData.cs
+++ b/OpenSim/Data/MySQL/MySQLAssetData.cs
@@ -155,7 +155,7 @@ namespace OpenSim.Data.MySQL
155 /// </summary> 155 /// </summary>
156 /// <param name="asset">Asset UUID to create</param> 156 /// <param name="asset">Asset UUID to create</param>
157 /// <remarks>On failure : Throw an exception and attempt to reconnect to database</remarks> 157 /// <remarks>On failure : Throw an exception and attempt to reconnect to database</remarks>
158 override public void StoreAsset(AssetBase asset) 158 override public bool StoreAsset(AssetBase asset)
159 { 159 {
160 lock (m_dbLock) 160 lock (m_dbLock)
161 { 161 {
@@ -201,12 +201,14 @@ namespace OpenSim.Data.MySQL
201 cmd.Parameters.AddWithValue("?asset_flags", (int)asset.Flags); 201 cmd.Parameters.AddWithValue("?asset_flags", (int)asset.Flags);
202 cmd.Parameters.AddWithValue("?data", asset.Data); 202 cmd.Parameters.AddWithValue("?data", asset.Data);
203 cmd.ExecuteNonQuery(); 203 cmd.ExecuteNonQuery();
204 return true;
204 } 205 }
205 } 206 }
206 catch (Exception e) 207 catch (Exception e)
207 { 208 {
208 m_log.ErrorFormat("[ASSET DB]: MySQL failure creating asset {0} with name \"{1}\". Error: {2}", 209 m_log.ErrorFormat("[ASSET DB]: MySQL failure creating asset {0} with name \"{1}\". Error: {2}",
209 asset.FullID, asset.Name, e.Message); 210 asset.FullID, asset.Name, e.Message);
211 return false;
210 } 212 }
211 } 213 }
212 } 214 }
@@ -370,4 +372,4 @@ namespace OpenSim.Data.MySQL
370 372
371 #endregion 373 #endregion
372 } 374 }
373} \ No newline at end of file 375}
diff --git a/OpenSim/Data/MySQL/MySQLGenericTableHandler.cs b/OpenSim/Data/MySQL/MySQLGenericTableHandler.cs
index da8e958..86367a1 100644
--- a/OpenSim/Data/MySQL/MySQLGenericTableHandler.cs
+++ b/OpenSim/Data/MySQL/MySQLGenericTableHandler.cs
@@ -175,6 +175,11 @@ namespace OpenSim.Data.MySQL
175 int v = Convert.ToInt32(reader[name]); 175 int v = Convert.ToInt32(reader[name]);
176 m_Fields[name].SetValue(row, v); 176 m_Fields[name].SetValue(row, v);
177 } 177 }
178 else if (m_Fields[name].FieldType == typeof(uint))
179 {
180 uint v = Convert.ToUInt32(reader[name]);
181 m_Fields[name].SetValue(row, v);
182 }
178 else 183 else
179 { 184 {
180 m_Fields[name].SetValue(row, reader[name]); 185 m_Fields[name].SetValue(row, reader[name]);
@@ -296,4 +301,4 @@ namespace OpenSim.Data.MySQL
296 } 301 }
297 } 302 }
298 } 303 }
299} \ No newline at end of file 304}
diff --git a/OpenSim/Data/MySQL/MySQLSimulationData.cs b/OpenSim/Data/MySQL/MySQLSimulationData.cs
index 1a2e113..4e7c8af 100644
--- a/OpenSim/Data/MySQL/MySQLSimulationData.cs
+++ b/OpenSim/Data/MySQL/MySQLSimulationData.cs
@@ -66,7 +66,7 @@ namespace OpenSim.Data.MySQL
66 Initialise(connectionString); 66 Initialise(connectionString);
67 } 67 }
68 68
69 public void Initialise(string connectionString) 69 public virtual void Initialise(string connectionString)
70 { 70 {
71 m_connectionString = connectionString; 71 m_connectionString = connectionString;
72 72
@@ -113,14 +113,16 @@ namespace OpenSim.Data.MySQL
113 113
114 public void Dispose() {} 114 public void Dispose() {}
115 115
116 public void StoreObject(SceneObjectGroup obj, UUID regionUUID) 116 public virtual void StoreObject(SceneObjectGroup obj, UUID regionUUID)
117 { 117 {
118 uint flags = obj.RootPart.GetEffectiveObjectFlags(); 118 uint flags = obj.RootPart.GetEffectiveObjectFlags();
119 119
120 // Eligibility check 120 // Eligibility check
121 // 121 //
122 if ((flags & (uint)PrimFlags.Temporary) != 0) 122 // PrimFlags.Temporary is not used in OpenSim code and cannot
123 return; 123 // be guaranteed to always be clear. Don't check it.
124// if ((flags & (uint)PrimFlags.Temporary) != 0)
125// return;
124 if ((flags & (uint)PrimFlags.TemporaryOnRez) != 0) 126 if ((flags & (uint)PrimFlags.TemporaryOnRez) != 0)
125 return; 127 return;
126 128
@@ -135,7 +137,7 @@ namespace OpenSim.Data.MySQL
135 foreach (SceneObjectPart prim in obj.Parts) 137 foreach (SceneObjectPart prim in obj.Parts)
136 { 138 {
137 cmd.Parameters.Clear(); 139 cmd.Parameters.Clear();
138 140
139 cmd.CommandText = "replace into prims (" + 141 cmd.CommandText = "replace into prims (" +
140 "UUID, CreationDate, " + 142 "UUID, CreationDate, " +
141 "Name, Text, Description, " + 143 "Name, Text, Description, " +
@@ -171,7 +173,10 @@ namespace OpenSim.Data.MySQL
171 "ParticleSystem, ClickAction, Material, " + 173 "ParticleSystem, ClickAction, Material, " +
172 "CollisionSound, CollisionSoundVolume, " + 174 "CollisionSound, CollisionSoundVolume, " +
173 "PassTouches, " + 175 "PassTouches, " +
174 "LinkNumber, MediaURL) values (" + "?UUID, " + 176 "PassCollisions, " +
177 "LinkNumber, MediaURL, KeyframeMotion, " +
178 "PhysicsShapeType, Density, GravityModifier, " +
179 "Friction, Restitution) values (" + "?UUID, " +
175 "?CreationDate, ?Name, ?Text, " + 180 "?CreationDate, ?Name, ?Text, " +
176 "?Description, ?SitName, ?TouchName, " + 181 "?Description, ?SitName, ?TouchName, " +
177 "?ObjectFlags, ?OwnerMask, ?NextOwnerMask, " + 182 "?ObjectFlags, ?OwnerMask, ?NextOwnerMask, " +
@@ -202,14 +207,17 @@ namespace OpenSim.Data.MySQL
202 "?SaleType, ?ColorR, ?ColorG, " + 207 "?SaleType, ?ColorR, ?ColorG, " +
203 "?ColorB, ?ColorA, ?ParticleSystem, " + 208 "?ColorB, ?ColorA, ?ParticleSystem, " +
204 "?ClickAction, ?Material, ?CollisionSound, " + 209 "?ClickAction, ?Material, ?CollisionSound, " +
205 "?CollisionSoundVolume, ?PassTouches, ?LinkNumber, ?MediaURL)"; 210 "?CollisionSoundVolume, ?PassTouches, ?PassCollisions, " +
206 211 "?LinkNumber, ?MediaURL, ?KeyframeMotion, " +
212 "?PhysicsShapeType, ?Density, ?GravityModifier, " +
213 "?Friction, ?Restitution)";
214
207 FillPrimCommand(cmd, prim, obj.UUID, regionUUID); 215 FillPrimCommand(cmd, prim, obj.UUID, regionUUID);
208 216
209 ExecuteNonQuery(cmd); 217 ExecuteNonQuery(cmd);
210 218
211 cmd.Parameters.Clear(); 219 cmd.Parameters.Clear();
212 220
213 cmd.CommandText = "replace into primshapes (" + 221 cmd.CommandText = "replace into primshapes (" +
214 "UUID, Shape, ScaleX, ScaleY, " + 222 "UUID, Shape, ScaleX, ScaleY, " +
215 "ScaleZ, PCode, PathBegin, PathEnd, " + 223 "ScaleZ, PCode, PathBegin, PathEnd, " +
@@ -231,9 +239,9 @@ namespace OpenSim.Data.MySQL
231 "?ProfileEnd, ?ProfileCurve, " + 239 "?ProfileEnd, ?ProfileCurve, " +
232 "?ProfileHollow, ?Texture, ?ExtraParams, " + 240 "?ProfileHollow, ?Texture, ?ExtraParams, " +
233 "?State, ?Media)"; 241 "?State, ?Media)";
234 242
235 FillShapeCommand(cmd, prim); 243 FillShapeCommand(cmd, prim);
236 244
237 ExecuteNonQuery(cmd); 245 ExecuteNonQuery(cmd);
238 } 246 }
239 } 247 }
@@ -241,7 +249,7 @@ namespace OpenSim.Data.MySQL
241 } 249 }
242 } 250 }
243 251
244 public void RemoveObject(UUID obj, UUID regionUUID) 252 public virtual void RemoveObject(UUID obj, UUID regionUUID)
245 { 253 {
246// m_log.DebugFormat("[REGION DB]: Deleting scene object {0} from {1} in database", obj, regionUUID); 254// m_log.DebugFormat("[REGION DB]: Deleting scene object {0} from {1} in database", obj, regionUUID);
247 255
@@ -390,7 +398,7 @@ namespace OpenSim.Data.MySQL
390 } 398 }
391 } 399 }
392 400
393 public List<SceneObjectGroup> LoadObjects(UUID regionID) 401 public virtual List<SceneObjectGroup> LoadObjects(UUID regionID)
394 { 402 {
395 const int ROWS_PER_QUERY = 5000; 403 const int ROWS_PER_QUERY = 5000;
396 404
@@ -446,7 +454,11 @@ namespace OpenSim.Data.MySQL
446 foreach (SceneObjectPart prim in prims.Values) 454 foreach (SceneObjectPart prim in prims.Values)
447 { 455 {
448 if (prim.ParentUUID == UUID.Zero) 456 if (prim.ParentUUID == UUID.Zero)
457 {
449 objects[prim.UUID] = new SceneObjectGroup(prim); 458 objects[prim.UUID] = new SceneObjectGroup(prim);
459 if (prim.KeyframeMotion != null)
460 prim.KeyframeMotion.UpdateSceneObject(objects[prim.UUID]);
461 }
450 } 462 }
451 463
452 // Add all of the children objects to the SOGs 464 // Add all of the children objects to the SOGs
@@ -559,36 +571,51 @@ namespace OpenSim.Data.MySQL
559 } 571 }
560 } 572 }
561 573
562 public void StoreTerrain(double[,] ter, UUID regionID) 574 public virtual void StoreTerrain(double[,] ter, UUID regionID)
563 { 575 {
564 m_log.Info("[REGION DB]: Storing terrain"); 576 Util.FireAndForget(delegate(object x)
565
566 lock (m_dbLock)
567 { 577 {
568 using (MySqlConnection dbcon = new MySqlConnection(m_connectionString)) 578 double[,] oldTerrain = LoadTerrain(regionID);
569 {
570 dbcon.Open();
571 579
572 using (MySqlCommand cmd = dbcon.CreateCommand()) 580 m_log.Info("[REGION DB]: Storing terrain");
581
582 lock (m_dbLock)
583 {
584 using (MySqlConnection dbcon = new MySqlConnection(m_connectionString))
573 { 585 {
574 cmd.CommandText = "delete from terrain where RegionUUID = ?RegionUUID"; 586 dbcon.Open();
575 cmd.Parameters.AddWithValue("RegionUUID", regionID.ToString());
576 587
577 ExecuteNonQuery(cmd); 588 using (MySqlCommand cmd = dbcon.CreateCommand())
589 {
590 cmd.CommandText = "delete from terrain where RegionUUID = ?RegionUUID";
591 cmd.Parameters.AddWithValue("RegionUUID", regionID.ToString());
578 592
579 cmd.CommandText = "insert into terrain (RegionUUID, " + 593 using (MySqlCommand cmd2 = dbcon.CreateCommand())
580 "Revision, Heightfield) values (?RegionUUID, " + 594 {
581 "1, ?Heightfield)"; 595 try
596 {
597 cmd2.CommandText = "insert into terrain (RegionUUID, " +
598 "Revision, Heightfield) values (?RegionUUID, " +
599 "1, ?Heightfield)";
582 600
583 cmd.Parameters.AddWithValue("Heightfield", SerializeTerrain(ter)); 601 cmd2.Parameters.AddWithValue("RegionUUID", regionID.ToString());
602 cmd2.Parameters.AddWithValue("Heightfield", SerializeTerrain(ter, oldTerrain));
584 603
585 ExecuteNonQuery(cmd); 604 ExecuteNonQuery(cmd);
605 ExecuteNonQuery(cmd2);
606 }
607 catch (Exception e)
608 {
609 m_log.ErrorFormat(e.ToString());
610 }
611 }
612 }
586 } 613 }
587 } 614 }
588 } 615 });
589 } 616 }
590 617
591 public double[,] LoadTerrain(UUID regionID) 618 public virtual double[,] LoadTerrain(UUID regionID)
592 { 619 {
593 double[,] terrain = null; 620 double[,] terrain = null;
594 621
@@ -638,7 +665,7 @@ namespace OpenSim.Data.MySQL
638 return terrain; 665 return terrain;
639 } 666 }
640 667
641 public void RemoveLandObject(UUID globalID) 668 public virtual void RemoveLandObject(UUID globalID)
642 { 669 {
643 lock (m_dbLock) 670 lock (m_dbLock)
644 { 671 {
@@ -657,7 +684,7 @@ namespace OpenSim.Data.MySQL
657 } 684 }
658 } 685 }
659 686
660 public void StoreLandObject(ILandObject parcel) 687 public virtual void StoreLandObject(ILandObject parcel)
661 { 688 {
662 lock (m_dbLock) 689 lock (m_dbLock)
663 { 690 {
@@ -714,7 +741,7 @@ namespace OpenSim.Data.MySQL
714 } 741 }
715 } 742 }
716 743
717 public RegionLightShareData LoadRegionWindlightSettings(UUID regionUUID) 744 public virtual RegionLightShareData LoadRegionWindlightSettings(UUID regionUUID)
718 { 745 {
719 RegionLightShareData nWP = new RegionLightShareData(); 746 RegionLightShareData nWP = new RegionLightShareData();
720 nWP.OnSave += StoreRegionWindlightSettings; 747 nWP.OnSave += StoreRegionWindlightSettings;
@@ -736,7 +763,7 @@ namespace OpenSim.Data.MySQL
736 { 763 {
737 //No result, so store our default windlight profile and return it 764 //No result, so store our default windlight profile and return it
738 nWP.regionID = regionUUID; 765 nWP.regionID = regionUUID;
739 StoreRegionWindlightSettings(nWP); 766 // StoreRegionWindlightSettings(nWP);
740 return nWP; 767 return nWP;
741 } 768 }
742 else 769 else
@@ -811,7 +838,7 @@ namespace OpenSim.Data.MySQL
811 return nWP; 838 return nWP;
812 } 839 }
813 840
814 public RegionSettings LoadRegionSettings(UUID regionUUID) 841 public virtual RegionSettings LoadRegionSettings(UUID regionUUID)
815 { 842 {
816 RegionSettings rs = null; 843 RegionSettings rs = null;
817 844
@@ -851,7 +878,7 @@ namespace OpenSim.Data.MySQL
851 return rs; 878 return rs;
852 } 879 }
853 880
854 public void StoreRegionWindlightSettings(RegionLightShareData wl) 881 public virtual void StoreRegionWindlightSettings(RegionLightShareData wl)
855 { 882 {
856 using (MySqlConnection dbcon = new MySqlConnection(m_connectionString)) 883 using (MySqlConnection dbcon = new MySqlConnection(m_connectionString))
857 { 884 {
@@ -954,7 +981,7 @@ namespace OpenSim.Data.MySQL
954 } 981 }
955 } 982 }
956 983
957 public void RemoveRegionWindlightSettings(UUID regionID) 984 public virtual void RemoveRegionWindlightSettings(UUID regionID)
958 { 985 {
959 using (MySqlConnection dbcon = new MySqlConnection(m_connectionString)) 986 using (MySqlConnection dbcon = new MySqlConnection(m_connectionString))
960 { 987 {
@@ -1031,7 +1058,7 @@ namespace OpenSim.Data.MySQL
1031 } 1058 }
1032 #endregion 1059 #endregion
1033 1060
1034 public void StoreRegionSettings(RegionSettings rs) 1061 public virtual void StoreRegionSettings(RegionSettings rs)
1035 { 1062 {
1036 lock (m_dbLock) 1063 lock (m_dbLock)
1037 { 1064 {
@@ -1058,7 +1085,7 @@ namespace OpenSim.Data.MySQL
1058 "use_estate_sun, fixed_sun, sun_position, " + 1085 "use_estate_sun, fixed_sun, sun_position, " +
1059 "covenant, covenant_datetime, Sandbox, sunvectorx, sunvectory, " + 1086 "covenant, covenant_datetime, Sandbox, sunvectorx, sunvectory, " +
1060 "sunvectorz, loaded_creation_datetime, " + 1087 "sunvectorz, loaded_creation_datetime, " +
1061 "loaded_creation_id, map_tile_ID, " + 1088 "loaded_creation_id, map_tile_ID, block_search, casino, " +
1062 "TelehubObject, parcel_tile_ID) " + 1089 "TelehubObject, parcel_tile_ID) " +
1063 "values (?RegionUUID, ?BlockTerraform, " + 1090 "values (?RegionUUID, ?BlockTerraform, " +
1064 "?BlockFly, ?AllowDamage, ?RestrictPushing, " + 1091 "?BlockFly, ?AllowDamage, ?RestrictPushing, " +
@@ -1075,7 +1102,8 @@ namespace OpenSim.Data.MySQL
1075 "?SunPosition, ?Covenant, ?CovenantChangedDateTime, ?Sandbox, " + 1102 "?SunPosition, ?Covenant, ?CovenantChangedDateTime, ?Sandbox, " +
1076 "?SunVectorX, ?SunVectorY, ?SunVectorZ, " + 1103 "?SunVectorX, ?SunVectorY, ?SunVectorZ, " +
1077 "?LoadedCreationDateTime, ?LoadedCreationID, " + 1104 "?LoadedCreationDateTime, ?LoadedCreationID, " +
1078 "?TerrainImageID, ?TelehubObject, ?ParcelImageID) "; 1105 "?TerrainImageID, ?block_search, ?casino, " +
1106 "?TelehubObject, ?ParcelImageID)";
1079 1107
1080 FillRegionSettingsCommand(cmd, rs); 1108 FillRegionSettingsCommand(cmd, rs);
1081 1109
@@ -1086,7 +1114,7 @@ namespace OpenSim.Data.MySQL
1086 SaveSpawnPoints(rs); 1114 SaveSpawnPoints(rs);
1087 } 1115 }
1088 1116
1089 public List<LandData> LoadLandObjects(UUID regionUUID) 1117 public virtual List<LandData> LoadLandObjects(UUID regionUUID)
1090 { 1118 {
1091 List<LandData> landData = new List<LandData>(); 1119 List<LandData> landData = new List<LandData>();
1092 1120
@@ -1268,11 +1296,31 @@ namespace OpenSim.Data.MySQL
1268 prim.CollisionSoundVolume = (float)(double)row["CollisionSoundVolume"]; 1296 prim.CollisionSoundVolume = (float)(double)row["CollisionSoundVolume"];
1269 1297
1270 prim.PassTouches = ((sbyte)row["PassTouches"] != 0); 1298 prim.PassTouches = ((sbyte)row["PassTouches"] != 0);
1299 prim.PassCollisions = ((sbyte)row["PassCollisions"] != 0);
1271 prim.LinkNum = (int)row["LinkNumber"]; 1300 prim.LinkNum = (int)row["LinkNumber"];
1272 1301
1273 if (!(row["MediaURL"] is System.DBNull)) 1302 if (!(row["MediaURL"] is System.DBNull))
1274 prim.MediaUrl = (string)row["MediaURL"]; 1303 prim.MediaUrl = (string)row["MediaURL"];
1275 1304
1305 if (!(row["KeyframeMotion"] is DBNull))
1306 {
1307 Byte[] data = (byte[])row["KeyframeMotion"];
1308 if (data.Length > 0)
1309 prim.KeyframeMotion = KeyframeMotion.FromData(null, data);
1310 else
1311 prim.KeyframeMotion = null;
1312 }
1313 else
1314 {
1315 prim.KeyframeMotion = null;
1316 }
1317
1318 prim.PhysicsShapeType = (byte)Convert.ToInt32(row["PhysicsShapeType"].ToString());
1319 prim.Density = (float)(double)row["Density"];
1320 prim.GravityModifier = (float)(double)row["GravityModifier"];
1321 prim.Friction = (float)(double)row["Friction"];
1322 prim.Bounciness = (float)(double)row["Restitution"];
1323
1276 return prim; 1324 return prim;
1277 } 1325 }
1278 1326
@@ -1366,6 +1414,9 @@ namespace OpenSim.Data.MySQL
1366 newSettings.ParcelImageID = DBGuid.FromDB(row["parcel_tile_ID"]); 1414 newSettings.ParcelImageID = DBGuid.FromDB(row["parcel_tile_ID"]);
1367 newSettings.TelehubObject = DBGuid.FromDB(row["TelehubObject"]); 1415 newSettings.TelehubObject = DBGuid.FromDB(row["TelehubObject"]);
1368 1416
1417 newSettings.GodBlockSearch = Convert.ToBoolean(row["block_search"]);
1418 newSettings.Casino = Convert.ToBoolean(row["casino"]);
1419
1369 return newSettings; 1420 return newSettings;
1370 } 1421 }
1371 1422
@@ -1463,7 +1514,7 @@ namespace OpenSim.Data.MySQL
1463 /// </summary> 1514 /// </summary>
1464 /// <param name="val"></param> 1515 /// <param name="val"></param>
1465 /// <returns></returns> 1516 /// <returns></returns>
1466 private static Array SerializeTerrain(double[,] val) 1517 private static Array SerializeTerrain(double[,] val, double[,] oldTerrain)
1467 { 1518 {
1468 MemoryStream str = new MemoryStream(((int)Constants.RegionSize * (int)Constants.RegionSize) *sizeof (double)); 1519 MemoryStream str = new MemoryStream(((int)Constants.RegionSize * (int)Constants.RegionSize) *sizeof (double));
1469 BinaryWriter bw = new BinaryWriter(str); 1520 BinaryWriter bw = new BinaryWriter(str);
@@ -1472,7 +1523,11 @@ namespace OpenSim.Data.MySQL
1472 for (int x = 0; x < (int)Constants.RegionSize; x++) 1523 for (int x = 0; x < (int)Constants.RegionSize; x++)
1473 for (int y = 0; y < (int)Constants.RegionSize; y++) 1524 for (int y = 0; y < (int)Constants.RegionSize; y++)
1474 { 1525 {
1475 double height = val[x, y]; 1526 double height = 20.0;
1527 if (oldTerrain != null)
1528 height = oldTerrain[x, y];
1529 if (!double.IsNaN(val[x, y]))
1530 height = val[x, y];
1476 if (height == 0.0) 1531 if (height == 0.0)
1477 height = double.Epsilon; 1532 height = double.Epsilon;
1478 1533
@@ -1616,8 +1671,24 @@ namespace OpenSim.Data.MySQL
1616 else 1671 else
1617 cmd.Parameters.AddWithValue("PassTouches", 0); 1672 cmd.Parameters.AddWithValue("PassTouches", 0);
1618 1673
1674 if (prim.PassCollisions)
1675 cmd.Parameters.AddWithValue("PassCollisions", 1);
1676 else
1677 cmd.Parameters.AddWithValue("PassCollisions", 0);
1678
1619 cmd.Parameters.AddWithValue("LinkNumber", prim.LinkNum); 1679 cmd.Parameters.AddWithValue("LinkNumber", prim.LinkNum);
1620 cmd.Parameters.AddWithValue("MediaURL", prim.MediaUrl); 1680 cmd.Parameters.AddWithValue("MediaURL", prim.MediaUrl);
1681
1682 if (prim.KeyframeMotion != null)
1683 cmd.Parameters.AddWithValue("KeyframeMotion", prim.KeyframeMotion.Serialize());
1684 else
1685 cmd.Parameters.AddWithValue("KeyframeMotion", new Byte[0]);
1686
1687 cmd.Parameters.AddWithValue("PhysicsShapeType", prim.PhysicsShapeType);
1688 cmd.Parameters.AddWithValue("Density", (double)prim.Density);
1689 cmd.Parameters.AddWithValue("GravityModifier", (double)prim.GravityModifier);
1690 cmd.Parameters.AddWithValue("Friction", (double)prim.Friction);
1691 cmd.Parameters.AddWithValue("Restitution", (double)prim.Bounciness);
1621 } 1692 }
1622 1693
1623 /// <summary> 1694 /// <summary>
@@ -1696,6 +1767,9 @@ namespace OpenSim.Data.MySQL
1696 cmd.Parameters.AddWithValue("LoadedCreationDateTime", settings.LoadedCreationDateTime); 1767 cmd.Parameters.AddWithValue("LoadedCreationDateTime", settings.LoadedCreationDateTime);
1697 cmd.Parameters.AddWithValue("LoadedCreationID", settings.LoadedCreationID); 1768 cmd.Parameters.AddWithValue("LoadedCreationID", settings.LoadedCreationID);
1698 cmd.Parameters.AddWithValue("TerrainImageID", settings.TerrainImageID); 1769 cmd.Parameters.AddWithValue("TerrainImageID", settings.TerrainImageID);
1770 cmd.Parameters.AddWithValue("block_search", settings.GodBlockSearch);
1771 cmd.Parameters.AddWithValue("casino", settings.Casino);
1772
1699 cmd.Parameters.AddWithValue("ParcelImageID", settings.ParcelImageID); 1773 cmd.Parameters.AddWithValue("ParcelImageID", settings.ParcelImageID);
1700 cmd.Parameters.AddWithValue("TelehubObject", settings.TelehubObject); 1774 cmd.Parameters.AddWithValue("TelehubObject", settings.TelehubObject);
1701 } 1775 }
@@ -1856,7 +1930,7 @@ namespace OpenSim.Data.MySQL
1856 cmd.Parameters.AddWithValue("Media", null == s.Media ? null : s.Media.ToXml()); 1930 cmd.Parameters.AddWithValue("Media", null == s.Media ? null : s.Media.ToXml());
1857 } 1931 }
1858 1932
1859 public void StorePrimInventory(UUID primID, ICollection<TaskInventoryItem> items) 1933 public virtual void StorePrimInventory(UUID primID, ICollection<TaskInventoryItem> items)
1860 { 1934 {
1861 lock (m_dbLock) 1935 lock (m_dbLock)
1862 { 1936 {
@@ -1900,6 +1974,37 @@ namespace OpenSim.Data.MySQL
1900 } 1974 }
1901 } 1975 }
1902 1976
1977 public UUID[] GetObjectIDs(UUID regionID)
1978 {
1979 List<UUID> uuids = new List<UUID>();
1980
1981 lock (m_dbLock)
1982 {
1983 using (MySqlConnection dbcon = new MySqlConnection(m_connectionString))
1984 {
1985 dbcon.Open();
1986
1987 using (MySqlCommand cmd = dbcon.CreateCommand())
1988 {
1989 cmd.CommandText = "select UUID from prims where RegionUUID = ?RegionUUID";
1990 cmd.Parameters.AddWithValue("RegionUUID", regionID.ToString());
1991
1992 using (IDataReader reader = ExecuteReader(cmd))
1993 {
1994 while (reader.Read())
1995 {
1996 UUID id = new UUID(reader["UUID"].ToString());
1997
1998 uuids.Add(id);
1999 }
2000 }
2001 }
2002 }
2003 }
2004
2005 return uuids.ToArray();
2006 }
2007
1903 private void LoadSpawnPoints(RegionSettings rs) 2008 private void LoadSpawnPoints(RegionSettings rs)
1904 { 2009 {
1905 rs.ClearSpawnPoints(); 2010 rs.ClearSpawnPoints();
diff --git a/OpenSim/Data/MySQL/MySQLUserAccountData.cs b/OpenSim/Data/MySQL/MySQLUserAccountData.cs
index e964295..4ff3175 100644
--- a/OpenSim/Data/MySQL/MySQLUserAccountData.cs
+++ b/OpenSim/Data/MySQL/MySQLUserAccountData.cs
@@ -46,17 +46,21 @@ namespace OpenSim.Data.MySQL
46 { 46 {
47 string[] words = query.Split(new char[] {' '}); 47 string[] words = query.Split(new char[] {' '});
48 48
49 bool valid = false;
50
49 for (int i = 0 ; i < words.Length ; i++) 51 for (int i = 0 ; i < words.Length ; i++)
50 { 52 {
51 if (words[i].Length < 3) 53 if (words[i].Length > 2)
52 { 54 valid = true;
53 if (i != words.Length - 1) 55// if (words[i].Length < 3)
54 Array.Copy(words, i + 1, words, i, words.Length - i - 1); 56// {
55 Array.Resize(ref words, words.Length - 1); 57// if (i != words.Length - 1)
56 } 58// Array.Copy(words, i + 1, words, i, words.Length - i - 1);
59// Array.Resize(ref words, words.Length - 1);
60// }
57 } 61 }
58 62
59 if (words.Length == 0) 63 if ((!valid) || words.Length == 0)
60 return new UserAccountData[0]; 64 return new UserAccountData[0];
61 65
62 if (words.Length > 2) 66 if (words.Length > 2)
@@ -66,20 +70,36 @@ namespace OpenSim.Data.MySQL
66 { 70 {
67 if (words.Length == 1) 71 if (words.Length == 1)
68 { 72 {
69 cmd.CommandText = String.Format("select * from {0} where (ScopeID=?ScopeID or ScopeID='00000000-0000-0000-0000-000000000000') and (FirstName like ?search or LastName like ?search)", m_Realm); 73 cmd.CommandText = String.Format("select * from {0} where (ScopeID=?ScopeID or ScopeID='00000000-0000-0000-0000-000000000000') and (FirstName like ?search or LastName like ?search) and active=1", m_Realm);
70 cmd.Parameters.AddWithValue("?search", "%" + words[0] + "%"); 74 cmd.Parameters.AddWithValue("?search", words[0] + "%");
71 cmd.Parameters.AddWithValue("?ScopeID", scopeID.ToString()); 75 cmd.Parameters.AddWithValue("?ScopeID", scopeID.ToString());
72 } 76 }
73 else 77 else
74 { 78 {
75 cmd.CommandText = String.Format("select * from {0} where (ScopeID=?ScopeID or ScopeID='00000000-0000-0000-0000-000000000000') and (FirstName like ?searchFirst or LastName like ?searchLast)", m_Realm); 79 cmd.CommandText = String.Format("select * from {0} where (ScopeID=?ScopeID or ScopeID='00000000-0000-0000-0000-000000000000') and (FirstName like ?searchFirst and LastName like ?searchLast) and active=1", m_Realm);
76 cmd.Parameters.AddWithValue("?searchFirst", "%" + words[0] + "%"); 80 cmd.Parameters.AddWithValue("?searchFirst", words[0] + "%");
77 cmd.Parameters.AddWithValue("?searchLast", "%" + words[1] + "%"); 81 cmd.Parameters.AddWithValue("?searchLast", words[1] + "%");
78 cmd.Parameters.AddWithValue("?ScopeID", scopeID.ToString()); 82 cmd.Parameters.AddWithValue("?ScopeID", scopeID.ToString());
79 } 83 }
80 84
81 return DoQuery(cmd); 85 return DoQuery(cmd);
82 } 86 }
83 } 87 }
88
89 public UserAccountData[] GetUsersWhere(UUID scopeID, string where)
90 {
91 using (MySqlCommand cmd = new MySqlCommand())
92 {
93 if (scopeID != UUID.Zero)
94 {
95 where = "(ScopeID=?ScopeID or ScopeID='00000000-0000-0000-0000-000000000000') and (" + where + ")";
96 cmd.Parameters.AddWithValue("?ScopeID", scopeID.ToString());
97 }
98
99 cmd.CommandText = String.Format("select * from {0} where " + where, m_Realm);
100
101 return DoQuery(cmd);
102 }
103 }
84 } 104 }
85} \ No newline at end of file 105}
diff --git a/OpenSim/Data/MySQL/MySQLXAssetData.cs b/OpenSim/Data/MySQL/MySQLXAssetData.cs
index e6ac22e..9a50373 100644
--- a/OpenSim/Data/MySQL/MySQLXAssetData.cs
+++ b/OpenSim/Data/MySQL/MySQLXAssetData.cs
@@ -497,4 +497,4 @@ namespace OpenSim.Data.MySQL
497 497
498 #endregion 498 #endregion
499 } 499 }
500} \ No newline at end of file 500}
diff --git a/OpenSim/Data/MySQL/Resources/RegionStore.migrations b/OpenSim/Data/MySQL/Resources/RegionStore.migrations
index 4a925fb..db0d0ec 100644
--- a/OpenSim/Data/MySQL/Resources/RegionStore.migrations
+++ b/OpenSim/Data/MySQL/Resources/RegionStore.migrations
@@ -717,7 +717,7 @@ ALTER TABLE regionsettings ADD COLUMN loaded_creation_datetime int unsigned NOT
717 717
718COMMIT; 718COMMIT;
719 719
720:VERSION 32 720:VERSION 32 #---------------------
721 721
722BEGIN; 722BEGIN;
723CREATE TABLE `regionwindlight` ( 723CREATE TABLE `regionwindlight` (
diff --git a/OpenSim/Data/Null/NullSimulationData.cs b/OpenSim/Data/Null/NullSimulationData.cs
index 8f2314f..a39ef0b 100644
--- a/OpenSim/Data/Null/NullSimulationData.cs
+++ b/OpenSim/Data/Null/NullSimulationData.cs
@@ -151,5 +151,10 @@ namespace OpenSim.Data.Null
151 public void Shutdown() 151 public void Shutdown()
152 { 152 {
153 } 153 }
154
155 public UUID[] GetObjectIDs(UUID regionID)
156 {
157 return new UUID[0];
158 }
154 } 159 }
155} 160}
diff --git a/OpenSim/Data/Null/NullUserAccountData.cs b/OpenSim/Data/Null/NullUserAccountData.cs
index ec54dba..241616b 100644
--- a/OpenSim/Data/Null/NullUserAccountData.cs
+++ b/OpenSim/Data/Null/NullUserAccountData.cs
@@ -193,5 +193,10 @@ namespace OpenSim.Data.Null
193 193
194 return false; 194 return false;
195 } 195 }
196
197 public UserAccountData[] GetUsersWhere(UUID scopeID, string where)
198 {
199 return null;
200 }
196 } 201 }
197} 202}
diff --git a/OpenSim/Data/SQLite/SQLiteAssetData.cs b/OpenSim/Data/SQLite/SQLiteAssetData.cs
index d0e24c3..7f7059b 100644
--- a/OpenSim/Data/SQLite/SQLiteAssetData.cs
+++ b/OpenSim/Data/SQLite/SQLiteAssetData.cs
@@ -131,7 +131,7 @@ namespace OpenSim.Data.SQLite
131 /// Create an asset 131 /// Create an asset
132 /// </summary> 132 /// </summary>
133 /// <param name="asset">Asset Base</param> 133 /// <param name="asset">Asset Base</param>
134 override public void StoreAsset(AssetBase asset) 134 override public bool StoreAsset(AssetBase asset)
135 { 135 {
136 //m_log.Info("[ASSET DB]: Creating Asset " + asset.FullID.ToString()); 136 //m_log.Info("[ASSET DB]: Creating Asset " + asset.FullID.ToString());
137 if (ExistsAsset(asset.FullID)) 137 if (ExistsAsset(asset.FullID))
@@ -153,6 +153,7 @@ namespace OpenSim.Data.SQLite
153 cmd.Parameters.Add(new SqliteParameter(":Data", asset.Data)); 153 cmd.Parameters.Add(new SqliteParameter(":Data", asset.Data));
154 154
155 cmd.ExecuteNonQuery(); 155 cmd.ExecuteNonQuery();
156 return true;
156 } 157 }
157 } 158 }
158 } 159 }
@@ -173,6 +174,7 @@ namespace OpenSim.Data.SQLite
173 cmd.Parameters.Add(new SqliteParameter(":Data", asset.Data)); 174 cmd.Parameters.Add(new SqliteParameter(":Data", asset.Data));
174 175
175 cmd.ExecuteNonQuery(); 176 cmd.ExecuteNonQuery();
177 return true;
176 } 178 }
177 } 179 }
178 } 180 }
diff --git a/OpenSim/Data/SQLite/SQLiteSimulationData.cs b/OpenSim/Data/SQLite/SQLiteSimulationData.cs
index f40e866..9175a8f 100644
--- a/OpenSim/Data/SQLite/SQLiteSimulationData.cs
+++ b/OpenSim/Data/SQLite/SQLiteSimulationData.cs
@@ -2890,5 +2890,9 @@ namespace OpenSim.Data.SQLite
2890 } 2890 }
2891 } 2891 }
2892 2892
2893 public UUID[] GetObjectIDs(UUID regionID)
2894 {
2895 return new UUID[0];
2896 }
2893 } 2897 }
2894} 2898}
diff --git a/OpenSim/Data/SQLite/SQLiteUserAccountData.cs b/OpenSim/Data/SQLite/SQLiteUserAccountData.cs
index 7a5de50..4d580c0 100644
--- a/OpenSim/Data/SQLite/SQLiteUserAccountData.cs
+++ b/OpenSim/Data/SQLite/SQLiteUserAccountData.cs
@@ -81,5 +81,10 @@ namespace OpenSim.Data.SQLite
81 81
82 return DoQuery(cmd); 82 return DoQuery(cmd);
83 } 83 }
84
85 public UserAccountData[] GetUsersWhere(UUID scopeID, string where)
86 {
87 return null;
88 }
84 } 89 }
85} 90}
diff --git a/OpenSim/Framework/AssetBase.cs b/OpenSim/Framework/AssetBase.cs
index d2c6c57..ff240be 100644
--- a/OpenSim/Framework/AssetBase.cs
+++ b/OpenSim/Framework/AssetBase.cs
@@ -60,6 +60,8 @@ namespace OpenSim.Framework
60 /// </summary> 60 /// </summary>
61 private AssetMetadata m_metadata; 61 private AssetMetadata m_metadata;
62 62
63 private int m_uploadAttempts;
64
63 // This is needed for .NET serialization!!! 65 // This is needed for .NET serialization!!!
64 // Do NOT "Optimize" away! 66 // Do NOT "Optimize" away!
65 public AssetBase() 67 public AssetBase()
@@ -198,6 +200,12 @@ namespace OpenSim.Framework
198 set { m_metadata.Type = value; } 200 set { m_metadata.Type = value; }
199 } 201 }
200 202
203 public int UploadAttempts
204 {
205 get { return m_uploadAttempts; }
206 set { m_uploadAttempts = value; }
207 }
208
201 /// <summary> 209 /// <summary>
202 /// Is this a region only asset, or does this exist on the asset server also 210 /// Is this a region only asset, or does this exist on the asset server also
203 /// </summary> 211 /// </summary>
diff --git a/OpenSim/Framework/AvatarAppearance.cs b/OpenSim/Framework/AvatarAppearance.cs
index 4f598b0..c5d9641 100644
--- a/OpenSim/Framework/AvatarAppearance.cs
+++ b/OpenSim/Framework/AvatarAppearance.cs
@@ -42,6 +42,8 @@ namespace OpenSim.Framework
42 { 42 {
43 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); 43 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
44 44
45 // this is viewer capabilities and weared things dependent
46 // should be only used as initial default value ( V1 viewers )
45 public readonly static int VISUALPARAM_COUNT = 218; 47 public readonly static int VISUALPARAM_COUNT = 218;
46 48
47 public readonly static int TEXTURE_COUNT = 21; 49 public readonly static int TEXTURE_COUNT = 21;
@@ -240,6 +242,21 @@ namespace OpenSim.Framework
240// } 242// }
241 } 243 }
242 244
245 /// <summary>
246 /// Invalidate all of the baked textures in the appearance, useful
247 /// if you know that none are valid
248 /// </summary>
249 public virtual void ResetBakedTextures()
250 {
251 SetDefaultTexture();
252
253 //for (int i = 0; i < BAKE_INDICES.Length; i++)
254 // {
255 // int idx = BAKE_INDICES[i];
256 // m_texture.FaceTextures[idx].TextureID = UUID.Zero;
257 // }
258 }
259
243 protected virtual void SetDefaultTexture() 260 protected virtual void SetDefaultTexture()
244 { 261 {
245 m_texture = new Primitive.TextureEntry(new UUID(AppearanceManager.DEFAULT_AVATAR_TEXTURE)); 262 m_texture = new Primitive.TextureEntry(new UUID(AppearanceManager.DEFAULT_AVATAR_TEXTURE));
@@ -304,19 +321,30 @@ namespace OpenSim.Framework
304 // made. We determine if any of the visual parameters actually 321 // made. We determine if any of the visual parameters actually
305 // changed to know if the appearance should be saved later 322 // changed to know if the appearance should be saved later
306 bool changed = false; 323 bool changed = false;
307 for (int i = 0; i < AvatarAppearance.VISUALPARAM_COUNT; i++) 324
325 int newsize = visualParams.Length;
326
327 if (newsize != m_visualparams.Length)
308 { 328 {
309 if (visualParams[i] != m_visualparams[i]) 329 changed = true;
330 m_visualparams = (byte[])visualParams.Clone();
331 }
332 else
333 {
334
335 for (int i = 0; i < newsize; i++)
310 { 336 {
311// DEBUG ON 337 if (visualParams[i] != m_visualparams[i])
312// m_log.WarnFormat("[AVATARAPPEARANCE] vparams changed [{0}] {1} ==> {2}", 338 {
313// i,m_visualparams[i],visualParams[i]); 339 // DEBUG ON
314// DEBUG OFF 340 // m_log.WarnFormat("[AVATARAPPEARANCE] vparams changed [{0}] {1} ==> {2}",
315 m_visualparams[i] = visualParams[i]; 341 // i,m_visualparams[i],visualParams[i]);
316 changed = true; 342 // DEBUG OFF
343 m_visualparams[i] = visualParams[i];
344 changed = true;
345 }
317 } 346 }
318 } 347 }
319
320 // Reset the height if the visual parameters actually changed 348 // Reset the height if the visual parameters actually changed
321 if (changed) 349 if (changed)
322 SetHeight(); 350 SetHeight();
@@ -374,7 +402,8 @@ namespace OpenSim.Framework
374 } 402 }
375 403
376 s += "Visual Params: "; 404 s += "Visual Params: ";
377 for (uint j = 0; j < AvatarAppearance.VISUALPARAM_COUNT; j++) 405 // for (uint j = 0; j < AvatarAppearance.VISUALPARAM_COUNT; j++)
406 for (uint j = 0; j < m_visualparams.Length; j++)
378 s += String.Format("{0},",m_visualparams[j]); 407 s += String.Format("{0},",m_visualparams[j]);
379 s += "\n"; 408 s += "\n";
380 409
@@ -390,19 +419,18 @@ namespace OpenSim.Framework
390 /// </remarks> 419 /// </remarks>
391 public List<AvatarAttachment> GetAttachments() 420 public List<AvatarAttachment> GetAttachments()
392 { 421 {
393 List<AvatarAttachment> alist = new List<AvatarAttachment>(); 422
394 423
395 lock (m_attachments) 424 lock (m_attachments)
396 { 425 {
426 List<AvatarAttachment> alist = new List<AvatarAttachment>();
397 foreach (KeyValuePair<int, List<AvatarAttachment>> kvp in m_attachments) 427 foreach (KeyValuePair<int, List<AvatarAttachment>> kvp in m_attachments)
398 { 428 {
399 foreach (AvatarAttachment attach in kvp.Value) 429 foreach (AvatarAttachment attach in kvp.Value)
400 alist.Add(new AvatarAttachment(attach)); 430 alist.Add(new AvatarAttachment(attach));
401 } 431 }
402 } 432 return alist;
403 433 } }
404 return alist;
405 }
406 434
407 internal void AppendAttachment(AvatarAttachment attach) 435 internal void AppendAttachment(AvatarAttachment attach)
408 { 436 {
@@ -531,7 +559,6 @@ namespace OpenSim.Framework
531 return kvp.Key; 559 return kvp.Key;
532 } 560 }
533 } 561 }
534
535 return 0; 562 return 0;
536 } 563 }
537 564
@@ -598,12 +625,14 @@ namespace OpenSim.Framework
598 OSDBinary visualparams = new OSDBinary(m_visualparams); 625 OSDBinary visualparams = new OSDBinary(m_visualparams);
599 data["visualparams"] = visualparams; 626 data["visualparams"] = visualparams;
600 627
601 // Attachments 628 lock (m_attachments)
602 List<AvatarAttachment> attachments = GetAttachments(); 629 {
603 OSDArray attachs = new OSDArray(attachments.Count); 630 // Attachments
604 foreach (AvatarAttachment attach in GetAttachments()) 631 OSDArray attachs = new OSDArray(m_attachments.Count);
605 attachs.Add(attach.Pack()); 632 foreach (AvatarAttachment attach in GetAttachments())
606 data["attachments"] = attachs; 633 attachs.Add(attach.Pack());
634 data["attachments"] = attachs;
635 }
607 636
608 return data; 637 return data;
609 } 638 }
diff --git a/OpenSim/Framework/AvatarWearable.cs b/OpenSim/Framework/AvatarWearable.cs
index 8e27596..aee295a 100644
--- a/OpenSim/Framework/AvatarWearable.cs
+++ b/OpenSim/Framework/AvatarWearable.cs
@@ -62,9 +62,14 @@ namespace OpenSim.Framework
62 public static readonly int UNDERSHIRT = 10; 62 public static readonly int UNDERSHIRT = 10;
63 public static readonly int UNDERPANTS = 11; 63 public static readonly int UNDERPANTS = 11;
64 public static readonly int SKIRT = 12; 64 public static readonly int SKIRT = 12;
65
66 public static readonly int MAX_BASICWEARABLES = 13;
67
65 public static readonly int ALPHA = 13; 68 public static readonly int ALPHA = 13;
66 public static readonly int TATTOO = 14; 69 public static readonly int TATTOO = 14;
70// public static readonly int PHYSICS = 15;
67 71
72 // public static readonly int MAX_WEARABLES = 16;
68 public static readonly int MAX_WEARABLES = 15; 73 public static readonly int MAX_WEARABLES = 15;
69 74
70 public static readonly UUID DEFAULT_BODY_ITEM = new UUID("66c41e39-38f9-f75a-024e-585989bfaba9"); 75 public static readonly UUID DEFAULT_BODY_ITEM = new UUID("66c41e39-38f9-f75a-024e-585989bfaba9");
@@ -219,7 +224,7 @@ namespace OpenSim.Framework
219 { 224 {
220 get 225 get
221 { 226 {
222 AvatarWearable[] defaultWearables = new AvatarWearable[MAX_WEARABLES]; //should be 15 of these 227 AvatarWearable[] defaultWearables = new AvatarWearable[MAX_WEARABLES];
223 for (int i = 0; i < MAX_WEARABLES; i++) 228 for (int i = 0; i < MAX_WEARABLES; i++)
224 { 229 {
225 defaultWearables[i] = new AvatarWearable(); 230 defaultWearables[i] = new AvatarWearable();
@@ -242,10 +247,13 @@ namespace OpenSim.Framework
242 247
243// // Alpha 248// // Alpha
244// defaultWearables[ALPHA].Add(DEFAULT_ALPHA_ITEM, DEFAULT_ALPHA_ASSET); 249// defaultWearables[ALPHA].Add(DEFAULT_ALPHA_ITEM, DEFAULT_ALPHA_ASSET);
245 250
246// // Tattoo 251 // // Tattoo
247// defaultWearables[TATTOO].Add(DEFAULT_TATTOO_ITEM, DEFAULT_TATTOO_ASSET); 252 // defaultWearables[TATTOO].Add(DEFAULT_TATTOO_ITEM, DEFAULT_TATTOO_ASSET);
248 253
254 // // Physics
255 // defaultWearables[PHYSICS].Add(DEFAULT_TATTOO_ITEM, DEFAULT_TATTOO_ASSET);
256
249 return defaultWearables; 257 return defaultWearables;
250 } 258 }
251 } 259 }
diff --git a/OpenSim/Framework/ChildAgentDataUpdate.cs b/OpenSim/Framework/ChildAgentDataUpdate.cs
index 6d048f4..e718aa6 100644
--- a/OpenSim/Framework/ChildAgentDataUpdate.cs
+++ b/OpenSim/Framework/ChildAgentDataUpdate.cs
@@ -229,12 +229,14 @@ namespace OpenSim.Framework
229 229
230 public class ControllerData 230 public class ControllerData
231 { 231 {
232 public UUID ObjectID;
232 public UUID ItemID; 233 public UUID ItemID;
233 public uint IgnoreControls; 234 public uint IgnoreControls;
234 public uint EventControls; 235 public uint EventControls;
235 236
236 public ControllerData(UUID item, uint ignore, uint ev) 237 public ControllerData(UUID obj, UUID item, uint ignore, uint ev)
237 { 238 {
239 ObjectID = obj;
238 ItemID = item; 240 ItemID = item;
239 IgnoreControls = ignore; 241 IgnoreControls = ignore;
240 EventControls = ev; 242 EventControls = ev;
@@ -248,6 +250,7 @@ namespace OpenSim.Framework
248 public OSDMap PackUpdateMessage() 250 public OSDMap PackUpdateMessage()
249 { 251 {
250 OSDMap controldata = new OSDMap(); 252 OSDMap controldata = new OSDMap();
253 controldata["object"] = OSD.FromUUID(ObjectID);
251 controldata["item"] = OSD.FromUUID(ItemID); 254 controldata["item"] = OSD.FromUUID(ItemID);
252 controldata["ignore"] = OSD.FromInteger(IgnoreControls); 255 controldata["ignore"] = OSD.FromInteger(IgnoreControls);
253 controldata["event"] = OSD.FromInteger(EventControls); 256 controldata["event"] = OSD.FromInteger(EventControls);
@@ -258,6 +261,8 @@ namespace OpenSim.Framework
258 261
259 public void UnpackUpdateMessage(OSDMap args) 262 public void UnpackUpdateMessage(OSDMap args)
260 { 263 {
264 if (args["object"] != null)
265 ObjectID = args["object"].AsUUID();
261 if (args["item"] != null) 266 if (args["item"] != null)
262 ItemID = args["item"].AsUUID(); 267 ItemID = args["item"].AsUUID();
263 if (args["ignore"] != null) 268 if (args["ignore"] != null)
@@ -306,8 +311,11 @@ namespace OpenSim.Framework
306 311
307 public AgentGroupData[] Groups; 312 public AgentGroupData[] Groups;
308 public Animation[] Anims; 313 public Animation[] Anims;
314 public Animation DefaultAnim = null;
309 315
310 public UUID GranterID; 316 public UUID GranterID;
317 public UUID ParentPart;
318 public Vector3 SitOffset;
311 319
312 // Appearance 320 // Appearance
313 public AvatarAppearance Appearance; 321 public AvatarAppearance Appearance;
@@ -390,6 +398,11 @@ namespace OpenSim.Framework
390 args["animations"] = anims; 398 args["animations"] = anims;
391 } 399 }
392 400
401 if (DefaultAnim != null)
402 {
403 args["default_animation"] = DefaultAnim.PackUpdateMessage();
404 }
405
393 if (Appearance != null) 406 if (Appearance != null)
394 args["packed_appearance"] = Appearance.Pack(); 407 args["packed_appearance"] = Appearance.Pack();
395 408
@@ -468,6 +481,10 @@ namespace OpenSim.Framework
468 } 481 }
469 args["attach_objects"] = attObjs; 482 args["attach_objects"] = attObjs;
470 } 483 }
484
485 args["parent_part"] = OSD.FromUUID(ParentPart);
486 args["sit_offset"] = OSD.FromString(SitOffset.ToString());
487
471 return args; 488 return args;
472 } 489 }
473 490
@@ -583,6 +600,18 @@ namespace OpenSim.Framework
583 } 600 }
584 } 601 }
585 602
603 if (args["default_animation"] != null)
604 {
605 try
606 {
607 DefaultAnim = new Animation((OSDMap)args["default_animation"]);
608 }
609 catch
610 {
611 DefaultAnim = null;
612 }
613 }
614
586 //if ((args["agent_textures"] != null) && (args["agent_textures"]).Type == OSDType.Array) 615 //if ((args["agent_textures"] != null) && (args["agent_textures"]).Type == OSDType.Array)
587 //{ 616 //{
588 // OSDArray textures = (OSDArray)(args["agent_textures"]); 617 // OSDArray textures = (OSDArray)(args["agent_textures"]);
@@ -675,6 +704,11 @@ namespace OpenSim.Framework
675 } 704 }
676 } 705 }
677 } 706 }
707
708 if (args["parent_part"] != null)
709 ParentPart = args["parent_part"].AsUUID();
710 if (args["sit_offset"] != null)
711 Vector3.TryParse(args["sit_offset"].AsString(), out SitOffset);
678 } 712 }
679 713
680 public AgentData() 714 public AgentData()
diff --git a/OpenSim/Framework/Communications/RestClient.cs b/OpenSim/Framework/Communications/RestClient.cs
index 97b3b60..42c0b18 100644
--- a/OpenSim/Framework/Communications/RestClient.cs
+++ b/OpenSim/Framework/Communications/RestClient.cs
@@ -363,7 +363,7 @@ namespace OpenSim.Framework.Communications
363 _request = (HttpWebRequest) WebRequest.Create(buildUri()); 363 _request = (HttpWebRequest) WebRequest.Create(buildUri());
364 _request.KeepAlive = false; 364 _request.KeepAlive = false;
365 _request.ContentType = "application/xml"; 365 _request.ContentType = "application/xml";
366 _request.Timeout = 900000; 366 _request.Timeout = 30000;
367 _request.Method = RequestMethod; 367 _request.Method = RequestMethod;
368 _asyncException = null; 368 _asyncException = null;
369 _request.ContentLength = src.Length; 369 _request.ContentLength = src.Length;
diff --git a/OpenSim/Framework/EstateSettings.cs b/OpenSim/Framework/EstateSettings.cs
index a92abbf..9020761 100644
--- a/OpenSim/Framework/EstateSettings.cs
+++ b/OpenSim/Framework/EstateSettings.cs
@@ -58,6 +58,30 @@ namespace OpenSim.Framework
58 set { m_EstateName = value; } 58 set { m_EstateName = value; }
59 } 59 }
60 60
61 private bool m_AllowLandmark = true;
62
63 public bool AllowLandmark
64 {
65 get { return m_AllowLandmark; }
66 set { m_AllowLandmark = value; }
67 }
68
69 private bool m_AllowParcelChanges = true;
70
71 public bool AllowParcelChanges
72 {
73 get { return m_AllowParcelChanges; }
74 set { m_AllowParcelChanges = value; }
75 }
76
77 private bool m_AllowSetHome = true;
78
79 public bool AllowSetHome
80 {
81 get { return m_AllowSetHome; }
82 set { m_AllowSetHome = value; }
83 }
84
61 private uint m_ParentEstateID = 1; 85 private uint m_ParentEstateID = 1;
62 86
63 public uint ParentEstateID 87 public uint ParentEstateID
@@ -338,11 +362,30 @@ namespace OpenSim.Framework
338 return false; 362 return false;
339 } 363 }
340 364
341 public bool IsBanned(UUID avatarID) 365 public bool IsBanned(UUID avatarID, int userFlags)
342 { 366 {
343 foreach (EstateBan ban in l_EstateBans) 367 foreach (EstateBan ban in l_EstateBans)
344 if (ban.BannedUserID == avatarID) 368 if (ban.BannedUserID == avatarID)
345 return true; 369 return true;
370
371 if (!IsEstateManagerOrOwner(avatarID) && !HasAccess(avatarID))
372 {
373 if (DenyMinors)
374 {
375 if ((userFlags & 32) == 0)
376 {
377 return true;
378 }
379 }
380 if (DenyAnonymous)
381 {
382 if ((userFlags & 4) == 0)
383 {
384 return true;
385 }
386 }
387 }
388
346 return false; 389 return false;
347 } 390 }
348 391
@@ -350,7 +393,7 @@ namespace OpenSim.Framework
350 { 393 {
351 if (ban == null) 394 if (ban == null)
352 return; 395 return;
353 if (!IsBanned(ban.BannedUserID)) 396 if (!IsBanned(ban.BannedUserID, 32)) //Ignore age-based bans
354 l_EstateBans.Add(ban); 397 l_EstateBans.Add(ban);
355 } 398 }
356 399
@@ -374,6 +417,15 @@ namespace OpenSim.Framework
374 return l_EstateAccess.Contains(user); 417 return l_EstateAccess.Contains(user);
375 } 418 }
376 419
420 public void SetFromFlags(ulong regionFlags)
421 {
422 ResetHomeOnTeleport = ((regionFlags & (ulong)RegionFlags.ResetHomeOnTeleport) == (ulong)RegionFlags.ResetHomeOnTeleport);
423 BlockDwell = ((regionFlags & (ulong)RegionFlags.BlockDwell) == (ulong)RegionFlags.BlockDwell);
424 AllowLandmark = ((regionFlags & (ulong)RegionFlags.AllowLandmark) == (ulong)RegionFlags.AllowLandmark);
425 AllowParcelChanges = ((regionFlags & (ulong)RegionFlags.AllowParcelChanges) == (ulong)RegionFlags.AllowParcelChanges);
426 AllowSetHome = ((regionFlags & (ulong)RegionFlags.AllowSetHome) == (ulong)RegionFlags.AllowSetHome);
427 }
428
377 public bool GroupAccess(UUID groupID) 429 public bool GroupAccess(UUID groupID)
378 { 430 {
379 return l_EstateGroups.Contains(groupID); 431 return l_EstateGroups.Contains(groupID);
diff --git a/OpenSim/Framework/ExtraPhysicsData.cs b/OpenSim/Framework/ExtraPhysicsData.cs
new file mode 100644
index 0000000..9e7334f
--- /dev/null
+++ b/OpenSim/Framework/ExtraPhysicsData.cs
@@ -0,0 +1,50 @@
1/*
2 * Copyright (c) Contributors, http://opensimulator.org/
3 * See CONTRIBUTORS.TXT for a full list of copyright holders.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 * * Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * * Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
12 * * Neither the name of the OpenSimulator Project nor the
13 * names of its contributors may be used to endorse or promote products
14 * derived from this software without specific prior written permission.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
17 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
20 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28using OpenMetaverse;
29
30namespace OpenSim.Framework
31{
32 public enum PhysShapeType : byte
33 {
34 prim = 0,
35 none = 1,
36 convex = 2,
37
38 invalid = 255 // use to mark invalid data in ExtraPhysicsData
39 }
40
41 public struct ExtraPhysicsData
42 {
43 public float Density;
44 public float GravitationModifier;
45 public float Friction;
46 public float Bounce;
47 public PhysShapeType PhysShapeType;
48
49 }
50}
diff --git a/OpenSim/Framework/IClientAPI.cs b/OpenSim/Framework/IClientAPI.cs
index 4cc2e2c..4b15325 100644
--- a/OpenSim/Framework/IClientAPI.cs
+++ b/OpenSim/Framework/IClientAPI.cs
@@ -70,6 +70,8 @@ namespace OpenSim.Framework
70 70
71 public delegate void StopAnim(IClientAPI remoteClient, UUID animID); 71 public delegate void StopAnim(IClientAPI remoteClient, UUID animID);
72 72
73 public delegate void ChangeAnim(UUID animID, bool addOrRemove, bool sendPack);
74
73 public delegate void LinkObjects(IClientAPI remoteClient, uint parent, List<uint> children); 75 public delegate void LinkObjects(IClientAPI remoteClient, uint parent, List<uint> children);
74 76
75 public delegate void DelinkObjects(List<uint> primIds, IClientAPI client); 77 public delegate void DelinkObjects(List<uint> primIds, IClientAPI client);
@@ -124,12 +126,14 @@ namespace OpenSim.Framework
124 public delegate void ObjectDrop(uint localID, IClientAPI remoteClient); 126 public delegate void ObjectDrop(uint localID, IClientAPI remoteClient);
125 127
126 public delegate void UpdatePrimFlags( 128 public delegate void UpdatePrimFlags(
127 uint localID, bool UsePhysics, bool IsTemporary, bool IsPhantom, IClientAPI remoteClient); 129 uint localID, bool UsePhysics, bool IsTemporary, bool IsPhantom,ExtraPhysicsData PhysData, IClientAPI remoteClient);
128 130
129 public delegate void UpdatePrimTexture(uint localID, byte[] texture, IClientAPI remoteClient); 131 public delegate void UpdatePrimTexture(uint localID, byte[] texture, IClientAPI remoteClient);
130 132
131 public delegate void UpdateVector(uint localID, Vector3 pos, IClientAPI remoteClient); 133 public delegate void UpdateVector(uint localID, Vector3 pos, IClientAPI remoteClient);
132 134
135 public delegate void ClientChangeObject(uint localID, object data ,IClientAPI remoteClient);
136
133 public delegate void UpdatePrimRotation(uint localID, Quaternion rot, IClientAPI remoteClient); 137 public delegate void UpdatePrimRotation(uint localID, Quaternion rot, IClientAPI remoteClient);
134 138
135 public delegate void UpdatePrimSingleRotation(uint localID, Quaternion rot, IClientAPI remoteClient); 139 public delegate void UpdatePrimSingleRotation(uint localID, Quaternion rot, IClientAPI remoteClient);
@@ -266,6 +270,9 @@ namespace OpenSim.Framework
266 public delegate void MoveInventoryItem( 270 public delegate void MoveInventoryItem(
267 IClientAPI remoteClient, List<InventoryItemBase> items); 271 IClientAPI remoteClient, List<InventoryItemBase> items);
268 272
273 public delegate void MoveItemsAndLeaveCopy(
274 IClientAPI remoteClient, List<InventoryItemBase> items, UUID destFolder);
275
269 public delegate void RemoveInventoryItem( 276 public delegate void RemoveInventoryItem(
270 IClientAPI remoteClient, List<UUID> itemIDs); 277 IClientAPI remoteClient, List<UUID> itemIDs);
271 278
@@ -441,6 +448,7 @@ namespace OpenSim.Framework
441 public delegate void ClassifiedInfoRequest(UUID classifiedID, IClientAPI client); 448 public delegate void ClassifiedInfoRequest(UUID classifiedID, IClientAPI client);
442 public delegate void ClassifiedInfoUpdate(UUID classifiedID, uint category, string name, string description, UUID parcelID, uint parentEstate, UUID snapshotID, Vector3 globalPos, byte classifiedFlags, int price, IClientAPI client); 449 public delegate void ClassifiedInfoUpdate(UUID classifiedID, uint category, string name, string description, UUID parcelID, uint parentEstate, UUID snapshotID, Vector3 globalPos, byte classifiedFlags, int price, IClientAPI client);
443 public delegate void ClassifiedDelete(UUID classifiedID, IClientAPI client); 450 public delegate void ClassifiedDelete(UUID classifiedID, IClientAPI client);
451 public delegate void ClassifiedGodDelete(UUID classifiedID, UUID queryID, IClientAPI client);
444 452
445 public delegate void EventNotificationAddRequest(uint EventID, IClientAPI client); 453 public delegate void EventNotificationAddRequest(uint EventID, IClientAPI client);
446 public delegate void EventNotificationRemoveRequest(uint EventID, IClientAPI client); 454 public delegate void EventNotificationRemoveRequest(uint EventID, IClientAPI client);
@@ -463,9 +471,9 @@ namespace OpenSim.Framework
463 471
464 public delegate void AgentFOV(IClientAPI client, float verticalAngle); 472 public delegate void AgentFOV(IClientAPI client, float verticalAngle);
465 473
466 public delegate void MuteListEntryUpdate(IClientAPI client, UUID MuteID, string Name, int Flags,UUID AgentID); 474 public delegate void MuteListEntryUpdate(IClientAPI client, UUID MuteID, string Name, int type, uint flags);
467 475
468 public delegate void MuteListEntryRemove(IClientAPI client, UUID MuteID, string Name, UUID AgentID); 476 public delegate void MuteListEntryRemove(IClientAPI client, UUID MuteID, string Name);
469 477
470 public delegate void AvatarInterestReply(IClientAPI client,UUID target, uint wantmask, string wanttext, uint skillsmask, string skillstext, string languages); 478 public delegate void AvatarInterestReply(IClientAPI client,UUID target, uint wantmask, string wanttext, uint skillsmask, string skillstext, string languages);
471 479
@@ -503,6 +511,7 @@ namespace OpenSim.Framework
503 public delegate void SimWideDeletesDelegate(IClientAPI client,UUID agentID, int flags, UUID targetID); 511 public delegate void SimWideDeletesDelegate(IClientAPI client,UUID agentID, int flags, UUID targetID);
504 512
505 public delegate void SendPostcard(IClientAPI client); 513 public delegate void SendPostcard(IClientAPI client);
514 public delegate void ChangeInventoryItemFlags(IClientAPI client, UUID itemID, uint flags);
506 515
507 #endregion 516 #endregion
508 517
@@ -791,6 +800,7 @@ namespace OpenSim.Framework
791 event ObjectDrop OnObjectDrop; 800 event ObjectDrop OnObjectDrop;
792 event StartAnim OnStartAnim; 801 event StartAnim OnStartAnim;
793 event StopAnim OnStopAnim; 802 event StopAnim OnStopAnim;
803 event ChangeAnim OnChangeAnim;
794 event LinkObjects OnLinkObjects; 804 event LinkObjects OnLinkObjects;
795 event DelinkObjects OnDelinkObjects; 805 event DelinkObjects OnDelinkObjects;
796 event RequestMapBlocks OnRequestMapBlocks; 806 event RequestMapBlocks OnRequestMapBlocks;
@@ -840,6 +850,7 @@ namespace OpenSim.Framework
840 event RequestObjectPropertiesFamily OnRequestObjectPropertiesFamily; 850 event RequestObjectPropertiesFamily OnRequestObjectPropertiesFamily;
841 event UpdatePrimFlags OnUpdatePrimFlags; 851 event UpdatePrimFlags OnUpdatePrimFlags;
842 event UpdatePrimTexture OnUpdatePrimTexture; 852 event UpdatePrimTexture OnUpdatePrimTexture;
853 event ClientChangeObject onClientChangeObject;
843 event UpdateVector OnUpdatePrimGroupPosition; 854 event UpdateVector OnUpdatePrimGroupPosition;
844 event UpdateVector OnUpdatePrimSinglePosition; 855 event UpdateVector OnUpdatePrimSinglePosition;
845 event UpdatePrimRotation OnUpdatePrimGroupRotation; 856 event UpdatePrimRotation OnUpdatePrimGroupRotation;
@@ -864,6 +875,7 @@ namespace OpenSim.Framework
864 event RequestTaskInventory OnRequestTaskInventory; 875 event RequestTaskInventory OnRequestTaskInventory;
865 event UpdateInventoryItem OnUpdateInventoryItem; 876 event UpdateInventoryItem OnUpdateInventoryItem;
866 event CopyInventoryItem OnCopyInventoryItem; 877 event CopyInventoryItem OnCopyInventoryItem;
878 event MoveItemsAndLeaveCopy OnMoveItemsAndLeaveCopy;
867 event MoveInventoryItem OnMoveInventoryItem; 879 event MoveInventoryItem OnMoveInventoryItem;
868 event RemoveInventoryFolder OnRemoveInventoryFolder; 880 event RemoveInventoryFolder OnRemoveInventoryFolder;
869 event RemoveInventoryItem OnRemoveInventoryItem; 881 event RemoveInventoryItem OnRemoveInventoryItem;
@@ -982,7 +994,7 @@ namespace OpenSim.Framework
982 event ClassifiedInfoRequest OnClassifiedInfoRequest; 994 event ClassifiedInfoRequest OnClassifiedInfoRequest;
983 event ClassifiedInfoUpdate OnClassifiedInfoUpdate; 995 event ClassifiedInfoUpdate OnClassifiedInfoUpdate;
984 event ClassifiedDelete OnClassifiedDelete; 996 event ClassifiedDelete OnClassifiedDelete;
985 event ClassifiedDelete OnClassifiedGodDelete; 997 event ClassifiedGodDelete OnClassifiedGodDelete;
986 998
987 event EventNotificationAddRequest OnEventNotificationAddRequest; 999 event EventNotificationAddRequest OnEventNotificationAddRequest;
988 event EventNotificationRemoveRequest OnEventNotificationRemoveRequest; 1000 event EventNotificationRemoveRequest OnEventNotificationRemoveRequest;
@@ -1021,6 +1033,7 @@ namespace OpenSim.Framework
1021 event GroupVoteHistoryRequest OnGroupVoteHistoryRequest; 1033 event GroupVoteHistoryRequest OnGroupVoteHistoryRequest;
1022 event SimWideDeletesDelegate OnSimWideDeletes; 1034 event SimWideDeletesDelegate OnSimWideDeletes;
1023 event SendPostcard OnSendPostcard; 1035 event SendPostcard OnSendPostcard;
1036 event ChangeInventoryItemFlags OnChangeInventoryItemFlags;
1024 event MuteListEntryUpdate OnUpdateMuteListEntry; 1037 event MuteListEntryUpdate OnUpdateMuteListEntry;
1025 event MuteListEntryRemove OnRemoveMuteListEntry; 1038 event MuteListEntryRemove OnRemoveMuteListEntry;
1026 event GodlikeMessage onGodlikeMessage; 1039 event GodlikeMessage onGodlikeMessage;
@@ -1034,6 +1047,7 @@ namespace OpenSim.Framework
1034 void InPacket(object NewPack); 1047 void InPacket(object NewPack);
1035 void ProcessInPacket(Packet NewPack); 1048 void ProcessInPacket(Packet NewPack);
1036 void Close(); 1049 void Close();
1050 void Close(bool sendStop);
1037 void Kick(string message); 1051 void Kick(string message);
1038 1052
1039 /// <summary> 1053 /// <summary>
@@ -1315,6 +1329,8 @@ namespace OpenSim.Framework
1315 1329
1316 void SendObjectPropertiesReply(ISceneEntity Entity); 1330 void SendObjectPropertiesReply(ISceneEntity Entity);
1317 1331
1332 void SendPartPhysicsProprieties(ISceneEntity Entity);
1333
1318 void SendAgentOffline(UUID[] agentIDs); 1334 void SendAgentOffline(UUID[] agentIDs);
1319 1335
1320 void SendAgentOnline(UUID[] agentIDs); 1336 void SendAgentOnline(UUID[] agentIDs);
diff --git a/OpenSim/Framework/IMoneyModule.cs b/OpenSim/Framework/IMoneyModule.cs
index 1e09728..71de93a 100644
--- a/OpenSim/Framework/IMoneyModule.cs
+++ b/OpenSim/Framework/IMoneyModule.cs
@@ -40,6 +40,7 @@ namespace OpenSim.Framework
40 bool AmountCovered(UUID agentID, int amount); 40 bool AmountCovered(UUID agentID, int amount);
41 void ApplyCharge(UUID agentID, int amount, string text); 41 void ApplyCharge(UUID agentID, int amount, string text);
42 void ApplyUploadCharge(UUID agentID, int amount, string text); 42 void ApplyUploadCharge(UUID agentID, int amount, string text);
43 void MoveMoney(UUID fromUser, UUID toUser, int amount, string text);
43 44
44 int UploadCharge { get; } 45 int UploadCharge { get; }
45 int GroupCreationCharge { get; } 46 int GroupCreationCharge { get; }
diff --git a/OpenSim/Framework/LandData.cs b/OpenSim/Framework/LandData.cs
index bf2ecf2..dcaa46d 100644
--- a/OpenSim/Framework/LandData.cs
+++ b/OpenSim/Framework/LandData.cs
@@ -67,7 +67,7 @@ namespace OpenSim.Framework
67 67
68 private uint _flags = (uint) ParcelFlags.AllowFly | (uint) ParcelFlags.AllowLandmark | 68 private uint _flags = (uint) ParcelFlags.AllowFly | (uint) ParcelFlags.AllowLandmark |
69 (uint) ParcelFlags.AllowAPrimitiveEntry | 69 (uint) ParcelFlags.AllowAPrimitiveEntry |
70 (uint) ParcelFlags.AllowDeedToGroup | (uint) ParcelFlags.AllowTerraform | 70 (uint) ParcelFlags.AllowDeedToGroup |
71 (uint) ParcelFlags.CreateObjects | (uint) ParcelFlags.AllowOtherScripts | 71 (uint) ParcelFlags.CreateObjects | (uint) ParcelFlags.AllowOtherScripts |
72 (uint) ParcelFlags.SoundLocal | (uint) ParcelFlags.AllowVoiceChat; 72 (uint) ParcelFlags.SoundLocal | (uint) ParcelFlags.AllowVoiceChat;
73 73
diff --git a/OpenSim/Framework/ObjectChangeData.cs b/OpenSim/Framework/ObjectChangeData.cs
new file mode 100644
index 0000000..8d56291
--- /dev/null
+++ b/OpenSim/Framework/ObjectChangeData.cs
@@ -0,0 +1,80 @@
1/*
2 * Copyright (c) Contributors, http://opensimulator.org/
3 * See CONTRIBUTORS.TXT for a full list of copyright holders.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 * * Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * * Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
12 * * Neither the name of the OpenSimulator Project nor the
13 * names of its contributors may be used to endorse or promote products
14 * derived from this software without specific prior written permission.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
17 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
20 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28using OpenMetaverse;
29
30namespace OpenSim.Framework
31{
32 public enum ObjectChangeType : uint
33 {
34 // bits definitions
35 Position = 0x01,
36 Rotation = 0x02,
37 Scale = 0x04,
38 Group = 0x08,
39 UniformScale = 0x10,
40
41 // macros from above
42 // single prim
43 primP = 0x01,
44 primR = 0x02,
45 primPR = 0x03,
46 primS = 0x04,
47 primPS = 0x05,
48 primRS = 0x06,
49 primPSR = 0x07,
50
51 primUS = 0x14,
52 primPUS = 0x15,
53 primRUS = 0x16,
54 primPUSR = 0x17,
55
56 // group
57 groupP = 0x09,
58 groupR = 0x0A,
59 groupPR = 0x0B,
60 groupS = 0x0C,
61 groupPS = 0x0D,
62 groupRS = 0x0E,
63 groupPSR = 0x0F,
64
65 groupUS = 0x1C,
66 groupPUS = 0x1D,
67 groupRUS = 0x1E,
68 groupPUSR = 0x1F,
69
70 PRSmask = 0x07
71 }
72
73 public struct ObjectChangeData
74 {
75 public Quaternion rotation;
76 public Vector3 position;
77 public Vector3 scale;
78 public ObjectChangeType change;
79 }
80}
diff --git a/OpenSim/Framework/ParcelMediaCommandEnum.cs b/OpenSim/Framework/ParcelMediaCommandEnum.cs
index 93c41ec..e714382 100644
--- a/OpenSim/Framework/ParcelMediaCommandEnum.cs
+++ b/OpenSim/Framework/ParcelMediaCommandEnum.cs
@@ -27,7 +27,7 @@
27 27
28namespace OpenSim.Framework 28namespace OpenSim.Framework
29{ 29{
30 public enum ParcelMediaCommandEnum 30 public enum ParcelMediaCommandEnum : int
31 { 31 {
32 Stop = 0, 32 Stop = 0,
33 Pause = 1, 33 Pause = 1,
diff --git a/OpenSim/Framework/PluginLoader.cs b/OpenSim/Framework/PluginLoader.cs
index 819cb7b..cc80943 100644
--- a/OpenSim/Framework/PluginLoader.cs
+++ b/OpenSim/Framework/PluginLoader.cs
@@ -244,13 +244,22 @@ namespace OpenSim.Framework
244 // The Mono addin manager (in Mono.Addins.dll version 0.2.0.0) 244 // The Mono addin manager (in Mono.Addins.dll version 0.2.0.0)
245 // occasionally seems to corrupt its addin cache 245 // occasionally seems to corrupt its addin cache
246 // Hence, as a temporary solution we'll remove it before each startup 246 // Hence, as a temporary solution we'll remove it before each startup
247
248 string customDir = Environment.GetEnvironmentVariable ("MONO_ADDINS_REGISTRY");
249 string v0 = "addin-db-000";
250 string v1 = "addin-db-001";
251 if (customDir != null && customDir != String.Empty)
252 {
253 v0 = Path.Combine(customDir, v0);
254 v1 = Path.Combine(customDir, v1);
255 }
247 try 256 try
248 { 257 {
249 if (Directory.Exists("addin-db-000")) 258 if (Directory.Exists(v0))
250 Directory.Delete("addin-db-000", true); 259 Directory.Delete(v0, true);
251 260
252 if (Directory.Exists("addin-db-001")) 261 if (Directory.Exists(v1))
253 Directory.Delete("addin-db-001", true); 262 Directory.Delete(v1, true);
254 } 263 }
255 catch (IOException) 264 catch (IOException)
256 { 265 {
diff --git a/OpenSim/Framework/PrimitiveBaseShape.cs b/OpenSim/Framework/PrimitiveBaseShape.cs
index 76dcfca..fcc9873 100644
--- a/OpenSim/Framework/PrimitiveBaseShape.cs
+++ b/OpenSim/Framework/PrimitiveBaseShape.cs
@@ -724,7 +724,12 @@ namespace OpenSim.Framework
724 return _lightColorR; 724 return _lightColorR;
725 } 725 }
726 set { 726 set {
727 _lightColorR = value; 727 if (value < 0)
728 _lightColorR = 0;
729 else if (value > 1.0f)
730 _lightColorR = 1.0f;
731 else
732 _lightColorR = value;
728 } 733 }
729 } 734 }
730 735
@@ -733,7 +738,12 @@ namespace OpenSim.Framework
733 return _lightColorG; 738 return _lightColorG;
734 } 739 }
735 set { 740 set {
736 _lightColorG = value; 741 if (value < 0)
742 _lightColorG = 0;
743 else if (value > 1.0f)
744 _lightColorG = 1.0f;
745 else
746 _lightColorG = value;
737 } 747 }
738 } 748 }
739 749
@@ -742,7 +752,12 @@ namespace OpenSim.Framework
742 return _lightColorB; 752 return _lightColorB;
743 } 753 }
744 set { 754 set {
745 _lightColorB = value; 755 if (value < 0)
756 _lightColorB = 0;
757 else if (value > 1.0f)
758 _lightColorB = 1.0f;
759 else
760 _lightColorB = value;
746 } 761 }
747 } 762 }
748 763
@@ -751,7 +766,12 @@ namespace OpenSim.Framework
751 return _lightColorA; 766 return _lightColorA;
752 } 767 }
753 set { 768 set {
754 _lightColorA = value; 769 if (value < 0)
770 _lightColorA = 0;
771 else if (value > 1.0f)
772 _lightColorA = 1.0f;
773 else
774 _lightColorA = value;
755 } 775 }
756 } 776 }
757 777
@@ -865,6 +885,11 @@ namespace OpenSim.Framework
865 885
866 public ulong GetMeshKey(Vector3 size, float lod) 886 public ulong GetMeshKey(Vector3 size, float lod)
867 { 887 {
888 return GetMeshKey(size, lod, false);
889 }
890
891 public ulong GetMeshKey(Vector3 size, float lod, bool convex)
892 {
868 ulong hash = 5381; 893 ulong hash = 5381;
869 894
870 hash = djb2(hash, this.PathCurve); 895 hash = djb2(hash, this.PathCurve);
@@ -910,6 +935,9 @@ namespace OpenSim.Framework
910 hash = djb2(hash, scaleBytes[i]); 935 hash = djb2(hash, scaleBytes[i]);
911 } 936 }
912 937
938 if(convex)
939 hash = djb2(hash, 0xa5);
940
913 return hash; 941 return hash;
914 } 942 }
915 943
@@ -1414,7 +1442,7 @@ namespace OpenSim.Framework
1414 prim.Textures = this.Textures; 1442 prim.Textures = this.Textures;
1415 1443
1416 prim.Properties = new Primitive.ObjectProperties(); 1444 prim.Properties = new Primitive.ObjectProperties();
1417 prim.Properties.Name = "Primitive"; 1445 prim.Properties.Name = "Object";
1418 prim.Properties.Description = ""; 1446 prim.Properties.Description = "";
1419 prim.Properties.CreatorID = UUID.Zero; 1447 prim.Properties.CreatorID = UUID.Zero;
1420 prim.Properties.GroupID = UUID.Zero; 1448 prim.Properties.GroupID = UUID.Zero;
diff --git a/OpenSim/Framework/RegionInfo.cs b/OpenSim/Framework/RegionInfo.cs
index a505524..1b2f681 100644
--- a/OpenSim/Framework/RegionInfo.cs
+++ b/OpenSim/Framework/RegionInfo.cs
@@ -40,6 +40,7 @@ using OpenMetaverse.StructuredData;
40 40
41namespace OpenSim.Framework 41namespace OpenSim.Framework
42{ 42{
43 [Serializable]
43 public class RegionLightShareData : ICloneable 44 public class RegionLightShareData : ICloneable
44 { 45 {
45 public bool valid = false; 46 public bool valid = false;
@@ -102,6 +103,7 @@ namespace OpenSim.Framework
102 103
103 public bool commFailTF = false; 104 public bool commFailTF = false;
104 public ConfigurationMember configMember; 105 public ConfigurationMember configMember;
106 public string DataStore = String.Empty;
105 public string RegionFile = String.Empty; 107 public string RegionFile = String.Empty;
106 public bool isSandbox = false; 108 public bool isSandbox = false;
107 public bool Persistent = true; 109 public bool Persistent = true;
@@ -649,6 +651,9 @@ namespace OpenSim.Framework
649 string location = String.Format("{0},{1}", m_regionLocX, m_regionLocY); 651 string location = String.Format("{0},{1}", m_regionLocX, m_regionLocY);
650 config.Set("Location", location); 652 config.Set("Location", location);
651 653
654 if (DataStore != String.Empty)
655 config.Set("Datastore", DataStore);
656
652 config.Set("InternalAddress", m_internalEndPoint.Address.ToString()); 657 config.Set("InternalAddress", m_internalEndPoint.Address.ToString());
653 config.Set("InternalPort", m_internalEndPoint.Port); 658 config.Set("InternalPort", m_internalEndPoint.Port);
654 659
@@ -834,6 +839,9 @@ namespace OpenSim.Framework
834 case "sim_location_y": 839 case "sim_location_y":
835 m_regionLocY = (uint) configuration_result; 840 m_regionLocY = (uint) configuration_result;
836 break; 841 break;
842 case "datastore":
843 DataStore = (string) configuration_result;
844 break;
837 case "internal_ip_address": 845 case "internal_ip_address":
838 IPAddress address = (IPAddress) configuration_result; 846 IPAddress address = (IPAddress) configuration_result;
839 m_internalEndPoint = new IPEndPoint(address, 0); 847 m_internalEndPoint = new IPEndPoint(address, 0);
@@ -984,6 +992,11 @@ namespace OpenSim.Framework
984 return regionInfo; 992 return regionInfo;
985 } 993 }
986 994
995 public int getInternalEndPointPort()
996 {
997 return m_internalEndPoint.Port;
998 }
999
987 public Dictionary<string, object> ToKeyValuePairs() 1000 public Dictionary<string, object> ToKeyValuePairs()
988 { 1001 {
989 Dictionary<string, object> kvp = new Dictionary<string, object>(); 1002 Dictionary<string, object> kvp = new Dictionary<string, object>();
@@ -1002,4 +1015,4 @@ namespace OpenSim.Framework
1002 return kvp; 1015 return kvp;
1003 } 1016 }
1004 } 1017 }
1005} \ No newline at end of file 1018}
diff --git a/OpenSim/Framework/RegionLoader/Web/RegionLoaderWebServer.cs b/OpenSim/Framework/RegionLoader/Web/RegionLoaderWebServer.cs
index a2f5d9c..c7caf6f 100644
--- a/OpenSim/Framework/RegionLoader/Web/RegionLoaderWebServer.cs
+++ b/OpenSim/Framework/RegionLoader/Web/RegionLoaderWebServer.cs
@@ -48,6 +48,9 @@ namespace OpenSim.Framework.RegionLoader.Web
48 48
49 public RegionInfo[] LoadRegions() 49 public RegionInfo[] LoadRegions()
50 { 50 {
51 int tries = 3;
52 int wait = 2000;
53
51 if (m_configSource == null) 54 if (m_configSource == null)
52 { 55 {
53 m_log.Error("[WEBLOADER]: Unable to load configuration source!"); 56 m_log.Error("[WEBLOADER]: Unable to load configuration source!");
@@ -66,63 +69,72 @@ namespace OpenSim.Framework.RegionLoader.Web
66 } 69 }
67 else 70 else
68 { 71 {
69 RegionInfo[] regionInfos = new RegionInfo[] {}; 72 while(tries > 0)
70 int regionCount = 0; 73 {
71 HttpWebRequest webRequest = (HttpWebRequest) WebRequest.Create(url); 74 RegionInfo[] regionInfos = new RegionInfo[] {};
72 webRequest.Timeout = 30000; //30 Second Timeout 75 int regionCount = 0;
73 m_log.DebugFormat("[WEBLOADER]: Sending download request to {0}", url); 76 HttpWebRequest webRequest = (HttpWebRequest) WebRequest.Create(url);
77 webRequest.Timeout = 30000; //30 Second Timeout
78 m_log.DebugFormat("[WEBLOADER]: Sending download request to {0}", url);
74 79
75 try 80 try
76 { 81 {
77 HttpWebResponse webResponse = (HttpWebResponse) webRequest.GetResponse(); 82 HttpWebResponse webResponse = (HttpWebResponse) webRequest.GetResponse();
78 m_log.Debug("[WEBLOADER]: Downloading region information..."); 83 m_log.Debug("[WEBLOADER]: Downloading region information...");
79 StreamReader reader = new StreamReader(webResponse.GetResponseStream()); 84 StreamReader reader = new StreamReader(webResponse.GetResponseStream());
80 string xmlSource = String.Empty; 85 string xmlSource = String.Empty;
81 string tempStr = reader.ReadLine(); 86 string tempStr = reader.ReadLine();
82 while (tempStr != null) 87 while (tempStr != null)
83 { 88 {
84 xmlSource = xmlSource + tempStr; 89 xmlSource = xmlSource + tempStr;
85 tempStr = reader.ReadLine(); 90 tempStr = reader.ReadLine();
86 } 91 }
87 m_log.Debug("[WEBLOADER]: Done downloading region information from server. Total Bytes: " + 92 m_log.Debug("[WEBLOADER]: Done downloading region information from server. Total Bytes: " +
88 xmlSource.Length); 93 xmlSource.Length);
89 XmlDocument xmlDoc = new XmlDocument(); 94 XmlDocument xmlDoc = new XmlDocument();
90 xmlDoc.LoadXml(xmlSource); 95 xmlDoc.LoadXml(xmlSource);
91 if (xmlDoc.FirstChild.Name == "Regions") 96 if (xmlDoc.FirstChild.Name == "Regions")
92 { 97 {
93 regionCount = xmlDoc.FirstChild.ChildNodes.Count; 98 regionCount = xmlDoc.FirstChild.ChildNodes.Count;
94 99
95 if (regionCount > 0) 100 if (regionCount > 0)
96 { 101 {
97 regionInfos = new RegionInfo[regionCount]; 102 regionInfos = new RegionInfo[regionCount];
98 int i; 103 int i;
99 for (i = 0; i < xmlDoc.FirstChild.ChildNodes.Count; i++) 104 for (i = 0; i < xmlDoc.FirstChild.ChildNodes.Count; i++)
100 { 105 {
101 m_log.Debug(xmlDoc.FirstChild.ChildNodes[i].OuterXml); 106 m_log.Debug(xmlDoc.FirstChild.ChildNodes[i].OuterXml);
102 regionInfos[i] = 107 regionInfos[i] =
103 new RegionInfo("REGION CONFIG #" + (i + 1), xmlDoc.FirstChild.ChildNodes[i],false,m_configSource); 108 new RegionInfo("REGION CONFIG #" + (i + 1), xmlDoc.FirstChild.ChildNodes[i],false,m_configSource);
104 } 109 }
105 } 110 }
106 } 111 }
107 } 112 }
108 catch (WebException ex) 113 catch (WebException ex)
109 { 114 {
110 if (((HttpWebResponse)ex.Response).StatusCode == HttpStatusCode.NotFound) 115 if (((HttpWebResponse)ex.Response).StatusCode == HttpStatusCode.NotFound)
116 {
117 if (!allowRegionless)
118 throw ex;
119 }
120 else
121 throw ex;
122 }
123
124 if (regionCount > 0 | allowRegionless)
125 return regionInfos;
126
127 m_log.Debug("[WEBLOADER]: Request yielded no regions.");
128 tries--;
129 if (tries > 0)
111 { 130 {
112 if (!allowRegionless) 131 m_log.Debug("[WEBLOADER]: Retrying");
113 throw ex; 132 System.Threading.Thread.Sleep(wait);
114 } 133 }
115 else 134 }
116 throw ex;
117 }
118 135
119 if (regionCount > 0 | allowRegionless) 136 m_log.Error("[WEBLOADER]: No region configs were available.");
120 return regionInfos; 137 return null;
121 else
122 {
123 m_log.Error("[WEBLOADER]: No region configs were available.");
124 return null;
125 }
126 } 138 }
127 } 139 }
128 } 140 }
diff --git a/OpenSim/Framework/RegionSettings.cs b/OpenSim/Framework/RegionSettings.cs
index 47dbcec..47a2780 100644
--- a/OpenSim/Framework/RegionSettings.cs
+++ b/OpenSim/Framework/RegionSettings.cs
@@ -482,6 +482,28 @@ namespace OpenSim.Framework
482 set { m_LoadedCreationID = value; } 482 set { m_LoadedCreationID = value; }
483 } 483 }
484 484
485 private bool m_GodBlockSearch = false;
486 public bool GodBlockSearch
487 {
488 get { return m_GodBlockSearch; }
489 set { m_GodBlockSearch = value; }
490 }
491
492 private bool m_Casino = false;
493 public bool Casino
494 {
495 get { return m_Casino; }
496 set { m_Casino = value; }
497 }
498
499 // Telehub support
500 private bool m_TelehubEnabled = false;
501 public bool HasTelehub
502 {
503 get { return m_TelehubEnabled; }
504 set { m_TelehubEnabled = value; }
505 }
506
485 // Connected Telehub object 507 // Connected Telehub object
486 private UUID m_TelehubObject = UUID.Zero; 508 private UUID m_TelehubObject = UUID.Zero;
487 public UUID TelehubObject 509 public UUID TelehubObject
diff --git a/OpenSim/Framework/Servers/BaseOpenSimServer.cs b/OpenSim/Framework/Servers/BaseOpenSimServer.cs
index 9459f76..7bbb290 100644
--- a/OpenSim/Framework/Servers/BaseOpenSimServer.cs
+++ b/OpenSim/Framework/Servers/BaseOpenSimServer.cs
@@ -308,7 +308,7 @@ namespace OpenSim.Framework.Servers
308 308
309 EnhanceVersionInformation(); 309 EnhanceVersionInformation();
310 310
311 m_log.Info("[STARTUP]: OpenSimulator version: " + m_version + Environment.NewLine); 311 m_log.Info("[STARTUP]: Careminster version: " + m_version + Environment.NewLine);
312 // clr version potentially is more confusing than helpful, since it doesn't tell us if we're running under Mono/MS .NET and 312 // clr version potentially is more confusing than helpful, since it doesn't tell us if we're running under Mono/MS .NET and
313 // the clr version number doesn't match the project version number under Mono. 313 // the clr version number doesn't match the project version number under Mono.
314 //m_log.Info("[STARTUP]: Virtual machine runtime version: " + Environment.Version + Environment.NewLine); 314 //m_log.Info("[STARTUP]: Virtual machine runtime version: " + Environment.Version + Environment.NewLine);
diff --git a/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs b/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs
index 3de7f9c..1d5b426 100644
--- a/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs
+++ b/OpenSim/Framework/Servers/HttpServer/BaseHttpServer.cs
@@ -1447,10 +1447,34 @@ namespace OpenSim.Framework.Servers.HttpServer
1447 1447
1448 internal byte[] DoHTTPGruntWork(Hashtable responsedata, OSHttpResponse response) 1448 internal byte[] DoHTTPGruntWork(Hashtable responsedata, OSHttpResponse response)
1449 { 1449 {
1450 //m_log.Info("[BASE HTTP SERVER]: Doing HTTP Grunt work with response"); 1450 int responsecode;
1451 int responsecode = (int)responsedata["int_response_code"]; 1451 string responseString;
1452 string responseString = (string)responsedata["str_response_string"]; 1452 string contentType;
1453 string contentType = (string)responsedata["content_type"]; 1453
1454 if (responsedata == null)
1455 {
1456 responsecode = 500;
1457 responseString = "No response could be obtained";
1458 contentType = "text/plain";
1459 responsedata = new Hashtable();
1460 }
1461 else
1462 {
1463 try
1464 {
1465 //m_log.Info("[BASE HTTP SERVER]: Doing HTTP Grunt work with response");
1466 responsecode = (int)responsedata["int_response_code"];
1467 responseString = (string)responsedata["str_response_string"];
1468 contentType = (string)responsedata["content_type"];
1469 }
1470 catch
1471 {
1472 responsecode = 500;
1473 responseString = "No response could be obtained";
1474 contentType = "text/plain";
1475 responsedata = new Hashtable();
1476 }
1477 }
1454 1478
1455 if (responsedata.ContainsKey("error_status_text")) 1479 if (responsedata.ContainsKey("error_status_text"))
1456 { 1480 {
diff --git a/OpenSim/Framework/Servers/VersionInfo.cs b/OpenSim/Framework/Servers/VersionInfo.cs
index 5f01788..016a174 100644
--- a/OpenSim/Framework/Servers/VersionInfo.cs
+++ b/OpenSim/Framework/Servers/VersionInfo.cs
@@ -29,11 +29,11 @@ namespace OpenSim
29{ 29{
30 public class VersionInfo 30 public class VersionInfo
31 { 31 {
32 private const string VERSION_NUMBER = "0.7.4"; 32 private const string VERSION_NUMBER = "0.7.4CM";
33 private const Flavour VERSION_FLAVOUR = Flavour.Dev; 33 private const Flavour VERSION_FLAVOUR = Flavour.Dev;
34 34
35 public enum Flavour 35 public enum Flavour
36 { 36 {
37 Unknown, 37 Unknown,
38 Dev, 38 Dev,
39 RC1, 39 RC1,
@@ -50,7 +50,7 @@ namespace OpenSim
50 50
51 public static string GetVersionString(string versionNumber, Flavour flavour) 51 public static string GetVersionString(string versionNumber, Flavour flavour)
52 { 52 {
53 string versionString = "OpenSim " + versionNumber + " " + flavour; 53 string versionString = "Careminster " + versionNumber + " " + flavour;
54 return versionString.PadRight(VERSIONINFO_VERSION_LENGTH); 54 return versionString.PadRight(VERSIONINFO_VERSION_LENGTH);
55 } 55 }
56 56
diff --git a/OpenSim/Framework/TaskInventoryDictionary.cs b/OpenSim/Framework/TaskInventoryDictionary.cs
index 421bd5d..4d07746 100644
--- a/OpenSim/Framework/TaskInventoryDictionary.cs
+++ b/OpenSim/Framework/TaskInventoryDictionary.cs
@@ -27,9 +27,13 @@
27 27
28using System; 28using System;
29using System.Collections.Generic; 29using System.Collections.Generic;
30using System.Threading;
31using System.Reflection;
30using System.Xml; 32using System.Xml;
33using System.Diagnostics;
31using System.Xml.Schema; 34using System.Xml.Schema;
32using System.Xml.Serialization; 35using System.Xml.Serialization;
36using log4net;
33using OpenMetaverse; 37using OpenMetaverse;
34 38
35namespace OpenSim.Framework 39namespace OpenSim.Framework
@@ -45,6 +49,180 @@ namespace OpenSim.Framework
45 // private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); 49 // private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
46 50
47 private static XmlSerializer tiiSerializer = new XmlSerializer(typeof (TaskInventoryItem)); 51 private static XmlSerializer tiiSerializer = new XmlSerializer(typeof (TaskInventoryItem));
52 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
53
54 private Thread LockedByThread;
55// private string WriterStack;
56
57// private Dictionary<Thread, string> ReadLockers =
58// new Dictionary<Thread, string>();
59
60 /// <value>
61 /// An advanced lock for inventory data
62 /// </value>
63 private System.Threading.ReaderWriterLockSlim m_itemLock = new System.Threading.ReaderWriterLockSlim();
64
65 /// <summary>
66 /// Are we readlocked by the calling thread?
67 /// </summary>
68 public bool IsReadLockedByMe()
69 {
70 if (m_itemLock.RecursiveReadCount > 0)
71 {
72 return true;
73 }
74 else
75 {
76 return false;
77 }
78 }
79
80 /// <summary>
81 /// Lock our inventory list for reading (many can read, one can write)
82 /// </summary>
83 public void LockItemsForRead(bool locked)
84 {
85 if (locked)
86 {
87 if (m_itemLock.IsWriteLockHeld && LockedByThread != null)
88 {
89 if (!LockedByThread.IsAlive)
90 {
91 //Locked by dead thread, reset.
92 m_itemLock = new System.Threading.ReaderWriterLockSlim();
93 }
94 }
95
96 if (m_itemLock.RecursiveReadCount > 0)
97 {
98 m_log.Error("[TaskInventoryDictionary] Recursive read lock requested. This should not happen and means something needs to be fixed. For now though, it's safe to continue.");
99 try
100 {
101 // That call stack is useful for end users only. RealProgrammers need a full dump. Commented.
102 // StackTrace stackTrace = new StackTrace(); // get call stack
103 // StackFrame[] stackFrames = stackTrace.GetFrames(); // get method calls (frames)
104 //
105 // // write call stack method names
106 // foreach (StackFrame stackFrame in stackFrames)
107 // {
108 // m_log.Error("[SceneObjectGroup.m_parts] "+(stackFrame.GetMethod().Name)); // write method name
109 // }
110
111 // The below is far more useful
112// System.Console.WriteLine("------------------------------------------");
113// System.Console.WriteLine("My call stack:\n" + Environment.StackTrace);
114// System.Console.WriteLine("------------------------------------------");
115// foreach (KeyValuePair<Thread, string> kvp in ReadLockers)
116// {
117// System.Console.WriteLine("Locker name {0} call stack:\n" + kvp.Value, kvp.Key.Name);
118// System.Console.WriteLine("------------------------------------------");
119// }
120 }
121 catch
122 {}
123 m_itemLock.ExitReadLock();
124 }
125 if (m_itemLock.RecursiveWriteCount > 0)
126 {
127 m_log.Error("[TaskInventoryDictionary] Recursive write lock requested. This should not happen and means something needs to be fixed.");
128// try
129// {
130// System.Console.WriteLine("------------------------------------------");
131// System.Console.WriteLine("My call stack:\n" + Environment.StackTrace);
132// System.Console.WriteLine("------------------------------------------");
133// System.Console.WriteLine("Locker's call stack:\n" + WriterStack);
134// System.Console.WriteLine("------------------------------------------");
135// }
136// catch
137// {}
138 m_itemLock.ExitWriteLock();
139 }
140
141 while (!m_itemLock.TryEnterReadLock(60000))
142 {
143 m_log.Error("Thread lock detected while trying to aquire READ lock in TaskInventoryDictionary. Locked by thread " + LockedByThread.Name + ". I'm going to try to solve the thread lock automatically to preserve region stability, but this needs to be fixed.");
144 if (m_itemLock.IsWriteLockHeld)
145 {
146 m_itemLock = new System.Threading.ReaderWriterLockSlim();
147// System.Console.WriteLine("------------------------------------------");
148// System.Console.WriteLine("My call stack:\n" + Environment.StackTrace);
149// System.Console.WriteLine("------------------------------------------");
150// System.Console.WriteLine("Locker's call stack:\n" + WriterStack);
151// System.Console.WriteLine("------------------------------------------");
152// LockedByThread = null;
153// ReadLockers.Clear();
154 }
155 }
156// ReadLockers[Thread.CurrentThread] = Environment.StackTrace;
157 }
158 else
159 {
160 if (m_itemLock.RecursiveReadCount>0)
161 {
162 m_itemLock.ExitReadLock();
163 }
164// if (m_itemLock.RecursiveReadCount == 0)
165// ReadLockers.Remove(Thread.CurrentThread);
166 }
167 }
168
169 /// <summary>
170 /// Lock our inventory list for writing (many can read, one can write)
171 /// </summary>
172 public void LockItemsForWrite(bool locked)
173 {
174 if (locked)
175 {
176 //Enter a write lock, wait indefinately for one to open.
177 if (m_itemLock.RecursiveReadCount > 0)
178 {
179 m_log.Error("[TaskInventoryDictionary] Recursive read lock requested. This should not happen and means something needs to be fixed. For now though, it's safe to continue.");
180 m_itemLock.ExitReadLock();
181 }
182 if (m_itemLock.RecursiveWriteCount > 0)
183 {
184 m_log.Error("[TaskInventoryDictionary] Recursive write lock requested. This should not happen and means something needs to be fixed.");
185
186 m_itemLock.ExitWriteLock();
187 }
188 while (!m_itemLock.TryEnterWriteLock(60000))
189 {
190 if (m_itemLock.IsWriteLockHeld)
191 {
192 m_log.Error("Thread lock detected while trying to aquire WRITE lock in TaskInventoryDictionary. Locked by thread " + LockedByThread.Name + ". I'm going to try to solve the thread lock automatically to preserve region stability, but this needs to be fixed.");
193// System.Console.WriteLine("------------------------------------------");
194// System.Console.WriteLine("My call stack:\n" + Environment.StackTrace);
195// System.Console.WriteLine("------------------------------------------");
196// System.Console.WriteLine("Locker's call stack:\n" + WriterStack);
197// System.Console.WriteLine("------------------------------------------");
198 }
199 else
200 {
201 m_log.Error("Thread lock detected while trying to aquire WRITE lock in TaskInventoryDictionary. Locked by a reader. I'm going to try to solve the thread lock automatically to preserve region stability, but this needs to be fixed.");
202// System.Console.WriteLine("------------------------------------------");
203// System.Console.WriteLine("My call stack:\n" + Environment.StackTrace);
204// System.Console.WriteLine("------------------------------------------");
205// foreach (KeyValuePair<Thread, string> kvp in ReadLockers)
206// {
207// System.Console.WriteLine("Locker name {0} call stack:\n" + kvp.Value, kvp.Key.Name);
208// System.Console.WriteLine("------------------------------------------");
209// }
210 }
211 m_itemLock = new System.Threading.ReaderWriterLockSlim();
212// ReadLockers.Clear();
213 }
214
215 LockedByThread = Thread.CurrentThread;
216// WriterStack = Environment.StackTrace;
217 }
218 else
219 {
220 if (m_itemLock.RecursiveWriteCount > 0)
221 {
222 m_itemLock.ExitWriteLock();
223 }
224 }
225 }
48 226
49 #region ICloneable Members 227 #region ICloneable Members
50 228
@@ -52,14 +230,13 @@ namespace OpenSim.Framework
52 { 230 {
53 TaskInventoryDictionary clone = new TaskInventoryDictionary(); 231 TaskInventoryDictionary clone = new TaskInventoryDictionary();
54 232
55 lock (this) 233 m_itemLock.EnterReadLock();
234 foreach (UUID uuid in Keys)
56 { 235 {
57 foreach (UUID uuid in Keys) 236 clone.Add(uuid, (TaskInventoryItem) this[uuid].Clone());
58 {
59 clone.Add(uuid, (TaskInventoryItem) this[uuid].Clone());
60 }
61 } 237 }
62 238 m_itemLock.ExitReadLock();
239
63 return clone; 240 return clone;
64 } 241 }
65 242
diff --git a/OpenSim/Framework/TaskInventoryItem.cs b/OpenSim/Framework/TaskInventoryItem.cs
index 362d365..fb818ee 100644
--- a/OpenSim/Framework/TaskInventoryItem.cs
+++ b/OpenSim/Framework/TaskInventoryItem.cs
@@ -72,6 +72,9 @@ namespace OpenSim.Framework
72 private UUID _loadedID = UUID.Zero; 72 private UUID _loadedID = UUID.Zero;
73 73
74 private bool _ownerChanged = false; 74 private bool _ownerChanged = false;
75
76 // This used ONLY during copy. It can't be relied on at other times!
77 private bool _scriptRunning = true;
75 78
76 public UUID AssetID { 79 public UUID AssetID {
77 get { 80 get {
@@ -350,6 +353,15 @@ namespace OpenSim.Framework
350 } 353 }
351 } 354 }
352 355
356 public bool ScriptRunning {
357 get {
358 return _scriptRunning;
359 }
360 set {
361 _scriptRunning = value;
362 }
363 }
364
353 // See ICloneable 365 // See ICloneable
354 366
355 #region ICloneable Members 367 #region ICloneable Members
diff --git a/OpenSim/Framework/Tests/MundaneFrameworkTests.cs b/OpenSim/Framework/Tests/MundaneFrameworkTests.cs
index 672847d..6fde488 100644
--- a/OpenSim/Framework/Tests/MundaneFrameworkTests.cs
+++ b/OpenSim/Framework/Tests/MundaneFrameworkTests.cs
@@ -217,12 +217,12 @@ namespace OpenSim.Framework.Tests
217 BannedHostNameMask = string.Empty, 217 BannedHostNameMask = string.Empty,
218 BannedUserID = bannedUserId} 218 BannedUserID = bannedUserId}
219 ); 219 );
220 Assert.IsTrue(es.IsBanned(bannedUserId), "User Should be banned but is not."); 220 Assert.IsTrue(es.IsBanned(bannedUserId, 32), "User Should be banned but is not.");
221 Assert.IsFalse(es.IsBanned(UUID.Zero), "User Should not be banned but is."); 221 Assert.IsFalse(es.IsBanned(UUID.Zero, 32), "User Should not be banned but is.");
222 222
223 es.RemoveBan(bannedUserId); 223 es.RemoveBan(bannedUserId);
224 224
225 Assert.IsFalse(es.IsBanned(bannedUserId), "User Should not be banned but is."); 225 Assert.IsFalse(es.IsBanned(bannedUserId, 32), "User Should not be banned but is.");
226 226
227 es.AddEstateManager(UUID.Zero); 227 es.AddEstateManager(UUID.Zero);
228 228
diff --git a/OpenSim/Framework/Util.cs b/OpenSim/Framework/Util.cs
index e03bb74..728cda0 100644
--- a/OpenSim/Framework/Util.cs
+++ b/OpenSim/Framework/Util.cs
@@ -480,19 +480,25 @@ namespace OpenSim.Framework
480 /// </summary> 480 /// </summary>
481 /// <param name="data"></param> 481 /// <param name="data"></param>
482 /// <returns></returns> 482 /// <returns></returns>
483
483 public static string Md5Hash(string data) 484 public static string Md5Hash(string data)
484 { 485 {
485 byte[] dataMd5 = ComputeMD5Hash(data); 486 return Md5Hash(data, Encoding.Default);
487 }
488
489 public static string Md5Hash(string data, Encoding encoding)
490 {
491 byte[] dataMd5 = ComputeMD5Hash(data, encoding);
486 StringBuilder sb = new StringBuilder(); 492 StringBuilder sb = new StringBuilder();
487 for (int i = 0; i < dataMd5.Length; i++) 493 for (int i = 0; i < dataMd5.Length; i++)
488 sb.AppendFormat("{0:x2}", dataMd5[i]); 494 sb.AppendFormat("{0:x2}", dataMd5[i]);
489 return sb.ToString(); 495 return sb.ToString();
490 } 496 }
491 497
492 private static byte[] ComputeMD5Hash(string data) 498 private static byte[] ComputeMD5Hash(string data, Encoding encoding)
493 { 499 {
494 MD5 md5 = MD5.Create(); 500 MD5 md5 = MD5.Create();
495 return md5.ComputeHash(Encoding.Default.GetBytes(data)); 501 return md5.ComputeHash(encoding.GetBytes(data));
496 } 502 }
497 503
498 /// <summary> 504 /// <summary>
@@ -500,6 +506,12 @@ namespace OpenSim.Framework
500 /// </summary> 506 /// </summary>
501 /// <param name="data"></param> 507 /// <param name="data"></param>
502 /// <returns></returns> 508 /// <returns></returns>
509
510 public static string SHA1Hash(string data, Encoding enc)
511 {
512 return SHA1Hash(enc.GetBytes(data));
513 }
514
503 public static string SHA1Hash(string data) 515 public static string SHA1Hash(string data)
504 { 516 {
505 return SHA1Hash(Encoding.Default.GetBytes(data)); 517 return SHA1Hash(Encoding.Default.GetBytes(data));
@@ -1104,19 +1116,19 @@ namespace OpenSim.Framework
1104 { 1116 {
1105 string os = String.Empty; 1117 string os = String.Empty;
1106 1118
1107 if (Environment.OSVersion.Platform != PlatformID.Unix) 1119// if (Environment.OSVersion.Platform != PlatformID.Unix)
1108 { 1120// {
1109 os = Environment.OSVersion.ToString(); 1121// os = Environment.OSVersion.ToString();
1110 } 1122// }
1111 else 1123// else
1112 { 1124// {
1113 os = ReadEtcIssue(); 1125// os = ReadEtcIssue();
1114 } 1126// }
1115 1127//
1116 if (os.Length > 45) 1128// if (os.Length > 45)
1117 { 1129// {
1118 os = os.Substring(0, 45); 1130// os = os.Substring(0, 45);
1119 } 1131// }
1120 1132
1121 return os; 1133 return os;
1122 } 1134 }
@@ -1249,7 +1261,7 @@ namespace OpenSim.Framework
1249 1261
1250 public static Guid GetHashGuid(string data, string salt) 1262 public static Guid GetHashGuid(string data, string salt)
1251 { 1263 {
1252 byte[] hash = ComputeMD5Hash(data + salt); 1264 byte[] hash = ComputeMD5Hash(data + salt, Encoding.Default);
1253 1265
1254 //string s = BitConverter.ToString(hash); 1266 //string s = BitConverter.ToString(hash);
1255 1267
diff --git a/OpenSim/Framework/Watchdog.cs b/OpenSim/Framework/Watchdog.cs
index 7552cd1..68bf477 100644
--- a/OpenSim/Framework/Watchdog.cs
+++ b/OpenSim/Framework/Watchdog.cs
@@ -272,7 +272,7 @@ namespace OpenSim.Framework
272 272
273 lock (m_threads) 273 lock (m_threads)
274 { 274 {
275 int now = Environment.TickCount & Int32.MaxValue; 275 int now = Environment.TickCount;
276 276
277 foreach (ThreadWatchdogInfo threadInfo in m_threads.Values) 277 foreach (ThreadWatchdogInfo threadInfo in m_threads.Values)
278 { 278 {
@@ -308,4 +308,4 @@ namespace OpenSim.Framework
308 m_watchdogTimer.Start(); 308 m_watchdogTimer.Start();
309 } 309 }
310 } 310 }
311} \ No newline at end of file 311}
diff --git a/OpenSim/Framework/WebUtil.cs b/OpenSim/Framework/WebUtil.cs
index 2aa4af5..6a40cd5 100644
--- a/OpenSim/Framework/WebUtil.cs
+++ b/OpenSim/Framework/WebUtil.cs
@@ -223,6 +223,7 @@ namespace OpenSim.Framework
223 catch (Exception ex) 223 catch (Exception ex)
224 { 224 {
225 errorMessage = ex.Message; 225 errorMessage = ex.Message;
226 m_log.Debug("[WEB UTIL]: Exception making request: " + ex.ToString());
226 } 227 }
227 finally 228 finally
228 { 229 {
@@ -302,7 +303,7 @@ namespace OpenSim.Framework
302 /// </summary> 303 /// </summary>
303 public static OSDMap PostToService(string url, NameValueCollection data) 304 public static OSDMap PostToService(string url, NameValueCollection data)
304 { 305 {
305 return ServiceFormRequest(url,data,10000); 306 return ServiceFormRequest(url,data, 20000);
306 } 307 }
307 308
308 public static OSDMap ServiceFormRequest(string url, NameValueCollection data, int timeout) 309 public static OSDMap ServiceFormRequest(string url, NameValueCollection data, int timeout)
@@ -997,6 +998,11 @@ namespace OpenSim.Framework
997 /// the request. You'll want to make sure you deal with this as they're not uncommon</exception> 998 /// the request. You'll want to make sure you deal with this as they're not uncommon</exception>
998 public static TResponse MakeRequest<TRequest, TResponse>(string verb, string requestUrl, TRequest obj) 999 public static TResponse MakeRequest<TRequest, TResponse>(string verb, string requestUrl, TRequest obj)
999 { 1000 {
1001 return MakeRequest<TRequest, TResponse>(verb, requestUrl, obj, 0);
1002 }
1003
1004 public static TResponse MakeRequest<TRequest, TResponse>(string verb, string requestUrl, TRequest obj, int pTimeout)
1005 {
1000 int reqnum = WebUtil.RequestNumber++; 1006 int reqnum = WebUtil.RequestNumber++;
1001 // m_log.DebugFormat("[WEB UTIL]: <{0}> start osd request for {1}, method {2}",reqnum,url,method); 1007 // m_log.DebugFormat("[WEB UTIL]: <{0}> start osd request for {1}, method {2}",reqnum,url,method);
1002 1008
@@ -1008,6 +1014,8 @@ namespace OpenSim.Framework
1008 1014
1009 WebRequest request = WebRequest.Create(requestUrl); 1015 WebRequest request = WebRequest.Create(requestUrl);
1010 request.Method = verb; 1016 request.Method = verb;
1017 if (pTimeout != 0)
1018 request.Timeout = pTimeout * 1000;
1011 MemoryStream buffer = null; 1019 MemoryStream buffer = null;
1012 1020
1013 if ((verb == "POST") || (verb == "PUT")) 1021 if ((verb == "POST") || (verb == "PUT"))
@@ -1123,4 +1131,4 @@ namespace OpenSim.Framework
1123 return deserial; 1131 return deserial;
1124 } 1132 }
1125 } 1133 }
1126} \ No newline at end of file 1134}
diff --git a/OpenSim/Region/Application/OpenSim.cs b/OpenSim/Region/Application/OpenSim.cs
index 04ff4e6..9c952aa 100644
--- a/OpenSim/Region/Application/OpenSim.cs
+++ b/OpenSim/Region/Application/OpenSim.cs
@@ -483,7 +483,7 @@ namespace OpenSim
483 if (alert != null) 483 if (alert != null)
484 presence.ControllingClient.Kick(alert); 484 presence.ControllingClient.Kick(alert);
485 else 485 else
486 presence.ControllingClient.Kick("\nThe OpenSim manager kicked you out.\n"); 486 presence.ControllingClient.Kick("\nYou have been logged out by an administrator.\n");
487 487
488 presence.Scene.IncomingCloseAgent(presence.UUID); 488 presence.Scene.IncomingCloseAgent(presence.UUID);
489 } 489 }
@@ -1211,7 +1211,7 @@ namespace OpenSim
1211 MainConsole.Instance.Output(String.Format("loadOffsets <X,Y,Z> = <{0},{1},{2}>",loadOffset.X,loadOffset.Y,loadOffset.Z)); 1211 MainConsole.Instance.Output(String.Format("loadOffsets <X,Y,Z> = <{0},{1},{2}>",loadOffset.X,loadOffset.Y,loadOffset.Z));
1212 } 1212 }
1213 } 1213 }
1214 m_sceneManager.LoadCurrentSceneFromXml(cmdparams[2], generateNewIDS, loadOffset); 1214 m_sceneManager.LoadCurrentSceneFromXml(cmdparams[0], generateNewIDS, loadOffset);
1215 } 1215 }
1216 else 1216 else
1217 { 1217 {
diff --git a/OpenSim/Region/Application/OpenSimBase.cs b/OpenSim/Region/Application/OpenSimBase.cs
index 3271555..76ac246 100644
--- a/OpenSim/Region/Application/OpenSimBase.cs
+++ b/OpenSim/Region/Application/OpenSimBase.cs
@@ -97,6 +97,10 @@ namespace OpenSim
97 97
98 protected List<IApplicationPlugin> m_plugins = new List<IApplicationPlugin>(); 98 protected List<IApplicationPlugin> m_plugins = new List<IApplicationPlugin>();
99 99
100 private List<string> m_permsModules;
101
102 private bool m_securePermissionsLoading = true;
103
100 /// <value> 104 /// <value>
101 /// The config information passed into the OpenSimulator region server. 105 /// The config information passed into the OpenSimulator region server.
102 /// </value> 106 /// </value>
@@ -201,6 +205,11 @@ namespace OpenSim
201 CreatePIDFile(pidFile); 205 CreatePIDFile(pidFile);
202 206
203 userStatsURI = startupConfig.GetString("Stats_URI", String.Empty); 207 userStatsURI = startupConfig.GetString("Stats_URI", String.Empty);
208
209 m_securePermissionsLoading = startupConfig.GetBoolean("SecurePermissionsLoading", true);
210
211 string permissionModules = startupConfig.GetString("permissionmodules", "DefaultPermissionsModule");
212 m_permsModules = new List<string>(permissionModules.Split(','));
204 } 213 }
205 214
206 // Load the simulation data service 215 // Load the simulation data service
@@ -229,6 +238,12 @@ namespace OpenSim
229 m_moduleLoader = new ModuleLoader(m_config.Source); 238 m_moduleLoader = new ModuleLoader(m_config.Source);
230 239
231 LoadPlugins(); 240 LoadPlugins();
241
242 if (m_plugins.Count == 0) // We failed to load any modules. Mono Addins glitch!
243 {
244 Environment.Exit(1);
245 }
246
232 foreach (IApplicationPlugin plugin in m_plugins) 247 foreach (IApplicationPlugin plugin in m_plugins)
233 { 248 {
234 plugin.PostInitialise(); 249 plugin.PostInitialise();
@@ -379,7 +394,41 @@ namespace OpenSim
379 } 394 }
380 else m_log.Error("[REGIONMODULES]: The new RegionModulesController is missing..."); 395 else m_log.Error("[REGIONMODULES]: The new RegionModulesController is missing...");
381 396
397 if (m_securePermissionsLoading)
398 {
399 foreach (string s in m_permsModules)
400 {
401 if (!scene.RegionModules.ContainsKey(s))
402 {
403 bool found = false;
404 foreach (IRegionModule m in modules)
405 {
406 if (m.Name == s)
407 {
408 found = true;
409 }
410 }
411 if (!found)
412 {
413 m_log.Fatal("[MODULES]: Required module " + s + " not found.");
414 Environment.Exit(0);
415 }
416 }
417 }
418 }
419
382 scene.SetModuleInterfaces(); 420 scene.SetModuleInterfaces();
421// First Step of bootreport sequence
422 if (scene.SnmpService != null)
423 {
424 scene.SnmpService.ColdStart(1,scene);
425 scene.SnmpService.LinkDown(scene);
426 }
427
428 if (scene.SnmpService != null)
429 {
430 scene.SnmpService.BootInfo("Loading prins", scene);
431 }
383 432
384 while (regionInfo.EstateSettings.EstateOwner == UUID.Zero && MainConsole.Instance != null) 433 while (regionInfo.EstateSettings.EstateOwner == UUID.Zero && MainConsole.Instance != null)
385 SetUpEstateOwner(scene); 434 SetUpEstateOwner(scene);
@@ -393,6 +442,11 @@ namespace OpenSim
393 scene.loadAllLandObjectsFromStorage(regionInfo.originRegionID); 442 scene.loadAllLandObjectsFromStorage(regionInfo.originRegionID);
394 scene.EventManager.TriggerParcelPrimCountUpdate(); 443 scene.EventManager.TriggerParcelPrimCountUpdate();
395 444
445 if (scene.SnmpService != null)
446 {
447 scene.SnmpService.BootInfo("Grid Registration in progress", scene);
448 }
449
396 try 450 try
397 { 451 {
398 scene.RegisterRegionWithGrid(); 452 scene.RegisterRegionWithGrid();
@@ -403,15 +457,29 @@ namespace OpenSim
403 "[STARTUP]: Registration of region with grid failed, aborting startup due to {0} {1}", 457 "[STARTUP]: Registration of region with grid failed, aborting startup due to {0} {1}",
404 e.Message, e.StackTrace); 458 e.Message, e.StackTrace);
405 459
460 if (scene.SnmpService != null)
461 {
462 scene.SnmpService.Critical("Grid registration failed. Startup aborted.", scene);
463 }
406 // Carrying on now causes a lot of confusion down the 464 // Carrying on now causes a lot of confusion down the
407 // line - we need to get the user's attention 465 // line - we need to get the user's attention
408 Environment.Exit(1); 466 Environment.Exit(1);
409 } 467 }
410 468
469 if (scene.SnmpService != null)
470 {
471 scene.SnmpService.BootInfo("Grid Registration done", scene);
472 }
473
411 // We need to do this after we've initialized the 474 // We need to do this after we've initialized the
412 // scripting engines. 475 // scripting engines.
413 scene.CreateScriptInstances(); 476 scene.CreateScriptInstances();
414 477
478 if (scene.SnmpService != null)
479 {
480 scene.SnmpService.BootInfo("ScriptEngine started", scene);
481 }
482
415 m_sceneManager.Add(scene); 483 m_sceneManager.Add(scene);
416 484
417 if (m_autoCreateClientStack) 485 if (m_autoCreateClientStack)
@@ -420,6 +488,10 @@ namespace OpenSim
420 clientServer.Start(); 488 clientServer.Start();
421 } 489 }
422 490
491 if (scene.SnmpService != null)
492 {
493 scene.SnmpService.BootInfo("Initializing region modules", scene);
494 }
423 if (do_post_init) 495 if (do_post_init)
424 { 496 {
425 foreach (IRegionModule module in modules) 497 foreach (IRegionModule module in modules)
@@ -431,6 +503,12 @@ namespace OpenSim
431 503
432 mscene = scene; 504 mscene = scene;
433 505
506 if (scene.SnmpService != null)
507 {
508 scene.SnmpService.BootInfo("The region is operational", scene);
509 scene.SnmpService.LinkUp(scene);
510 }
511
434 scene.Start(); 512 scene.Start();
435 513
436 scene.StartScripts(); 514 scene.StartScripts();
@@ -550,6 +628,11 @@ namespace OpenSim
550 private void ShutdownRegion(Scene scene) 628 private void ShutdownRegion(Scene scene)
551 { 629 {
552 m_log.DebugFormat("[SHUTDOWN]: Shutting down region {0}", scene.RegionInfo.RegionName); 630 m_log.DebugFormat("[SHUTDOWN]: Shutting down region {0}", scene.RegionInfo.RegionName);
631 if (scene.SnmpService != null)
632 {
633 scene.SnmpService.BootInfo("The region is shutting down", scene);
634 scene.SnmpService.LinkDown(scene);
635 }
553 IRegionModulesController controller; 636 IRegionModulesController controller;
554 if (ApplicationRegistry.TryGet<IRegionModulesController>(out controller)) 637 if (ApplicationRegistry.TryGet<IRegionModulesController>(out controller))
555 { 638 {
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs b/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs
index 6c28e78..d397893 100644
--- a/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs
+++ b/OpenSim/Region/ClientStack/Linden/Caps/BunchOfCaps/BunchOfCaps.cs
@@ -96,7 +96,10 @@ namespace OpenSim.Region.ClientStack.Linden
96 // private static readonly string m_fetchInventoryPath = "0006/"; 96 // private static readonly string m_fetchInventoryPath = "0006/";
97 private static readonly string m_copyFromNotecardPath = "0007/"; 97 private static readonly string m_copyFromNotecardPath = "0007/";
98 // private static readonly string m_remoteParcelRequestPath = "0009/";// This is in the LandManagementModule. 98 // private static readonly string m_remoteParcelRequestPath = "0009/";// This is in the LandManagementModule.
99 99 private static readonly string m_getObjectPhysicsDataPath = "0101/";
100 private static readonly string m_getObjectCostPath = "0102/";
101 private static readonly string m_ResourceCostSelectedPath = "0103/";
102
100 103
101 // These are callbacks which will be setup by the scene so that we can update scene data when we 104 // These are callbacks which will be setup by the scene so that we can update scene data when we
102 // receive capability calls 105 // receive capability calls
@@ -199,6 +202,14 @@ namespace OpenSim.Region.ClientStack.Linden
199 m_HostCapsObj.RegisterHandler("UpdateNotecardAgentInventory", req); 202 m_HostCapsObj.RegisterHandler("UpdateNotecardAgentInventory", req);
200 m_HostCapsObj.RegisterHandler("UpdateScriptAgentInventory", req); 203 m_HostCapsObj.RegisterHandler("UpdateScriptAgentInventory", req);
201 m_HostCapsObj.RegisterHandler("UpdateScriptAgent", req); 204 m_HostCapsObj.RegisterHandler("UpdateScriptAgent", req);
205 IRequestHandler getObjectPhysicsDataHandler = new RestStreamHandler("POST", capsBase + m_getObjectPhysicsDataPath, GetObjectPhysicsData);
206 m_HostCapsObj.RegisterHandler("GetObjectPhysicsData", getObjectPhysicsDataHandler);
207 IRequestHandler getObjectCostHandler = new RestStreamHandler("POST", capsBase + m_getObjectCostPath, GetObjectCost);
208 m_HostCapsObj.RegisterHandler("GetObjectCost", getObjectCostHandler);
209 IRequestHandler ResourceCostSelectedHandler = new RestStreamHandler("POST", capsBase + m_ResourceCostSelectedPath, ResourceCostSelected);
210 m_HostCapsObj.RegisterHandler("ResourceCostSelected", ResourceCostSelectedHandler);
211
212
202 213
203 m_HostCapsObj.RegisterHandler( 214 m_HostCapsObj.RegisterHandler(
204 "CopyInventoryFromNotecard", 215 "CopyInventoryFromNotecard",
@@ -849,6 +860,151 @@ namespace OpenSim.Region.ClientStack.Linden
849 response["int_response_code"] = 200; 860 response["int_response_code"] = 200;
850 return LLSDHelpers.SerialiseLLSDReply(response); 861 return LLSDHelpers.SerialiseLLSDReply(response);
851 } 862 }
863
864 public string GetObjectPhysicsData(string request, string path,
865 string param, IOSHttpRequest httpRequest,
866 IOSHttpResponse httpResponse)
867 {
868 OSDMap req = (OSDMap)OSDParser.DeserializeLLSDXml(request);
869 OSDMap resp = new OSDMap();
870 OSDArray object_ids = (OSDArray)req["object_ids"];
871
872 for (int i = 0 ; i < object_ids.Count ; i++)
873 {
874 UUID uuid = object_ids[i].AsUUID();
875
876 SceneObjectPart obj = m_Scene.GetSceneObjectPart(uuid);
877 if (obj != null)
878 {
879 OSDMap object_data = new OSDMap();
880
881 object_data["PhysicsShapeType"] = obj.PhysicsShapeType;
882 object_data["Density"] = obj.Density;
883 object_data["Friction"] = obj.Friction;
884 object_data["Restitution"] = obj.Bounciness;
885 object_data["GravityMultiplier"] = obj.GravityModifier;
886
887 resp[uuid.ToString()] = object_data;
888 }
889 }
890
891 string response = OSDParser.SerializeLLSDXmlString(resp);
892 return response;
893 }
894
895 public string GetObjectCost(string request, string path,
896 string param, IOSHttpRequest httpRequest,
897 IOSHttpResponse httpResponse)
898 {
899 OSDMap req = (OSDMap)OSDParser.DeserializeLLSDXml(request);
900 OSDMap resp = new OSDMap();
901
902 OSDArray object_ids = (OSDArray)req["object_ids"];
903
904 for (int i = 0; i < object_ids.Count; i++)
905 {
906 UUID uuid = object_ids[i].AsUUID();
907
908 SceneObjectPart part = m_Scene.GetSceneObjectPart(uuid);
909
910 if (part != null)
911 {
912 SceneObjectGroup grp = part.ParentGroup;
913 if (grp != null)
914 {
915 float linksetCost;
916 float linksetPhysCost;
917 float partCost;
918 float partPhysCost;
919
920 grp.GetResourcesCosts(part, out linksetCost, out linksetPhysCost, out partCost, out partPhysCost);
921
922 OSDMap object_data = new OSDMap();
923 object_data["linked_set_resource_cost"] = linksetCost;
924 object_data["resource_cost"] = partCost;
925 object_data["physics_cost"] = partPhysCost;
926 object_data["linked_set_physics_cost"] = linksetPhysCost;
927
928 resp[uuid.ToString()] = object_data;
929 }
930 }
931 }
932
933 string response = OSDParser.SerializeLLSDXmlString(resp);
934 return response;
935 }
936
937 public string ResourceCostSelected(string request, string path,
938 string param, IOSHttpRequest httpRequest,
939 IOSHttpResponse httpResponse)
940 {
941 OSDMap req = (OSDMap)OSDParser.DeserializeLLSDXml(request);
942 OSDMap resp = new OSDMap();
943
944
945 float phys=0;
946 float stream=0;
947 float simul=0;
948
949 if (req.ContainsKey("selected_roots"))
950 {
951 OSDArray object_ids = (OSDArray)req["selected_roots"];
952
953 // should go by SOG suming costs for all parts
954 // ll v3 works ok with several objects select we get the list and adds ok
955 // FS calls per object so results are wrong guess fs bug
956 for (int i = 0; i < object_ids.Count; i++)
957 {
958 UUID uuid = object_ids[i].AsUUID();
959 float Physc;
960 float simulc;
961 float streamc;
962
963 SceneObjectGroup grp = m_Scene.GetGroupByPrim(uuid);
964 if (grp != null)
965 {
966 grp.GetSelectedCosts(out Physc, out streamc, out simulc);
967 phys += Physc;
968 stream += streamc;
969 simul += simulc;
970 }
971 }
972 }
973 else if (req.ContainsKey("selected_prims"))
974 {
975 OSDArray object_ids = (OSDArray)req["selected_prims"];
976
977 // don't see in use in any of the 2 viewers
978 // guess it should be for edit linked but... nothing
979 // should go to SOP per part
980 for (int i = 0; i < object_ids.Count; i++)
981 {
982 UUID uuid = object_ids[i].AsUUID();
983
984 SceneObjectPart part = m_Scene.GetSceneObjectPart(uuid);
985 if (part != null)
986 {
987 phys += part.PhysicsCost;
988 stream += part.StreamingCost;
989 simul += part.SimulationCost;
990 }
991 }
992 }
993
994 if (simul != 0)
995 {
996 OSDMap object_data = new OSDMap();
997
998 object_data["physics"] = phys;
999 object_data["streaming"] = stream;
1000 object_data["simulation"] = simul;
1001
1002 resp["selected"] = object_data;
1003 }
1004
1005 string response = OSDParser.SerializeLLSDXmlString(resp);
1006 return response;
1007 }
852 } 1008 }
853 1009
854 public class AssetUploader 1010 public class AssetUploader
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueGetModule.cs b/OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueGetModule.cs
index 594b229..0d7390b 100644
--- a/OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueGetModule.cs
+++ b/OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueGetModule.cs
@@ -831,5 +831,13 @@ namespace OpenSim.Region.ClientStack.Linden
831 { 831 {
832 return EventQueueHelper.BuildEvent(eventName, eventBody); 832 return EventQueueHelper.BuildEvent(eventName, eventBody);
833 } 833 }
834
835 public void partPhysicsProperties(uint localID, byte physhapetype,
836 float density, float friction, float bounce, float gravmod,UUID avatarID)
837 {
838 OSD item = EventQueueHelper.partPhysicsProperties(localID, physhapetype,
839 density, friction, bounce, gravmod);
840 Enqueue(item, avatarID);
841 }
834 } 842 }
835} 843}
diff --git a/OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueHelper.cs b/OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueHelper.cs
index 3f49aba..b9222e3 100644
--- a/OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueHelper.cs
+++ b/OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueHelper.cs
@@ -395,5 +395,25 @@ namespace OpenSim.Region.ClientStack.Linden
395 return message; 395 return message;
396 } 396 }
397 397
398 public static OSD partPhysicsProperties(uint localID, byte physhapetype,
399 float density, float friction, float bounce, float gravmod)
400 {
401
402 OSDMap physinfo = new OSDMap(6);
403 physinfo["LocalID"] = localID;
404 physinfo["Density"] = density;
405 physinfo["Friction"] = friction;
406 physinfo["GravityMultiplier"] = gravmod;
407 physinfo["Restitution"] = bounce;
408 physinfo["PhysicsShapeType"] = (int)physhapetype;
409
410 OSDArray array = new OSDArray(1);
411 array.Add(physinfo);
412
413 OSDMap llsdBody = new OSDMap(1);
414 llsdBody.Add("ObjectData", array);
415
416 return BuildEvent("ObjectPhysicsProperties", llsdBody);
417 }
398 } 418 }
399} 419}
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/J2KImage.cs b/OpenSim/Region/ClientStack/Linden/UDP/J2KImage.cs
index afbe56b..3995620 100644
--- a/OpenSim/Region/ClientStack/Linden/UDP/J2KImage.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/J2KImage.cs
@@ -234,6 +234,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP
234 m_stopPacket = TexturePacketCount(); 234 m_stopPacket = TexturePacketCount();
235 } 235 }
236 236
237 //Give them at least two packets, to play nice with some broken viewers (SL also behaves this way)
238 if (m_stopPacket == 1 && m_layers[0].End > FIRST_PACKET_SIZE) m_stopPacket++;
239
237 m_currentPacket = StartPacket; 240 m_currentPacket = StartPacket;
238 } 241 }
239 } 242 }
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
index 8874585..18602f7 100644
--- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
@@ -98,6 +98,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
98 public event AvatarPickerRequest OnAvatarPickerRequest; 98 public event AvatarPickerRequest OnAvatarPickerRequest;
99 public event StartAnim OnStartAnim; 99 public event StartAnim OnStartAnim;
100 public event StopAnim OnStopAnim; 100 public event StopAnim OnStopAnim;
101 public event ChangeAnim OnChangeAnim;
101 public event Action<IClientAPI> OnRequestAvatarsData; 102 public event Action<IClientAPI> OnRequestAvatarsData;
102 public event LinkObjects OnLinkObjects; 103 public event LinkObjects OnLinkObjects;
103 public event DelinkObjects OnDelinkObjects; 104 public event DelinkObjects OnDelinkObjects;
@@ -125,6 +126,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
125 public event RequestObjectPropertiesFamily OnRequestObjectPropertiesFamily; 126 public event RequestObjectPropertiesFamily OnRequestObjectPropertiesFamily;
126 public event UpdatePrimFlags OnUpdatePrimFlags; 127 public event UpdatePrimFlags OnUpdatePrimFlags;
127 public event UpdatePrimTexture OnUpdatePrimTexture; 128 public event UpdatePrimTexture OnUpdatePrimTexture;
129 public event ClientChangeObject onClientChangeObject;
128 public event UpdateVector OnUpdatePrimGroupPosition; 130 public event UpdateVector OnUpdatePrimGroupPosition;
129 public event UpdateVector OnUpdatePrimSinglePosition; 131 public event UpdateVector OnUpdatePrimSinglePosition;
130 public event UpdatePrimRotation OnUpdatePrimGroupRotation; 132 public event UpdatePrimRotation OnUpdatePrimGroupRotation;
@@ -158,6 +160,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
158 public event RequestTaskInventory OnRequestTaskInventory; 160 public event RequestTaskInventory OnRequestTaskInventory;
159 public event UpdateInventoryItem OnUpdateInventoryItem; 161 public event UpdateInventoryItem OnUpdateInventoryItem;
160 public event CopyInventoryItem OnCopyInventoryItem; 162 public event CopyInventoryItem OnCopyInventoryItem;
163 public event MoveItemsAndLeaveCopy OnMoveItemsAndLeaveCopy;
161 public event MoveInventoryItem OnMoveInventoryItem; 164 public event MoveInventoryItem OnMoveInventoryItem;
162 public event RemoveInventoryItem OnRemoveInventoryItem; 165 public event RemoveInventoryItem OnRemoveInventoryItem;
163 public event RemoveInventoryFolder OnRemoveInventoryFolder; 166 public event RemoveInventoryFolder OnRemoveInventoryFolder;
@@ -256,7 +259,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
256 public event ClassifiedInfoRequest OnClassifiedInfoRequest; 259 public event ClassifiedInfoRequest OnClassifiedInfoRequest;
257 public event ClassifiedInfoUpdate OnClassifiedInfoUpdate; 260 public event ClassifiedInfoUpdate OnClassifiedInfoUpdate;
258 public event ClassifiedDelete OnClassifiedDelete; 261 public event ClassifiedDelete OnClassifiedDelete;
259 public event ClassifiedDelete OnClassifiedGodDelete; 262 public event ClassifiedGodDelete OnClassifiedGodDelete;
260 public event EventNotificationAddRequest OnEventNotificationAddRequest; 263 public event EventNotificationAddRequest OnEventNotificationAddRequest;
261 public event EventNotificationRemoveRequest OnEventNotificationRemoveRequest; 264 public event EventNotificationRemoveRequest OnEventNotificationRemoveRequest;
262 public event EventGodDelete OnEventGodDelete; 265 public event EventGodDelete OnEventGodDelete;
@@ -287,6 +290,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
287 public event GroupVoteHistoryRequest OnGroupVoteHistoryRequest; 290 public event GroupVoteHistoryRequest OnGroupVoteHistoryRequest;
288 public event SimWideDeletesDelegate OnSimWideDeletes; 291 public event SimWideDeletesDelegate OnSimWideDeletes;
289 public event SendPostcard OnSendPostcard; 292 public event SendPostcard OnSendPostcard;
293 public event ChangeInventoryItemFlags OnChangeInventoryItemFlags;
290 public event MuteListEntryUpdate OnUpdateMuteListEntry; 294 public event MuteListEntryUpdate OnUpdateMuteListEntry;
291 public event MuteListEntryRemove OnRemoveMuteListEntry; 295 public event MuteListEntryRemove OnRemoveMuteListEntry;
292 public event GodlikeMessage onGodlikeMessage; 296 public event GodlikeMessage onGodlikeMessage;
@@ -325,6 +329,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP
325 private Prioritizer m_prioritizer; 329 private Prioritizer m_prioritizer;
326 private bool m_disableFacelights = false; 330 private bool m_disableFacelights = false;
327 331
332 private const uint MaxTransferBytesPerPacket = 600;
333
334
328 /// <value> 335 /// <value>
329 /// List used in construction of data blocks for an object update packet. This is to stop us having to 336 /// List used in construction of data blocks for an object update packet. This is to stop us having to
330 /// continually recreate it. 337 /// continually recreate it.
@@ -336,14 +343,15 @@ namespace OpenSim.Region.ClientStack.LindenUDP
336 /// thread servicing the m_primFullUpdates queue after a kill. If this happens the object persists as an 343 /// thread servicing the m_primFullUpdates queue after a kill. If this happens the object persists as an
337 /// ownerless phantom. 344 /// ownerless phantom.
338 /// 345 ///
339 /// All manipulation of this set has to occur under a lock 346 /// All manipulation of this set has to occur under an m_entityUpdates.SyncRoot lock
340 /// 347 ///
341 /// </value> 348 /// </value>
342 protected HashSet<uint> m_killRecord; 349// protected HashSet<uint> m_killRecord;
343 350
344// protected HashSet<uint> m_attachmentsSent; 351// protected HashSet<uint> m_attachmentsSent;
345 352
346 private int m_moneyBalance; 353 private int m_moneyBalance;
354 private bool m_deliverPackets = true;
347 private int m_animationSequenceNumber = 1; 355 private int m_animationSequenceNumber = 1;
348 private bool m_SendLogoutPacketWhenClosing = true; 356 private bool m_SendLogoutPacketWhenClosing = true;
349 private AgentUpdateArgs lastarg; 357 private AgentUpdateArgs lastarg;
@@ -383,6 +391,14 @@ namespace OpenSim.Region.ClientStack.LindenUDP
383 get { return m_startpos; } 391 get { return m_startpos; }
384 set { m_startpos = value; } 392 set { m_startpos = value; }
385 } 393 }
394 public bool DeliverPackets
395 {
396 get { return m_deliverPackets; }
397 set {
398 m_deliverPackets = value;
399 m_udpClient.m_deliverPackets = value;
400 }
401 }
386 public UUID AgentId { get { return m_agentId; } } 402 public UUID AgentId { get { return m_agentId; } }
387 public ISceneAgent SceneAgent { get; set; } 403 public ISceneAgent SceneAgent { get; set; }
388 public UUID ActiveGroupId { get { return m_activeGroupID; } } 404 public UUID ActiveGroupId { get { return m_activeGroupID; } }
@@ -456,7 +472,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
456 m_entityUpdates = new PriorityQueue(m_scene.Entities.Count); 472 m_entityUpdates = new PriorityQueue(m_scene.Entities.Count);
457 m_entityProps = new PriorityQueue(m_scene.Entities.Count); 473 m_entityProps = new PriorityQueue(m_scene.Entities.Count);
458 m_fullUpdateDataBlocksBuilder = new List<ObjectUpdatePacket.ObjectDataBlock>(); 474 m_fullUpdateDataBlocksBuilder = new List<ObjectUpdatePacket.ObjectDataBlock>();
459 m_killRecord = new HashSet<uint>(); 475// m_killRecord = new HashSet<uint>();
460// m_attachmentsSent = new HashSet<uint>(); 476// m_attachmentsSent = new HashSet<uint>();
461 477
462 m_assetService = m_scene.RequestModuleInterface<IAssetService>(); 478 m_assetService = m_scene.RequestModuleInterface<IAssetService>();
@@ -485,17 +501,35 @@ namespace OpenSim.Region.ClientStack.LindenUDP
485 501
486 #region Client Methods 502 #region Client Methods
487 503
504
488 /// <summary> 505 /// <summary>
489 /// Shut down the client view 506 /// Shut down the client view
490 /// </summary> 507 /// </summary>
491 public void Close() 508 public void Close()
492 { 509 {
510 Close(true);
511 }
512
513 /// <summary>
514 /// Shut down the client view
515 /// </summary>
516 public void Close(bool sendStop)
517 {
493 IsActive = false; 518 IsActive = false;
494 519
495 m_log.DebugFormat( 520 m_log.DebugFormat(
496 "[CLIENT]: Close has been called for {0} attached to scene {1}", 521 "[CLIENT]: Close has been called for {0} attached to scene {1}",
497 Name, m_scene.RegionInfo.RegionName); 522 Name, m_scene.RegionInfo.RegionName);
498 523
524 if (sendStop)
525 {
526 // Send the STOP packet
527 DisableSimulatorPacket disable = (DisableSimulatorPacket)PacketPool.Instance.GetPacket(PacketType.DisableSimulator);
528 OutPacket(disable, ThrottleOutPacketType.Unknown);
529 }
530
531 IsActive = false;
532
499 // Shutdown the image manager 533 // Shutdown the image manager
500 ImageManager.Close(); 534 ImageManager.Close();
501 535
@@ -792,7 +826,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
792 reply.ChatData.OwnerID = fromAgentID; 826 reply.ChatData.OwnerID = fromAgentID;
793 reply.ChatData.SourceID = fromAgentID; 827 reply.ChatData.SourceID = fromAgentID;
794 828
795 OutPacket(reply, ThrottleOutPacketType.Task); 829 OutPacket(reply, ThrottleOutPacketType.Unknown);
796 } 830 }
797 831
798 /// <summary> 832 /// <summary>
@@ -1078,6 +1112,10 @@ namespace OpenSim.Region.ClientStack.LindenUDP
1078 public virtual void SendLayerData(float[] map) 1112 public virtual void SendLayerData(float[] map)
1079 { 1113 {
1080 Util.FireAndForget(DoSendLayerData, map); 1114 Util.FireAndForget(DoSendLayerData, map);
1115
1116 // Send it sync, and async. It's not that much data
1117 // and it improves user experience just so much!
1118 DoSendLayerData(map);
1081 } 1119 }
1082 1120
1083 /// <summary> 1121 /// <summary>
@@ -1090,16 +1128,13 @@ namespace OpenSim.Region.ClientStack.LindenUDP
1090 1128
1091 try 1129 try
1092 { 1130 {
1093 //for (int y = 0; y < 16; y++) 1131 for (int y = 0; y < 16; y++)
1094 //{ 1132 {
1095 // for (int x = 0; x < 16; x++) 1133 for (int x = 0; x < 16; x+=4)
1096 // { 1134 {
1097 // SendLayerData(x, y, map); 1135 SendLayerPacket(x, y, map);
1098 // } 1136 }
1099 //} 1137 }
1100
1101 // Send LayerData in a spiral pattern. Fun!
1102 SendLayerTopRight(map, 0, 0, 15, 15);
1103 } 1138 }
1104 catch (Exception e) 1139 catch (Exception e)
1105 { 1140 {
@@ -1107,51 +1142,35 @@ namespace OpenSim.Region.ClientStack.LindenUDP
1107 } 1142 }
1108 } 1143 }
1109 1144
1110 private void SendLayerTopRight(float[] map, int x1, int y1, int x2, int y2)
1111 {
1112 // Row
1113 for (int i = x1; i <= x2; i++)
1114 SendLayerData(i, y1, map);
1115
1116 // Column
1117 for (int j = y1 + 1; j <= y2; j++)
1118 SendLayerData(x2, j, map);
1119
1120 if (x2 - x1 > 0)
1121 SendLayerBottomLeft(map, x1, y1 + 1, x2 - 1, y2);
1122 }
1123
1124 void SendLayerBottomLeft(float[] map, int x1, int y1, int x2, int y2)
1125 {
1126 // Row in reverse
1127 for (int i = x2; i >= x1; i--)
1128 SendLayerData(i, y2, map);
1129
1130 // Column in reverse
1131 for (int j = y2 - 1; j >= y1; j--)
1132 SendLayerData(x1, j, map);
1133
1134 if (x2 - x1 > 0)
1135 SendLayerTopRight(map, x1 + 1, y1, x2, y2 - 1);
1136 }
1137
1138 /// <summary> 1145 /// <summary>
1139 /// Sends a set of four patches (x, x+1, ..., x+3) to the client 1146 /// Sends a set of four patches (x, x+1, ..., x+3) to the client
1140 /// </summary> 1147 /// </summary>
1141 /// <param name="map">heightmap</param> 1148 /// <param name="map">heightmap</param>
1142 /// <param name="px">X coordinate for patches 0..12</param> 1149 /// <param name="px">X coordinate for patches 0..12</param>
1143 /// <param name="py">Y coordinate for patches 0..15</param> 1150 /// <param name="py">Y coordinate for patches 0..15</param>
1144 // private void SendLayerPacket(float[] map, int y, int x) 1151 private void SendLayerPacket(int x, int y, float[] map)
1145 // { 1152 {
1146 // int[] patches = new int[4]; 1153 int[] patches = new int[4];
1147 // patches[0] = x + 0 + y * 16; 1154 patches[0] = x + 0 + y * 16;
1148 // patches[1] = x + 1 + y * 16; 1155 patches[1] = x + 1 + y * 16;
1149 // patches[2] = x + 2 + y * 16; 1156 patches[2] = x + 2 + y * 16;
1150 // patches[3] = x + 3 + y * 16; 1157 patches[3] = x + 3 + y * 16;
1151 1158
1152 // Packet layerpack = LLClientView.TerrainManager.CreateLandPacket(map, patches); 1159 float[] heightmap = (map.Length == 65536) ?
1153 // OutPacket(layerpack, ThrottleOutPacketType.Land); 1160 map :
1154 // } 1161 LLHeightFieldMoronize(map);
1162
1163 try
1164 {
1165 Packet layerpack = TerrainCompressor.CreateLandPacket(heightmap, patches);
1166 OutPacket(layerpack, ThrottleOutPacketType.Land);
1167 }
1168 catch
1169 {
1170 for (int px = x ; px < x + 4 ; px++)
1171 SendLayerData(px, y, map);
1172 }
1173 }
1155 1174
1156 /// <summary> 1175 /// <summary>
1157 /// Sends a specified patch to a client 1176 /// Sends a specified patch to a client
@@ -1171,7 +1190,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
1171 LayerDataPacket layerpack = TerrainCompressor.CreateLandPacket(heightmap, patches); 1190 LayerDataPacket layerpack = TerrainCompressor.CreateLandPacket(heightmap, patches);
1172 layerpack.Header.Reliable = true; 1191 layerpack.Header.Reliable = true;
1173 1192
1174 OutPacket(layerpack, ThrottleOutPacketType.Land); 1193 OutPacket(layerpack, ThrottleOutPacketType.Task);
1175 } 1194 }
1176 catch (Exception e) 1195 catch (Exception e)
1177 { 1196 {
@@ -1534,7 +1553,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP
1534 1553
1535 public void SendKillObject(ulong regionHandle, List<uint> localIDs) 1554 public void SendKillObject(ulong regionHandle, List<uint> localIDs)
1536 { 1555 {
1537// m_log.DebugFormat("[CLIENT]: Sending KillObjectPacket to {0} for {1} in {2}", Name, localID, regionHandle); 1556// foreach (uint id in localIDs)
1557// m_log.DebugFormat("[CLIENT]: Sending KillObjectPacket to {0} for {1} in {2}", Name, id, regionHandle);
1538 1558
1539 KillObjectPacket kill = (KillObjectPacket)PacketPool.Instance.GetPacket(PacketType.KillObject); 1559 KillObjectPacket kill = (KillObjectPacket)PacketPool.Instance.GetPacket(PacketType.KillObject);
1540 // TODO: don't create new blocks if recycling an old packet 1560 // TODO: don't create new blocks if recycling an old packet
@@ -1556,17 +1576,17 @@ namespace OpenSim.Region.ClientStack.LindenUDP
1556 // We MUST lock for both manipulating the kill record and sending the packet, in order to avoid a race 1576 // We MUST lock for both manipulating the kill record and sending the packet, in order to avoid a race
1557 // condition where a kill can be processed before an out-of-date update for the same object. 1577 // condition where a kill can be processed before an out-of-date update for the same object.
1558 // ProcessEntityUpdates() also takes the m_killRecord lock. 1578 // ProcessEntityUpdates() also takes the m_killRecord lock.
1559 lock (m_killRecord) 1579// lock (m_killRecord)
1560 { 1580// {
1561 foreach (uint localID in localIDs) 1581// foreach (uint localID in localIDs)
1562 m_killRecord.Add(localID); 1582// m_killRecord.Add(localID);
1563 1583
1564 // The throttle queue used here must match that being used for updates. Otherwise, there is a 1584 // The throttle queue used here must match that being used for updates. Otherwise, there is a
1565 // chance that a kill packet put on a separate queue will be sent to the client before an existing 1585 // chance that a kill packet put on a separate queue will be sent to the client before an existing
1566 // update packet on another queue. Receiving updates after kills results in unowned and undeletable 1586 // update packet on another queue. Receiving updates after kills results in unowned and undeletable
1567 // scene objects in a viewer until that viewer is relogged in. 1587 // scene objects in a viewer until that viewer is relogged in.
1568 OutPacket(kill, ThrottleOutPacketType.Task); 1588 OutPacket(kill, ThrottleOutPacketType.Task);
1569 } 1589// }
1570 } 1590 }
1571 } 1591 }
1572 1592
@@ -2296,6 +2316,15 @@ namespace OpenSim.Region.ClientStack.LindenUDP
2296 OutPacket(sound, ThrottleOutPacketType.Task); 2316 OutPacket(sound, ThrottleOutPacketType.Task);
2297 } 2317 }
2298 2318
2319 public void SendTransferAbort(TransferRequestPacket transferRequest)
2320 {
2321 TransferAbortPacket abort = (TransferAbortPacket)PacketPool.Instance.GetPacket(PacketType.TransferAbort);
2322 abort.TransferInfo.TransferID = transferRequest.TransferInfo.TransferID;
2323 abort.TransferInfo.ChannelType = transferRequest.TransferInfo.ChannelType;
2324 m_log.Debug("[Assets] Aborting transfer; asset request failed");
2325 OutPacket(abort, ThrottleOutPacketType.Task);
2326 }
2327
2299 public void SendTriggeredSound(UUID soundID, UUID ownerID, UUID objectID, UUID parentID, ulong handle, Vector3 position, float gain) 2328 public void SendTriggeredSound(UUID soundID, UUID ownerID, UUID objectID, UUID parentID, ulong handle, Vector3 position, float gain)
2300 { 2329 {
2301 SoundTriggerPacket sound = (SoundTriggerPacket)PacketPool.Instance.GetPacket(PacketType.SoundTrigger); 2330 SoundTriggerPacket sound = (SoundTriggerPacket)PacketPool.Instance.GetPacket(PacketType.SoundTrigger);
@@ -2588,6 +2617,35 @@ namespace OpenSim.Region.ClientStack.LindenUDP
2588 } 2617 }
2589 } 2618 }
2590 2619
2620 public void SendPartPhysicsProprieties(ISceneEntity entity)
2621 {
2622 SceneObjectPart part = (SceneObjectPart)entity;
2623 if (part != null && AgentId != UUID.Zero)
2624 {
2625 try
2626 {
2627 IEventQueue eq = Scene.RequestModuleInterface<IEventQueue>();
2628 if (eq != null)
2629 {
2630 uint localid = part.LocalId;
2631 byte physshapetype = part.PhysicsShapeType;
2632 float density = part.Density;
2633 float friction = part.Friction;
2634 float bounce = part.Bounciness;
2635 float gravmod = part.GravityModifier;
2636
2637 eq.partPhysicsProperties(localid, physshapetype, density, friction, bounce, gravmod,AgentId);
2638 }
2639 }
2640 catch (Exception ex)
2641 {
2642 m_log.Error("Unable to send part Physics Proprieties - exception: " + ex.ToString());
2643 }
2644 part.UpdatePhysRequired = false;
2645 }
2646 }
2647
2648
2591 2649
2592 public void SendGroupNameReply(UUID groupLLUID, string GroupName) 2650 public void SendGroupNameReply(UUID groupLLUID, string GroupName)
2593 { 2651 {
@@ -2685,7 +2743,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP
2685 else 2743 else
2686 { 2744 {
2687 int processedLength = 0; 2745 int processedLength = 0;
2688 int maxChunkSize = Settings.MAX_PACKET_SIZE - 100; 2746// int maxChunkSize = Settings.MAX_PACKET_SIZE - 100;
2747
2748 int maxChunkSize = (int) MaxTransferBytesPerPacket;
2689 int packetNumber = 0; 2749 int packetNumber = 0;
2690 2750
2691 while (processedLength < req.AssetInf.Data.Length) 2751 while (processedLength < req.AssetInf.Data.Length)
@@ -2756,7 +2816,10 @@ namespace OpenSim.Region.ClientStack.LindenUDP
2756 reply.Data.ParcelID = parcelID; 2816 reply.Data.ParcelID = parcelID;
2757 reply.Data.OwnerID = land.OwnerID; 2817 reply.Data.OwnerID = land.OwnerID;
2758 reply.Data.Name = Utils.StringToBytes(land.Name); 2818 reply.Data.Name = Utils.StringToBytes(land.Name);
2759 reply.Data.Desc = Utils.StringToBytes(land.Description); 2819 if (land != null && land.Description != null && land.Description != String.Empty)
2820 reply.Data.Desc = Utils.StringToBytes(land.Description.Substring(0, land.Description.Length > 254 ? 254: land.Description.Length));
2821 else
2822 reply.Data.Desc = new Byte[0];
2760 reply.Data.ActualArea = land.Area; 2823 reply.Data.ActualArea = land.Area;
2761 reply.Data.BillableArea = land.Area; // TODO: what is this? 2824 reply.Data.BillableArea = land.Area; // TODO: what is this?
2762 2825
@@ -3491,7 +3554,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
3491 3554
3492 AvatarAppearancePacket avp = (AvatarAppearancePacket)PacketPool.Instance.GetPacket(PacketType.AvatarAppearance); 3555 AvatarAppearancePacket avp = (AvatarAppearancePacket)PacketPool.Instance.GetPacket(PacketType.AvatarAppearance);
3493 // TODO: don't create new blocks if recycling an old packet 3556 // TODO: don't create new blocks if recycling an old packet
3494 avp.VisualParam = new AvatarAppearancePacket.VisualParamBlock[218]; 3557 avp.VisualParam = new AvatarAppearancePacket.VisualParamBlock[visualParams.Length];
3495 avp.ObjectData.TextureEntry = textureEntry; 3558 avp.ObjectData.TextureEntry = textureEntry;
3496 3559
3497 AvatarAppearancePacket.VisualParamBlock avblock = null; 3560 AvatarAppearancePacket.VisualParamBlock avblock = null;
@@ -3619,7 +3682,15 @@ namespace OpenSim.Region.ClientStack.LindenUDP
3619 /// </summary> 3682 /// </summary>
3620 public void SendEntityUpdate(ISceneEntity entity, PrimUpdateFlags updateFlags) 3683 public void SendEntityUpdate(ISceneEntity entity, PrimUpdateFlags updateFlags)
3621 { 3684 {
3622 //double priority = m_prioritizer.GetUpdatePriority(this, entity); 3685 if (entity is SceneObjectPart)
3686 {
3687 SceneObjectPart e = (SceneObjectPart)entity;
3688 SceneObjectGroup g = e.ParentGroup;
3689 if (g.RootPart.Shape.State > 30) // HUD
3690 if (g.OwnerID != AgentId)
3691 return; // Don't send updates for other people's HUDs
3692 }
3693
3623 uint priority = m_prioritizer.GetUpdatePriority(this, entity); 3694 uint priority = m_prioritizer.GetUpdatePriority(this, entity);
3624 3695
3625 lock (m_entityUpdates.SyncRoot) 3696 lock (m_entityUpdates.SyncRoot)
@@ -3686,27 +3757,74 @@ namespace OpenSim.Region.ClientStack.LindenUDP
3686 3757
3687 // We must lock for both manipulating the kill record and sending the packet, in order to avoid a race 3758 // We must lock for both manipulating the kill record and sending the packet, in order to avoid a race
3688 // condition where a kill can be processed before an out-of-date update for the same object. 3759 // condition where a kill can be processed before an out-of-date update for the same object.
3689 lock (m_killRecord) 3760 float avgTimeDilation = 1.0f;
3761 IEntityUpdate iupdate;
3762 Int32 timeinqueue; // this is just debugging code & can be dropped later
3763
3764 while (updatesThisCall < maxUpdates)
3690 { 3765 {
3691 float avgTimeDilation = 1.0f; 3766 lock (m_entityUpdates.SyncRoot)
3692 IEntityUpdate iupdate; 3767 if (!m_entityUpdates.TryDequeue(out iupdate, out timeinqueue))
3693 Int32 timeinqueue; // this is just debugging code & can be dropped later 3768 break;
3769
3770 EntityUpdate update = (EntityUpdate)iupdate;
3771
3772 avgTimeDilation += update.TimeDilation;
3773 avgTimeDilation *= 0.5f;
3694 3774
3695 while (updatesThisCall < maxUpdates) 3775 if (update.Entity is SceneObjectPart)
3696 { 3776 {
3697 lock (m_entityUpdates.SyncRoot) 3777 SceneObjectPart part = (SceneObjectPart)update.Entity;
3698 if (!m_entityUpdates.TryDequeue(out iupdate, out timeinqueue))
3699 break;
3700 3778
3701 EntityUpdate update = (EntityUpdate)iupdate; 3779 if (part.ParentGroup.IsDeleted)
3702 3780 continue;
3703 avgTimeDilation += update.TimeDilation;
3704 avgTimeDilation *= 0.5f;
3705 3781
3706 if (update.Entity is SceneObjectPart) 3782 if (part.ParentGroup.IsAttachment)
3783 { // Someone else's HUD, why are we getting these?
3784 if (part.ParentGroup.OwnerID != AgentId &&
3785 part.ParentGroup.RootPart.Shape.State >= 30)
3786 continue;
3787 ScenePresence sp;
3788 // Owner is not in the sim, don't update it to
3789 // anyone
3790 if (!m_scene.TryGetScenePresence(part.OwnerID, out sp))
3791 continue;
3792
3793 List<SceneObjectGroup> atts = sp.GetAttachments();
3794 bool found = false;
3795 foreach (SceneObjectGroup att in atts)
3796 {
3797 if (att == part.ParentGroup)
3798 {
3799 found = true;
3800 break;
3801 }
3802 }
3803
3804 // It's an attachment of a valid avatar, but
3805 // doesn't seem to be attached, skip
3806 if (!found)
3807 continue;
3808
3809 // On vehicle crossing, the attachments are received
3810 // while the avatar is still a child. Don't send
3811 // updates here because the LocalId has not yet
3812 // been updated and the viewer will derender the
3813 // attachments until the avatar becomes root.
3814 if (sp.IsChildAgent)
3815 continue;
3816
3817 // If the object is an attachment we don't want it to be in the kill
3818 // record. Else attaching from inworld and subsequently dropping
3819 // it will no longer work.
3820// lock (m_killRecord)
3821// {
3822// m_killRecord.Remove(part.LocalId);
3823// m_killRecord.Remove(part.ParentGroup.RootPart.LocalId);
3824// }
3825 }
3826 else
3707 { 3827 {
3708 SceneObjectPart part = (SceneObjectPart)update.Entity;
3709
3710 // Please do not remove this unless you can demonstrate on the OpenSim mailing list that a client 3828 // Please do not remove this unless you can demonstrate on the OpenSim mailing list that a client
3711 // will never receive an update after a prim kill. Even then, keeping the kill record may be a good 3829 // will never receive an update after a prim kill. Even then, keeping the kill record may be a good
3712 // safety measure. 3830 // safety measure.
@@ -3717,236 +3835,174 @@ namespace OpenSim.Region.ClientStack.LindenUDP
3717 // 3835 //
3718 // This doesn't appear to apply to child prims - a client will happily ignore these updates 3836 // This doesn't appear to apply to child prims - a client will happily ignore these updates
3719 // after the root prim has been deleted. 3837 // after the root prim has been deleted.
3720 if (m_killRecord.Contains(part.LocalId)) 3838 //
3721 { 3839 // We ignore this for attachments because attaching something from inworld breaks unless we do.
3722 // m_log.WarnFormat( 3840// lock (m_killRecord)
3723 // "[CLIENT]: Preventing update for prim with local id {0} after client for user {1} told it was deleted", 3841// {
3724 // part.LocalId, Name); 3842// if (m_killRecord.Contains(part.LocalId))
3725 continue; 3843// continue;
3726 } 3844// if (m_killRecord.Contains(part.ParentGroup.RootPart.LocalId))
3727 3845// continue;
3728 if (part.ParentGroup.IsAttachment && m_disableFacelights) 3846// }
3847 }
3848
3849 if (part.ParentGroup.IsAttachment && m_disableFacelights)
3850 {
3851 if (part.ParentGroup.RootPart.Shape.State != (byte)AttachmentPoint.LeftHand &&
3852 part.ParentGroup.RootPart.Shape.State != (byte)AttachmentPoint.RightHand)
3729 { 3853 {
3730 if (part.ParentGroup.RootPart.Shape.State != (byte)AttachmentPoint.LeftHand && 3854 part.Shape.LightEntry = false;
3731 part.ParentGroup.RootPart.Shape.State != (byte)AttachmentPoint.RightHand)
3732 {
3733 part.Shape.LightEntry = false;
3734 }
3735 } 3855 }
3736 } 3856 }
3737 3857 }
3738 #region UpdateFlags to packet type conversion 3858
3739 3859 ++updatesThisCall;
3740 PrimUpdateFlags updateFlags = (PrimUpdateFlags)update.Flags; 3860
3741 3861 #region UpdateFlags to packet type conversion
3742 bool canUseCompressed = true; 3862
3743 bool canUseImproved = true; 3863 PrimUpdateFlags updateFlags = (PrimUpdateFlags)update.Flags;
3744 3864
3745 // Compressed object updates only make sense for LL primitives 3865 bool canUseCompressed = true;
3746 if (!(update.Entity is SceneObjectPart)) 3866 bool canUseImproved = true;
3867
3868 // Compressed object updates only make sense for LL primitives
3869 if (!(update.Entity is SceneObjectPart))
3870 {
3871 canUseCompressed = false;
3872 }
3873
3874 if (updateFlags.HasFlag(PrimUpdateFlags.FullUpdate))
3875 {
3876 canUseCompressed = false;
3877 canUseImproved = false;
3878 }
3879 else
3880 {
3881 if (updateFlags.HasFlag(PrimUpdateFlags.Velocity) ||
3882 updateFlags.HasFlag(PrimUpdateFlags.Acceleration) ||
3883 updateFlags.HasFlag(PrimUpdateFlags.CollisionPlane) ||
3884 updateFlags.HasFlag(PrimUpdateFlags.Joint))
3747 { 3885 {
3748 canUseCompressed = false; 3886 canUseCompressed = false;
3749 } 3887 }
3750 3888
3751 if (updateFlags.HasFlag(PrimUpdateFlags.FullUpdate)) 3889 if (updateFlags.HasFlag(PrimUpdateFlags.PrimFlags) ||
3890 updateFlags.HasFlag(PrimUpdateFlags.ParentID) ||
3891 updateFlags.HasFlag(PrimUpdateFlags.Scale) ||
3892 updateFlags.HasFlag(PrimUpdateFlags.PrimData) ||
3893 updateFlags.HasFlag(PrimUpdateFlags.Text) ||
3894 updateFlags.HasFlag(PrimUpdateFlags.NameValue) ||
3895 updateFlags.HasFlag(PrimUpdateFlags.ExtraData) ||
3896 updateFlags.HasFlag(PrimUpdateFlags.TextureAnim) ||
3897 updateFlags.HasFlag(PrimUpdateFlags.Sound) ||
3898 updateFlags.HasFlag(PrimUpdateFlags.Particles) ||
3899 updateFlags.HasFlag(PrimUpdateFlags.Material) ||
3900 updateFlags.HasFlag(PrimUpdateFlags.ClickAction) ||
3901 updateFlags.HasFlag(PrimUpdateFlags.MediaURL) ||
3902 updateFlags.HasFlag(PrimUpdateFlags.Joint))
3752 { 3903 {
3753 canUseCompressed = false;
3754 canUseImproved = false; 3904 canUseImproved = false;
3755 } 3905 }
3756 else 3906 }
3757 {
3758 if (updateFlags.HasFlag(PrimUpdateFlags.Velocity) ||
3759 updateFlags.HasFlag(PrimUpdateFlags.Acceleration) ||
3760 updateFlags.HasFlag(PrimUpdateFlags.CollisionPlane) ||
3761 updateFlags.HasFlag(PrimUpdateFlags.Joint))
3762 {
3763 canUseCompressed = false;
3764 }
3765
3766 if (updateFlags.HasFlag(PrimUpdateFlags.PrimFlags) ||
3767 updateFlags.HasFlag(PrimUpdateFlags.ParentID) ||
3768 updateFlags.HasFlag(PrimUpdateFlags.Scale) ||
3769 updateFlags.HasFlag(PrimUpdateFlags.PrimData) ||
3770 updateFlags.HasFlag(PrimUpdateFlags.Text) ||
3771 updateFlags.HasFlag(PrimUpdateFlags.NameValue) ||
3772 updateFlags.HasFlag(PrimUpdateFlags.ExtraData) ||
3773 updateFlags.HasFlag(PrimUpdateFlags.TextureAnim) ||
3774 updateFlags.HasFlag(PrimUpdateFlags.Sound) ||
3775 updateFlags.HasFlag(PrimUpdateFlags.Particles) ||
3776 updateFlags.HasFlag(PrimUpdateFlags.Material) ||
3777 updateFlags.HasFlag(PrimUpdateFlags.ClickAction) ||
3778 updateFlags.HasFlag(PrimUpdateFlags.MediaURL) ||
3779 updateFlags.HasFlag(PrimUpdateFlags.Joint))
3780 {
3781 canUseImproved = false;
3782 }
3783 }
3784
3785 #endregion UpdateFlags to packet type conversion
3786
3787 #region Block Construction
3788
3789 // TODO: Remove this once we can build compressed updates
3790 canUseCompressed = false;
3791 3907
3792 if (!canUseImproved && !canUseCompressed) 3908 #endregion UpdateFlags to packet type conversion
3793 {
3794 ObjectUpdatePacket.ObjectDataBlock updateBlock;
3795 3909
3796 if (update.Entity is ScenePresence) 3910 #region Block Construction
3797 {
3798 updateBlock = CreateAvatarUpdateBlock((ScenePresence)update.Entity);
3799 }
3800 else
3801 {
3802 SceneObjectPart part = (SceneObjectPart)update.Entity;
3803 updateBlock = CreatePrimUpdateBlock(part, AgentId);
3804
3805 // If the part has become a private hud since the update was scheduled then we do not
3806 // want to send it to other avatars.
3807 if (part.ParentGroup.IsAttachment
3808 && part.ParentGroup.HasPrivateAttachmentPoint
3809 && part.ParentGroup.AttachedAvatar != AgentId)
3810 continue;
3811
3812 // If the part has since been deleted, then drop the update. In the case of attachments,
3813 // this is to avoid spurious updates to other viewers since post-processing of attachments
3814 // has to change the IsAttachment flag for various reasons (which will end up in a pass
3815 // of the test above).
3816 //
3817 // Actual deletions (kills) happen in another method.
3818 if (part.ParentGroup.IsDeleted)
3819 continue;
3820 }
3821 3911
3822 objectUpdateBlocks.Value.Add(updateBlock); 3912 // TODO: Remove this once we can build compressed updates
3823 objectUpdates.Value.Add(update); 3913 canUseCompressed = false;
3824 }
3825 else if (!canUseImproved)
3826 {
3827 SceneObjectPart part = (SceneObjectPart)update.Entity;
3828 ObjectUpdateCompressedPacket.ObjectDataBlock compressedBlock
3829 = CreateCompressedUpdateBlock(part, updateFlags);
3830
3831 // If the part has since been deleted, then drop the update. In the case of attachments,
3832 // this is to avoid spurious updates to other viewers since post-processing of attachments
3833 // has to change the IsAttachment flag for various reasons (which will end up in a pass
3834 // of the test above).
3835 //
3836 // Actual deletions (kills) happen in another method.
3837 if (part.ParentGroup.IsDeleted)
3838 continue;
3839 3914
3840 compressedUpdateBlocks.Value.Add(compressedBlock); 3915 if (!canUseImproved && !canUseCompressed)
3841 compressedUpdates.Value.Add(update); 3916 {
3917 if (update.Entity is ScenePresence)
3918 {
3919 objectUpdateBlocks.Value.Add(CreateAvatarUpdateBlock((ScenePresence)update.Entity));
3842 } 3920 }
3843 else 3921 else
3844 { 3922 {
3845 if (update.Entity is ScenePresence && ((ScenePresence)update.Entity).UUID == AgentId) 3923 objectUpdateBlocks.Value.Add(CreatePrimUpdateBlock((SceneObjectPart)update.Entity, this.m_agentId));
3846 {
3847 // Self updates go into a special list
3848 terseAgentUpdateBlocks.Value.Add(CreateImprovedTerseBlock(update.Entity, updateFlags.HasFlag(PrimUpdateFlags.Textures)));
3849 terseAgentUpdates.Value.Add(update);
3850 }
3851 else
3852 {
3853 ImprovedTerseObjectUpdatePacket.ObjectDataBlock terseUpdateBlock
3854 = CreateImprovedTerseBlock(update.Entity, updateFlags.HasFlag(PrimUpdateFlags.Textures));
3855
3856 // Everything else goes here
3857 if (update.Entity is SceneObjectPart)
3858 {
3859 SceneObjectPart part = (SceneObjectPart)update.Entity;
3860
3861 // If the part has become a private hud since the update was scheduled then we do not
3862 // want to send it to other avatars.
3863 if (part.ParentGroup.IsAttachment
3864 && part.ParentGroup.HasPrivateAttachmentPoint
3865 && part.ParentGroup.AttachedAvatar != AgentId)
3866 continue;
3867
3868 // If the part has since been deleted, then drop the update. In the case of attachments,
3869 // this is to avoid spurious updates to other viewers since post-processing of attachments
3870 // has to change the IsAttachment flag for various reasons (which will end up in a pass
3871 // of the test above).
3872 //
3873 // Actual deletions (kills) happen in another method.
3874 if (part.ParentGroup.IsDeleted)
3875 continue;
3876 }
3877
3878 terseUpdateBlocks.Value.Add(terseUpdateBlock);
3879 terseUpdates.Value.Add(update);
3880 }
3881 } 3924 }
3925 }
3926 else if (!canUseImproved)
3927 {
3928 compressedUpdateBlocks.Value.Add(CreateCompressedUpdateBlock((SceneObjectPart)update.Entity, updateFlags));
3929 }
3930 else
3931 {
3932 if (update.Entity is ScenePresence && ((ScenePresence)update.Entity).UUID == AgentId)
3933 // Self updates go into a special list
3934 terseAgentUpdateBlocks.Value.Add(CreateImprovedTerseBlock(update.Entity, updateFlags.HasFlag(PrimUpdateFlags.Textures)));
3935 else
3936 // Everything else goes here
3937 terseUpdateBlocks.Value.Add(CreateImprovedTerseBlock(update.Entity, updateFlags.HasFlag(PrimUpdateFlags.Textures)));
3938 }
3882 3939
3883 ++updatesThisCall; 3940 #endregion Block Construction
3941 }
3942
3943 #region Packet Sending
3884 3944
3885 #endregion Block Construction 3945 const float TIME_DILATION = 1.0f;
3886 } 3946 ushort timeDilation = Utils.FloatToUInt16(avgTimeDilation, 0.0f, 1.0f);
3887 3947
3888 #region Packet Sending 3948 if (terseAgentUpdateBlocks.IsValueCreated)
3889 ushort timeDilation = Utils.FloatToUInt16(avgTimeDilation, 0.0f, 1.0f); 3949 {
3950 List<ImprovedTerseObjectUpdatePacket.ObjectDataBlock> blocks = terseAgentUpdateBlocks.Value;
3890 3951
3891 if (terseAgentUpdateBlocks.IsValueCreated) 3952 ImprovedTerseObjectUpdatePacket packet = new ImprovedTerseObjectUpdatePacket();
3892 { 3953 packet.RegionData.RegionHandle = m_scene.RegionInfo.RegionHandle;
3893 List<ImprovedTerseObjectUpdatePacket.ObjectDataBlock> blocks = terseAgentUpdateBlocks.Value; 3954 packet.RegionData.TimeDilation = timeDilation;
3955 packet.ObjectData = new ImprovedTerseObjectUpdatePacket.ObjectDataBlock[blocks.Count];
3894 3956
3895 ImprovedTerseObjectUpdatePacket packet = new ImprovedTerseObjectUpdatePacket(); 3957 for (int i = 0; i < blocks.Count; i++)
3896 packet.RegionData.RegionHandle = m_scene.RegionInfo.RegionHandle; 3958 packet.ObjectData[i] = blocks[i];
3897 packet.RegionData.TimeDilation = timeDilation;
3898 packet.ObjectData = new ImprovedTerseObjectUpdatePacket.ObjectDataBlock[blocks.Count];
3899 3959
3900 for (int i = 0; i < blocks.Count; i++) 3960 OutPacket(packet, ThrottleOutPacketType.Unknown, true);
3901 packet.ObjectData[i] = blocks[i]; 3961 }
3902 // If any of the packets created from this call go unacknowledged, all of the updates will be resent
3903 OutPacket(packet, ThrottleOutPacketType.Unknown, true, delegate(OutgoingPacket oPacket) { ResendPrimUpdates(terseAgentUpdates.Value, oPacket); });
3904 }
3905 3962
3906 if (objectUpdateBlocks.IsValueCreated) 3963 if (objectUpdateBlocks.IsValueCreated)
3907 { 3964 {
3908 List<ObjectUpdatePacket.ObjectDataBlock> blocks = objectUpdateBlocks.Value; 3965 List<ObjectUpdatePacket.ObjectDataBlock> blocks = objectUpdateBlocks.Value;
3909 3966
3910 ObjectUpdatePacket packet = (ObjectUpdatePacket)PacketPool.Instance.GetPacket(PacketType.ObjectUpdate); 3967 ObjectUpdatePacket packet = (ObjectUpdatePacket)PacketPool.Instance.GetPacket(PacketType.ObjectUpdate);
3911 packet.RegionData.RegionHandle = m_scene.RegionInfo.RegionHandle; 3968 packet.RegionData.RegionHandle = m_scene.RegionInfo.RegionHandle;
3912 packet.RegionData.TimeDilation = timeDilation; 3969 packet.RegionData.TimeDilation = timeDilation;
3913 packet.ObjectData = new ObjectUpdatePacket.ObjectDataBlock[blocks.Count]; 3970 packet.ObjectData = new ObjectUpdatePacket.ObjectDataBlock[blocks.Count];
3914 3971
3915 for (int i = 0; i < blocks.Count; i++) 3972 for (int i = 0; i < blocks.Count; i++)
3916 packet.ObjectData[i] = blocks[i]; 3973 packet.ObjectData[i] = blocks[i];
3917 // If any of the packets created from this call go unacknowledged, all of the updates will be resent 3974
3918 OutPacket(packet, ThrottleOutPacketType.Task, true, delegate(OutgoingPacket oPacket) { ResendPrimUpdates(objectUpdates.Value, oPacket); }); 3975 OutPacket(packet, ThrottleOutPacketType.Task, true);
3919 } 3976 }
3920 3977
3921 if (compressedUpdateBlocks.IsValueCreated) 3978 if (compressedUpdateBlocks.IsValueCreated)
3922 { 3979 {
3923 List<ObjectUpdateCompressedPacket.ObjectDataBlock> blocks = compressedUpdateBlocks.Value; 3980 List<ObjectUpdateCompressedPacket.ObjectDataBlock> blocks = compressedUpdateBlocks.Value;
3924 3981
3925 ObjectUpdateCompressedPacket packet = (ObjectUpdateCompressedPacket)PacketPool.Instance.GetPacket(PacketType.ObjectUpdateCompressed); 3982 ObjectUpdateCompressedPacket packet = (ObjectUpdateCompressedPacket)PacketPool.Instance.GetPacket(PacketType.ObjectUpdateCompressed);
3926 packet.RegionData.RegionHandle = m_scene.RegionInfo.RegionHandle; 3983 packet.RegionData.RegionHandle = m_scene.RegionInfo.RegionHandle;
3927 packet.RegionData.TimeDilation = timeDilation; 3984 packet.RegionData.TimeDilation = timeDilation;
3928 packet.ObjectData = new ObjectUpdateCompressedPacket.ObjectDataBlock[blocks.Count]; 3985 packet.ObjectData = new ObjectUpdateCompressedPacket.ObjectDataBlock[blocks.Count];
3929
3930 for (int i = 0; i < blocks.Count; i++)
3931 packet.ObjectData[i] = blocks[i];
3932 // If any of the packets created from this call go unacknowledged, all of the updates will be resent
3933 OutPacket(packet, ThrottleOutPacketType.Task, true, delegate(OutgoingPacket oPacket) { ResendPrimUpdates(compressedUpdates.Value, oPacket); });
3934 }
3935 3986
3936 if (terseUpdateBlocks.IsValueCreated) 3987 for (int i = 0; i < blocks.Count; i++)
3937 { 3988 packet.ObjectData[i] = blocks[i];
3938 List<ImprovedTerseObjectUpdatePacket.ObjectDataBlock> blocks = terseUpdateBlocks.Value; 3989
3939 3990 OutPacket(packet, ThrottleOutPacketType.Task, true);
3940 ImprovedTerseObjectUpdatePacket packet = new ImprovedTerseObjectUpdatePacket(); 3991 }
3941 packet.RegionData.RegionHandle = m_scene.RegionInfo.RegionHandle; 3992
3942 packet.RegionData.TimeDilation = timeDilation; 3993 if (terseUpdateBlocks.IsValueCreated)
3943 packet.ObjectData = new ImprovedTerseObjectUpdatePacket.ObjectDataBlock[blocks.Count]; 3994 {
3944 3995 List<ImprovedTerseObjectUpdatePacket.ObjectDataBlock> blocks = terseUpdateBlocks.Value;
3945 for (int i = 0; i < blocks.Count; i++) 3996
3946 packet.ObjectData[i] = blocks[i]; 3997 ImprovedTerseObjectUpdatePacket packet = new ImprovedTerseObjectUpdatePacket();
3947 // If any of the packets created from this call go unacknowledged, all of the updates will be resent 3998 packet.RegionData.RegionHandle = m_scene.RegionInfo.RegionHandle;
3948 OutPacket(packet, ThrottleOutPacketType.Task, true, delegate(OutgoingPacket oPacket) { ResendPrimUpdates(terseUpdates.Value, oPacket); }); 3999 packet.RegionData.TimeDilation = timeDilation;
3949 } 4000 packet.ObjectData = new ImprovedTerseObjectUpdatePacket.ObjectDataBlock[blocks.Count];
4001
4002 for (int i = 0; i < blocks.Count; i++)
4003 packet.ObjectData[i] = blocks[i];
4004
4005 OutPacket(packet, ThrottleOutPacketType.Task, true);
3950 } 4006 }
3951 4007
3952 #endregion Packet Sending 4008 #endregion Packet Sending
@@ -4239,11 +4295,13 @@ namespace OpenSim.Region.ClientStack.LindenUDP
4239 4295
4240 // Pass in the delegate so that if this packet needs to be resent, we send the current properties 4296 // Pass in the delegate so that if this packet needs to be resent, we send the current properties
4241 // of the object rather than the properties when the packet was created 4297 // of the object rather than the properties when the packet was created
4242 OutPacket(packet, ThrottleOutPacketType.Task, true, 4298 // HACK : Remove intelligent resending until it's fixed in core
4243 delegate(OutgoingPacket oPacket) 4299 //OutPacket(packet, ThrottleOutPacketType.Task, true,
4244 { 4300 // delegate(OutgoingPacket oPacket)
4245 ResendPropertyUpdates(updates, oPacket); 4301 // {
4246 }); 4302 // ResendPropertyUpdates(updates, oPacket);
4303 // });
4304 OutPacket(packet, ThrottleOutPacketType.Task, true);
4247 4305
4248 // pbcnt += blocks.Count; 4306 // pbcnt += blocks.Count;
4249 // ppcnt++; 4307 // ppcnt++;
@@ -4269,11 +4327,13 @@ namespace OpenSim.Region.ClientStack.LindenUDP
4269 // of the object rather than the properties when the packet was created 4327 // of the object rather than the properties when the packet was created
4270 List<ObjectPropertyUpdate> updates = new List<ObjectPropertyUpdate>(); 4328 List<ObjectPropertyUpdate> updates = new List<ObjectPropertyUpdate>();
4271 updates.Add(familyUpdates.Value[i]); 4329 updates.Add(familyUpdates.Value[i]);
4272 OutPacket(packet, ThrottleOutPacketType.Task, true, 4330 // HACK : Remove intelligent resending until it's fixed in core
4273 delegate(OutgoingPacket oPacket) 4331 //OutPacket(packet, ThrottleOutPacketType.Task, true,
4274 { 4332 // delegate(OutgoingPacket oPacket)
4275 ResendPropertyUpdates(updates, oPacket); 4333 // {
4276 }); 4334 // ResendPropertyUpdates(updates, oPacket);
4335 // });
4336 OutPacket(packet, ThrottleOutPacketType.Task, true);
4277 4337
4278 // fpcnt++; 4338 // fpcnt++;
4279 // fbcnt++; 4339 // fbcnt++;
@@ -4422,37 +4482,44 @@ namespace OpenSim.Region.ClientStack.LindenUDP
4422 if (bl[i].BannedUserID == UUID.Zero) 4482 if (bl[i].BannedUserID == UUID.Zero)
4423 continue; 4483 continue;
4424 BannedUsers.Add(bl[i].BannedUserID); 4484 BannedUsers.Add(bl[i].BannedUserID);
4425 }
4426 4485
4427 EstateOwnerMessagePacket packet = new EstateOwnerMessagePacket(); 4486 if (BannedUsers.Count >= 50 || (i == (bl.Length - 1) && BannedUsers.Count > 0))
4428 packet.AgentData.TransactionID = UUID.Random(); 4487 {
4429 packet.AgentData.AgentID = AgentId; 4488 EstateOwnerMessagePacket packet = new EstateOwnerMessagePacket();
4430 packet.AgentData.SessionID = SessionId; 4489 packet.AgentData.TransactionID = UUID.Random();
4431 packet.MethodData.Invoice = invoice; 4490 packet.AgentData.AgentID = AgentId;
4432 packet.MethodData.Method = Utils.StringToBytes("setaccess"); 4491 packet.AgentData.SessionID = SessionId;
4492 packet.MethodData.Invoice = invoice;
4493 packet.MethodData.Method = Utils.StringToBytes("setaccess");
4433 4494
4434 EstateOwnerMessagePacket.ParamListBlock[] returnblock = new EstateOwnerMessagePacket.ParamListBlock[6 + BannedUsers.Count]; 4495 EstateOwnerMessagePacket.ParamListBlock[] returnblock = new EstateOwnerMessagePacket.ParamListBlock[6 + BannedUsers.Count];
4435 4496
4436 for (int i = 0; i < (6 + BannedUsers.Count); i++) 4497 int j;
4437 { 4498 for (j = 0; j < (6 + BannedUsers.Count); j++)
4438 returnblock[i] = new EstateOwnerMessagePacket.ParamListBlock(); 4499 {
4439 } 4500 returnblock[j] = new EstateOwnerMessagePacket.ParamListBlock();
4440 int j = 0; 4501 }
4502 j = 0;
4441 4503
4442 returnblock[j].Parameter = Utils.StringToBytes(estateID.ToString()); j++; 4504 returnblock[j].Parameter = Utils.StringToBytes(estateID.ToString()); j++;
4443 returnblock[j].Parameter = Utils.StringToBytes(((int)Constants.EstateAccessCodex.EstateBans).ToString()); j++; 4505 returnblock[j].Parameter = Utils.StringToBytes(((int)Constants.EstateAccessCodex.EstateBans).ToString()); j++;
4444 returnblock[j].Parameter = Utils.StringToBytes("0"); j++; 4506 returnblock[j].Parameter = Utils.StringToBytes("0"); j++;
4445 returnblock[j].Parameter = Utils.StringToBytes("0"); j++; 4507 returnblock[j].Parameter = Utils.StringToBytes("0"); j++;
4446 returnblock[j].Parameter = Utils.StringToBytes(BannedUsers.Count.ToString()); j++; 4508 returnblock[j].Parameter = Utils.StringToBytes(BannedUsers.Count.ToString()); j++;
4447 returnblock[j].Parameter = Utils.StringToBytes("0"); j++; 4509 returnblock[j].Parameter = Utils.StringToBytes("0"); j++;
4448 4510
4449 foreach (UUID banned in BannedUsers) 4511 foreach (UUID banned in BannedUsers)
4450 { 4512 {
4451 returnblock[j].Parameter = banned.GetBytes(); j++; 4513 returnblock[j].Parameter = banned.GetBytes(); j++;
4514 }
4515 packet.ParamList = returnblock;
4516 packet.Header.Reliable = true;
4517 OutPacket(packet, ThrottleOutPacketType.Task);
4518
4519 BannedUsers.Clear();
4520 }
4452 } 4521 }
4453 packet.ParamList = returnblock; 4522
4454 packet.Header.Reliable = false;
4455 OutPacket(packet, ThrottleOutPacketType.Task);
4456 } 4523 }
4457 4524
4458 public void SendRegionInfoToEstateMenu(RegionInfoForEstateMenuArgs args) 4525 public void SendRegionInfoToEstateMenu(RegionInfoForEstateMenuArgs args)
@@ -4638,7 +4705,10 @@ namespace OpenSim.Region.ClientStack.LindenUDP
4638 4705
4639 if (landData.SimwideArea > 0) 4706 if (landData.SimwideArea > 0)
4640 { 4707 {
4641 int simulatorCapacity = (int)(((float)landData.SimwideArea / 65536.0f) * (float)m_scene.RegionInfo.ObjectCapacity * (float)m_scene.RegionInfo.RegionSettings.ObjectBonus); 4708 int simulatorCapacity = (int)((long)landData.SimwideArea * (long)m_scene.RegionInfo.ObjectCapacity * (long)m_scene.RegionInfo.RegionSettings.ObjectBonus / 65536L);
4709 // Never report more than sim total capacity
4710 if (simulatorCapacity > m_scene.RegionInfo.ObjectCapacity)
4711 simulatorCapacity = m_scene.RegionInfo.ObjectCapacity;
4642 updateMessage.SimWideMaxPrims = simulatorCapacity; 4712 updateMessage.SimWideMaxPrims = simulatorCapacity;
4643 } 4713 }
4644 else 4714 else
@@ -4767,14 +4837,14 @@ namespace OpenSim.Region.ClientStack.LindenUDP
4767 4837
4768 if (notifyCount > 0) 4838 if (notifyCount > 0)
4769 { 4839 {
4770 if (notifyCount > 32) 4840// if (notifyCount > 32)
4771 { 4841// {
4772 m_log.InfoFormat( 4842// m_log.InfoFormat(
4773 "[LAND]: More than {0} avatars own prims on this parcel. Only sending back details of first {0}" 4843// "[LAND]: More than {0} avatars own prims on this parcel. Only sending back details of first {0}"
4774 + " - a developer might want to investigate whether this is a hard limit", 32); 4844// + " - a developer might want to investigate whether this is a hard limit", 32);
4775 4845//
4776 notifyCount = 32; 4846// notifyCount = 32;
4777 } 4847// }
4778 4848
4779 ParcelObjectOwnersReplyPacket.DataBlock[] dataBlock 4849 ParcelObjectOwnersReplyPacket.DataBlock[] dataBlock
4780 = new ParcelObjectOwnersReplyPacket.DataBlock[notifyCount]; 4850 = new ParcelObjectOwnersReplyPacket.DataBlock[notifyCount];
@@ -4829,9 +4899,21 @@ namespace OpenSim.Region.ClientStack.LindenUDP
4829 { 4899 {
4830 ScenePresence presence = (ScenePresence)entity; 4900 ScenePresence presence = (ScenePresence)entity;
4831 4901
4902 position = presence.OffsetPosition;
4903 rotation = presence.Rotation;
4904
4905 if (presence.ParentID != 0)
4906 {
4907 SceneObjectPart part = m_scene.GetSceneObjectPart(presence.ParentID);
4908 if (part != null && part != part.ParentGroup.RootPart)
4909 {
4910 position = part.OffsetPosition + presence.OffsetPosition * part.RotationOffset;
4911 rotation = part.RotationOffset * presence.Rotation;
4912 }
4913 }
4914
4832 attachPoint = 0; 4915 attachPoint = 0;
4833 collisionPlane = presence.CollisionPlane; 4916 collisionPlane = presence.CollisionPlane;
4834 position = presence.OffsetPosition;
4835 velocity = presence.Velocity; 4917 velocity = presence.Velocity;
4836 acceleration = Vector3.Zero; 4918 acceleration = Vector3.Zero;
4837 4919
@@ -4841,7 +4923,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP
4841// acceleration = new Vector3(1, 0, 0); 4923// acceleration = new Vector3(1, 0, 0);
4842 4924
4843 angularVelocity = Vector3.Zero; 4925 angularVelocity = Vector3.Zero;
4844 rotation = presence.Rotation;
4845 4926
4846 if (sendTexture) 4927 if (sendTexture)
4847 textureEntry = presence.Appearance.Texture.GetBytes(); 4928 textureEntry = presence.Appearance.Texture.GetBytes();
@@ -4946,13 +5027,28 @@ namespace OpenSim.Region.ClientStack.LindenUDP
4946 5027
4947 protected ObjectUpdatePacket.ObjectDataBlock CreateAvatarUpdateBlock(ScenePresence data) 5028 protected ObjectUpdatePacket.ObjectDataBlock CreateAvatarUpdateBlock(ScenePresence data)
4948 { 5029 {
5030 Vector3 offsetPosition = data.OffsetPosition;
5031 Quaternion rotation = data.Rotation;
5032 uint parentID = data.ParentID;
5033
5034 if (parentID != 0)
5035 {
5036 SceneObjectPart part = m_scene.GetSceneObjectPart(parentID);
5037 if (part != null && part != part.ParentGroup.RootPart)
5038 {
5039 offsetPosition = part.OffsetPosition + data.OffsetPosition * part.RotationOffset;
5040 rotation = part.RotationOffset * data.Rotation;
5041 parentID = part.ParentGroup.RootPart.LocalId;
5042 }
5043 }
5044
4949 byte[] objectData = new byte[76]; 5045 byte[] objectData = new byte[76];
4950 5046
4951 data.CollisionPlane.ToBytes(objectData, 0); 5047 data.CollisionPlane.ToBytes(objectData, 0);
4952 data.OffsetPosition.ToBytes(objectData, 16); 5048 offsetPosition.ToBytes(objectData, 16);
4953// data.Velocity.ToBytes(objectData, 28); 5049// data.Velocity.ToBytes(objectData, 28);
4954// data.Acceleration.ToBytes(objectData, 40); 5050// data.Acceleration.ToBytes(objectData, 40);
4955 data.Rotation.ToBytes(objectData, 52); 5051 rotation.ToBytes(objectData, 52);
4956 //data.AngularVelocity.ToBytes(objectData, 64); 5052 //data.AngularVelocity.ToBytes(objectData, 64);
4957 5053
4958 ObjectUpdatePacket.ObjectDataBlock update = new ObjectUpdatePacket.ObjectDataBlock(); 5054 ObjectUpdatePacket.ObjectDataBlock update = new ObjectUpdatePacket.ObjectDataBlock();
@@ -4966,7 +5062,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
4966 update.NameValue = Utils.StringToBytes("FirstName STRING RW SV " + data.Firstname + "\nLastName STRING RW SV " + 5062 update.NameValue = Utils.StringToBytes("FirstName STRING RW SV " + data.Firstname + "\nLastName STRING RW SV " +
4967 data.Lastname + "\nTitle STRING RW SV " + data.Grouptitle); 5063 data.Lastname + "\nTitle STRING RW SV " + data.Grouptitle);
4968 update.ObjectData = objectData; 5064 update.ObjectData = objectData;
4969 update.ParentID = data.ParentID; 5065 update.ParentID = parentID;
4970 update.PathCurve = 16; 5066 update.PathCurve = 16;
4971 update.PathScaleX = 100; 5067 update.PathScaleX = 100;
4972 update.PathScaleY = 100; 5068 update.PathScaleY = 100;
@@ -5307,6 +5403,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
5307 AddLocalPacketHandler(PacketType.TransferAbort, HandleTransferAbort, false); 5403 AddLocalPacketHandler(PacketType.TransferAbort, HandleTransferAbort, false);
5308 AddLocalPacketHandler(PacketType.MuteListRequest, HandleMuteListRequest, false); 5404 AddLocalPacketHandler(PacketType.MuteListRequest, HandleMuteListRequest, false);
5309 AddLocalPacketHandler(PacketType.UseCircuitCode, HandleUseCircuitCode); 5405 AddLocalPacketHandler(PacketType.UseCircuitCode, HandleUseCircuitCode);
5406 AddLocalPacketHandler(PacketType.CreateNewOutfitAttachments, HandleCreateNewOutfitAttachments);
5310 AddLocalPacketHandler(PacketType.AgentHeightWidth, HandleAgentHeightWidth, false); 5407 AddLocalPacketHandler(PacketType.AgentHeightWidth, HandleAgentHeightWidth, false);
5311 AddLocalPacketHandler(PacketType.InventoryDescendents, HandleInventoryDescendents); 5408 AddLocalPacketHandler(PacketType.InventoryDescendents, HandleInventoryDescendents);
5312 AddLocalPacketHandler(PacketType.DirPlacesQuery, HandleDirPlacesQuery); 5409 AddLocalPacketHandler(PacketType.DirPlacesQuery, HandleDirPlacesQuery);
@@ -5373,6 +5470,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
5373 AddLocalPacketHandler(PacketType.GroupVoteHistoryRequest, HandleGroupVoteHistoryRequest); 5470 AddLocalPacketHandler(PacketType.GroupVoteHistoryRequest, HandleGroupVoteHistoryRequest);
5374 AddLocalPacketHandler(PacketType.SimWideDeletes, HandleSimWideDeletes); 5471 AddLocalPacketHandler(PacketType.SimWideDeletes, HandleSimWideDeletes);
5375 AddLocalPacketHandler(PacketType.SendPostcard, HandleSendPostcard); 5472 AddLocalPacketHandler(PacketType.SendPostcard, HandleSendPostcard);
5473 AddLocalPacketHandler(PacketType.ChangeInventoryItemFlags, HandleChangeInventoryItemFlags);
5376 5474
5377 AddGenericPacketHandler("autopilot", HandleAutopilot); 5475 AddGenericPacketHandler("autopilot", HandleAutopilot);
5378 } 5476 }
@@ -5408,6 +5506,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
5408 (x.CameraLeftAxis != lastarg.CameraLeftAxis) || 5506 (x.CameraLeftAxis != lastarg.CameraLeftAxis) ||
5409 (x.CameraUpAxis != lastarg.CameraUpAxis) || 5507 (x.CameraUpAxis != lastarg.CameraUpAxis) ||
5410 (x.ControlFlags != lastarg.ControlFlags) || 5508 (x.ControlFlags != lastarg.ControlFlags) ||
5509 (x.ControlFlags != 0) ||
5411 (x.Far != lastarg.Far) || 5510 (x.Far != lastarg.Far) ||
5412 (x.Flags != lastarg.Flags) || 5511 (x.Flags != lastarg.Flags) ||
5413 (x.State != lastarg.State) || 5512 (x.State != lastarg.State) ||
@@ -5785,7 +5884,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
5785 args.Channel = ch; 5884 args.Channel = ch;
5786 args.From = String.Empty; 5885 args.From = String.Empty;
5787 args.Message = Utils.BytesToString(msg); 5886 args.Message = Utils.BytesToString(msg);
5788 args.Type = ChatTypeEnum.Shout; 5887 args.Type = ChatTypeEnum.Region; //Behaviour in SL is that the response can be heard from any distance
5789 args.Position = new Vector3(); 5888 args.Position = new Vector3();
5790 args.Scene = Scene; 5889 args.Scene = Scene;
5791 args.Sender = this; 5890 args.Sender = this;
@@ -6322,7 +6421,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
6322 return true; 6421 return true;
6323 } 6422 }
6324 #endregion 6423 #endregion
6325 6424/*
6326 StartAnim handlerStartAnim = null; 6425 StartAnim handlerStartAnim = null;
6327 StopAnim handlerStopAnim = null; 6426 StopAnim handlerStopAnim = null;
6328 6427
@@ -6346,6 +6445,25 @@ namespace OpenSim.Region.ClientStack.LindenUDP
6346 } 6445 }
6347 } 6446 }
6348 return true; 6447 return true;
6448*/
6449 ChangeAnim handlerChangeAnim = null;
6450
6451 for (int i = 0; i < AgentAni.AnimationList.Length; i++)
6452 {
6453 handlerChangeAnim = OnChangeAnim;
6454 if (handlerChangeAnim != null)
6455 {
6456 handlerChangeAnim(AgentAni.AnimationList[i].AnimID, AgentAni.AnimationList[i].StartAnim, false);
6457 }
6458 }
6459
6460 handlerChangeAnim = OnChangeAnim;
6461 if (handlerChangeAnim != null)
6462 {
6463 handlerChangeAnim(UUID.Zero, false, true);
6464 }
6465
6466 return true;
6349 } 6467 }
6350 6468
6351 private bool HandleAgentRequestSit(IClientAPI sender, Packet Pack) 6469 private bool HandleAgentRequestSit(IClientAPI sender, Packet Pack)
@@ -6971,10 +7089,33 @@ namespace OpenSim.Region.ClientStack.LindenUDP
6971 // 46,47,48 are special positions within the packet 7089 // 46,47,48 are special positions within the packet
6972 // This may change so perhaps we need a better way 7090 // This may change so perhaps we need a better way
6973 // of storing this (OMV.FlagUpdatePacket.UsePhysics,etc?) 7091 // of storing this (OMV.FlagUpdatePacket.UsePhysics,etc?)
6974 bool UsePhysics = (data[46] != 0) ? true : false; 7092 /*
6975 bool IsTemporary = (data[47] != 0) ? true : false; 7093 bool UsePhysics = (data[46] != 0) ? true : false;
6976 bool IsPhantom = (data[48] != 0) ? true : false; 7094 bool IsTemporary = (data[47] != 0) ? true : false;
6977 handlerUpdatePrimFlags(flags.AgentData.ObjectLocalID, UsePhysics, IsTemporary, IsPhantom, this); 7095 bool IsPhantom = (data[48] != 0) ? true : false;
7096 handlerUpdatePrimFlags(flags.AgentData.ObjectLocalID, UsePhysics, IsTemporary, IsPhantom, this);
7097 */
7098 bool UsePhysics = flags.AgentData.UsePhysics;
7099 bool IsPhantom = flags.AgentData.IsPhantom;
7100 bool IsTemporary = flags.AgentData.IsTemporary;
7101 ObjectFlagUpdatePacket.ExtraPhysicsBlock[] blocks = flags.ExtraPhysics;
7102 ExtraPhysicsData physdata = new ExtraPhysicsData();
7103
7104 if (blocks == null || blocks.Length == 0)
7105 {
7106 physdata.PhysShapeType = PhysShapeType.invalid;
7107 }
7108 else
7109 {
7110 ObjectFlagUpdatePacket.ExtraPhysicsBlock phsblock = blocks[0];
7111 physdata.PhysShapeType = (PhysShapeType)phsblock.PhysicsShapeType;
7112 physdata.Bounce = phsblock.Restitution;
7113 physdata.Density = phsblock.Density;
7114 physdata.Friction = phsblock.Friction;
7115 physdata.GravitationModifier = phsblock.GravityMultiplier;
7116 }
7117
7118 handlerUpdatePrimFlags(flags.AgentData.ObjectLocalID, UsePhysics, IsTemporary, IsPhantom, physdata, this);
6978 } 7119 }
6979 return true; 7120 return true;
6980 } 7121 }
@@ -9828,7 +9969,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
9828 handlerUpdateMuteListEntry(this, UpdateMuteListEntry.MuteData.MuteID, 9969 handlerUpdateMuteListEntry(this, UpdateMuteListEntry.MuteData.MuteID,
9829 Utils.BytesToString(UpdateMuteListEntry.MuteData.MuteName), 9970 Utils.BytesToString(UpdateMuteListEntry.MuteData.MuteName),
9830 UpdateMuteListEntry.MuteData.MuteType, 9971 UpdateMuteListEntry.MuteData.MuteType,
9831 UpdateMuteListEntry.AgentData.AgentID); 9972 UpdateMuteListEntry.MuteData.MuteFlags);
9832 return true; 9973 return true;
9833 } 9974 }
9834 return false; 9975 return false;
@@ -9843,8 +9984,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
9843 { 9984 {
9844 handlerRemoveMuteListEntry(this, 9985 handlerRemoveMuteListEntry(this,
9845 RemoveMuteListEntry.MuteData.MuteID, 9986 RemoveMuteListEntry.MuteData.MuteID,
9846 Utils.BytesToString(RemoveMuteListEntry.MuteData.MuteName), 9987 Utils.BytesToString(RemoveMuteListEntry.MuteData.MuteName));
9847 RemoveMuteListEntry.AgentData.AgentID);
9848 return true; 9988 return true;
9849 } 9989 }
9850 return false; 9990 return false;
@@ -9888,10 +10028,55 @@ namespace OpenSim.Region.ClientStack.LindenUDP
9888 return false; 10028 return false;
9889 } 10029 }
9890 10030
10031 private bool HandleChangeInventoryItemFlags(IClientAPI client, Packet packet)
10032 {
10033 ChangeInventoryItemFlagsPacket ChangeInventoryItemFlags =
10034 (ChangeInventoryItemFlagsPacket)packet;
10035 ChangeInventoryItemFlags handlerChangeInventoryItemFlags = OnChangeInventoryItemFlags;
10036 if (handlerChangeInventoryItemFlags != null)
10037 {
10038 foreach(ChangeInventoryItemFlagsPacket.InventoryDataBlock b in ChangeInventoryItemFlags.InventoryData)
10039 handlerChangeInventoryItemFlags(this, b.ItemID, b.Flags);
10040 return true;
10041 }
10042 return false;
10043 }
10044
9891 private bool HandleUseCircuitCode(IClientAPI sender, Packet Pack) 10045 private bool HandleUseCircuitCode(IClientAPI sender, Packet Pack)
9892 { 10046 {
9893 return true; 10047 return true;
9894 } 10048 }
10049
10050 private bool HandleCreateNewOutfitAttachments(IClientAPI sender, Packet Pack)
10051 {
10052 CreateNewOutfitAttachmentsPacket packet = (CreateNewOutfitAttachmentsPacket)Pack;
10053
10054 #region Packet Session and User Check
10055 if (m_checkPackets)
10056 {
10057 if (packet.AgentData.SessionID != SessionId ||
10058 packet.AgentData.AgentID != AgentId)
10059 return true;
10060 }
10061 #endregion
10062 MoveItemsAndLeaveCopy handlerMoveItemsAndLeaveCopy = null;
10063 List<InventoryItemBase> items = new List<InventoryItemBase>();
10064 foreach (CreateNewOutfitAttachmentsPacket.ObjectDataBlock n in packet.ObjectData)
10065 {
10066 InventoryItemBase b = new InventoryItemBase();
10067 b.ID = n.OldItemID;
10068 b.Folder = n.OldFolderID;
10069 items.Add(b);
10070 }
10071
10072 handlerMoveItemsAndLeaveCopy = OnMoveItemsAndLeaveCopy;
10073 if (handlerMoveItemsAndLeaveCopy != null)
10074 {
10075 handlerMoveItemsAndLeaveCopy(this, items, packet.HeaderData.NewFolderID);
10076 }
10077
10078 return true;
10079 }
9895 10080
9896 private bool HandleAgentHeightWidth(IClientAPI sender, Packet Pack) 10081 private bool HandleAgentHeightWidth(IClientAPI sender, Packet Pack)
9897 { 10082 {
@@ -10318,6 +10503,20 @@ namespace OpenSim.Region.ClientStack.LindenUDP
10318 groupProfileReply.GroupData.MaturePublish = d.MaturePublish; 10503 groupProfileReply.GroupData.MaturePublish = d.MaturePublish;
10319 groupProfileReply.GroupData.OwnerRole = d.OwnerRole; 10504 groupProfileReply.GroupData.OwnerRole = d.OwnerRole;
10320 10505
10506 Scene scene = (Scene)m_scene;
10507 if (scene.Permissions.IsGod(sender.AgentId) && (!sender.IsGroupMember(groupProfileRequest.GroupData.GroupID)))
10508 {
10509 ScenePresence p;
10510 if (scene.TryGetScenePresence(sender.AgentId, out p))
10511 {
10512 if (p.GodLevel >= 200)
10513 {
10514 groupProfileReply.GroupData.OpenEnrollment = true;
10515 groupProfileReply.GroupData.MembershipFee = 0;
10516 }
10517 }
10518 }
10519
10321 OutPacket(groupProfileReply, ThrottleOutPacketType.Task); 10520 OutPacket(groupProfileReply, ThrottleOutPacketType.Task);
10322 } 10521 }
10323 return true; 10522 return true;
@@ -10891,11 +11090,16 @@ namespace OpenSim.Region.ClientStack.LindenUDP
10891 11090
10892 StartLure handlerStartLure = OnStartLure; 11091 StartLure handlerStartLure = OnStartLure;
10893 if (handlerStartLure != null) 11092 if (handlerStartLure != null)
10894 handlerStartLure(startLureRequest.Info.LureType, 11093 {
10895 Utils.BytesToString( 11094 for (int i = 0 ; i < startLureRequest.TargetData.Length ; i++)
10896 startLureRequest.Info.Message), 11095 {
10897 startLureRequest.TargetData[0].TargetID, 11096 handlerStartLure(startLureRequest.Info.LureType,
10898 this); 11097 Utils.BytesToString(
11098 startLureRequest.Info.Message),
11099 startLureRequest.TargetData[i].TargetID,
11100 this);
11101 }
11102 }
10899 return true; 11103 return true;
10900 } 11104 }
10901 private bool HandleTeleportLureRequest(IClientAPI sender, Packet Pack) 11105 private bool HandleTeleportLureRequest(IClientAPI sender, Packet Pack)
@@ -11009,10 +11213,11 @@ namespace OpenSim.Region.ClientStack.LindenUDP
11009 } 11213 }
11010 #endregion 11214 #endregion
11011 11215
11012 ClassifiedDelete handlerClassifiedGodDelete = OnClassifiedGodDelete; 11216 ClassifiedGodDelete handlerClassifiedGodDelete = OnClassifiedGodDelete;
11013 if (handlerClassifiedGodDelete != null) 11217 if (handlerClassifiedGodDelete != null)
11014 handlerClassifiedGodDelete( 11218 handlerClassifiedGodDelete(
11015 classifiedGodDelete.Data.ClassifiedID, 11219 classifiedGodDelete.Data.ClassifiedID,
11220 classifiedGodDelete.Data.QueryID,
11016 this); 11221 this);
11017 return true; 11222 return true;
11018 } 11223 }
@@ -11378,209 +11583,147 @@ namespace OpenSim.Region.ClientStack.LindenUDP
11378 } 11583 }
11379 else 11584 else
11380 { 11585 {
11381// m_log.DebugFormat( 11586 ClientChangeObject updatehandler = onClientChangeObject;
11382// "[CLIENT]: Processing block {0} type {1} for {2} {3}",
11383// i, block.Type, part.Name, part.LocalId);
11384 11587
11385// // Do this once since fetch parts creates a new array. 11588 if (updatehandler != null)
11386// SceneObjectPart[] parts = part.ParentGroup.Parts; 11589 {
11387// for (int j = 0; j < parts.Length; j++) 11590 ObjectChangeData udata = new ObjectChangeData();
11388// {
11389// part.StoreUndoState();
11390// parts[j].IgnoreUndoUpdate = true;
11391// }
11392 11591
11393 UpdatePrimGroupRotation handlerUpdatePrimGroupRotation; 11592 /*ubit from ll JIRA:
11593 * 0x01 position
11594 * 0x02 rotation
11595 * 0x04 scale
11596
11597 * 0x08 LINK_SET
11598 * 0x10 UNIFORM for scale
11599 */
11394 11600
11395 switch (block.Type) 11601 // translate to internal changes
11396 { 11602 // not all cases .. just the ones older code did
11397 case 1:
11398 Vector3 pos1 = new Vector3(block.Data, 0);
11399 11603
11400 UpdateVector handlerUpdatePrimSinglePosition = OnUpdatePrimSinglePosition; 11604 switch (block.Type)
11401 if (handlerUpdatePrimSinglePosition != null) 11605 {
11402 { 11606 case 1: //change position sp
11403 // m_log.Debug("new movement position is " + pos.X + " , " + pos.Y + " , " + pos.Z); 11607 udata.position = new Vector3(block.Data, 0);
11404 handlerUpdatePrimSinglePosition(localId, pos1, this);
11405 }
11406 break;
11407 11608
11408 case 2: 11609 udata.change = ObjectChangeType.primP;
11409 Quaternion rot1 = new Quaternion(block.Data, 0, true); 11610 updatehandler(localId, udata, this);
11611 break;
11410 11612
11411 UpdatePrimSingleRotation handlerUpdatePrimSingleRotation = OnUpdatePrimSingleRotation; 11613 case 2: // rotation sp
11412 if (handlerUpdatePrimSingleRotation != null) 11614 udata.rotation = new Quaternion(block.Data, 0, true);
11413 {
11414 // m_log.Info("new tab rotation is " + rot1.X + " , " + rot1.Y + " , " + rot1.Z + " , " + rot1.W);
11415 handlerUpdatePrimSingleRotation(localId, rot1, this);
11416 }
11417 break;
11418 11615
11419 case 3: 11616 udata.change = ObjectChangeType.primR;
11420 Vector3 rotPos = new Vector3(block.Data, 0); 11617 updatehandler(localId, udata, this);
11421 Quaternion rot2 = new Quaternion(block.Data, 12, true); 11618 break;
11422 11619
11423 UpdatePrimSingleRotationPosition handlerUpdatePrimSingleRotationPosition = OnUpdatePrimSingleRotationPosition; 11620 case 3: // position plus rotation
11424 if (handlerUpdatePrimSingleRotationPosition != null) 11621 udata.position = new Vector3(block.Data, 0);
11425 { 11622 udata.rotation = new Quaternion(block.Data, 12, true);
11426 // m_log.Debug("new mouse rotation position is " + rotPos.X + " , " + rotPos.Y + " , " + rotPos.Z);
11427 // m_log.Info("new mouse rotation is " + rot2.X + " , " + rot2.Y + " , " + rot2.Z + " , " + rot2.W);
11428 handlerUpdatePrimSingleRotationPosition(localId, rot2, rotPos, this);
11429 }
11430 break;
11431 11623
11432 case 4: 11624 udata.change = ObjectChangeType.primPR;
11433 case 20: 11625 updatehandler(localId, udata, this);
11434 Vector3 scale4 = new Vector3(block.Data, 0); 11626 break;
11435 11627
11436 UpdateVector handlerUpdatePrimScale = OnUpdatePrimScale; 11628 case 4: // scale sp
11437 if (handlerUpdatePrimScale != null) 11629 udata.scale = new Vector3(block.Data, 0);
11438 { 11630 udata.change = ObjectChangeType.primS;
11439 // m_log.Debug("new scale is " + scale4.X + " , " + scale4.Y + " , " + scale4.Z);
11440 handlerUpdatePrimScale(localId, scale4, this);
11441 }
11442 break;
11443 11631
11444 case 5: 11632 updatehandler(localId, udata, this);
11445 Vector3 scale1 = new Vector3(block.Data, 12); 11633 break;
11446 Vector3 pos11 = new Vector3(block.Data, 0);
11447 11634
11448 handlerUpdatePrimScale = OnUpdatePrimScale; 11635 case 0x14: // uniform scale sp
11449 if (handlerUpdatePrimScale != null) 11636 udata.scale = new Vector3(block.Data, 0);
11450 {
11451 // m_log.Debug("new scale is " + scale.X + " , " + scale.Y + " , " + scale.Z);
11452 handlerUpdatePrimScale(localId, scale1, this);
11453 11637
11454 handlerUpdatePrimSinglePosition = OnUpdatePrimSinglePosition; 11638 udata.change = ObjectChangeType.primUS;
11455 if (handlerUpdatePrimSinglePosition != null) 11639 updatehandler(localId, udata, this);
11456 { 11640 break;
11457 handlerUpdatePrimSinglePosition(localId, pos11, this);
11458 }
11459 }
11460 break;
11461 11641
11462 case 9: 11642 case 5: // scale and position sp
11463 Vector3 pos2 = new Vector3(block.Data, 0); 11643 udata.position = new Vector3(block.Data, 0);
11644 udata.scale = new Vector3(block.Data, 12);
11464 11645
11465 UpdateVector handlerUpdateVector = OnUpdatePrimGroupPosition; 11646 udata.change = ObjectChangeType.primPS;
11647 updatehandler(localId, udata, this);
11648 break;
11466 11649
11467 if (handlerUpdateVector != null) 11650 case 0x15: //uniform scale and position
11468 { 11651 udata.position = new Vector3(block.Data, 0);
11469 handlerUpdateVector(localId, pos2, this); 11652 udata.scale = new Vector3(block.Data, 12);
11470 }
11471 break;
11472 11653
11473 case 10: 11654 udata.change = ObjectChangeType.primPUS;
11474 Quaternion rot3 = new Quaternion(block.Data, 0, true); 11655 updatehandler(localId, udata, this);
11656 break;
11475 11657
11476 UpdatePrimRotation handlerUpdatePrimRotation = OnUpdatePrimGroupRotation; 11658 // now group related (bit 4)
11477 if (handlerUpdatePrimRotation != null) 11659 case 9: //( 8 + 1 )group position
11478 { 11660 udata.position = new Vector3(block.Data, 0);
11479 // Console.WriteLine("new rotation is " + rot3.X + " , " + rot3.Y + " , " + rot3.Z + " , " + rot3.W);
11480 handlerUpdatePrimRotation(localId, rot3, this);
11481 }
11482 break;
11483 11661
11484 case 11: 11662 udata.change = ObjectChangeType.groupP;
11485 Vector3 pos3 = new Vector3(block.Data, 0); 11663 updatehandler(localId, udata, this);
11486 Quaternion rot4 = new Quaternion(block.Data, 12, true); 11664 break;
11487 11665
11488 handlerUpdatePrimGroupRotation = OnUpdatePrimGroupMouseRotation; 11666 case 0x0A: // (8 + 2) group rotation
11489 if (handlerUpdatePrimGroupRotation != null) 11667 udata.rotation = new Quaternion(block.Data, 0, true);
11490 {
11491 // m_log.Debug("new rotation position is " + pos.X + " , " + pos.Y + " , " + pos.Z);
11492 // m_log.Debug("new group mouse rotation is " + rot4.X + " , " + rot4.Y + " , " + rot4.Z + " , " + rot4.W);
11493 handlerUpdatePrimGroupRotation(localId, pos3, rot4, this);
11494 }
11495 break;
11496 case 12:
11497 case 28:
11498 Vector3 scale7 = new Vector3(block.Data, 0);
11499 11668
11500 UpdateVector handlerUpdatePrimGroupScale = OnUpdatePrimGroupScale; 11669 udata.change = ObjectChangeType.groupR;
11501 if (handlerUpdatePrimGroupScale != null) 11670 updatehandler(localId, udata, this);
11502 { 11671 break;
11503 // m_log.Debug("new scale is " + scale7.X + " , " + scale7.Y + " , " + scale7.Z);
11504 handlerUpdatePrimGroupScale(localId, scale7, this);
11505 }
11506 break;
11507 11672
11508 case 13: 11673 case 0x0B: //( 8 + 2 + 1) group rotation and position
11509 Vector3 scale2 = new Vector3(block.Data, 12); 11674 udata.position = new Vector3(block.Data, 0);
11510 Vector3 pos4 = new Vector3(block.Data, 0); 11675 udata.rotation = new Quaternion(block.Data, 12, true);
11511 11676
11512 handlerUpdatePrimScale = OnUpdatePrimScale; 11677 udata.change = ObjectChangeType.groupPR;
11513 if (handlerUpdatePrimScale != null) 11678 updatehandler(localId, udata, this);
11514 { 11679 break;
11515 //m_log.Debug("new scale is " + scale.X + " , " + scale.Y + " , " + scale.Z);
11516 handlerUpdatePrimScale(localId, scale2, this);
11517 11680
11518 // Change the position based on scale (for bug number 246) 11681 case 0x0C: // (8 + 4) group scale
11519 handlerUpdatePrimSinglePosition = OnUpdatePrimSinglePosition; 11682 // only afects root prim and only sent by viewer editor object tab scaling
11520 // m_log.Debug("new movement position is " + pos.X + " , " + pos.Y + " , " + pos.Z); 11683 // mouse edition only allows uniform scaling
11521 if (handlerUpdatePrimSinglePosition != null) 11684 // SL MAY CHANGE THIS in viewers
11522 {
11523 handlerUpdatePrimSinglePosition(localId, pos4, this);
11524 }
11525 }
11526 break;
11527 11685
11528 case 29: 11686 udata.scale = new Vector3(block.Data, 0);
11529 Vector3 scale5 = new Vector3(block.Data, 12);
11530 Vector3 pos5 = new Vector3(block.Data, 0);
11531 11687
11532 handlerUpdatePrimGroupScale = OnUpdatePrimGroupScale; 11688 udata.change = ObjectChangeType.groupS;
11533 if (handlerUpdatePrimGroupScale != null) 11689 updatehandler(localId, udata, this);
11534 {
11535 // m_log.Debug("new scale is " + scale.X + " , " + scale.Y + " , " + scale.Z);
11536 part.StoreUndoState(true);
11537 part.IgnoreUndoUpdate = true;
11538 handlerUpdatePrimGroupScale(localId, scale5, this);
11539 handlerUpdateVector = OnUpdatePrimGroupPosition;
11540 11690
11541 if (handlerUpdateVector != null) 11691 break;
11542 {
11543 handlerUpdateVector(localId, pos5, this);
11544 }
11545 11692
11546 part.IgnoreUndoUpdate = false; 11693 case 0x0D: //(8 + 4 + 1) group scale and position
11547 } 11694 // exception as above
11548 11695
11549 break; 11696 udata.position = new Vector3(block.Data, 0);
11697 udata.scale = new Vector3(block.Data, 12);
11550 11698
11551 case 21: 11699 udata.change = ObjectChangeType.groupPS;
11552 Vector3 scale6 = new Vector3(block.Data, 12); 11700 updatehandler(localId, udata, this);
11553 Vector3 pos6 = new Vector3(block.Data, 0); 11701 break;
11554 11702
11555 handlerUpdatePrimScale = OnUpdatePrimScale; 11703 case 0x1C: // (0x10 + 8 + 4 ) group scale UNIFORM
11556 if (handlerUpdatePrimScale != null) 11704 udata.scale = new Vector3(block.Data, 0);
11557 {
11558 part.StoreUndoState(false);
11559 part.IgnoreUndoUpdate = true;
11560 11705
11561 // m_log.Debug("new scale is " + scale.X + " , " + scale.Y + " , " + scale.Z); 11706 udata.change = ObjectChangeType.groupUS;
11562 handlerUpdatePrimScale(localId, scale6, this); 11707 updatehandler(localId, udata, this);
11563 handlerUpdatePrimSinglePosition = OnUpdatePrimSinglePosition; 11708 break;
11564 if (handlerUpdatePrimSinglePosition != null)
11565 {
11566 handlerUpdatePrimSinglePosition(localId, pos6, this);
11567 }
11568 11709
11569 part.IgnoreUndoUpdate = false; 11710 case 0x1D: // (UNIFORM + GROUP + SCALE + POS)
11570 } 11711 udata.position = new Vector3(block.Data, 0);
11571 break; 11712 udata.scale = new Vector3(block.Data, 12);
11572 11713
11573 default: 11714 udata.change = ObjectChangeType.groupPUS;
11574 m_log.Debug("[CLIENT]: MultipleObjUpdate recieved an unknown packet type: " + (block.Type)); 11715 updatehandler(localId, udata, this);
11575 break; 11716 break;
11717
11718 default:
11719 m_log.Debug("[CLIENT]: MultipleObjUpdate recieved an unknown packet type: " + (block.Type));
11720 break;
11721 }
11576 } 11722 }
11577 11723
11578// for (int j = 0; j < parts.Length; j++)
11579// parts[j].IgnoreUndoUpdate = false;
11580 } 11724 }
11581 } 11725 }
11582 } 11726 }
11583
11584 return true; 11727 return true;
11585 } 11728 }
11586 11729
@@ -12036,7 +12179,10 @@ namespace OpenSim.Region.ClientStack.LindenUDP
12036// "[LLCLIENTVIEW]: Received transfer request for {0} in {1} type {2} by {3}", 12179// "[LLCLIENTVIEW]: Received transfer request for {0} in {1} type {2} by {3}",
12037// requestID, taskID, (SourceType)sourceType, Name); 12180// requestID, taskID, (SourceType)sourceType, Name);
12038 12181
12182
12183 //Note, the bool returned from the below function is useless since it is always false.
12039 m_assetService.Get(requestID.ToString(), transferRequest, AssetReceived); 12184 m_assetService.Get(requestID.ToString(), transferRequest, AssetReceived);
12185
12040 } 12186 }
12041 12187
12042 /// <summary> 12188 /// <summary>
@@ -12102,7 +12248,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP
12102 /// <returns></returns> 12248 /// <returns></returns>
12103 private static int CalculateNumPackets(byte[] data) 12249 private static int CalculateNumPackets(byte[] data)
12104 { 12250 {
12105 const uint m_maxPacketSize = 600; 12251// const uint m_maxPacketSize = 600;
12252 uint m_maxPacketSize = MaxTransferBytesPerPacket;
12106 int numPackets = 1; 12253 int numPackets = 1;
12107 12254
12108 if (data == null) 12255 if (data == null)
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs
index ffa3be4..ae72175 100644
--- a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs
@@ -158,6 +158,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
158 158
159 private int m_defaultRTO = 1000; // 1sec is the recommendation in the RFC 159 private int m_defaultRTO = 1000; // 1sec is the recommendation in the RFC
160 private int m_maxRTO = 60000; 160 private int m_maxRTO = 60000;
161 public bool m_deliverPackets = true;
161 162
162 /// <summary> 163 /// <summary>
163 /// Default constructor 164 /// Default constructor
@@ -439,6 +440,13 @@ namespace OpenSim.Region.ClientStack.LindenUDP
439 if (category >= 0 && category < m_packetOutboxes.Length) 440 if (category >= 0 && category < m_packetOutboxes.Length)
440 { 441 {
441 OpenSim.Framework.LocklessQueue<OutgoingPacket> queue = m_packetOutboxes[category]; 442 OpenSim.Framework.LocklessQueue<OutgoingPacket> queue = m_packetOutboxes[category];
443
444 if (m_deliverPackets == false)
445 {
446 queue.Enqueue(packet);
447 return true;
448 }
449
442 TokenBucket bucket = m_throttleCategories[category]; 450 TokenBucket bucket = m_throttleCategories[category];
443 451
444 // Don't send this packet if there is already a packet waiting in the queue 452 // Don't send this packet if there is already a packet waiting in the queue
@@ -488,7 +496,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP
488 /// <returns>True if any packets were sent, otherwise false</returns> 496 /// <returns>True if any packets were sent, otherwise false</returns>
489 public bool DequeueOutgoing() 497 public bool DequeueOutgoing()
490 { 498 {
491 OutgoingPacket packet; 499 if (m_deliverPackets == false) return false;
500
501 OutgoingPacket packet = null;
492 OpenSim.Framework.LocklessQueue<OutgoingPacket> queue; 502 OpenSim.Framework.LocklessQueue<OutgoingPacket> queue;
493 TokenBucket bucket; 503 TokenBucket bucket;
494 bool packetSent = false; 504 bool packetSent = false;
@@ -520,32 +530,49 @@ namespace OpenSim.Region.ClientStack.LindenUDP
520 // No dequeued packet waiting to be sent, try to pull one off 530 // No dequeued packet waiting to be sent, try to pull one off
521 // this queue 531 // this queue
522 queue = m_packetOutboxes[i]; 532 queue = m_packetOutboxes[i];
523 if (queue.Dequeue(out packet)) 533 if (queue != null)
524 { 534 {
525 // A packet was pulled off the queue. See if we have 535 bool success = false;
526 // enough tokens in the bucket to send it out 536 try
527 if (bucket.RemoveTokens(packet.Buffer.DataLength))
528 { 537 {
529 // Send the packet 538 success = queue.Dequeue(out packet);
530 m_udpServer.SendPacketFinal(packet);
531 packetSent = true;
532 } 539 }
533 else 540 catch
534 { 541 {
535 // Save the dequeued packet for the next iteration 542 m_packetOutboxes[i] = new OpenSim.Framework.LocklessQueue<OutgoingPacket>();
536 m_nextPackets[i] = packet;
537 } 543 }
538 544 if (success)
539 // If the queue is empty after this dequeue, fire the queue 545 {
540 // empty callback now so it has a chance to fill before we 546 // A packet was pulled off the queue. See if we have
541 // get back here 547 // enough tokens in the bucket to send it out
542 if (queue.Count == 0) 548 if (bucket.RemoveTokens(packet.Buffer.DataLength))
549 {
550 // Send the packet
551 m_udpServer.SendPacketFinal(packet);
552 packetSent = true;
553 }
554 else
555 {
556 // Save the dequeued packet for the next iteration
557 m_nextPackets[i] = packet;
558 }
559
560 // If the queue is empty after this dequeue, fire the queue
561 // empty callback now so it has a chance to fill before we
562 // get back here
563 if (queue.Count == 0)
564 emptyCategories |= CategoryToFlag(i);
565 }
566 else
567 {
568 // No packets in this queue. Fire the queue empty callback
569 // if it has not been called recently
543 emptyCategories |= CategoryToFlag(i); 570 emptyCategories |= CategoryToFlag(i);
571 }
544 } 572 }
545 else 573 else
546 { 574 {
547 // No packets in this queue. Fire the queue empty callback 575 m_packetOutboxes[i] = new OpenSim.Framework.LocklessQueue<OutgoingPacket>();
548 // if it has not been called recently
549 emptyCategories |= CategoryToFlag(i); 576 emptyCategories |= CategoryToFlag(i);
550 } 577 }
551 } 578 }
@@ -703,4 +730,4 @@ namespace OpenSim.Region.ClientStack.LindenUDP
703 } 730 }
704 } 731 }
705 } 732 }
706} \ No newline at end of file 733}
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs
index 44c65e0..9cce725 100644
--- a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPServer.cs
@@ -1138,7 +1138,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
1138 if (!client.SceneAgent.IsChildAgent) 1138 if (!client.SceneAgent.IsChildAgent)
1139 client.Kick("Simulator logged you out due to connection timeout"); 1139 client.Kick("Simulator logged you out due to connection timeout");
1140 1140
1141 client.Close(); 1141 Util.FireAndForget(o => client.Close());
1142 } 1142 }
1143 1143
1144 private void IncomingPacketHandler() 1144 private void IncomingPacketHandler()
@@ -1149,6 +1149,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
1149 1149
1150 while (base.IsRunning) 1150 while (base.IsRunning)
1151 { 1151 {
1152 m_scene.ThreadAlive(1);
1152 try 1153 try
1153 { 1154 {
1154 IncomingPacket incomingPacket = null; 1155 IncomingPacket incomingPacket = null;
@@ -1191,6 +1192,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
1191 1192
1192 while (base.IsRunning) 1193 while (base.IsRunning)
1193 { 1194 {
1195 m_scene.ThreadAlive(2);
1194 try 1196 try
1195 { 1197 {
1196 m_packetSent = false; 1198 m_packetSent = false;
@@ -1460,4 +1462,4 @@ namespace OpenSim.Region.ClientStack.LindenUDP
1460 } 1462 }
1461 } 1463 }
1462 } 1464 }
1463} \ No newline at end of file 1465}
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs b/OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs
index 039379d..cfe7c9d 100644
--- a/OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/OpenSimUDPBase.cs
@@ -100,10 +100,6 @@ namespace OpenMetaverse
100 const int SIO_UDP_CONNRESET = -1744830452; 100 const int SIO_UDP_CONNRESET = -1744830452;
101 101
102 IPEndPoint ipep = new IPEndPoint(m_localBindAddress, m_udpPort); 102 IPEndPoint ipep = new IPEndPoint(m_localBindAddress, m_udpPort);
103
104 m_log.DebugFormat(
105 "[UDPBASE]: Binding UDP listener using internal IP address config {0}:{1}",
106 ipep.Address, ipep.Port);
107 103
108 m_udpSocket = new Socket( 104 m_udpSocket = new Socket(
109 AddressFamily.InterNetwork, 105 AddressFamily.InterNetwork,
diff --git a/OpenSim/Region/CoreModules/Agent/AssetTransaction/AssetXferUploader.cs b/OpenSim/Region/CoreModules/Agent/AssetTransaction/AssetXferUploader.cs
index ec4dfd0..4cedfe6 100644
--- a/OpenSim/Region/CoreModules/Agent/AssetTransaction/AssetXferUploader.cs
+++ b/OpenSim/Region/CoreModules/Agent/AssetTransaction/AssetXferUploader.cs
@@ -28,6 +28,7 @@
28using System; 28using System;
29using System.IO; 29using System.IO;
30using System.Reflection; 30using System.Reflection;
31using System.Collections.Generic;
31using log4net; 32using log4net;
32using OpenMetaverse; 33using OpenMetaverse;
33using OpenSim.Framework; 34using OpenSim.Framework;
@@ -38,6 +39,13 @@ namespace OpenSim.Region.CoreModules.Agent.AssetTransaction
38{ 39{
39 public class AssetXferUploader 40 public class AssetXferUploader
40 { 41 {
42 // Viewer's notion of the default texture
43 private List<UUID> defaultIDs = new List<UUID> {
44 new UUID("5748decc-f629-461c-9a36-a35a221fe21f"),
45 new UUID("7ca39b4c-bd19-4699-aff7-f93fd03d3e7b"),
46 new UUID("6522e74d-1660-4e7f-b601-6f48c1659a77"),
47 new UUID("c228d1cf-4b5d-4ba8-84f4-899a0796aa97")
48 };
41 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); 49 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
42 50
43 /// <summary> 51 /// <summary>
@@ -65,6 +73,7 @@ namespace OpenSim.Region.CoreModules.Agent.AssetTransaction
65 private UUID TransactionID = UUID.Zero; 73 private UUID TransactionID = UUID.Zero;
66 private sbyte type = 0; 74 private sbyte type = 0;
67 private byte wearableType = 0; 75 private byte wearableType = 0;
76 private byte[] m_oldData = null;
68 public ulong XferID; 77 public ulong XferID;
69 private Scene m_Scene; 78 private Scene m_Scene;
70 79
@@ -302,6 +311,7 @@ namespace OpenSim.Region.CoreModules.Agent.AssetTransaction
302 311
303 private void DoCreateItem(uint callbackID) 312 private void DoCreateItem(uint callbackID)
304 { 313 {
314 ValidateAssets();
305 m_Scene.AssetService.Store(m_asset); 315 m_Scene.AssetService.Store(m_asset);
306 316
307 InventoryItemBase item = new InventoryItemBase(); 317 InventoryItemBase item = new InventoryItemBase();
@@ -322,12 +332,84 @@ namespace OpenSim.Region.CoreModules.Agent.AssetTransaction
322 item.Flags = (uint) wearableType; 332 item.Flags = (uint) wearableType;
323 item.CreationDate = Util.UnixTimeSinceEpoch(); 333 item.CreationDate = Util.UnixTimeSinceEpoch();
324 334
335 m_log.DebugFormat("[XFER]: Created item {0} with asset {1}",
336 item.ID, item.AssetID);
337
325 if (m_Scene.AddInventoryItem(item)) 338 if (m_Scene.AddInventoryItem(item))
326 ourClient.SendInventoryItemCreateUpdate(item, callbackID); 339 ourClient.SendInventoryItemCreateUpdate(item, callbackID);
327 else 340 else
328 ourClient.SendAlertMessage("Unable to create inventory item"); 341 ourClient.SendAlertMessage("Unable to create inventory item");
329 } 342 }
330 343
344 private void ValidateAssets()
345 {
346 if (m_asset.Type == (sbyte)AssetType.Clothing ||
347 m_asset.Type == (sbyte)AssetType.Bodypart)
348 {
349 string content = System.Text.Encoding.ASCII.GetString(m_asset.Data);
350 string[] lines = content.Split(new char[] {'\n'});
351
352 List<string> validated = new List<string>();
353
354 Dictionary<int, UUID> allowed = ExtractTexturesFromOldData();
355
356 int textures = 0;
357
358 foreach (string line in lines)
359 {
360 try
361 {
362 if (line.StartsWith("textures "))
363 {
364 textures = Convert.ToInt32(line.Substring(9));
365 validated.Add(line);
366 }
367 else if (textures > 0)
368 {
369 string[] parts = line.Split(new char[] {' '});
370
371 UUID tx = new UUID(parts[1]);
372 int id = Convert.ToInt32(parts[0]);
373
374 if (defaultIDs.Contains(tx) || tx == UUID.Zero ||
375 (allowed.ContainsKey(id) && allowed[id] == tx))
376 {
377 validated.Add(parts[0] + " " + tx.ToString());
378 }
379 else
380 {
381 int perms = m_Scene.InventoryService.GetAssetPermissions(ourClient.AgentId, tx);
382 int full = (int)(PermissionMask.Modify | PermissionMask.Transfer | PermissionMask.Copy);
383
384 if ((perms & full) != full)
385 {
386 m_log.ErrorFormat("[ASSET UPLOADER]: REJECTED update with texture {0} from {1} because they do not own the texture", tx, ourClient.AgentId);
387 validated.Add(parts[0] + " " + UUID.Zero.ToString());
388 }
389 else
390 {
391 validated.Add(line);
392 }
393 }
394 textures--;
395 }
396 else
397 {
398 validated.Add(line);
399 }
400 }
401 catch
402 {
403 // If it's malformed, skip it
404 }
405 }
406
407 string final = String.Join("\n", validated.ToArray());
408
409 m_asset.Data = System.Text.Encoding.ASCII.GetBytes(final);
410 }
411 }
412
331 /// <summary> 413 /// <summary>
332 /// Get the asset data uploaded in this transfer. 414 /// Get the asset data uploaded in this transfer.
333 /// </summary> 415 /// </summary>
@@ -336,10 +418,55 @@ namespace OpenSim.Region.CoreModules.Agent.AssetTransaction
336 { 418 {
337 if (m_finished) 419 if (m_finished)
338 { 420 {
421 ValidateAssets();
339 return m_asset; 422 return m_asset;
340 } 423 }
341 424
342 return null; 425 return null;
343 } 426 }
427
428 public void SetOldData(byte[] d)
429 {
430 m_oldData = d;
431 }
432
433 private Dictionary<int,UUID> ExtractTexturesFromOldData()
434 {
435 Dictionary<int,UUID> result = new Dictionary<int,UUID>();
436 if (m_oldData == null)
437 return result;
438
439 string content = System.Text.Encoding.ASCII.GetString(m_oldData);
440 string[] lines = content.Split(new char[] {'\n'});
441
442 int textures = 0;
443
444 foreach (string line in lines)
445 {
446 try
447 {
448 if (line.StartsWith("textures "))
449 {
450 textures = Convert.ToInt32(line.Substring(9));
451 }
452 else if (textures > 0)
453 {
454 string[] parts = line.Split(new char[] {' '});
455
456 UUID tx = new UUID(parts[1]);
457 int id = Convert.ToInt32(parts[0]);
458 result[id] = tx;
459 textures--;
460 }
461 }
462 catch
463 {
464 // If it's malformed, skip it
465 }
466 }
467
468 return result;
469 }
344 } 470 }
345} 471}
472
diff --git a/OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs b/OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs
index fab489d..7d7176f 100644
--- a/OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs
+++ b/OpenSim/Region/CoreModules/Asset/FlotsamAssetCache.cs
@@ -257,57 +257,70 @@ namespace Flotsam.RegionModules.AssetCache
257 257
258 private void UpdateFileCache(string key, AssetBase asset) 258 private void UpdateFileCache(string key, AssetBase asset)
259 { 259 {
260 string filename = GetFileName(asset.ID); 260 // TODO: Spawn this off to some seperate thread to do the actual writing
261 261 if (asset != null)
262 try
263 { 262 {
264 // If the file is already cached just update access time. 263 string filename = GetFileName(key);
265 if (File.Exists(filename)) 264
266 { 265 try
267 lock (m_CurrentlyWriting)
268 {
269 if (!m_CurrentlyWriting.Contains(filename))
270 File.SetLastAccessTime(filename, DateTime.Now);
271 }
272 }
273 else
274 { 266 {
275 // Once we start writing, make sure we flag that we're writing 267 // If the file is already cached, don't cache it, just touch it so access time is updated
276 // that object to the cache so that we don't try to write the 268 if (File.Exists(filename))
277 // same file multiple times.
278 lock (m_CurrentlyWriting)
279 { 269 {
280#if WAIT_ON_INPROGRESS_REQUESTS 270 // We don't really want to know about sharing
281 if (m_CurrentlyWriting.ContainsKey(filename)) 271 // violations here. If the file is locked, then
272 // the other thread has updated the time for us.
273 try
282 { 274 {
283 return; 275 lock (m_CurrentlyWriting)
276 {
277 if (!m_CurrentlyWriting.Contains(filename))
278 File.SetLastAccessTime(filename, DateTime.Now);
279 }
284 } 280 }
285 else 281 catch
286 {
287 m_CurrentlyWriting.Add(filename, new ManualResetEvent(false));
288 }
289
290#else
291 if (m_CurrentlyWriting.Contains(filename))
292 { 282 {
293 return;
294 } 283 }
295 else 284 } else {
285
286 // Once we start writing, make sure we flag that we're writing
287 // that object to the cache so that we don't try to write the
288 // same file multiple times.
289 lock (m_CurrentlyWriting)
296 { 290 {
297 m_CurrentlyWriting.Add(filename); 291#if WAIT_ON_INPROGRESS_REQUESTS
298 } 292 if (m_CurrentlyWriting.ContainsKey(filename))
293 {
294 return;
295 }
296 else
297 {
298 m_CurrentlyWriting.Add(filename, new ManualResetEvent(false));
299 }
300
301#else
302 if (m_CurrentlyWriting.Contains(filename))
303 {
304 return;
305 }
306 else
307 {
308 m_CurrentlyWriting.Add(filename);
309 }
299#endif 310#endif
300 }
301 311
302 Util.FireAndForget( 312 }
303 delegate { WriteFileCache(filename, asset); }); 313
314 Util.FireAndForget(
315 delegate { WriteFileCache(filename, asset); });
316 }
317 }
318 catch (Exception e)
319 {
320 m_log.ErrorFormat(
321 "[FLOTSAM ASSET CACHE]: Failed to update cache for asset {0}. Exception {1} {2}",
322 asset.ID, e.Message, e.StackTrace);
304 } 323 }
305 }
306 catch (Exception e)
307 {
308 m_log.ErrorFormat(
309 "[FLOTSAM ASSET CACHE]: Failed to update cache for asset {0}. Exception {1} {2}",
310 asset.ID, e.Message, e.StackTrace);
311 } 324 }
312 } 325 }
313 326
diff --git a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs
index 2b0e4ab..54cff55 100644
--- a/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs
+++ b/OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs
@@ -28,6 +28,7 @@
28using System; 28using System;
29using System.Collections.Generic; 29using System.Collections.Generic;
30using System.Reflection; 30using System.Reflection;
31using System.Xml;
31using log4net; 32using log4net;
32using Mono.Addins; 33using Mono.Addins;
33using Nini.Config; 34using Nini.Config;
@@ -38,6 +39,7 @@ using OpenSim.Region.Framework;
38using OpenSim.Region.Framework.Interfaces; 39using OpenSim.Region.Framework.Interfaces;
39using OpenSim.Region.Framework.Scenes; 40using OpenSim.Region.Framework.Scenes;
40using OpenSim.Region.Framework.Scenes.Serialization; 41using OpenSim.Region.Framework.Scenes.Serialization;
42using OpenSim.Services.Interfaces;
41 43
42namespace OpenSim.Region.CoreModules.Avatar.Attachments 44namespace OpenSim.Region.CoreModules.Avatar.Attachments
43{ 45{
@@ -117,6 +119,40 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
117 119
118// m_log.DebugFormat("[ATTACHMENTS MODULE]: Rezzing any attachments for {0}", sp.Name); 120// m_log.DebugFormat("[ATTACHMENTS MODULE]: Rezzing any attachments for {0}", sp.Name);
119 121
122 XmlDocument doc = new XmlDocument();
123 string stateData = String.Empty;
124
125 IAttachmentsService attServ = m_scene.RequestModuleInterface<IAttachmentsService>();
126 if (attServ != null)
127 {
128 m_log.DebugFormat("[ATTACHMENT]: Loading attachment data from attachment service");
129 stateData = attServ.Get(sp.UUID.ToString());
130 if (stateData != String.Empty)
131 {
132 try
133 {
134 doc.LoadXml(stateData);
135 }
136 catch { }
137 }
138 }
139
140 Dictionary<UUID, string> itemData = new Dictionary<UUID, string>();
141
142 XmlNodeList nodes = doc.GetElementsByTagName("Attachment");
143 if (nodes.Count > 0)
144 {
145 foreach (XmlNode n in nodes)
146 {
147 XmlElement elem = (XmlElement)n;
148 string itemID = elem.GetAttribute("ItemID");
149 string xml = elem.InnerXml;
150
151 itemData[new UUID(itemID)] = xml;
152 }
153 }
154
155
120 List<AvatarAttachment> attachments = sp.Appearance.GetAttachments(); 156 List<AvatarAttachment> attachments = sp.Appearance.GetAttachments();
121 foreach (AvatarAttachment attach in attachments) 157 foreach (AvatarAttachment attach in attachments)
122 { 158 {
@@ -136,12 +172,22 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
136 172
137 try 173 try
138 { 174 {
175 string xmlData;
176 XmlDocument d = null;
177 UUID asset;
178 if (itemData.TryGetValue(attach.ItemID, out xmlData))
179 {
180 d = new XmlDocument();
181 d.LoadXml(xmlData);
182 m_log.InfoFormat("[ATTACHMENT]: Found saved state for item {0}, loading it", attach.ItemID);
183 }
184
139 // If we're an NPC then skip all the item checks and manipulations since we don't have an 185 // If we're an NPC then skip all the item checks and manipulations since we don't have an
140 // inventory right now. 186 // inventory right now.
141 if (sp.PresenceType == PresenceType.Npc) 187 if (sp.PresenceType == PresenceType.Npc)
142 RezSingleAttachmentFromInventoryInternal(sp, UUID.Zero, attach.AssetID, p); 188 RezSingleAttachmentFromInventoryInternal(sp, UUID.Zero, attach.AssetID, p, null);
143 else 189 else
144 RezSingleAttachmentFromInventory(sp, attach.ItemID, p); 190 RezSingleAttachmentFromInventory(sp, attach.ItemID, p, true, d);
145 } 191 }
146 catch (Exception e) 192 catch (Exception e)
147 { 193 {
@@ -194,7 +240,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
194 sp.ClearAttachments(); 240 sp.ClearAttachments();
195 } 241 }
196 242
197 public bool AttachObject(IScenePresence sp, SceneObjectGroup group, uint attachmentPt, bool silent) 243 public bool AttachObject(IScenePresence sp, SceneObjectGroup group, uint attachmentPt, bool silent, bool useAttachData)
198 { 244 {
199 lock (sp.AttachmentsSyncLock) 245 lock (sp.AttachmentsSyncLock)
200 { 246 {
@@ -240,9 +286,27 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
240 attachPos = Vector3.Zero; 286 attachPos = Vector3.Zero;
241 } 287 }
242 288
289 if (useAttachData)
290 {
291 group.RootPart.RotationOffset = group.RootPart.AttachRotation;
292 attachPos = group.RootPart.AttachOffset;
293 if (attachmentPt == 0)
294 {
295 attachmentPt = group.RootPart.AttachPoint;
296 if (attachmentPt == 0)
297 {
298 attachmentPt = (uint)AttachmentPoint.LeftHand;
299 attachPos = Vector3.Zero;
300 }
301 }
302 else if (group.RootPart.AttachPoint != attachmentPt)
303 {
304 attachPos = Vector3.Zero;
305 }
306 }
243 group.AttachmentPoint = attachmentPt; 307 group.AttachmentPoint = attachmentPt;
244 group.AbsolutePosition = attachPos; 308 group.AbsolutePosition = attachPos;
245 309
246 // We also don't want to do any of the inventory operations for an NPC. 310 // We also don't want to do any of the inventory operations for an NPC.
247 if (sp.PresenceType != PresenceType.Npc) 311 if (sp.PresenceType != PresenceType.Npc)
248 { 312 {
@@ -277,6 +341,11 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
277 } 341 }
278 342
279 public ISceneEntity RezSingleAttachmentFromInventory(IScenePresence sp, UUID itemID, uint AttachmentPt) 343 public ISceneEntity RezSingleAttachmentFromInventory(IScenePresence sp, UUID itemID, uint AttachmentPt)
344 {
345 return RezSingleAttachmentFromInventory(sp, itemID, AttachmentPt, true, null);
346 }
347
348 public ISceneEntity RezSingleAttachmentFromInventory(IScenePresence sp, UUID itemID, uint AttachmentPt, bool updateInventoryStatus, XmlDocument doc)
280 { 349 {
281 if (!Enabled) 350 if (!Enabled)
282 return null; 351 return null;
@@ -315,7 +384,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
315 return null; 384 return null;
316 } 385 }
317 386
318 SceneObjectGroup att = RezSingleAttachmentFromInventoryInternal(sp, itemID, UUID.Zero, AttachmentPt); 387 SceneObjectGroup att = RezSingleAttachmentFromInventoryInternal(sp, itemID, UUID.Zero, AttachmentPt, doc);
319 388
320 if (att == null) 389 if (att == null)
321 DetachSingleAttachmentToInv(sp, itemID); 390 DetachSingleAttachmentToInv(sp, itemID);
@@ -379,7 +448,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
379 so.AttachedAvatar = UUID.Zero; 448 so.AttachedAvatar = UUID.Zero;
380 rootPart.SetParentLocalId(0); 449 rootPart.SetParentLocalId(0);
381 so.ClearPartAttachmentData(); 450 so.ClearPartAttachmentData();
382 rootPart.ApplyPhysics(rootPart.GetEffectiveObjectFlags(), rootPart.VolumeDetectActive); 451 rootPart.ApplyPhysics(rootPart.GetEffectiveObjectFlags(), rootPart.VolumeDetectActive,false);
383 so.HasGroupChanged = true; 452 so.HasGroupChanged = true;
384 rootPart.Rezzed = DateTime.Now; 453 rootPart.Rezzed = DateTime.Now;
385 rootPart.RemFlag(PrimFlags.TemporaryOnRez); 454 rootPart.RemFlag(PrimFlags.TemporaryOnRez);
@@ -600,16 +669,79 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
600 // "[ATTACHMENTS MODULE]: Called AddSceneObjectAsAttachment for object {0} {1} for {2}", 669 // "[ATTACHMENTS MODULE]: Called AddSceneObjectAsAttachment for object {0} {1} for {2}",
601 // grp.Name, grp.LocalId, remoteClient.Name); 670 // grp.Name, grp.LocalId, remoteClient.Name);
602 671
603 InventoryItemBase newItem = m_invAccessModule.CopyToInventory( 672// Vector3 inventoryStoredPosition = new Vector3
604 DeRezAction.TakeCopy, 673// (((grp.AbsolutePosition.X > (int)Constants.RegionSize)
605 m_scene.InventoryService.GetFolderForType(sp.UUID, AssetType.Object).ID, 674// ? (float)Constants.RegionSize - 6
606 new List<SceneObjectGroup> { grp }, 675// : grp.AbsolutePosition.X)
607 sp.ControllingClient, true)[0]; 676// ,
677// (grp.AbsolutePosition.Y > (int)Constants.RegionSize)
678// ? (float)Constants.RegionSize - 6
679// : grp.AbsolutePosition.Y,
680// grp.AbsolutePosition.Z);
681//
682// Vector3 originalPosition = grp.AbsolutePosition;
683//
684// grp.AbsolutePosition = inventoryStoredPosition;
685
686 // If we're being called from a script, then trying to serialize that same script's state will not complete
687 // in any reasonable time period. Therefore, we'll avoid it. The worst that can happen is that if
688 // the client/server crashes rather than logging out normally, the attachment's scripts will resume
689 // without state on relog. Arguably, this is what we want anyway.
690 string sceneObjectXml = SceneObjectSerializer.ToOriginalXmlFormat(grp, false);
691
692// grp.AbsolutePosition = originalPosition;
693
694 AssetBase asset = m_scene.CreateAsset(
695 grp.GetPartName(grp.LocalId),
696 grp.GetPartDescription(grp.LocalId),
697 (sbyte)AssetType.Object,
698 Utils.StringToBytes(sceneObjectXml),
699 sp.UUID);
700
701 m_scene.AssetService.Store(asset);
702
703 InventoryItemBase item = new InventoryItemBase();
704 item.CreatorId = grp.RootPart.CreatorID.ToString();
705 item.CreatorData = grp.RootPart.CreatorData;
706 item.Owner = sp.UUID;
707 item.ID = UUID.Random();
708 item.AssetID = asset.FullID;
709 item.Description = asset.Description;
710 item.Name = asset.Name;
711 item.AssetType = asset.Type;
712 item.InvType = (int)InventoryType.Object;
713
714 InventoryFolderBase folder = m_scene.InventoryService.GetFolderForType(sp.UUID, AssetType.Object);
715 if (folder != null)
716 item.Folder = folder.ID;
717 else // oopsies
718 item.Folder = UUID.Zero;
719
720 // Nix the special bits we used to use for slam and the folded perms
721 uint allowablePermissionsMask = (uint)(PermissionMask.Copy | PermissionMask.Transfer | PermissionMask.Modify | PermissionMask.Move);
722
723 if ((sp.UUID != grp.RootPart.OwnerID) && m_scene.Permissions.PropagatePermissions())
724 {
725 item.BasePermissions = grp.RootPart.BaseMask & grp.RootPart.NextOwnerMask & allowablePermissionsMask;
726 item.CurrentPermissions = grp.RootPart.BaseMask & grp.RootPart.NextOwnerMask & allowablePermissionsMask;
727 item.NextPermissions = grp.RootPart.NextOwnerMask & allowablePermissionsMask;
728 item.EveryOnePermissions = grp.RootPart.EveryoneMask & grp.RootPart.NextOwnerMask & allowablePermissionsMask;
729 item.GroupPermissions = grp.RootPart.GroupMask & grp.RootPart.NextOwnerMask & allowablePermissionsMask;
730 }
731 else
732 {
733 item.BasePermissions = grp.RootPart.BaseMask & allowablePermissionsMask;
734 item.CurrentPermissions = grp.RootPart.OwnerMask & allowablePermissionsMask;
735 item.NextPermissions = grp.RootPart.NextOwnerMask & allowablePermissionsMask;
736 item.EveryOnePermissions = grp.RootPart.EveryoneMask & allowablePermissionsMask;
737 item.GroupPermissions = grp.RootPart.GroupMask & allowablePermissionsMask;
738 }
739 item.CreationDate = Util.UnixTimeSinceEpoch();
608 740
609 // sets itemID so client can show item as 'attached' in inventory 741 // sets itemID so client can show item as 'attached' in inventory
610 grp.FromItemID = newItem.ID; 742 grp.FromItemID = item.ID;
611 743
612 return newItem; 744 return item;
613 } 745 }
614 746
615 // What makes this method odd and unique is it tries to detach using an UUID.... Yay for standards. 747 // What makes this method odd and unique is it tries to detach using an UUID.... Yay for standards.
@@ -654,8 +786,8 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
654 } 786 }
655 } 787 }
656 788
657 private SceneObjectGroup RezSingleAttachmentFromInventoryInternal( 789 protected SceneObjectGroup RezSingleAttachmentFromInventoryInternal(
658 IScenePresence sp, UUID itemID, UUID assetID, uint attachmentPt) 790 IScenePresence sp, UUID itemID, UUID assetID, uint attachmentPt, XmlDocument doc)
659 { 791 {
660 if (m_invAccessModule == null) 792 if (m_invAccessModule == null)
661 return null; 793 return null;
@@ -673,10 +805,10 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
673 null, assetID, Vector3.Zero, Vector3.Zero, UUID.Zero, (byte)1, true, 805 null, assetID, Vector3.Zero, Vector3.Zero, UUID.Zero, (byte)1, true,
674 false, false, sp.UUID, true); 806 false, false, sp.UUID, true);
675 807
676 // m_log.DebugFormat( 808// m_log.DebugFormat(
677 // "[ATTACHMENTS MODULE]: Retrieved single object {0} for attachment to {1} on point {2}", 809// "[ATTACHMENTS MODULE]: Retrieved single object {0} for attachment to {1} on point {2}",
678 // objatt.Name, remoteClient.Name, AttachmentPt); 810// objatt.Name, remoteClient.Name, AttachmentPt);
679 811
680 if (objatt != null) 812 if (objatt != null)
681 { 813 {
682 // HasGroupChanged is being set from within RezObject. Ideally it would be set by the caller. 814 // HasGroupChanged is being set from within RezObject. Ideally it would be set by the caller.
@@ -688,7 +820,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
688 // This will throw if the attachment fails 820 // This will throw if the attachment fails
689 try 821 try
690 { 822 {
691 AttachObject(sp, objatt, attachmentPt, false); 823 AttachObject(sp, objatt, attachmentPt, false, false);
692 } 824 }
693 catch (Exception e) 825 catch (Exception e)
694 { 826 {
@@ -701,10 +833,16 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
701 m_scene.DeleteSceneObject(objatt, false); 833 m_scene.DeleteSceneObject(objatt, false);
702 return null; 834 return null;
703 } 835 }
704 836
705 if (tainted) 837 if (tainted)
706 objatt.HasGroupChanged = true; 838 objatt.HasGroupChanged = true;
707 839
840 if (doc != null)
841 {
842 objatt.LoadScriptState(doc);
843 objatt.ResetOwnerChangeFlag();
844 }
845
708 // Fire after attach, so we don't get messy perms dialogs 846 // Fire after attach, so we don't get messy perms dialogs
709 // 4 == AttachedRez 847 // 4 == AttachedRez
710 objatt.CreateScriptInstances(0, true, m_scene.DefaultScriptEngine, 4); 848 objatt.CreateScriptInstances(0, true, m_scene.DefaultScriptEngine, 4);
@@ -722,7 +860,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
722 itemID, sp.Name, attachmentPt); 860 itemID, sp.Name, attachmentPt);
723 } 861 }
724 } 862 }
725 863
726 return null; 864 return null;
727 } 865 }
728 866
@@ -836,7 +974,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments
836 AttachmentPt &= 0x7f; 974 AttachmentPt &= 0x7f;
837 975
838 // Calls attach with a Zero position 976 // Calls attach with a Zero position
839 if (AttachObject(sp, part.ParentGroup, AttachmentPt, false)) 977 if (AttachObject(sp, part.ParentGroup, AttachmentPt, false, true))
840 { 978 {
841// m_log.Debug( 979// m_log.Debug(
842// "[ATTACHMENTS MODULE]: Saving avatar attachment. AgentID: " + remoteClient.AgentId 980// "[ATTACHMENTS MODULE]: Saving avatar attachment. AgentID: " + remoteClient.AgentId
diff --git a/OpenSim/Region/CoreModules/Avatar/Attachments/Tests/AttachmentsModuleTests.cs b/OpenSim/Region/CoreModules/Avatar/Attachments/Tests/AttachmentsModuleTests.cs
index 8f4a807..8969006 100644
--- a/OpenSim/Region/CoreModules/Avatar/Attachments/Tests/AttachmentsModuleTests.cs
+++ b/OpenSim/Region/CoreModules/Avatar/Attachments/Tests/AttachmentsModuleTests.cs
@@ -137,7 +137,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments.Tests
137 137
138 SceneObjectGroup so = SceneHelpers.AddSceneObject(scene, attName, m_presence.UUID).ParentGroup; 138 SceneObjectGroup so = SceneHelpers.AddSceneObject(scene, attName, m_presence.UUID).ParentGroup;
139 139
140 m_attMod.AttachObject(m_presence, so, (uint)AttachmentPoint.Chest, false); 140 m_attMod.AttachObject(m_presence, so, (uint)AttachmentPoint.Chest, false, false);
141 141
142 // Check status on scene presence 142 // Check status on scene presence
143 Assert.That(m_presence.HasAttachments(), Is.True); 143 Assert.That(m_presence.HasAttachments(), Is.True);
@@ -355,4 +355,4 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments.Tests
355// Assert.That(presence.HasAttachments(), Is.True, "Presence has not received new objects"); 355// Assert.That(presence.HasAttachments(), Is.True, "Presence has not received new objects");
356// } 356// }
357 } 357 }
358} \ No newline at end of file 358}
diff --git a/OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs b/OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs
index 705233c..875c073 100644
--- a/OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs
+++ b/OpenSim/Region/CoreModules/Avatar/AvatarFactory/AvatarFactoryModule.cs
@@ -564,12 +564,17 @@ namespace OpenSim.Region.CoreModules.Avatar.AvatarFactory
564 /// <param name="client"></param> 564 /// <param name="client"></param>
565 private void Client_OnRequestWearables(IClientAPI client) 565 private void Client_OnRequestWearables(IClientAPI client)
566 { 566 {
567 // m_log.DebugFormat("[AVFACTORY]: Client_OnRequestWearables called for {0} ({1})", client.Name, client.AgentId); 567 Util.FireAndForget(delegate(object x)
568 ScenePresence sp = m_scene.GetScenePresence(client.AgentId); 568 {
569 if (sp != null) 569 Thread.Sleep(4000);
570 client.SendWearables(sp.Appearance.Wearables, sp.Appearance.Serial++); 570
571 else 571 // m_log.DebugFormat("[AVFACTORY]: Client_OnRequestWearables called for {0} ({1})", client.Name, client.AgentId);
572 m_log.WarnFormat("[AVFACTORY]: Client_OnRequestWearables unable to find presence for {0}", client.AgentId); 572 ScenePresence sp = m_scene.GetScenePresence(client.AgentId);
573 if (sp != null)
574 client.SendWearables(sp.Appearance.Wearables, sp.Appearance.Serial++);
575 else
576 m_log.WarnFormat("[AVFACTORY]: Client_OnRequestWearables unable to find presence for {0}", client.AgentId);
577 });
573 } 578 }
574 579
575 /// <summary> 580 /// <summary>
diff --git a/OpenSim/Region/CoreModules/Avatar/Chat/ChatModule.cs b/OpenSim/Region/CoreModules/Avatar/Chat/ChatModule.cs
index e4452fb..6ffc7e6 100644
--- a/OpenSim/Region/CoreModules/Avatar/Chat/ChatModule.cs
+++ b/OpenSim/Region/CoreModules/Avatar/Chat/ChatModule.cs
@@ -49,7 +49,8 @@ namespace OpenSim.Region.CoreModules.Avatar.Chat
49 private int m_shoutdistance = 100; 49 private int m_shoutdistance = 100;
50 private int m_whisperdistance = 10; 50 private int m_whisperdistance = 10;
51 private List<Scene> m_scenes = new List<Scene>(); 51 private List<Scene> m_scenes = new List<Scene>();
52 52 private List<string> FreezeCache = new List<string>();
53 private string m_adminPrefix = "";
53 internal object m_syncy = new object(); 54 internal object m_syncy = new object();
54 55
55 internal IConfig m_config; 56 internal IConfig m_config;
@@ -76,6 +77,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Chat
76 m_whisperdistance = config.Configs["Chat"].GetInt("whisper_distance", m_whisperdistance); 77 m_whisperdistance = config.Configs["Chat"].GetInt("whisper_distance", m_whisperdistance);
77 m_saydistance = config.Configs["Chat"].GetInt("say_distance", m_saydistance); 78 m_saydistance = config.Configs["Chat"].GetInt("say_distance", m_saydistance);
78 m_shoutdistance = config.Configs["Chat"].GetInt("shout_distance", m_shoutdistance); 79 m_shoutdistance = config.Configs["Chat"].GetInt("shout_distance", m_shoutdistance);
80 m_adminPrefix = config.Configs["Chat"].GetString("admin_prefix", "");
79 } 81 }
80 82
81 public virtual void AddRegion(Scene scene) 83 public virtual void AddRegion(Scene scene)
@@ -171,7 +173,15 @@ namespace OpenSim.Region.CoreModules.Avatar.Chat
171 return; 173 return;
172 } 174 }
173 175
174 DeliverChatToAvatars(ChatSourceType.Agent, c); 176 if (FreezeCache.Contains(c.Sender.AgentId.ToString()))
177 {
178 if (c.Type != ChatTypeEnum.StartTyping || c.Type != ChatTypeEnum.StopTyping)
179 c.Sender.SendAgentAlertMessage("You may not talk as you are frozen.", false);
180 }
181 else
182 {
183 DeliverChatToAvatars(ChatSourceType.Agent, c);
184 }
175 } 185 }
176 186
177 public virtual void OnChatFromWorld(Object sender, OSChatMessage c) 187 public virtual void OnChatFromWorld(Object sender, OSChatMessage c)
@@ -185,6 +195,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Chat
185 protected virtual void DeliverChatToAvatars(ChatSourceType sourceType, OSChatMessage c) 195 protected virtual void DeliverChatToAvatars(ChatSourceType sourceType, OSChatMessage c)
186 { 196 {
187 string fromName = c.From; 197 string fromName = c.From;
198 string fromNamePrefix = "";
188 UUID fromID = UUID.Zero; 199 UUID fromID = UUID.Zero;
189 UUID targetID = c.TargetUUID; 200 UUID targetID = c.TargetUUID;
190 string message = c.Message; 201 string message = c.Message;
@@ -208,7 +219,10 @@ namespace OpenSim.Region.CoreModules.Avatar.Chat
208 fromPos = avatar.AbsolutePosition; 219 fromPos = avatar.AbsolutePosition;
209 fromName = avatar.Name; 220 fromName = avatar.Name;
210 fromID = c.Sender.AgentId; 221 fromID = c.Sender.AgentId;
211 222 if (avatar.GodLevel >= 200)
223 {
224 fromNamePrefix = m_adminPrefix;
225 }
212 break; 226 break;
213 227
214 case ChatSourceType.Object: 228 case ChatSourceType.Object:
@@ -248,8 +262,19 @@ namespace OpenSim.Region.CoreModules.Avatar.Chat
248 ScenePresence presence = s.GetScenePresence(targetID); 262 ScenePresence presence = s.GetScenePresence(targetID);
249 if (presence != null && !presence.IsChildAgent) 263 if (presence != null && !presence.IsChildAgent)
250 { 264 {
251 if (TrySendChatMessage(presence, fromPos, regionPos, fromID, fromName, ChatTypeEnum.Say, message, sourceType, true)) 265 ILandObject Presencecheck = s.LandChannel.GetLandObject(presence.AbsolutePosition.X, presence.AbsolutePosition.Y);
252 receiverIDs.Add(presence.UUID); 266 if (Presencecheck != null)
267 {
268 // This will pass all chat from objects. Not
269 // perfect, but it will do. For now. Better
270 // than the prior behavior of muting all
271 // objects on a parcel with access restrictions
272 if (c.Sender == null || Presencecheck.IsEitherBannedOrRestricted(c.Sender.AgentId) != true)
273 {
274 if (TrySendChatMessage(presence, fromPos, regionPos, fromID, fromNamePrefix + fromName, c.Type, message, sourceType, false))
275 receiverIDs.Add(presence.UUID);
276 }
277 }
253 } 278 }
254 } 279 }
255 } 280 }
@@ -293,26 +318,29 @@ namespace OpenSim.Region.CoreModules.Avatar.Chat
293 } 318 }
294 319
295 // m_log.DebugFormat("[CHAT] Broadcast: fromID {0} fromName {1}, cType {2}, sType {3}", fromID, fromName, cType, sourceType); 320 // m_log.DebugFormat("[CHAT] Broadcast: fromID {0} fromName {1}, cType {2}, sType {3}", fromID, fromName, cType, sourceType);
296
297 HashSet<UUID> receiverIDs = new HashSet<UUID>(); 321 HashSet<UUID> receiverIDs = new HashSet<UUID>();
298 322
299 ((Scene)c.Scene).ForEachRootClient( 323 if (c.Scene != null)
300 delegate(IClientAPI client) 324 {
301 { 325 ((Scene)c.Scene).ForEachRootClient
302 // don't forward SayOwner chat from objects to 326 (
303 // non-owner agents 327 delegate(IClientAPI client)
304 if ((c.Type == ChatTypeEnum.Owner) && 328 {
305 (null != c.SenderObject) && 329 // don't forward SayOwner chat from objects to
306 (((SceneObjectPart)c.SenderObject).OwnerID != client.AgentId)) 330 // non-owner agents
307 return; 331 if ((c.Type == ChatTypeEnum.Owner) &&
308 332 (null != c.SenderObject) &&
309 client.SendChatMessage(c.Message, (byte)cType, CenterOfRegion, fromName, fromID, 333 (((SceneObjectPart)c.SenderObject).OwnerID != client.AgentId))
310 (byte)sourceType, (byte)ChatAudibleLevel.Fully); 334 return;
311 receiverIDs.Add(client.AgentId); 335
312 }); 336 client.SendChatMessage(c.Message, (byte)cType, CenterOfRegion, fromName, fromID,
313 337 (byte)sourceType, (byte)ChatAudibleLevel.Fully);
314 (c.Scene as Scene).EventManager.TriggerOnChatToClients( 338 receiverIDs.Add(client.AgentId);
315 fromID, receiverIDs, c.Message, cType, CenterOfRegion, fromName, sourceType, ChatAudibleLevel.Fully); 339 }
340 );
341 (c.Scene as Scene).EventManager.TriggerOnChatToClients(
342 fromID, receiverIDs, c.Message, cType, CenterOfRegion, fromName, sourceType, ChatAudibleLevel.Fully);
343 }
316 } 344 }
317 345
318 /// <summary> 346 /// <summary>
@@ -358,5 +386,35 @@ namespace OpenSim.Region.CoreModules.Avatar.Chat
358 386
359 return true; 387 return true;
360 } 388 }
389
390 Dictionary<UUID, System.Threading.Timer> Timers = new Dictionary<UUID, System.Threading.Timer>();
391 public void ParcelFreezeUser(IClientAPI client, UUID parcelowner, uint flags, UUID target)
392 {
393 System.Threading.Timer Timer;
394 if (flags == 0)
395 {
396 FreezeCache.Add(target.ToString());
397 System.Threading.TimerCallback timeCB = new System.Threading.TimerCallback(OnEndParcelFrozen);
398 Timer = new System.Threading.Timer(timeCB, target, 30000, 0);
399 Timers.Add(target, Timer);
400 }
401 else
402 {
403 FreezeCache.Remove(target.ToString());
404 Timers.TryGetValue(target, out Timer);
405 Timers.Remove(target);
406 Timer.Dispose();
407 }
408 }
409
410 private void OnEndParcelFrozen(object avatar)
411 {
412 UUID target = (UUID)avatar;
413 FreezeCache.Remove(target.ToString());
414 System.Threading.Timer Timer;
415 Timers.TryGetValue(target, out Timer);
416 Timers.Remove(target);
417 Timer.Dispose();
418 }
361 } 419 }
362} 420}
diff --git a/OpenSim/Region/CoreModules/Avatar/Dialog/DialogModule.cs b/OpenSim/Region/CoreModules/Avatar/Dialog/DialogModule.cs
index 325067c..3c294bb 100644
--- a/OpenSim/Region/CoreModules/Avatar/Dialog/DialogModule.cs
+++ b/OpenSim/Region/CoreModules/Avatar/Dialog/DialogModule.cs
@@ -216,4 +216,4 @@ namespace OpenSim.Region.CoreModules.Avatar.Dialog
216 return result; 216 return result;
217 } 217 }
218 } 218 }
219} \ No newline at end of file 219}
diff --git a/OpenSim/Region/CoreModules/Avatar/Gods/GodsModule.cs b/OpenSim/Region/CoreModules/Avatar/Gods/GodsModule.cs
index 2e3312f..1492302 100644
--- a/OpenSim/Region/CoreModules/Avatar/Gods/GodsModule.cs
+++ b/OpenSim/Region/CoreModules/Avatar/Gods/GodsModule.cs
@@ -31,16 +31,40 @@ using OpenMetaverse;
31using OpenSim.Framework; 31using OpenSim.Framework;
32using OpenSim.Region.Framework.Scenes; 32using OpenSim.Region.Framework.Scenes;
33using OpenSim.Region.Framework.Interfaces; 33using OpenSim.Region.Framework.Interfaces;
34using System;
35using System.Reflection;
36using System.Collections;
37using System.Collections.Specialized;
38using System.Reflection;
39using System.IO;
40using System.Web;
41using System.Xml;
42using log4net;
43using Mono.Addins;
44using OpenMetaverse.Messages.Linden;
45using OpenMetaverse.StructuredData;
46using OpenSim.Framework.Capabilities;
47using OpenSim.Framework.Servers;
48using OpenSim.Framework.Servers.HttpServer;
49using Caps = OpenSim.Framework.Capabilities.Caps;
50using OSDArray = OpenMetaverse.StructuredData.OSDArray;
51using OSDMap = OpenMetaverse.StructuredData.OSDMap;
34 52
35namespace OpenSim.Region.CoreModules.Avatar.Gods 53namespace OpenSim.Region.CoreModules.Avatar.Gods
36{ 54{
37 public class GodsModule : IRegionModule, IGodsModule 55 public class GodsModule : IRegionModule, IGodsModule
38 { 56 {
57 private static readonly ILog m_log =
58 LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
59
39 /// <summary>Special UUID for actions that apply to all agents</summary> 60 /// <summary>Special UUID for actions that apply to all agents</summary>
40 private static readonly UUID ALL_AGENTS = new UUID("44e87126-e794-4ded-05b3-7c42da3d5cdb"); 61 private static readonly UUID ALL_AGENTS = new UUID("44e87126-e794-4ded-05b3-7c42da3d5cdb");
41 62
42 protected Scene m_scene; 63 protected Scene m_scene;
43 protected IDialogModule m_dialogModule; 64 protected IDialogModule m_dialogModule;
65
66 protected Dictionary<UUID, string> m_capsDict =
67 new Dictionary<UUID, string>();
44 68
45 public void Initialise(Scene scene, IConfigSource source) 69 public void Initialise(Scene scene, IConfigSource source)
46 { 70 {
@@ -48,6 +72,10 @@ namespace OpenSim.Region.CoreModules.Avatar.Gods
48 m_dialogModule = m_scene.RequestModuleInterface<IDialogModule>(); 72 m_dialogModule = m_scene.RequestModuleInterface<IDialogModule>();
49 m_scene.RegisterModuleInterface<IGodsModule>(this); 73 m_scene.RegisterModuleInterface<IGodsModule>(this);
50 m_scene.EventManager.OnNewClient += SubscribeToClientEvents; 74 m_scene.EventManager.OnNewClient += SubscribeToClientEvents;
75 m_scene.EventManager.OnRegisterCaps += OnRegisterCaps;
76 m_scene.EventManager.OnClientClosed += OnClientClosed;
77 scene.EventManager.OnIncomingInstantMessage +=
78 OnIncomingInstantMessage;
51 } 79 }
52 80
53 public void PostInitialise() {} 81 public void PostInitialise() {}
@@ -67,6 +95,54 @@ namespace OpenSim.Region.CoreModules.Avatar.Gods
67 client.OnRequestGodlikePowers -= RequestGodlikePowers; 95 client.OnRequestGodlikePowers -= RequestGodlikePowers;
68 } 96 }
69 97
98 private void OnClientClosed(UUID agentID, Scene scene)
99 {
100 m_capsDict.Remove(agentID);
101 }
102
103 private void OnRegisterCaps(UUID agentID, Caps caps)
104 {
105 string uri = "/CAPS/" + UUID.Random();
106 m_capsDict[agentID] = uri;
107
108 caps.RegisterHandler("UntrustedSimulatorMessage",
109 new RestStreamHandler("POST", uri,
110 HandleUntrustedSimulatorMessage));
111 }
112
113 private string HandleUntrustedSimulatorMessage(string request,
114 string path, string param, IOSHttpRequest httpRequest,
115 IOSHttpResponse httpResponse)
116 {
117 OSDMap osd = (OSDMap)OSDParser.DeserializeLLSDXml(request);
118
119 string message = osd["message"].AsString();
120
121 if (message == "GodKickUser")
122 {
123 OSDMap body = (OSDMap)osd["body"];
124 OSDArray userInfo = (OSDArray)body["UserInfo"];
125 OSDMap userData = (OSDMap)userInfo[0];
126
127 UUID agentID = userData["AgentID"].AsUUID();
128 UUID godID = userData["GodID"].AsUUID();
129 UUID godSessionID = userData["GodSessionID"].AsUUID();
130 uint kickFlags = userData["KickFlags"].AsUInteger();
131 string reason = userData["Reason"].AsString();
132
133 ScenePresence god = m_scene.GetScenePresence(godID);
134 if (god == null || god.ControllingClient.SessionId != godSessionID)
135 return String.Empty;
136
137 KickUser(godID, godSessionID, agentID, kickFlags, Util.StringToBytes1024(reason));
138 }
139 else
140 {
141 m_log.ErrorFormat("[GOD]: Unhandled UntrustedSimulatorMessage: {0}", message);
142 }
143 return String.Empty;
144 }
145
70 public void RequestGodlikePowers( 146 public void RequestGodlikePowers(
71 UUID agentID, UUID sessionID, UUID token, bool godLike, IClientAPI controllingClient) 147 UUID agentID, UUID sessionID, UUID token, bool godLike, IClientAPI controllingClient)
72 { 148 {
@@ -115,69 +191,85 @@ namespace OpenSim.Region.CoreModules.Avatar.Gods
115 /// <param name="reason">The message to send to the user after it's been turned into a field</param> 191 /// <param name="reason">The message to send to the user after it's been turned into a field</param>
116 public void KickUser(UUID godID, UUID sessionID, UUID agentID, uint kickflags, byte[] reason) 192 public void KickUser(UUID godID, UUID sessionID, UUID agentID, uint kickflags, byte[] reason)
117 { 193 {
118 UUID kickUserID = ALL_AGENTS; 194 if (!m_scene.Permissions.IsGod(godID))
119 195 return;
196
120 ScenePresence sp = m_scene.GetScenePresence(agentID); 197 ScenePresence sp = m_scene.GetScenePresence(agentID);
121 198
122 if (sp != null || agentID == kickUserID) 199 if (sp == null && agentID != ALL_AGENTS)
123 { 200 {
124 if (m_scene.Permissions.IsGod(godID)) 201 IMessageTransferModule transferModule =
202 m_scene.RequestModuleInterface<IMessageTransferModule>();
203 if (transferModule != null)
125 { 204 {
126 if (kickflags == 0) 205 m_log.DebugFormat("[GODS]: Sending nonlocal kill for agent {0}", agentID);
127 { 206 transferModule.SendInstantMessage(new GridInstantMessage(
128 if (agentID == kickUserID) 207 m_scene, godID, "God", agentID, (byte)250, false,
129 { 208 Utils.BytesToString(reason), UUID.Zero, true,
130 string reasonStr = Utils.BytesToString(reason); 209 new Vector3(), new byte[] {(byte)kickflags}),
131 210 delegate(bool success) {} );
132 m_scene.ForEachClient( 211 }
133 delegate(IClientAPI controller) 212 return;
134 { 213 }
135 if (controller.AgentId != godID)
136 controller.Kick(reasonStr);
137 }
138 );
139
140 // This is a bit crude. It seems the client will be null before it actually stops the thread
141 // The thread will kill itself eventually :/
142 // Is there another way to make sure *all* clients get this 'inter region' message?
143 m_scene.ForEachRootClient(
144 delegate(IClientAPI client)
145 {
146 if (client.AgentId != godID)
147 {
148 client.Close();
149 }
150 }
151 );
152 }
153 else
154 {
155 m_scene.SceneGraph.removeUserCount(!sp.IsChildAgent);
156 214
157 sp.ControllingClient.Kick(Utils.BytesToString(reason)); 215 switch (kickflags)
158 sp.ControllingClient.Close(); 216 {
159 } 217 case 0:
160 } 218 if (sp != null)
161 219 {
162 if (kickflags == 1) 220 KickPresence(sp, Utils.BytesToString(reason));
163 {
164 sp.AllowMovement = false;
165 m_dialogModule.SendAlertToUser(agentID, Utils.BytesToString(reason));
166 m_dialogModule.SendAlertToUser(godID, "User Frozen");
167 }
168
169 if (kickflags == 2)
170 {
171 sp.AllowMovement = true;
172 m_dialogModule.SendAlertToUser(agentID, Utils.BytesToString(reason));
173 m_dialogModule.SendAlertToUser(godID, "User Unfrozen");
174 }
175 } 221 }
176 else 222 else if (agentID == ALL_AGENTS)
177 { 223 {
178 m_dialogModule.SendAlertToUser(godID, "Kick request denied"); 224 m_scene.ForEachRootScenePresence(
225 delegate(ScenePresence p)
226 {
227 if (p.UUID != godID && (!m_scene.Permissions.IsGod(p.UUID)))
228 KickPresence(p, Utils.BytesToString(reason));
229 }
230 );
179 } 231 }
232 break;
233 case 1:
234 if (sp != null)
235 {
236 sp.AllowMovement = false;
237 m_dialogModule.SendAlertToUser(agentID, Utils.BytesToString(reason));
238 m_dialogModule.SendAlertToUser(godID, "User Frozen");
239 }
240 break;
241 case 2:
242 if (sp != null)
243 {
244 sp.AllowMovement = true;
245 m_dialogModule.SendAlertToUser(agentID, Utils.BytesToString(reason));
246 m_dialogModule.SendAlertToUser(godID, "User Unfrozen");
247 }
248 break;
249 default:
250 break;
251 }
252 }
253
254 private void KickPresence(ScenePresence sp, string reason)
255 {
256 if (sp.IsChildAgent)
257 return;
258 sp.ControllingClient.Kick(reason);
259 sp.Scene.IncomingCloseAgent(sp.UUID);
260 }
261
262 private void OnIncomingInstantMessage(GridInstantMessage msg)
263 {
264 if (msg.dialog == (uint)250) // Nonlocal kick
265 {
266 UUID agentID = new UUID(msg.toAgentID);
267 string reason = msg.message;
268 UUID godID = new UUID(msg.fromAgentID);
269 uint kickMode = (uint)msg.binaryBucket[0];
270
271 KickUser(godID, UUID.Zero, agentID, kickMode, Util.StringToBytes1024(reason));
180 } 272 }
181 } 273 }
182 } 274 }
183} \ No newline at end of file 275}
diff --git a/OpenSim/Region/CoreModules/Avatar/InstantMessage/InstantMessageModule.cs b/OpenSim/Region/CoreModules/Avatar/InstantMessage/InstantMessageModule.cs
index ca5d485..727f1c9 100644
--- a/OpenSim/Region/CoreModules/Avatar/InstantMessage/InstantMessageModule.cs
+++ b/OpenSim/Region/CoreModules/Avatar/InstantMessage/InstantMessageModule.cs
@@ -27,6 +27,7 @@
27using System; 27using System;
28using System.Collections.Generic; 28using System.Collections.Generic;
29using System.Reflection; 29using System.Reflection;
30using System.Timers;
30using log4net; 31using log4net;
31using Nini.Config; 32using Nini.Config;
32using OpenMetaverse; 33using OpenMetaverse;
@@ -42,6 +43,10 @@ namespace OpenSim.Region.CoreModules.Avatar.InstantMessage
42 private static readonly ILog m_log = LogManager.GetLogger( 43 private static readonly ILog m_log = LogManager.GetLogger(
43 MethodBase.GetCurrentMethod().DeclaringType); 44 MethodBase.GetCurrentMethod().DeclaringType);
44 45
46 private Timer m_logTimer = new Timer(10000);
47 private List<GridInstantMessage> m_logData = new List<GridInstantMessage>();
48 private string m_restUrl;
49
45 /// <value> 50 /// <value>
46 /// Is this module enabled? 51 /// Is this module enabled?
47 /// </value> 52 /// </value>
@@ -61,9 +66,12 @@ namespace OpenSim.Region.CoreModules.Avatar.InstantMessage
61 "InstantMessageModule", "InstantMessageModule") != 66 "InstantMessageModule", "InstantMessageModule") !=
62 "InstantMessageModule") 67 "InstantMessageModule")
63 return; 68 return;
69 m_restUrl = config.Configs["Messaging"].GetString("LogURL", String.Empty);
64 } 70 }
65 71
66 m_enabled = true; 72 m_enabled = true;
73 m_logTimer.AutoReset = false;
74 m_logTimer.Elapsed += LogTimerElapsed;
67 } 75 }
68 76
69 public void AddRegion(Scene scene) 77 public void AddRegion(Scene scene)
@@ -148,6 +156,9 @@ namespace OpenSim.Region.CoreModules.Avatar.InstantMessage
148 { 156 {
149 byte dialog = im.dialog; 157 byte dialog = im.dialog;
150 158
159 if (client != null && dialog == (byte)InstantMessageDialog.MessageFromAgent)
160 LogInstantMesssage(im);
161
151 if (dialog != (byte)InstantMessageDialog.MessageFromAgent 162 if (dialog != (byte)InstantMessageDialog.MessageFromAgent
152 && dialog != (byte)InstantMessageDialog.StartTyping 163 && dialog != (byte)InstantMessageDialog.StartTyping
153 && dialog != (byte)InstantMessageDialog.StopTyping 164 && dialog != (byte)InstantMessageDialog.StopTyping
@@ -157,6 +168,32 @@ namespace OpenSim.Region.CoreModules.Avatar.InstantMessage
157 return; 168 return;
158 } 169 }
159 170
171 //DateTime dt = DateTime.UtcNow;
172
173 // Ticks from UtcNow, but make it look like local. Evil, huh?
174 //dt = DateTime.SpecifyKind(dt, DateTimeKind.Local);
175
176 //try
177 //{
178 // // Convert that to the PST timezone
179 // TimeZoneInfo timeZoneInfo = TimeZoneInfo.FindSystemTimeZoneById("America/Los_Angeles");
180 // dt = TimeZoneInfo.ConvertTime(dt, timeZoneInfo);
181 //}
182 //catch
183 //{
184 // //m_log.Info("[OFFLINE MESSAGING]: No PST timezone found on this machine. Saving with local timestamp.");
185 //}
186
187 //// And make it look local again to fool the unix time util
188 //dt = DateTime.SpecifyKind(dt, DateTimeKind.Utc);
189
190 // If client is null, this message comes from storage and IS offline
191 if (client != null)
192 im.offline = 0;
193
194 if (im.offline == 0)
195 im.timestamp = (uint)Util.UnixTimeSinceEpoch();
196
160 if (m_TransferModule != null) 197 if (m_TransferModule != null)
161 { 198 {
162 if (client != null) 199 if (client != null)
@@ -200,5 +237,35 @@ namespace OpenSim.Region.CoreModules.Avatar.InstantMessage
200 // 237 //
201 OnInstantMessage(null, msg); 238 OnInstantMessage(null, msg);
202 } 239 }
240
241 private void LogInstantMesssage(GridInstantMessage im)
242 {
243 if (m_logData.Count < 20)
244 {
245 // Restart the log write timer
246 m_logTimer.Stop();
247 }
248 if (!m_logTimer.Enabled)
249 m_logTimer.Start();
250
251 lock (m_logData)
252 {
253 m_logData.Add(im);
254 }
255 }
256
257 private void LogTimerElapsed(object source, ElapsedEventArgs e)
258 {
259 lock (m_logData)
260 {
261 if (m_restUrl != String.Empty && m_logData.Count > 0)
262 {
263 bool success = SynchronousRestObjectRequester.MakeRequest<List<GridInstantMessage>, bool>("POST", m_restUrl + "/LogMessages/", m_logData);
264 if (!success)
265 m_log.ErrorFormat("[INSTANT MESSAGE]: Failed to save log data");
266 }
267 m_logData.Clear();
268 }
269 }
203 } 270 }
204} 271}
diff --git a/OpenSim/Region/CoreModules/Avatar/InstantMessage/MessageTransferModule.cs b/OpenSim/Region/CoreModules/Avatar/InstantMessage/MessageTransferModule.cs
index 0dad3c4..6064ddc 100644
--- a/OpenSim/Region/CoreModules/Avatar/InstantMessage/MessageTransferModule.cs
+++ b/OpenSim/Region/CoreModules/Avatar/InstantMessage/MessageTransferModule.cs
@@ -48,6 +48,7 @@ namespace OpenSim.Region.CoreModules.Avatar.InstantMessage
48 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); 48 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
49 49
50 private bool m_Enabled = false; 50 private bool m_Enabled = false;
51 protected string m_MessageKey = String.Empty;
51 protected List<Scene> m_Scenes = new List<Scene>(); 52 protected List<Scene> m_Scenes = new List<Scene>();
52 protected Dictionary<UUID, UUID> m_UserRegionMap = new Dictionary<UUID, UUID>(); 53 protected Dictionary<UUID, UUID> m_UserRegionMap = new Dictionary<UUID, UUID>();
53 54
@@ -67,14 +68,17 @@ namespace OpenSim.Region.CoreModules.Avatar.InstantMessage
67 public virtual void Initialise(IConfigSource config) 68 public virtual void Initialise(IConfigSource config)
68 { 69 {
69 IConfig cnf = config.Configs["Messaging"]; 70 IConfig cnf = config.Configs["Messaging"];
70 if (cnf != null && cnf.GetString( 71 if (cnf != null)
71 "MessageTransferModule", "MessageTransferModule") !=
72 "MessageTransferModule")
73 { 72 {
74 m_log.Debug("[MESSAGE TRANSFER]: Disabled by configuration"); 73 if (cnf.GetString("MessageTransferModule",
75 return; 74 "MessageTransferModule") != "MessageTransferModule")
76 } 75 {
76 return;
77 }
77 78
79 m_MessageKey = cnf.GetString("MessageKey", String.Empty);
80 }
81 m_log.Debug("[MESSAGE TRANSFER]: Module enabled");
78 m_Enabled = true; 82 m_Enabled = true;
79 } 83 }
80 84
@@ -244,6 +248,19 @@ namespace OpenSim.Region.CoreModules.Avatar.InstantMessage
244 && requestData.ContainsKey("position_z") && requestData.ContainsKey("region_id") 248 && requestData.ContainsKey("position_z") && requestData.ContainsKey("region_id")
245 && requestData.ContainsKey("binary_bucket")) 249 && requestData.ContainsKey("binary_bucket"))
246 { 250 {
251 if (m_MessageKey != String.Empty)
252 {
253 XmlRpcResponse error_resp = new XmlRpcResponse();
254 Hashtable error_respdata = new Hashtable();
255 error_respdata["success"] = "FALSE";
256 error_resp.Value = error_respdata;
257
258 if (!requestData.Contains("message_key"))
259 return error_resp;
260 if (m_MessageKey != (string)requestData["message_key"])
261 return error_resp;
262 }
263
247 // Do the easy way of validating the UUIDs 264 // Do the easy way of validating the UUIDs
248 UUID.TryParse((string)requestData["from_agent_id"], out fromAgentID); 265 UUID.TryParse((string)requestData["from_agent_id"], out fromAgentID);
249 UUID.TryParse((string)requestData["to_agent_id"], out toAgentID); 266 UUID.TryParse((string)requestData["to_agent_id"], out toAgentID);
@@ -420,24 +437,37 @@ namespace OpenSim.Region.CoreModules.Avatar.InstantMessage
420 return resp; 437 return resp;
421 } 438 }
422 439
423 /// <summary> 440 private delegate void GridInstantMessageDelegate(GridInstantMessage im, MessageResultNotification result);
424 /// delegate for sending a grid instant message asynchronously
425 /// </summary>
426 public delegate void GridInstantMessageDelegate(GridInstantMessage im, MessageResultNotification result, UUID prevRegionID);
427 441
428 protected virtual void GridInstantMessageCompleted(IAsyncResult iar) 442 private class GIM {
429 { 443 public GridInstantMessage im;
430 GridInstantMessageDelegate icon = 444 public MessageResultNotification result;
431 (GridInstantMessageDelegate)iar.AsyncState; 445 };
432 icon.EndInvoke(iar);
433 }
434 446
447 private Queue<GIM> pendingInstantMessages = new Queue<GIM>();
448 private int numInstantMessageThreads = 0;
435 449
436 protected virtual void SendGridInstantMessageViaXMLRPC(GridInstantMessage im, MessageResultNotification result) 450 private void SendGridInstantMessageViaXMLRPC(GridInstantMessage im, MessageResultNotification result)
437 { 451 {
438 GridInstantMessageDelegate d = SendGridInstantMessageViaXMLRPCAsync; 452 lock (pendingInstantMessages) {
453 if (numInstantMessageThreads >= 4) {
454 GIM gim = new GIM();
455 gim.im = im;
456 gim.result = result;
457 pendingInstantMessages.Enqueue(gim);
458 } else {
459 ++ numInstantMessageThreads;
460 //m_log.DebugFormat("[SendGridInstantMessageViaXMLRPC]: ++numInstantMessageThreads={0}", numInstantMessageThreads);
461 GridInstantMessageDelegate d = SendGridInstantMessageViaXMLRPCAsyncMain;
462 d.BeginInvoke(im, result, GridInstantMessageCompleted, d);
463 }
464 }
465 }
439 466
440 d.BeginInvoke(im, result, UUID.Zero, GridInstantMessageCompleted, d); 467 private void GridInstantMessageCompleted(IAsyncResult iar)
468 {
469 GridInstantMessageDelegate d = (GridInstantMessageDelegate)iar.AsyncState;
470 d.EndInvoke(iar);
441 } 471 }
442 472
443 /// <summary> 473 /// <summary>
@@ -452,8 +482,31 @@ namespace OpenSim.Region.CoreModules.Avatar.InstantMessage
452 /// Pass in 0 the first time this method is called. It will be called recursively with the last 482 /// Pass in 0 the first time this method is called. It will be called recursively with the last
453 /// regionhandle tried 483 /// regionhandle tried
454 /// </param> 484 /// </param>
455 protected virtual void SendGridInstantMessageViaXMLRPCAsync(GridInstantMessage im, MessageResultNotification result, UUID prevRegionID) 485 private void SendGridInstantMessageViaXMLRPCAsyncMain(GridInstantMessage im, MessageResultNotification result)
456 { 486 {
487 GIM gim;
488 do {
489 try {
490 SendGridInstantMessageViaXMLRPCAsync(im, result, UUID.Zero);
491 } catch (Exception e) {
492 m_log.Error("[SendGridInstantMessageViaXMLRPC]: exception " + e.Message);
493 }
494 lock (pendingInstantMessages) {
495 if (pendingInstantMessages.Count > 0) {
496 gim = pendingInstantMessages.Dequeue();
497 im = gim.im;
498 result = gim.result;
499 } else {
500 gim = null;
501 -- numInstantMessageThreads;
502 //m_log.DebugFormat("[SendGridInstantMessageViaXMLRPC]: --numInstantMessageThreads={0}", numInstantMessageThreads);
503 }
504 }
505 } while (gim != null);
506 }
507 private void SendGridInstantMessageViaXMLRPCAsync(GridInstantMessage im, MessageResultNotification result, UUID prevRegionID)
508 {
509
457 UUID toAgentID = new UUID(im.toAgentID); 510 UUID toAgentID = new UUID(im.toAgentID);
458 511
459 PresenceInfo upd = null; 512 PresenceInfo upd = null;
@@ -520,7 +573,7 @@ namespace OpenSim.Region.CoreModules.Avatar.InstantMessage
520 573
521 if (upd != null) 574 if (upd != null)
522 { 575 {
523 GridRegion reginfo = m_Scenes[0].GridService.GetRegionByUUID(m_Scenes[0].RegionInfo.ScopeID, 576 GridRegion reginfo = m_Scenes[0].GridService.GetRegionByUUID(UUID.Zero,
524 upd.RegionID); 577 upd.RegionID);
525 if (reginfo != null) 578 if (reginfo != null)
526 { 579 {
@@ -669,6 +722,8 @@ namespace OpenSim.Region.CoreModules.Avatar.InstantMessage
669 gim["position_z"] = msg.Position.Z.ToString(); 722 gim["position_z"] = msg.Position.Z.ToString();
670 gim["region_id"] = msg.RegionID.ToString(); 723 gim["region_id"] = msg.RegionID.ToString();
671 gim["binary_bucket"] = Convert.ToBase64String(msg.binaryBucket,Base64FormattingOptions.None); 724 gim["binary_bucket"] = Convert.ToBase64String(msg.binaryBucket,Base64FormattingOptions.None);
725 if (m_MessageKey != String.Empty)
726 gim["message_key"] = m_MessageKey;
672 return gim; 727 return gim;
673 } 728 }
674 729
diff --git a/OpenSim/Region/CoreModules/Avatar/InstantMessage/OfflineMessageModule.cs b/OpenSim/Region/CoreModules/Avatar/InstantMessage/OfflineMessageModule.cs
index de25048..b27b07d 100644
--- a/OpenSim/Region/CoreModules/Avatar/InstantMessage/OfflineMessageModule.cs
+++ b/OpenSim/Region/CoreModules/Avatar/InstantMessage/OfflineMessageModule.cs
@@ -171,7 +171,11 @@ namespace OpenSim.Region.CoreModules.Avatar.InstantMessage
171 171
172 private void RetrieveInstantMessages(IClientAPI client) 172 private void RetrieveInstantMessages(IClientAPI client)
173 { 173 {
174 if (m_RestURL != "") 174 if (m_RestURL == String.Empty)
175 {
176 return;
177 }
178 else
175 { 179 {
176 m_log.DebugFormat("[OFFLINE MESSAGING]: Retrieving stored messages for {0}", client.AgentId); 180 m_log.DebugFormat("[OFFLINE MESSAGING]: Retrieving stored messages for {0}", client.AgentId);
177 181
@@ -179,22 +183,25 @@ namespace OpenSim.Region.CoreModules.Avatar.InstantMessage
179 = SynchronousRestObjectRequester.MakeRequest<UUID, List<GridInstantMessage>>( 183 = SynchronousRestObjectRequester.MakeRequest<UUID, List<GridInstantMessage>>(
180 "POST", m_RestURL + "/RetrieveMessages/", client.AgentId); 184 "POST", m_RestURL + "/RetrieveMessages/", client.AgentId);
181 185
182 if (msglist == null) 186 if (msglist != null)
183 m_log.WarnFormat("[OFFLINE MESSAGING]: WARNING null message list.");
184
185 foreach (GridInstantMessage im in msglist)
186 { 187 {
187 // client.SendInstantMessage(im); 188 foreach (GridInstantMessage im in msglist)
188 189 {
189 // Send through scene event manager so all modules get a chance 190 // client.SendInstantMessage(im);
190 // to look at this message before it gets delivered. 191
191 // 192 // Send through scene event manager so all modules get a chance
192 // Needed for proper state management for stored group 193 // to look at this message before it gets delivered.
193 // invitations 194 //
194 // 195 // Needed for proper state management for stored group
195 Scene s = FindScene(client.AgentId); 196 // invitations
196 if (s != null) 197 //
197 s.EventManager.TriggerIncomingInstantMessage(im); 198
199 im.offline = 1;
200
201 Scene s = FindScene(client.AgentId);
202 if (s != null)
203 s.EventManager.TriggerIncomingInstantMessage(im);
204 }
198 } 205 }
199 } 206 }
200 } 207 }
@@ -205,24 +212,19 @@ namespace OpenSim.Region.CoreModules.Avatar.InstantMessage
205 im.dialog != (byte)InstantMessageDialog.MessageFromAgent && 212 im.dialog != (byte)InstantMessageDialog.MessageFromAgent &&
206 im.dialog != (byte)InstantMessageDialog.GroupNotice && 213 im.dialog != (byte)InstantMessageDialog.GroupNotice &&
207 im.dialog != (byte)InstantMessageDialog.GroupInvitation && 214 im.dialog != (byte)InstantMessageDialog.GroupInvitation &&
208 im.dialog != (byte)InstantMessageDialog.InventoryOffered) 215 im.dialog != (byte)InstantMessageDialog.InventoryOffered &&
216 im.dialog != (byte)InstantMessageDialog.TaskInventoryOffered)
209 { 217 {
210 return; 218 return;
211 } 219 }
212 220
213 if (!m_ForwardOfflineGroupMessages)
214 {
215 if (im.dialog == (byte)InstantMessageDialog.GroupNotice ||
216 im.dialog != (byte)InstantMessageDialog.GroupInvitation)
217 return;
218 }
219
220 Scene scene = FindScene(new UUID(im.fromAgentID)); 221 Scene scene = FindScene(new UUID(im.fromAgentID));
221 if (scene == null) 222 if (scene == null)
222 scene = m_SceneList[0]; 223 scene = m_SceneList[0];
223 224
224 bool success = SynchronousRestObjectRequester.MakeRequest<GridInstantMessage, bool>( 225 bool success = SynchronousRestObjectRequester.MakeRequest<GridInstantMessage, bool>(
225 "POST", m_RestURL+"/SaveMessage/", im); 226 "POST", m_RestURL+"/SaveMessage/?scope=" +
227 scene.RegionInfo.ScopeID.ToString(), im);
226 228
227 if (im.dialog == (byte)InstantMessageDialog.MessageFromAgent) 229 if (im.dialog == (byte)InstantMessageDialog.MessageFromAgent)
228 { 230 {
diff --git a/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveReadRequest.cs b/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveReadRequest.cs
index ee10d04..0833154 100644
--- a/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveReadRequest.cs
+++ b/OpenSim/Region/CoreModules/Avatar/Inventory/Archiver/InventoryArchiveReadRequest.cs
@@ -635,4 +635,4 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Archiver
635 m_assetsLoaded = true; 635 m_assetsLoaded = true;
636 } 636 }
637 } 637 }
638} \ No newline at end of file 638}
diff --git a/OpenSim/Region/CoreModules/Avatar/Inventory/Transfer/InventoryTransferModule.cs b/OpenSim/Region/CoreModules/Avatar/Inventory/Transfer/InventoryTransferModule.cs
index 19c774f..80554fb 100644
--- a/OpenSim/Region/CoreModules/Avatar/Inventory/Transfer/InventoryTransferModule.cs
+++ b/OpenSim/Region/CoreModules/Avatar/Inventory/Transfer/InventoryTransferModule.cs
@@ -175,8 +175,8 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Transfer
175 if (im.binaryBucket.Length < 17) // Invalid 175 if (im.binaryBucket.Length < 17) // Invalid
176 return; 176 return;
177 177
178 UUID receipientID = new UUID(im.toAgentID); 178 UUID recipientID = new UUID(im.toAgentID);
179 ScenePresence user = scene.GetScenePresence(receipientID); 179 ScenePresence user = scene.GetScenePresence(recipientID);
180 UUID copyID; 180 UUID copyID;
181 181
182 // First byte is the asset type 182 // First byte is the asset type
@@ -191,7 +191,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Transfer
191 folderID, new UUID(im.toAgentID)); 191 folderID, new UUID(im.toAgentID));
192 192
193 InventoryFolderBase folderCopy 193 InventoryFolderBase folderCopy
194 = scene.GiveInventoryFolder(receipientID, client.AgentId, folderID, UUID.Zero); 194 = scene.GiveInventoryFolder(recipientID, client.AgentId, folderID, UUID.Zero);
195 195
196 if (folderCopy == null) 196 if (folderCopy == null)
197 { 197 {
@@ -244,6 +244,8 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Transfer
244 im.imSessionID = itemID.Guid; 244 im.imSessionID = itemID.Guid;
245 } 245 }
246 246
247 im.offline = 0;
248
247 // Send the IM to the recipient. The item is already 249 // Send the IM to the recipient. The item is already
248 // in their inventory, so it will not be lost if 250 // in their inventory, so it will not be lost if
249 // they are offline. 251 // they are offline.
@@ -263,8 +265,42 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Transfer
263 }); 265 });
264 } 266 }
265 } 267 }
266 else if (im.dialog == (byte) InstantMessageDialog.InventoryAccepted) 268 else if (im.dialog == (byte) InstantMessageDialog.InventoryAccepted ||
269 im.dialog == (byte) InstantMessageDialog.TaskInventoryAccepted)
267 { 270 {
271 UUID inventoryID = new UUID(im.imSessionID); // The inventory item/folder, back from it's trip
272 IInventoryService invService = scene.InventoryService;
273
274 // Special case: folder redirect.
275 // RLV uses this
276 if (im.dialog == (byte) InstantMessageDialog.TaskInventoryAccepted)
277 {
278 InventoryFolderBase folder = new InventoryFolderBase(inventoryID, client.AgentId);
279 folder = invService.GetFolder(folder);
280
281 if (folder != null)
282 {
283 if (im.binaryBucket.Length >= 16)
284 {
285 UUID destFolderID = new UUID(im.binaryBucket, 0);
286 if (destFolderID != UUID.Zero)
287 {
288 InventoryFolderBase destFolder = new InventoryFolderBase(destFolderID, client.AgentId);
289 destFolder = invService.GetFolder(destFolder);
290 if (destFolder != null)
291 {
292 if (folder.ParentID != destFolder.ID)
293 {
294 folder.ParentID = destFolder.ID;
295 invService.MoveFolder(folder);
296 client.SendBulkUpdateInventory(folder);
297 }
298 }
299 }
300 }
301 }
302 }
303
268 ScenePresence user = scene.GetScenePresence(new UUID(im.toAgentID)); 304 ScenePresence user = scene.GetScenePresence(new UUID(im.toAgentID));
269 305
270 if (user != null) // Local 306 if (user != null) // Local
@@ -274,30 +310,11 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Transfer
274 else 310 else
275 { 311 {
276 if (m_TransferModule != null) 312 if (m_TransferModule != null)
277 m_TransferModule.SendInstantMessage(im, delegate(bool success) { 313 m_TransferModule.SendInstantMessage(im, delegate(bool success) {});
278
279 // justincc - FIXME: Comment out for now. This code was added in commit db91044 Mon Aug 22 2011
280 // and is apparently supposed to fix bulk inventory updates after accepting items. But
281 // instead it appears to cause two copies of an accepted folder for the receiving user in
282 // at least some cases. Folder/item update is already done when the offer is made (see code above)
283
284// // Send BulkUpdateInventory
285// IInventoryService invService = scene.InventoryService;
286// UUID inventoryEntityID = new UUID(im.imSessionID); // The inventory item /folder, back from it's trip
287//
288// InventoryFolderBase folder = new InventoryFolderBase(inventoryEntityID, client.AgentId);
289// folder = invService.GetFolder(folder);
290//
291// ScenePresence fromUser = scene.GetScenePresence(new UUID(im.fromAgentID));
292//
293// // If the user has left the scene by the time the message comes back then we can't send
294// // them the update.
295// if (fromUser != null)
296// fromUser.ControllingClient.SendBulkUpdateInventory(folder);
297 });
298 } 314 }
299 } 315 }
300 else if (im.dialog == (byte) InstantMessageDialog.InventoryDeclined) 316 else if (im.dialog == (byte) InstantMessageDialog.InventoryDeclined ||
317 im.dialog == (byte) InstantMessageDialog.TaskInventoryDeclined)
301 { 318 {
302 // Here, the recipient is local and we can assume that the 319 // Here, the recipient is local and we can assume that the
303 // inventory is loaded. Courtesy of the above bulk update, 320 // inventory is loaded. Courtesy of the above bulk update,
@@ -333,6 +350,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Transfer
333 { 350 {
334 folder.ParentID = trashFolder.ID; 351 folder.ParentID = trashFolder.ID;
335 invService.MoveFolder(folder); 352 invService.MoveFolder(folder);
353 client.SendBulkUpdateInventory(folder);
336 } 354 }
337 } 355 }
338 356
@@ -433,22 +451,113 @@ namespace OpenSim.Region.CoreModules.Avatar.Inventory.Transfer
433 /// 451 ///
434 /// </summary> 452 /// </summary>
435 /// <param name="msg"></param> 453 /// <param name="msg"></param>
436 private void OnGridInstantMessage(GridInstantMessage msg) 454 private void OnGridInstantMessage(GridInstantMessage im)
437 { 455 {
438 // Check if this is ours to handle 456 // Check if this is ours to handle
439 // 457 //
440 Scene scene = FindClientScene(new UUID(msg.toAgentID)); 458 Scene scene = FindClientScene(new UUID(im.toAgentID));
441 459
442 if (scene == null) 460 if (scene == null)
443 return; 461 return;
444 462
445 // Find agent to deliver to 463 // Find agent to deliver to
446 // 464 //
447 ScenePresence user = scene.GetScenePresence(new UUID(msg.toAgentID)); 465 ScenePresence user = scene.GetScenePresence(new UUID(im.toAgentID));
466 if (user == null)
467 return;
468
469 // This requires a little bit of processing because we have to make the
470 // new item visible in the recipient's inventory here
471 //
472 if (im.dialog == (byte) InstantMessageDialog.InventoryOffered)
473 {
474 if (im.binaryBucket.Length < 17) // Invalid
475 return;
476
477 UUID recipientID = new UUID(im.toAgentID);
478
479 // First byte is the asset type
480 AssetType assetType = (AssetType)im.binaryBucket[0];
481
482 if (AssetType.Folder == assetType)
483 {
484 UUID folderID = new UUID(im.binaryBucket, 1);
448 485
449 // Just forward to local handling 486 InventoryFolderBase given =
450 OnInstantMessage(user.ControllingClient, msg); 487 new InventoryFolderBase(folderID, recipientID);
488 InventoryFolderBase folder =
489 scene.InventoryService.GetFolder(given);
451 490
491 if (folder != null)
492 user.ControllingClient.SendBulkUpdateInventory(folder);
493 }
494 else
495 {
496 UUID itemID = new UUID(im.binaryBucket, 1);
497
498 InventoryItemBase given =
499 new InventoryItemBase(itemID, recipientID);
500 InventoryItemBase item =
501 scene.InventoryService.GetItem(given);
502
503 if (item != null)
504 {
505 user.ControllingClient.SendBulkUpdateInventory(item);
506 }
507 }
508 user.ControllingClient.SendInstantMessage(im);
509 }
510 if (im.dialog == (byte) InstantMessageDialog.TaskInventoryOffered)
511 {
512 if (im.binaryBucket.Length < 1) // Invalid
513 return;
514
515 UUID recipientID = new UUID(im.toAgentID);
516
517 // Bucket is the asset type
518 AssetType assetType = (AssetType)im.binaryBucket[0];
519
520 if (AssetType.Folder == assetType)
521 {
522 UUID folderID = new UUID(im.imSessionID);
523
524 InventoryFolderBase given =
525 new InventoryFolderBase(folderID, recipientID);
526 InventoryFolderBase folder =
527 scene.InventoryService.GetFolder(given);
528
529 if (folder != null)
530 user.ControllingClient.SendBulkUpdateInventory(folder);
531 }
532 else
533 {
534 UUID itemID = new UUID(im.imSessionID);
535
536 InventoryItemBase given =
537 new InventoryItemBase(itemID, recipientID);
538 InventoryItemBase item =
539 scene.InventoryService.GetItem(given);
540
541 if (item != null)
542 {
543 user.ControllingClient.SendBulkUpdateInventory(item);
544 }
545 }
546
547 // Fix up binary bucket since this may be 17 chars long here
548 Byte[] bucket = new Byte[1];
549 bucket[0] = im.binaryBucket[0];
550 im.binaryBucket = bucket;
551
552 user.ControllingClient.SendInstantMessage(im);
553 }
554 else if (im.dialog == (byte) InstantMessageDialog.InventoryAccepted ||
555 im.dialog == (byte) InstantMessageDialog.InventoryDeclined ||
556 im.dialog == (byte) InstantMessageDialog.TaskInventoryDeclined ||
557 im.dialog == (byte) InstantMessageDialog.TaskInventoryAccepted)
558 {
559 user.ControllingClient.SendInstantMessage(im);
560 }
452 } 561 }
453 } 562 }
454} 563}
diff --git a/OpenSim/Region/CoreModules/Avatar/Lure/LureModule.cs b/OpenSim/Region/CoreModules/Avatar/Lure/LureModule.cs
index 2d4cffd..a889984 100644
--- a/OpenSim/Region/CoreModules/Avatar/Lure/LureModule.cs
+++ b/OpenSim/Region/CoreModules/Avatar/Lure/LureModule.cs
@@ -161,16 +161,29 @@ namespace OpenSim.Region.CoreModules.Avatar.Lure
161 scene.RegionInfo.RegionHandle, 161 scene.RegionInfo.RegionHandle,
162 (uint)presence.AbsolutePosition.X, 162 (uint)presence.AbsolutePosition.X,
163 (uint)presence.AbsolutePosition.Y, 163 (uint)presence.AbsolutePosition.Y,
164 (uint)Math.Ceiling(presence.AbsolutePosition.Z)); 164 (uint)presence.AbsolutePosition.Z + 2);
165 165
166 m_log.DebugFormat("TP invite with message {0}", message); 166 m_log.DebugFormat("[LURE]: TP invite with message {0}", message);
167
168 GridInstantMessage m;
169
170 if (scene.Permissions.IsAdministrator(client.AgentId) && presence.GodLevel >= 200 && (!scene.Permissions.IsAdministrator(targetid)))
171 {
172 m = new GridInstantMessage(scene, client.AgentId,
173 client.FirstName+" "+client.LastName, targetid,
174 (byte)InstantMessageDialog.GodLikeRequestTeleport, false,
175 message, dest, false, presence.AbsolutePosition,
176 new Byte[0]);
177 }
178 else
179 {
180 m = new GridInstantMessage(scene, client.AgentId,
181 client.FirstName+" "+client.LastName, targetid,
182 (byte)InstantMessageDialog.RequestTeleport, false,
183 message, dest, false, presence.AbsolutePosition,
184 new Byte[0]);
185 }
167 186
168 GridInstantMessage m = new GridInstantMessage(scene, client.AgentId,
169 client.FirstName+" "+client.LastName, targetid,
170 (byte)InstantMessageDialog.RequestTeleport, false,
171 message, dest, false, presence.AbsolutePosition,
172 new Byte[0]);
173
174 if (m_TransferModule != null) 187 if (m_TransferModule != null)
175 { 188 {
176 m_TransferModule.SendInstantMessage(m, 189 m_TransferModule.SendInstantMessage(m,
@@ -205,7 +218,8 @@ namespace OpenSim.Region.CoreModules.Avatar.Lure
205 { 218 {
206 // Forward remote teleport requests 219 // Forward remote teleport requests
207 // 220 //
208 if (msg.dialog != 22) 221 if (msg.dialog != (byte)InstantMessageDialog.RequestTeleport &&
222 msg.dialog != (byte)InstantMessageDialog.GodLikeRequestTeleport)
209 return; 223 return;
210 224
211 if (m_TransferModule != null) 225 if (m_TransferModule != null)
diff --git a/OpenSim/Region/CoreModules/Framework/Caps/CapabilitiesModule.cs b/OpenSim/Region/CoreModules/Framework/Caps/CapabilitiesModule.cs
index 4ea85a8..dbe75b5 100644
--- a/OpenSim/Region/CoreModules/Framework/Caps/CapabilitiesModule.cs
+++ b/OpenSim/Region/CoreModules/Framework/Caps/CapabilitiesModule.cs
@@ -102,7 +102,8 @@ namespace OpenSim.Region.CoreModules.Framework
102 102
103 public void CreateCaps(UUID agentId) 103 public void CreateCaps(UUID agentId)
104 { 104 {
105 if (m_scene.RegionInfo.EstateSettings.IsBanned(agentId)) 105 int flags = m_scene.GetUserFlags(agentId);
106 if (m_scene.RegionInfo.EstateSettings.IsBanned(agentId, flags))
106 return; 107 return;
107 108
108 String capsObjectPath = GetCapsPath(agentId); 109 String capsObjectPath = GetCapsPath(agentId);
diff --git a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs
index 7d82060..7b13213 100644
--- a/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs
+++ b/OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs
@@ -146,7 +146,7 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
146 146
147 protected virtual void OnNewClient(IClientAPI client) 147 protected virtual void OnNewClient(IClientAPI client)
148 { 148 {
149 client.OnTeleportHomeRequest += TeleportHome; 149 client.OnTeleportHomeRequest += TriggerTeleportHome;
150 client.OnTeleportLandmarkRequest += RequestTeleportLandmark; 150 client.OnTeleportLandmarkRequest += RequestTeleportLandmark;
151 } 151 }
152 152
@@ -269,6 +269,7 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
269 sp.ControllingClient.SendTeleportStart(teleportFlags); 269 sp.ControllingClient.SendTeleportStart(teleportFlags);
270 270
271 sp.ControllingClient.SendLocalTeleport(position, lookAt, teleportFlags); 271 sp.ControllingClient.SendLocalTeleport(position, lookAt, teleportFlags);
272 sp.TeleportFlags = (Constants.TeleportFlags)teleportFlags;
272 sp.Velocity = Vector3.Zero; 273 sp.Velocity = Vector3.Zero;
273 sp.Teleport(position); 274 sp.Teleport(position);
274 275
@@ -429,8 +430,7 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
429 // This may be a costly operation. The reg.ExternalEndPoint field is not a passive field, 430 // This may be a costly operation. The reg.ExternalEndPoint field is not a passive field,
430 // it's actually doing a lot of work. 431 // it's actually doing a lot of work.
431 IPEndPoint endPoint = finalDestination.ExternalEndPoint; 432 IPEndPoint endPoint = finalDestination.ExternalEndPoint;
432 433 if (endPoint == null || endPoint.Address == null)
433 if (endPoint.Address == null)
434 { 434 {
435 sp.ControllingClient.SendTeleportFailed("Remote Region appears to be down"); 435 sp.ControllingClient.SendTeleportFailed("Remote Region appears to be down");
436 m_entityTransferStateMachine.ResetFromTransit(sp.UUID); 436 m_entityTransferStateMachine.ResetFromTransit(sp.UUID);
@@ -776,7 +776,12 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
776 776
777 #region Teleport Home 777 #region Teleport Home
778 778
779 public virtual void TeleportHome(UUID id, IClientAPI client) 779 public virtual void TriggerTeleportHome(UUID id, IClientAPI client)
780 {
781 TeleportHome(id, client);
782 }
783
784 public virtual bool TeleportHome(UUID id, IClientAPI client)
780 { 785 {
781 m_log.DebugFormat( 786 m_log.DebugFormat(
782 "[ENTITY TRANSFER MODULE]: Request to teleport {0} {1} home", client.Name, client.AgentId); 787 "[ENTITY TRANSFER MODULE]: Request to teleport {0} {1} home", client.Name, client.AgentId);
@@ -786,12 +791,18 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
786 791
787 if (uinfo != null) 792 if (uinfo != null)
788 { 793 {
794 if (uinfo.HomeRegionID == UUID.Zero)
795 {
796 // can't find the Home region: Tell viewer and abort
797 client.SendTeleportFailed("You don't have a home position set.");
798 return false;
799 }
789 GridRegion regionInfo = Scene.GridService.GetRegionByUUID(UUID.Zero, uinfo.HomeRegionID); 800 GridRegion regionInfo = Scene.GridService.GetRegionByUUID(UUID.Zero, uinfo.HomeRegionID);
790 if (regionInfo == null) 801 if (regionInfo == null)
791 { 802 {
792 // can't find the Home region: Tell viewer and abort 803 // can't find the Home region: Tell viewer and abort
793 client.SendTeleportFailed("Your home region could not be found."); 804 client.SendTeleportFailed("Your home region could not be found.");
794 return; 805 return false;
795 } 806 }
796 807
797 m_log.DebugFormat("[ENTITY TRANSFER MODULE]: Home region of {0} is {1} ({2}-{3})", 808 m_log.DebugFormat("[ENTITY TRANSFER MODULE]: Home region of {0} is {1} ({2}-{3})",
@@ -804,10 +815,11 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
804 } 815 }
805 else 816 else
806 { 817 {
807 m_log.ErrorFormat( 818 // can't find the Home region: Tell viewer and abort
808 "[ENTITY TRANSFER MODULE]: No grid user information found for {0} {1}. Cannot send home.", 819 client.SendTeleportFailed("Your home region could not be found.");
809 client.Name, client.AgentId); 820 return false;
810 } 821 }
822 return true;
811 } 823 }
812 824
813 #endregion 825 #endregion
@@ -815,11 +827,10 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
815 827
816 #region Agent Crossings 828 #region Agent Crossings
817 829
818 public bool Cross(ScenePresence agent, bool isFlying) 830 public GridRegion GetDestination(Scene scene, UUID agentID, Vector3 pos, out uint xDest, out uint yDest, out string version, out Vector3 newpos)
819 { 831 {
820 Scene scene = agent.Scene; 832 version = String.Empty;
821 Vector3 pos = agent.AbsolutePosition; 833 newpos = new Vector3(pos.X, pos.Y, pos.Z);
822 Vector3 newpos = new Vector3(pos.X, pos.Y, pos.Z);
823 uint neighbourx = scene.RegionInfo.RegionLocX; 834 uint neighbourx = scene.RegionInfo.RegionLocX;
824 uint neighboury = scene.RegionInfo.RegionLocY; 835 uint neighboury = scene.RegionInfo.RegionLocY;
825 const float boundaryDistance = 1.7f; 836 const float boundaryDistance = 1.7f;
@@ -840,52 +851,12 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
840 } 851 }
841 else if (scene.TestBorderCross(pos + southCross, Cardinals.S)) 852 else if (scene.TestBorderCross(pos + southCross, Cardinals.S))
842 { 853 {
843 Border b = scene.GetCrossedBorder(pos + southCross, Cardinals.S); 854 neighboury--;
844 if (b.TriggerRegionX == 0 && b.TriggerRegionY == 0) 855 newpos.Y = Constants.RegionSize - enterDistance;
845 {
846 neighboury--;
847 newpos.Y = Constants.RegionSize - enterDistance;
848 }
849 else
850 {
851 agent.IsInTransit = true;
852
853 neighboury = b.TriggerRegionY;
854 neighbourx = b.TriggerRegionX;
855
856 Vector3 newposition = pos;
857 newposition.X += (scene.RegionInfo.RegionLocX - neighbourx) * Constants.RegionSize;
858 newposition.Y += (scene.RegionInfo.RegionLocY - neighboury) * Constants.RegionSize;
859 agent.ControllingClient.SendAgentAlertMessage(
860 String.Format("Moving you to region {0},{1}", neighbourx, neighboury), false);
861 InformClientToInitateTeleportToLocation(agent, neighbourx, neighboury, newposition, scene);
862 return true;
863 }
864 }
865
866 Border ba = scene.GetCrossedBorder(pos + westCross, Cardinals.W);
867 if (ba.TriggerRegionX == 0 && ba.TriggerRegionY == 0)
868 {
869 neighbourx--;
870 newpos.X = Constants.RegionSize - enterDistance;
871 }
872 else
873 {
874 agent.IsInTransit = true;
875
876 neighboury = ba.TriggerRegionY;
877 neighbourx = ba.TriggerRegionX;
878
879 Vector3 newposition = pos;
880 newposition.X += (scene.RegionInfo.RegionLocX - neighbourx) * Constants.RegionSize;
881 newposition.Y += (scene.RegionInfo.RegionLocY - neighboury) * Constants.RegionSize;
882 agent.ControllingClient.SendAgentAlertMessage(
883 String.Format("Moving you to region {0},{1}", neighbourx, neighboury), false);
884 InformClientToInitateTeleportToLocation(agent, neighbourx, neighboury, newposition, scene);
885
886 return true;
887 } 856 }
888 857
858 neighbourx--;
859 newpos.X = Constants.RegionSize - enterDistance;
889 } 860 }
890 else if (scene.TestBorderCross(pos + eastCross, Cardinals.E)) 861 else if (scene.TestBorderCross(pos + eastCross, Cardinals.E))
891 { 862 {
@@ -895,26 +866,8 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
895 866
896 if (scene.TestBorderCross(pos + southCross, Cardinals.S)) 867 if (scene.TestBorderCross(pos + southCross, Cardinals.S))
897 { 868 {
898 Border ba = scene.GetCrossedBorder(pos + southCross, Cardinals.S); 869 neighboury--;
899 if (ba.TriggerRegionX == 0 && ba.TriggerRegionY == 0) 870 newpos.Y = Constants.RegionSize - enterDistance;
900 {
901 neighboury--;
902 newpos.Y = Constants.RegionSize - enterDistance;
903 }
904 else
905 {
906 agent.IsInTransit = true;
907
908 neighboury = ba.TriggerRegionY;
909 neighbourx = ba.TriggerRegionX;
910 Vector3 newposition = pos;
911 newposition.X += (scene.RegionInfo.RegionLocX - neighbourx) * Constants.RegionSize;
912 newposition.Y += (scene.RegionInfo.RegionLocY - neighboury) * Constants.RegionSize;
913 agent.ControllingClient.SendAgentAlertMessage(
914 String.Format("Moving you to region {0},{1}", neighbourx, neighboury), false);
915 InformClientToInitateTeleportToLocation(agent, neighbourx, neighboury, newposition, scene);
916 return true;
917 }
918 } 871 }
919 else if (scene.TestBorderCross(pos + northCross, Cardinals.N)) 872 else if (scene.TestBorderCross(pos + northCross, Cardinals.N))
920 { 873 {
@@ -926,25 +879,8 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
926 else if (scene.TestBorderCross(pos + southCross, Cardinals.S)) 879 else if (scene.TestBorderCross(pos + southCross, Cardinals.S))
927 { 880 {
928 Border b = scene.GetCrossedBorder(pos + southCross, Cardinals.S); 881 Border b = scene.GetCrossedBorder(pos + southCross, Cardinals.S);
929 if (b.TriggerRegionX == 0 && b.TriggerRegionY == 0) 882 neighboury--;
930 { 883 newpos.Y = Constants.RegionSize - enterDistance;
931 neighboury--;
932 newpos.Y = Constants.RegionSize - enterDistance;
933 }
934 else
935 {
936 agent.IsInTransit = true;
937
938 neighboury = b.TriggerRegionY;
939 neighbourx = b.TriggerRegionX;
940 Vector3 newposition = pos;
941 newposition.X += (scene.RegionInfo.RegionLocX - neighbourx) * Constants.RegionSize;
942 newposition.Y += (scene.RegionInfo.RegionLocY - neighboury) * Constants.RegionSize;
943 agent.ControllingClient.SendAgentAlertMessage(
944 String.Format("Moving you to region {0},{1}", neighbourx, neighboury), false);
945 InformClientToInitateTeleportToLocation(agent, neighbourx, neighboury, newposition, scene);
946 return true;
947 }
948 } 884 }
949 else if (scene.TestBorderCross(pos + northCross, Cardinals.N)) 885 else if (scene.TestBorderCross(pos + northCross, Cardinals.N))
950 { 886 {
@@ -978,19 +914,22 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
978 } 914 }
979 */ 915 */
980 916
981 ulong neighbourHandle = Utils.UIntsToLong((uint)(neighbourx * Constants.RegionSize), (uint)(neighboury * Constants.RegionSize)); 917 xDest = neighbourx;
918 yDest = neighboury;
982 919
983 int x = (int)(neighbourx * Constants.RegionSize), y = (int)(neighboury * Constants.RegionSize); 920 int x = (int)(neighbourx * Constants.RegionSize), y = (int)(neighboury * Constants.RegionSize);
984 921
922 ulong neighbourHandle = Utils.UIntsToLong((uint)x, (uint)y);
923
985 ExpiringCache<ulong, DateTime> r; 924 ExpiringCache<ulong, DateTime> r;
986 DateTime banUntil; 925 DateTime banUntil;
987 926
988 if (m_bannedRegions.TryGetValue(agent.ControllingClient.AgentId, out r)) 927 if (m_bannedRegions.TryGetValue(agentID, out r))
989 { 928 {
990 if (r.TryGetValue(neighbourHandle, out banUntil)) 929 if (r.TryGetValue(neighbourHandle, out banUntil))
991 { 930 {
992 if (DateTime.Now < banUntil) 931 if (DateTime.Now < banUntil)
993 return false; 932 return null;
994 r.Remove(neighbourHandle); 933 r.Remove(neighbourHandle);
995 } 934 }
996 } 935 }
@@ -1002,28 +941,43 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
1002 GridRegion neighbourRegion = scene.GridService.GetRegionByPosition(scene.RegionInfo.ScopeID, (int)x, (int)y); 941 GridRegion neighbourRegion = scene.GridService.GetRegionByPosition(scene.RegionInfo.ScopeID, (int)x, (int)y);
1003 942
1004 string reason; 943 string reason;
1005 string version; 944 if (!scene.SimulationService.QueryAccess(neighbourRegion, agentID, newpos, out version, out reason))
1006 if (!scene.SimulationService.QueryAccess(neighbourRegion, agent.ControllingClient.AgentId, newpos, out version, out reason))
1007 { 945 {
1008 agent.ControllingClient.SendAlertMessage("Cannot region cross into banned parcel");
1009 if (r == null) 946 if (r == null)
1010 { 947 {
1011 r = new ExpiringCache<ulong, DateTime>(); 948 r = new ExpiringCache<ulong, DateTime>();
1012 r.Add(neighbourHandle, DateTime.Now + TimeSpan.FromSeconds(15), TimeSpan.FromSeconds(15)); 949 r.Add(neighbourHandle, DateTime.Now + TimeSpan.FromSeconds(15), TimeSpan.FromSeconds(15));
1013 950
1014 m_bannedRegions.Add(agent.ControllingClient.AgentId, r, TimeSpan.FromSeconds(45)); 951 m_bannedRegions.Add(agentID, r, TimeSpan.FromSeconds(45));
1015 } 952 }
1016 else 953 else
1017 { 954 {
1018 r.Add(neighbourHandle, DateTime.Now + TimeSpan.FromSeconds(15), TimeSpan.FromSeconds(15)); 955 r.Add(neighbourHandle, DateTime.Now + TimeSpan.FromSeconds(15), TimeSpan.FromSeconds(15));
1019 } 956 }
957 return null;
958 }
959
960 return neighbourRegion;
961 }
962
963 public bool Cross(ScenePresence agent, bool isFlying)
964 {
965 uint x;
966 uint y;
967 Vector3 newpos;
968 string version;
969
970 GridRegion neighbourRegion = GetDestination(agent.Scene, agent.UUID, agent.AbsolutePosition, out x, out y, out version, out newpos);
971 if (neighbourRegion == null)
972 {
973 agent.ControllingClient.SendAlertMessage("Cannot region cross into banned parcel");
1020 return false; 974 return false;
1021 } 975 }
1022 976
1023 agent.IsInTransit = true; 977 agent.IsInTransit = true;
1024 978
1025 CrossAgentToNewRegionDelegate d = CrossAgentToNewRegionAsync; 979 CrossAgentToNewRegionDelegate d = CrossAgentToNewRegionAsync;
1026 d.BeginInvoke(agent, newpos, neighbourx, neighboury, neighbourRegion, isFlying, version, CrossAgentToNewRegionCompleted, d); 980 d.BeginInvoke(agent, newpos, x, y, neighbourRegion, isFlying, version, CrossAgentToNewRegionCompleted, d);
1027 981
1028 return true; 982 return true;
1029 } 983 }
@@ -1080,13 +1034,11 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
1080 icon.EndInvoke(iar); 1034 icon.EndInvoke(iar);
1081 } 1035 }
1082 1036
1083 public delegate ScenePresence CrossAgentToNewRegionDelegate(ScenePresence agent, Vector3 pos, uint neighbourx, uint neighboury, GridRegion neighbourRegion, bool isFlying, string version);
1084
1085 /// <summary> 1037 /// <summary>
1086 /// This Closes child agents on neighbouring regions 1038 /// This Closes child agents on neighbouring regions
1087 /// Calls an asynchronous method to do so.. so it doesn't lag the sim. 1039 /// Calls an asynchronous method to do so.. so it doesn't lag the sim.
1088 /// </summary> 1040 /// </summary>
1089 protected ScenePresence CrossAgentToNewRegionAsync( 1041 public ScenePresence CrossAgentToNewRegionAsync(
1090 ScenePresence agent, Vector3 pos, uint neighbourx, uint neighboury, GridRegion neighbourRegion, 1042 ScenePresence agent, Vector3 pos, uint neighbourx, uint neighboury, GridRegion neighbourRegion,
1091 bool isFlying, string version) 1043 bool isFlying, string version)
1092 { 1044 {
@@ -1293,10 +1245,14 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
1293 agent.Id0 = currentAgentCircuit.Id0; 1245 agent.Id0 = currentAgentCircuit.Id0;
1294 } 1246 }
1295 1247
1296 InformClientOfNeighbourDelegate d = InformClientOfNeighbourAsync; 1248 IPEndPoint external = region.ExternalEndPoint;
1297 d.BeginInvoke(sp, agent, region, region.ExternalEndPoint, true, 1249 if (external != null)
1250 {
1251 InformClientOfNeighbourDelegate d = InformClientOfNeighbourAsync;
1252 d.BeginInvoke(sp, agent, region, external, true,
1298 InformClientOfNeighbourCompleted, 1253 InformClientOfNeighbourCompleted,
1299 d); 1254 d);
1255 }
1300 } 1256 }
1301 #endregion 1257 #endregion
1302 1258
@@ -1876,27 +1832,28 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
1876 Utils.LongToUInts(newRegionHandle, out x, out y); 1832 Utils.LongToUInts(newRegionHandle, out x, out y);
1877 GridRegion destination = scene.GridService.GetRegionByPosition(scene.RegionInfo.ScopeID, (int)x, (int)y); 1833 GridRegion destination = scene.GridService.GetRegionByPosition(scene.RegionInfo.ScopeID, (int)x, (int)y);
1878 1834
1879 if (destination == null || !CrossPrimGroupIntoNewRegion(destination, pos, grp, silent)) 1835 if (destination != null)
1880 { 1836 {
1881 m_log.InfoFormat("[ENTITY TRANSFER MODULE] cross region transfer failed for object {0}",grp.UUID); 1837 if (CrossPrimGroupIntoNewRegion(destination, pos, grp, silent))
1838 return; // we did it
1839 }
1882 1840
1883 // We are going to move the object back to the old position so long as the old position 1841 // no one or failed lets go back and tell physics to go on
1884 // is in the region 1842 oldGroupPosition.X = Util.Clamp<float>(oldGroupPosition.X, 0.5f, (float)Constants.RegionSize - 0.5f);
1885 oldGroupPosition.X = Util.Clamp<float>(oldGroupPosition.X,1.0f,(float)Constants.RegionSize-1); 1843 oldGroupPosition.Y = Util.Clamp<float>(oldGroupPosition.Y, 0.5f, (float)Constants.RegionSize - 0.5f);
1886 oldGroupPosition.Y = Util.Clamp<float>(oldGroupPosition.Y,1.0f,(float)Constants.RegionSize-1); 1844 oldGroupPosition.Z = Util.Clamp<float>(oldGroupPosition.Z, 0.5f, 4096.0f);
1887 oldGroupPosition.Z = Util.Clamp<float>(oldGroupPosition.Z,1.0f,4096.0f);
1888 1845
1889 grp.RootPart.GroupPosition = oldGroupPosition; 1846 grp.AbsolutePosition = oldGroupPosition;
1847 grp.Velocity = Vector3.Zero;
1890 1848
1891 // Need to turn off the physics flags, otherwise the object will continue to attempt to 1849 if (grp.RootPart.PhysActor != null)
1892 // move out of the region creating an infinite loop of failed attempts to cross 1850 grp.RootPart.PhysActor.CrossingFailure();
1893 grp.UpdatePrimFlags(grp.RootPart.LocalId,false,grp.IsTemporary,grp.IsPhantom,false);
1894 1851
1895 grp.ScheduleGroupForFullUpdate(); 1852 grp.ScheduleGroupForFullUpdate();
1896 }
1897 } 1853 }
1898 1854
1899 1855
1856
1900 /// <summary> 1857 /// <summary>
1901 /// Move the given scene object into a new region 1858 /// Move the given scene object into a new region
1902 /// </summary> 1859 /// </summary>
@@ -1953,7 +1910,15 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
1953 { 1910 {
1954 PhysicsActor pa = grp.RootPart.PhysActor; 1911 PhysicsActor pa = grp.RootPart.PhysActor;
1955 if (pa != null) 1912 if (pa != null)
1913 {
1956 pa.CrossingFailure(); 1914 pa.CrossingFailure();
1915 if (grp.RootPart.KeyframeMotion != null)
1916 {
1917 grp.RootPart.Velocity = Vector3.Zero;
1918 grp.RootPart.KeyframeMotion.CrossingFailure();
1919 grp.SendGroupRootTerseUpdate();
1920 }
1921 }
1957 } 1922 }
1958 1923
1959 m_log.ErrorFormat("[ENTITY TRANSFER MODULE]: Prim crossing failed for {0}", grp); 1924 m_log.ErrorFormat("[ENTITY TRANSFER MODULE]: Prim crossing failed for {0}", grp);
@@ -2034,4 +1999,4 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
2034 #endregion 1999 #endregion
2035 2000
2036 } 2001 }
2037} \ No newline at end of file 2002}
diff --git a/OpenSim/Region/CoreModules/Framework/EntityTransfer/HGEntityTransferModule.cs b/OpenSim/Region/CoreModules/Framework/EntityTransfer/HGEntityTransferModule.cs
index 08863c2..3010b59 100644
--- a/OpenSim/Region/CoreModules/Framework/EntityTransfer/HGEntityTransferModule.cs
+++ b/OpenSim/Region/CoreModules/Framework/EntityTransfer/HGEntityTransferModule.cs
@@ -90,7 +90,7 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
90 90
91 protected override void OnNewClient(IClientAPI client) 91 protected override void OnNewClient(IClientAPI client)
92 { 92 {
93 client.OnTeleportHomeRequest += TeleportHome; 93 client.OnTeleportHomeRequest += TriggerTeleportHome;
94 client.OnTeleportLandmarkRequest += RequestTeleportLandmark; 94 client.OnTeleportLandmarkRequest += RequestTeleportLandmark;
95 client.OnConnectionClosed += new Action<IClientAPI>(OnConnectionClosed); 95 client.OnConnectionClosed += new Action<IClientAPI>(OnConnectionClosed);
96 } 96 }
@@ -195,7 +195,12 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
195 return base.CreateAgent(sp, reg, finalDestination, agentCircuit, teleportFlags, out reason, out logout); 195 return base.CreateAgent(sp, reg, finalDestination, agentCircuit, teleportFlags, out reason, out logout);
196 } 196 }
197 197
198 public override void TeleportHome(UUID id, IClientAPI client) 198 public void TriggerTeleportHome(UUID id, IClientAPI client)
199 {
200 TeleportHome(id, client);
201 }
202
203 public override bool TeleportHome(UUID id, IClientAPI client)
199 { 204 {
200 m_log.DebugFormat( 205 m_log.DebugFormat(
201 "[ENTITY TRANSFER MODULE]: Request to teleport {0} {1} home", client.Name, client.AgentId); 206 "[ENTITY TRANSFER MODULE]: Request to teleport {0} {1} home", client.Name, client.AgentId);
@@ -206,8 +211,7 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
206 { 211 {
207 // local grid user 212 // local grid user
208 m_log.DebugFormat("[HG ENTITY TRANSFER MODULE]: User is local"); 213 m_log.DebugFormat("[HG ENTITY TRANSFER MODULE]: User is local");
209 base.TeleportHome(id, client); 214 return base.TeleportHome(id, client);
210 return;
211 } 215 }
212 216
213 // Foreign user wants to go home 217 // Foreign user wants to go home
@@ -217,7 +221,7 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
217 { 221 {
218 client.SendTeleportFailed("Your information has been lost"); 222 client.SendTeleportFailed("Your information has been lost");
219 m_log.DebugFormat("[HG ENTITY TRANSFER MODULE]: Unable to locate agent's gateway information"); 223 m_log.DebugFormat("[HG ENTITY TRANSFER MODULE]: Unable to locate agent's gateway information");
220 return; 224 return false;
221 } 225 }
222 226
223 IUserAgentService userAgentService = new UserAgentServiceConnector(aCircuit.ServiceURLs["HomeURI"].ToString()); 227 IUserAgentService userAgentService = new UserAgentServiceConnector(aCircuit.ServiceURLs["HomeURI"].ToString());
@@ -227,7 +231,7 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
227 { 231 {
228 client.SendTeleportFailed("Your home region could not be found"); 232 client.SendTeleportFailed("Your home region could not be found");
229 m_log.DebugFormat("[HG ENTITY TRANSFER MODULE]: Agent's home region not found"); 233 m_log.DebugFormat("[HG ENTITY TRANSFER MODULE]: Agent's home region not found");
230 return; 234 return false;
231 } 235 }
232 236
233 ScenePresence sp = ((Scene)(client.Scene)).GetScenePresence(client.AgentId); 237 ScenePresence sp = ((Scene)(client.Scene)).GetScenePresence(client.AgentId);
@@ -235,7 +239,7 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
235 { 239 {
236 client.SendTeleportFailed("Internal error"); 240 client.SendTeleportFailed("Internal error");
237 m_log.DebugFormat("[HG ENTITY TRANSFER MODULE]: Agent not found in the scene where it is supposed to be"); 241 m_log.DebugFormat("[HG ENTITY TRANSFER MODULE]: Agent not found in the scene where it is supposed to be");
238 return; 242 return false;
239 } 243 }
240 244
241 GridRegion homeGatekeeper = MakeRegion(aCircuit); 245 GridRegion homeGatekeeper = MakeRegion(aCircuit);
@@ -243,9 +247,8 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
243 m_log.DebugFormat("[HG ENTITY TRANSFER MODULE]: teleporting user {0} {1} home to {2} via {3}:{4}", 247 m_log.DebugFormat("[HG ENTITY TRANSFER MODULE]: teleporting user {0} {1} home to {2} via {3}:{4}",
244 aCircuit.firstname, aCircuit.lastname, finalDestination.RegionName, homeGatekeeper.ServerURI, homeGatekeeper.RegionName); 248 aCircuit.firstname, aCircuit.lastname, finalDestination.RegionName, homeGatekeeper.ServerURI, homeGatekeeper.RegionName);
245 249
246 DoTeleport( 250 DoTeleport(sp, homeGatekeeper, finalDestination, position, lookAt, (uint)(Constants.TeleportFlags.SetLastToTarget | Constants.TeleportFlags.ViaHome));
247 sp, homeGatekeeper, finalDestination, 251 return true;
248 position, lookAt, (uint)(Constants.TeleportFlags.SetLastToTarget | Constants.TeleportFlags.ViaHome));
249 } 252 }
250 253
251 /// <summary> 254 /// <summary>
diff --git a/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs b/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs
index 7d51eed..d30c2e2 100644
--- a/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs
+++ b/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs
@@ -359,6 +359,12 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess
359 359
360 foreach (SceneObjectGroup objectGroup in objlist) 360 foreach (SceneObjectGroup objectGroup in objlist)
361 { 361 {
362 if (objectGroup.RootPart.KeyframeMotion != null)
363 objectGroup.RootPart.KeyframeMotion.Stop();
364 objectGroup.RootPart.SetForce(Vector3.Zero);
365 objectGroup.RootPart.SetAngularImpulse(Vector3.Zero, false);
366 objectGroup.RootPart.KeyframeMotion = null;
367
362 Vector3 inventoryStoredPosition = new Vector3 368 Vector3 inventoryStoredPosition = new Vector3
363 (((objectGroup.AbsolutePosition.X > (int)Constants.RegionSize) 369 (((objectGroup.AbsolutePosition.X > (int)Constants.RegionSize)
364 ? 250 370 ? 250
@@ -369,9 +375,19 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess
369 : objectGroup.AbsolutePosition.Y, 375 : objectGroup.AbsolutePosition.Y,
370 objectGroup.AbsolutePosition.Z); 376 objectGroup.AbsolutePosition.Z);
371 377
378 Quaternion inventoryStoredRotation = objectGroup.GroupRotation;
372 originalPositions[objectGroup.UUID] = objectGroup.AbsolutePosition; 379 originalPositions[objectGroup.UUID] = objectGroup.AbsolutePosition;
373 380
381 // Restore attachment data after trip through the sim
382 if (objectGroup.RootPart.AttachPoint > 0)
383 {
384 inventoryStoredPosition = objectGroup.RootPart.AttachOffset;
385 inventoryStoredRotation = objectGroup.RootPart.AttachRotation;
386 }
387 objectGroup.RootPart.Shape.State = objectGroup.RootPart.AttachPoint;
388
374 objectGroup.AbsolutePosition = inventoryStoredPosition; 389 objectGroup.AbsolutePosition = inventoryStoredPosition;
390 objectGroup.RootPart.RotationOffset = inventoryStoredRotation;
375 391
376 // Make sure all bits but the ones we want are clear 392 // Make sure all bits but the ones we want are clear
377 // on take. 393 // on take.
@@ -489,8 +505,17 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess
489 IClientAPI remoteClient) 505 IClientAPI remoteClient)
490 { 506 {
491 uint effectivePerms = (uint)(PermissionMask.Copy | PermissionMask.Transfer | PermissionMask.Modify | PermissionMask.Move) | 7; 507 uint effectivePerms = (uint)(PermissionMask.Copy | PermissionMask.Transfer | PermissionMask.Modify | PermissionMask.Move) | 7;
508 // For the porposes of inventory, an object is modify if the prims
509 // are modify. This allows renaming an object that contains no
510 // mod items.
492 foreach (SceneObjectGroup grp in objsForEffectivePermissions) 511 foreach (SceneObjectGroup grp in objsForEffectivePermissions)
493 effectivePerms &= grp.GetEffectivePermissions(); 512 {
513 uint groupPerms = grp.GetEffectivePermissions(true);
514 if ((grp.RootPart.BaseMask & (uint)PermissionMask.Modify) != 0)
515 groupPerms |= (uint)PermissionMask.Modify;
516
517 effectivePerms &= groupPerms;
518 }
494 effectivePerms |= (uint)PermissionMask.Move; 519 effectivePerms |= (uint)PermissionMask.Move;
495 520
496 if (remoteClient != null && (remoteClient.AgentId != so.RootPart.OwnerID) && m_Scene.Permissions.PropagatePermissions()) 521 if (remoteClient != null && (remoteClient.AgentId != so.RootPart.OwnerID) && m_Scene.Permissions.PropagatePermissions())
@@ -669,7 +694,8 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess
669 if (so.FromFolderID != UUID.Zero && userID == remoteClient.AgentId) 694 if (so.FromFolderID != UUID.Zero && userID == remoteClient.AgentId)
670 { 695 {
671 InventoryFolderBase f = new InventoryFolderBase(so.FromFolderID, userID); 696 InventoryFolderBase f = new InventoryFolderBase(so.FromFolderID, userID);
672 folder = m_Scene.InventoryService.GetFolder(f); 697 if (f != null)
698 folder = m_Scene.InventoryService.GetFolder(f);
673 } 699 }
674 } 700 }
675 701
@@ -699,16 +725,11 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess
699 bool RezSelected, bool RemoveItem, UUID fromTaskID, bool attachment) 725 bool RezSelected, bool RemoveItem, UUID fromTaskID, bool attachment)
700 { 726 {
701// m_log.DebugFormat("[INVENTORY ACCESS MODULE]: RezObject for {0}, item {1}", remoteClient.Name, itemID); 727// m_log.DebugFormat("[INVENTORY ACCESS MODULE]: RezObject for {0}, item {1}", remoteClient.Name, itemID);
702
703 InventoryItemBase item = new InventoryItemBase(itemID, remoteClient.AgentId); 728 InventoryItemBase item = new InventoryItemBase(itemID, remoteClient.AgentId);
704 item = m_Scene.InventoryService.GetItem(item); 729 item = m_Scene.InventoryService.GetItem(item);
705 730
706 if (item == null) 731 if (item == null)
707 { 732 {
708 m_log.WarnFormat(
709 "[INVENTORY ACCESS MODULE]: Could not find item {0} for {1} in RezObject()",
710 itemID, remoteClient.Name);
711
712 return null; 733 return null;
713 } 734 }
714 735
@@ -759,6 +780,13 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess
759 if (e == null || attachment) // Single 780 if (e == null || attachment) // Single
760 { 781 {
761 SceneObjectGroup g = SceneObjectSerializer.FromOriginalXmlFormat(xmlData); 782 SceneObjectGroup g = SceneObjectSerializer.FromOriginalXmlFormat(xmlData);
783 if (!attachment)
784 {
785 g.RootPart.AttachPoint = g.RootPart.Shape.State;
786 g.RootPart.AttachOffset = g.AbsolutePosition;
787 g.RootPart.AttachRotation = g.GroupRotation;
788 g.RootPart.Shape.State = 0;
789 }
762 790
763 objlist.Add(g); 791 objlist.Add(g);
764 veclist.Add(new Vector3(0, 0, 0)); 792 veclist.Add(new Vector3(0, 0, 0));
@@ -788,6 +816,10 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess
788 foreach (XmlNode n in groups) 816 foreach (XmlNode n in groups)
789 { 817 {
790 SceneObjectGroup g = SceneObjectSerializer.FromOriginalXmlFormat(n.OuterXml); 818 SceneObjectGroup g = SceneObjectSerializer.FromOriginalXmlFormat(n.OuterXml);
819 g.RootPart.AttachPoint = g.RootPart.Shape.State;
820 g.RootPart.AttachOffset = g.AbsolutePosition;
821 g.RootPart.AttachRotation = g.GroupRotation;
822 g.RootPart.Shape.State = 0;
791 823
792 objlist.Add(g); 824 objlist.Add(g);
793 XmlElement el = (XmlElement)n; 825 XmlElement el = (XmlElement)n;
@@ -807,12 +839,35 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess
807 } 839 }
808 } 840 }
809 841
842 int primcount = 0;
843 foreach (SceneObjectGroup g in objlist)
844 primcount += g.PrimCount;
845
846 if (!m_Scene.Permissions.CanRezObject(
847 primcount, remoteClient.AgentId, pos)
848 && !attachment)
849 {
850 // The client operates in no fail mode. It will
851 // have already removed the item from the folder
852 // if it's no copy.
853 // Put it back if it's not an attachment
854 //
855 if (item != null)
856 {
857 if (((item.CurrentPermissions & (uint)PermissionMask.Copy) == 0) && (!attachment))
858 remoteClient.SendBulkUpdateInventory(item);
859 }
860
861 return null;
862 }
863
810 if (item != null && !DoPreRezWhenFromItem(remoteClient, item, objlist, pos, attachment)) 864 if (item != null && !DoPreRezWhenFromItem(remoteClient, item, objlist, pos, attachment))
811 return null; 865 return null;
812 866
813 for (int i = 0; i < objlist.Count; i++) 867 for (int i = 0; i < objlist.Count; i++)
814 { 868 {
815 group = objlist[i]; 869 group = objlist[i];
870 SceneObjectPart rootPart = group.RootPart;
816 871
817// m_log.DebugFormat( 872// m_log.DebugFormat(
818// "[INVENTORY ACCESS MODULE]: Preparing to rez {0} {1} {2} ownermask={3:X} nextownermask={4:X} groupmask={5:X} everyonemask={6:X} for {7}", 873// "[INVENTORY ACCESS MODULE]: Preparing to rez {0} {1} {2} ownermask={3:X} nextownermask={4:X} groupmask={5:X} everyonemask={6:X} for {7}",
@@ -873,8 +928,6 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess
873 928
874 if (!attachment) 929 if (!attachment)
875 { 930 {
876 SceneObjectPart rootPart = group.RootPart;
877
878 if (rootPart.Shape.PCode == (byte)PCode.Prim) 931 if (rootPart.Shape.PCode == (byte)PCode.Prim)
879 group.ClearPartAttachmentData(); 932 group.ClearPartAttachmentData();
880 933
@@ -892,6 +945,8 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess
892// remoteClient.Name); 945// remoteClient.Name);
893 } 946 }
894 947
948 group.SetGroup(remoteClient.ActiveGroupId, remoteClient);
949
895 if (item != null) 950 if (item != null)
896 DoPostRezWhenFromItem(item, attachment); 951 DoPostRezWhenFromItem(item, attachment);
897 952
@@ -970,8 +1025,11 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess
970 { 1025 {
971 rootPart.Name = item.Name; 1026 rootPart.Name = item.Name;
972 rootPart.Description = item.Description; 1027 rootPart.Description = item.Description;
973 rootPart.ObjectSaleType = item.SaleType; 1028 if ((item.Flags & (uint)InventoryItemFlags.ObjectSlamSale) != 0)
974 rootPart.SalePrice = item.SalePrice; 1029 {
1030 rootPart.ObjectSaleType = item.SaleType;
1031 rootPart.SalePrice = item.SalePrice;
1032 }
975 } 1033 }
976 1034
977 so.FromFolderID = item.Folder; 1035 so.FromFolderID = item.Folder;
@@ -981,7 +1039,8 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess
981// rootPart.OwnerID, item.Owner, item.CurrentPermissions); 1039// rootPart.OwnerID, item.Owner, item.CurrentPermissions);
982 1040
983 if ((rootPart.OwnerID != item.Owner) || 1041 if ((rootPart.OwnerID != item.Owner) ||
984 (item.CurrentPermissions & 16) != 0) 1042 (item.CurrentPermissions & 16) != 0 ||
1043 (item.Flags & (uint)InventoryItemFlags.ObjectSlamPerm) != 0)
985 { 1044 {
986 //Need to kill the for sale here 1045 //Need to kill the for sale here
987 rootPart.ObjectSaleType = 0; 1046 rootPart.ObjectSaleType = 0;
@@ -991,31 +1050,43 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess
991 { 1050 {
992 foreach (SceneObjectPart part in so.Parts) 1051 foreach (SceneObjectPart part in so.Parts)
993 { 1052 {
994 if ((item.Flags & (uint)InventoryItemFlags.ObjectHasMultipleItems) == 0)
995 {
996 part.EveryoneMask = item.EveryOnePermissions;
997 part.NextOwnerMask = item.NextPermissions;
998 }
999 part.GroupMask = 0; // DO NOT propagate here 1053 part.GroupMask = 0; // DO NOT propagate here
1054
1055 part.LastOwnerID = part.OwnerID;
1056 part.OwnerID = item.Owner;
1057 part.Inventory.ChangeInventoryOwner(item.Owner);
1000 } 1058 }
1001 1059
1002 so.ApplyNextOwnerPermissions(); 1060 so.ApplyNextOwnerPermissions();
1061
1062 // In case the user has changed flags on a received item
1063 // we have to apply those changes after the slam. Else we
1064 // get a net loss of permissions
1065 foreach (SceneObjectPart part in so.Parts)
1066 {
1067 if ((item.Flags & (uint)InventoryItemFlags.ObjectHasMultipleItems) == 0)
1068 {
1069 if ((item.Flags & (uint)InventoryItemFlags.ObjectOverwriteEveryone) != 0)
1070 part.EveryoneMask = item.EveryOnePermissions & part.BaseMask;
1071 if ((item.Flags & (uint)InventoryItemFlags.ObjectOverwriteNextOwner) != 0)
1072 part.NextOwnerMask = item.NextPermissions & part.BaseMask;
1073 }
1074 }
1003 } 1075 }
1004 } 1076 }
1005 1077 else
1006 foreach (SceneObjectPart part in so.Parts)
1007 { 1078 {
1008 part.FromUserInventoryItemID = fromUserInventoryItemId; 1079 foreach (SceneObjectPart part in so.Parts)
1009
1010 if ((part.OwnerID != item.Owner) ||
1011 (item.CurrentPermissions & 16) != 0)
1012 { 1080 {
1013 part.Inventory.ChangeInventoryOwner(item.Owner); 1081 part.FromUserInventoryItemID = fromUserInventoryItemId;
1014 part.GroupMask = 0; // DO NOT propagate here 1082
1083 if ((item.Flags & (uint)InventoryItemFlags.ObjectOverwriteEveryone) != 0)
1084 part.EveryoneMask = item.EveryOnePermissions;
1085 if ((item.Flags & (uint)InventoryItemFlags.ObjectOverwriteNextOwner) != 0)
1086 part.NextOwnerMask = item.NextPermissions;
1087 if ((item.Flags & (uint)InventoryItemFlags.ObjectOverwriteGroup) != 0)
1088 part.GroupMask = item.GroupPermissions;
1015 } 1089 }
1016
1017 part.EveryoneMask = item.EveryOnePermissions;
1018 part.NextOwnerMask = item.NextPermissions;
1019 } 1090 }
1020 1091
1021 rootPart.TrimPermissions(); 1092 rootPart.TrimPermissions();
@@ -1153,4 +1224,4 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess
1153 1224
1154 #endregion 1225 #endregion
1155 } 1226 }
1156} \ No newline at end of file 1227}
diff --git a/OpenSim/Region/CoreModules/LightShare/LightShareModule.cs b/OpenSim/Region/CoreModules/LightShare/LightShareModule.cs
index 16cbbf5..f49641f 100644
--- a/OpenSim/Region/CoreModules/LightShare/LightShareModule.cs
+++ b/OpenSim/Region/CoreModules/LightShare/LightShareModule.cs
@@ -170,7 +170,8 @@ namespace OpenSim.Region.CoreModules.World.LightShare
170 170
171 private void EventManager_OnMakeRootAgent(ScenePresence presence) 171 private void EventManager_OnMakeRootAgent(ScenePresence presence)
172 { 172 {
173 m_log.Debug("[WINDLIGHT]: Sending windlight scene to new client"); 173 if (m_enableWindlight && m_scene.RegionInfo.WindlightSettings.valid)
174 m_log.Debug("[WINDLIGHT]: Sending windlight scene to new client");
174 SendProfileToClient(presence.ControllingClient); 175 SendProfileToClient(presence.ControllingClient);
175 } 176 }
176 177
diff --git a/OpenSim/Region/CoreModules/Scripting/HttpRequest/ScriptsHttpRequests.cs b/OpenSim/Region/CoreModules/Scripting/HttpRequest/ScriptsHttpRequests.cs
index d328eb3..9dac6b9 100644
--- a/OpenSim/Region/CoreModules/Scripting/HttpRequest/ScriptsHttpRequests.cs
+++ b/OpenSim/Region/CoreModules/Scripting/HttpRequest/ScriptsHttpRequests.cs
@@ -382,6 +382,10 @@ namespace OpenSim.Region.CoreModules.Scripting.HttpRequest
382 try 382 try
383 { 383 {
384 Request = (HttpWebRequest) WebRequest.Create(Url); 384 Request = (HttpWebRequest) WebRequest.Create(Url);
385
386 //This works around some buggy HTTP Servers like Lighttpd
387 Request.ServicePoint.Expect100Continue = false;
388
385 Request.Method = HttpMethod; 389 Request.Method = HttpMethod;
386 Request.ContentType = HttpMIMEType; 390 Request.ContentType = HttpMIMEType;
387 391
@@ -458,15 +462,36 @@ namespace OpenSim.Region.CoreModules.Scripting.HttpRequest
458 462
459 // continue building the string 463 // continue building the string
460 sb.Append(tempString); 464 sb.Append(tempString);
465 if (sb.Length > 2048)
466 break;
461 } 467 }
462 } while (count > 0); // any more data to read? 468 } while (count > 0); // any more data to read?
463 469
464 ResponseBody = sb.ToString(); 470 ResponseBody = sb.ToString().Replace("\r", "");
465 } 471 }
466 catch (Exception e) 472 catch (Exception e)
467 { 473 {
468 Status = (int)OSHttpStatusCode.ClientErrorJoker; 474 if (e is WebException && ((WebException)e).Status == WebExceptionStatus.ProtocolError)
469 ResponseBody = e.Message; 475 {
476 HttpWebResponse webRsp = (HttpWebResponse)((WebException)e).Response;
477 Status = (int)webRsp.StatusCode;
478 try
479 {
480 using (Stream responseStream = webRsp.GetResponseStream())
481 {
482 ResponseBody = responseStream.GetStreamString();
483 }
484 }
485 catch
486 {
487 ResponseBody = webRsp.StatusDescription;
488 }
489 }
490 else
491 {
492 Status = (int)OSHttpStatusCode.ClientErrorJoker;
493 ResponseBody = e.Message;
494 }
470 495
471 _finished = true; 496 _finished = true;
472 return; 497 return;
diff --git a/OpenSim/Region/CoreModules/Scripting/LSLHttp/UrlModule.cs b/OpenSim/Region/CoreModules/Scripting/LSLHttp/UrlModule.cs
index 05d54f0..56c3c7d 100644
--- a/OpenSim/Region/CoreModules/Scripting/LSLHttp/UrlModule.cs
+++ b/OpenSim/Region/CoreModules/Scripting/LSLHttp/UrlModule.cs
@@ -41,39 +41,13 @@ using OpenSim.Region.Framework.Scenes;
41 41
42namespace OpenSim.Region.CoreModules.Scripting.LSLHttp 42namespace OpenSim.Region.CoreModules.Scripting.LSLHttp
43{ 43{
44 /// <summary>
45 /// Data describing an external URL set up by a script.
46 /// </summary>
47 public class UrlData 44 public class UrlData
48 { 45 {
49 /// <summary>
50 /// Scene object part hosting the script
51 /// </summary>
52 public UUID hostID; 46 public UUID hostID;
53
54 /// <summary>
55 /// The item ID of the script that requested the URL.
56 /// </summary>
57 public UUID itemID; 47 public UUID itemID;
58
59 /// <summary>
60 /// The script engine that runs the script.
61 /// </summary>
62 public IScriptModule engine; 48 public IScriptModule engine;
63
64 /// <summary>
65 /// The generated URL.
66 /// </summary>
67 public string url; 49 public string url;
68
69 /// <summary>
70 /// The random UUID component of the generated URL.
71 /// </summary>
72 public UUID urlcode; 50 public UUID urlcode;
73
74 /// <summary>
75 /// The external requests currently being processed or awaiting retrieval for this URL.
76 /// </summary>
77 public Dictionary<UUID, RequestData> requests; 51 public Dictionary<UUID, RequestData> requests;
78 } 52 }
79 53
@@ -87,37 +61,26 @@ namespace OpenSim.Region.CoreModules.Scripting.LSLHttp
87 //public ManualResetEvent ev; 61 //public ManualResetEvent ev;
88 public bool requestDone; 62 public bool requestDone;
89 public int startTime; 63 public int startTime;
64 public bool responseSent;
90 public string uri; 65 public string uri;
91 } 66 }
92 67
93 /// <summary>
94 /// This module provides external URLs for in-world scripts.
95 /// </summary>
96 public class UrlModule : ISharedRegionModule, IUrlModule 68 public class UrlModule : ISharedRegionModule, IUrlModule
97 { 69 {
98 private static readonly ILog m_log = 70 private static readonly ILog m_log =
99 LogManager.GetLogger( 71 LogManager.GetLogger(
100 MethodBase.GetCurrentMethod().DeclaringType); 72 MethodBase.GetCurrentMethod().DeclaringType);
101 73
102 /// <summary> 74 private Dictionary<UUID, UrlData> m_RequestMap =
103 /// Indexs the URL request metadata (which script requested it, outstanding requests, etc.) by the request ID 75 new Dictionary<UUID, UrlData>();
104 /// randomly generated when a request is received for this URL.
105 /// </summary>
106 /// <remarks>
107 /// Manipulation or retrieval from this dictionary must be locked on m_UrlMap to preserve consistency with
108 /// m_UrlMap
109 /// </remarks>
110 private Dictionary<UUID, UrlData> m_RequestMap = new Dictionary<UUID, UrlData>();
111 76
112 /// <summary> 77 private Dictionary<string, UrlData> m_UrlMap =
113 /// Indexs the URL request metadata (which script requested it, outstanding requests, etc.) by the full URL 78 new Dictionary<string, UrlData>();
114 /// </summary>
115 private Dictionary<string, UrlData> m_UrlMap = new Dictionary<string, UrlData>();
116 79
117 /// <summary> 80 /// <summary>
118 /// Maximum number of external urls that can be set up by this module. 81 /// Maximum number of external urls that can be set up by this module.
119 /// </summary> 82 /// </summary>
120 private int m_TotalUrls = 100; 83 private int m_TotalUrls = 5000;
121 84
122 private uint https_port = 0; 85 private uint https_port = 0;
123 private IHttpServer m_HttpServer = null; 86 private IHttpServer m_HttpServer = null;
@@ -143,9 +106,10 @@ namespace OpenSim.Region.CoreModules.Scripting.LSLHttp
143 { 106 {
144 m_ExternalHostNameForLSL = config.Configs["Network"].GetString("ExternalHostNameForLSL", System.Environment.MachineName); 107 m_ExternalHostNameForLSL = config.Configs["Network"].GetString("ExternalHostNameForLSL", System.Environment.MachineName);
145 bool ssl_enabled = config.Configs["Network"].GetBoolean("https_listener",false); 108 bool ssl_enabled = config.Configs["Network"].GetBoolean("https_listener",false);
146
147 if (ssl_enabled) 109 if (ssl_enabled)
110 {
148 https_port = (uint) config.Configs["Network"].GetInt("https_port",0); 111 https_port = (uint) config.Configs["Network"].GetInt("https_port",0);
112 }
149 113
150 IConfig llFunctionsConfig = config.Configs["LL-Functions"]; 114 IConfig llFunctionsConfig = config.Configs["LL-Functions"];
151 115
@@ -206,7 +170,7 @@ namespace OpenSim.Region.CoreModules.Scripting.LSLHttp
206 engine.PostScriptEvent(itemID, "http_request", new Object[] { urlcode.ToString(), "URL_REQUEST_DENIED", "" }); 170 engine.PostScriptEvent(itemID, "http_request", new Object[] { urlcode.ToString(), "URL_REQUEST_DENIED", "" });
207 return urlcode; 171 return urlcode;
208 } 172 }
209 string url = "http://" + m_ExternalHostNameForLSL + ":" + m_HttpServer.Port.ToString() + "/lslhttp/" + urlcode.ToString() + "/"; 173 string url = "http://" + m_ExternalHostNameForLSL + ":" + m_HttpServer.Port.ToString() + "/lslhttp/" + urlcode.ToString();
210 174
211 UrlData urlData = new UrlData(); 175 UrlData urlData = new UrlData();
212 urlData.hostID = host.UUID; 176 urlData.hostID = host.UUID;
@@ -215,10 +179,10 @@ namespace OpenSim.Region.CoreModules.Scripting.LSLHttp
215 urlData.url = url; 179 urlData.url = url;
216 urlData.urlcode = urlcode; 180 urlData.urlcode = urlcode;
217 urlData.requests = new Dictionary<UUID, RequestData>(); 181 urlData.requests = new Dictionary<UUID, RequestData>();
218 182
219 m_UrlMap[url] = urlData; 183 m_UrlMap[url] = urlData;
220 184
221 string uri = "/lslhttp/" + urlcode.ToString() + "/"; 185 string uri = "/lslhttp/" + urlcode.ToString();
222 186
223 m_HttpServer.AddPollServiceHTTPHandler( 187 m_HttpServer.AddPollServiceHTTPHandler(
224 uri, 188 uri,
@@ -261,6 +225,7 @@ namespace OpenSim.Region.CoreModules.Scripting.LSLHttp
261 urlData.urlcode = urlcode; 225 urlData.urlcode = urlcode;
262 urlData.requests = new Dictionary<UUID, RequestData>(); 226 urlData.requests = new Dictionary<UUID, RequestData>();
263 227
228
264 m_UrlMap[url] = urlData; 229 m_UrlMap[url] = urlData;
265 230
266 string uri = "/lslhttps/" + urlcode.ToString() + "/"; 231 string uri = "/lslhttps/" + urlcode.ToString() + "/";
@@ -290,12 +255,15 @@ namespace OpenSim.Region.CoreModules.Scripting.LSLHttp
290 return; 255 return;
291 } 256 }
292 257
293 foreach (UUID req in data.requests.Keys) 258 lock (m_RequestMap)
294 m_RequestMap.Remove(req); 259 {
295 260 foreach (UUID req in data.requests.Keys)
296 m_log.DebugFormat( 261 m_RequestMap.Remove(req);
297 "[URL MODULE]: Releasing url {0} for {1} in {2}", 262 }
298 url, data.itemID, data.hostID); 263
264// m_log.DebugFormat(
265// "[URL MODULE]: Releasing url {0} for {1} in {2}",
266// url, data.itemID, data.hostID);
299 267
300 RemoveUrl(data); 268 RemoveUrl(data);
301 m_UrlMap.Remove(url); 269 m_UrlMap.Remove(url);
@@ -304,15 +272,19 @@ namespace OpenSim.Region.CoreModules.Scripting.LSLHttp
304 272
305 public void HttpResponse(UUID request, int status, string body) 273 public void HttpResponse(UUID request, int status, string body)
306 { 274 {
307 lock (m_UrlMap) 275 lock (m_RequestMap)
308 { 276 {
309 if (m_RequestMap.ContainsKey(request)) 277 if (m_RequestMap.ContainsKey(request))
310 { 278 {
311 UrlData urlData = m_RequestMap[request]; 279 UrlData urlData = m_RequestMap[request];
312 urlData.requests[request].responseCode = status; 280 if (!urlData.requests[request].responseSent)
313 urlData.requests[request].responseBody = body; 281 {
314 //urlData.requests[request].ev.Set(); 282 urlData.requests[request].responseCode = status;
315 urlData.requests[request].requestDone =true; 283 urlData.requests[request].responseBody = body;
284 //urlData.requests[request].ev.Set();
285 urlData.requests[request].requestDone = true;
286 urlData.requests[request].responseSent = true;
287 }
316 } 288 }
317 else 289 else
318 { 290 {
@@ -323,7 +295,7 @@ namespace OpenSim.Region.CoreModules.Scripting.LSLHttp
323 295
324 public string GetHttpHeader(UUID requestId, string header) 296 public string GetHttpHeader(UUID requestId, string header)
325 { 297 {
326 lock (m_UrlMap) 298 lock (m_RequestMap)
327 { 299 {
328 if (m_RequestMap.ContainsKey(requestId)) 300 if (m_RequestMap.ContainsKey(requestId))
329 { 301 {
@@ -337,14 +309,12 @@ namespace OpenSim.Region.CoreModules.Scripting.LSLHttp
337 m_log.Warn("[HttpRequestHandler] There was no http-in request with id " + requestId); 309 m_log.Warn("[HttpRequestHandler] There was no http-in request with id " + requestId);
338 } 310 }
339 } 311 }
340
341 return String.Empty; 312 return String.Empty;
342 } 313 }
343 314
344 public int GetFreeUrls() 315 public int GetFreeUrls()
345 { 316 {
346 lock (m_UrlMap) 317 return m_TotalUrls - m_UrlMap.Count;
347 return m_TotalUrls - m_UrlMap.Count;
348 } 318 }
349 319
350 public void ScriptRemoved(UUID itemID) 320 public void ScriptRemoved(UUID itemID)
@@ -361,8 +331,11 @@ namespace OpenSim.Region.CoreModules.Scripting.LSLHttp
361 { 331 {
362 RemoveUrl(url.Value); 332 RemoveUrl(url.Value);
363 removeURLs.Add(url.Key); 333 removeURLs.Add(url.Key);
364 foreach (UUID req in url.Value.requests.Keys) 334 lock (m_RequestMap)
365 m_RequestMap.Remove(req); 335 {
336 foreach (UUID req in url.Value.requests.Keys)
337 m_RequestMap.Remove(req);
338 }
366 } 339 }
367 } 340 }
368 341
@@ -383,9 +356,11 @@ namespace OpenSim.Region.CoreModules.Scripting.LSLHttp
383 { 356 {
384 RemoveUrl(url.Value); 357 RemoveUrl(url.Value);
385 removeURLs.Add(url.Key); 358 removeURLs.Add(url.Key);
386 359 lock (m_RequestMap)
387 foreach (UUID req in url.Value.requests.Keys) 360 {
388 m_RequestMap.Remove(req); 361 foreach (UUID req in url.Value.requests.Keys)
362 m_RequestMap.Remove(req);
363 }
389 } 364 }
390 } 365 }
391 366
@@ -394,122 +369,125 @@ namespace OpenSim.Region.CoreModules.Scripting.LSLHttp
394 } 369 }
395 } 370 }
396 371
372
397 private void RemoveUrl(UrlData data) 373 private void RemoveUrl(UrlData data)
398 { 374 {
399 m_HttpServer.RemoveHTTPHandler("", "/lslhttp/" + data.urlcode.ToString() + "/"); 375 m_HttpServer.RemoveHTTPHandler("", "/lslhttp/"+data.urlcode.ToString()+"/");
400 } 376 }
401 377
402 private Hashtable NoEvents(UUID requestID, UUID sessionID) 378 private Hashtable NoEvents(UUID requestID, UUID sessionID)
403 { 379 {
404 Hashtable response = new Hashtable(); 380 Hashtable response = new Hashtable();
405 UrlData urlData; 381 UrlData url;
406 382 int startTime = 0;
407 lock (m_UrlMap) 383 lock (m_RequestMap)
408 { 384 {
409 // We need to return a 404 here in case the request URL was removed at exactly the same time that a
410 // request was made. In this case, the request thread can outrace llRemoveURL() and still be polling
411 // for the request ID.
412 if (!m_RequestMap.ContainsKey(requestID)) 385 if (!m_RequestMap.ContainsKey(requestID))
413 {
414 response["int_response_code"] = 404;
415 response["str_response_string"] = "";
416 response["keepalive"] = false;
417 response["reusecontext"] = false;
418
419 return response; 386 return response;
420 } 387 url = m_RequestMap[requestID];
388 startTime = url.requests[requestID].startTime;
389 }
421 390
422 urlData = m_RequestMap[requestID]; 391 if (System.Environment.TickCount - startTime > 25000)
392 {
393 response["int_response_code"] = 500;
394 response["str_response_string"] = "Script timeout";
395 response["content_type"] = "text/plain";
396 response["keepalive"] = false;
397 response["reusecontext"] = false;
423 398
424 if (System.Environment.TickCount - urlData.requests[requestID].startTime > 25000) 399 //remove from map
400 lock (url.requests)
401 {
402 url.requests.Remove(requestID);
403 }
404 lock (m_RequestMap)
425 { 405 {
426 response["int_response_code"] = 500;
427 response["str_response_string"] = "Script timeout";
428 response["content_type"] = "text/plain";
429 response["keepalive"] = false;
430 response["reusecontext"] = false;
431
432 //remove from map
433 urlData.requests.Remove(requestID);
434 m_RequestMap.Remove(requestID); 406 m_RequestMap.Remove(requestID);
435
436 return response;
437 } 407 }
408
409 return response;
438 } 410 }
439 411
412
440 return response; 413 return response;
441 } 414 }
442 415
443 private bool HasEvents(UUID requestID, UUID sessionID) 416 private bool HasEvents(UUID requestID, UUID sessionID)
444 { 417 {
445 lock (m_UrlMap) 418 UrlData url=null;
419
420 lock (m_RequestMap)
446 { 421 {
447 // We return true here because an external URL request that happened at the same time as an llRemoveURL()
448 // can still make it through to HttpRequestHandler(). That will return without setting up a request
449 // when it detects that the URL has been removed. The poller, however, will continue to ask for
450 // events for that request, so here we will signal that there are events and in GetEvents we will
451 // return a 404.
452 if (!m_RequestMap.ContainsKey(requestID)) 422 if (!m_RequestMap.ContainsKey(requestID))
453 { 423 {
454 return true; 424 return false;
455 } 425 }
456 426 url = m_RequestMap[requestID];
457 UrlData urlData = m_RequestMap[requestID]; 427 }
458 428 lock (url.requests)
459 if (!urlData.requests.ContainsKey(requestID)) 429 {
430 if (!url.requests.ContainsKey(requestID))
460 { 431 {
461 return true; 432 return false;
462 } 433 }
463 434 else
464 // Trigger return of timeout response.
465 if (System.Environment.TickCount - urlData.requests[requestID].startTime > 25000)
466 { 435 {
467 return true; 436 if (System.Environment.TickCount - url.requests[requestID].startTime > 25000)
437 {
438 return true;
439 }
440 if (url.requests[requestID].requestDone)
441 return true;
442 else
443 return false;
468 } 444 }
469
470 return urlData.requests[requestID].requestDone;
471 } 445 }
472 } 446 }
473
474 private Hashtable GetEvents(UUID requestID, UUID sessionID, string request) 447 private Hashtable GetEvents(UUID requestID, UUID sessionID, string request)
475 { 448 {
476 Hashtable response; 449 UrlData url = null;
450 RequestData requestData = null;
477 451
478 lock (m_UrlMap) 452 lock (m_RequestMap)
479 { 453 {
480 UrlData url = null;
481 RequestData requestData = null;
482
483 if (!m_RequestMap.ContainsKey(requestID)) 454 if (!m_RequestMap.ContainsKey(requestID))
484 return NoEvents(requestID, sessionID); 455 return NoEvents(requestID,sessionID);
485
486 url = m_RequestMap[requestID]; 456 url = m_RequestMap[requestID];
457 }
458 lock (url.requests)
459 {
487 requestData = url.requests[requestID]; 460 requestData = url.requests[requestID];
461 }
462
463 if (!requestData.requestDone)
464 return NoEvents(requestID,sessionID);
465
466 Hashtable response = new Hashtable();
488 467
489 if (!requestData.requestDone) 468 if (System.Environment.TickCount - requestData.startTime > 25000)
490 return NoEvents(requestID, sessionID); 469 {
491 470 response["int_response_code"] = 500;
492 response = new Hashtable(); 471 response["str_response_string"] = "Script timeout";
493
494 if (System.Environment.TickCount - requestData.startTime > 25000)
495 {
496 response["int_response_code"] = 500;
497 response["str_response_string"] = "Script timeout";
498 response["content_type"] = "text/plain";
499 response["keepalive"] = false;
500 response["reusecontext"] = false;
501 return response;
502 }
503
504 //put response
505 response["int_response_code"] = requestData.responseCode;
506 response["str_response_string"] = requestData.responseBody;
507 response["content_type"] = "text/plain"; 472 response["content_type"] = "text/plain";
508 response["keepalive"] = false; 473 response["keepalive"] = false;
509 response["reusecontext"] = false; 474 response["reusecontext"] = false;
510 475 return response;
511 //remove from map 476 }
477 //put response
478 response["int_response_code"] = requestData.responseCode;
479 response["str_response_string"] = requestData.responseBody;
480 response["content_type"] = "text/plain";
481 response["keepalive"] = false;
482 response["reusecontext"] = false;
483
484 //remove from map
485 lock (url.requests)
486 {
512 url.requests.Remove(requestID); 487 url.requests.Remove(requestID);
488 }
489 lock (m_RequestMap)
490 {
513 m_RequestMap.Remove(requestID); 491 m_RequestMap.Remove(requestID);
514 } 492 }
515 493
@@ -518,41 +496,44 @@ namespace OpenSim.Region.CoreModules.Scripting.LSLHttp
518 496
519 public void HttpRequestHandler(UUID requestID, Hashtable request) 497 public void HttpRequestHandler(UUID requestID, Hashtable request)
520 { 498 {
521 string uri = request["uri"].ToString(); 499 lock (request)
522 bool is_ssl = uri.Contains("lslhttps");
523
524 try
525 { 500 {
526 Hashtable headers = (Hashtable)request["headers"]; 501 string uri = request["uri"].ToString();
527 502 bool is_ssl = uri.Contains("lslhttps");
528// string uri_full = "http://" + m_ExternalHostNameForLSL + ":" + m_HttpServer.Port.ToString() + uri;// "/lslhttp/" + urlcode.ToString() + "/";
529 503
530 int pos1 = uri.IndexOf("/");// /lslhttp 504 try
531 int pos2 = uri.IndexOf("/", pos1 + 1);// /lslhttp/
532 int pos3 = uri.IndexOf("/", pos2 + 1);// /lslhttp/<UUID>/
533 string uri_tmp = uri.Substring(0, pos3 + 1);
534 //HTTP server code doesn't provide us with QueryStrings
535 string pathInfo;
536 string queryString;
537 queryString = "";
538
539 pathInfo = uri.Substring(pos3);
540
541 UrlData urlData = null;
542
543 lock (m_UrlMap)
544 { 505 {
545 string url; 506 Hashtable headers = (Hashtable)request["headers"];
507
508// string uri_full = "http://" + m_ExternalHostNameForLSL + ":" + m_HttpServer.Port.ToString() + uri;// "/lslhttp/" + urlcode.ToString() + "/";
546 509
547 if (is_ssl) 510 int pos1 = uri.IndexOf("/");// /lslhttp
548 url = "https://" + m_ExternalHostNameForLSL + ":" + m_HttpsServer.Port.ToString() + uri_tmp; 511 int pos2 = uri.IndexOf("/", pos1 + 1);// /lslhttp/
512 int pos3 = pos2 + 37; // /lslhttp/urlcode
513 string uri_tmp = uri.Substring(0, pos3);
514 //HTTP server code doesn't provide us with QueryStrings
515 string pathInfo;
516 string queryString;
517 queryString = "";
518
519 pathInfo = uri.Substring(pos3);
520
521 UrlData url = null;
522 string urlkey;
523 if (!is_ssl)
524 urlkey = "http://" + m_ExternalHostNameForLSL + ":" + m_HttpServer.Port.ToString() + uri_tmp;
525 //m_UrlMap[];
549 else 526 else
550 url = "http://" + m_ExternalHostNameForLSL + ":" + m_HttpServer.Port.ToString() + uri_tmp; 527 urlkey = "https://" + m_ExternalHostNameForLSL + ":" + m_HttpsServer.Port.ToString() + uri_tmp;
551 528
552 // Avoid a race - the request URL may have been released via llRequestUrl() whilst this 529 if (m_UrlMap.ContainsKey(urlkey))
553 // request was being processed. 530 {
554 if (!m_UrlMap.TryGetValue(url, out urlData)) 531 url = m_UrlMap[urlkey];
555 return; 532 }
533 else
534 {
535 m_log.Warn("[HttpRequestHandler]: http-in request failed; no such url: "+urlkey.ToString());
536 }
556 537
557 //for llGetHttpHeader support we need to store original URI here 538 //for llGetHttpHeader support we need to store original URI here
558 //to make x-path-info / x-query-string / x-script-url / x-remote-ip headers 539 //to make x-path-info / x-query-string / x-script-url / x-remote-ip headers
@@ -572,7 +553,6 @@ namespace OpenSim.Region.CoreModules.Scripting.LSLHttp
572 string value = (string)header.Value; 553 string value = (string)header.Value;
573 requestData.headers.Add(key, value); 554 requestData.headers.Add(key, value);
574 } 555 }
575
576 foreach (DictionaryEntry de in request) 556 foreach (DictionaryEntry de in request)
577 { 557 {
578 if (de.Key.ToString() == "querystringkeys") 558 if (de.Key.ToString() == "querystringkeys")
@@ -583,13 +563,21 @@ namespace OpenSim.Region.CoreModules.Scripting.LSLHttp
583 if (request.ContainsKey(key)) 563 if (request.ContainsKey(key))
584 { 564 {
585 string val = (String)request[key]; 565 string val = (String)request[key];
586 queryString = queryString + key + "=" + val + "&"; 566 if (key != "")
567 {
568 queryString = queryString + key + "=" + val + "&";
569 }
570 else
571 {
572 queryString = queryString + val + "&";
573 }
587 } 574 }
588 } 575 }
589
590 if (queryString.Length > 1) 576 if (queryString.Length > 1)
591 queryString = queryString.Substring(0, queryString.Length - 1); 577 queryString = queryString.Substring(0, queryString.Length - 1);
578
592 } 579 }
580
593 } 581 }
594 582
595 //if this machine is behind DNAT/port forwarding, currently this is being 583 //if this machine is behind DNAT/port forwarding, currently this is being
@@ -597,23 +585,34 @@ namespace OpenSim.Region.CoreModules.Scripting.LSLHttp
597 requestData.headers["x-remote-ip"] = requestData.headers["remote_addr"]; 585 requestData.headers["x-remote-ip"] = requestData.headers["remote_addr"];
598 requestData.headers["x-path-info"] = pathInfo; 586 requestData.headers["x-path-info"] = pathInfo;
599 requestData.headers["x-query-string"] = queryString; 587 requestData.headers["x-query-string"] = queryString;
600 requestData.headers["x-script-url"] = urlData.url; 588 requestData.headers["x-script-url"] = url.url;
601 589
602 urlData.requests.Add(requestID, requestData); 590 //requestData.ev = new ManualResetEvent(false);
603 m_RequestMap.Add(requestID, urlData); 591 lock (url.requests)
604 } 592 {
593 url.requests.Add(requestID, requestData);
594 }
595 lock (m_RequestMap)
596 {
597 //add to request map
598 m_RequestMap.Add(requestID, url);
599 }
605 600
606 urlData.engine.PostScriptEvent( 601 url.engine.PostScriptEvent(url.itemID, "http_request", new Object[] { requestID.ToString(), request["http-method"].ToString(), request["body"].ToString() });
607 urlData.itemID, 602
608 "http_request", 603 //send initial response?
609 new Object[] { requestID.ToString(), request["http-method"].ToString(), request["body"].ToString() }); 604// Hashtable response = new Hashtable();
610 } 605
611 catch (Exception we) 606 return;
612 { 607
613 //Hashtable response = new Hashtable(); 608 }
614 m_log.Warn("[HttpRequestHandler]: http-in request failed"); 609 catch (Exception we)
615 m_log.Warn(we.Message); 610 {
616 m_log.Warn(we.StackTrace); 611 //Hashtable response = new Hashtable();
612 m_log.Warn("[HttpRequestHandler]: http-in request failed");
613 m_log.Warn(we.Message);
614 m_log.Warn(we.StackTrace);
615 }
617 } 616 }
618 } 617 }
619 618
@@ -622,4 +621,4 @@ namespace OpenSim.Region.CoreModules.Scripting.LSLHttp
622 ScriptRemoved(itemID); 621 ScriptRemoved(itemID);
623 } 622 }
624 } 623 }
625} \ No newline at end of file 624}
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/MapImage/MapImageServiceModule.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/MapImage/MapImageServiceModule.cs
index 322a9f8..6cd077a 100644
--- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/MapImage/MapImageServiceModule.cs
+++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/MapImage/MapImageServiceModule.cs
@@ -93,8 +93,8 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.MapImage
93 if (config == null) 93 if (config == null)
94 return; 94 return;
95 95
96 int refreshminutes = Convert.ToInt32(config.GetString("RefreshTime")); 96 int refreshminutes = Convert.ToInt32(config.GetString("RefreshTime", "-1"));
97 if (refreshminutes <= 0) 97 if (refreshminutes < 0)
98 { 98 {
99 m_log.WarnFormat("[MAP IMAGE SERVICE MODULE]: No refresh time given in config. Module disabled."); 99 m_log.WarnFormat("[MAP IMAGE SERVICE MODULE]: No refresh time given in config. Module disabled.");
100 return; 100 return;
@@ -117,12 +117,15 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.MapImage
117 return; 117 return;
118 } 118 }
119 119
120 m_refreshTimer.Enabled = true; 120 if (m_refreshtime > 0)
121 m_refreshTimer.AutoReset = true; 121 {
122 m_refreshTimer.Interval = m_refreshtime; 122 m_refreshTimer.Enabled = true;
123 m_refreshTimer.Elapsed += new ElapsedEventHandler(HandleMaptileRefresh); 123 m_refreshTimer.AutoReset = true;
124 m_refreshTimer.Interval = m_refreshtime;
125 m_refreshTimer.Elapsed += new ElapsedEventHandler(HandleMaptileRefresh);
126 }
124 127
125 m_log.InfoFormat("[MAP IMAGE SERVICE MODULE]: enabled with refresh time {0}min and service object {1}", 128 m_log.InfoFormat("[MAP IMAGE SERVICE MODULE]: enabled with refresh time {0} min and service object {1}",
126 refreshminutes, service); 129 refreshminutes, service);
127 130
128 m_enabled = true; 131 m_enabled = true;
@@ -247,4 +250,4 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.MapImage
247 } 250 }
248 } 251 }
249 } 252 }
250} \ No newline at end of file 253}
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Simulation/LocalSimulationConnector.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Simulation/LocalSimulationConnector.cs
index 026c6c8..008992e 100644
--- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Simulation/LocalSimulationConnector.cs
+++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Simulation/LocalSimulationConnector.cs
@@ -301,6 +301,11 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Simulation
301 return false; 301 return false;
302 } 302 }
303 303
304 public bool CloseChildAgent(GridRegion destination, UUID id)
305 {
306 return CloseAgent(destination, id);
307 }
308
304 public bool CloseAgent(GridRegion destination, UUID id) 309 public bool CloseAgent(GridRegion destination, UUID id)
305 { 310 {
306 if (destination == null) 311 if (destination == null)
@@ -308,14 +313,9 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Simulation
308 313
309 if (m_scenes.ContainsKey(destination.RegionID)) 314 if (m_scenes.ContainsKey(destination.RegionID))
310 { 315 {
311// m_log.DebugFormat(
312// "[LOCAL SIMULATION CONNECTOR]: Found region {0} {1} to send AgentUpdate",
313// s.RegionInfo.RegionName, destination.RegionHandle);
314
315 Util.FireAndForget(delegate { m_scenes[destination.RegionID].IncomingCloseAgent(id); }); 316 Util.FireAndForget(delegate { m_scenes[destination.RegionID].IncomingCloseAgent(id); });
316 return true; 317 return true;
317 } 318 }
318
319 //m_log.Debug("[LOCAL COMMS]: region not found in SendCloseAgent"); 319 //m_log.Debug("[LOCAL COMMS]: region not found in SendCloseAgent");
320 return false; 320 return false;
321 } 321 }
@@ -392,4 +392,4 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Simulation
392 392
393 #endregion 393 #endregion
394 } 394 }
395} \ No newline at end of file 395}
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Simulation/RemoteSimulationConnector.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Simulation/RemoteSimulationConnector.cs
index f980f68..d395413 100644
--- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/Simulation/RemoteSimulationConnector.cs
+++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/Simulation/RemoteSimulationConnector.cs
@@ -260,6 +260,21 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.Simulation
260 return false; 260 return false;
261 } 261 }
262 262
263 public bool CloseChildAgent(GridRegion destination, UUID id)
264 {
265 if (destination == null)
266 return false;
267
268 // Try local first
269 if (m_localBackend.CloseChildAgent(destination, id))
270 return true;
271
272 // else do the remote thing
273 if (!m_localBackend.IsLocalRegion(destination.RegionHandle))
274 return m_remoteConnector.CloseChildAgent(destination, id);
275
276 return false;
277 }
263 278
264 public bool CloseAgent(GridRegion destination, UUID id) 279 public bool CloseAgent(GridRegion destination, UUID id)
265 { 280 {
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/UserAccounts/LocalUserAccountServiceConnector.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/UserAccounts/LocalUserAccountServiceConnector.cs
index 0a0ce3c..1ffd480 100644
--- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/UserAccounts/LocalUserAccountServiceConnector.cs
+++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/UserAccounts/LocalUserAccountServiceConnector.cs
@@ -127,6 +127,7 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.UserAccounts
127 // FIXME: Why do we bother setting this module and caching up if we just end up registering the inner 127 // FIXME: Why do we bother setting this module and caching up if we just end up registering the inner
128 // user account service?! 128 // user account service?!
129 scene.RegisterModuleInterface<IUserAccountService>(UserAccountService); 129 scene.RegisterModuleInterface<IUserAccountService>(UserAccountService);
130 scene.RegisterModuleInterface<IUserAccountCacheModule>(m_Cache);
130 } 131 }
131 132
132 public void RemoveRegion(Scene scene) 133 public void RemoveRegion(Scene scene)
@@ -179,6 +180,11 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.UserAccounts
179 return UserAccountService.GetUserAccount(scopeID, Email); 180 return UserAccountService.GetUserAccount(scopeID, Email);
180 } 181 }
181 182
183 public List<UserAccount> GetUserAccountsWhere(UUID scopeID, string query)
184 {
185 return null;
186 }
187
182 public List<UserAccount> GetUserAccounts(UUID scopeID, string query) 188 public List<UserAccount> GetUserAccounts(UUID scopeID, string query)
183 { 189 {
184 return UserAccountService.GetUserAccounts(scopeID, query); 190 return UserAccountService.GetUserAccounts(scopeID, query);
@@ -193,4 +199,4 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.UserAccounts
193 199
194 #endregion 200 #endregion
195 } 201 }
196} \ No newline at end of file 202}
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/UserAccounts/RemoteUserAccountServiceConnector.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/UserAccounts/RemoteUserAccountServiceConnector.cs
index 3321b38..f6b6aeb 100644
--- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/UserAccounts/RemoteUserAccountServiceConnector.cs
+++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/UserAccounts/RemoteUserAccountServiceConnector.cs
@@ -33,6 +33,7 @@ using OpenSim.Region.Framework.Interfaces;
33using OpenSim.Region.Framework.Scenes; 33using OpenSim.Region.Framework.Scenes;
34using OpenSim.Services.Interfaces; 34using OpenSim.Services.Interfaces;
35using OpenSim.Services.Connectors; 35using OpenSim.Services.Connectors;
36using OpenSim.Framework;
36 37
37using OpenMetaverse; 38using OpenMetaverse;
38 39
@@ -101,6 +102,9 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.UserAccounts
101 return; 102 return;
102 103
103 scene.RegisterModuleInterface<IUserAccountService>(this); 104 scene.RegisterModuleInterface<IUserAccountService>(this);
105 scene.RegisterModuleInterface<IUserAccountCacheModule>(m_Cache);
106
107 scene.EventManager.OnNewClient += OnNewClient;
104 } 108 }
105 109
106 public void RemoveRegion(Scene scene) 110 public void RemoveRegion(Scene scene)
@@ -115,6 +119,14 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.UserAccounts
115 return; 119 return;
116 } 120 }
117 121
122 // When a user actually enters the sim, clear them from
123 // cache so the sim will have the current values for
124 // flags, title, etc. And country, don't forget country!
125 private void OnNewClient(IClientAPI client)
126 {
127 m_Cache.Remove(client.Name);
128 }
129
118 #region Overwritten methods from IUserAccountService 130 #region Overwritten methods from IUserAccountService
119 131
120 public override UserAccount GetUserAccount(UUID scopeID, UUID userID) 132 public override UserAccount GetUserAccount(UUID scopeID, UUID userID)
diff --git a/OpenSim/Region/CoreModules/ServiceConnectorsOut/UserAccounts/UserAccountCache.cs b/OpenSim/Region/CoreModules/ServiceConnectorsOut/UserAccounts/UserAccountCache.cs
index ddef75f..cbe2eaa 100644
--- a/OpenSim/Region/CoreModules/ServiceConnectorsOut/UserAccounts/UserAccountCache.cs
+++ b/OpenSim/Region/CoreModules/ServiceConnectorsOut/UserAccounts/UserAccountCache.cs
@@ -34,7 +34,7 @@ using log4net;
34 34
35namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.UserAccounts 35namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.UserAccounts
36{ 36{
37 public class UserAccountCache 37 public class UserAccountCache : IUserAccountCacheModule
38 { 38 {
39 private const double CACHE_EXPIRATION_SECONDS = 120000.0; // 33 hours! 39 private const double CACHE_EXPIRATION_SECONDS = 120000.0; // 33 hours!
40 40
@@ -92,5 +92,18 @@ namespace OpenSim.Region.CoreModules.ServiceConnectorsOut.UserAccounts
92 92
93 return null; 93 return null;
94 } 94 }
95
96 public void Remove(string name)
97 {
98 if (!m_NameCache.Contains(name))
99 return;
100
101 UUID uuid = UUID.Zero;
102 if (m_NameCache.TryGetValue(name, out uuid))
103 {
104 m_NameCache.Remove(name);
105 m_UUIDCache.Remove(uuid);
106 }
107 }
95 } 108 }
96} 109}
diff --git a/OpenSim/Region/CoreModules/World/Archiver/ArchiveReadRequest.cs b/OpenSim/Region/CoreModules/World/Archiver/ArchiveReadRequest.cs
index 2b61800..619550c 100644
--- a/OpenSim/Region/CoreModules/World/Archiver/ArchiveReadRequest.cs
+++ b/OpenSim/Region/CoreModules/World/Archiver/ArchiveReadRequest.cs
@@ -311,6 +311,23 @@ namespace OpenSim.Region.CoreModules.World.Archiver
311 // being no copy/no mod for everyone 311 // being no copy/no mod for everyone
312 lock (part.TaskInventory) 312 lock (part.TaskInventory)
313 { 313 {
314 if (!ResolveUserUuid(part.CreatorID))
315 part.CreatorID = m_scene.RegionInfo.EstateSettings.EstateOwner;
316
317 if (!ResolveUserUuid(part.OwnerID))
318 part.OwnerID = m_scene.RegionInfo.EstateSettings.EstateOwner;
319
320 if (!ResolveUserUuid(part.LastOwnerID))
321 part.LastOwnerID = m_scene.RegionInfo.EstateSettings.EstateOwner;
322
323 // And zap any troublesome sit target information
324 part.SitTargetOrientation = new Quaternion(0, 0, 0, 1);
325 part.SitTargetPosition = new Vector3(0, 0, 0);
326
327 // Fix ownership/creator of inventory items
328 // Not doing so results in inventory items
329 // being no copy/no mod for everyone
330 part.TaskInventory.LockItemsForRead(true);
314 TaskInventoryDictionary inv = part.TaskInventory; 331 TaskInventoryDictionary inv = part.TaskInventory;
315 foreach (KeyValuePair<UUID, TaskInventoryItem> kvp in inv) 332 foreach (KeyValuePair<UUID, TaskInventoryItem> kvp in inv)
316 { 333 {
@@ -326,6 +343,7 @@ namespace OpenSim.Region.CoreModules.World.Archiver
326 if (UserManager != null) 343 if (UserManager != null)
327 UserManager.AddUser(kvp.Value.CreatorID, kvp.Value.CreatorData); 344 UserManager.AddUser(kvp.Value.CreatorID, kvp.Value.CreatorData);
328 } 345 }
346 part.TaskInventory.LockItemsForRead(false);
329 } 347 }
330 } 348 }
331 349
diff --git a/OpenSim/Region/CoreModules/World/Archiver/AssetsRequest.cs b/OpenSim/Region/CoreModules/World/Archiver/AssetsRequest.cs
index 55110dc..1eb641d 100644
--- a/OpenSim/Region/CoreModules/World/Archiver/AssetsRequest.cs
+++ b/OpenSim/Region/CoreModules/World/Archiver/AssetsRequest.cs
@@ -253,18 +253,14 @@ namespace OpenSim.Region.CoreModules.World.Archiver
253 253
254 if (asset != null) 254 if (asset != null)
255 { 255 {
256 if (m_options.ContainsKey("verbose")) 256// m_log.DebugFormat("[ARCHIVER]: Writing asset {0}", id);
257 m_log.InfoFormat("[ARCHIVER]: Writing asset {0}", id);
258
259 m_foundAssetUuids.Add(asset.FullID); 257 m_foundAssetUuids.Add(asset.FullID);
260 258
261 m_assetsArchiver.WriteAsset(PostProcess(asset)); 259 m_assetsArchiver.WriteAsset(PostProcess(asset));
262 } 260 }
263 else 261 else
264 { 262 {
265 if (m_options.ContainsKey("verbose")) 263// m_log.DebugFormat("[ARCHIVER]: Recording asset {0} as not found", id);
266 m_log.InfoFormat("[ARCHIVER]: Recording asset {0} as not found", id);
267
268 m_notFoundAssetUuids.Add(new UUID(id)); 264 m_notFoundAssetUuids.Add(new UUID(id));
269 } 265 }
270 266
diff --git a/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs b/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs
index 58bbd24..fdef9d8 100644
--- a/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs
+++ b/OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs
@@ -32,6 +32,7 @@ using System.IO;
32using System.Linq; 32using System.Linq;
33using System.Reflection; 33using System.Reflection;
34using System.Security; 34using System.Security;
35using System.Timers;
35using log4net; 36using log4net;
36using Mono.Addins; 37using Mono.Addins;
37using Nini.Config; 38using Nini.Config;
@@ -47,6 +48,7 @@ namespace OpenSim.Region.CoreModules.World.Estate
47 { 48 {
48 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); 49 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
49 50
51 private Timer m_regionChangeTimer = new Timer();
50 public Scene Scene { get; private set; } 52 public Scene Scene { get; private set; }
51 public IUserManagement UserManager { get; private set; } 53 public IUserManagement UserManager { get; private set; }
52 54
@@ -59,8 +61,16 @@ namespace OpenSim.Region.CoreModules.World.Estate
59 public event ChangeDelegate OnEstateInfoChange; 61 public event ChangeDelegate OnEstateInfoChange;
60 public event MessageDelegate OnEstateMessage; 62 public event MessageDelegate OnEstateMessage;
61 63
64 private int m_delayCount = 0;
65
62 #region Packet Data Responders 66 #region Packet Data Responders
63 67
68 private void clientSendDetailedEstateData(IClientAPI remote_client, UUID invoice)
69 {
70 sendDetailedEstateData(remote_client, invoice);
71 sendEstateLists(remote_client, invoice);
72 }
73
64 private void sendDetailedEstateData(IClientAPI remote_client, UUID invoice) 74 private void sendDetailedEstateData(IClientAPI remote_client, UUID invoice)
65 { 75 {
66 uint sun = 0; 76 uint sun = 0;
@@ -83,7 +93,10 @@ namespace OpenSim.Region.CoreModules.World.Estate
83 (uint) Scene.RegionInfo.RegionSettings.CovenantChangedDateTime, 93 (uint) Scene.RegionInfo.RegionSettings.CovenantChangedDateTime,
84 Scene.RegionInfo.EstateSettings.AbuseEmail, 94 Scene.RegionInfo.EstateSettings.AbuseEmail,
85 estateOwner); 95 estateOwner);
96 }
86 97
98 private void sendEstateLists(IClientAPI remote_client, UUID invoice)
99 {
87 remote_client.SendEstateList(invoice, 100 remote_client.SendEstateList(invoice,
88 (int)Constants.EstateAccessCodex.EstateManagers, 101 (int)Constants.EstateAccessCodex.EstateManagers,
89 Scene.RegionInfo.EstateSettings.EstateManagers, 102 Scene.RegionInfo.EstateSettings.EstateManagers,
@@ -257,6 +270,16 @@ namespace OpenSim.Region.CoreModules.World.Estate
257 IRestartModule restartModule = Scene.RequestModuleInterface<IRestartModule>(); 270 IRestartModule restartModule = Scene.RequestModuleInterface<IRestartModule>();
258 if (restartModule != null) 271 if (restartModule != null)
259 { 272 {
273 if (timeInSeconds == -1)
274 {
275 m_delayCount++;
276 if (m_delayCount > 3)
277 return;
278
279 restartModule.DelayRestart(3600, "Restart delayed by region manager");
280 return;
281 }
282
260 List<int> times = new List<int>(); 283 List<int> times = new List<int>();
261 while (timeInSeconds > 0) 284 while (timeInSeconds > 0)
262 { 285 {
@@ -269,7 +292,7 @@ namespace OpenSim.Region.CoreModules.World.Estate
269 timeInSeconds -= 15; 292 timeInSeconds -= 15;
270 } 293 }
271 294
272 restartModule.ScheduleRestart(UUID.Zero, "Region will restart in {0}", times.ToArray(), true); 295 restartModule.ScheduleRestart(UUID.Zero, "Region will restart in {0}", times.ToArray(), false);
273 } 296 }
274 } 297 }
275 298
@@ -477,7 +500,11 @@ namespace OpenSim.Region.CoreModules.World.Estate
477 { 500 {
478 if (!s.IsChildAgent) 501 if (!s.IsChildAgent)
479 { 502 {
480 Scene.TeleportClientHome(user, s.ControllingClient); 503 if (!Scene.TeleportClientHome(user, s.ControllingClient))
504 {
505 s.ControllingClient.Kick("Your access to the region was revoked and TP home failed - you have been logged out.");
506 s.ControllingClient.Close();
507 }
481 } 508 }
482 } 509 }
483 510
@@ -486,7 +513,7 @@ namespace OpenSim.Region.CoreModules.World.Estate
486 { 513 {
487 remote_client.SendAlertMessage("User is already on the region ban list"); 514 remote_client.SendAlertMessage("User is already on the region ban list");
488 } 515 }
489 //m_scene.RegionInfo.regionBanlist.Add(Manager(user); 516 //Scene.RegionInfo.regionBanlist.Add(Manager(user);
490 remote_client.SendBannedUserList(invoice, Scene.RegionInfo.EstateSettings.EstateBans, Scene.RegionInfo.EstateSettings.EstateID); 517 remote_client.SendBannedUserList(invoice, Scene.RegionInfo.EstateSettings.EstateBans, Scene.RegionInfo.EstateSettings.EstateID);
491 } 518 }
492 else 519 else
@@ -541,7 +568,7 @@ namespace OpenSim.Region.CoreModules.World.Estate
541 remote_client.SendAlertMessage("User is not on the region ban list"); 568 remote_client.SendAlertMessage("User is not on the region ban list");
542 } 569 }
543 570
544 //m_scene.RegionInfo.regionBanlist.Add(Manager(user); 571 //Scene.RegionInfo.regionBanlist.Add(Manager(user);
545 remote_client.SendBannedUserList(invoice, Scene.RegionInfo.EstateSettings.EstateBans, Scene.RegionInfo.EstateSettings.EstateID); 572 remote_client.SendBannedUserList(invoice, Scene.RegionInfo.EstateSettings.EstateBans, Scene.RegionInfo.EstateSettings.EstateID);
546 } 573 }
547 else 574 else
@@ -700,7 +727,11 @@ namespace OpenSim.Region.CoreModules.World.Estate
700 ScenePresence s = Scene.GetScenePresence(prey); 727 ScenePresence s = Scene.GetScenePresence(prey);
701 if (s != null) 728 if (s != null)
702 { 729 {
703 Scene.TeleportClientHome(prey, s.ControllingClient); 730 if (!Scene.TeleportClientHome(prey, s.ControllingClient))
731 {
732 s.ControllingClient.Kick("You were teleported home by the region owner, but the TP failed - you have been logged out.");
733 s.ControllingClient.Close();
734 }
704 } 735 }
705 } 736 }
706 } 737 }
@@ -718,7 +749,13 @@ namespace OpenSim.Region.CoreModules.World.Estate
718 // Also make sure they are actually in the region 749 // Also make sure they are actually in the region
719 ScenePresence p; 750 ScenePresence p;
720 if(Scene.TryGetScenePresence(client.AgentId, out p)) 751 if(Scene.TryGetScenePresence(client.AgentId, out p))
721 Scene.TeleportClientHome(p.UUID, p.ControllingClient); 752 {
753 if (!Scene.TeleportClientHome(p.UUID, p.ControllingClient))
754 {
755 p.ControllingClient.Kick("You were teleported home by the region owner, but the TP failed - you have been logged out.");
756 p.ControllingClient.Close();
757 }
758 }
722 } 759 }
723 }); 760 });
724 } 761 }
@@ -1081,6 +1118,10 @@ namespace OpenSim.Region.CoreModules.World.Estate
1081 1118
1082 public void AddRegion(Scene scene) 1119 public void AddRegion(Scene scene)
1083 { 1120 {
1121 m_regionChangeTimer.AutoReset = false;
1122 m_regionChangeTimer.Interval = 2000;
1123 m_regionChangeTimer.Elapsed += RaiseRegionInfoChange;
1124
1084 Scene = scene; 1125 Scene = scene;
1085 Scene.RegisterModuleInterface<IEstateModule>(this); 1126 Scene.RegisterModuleInterface<IEstateModule>(this);
1086 Scene.EventManager.OnNewClient += EventManager_OnNewClient; 1127 Scene.EventManager.OnNewClient += EventManager_OnNewClient;
@@ -1131,7 +1172,7 @@ namespace OpenSim.Region.CoreModules.World.Estate
1131 1172
1132 private void EventManager_OnNewClient(IClientAPI client) 1173 private void EventManager_OnNewClient(IClientAPI client)
1133 { 1174 {
1134 client.OnDetailedEstateDataRequest += sendDetailedEstateData; 1175 client.OnDetailedEstateDataRequest += clientSendDetailedEstateData;
1135 client.OnSetEstateFlagsRequest += estateSetRegionInfoHandler; 1176 client.OnSetEstateFlagsRequest += estateSetRegionInfoHandler;
1136// client.OnSetEstateTerrainBaseTexture += setEstateTerrainBaseTexture; 1177// client.OnSetEstateTerrainBaseTexture += setEstateTerrainBaseTexture;
1137 client.OnSetEstateTerrainDetailTexture += setEstateTerrainBaseTexture; 1178 client.OnSetEstateTerrainDetailTexture += setEstateTerrainBaseTexture;
@@ -1183,6 +1224,10 @@ namespace OpenSim.Region.CoreModules.World.Estate
1183 flags |= RegionFlags.AllowParcelChanges; 1224 flags |= RegionFlags.AllowParcelChanges;
1184 if (Scene.RegionInfo.RegionSettings.BlockShowInSearch) 1225 if (Scene.RegionInfo.RegionSettings.BlockShowInSearch)
1185 flags |= RegionFlags.BlockParcelSearch; 1226 flags |= RegionFlags.BlockParcelSearch;
1227 if (Scene.RegionInfo.RegionSettings.GodBlockSearch)
1228 flags |= (RegionFlags)(1 << 11);
1229 if (Scene.RegionInfo.RegionSettings.Casino)
1230 flags |= (RegionFlags)(1 << 10);
1186 1231
1187 if (Scene.RegionInfo.RegionSettings.FixedSun) 1232 if (Scene.RegionInfo.RegionSettings.FixedSun)
1188 flags |= RegionFlags.SunFixed; 1233 flags |= RegionFlags.SunFixed;
@@ -1190,11 +1235,15 @@ namespace OpenSim.Region.CoreModules.World.Estate
1190 flags |= RegionFlags.Sandbox; 1235 flags |= RegionFlags.Sandbox;
1191 if (Scene.RegionInfo.EstateSettings.AllowVoice) 1236 if (Scene.RegionInfo.EstateSettings.AllowVoice)
1192 flags |= RegionFlags.AllowVoice; 1237 flags |= RegionFlags.AllowVoice;
1238 if (Scene.RegionInfo.EstateSettings.AllowLandmark)
1239 flags |= RegionFlags.AllowLandmark;
1240 if (Scene.RegionInfo.EstateSettings.AllowSetHome)
1241 flags |= RegionFlags.AllowSetHome;
1242 if (Scene.RegionInfo.EstateSettings.BlockDwell)
1243 flags |= RegionFlags.BlockDwell;
1244 if (Scene.RegionInfo.EstateSettings.ResetHomeOnTeleport)
1245 flags |= RegionFlags.ResetHomeOnTeleport;
1193 1246
1194 // Fudge these to always on, so the menu options activate
1195 //
1196 flags |= RegionFlags.AllowLandmark;
1197 flags |= RegionFlags.AllowSetHome;
1198 1247
1199 // TODO: SkipUpdateInterestList 1248 // TODO: SkipUpdateInterestList
1200 1249
@@ -1235,6 +1284,12 @@ namespace OpenSim.Region.CoreModules.World.Estate
1235 flags |= RegionFlags.ResetHomeOnTeleport; 1284 flags |= RegionFlags.ResetHomeOnTeleport;
1236 if (Scene.RegionInfo.EstateSettings.TaxFree) 1285 if (Scene.RegionInfo.EstateSettings.TaxFree)
1237 flags |= RegionFlags.TaxFree; 1286 flags |= RegionFlags.TaxFree;
1287 if (Scene.RegionInfo.EstateSettings.AllowLandmark)
1288 flags |= RegionFlags.AllowLandmark;
1289 if (Scene.RegionInfo.EstateSettings.AllowParcelChanges)
1290 flags |= RegionFlags.AllowParcelChanges;
1291 if (Scene.RegionInfo.EstateSettings.AllowSetHome)
1292 flags |= RegionFlags.AllowSetHome;
1238 if (Scene.RegionInfo.EstateSettings.DenyMinors) 1293 if (Scene.RegionInfo.EstateSettings.DenyMinors)
1239 flags |= (RegionFlags)(1 << 30); 1294 flags |= (RegionFlags)(1 << 30);
1240 1295
@@ -1255,6 +1310,12 @@ namespace OpenSim.Region.CoreModules.World.Estate
1255 1310
1256 public void TriggerRegionInfoChange() 1311 public void TriggerRegionInfoChange()
1257 { 1312 {
1313 m_regionChangeTimer.Stop();
1314 m_regionChangeTimer.Start();
1315 }
1316
1317 protected void RaiseRegionInfoChange(object sender, ElapsedEventArgs e)
1318 {
1258 ChangeDelegate change = OnRegionInfoChange; 1319 ChangeDelegate change = OnRegionInfoChange;
1259 1320
1260 if (change != null) 1321 if (change != null)
diff --git a/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs b/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs
index 8b7406d..51dcb67 100644
--- a/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs
+++ b/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs
@@ -91,14 +91,13 @@ namespace OpenSim.Region.CoreModules.World.Land
91 private int m_lastLandLocalID = LandChannel.START_LAND_LOCAL_ID - 1; 91 private int m_lastLandLocalID = LandChannel.START_LAND_LOCAL_ID - 1;
92 92
93 private bool m_allowedForcefulBans = true; 93 private bool m_allowedForcefulBans = true;
94 private UUID DefaultGodParcelGroup;
95 private string DefaultGodParcelName;
94 96
95 // caches ExtendedLandData 97 // caches ExtendedLandData
96 private Cache parcelInfoCache; 98 private Cache parcelInfoCache;
97 99 private Dictionary<UUID, Vector3> forcedPosition =
98 /// <summary> 100 new Dictionary<UUID, Vector3>();
99 /// Record positions that avatar's are currently being forced to move to due to parcel entry restrictions.
100 /// </summary>
101 private Dictionary<UUID, Vector3> forcedPosition = new Dictionary<UUID, Vector3>();
102 101
103 #region INonSharedRegionModule Members 102 #region INonSharedRegionModule Members
104 103
@@ -109,6 +108,12 @@ namespace OpenSim.Region.CoreModules.World.Land
109 108
110 public void Initialise(IConfigSource source) 109 public void Initialise(IConfigSource source)
111 { 110 {
111 IConfig cnf = source.Configs["LandManagement"];
112 if (cnf != null)
113 {
114 DefaultGodParcelGroup = new UUID(cnf.GetString("DefaultAdministratorGroupUUID", UUID.Zero.ToString()));
115 DefaultGodParcelName = cnf.GetString("DefaultAdministratorParcelName", "Default Parcel");
116 }
112 } 117 }
113 118
114 public void AddRegion(Scene scene) 119 public void AddRegion(Scene scene)
@@ -160,13 +165,6 @@ namespace OpenSim.Region.CoreModules.World.Land
160 m_scene.UnregisterModuleCommander(m_commander.Name); 165 m_scene.UnregisterModuleCommander(m_commander.Name);
161 } 166 }
162 167
163// private bool OnVerifyUserConnection(ScenePresence scenePresence, out string reason)
164// {
165// ILandObject nearestParcel = m_scene.GetNearestAllowedParcel(scenePresence.UUID, scenePresence.AbsolutePosition.X, scenePresence.AbsolutePosition.Y);
166// reason = "You are not allowed to enter this sim.";
167// return nearestParcel != null;
168// }
169
170 /// <summary> 168 /// <summary>
171 /// Processes commandline input. Do not call directly. 169 /// Processes commandline input. Do not call directly.
172 /// </summary> 170 /// </summary>
@@ -207,6 +205,8 @@ namespace OpenSim.Region.CoreModules.World.Land
207 client.OnParcelInfoRequest += ClientOnParcelInfoRequest; 205 client.OnParcelInfoRequest += ClientOnParcelInfoRequest;
208 client.OnParcelDeedToGroup += ClientOnParcelDeedToGroup; 206 client.OnParcelDeedToGroup += ClientOnParcelDeedToGroup;
209 client.OnPreAgentUpdate += ClientOnPreAgentUpdate; 207 client.OnPreAgentUpdate += ClientOnPreAgentUpdate;
208 client.OnParcelEjectUser += ClientOnParcelEjectUser;
209 client.OnParcelFreezeUser += ClientOnParcelFreezeUser;
210 210
211 EntityBase presenceEntity; 211 EntityBase presenceEntity;
212 if (m_scene.Entities.TryGetValue(client.AgentId, out presenceEntity) && presenceEntity is ScenePresence) 212 if (m_scene.Entities.TryGetValue(client.AgentId, out presenceEntity) && presenceEntity is ScenePresence)
@@ -218,48 +218,6 @@ namespace OpenSim.Region.CoreModules.World.Land
218 218
219 void ClientOnPreAgentUpdate(IClientAPI remoteClient, AgentUpdateArgs agentData) 219 void ClientOnPreAgentUpdate(IClientAPI remoteClient, AgentUpdateArgs agentData)
220 { 220 {
221 //If we are forcing a position for them to go
222 if (forcedPosition.ContainsKey(remoteClient.AgentId))
223 {
224 ScenePresence clientAvatar = m_scene.GetScenePresence(remoteClient.AgentId);
225
226 //Putting the user into flying, both keeps the avatar in fligth when it bumps into something and stopped from going another direction AND
227 //When the avatar walks into a ban line on the ground, it prevents getting stuck
228 agentData.ControlFlags = (uint)AgentManager.ControlFlags.AGENT_CONTROL_FLY;
229
230 //Make sure we stop if they get about to the right place to prevent yoyo and prevents getting stuck on banlines
231 if (Vector3.Distance(clientAvatar.AbsolutePosition, forcedPosition[remoteClient.AgentId]) < .2)
232 {
233// m_log.DebugFormat(
234// "[LAND MANAGEMENT MODULE]: Stopping force position of {0} because {1} is close enough to {2}",
235// clientAvatar.Name, clientAvatar.AbsolutePosition, forcedPosition[remoteClient.AgentId]);
236
237 forcedPosition.Remove(remoteClient.AgentId);
238 }
239 //if we are far away, teleport
240 else if (Vector3.Distance(clientAvatar.AbsolutePosition, forcedPosition[remoteClient.AgentId]) > 3)
241 {
242 Vector3 forcePosition = forcedPosition[remoteClient.AgentId];
243// m_log.DebugFormat(
244// "[LAND MANAGEMENT MODULE]: Teleporting out {0} because {1} is too far from avatar position {2}",
245// clientAvatar.Name, clientAvatar.AbsolutePosition, forcePosition);
246
247 m_scene.RequestTeleportLocation(remoteClient, m_scene.RegionInfo.RegionHandle,
248 forcePosition, clientAvatar.Lookat, (uint)Constants.TeleportFlags.ForceRedirect);
249
250 forcedPosition.Remove(remoteClient.AgentId);
251 }
252 else
253 {
254// m_log.DebugFormat(
255// "[LAND MANAGEMENT MODULE]: Forcing {0} from {1} to {2}",
256// clientAvatar.Name, clientAvatar.AbsolutePosition, forcedPosition[remoteClient.AgentId]);
257
258 //Forces them toward the forced position we want if they aren't there yet
259 agentData.UseClientAgentPosition = true;
260 agentData.ClientAgentPosition = forcedPosition[remoteClient.AgentId];
261 }
262 }
263 } 221 }
264 222
265 public void Close() 223 public void Close()
@@ -378,10 +336,16 @@ namespace OpenSim.Region.CoreModules.World.Land
378 private void ForceAvatarToPosition(ScenePresence avatar, Vector3? position) 336 private void ForceAvatarToPosition(ScenePresence avatar, Vector3? position)
379 { 337 {
380 if (m_scene.Permissions.IsGod(avatar.UUID)) return; 338 if (m_scene.Permissions.IsGod(avatar.UUID)) return;
381 if (position.HasValue) 339
382 { 340 if (!position.HasValue)
383 forcedPosition[avatar.ControllingClient.AgentId] = (Vector3)position; 341 return;
384 } 342
343 bool isFlying = avatar.PhysicsActor.Flying;
344 avatar.RemoveFromPhysicalScene();
345
346 avatar.AbsolutePosition = (Vector3)position;
347
348 avatar.AddToPhysicalScene(isFlying);
385 } 349 }
386 350
387 public void SendYouAreRestrictedNotice(ScenePresence avatar) 351 public void SendYouAreRestrictedNotice(ScenePresence avatar)
@@ -401,29 +365,7 @@ namespace OpenSim.Region.CoreModules.World.Land
401 } 365 }
402 366
403 if (parcelAvatarIsEntering != null) 367 if (parcelAvatarIsEntering != null)
404 { 368 EnforceBans(parcelAvatarIsEntering, avatar);
405 if (avatar.AbsolutePosition.Z < LandChannel.BAN_LINE_SAFETY_HIEGHT)
406 {
407 if (parcelAvatarIsEntering.IsBannedFromLand(avatar.UUID))
408 {
409 SendYouAreBannedNotice(avatar);
410 ForceAvatarToPosition(avatar, m_scene.GetNearestAllowedPosition(avatar));
411 }
412 else if (parcelAvatarIsEntering.IsRestrictedFromLand(avatar.UUID))
413 {
414 SendYouAreRestrictedNotice(avatar);
415 ForceAvatarToPosition(avatar, m_scene.GetNearestAllowedPosition(avatar));
416 }
417 else
418 {
419 avatar.sentMessageAboutRestrictedParcelFlyingDown = true;
420 }
421 }
422 else
423 {
424 avatar.sentMessageAboutRestrictedParcelFlyingDown = true;
425 }
426 }
427 } 369 }
428 } 370 }
429 371
@@ -527,6 +469,7 @@ namespace OpenSim.Region.CoreModules.World.Land
527 //when we are finally in a safe place, lets release the forced position lock 469 //when we are finally in a safe place, lets release the forced position lock
528 forcedPosition.Remove(clientAvatar.ControllingClient.AgentId); 470 forcedPosition.Remove(clientAvatar.ControllingClient.AgentId);
529 } 471 }
472 EnforceBans(parcel, clientAvatar);
530 } 473 }
531 } 474 }
532 475
@@ -735,7 +678,7 @@ namespace OpenSim.Region.CoreModules.World.Land
735 int x; 678 int x;
736 int y; 679 int y;
737 680
738 if (x_float >= Constants.RegionSize || x_float < 0 || y_float >= Constants.RegionSize || y_float < 0) 681 if (x_float > Constants.RegionSize || x_float < 0 || y_float > Constants.RegionSize || y_float < 0)
739 return null; 682 return null;
740 683
741 try 684 try
@@ -785,14 +728,13 @@ namespace OpenSim.Region.CoreModules.World.Land
785 { 728 {
786 try 729 try
787 { 730 {
788 return m_landList[m_landIDList[x / 4, y / 4]]; 731 //if (m_landList.ContainsKey(m_landIDList[x / 4, y / 4]))
732 return m_landList[m_landIDList[x / 4, y / 4]];
733 //else
734 // return null;
789 } 735 }
790 catch (IndexOutOfRangeException) 736 catch (IndexOutOfRangeException)
791 { 737 {
792// m_log.WarnFormat(
793// "[LAND MANAGEMENT MODULE]: Tried to retrieve land object from out of bounds co-ordinate ({0},{1}) in {2}",
794// x, y, m_scene.RegionInfo.RegionName);
795
796 return null; 738 return null;
797 } 739 }
798 } 740 }
@@ -1075,6 +1017,10 @@ namespace OpenSim.Region.CoreModules.World.Land
1075 //Owner Flag 1017 //Owner Flag
1076 tempByte = Convert.ToByte(tempByte | LandChannel.LAND_TYPE_OWNED_BY_REQUESTER); 1018 tempByte = Convert.ToByte(tempByte | LandChannel.LAND_TYPE_OWNED_BY_REQUESTER);
1077 } 1019 }
1020 else if (currentParcelBlock.LandData.IsGroupOwned && remote_client.IsGroupMember(currentParcelBlock.LandData.GroupID))
1021 {
1022 tempByte = Convert.ToByte(tempByte | LandChannel.LAND_TYPE_OWNED_BY_GROUP);
1023 }
1078 else if (currentParcelBlock.LandData.SalePrice > 0 && 1024 else if (currentParcelBlock.LandData.SalePrice > 0 &&
1079 (currentParcelBlock.LandData.AuthBuyerID == UUID.Zero || 1025 (currentParcelBlock.LandData.AuthBuyerID == UUID.Zero ||
1080 currentParcelBlock.LandData.AuthBuyerID == remote_client.AgentId)) 1026 currentParcelBlock.LandData.AuthBuyerID == remote_client.AgentId))
@@ -1155,8 +1101,11 @@ namespace OpenSim.Region.CoreModules.World.Land
1155 { 1101 {
1156 if (!temp.Contains(currentParcel)) 1102 if (!temp.Contains(currentParcel))
1157 { 1103 {
1158 currentParcel.ForceUpdateLandInfo(); 1104 if (!currentParcel.IsEitherBannedOrRestricted(remote_client.AgentId))
1159 temp.Add(currentParcel); 1105 {
1106 currentParcel.ForceUpdateLandInfo();
1107 temp.Add(currentParcel);
1108 }
1160 } 1109 }
1161 } 1110 }
1162 } 1111 }
@@ -1375,18 +1324,31 @@ namespace OpenSim.Region.CoreModules.World.Land
1375 1324
1376 public void EventManagerOnIncomingLandDataFromStorage(List<LandData> data) 1325 public void EventManagerOnIncomingLandDataFromStorage(List<LandData> data)
1377 { 1326 {
1378 for (int i = 0; i < data.Count; i++) 1327 lock (m_landList)
1379 { 1328 {
1380 IncomingLandObjectFromStorage(data[i]); 1329 //Remove all the land objects in the sim and then process our new data
1330 foreach (int n in m_landList.Keys)
1331 {
1332 m_scene.EventManager.TriggerLandObjectRemoved(m_landList[n].LandData.GlobalID);
1333 }
1334 m_landIDList.Initialize();
1335 m_landList.Clear();
1336
1337 for (int i = 0; i < data.Count; i++)
1338 {
1339 IncomingLandObjectFromStorage(data[i]);
1340 }
1381 } 1341 }
1382 } 1342 }
1383 1343
1384 public void IncomingLandObjectFromStorage(LandData data) 1344 public void IncomingLandObjectFromStorage(LandData data)
1385 { 1345 {
1346
1386 ILandObject new_land = new LandObject(data.OwnerID, data.IsGroupOwned, m_scene); 1347 ILandObject new_land = new LandObject(data.OwnerID, data.IsGroupOwned, m_scene);
1387 new_land.LandData = data.Copy(); 1348 new_land.LandData = data.Copy();
1388 new_land.SetLandBitmapFromByteArray(); 1349 new_land.SetLandBitmapFromByteArray();
1389 AddLandObject(new_land); 1350 AddLandObject(new_land);
1351 new_land.SendLandUpdateToAvatarsOverMe();
1390 } 1352 }
1391 1353
1392 public void ReturnObjectsInParcel(int localID, uint returnType, UUID[] agentIDs, UUID[] taskIDs, IClientAPI remoteClient) 1354 public void ReturnObjectsInParcel(int localID, uint returnType, UUID[] agentIDs, UUID[] taskIDs, IClientAPI remoteClient)
@@ -1669,6 +1631,168 @@ namespace OpenSim.Region.CoreModules.World.Land
1669 1631
1670 UpdateLandObject(localID, land.LandData); 1632 UpdateLandObject(localID, land.LandData);
1671 } 1633 }
1634
1635 public void ClientOnParcelGodMark(IClientAPI client, UUID god, int landID)
1636 {
1637 ILandObject land = null;
1638 List<ILandObject> Land = ((Scene)client.Scene).LandChannel.AllParcels();
1639 foreach (ILandObject landObject in Land)
1640 {
1641 if (landObject.LandData.LocalID == landID)
1642 {
1643 land = landObject;
1644 }
1645 }
1646 land.DeedToGroup(DefaultGodParcelGroup);
1647 land.LandData.Name = DefaultGodParcelName;
1648 land.SendLandUpdateToAvatarsOverMe();
1649 }
1650
1651 private void ClientOnSimWideDeletes(IClientAPI client, UUID agentID, int flags, UUID targetID)
1652 {
1653 ScenePresence SP;
1654 ((Scene)client.Scene).TryGetScenePresence(client.AgentId, out SP);
1655 List<SceneObjectGroup> returns = new List<SceneObjectGroup>();
1656 if (SP.UserLevel != 0)
1657 {
1658 if (flags == 0) //All parcels, scripted or not
1659 {
1660 ((Scene)client.Scene).ForEachSOG(delegate(SceneObjectGroup e)
1661 {
1662 if (e.OwnerID == targetID)
1663 {
1664 returns.Add(e);
1665 }
1666 }
1667 );
1668 }
1669 if (flags == 4) //All parcels, scripted object
1670 {
1671 ((Scene)client.Scene).ForEachSOG(delegate(SceneObjectGroup e)
1672 {
1673 if (e.OwnerID == targetID)
1674 {
1675 if (e.ContainsScripts())
1676 {
1677 returns.Add(e);
1678 }
1679 }
1680 }
1681 );
1682 }
1683 if (flags == 4) //not target parcel, scripted object
1684 {
1685 ((Scene)client.Scene).ForEachSOG(delegate(SceneObjectGroup e)
1686 {
1687 if (e.OwnerID == targetID)
1688 {
1689 ILandObject landobject = ((Scene)client.Scene).LandChannel.GetLandObject(e.AbsolutePosition.X, e.AbsolutePosition.Y);
1690 if (landobject.LandData.OwnerID != e.OwnerID)
1691 {
1692 if (e.ContainsScripts())
1693 {
1694 returns.Add(e);
1695 }
1696 }
1697 }
1698 }
1699 );
1700 }
1701 foreach (SceneObjectGroup ol in returns)
1702 {
1703 ReturnObject(ol, client);
1704 }
1705 }
1706 }
1707 public void ReturnObject(SceneObjectGroup obj, IClientAPI client)
1708 {
1709 SceneObjectGroup[] objs = new SceneObjectGroup[1];
1710 objs[0] = obj;
1711 ((Scene)client.Scene).returnObjects(objs, client.AgentId);
1712 }
1713
1714 Dictionary<UUID, System.Threading.Timer> Timers = new Dictionary<UUID, System.Threading.Timer>();
1715
1716 public void ClientOnParcelFreezeUser(IClientAPI client, UUID parcelowner, uint flags, UUID target)
1717 {
1718 ScenePresence targetAvatar = null;
1719 ((Scene)client.Scene).TryGetScenePresence(target, out targetAvatar);
1720 ScenePresence parcelManager = null;
1721 ((Scene)client.Scene).TryGetScenePresence(client.AgentId, out parcelManager);
1722 System.Threading.Timer Timer;
1723
1724 if (targetAvatar.UserLevel == 0)
1725 {
1726 ILandObject land = ((Scene)client.Scene).LandChannel.GetLandObject(targetAvatar.AbsolutePosition.X, targetAvatar.AbsolutePosition.Y);
1727 if (!((Scene)client.Scene).Permissions.CanEditParcelProperties(client.AgentId, land, GroupPowers.LandEjectAndFreeze))
1728 return;
1729 if (flags == 0)
1730 {
1731 targetAvatar.AllowMovement = false;
1732 targetAvatar.ControllingClient.SendAlertMessage(parcelManager.Firstname + " " + parcelManager.Lastname + " has frozen you for 30 seconds. You cannot move or interact with the world.");
1733 parcelManager.ControllingClient.SendAlertMessage("Avatar Frozen.");
1734 System.Threading.TimerCallback timeCB = new System.Threading.TimerCallback(OnEndParcelFrozen);
1735 Timer = new System.Threading.Timer(timeCB, targetAvatar, 30000, 0);
1736 Timers.Add(targetAvatar.UUID, Timer);
1737 }
1738 else
1739 {
1740 targetAvatar.AllowMovement = true;
1741 targetAvatar.ControllingClient.SendAlertMessage(parcelManager.Firstname + " " + parcelManager.Lastname + " has unfrozen you.");
1742 parcelManager.ControllingClient.SendAlertMessage("Avatar Unfrozen.");
1743 Timers.TryGetValue(targetAvatar.UUID, out Timer);
1744 Timers.Remove(targetAvatar.UUID);
1745 Timer.Dispose();
1746 }
1747 }
1748 }
1749 private void OnEndParcelFrozen(object avatar)
1750 {
1751 ScenePresence targetAvatar = (ScenePresence)avatar;
1752 targetAvatar.AllowMovement = true;
1753 System.Threading.Timer Timer;
1754 Timers.TryGetValue(targetAvatar.UUID, out Timer);
1755 Timers.Remove(targetAvatar.UUID);
1756 targetAvatar.ControllingClient.SendAgentAlertMessage("The freeze has worn off; you may go about your business.", false);
1757 }
1758
1759
1760 public void ClientOnParcelEjectUser(IClientAPI client, UUID parcelowner, uint flags, UUID target)
1761 {
1762 ScenePresence targetAvatar = null;
1763 ScenePresence parcelManager = null;
1764
1765 // Must have presences
1766 if (!m_scene.TryGetScenePresence(target, out targetAvatar) ||
1767 !m_scene.TryGetScenePresence(client.AgentId, out parcelManager))
1768 return;
1769
1770 // Cannot eject estate managers or gods
1771 if (m_scene.Permissions.IsAdministrator(target))
1772 return;
1773
1774 // Check if you even have permission to do this
1775 ILandObject land = m_scene.LandChannel.GetLandObject(targetAvatar.AbsolutePosition.X, targetAvatar.AbsolutePosition.Y);
1776 if (!m_scene.Permissions.CanEditParcelProperties(client.AgentId, land, GroupPowers.LandEjectAndFreeze) &&
1777 !m_scene.Permissions.IsAdministrator(client.AgentId))
1778 return;
1779
1780 Vector3 pos = m_scene.GetNearestAllowedPosition(targetAvatar, land);
1781
1782 targetAvatar.TeleportWithMomentum(pos, null);
1783 targetAvatar.ControllingClient.SendAlertMessage("You have been ejected by " + parcelManager.Firstname + " " + parcelManager.Lastname);
1784 parcelManager.ControllingClient.SendAlertMessage("Avatar Ejected.");
1785
1786 if ((flags & 1) != 0) // Ban TODO: Remove magic number
1787 {
1788 LandAccessEntry entry = new LandAccessEntry();
1789 entry.AgentID = targetAvatar.UUID;
1790 entry.Flags = AccessList.Ban;
1791 entry.Expires = 0; // Perm
1792
1793 land.LandData.ParcelAccessList.Add(entry);
1794 }
1795 }
1672 1796
1673 protected void InstallInterfaces() 1797 protected void InstallInterfaces()
1674 { 1798 {
@@ -1731,5 +1855,27 @@ namespace OpenSim.Region.CoreModules.World.Land
1731 1855
1732 MainConsole.Instance.Output(report.ToString()); 1856 MainConsole.Instance.Output(report.ToString());
1733 } 1857 }
1858
1859 public void EnforceBans(ILandObject land, ScenePresence avatar)
1860 {
1861 if (avatar.AbsolutePosition.Z > LandChannel.BAN_LINE_SAFETY_HIEGHT)
1862 return;
1863
1864 if (land.IsEitherBannedOrRestricted(avatar.UUID))
1865 {
1866 if (land.ContainsPoint(Convert.ToInt32(avatar.lastKnownAllowedPosition.X), Convert.ToInt32(avatar.lastKnownAllowedPosition.Y)))
1867 {
1868 Vector3? pos = m_scene.GetNearestAllowedPosition(avatar);
1869 if (pos == null)
1870 m_scene.TeleportClientHome(avatar.UUID, avatar.ControllingClient);
1871 else
1872 ForceAvatarToPosition(avatar, (Vector3)pos);
1873 }
1874 else
1875 {
1876 ForceAvatarToPosition(avatar, avatar.lastKnownAllowedPosition);
1877 }
1878 }
1879 }
1734 } 1880 }
1735} 1881}
diff --git a/OpenSim/Region/CoreModules/World/Land/LandObject.cs b/OpenSim/Region/CoreModules/World/Land/LandObject.cs
index 0536f6e..b7667b9 100644
--- a/OpenSim/Region/CoreModules/World/Land/LandObject.cs
+++ b/OpenSim/Region/CoreModules/World/Land/LandObject.cs
@@ -50,6 +50,7 @@ namespace OpenSim.Region.CoreModules.World.Land
50 private bool[,] m_landBitmap = new bool[landArrayMax,landArrayMax]; 50 private bool[,] m_landBitmap = new bool[landArrayMax,landArrayMax];
51 51
52 private int m_lastSeqId = 0; 52 private int m_lastSeqId = 0;
53 private int m_expiryCounter = 0;
53 54
54 protected LandData m_landData = new LandData(); 55 protected LandData m_landData = new LandData();
55 protected Scene m_scene; 56 protected Scene m_scene;
@@ -135,6 +136,8 @@ namespace OpenSim.Region.CoreModules.World.Land
135 else 136 else
136 LandData.GroupID = UUID.Zero; 137 LandData.GroupID = UUID.Zero;
137 LandData.IsGroupOwned = is_group_owned; 138 LandData.IsGroupOwned = is_group_owned;
139
140 m_scene.EventManager.OnFrame += OnFrame;
138 } 141 }
139 142
140 #endregion 143 #endregion
@@ -193,10 +196,27 @@ namespace OpenSim.Region.CoreModules.World.Land
193 else 196 else
194 { 197 {
195 // Normal Calculations 198 // Normal Calculations
196 int parcelMax = (int)(((float)LandData.Area / 65536.0f) 199 int parcelMax = (int)((long)LandData.Area
197 * (float)m_scene.RegionInfo.ObjectCapacity 200 * (long)m_scene.RegionInfo.ObjectCapacity
198 * (float)m_scene.RegionInfo.RegionSettings.ObjectBonus); 201 * (long)m_scene.RegionInfo.RegionSettings.ObjectBonus
199 // TODO: The calculation of ObjectBonus should be refactored. It does still not work in the same manner as SL! 202 / 65536L);
203 m_log.DebugFormat("Area: {0}, Capacity {1}, Bonus {2}, Parcel {3}", LandData.Area, m_scene.RegionInfo.ObjectCapacity, m_scene.RegionInfo.RegionSettings.ObjectBonus, parcelMax);
204 return parcelMax;
205 }
206 }
207
208 private int GetParcelBasePrimCount()
209 {
210 if (overrideParcelMaxPrimCount != null)
211 {
212 return overrideParcelMaxPrimCount(this);
213 }
214 else
215 {
216 // Normal Calculations
217 int parcelMax = (int)((long)LandData.Area
218 * (long)m_scene.RegionInfo.ObjectCapacity
219 / 65536L);
200 return parcelMax; 220 return parcelMax;
201 } 221 }
202 } 222 }
@@ -210,8 +230,9 @@ namespace OpenSim.Region.CoreModules.World.Land
210 else 230 else
211 { 231 {
212 //Normal Calculations 232 //Normal Calculations
213 int simMax = (int)(((float)LandData.SimwideArea / 65536.0f) 233 int simMax = (int)((long)LandData.SimwideArea
214 * (float)m_scene.RegionInfo.ObjectCapacity); 234 * (long)m_scene.RegionInfo.ObjectCapacity / 65536L);
235 // m_log.DebugFormat("Simwide Area: {0}, Capacity {1}, SimMax {2}", LandData.SimwideArea, m_scene.RegionInfo.ObjectCapacity, simMax);
215 return simMax; 236 return simMax;
216 } 237 }
217 } 238 }
@@ -248,7 +269,7 @@ namespace OpenSim.Region.CoreModules.World.Land
248 remote_client.SendLandProperties(seq_id, 269 remote_client.SendLandProperties(seq_id,
249 snap_selection, request_result, this, 270 snap_selection, request_result, this,
250 (float)m_scene.RegionInfo.RegionSettings.ObjectBonus, 271 (float)m_scene.RegionInfo.RegionSettings.ObjectBonus,
251 GetParcelMaxPrimCount(), 272 GetParcelBasePrimCount(),
252 GetSimulatorMaxPrimCount(), regionFlags); 273 GetSimulatorMaxPrimCount(), regionFlags);
253 } 274 }
254 275
@@ -308,7 +329,7 @@ namespace OpenSim.Region.CoreModules.World.Land
308 329
309 allowedDelta |= (uint)(ParcelFlags.ShowDirectory | 330 allowedDelta |= (uint)(ParcelFlags.ShowDirectory |
310 ParcelFlags.AllowPublish | 331 ParcelFlags.AllowPublish |
311 ParcelFlags.MaturePublish); 332 ParcelFlags.MaturePublish) | (uint)(1 << 23);
312 } 333 }
313 334
314 if (m_scene.Permissions.CanEditParcelProperties(remote_client.AgentId,this, GroupPowers.LandChangeIdentity)) 335 if (m_scene.Permissions.CanEditParcelProperties(remote_client.AgentId,this, GroupPowers.LandChangeIdentity))
@@ -1181,6 +1202,17 @@ namespace OpenSim.Region.CoreModules.World.Land
1181 1202
1182 #endregion 1203 #endregion
1183 1204
1205 private void OnFrame()
1206 {
1207 m_expiryCounter++;
1208
1209 if (m_expiryCounter >= 50)
1210 {
1211 ExpireAccessList();
1212 m_expiryCounter = 0;
1213 }
1214 }
1215
1184 private void ExpireAccessList() 1216 private void ExpireAccessList()
1185 { 1217 {
1186 List<LandAccessEntry> delete = new List<LandAccessEntry>(); 1218 List<LandAccessEntry> delete = new List<LandAccessEntry>();
@@ -1191,7 +1223,22 @@ namespace OpenSim.Region.CoreModules.World.Land
1191 delete.Add(entry); 1223 delete.Add(entry);
1192 } 1224 }
1193 foreach (LandAccessEntry entry in delete) 1225 foreach (LandAccessEntry entry in delete)
1226 {
1194 LandData.ParcelAccessList.Remove(entry); 1227 LandData.ParcelAccessList.Remove(entry);
1228 ScenePresence presence;
1229
1230 if (m_scene.TryGetScenePresence(entry.AgentID, out presence) && (!presence.IsChildAgent))
1231 {
1232 ILandObject land = m_scene.LandChannel.GetLandObject(presence.AbsolutePosition.X, presence.AbsolutePosition.Y);
1233 if (land.LandData.LocalID == LandData.LocalID)
1234 {
1235 Vector3 pos = m_scene.GetNearestAllowedPosition(presence, land);
1236 presence.TeleportWithMomentum(pos, null);
1237 presence.ControllingClient.SendAlertMessage("You have been ejected from this land");
1238 }
1239 }
1240 m_log.DebugFormat("[LAND]: Removing entry {0} because it has expired", entry.AgentID);
1241 }
1195 1242
1196 if (delete.Count > 0) 1243 if (delete.Count > 0)
1197 m_scene.EventManager.TriggerLandObjectUpdated((uint)LandData.LocalID, this); 1244 m_scene.EventManager.TriggerLandObjectUpdated((uint)LandData.LocalID, this);
diff --git a/OpenSim/Region/CoreModules/World/Land/PrimCountModule.cs b/OpenSim/Region/CoreModules/World/Land/PrimCountModule.cs
index b2f71d1..102b4d7 100644
--- a/OpenSim/Region/CoreModules/World/Land/PrimCountModule.cs
+++ b/OpenSim/Region/CoreModules/World/Land/PrimCountModule.cs
@@ -205,7 +205,7 @@ namespace OpenSim.Region.CoreModules.World.Land
205 if (m_ParcelCounts.TryGetValue(landData.GlobalID, out parcelCounts)) 205 if (m_ParcelCounts.TryGetValue(landData.GlobalID, out parcelCounts))
206 { 206 {
207 UUID landOwner = landData.OwnerID; 207 UUID landOwner = landData.OwnerID;
208 int partCount = obj.Parts.Length; 208 int partCount = obj.GetPartCount();
209 209
210 m_SimwideCounts[landOwner] += partCount; 210 m_SimwideCounts[landOwner] += partCount;
211 if (parcelCounts.Users.ContainsKey(obj.OwnerID)) 211 if (parcelCounts.Users.ContainsKey(obj.OwnerID))
@@ -592,4 +592,4 @@ namespace OpenSim.Region.CoreModules.World.Land
592 } 592 }
593 } 593 }
594 } 594 }
595} \ No newline at end of file 595}
diff --git a/OpenSim/Region/CoreModules/World/Objects/BuySell/BuySellModule.cs b/OpenSim/Region/CoreModules/World/Objects/BuySell/BuySellModule.cs
index 1e4f0a4..eb4731c 100644
--- a/OpenSim/Region/CoreModules/World/Objects/BuySell/BuySellModule.cs
+++ b/OpenSim/Region/CoreModules/World/Objects/BuySell/BuySellModule.cs
@@ -176,6 +176,13 @@ namespace OpenSim.Region.CoreModules.World.Objects.BuySell
176 return false; 176 return false;
177 } 177 }
178 178
179 if ((perms & (uint)PermissionMask.Copy) == 0)
180 {
181 if (m_dialogModule != null)
182 m_dialogModule.SendAlertToUser(remoteClient, "This sale has been blocked by the permissions system");
183 return false;
184 }
185
179 AssetBase asset = m_scene.CreateAsset( 186 AssetBase asset = m_scene.CreateAsset(
180 group.GetPartName(localID), 187 group.GetPartName(localID),
181 group.GetPartDescription(localID), 188 group.GetPartDescription(localID),
diff --git a/OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs b/OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs
index 7a8a57c..f3d38bc 100644
--- a/OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs
+++ b/OpenSim/Region/CoreModules/World/Permissions/PermissionsModule.cs
@@ -368,7 +368,7 @@ namespace OpenSim.Region.CoreModules.World.Permissions
368 368
369 public string Name 369 public string Name
370 { 370 {
371 get { return "PermissionsModule"; } 371 get { return "DefaultPermissionsModule"; }
372 } 372 }
373 373
374 public bool IsSharedModule 374 public bool IsSharedModule
diff --git a/OpenSim/Region/CoreModules/World/Region/RestartModule.cs b/OpenSim/Region/CoreModules/World/Region/RestartModule.cs
index fea4de0..287738a 100644
--- a/OpenSim/Region/CoreModules/World/Region/RestartModule.cs
+++ b/OpenSim/Region/CoreModules/World/Region/RestartModule.cs
@@ -28,6 +28,8 @@
28using System; 28using System;
29using System.Reflection; 29using System.Reflection;
30using System.Timers; 30using System.Timers;
31using System.IO;
32using System.Diagnostics;
31using System.Threading; 33using System.Threading;
32using System.Collections.Generic; 34using System.Collections.Generic;
33using log4net; 35using log4net;
@@ -56,13 +58,24 @@ namespace OpenSim.Region.CoreModules.World.Region
56 protected UUID m_Initiator; 58 protected UUID m_Initiator;
57 protected bool m_Notice = false; 59 protected bool m_Notice = false;
58 protected IDialogModule m_DialogModule = null; 60 protected IDialogModule m_DialogModule = null;
61 protected string m_MarkerPath = String.Empty;
62 private int[] m_CurrentAlerts = null;
59 63
60 public void Initialise(IConfigSource config) 64 public void Initialise(IConfigSource config)
61 { 65 {
66 IConfig restartConfig = config.Configs["RestartModule"];
67 if (restartConfig != null)
68 {
69 m_MarkerPath = restartConfig.GetString("MarkerPath", String.Empty);
70 }
62 } 71 }
63 72
64 public void AddRegion(Scene scene) 73 public void AddRegion(Scene scene)
65 { 74 {
75 if (m_MarkerPath != String.Empty)
76 File.Delete(Path.Combine(m_MarkerPath,
77 scene.RegionInfo.RegionID.ToString()));
78
66 m_Scene = scene; 79 m_Scene = scene;
67 80
68 scene.RegisterModuleInterface<IRestartModule>(this); 81 scene.RegisterModuleInterface<IRestartModule>(this);
@@ -121,6 +134,7 @@ namespace OpenSim.Region.CoreModules.World.Region
121 134
122 if (alerts == null) 135 if (alerts == null)
123 { 136 {
137 CreateMarkerFile();
124 m_Scene.RestartNow(); 138 m_Scene.RestartNow();
125 return; 139 return;
126 } 140 }
@@ -128,25 +142,28 @@ namespace OpenSim.Region.CoreModules.World.Region
128 m_Message = message; 142 m_Message = message;
129 m_Initiator = initiator; 143 m_Initiator = initiator;
130 m_Notice = notice; 144 m_Notice = notice;
145 m_CurrentAlerts = alerts;
131 m_Alerts = new List<int>(alerts); 146 m_Alerts = new List<int>(alerts);
132 m_Alerts.Sort(); 147 m_Alerts.Sort();
133 m_Alerts.Reverse(); 148 m_Alerts.Reverse();
134 149
135 if (m_Alerts[0] == 0) 150 if (m_Alerts[0] == 0)
136 { 151 {
152 CreateMarkerFile();
137 m_Scene.RestartNow(); 153 m_Scene.RestartNow();
138 return; 154 return;
139 } 155 }
140 156
141 int nextInterval = DoOneNotice(); 157 int nextInterval = DoOneNotice(true);
142 158
143 SetTimer(nextInterval); 159 SetTimer(nextInterval);
144 } 160 }
145 161
146 public int DoOneNotice() 162 public int DoOneNotice(bool sendOut)
147 { 163 {
148 if (m_Alerts.Count == 0 || m_Alerts[0] == 0) 164 if (m_Alerts.Count == 0 || m_Alerts[0] == 0)
149 { 165 {
166 CreateMarkerFile();
150 m_Scene.RestartNow(); 167 m_Scene.RestartNow();
151 return 0; 168 return 0;
152 } 169 }
@@ -167,34 +184,37 @@ namespace OpenSim.Region.CoreModules.World.Region
167 184
168 m_Alerts.RemoveAt(0); 185 m_Alerts.RemoveAt(0);
169 186
170 int minutes = currentAlert / 60; 187 if (sendOut)
171 string currentAlertString = String.Empty;
172 if (minutes > 0)
173 { 188 {
174 if (minutes == 1) 189 int minutes = currentAlert / 60;
175 currentAlertString += "1 minute"; 190 string currentAlertString = String.Empty;
176 else 191 if (minutes > 0)
177 currentAlertString += String.Format("{0} minutes", minutes); 192 {
193 if (minutes == 1)
194 currentAlertString += "1 minute";
195 else
196 currentAlertString += String.Format("{0} minutes", minutes);
197 if ((currentAlert % 60) != 0)
198 currentAlertString += " and ";
199 }
178 if ((currentAlert % 60) != 0) 200 if ((currentAlert % 60) != 0)
179 currentAlertString += " and "; 201 {
180 } 202 int seconds = currentAlert % 60;
181 if ((currentAlert % 60) != 0) 203 if (seconds == 1)
182 { 204 currentAlertString += "1 second";
183 int seconds = currentAlert % 60; 205 else
184 if (seconds == 1) 206 currentAlertString += String.Format("{0} seconds", seconds);
185 currentAlertString += "1 second"; 207 }
186 else
187 currentAlertString += String.Format("{0} seconds", seconds);
188 }
189 208
190 string msg = String.Format(m_Message, currentAlertString); 209 string msg = String.Format(m_Message, currentAlertString);
191 210
192 if (m_DialogModule != null && msg != String.Empty) 211 if (m_DialogModule != null && msg != String.Empty)
193 { 212 {
194 if (m_Notice) 213 if (m_Notice)
195 m_DialogModule.SendGeneralAlert(msg); 214 m_DialogModule.SendGeneralAlert(msg);
196 else 215 else
197 m_DialogModule.SendNotificationToUsersInRegion(m_Initiator, "System", msg); 216 m_DialogModule.SendNotificationToUsersInRegion(m_Initiator, "System", msg);
217 }
198 } 218 }
199 219
200 return currentAlert - nextAlert; 220 return currentAlert - nextAlert;
@@ -211,7 +231,25 @@ namespace OpenSim.Region.CoreModules.World.Region
211 231
212 private void OnTimer(object source, ElapsedEventArgs e) 232 private void OnTimer(object source, ElapsedEventArgs e)
213 { 233 {
214 int nextInterval = DoOneNotice(); 234 int nextInterval = DoOneNotice(true);
235
236 SetTimer(nextInterval);
237 }
238
239 public void DelayRestart(int seconds, string message)
240 {
241 if (m_CountdownTimer == null)
242 return;
243
244 m_CountdownTimer.Stop();
245 m_CountdownTimer = null;
246
247 m_Alerts = new List<int>(m_CurrentAlerts);
248 m_Alerts.Add(seconds);
249 m_Alerts.Sort();
250 m_Alerts.Reverse();
251
252 int nextInterval = DoOneNotice(false);
215 253
216 SetTimer(nextInterval); 254 SetTimer(nextInterval);
217 } 255 }
@@ -225,6 +263,9 @@ namespace OpenSim.Region.CoreModules.World.Region
225 if (m_DialogModule != null && message != String.Empty) 263 if (m_DialogModule != null && message != String.Empty)
226 m_DialogModule.SendGeneralAlert(message); 264 m_DialogModule.SendGeneralAlert(message);
227 } 265 }
266 if (m_MarkerPath != String.Empty)
267 File.Delete(Path.Combine(m_MarkerPath,
268 m_Scene.RegionInfo.RegionID.ToString()));
228 } 269 }
229 270
230 private void HandleRegionRestart(string module, string[] args) 271 private void HandleRegionRestart(string module, string[] args)
@@ -266,5 +307,25 @@ namespace OpenSim.Region.CoreModules.World.Region
266 307
267 ScheduleRestart(UUID.Zero, args[3], times.ToArray(), notice); 308 ScheduleRestart(UUID.Zero, args[3], times.ToArray(), notice);
268 } 309 }
310
311 protected void CreateMarkerFile()
312 {
313 if (m_MarkerPath == String.Empty)
314 return;
315
316 string path = Path.Combine(m_MarkerPath, m_Scene.RegionInfo.RegionID.ToString());
317 try
318 {
319 string pidstring = System.Diagnostics.Process.GetCurrentProcess().Id.ToString();
320 FileStream fs = File.Create(path);
321 System.Text.ASCIIEncoding enc = new System.Text.ASCIIEncoding();
322 Byte[] buf = enc.GetBytes(pidstring);
323 fs.Write(buf, 0, buf.Length);
324 fs.Close();
325 }
326 catch (Exception)
327 {
328 }
329 }
269 } 330 }
270} 331}
diff --git a/OpenSim/Region/CoreModules/World/Terrain/TerrainModule.cs b/OpenSim/Region/CoreModules/World/Terrain/TerrainModule.cs
index 2eac0fa..5b03ac7 100644
--- a/OpenSim/Region/CoreModules/World/Terrain/TerrainModule.cs
+++ b/OpenSim/Region/CoreModules/World/Terrain/TerrainModule.cs
@@ -636,6 +636,8 @@ namespace OpenSim.Region.CoreModules.World.Terrain
636 m_scene.PhysicsScene.SetTerrain(m_channel.GetFloatsSerialised()); 636 m_scene.PhysicsScene.SetTerrain(m_channel.GetFloatsSerialised());
637 m_scene.SaveTerrain(); 637 m_scene.SaveTerrain();
638 638
639 m_scene.EventManager.TriggerTerrainUpdate();
640
639 // Clients who look at the map will never see changes after they looked at the map, so i've commented this out. 641 // Clients who look at the map will never see changes after they looked at the map, so i've commented this out.
640 //m_scene.CreateTerrainTexture(true); 642 //m_scene.CreateTerrainTexture(true);
641 } 643 }
diff --git a/OpenSim/Region/CoreModules/World/Warp3DMap/Warp3DImageModule.cs b/OpenSim/Region/CoreModules/World/Warp3DMap/Warp3DImageModule.cs
index 9002a9f..3c48d07 100644
--- a/OpenSim/Region/CoreModules/World/Warp3DMap/Warp3DImageModule.cs
+++ b/OpenSim/Region/CoreModules/World/Warp3DMap/Warp3DImageModule.cs
@@ -63,6 +63,9 @@ namespace OpenSim.Region.CoreModules.World.Warp3DMap
63 private bool m_useAntiAliasing = false; // TODO: Make this a config option 63 private bool m_useAntiAliasing = false; // TODO: Make this a config option
64 private bool m_Enabled = false; 64 private bool m_Enabled = false;
65 65
66 private Bitmap lastImage = null;
67 private DateTime lastImageTime = DateTime.MinValue;
68
66 #region IRegionModule Members 69 #region IRegionModule Members
67 70
68 public void Initialise(IConfigSource source) 71 public void Initialise(IConfigSource source)
@@ -85,14 +88,9 @@ namespace OpenSim.Region.CoreModules.World.Warp3DMap
85 88
86 List<string> renderers = RenderingLoader.ListRenderers(Util.ExecutingDirectory()); 89 List<string> renderers = RenderingLoader.ListRenderers(Util.ExecutingDirectory());
87 if (renderers.Count > 0) 90 if (renderers.Count > 0)
88 { 91 m_log.Info("[MAPTILE]: Loaded prim mesher " + renderers[0]);
89 m_primMesher = RenderingLoader.LoadRenderer(renderers[0]);
90 m_log.DebugFormat("[WARP 3D IMAGE MODULE]: Loaded prim mesher {0}", m_primMesher);
91 }
92 else 92 else
93 { 93 m_log.Info("[MAPTILE]: No prim mesher loaded, prim rendering will be disabled");
94 m_log.Debug("[WARP 3D IMAGE MODULE]: No prim mesher loaded, prim rendering will be disabled");
95 }
96 94
97 m_scene.RegisterModuleInterface<IMapImageGenerator>(this); 95 m_scene.RegisterModuleInterface<IMapImageGenerator>(this);
98 } 96 }
@@ -125,9 +123,25 @@ namespace OpenSim.Region.CoreModules.World.Warp3DMap
125 123
126 public Bitmap CreateMapTile() 124 public Bitmap CreateMapTile()
127 { 125 {
126 if ((DateTime.Now - lastImageTime).TotalSeconds < 3600)
127 {
128 return lastImage.Clone(new Rectangle(0, 0, 256, 256), lastImage.PixelFormat);
129 }
130
131 List<string> renderers = RenderingLoader.ListRenderers(Util.ExecutingDirectory());
132 if (renderers.Count > 0)
133 {
134 m_primMesher = RenderingLoader.LoadRenderer(renderers[0]);
135 }
136
128 Vector3 camPos = new Vector3(127.5f, 127.5f, 221.7025033688163f); 137 Vector3 camPos = new Vector3(127.5f, 127.5f, 221.7025033688163f);
129 Viewport viewport = new Viewport(camPos, -Vector3.UnitZ, 1024f, 0.1f, (int)Constants.RegionSize, (int)Constants.RegionSize, (float)Constants.RegionSize, (float)Constants.RegionSize); 138 Viewport viewport = new Viewport(camPos, -Vector3.UnitZ, 1024f, 0.1f, (int)Constants.RegionSize, (int)Constants.RegionSize, (float)Constants.RegionSize, (float)Constants.RegionSize);
130 return CreateMapTile(viewport, false); 139 Bitmap tile = CreateMapTile(viewport, false);
140 m_primMesher = null;
141
142 lastImage = tile;
143 lastImageTime = DateTime.Now;
144 return lastImage.Clone(new Rectangle(0, 0, 256, 256), lastImage.PixelFormat);
131 } 145 }
132 146
133 public Bitmap CreateViewImage(Vector3 camPos, Vector3 camDir, float fov, int width, int height, bool useTextures) 147 public Bitmap CreateViewImage(Vector3 camPos, Vector3 camDir, float fov, int width, int height, bool useTextures)
@@ -673,4 +687,4 @@ namespace OpenSim.Region.CoreModules.World.Warp3DMap
673 return result; 687 return result;
674 } 688 }
675 } 689 }
676} \ No newline at end of file 690}
diff --git a/OpenSim/Region/CoreModules/World/WorldMap/MapSearchModule.cs b/OpenSim/Region/CoreModules/World/WorldMap/MapSearchModule.cs
index f37dd94..4e6bfb8 100644
--- a/OpenSim/Region/CoreModules/World/WorldMap/MapSearchModule.cs
+++ b/OpenSim/Region/CoreModules/World/WorldMap/MapSearchModule.cs
@@ -86,9 +86,9 @@ namespace OpenSim.Region.CoreModules.World.WorldMap
86 86
87 private void OnMapNameRequest(IClientAPI remoteClient, string mapName, uint flags) 87 private void OnMapNameRequest(IClientAPI remoteClient, string mapName, uint flags)
88 { 88 {
89 if (mapName.Length < 3) 89 if (mapName.Length < 2)
90 { 90 {
91 remoteClient.SendAlertMessage("Use a search string with at least 3 characters"); 91 remoteClient.SendAlertMessage("Use a search string with at least 2 characters");
92 return; 92 return;
93 } 93 }
94 94
@@ -112,10 +112,10 @@ namespace OpenSim.Region.CoreModules.World.WorldMap
112 112
113 // try to fetch from GridServer 113 // try to fetch from GridServer
114 List<GridRegion> regionInfos = m_scene.GridService.GetRegionsByName(m_scene.RegionInfo.ScopeID, mapName, 20); 114 List<GridRegion> regionInfos = m_scene.GridService.GetRegionsByName(m_scene.RegionInfo.ScopeID, mapName, 20);
115 if (regionInfos.Count == 0) 115// if (regionInfos.Count == 0)
116 remoteClient.SendAlertMessage("Hyperlink could not be established."); 116// remoteClient.SendAlertMessage("Hyperlink could not be established.");
117 117
118 m_log.DebugFormat("[MAPSEARCHMODULE]: search {0} returned {1} regions. Flags={2}", mapName, regionInfos.Count, flags); 118 //m_log.DebugFormat("[MAPSEARCHMODULE]: search {0} returned {1} regions", mapName, regionInfos.Count);
119 List<MapBlockData> blocks = new List<MapBlockData>(); 119 List<MapBlockData> blocks = new List<MapBlockData>();
120 120
121 MapBlockData data; 121 MapBlockData data;
@@ -149,7 +149,7 @@ namespace OpenSim.Region.CoreModules.World.WorldMap
149 data.Agents = 0; 149 data.Agents = 0;
150 data.Access = 255; 150 data.Access = 255;
151 data.MapImageId = UUID.Zero; 151 data.MapImageId = UUID.Zero;
152 data.Name = ""; // mapName; 152 data.Name = mapName;
153 data.RegionFlags = 0; 153 data.RegionFlags = 0;
154 data.WaterHeight = 0; // not used 154 data.WaterHeight = 0; // not used
155 data.X = 0; 155 data.X = 0;
diff --git a/OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs b/OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs
index c1c6b49..724bb4c 100644
--- a/OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs
+++ b/OpenSim/Region/CoreModules/World/WorldMap/WorldMapModule.cs
@@ -1241,7 +1241,7 @@ namespace OpenSim.Region.CoreModules.World.WorldMap
1241 } 1241 }
1242 else 1242 else
1243 { 1243 {
1244 OSDArray responsearr = new OSDArray(m_scene.GetRootAgentCount()); 1244 OSDArray responsearr = new OSDArray(); // Don't preallocate. MT (m_scene.GetRootAgentCount());
1245 m_scene.ForEachRootScenePresence(delegate(ScenePresence sp) 1245 m_scene.ForEachRootScenePresence(delegate(ScenePresence sp)
1246 { 1246 {
1247 OSDMap responsemapdata = new OSDMap(); 1247 OSDMap responsemapdata = new OSDMap();
@@ -1461,9 +1461,10 @@ namespace OpenSim.Region.CoreModules.World.WorldMap
1461 Color background = Color.FromArgb(0, 0, 0, 0); 1461 Color background = Color.FromArgb(0, 0, 0, 0);
1462 SolidBrush transparent = new SolidBrush(background); 1462 SolidBrush transparent = new SolidBrush(background);
1463 Graphics g = Graphics.FromImage(overlay); 1463 Graphics g = Graphics.FromImage(overlay);
1464 g.FillRectangle(transparent, 0, 0, 256, 256); 1464 g.FillRectangle(transparent, 0, 0, 255, 255);
1465 1465
1466 SolidBrush yellow = new SolidBrush(Color.FromArgb(255, 249, 223, 9)); 1466 SolidBrush yellow = new SolidBrush(Color.FromArgb(255, 249, 223, 9));
1467 Pen grey = new Pen(Color.FromArgb(255, 92, 92, 92));
1467 1468
1468 foreach (ILandObject land in parcels) 1469 foreach (ILandObject land in parcels)
1469 { 1470 {
@@ -1471,8 +1472,42 @@ namespace OpenSim.Region.CoreModules.World.WorldMap
1471 if ((land.LandData.Flags & (uint)ParcelFlags.ForSale) != 0) 1472 if ((land.LandData.Flags & (uint)ParcelFlags.ForSale) != 0)
1472 { 1473 {
1473 landForSale = true; 1474 landForSale = true;
1475
1476 bool[,] landBitmap = land.GetLandBitmap();
1477
1478 for (int x = 0 ; x < 64 ; x++)
1479 {
1480 for (int y = 0 ; y < 64 ; y++)
1481 {
1482 if (landBitmap[x, y])
1483 {
1484 g.FillRectangle(yellow, x * 4, 252 - (y * 4), 4, 4);
1485
1486 if (x > 0)
1487 {
1488 if ((saleBitmap[x - 1, y] || landBitmap[x - 1, y]) == false)
1489 g.DrawLine(grey, x * 4, 252 - (y * 4), x * 4, 255 - (y * 4));
1490 }
1491 if (y > 0)
1492 {
1493 if ((saleBitmap[x, y-1] || landBitmap[x, y-1]) == false)
1494 g.DrawLine(grey, x * 4, 255 - (y * 4), x * 4 + 3, 255 - (y * 4));
1495 }
1496 if (x < 63)
1497 {
1498 if ((saleBitmap[x + 1, y] || landBitmap[x + 1, y]) == false)
1499 g.DrawLine(grey, x * 4 + 3, 252 - (y * 4), x * 4 + 3, 255 - (y * 4));
1500 }
1501 if (y < 63)
1502 {
1503 if ((saleBitmap[x, y + 1] || landBitmap[x, y + 1]) == false)
1504 g.DrawLine(grey, x * 4, 252 - (y * 4), x * 4 + 3, 252 - (y * 4));
1505 }
1506 }
1507 }
1508 }
1474 1509
1475 saleBitmap = land.MergeLandBitmaps(saleBitmap, land.GetLandBitmap()); 1510 saleBitmap = land.MergeLandBitmaps(saleBitmap, landBitmap);
1476 } 1511 }
1477 } 1512 }
1478 1513
@@ -1484,15 +1519,6 @@ namespace OpenSim.Region.CoreModules.World.WorldMap
1484 1519
1485 m_log.DebugFormat("[WORLD MAP]: Region {0} has parcels for sale, generating overlay", m_scene.RegionInfo.RegionName); 1520 m_log.DebugFormat("[WORLD MAP]: Region {0} has parcels for sale, generating overlay", m_scene.RegionInfo.RegionName);
1486 1521
1487 for (int x = 0 ; x < 64 ; x++)
1488 {
1489 for (int y = 0 ; y < 64 ; y++)
1490 {
1491 if (saleBitmap[x, y])
1492 g.FillRectangle(yellow, x * 4, 252 - (y * 4), 4, 4);
1493 }
1494 }
1495
1496 try 1522 try
1497 { 1523 {
1498 return OpenJPEG.EncodeFromImage(overlay, true); 1524 return OpenJPEG.EncodeFromImage(overlay, true);
diff --git a/OpenSim/Region/Framework/Interfaces/IAttachmentsModule.cs b/OpenSim/Region/Framework/Interfaces/IAttachmentsModule.cs
index fde5de1..70ea7cf 100644
--- a/OpenSim/Region/Framework/Interfaces/IAttachmentsModule.cs
+++ b/OpenSim/Region/Framework/Interfaces/IAttachmentsModule.cs
@@ -26,6 +26,7 @@
26 */ 26 */
27 27
28using System; 28using System;
29using System.Xml;
29using System.Collections.Generic; 30using System.Collections.Generic;
30using OpenMetaverse; 31using OpenMetaverse;
31using OpenSim.Framework; 32using OpenSim.Framework;
@@ -69,7 +70,7 @@ namespace OpenSim.Region.Framework.Interfaces
69 /// <param name="AttachmentPt"></param> 70 /// <param name="AttachmentPt"></param>
70 /// <param name="silent"></param> 71 /// <param name="silent"></param>
71 /// <returns>true if the object was successfully attached, false otherwise</returns> 72 /// <returns>true if the object was successfully attached, false otherwise</returns>
72 bool AttachObject(IScenePresence sp, SceneObjectGroup grp, uint AttachmentPt, bool silent); 73 bool AttachObject(IScenePresence sp, SceneObjectGroup grp, uint AttachmentPt, bool silent, bool useAttachmentInfo);
73 74
74 /// <summary> 75 /// <summary>
75 /// Rez an attachment from user inventory and change inventory status to match. 76 /// Rez an attachment from user inventory and change inventory status to match.
@@ -80,6 +81,10 @@ namespace OpenSim.Region.Framework.Interfaces
80 /// <returns>The scene object that was attached. Null if the scene object could not be found</returns> 81 /// <returns>The scene object that was attached. Null if the scene object could not be found</returns>
81 ISceneEntity RezSingleAttachmentFromInventory(IScenePresence sp, UUID itemID, uint AttachmentPt); 82 ISceneEntity RezSingleAttachmentFromInventory(IScenePresence sp, UUID itemID, uint AttachmentPt);
82 83
84 // Same as above, but also load script states from a separate doc
85 ISceneEntity RezSingleAttachmentFromInventory(
86 IScenePresence presence, UUID itemID, uint AttachmentPt, bool updateInventoryStatus, XmlDocument doc);
87
83 /// <summary> 88 /// <summary>
84 /// Rez multiple attachments from a user's inventory 89 /// Rez multiple attachments from a user's inventory
85 /// </summary> 90 /// </summary>
@@ -101,7 +106,6 @@ namespace OpenSim.Region.Framework.Interfaces
101 /// <param name="itemID"></param> 106 /// <param name="itemID"></param>
102 void DetachSingleAttachmentToInv(IScenePresence sp, UUID itemID); 107 void DetachSingleAttachmentToInv(IScenePresence sp, UUID itemID);
103 108
104 /// <summary>
105 /// Update the position of an attachment. 109 /// Update the position of an attachment.
106 /// </summary> 110 /// </summary>
107 /// <param name="sog"></param> 111 /// <param name="sog"></param>
diff --git a/OpenSim/Region/Framework/Interfaces/IEntityInventory.cs b/OpenSim/Region/Framework/Interfaces/IEntityInventory.cs
index 1c9bdce..4f0e100 100644
--- a/OpenSim/Region/Framework/Interfaces/IEntityInventory.cs
+++ b/OpenSim/Region/Framework/Interfaces/IEntityInventory.cs
@@ -128,6 +128,8 @@ namespace OpenSim.Region.Framework.Interfaces
128 /// </returns> 128 /// </returns>
129 bool CreateScriptInstance(UUID itemId, int startParam, bool postOnRez, string engine, int stateSource); 129 bool CreateScriptInstance(UUID itemId, int startParam, bool postOnRez, string engine, int stateSource);
130 130
131 ArrayList CreateScriptInstanceEr(UUID itemId, int startParam, bool postOnRez, string engine, int stateSource);
132
131 /// <summary> 133 /// <summary>
132 /// Stop a script which is in this prim's inventory. 134 /// Stop a script which is in this prim's inventory.
133 /// </summary> 135 /// </summary>
@@ -284,5 +286,6 @@ namespace OpenSim.Region.Framework.Interfaces
284 /// A <see cref="Dictionary`2"/> 286 /// A <see cref="Dictionary`2"/>
285 /// </returns> 287 /// </returns>
286 Dictionary<UUID, string> GetScriptStates(); 288 Dictionary<UUID, string> GetScriptStates();
289 Dictionary<UUID, string> GetScriptStates(bool oldIDs);
287 } 290 }
288} 291}
diff --git a/OpenSim/Region/Framework/Interfaces/IEntityTransferModule.cs b/OpenSim/Region/Framework/Interfaces/IEntityTransferModule.cs
index 69be83e..5bc8e51 100644
--- a/OpenSim/Region/Framework/Interfaces/IEntityTransferModule.cs
+++ b/OpenSim/Region/Framework/Interfaces/IEntityTransferModule.cs
@@ -35,6 +35,8 @@ using OpenSim.Region.Framework.Scenes;
35 35
36namespace OpenSim.Region.Framework.Interfaces 36namespace OpenSim.Region.Framework.Interfaces
37{ 37{
38 public delegate ScenePresence CrossAgentToNewRegionDelegate(ScenePresence agent, Vector3 pos, uint neighbourx, uint neighboury, GridRegion neighbourRegion, bool isFlying, string version);
39
38 public interface IEntityTransferModule 40 public interface IEntityTransferModule
39 { 41 {
40 /// <summary> 42 /// <summary>
@@ -50,29 +52,10 @@ namespace OpenSim.Region.Framework.Interfaces
50 /// <param name='teleportFlags'></param> 52 /// <param name='teleportFlags'></param>
51 void Teleport(ScenePresence agent, ulong regionHandle, Vector3 position, Vector3 lookAt, uint teleportFlags); 53 void Teleport(ScenePresence agent, ulong regionHandle, Vector3 position, Vector3 lookAt, uint teleportFlags);
52 54
53 /// <summary> 55 bool TeleportHome(UUID id, IClientAPI client);
54 /// Teleport an agent directly to a given region without checking whether the region should be subsituted.
55 /// </summary>
56 /// <remarks>
57 /// Please use Teleport() instead unless you know exactly what you're doing.
58 /// Do not use for same region teleports.
59 /// </remarks>
60 /// <param name='sp'></param>
61 /// <param name='reg'></param>
62 /// <param name='finalDestination'>/param>
63 /// <param name='position'></param>
64 /// <param name='lookAt'></param>
65 /// <param name='teleportFlags'></param>
66 void DoTeleport(
67 ScenePresence sp, GridRegion reg, GridRegion finalDestination,
68 Vector3 position, Vector3 lookAt, uint teleportFlags);
69 56
70 /// <summary> 57 void DoTeleport(ScenePresence sp, GridRegion reg, GridRegion finalDestination,
71 /// Teleports the agent for the given client to their home destination. 58 Vector3 position, Vector3 lookAt, uint teleportFlags);
72 /// </summary>
73 /// <param name='id'></param>
74 /// <param name='client'></param>
75 void TeleportHome(UUID id, IClientAPI client);
76 59
77 /// <summary> 60 /// <summary>
78 /// Show whether the given agent is being teleported. 61 /// Show whether the given agent is being teleported.
@@ -89,7 +72,12 @@ namespace OpenSim.Region.Framework.Interfaces
89 72
90 void EnableChildAgent(ScenePresence agent, GridRegion region); 73 void EnableChildAgent(ScenePresence agent, GridRegion region);
91 74
75 GridRegion GetDestination(Scene scene, UUID agentID, Vector3 pos, out uint xDest, out uint yDest, out string version, out Vector3 newpos);
76
92 void Cross(SceneObjectGroup sog, Vector3 position, bool silent); 77 void Cross(SceneObjectGroup sog, Vector3 position, bool silent);
78
79 ScenePresence CrossAgentToNewRegionAsync(ScenePresence agent, Vector3 pos, uint neighbourx, uint neighboury, GridRegion neighbourRegion, bool isFlying, string version);
80
93 } 81 }
94 82
95 public interface IUserAgentVerificationModule 83 public interface IUserAgentVerificationModule
diff --git a/OpenSim/Region/Framework/Interfaces/IEstateModule.cs b/OpenSim/Region/Framework/Interfaces/IEstateModule.cs
index 15cd238..ca2ad94 100644
--- a/OpenSim/Region/Framework/Interfaces/IEstateModule.cs
+++ b/OpenSim/Region/Framework/Interfaces/IEstateModule.cs
@@ -45,6 +45,8 @@ namespace OpenSim.Region.Framework.Interfaces
45 /// Tell all clients about the current state of the region (terrain textures, water height, etc.). 45 /// Tell all clients about the current state of the region (terrain textures, water height, etc.).
46 /// </summary> 46 /// </summary>
47 void sendRegionHandshakeToAll(); 47 void sendRegionHandshakeToAll();
48 void TriggerEstateInfoChange();
49 void TriggerRegionInfoChange();
48 50
49 void setEstateTerrainBaseTexture(int level, UUID texture); 51 void setEstateTerrainBaseTexture(int level, UUID texture);
50 void setEstateTerrainTextureHeights(int corner, float lowValue, float highValue); 52 void setEstateTerrainTextureHeights(int corner, float lowValue, float highValue);
diff --git a/OpenSim/Region/Framework/Interfaces/IEventQueue.cs b/OpenSim/Region/Framework/Interfaces/IEventQueue.cs
index bfa5d17..5512642 100644
--- a/OpenSim/Region/Framework/Interfaces/IEventQueue.cs
+++ b/OpenSim/Region/Framework/Interfaces/IEventQueue.cs
@@ -59,5 +59,7 @@ namespace OpenSim.Region.Framework.Interfaces
59 void GroupMembership(AgentGroupDataUpdatePacket groupUpdate, UUID avatarID); 59 void GroupMembership(AgentGroupDataUpdatePacket groupUpdate, UUID avatarID);
60 OSD ScriptRunningEvent(UUID objectID, UUID itemID, bool running, bool mono); 60 OSD ScriptRunningEvent(UUID objectID, UUID itemID, bool running, bool mono);
61 OSD BuildEvent(string eventName, OSD eventBody); 61 OSD BuildEvent(string eventName, OSD eventBody);
62 void partPhysicsProperties(uint localID, byte physhapetype, float density, float friction, float bounce, float gravmod, UUID avatarID);
63
62 } 64 }
63} 65}
diff --git a/OpenSim/Region/Framework/Interfaces/IInterregionComms.cs b/OpenSim/Region/Framework/Interfaces/IInterregionComms.cs
index 2d6287f..67a500f 100644
--- a/OpenSim/Region/Framework/Interfaces/IInterregionComms.cs
+++ b/OpenSim/Region/Framework/Interfaces/IInterregionComms.cs
@@ -68,6 +68,14 @@ namespace OpenSim.Region.Framework.Interfaces
68 bool SendReleaseAgent(ulong regionHandle, UUID id, string uri); 68 bool SendReleaseAgent(ulong regionHandle, UUID id, string uri);
69 69
70 /// <summary> 70 /// <summary>
71 /// Close chid agent.
72 /// </summary>
73 /// <param name="regionHandle"></param>
74 /// <param name="id"></param>
75 /// <returns></returns>
76 bool SendCloseChildAgent(ulong regionHandle, UUID id);
77
78 /// <summary>
71 /// Close agent. 79 /// Close agent.
72 /// </summary> 80 /// </summary>
73 /// <param name="regionHandle"></param> 81 /// <param name="regionHandle"></param>
diff --git a/OpenSim/Region/Framework/Interfaces/IRestartModule.cs b/OpenSim/Region/Framework/Interfaces/IRestartModule.cs
index c68550f..9b25beb 100644
--- a/OpenSim/Region/Framework/Interfaces/IRestartModule.cs
+++ b/OpenSim/Region/Framework/Interfaces/IRestartModule.cs
@@ -35,5 +35,6 @@ namespace OpenSim.Region.Framework.Interfaces
35 TimeSpan TimeUntilRestart { get; } 35 TimeSpan TimeUntilRestart { get; }
36 void ScheduleRestart(UUID initiator, string message, int[] alerts, bool notice); 36 void ScheduleRestart(UUID initiator, string message, int[] alerts, bool notice);
37 void AbortRestart(string message); 37 void AbortRestart(string message);
38 void DelayRestart(int seconds, string message);
38 } 39 }
39} 40}
diff --git a/OpenSim/Region/Framework/Interfaces/IScriptModule.cs b/OpenSim/Region/Framework/Interfaces/IScriptModule.cs
index cbaf241..42dbedc 100644
--- a/OpenSim/Region/Framework/Interfaces/IScriptModule.cs
+++ b/OpenSim/Region/Framework/Interfaces/IScriptModule.cs
@@ -69,6 +69,8 @@ namespace OpenSim.Region.Framework.Interfaces
69 69
70 ArrayList GetScriptErrors(UUID itemID); 70 ArrayList GetScriptErrors(UUID itemID);
71 71
72 bool HasScript(UUID itemID, out bool running);
73
72 /// <summary> 74 /// <summary>
73 /// Returns true if a script is running. 75 /// Returns true if a script is running.
74 /// </summary> 76 /// </summary>
@@ -101,4 +103,4 @@ namespace OpenSim.Region.Framework.Interfaces
101 /// </returns> 103 /// </returns>
102 Dictionary<uint, float> GetObjectScriptsExecutionTimes(); 104 Dictionary<uint, float> GetObjectScriptsExecutionTimes();
103 } 105 }
104} \ No newline at end of file 106}
diff --git a/OpenSim/Region/Framework/Interfaces/ISimulationDataService.cs b/OpenSim/Region/Framework/Interfaces/ISimulationDataService.cs
index 0fcafcc..ccb583d 100644
--- a/OpenSim/Region/Framework/Interfaces/ISimulationDataService.cs
+++ b/OpenSim/Region/Framework/Interfaces/ISimulationDataService.cs
@@ -116,5 +116,6 @@ namespace OpenSim.Region.Framework.Interfaces
116 /// <param name="regionUUID">the region UUID</param> 116 /// <param name="regionUUID">the region UUID</param>
117 void RemoveRegionEnvironmentSettings(UUID regionUUID); 117 void RemoveRegionEnvironmentSettings(UUID regionUUID);
118 118
119 UUID[] GetObjectIDs(UUID regionID);
119 } 120 }
120} 121}
diff --git a/OpenSim/Region/Framework/Interfaces/ISimulationDataStore.cs b/OpenSim/Region/Framework/Interfaces/ISimulationDataStore.cs
index e424976..d7c80f7 100644
--- a/OpenSim/Region/Framework/Interfaces/ISimulationDataStore.cs
+++ b/OpenSim/Region/Framework/Interfaces/ISimulationDataStore.cs
@@ -106,6 +106,7 @@ namespace OpenSim.Region.Framework.Interfaces
106 RegionLightShareData LoadRegionWindlightSettings(UUID regionUUID); 106 RegionLightShareData LoadRegionWindlightSettings(UUID regionUUID);
107 void StoreRegionWindlightSettings(RegionLightShareData wl); 107 void StoreRegionWindlightSettings(RegionLightShareData wl);
108 void RemoveRegionWindlightSettings(UUID regionID); 108 void RemoveRegionWindlightSettings(UUID regionID);
109 UUID[] GetObjectIDs(UUID regionID);
109 110
110 /// <summary> 111 /// <summary>
111 /// Load Environment settings from region storage 112 /// Load Environment settings from region storage
diff --git a/OpenSim/Region/Framework/Interfaces/ISnmpModule.cs b/OpenSim/Region/Framework/Interfaces/ISnmpModule.cs
new file mode 100644
index 0000000..e01f649
--- /dev/null
+++ b/OpenSim/Region/Framework/Interfaces/ISnmpModule.cs
@@ -0,0 +1,27 @@
1///////////////////////////////////////////////////////////////////
2//
3// (c) Careminster LImited, Melanie Thielker and the Meta7 Team
4//
5// This file is not open source. All rights reserved
6// Mod 2
7
8using OpenSim.Region.Framework.Scenes;
9
10public interface ISnmpModule
11{
12 void Trap(int code, string Message, Scene scene);
13 void Critical(string Message, Scene scene);
14 void Warning(string Message, Scene scene);
15 void Major(string Message, Scene scene);
16 void ColdStart(int step , Scene scene);
17 void Shutdown(int step , Scene scene);
18 //
19 // Node Start/stop events
20 //
21 void LinkUp(Scene scene);
22 void LinkDown(Scene scene);
23 void BootInfo(string data, Scene scene);
24 void trapDebug(string Module,string data, Scene scene);
25 void trapXMRE(int data, string Message, Scene scene);
26
27}
diff --git a/OpenSim/Region/Framework/Interfaces/IUserAccountCacheModule.cs b/OpenSim/Region/Framework/Interfaces/IUserAccountCacheModule.cs
new file mode 100644
index 0000000..d1a4d8e
--- /dev/null
+++ b/OpenSim/Region/Framework/Interfaces/IUserAccountCacheModule.cs
@@ -0,0 +1,13 @@
1///////////////////////////////////////////////////////////////////
2//
3// (c) Careminster Limited, Melanie Thielker and the Meta7 Team
4//
5// This file is not open source. All rights reserved
6//
7
8using OpenSim.Region.Framework.Scenes;
9
10public interface IUserAccountCacheModule
11{
12 void Remove(string name);
13}
diff --git a/OpenSim/Region/Framework/ModuleLoader.cs b/OpenSim/Region/Framework/ModuleLoader.cs
index 14ecd44..32ee674 100644
--- a/OpenSim/Region/Framework/ModuleLoader.cs
+++ b/OpenSim/Region/Framework/ModuleLoader.cs
@@ -227,7 +227,8 @@ namespace OpenSim.Region.Framework
227 pluginAssembly.FullName, e.Message, e.StackTrace); 227 pluginAssembly.FullName, e.Message, e.StackTrace);
228 228
229 // justincc: Right now this is fatal to really get the user's attention 229 // justincc: Right now this is fatal to really get the user's attention
230 throw e; 230 // TomMeta: WTF? No, how about we /don't/ throw a fatal exception when there's no need to?
231 //throw e;
231 } 232 }
232 } 233 }
233 234
diff --git a/OpenSim/Region/Framework/Scenes/Animation/ScenePresenceAnimator.cs b/OpenSim/Region/Framework/Scenes/Animation/ScenePresenceAnimator.cs
index 14ae287..9ddac19 100644
--- a/OpenSim/Region/Framework/Scenes/Animation/ScenePresenceAnimator.cs
+++ b/OpenSim/Region/Framework/Scenes/Animation/ScenePresenceAnimator.cs
@@ -79,13 +79,13 @@ namespace OpenSim.Region.Framework.Scenes.Animation
79 m_scenePresence = sp; 79 m_scenePresence = sp;
80 CurrentMovementAnimation = "CROUCH"; 80 CurrentMovementAnimation = "CROUCH";
81 } 81 }
82 82
83 public void AddAnimation(UUID animID, UUID objectID) 83 public void AddAnimation(UUID animID, UUID objectID)
84 { 84 {
85 if (m_scenePresence.IsChildAgent) 85 if (m_scenePresence.IsChildAgent)
86 return; 86 return;
87 87
88// m_log.DebugFormat("[SCENE PRESENCE ANIMATOR]: Adding animation {0} for {1}", animID, m_scenePresence.Name); 88 // m_log.DebugFormat("[SCENE PRESENCE ANIMATOR]: Adding animation {0} for {1}", animID, m_scenePresence.Name);
89 89
90 if (m_animations.Add(animID, m_scenePresence.ControllingClient.NextAnimationSequenceNumber, objectID)) 90 if (m_animations.Add(animID, m_scenePresence.ControllingClient.NextAnimationSequenceNumber, objectID))
91 SendAnimPack(); 91 SendAnimPack();
@@ -117,6 +117,22 @@ namespace OpenSim.Region.Framework.Scenes.Animation
117 SendAnimPack(); 117 SendAnimPack();
118 } 118 }
119 119
120 public void avnChangeAnim(UUID animID, bool addRemove, bool sendPack)
121 {
122 if (m_scenePresence.IsChildAgent)
123 return;
124
125 if (animID != UUID.Zero)
126 {
127 if (addRemove)
128 m_animations.Add(animID, m_scenePresence.ControllingClient.NextAnimationSequenceNumber, UUID.Zero);
129 else
130 m_animations.Remove(animID);
131 }
132 if(sendPack)
133 SendAnimPack();
134 }
135
120 // Called from scripts 136 // Called from scripts
121 public void RemoveAnimation(string name) 137 public void RemoveAnimation(string name)
122 { 138 {
diff --git a/OpenSim/Region/Framework/Scenes/CollisionSounds.cs b/OpenSim/Region/Framework/Scenes/CollisionSounds.cs
new file mode 100644
index 0000000..075724e
--- /dev/null
+++ b/OpenSim/Region/Framework/Scenes/CollisionSounds.cs
@@ -0,0 +1,304 @@
1/*
2 * Copyright (c) Contributors, http://opensimulator.org/
3 * See CONTRIBUTORS.TXT for a full list of copyright holders.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 * * Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * * Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
12 * * Neither the name of the OpenSimulator Project nor the
13 * names of its contributors may be used to endorse or promote products
14 * derived from this software without specific prior written permission.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
17 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
20 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27// Ubit 2012
28
29using System;
30using System.Reflection;
31using System.Collections.Generic;
32using OpenMetaverse;
33using OpenSim.Framework;
34using log4net;
35
36namespace OpenSim.Region.Framework.Scenes
37{
38 public struct CollisionForSoundInfo
39 {
40 public uint colliderID;
41 public Vector3 position;
42 public float relativeVel;
43 }
44
45 public static class CollisionSounds
46 {
47 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
48
49 private const int MaxMaterials = 7;
50 // part part
51
52 private static UUID snd_StoneStone = new UUID("be7295c0-a158-11e1-b3dd-0800200c9a66");
53 private static UUID snd_StoneMetal = new UUID("be7295c0-a158-11e1-b3dd-0800201c9a66");
54 private static UUID snd_StoneGlass = new UUID("be7295c0-a158-11e1-b3dd-0800202c9a66");
55 private static UUID snd_StoneWood = new UUID("be7295c0-a158-11e1-b3dd-0800203c9a66");
56 private static UUID snd_StoneFlesh = new UUID("be7295c0-a158-11e1-b3dd-0800204c9a66");
57 private static UUID snd_StonePlastic = new UUID("be7295c0-a158-11e1-b3dd-0800205c9a66");
58 private static UUID snd_StoneRubber = new UUID("be7295c0-a158-11e1-b3dd-0800206c9a66");
59
60 private static UUID snd_MetalMetal = new UUID("be7295c0-a158-11e1-b3dd-0801201c9a66");
61 private static UUID snd_MetalGlass = new UUID("be7295c0-a158-11e1-b3dd-0801202c9a66");
62 private static UUID snd_MetalWood = new UUID("be7295c0-a158-11e1-b3dd-0801203c9a66");
63 private static UUID snd_MetalFlesh = new UUID("be7295c0-a158-11e1-b3dd-0801204c9a66");
64 private static UUID snd_MetalPlastic = new UUID("be7295c0-a158-11e1-b3dd-0801205c9a66");
65 private static UUID snd_MetalRubber = new UUID("be7295c0-a158-11e1-b3dd-0801206c9a66");
66
67 private static UUID snd_GlassGlass = new UUID("be7295c0-a158-11e1-b3dd-0802202c9a66");
68 private static UUID snd_GlassWood = new UUID("be7295c0-a158-11e1-b3dd-0802203c9a66");
69 private static UUID snd_GlassFlesh = new UUID("be7295c0-a158-11e1-b3dd-0802204c9a66");
70 private static UUID snd_GlassPlastic = new UUID("be7295c0-a158-11e1-b3dd-0802205c9a66");
71 private static UUID snd_GlassRubber = new UUID("be7295c0-a158-11e1-b3dd-0802206c9a66");
72
73 private static UUID snd_WoodWood = new UUID("be7295c0-a158-11e1-b3dd-0803203c9a66");
74 private static UUID snd_WoodFlesh = new UUID("be7295c0-a158-11e1-b3dd-0803204c9a66");
75 private static UUID snd_WoodPlastic = new UUID("be7295c0-a158-11e1-b3dd-0803205c9a66");
76 private static UUID snd_WoodRubber = new UUID("be7295c0-a158-11e1-b3dd-0803206c9a66");
77
78 private static UUID snd_FleshFlesh = new UUID("be7295c0-a158-11e1-b3dd-0804204c9a66");
79 private static UUID snd_FleshPlastic = new UUID("be7295c0-a158-11e1-b3dd-0804205c9a66");
80 private static UUID snd_FleshRubber = new UUID("be7295c0-a158-11e1-b3dd-0804206c9a66");
81
82 private static UUID snd_PlasticPlastic = new UUID("be7295c0-a158-11e1-b3dd-0805205c9a66");
83 private static UUID snd_PlasticRubber = new UUID("be7295c0-a158-11e1-b3dd-0805206c9a66");
84
85 private static UUID snd_RubberRubber = new UUID("be7295c0-a158-11e1-b3dd-0806206c9a66");
86
87 // terrain part
88 private static UUID snd_TerrainStone = new UUID("be7295c0-a158-11e1-b3dd-0807200c9a66");
89 private static UUID snd_TerrainMetal = new UUID("be7295c0-a158-11e1-b3dd-0807200c9a66");
90 private static UUID snd_TerrainGlass = new UUID("be7295c0-a158-11e1-b3dd-0807200c9a66");
91 private static UUID snd_TerrainWood = new UUID("be7295c0-a158-11e1-b3dd-0807200c9a66");
92 private static UUID snd_TerrainFlesh = new UUID("be7295c0-a158-11e1-b3dd-0807200c9a66");
93 private static UUID snd_TerrainPlastic = new UUID("be7295c0-a158-11e1-b3dd-0807200c9a66");
94 private static UUID snd_TerrainRubber = new UUID("be7295c0-a158-11e1-b3dd-0807200c9a66");
95
96 public static UUID[] m_TerrainPart = {
97 snd_TerrainStone,
98 snd_TerrainMetal,
99 snd_TerrainGlass,
100 snd_TerrainWood,
101 snd_TerrainFlesh,
102 snd_TerrainPlastic,
103 snd_TerrainRubber
104 };
105
106 // simetric sounds
107 public static UUID[] m_PartPart = {
108 snd_StoneStone, snd_StoneMetal, snd_StoneGlass, snd_StoneWood, snd_StoneFlesh, snd_StonePlastic, snd_StoneRubber,
109 snd_StoneMetal, snd_MetalMetal, snd_MetalGlass, snd_MetalWood, snd_MetalFlesh, snd_MetalPlastic, snd_MetalRubber,
110 snd_StoneGlass, snd_MetalGlass, snd_GlassGlass, snd_GlassWood, snd_GlassFlesh, snd_GlassPlastic, snd_GlassRubber,
111 snd_StoneWood, snd_MetalWood, snd_GlassWood, snd_WoodWood, snd_WoodFlesh, snd_WoodPlastic, snd_WoodRubber,
112 snd_StoneFlesh, snd_MetalFlesh, snd_GlassFlesh, snd_WoodFlesh, snd_FleshFlesh, snd_FleshPlastic, snd_FleshRubber,
113 snd_StonePlastic, snd_MetalPlastic, snd_GlassPlastic, snd_WoodPlastic, snd_FleshPlastic, snd_PlasticPlastic, snd_PlasticRubber,
114 snd_StoneRubber, snd_MetalRubber, snd_GlassRubber, snd_WoodRubber, snd_FleshRubber, snd_PlasticRubber, snd_RubberRubber
115 };
116
117 public static void PartCollisionSound(SceneObjectPart part, List<CollisionForSoundInfo> collidersinfolist)
118 {
119 if (collidersinfolist.Count == 0 || part == null)
120 return;
121
122 if (part.VolumeDetectActive || (part.Flags & PrimFlags.Physics) == 0)
123 return;
124
125 if (part.ParentGroup == null)
126 return;
127
128 if (part.CollisionSoundType < 0)
129 return;
130
131 float volume = 0.0f;
132 bool HaveSound = false;
133
134 UUID soundID = part.CollisionSound;
135
136 if (part.CollisionSoundType > 0)
137 {
138 // soundID = part.CollisionSound;
139 volume = part.CollisionSoundVolume;
140 if (volume == 0.0f)
141 return;
142 HaveSound = true;
143 }
144
145 bool doneownsound = false;
146
147 int thisMaterial = (int)part.Material;
148 if (thisMaterial >= MaxMaterials)
149 thisMaterial = 3;
150 int thisMatScaled = thisMaterial * MaxMaterials;
151
152 CollisionForSoundInfo colInfo;
153 uint id;
154
155 for(int i = 0; i< collidersinfolist.Count; i++)
156 {
157 colInfo = collidersinfolist[i];
158
159 id = colInfo.colliderID;
160 if (id == 0) // terrain collision
161 {
162 if (!doneownsound)
163 {
164 if (!HaveSound)
165 {
166 volume = Math.Abs(colInfo.relativeVel);
167 if (volume < 0.2f)
168 continue;
169
170 volume *= volume * .0625f; // 4m/s == full volume
171 if (volume > 1.0f)
172 volume = 1.0f;
173
174 soundID = m_TerrainPart[thisMaterial];
175 }
176 part.SendCollisionSound(soundID, volume, colInfo.position);
177 doneownsound = true;
178 }
179 continue;
180 }
181
182 SceneObjectPart otherPart = part.ParentGroup.Scene.GetSceneObjectPart(id);
183 if (otherPart != null)
184 {
185 if (otherPart.CollisionSoundType < 0 || otherPart.VolumeDetectActive)
186 continue;
187
188 if (!HaveSound)
189 {
190 if (otherPart.CollisionSoundType > 0)
191 {
192 soundID = otherPart.CollisionSound;
193 volume = otherPart.CollisionSoundVolume;
194 if (volume == 0.0f)
195 continue;
196 }
197 else
198 {
199 volume = Math.Abs(colInfo.relativeVel);
200 if (volume < 0.2f)
201 continue;
202
203 volume *= volume * .0625f; // 4m/s == full volume
204 if (volume > 1.0f)
205 volume = 1.0f;
206
207 int otherMaterial = (int)otherPart.Material;
208 if (otherMaterial >= MaxMaterials)
209 otherMaterial = 3;
210
211 soundID = m_PartPart[thisMatScaled + otherMaterial];
212 }
213 }
214
215 if (doneownsound)
216 otherPart.SendCollisionSound(soundID, volume, colInfo.position);
217 else
218 {
219 part.SendCollisionSound(soundID, volume, colInfo.position);
220 doneownsound = true;
221 }
222 }
223 }
224 }
225
226 public static void AvatarCollisionSound(ScenePresence av, List<CollisionForSoundInfo> collidersinfolist)
227 {
228 if (collidersinfolist.Count == 0 || av == null)
229 return;
230
231 UUID soundID;
232 int otherMaterial;
233
234 int thisMaterial = 4; // flesh
235
236 int thisMatScaled = thisMaterial * MaxMaterials;
237
238 // bool doneownsound = false;
239
240 CollisionForSoundInfo colInfo;
241 uint id;
242 float volume;
243
244 for(int i = 0; i< collidersinfolist.Count; i++)
245 {
246 colInfo = collidersinfolist[i];
247
248 id = colInfo.colliderID;
249
250 if (id == 0) // no terrain collision sounds for now
251 {
252 continue;
253// volume = Math.Abs(colInfo.relativeVel);
254// if (volume < 0.2f)
255// continue;
256
257 }
258
259 SceneObjectPart otherPart = av.Scene.GetSceneObjectPart(id);
260 if (otherPart != null)
261 {
262 if (otherPart.CollisionSoundType < 0)
263 continue;
264 if (otherPart.CollisionSoundType > 0 && otherPart.CollisionSoundVolume > 0f)
265 otherPart.SendCollisionSound(otherPart.CollisionSound, otherPart.CollisionSoundVolume, colInfo.position);
266 else
267 {
268 volume = Math.Abs(colInfo.relativeVel);
269 // Most noral collisions (running into walls, stairs)
270 // should never be heard.
271 if (volume < 3.2f)
272 continue;
273// m_log.DebugFormat("Collision speed was {0}", volume);
274
275 // Cap to 0.2 times volume because climbing stairs should not be noisy
276 // Also changed scaling
277 volume *= volume * .0125f; // 4m/s == volume 0.2
278 if (volume > 0.2f)
279 volume = 0.2f;
280 otherMaterial = (int)otherPart.Material;
281 if (otherMaterial >= MaxMaterials)
282 otherMaterial = 3;
283
284 soundID = m_PartPart[thisMatScaled + otherMaterial];
285 otherPart.SendCollisionSound(soundID, volume, colInfo.position);
286 }
287 continue;
288 }
289/*
290 else if (!doneownsound)
291 {
292 ScenePresence otherav = av.Scene.GetScenePresence(Id);
293 if (otherav != null && (!otherav.IsChildAgent))
294 {
295 soundID = snd_FleshFlesh;
296 av.SendCollisionSound(soundID, 1.0);
297 doneownsound = true;
298 }
299 }
300 */
301 }
302 }
303 }
304}
diff --git a/OpenSim/Region/Framework/Scenes/EventManager.cs b/OpenSim/Region/Framework/Scenes/EventManager.cs
index f92ed8e..76a952b 100644
--- a/OpenSim/Region/Framework/Scenes/EventManager.cs
+++ b/OpenSim/Region/Framework/Scenes/EventManager.cs
@@ -59,8 +59,12 @@ namespace OpenSim.Region.Framework.Scenes
59 59
60 public delegate void OnTerrainTickDelegate(); 60 public delegate void OnTerrainTickDelegate();
61 61
62 public delegate void OnTerrainUpdateDelegate();
63
62 public event OnTerrainTickDelegate OnTerrainTick; 64 public event OnTerrainTickDelegate OnTerrainTick;
63 65
66 public event OnTerrainUpdateDelegate OnTerrainUpdate;
67
64 public delegate void OnBackupDelegate(ISimulationDataService datastore, bool forceBackup); 68 public delegate void OnBackupDelegate(ISimulationDataService datastore, bool forceBackup);
65 69
66 public event OnBackupDelegate OnBackup; 70 public event OnBackupDelegate OnBackup;
@@ -896,6 +900,26 @@ namespace OpenSim.Region.Framework.Scenes
896 } 900 }
897 } 901 }
898 } 902 }
903 public void TriggerTerrainUpdate()
904 {
905 OnTerrainUpdateDelegate handlerTerrainUpdate = OnTerrainUpdate;
906 if (handlerTerrainUpdate != null)
907 {
908 foreach (OnTerrainUpdateDelegate d in handlerTerrainUpdate.GetInvocationList())
909 {
910 try
911 {
912 d();
913 }
914 catch (Exception e)
915 {
916 m_log.ErrorFormat(
917 "[EVENT MANAGER]: Delegate for TriggerTerrainUpdate failed - continuing. {0} {1}",
918 e.Message, e.StackTrace);
919 }
920 }
921 }
922 }
899 923
900 public void TriggerTerrainTick() 924 public void TriggerTerrainTick()
901 { 925 {
diff --git a/OpenSim/Region/Framework/Scenes/KeyframeMotion.cs b/OpenSim/Region/Framework/Scenes/KeyframeMotion.cs
new file mode 100644
index 0000000..b7b0d27
--- /dev/null
+++ b/OpenSim/Region/Framework/Scenes/KeyframeMotion.cs
@@ -0,0 +1,422 @@
1// Proprietary code of Avination Virtual Limited
2// (c) 2012 Melanie Thielker
3//
4
5using System;
6using System.Timers;
7using System.Collections;
8using System.Collections.Generic;
9using System.IO;
10using System.Diagnostics;
11using System.Reflection;
12using System.Threading;
13using OpenMetaverse;
14using OpenSim.Framework;
15using OpenSim.Region.Framework.Interfaces;
16using OpenSim.Region.Physics.Manager;
17using OpenSim.Region.Framework.Scenes.Serialization;
18using System.Runtime.Serialization.Formatters.Binary;
19using System.Runtime.Serialization;
20using Timer = System.Timers.Timer;
21using log4net;
22
23namespace OpenSim.Region.Framework.Scenes
24{
25 [Serializable]
26 public class KeyframeMotion
27 {
28 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
29
30 public enum PlayMode : int
31 {
32 Forward = 0,
33 Reverse = 1,
34 Loop = 2,
35 PingPong = 3
36 };
37
38 [Flags]
39 public enum DataFormat : int
40 {
41 Translation = 1,
42 Rotation = 2
43 }
44
45 [Serializable]
46 public struct Keyframe
47 {
48 public Vector3? Position;
49 public Quaternion? Rotation;
50 public Quaternion StartRotation;
51 public int TimeMS;
52 public int TimeTotal;
53 public Vector3 AngularVelocity;
54 };
55
56 private Vector3 m_basePosition;
57 private Quaternion m_baseRotation;
58 private Vector3 m_serializedPosition;
59
60 private Keyframe m_currentFrame;
61 private List<Keyframe> m_frames = new List<Keyframe>();
62
63 private Keyframe[] m_keyframes;
64
65 [NonSerialized()]
66 protected Timer m_timer = new Timer();
67
68 [NonSerialized()]
69 private SceneObjectGroup m_group;
70
71 private PlayMode m_mode = PlayMode.Forward;
72 private DataFormat m_data = DataFormat.Translation | DataFormat.Rotation;
73
74 private bool m_running = false;
75 [NonSerialized()]
76 private bool m_selected = false;
77
78 private int m_iterations = 0;
79
80 private const double timerInterval = 50.0;
81
82 public DataFormat Data
83 {
84 get { return m_data; }
85 }
86
87 public bool Selected
88 {
89 set
90 {
91 if (value)
92 {
93 // Once we're let go, recompute positions
94 if (m_selected)
95 UpdateSceneObject(m_group);
96 }
97 else
98 {
99 // Save selection position in case we get moved
100 if (!m_selected)
101 m_serializedPosition = m_group.AbsolutePosition;
102 }
103 m_selected = value; }
104 }
105
106 public static KeyframeMotion FromData(SceneObjectGroup grp, Byte[] data)
107 {
108 MemoryStream ms = new MemoryStream(data);
109
110 BinaryFormatter fmt = new BinaryFormatter();
111
112 KeyframeMotion newMotion = (KeyframeMotion)fmt.Deserialize(ms);
113
114 // This will be started when position is updated
115 newMotion.m_timer = new Timer();
116 newMotion.m_timer.Interval = (int)timerInterval;
117 newMotion.m_timer.AutoReset = true;
118 newMotion.m_timer.Elapsed += newMotion.OnTimer;
119
120 return newMotion;
121 }
122
123 public void UpdateSceneObject(SceneObjectGroup grp)
124 {
125 m_group = grp;
126 Vector3 offset = grp.AbsolutePosition - m_serializedPosition;
127
128 m_basePosition += offset;
129 m_currentFrame.Position += offset;
130 for (int i = 0 ; i < m_frames.Count ; i++)
131 {
132 Keyframe k = m_frames[i];
133 k.Position += offset;
134 m_frames[i] = k;
135 }
136
137 if (m_running)
138 Start();
139 }
140
141 public KeyframeMotion(SceneObjectGroup grp, PlayMode mode, DataFormat data)
142 {
143 m_mode = mode;
144 m_data = data;
145
146 m_group = grp;
147 m_basePosition = grp.AbsolutePosition;
148 m_baseRotation = grp.GroupRotation;
149
150 m_timer.Interval = (int)timerInterval;
151 m_timer.AutoReset = true;
152 m_timer.Elapsed += OnTimer;
153 }
154
155 public void SetKeyframes(Keyframe[] frames)
156 {
157 m_keyframes = frames;
158 }
159
160 public void Start()
161 {
162 if (m_keyframes.Length > 0)
163 m_timer.Start();
164 m_running = true;
165 }
166
167 public void Stop()
168 {
169 // Failed object creation
170 if (m_timer == null)
171 return;
172 m_timer.Stop();
173
174 m_basePosition = m_group.AbsolutePosition;
175 m_baseRotation = m_group.GroupRotation;
176
177 m_group.RootPart.Velocity = Vector3.Zero;
178 m_group.RootPart.UpdateAngularVelocity(Vector3.Zero);
179 m_group.SendGroupRootTerseUpdate();
180
181 m_frames.Clear();
182 m_running = false;
183 }
184
185 public void Pause()
186 {
187 m_group.RootPart.Velocity = Vector3.Zero;
188 m_group.RootPart.UpdateAngularVelocity(Vector3.Zero);
189 m_group.SendGroupRootTerseUpdate();
190
191 m_timer.Stop();
192 m_running = false;
193 }
194
195 private void GetNextList()
196 {
197 m_frames.Clear();
198 Vector3 pos = m_basePosition;
199 Quaternion rot = m_baseRotation;
200
201 if (m_mode == PlayMode.Loop || m_mode == PlayMode.PingPong || m_iterations == 0)
202 {
203 int direction = 1;
204 if (m_mode == PlayMode.Reverse || ((m_mode == PlayMode.PingPong) && ((m_iterations & 1) != 0)))
205 direction = -1;
206
207 int start = 0;
208 int end = m_keyframes.Length;
209// if (m_mode == PlayMode.PingPong && m_keyframes.Length > 1)
210// end = m_keyframes.Length - 1;
211
212 if (direction < 0)
213 {
214 start = m_keyframes.Length - 1;
215 end = -1;
216// if (m_mode == PlayMode.PingPong && m_keyframes.Length > 1)
217// end = 0;
218 }
219
220 for (int i = start; i != end ; i += direction)
221 {
222 Keyframe k = m_keyframes[i];
223
224 if (k.Position.HasValue)
225 k.Position = (k.Position * direction) + pos;
226 else
227 k.Position = pos;
228
229 k.StartRotation = rot;
230 if (k.Rotation.HasValue)
231 {
232 if (direction == -1)
233 k.Rotation = Quaternion.Conjugate((Quaternion)k.Rotation);
234 k.Rotation = rot * k.Rotation;
235 }
236 else
237 {
238 k.Rotation = rot;
239 }
240
241 float angle = 0;
242
243 float aa = k.StartRotation.X * k.StartRotation.X + k.StartRotation.Y * k.StartRotation.Y + k.StartRotation.Z * k.StartRotation.Z + k.StartRotation.W * k.StartRotation.W;
244 float bb = ((Quaternion)k.Rotation).X * ((Quaternion)k.Rotation).X + ((Quaternion)k.Rotation).Y * ((Quaternion)k.Rotation).Y + ((Quaternion)k.Rotation).Z * ((Quaternion)k.Rotation).Z + ((Quaternion)k.Rotation).W * ((Quaternion)k.Rotation).W;
245 float aa_bb = aa * bb;
246
247 if (aa_bb == 0)
248 {
249 angle = 0;
250 }
251 else
252 {
253 float ab = k.StartRotation.X * ((Quaternion)k.Rotation).X +
254 k.StartRotation.Y * ((Quaternion)k.Rotation).Y +
255 k.StartRotation.Z * ((Quaternion)k.Rotation).Z +
256 k.StartRotation.W * ((Quaternion)k.Rotation).W;
257 float q = (ab * ab) / aa_bb;
258
259 if (q > 1.0f)
260 {
261 angle = 0;
262 }
263 else
264 {
265 angle = (float)Math.Acos(2 * q - 1);
266 }
267 }
268
269 k.AngularVelocity = (new Vector3(0, 0, 1) * (Quaternion)k.Rotation) * (angle / (k.TimeMS / 1000));
270 k.TimeTotal = k.TimeMS;
271
272 m_frames.Add(k);
273
274 pos = (Vector3)k.Position;
275 rot = (Quaternion)k.Rotation;
276 }
277
278 m_basePosition = pos;
279 m_baseRotation = rot;
280
281 m_iterations++;
282 }
283 }
284
285 protected void OnTimer(object sender, ElapsedEventArgs e)
286 {
287 if (m_frames.Count == 0)
288 {
289 GetNextList();
290
291 if (m_frames.Count == 0)
292 {
293 Stop();
294 return;
295 }
296
297 m_currentFrame = m_frames[0];
298 }
299
300 if (m_selected)
301 {
302 if (m_group.RootPart.Velocity != Vector3.Zero)
303 {
304 m_group.RootPart.Velocity = Vector3.Zero;
305 m_group.SendGroupRootTerseUpdate();
306 }
307 return;
308 }
309
310 // Do the frame processing
311 double steps = (double)m_currentFrame.TimeMS / timerInterval;
312 float complete = ((float)m_currentFrame.TimeTotal - (float)m_currentFrame.TimeMS) / (float)m_currentFrame.TimeTotal;
313
314 if (steps <= 1.0)
315 {
316 m_currentFrame.TimeMS = 0;
317
318 m_group.AbsolutePosition = (Vector3)m_currentFrame.Position;
319 m_group.UpdateGroupRotationR((Quaternion)m_currentFrame.Rotation);
320 }
321 else
322 {
323 Vector3 v = (Vector3)m_currentFrame.Position - m_group.AbsolutePosition;
324 Vector3 motionThisFrame = v / (float)steps;
325 v = v * 1000 / m_currentFrame.TimeMS;
326
327 bool update = false;
328
329 if (Vector3.Mag(motionThisFrame) >= 0.05f)
330 {
331 m_group.AbsolutePosition += motionThisFrame;
332 m_group.RootPart.Velocity = v;
333 update = true;
334 }
335
336 if ((Quaternion)m_currentFrame.Rotation != m_group.GroupRotation)
337 {
338 Quaternion current = m_group.GroupRotation;
339
340 Quaternion step = Quaternion.Slerp(m_currentFrame.StartRotation, (Quaternion)m_currentFrame.Rotation, complete);
341
342 float angle = 0;
343
344 float aa = current.X * current.X + current.Y * current.Y + current.Z * current.Z + current.W * current.W;
345 float bb = step.X * step.X + step.Y * step.Y + step.Z * step.Z + step.W * step.W;
346 float aa_bb = aa * bb;
347
348 if (aa_bb == 0)
349 {
350 angle = 0;
351 }
352 else
353 {
354 float ab = current.X * step.X +
355 current.Y * step.Y +
356 current.Z * step.Z +
357 current.W * step.W;
358 float q = (ab * ab) / aa_bb;
359
360 if (q > 1.0f)
361 {
362 angle = 0;
363 }
364 else
365 {
366 angle = (float)Math.Acos(2 * q - 1);
367 }
368 }
369
370 if (angle > 0.01f)
371 {
372 m_group.UpdateGroupRotationR(step);
373 //m_group.RootPart.UpdateAngularVelocity(m_currentFrame.AngularVelocity / 2);
374 update = true;
375 }
376 }
377
378 if (update)
379 m_group.SendGroupRootTerseUpdate();
380 }
381
382 m_currentFrame.TimeMS -= (int)timerInterval;
383
384 if (m_currentFrame.TimeMS <= 0)
385 {
386 m_group.RootPart.Velocity = Vector3.Zero;
387 m_group.RootPart.UpdateAngularVelocity(Vector3.Zero);
388 m_group.SendGroupRootTerseUpdate();
389
390 m_frames.RemoveAt(0);
391 if (m_frames.Count > 0)
392 m_currentFrame = m_frames[0];
393 }
394 }
395
396 public Byte[] Serialize()
397 {
398 MemoryStream ms = new MemoryStream();
399 m_timer.Stop();
400
401 BinaryFormatter fmt = new BinaryFormatter();
402 SceneObjectGroup tmp = m_group;
403 m_group = null;
404 m_serializedPosition = tmp.AbsolutePosition;
405 fmt.Serialize(ms, this);
406 m_group = tmp;
407 return ms.ToArray();
408 }
409
410 public void CrossingFailure()
411 {
412 // The serialization has stopped the timer, so let's wait a moment
413 // then retry the crossing. We'll get back here if it fails.
414 Util.FireAndForget(delegate (object x)
415 {
416 Thread.Sleep(60000);
417 if (m_running)
418 m_timer.Start();
419 });
420 }
421 }
422}
diff --git a/OpenSim/Region/Framework/Scenes/Prioritizer.cs b/OpenSim/Region/Framework/Scenes/Prioritizer.cs
index 1b10e3c..0a34a4c 100644
--- a/OpenSim/Region/Framework/Scenes/Prioritizer.cs
+++ b/OpenSim/Region/Framework/Scenes/Prioritizer.cs
@@ -157,7 +157,7 @@ namespace OpenSim.Region.Framework.Scenes
157 157
158 private uint GetPriorityByBestAvatarResponsiveness(IClientAPI client, ISceneEntity entity) 158 private uint GetPriorityByBestAvatarResponsiveness(IClientAPI client, ISceneEntity entity)
159 { 159 {
160 uint pqueue = ComputeDistancePriority(client,entity,true); 160 uint pqueue = ComputeDistancePriority(client,entity,false);
161 161
162 ScenePresence presence = m_scene.GetScenePresence(client.AgentId); 162 ScenePresence presence = m_scene.GetScenePresence(client.AgentId);
163 if (presence != null) 163 if (presence != null)
@@ -226,7 +226,7 @@ namespace OpenSim.Region.Framework.Scenes
226 226
227 for (int i = 0; i < queues - 1; i++) 227 for (int i = 0; i < queues - 1; i++)
228 { 228 {
229 if (distance < 10 * Math.Pow(2.0,i)) 229 if (distance < 30 * Math.Pow(2.0,i))
230 break; 230 break;
231 pqueue++; 231 pqueue++;
232 } 232 }
diff --git a/OpenSim/Region/Framework/Scenes/SOPMaterial.cs b/OpenSim/Region/Framework/Scenes/SOPMaterial.cs
new file mode 100644
index 0000000..10ac37c
--- /dev/null
+++ b/OpenSim/Region/Framework/Scenes/SOPMaterial.cs
@@ -0,0 +1,95 @@
1/*
2 * Copyright (c) Contributors, http://opensimulator.org/
3 * See CONTRIBUTORS.TXT for a full list of copyright holders.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 * * Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * * Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
12 * * Neither the name of the OpenSimulator Project nor the
13 * names of its contributors may be used to endorse or promote products
14 * derived from this software without specific prior written permission.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
17 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
20 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28using System;
29using System.Collections.Generic;
30using OpenMetaverse;
31using OpenSim.Framework;
32
33namespace OpenSim.Region.Framework.Scenes
34{
35 public static class SOPMaterialData
36 {
37 public enum SopMaterial : int // redundante and not in use for now
38 {
39 Stone = 0,
40 Metal = 1,
41 Glass = 2,
42 Wood = 3,
43 Flesh = 4,
44 Plastic = 5,
45 Rubber = 6,
46 light = 7 // compatibility with old viewers
47 }
48
49 private struct MaterialData
50 {
51 public float friction;
52 public float bounce;
53 public MaterialData(float f, float b)
54 {
55 friction = f;
56 bounce = b;
57 }
58 }
59
60 private static MaterialData[] m_materialdata = {
61 new MaterialData(0.8f,0.4f), // Stone
62 new MaterialData(0.3f,0.4f), // Metal
63 new MaterialData(0.2f,0.7f), // Glass
64 new MaterialData(0.6f,0.5f), // Wood
65 new MaterialData(0.9f,0.3f), // Flesh
66 new MaterialData(0.4f,0.7f), // Plastic
67 new MaterialData(0.9f,0.95f), // Rubber
68 new MaterialData(0.0f,0.0f) // light ??
69 };
70
71 public static Material MaxMaterial
72 {
73 get { return (Material)(m_materialdata.Length - 1); }
74 }
75
76 public static float friction(Material material)
77 {
78 int indx = (int)material;
79 if (indx < m_materialdata.Length)
80 return (m_materialdata[indx].friction);
81 else
82 return 0;
83 }
84
85 public static float bounce(Material material)
86 {
87 int indx = (int)material;
88 if (indx < m_materialdata.Length)
89 return (m_materialdata[indx].bounce);
90 else
91 return 0;
92 }
93
94 }
95} \ No newline at end of file
diff --git a/OpenSim/Region/Framework/Scenes/SOPVehicle.cs b/OpenSim/Region/Framework/Scenes/SOPVehicle.cs
new file mode 100644
index 0000000..d3c2d27
--- /dev/null
+++ b/OpenSim/Region/Framework/Scenes/SOPVehicle.cs
@@ -0,0 +1,742 @@
1/*
2 * Copyright (c) Contributors, http://opensimulator.org/
3 * See CONTRIBUTORS.TXT for a full list of copyright holders.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 * * Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * * Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
12 * * Neither the name of the OpenSimulator Project nor the
13 * names of its contributors may be used to endorse or promote products
14 * derived from this software without specific prior written permission.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
17 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
20 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28using System;
29using System.Collections.Generic;
30using OpenMetaverse;
31using OpenSim.Framework;
32using OpenSim.Region.Physics.Manager;
33using System.Xml;
34using OpenSim.Framework.Serialization;
35using OpenSim.Framework.Serialization.External;
36using OpenSim.Region.Framework.Scenes.Serialization;
37using OpenSim.Region.Framework.Scenes.Serialization;
38
39namespace OpenSim.Region.Framework.Scenes
40{
41 public class SOPVehicle
42 {
43 public VehicleData vd;
44
45 public Vehicle Type
46 {
47 get { return vd.m_type; }
48 }
49
50 public SOPVehicle()
51 {
52 vd = new VehicleData();
53 ProcessTypeChange(Vehicle.TYPE_NONE); // is needed?
54 }
55
56 public void ProcessFloatVehicleParam(Vehicle pParam, float pValue)
57 {
58 float len;
59 float timestep = 0.01f;
60 switch (pParam)
61 {
62 case Vehicle.ANGULAR_DEFLECTION_EFFICIENCY:
63 if (pValue < 0f) pValue = 0f;
64 if (pValue > 1f) pValue = 1f;
65 vd.m_angularDeflectionEfficiency = pValue;
66 break;
67 case Vehicle.ANGULAR_DEFLECTION_TIMESCALE:
68 if (pValue < timestep) pValue = timestep;
69 vd.m_angularDeflectionTimescale = pValue;
70 break;
71 case Vehicle.ANGULAR_MOTOR_DECAY_TIMESCALE:
72 if (pValue < timestep) pValue = timestep;
73 else if (pValue > 120) pValue = 120;
74 vd.m_angularMotorDecayTimescale = pValue;
75 break;
76 case Vehicle.ANGULAR_MOTOR_TIMESCALE:
77 if (pValue < timestep) pValue = timestep;
78 vd.m_angularMotorTimescale = pValue;
79 break;
80 case Vehicle.BANKING_EFFICIENCY:
81 if (pValue < -1f) pValue = -1f;
82 if (pValue > 1f) pValue = 1f;
83 vd.m_bankingEfficiency = pValue;
84 break;
85 case Vehicle.BANKING_MIX:
86 if (pValue < 0f) pValue = 0f;
87 if (pValue > 1f) pValue = 1f;
88 vd.m_bankingMix = pValue;
89 break;
90 case Vehicle.BANKING_TIMESCALE:
91 if (pValue < timestep) pValue = timestep;
92 vd.m_bankingTimescale = pValue;
93 break;
94 case Vehicle.BUOYANCY:
95 if (pValue < -1f) pValue = -1f;
96 if (pValue > 1f) pValue = 1f;
97 vd.m_VehicleBuoyancy = pValue;
98 break;
99 case Vehicle.HOVER_EFFICIENCY:
100 if (pValue < 0f) pValue = 0f;
101 if (pValue > 1f) pValue = 1f;
102 vd.m_VhoverEfficiency = pValue;
103 break;
104 case Vehicle.HOVER_HEIGHT:
105 vd.m_VhoverHeight = pValue;
106 break;
107 case Vehicle.HOVER_TIMESCALE:
108 if (pValue < timestep) pValue = timestep;
109 vd.m_VhoverTimescale = pValue;
110 break;
111 case Vehicle.LINEAR_DEFLECTION_EFFICIENCY:
112 if (pValue < 0f) pValue = 0f;
113 if (pValue > 1f) pValue = 1f;
114 vd.m_linearDeflectionEfficiency = pValue;
115 break;
116 case Vehicle.LINEAR_DEFLECTION_TIMESCALE:
117 if (pValue < timestep) pValue = timestep;
118 vd.m_linearDeflectionTimescale = pValue;
119 break;
120 case Vehicle.LINEAR_MOTOR_DECAY_TIMESCALE:
121 if (pValue < timestep) pValue = timestep;
122 else if (pValue > 120) pValue = 120;
123 vd.m_linearMotorDecayTimescale = pValue;
124 break;
125 case Vehicle.LINEAR_MOTOR_TIMESCALE:
126 if (pValue < timestep) pValue = timestep;
127 vd.m_linearMotorTimescale = pValue;
128 break;
129 case Vehicle.VERTICAL_ATTRACTION_EFFICIENCY:
130 if (pValue < 0f) pValue = 0f;
131 if (pValue > 1f) pValue = 1f;
132 vd.m_verticalAttractionEfficiency = pValue;
133 break;
134 case Vehicle.VERTICAL_ATTRACTION_TIMESCALE:
135 if (pValue < timestep) pValue = timestep;
136 vd.m_verticalAttractionTimescale = pValue;
137 break;
138
139 // These are vector properties but the engine lets you use a single float value to
140 // set all of the components to the same value
141 case Vehicle.ANGULAR_FRICTION_TIMESCALE:
142 if (pValue < timestep) pValue = timestep;
143 vd.m_angularFrictionTimescale = new Vector3(pValue, pValue, pValue);
144 break;
145 case Vehicle.ANGULAR_MOTOR_DIRECTION:
146 vd.m_angularMotorDirection = new Vector3(pValue, pValue, pValue);
147 len = vd.m_angularMotorDirection.Length();
148 if (len > 12.566f)
149 vd.m_angularMotorDirection *= (12.566f / len);
150 break;
151 case Vehicle.LINEAR_FRICTION_TIMESCALE:
152 if (pValue < timestep) pValue = timestep;
153 vd.m_linearFrictionTimescale = new Vector3(pValue, pValue, pValue);
154 break;
155 case Vehicle.LINEAR_MOTOR_DIRECTION:
156 vd.m_linearMotorDirection = new Vector3(pValue, pValue, pValue);
157 len = vd.m_linearMotorDirection.Length();
158 if (len > 30.0f)
159 vd.m_linearMotorDirection *= (30.0f / len);
160 break;
161 case Vehicle.LINEAR_MOTOR_OFFSET:
162 vd.m_linearMotorOffset = new Vector3(pValue, pValue, pValue);
163 len = vd.m_linearMotorOffset.Length();
164 if (len > 100.0f)
165 vd.m_linearMotorOffset *= (100.0f / len);
166 break;
167 }
168 }//end ProcessFloatVehicleParam
169
170 public void ProcessVectorVehicleParam(Vehicle pParam, Vector3 pValue)
171 {
172 float len;
173 float timestep = 0.01f;
174 switch (pParam)
175 {
176 case Vehicle.ANGULAR_FRICTION_TIMESCALE:
177 if (pValue.X < timestep) pValue.X = timestep;
178 if (pValue.Y < timestep) pValue.Y = timestep;
179 if (pValue.Z < timestep) pValue.Z = timestep;
180
181 vd.m_angularFrictionTimescale = new Vector3(pValue.X, pValue.Y, pValue.Z);
182 break;
183 case Vehicle.ANGULAR_MOTOR_DIRECTION:
184 vd.m_angularMotorDirection = new Vector3(pValue.X, pValue.Y, pValue.Z);
185 // Limit requested angular speed to 2 rps= 4 pi rads/sec
186 len = vd.m_angularMotorDirection.Length();
187 if (len > 12.566f)
188 vd.m_angularMotorDirection *= (12.566f / len);
189 break;
190 case Vehicle.LINEAR_FRICTION_TIMESCALE:
191 if (pValue.X < timestep) pValue.X = timestep;
192 if (pValue.Y < timestep) pValue.Y = timestep;
193 if (pValue.Z < timestep) pValue.Z = timestep;
194 vd.m_linearFrictionTimescale = new Vector3(pValue.X, pValue.Y, pValue.Z);
195 break;
196 case Vehicle.LINEAR_MOTOR_DIRECTION:
197 vd.m_linearMotorDirection = new Vector3(pValue.X, pValue.Y, pValue.Z);
198 len = vd.m_linearMotorDirection.Length();
199 if (len > 30.0f)
200 vd.m_linearMotorDirection *= (30.0f / len);
201 break;
202 case Vehicle.LINEAR_MOTOR_OFFSET:
203 vd.m_linearMotorOffset = new Vector3(pValue.X, pValue.Y, pValue.Z);
204 len = vd.m_linearMotorOffset.Length();
205 if (len > 100.0f)
206 vd.m_linearMotorOffset *= (100.0f / len);
207 break;
208 }
209 }//end ProcessVectorVehicleParam
210
211 public void ProcessRotationVehicleParam(Vehicle pParam, Quaternion pValue)
212 {
213 switch (pParam)
214 {
215 case Vehicle.REFERENCE_FRAME:
216 vd.m_referenceFrame = Quaternion.Inverse(pValue);
217 break;
218 }
219 }//end ProcessRotationVehicleParam
220
221 public void ProcessVehicleFlags(int pParam, bool remove)
222 {
223 if (remove)
224 {
225 vd.m_flags &= ~((VehicleFlag)pParam);
226 }
227 else
228 {
229 vd.m_flags |= (VehicleFlag)pParam;
230 }
231 }//end ProcessVehicleFlags
232
233 public void ProcessTypeChange(Vehicle pType)
234 {
235 vd.m_linearMotorDirection = Vector3.Zero;
236 vd.m_angularMotorDirection = Vector3.Zero;
237 vd.m_linearMotorOffset = Vector3.Zero;
238 vd.m_referenceFrame = Quaternion.Identity;
239
240 // Set Defaults For Type
241 vd.m_type = pType;
242 switch (pType)
243 {
244 case Vehicle.TYPE_NONE:
245 vd.m_linearFrictionTimescale = new Vector3(1000, 1000, 1000);
246 vd.m_angularFrictionTimescale = new Vector3(1000, 1000, 1000);
247 vd.m_linearMotorTimescale = 1000;
248 vd.m_linearMotorDecayTimescale = 120;
249 vd.m_angularMotorTimescale = 1000;
250 vd.m_angularMotorDecayTimescale = 1000;
251 vd.m_VhoverHeight = 0;
252 vd.m_VhoverEfficiency = 1;
253 vd.m_VhoverTimescale = 1000;
254 vd.m_VehicleBuoyancy = 0;
255 vd.m_linearDeflectionEfficiency = 0;
256 vd.m_linearDeflectionTimescale = 1000;
257 vd.m_angularDeflectionEfficiency = 0;
258 vd.m_angularDeflectionTimescale = 1000;
259 vd.m_bankingEfficiency = 0;
260 vd.m_bankingMix = 1;
261 vd.m_bankingTimescale = 1000;
262 vd.m_verticalAttractionEfficiency = 0;
263 vd.m_verticalAttractionTimescale = 1000;
264
265 vd.m_flags = (VehicleFlag)0;
266 break;
267
268 case Vehicle.TYPE_SLED:
269 vd.m_linearFrictionTimescale = new Vector3(30, 1, 1000);
270 vd.m_angularFrictionTimescale = new Vector3(1000, 1000, 1000);
271 vd.m_linearMotorTimescale = 1000;
272 vd.m_linearMotorDecayTimescale = 120;
273 vd.m_angularMotorTimescale = 1000;
274 vd.m_angularMotorDecayTimescale = 120;
275 vd.m_VhoverHeight = 0;
276 vd.m_VhoverEfficiency = 1;
277 vd.m_VhoverTimescale = 10;
278 vd.m_VehicleBuoyancy = 0;
279 vd.m_linearDeflectionEfficiency = 1;
280 vd.m_linearDeflectionTimescale = 1;
281 vd.m_angularDeflectionEfficiency = 0;
282 vd.m_angularDeflectionTimescale = 1000;
283 vd.m_bankingEfficiency = 0;
284 vd.m_bankingMix = 1;
285 vd.m_bankingTimescale = 10;
286 vd.m_flags &=
287 ~(VehicleFlag.HOVER_WATER_ONLY | VehicleFlag.HOVER_TERRAIN_ONLY |
288 VehicleFlag.HOVER_GLOBAL_HEIGHT | VehicleFlag.HOVER_UP_ONLY);
289 vd.m_flags |= (VehicleFlag.NO_DEFLECTION_UP | VehicleFlag.LIMIT_ROLL_ONLY | VehicleFlag.LIMIT_MOTOR_UP);
290 break;
291 case Vehicle.TYPE_CAR:
292 vd.m_linearFrictionTimescale = new Vector3(100, 2, 1000);
293 vd.m_angularFrictionTimescale = new Vector3(1000, 1000, 1000);
294 vd.m_linearMotorTimescale = 1;
295 vd.m_linearMotorDecayTimescale = 60;
296 vd.m_angularMotorTimescale = 1;
297 vd.m_angularMotorDecayTimescale = 0.8f;
298 vd.m_VhoverHeight = 0;
299 vd.m_VhoverEfficiency = 0;
300 vd.m_VhoverTimescale = 1000;
301 vd.m_VehicleBuoyancy = 0;
302 vd.m_linearDeflectionEfficiency = 1;
303 vd.m_linearDeflectionTimescale = 2;
304 vd.m_angularDeflectionEfficiency = 0;
305 vd.m_angularDeflectionTimescale = 10;
306 vd.m_verticalAttractionEfficiency = 1f;
307 vd.m_verticalAttractionTimescale = 10f;
308 vd.m_bankingEfficiency = -0.2f;
309 vd.m_bankingMix = 1;
310 vd.m_bankingTimescale = 1;
311 vd.m_flags &= ~(VehicleFlag.HOVER_WATER_ONLY | VehicleFlag.HOVER_TERRAIN_ONLY | VehicleFlag.HOVER_GLOBAL_HEIGHT);
312 vd.m_flags |= (VehicleFlag.NO_DEFLECTION_UP | VehicleFlag.LIMIT_ROLL_ONLY |
313 VehicleFlag.LIMIT_MOTOR_UP | VehicleFlag.HOVER_UP_ONLY);
314 break;
315 case Vehicle.TYPE_BOAT:
316 vd.m_linearFrictionTimescale = new Vector3(10, 3, 2);
317 vd.m_angularFrictionTimescale = new Vector3(10, 10, 10);
318 vd.m_linearMotorTimescale = 5;
319 vd.m_linearMotorDecayTimescale = 60;
320 vd.m_angularMotorTimescale = 4;
321 vd.m_angularMotorDecayTimescale = 4;
322 vd.m_VhoverHeight = 0;
323 vd.m_VhoverEfficiency = 0.5f;
324 vd.m_VhoverTimescale = 2;
325 vd.m_VehicleBuoyancy = 1;
326 vd.m_linearDeflectionEfficiency = 0.5f;
327 vd.m_linearDeflectionTimescale = 3;
328 vd.m_angularDeflectionEfficiency = 0.5f;
329 vd.m_angularDeflectionTimescale = 5;
330 vd.m_verticalAttractionEfficiency = 0.5f;
331 vd.m_verticalAttractionTimescale = 5f;
332 vd.m_bankingEfficiency = -0.3f;
333 vd.m_bankingMix = 0.8f;
334 vd.m_bankingTimescale = 1;
335 vd.m_flags &= ~(VehicleFlag.HOVER_TERRAIN_ONLY |
336 VehicleFlag.HOVER_GLOBAL_HEIGHT |
337 VehicleFlag.HOVER_UP_ONLY |
338 VehicleFlag.LIMIT_ROLL_ONLY);
339 vd.m_flags |= (VehicleFlag.NO_DEFLECTION_UP |
340 VehicleFlag.LIMIT_MOTOR_UP |
341 VehicleFlag.HOVER_WATER_ONLY);
342 break;
343 case Vehicle.TYPE_AIRPLANE:
344 vd.m_linearFrictionTimescale = new Vector3(200, 10, 5);
345 vd.m_angularFrictionTimescale = new Vector3(20, 20, 20);
346 vd.m_linearMotorTimescale = 2;
347 vd.m_linearMotorDecayTimescale = 60;
348 vd.m_angularMotorTimescale = 4;
349 vd.m_angularMotorDecayTimescale = 8;
350 vd.m_VhoverHeight = 0;
351 vd.m_VhoverEfficiency = 0.5f;
352 vd.m_VhoverTimescale = 1000;
353 vd.m_VehicleBuoyancy = 0;
354 vd.m_linearDeflectionEfficiency = 0.5f;
355 vd.m_linearDeflectionTimescale = 0.5f;
356 vd.m_angularDeflectionEfficiency = 1;
357 vd.m_angularDeflectionTimescale = 2;
358 vd.m_verticalAttractionEfficiency = 0.9f;
359 vd.m_verticalAttractionTimescale = 2f;
360 vd.m_bankingEfficiency = 1;
361 vd.m_bankingMix = 0.7f;
362 vd.m_bankingTimescale = 2;
363 vd.m_flags &= ~(VehicleFlag.HOVER_WATER_ONLY |
364 VehicleFlag.HOVER_TERRAIN_ONLY |
365 VehicleFlag.HOVER_GLOBAL_HEIGHT |
366 VehicleFlag.HOVER_UP_ONLY |
367 VehicleFlag.NO_DEFLECTION_UP |
368 VehicleFlag.LIMIT_MOTOR_UP);
369 vd.m_flags |= (VehicleFlag.LIMIT_ROLL_ONLY);
370 break;
371 case Vehicle.TYPE_BALLOON:
372 vd.m_linearFrictionTimescale = new Vector3(5, 5, 5);
373 vd.m_angularFrictionTimescale = new Vector3(10, 10, 10);
374 vd.m_linearMotorTimescale = 5;
375 vd.m_linearMotorDecayTimescale = 60;
376 vd.m_angularMotorTimescale = 6;
377 vd.m_angularMotorDecayTimescale = 10;
378 vd.m_VhoverHeight = 5;
379 vd.m_VhoverEfficiency = 0.8f;
380 vd.m_VhoverTimescale = 10;
381 vd.m_VehicleBuoyancy = 1;
382 vd.m_linearDeflectionEfficiency = 0;
383 vd.m_linearDeflectionTimescale = 5;
384 vd.m_angularDeflectionEfficiency = 0;
385 vd.m_angularDeflectionTimescale = 5;
386 vd.m_verticalAttractionEfficiency = 0f;
387 vd.m_verticalAttractionTimescale = 1000f;
388 vd.m_bankingEfficiency = 0;
389 vd.m_bankingMix = 0.7f;
390 vd.m_bankingTimescale = 5;
391 vd.m_flags &= ~(VehicleFlag.HOVER_WATER_ONLY |
392 VehicleFlag.HOVER_TERRAIN_ONLY |
393 VehicleFlag.HOVER_UP_ONLY |
394 VehicleFlag.NO_DEFLECTION_UP |
395 VehicleFlag.LIMIT_MOTOR_UP);
396 vd.m_flags |= (VehicleFlag.LIMIT_ROLL_ONLY |
397 VehicleFlag.HOVER_GLOBAL_HEIGHT);
398 break;
399 }
400 }
401 public void SetVehicle(PhysicsActor ph)
402 {
403 if (ph == null)
404 return;
405 ph.SetVehicle(vd);
406 }
407
408 private XmlTextWriter writer;
409
410 private void XWint(string name, int i)
411 {
412 writer.WriteElementString(name, i.ToString());
413 }
414
415 private void XWfloat(string name, float f)
416 {
417 writer.WriteElementString(name, f.ToString(Utils.EnUsCulture));
418 }
419
420 private void XWVector(string name, Vector3 vec)
421 {
422 writer.WriteStartElement(name);
423 writer.WriteElementString("X", vec.X.ToString(Utils.EnUsCulture));
424 writer.WriteElementString("Y", vec.Y.ToString(Utils.EnUsCulture));
425 writer.WriteElementString("Z", vec.Z.ToString(Utils.EnUsCulture));
426 writer.WriteEndElement();
427 }
428
429 private void XWQuat(string name, Quaternion quat)
430 {
431 writer.WriteStartElement(name);
432 writer.WriteElementString("X", quat.X.ToString(Utils.EnUsCulture));
433 writer.WriteElementString("Y", quat.Y.ToString(Utils.EnUsCulture));
434 writer.WriteElementString("Z", quat.Z.ToString(Utils.EnUsCulture));
435 writer.WriteElementString("W", quat.W.ToString(Utils.EnUsCulture));
436 writer.WriteEndElement();
437 }
438
439 public void ToXml2(XmlTextWriter twriter)
440 {
441 writer = twriter;
442 writer.WriteStartElement("Vehicle");
443
444 XWint("TYPE", (int)vd.m_type);
445 XWint("FLAGS", (int)vd.m_flags);
446
447 // Linear properties
448 XWVector("LMDIR", vd.m_linearMotorDirection);
449 XWVector("LMFTIME", vd.m_linearFrictionTimescale);
450 XWfloat("LMDTIME", vd.m_linearMotorDecayTimescale);
451 XWfloat("LMTIME", vd.m_linearMotorTimescale);
452 XWVector("LMOFF", vd.m_linearMotorOffset);
453
454 //Angular properties
455 XWVector("AMDIR", vd.m_angularMotorDirection);
456 XWfloat("AMTIME", vd.m_angularMotorTimescale);
457 XWfloat("AMDTIME", vd.m_angularMotorDecayTimescale);
458 XWVector("AMFTIME", vd.m_angularFrictionTimescale);
459
460 //Deflection properties
461 XWfloat("ADEFF", vd.m_angularDeflectionEfficiency);
462 XWfloat("ADTIME", vd.m_angularDeflectionTimescale);
463 XWfloat("LDEFF", vd.m_linearDeflectionEfficiency);
464 XWfloat("LDTIME", vd.m_linearDeflectionTimescale);
465
466 //Banking properties
467 XWfloat("BEFF", vd.m_bankingEfficiency);
468 XWfloat("BMIX", vd.m_bankingMix);
469 XWfloat("BTIME", vd.m_bankingTimescale);
470
471 //Hover and Buoyancy properties
472 XWfloat("HHEI", vd.m_VhoverHeight);
473 XWfloat("HEFF", vd.m_VhoverEfficiency);
474 XWfloat("HTIME", vd.m_VhoverTimescale);
475 XWfloat("VBUO", vd.m_VehicleBuoyancy);
476
477 //Attractor properties
478 XWfloat("VAEFF", vd.m_verticalAttractionEfficiency);
479 XWfloat("VATIME", vd.m_verticalAttractionTimescale);
480
481 XWQuat("REF_FRAME", vd.m_referenceFrame);
482
483 writer.WriteEndElement();
484 writer = null;
485 }
486
487
488
489 XmlTextReader reader;
490
491 private int XRint()
492 {
493 return reader.ReadElementContentAsInt();
494 }
495
496 private float XRfloat()
497 {
498 return reader.ReadElementContentAsFloat();
499 }
500
501 public Vector3 XRvector()
502 {
503 Vector3 vec;
504 reader.ReadStartElement();
505 vec.X = reader.ReadElementContentAsFloat();
506 vec.Y = reader.ReadElementContentAsFloat();
507 vec.Z = reader.ReadElementContentAsFloat();
508 reader.ReadEndElement();
509 return vec;
510 }
511
512 public Quaternion XRquat()
513 {
514 Quaternion q;
515 reader.ReadStartElement();
516 q.X = reader.ReadElementContentAsFloat();
517 q.Y = reader.ReadElementContentAsFloat();
518 q.Z = reader.ReadElementContentAsFloat();
519 q.W = reader.ReadElementContentAsFloat();
520 reader.ReadEndElement();
521 return q;
522 }
523
524 public static bool EReadProcessors(
525 Dictionary<string, Action> processors,
526 XmlTextReader xtr)
527 {
528 bool errors = false;
529
530 string nodeName = string.Empty;
531 while (xtr.NodeType != XmlNodeType.EndElement)
532 {
533 nodeName = xtr.Name;
534
535 // m_log.DebugFormat("[ExternalRepresentationUtils]: Processing: {0}", nodeName);
536
537 Action p = null;
538 if (processors.TryGetValue(xtr.Name, out p))
539 {
540 // m_log.DebugFormat("[ExternalRepresentationUtils]: Found {0} processor, nodeName);
541
542 try
543 {
544 p();
545 }
546 catch (Exception e)
547 {
548 errors = true;
549 if (xtr.NodeType == XmlNodeType.EndElement)
550 xtr.Read();
551 }
552 }
553 else
554 {
555 // m_log.DebugFormat("[LandDataSerializer]: caught unknown element {0}", nodeName);
556 xtr.ReadOuterXml(); // ignore
557 }
558 }
559
560 return errors;
561 }
562
563
564
565 public void FromXml2(XmlTextReader _reader, out bool errors)
566 {
567 errors = false;
568 reader = _reader;
569
570 Dictionary<string, Action> m_VehicleXmlProcessors
571 = new Dictionary<string, Action>();
572
573 m_VehicleXmlProcessors.Add("TYPE", ProcessXR_type);
574 m_VehicleXmlProcessors.Add("FLAGS", ProcessXR_flags);
575
576 // Linear properties
577 m_VehicleXmlProcessors.Add("LMDIR", ProcessXR_linearMotorDirection);
578 m_VehicleXmlProcessors.Add("LMFTIME", ProcessXR_linearFrictionTimescale);
579 m_VehicleXmlProcessors.Add("LMDTIME", ProcessXR_linearMotorDecayTimescale);
580 m_VehicleXmlProcessors.Add("LMTIME", ProcessXR_linearMotorTimescale);
581 m_VehicleXmlProcessors.Add("LMOFF", ProcessXR_linearMotorOffset);
582
583 //Angular properties
584 m_VehicleXmlProcessors.Add("AMDIR", ProcessXR_angularMotorDirection);
585 m_VehicleXmlProcessors.Add("AMTIME", ProcessXR_angularMotorTimescale);
586 m_VehicleXmlProcessors.Add("AMDTIME", ProcessXR_angularMotorDecayTimescale);
587 m_VehicleXmlProcessors.Add("AMFTIME", ProcessXR_angularFrictionTimescale);
588
589 //Deflection properties
590 m_VehicleXmlProcessors.Add("ADEFF", ProcessXR_angularDeflectionEfficiency);
591 m_VehicleXmlProcessors.Add("ADTIME", ProcessXR_angularDeflectionTimescale);
592 m_VehicleXmlProcessors.Add("LDEFF", ProcessXR_linearDeflectionEfficiency);
593 m_VehicleXmlProcessors.Add("LDTIME", ProcessXR_linearDeflectionTimescale);
594
595 //Banking properties
596 m_VehicleXmlProcessors.Add("BEFF", ProcessXR_bankingEfficiency);
597 m_VehicleXmlProcessors.Add("BMIX", ProcessXR_bankingMix);
598 m_VehicleXmlProcessors.Add("BTIME", ProcessXR_bankingTimescale);
599
600 //Hover and Buoyancy properties
601 m_VehicleXmlProcessors.Add("HHEI", ProcessXR_VhoverHeight);
602 m_VehicleXmlProcessors.Add("HEFF", ProcessXR_VhoverEfficiency);
603 m_VehicleXmlProcessors.Add("HTIME", ProcessXR_VhoverTimescale);
604
605 m_VehicleXmlProcessors.Add("VBUO", ProcessXR_VehicleBuoyancy);
606
607 //Attractor properties
608 m_VehicleXmlProcessors.Add("VAEFF", ProcessXR_verticalAttractionEfficiency);
609 m_VehicleXmlProcessors.Add("VATIME", ProcessXR_verticalAttractionTimescale);
610
611 m_VehicleXmlProcessors.Add("REF_FRAME", ProcessXR_referenceFrame);
612
613 vd = new VehicleData();
614
615 reader.ReadStartElement("Vehicle", String.Empty);
616
617 errors = EReadProcessors(
618 m_VehicleXmlProcessors,
619 reader);
620
621 reader.ReadEndElement();
622 reader = null;
623 }
624
625 private void ProcessXR_type()
626 {
627 vd.m_type = (Vehicle)XRint();
628 }
629 private void ProcessXR_flags()
630 {
631 vd.m_flags = (VehicleFlag)XRint();
632 }
633 // Linear properties
634 private void ProcessXR_linearMotorDirection()
635 {
636 vd.m_linearMotorDirection = XRvector();
637 }
638
639 private void ProcessXR_linearFrictionTimescale()
640 {
641 vd.m_linearFrictionTimescale = XRvector();
642 }
643
644 private void ProcessXR_linearMotorDecayTimescale()
645 {
646 vd.m_linearMotorDecayTimescale = XRfloat();
647 }
648 private void ProcessXR_linearMotorTimescale()
649 {
650 vd.m_linearMotorTimescale = XRfloat();
651 }
652 private void ProcessXR_linearMotorOffset()
653 {
654 vd.m_linearMotorOffset = XRvector();
655 }
656
657
658 //Angular properties
659 private void ProcessXR_angularMotorDirection()
660 {
661 vd.m_angularMotorDirection = XRvector();
662 }
663 private void ProcessXR_angularMotorTimescale()
664 {
665 vd.m_angularMotorTimescale = XRfloat();
666 }
667 private void ProcessXR_angularMotorDecayTimescale()
668 {
669 vd.m_angularMotorDecayTimescale = XRfloat();
670 }
671 private void ProcessXR_angularFrictionTimescale()
672 {
673 vd.m_angularFrictionTimescale = XRvector();
674 }
675
676 //Deflection properties
677 private void ProcessXR_angularDeflectionEfficiency()
678 {
679 vd.m_angularDeflectionEfficiency = XRfloat();
680 }
681 private void ProcessXR_angularDeflectionTimescale()
682 {
683 vd.m_angularDeflectionTimescale = XRfloat();
684 }
685 private void ProcessXR_linearDeflectionEfficiency()
686 {
687 vd.m_linearDeflectionEfficiency = XRfloat();
688 }
689 private void ProcessXR_linearDeflectionTimescale()
690 {
691 vd.m_linearDeflectionTimescale = XRfloat();
692 }
693
694 //Banking properties
695 private void ProcessXR_bankingEfficiency()
696 {
697 vd.m_bankingEfficiency = XRfloat();
698 }
699 private void ProcessXR_bankingMix()
700 {
701 vd.m_bankingMix = XRfloat();
702 }
703 private void ProcessXR_bankingTimescale()
704 {
705 vd.m_bankingTimescale = XRfloat();
706 }
707
708 //Hover and Buoyancy properties
709 private void ProcessXR_VhoverHeight()
710 {
711 vd.m_VhoverHeight = XRfloat();
712 }
713 private void ProcessXR_VhoverEfficiency()
714 {
715 vd.m_VhoverEfficiency = XRfloat();
716 }
717 private void ProcessXR_VhoverTimescale()
718 {
719 vd.m_VhoverTimescale = XRfloat();
720 }
721
722 private void ProcessXR_VehicleBuoyancy()
723 {
724 vd.m_VehicleBuoyancy = XRfloat();
725 }
726
727 //Attractor properties
728 private void ProcessXR_verticalAttractionEfficiency()
729 {
730 vd.m_verticalAttractionEfficiency = XRfloat();
731 }
732 private void ProcessXR_verticalAttractionTimescale()
733 {
734 vd.m_verticalAttractionTimescale = XRfloat();
735 }
736
737 private void ProcessXR_referenceFrame()
738 {
739 vd.m_referenceFrame = XRquat();
740 }
741 }
742} \ No newline at end of file
diff --git a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
index 9ff8467..9776a82 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.Inventory.cs
@@ -169,7 +169,7 @@ namespace OpenSim.Region.Framework.Scenes
169 return false; 169 return false;
170 } 170 }
171 } 171 }
172 172
173 if (InventoryService.AddItem(item)) 173 if (InventoryService.AddItem(item))
174 { 174 {
175 int userlevel = 0; 175 int userlevel = 0;
@@ -324,8 +324,7 @@ namespace OpenSim.Region.Framework.Scenes
324 324
325 // Update item with new asset 325 // Update item with new asset
326 item.AssetID = asset.FullID; 326 item.AssetID = asset.FullID;
327 if (group.UpdateInventoryItem(item)) 327 group.UpdateInventoryItem(item);
328 remoteClient.SendAgentAlertMessage("Script saved", false);
329 328
330 part.SendPropertiesToClient(remoteClient); 329 part.SendPropertiesToClient(remoteClient);
331 330
@@ -336,12 +335,7 @@ namespace OpenSim.Region.Framework.Scenes
336 { 335 {
337 // Needs to determine which engine was running it and use that 336 // Needs to determine which engine was running it and use that
338 // 337 //
339 part.Inventory.CreateScriptInstance(item.ItemID, 0, false, DefaultScriptEngine, 0); 338 errors = part.Inventory.CreateScriptInstanceEr(item.ItemID, 0, false, DefaultScriptEngine, 0);
340 errors = part.Inventory.GetScriptErrors(item.ItemID);
341 }
342 else
343 {
344 remoteClient.SendAgentAlertMessage("Script saved", false);
345 } 339 }
346 340
347 // Tell anyone managing scripts that a script has been reloaded/changed 341 // Tell anyone managing scripts that a script has been reloaded/changed
@@ -409,6 +403,7 @@ namespace OpenSim.Region.Framework.Scenes
409 403
410 if (UUID.Zero == transactionID) 404 if (UUID.Zero == transactionID)
411 { 405 {
406 item.Flags = (item.Flags & ~(uint)255) | (itemUpd.Flags & (uint)255);
412 item.Name = itemUpd.Name; 407 item.Name = itemUpd.Name;
413 item.Description = itemUpd.Description; 408 item.Description = itemUpd.Description;
414 409
@@ -795,6 +790,8 @@ namespace OpenSim.Region.Framework.Scenes
795 return; 790 return;
796 } 791 }
797 792
793 if (newName == null) newName = item.Name;
794
798 AssetBase asset = AssetService.Get(item.AssetID.ToString()); 795 AssetBase asset = AssetService.Get(item.AssetID.ToString());
799 796
800 if (asset != null) 797 if (asset != null)
@@ -851,6 +848,24 @@ namespace OpenSim.Region.Framework.Scenes
851 } 848 }
852 849
853 /// <summary> 850 /// <summary>
851 /// Move an item within the agent's inventory, and leave a copy (used in making a new outfit)
852 /// </summary>
853 public void MoveInventoryItemsLeaveCopy(IClientAPI remoteClient, List<InventoryItemBase> items, UUID destfolder)
854 {
855 List<InventoryItemBase> moveitems = new List<InventoryItemBase>();
856 foreach (InventoryItemBase b in items)
857 {
858 CopyInventoryItem(remoteClient, 0, remoteClient.AgentId, b.ID, b.Folder, null);
859 InventoryItemBase n = InventoryService.GetItem(b);
860 n.Folder = destfolder;
861 moveitems.Add(n);
862 remoteClient.SendInventoryItemCreateUpdate(n, 0);
863 }
864
865 MoveInventoryItem(remoteClient, moveitems);
866 }
867
868 /// <summary>
854 /// Move an item within the agent's inventory. 869 /// Move an item within the agent's inventory.
855 /// </summary> 870 /// </summary>
856 /// <param name="remoteClient"></param> 871 /// <param name="remoteClient"></param>
@@ -1193,6 +1208,10 @@ namespace OpenSim.Region.Framework.Scenes
1193 { 1208 {
1194 SceneObjectPart part = GetSceneObjectPart(primLocalId); 1209 SceneObjectPart part = GetSceneObjectPart(primLocalId);
1195 1210
1211 // Can't move a null item
1212 if (itemId == UUID.Zero)
1213 return;
1214
1196 if (null == part) 1215 if (null == part)
1197 { 1216 {
1198 m_log.WarnFormat( 1217 m_log.WarnFormat(
@@ -1297,21 +1316,28 @@ namespace OpenSim.Region.Framework.Scenes
1297 return; 1316 return;
1298 } 1317 }
1299 1318
1300 if (part.OwnerID != destPart.OwnerID) 1319 // Can't transfer this
1320 //
1321 if (part.OwnerID != destPart.OwnerID && (srcTaskItem.CurrentPermissions & (uint)PermissionMask.Transfer) == 0)
1322 return;
1323
1324 bool overrideNoMod = false;
1325 if ((part.GetEffectiveObjectFlags() & (uint)PrimFlags.AllowInventoryDrop) != 0)
1326 overrideNoMod = true;
1327
1328 if (part.OwnerID != destPart.OwnerID && (destPart.GetEffectiveObjectFlags() & (uint)PrimFlags.AllowInventoryDrop) == 0)
1301 { 1329 {
1302 // Source must have transfer permissions 1330 // object cannot copy items to an object owned by a different owner
1303 if ((srcTaskItem.CurrentPermissions & (uint)PermissionMask.Transfer) == 0) 1331 // unless llAllowInventoryDrop has been called
1304 return;
1305 1332
1306 // Object cannot copy items to an object owned by a different owner 1333 return;
1307 // unless llAllowInventoryDrop has been called on the destination
1308 if ((destPart.GetEffectiveObjectFlags() & (uint)PrimFlags.AllowInventoryDrop) == 0)
1309 return;
1310 } 1334 }
1311 1335
1312 // must have both move and modify permission to put an item in an object 1336 // must have both move and modify permission to put an item in an object
1313 if ((part.OwnerMask & ((uint)PermissionMask.Move | (uint)PermissionMask.Modify)) == 0) 1337 if (((part.OwnerMask & (uint)PermissionMask.Modify) == 0) && (!overrideNoMod))
1338 {
1314 return; 1339 return;
1340 }
1315 1341
1316 TaskInventoryItem destTaskItem = new TaskInventoryItem(); 1342 TaskInventoryItem destTaskItem = new TaskInventoryItem();
1317 1343
@@ -1367,6 +1393,14 @@ namespace OpenSim.Region.Framework.Scenes
1367 1393
1368 public UUID MoveTaskInventoryItems(UUID destID, string category, SceneObjectPart host, List<UUID> items) 1394 public UUID MoveTaskInventoryItems(UUID destID, string category, SceneObjectPart host, List<UUID> items)
1369 { 1395 {
1396 SceneObjectPart destPart = GetSceneObjectPart(destID);
1397 if (destPart != null) // Move into a prim
1398 {
1399 foreach(UUID itemID in items)
1400 MoveTaskInventoryItem(destID, host, itemID);
1401 return destID; // Prim folder ID == prim ID
1402 }
1403
1370 InventoryFolderBase rootFolder = InventoryService.GetRootFolder(destID); 1404 InventoryFolderBase rootFolder = InventoryService.GetRootFolder(destID);
1371 1405
1372 UUID newFolderID = UUID.Random(); 1406 UUID newFolderID = UUID.Random();
@@ -1549,12 +1583,12 @@ namespace OpenSim.Region.Framework.Scenes
1549 AgentTransactionsModule.HandleTaskItemUpdateFromTransaction( 1583 AgentTransactionsModule.HandleTaskItemUpdateFromTransaction(
1550 remoteClient, part, transactionID, currentItem); 1584 remoteClient, part, transactionID, currentItem);
1551 1585
1552 if ((InventoryType)itemInfo.InvType == InventoryType.Notecard) 1586// if ((InventoryType)itemInfo.InvType == InventoryType.Notecard)
1553 remoteClient.SendAgentAlertMessage("Notecard saved", false); 1587// remoteClient.SendAgentAlertMessage("Notecard saved", false);
1554 else if ((InventoryType)itemInfo.InvType == InventoryType.LSL) 1588// else if ((InventoryType)itemInfo.InvType == InventoryType.LSL)
1555 remoteClient.SendAgentAlertMessage("Script saved", false); 1589// remoteClient.SendAgentAlertMessage("Script saved", false);
1556 else 1590// else
1557 remoteClient.SendAgentAlertMessage("Item saved", false); 1591// remoteClient.SendAgentAlertMessage("Item saved", false);
1558 } 1592 }
1559 1593
1560 // Base ALWAYS has move 1594 // Base ALWAYS has move
@@ -1737,7 +1771,7 @@ namespace OpenSim.Region.Framework.Scenes
1737 } 1771 }
1738 1772
1739 AssetBase asset = CreateAsset(itemBase.Name, itemBase.Description, (sbyte)itemBase.AssetType, 1773 AssetBase asset = CreateAsset(itemBase.Name, itemBase.Description, (sbyte)itemBase.AssetType,
1740 Encoding.ASCII.GetBytes("default\n{\n state_entry()\n {\n llSay(0, \"Script running\");\n }\n}"), 1774 Encoding.ASCII.GetBytes("default\n{\n state_entry()\n {\n llSay(0, \"Script running\");\n }\n\n touch_start(integer num)\n {\n }\n}"),
1741 agentID); 1775 agentID);
1742 AssetService.Store(asset); 1776 AssetService.Store(asset);
1743 1777
@@ -1893,23 +1927,32 @@ namespace OpenSim.Region.Framework.Scenes
1893 // build a list of eligible objects 1927 // build a list of eligible objects
1894 List<uint> deleteIDs = new List<uint>(); 1928 List<uint> deleteIDs = new List<uint>();
1895 List<SceneObjectGroup> deleteGroups = new List<SceneObjectGroup>(); 1929 List<SceneObjectGroup> deleteGroups = new List<SceneObjectGroup>();
1896 1930 List<SceneObjectGroup> takeGroups = new List<SceneObjectGroup>();
1897 // Start with true for both, then remove the flags if objects
1898 // that we can't derez are part of the selection
1899 bool permissionToTake = true;
1900 bool permissionToTakeCopy = true;
1901 bool permissionToDelete = true;
1902 1931
1903 foreach (uint localID in localIDs) 1932 foreach (uint localID in localIDs)
1904 { 1933 {
1934 // Start with true for both, then remove the flags if objects
1935 // that we can't derez are part of the selection
1936 bool permissionToTake = true;
1937 bool permissionToTakeCopy = true;
1938 bool permissionToDelete = true;
1939
1905 // Invalid id 1940 // Invalid id
1906 SceneObjectPart part = GetSceneObjectPart(localID); 1941 SceneObjectPart part = GetSceneObjectPart(localID);
1907 if (part == null) 1942 if (part == null)
1943 {
1944 //Client still thinks the object exists, kill it
1945 deleteIDs.Add(localID);
1908 continue; 1946 continue;
1947 }
1909 1948
1910 // Already deleted by someone else 1949 // Already deleted by someone else
1911 if (part.ParentGroup.IsDeleted) 1950 if (part.ParentGroup.IsDeleted)
1951 {
1952 //Client still thinks the object exists, kill it
1953 deleteIDs.Add(localID);
1912 continue; 1954 continue;
1955 }
1913 1956
1914 // Can't delete child prims 1957 // Can't delete child prims
1915 if (part != part.ParentGroup.RootPart) 1958 if (part != part.ParentGroup.RootPart)
@@ -1917,9 +1960,6 @@ namespace OpenSim.Region.Framework.Scenes
1917 1960
1918 SceneObjectGroup grp = part.ParentGroup; 1961 SceneObjectGroup grp = part.ParentGroup;
1919 1962
1920 deleteIDs.Add(localID);
1921 deleteGroups.Add(grp);
1922
1923 if (remoteClient == null) 1963 if (remoteClient == null)
1924 { 1964 {
1925 // Autoreturn has a null client. Nothing else does. So 1965 // Autoreturn has a null client. Nothing else does. So
@@ -1936,81 +1976,193 @@ namespace OpenSim.Region.Framework.Scenes
1936 } 1976 }
1937 else 1977 else
1938 { 1978 {
1939 if (!Permissions.CanTakeCopyObject(grp.UUID, remoteClient.AgentId)) 1979 if (action == DeRezAction.TakeCopy)
1980 {
1981 if (!Permissions.CanTakeCopyObject(grp.UUID, remoteClient.AgentId))
1982 permissionToTakeCopy = false;
1983 }
1984 else
1985 {
1940 permissionToTakeCopy = false; 1986 permissionToTakeCopy = false;
1941 1987 }
1942 if (!Permissions.CanTakeObject(grp.UUID, remoteClient.AgentId)) 1988 if (!Permissions.CanTakeObject(grp.UUID, remoteClient.AgentId))
1943 permissionToTake = false; 1989 permissionToTake = false;
1944 1990
1945 if (!Permissions.CanDeleteObject(grp.UUID, remoteClient.AgentId)) 1991 if (!Permissions.CanDeleteObject(grp.UUID, remoteClient.AgentId))
1946 permissionToDelete = false; 1992 permissionToDelete = false;
1947 } 1993 }
1948 }
1949 1994
1950 // Handle god perms 1995 // Handle god perms
1951 if ((remoteClient != null) && Permissions.IsGod(remoteClient.AgentId)) 1996 if ((remoteClient != null) && Permissions.IsGod(remoteClient.AgentId))
1952 { 1997 {
1953 permissionToTake = true; 1998 permissionToTake = true;
1954 permissionToTakeCopy = true; 1999 permissionToTakeCopy = true;
1955 permissionToDelete = true; 2000 permissionToDelete = true;
1956 } 2001 }
1957 2002
1958 // If we're re-saving, we don't even want to delete 2003 // If we're re-saving, we don't even want to delete
1959 if (action == DeRezAction.SaveToExistingUserInventoryItem) 2004 if (action == DeRezAction.SaveToExistingUserInventoryItem)
1960 permissionToDelete = false; 2005 permissionToDelete = false;
1961 2006
1962 // if we want to take a copy, we also don't want to delete 2007 // if we want to take a copy, we also don't want to delete
1963 // Note: after this point, the permissionToTakeCopy flag 2008 // Note: after this point, the permissionToTakeCopy flag
1964 // becomes irrelevant. It already includes the permissionToTake 2009 // becomes irrelevant. It already includes the permissionToTake
1965 // permission and after excluding no copy items here, we can 2010 // permission and after excluding no copy items here, we can
1966 // just use that. 2011 // just use that.
1967 if (action == DeRezAction.TakeCopy) 2012 if (action == DeRezAction.TakeCopy)
1968 { 2013 {
1969 // If we don't have permission, stop right here 2014 // If we don't have permission, stop right here
1970 if (!permissionToTakeCopy) 2015 if (!permissionToTakeCopy)
1971 return; 2016 return;
1972 2017
1973 permissionToTake = true; 2018 permissionToTake = true;
1974 // Don't delete 2019 // Don't delete
1975 permissionToDelete = false; 2020 permissionToDelete = false;
1976 } 2021 }
1977 2022
1978 if (action == DeRezAction.Return) 2023 if (action == DeRezAction.Return)
1979 {
1980 if (remoteClient != null)
1981 { 2024 {
1982 if (Permissions.CanReturnObjects( 2025 if (remoteClient != null)
1983 null,
1984 remoteClient.AgentId,
1985 deleteGroups))
1986 { 2026 {
1987 permissionToTake = true; 2027 if (Permissions.CanReturnObjects(
1988 permissionToDelete = true; 2028 null,
1989 2029 remoteClient.AgentId,
1990 foreach (SceneObjectGroup g in deleteGroups) 2030 deleteGroups))
1991 { 2031 {
1992 AddReturn(g.OwnerID == g.GroupID ? g.LastOwnerID : g.OwnerID, g.Name, g.AbsolutePosition, "parcel owner return"); 2032 permissionToTake = true;
2033 permissionToDelete = true;
2034
2035 AddReturn(grp.OwnerID == grp.GroupID ? grp.LastOwnerID : grp.OwnerID, grp.Name, grp.AbsolutePosition, "parcel owner return");
1993 } 2036 }
1994 } 2037 }
2038 else // Auto return passes through here with null agent
2039 {
2040 permissionToTake = true;
2041 permissionToDelete = true;
2042 }
1995 } 2043 }
1996 else // Auto return passes through here with null agent 2044
2045 if (permissionToTake && (!permissionToDelete))
2046 takeGroups.Add(grp);
2047
2048 if (permissionToDelete)
1997 { 2049 {
1998 permissionToTake = true; 2050 if (permissionToTake)
1999 permissionToDelete = true; 2051 deleteGroups.Add(grp);
2052 deleteIDs.Add(grp.LocalId);
2000 } 2053 }
2001 } 2054 }
2002 2055
2003 if (permissionToTake && (action != DeRezAction.Delete || this.m_useTrashOnDelete)) 2056 SendKillObject(deleteIDs);
2057
2058 if (deleteGroups.Count > 0)
2004 { 2059 {
2060 foreach (SceneObjectGroup g in deleteGroups)
2061 deleteIDs.Remove(g.LocalId);
2062
2005 m_asyncSceneObjectDeleter.DeleteToInventory( 2063 m_asyncSceneObjectDeleter.DeleteToInventory(
2006 action, destinationID, deleteGroups, remoteClient, 2064 action, destinationID, deleteGroups, remoteClient,
2007 permissionToDelete); 2065 true);
2008 } 2066 }
2009 else if (permissionToDelete) 2067 if (takeGroups.Count > 0)
2068 {
2069 m_asyncSceneObjectDeleter.DeleteToInventory(
2070 action, destinationID, takeGroups, remoteClient,
2071 false);
2072 }
2073 if (deleteIDs.Count > 0)
2010 { 2074 {
2011 foreach (SceneObjectGroup g in deleteGroups) 2075 foreach (SceneObjectGroup g in deleteGroups)
2012 DeleteSceneObject(g, false); 2076 DeleteSceneObject(g, true);
2077 }
2078 }
2079
2080 public UUID attachObjectAssetStore(IClientAPI remoteClient, SceneObjectGroup grp, UUID AgentId, out UUID itemID)
2081 {
2082 itemID = UUID.Zero;
2083 if (grp != null)
2084 {
2085 Vector3 inventoryStoredPosition = new Vector3
2086 (((grp.AbsolutePosition.X > (int)Constants.RegionSize)
2087 ? 250
2088 : grp.AbsolutePosition.X)
2089 ,
2090 (grp.AbsolutePosition.X > (int)Constants.RegionSize)
2091 ? 250
2092 : grp.AbsolutePosition.X,
2093 grp.AbsolutePosition.Z);
2094
2095 Vector3 originalPosition = grp.AbsolutePosition;
2096
2097 grp.AbsolutePosition = inventoryStoredPosition;
2098
2099 string sceneObjectXml = SceneObjectSerializer.ToOriginalXmlFormat(grp);
2100
2101 grp.AbsolutePosition = originalPosition;
2102
2103 AssetBase asset = CreateAsset(
2104 grp.GetPartName(grp.LocalId),
2105 grp.GetPartDescription(grp.LocalId),
2106 (sbyte)AssetType.Object,
2107 Utils.StringToBytes(sceneObjectXml),
2108 remoteClient.AgentId);
2109 AssetService.Store(asset);
2110
2111 InventoryItemBase item = new InventoryItemBase();
2112 item.CreatorId = grp.RootPart.CreatorID.ToString();
2113 item.CreatorData = grp.RootPart.CreatorData;
2114 item.Owner = remoteClient.AgentId;
2115 item.ID = UUID.Random();
2116 item.AssetID = asset.FullID;
2117 item.Description = asset.Description;
2118 item.Name = asset.Name;
2119 item.AssetType = asset.Type;
2120 item.InvType = (int)InventoryType.Object;
2121
2122 InventoryFolderBase folder = InventoryService.GetFolderForType(remoteClient.AgentId, AssetType.Object);
2123 if (folder != null)
2124 item.Folder = folder.ID;
2125 else // oopsies
2126 item.Folder = UUID.Zero;
2127
2128 // Set up base perms properly
2129 uint permsBase = (uint)(PermissionMask.Move | PermissionMask.Copy | PermissionMask.Transfer | PermissionMask.Modify);
2130 permsBase &= grp.RootPart.BaseMask;
2131 permsBase |= (uint)PermissionMask.Move;
2132
2133 // Make sure we don't lock it
2134 grp.RootPart.NextOwnerMask |= (uint)PermissionMask.Move;
2135
2136 if ((remoteClient.AgentId != grp.RootPart.OwnerID) && Permissions.PropagatePermissions())
2137 {
2138 item.BasePermissions = permsBase & grp.RootPart.NextOwnerMask;
2139 item.CurrentPermissions = permsBase & grp.RootPart.NextOwnerMask;
2140 item.NextPermissions = permsBase & grp.RootPart.NextOwnerMask;
2141 item.EveryOnePermissions = permsBase & grp.RootPart.EveryoneMask & grp.RootPart.NextOwnerMask;
2142 item.GroupPermissions = permsBase & grp.RootPart.GroupMask & grp.RootPart.NextOwnerMask;
2143 }
2144 else
2145 {
2146 item.BasePermissions = permsBase;
2147 item.CurrentPermissions = permsBase & grp.RootPart.OwnerMask;
2148 item.NextPermissions = permsBase & grp.RootPart.NextOwnerMask;
2149 item.EveryOnePermissions = permsBase & grp.RootPart.EveryoneMask;
2150 item.GroupPermissions = permsBase & grp.RootPart.GroupMask;
2151 }
2152 item.CreationDate = Util.UnixTimeSinceEpoch();
2153
2154 // sets itemID so client can show item as 'attached' in inventory
2155 grp.FromItemID = item.ID;
2156
2157 if (AddInventoryItem(item))
2158 remoteClient.SendInventoryItemCreateUpdate(item, 0);
2159 else
2160 m_dialogModule.SendAlertToUser(remoteClient, "Operation failed");
2161
2162 itemID = item.ID;
2163 return item.AssetID;
2013 } 2164 }
2165 return UUID.Zero;
2014 } 2166 }
2015 2167
2016 /// <summary> 2168 /// <summary>
@@ -2139,6 +2291,9 @@ namespace OpenSim.Region.Framework.Scenes
2139 2291
2140 public void SetScriptRunning(IClientAPI controllingClient, UUID objectID, UUID itemID, bool running) 2292 public void SetScriptRunning(IClientAPI controllingClient, UUID objectID, UUID itemID, bool running)
2141 { 2293 {
2294 if (!Permissions.CanEditScript(itemID, objectID, controllingClient.AgentId))
2295 return;
2296
2142 SceneObjectPart part = GetSceneObjectPart(objectID); 2297 SceneObjectPart part = GetSceneObjectPart(objectID);
2143 if (part == null) 2298 if (part == null)
2144 return; 2299 return;
@@ -2209,7 +2364,10 @@ namespace OpenSim.Region.Framework.Scenes
2209 } 2364 }
2210 else 2365 else
2211 { 2366 {
2212 if (!Permissions.CanEditObject(sog.UUID, remoteClient.AgentId)) 2367 if (!Permissions.IsGod(remoteClient.AgentId) && sog.OwnerID != remoteClient.AgentId)
2368 continue;
2369
2370 if (!Permissions.CanTransferObject(sog.UUID, groupID))
2213 continue; 2371 continue;
2214 2372
2215 if (sog.GroupID != groupID) 2373 if (sog.GroupID != groupID)
diff --git a/OpenSim/Region/Framework/Scenes/Scene.PacketHandlers.cs b/OpenSim/Region/Framework/Scenes/Scene.PacketHandlers.cs
index 2701d6e..cf68ff4 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.PacketHandlers.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.PacketHandlers.cs
@@ -149,27 +149,47 @@ namespace OpenSim.Region.Framework.Scenes
149 /// <param name="remoteClient"></param> 149 /// <param name="remoteClient"></param>
150 public void SelectPrim(uint primLocalID, IClientAPI remoteClient) 150 public void SelectPrim(uint primLocalID, IClientAPI remoteClient)
151 { 151 {
152 /*
153 SceneObjectPart part = GetSceneObjectPart(primLocalID);
154
155 if (null == part)
156 return;
157
158 if (part.IsRoot)
159 {
160 SceneObjectGroup sog = part.ParentGroup;
161 sog.SendPropertiesToClient(remoteClient);
162
163 // A prim is only tainted if it's allowed to be edited by the person clicking it.
164 if (Permissions.CanEditObject(sog.UUID, remoteClient.AgentId)
165 || Permissions.CanMoveObject(sog.UUID, remoteClient.AgentId))
166 {
167 sog.IsSelected = true;
168 EventManager.TriggerParcelPrimCountTainted();
169 }
170 }
171 else
172 {
173 part.SendPropertiesToClient(remoteClient);
174 }
175 */
152 SceneObjectPart part = GetSceneObjectPart(primLocalID); 176 SceneObjectPart part = GetSceneObjectPart(primLocalID);
153 177
154 if (null == part) 178 if (null == part)
155 return; 179 return;
156 180
157 if (part.IsRoot) 181 SceneObjectGroup sog = part.ParentGroup;
158 { 182 if (sog == null)
159 SceneObjectGroup sog = part.ParentGroup; 183 return;
160 sog.SendPropertiesToClient(remoteClient);
161 sog.IsSelected = true;
162 184
163 // A prim is only tainted if it's allowed to be edited by the person clicking it. 185 part.SendPropertiesToClient(remoteClient);
164 if (Permissions.CanEditObject(sog.UUID, remoteClient.AgentId) 186
165 || Permissions.CanMoveObject(sog.UUID, remoteClient.AgentId)) 187 // A prim is only tainted if it's allowed to be edited by the person clicking it.
166 { 188 if (Permissions.CanEditObject(sog.UUID, remoteClient.AgentId)
167 EventManager.TriggerParcelPrimCountTainted(); 189 || Permissions.CanMoveObject(sog.UUID, remoteClient.AgentId))
168 }
169 }
170 else
171 { 190 {
172 part.SendPropertiesToClient(remoteClient); 191 part.IsSelected = true;
192 EventManager.TriggerParcelPrimCountTainted();
173 } 193 }
174 } 194 }
175 195
@@ -222,7 +242,7 @@ namespace OpenSim.Region.Framework.Scenes
222 SceneObjectPart part = GetSceneObjectPart(primLocalID); 242 SceneObjectPart part = GetSceneObjectPart(primLocalID);
223 if (part == null) 243 if (part == null)
224 return; 244 return;
225 245 /*
226 // A deselect packet contains all the local prims being deselected. However, since selection is still 246 // A deselect packet contains all the local prims being deselected. However, since selection is still
227 // group based we only want the root prim to trigger a full update - otherwise on objects with many prims 247 // group based we only want the root prim to trigger a full update - otherwise on objects with many prims
228 // we end up sending many duplicate ObjectUpdates 248 // we end up sending many duplicate ObjectUpdates
@@ -235,7 +255,9 @@ namespace OpenSim.Region.Framework.Scenes
235 // handled by group, but by prim. Legacy cruft. 255 // handled by group, but by prim. Legacy cruft.
236 // TODO: Make selection flagging per prim! 256 // TODO: Make selection flagging per prim!
237 // 257 //
238 part.ParentGroup.IsSelected = false; 258 if (Permissions.CanEditObject(part.ParentGroup.UUID, remoteClient.AgentId)
259 || Permissions.CanMoveObject(part.ParentGroup.UUID, remoteClient.AgentId))
260 part.ParentGroup.IsSelected = false;
239 261
240 if (part.ParentGroup.IsAttachment) 262 if (part.ParentGroup.IsAttachment)
241 isAttachment = true; 263 isAttachment = true;
@@ -255,6 +277,22 @@ namespace OpenSim.Region.Framework.Scenes
255 part.UUID, remoteClient.AgentId)) 277 part.UUID, remoteClient.AgentId))
256 EventManager.TriggerParcelPrimCountTainted(); 278 EventManager.TriggerParcelPrimCountTainted();
257 } 279 }
280 */
281
282 bool oldgprSelect = part.ParentGroup.IsSelected;
283
284 // This is wrong, wrong, wrong. Selection should not be
285 // handled by group, but by prim. Legacy cruft.
286 // TODO: Make selection flagging per prim!
287 //
288 if (Permissions.CanEditObject(part.ParentGroup.UUID, remoteClient.AgentId)
289 || Permissions.CanMoveObject(part.ParentGroup.UUID, remoteClient.AgentId))
290 {
291 part.IsSelected = false;
292 if (!part.ParentGroup.IsAttachment && oldgprSelect != part.ParentGroup.IsSelected)
293 EventManager.TriggerParcelPrimCountTainted();
294 }
295
258 } 296 }
259 297
260 public virtual void ProcessMoneyTransferRequest(UUID source, UUID destination, int amount, 298 public virtual void ProcessMoneyTransferRequest(UUID source, UUID destination, int amount,
diff --git a/OpenSim/Region/Framework/Scenes/Scene.cs b/OpenSim/Region/Framework/Scenes/Scene.cs
index d449116..8591b09 100644
--- a/OpenSim/Region/Framework/Scenes/Scene.cs
+++ b/OpenSim/Region/Framework/Scenes/Scene.cs
@@ -124,6 +124,7 @@ namespace OpenSim.Region.Framework.Scenes
124 // TODO: need to figure out how allow client agents but deny 124 // TODO: need to figure out how allow client agents but deny
125 // root agents when ACL denies access to root agent 125 // root agents when ACL denies access to root agent
126 public bool m_strictAccessControl = true; 126 public bool m_strictAccessControl = true;
127 public bool m_seeIntoBannedRegion = false;
127 public int MaxUndoCount = 5; 128 public int MaxUndoCount = 5;
128 // Using this for RegionReady module to prevent LoginsDisabled from changing under our feet; 129 // Using this for RegionReady module to prevent LoginsDisabled from changing under our feet;
129 public bool LoginLock = false; 130 public bool LoginLock = false;
@@ -139,12 +140,14 @@ namespace OpenSim.Region.Framework.Scenes
139 140
140 protected int m_splitRegionID; 141 protected int m_splitRegionID;
141 protected Timer m_restartWaitTimer = new Timer(); 142 protected Timer m_restartWaitTimer = new Timer();
143 protected Timer m_timerWatchdog = new Timer();
142 protected List<RegionInfo> m_regionRestartNotifyList = new List<RegionInfo>(); 144 protected List<RegionInfo> m_regionRestartNotifyList = new List<RegionInfo>();
143 protected List<RegionInfo> m_neighbours = new List<RegionInfo>(); 145 protected List<RegionInfo> m_neighbours = new List<RegionInfo>();
144 protected string m_simulatorVersion = "OpenSimulator Server"; 146 protected string m_simulatorVersion = "OpenSimulator Server";
145 protected ModuleLoader m_moduleLoader; 147 protected ModuleLoader m_moduleLoader;
146 protected AgentCircuitManager m_authenticateHandler; 148 protected AgentCircuitManager m_authenticateHandler;
147 protected SceneCommunicationService m_sceneGridService; 149 protected SceneCommunicationService m_sceneGridService;
150 protected ISnmpModule m_snmpService = null;
148 151
149 protected ISimulationDataService m_SimulationDataService; 152 protected ISimulationDataService m_SimulationDataService;
150 protected IEstateDataService m_EstateDataService; 153 protected IEstateDataService m_EstateDataService;
@@ -206,7 +209,7 @@ namespace OpenSim.Region.Framework.Scenes
206 private int m_update_events = 1; 209 private int m_update_events = 1;
207 private int m_update_backup = 200; 210 private int m_update_backup = 200;
208 private int m_update_terrain = 50; 211 private int m_update_terrain = 50;
209// private int m_update_land = 1; 212 private int m_update_land = 10;
210 private int m_update_coarse_locations = 50; 213 private int m_update_coarse_locations = 50;
211 214
212 private int agentMS; 215 private int agentMS;
@@ -226,6 +229,7 @@ namespace OpenSim.Region.Framework.Scenes
226 /// </summary> 229 /// </summary>
227 private int m_lastFrameTick; 230 private int m_lastFrameTick;
228 231
232 public bool CombineRegions = false;
229 /// <summary> 233 /// <summary>
230 /// Tick at which the last maintenance run occurred. 234 /// Tick at which the last maintenance run occurred.
231 /// </summary> 235 /// </summary>
@@ -256,6 +260,11 @@ namespace OpenSim.Region.Framework.Scenes
256 /// </summary> 260 /// </summary>
257 private int m_LastLogin; 261 private int m_LastLogin;
258 262
263 private int m_lastIncoming;
264 private int m_lastOutgoing;
265 private int m_hbRestarts = 0;
266
267
259 /// <summary> 268 /// <summary>
260 /// Thread that runs the scene loop. 269 /// Thread that runs the scene loop.
261 /// </summary> 270 /// </summary>
@@ -271,7 +280,7 @@ namespace OpenSim.Region.Framework.Scenes
271 private volatile bool m_shuttingDown; 280 private volatile bool m_shuttingDown;
272 281
273// private int m_lastUpdate; 282// private int m_lastUpdate;
274// private bool m_firstHeartbeat = true; 283 private bool m_firstHeartbeat = true;
275 284
276 private UpdatePrioritizationSchemes m_priorityScheme = UpdatePrioritizationSchemes.Time; 285 private UpdatePrioritizationSchemes m_priorityScheme = UpdatePrioritizationSchemes.Time;
277 private bool m_reprioritizationEnabled = true; 286 private bool m_reprioritizationEnabled = true;
@@ -316,6 +325,19 @@ namespace OpenSim.Region.Framework.Scenes
316 get { return m_sceneGridService; } 325 get { return m_sceneGridService; }
317 } 326 }
318 327
328 public ISnmpModule SnmpService
329 {
330 get
331 {
332 if (m_snmpService == null)
333 {
334 m_snmpService = RequestModuleInterface<ISnmpModule>();
335 }
336
337 return m_snmpService;
338 }
339 }
340
319 public ISimulationDataService SimulationDataService 341 public ISimulationDataService SimulationDataService
320 { 342 {
321 get 343 get
@@ -616,6 +638,8 @@ namespace OpenSim.Region.Framework.Scenes
616 m_EstateDataService = estateDataService; 638 m_EstateDataService = estateDataService;
617 m_regionHandle = m_regInfo.RegionHandle; 639 m_regionHandle = m_regInfo.RegionHandle;
618 m_regionName = m_regInfo.RegionName; 640 m_regionName = m_regInfo.RegionName;
641 m_lastIncoming = 0;
642 m_lastOutgoing = 0;
619 643
620 m_asyncSceneObjectDeleter = new AsyncSceneObjectGroupDeleter(this); 644 m_asyncSceneObjectDeleter = new AsyncSceneObjectGroupDeleter(this);
621 m_asyncSceneObjectDeleter.Enabled = true; 645 m_asyncSceneObjectDeleter.Enabled = true;
@@ -696,102 +720,111 @@ namespace OpenSim.Region.Framework.Scenes
696 720
697 // Region config overrides global config 721 // Region config overrides global config
698 // 722 //
699 if (m_config.Configs["Startup"] != null) 723 try
700 { 724 {
701 IConfig startupConfig = m_config.Configs["Startup"]; 725 if (m_config.Configs["Startup"] != null)
702
703 m_defaultDrawDistance = startupConfig.GetFloat("DefaultDrawDistance", m_defaultDrawDistance);
704 m_useBackup = startupConfig.GetBoolean("UseSceneBackup", m_useBackup);
705 if (!m_useBackup)
706 m_log.InfoFormat("[SCENE]: Backup has been disabled for {0}", RegionInfo.RegionName);
707
708 //Animation states
709 m_useFlySlow = startupConfig.GetBoolean("enableflyslow", false);
710
711 PhysicalPrims = startupConfig.GetBoolean("physical_prim", PhysicalPrims);
712 CollidablePrims = startupConfig.GetBoolean("collidable_prim", CollidablePrims);
713
714 m_maxNonphys = startupConfig.GetFloat("NonphysicalPrimMax", m_maxNonphys);
715 if (RegionInfo.NonphysPrimMax > 0)
716 { 726 {
717 m_maxNonphys = RegionInfo.NonphysPrimMax; 727 IConfig startupConfig = m_config.Configs["Startup"];
718 }
719
720 m_maxPhys = startupConfig.GetFloat("PhysicalPrimMax", m_maxPhys);
721 728
722 if (RegionInfo.PhysPrimMax > 0) 729 m_defaultDrawDistance = startupConfig.GetFloat("DefaultDrawDistance",m_defaultDrawDistance);
723 { 730 m_useBackup = startupConfig.GetBoolean("UseSceneBackup", m_useBackup);
724 m_maxPhys = RegionInfo.PhysPrimMax; 731 if (!m_useBackup)
725 } 732 m_log.InfoFormat("[SCENE]: Backup has been disabled for {0}", RegionInfo.RegionName);
733
734 //Animation states
735 m_useFlySlow = startupConfig.GetBoolean("enableflyslow", false);
726 736
727 // Here, if clamping is requested in either global or 737 PhysicalPrims = startupConfig.GetBoolean("physical_prim", true);
728 // local config, it will be used 738 CollidablePrims = startupConfig.GetBoolean("collidable_prim", true);
729 //
730 m_clampPrimSize = startupConfig.GetBoolean("ClampPrimSize", m_clampPrimSize);
731 if (RegionInfo.ClampPrimSize)
732 {
733 m_clampPrimSize = true;
734 }
735 739
736 m_useTrashOnDelete = startupConfig.GetBoolean("UseTrashOnDelete", m_useTrashOnDelete); 740 m_maxNonphys = startupConfig.GetFloat("NonphysicalPrimMax", m_maxNonphys);
737 m_trustBinaries = startupConfig.GetBoolean("TrustBinaries", m_trustBinaries); 741 if (RegionInfo.NonphysPrimMax > 0)
738 m_allowScriptCrossings = startupConfig.GetBoolean("AllowScriptCrossing", m_allowScriptCrossings); 742 {
739 m_dontPersistBefore = 743 m_maxNonphys = RegionInfo.NonphysPrimMax;
740 startupConfig.GetLong("MinimumTimeBeforePersistenceConsidered", DEFAULT_MIN_TIME_FOR_PERSISTENCE); 744 }
741 m_dontPersistBefore *= 10000000;
742 m_persistAfter =
743 startupConfig.GetLong("MaximumTimeBeforePersistenceConsidered", DEFAULT_MAX_TIME_FOR_PERSISTENCE);
744 m_persistAfter *= 10000000;
745 745
746 m_defaultScriptEngine = startupConfig.GetString("DefaultScriptEngine", "XEngine"); 746 m_maxPhys = startupConfig.GetFloat("PhysicalPrimMax", m_maxPhys);
747 747
748 SpawnPointRouting = startupConfig.GetString("SpawnPointRouting", "closest"); 748 if (RegionInfo.PhysPrimMax > 0)
749 TelehubAllowLandmarks = startupConfig.GetBoolean("TelehubAllowLandmark", false); 749 {
750 m_maxPhys = RegionInfo.PhysPrimMax;
751 }
750 752
751 IConfig packetConfig = m_config.Configs["PacketPool"]; 753 SpawnPointRouting = startupConfig.GetString("SpawnPointRouting", "closest");
752 if (packetConfig != null) 754 TelehubAllowLandmarks = startupConfig.GetBoolean("TelehubAllowLandmark", false);
753 {
754 PacketPool.Instance.RecyclePackets = packetConfig.GetBoolean("RecyclePackets", true);
755 PacketPool.Instance.RecycleDataBlocks = packetConfig.GetBoolean("RecycleDataBlocks", true);
756 }
757 755
758 m_strictAccessControl = startupConfig.GetBoolean("StrictAccessControl", m_strictAccessControl); 756 // Here, if clamping is requested in either global or
757 // local config, it will be used
758 //
759 m_clampPrimSize = startupConfig.GetBoolean("ClampPrimSize", m_clampPrimSize);
760 if (RegionInfo.ClampPrimSize)
761 {
762 m_clampPrimSize = true;
763 }
759 764
760 m_generateMaptiles = startupConfig.GetBoolean("GenerateMaptiles", true); 765 m_useTrashOnDelete = startupConfig.GetBoolean("UseTrashOnDelete",m_useTrashOnDelete);
761 if (m_generateMaptiles) 766 m_trustBinaries = startupConfig.GetBoolean("TrustBinaries", m_trustBinaries);
762 { 767 m_allowScriptCrossings = startupConfig.GetBoolean("AllowScriptCrossing", m_allowScriptCrossings);
763 int maptileRefresh = startupConfig.GetInt("MaptileRefresh", 0); 768 m_dontPersistBefore =
764 if (maptileRefresh != 0) 769 startupConfig.GetLong("MinimumTimeBeforePersistenceConsidered", DEFAULT_MIN_TIME_FOR_PERSISTENCE);
770 m_dontPersistBefore *= 10000000;
771 m_persistAfter =
772 startupConfig.GetLong("MaximumTimeBeforePersistenceConsidered", DEFAULT_MAX_TIME_FOR_PERSISTENCE);
773 m_persistAfter *= 10000000;
774
775 m_defaultScriptEngine = startupConfig.GetString("DefaultScriptEngine", "XEngine");
776 m_log.InfoFormat("[SCENE]: Default script engine {0}", m_defaultScriptEngine);
777
778 IConfig packetConfig = m_config.Configs["PacketPool"];
779 if (packetConfig != null)
765 { 780 {
766 m_mapGenerationTimer.Interval = maptileRefresh * 1000; 781 PacketPool.Instance.RecyclePackets = packetConfig.GetBoolean("RecyclePackets", true);
767 m_mapGenerationTimer.Elapsed += RegenerateMaptileAndReregister; 782 PacketPool.Instance.RecycleDataBlocks = packetConfig.GetBoolean("RecycleDataBlocks", true);
768 m_mapGenerationTimer.AutoReset = true;
769 m_mapGenerationTimer.Start();
770 } 783 }
771 }
772 else
773 {
774 string tile = startupConfig.GetString("MaptileStaticUUID", UUID.Zero.ToString());
775 UUID tileID;
776 784
777 if (UUID.TryParse(tile, out tileID)) 785 m_strictAccessControl = startupConfig.GetBoolean("StrictAccessControl", m_strictAccessControl);
786 m_seeIntoBannedRegion = startupConfig.GetBoolean("SeeIntoBannedRegion", m_seeIntoBannedRegion);
787 CombineRegions = startupConfig.GetBoolean("CombineContiguousRegions", false);
788
789 m_generateMaptiles = startupConfig.GetBoolean("GenerateMaptiles", true);
790 if (m_generateMaptiles)
778 { 791 {
779 RegionInfo.RegionSettings.TerrainImageID = tileID; 792 int maptileRefresh = startupConfig.GetInt("MaptileRefresh", 0);
793 if (maptileRefresh != 0)
794 {
795 m_mapGenerationTimer.Interval = maptileRefresh * 1000;
796 m_mapGenerationTimer.Elapsed += RegenerateMaptileAndReregister;
797 m_mapGenerationTimer.AutoReset = true;
798 m_mapGenerationTimer.Start();
799 }
780 } 800 }
781 } 801 else
802 {
803 string tile = startupConfig.GetString("MaptileStaticUUID", UUID.Zero.ToString());
804 UUID tileID;
782 805
783 MinFrameTime = startupConfig.GetFloat( "MinFrameTime", MinFrameTime); 806 if (UUID.TryParse(tile, out tileID))
784 m_update_backup = startupConfig.GetInt( "UpdateStorageEveryNFrames", m_update_backup); 807 {
785 m_update_coarse_locations = startupConfig.GetInt( "UpdateCoarseLocationsEveryNFrames", m_update_coarse_locations); 808 RegionInfo.RegionSettings.TerrainImageID = tileID;
786 m_update_entitymovement = startupConfig.GetInt( "UpdateEntityMovementEveryNFrames", m_update_entitymovement); 809 }
787 m_update_events = startupConfig.GetInt( "UpdateEventsEveryNFrames", m_update_events); 810 }
788 m_update_objects = startupConfig.GetInt( "UpdateObjectsEveryNFrames", m_update_objects);
789 m_update_physics = startupConfig.GetInt( "UpdatePhysicsEveryNFrames", m_update_physics);
790 m_update_presences = startupConfig.GetInt( "UpdateAgentsEveryNFrames", m_update_presences);
791 m_update_terrain = startupConfig.GetInt( "UpdateTerrainEveryNFrames", m_update_terrain);
792 m_update_temp_cleaning = startupConfig.GetInt( "UpdateTempCleaningEveryNFrames", m_update_temp_cleaning);
793 811
794 SendPeriodicAppearanceUpdates = startupConfig.GetBoolean("SendPeriodicAppearanceUpdates", SendPeriodicAppearanceUpdates); 812 MinFrameTime = startupConfig.GetFloat( "MinFrameTime", MinFrameTime);
813 m_update_backup = startupConfig.GetInt( "UpdateStorageEveryNFrames", m_update_backup);
814 m_update_coarse_locations = startupConfig.GetInt( "UpdateCoarseLocationsEveryNFrames", m_update_coarse_locations);
815 m_update_entitymovement = startupConfig.GetInt( "UpdateEntityMovementEveryNFrames", m_update_entitymovement);
816 m_update_events = startupConfig.GetInt( "UpdateEventsEveryNFrames", m_update_events);
817 m_update_objects = startupConfig.GetInt( "UpdateObjectsEveryNFrames", m_update_objects);
818 m_update_physics = startupConfig.GetInt( "UpdatePhysicsEveryNFrames", m_update_physics);
819 m_update_presences = startupConfig.GetInt( "UpdateAgentsEveryNFrames", m_update_presences);
820 m_update_terrain = startupConfig.GetInt( "UpdateTerrainEveryNFrames", m_update_terrain);
821 m_update_temp_cleaning = startupConfig.GetInt( "UpdateTempCleaningEveryNFrames", m_update_temp_cleaning);
822 SendPeriodicAppearanceUpdates = startupConfig.GetBoolean("SendPeriodicAppearanceUpdates", SendPeriodicAppearanceUpdates);
823 }
824 }
825 catch (Exception e)
826 {
827 m_log.Error("[SCENE]: Failed to load StartupConfig: " + e.ToString());
795 } 828 }
796 829
797 #endregion Region Config 830 #endregion Region Config
@@ -1218,7 +1251,22 @@ namespace OpenSim.Region.Framework.Scenes
1218 //m_heartbeatTimer.Elapsed += new ElapsedEventHandler(Heartbeat); 1251 //m_heartbeatTimer.Elapsed += new ElapsedEventHandler(Heartbeat);
1219 if (m_heartbeatThread != null) 1252 if (m_heartbeatThread != null)
1220 { 1253 {
1254 m_hbRestarts++;
1255 if(m_hbRestarts > 10)
1256 Environment.Exit(1);
1257 m_log.ErrorFormat("[SCENE]: Restarting heartbeat thread because it hasn't reported in in region {0}", RegionInfo.RegionName);
1258
1259//int pid = System.Diagnostics.Process.GetCurrentProcess().Id;
1260//System.Diagnostics.Process proc = new System.Diagnostics.Process();
1261//proc.EnableRaisingEvents=false;
1262//proc.StartInfo.FileName = "/bin/kill";
1263//proc.StartInfo.Arguments = "-QUIT " + pid.ToString();
1264//proc.Start();
1265//proc.WaitForExit();
1266//Thread.Sleep(1000);
1267//Environment.Exit(1);
1221 m_heartbeatThread.Abort(); 1268 m_heartbeatThread.Abort();
1269 Watchdog.AbortThread(m_heartbeatThread.ManagedThreadId);
1222 m_heartbeatThread = null; 1270 m_heartbeatThread = null;
1223 } 1271 }
1224// m_lastUpdate = Util.EnvironmentTickCount(); 1272// m_lastUpdate = Util.EnvironmentTickCount();
@@ -1509,6 +1557,8 @@ namespace OpenSim.Region.Framework.Scenes
1509 tmpMS = Util.EnvironmentTickCountSubtract(m_lastFrameTick, maintc); 1557 tmpMS = Util.EnvironmentTickCountSubtract(m_lastFrameTick, maintc);
1510 tmpMS = (int)(MinFrameTime * 1000) - tmpMS; 1558 tmpMS = (int)(MinFrameTime * 1000) - tmpMS;
1511 1559
1560 m_firstHeartbeat = false;
1561
1512 if (tmpMS > 0) 1562 if (tmpMS > 0)
1513 { 1563 {
1514 Thread.Sleep(tmpMS); 1564 Thread.Sleep(tmpMS);
@@ -1559,9 +1609,9 @@ namespace OpenSim.Region.Framework.Scenes
1559 1609
1560 private void CheckAtTargets() 1610 private void CheckAtTargets()
1561 { 1611 {
1562 Dictionary<UUID, SceneObjectGroup>.ValueCollection objs; 1612 List<SceneObjectGroup> objs = new List<SceneObjectGroup>();
1563 lock (m_groupsWithTargets) 1613 lock (m_groupsWithTargets)
1564 objs = m_groupsWithTargets.Values; 1614 objs = new List<SceneObjectGroup>(m_groupsWithTargets.Values);
1565 1615
1566 foreach (SceneObjectGroup entry in objs) 1616 foreach (SceneObjectGroup entry in objs)
1567 entry.checkAtTargets(); 1617 entry.checkAtTargets();
@@ -1642,7 +1692,7 @@ namespace OpenSim.Region.Framework.Scenes
1642 msg.fromAgentName = "Server"; 1692 msg.fromAgentName = "Server";
1643 msg.dialog = (byte)19; // Object msg 1693 msg.dialog = (byte)19; // Object msg
1644 msg.fromGroup = false; 1694 msg.fromGroup = false;
1645 msg.offline = (byte)0; 1695 msg.offline = (byte)1;
1646 msg.ParentEstateID = RegionInfo.EstateSettings.ParentEstateID; 1696 msg.ParentEstateID = RegionInfo.EstateSettings.ParentEstateID;
1647 msg.Position = Vector3.Zero; 1697 msg.Position = Vector3.Zero;
1648 msg.RegionID = RegionInfo.RegionID.Guid; 1698 msg.RegionID = RegionInfo.RegionID.Guid;
@@ -1864,6 +1914,19 @@ namespace OpenSim.Region.Framework.Scenes
1864 EventManager.TriggerPrimsLoaded(this); 1914 EventManager.TriggerPrimsLoaded(this);
1865 } 1915 }
1866 1916
1917 public bool SuportsRayCastFiltered()
1918 {
1919 if (PhysicsScene == null)
1920 return false;
1921 return PhysicsScene.SuportsRaycastWorldFiltered();
1922 }
1923
1924 public object RayCastFiltered(Vector3 position, Vector3 direction, float length, int Count, RayFilterFlags filter)
1925 {
1926 if (PhysicsScene == null)
1927 return null;
1928 return PhysicsScene.RaycastWorld(position, direction, length, Count,filter);
1929 }
1867 1930
1868 /// <summary> 1931 /// <summary>
1869 /// Gets a new rez location based on the raycast and the size of the object that is being rezzed. 1932 /// Gets a new rez location based on the raycast and the size of the object that is being rezzed.
@@ -1880,14 +1943,24 @@ namespace OpenSim.Region.Framework.Scenes
1880 /// <returns></returns> 1943 /// <returns></returns>
1881 public Vector3 GetNewRezLocation(Vector3 RayStart, Vector3 RayEnd, UUID RayTargetID, Quaternion rot, byte bypassRayCast, byte RayEndIsIntersection, bool frontFacesOnly, Vector3 scale, bool FaceCenter) 1944 public Vector3 GetNewRezLocation(Vector3 RayStart, Vector3 RayEnd, UUID RayTargetID, Quaternion rot, byte bypassRayCast, byte RayEndIsIntersection, bool frontFacesOnly, Vector3 scale, bool FaceCenter)
1882 { 1945 {
1946
1947 float wheight = (float)RegionInfo.RegionSettings.WaterHeight;
1948 Vector3 wpos = Vector3.Zero;
1949 // Check for water surface intersection from above
1950 if ( (RayStart.Z > wheight) && (RayEnd.Z < wheight) )
1951 {
1952 float ratio = (RayStart.Z - wheight) / (RayStart.Z - RayEnd.Z);
1953 wpos.X = RayStart.X - (ratio * (RayStart.X - RayEnd.X));
1954 wpos.Y = RayStart.Y - (ratio * (RayStart.Y - RayEnd.Y));
1955 wpos.Z = wheight;
1956 }
1957
1883 Vector3 pos = Vector3.Zero; 1958 Vector3 pos = Vector3.Zero;
1884 if (RayEndIsIntersection == (byte)1) 1959 if (RayEndIsIntersection == (byte)1)
1885 { 1960 {
1886 pos = RayEnd; 1961 pos = RayEnd;
1887 return pos;
1888 } 1962 }
1889 1963 else if (RayTargetID != UUID.Zero)
1890 if (RayTargetID != UUID.Zero)
1891 { 1964 {
1892 SceneObjectPart target = GetSceneObjectPart(RayTargetID); 1965 SceneObjectPart target = GetSceneObjectPart(RayTargetID);
1893 1966
@@ -1909,7 +1982,7 @@ namespace OpenSim.Region.Framework.Scenes
1909 EntityIntersection ei = target.TestIntersectionOBB(NewRay, Quaternion.Identity, frontFacesOnly, FaceCenter); 1982 EntityIntersection ei = target.TestIntersectionOBB(NewRay, Quaternion.Identity, frontFacesOnly, FaceCenter);
1910 1983
1911 // Un-comment out the following line to Get Raytrace results printed to the console. 1984 // Un-comment out the following line to Get Raytrace results printed to the console.
1912 // m_log.Info("[RAYTRACERESULTS]: Hit:" + ei.HitTF.ToString() + " Point: " + ei.ipoint.ToString() + " Normal: " + ei.normal.ToString()); 1985 // m_log.Info("[RAYTRACERESULTS]: Hit:" + ei.HitTF.ToString() + " Point: " + ei.ipoint.ToString() + " Normal: " + ei.normal.ToString());
1913 float ScaleOffset = 0.5f; 1986 float ScaleOffset = 0.5f;
1914 1987
1915 // If we hit something 1988 // If we hit something
@@ -1932,13 +2005,10 @@ namespace OpenSim.Region.Framework.Scenes
1932 //pos.Z -= 0.25F; 2005 //pos.Z -= 0.25F;
1933 2006
1934 } 2007 }
1935
1936 return pos;
1937 } 2008 }
1938 else 2009 else
1939 { 2010 {
1940 // We don't have a target here, so we're going to raytrace all the objects in the scene. 2011 // We don't have a target here, so we're going to raytrace all the objects in the scene.
1941
1942 EntityIntersection ei = m_sceneGraph.GetClosestIntersectingPrim(new Ray(AXOrigin, AXdirection), true, false); 2012 EntityIntersection ei = m_sceneGraph.GetClosestIntersectingPrim(new Ray(AXOrigin, AXdirection), true, false);
1943 2013
1944 // Un-comment the following line to print the raytrace results to the console. 2014 // Un-comment the following line to print the raytrace results to the console.
@@ -1947,13 +2017,12 @@ namespace OpenSim.Region.Framework.Scenes
1947 if (ei.HitTF) 2017 if (ei.HitTF)
1948 { 2018 {
1949 pos = new Vector3(ei.ipoint.X, ei.ipoint.Y, ei.ipoint.Z); 2019 pos = new Vector3(ei.ipoint.X, ei.ipoint.Y, ei.ipoint.Z);
1950 } else 2020 }
2021 else
1951 { 2022 {
1952 // fall back to our stupid functionality 2023 // fall back to our stupid functionality
1953 pos = RayEnd; 2024 pos = RayEnd;
1954 } 2025 }
1955
1956 return pos;
1957 } 2026 }
1958 } 2027 }
1959 else 2028 else
@@ -1964,8 +2033,12 @@ namespace OpenSim.Region.Framework.Scenes
1964 //increase height so its above the ground. 2033 //increase height so its above the ground.
1965 //should be getting the normal of the ground at the rez point and using that? 2034 //should be getting the normal of the ground at the rez point and using that?
1966 pos.Z += scale.Z / 2f; 2035 pos.Z += scale.Z / 2f;
1967 return pos; 2036// return pos;
1968 } 2037 }
2038
2039 // check against posible water intercept
2040 if (wpos.Z > pos.Z) pos = wpos;
2041 return pos;
1969 } 2042 }
1970 2043
1971 2044
@@ -2054,7 +2127,10 @@ namespace OpenSim.Region.Framework.Scenes
2054 public bool AddRestoredSceneObject( 2127 public bool AddRestoredSceneObject(
2055 SceneObjectGroup sceneObject, bool attachToBackup, bool alreadyPersisted, bool sendClientUpdates) 2128 SceneObjectGroup sceneObject, bool attachToBackup, bool alreadyPersisted, bool sendClientUpdates)
2056 { 2129 {
2057 return m_sceneGraph.AddRestoredSceneObject(sceneObject, attachToBackup, alreadyPersisted, sendClientUpdates); 2130 bool result = m_sceneGraph.AddRestoredSceneObject(sceneObject, attachToBackup, alreadyPersisted, sendClientUpdates);
2131 if (result)
2132 sceneObject.IsDeleted = false;
2133 return result;
2058 } 2134 }
2059 2135
2060 /// <summary> 2136 /// <summary>
@@ -2146,6 +2222,15 @@ namespace OpenSim.Region.Framework.Scenes
2146 /// </summary> 2222 /// </summary>
2147 public void DeleteAllSceneObjects() 2223 public void DeleteAllSceneObjects()
2148 { 2224 {
2225 DeleteAllSceneObjects(false);
2226 }
2227
2228 /// <summary>
2229 /// Delete every object from the scene. This does not include attachments worn by avatars.
2230 /// </summary>
2231 public void DeleteAllSceneObjects(bool exceptNoCopy)
2232 {
2233 List<SceneObjectGroup> toReturn = new List<SceneObjectGroup>();
2149 lock (Entities) 2234 lock (Entities)
2150 { 2235 {
2151 EntityBase[] entities = Entities.GetEntities(); 2236 EntityBase[] entities = Entities.GetEntities();
@@ -2154,11 +2239,24 @@ namespace OpenSim.Region.Framework.Scenes
2154 if (e is SceneObjectGroup) 2239 if (e is SceneObjectGroup)
2155 { 2240 {
2156 SceneObjectGroup sog = (SceneObjectGroup)e; 2241 SceneObjectGroup sog = (SceneObjectGroup)e;
2157 if (!sog.IsAttachment) 2242 if (sog != null && !sog.IsAttachment)
2158 DeleteSceneObject((SceneObjectGroup)e, false); 2243 {
2244 if (!exceptNoCopy || ((sog.GetEffectivePermissions() & (uint)PermissionMask.Copy) != 0))
2245 {
2246 DeleteSceneObject((SceneObjectGroup)e, false);
2247 }
2248 else
2249 {
2250 toReturn.Add((SceneObjectGroup)e);
2251 }
2252 }
2159 } 2253 }
2160 } 2254 }
2161 } 2255 }
2256 if (toReturn.Count > 0)
2257 {
2258 returnObjects(toReturn.ToArray(), UUID.Zero);
2259 }
2162 } 2260 }
2163 2261
2164 /// <summary> 2262 /// <summary>
@@ -2193,6 +2291,8 @@ namespace OpenSim.Region.Framework.Scenes
2193 } 2291 }
2194 2292
2195 group.DeleteGroupFromScene(silent); 2293 group.DeleteGroupFromScene(silent);
2294 if (!silent)
2295 SendKillObject(new List<uint>() { group.LocalId });
2196 2296
2197// m_log.DebugFormat("[SCENE]: Exit DeleteSceneObject() for {0} {1}", group.Name, group.UUID); 2297// m_log.DebugFormat("[SCENE]: Exit DeleteSceneObject() for {0} {1}", group.Name, group.UUID);
2198 } 2298 }
@@ -2482,6 +2582,8 @@ namespace OpenSim.Region.Framework.Scenes
2482 2582
2483 if (newPosition != Vector3.Zero) 2583 if (newPosition != Vector3.Zero)
2484 newObject.RootPart.GroupPosition = newPosition; 2584 newObject.RootPart.GroupPosition = newPosition;
2585 if (newObject.RootPart.KeyframeMotion != null)
2586 newObject.RootPart.KeyframeMotion.UpdateSceneObject(newObject);
2485 2587
2486 if (!AddSceneObject(newObject)) 2588 if (!AddSceneObject(newObject))
2487 { 2589 {
@@ -2550,10 +2652,17 @@ namespace OpenSim.Region.Framework.Scenes
2550 /// <returns>True if the SceneObjectGroup was added, False if it was not</returns> 2652 /// <returns>True if the SceneObjectGroup was added, False if it was not</returns>
2551 public bool AddSceneObject(SceneObjectGroup sceneObject) 2653 public bool AddSceneObject(SceneObjectGroup sceneObject)
2552 { 2654 {
2655 if (sceneObject.OwnerID == UUID.Zero)
2656 {
2657 m_log.ErrorFormat("[SCENE]: Owner ID for {0} was zero", sceneObject.UUID);
2658 return false;
2659 }
2660
2553 // If the user is banned, we won't let any of their objects 2661 // If the user is banned, we won't let any of their objects
2554 // enter. Period. 2662 // enter. Period.
2555 // 2663 //
2556 if (m_regInfo.EstateSettings.IsBanned(sceneObject.OwnerID)) 2664 int flags = GetUserFlags(sceneObject.OwnerID);
2665 if (m_regInfo.EstateSettings.IsBanned(sceneObject.OwnerID, flags))
2557 { 2666 {
2558 m_log.InfoFormat("[INTERREGION]: Denied prim crossing for banned avatar {0}", sceneObject.OwnerID); 2667 m_log.InfoFormat("[INTERREGION]: Denied prim crossing for banned avatar {0}", sceneObject.OwnerID);
2559 2668
@@ -2595,16 +2704,27 @@ namespace OpenSim.Region.Framework.Scenes
2595 RootPrim.RemFlag(PrimFlags.TemporaryOnRez); 2704 RootPrim.RemFlag(PrimFlags.TemporaryOnRez);
2596 2705
2597 if (AttachmentsModule != null) 2706 if (AttachmentsModule != null)
2598 AttachmentsModule.AttachObject(sp, grp, 0, false); 2707 AttachmentsModule.AttachObject(sp, grp, 0, false, false);
2599 } 2708 }
2600 else 2709 else
2601 { 2710 {
2711 m_log.DebugFormat("[SCENE]: Attachment {0} arrived and scene presence was not found, setting to temp", sceneObject.UUID);
2602 RootPrim.RemFlag(PrimFlags.TemporaryOnRez); 2712 RootPrim.RemFlag(PrimFlags.TemporaryOnRez);
2603 RootPrim.AddFlag(PrimFlags.TemporaryOnRez); 2713 RootPrim.AddFlag(PrimFlags.TemporaryOnRez);
2604 } 2714 }
2715 if (sceneObject.OwnerID == UUID.Zero)
2716 {
2717 m_log.ErrorFormat("[SCENE]: Owner ID for {0} was zero after attachment processing. BUG!", sceneObject.UUID);
2718 return false;
2719 }
2605 } 2720 }
2606 else 2721 else
2607 { 2722 {
2723 if (sceneObject.OwnerID == UUID.Zero)
2724 {
2725 m_log.ErrorFormat("[SCENE]: Owner ID for non-attachment {0} was zero", sceneObject.UUID);
2726 return false;
2727 }
2608 AddRestoredSceneObject(sceneObject, true, false); 2728 AddRestoredSceneObject(sceneObject, true, false);
2609 2729
2610 if (!Permissions.CanObjectEntry(sceneObject.UUID, 2730 if (!Permissions.CanObjectEntry(sceneObject.UUID,
@@ -2633,6 +2753,24 @@ namespace OpenSim.Region.Framework.Scenes
2633 return 2; // StateSource.PrimCrossing 2753 return 2; // StateSource.PrimCrossing
2634 } 2754 }
2635 2755
2756 public int GetUserFlags(UUID user)
2757 {
2758 //Unfortunately the SP approach means that the value is cached until region is restarted
2759 /*
2760 ScenePresence sp;
2761 if (TryGetScenePresence(user, out sp))
2762 {
2763 return sp.UserFlags;
2764 }
2765 else
2766 {
2767 */
2768 UserAccount uac = UserAccountService.GetUserAccount(RegionInfo.ScopeID, user);
2769 if (uac == null)
2770 return 0;
2771 return uac.UserFlags;
2772 //}
2773 }
2636 #endregion 2774 #endregion
2637 2775
2638 #region Add/Remove Avatar Methods 2776 #region Add/Remove Avatar Methods
@@ -2646,7 +2784,7 @@ namespace OpenSim.Region.Framework.Scenes
2646 = (aCircuit.teleportFlags & (uint)Constants.TeleportFlags.ViaHGLogin) != 0 2784 = (aCircuit.teleportFlags & (uint)Constants.TeleportFlags.ViaHGLogin) != 0
2647 || (aCircuit.teleportFlags & (uint)Constants.TeleportFlags.ViaLogin) != 0; 2785 || (aCircuit.teleportFlags & (uint)Constants.TeleportFlags.ViaLogin) != 0;
2648 2786
2649// CheckHeartbeat(); 2787 CheckHeartbeat();
2650 2788
2651 ScenePresence sp = GetScenePresence(client.AgentId); 2789 ScenePresence sp = GetScenePresence(client.AgentId);
2652 2790
@@ -2700,7 +2838,13 @@ namespace OpenSim.Region.Framework.Scenes
2700 2838
2701 EventManager.TriggerOnNewClient(client); 2839 EventManager.TriggerOnNewClient(client);
2702 if (vialogin) 2840 if (vialogin)
2841 {
2703 EventManager.TriggerOnClientLogin(client); 2842 EventManager.TriggerOnClientLogin(client);
2843 // Send initial parcel data
2844 Vector3 pos = sp.AbsolutePosition;
2845 ILandObject land = LandChannel.GetLandObject(pos.X, pos.Y);
2846 land.SendLandUpdateToClient(client);
2847 }
2704 2848
2705 return sp; 2849 return sp;
2706 } 2850 }
@@ -2789,19 +2933,12 @@ namespace OpenSim.Region.Framework.Scenes
2789 // and the scene presence and the client, if they exist 2933 // and the scene presence and the client, if they exist
2790 try 2934 try
2791 { 2935 {
2792 // We need to wait for the client to make UDP contact first. 2936 ScenePresence sp = GetScenePresence(agentID);
2793 // It's the UDP contact that creates the scene presence 2937 PresenceService.LogoutAgent(sp.ControllingClient.SessionId);
2794 ScenePresence sp = WaitGetScenePresence(agentID); 2938
2795 if (sp != null) 2939 if (sp != null)
2796 {
2797 PresenceService.LogoutAgent(sp.ControllingClient.SessionId);
2798
2799 sp.ControllingClient.Close(); 2940 sp.ControllingClient.Close();
2800 } 2941
2801 else
2802 {
2803 m_log.WarnFormat("[SCENE]: Could not find scene presence for {0}", agentID);
2804 }
2805 // BANG! SLASH! 2942 // BANG! SLASH!
2806 m_authenticateHandler.RemoveCircuit(agentID); 2943 m_authenticateHandler.RemoveCircuit(agentID);
2807 2944
@@ -2846,6 +2983,8 @@ namespace OpenSim.Region.Framework.Scenes
2846 client.OnUpdatePrimGroupPosition += m_sceneGraph.UpdatePrimGroupPosition; 2983 client.OnUpdatePrimGroupPosition += m_sceneGraph.UpdatePrimGroupPosition;
2847 client.OnUpdatePrimSinglePosition += m_sceneGraph.UpdatePrimSinglePosition; 2984 client.OnUpdatePrimSinglePosition += m_sceneGraph.UpdatePrimSinglePosition;
2848 2985
2986 client.onClientChangeObject += m_sceneGraph.ClientChangeObject;
2987
2849 client.OnUpdatePrimGroupRotation += m_sceneGraph.UpdatePrimGroupRotation; 2988 client.OnUpdatePrimGroupRotation += m_sceneGraph.UpdatePrimGroupRotation;
2850 client.OnUpdatePrimGroupMouseRotation += m_sceneGraph.UpdatePrimGroupRotation; 2989 client.OnUpdatePrimGroupMouseRotation += m_sceneGraph.UpdatePrimGroupRotation;
2851 client.OnUpdatePrimSingleRotation += m_sceneGraph.UpdatePrimSingleRotation; 2990 client.OnUpdatePrimSingleRotation += m_sceneGraph.UpdatePrimSingleRotation;
@@ -2902,6 +3041,7 @@ namespace OpenSim.Region.Framework.Scenes
2902 client.OnFetchInventory += m_asyncInventorySender.HandleFetchInventory; 3041 client.OnFetchInventory += m_asyncInventorySender.HandleFetchInventory;
2903 client.OnUpdateInventoryItem += UpdateInventoryItemAsset; 3042 client.OnUpdateInventoryItem += UpdateInventoryItemAsset;
2904 client.OnCopyInventoryItem += CopyInventoryItem; 3043 client.OnCopyInventoryItem += CopyInventoryItem;
3044 client.OnMoveItemsAndLeaveCopy += MoveInventoryItemsLeaveCopy;
2905 client.OnMoveInventoryItem += MoveInventoryItem; 3045 client.OnMoveInventoryItem += MoveInventoryItem;
2906 client.OnRemoveInventoryItem += RemoveInventoryItem; 3046 client.OnRemoveInventoryItem += RemoveInventoryItem;
2907 client.OnRemoveInventoryFolder += RemoveInventoryFolder; 3047 client.OnRemoveInventoryFolder += RemoveInventoryFolder;
@@ -2973,6 +3113,8 @@ namespace OpenSim.Region.Framework.Scenes
2973 client.OnUpdatePrimGroupPosition -= m_sceneGraph.UpdatePrimGroupPosition; 3113 client.OnUpdatePrimGroupPosition -= m_sceneGraph.UpdatePrimGroupPosition;
2974 client.OnUpdatePrimSinglePosition -= m_sceneGraph.UpdatePrimSinglePosition; 3114 client.OnUpdatePrimSinglePosition -= m_sceneGraph.UpdatePrimSinglePosition;
2975 3115
3116 client.onClientChangeObject -= m_sceneGraph.ClientChangeObject;
3117
2976 client.OnUpdatePrimGroupRotation -= m_sceneGraph.UpdatePrimGroupRotation; 3118 client.OnUpdatePrimGroupRotation -= m_sceneGraph.UpdatePrimGroupRotation;
2977 client.OnUpdatePrimGroupMouseRotation -= m_sceneGraph.UpdatePrimGroupRotation; 3119 client.OnUpdatePrimGroupMouseRotation -= m_sceneGraph.UpdatePrimGroupRotation;
2978 client.OnUpdatePrimSingleRotation -= m_sceneGraph.UpdatePrimSingleRotation; 3120 client.OnUpdatePrimSingleRotation -= m_sceneGraph.UpdatePrimSingleRotation;
@@ -3075,7 +3217,7 @@ namespace OpenSim.Region.Framework.Scenes
3075 /// </summary> 3217 /// </summary>
3076 /// <param name="agentId">The avatar's Unique ID</param> 3218 /// <param name="agentId">The avatar's Unique ID</param>
3077 /// <param name="client">The IClientAPI for the client</param> 3219 /// <param name="client">The IClientAPI for the client</param>
3078 public virtual void TeleportClientHome(UUID agentId, IClientAPI client) 3220 public virtual bool TeleportClientHome(UUID agentId, IClientAPI client)
3079 { 3221 {
3080 if (EntityTransferModule != null) 3222 if (EntityTransferModule != null)
3081 { 3223 {
@@ -3086,6 +3228,7 @@ namespace OpenSim.Region.Framework.Scenes
3086 m_log.DebugFormat("[SCENE]: Unable to teleport user home: no AgentTransferModule is active"); 3228 m_log.DebugFormat("[SCENE]: Unable to teleport user home: no AgentTransferModule is active");
3087 client.SendTeleportFailed("Unable to perform teleports on this simulator."); 3229 client.SendTeleportFailed("Unable to perform teleports on this simulator.");
3088 } 3230 }
3231 return false;
3089 } 3232 }
3090 3233
3091 /// <summary> 3234 /// <summary>
@@ -3195,6 +3338,16 @@ namespace OpenSim.Region.Framework.Scenes
3195 /// <param name="flags"></param> 3338 /// <param name="flags"></param>
3196 public virtual void SetHomeRezPoint(IClientAPI remoteClient, ulong regionHandle, Vector3 position, Vector3 lookAt, uint flags) 3339 public virtual void SetHomeRezPoint(IClientAPI remoteClient, ulong regionHandle, Vector3 position, Vector3 lookAt, uint flags)
3197 { 3340 {
3341 //Add half the avatar's height so that the user doesn't fall through prims
3342 ScenePresence presence;
3343 if (TryGetScenePresence(remoteClient.AgentId, out presence))
3344 {
3345 if (presence.Appearance != null)
3346 {
3347 position.Z = position.Z + (presence.Appearance.AvatarHeight / 2);
3348 }
3349 }
3350
3198 if (GridUserService != null && GridUserService.SetHome(remoteClient.AgentId.ToString(), RegionInfo.RegionID, position, lookAt)) 3351 if (GridUserService != null && GridUserService.SetHome(remoteClient.AgentId.ToString(), RegionInfo.RegionID, position, lookAt))
3199 // FUBAR ALERT: this needs to be "Home position set." so the viewer saves a home-screenshot. 3352 // FUBAR ALERT: this needs to be "Home position set." so the viewer saves a home-screenshot.
3200 m_dialogModule.SendAlertToUser(remoteClient, "Home position set."); 3353 m_dialogModule.SendAlertToUser(remoteClient, "Home position set.");
@@ -3323,6 +3476,7 @@ namespace OpenSim.Region.Framework.Scenes
3323 avatar.Close(); 3476 avatar.Close();
3324 3477
3325 m_authenticateHandler.RemoveCircuit(avatar.ControllingClient.CircuitCode); 3478 m_authenticateHandler.RemoveCircuit(avatar.ControllingClient.CircuitCode);
3479 m_log.Debug("[Scene] The avatar has left the building");
3326 } 3480 }
3327 catch (Exception e) 3481 catch (Exception e)
3328 { 3482 {
@@ -3472,13 +3626,16 @@ namespace OpenSim.Region.Framework.Scenes
3472 sp = null; 3626 sp = null;
3473 } 3627 }
3474 3628
3475 ILandObject land = LandChannel.GetLandObject(agent.startpos.X, agent.startpos.Y);
3476 3629
3477 //On login test land permisions 3630 //On login test land permisions
3478 if (vialogin) 3631 if (vialogin)
3479 { 3632 {
3480 if (land != null && !TestLandRestrictions(agent, land, out reason)) 3633 IUserAccountCacheModule cache = RequestModuleInterface<IUserAccountCacheModule>();
3634 if (cache != null)
3635 cache.Remove(agent.firstname + " " + agent.lastname);
3636 if (!TestLandRestrictions(agent.AgentID, out reason, ref agent.startpos.X, ref agent.startpos.Y))
3481 { 3637 {
3638 m_log.DebugFormat("[CONNECTION BEGIN]: Denying access to {0} due to no land access", agent.AgentID.ToString());
3482 return false; 3639 return false;
3483 } 3640 }
3484 } 3641 }
@@ -3501,9 +3658,15 @@ namespace OpenSim.Region.Framework.Scenes
3501 3658
3502 try 3659 try
3503 { 3660 {
3504 if (!AuthorizeUser(agent, out reason)) 3661 // Always check estate if this is a login. Always
3505 return false; 3662 // check if banned regions are to be blacked out.
3506 } catch (Exception e) 3663 if (vialogin || (!m_seeIntoBannedRegion))
3664 {
3665 if (!AuthorizeUser(agent, out reason))
3666 return false;
3667 }
3668 }
3669 catch (Exception e)
3507 { 3670 {
3508 m_log.ErrorFormat( 3671 m_log.ErrorFormat(
3509 "[SCENE]: Exception authorizing user {0}{1}", e.Message, e.StackTrace); 3672 "[SCENE]: Exception authorizing user {0}{1}", e.Message, e.StackTrace);
@@ -3634,6 +3797,8 @@ namespace OpenSim.Region.Framework.Scenes
3634 } 3797 }
3635 3798
3636 // Honor parcel landing type and position. 3799 // Honor parcel landing type and position.
3800 /*
3801 ILandObject land = LandChannel.GetLandObject(agent.startpos.X, agent.startpos.Y);
3637 if (land != null) 3802 if (land != null)
3638 { 3803 {
3639 if (land.LandData.LandingType == (byte)1 && land.LandData.UserLocation != Vector3.Zero) 3804 if (land.LandData.LandingType == (byte)1 && land.LandData.UserLocation != Vector3.Zero)
@@ -3641,25 +3806,34 @@ namespace OpenSim.Region.Framework.Scenes
3641 agent.startpos = land.LandData.UserLocation; 3806 agent.startpos = land.LandData.UserLocation;
3642 } 3807 }
3643 } 3808 }
3809 */// This is now handled properly in ScenePresence.MakeRootAgent
3644 } 3810 }
3645 3811
3646 return true; 3812 return true;
3647 } 3813 }
3648 3814
3649 private bool TestLandRestrictions(AgentCircuitData agent, ILandObject land, out string reason) 3815 public bool TestLandRestrictions(UUID agentID, out string reason, ref float posX, ref float posY)
3650 { 3816 {
3651 bool banned = land.IsBannedFromLand(agent.AgentID); 3817 reason = String.Empty;
3652 bool restricted = land.IsRestrictedFromLand(agent.AgentID); 3818 if (Permissions.IsGod(agentID))
3819 return true;
3820
3821 ILandObject land = LandChannel.GetLandObject(posX, posY);
3822 if (land == null)
3823 return false;
3824
3825 bool banned = land.IsBannedFromLand(agentID);
3826 bool restricted = land.IsRestrictedFromLand(agentID);
3653 3827
3654 if (banned || restricted) 3828 if (banned || restricted)
3655 { 3829 {
3656 ILandObject nearestParcel = GetNearestAllowedParcel(agent.AgentID, agent.startpos.X, agent.startpos.Y); 3830 ILandObject nearestParcel = GetNearestAllowedParcel(agentID, posX, posY);
3657 if (nearestParcel != null) 3831 if (nearestParcel != null)
3658 { 3832 {
3659 //Move agent to nearest allowed 3833 //Move agent to nearest allowed
3660 Vector3 newPosition = GetParcelCenterAtGround(nearestParcel); 3834 Vector3 newPosition = GetParcelCenterAtGround(nearestParcel);
3661 agent.startpos.X = newPosition.X; 3835 posX = newPosition.X;
3662 agent.startpos.Y = newPosition.Y; 3836 posY = newPosition.Y;
3663 } 3837 }
3664 else 3838 else
3665 { 3839 {
@@ -3721,7 +3895,7 @@ namespace OpenSim.Region.Framework.Scenes
3721 3895
3722 if (!m_strictAccessControl) return true; 3896 if (!m_strictAccessControl) return true;
3723 if (Permissions.IsGod(agent.AgentID)) return true; 3897 if (Permissions.IsGod(agent.AgentID)) return true;
3724 3898
3725 if (AuthorizationService != null) 3899 if (AuthorizationService != null)
3726 { 3900 {
3727 if (!AuthorizationService.IsAuthorizedForRegion( 3901 if (!AuthorizationService.IsAuthorizedForRegion(
@@ -3736,7 +3910,7 @@ namespace OpenSim.Region.Framework.Scenes
3736 3910
3737 if (m_regInfo.EstateSettings != null) 3911 if (m_regInfo.EstateSettings != null)
3738 { 3912 {
3739 if (m_regInfo.EstateSettings.IsBanned(agent.AgentID)) 3913 if (m_regInfo.EstateSettings.IsBanned(agent.AgentID,0))
3740 { 3914 {
3741 m_log.WarnFormat("[CONNECTION BEGIN]: Denied access to: {0} ({1} {2}) at {3} because the user is on the banlist", 3915 m_log.WarnFormat("[CONNECTION BEGIN]: Denied access to: {0} ({1} {2}) at {3} because the user is on the banlist",
3742 agent.AgentID, agent.firstname, agent.lastname, RegionInfo.RegionName); 3916 agent.AgentID, agent.firstname, agent.lastname, RegionInfo.RegionName);
@@ -3926,6 +4100,15 @@ namespace OpenSim.Region.Framework.Scenes
3926 4100
3927 // XPTO: if this agent is not allowed here as root, always return false 4101 // XPTO: if this agent is not allowed here as root, always return false
3928 4102
4103 // We have to wait until the viewer contacts this region after receiving EAC.
4104 // That calls AddNewClient, which finally creates the ScenePresence
4105 int flags = GetUserFlags(cAgentData.AgentID);
4106 if (m_regInfo.EstateSettings.IsBanned(cAgentData.AgentID, flags))
4107 {
4108 m_log.DebugFormat("[SCENE]: Denying root agent entry to {0}: banned", cAgentData.AgentID);
4109 return false;
4110 }
4111
3929 // TODO: This check should probably be in QueryAccess(). 4112 // TODO: This check should probably be in QueryAccess().
3930 ILandObject nearestParcel = GetNearestAllowedParcel(cAgentData.AgentID, Constants.RegionSize / 2, Constants.RegionSize / 2); 4113 ILandObject nearestParcel = GetNearestAllowedParcel(cAgentData.AgentID, Constants.RegionSize / 2, Constants.RegionSize / 2);
3931 if (nearestParcel == null) 4114 if (nearestParcel == null)
@@ -4019,12 +4202,22 @@ namespace OpenSim.Region.Framework.Scenes
4019 return false; 4202 return false;
4020 } 4203 }
4021 4204
4205 public bool IncomingCloseAgent(UUID agentID)
4206 {
4207 return IncomingCloseAgent(agentID, false);
4208 }
4209
4210 public bool IncomingCloseChildAgent(UUID agentID)
4211 {
4212 return IncomingCloseAgent(agentID, true);
4213 }
4214
4022 /// <summary> 4215 /// <summary>
4023 /// Tell a single agent to disconnect from the region. 4216 /// Tell a single agent to disconnect from the region.
4024 /// </summary> 4217 /// </summary>
4025 /// <param name="regionHandle"></param>
4026 /// <param name="agentID"></param> 4218 /// <param name="agentID"></param>
4027 public bool IncomingCloseAgent(UUID agentID) 4219 /// <param name="childOnly"></param>
4220 public bool IncomingCloseAgent(UUID agentID, bool childOnly)
4028 { 4221 {
4029 //m_log.DebugFormat("[SCENE]: Processing incoming close agent for {0}", agentID); 4222 //m_log.DebugFormat("[SCENE]: Processing incoming close agent for {0}", agentID);
4030 4223
@@ -4617,35 +4810,81 @@ namespace OpenSim.Region.Framework.Scenes
4617 SimulationDataService.RemoveObject(uuid, m_regInfo.RegionID); 4810 SimulationDataService.RemoveObject(uuid, m_regInfo.RegionID);
4618 } 4811 }
4619 4812
4620 public int GetHealth() 4813 public int GetHealth(out int flags, out string message)
4621 { 4814 {
4622 // Returns: 4815 // Returns:
4623 // 1 = sim is up and accepting http requests. The heartbeat has 4816 // 1 = sim is up and accepting http requests. The heartbeat has
4624 // stopped and the sim is probably locked up, but a remote 4817 // stopped and the sim is probably locked up, but a remote
4625 // admin restart may succeed 4818 // admin restart may succeed
4626 // 4819 //
4627 // 2 = Sim is up and the heartbeat is running. The sim is likely 4820 // 2 = Sim is up and the heartbeat is running. The sim is likely
4628 // usable for people within and logins _may_ work 4821 // usable for people within
4822 //
4823 // 3 = Sim is up and one packet thread is running. Sim is
4824 // unstable and will not accept new logins
4629 // 4825 //
4630 // 3 = We have seen a new user enter within the past 4 minutes 4826 // 4 = Sim is up and both packet threads are running. Sim is
4827 // likely usable
4828 //
4829 // 5 = We have seen a new user enter within the past 4 minutes
4631 // which can be seen as positive confirmation of sim health 4830 // which can be seen as positive confirmation of sim health
4632 // 4831 //
4832
4833 flags = 0;
4834 message = String.Empty;
4835
4836 CheckHeartbeat();
4837
4838 if (m_firstHeartbeat || (m_lastIncoming == 0 && m_lastOutgoing == 0))
4839 {
4840 // We're still starting
4841 // 0 means "in startup", it can't happen another way, since
4842 // to get here, we must be able to accept http connections
4843 return 0;
4844 }
4845
4633 int health=1; // Start at 1, means we're up 4846 int health=1; // Start at 1, means we're up
4634 4847
4635 if ((Util.EnvironmentTickCountSubtract(m_lastFrameTick)) < 1000) 4848 if ((Util.EnvironmentTickCountSubtract(m_lastFrameTick)) < 1000)
4636 health += 1; 4849 {
4850 health+=1;
4851 flags |= 1;
4852 }
4853
4854 if (Util.EnvironmentTickCountSubtract(m_lastIncoming) < 1000)
4855 {
4856 health+=1;
4857 flags |= 2;
4858 }
4859
4860 if (Util.EnvironmentTickCountSubtract(m_lastOutgoing) < 1000)
4861 {
4862 health+=1;
4863 flags |= 4;
4864 }
4637 else 4865 else
4866 {
4867int pid = System.Diagnostics.Process.GetCurrentProcess().Id;
4868System.Diagnostics.Process proc = new System.Diagnostics.Process();
4869proc.EnableRaisingEvents=false;
4870proc.StartInfo.FileName = "/bin/kill";
4871proc.StartInfo.Arguments = "-QUIT " + pid.ToString();
4872proc.Start();
4873proc.WaitForExit();
4874Thread.Sleep(1000);
4875Environment.Exit(1);
4876 }
4877
4878 if (flags != 7)
4638 return health; 4879 return health;
4639 4880
4640 // A login in the last 4 mins? We can't be doing too badly 4881 // A login in the last 4 mins? We can't be doing too badly
4641 // 4882 //
4642 if ((Util.EnvironmentTickCountSubtract(m_LastLogin)) < 240000) 4883 if (Util.EnvironmentTickCountSubtract(m_LastLogin) < 240000)
4643 health++; 4884 health++;
4644 else 4885 else
4645 return health; 4886 return health;
4646 4887
4647// CheckHeartbeat();
4648
4649 return health; 4888 return health;
4650 } 4889 }
4651 4890
@@ -4733,7 +4972,7 @@ namespace OpenSim.Region.Framework.Scenes
4733 bool wasUsingPhysics = ((jointProxyObject.Flags & PrimFlags.Physics) != 0); 4972 bool wasUsingPhysics = ((jointProxyObject.Flags & PrimFlags.Physics) != 0);
4734 if (wasUsingPhysics) 4973 if (wasUsingPhysics)
4735 { 4974 {
4736 jointProxyObject.UpdatePrimFlags(false, false, true, false); // FIXME: possible deadlock here; check to make sure all the scene alterations set into motion here won't deadlock 4975 jointProxyObject.UpdatePrimFlags(false, false, true, false,false); // FIXME: possible deadlock here; check to make sure all the scene alterations set into motion here won't deadlock
4737 } 4976 }
4738 } 4977 }
4739 4978
@@ -4832,14 +5071,14 @@ namespace OpenSim.Region.Framework.Scenes
4832 return (((vsn.X * xdiff) + (vsn.Y * ydiff)) / (-1 * vsn.Z)) + p0.Z; 5071 return (((vsn.X * xdiff) + (vsn.Y * ydiff)) / (-1 * vsn.Z)) + p0.Z;
4833 } 5072 }
4834 5073
4835// private void CheckHeartbeat() 5074 private void CheckHeartbeat()
4836// { 5075 {
4837// if (m_firstHeartbeat) 5076 if (m_firstHeartbeat)
4838// return; 5077 return;
4839// 5078
4840// if (Util.EnvironmentTickCountSubtract(m_lastFrameTick) > 2000) 5079 if ((Util.EnvironmentTickCountSubtract(m_lastFrameTick)) > 5000)
4841// StartTimer(); 5080 Start();
4842// } 5081 }
4843 5082
4844 public override ISceneObject DeserializeObject(string representation) 5083 public override ISceneObject DeserializeObject(string representation)
4845 { 5084 {
@@ -4851,9 +5090,14 @@ namespace OpenSim.Region.Framework.Scenes
4851 get { return m_allowScriptCrossings; } 5090 get { return m_allowScriptCrossings; }
4852 } 5091 }
4853 5092
4854 public Vector3? GetNearestAllowedPosition(ScenePresence avatar) 5093 public Vector3 GetNearestAllowedPosition(ScenePresence avatar)
5094 {
5095 return GetNearestAllowedPosition(avatar, null);
5096 }
5097
5098 public Vector3 GetNearestAllowedPosition(ScenePresence avatar, ILandObject excludeParcel)
4855 { 5099 {
4856 ILandObject nearestParcel = GetNearestAllowedParcel(avatar.UUID, avatar.AbsolutePosition.X, avatar.AbsolutePosition.Y); 5100 ILandObject nearestParcel = GetNearestAllowedParcel(avatar.UUID, avatar.AbsolutePosition.X, avatar.AbsolutePosition.Y, excludeParcel);
4857 5101
4858 if (nearestParcel != null) 5102 if (nearestParcel != null)
4859 { 5103 {
@@ -4862,10 +5106,7 @@ namespace OpenSim.Region.Framework.Scenes
4862 Vector3? nearestPoint = GetNearestPointInParcelAlongDirectionFromPoint(avatar.AbsolutePosition, dir, nearestParcel); 5106 Vector3? nearestPoint = GetNearestPointInParcelAlongDirectionFromPoint(avatar.AbsolutePosition, dir, nearestParcel);
4863 if (nearestPoint != null) 5107 if (nearestPoint != null)
4864 { 5108 {
4865// m_log.DebugFormat( 5109 Debug.WriteLine("Found a sane previous position based on velocity, sending them to: " + nearestPoint.ToString());
4866// "[SCENE]: Found a sane previous position based on velocity for {0}, sending them to {1} in {2}",
4867// avatar.Name, nearestPoint, nearestParcel.LandData.Name);
4868
4869 return nearestPoint.Value; 5110 return nearestPoint.Value;
4870 } 5111 }
4871 5112
@@ -4875,17 +5116,20 @@ namespace OpenSim.Region.Framework.Scenes
4875 nearestPoint = GetNearestPointInParcelAlongDirectionFromPoint(avatar.AbsolutePosition, dir, nearestParcel); 5116 nearestPoint = GetNearestPointInParcelAlongDirectionFromPoint(avatar.AbsolutePosition, dir, nearestParcel);
4876 if (nearestPoint != null) 5117 if (nearestPoint != null)
4877 { 5118 {
4878// m_log.DebugFormat( 5119 Debug.WriteLine("They had a zero velocity, sending them to: " + nearestPoint.ToString());
4879// "[SCENE]: {0} had a zero velocity, sending them to {1}", avatar.Name, nearestPoint);
4880
4881 return nearestPoint.Value; 5120 return nearestPoint.Value;
4882 } 5121 }
4883 5122
4884 //Ultimate backup if we have no idea where they are 5123 ILandObject dest = LandChannel.GetLandObject(avatar.lastKnownAllowedPosition.X, avatar.lastKnownAllowedPosition.Y);
4885// m_log.DebugFormat( 5124 if (dest != excludeParcel)
4886// "[SCENE]: No idea where {0} is, sending them to {1}", avatar.Name, avatar.lastKnownAllowedPosition); 5125 {
5126 // Ultimate backup if we have no idea where they are and
5127 // the last allowed position was in another parcel
5128 Debug.WriteLine("Have no idea where they are, sending them to: " + avatar.lastKnownAllowedPosition.ToString());
5129 return avatar.lastKnownAllowedPosition;
5130 }
4887 5131
4888 return avatar.lastKnownAllowedPosition; 5132 // else fall through to region edge
4889 } 5133 }
4890 5134
4891 //Go to the edge, this happens in teleporting to a region with no available parcels 5135 //Go to the edge, this happens in teleporting to a region with no available parcels
@@ -4919,13 +5163,18 @@ namespace OpenSim.Region.Framework.Scenes
4919 5163
4920 public ILandObject GetNearestAllowedParcel(UUID avatarId, float x, float y) 5164 public ILandObject GetNearestAllowedParcel(UUID avatarId, float x, float y)
4921 { 5165 {
5166 return GetNearestAllowedParcel(avatarId, x, y, null);
5167 }
5168
5169 public ILandObject GetNearestAllowedParcel(UUID avatarId, float x, float y, ILandObject excludeParcel)
5170 {
4922 List<ILandObject> all = AllParcels(); 5171 List<ILandObject> all = AllParcels();
4923 float minParcelDistance = float.MaxValue; 5172 float minParcelDistance = float.MaxValue;
4924 ILandObject nearestParcel = null; 5173 ILandObject nearestParcel = null;
4925 5174
4926 foreach (var parcel in all) 5175 foreach (var parcel in all)
4927 { 5176 {
4928 if (!parcel.IsEitherBannedOrRestricted(avatarId)) 5177 if (!parcel.IsEitherBannedOrRestricted(avatarId) && parcel != excludeParcel)
4929 { 5178 {
4930 float parcelDistance = GetParcelDistancefromPoint(parcel, x, y); 5179 float parcelDistance = GetParcelDistancefromPoint(parcel, x, y);
4931 if (parcelDistance < minParcelDistance) 5180 if (parcelDistance < minParcelDistance)
@@ -5167,7 +5416,55 @@ namespace OpenSim.Region.Framework.Scenes
5167 mapModule.GenerateMaptile(); 5416 mapModule.GenerateMaptile();
5168 } 5417 }
5169 5418
5170 private void RegenerateMaptileAndReregister(object sender, ElapsedEventArgs e) 5419// public void CleanDroppedAttachments()
5420// {
5421// List<SceneObjectGroup> objectsToDelete =
5422// new List<SceneObjectGroup>();
5423//
5424// lock (m_cleaningAttachments)
5425// {
5426// ForEachSOG(delegate (SceneObjectGroup grp)
5427// {
5428// if (grp.RootPart.Shape.PCode == 0 && grp.RootPart.Shape.State != 0 && (!objectsToDelete.Contains(grp)))
5429// {
5430// UUID agentID = grp.OwnerID;
5431// if (agentID == UUID.Zero)
5432// {
5433// objectsToDelete.Add(grp);
5434// return;
5435// }
5436//
5437// ScenePresence sp = GetScenePresence(agentID);
5438// if (sp == null)
5439// {
5440// objectsToDelete.Add(grp);
5441// return;
5442// }
5443// }
5444// });
5445// }
5446//
5447// foreach (SceneObjectGroup grp in objectsToDelete)
5448// {
5449// m_log.InfoFormat("[SCENE]: Deleting dropped attachment {0} of user {1}", grp.UUID, grp.OwnerID);
5450// DeleteSceneObject(grp, true);
5451// }
5452// }
5453
5454 public void ThreadAlive(int threadCode)
5455 {
5456 switch(threadCode)
5457 {
5458 case 1: // Incoming
5459 m_lastIncoming = Util.EnvironmentTickCount();
5460 break;
5461 case 2: // Incoming
5462 m_lastOutgoing = Util.EnvironmentTickCount();
5463 break;
5464 }
5465 }
5466
5467 public void RegenerateMaptileAndReregister(object sender, ElapsedEventArgs e)
5171 { 5468 {
5172 RegenerateMaptile(); 5469 RegenerateMaptile();
5173 5470
@@ -5195,6 +5492,8 @@ namespace OpenSim.Region.Framework.Scenes
5195 /// <returns></returns> 5492 /// <returns></returns>
5196 public bool QueryAccess(UUID agentID, Vector3 position, out string reason) 5493 public bool QueryAccess(UUID agentID, Vector3 position, out string reason)
5197 { 5494 {
5495 reason = "You are banned from the region";
5496
5198 if (EntityTransferModule.IsInTransit(agentID)) 5497 if (EntityTransferModule.IsInTransit(agentID))
5199 { 5498 {
5200 reason = "Agent is still in transit from this region"; 5499 reason = "Agent is still in transit from this region";
@@ -5206,6 +5505,12 @@ namespace OpenSim.Region.Framework.Scenes
5206 return false; 5505 return false;
5207 } 5506 }
5208 5507
5508 if (Permissions.IsGod(agentID))
5509 {
5510 reason = String.Empty;
5511 return true;
5512 }
5513
5209 // FIXME: Root agent count is currently known to be inaccurate. This forces a recount before we check. 5514 // FIXME: Root agent count is currently known to be inaccurate. This forces a recount before we check.
5210 // However, the long term fix is to make sure root agent count is always accurate. 5515 // However, the long term fix is to make sure root agent count is always accurate.
5211 m_sceneGraph.RecalculateStats(); 5516 m_sceneGraph.RecalculateStats();
@@ -5226,6 +5531,41 @@ namespace OpenSim.Region.Framework.Scenes
5226 } 5531 }
5227 } 5532 }
5228 5533
5534 ScenePresence presence = GetScenePresence(agentID);
5535 IClientAPI client = null;
5536 AgentCircuitData aCircuit = null;
5537
5538 if (presence != null)
5539 {
5540 client = presence.ControllingClient;
5541 if (client != null)
5542 aCircuit = client.RequestClientInfo();
5543 }
5544
5545 // We may be called before there is a presence or a client.
5546 // Fake AgentCircuitData to keep IAuthorizationModule smiling
5547 if (client == null)
5548 {
5549 aCircuit = new AgentCircuitData();
5550 aCircuit.AgentID = agentID;
5551 aCircuit.firstname = String.Empty;
5552 aCircuit.lastname = String.Empty;
5553 }
5554
5555 try
5556 {
5557 if (!AuthorizeUser(aCircuit, out reason))
5558 {
5559 // m_log.DebugFormat("[SCENE]: Denying access for {0}", agentID);
5560 return false;
5561 }
5562 }
5563 catch (Exception e)
5564 {
5565 m_log.DebugFormat("[SCENE]: Exception authorizing agent: {0} "+ e.StackTrace, e.Message);
5566 return false;
5567 }
5568
5229 if (position == Vector3.Zero) // Teleport 5569 if (position == Vector3.Zero) // Teleport
5230 { 5570 {
5231 if (!RegionInfo.EstateSettings.AllowDirectTeleport) 5571 if (!RegionInfo.EstateSettings.AllowDirectTeleport)
@@ -5254,13 +5594,46 @@ namespace OpenSim.Region.Framework.Scenes
5254 } 5594 }
5255 } 5595 }
5256 } 5596 }
5597
5598 float posX = 128.0f;
5599 float posY = 128.0f;
5600
5601 if (!TestLandRestrictions(agentID, out reason, ref posX, ref posY))
5602 {
5603 // m_log.DebugFormat("[SCENE]: Denying {0} because they are banned on all parcels", agentID);
5604 return false;
5605 }
5606 }
5607 else // Walking
5608 {
5609 ILandObject land = LandChannel.GetLandObject(position.X, position.Y);
5610 if (land == null)
5611 return false;
5612
5613 bool banned = land.IsBannedFromLand(agentID);
5614 bool restricted = land.IsRestrictedFromLand(agentID);
5615
5616 if (banned || restricted)
5617 return false;
5257 } 5618 }
5258 5619
5259 reason = String.Empty; 5620 reason = String.Empty;
5260 return true; 5621 return true;
5261 } 5622 }
5262 5623
5263 /// <summary> 5624 public void StartTimerWatchdog()
5625 {
5626 m_timerWatchdog.Interval = 1000;
5627 m_timerWatchdog.Elapsed += TimerWatchdog;
5628 m_timerWatchdog.AutoReset = true;
5629 m_timerWatchdog.Start();
5630 }
5631
5632 public void TimerWatchdog(object sender, ElapsedEventArgs e)
5633 {
5634 CheckHeartbeat();
5635 }
5636
5264 /// This method deals with movement when an avatar is automatically moving (but this is distinct from the 5637 /// This method deals with movement when an avatar is automatically moving (but this is distinct from the
5265 /// autopilot that moves an avatar to a sit target!. 5638 /// autopilot that moves an avatar to a sit target!.
5266 /// </summary> 5639 /// </summary>
diff --git a/OpenSim/Region/Framework/Scenes/SceneBase.cs b/OpenSim/Region/Framework/Scenes/SceneBase.cs
index 9c6b884..9b8a3ae 100644
--- a/OpenSim/Region/Framework/Scenes/SceneBase.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneBase.cs
@@ -136,6 +136,8 @@ namespace OpenSim.Region.Framework.Scenes
136 get { return m_permissions; } 136 get { return m_permissions; }
137 } 137 }
138 138
139 protected string m_datastore;
140
139 /* Used by the loadbalancer plugin on GForge */ 141 /* Used by the loadbalancer plugin on GForge */
140 protected RegionStatus m_regStatus; 142 protected RegionStatus m_regStatus;
141 public RegionStatus RegionStatus 143 public RegionStatus RegionStatus
diff --git a/OpenSim/Region/Framework/Scenes/SceneCommunicationService.cs b/OpenSim/Region/Framework/Scenes/SceneCommunicationService.cs
index eff635b..c1414ee 100644
--- a/OpenSim/Region/Framework/Scenes/SceneCommunicationService.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneCommunicationService.cs
@@ -182,10 +182,13 @@ namespace OpenSim.Region.Framework.Scenes
182 } 182 }
183 } 183 }
184 184
185 public delegate void SendCloseChildAgentDelegate(UUID agentID, ulong regionHandle);
186
185 /// <summary> 187 /// <summary>
186 /// Closes a child agent on a given region 188 /// This Closes child agents on neighboring regions
189 /// Calls an asynchronous method to do so.. so it doesn't lag the sim.
187 /// </summary> 190 /// </summary>
188 protected void SendCloseChildAgent(UUID agentID, ulong regionHandle) 191 protected void SendCloseChildAgentAsync(UUID agentID, ulong regionHandle)
189 { 192 {
190 // let's do our best, but there's not much we can do if the neighbour doesn't accept. 193 // let's do our best, but there's not much we can do if the neighbour doesn't accept.
191 194
@@ -194,30 +197,29 @@ namespace OpenSim.Region.Framework.Scenes
194 Utils.LongToUInts(regionHandle, out x, out y); 197 Utils.LongToUInts(regionHandle, out x, out y);
195 198
196 GridRegion destination = m_scene.GridService.GetRegionByPosition(m_regionInfo.ScopeID, (int)x, (int)y); 199 GridRegion destination = m_scene.GridService.GetRegionByPosition(m_regionInfo.ScopeID, (int)x, (int)y);
200 m_scene.SimulationService.CloseChildAgent(destination, agentID);
201 }
197 202
198 m_log.DebugFormat( 203 private void SendCloseChildAgentCompleted(IAsyncResult iar)
199 "[SCENE COMMUNICATION SERVICE]: Sending close agent ID {0} to {1}", agentID, destination.RegionName); 204 {
200 205 SendCloseChildAgentDelegate icon = (SendCloseChildAgentDelegate)iar.AsyncState;
201 m_scene.SimulationService.CloseAgent(destination, agentID); 206 icon.EndInvoke(iar);
202 } 207 }
203 208
204 /// <summary>
205 /// Closes a child agents in a collection of regions. Does so asynchronously
206 /// so that the caller doesn't wait.
207 /// </summary>
208 /// <param name="agentID"></param>
209 /// <param name="regionslst"></param>
210 public void SendCloseChildAgentConnections(UUID agentID, List<ulong> regionslst) 209 public void SendCloseChildAgentConnections(UUID agentID, List<ulong> regionslst)
211 { 210 {
212 foreach (ulong handle in regionslst) 211 foreach (ulong handle in regionslst)
213 { 212 {
214 SendCloseChildAgent(agentID, handle); 213 SendCloseChildAgentDelegate d = SendCloseChildAgentAsync;
214 d.BeginInvoke(agentID, handle,
215 SendCloseChildAgentCompleted,
216 d);
215 } 217 }
216 } 218 }
217 219
218 public List<GridRegion> RequestNamedRegions(string name, int maxNumber) 220 public List<GridRegion> RequestNamedRegions(string name, int maxNumber)
219 { 221 {
220 return m_scene.GridService.GetRegionsByName(UUID.Zero, name, maxNumber); 222 return m_scene.GridService.GetRegionsByName(UUID.Zero, name, maxNumber);
221 } 223 }
222 } 224 }
223} \ No newline at end of file 225}
diff --git a/OpenSim/Region/Framework/Scenes/SceneGraph.cs b/OpenSim/Region/Framework/Scenes/SceneGraph.cs
index a59758f..4c12496 100644
--- a/OpenSim/Region/Framework/Scenes/SceneGraph.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneGraph.cs
@@ -41,6 +41,12 @@ namespace OpenSim.Region.Framework.Scenes
41{ 41{
42 public delegate void PhysicsCrash(); 42 public delegate void PhysicsCrash();
43 43
44 public delegate void AttachToBackupDelegate(SceneObjectGroup sog);
45
46 public delegate void DetachFromBackupDelegate(SceneObjectGroup sog);
47
48 public delegate void ChangedBackupDelegate(SceneObjectGroup sog);
49
44 /// <summary> 50 /// <summary>
45 /// This class used to be called InnerScene and may not yet truly be a SceneGraph. The non scene graph components 51 /// This class used to be called InnerScene and may not yet truly be a SceneGraph. The non scene graph components
46 /// should be migrated out over time. 52 /// should be migrated out over time.
@@ -54,11 +60,15 @@ namespace OpenSim.Region.Framework.Scenes
54 protected internal event PhysicsCrash UnRecoverableError; 60 protected internal event PhysicsCrash UnRecoverableError;
55 private PhysicsCrash handlerPhysicsCrash = null; 61 private PhysicsCrash handlerPhysicsCrash = null;
56 62
63 public event AttachToBackupDelegate OnAttachToBackup;
64 public event DetachFromBackupDelegate OnDetachFromBackup;
65 public event ChangedBackupDelegate OnChangeBackup;
66
57 #endregion 67 #endregion
58 68
59 #region Fields 69 #region Fields
60 70
61 protected object m_presenceLock = new object(); 71 protected OpenMetaverse.ReaderWriterLockSlim m_scenePresencesLock = new OpenMetaverse.ReaderWriterLockSlim();
62 protected Dictionary<UUID, ScenePresence> m_scenePresenceMap = new Dictionary<UUID, ScenePresence>(); 72 protected Dictionary<UUID, ScenePresence> m_scenePresenceMap = new Dictionary<UUID, ScenePresence>();
63 protected List<ScenePresence> m_scenePresenceArray = new List<ScenePresence>(); 73 protected List<ScenePresence> m_scenePresenceArray = new List<ScenePresence>();
64 74
@@ -127,13 +137,18 @@ namespace OpenSim.Region.Framework.Scenes
127 137
128 protected internal void Close() 138 protected internal void Close()
129 { 139 {
130 lock (m_presenceLock) 140 m_scenePresencesLock.EnterWriteLock();
141 try
131 { 142 {
132 Dictionary<UUID, ScenePresence> newmap = new Dictionary<UUID, ScenePresence>(); 143 Dictionary<UUID, ScenePresence> newmap = new Dictionary<UUID, ScenePresence>();
133 List<ScenePresence> newlist = new List<ScenePresence>(); 144 List<ScenePresence> newlist = new List<ScenePresence>();
134 m_scenePresenceMap = newmap; 145 m_scenePresenceMap = newmap;
135 m_scenePresenceArray = newlist; 146 m_scenePresenceArray = newlist;
136 } 147 }
148 finally
149 {
150 m_scenePresencesLock.ExitWriteLock();
151 }
137 152
138 lock (SceneObjectGroupsByFullID) 153 lock (SceneObjectGroupsByFullID)
139 SceneObjectGroupsByFullID.Clear(); 154 SceneObjectGroupsByFullID.Clear();
@@ -254,6 +269,33 @@ namespace OpenSim.Region.Framework.Scenes
254 protected internal bool AddRestoredSceneObject( 269 protected internal bool AddRestoredSceneObject(
255 SceneObjectGroup sceneObject, bool attachToBackup, bool alreadyPersisted, bool sendClientUpdates) 270 SceneObjectGroup sceneObject, bool attachToBackup, bool alreadyPersisted, bool sendClientUpdates)
256 { 271 {
272 if (!m_parentScene.CombineRegions)
273 {
274 // KF: Check for out-of-region, move inside and make static.
275 Vector3 npos = new Vector3(sceneObject.RootPart.GroupPosition.X,
276 sceneObject.RootPart.GroupPosition.Y,
277 sceneObject.RootPart.GroupPosition.Z);
278 if (!(((sceneObject.RootPart.Shape.PCode == (byte)PCode.Prim) && (sceneObject.RootPart.Shape.State != 0))) && (npos.X < 0.0 || npos.Y < 0.0 || npos.Z < 0.0 ||
279 npos.X > Constants.RegionSize ||
280 npos.Y > Constants.RegionSize))
281 {
282 if (npos.X < 0.0) npos.X = 1.0f;
283 if (npos.Y < 0.0) npos.Y = 1.0f;
284 if (npos.Z < 0.0) npos.Z = 0.0f;
285 if (npos.X > Constants.RegionSize) npos.X = Constants.RegionSize - 1.0f;
286 if (npos.Y > Constants.RegionSize) npos.Y = Constants.RegionSize - 1.0f;
287
288 foreach (SceneObjectPart part in sceneObject.Parts)
289 {
290 part.GroupPosition = npos;
291 }
292 sceneObject.RootPart.Velocity = Vector3.Zero;
293 sceneObject.RootPart.AngularVelocity = Vector3.Zero;
294 sceneObject.RootPart.Acceleration = Vector3.Zero;
295 sceneObject.RootPart.Velocity = Vector3.Zero;
296 }
297 }
298
257 if (attachToBackup && (!alreadyPersisted)) 299 if (attachToBackup && (!alreadyPersisted))
258 { 300 {
259 sceneObject.ForceInventoryPersistence(); 301 sceneObject.ForceInventoryPersistence();
@@ -317,9 +359,8 @@ namespace OpenSim.Region.Framework.Scenes
317 if (pa != null && pa.IsPhysical && vel != Vector3.Zero) 359 if (pa != null && pa.IsPhysical && vel != Vector3.Zero)
318 { 360 {
319 sceneObject.RootPart.ApplyImpulse((vel * sceneObject.GetMass()), false); 361 sceneObject.RootPart.ApplyImpulse((vel * sceneObject.GetMass()), false);
320 sceneObject.Velocity = vel;
321 } 362 }
322 363
323 return true; 364 return true;
324 } 365 }
325 366
@@ -344,6 +385,11 @@ namespace OpenSim.Region.Framework.Scenes
344 /// </returns> 385 /// </returns>
345 protected bool AddSceneObject(SceneObjectGroup sceneObject, bool attachToBackup, bool sendClientUpdates) 386 protected bool AddSceneObject(SceneObjectGroup sceneObject, bool attachToBackup, bool sendClientUpdates)
346 { 387 {
388 if (sceneObject == null)
389 {
390 m_log.ErrorFormat("[SCENEGRAPH]: Tried to add null scene object");
391 return false;
392 }
347 if (sceneObject.UUID == UUID.Zero) 393 if (sceneObject.UUID == UUID.Zero)
348 { 394 {
349 m_log.ErrorFormat( 395 m_log.ErrorFormat(
@@ -478,6 +524,30 @@ namespace OpenSim.Region.Framework.Scenes
478 m_updateList[obj.UUID] = obj; 524 m_updateList[obj.UUID] = obj;
479 } 525 }
480 526
527 public void FireAttachToBackup(SceneObjectGroup obj)
528 {
529 if (OnAttachToBackup != null)
530 {
531 OnAttachToBackup(obj);
532 }
533 }
534
535 public void FireDetachFromBackup(SceneObjectGroup obj)
536 {
537 if (OnDetachFromBackup != null)
538 {
539 OnDetachFromBackup(obj);
540 }
541 }
542
543 public void FireChangeBackup(SceneObjectGroup obj)
544 {
545 if (OnChangeBackup != null)
546 {
547 OnChangeBackup(obj);
548 }
549 }
550
481 /// <summary> 551 /// <summary>
482 /// Process all pending updates 552 /// Process all pending updates
483 /// </summary> 553 /// </summary>
@@ -595,7 +665,8 @@ namespace OpenSim.Region.Framework.Scenes
595 665
596 Entities[presence.UUID] = presence; 666 Entities[presence.UUID] = presence;
597 667
598 lock (m_presenceLock) 668 m_scenePresencesLock.EnterWriteLock();
669 try
599 { 670 {
600 Dictionary<UUID, ScenePresence> newmap = new Dictionary<UUID, ScenePresence>(m_scenePresenceMap); 671 Dictionary<UUID, ScenePresence> newmap = new Dictionary<UUID, ScenePresence>(m_scenePresenceMap);
601 List<ScenePresence> newlist = new List<ScenePresence>(m_scenePresenceArray); 672 List<ScenePresence> newlist = new List<ScenePresence>(m_scenePresenceArray);
@@ -619,6 +690,10 @@ namespace OpenSim.Region.Framework.Scenes
619 m_scenePresenceMap = newmap; 690 m_scenePresenceMap = newmap;
620 m_scenePresenceArray = newlist; 691 m_scenePresenceArray = newlist;
621 } 692 }
693 finally
694 {
695 m_scenePresencesLock.ExitWriteLock();
696 }
622 } 697 }
623 698
624 /// <summary> 699 /// <summary>
@@ -633,7 +708,8 @@ namespace OpenSim.Region.Framework.Scenes
633 agentID); 708 agentID);
634 } 709 }
635 710
636 lock (m_presenceLock) 711 m_scenePresencesLock.EnterWriteLock();
712 try
637 { 713 {
638 Dictionary<UUID, ScenePresence> newmap = new Dictionary<UUID, ScenePresence>(m_scenePresenceMap); 714 Dictionary<UUID, ScenePresence> newmap = new Dictionary<UUID, ScenePresence>(m_scenePresenceMap);
639 List<ScenePresence> newlist = new List<ScenePresence>(m_scenePresenceArray); 715 List<ScenePresence> newlist = new List<ScenePresence>(m_scenePresenceArray);
@@ -655,6 +731,10 @@ namespace OpenSim.Region.Framework.Scenes
655 m_log.WarnFormat("[SCENE GRAPH]: Tried to remove non-existent scene presence with agent ID {0} from scene ScenePresences list", agentID); 731 m_log.WarnFormat("[SCENE GRAPH]: Tried to remove non-existent scene presence with agent ID {0} from scene ScenePresences list", agentID);
656 } 732 }
657 } 733 }
734 finally
735 {
736 m_scenePresencesLock.ExitWriteLock();
737 }
658 } 738 }
659 739
660 protected internal void SwapRootChildAgent(bool direction_RC_CR_T_F) 740 protected internal void SwapRootChildAgent(bool direction_RC_CR_T_F)
@@ -1176,6 +1256,52 @@ namespace OpenSim.Region.Framework.Scenes
1176 1256
1177 #region Client Event handlers 1257 #region Client Event handlers
1178 1258
1259 protected internal void ClientChangeObject(uint localID, object odata, IClientAPI remoteClient)
1260 {
1261 SceneObjectPart part = GetSceneObjectPart(localID);
1262 ObjectChangeData data = (ObjectChangeData)odata;
1263
1264 if (part != null)
1265 {
1266 SceneObjectGroup grp = part.ParentGroup;
1267 if (grp != null)
1268 {
1269 if (m_parentScene.Permissions.CanEditObject(grp.UUID, remoteClient.AgentId))
1270 {
1271 // These two are exceptions SL makes in the interpretation
1272 // of the change flags. Must check them here because otherwise
1273 // the group flag (see below) would be lost
1274 if (data.change == ObjectChangeType.groupS)
1275 data.change = ObjectChangeType.primS;
1276 if (data.change == ObjectChangeType.groupPS)
1277 data.change = ObjectChangeType.primPS;
1278 part.StoreUndoState(data.change); // lets test only saving what we changed
1279 grp.doChangeObject(part, (ObjectChangeData)data);
1280 }
1281 else
1282 {
1283 // Is this any kind of group operation?
1284 if ((data.change & ObjectChangeType.Group) != 0)
1285 {
1286 // Is a move and/or rotation requested?
1287 if ((data.change & (ObjectChangeType.Position | ObjectChangeType.Rotation)) != 0)
1288 {
1289 // Are we allowed to move it?
1290 if (m_parentScene.Permissions.CanMoveObject(grp.UUID, remoteClient.AgentId))
1291 {
1292 // Strip all but move and rotation from request
1293 data.change &= (ObjectChangeType.Group | ObjectChangeType.Position | ObjectChangeType.Rotation);
1294
1295 part.StoreUndoState(data.change);
1296 grp.doChangeObject(part, (ObjectChangeData)data);
1297 }
1298 }
1299 }
1300 }
1301 }
1302 }
1303 }
1304
1179 /// <summary> 1305 /// <summary>
1180 /// Update the scale of an individual prim. 1306 /// Update the scale of an individual prim.
1181 /// </summary> 1307 /// </summary>
@@ -1190,7 +1316,17 @@ namespace OpenSim.Region.Framework.Scenes
1190 { 1316 {
1191 if (m_parentScene.Permissions.CanEditObject(part.ParentGroup.UUID, remoteClient.AgentId)) 1317 if (m_parentScene.Permissions.CanEditObject(part.ParentGroup.UUID, remoteClient.AgentId))
1192 { 1318 {
1319 bool physbuild = false;
1320 if (part.ParentGroup.RootPart.PhysActor != null)
1321 {
1322 part.ParentGroup.RootPart.PhysActor.Building = true;
1323 physbuild = true;
1324 }
1325
1193 part.Resize(scale); 1326 part.Resize(scale);
1327
1328 if (physbuild)
1329 part.ParentGroup.RootPart.PhysActor.Building = false;
1194 } 1330 }
1195 } 1331 }
1196 } 1332 }
@@ -1202,7 +1338,17 @@ namespace OpenSim.Region.Framework.Scenes
1202 { 1338 {
1203 if (m_parentScene.Permissions.CanEditObject(group.UUID, remoteClient.AgentId)) 1339 if (m_parentScene.Permissions.CanEditObject(group.UUID, remoteClient.AgentId))
1204 { 1340 {
1341 bool physbuild = false;
1342 if (group.RootPart.PhysActor != null)
1343 {
1344 group.RootPart.PhysActor.Building = true;
1345 physbuild = true;
1346 }
1347
1205 group.GroupResize(scale); 1348 group.GroupResize(scale);
1349
1350 if (physbuild)
1351 group.RootPart.PhysActor.Building = false;
1206 } 1352 }
1207 } 1353 }
1208 } 1354 }
@@ -1330,8 +1476,13 @@ namespace OpenSim.Region.Framework.Scenes
1330 { 1476 {
1331 if (group.IsAttachment || (group.RootPart.Shape.PCode == 9 && group.RootPart.Shape.State != 0)) 1477 if (group.IsAttachment || (group.RootPart.Shape.PCode == 9 && group.RootPart.Shape.State != 0))
1332 { 1478 {
1333 if (m_parentScene.AttachmentsModule != null) 1479 // Set the new attachment point data in the object
1334 m_parentScene.AttachmentsModule.UpdateAttachmentPosition(group, pos); 1480 byte attachmentPoint = group.GetAttachmentPoint();
1481 group.UpdateGroupPosition(pos);
1482 group.IsAttachment = false;
1483 group.AbsolutePosition = group.RootPart.AttachedPos;
1484 group.AttachmentPoint = attachmentPoint;
1485 group.HasGroupChanged = true;
1335 } 1486 }
1336 else 1487 else
1337 { 1488 {
@@ -1379,7 +1530,7 @@ namespace OpenSim.Region.Framework.Scenes
1379 /// <param name="SetPhantom"></param> 1530 /// <param name="SetPhantom"></param>
1380 /// <param name="remoteClient"></param> 1531 /// <param name="remoteClient"></param>
1381 protected internal void UpdatePrimFlags( 1532 protected internal void UpdatePrimFlags(
1382 uint localID, bool UsePhysics, bool SetTemporary, bool SetPhantom, IClientAPI remoteClient) 1533 uint localID, bool UsePhysics, bool SetTemporary, bool SetPhantom, ExtraPhysicsData PhysData, IClientAPI remoteClient)
1383 { 1534 {
1384 SceneObjectGroup group = GetGroupByPrim(localID); 1535 SceneObjectGroup group = GetGroupByPrim(localID);
1385 if (group != null) 1536 if (group != null)
@@ -1387,7 +1538,28 @@ namespace OpenSim.Region.Framework.Scenes
1387 if (m_parentScene.Permissions.CanEditObject(group.UUID, remoteClient.AgentId)) 1538 if (m_parentScene.Permissions.CanEditObject(group.UUID, remoteClient.AgentId))
1388 { 1539 {
1389 // VolumeDetect can't be set via UI and will always be off when a change is made there 1540 // VolumeDetect can't be set via UI and will always be off when a change is made there
1390 group.UpdatePrimFlags(localID, UsePhysics, SetTemporary, SetPhantom, false); 1541 // now only change volume dtc if phantom off
1542
1543 if (PhysData.PhysShapeType == PhysShapeType.invalid) // check for extraPhysics data
1544 {
1545 bool vdtc;
1546 if (SetPhantom) // if phantom keep volumedtc
1547 vdtc = group.RootPart.VolumeDetectActive;
1548 else // else turn it off
1549 vdtc = false;
1550
1551 group.UpdatePrimFlags(localID, UsePhysics, SetTemporary, SetPhantom, vdtc);
1552 }
1553 else
1554 {
1555 SceneObjectPart part = GetSceneObjectPart(localID);
1556 if (part != null)
1557 {
1558 part.UpdateExtraPhysics(PhysData);
1559 if (part.UpdatePhysRequired)
1560 remoteClient.SendPartPhysicsProprieties(part);
1561 }
1562 }
1391 } 1563 }
1392 } 1564 }
1393 } 1565 }
@@ -1531,6 +1703,7 @@ namespace OpenSim.Region.Framework.Scenes
1531 { 1703 {
1532 part.Material = Convert.ToByte(material); 1704 part.Material = Convert.ToByte(material);
1533 group.HasGroupChanged = true; 1705 group.HasGroupChanged = true;
1706 remoteClient.SendPartPhysicsProprieties(part);
1534 } 1707 }
1535 } 1708 }
1536 } 1709 }
@@ -1595,6 +1768,12 @@ namespace OpenSim.Region.Framework.Scenes
1595 /// <param name="childPrims"></param> 1768 /// <param name="childPrims"></param>
1596 protected internal void LinkObjects(SceneObjectPart root, List<SceneObjectPart> children) 1769 protected internal void LinkObjects(SceneObjectPart root, List<SceneObjectPart> children)
1597 { 1770 {
1771 if (root.KeyframeMotion != null)
1772 {
1773 root.KeyframeMotion.Stop();
1774 root.KeyframeMotion = null;
1775 }
1776
1598 SceneObjectGroup parentGroup = root.ParentGroup; 1777 SceneObjectGroup parentGroup = root.ParentGroup;
1599 if (parentGroup == null) return; 1778 if (parentGroup == null) return;
1600 1779
@@ -1603,8 +1782,11 @@ namespace OpenSim.Region.Framework.Scenes
1603 return; 1782 return;
1604 1783
1605 Monitor.Enter(m_updateLock); 1784 Monitor.Enter(m_updateLock);
1785
1606 try 1786 try
1607 { 1787 {
1788 parentGroup.areUpdatesSuspended = true;
1789
1608 List<SceneObjectGroup> childGroups = new List<SceneObjectGroup>(); 1790 List<SceneObjectGroup> childGroups = new List<SceneObjectGroup>();
1609 1791
1610 // We do this in reverse to get the link order of the prims correct 1792 // We do this in reverse to get the link order of the prims correct
@@ -1619,9 +1801,13 @@ namespace OpenSim.Region.Framework.Scenes
1619 // Make sure no child prim is set for sale 1801 // Make sure no child prim is set for sale
1620 // So that, on delink, no prims are unwittingly 1802 // So that, on delink, no prims are unwittingly
1621 // left for sale and sold off 1803 // left for sale and sold off
1622 child.RootPart.ObjectSaleType = 0; 1804
1623 child.RootPart.SalePrice = 10; 1805 if (child != null)
1624 childGroups.Add(child); 1806 {
1807 child.RootPart.ObjectSaleType = 0;
1808 child.RootPart.SalePrice = 10;
1809 childGroups.Add(child);
1810 }
1625 } 1811 }
1626 1812
1627 foreach (SceneObjectGroup child in childGroups) 1813 foreach (SceneObjectGroup child in childGroups)
@@ -1648,6 +1834,16 @@ namespace OpenSim.Region.Framework.Scenes
1648 } 1834 }
1649 finally 1835 finally
1650 { 1836 {
1837 lock (SceneObjectGroupsByLocalPartID)
1838 {
1839 foreach (SceneObjectPart part in parentGroup.Parts)
1840 SceneObjectGroupsByLocalPartID[part.LocalId] = parentGroup;
1841 }
1842
1843 parentGroup.areUpdatesSuspended = false;
1844 parentGroup.HasGroupChanged = true;
1845 parentGroup.ProcessBackup(m_parentScene.SimulationDataService, true);
1846 parentGroup.ScheduleGroupForFullUpdate();
1651 Monitor.Exit(m_updateLock); 1847 Monitor.Exit(m_updateLock);
1652 } 1848 }
1653 } 1849 }
@@ -1670,6 +1866,11 @@ namespace OpenSim.Region.Framework.Scenes
1670 { 1866 {
1671 if (part != null) 1867 if (part != null)
1672 { 1868 {
1869 if (part.KeyframeMotion != null)
1870 {
1871 part.KeyframeMotion.Stop();
1872 part.KeyframeMotion = null;
1873 }
1673 if (part.ParentGroup.PrimCount != 1) // Skip single 1874 if (part.ParentGroup.PrimCount != 1) // Skip single
1674 { 1875 {
1675 if (part.LinkNum < 2) // Root 1876 if (part.LinkNum < 2) // Root
@@ -1684,21 +1885,24 @@ namespace OpenSim.Region.Framework.Scenes
1684 1885
1685 SceneObjectGroup group = part.ParentGroup; 1886 SceneObjectGroup group = part.ParentGroup;
1686 if (!affectedGroups.Contains(group)) 1887 if (!affectedGroups.Contains(group))
1888 {
1889 group.areUpdatesSuspended = true;
1687 affectedGroups.Add(group); 1890 affectedGroups.Add(group);
1891 }
1688 } 1892 }
1689 } 1893 }
1690 } 1894 }
1691 1895
1692 foreach (SceneObjectPart child in childParts) 1896 if (childParts.Count > 0)
1693 { 1897 {
1694 // Unlink all child parts from their groups 1898 foreach (SceneObjectPart child in childParts)
1695 // 1899 {
1696 child.ParentGroup.DelinkFromGroup(child, true); 1900 // Unlink all child parts from their groups
1697 1901 //
1698 // These are not in affected groups and will not be 1902 child.ParentGroup.DelinkFromGroup(child, true);
1699 // handled further. Do the honors here. 1903 child.ParentGroup.HasGroupChanged = true;
1700 child.ParentGroup.HasGroupChanged = true; 1904 child.ParentGroup.ScheduleGroupForFullUpdate();
1701 child.ParentGroup.ScheduleGroupForFullUpdate(); 1905 }
1702 } 1906 }
1703 1907
1704 foreach (SceneObjectPart root in rootParts) 1908 foreach (SceneObjectPart root in rootParts)
@@ -1708,56 +1912,68 @@ namespace OpenSim.Region.Framework.Scenes
1708 // However, editing linked parts and unlinking may be different 1912 // However, editing linked parts and unlinking may be different
1709 // 1913 //
1710 SceneObjectGroup group = root.ParentGroup; 1914 SceneObjectGroup group = root.ParentGroup;
1915 group.areUpdatesSuspended = true;
1711 1916
1712 List<SceneObjectPart> newSet = new List<SceneObjectPart>(group.Parts); 1917 List<SceneObjectPart> newSet = new List<SceneObjectPart>(group.Parts);
1713 int numChildren = newSet.Count; 1918 int numChildren = newSet.Count;
1714 1919
1920 if (numChildren == 1)
1921 break;
1922
1715 // If there are prims left in a link set, but the root is 1923 // If there are prims left in a link set, but the root is
1716 // slated for unlink, we need to do this 1924 // slated for unlink, we need to do this
1925 // Unlink the remaining set
1717 // 1926 //
1718 if (numChildren != 1) 1927 bool sendEventsToRemainder = true;
1719 { 1928 if (numChildren > 1)
1720 // Unlink the remaining set 1929 sendEventsToRemainder = false;
1721 //
1722 bool sendEventsToRemainder = true;
1723 if (numChildren > 1)
1724 sendEventsToRemainder = false;
1725 1930
1726 foreach (SceneObjectPart p in newSet) 1931 foreach (SceneObjectPart p in newSet)
1932 {
1933 if (p != group.RootPart)
1727 { 1934 {
1728 if (p != group.RootPart) 1935 group.DelinkFromGroup(p, sendEventsToRemainder);
1729 group.DelinkFromGroup(p, sendEventsToRemainder); 1936 if (numChildren > 2)
1937 {
1938 p.ParentGroup.areUpdatesSuspended = true;
1939 }
1940 else
1941 {
1942 p.ParentGroup.HasGroupChanged = true;
1943 p.ParentGroup.ScheduleGroupForFullUpdate();
1944 }
1730 } 1945 }
1946 }
1947
1948 // If there is more than one prim remaining, we
1949 // need to re-link
1950 //
1951 if (numChildren > 2)
1952 {
1953 // Remove old root
1954 //
1955 if (newSet.Contains(root))
1956 newSet.Remove(root);
1731 1957
1732 // If there is more than one prim remaining, we 1958 // Preserve link ordering
1733 // need to re-link
1734 // 1959 //
1735 if (numChildren > 2) 1960 newSet.Sort(delegate (SceneObjectPart a, SceneObjectPart b)
1736 { 1961 {
1737 // Remove old root 1962 return a.LinkNum.CompareTo(b.LinkNum);
1738 // 1963 });
1739 if (newSet.Contains(root))
1740 newSet.Remove(root);
1741
1742 // Preserve link ordering
1743 //
1744 newSet.Sort(delegate (SceneObjectPart a, SceneObjectPart b)
1745 {
1746 return a.LinkNum.CompareTo(b.LinkNum);
1747 });
1748 1964
1749 // Determine new root 1965 // Determine new root
1750 // 1966 //
1751 SceneObjectPart newRoot = newSet[0]; 1967 SceneObjectPart newRoot = newSet[0];
1752 newSet.RemoveAt(0); 1968 newSet.RemoveAt(0);
1753 1969
1754 foreach (SceneObjectPart newChild in newSet) 1970 foreach (SceneObjectPart newChild in newSet)
1755 newChild.ClearUpdateSchedule(); 1971 newChild.ClearUpdateSchedule();
1756 1972
1757 LinkObjects(newRoot, newSet); 1973 newRoot.ParentGroup.areUpdatesSuspended = true;
1758 if (!affectedGroups.Contains(newRoot.ParentGroup)) 1974 LinkObjects(newRoot, newSet);
1759 affectedGroups.Add(newRoot.ParentGroup); 1975 if (!affectedGroups.Contains(newRoot.ParentGroup))
1760 } 1976 affectedGroups.Add(newRoot.ParentGroup);
1761 } 1977 }
1762 } 1978 }
1763 1979
@@ -1765,8 +1981,14 @@ namespace OpenSim.Region.Framework.Scenes
1765 // 1981 //
1766 foreach (SceneObjectGroup g in affectedGroups) 1982 foreach (SceneObjectGroup g in affectedGroups)
1767 { 1983 {
1984 // Child prims that have been unlinked and deleted will
1985 // return unless the root is deleted. This will remove them
1986 // from the database. They will be rewritten immediately,
1987 // minus the rows for the unlinked child prims.
1988 m_parentScene.SimulationDataService.RemoveObject(g.UUID, m_parentScene.RegionInfo.RegionID);
1768 g.TriggerScriptChangedEvent(Changed.LINK); 1989 g.TriggerScriptChangedEvent(Changed.LINK);
1769 g.HasGroupChanged = true; // Persist 1990 g.HasGroupChanged = true; // Persist
1991 g.areUpdatesSuspended = false;
1770 g.ScheduleGroupForFullUpdate(); 1992 g.ScheduleGroupForFullUpdate();
1771 } 1993 }
1772 } 1994 }
@@ -1838,108 +2060,96 @@ namespace OpenSim.Region.Framework.Scenes
1838 /// <param name="GroupID"></param> 2060 /// <param name="GroupID"></param>
1839 /// <param name="rot"></param> 2061 /// <param name="rot"></param>
1840 /// <returns>null if duplication fails, otherwise the duplicated object</returns> 2062 /// <returns>null if duplication fails, otherwise the duplicated object</returns>
1841 public SceneObjectGroup DuplicateObject( 2063 /// <summary>
1842 uint originalPrimID, Vector3 offset, uint flags, UUID AgentID, UUID GroupID, Quaternion rot) 2064 public SceneObjectGroup DuplicateObject(uint originalPrimID, Vector3 offset, uint flags, UUID AgentID, UUID GroupID, Quaternion rot)
1843 { 2065 {
1844 Monitor.Enter(m_updateLock); 2066// m_log.DebugFormat(
2067// "[SCENE]: Duplication of object {0} at offset {1} requested by agent {2}",
2068// originalPrimID, offset, AgentID);
1845 2069
1846 try 2070 SceneObjectGroup original = GetGroupByPrim(originalPrimID);
2071 if (original != null)
1847 { 2072 {
1848 // m_log.DebugFormat( 2073 if (m_parentScene.Permissions.CanDuplicateObject(
1849 // "[SCENE]: Duplication of object {0} at offset {1} requested by agent {2}", 2074 original.PrimCount, original.UUID, AgentID, original.AbsolutePosition))
1850 // originalPrimID, offset, AgentID);
1851
1852 SceneObjectGroup original = GetGroupByPrim(originalPrimID);
1853 if (original == null)
1854 { 2075 {
1855 m_log.WarnFormat( 2076 SceneObjectGroup copy = original.Copy(true);
1856 "[SCENEGRAPH]: Attempt to duplicate nonexistant prim id {0} by {1}", originalPrimID, AgentID); 2077 copy.AbsolutePosition = copy.AbsolutePosition + offset;
1857 2078
1858 return null; 2079 if (original.OwnerID != AgentID)
1859 } 2080 {
2081 copy.SetOwnerId(AgentID);
2082 copy.SetRootPartOwner(copy.RootPart, AgentID, GroupID);
1860 2083
1861 if (!m_parentScene.Permissions.CanDuplicateObject( 2084 SceneObjectPart[] partList = copy.Parts;
1862 original.PrimCount, original.UUID, AgentID, original.AbsolutePosition))
1863 return null;
1864 2085
1865 SceneObjectGroup copy = original.Copy(true); 2086 if (m_parentScene.Permissions.PropagatePermissions())
1866 copy.AbsolutePosition = copy.AbsolutePosition + offset; 2087 {
2088 foreach (SceneObjectPart child in partList)
2089 {
2090 child.Inventory.ChangeInventoryOwner(AgentID);
2091 child.TriggerScriptChangedEvent(Changed.OWNER);
2092 child.ApplyNextOwnerPermissions();
2093 }
2094 }
2095 }
1867 2096
1868 if (original.OwnerID != AgentID) 2097 // FIXME: This section needs to be refactored so that it just calls AddSceneObject()
1869 { 2098 Entities.Add(copy);
1870 copy.SetOwnerId(AgentID);
1871 copy.SetRootPartOwner(copy.RootPart, AgentID, GroupID);
1872 2099
1873 SceneObjectPart[] partList = copy.Parts; 2100 lock (SceneObjectGroupsByFullID)
2101 SceneObjectGroupsByFullID[copy.UUID] = copy;
1874 2102
1875 if (m_parentScene.Permissions.PropagatePermissions()) 2103 SceneObjectPart[] children = copy.Parts;
2104
2105 lock (SceneObjectGroupsByFullPartID)
1876 { 2106 {
1877 foreach (SceneObjectPart child in partList) 2107 SceneObjectGroupsByFullPartID[copy.UUID] = copy;
1878 { 2108 foreach (SceneObjectPart part in children)
1879 child.Inventory.ChangeInventoryOwner(AgentID); 2109 SceneObjectGroupsByFullPartID[part.UUID] = copy;
1880 child.TriggerScriptChangedEvent(Changed.OWNER);
1881 child.ApplyNextOwnerPermissions();
1882 }
1883 } 2110 }
1884 2111
1885 copy.RootPart.ObjectSaleType = 0; 2112 lock (SceneObjectGroupsByLocalPartID)
1886 copy.RootPart.SalePrice = 10; 2113 {
1887 } 2114 SceneObjectGroupsByLocalPartID[copy.LocalId] = copy;
2115 foreach (SceneObjectPart part in children)
2116 SceneObjectGroupsByLocalPartID[part.LocalId] = copy;
2117 }
2118 // PROBABLE END OF FIXME
1888 2119
1889 // FIXME: This section needs to be refactored so that it just calls AddSceneObject() 2120 // Since we copy from a source group that is in selected
1890 Entities.Add(copy); 2121 // state, but the copy is shown deselected in the viewer,
1891 2122 // We need to clear the selection flag here, else that
1892 lock (SceneObjectGroupsByFullID) 2123 // prim never gets persisted at all. The client doesn't
1893 SceneObjectGroupsByFullID[copy.UUID] = copy; 2124 // think it's selected, so it will never send a deselect...
1894 2125 copy.IsSelected = false;
1895 SceneObjectPart[] children = copy.Parts; 2126
1896 2127 m_numPrim += copy.Parts.Length;
1897 lock (SceneObjectGroupsByFullPartID) 2128
1898 { 2129 if (rot != Quaternion.Identity)
1899 SceneObjectGroupsByFullPartID[copy.UUID] = copy; 2130 {
1900 foreach (SceneObjectPart part in children) 2131 copy.UpdateGroupRotationR(rot);
1901 SceneObjectGroupsByFullPartID[part.UUID] = copy; 2132 }
1902 }
1903
1904 lock (SceneObjectGroupsByLocalPartID)
1905 {
1906 SceneObjectGroupsByLocalPartID[copy.LocalId] = copy;
1907 foreach (SceneObjectPart part in children)
1908 SceneObjectGroupsByLocalPartID[part.LocalId] = copy;
1909 }
1910 // PROBABLE END OF FIXME
1911
1912 // Since we copy from a source group that is in selected
1913 // state, but the copy is shown deselected in the viewer,
1914 // We need to clear the selection flag here, else that
1915 // prim never gets persisted at all. The client doesn't
1916 // think it's selected, so it will never send a deselect...
1917 copy.IsSelected = false;
1918
1919 m_numPrim += copy.Parts.Length;
1920
1921 if (rot != Quaternion.Identity)
1922 {
1923 copy.UpdateGroupRotationR(rot);
1924 }
1925 2133
1926 copy.CreateScriptInstances(0, false, m_parentScene.DefaultScriptEngine, 1); 2134 copy.CreateScriptInstances(0, false, m_parentScene.DefaultScriptEngine, 1);
1927 copy.HasGroupChanged = true; 2135 copy.HasGroupChanged = true;
1928 copy.ScheduleGroupForFullUpdate(); 2136 copy.ScheduleGroupForFullUpdate();
1929 copy.ResumeScripts(); 2137 copy.ResumeScripts();
1930 2138
1931 // required for physics to update it's position 2139 // required for physics to update it's position
1932 copy.AbsolutePosition = copy.AbsolutePosition; 2140 copy.AbsolutePosition = copy.AbsolutePosition;
1933 2141
1934 return copy; 2142 return copy;
2143 }
1935 } 2144 }
1936 finally 2145 else
1937 { 2146 {
1938 Monitor.Exit(m_updateLock); 2147 m_log.WarnFormat("[SCENE]: Attempted to duplicate nonexistant prim id {0}", GroupID);
1939 } 2148 }
2149
2150 return null;
1940 } 2151 }
1941 2152
1942 /// <summary>
1943 /// Calculates the distance between two Vector3s 2153 /// Calculates the distance between two Vector3s
1944 /// </summary> 2154 /// </summary>
1945 /// <param name="v1"></param> 2155 /// <param name="v1"></param>
diff --git a/OpenSim/Region/Framework/Scenes/SceneManager.cs b/OpenSim/Region/Framework/Scenes/SceneManager.cs
index d73a959..e3fed49 100644
--- a/OpenSim/Region/Framework/Scenes/SceneManager.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneManager.cs
@@ -53,12 +53,12 @@ namespace OpenSim.Region.Framework.Scenes
53 get { return m_instance; } 53 get { return m_instance; }
54 } 54 }
55 55
56 private readonly List<Scene> m_localScenes = new List<Scene>(); 56 private readonly DoubleDictionary<UUID, string, Scene> m_localScenes = new DoubleDictionary<UUID, string, Scene>();
57 private Scene m_currentScene = null; 57 private Scene m_currentScene = null;
58 58
59 public List<Scene> Scenes 59 public List<Scene> Scenes
60 { 60 {
61 get { return new List<Scene>(m_localScenes); } 61 get { return new List<Scene>(m_localScenes.FindAll(delegate(Scene s) { return true; })); }
62 } 62 }
63 63
64 public Scene CurrentScene 64 public Scene CurrentScene
@@ -72,13 +72,10 @@ namespace OpenSim.Region.Framework.Scenes
72 { 72 {
73 if (m_currentScene == null) 73 if (m_currentScene == null)
74 { 74 {
75 lock (m_localScenes) 75 List<Scene> sceneList = Scenes;
76 { 76 if (sceneList.Count == 0)
77 if (m_localScenes.Count > 0) 77 return null;
78 return m_localScenes[0]; 78 return sceneList[0];
79 else
80 return null;
81 }
82 } 79 }
83 else 80 else
84 { 81 {
@@ -90,7 +87,7 @@ namespace OpenSim.Region.Framework.Scenes
90 public SceneManager() 87 public SceneManager()
91 { 88 {
92 m_instance = this; 89 m_instance = this;
93 m_localScenes = new List<Scene>(); 90 m_localScenes = new DoubleDictionary<UUID, string, Scene>();
94 } 91 }
95 92
96 public void Close() 93 public void Close()
@@ -98,20 +95,18 @@ namespace OpenSim.Region.Framework.Scenes
98 // collect known shared modules in sharedModules 95 // collect known shared modules in sharedModules
99 Dictionary<string, IRegionModule> sharedModules = new Dictionary<string, IRegionModule>(); 96 Dictionary<string, IRegionModule> sharedModules = new Dictionary<string, IRegionModule>();
100 97
101 lock (m_localScenes) 98 List<Scene> sceneList = Scenes;
99 for (int i = 0; i < sceneList.Count; i++)
102 { 100 {
103 for (int i = 0; i < m_localScenes.Count; i++) 101 // extract known shared modules from scene
102 foreach (string k in sceneList[i].Modules.Keys)
104 { 103 {
105 // extract known shared modules from scene 104 if (sceneList[i].Modules[k].IsSharedModule &&
106 foreach (string k in m_localScenes[i].Modules.Keys) 105 !sharedModules.ContainsKey(k))
107 { 106 sharedModules[k] = sceneList[i].Modules[k];
108 if (m_localScenes[i].Modules[k].IsSharedModule &&
109 !sharedModules.ContainsKey(k))
110 sharedModules[k] = m_localScenes[i].Modules[k];
111 }
112 // close scene/region
113 m_localScenes[i].Close();
114 } 107 }
108 // close scene/region
109 sceneList[i].Close();
115 } 110 }
116 111
117 // all regions/scenes are now closed, we can now safely 112 // all regions/scenes are now closed, we can now safely
@@ -120,31 +115,22 @@ namespace OpenSim.Region.Framework.Scenes
120 { 115 {
121 mod.Close(); 116 mod.Close();
122 } 117 }
118
119 m_localScenes.Clear();
123 } 120 }
124 121
125 public void Close(Scene cscene) 122 public void Close(Scene cscene)
126 { 123 {
127 lock (m_localScenes) 124 if (!m_localScenes.ContainsKey(cscene.RegionInfo.RegionID))
128 { 125 return;
129 if (m_localScenes.Contains(cscene)) 126 cscene.Close();
130 {
131 for (int i = 0; i < m_localScenes.Count; i++)
132 {
133 if (m_localScenes[i].Equals(cscene))
134 {
135 m_localScenes[i].Close();
136 }
137 }
138 }
139 }
140 } 127 }
141 128
142 public void Add(Scene scene) 129 public void Add(Scene scene)
143 { 130 {
144 scene.OnRestart += HandleRestart; 131 scene.OnRestart += HandleRestart;
145 132
146 lock (m_localScenes) 133 m_localScenes.Add(scene.RegionInfo.RegionID, scene.RegionInfo.RegionName, scene);
147 m_localScenes.Add(scene);
148 } 134 }
149 135
150 public void HandleRestart(RegionInfo rdata) 136 public void HandleRestart(RegionInfo rdata)
@@ -152,24 +138,7 @@ namespace OpenSim.Region.Framework.Scenes
152 m_log.Error("[SCENEMANAGER]: Got Restart message for region:" + rdata.RegionName + " Sending up to main"); 138 m_log.Error("[SCENEMANAGER]: Got Restart message for region:" + rdata.RegionName + " Sending up to main");
153 int RegionSceneElement = -1; 139 int RegionSceneElement = -1;
154 140
155 lock (m_localScenes) 141 m_localScenes.Remove(rdata.RegionID);
156 {
157 for (int i = 0; i < m_localScenes.Count; i++)
158 {
159 if (rdata.RegionName == m_localScenes[i].RegionInfo.RegionName)
160 {
161 RegionSceneElement = i;
162 }
163 }
164
165 // Now we make sure the region is no longer known about by the SceneManager
166 // Prevents duplicates.
167
168 if (RegionSceneElement >= 0)
169 {
170 m_localScenes.RemoveAt(RegionSceneElement);
171 }
172 }
173 142
174 // Send signal to main that we're restarting this sim. 143 // Send signal to main that we're restarting this sim.
175 OnRestartSim(rdata); 144 OnRestartSim(rdata);
@@ -179,32 +148,29 @@ namespace OpenSim.Region.Framework.Scenes
179 { 148 {
180 RegionInfo Result = null; 149 RegionInfo Result = null;
181 150
182 lock (m_localScenes) 151 Scene s = m_localScenes.FindValue(delegate(Scene x)
183 {
184 for (int i = 0; i < m_localScenes.Count; i++)
185 {
186 if (m_localScenes[i].RegionInfo.RegionHandle == regionHandle)
187 { 152 {
188 // Inform other regions to tell their avatar about me 153 if (x.RegionInfo.RegionHandle == regionHandle)
189 Result = m_localScenes[i].RegionInfo; 154 return true;
190 } 155 return false;
191 } 156 });
192 157
193 if (Result != null) 158 if (s != null)
159 {
160 List<Scene> sceneList = Scenes;
161
162 for (int i = 0; i < sceneList.Count; i++)
194 { 163 {
195 for (int i = 0; i < m_localScenes.Count; i++) 164 if (sceneList[i]!= s)
196 { 165 {
197 if (m_localScenes[i].RegionInfo.RegionHandle != regionHandle) 166 // Inform other regions to tell their avatar about me
198 { 167 //sceneList[i].OtherRegionUp(Result);
199 // Inform other regions to tell their avatar about me
200 //m_localScenes[i].OtherRegionUp(Result);
201 }
202 } 168 }
203 } 169 }
204 else 170 }
205 { 171 else
206 m_log.Error("[REGION]: Unable to notify Other regions of this Region coming up"); 172 {
207 } 173 m_log.Error("[REGION]: Unable to notify Other regions of this Region coming up");
208 } 174 }
209 } 175 }
210 176
@@ -308,8 +274,8 @@ namespace OpenSim.Region.Framework.Scenes
308 { 274 {
309 if (m_currentScene == null) 275 if (m_currentScene == null)
310 { 276 {
311 lock (m_localScenes) 277 List<Scene> sceneList = Scenes;
312 m_localScenes.ForEach(func); 278 sceneList.ForEach(func);
313 } 279 }
314 else 280 else
315 { 281 {
@@ -338,16 +304,12 @@ namespace OpenSim.Region.Framework.Scenes
338 } 304 }
339 else 305 else
340 { 306 {
341 lock (m_localScenes) 307 Scene s;
308
309 if (m_localScenes.TryGetValue(regionName, out s))
342 { 310 {
343 foreach (Scene scene in m_localScenes) 311 m_currentScene = s;
344 { 312 return true;
345 if (String.Compare(scene.RegionInfo.RegionName, regionName, true) == 0)
346 {
347 m_currentScene = scene;
348 return true;
349 }
350 }
351 } 313 }
352 314
353 return false; 315 return false;
@@ -356,18 +318,14 @@ namespace OpenSim.Region.Framework.Scenes
356 318
357 public bool TrySetCurrentScene(UUID regionID) 319 public bool TrySetCurrentScene(UUID regionID)
358 { 320 {
359 m_log.Debug("Searching for Region: '" + regionID + "'"); 321// m_log.Debug("Searching for Region: '" + regionID + "'");
360 322
361 lock (m_localScenes) 323 Scene s;
324
325 if (m_localScenes.TryGetValue(regionID, out s))
362 { 326 {
363 foreach (Scene scene in m_localScenes) 327 m_currentScene = s;
364 { 328 return true;
365 if (scene.RegionInfo.RegionID == regionID)
366 {
367 m_currentScene = scene;
368 return true;
369 }
370 }
371 } 329 }
372 330
373 return false; 331 return false;
@@ -375,52 +333,24 @@ namespace OpenSim.Region.Framework.Scenes
375 333
376 public bool TryGetScene(string regionName, out Scene scene) 334 public bool TryGetScene(string regionName, out Scene scene)
377 { 335 {
378 lock (m_localScenes) 336 return m_localScenes.TryGetValue(regionName, out scene);
379 {
380 foreach (Scene mscene in m_localScenes)
381 {
382 if (String.Compare(mscene.RegionInfo.RegionName, regionName, true) == 0)
383 {
384 scene = mscene;
385 return true;
386 }
387 }
388 }
389
390 scene = null;
391 return false;
392 } 337 }
393 338
394 public bool TryGetScene(UUID regionID, out Scene scene) 339 public bool TryGetScene(UUID regionID, out Scene scene)
395 { 340 {
396 lock (m_localScenes) 341 return m_localScenes.TryGetValue(regionID, out scene);
397 {
398 foreach (Scene mscene in m_localScenes)
399 {
400 if (mscene.RegionInfo.RegionID == regionID)
401 {
402 scene = mscene;
403 return true;
404 }
405 }
406 }
407
408 scene = null;
409 return false;
410 } 342 }
411 343
412 public bool TryGetScene(uint locX, uint locY, out Scene scene) 344 public bool TryGetScene(uint locX, uint locY, out Scene scene)
413 { 345 {
414 lock (m_localScenes) 346 List<Scene> sceneList = Scenes;
347 foreach (Scene mscene in sceneList)
415 { 348 {
416 foreach (Scene mscene in m_localScenes) 349 if (mscene.RegionInfo.RegionLocX == locX &&
350 mscene.RegionInfo.RegionLocY == locY)
417 { 351 {
418 if (mscene.RegionInfo.RegionLocX == locX && 352 scene = mscene;
419 mscene.RegionInfo.RegionLocY == locY) 353 return true;
420 {
421 scene = mscene;
422 return true;
423 }
424 } 354 }
425 } 355 }
426 356
@@ -430,16 +360,14 @@ namespace OpenSim.Region.Framework.Scenes
430 360
431 public bool TryGetScene(IPEndPoint ipEndPoint, out Scene scene) 361 public bool TryGetScene(IPEndPoint ipEndPoint, out Scene scene)
432 { 362 {
433 lock (m_localScenes) 363 List<Scene> sceneList = Scenes;
364 foreach (Scene mscene in sceneList)
434 { 365 {
435 foreach (Scene mscene in m_localScenes) 366 if ((mscene.RegionInfo.InternalEndPoint.Equals(ipEndPoint.Address)) &&
367 (mscene.RegionInfo.InternalEndPoint.Port == ipEndPoint.Port))
436 { 368 {
437 if ((mscene.RegionInfo.InternalEndPoint.Equals(ipEndPoint.Address)) && 369 scene = mscene;
438 (mscene.RegionInfo.InternalEndPoint.Port == ipEndPoint.Port)) 370 return true;
439 {
440 scene = mscene;
441 return true;
442 }
443 } 371 }
444 } 372 }
445 373
@@ -504,15 +432,10 @@ namespace OpenSim.Region.Framework.Scenes
504 432
505 public RegionInfo GetRegionInfo(UUID regionID) 433 public RegionInfo GetRegionInfo(UUID regionID)
506 { 434 {
507 lock (m_localScenes) 435 Scene s;
436 if (m_localScenes.TryGetValue(regionID, out s))
508 { 437 {
509 foreach (Scene scene in m_localScenes) 438 return s.RegionInfo;
510 {
511 if (scene.RegionInfo.RegionID == regionID)
512 {
513 return scene.RegionInfo;
514 }
515 }
516 } 439 }
517 440
518 return null; 441 return null;
@@ -530,14 +453,12 @@ namespace OpenSim.Region.Framework.Scenes
530 453
531 public bool TryGetScenePresence(UUID avatarId, out ScenePresence avatar) 454 public bool TryGetScenePresence(UUID avatarId, out ScenePresence avatar)
532 { 455 {
533 lock (m_localScenes) 456 List<Scene> sceneList = Scenes;
457 foreach (Scene scene in sceneList)
534 { 458 {
535 foreach (Scene scene in m_localScenes) 459 if (scene.TryGetScenePresence(avatarId, out avatar))
536 { 460 {
537 if (scene.TryGetScenePresence(avatarId, out avatar)) 461 return true;
538 {
539 return true;
540 }
541 } 462 }
542 } 463 }
543 464
@@ -547,15 +468,13 @@ namespace OpenSim.Region.Framework.Scenes
547 468
548 public bool TryGetRootScenePresence(UUID avatarId, out ScenePresence avatar) 469 public bool TryGetRootScenePresence(UUID avatarId, out ScenePresence avatar)
549 { 470 {
550 lock (m_localScenes) 471 List<Scene> sceneList = Scenes;
472 foreach (Scene scene in sceneList)
551 { 473 {
552 foreach (Scene scene in m_localScenes) 474 avatar = scene.GetScenePresence(avatarId);
553 {
554 avatar = scene.GetScenePresence(avatarId);
555 475
556 if (avatar != null && !avatar.IsChildAgent) 476 if (avatar != null && !avatar.IsChildAgent)
557 return true; 477 return true;
558 }
559 } 478 }
560 479
561 avatar = null; 480 avatar = null;
@@ -564,22 +483,19 @@ namespace OpenSim.Region.Framework.Scenes
564 483
565 public void CloseScene(Scene scene) 484 public void CloseScene(Scene scene)
566 { 485 {
567 lock (m_localScenes) 486 m_localScenes.Remove(scene.RegionInfo.RegionID);
568 m_localScenes.Remove(scene);
569 487
570 scene.Close(); 488 scene.Close();
571 } 489 }
572 490
573 public bool TryGetAvatarByName(string avatarName, out ScenePresence avatar) 491 public bool TryGetAvatarByName(string avatarName, out ScenePresence avatar)
574 { 492 {
575 lock (m_localScenes) 493 List<Scene> sceneList = Scenes;
494 foreach (Scene scene in sceneList)
576 { 495 {
577 foreach (Scene scene in m_localScenes) 496 if (scene.TryGetAvatarByName(avatarName, out avatar))
578 { 497 {
579 if (scene.TryGetAvatarByName(avatarName, out avatar)) 498 return true;
580 {
581 return true;
582 }
583 } 499 }
584 } 500 }
585 501
@@ -589,14 +505,12 @@ namespace OpenSim.Region.Framework.Scenes
589 505
590 public bool TryGetRootScenePresenceByName(string firstName, string lastName, out ScenePresence sp) 506 public bool TryGetRootScenePresenceByName(string firstName, string lastName, out ScenePresence sp)
591 { 507 {
592 lock (m_localScenes) 508 List<Scene> sceneList = Scenes;
509 foreach (Scene scene in sceneList)
593 { 510 {
594 foreach (Scene scene in m_localScenes) 511 sp = scene.GetScenePresence(firstName, lastName);
595 { 512 if (sp != null && !sp.IsChildAgent)
596 sp = scene.GetScenePresence(firstName, lastName); 513 return true;
597 if (sp != null && !sp.IsChildAgent)
598 return true;
599 }
600 } 514 }
601 515
602 sp = null; 516 sp = null;
@@ -605,8 +519,8 @@ namespace OpenSim.Region.Framework.Scenes
605 519
606 public void ForEachScene(Action<Scene> action) 520 public void ForEachScene(Action<Scene> action)
607 { 521 {
608 lock (m_localScenes) 522 List<Scene> sceneList = Scenes;
609 m_localScenes.ForEach(action); 523 sceneList.ForEach(action);
610 } 524 }
611 } 525 }
612} 526}
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.Inventory.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.Inventory.cs
index 2866b54..1038111 100644
--- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.Inventory.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.Inventory.cs
@@ -81,10 +81,6 @@ namespace OpenSim.Region.Framework.Scenes
81 /// <summary> 81 /// <summary>
82 /// Stop the scripts contained in all the prims in this group 82 /// Stop the scripts contained in all the prims in this group
83 /// </summary> 83 /// </summary>
84 /// <param name="sceneObjectBeingDeleted">
85 /// Should be true if these scripts are being removed because the scene
86 /// object is being deleted. This will prevent spurious updates to the client.
87 /// </param>
88 public void RemoveScriptInstances(bool sceneObjectBeingDeleted) 84 public void RemoveScriptInstances(bool sceneObjectBeingDeleted)
89 { 85 {
90 SceneObjectPart[] parts = m_parts.GetArray(); 86 SceneObjectPart[] parts = m_parts.GetArray();
@@ -239,6 +235,11 @@ namespace OpenSim.Region.Framework.Scenes
239 235
240 public uint GetEffectivePermissions() 236 public uint GetEffectivePermissions()
241 { 237 {
238 return GetEffectivePermissions(false);
239 }
240
241 public uint GetEffectivePermissions(bool useBase)
242 {
242 uint perms=(uint)(PermissionMask.Modify | 243 uint perms=(uint)(PermissionMask.Modify |
243 PermissionMask.Copy | 244 PermissionMask.Copy |
244 PermissionMask.Move | 245 PermissionMask.Move |
@@ -250,7 +251,10 @@ namespace OpenSim.Region.Framework.Scenes
250 for (int i = 0; i < parts.Length; i++) 251 for (int i = 0; i < parts.Length; i++)
251 { 252 {
252 SceneObjectPart part = parts[i]; 253 SceneObjectPart part = parts[i];
253 ownerMask &= part.OwnerMask; 254 if (useBase)
255 ownerMask &= part.BaseMask;
256 else
257 ownerMask &= part.OwnerMask;
254 perms &= part.Inventory.MaskEffectivePermissions(); 258 perms &= part.Inventory.MaskEffectivePermissions();
255 } 259 }
256 260
@@ -392,6 +396,9 @@ namespace OpenSim.Region.Framework.Scenes
392 396
393 public void ResumeScripts() 397 public void ResumeScripts()
394 { 398 {
399 if (m_scene.RegionInfo.RegionSettings.DisableScripts)
400 return;
401
395 SceneObjectPart[] parts = m_parts.GetArray(); 402 SceneObjectPart[] parts = m_parts.GetArray();
396 for (int i = 0; i < parts.Length; i++) 403 for (int i = 0; i < parts.Length; i++)
397 parts[i].Inventory.ResumeScripts(); 404 parts[i].Inventory.ResumeScripts();
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
index 1e900a0..11d703a 100644
--- a/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
@@ -24,11 +24,12 @@
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */ 26 */
27 27
28using System; 28using System;
29using System.Collections.Generic; 29using System.Collections.Generic;
30using System.Drawing; 30using System.Drawing;
31using System.IO; 31using System.IO;
32using System.Diagnostics;
32using System.Linq; 33using System.Linq;
33using System.Threading; 34using System.Threading;
34using System.Xml; 35using System.Xml;
@@ -42,6 +43,7 @@ using OpenSim.Region.Framework.Scenes.Serialization;
42 43
43namespace OpenSim.Region.Framework.Scenes 44namespace OpenSim.Region.Framework.Scenes
44{ 45{
46
45 [Flags] 47 [Flags]
46 public enum scriptEvents 48 public enum scriptEvents
47 { 49 {
@@ -105,8 +107,29 @@ namespace OpenSim.Region.Framework.Scenes
105 /// since the group's last persistent backup 107 /// since the group's last persistent backup
106 /// </summary> 108 /// </summary>
107 private bool m_hasGroupChanged = false; 109 private bool m_hasGroupChanged = false;
108 private long timeFirstChanged; 110 private long timeFirstChanged = 0;
109 private long timeLastChanged; 111 private long timeLastChanged = 0;
112 private long m_maxPersistTime = 0;
113 private long m_minPersistTime = 0;
114 private Random m_rand;
115 private bool m_suspendUpdates;
116 private List<ScenePresence> m_linkedAvatars = new List<ScenePresence>();
117
118 public bool areUpdatesSuspended
119 {
120 get
121 {
122 return m_suspendUpdates;
123 }
124 set
125 {
126 m_suspendUpdates = value;
127 if (!value)
128 {
129 QueueForUpdateCheck();
130 }
131 }
132 }
110 133
111 public bool HasGroupChanged 134 public bool HasGroupChanged
112 { 135 {
@@ -114,9 +137,39 @@ namespace OpenSim.Region.Framework.Scenes
114 { 137 {
115 if (value) 138 if (value)
116 { 139 {
140 if (m_isBackedUp)
141 {
142 m_scene.SceneGraph.FireChangeBackup(this);
143 }
117 timeLastChanged = DateTime.Now.Ticks; 144 timeLastChanged = DateTime.Now.Ticks;
118 if (!m_hasGroupChanged) 145 if (!m_hasGroupChanged)
119 timeFirstChanged = DateTime.Now.Ticks; 146 timeFirstChanged = DateTime.Now.Ticks;
147 if (m_rootPart != null && m_rootPart.UUID != null && m_scene != null)
148 {
149 if (m_rand == null)
150 {
151 byte[] val = new byte[16];
152 m_rootPart.UUID.ToBytes(val, 0);
153 m_rand = new Random(BitConverter.ToInt32(val, 0));
154 }
155
156 if (m_scene.GetRootAgentCount() == 0)
157 {
158 //If the region is empty, this change has been made by an automated process
159 //and thus we delay the persist time by a random amount between 1.5 and 2.5.
160
161 float factor = 1.5f + (float)(m_rand.NextDouble());
162 m_maxPersistTime = (long)((float)m_scene.m_persistAfter * factor);
163 m_minPersistTime = (long)((float)m_scene.m_dontPersistBefore * factor);
164 }
165 else
166 {
167 //If the region is not empty, we want to obey the minimum and maximum persist times
168 //but add a random factor so we stagger the object persistance a little
169 m_maxPersistTime = (long)((float)m_scene.m_persistAfter * (1.0d - (m_rand.NextDouble() / 5.0d))); //Multiply by 1.0-1.5
170 m_minPersistTime = (long)((float)m_scene.m_dontPersistBefore * (1.0d + (m_rand.NextDouble() / 2.0d))); //Multiply by 0.8-1.0
171 }
172 }
120 } 173 }
121 m_hasGroupChanged = value; 174 m_hasGroupChanged = value;
122 175
@@ -131,7 +184,7 @@ namespace OpenSim.Region.Framework.Scenes
131 /// Has the group changed due to an unlink operation? We record this in order to optimize deletion, since 184 /// Has the group changed due to an unlink operation? We record this in order to optimize deletion, since
132 /// an unlinked group currently has to be persisted to the database before we can perform an unlink operation. 185 /// an unlinked group currently has to be persisted to the database before we can perform an unlink operation.
133 /// </summary> 186 /// </summary>
134 public bool HasGroupChangedDueToDelink { get; private set; } 187 public bool HasGroupChangedDueToDelink { get; set; }
135 188
136 private bool isTimeToPersist() 189 private bool isTimeToPersist()
137 { 190 {
@@ -141,8 +194,19 @@ namespace OpenSim.Region.Framework.Scenes
141 return false; 194 return false;
142 if (m_scene.ShuttingDown) 195 if (m_scene.ShuttingDown)
143 return true; 196 return true;
197
198 if (m_minPersistTime == 0 || m_maxPersistTime == 0)
199 {
200 m_maxPersistTime = m_scene.m_persistAfter;
201 m_minPersistTime = m_scene.m_dontPersistBefore;
202 }
203
144 long currentTime = DateTime.Now.Ticks; 204 long currentTime = DateTime.Now.Ticks;
145 if (currentTime - timeLastChanged > m_scene.m_dontPersistBefore || currentTime - timeFirstChanged > m_scene.m_persistAfter) 205
206 if (timeLastChanged == 0) timeLastChanged = currentTime;
207 if (timeFirstChanged == 0) timeFirstChanged = currentTime;
208
209 if (currentTime - timeLastChanged > m_minPersistTime || currentTime - timeFirstChanged > m_maxPersistTime)
146 return true; 210 return true;
147 return false; 211 return false;
148 } 212 }
@@ -261,10 +325,10 @@ namespace OpenSim.Region.Framework.Scenes
261 325
262 private bool m_scriptListens_atTarget; 326 private bool m_scriptListens_atTarget;
263 private bool m_scriptListens_notAtTarget; 327 private bool m_scriptListens_notAtTarget;
264
265 private bool m_scriptListens_atRotTarget; 328 private bool m_scriptListens_atRotTarget;
266 private bool m_scriptListens_notAtRotTarget; 329 private bool m_scriptListens_notAtRotTarget;
267 330
331 public bool m_dupeInProgress = false;
268 internal Dictionary<UUID, string> m_savedScriptState; 332 internal Dictionary<UUID, string> m_savedScriptState;
269 333
270 #region Properties 334 #region Properties
@@ -301,6 +365,16 @@ namespace OpenSim.Region.Framework.Scenes
301 get { return m_parts.Count; } 365 get { return m_parts.Count; }
302 } 366 }
303 367
368// protected Quaternion m_rotation = Quaternion.Identity;
369//
370// public virtual Quaternion Rotation
371// {
372// get { return m_rotation; }
373// set {
374// m_rotation = value;
375// }
376// }
377
304 public Quaternion GroupRotation 378 public Quaternion GroupRotation
305 { 379 {
306 get { return m_rootPart.RotationOffset; } 380 get { return m_rootPart.RotationOffset; }
@@ -407,7 +481,15 @@ namespace OpenSim.Region.Framework.Scenes
407 { 481 {
408 return (IsAttachment || (m_rootPart.Shape.PCode == 9 && m_rootPart.Shape.State != 0)); 482 return (IsAttachment || (m_rootPart.Shape.PCode == 9 && m_rootPart.Shape.State != 0));
409 } 483 }
410 484
485
486
487 private struct avtocrossInfo
488 {
489 public ScenePresence av;
490 public uint ParentID;
491 }
492
411 /// <summary> 493 /// <summary>
412 /// The absolute position of this scene object in the scene 494 /// The absolute position of this scene object in the scene
413 /// </summary> 495 /// </summary>
@@ -420,14 +502,128 @@ namespace OpenSim.Region.Framework.Scenes
420 502
421 if (Scene != null) 503 if (Scene != null)
422 { 504 {
423 if ((Scene.TestBorderCross(val - Vector3.UnitX, Cardinals.E) || Scene.TestBorderCross(val + Vector3.UnitX, Cardinals.W) 505 // if ((Scene.TestBorderCross(val - Vector3.UnitX, Cardinals.E) || Scene.TestBorderCross(val + Vector3.UnitX, Cardinals.W)
424 || Scene.TestBorderCross(val - Vector3.UnitY, Cardinals.N) || Scene.TestBorderCross(val + Vector3.UnitY, Cardinals.S)) 506 // || Scene.TestBorderCross(val - Vector3.UnitY, Cardinals.N) || Scene.TestBorderCross(val + Vector3.UnitY, Cardinals.S))
507 // && !IsAttachmentCheckFull() && (!Scene.LoadingPrims))
508 if ((Scene.TestBorderCross(val, Cardinals.E) || Scene.TestBorderCross(val, Cardinals.W)
509 || Scene.TestBorderCross(val, Cardinals.N) || Scene.TestBorderCross(val, Cardinals.S))
425 && !IsAttachmentCheckFull() && (!Scene.LoadingPrims)) 510 && !IsAttachmentCheckFull() && (!Scene.LoadingPrims))
426 { 511 {
427 m_scene.CrossPrimGroupIntoNewRegion(val, this, true); 512 IEntityTransferModule entityTransfer = m_scene.RequestModuleInterface<IEntityTransferModule>();
513 uint x = 0;
514 uint y = 0;
515 string version = String.Empty;
516 Vector3 newpos = Vector3.Zero;
517 OpenSim.Services.Interfaces.GridRegion destination = null;
518
519 bool canCross = true;
520 foreach (ScenePresence av in m_linkedAvatars)
521 {
522 // We need to cross these agents. First, let's find
523 // out if any of them can't cross for some reason.
524 // We have to deny the crossing entirely if any
525 // of them are banned. Alternatively, we could
526 // unsit banned agents....
527
528
529 // We set the avatar position as being the object
530 // position to get the region to send to
531 if ((destination = entityTransfer.GetDestination(m_scene, av.UUID, val, out x, out y, out version, out newpos)) == null)
532 {
533 canCross = false;
534 break;
535 }
536
537 m_log.DebugFormat("[SCENE OBJECT]: Avatar {0} needs to be crossed to {1}", av.Name, destination.RegionName);
538 }
539
540 if (canCross)
541 {
542 // We unparent the SP quietly so that it won't
543 // be made to stand up
544
545 List<avtocrossInfo> avsToCross = new List<avtocrossInfo>();
546
547 foreach (ScenePresence av in m_linkedAvatars)
548 {
549 avtocrossInfo avinfo = new avtocrossInfo();
550 SceneObjectPart parentPart = m_scene.GetSceneObjectPart(av.ParentID);
551 if (parentPart != null)
552 av.ParentUUID = parentPart.UUID;
553
554 avinfo.av = av;
555 avinfo.ParentID = av.ParentID;
556 avsToCross.Add(avinfo);
557
558 av.ParentID = 0;
559 }
560
561// m_linkedAvatars.Clear();
562 m_scene.CrossPrimGroupIntoNewRegion(val, this, true);
563
564 // Normalize
565 if (val.X >= Constants.RegionSize)
566 val.X -= Constants.RegionSize;
567 if (val.Y >= Constants.RegionSize)
568 val.Y -= Constants.RegionSize;
569 if (val.X < 0)
570 val.X += Constants.RegionSize;
571 if (val.Y < 0)
572 val.Y += Constants.RegionSize;
573
574 // If it's deleted, crossing was successful
575 if (IsDeleted)
576 {
577 // foreach (ScenePresence av in m_linkedAvatars)
578 foreach (avtocrossInfo avinfo in avsToCross)
579 {
580 ScenePresence av = avinfo.av;
581 if (!av.IsInTransit) // just in case...
582 {
583 m_log.DebugFormat("[SCENE OBJECT]: Crossing avatar {0} to {1}", av.Name, val);
584
585 av.IsInTransit = true;
586
587 CrossAgentToNewRegionDelegate d = entityTransfer.CrossAgentToNewRegionAsync;
588 d.BeginInvoke(av, val, x, y, destination, av.Flying, version, CrossAgentToNewRegionCompleted, d);
589 }
590 else
591 m_log.DebugFormat("[SCENE OBJECT]: Crossing avatar alreasy in transit {0} to {1}", av.Name, val);
592 }
593 avsToCross.Clear();
594 return;
595 }
596 else // cross failed, put avas back ??
597 {
598 foreach (avtocrossInfo avinfo in avsToCross)
599 {
600 ScenePresence av = avinfo.av;
601 av.ParentUUID = UUID.Zero;
602 av.ParentID = avinfo.ParentID;
603// m_linkedAvatars.Add(av);
604 }
605 }
606 avsToCross.Clear();
607
608 }
609 else if (RootPart.PhysActor != null)
610 {
611 RootPart.PhysActor.CrossingFailure();
612 }
613
614 Vector3 oldp = AbsolutePosition;
615 val.X = Util.Clamp<float>(oldp.X, 0.5f, (float)Constants.RegionSize - 0.5f);
616 val.Y = Util.Clamp<float>(oldp.Y, 0.5f, (float)Constants.RegionSize - 0.5f);
617 val.Z = Util.Clamp<float>(oldp.Z, 0.5f, 4096.0f);
428 } 618 }
429 } 619 }
430 620
621/* don't see the need but worse don't see where is restored to false if things stay in
622 foreach (SceneObjectPart part in m_parts.GetArray())
623 {
624 part.IgnoreUndoUpdate = true;
625 }
626 */
431 if (RootPart.GetStatusSandbox()) 627 if (RootPart.GetStatusSandbox())
432 { 628 {
433 if (Util.GetDistanceTo(RootPart.StatusSandboxPos, value) > 10) 629 if (Util.GetDistanceTo(RootPart.StatusSandboxPos, value) > 10)
@@ -441,10 +637,30 @@ namespace OpenSim.Region.Framework.Scenes
441 return; 637 return;
442 } 638 }
443 } 639 }
444
445 SceneObjectPart[] parts = m_parts.GetArray(); 640 SceneObjectPart[] parts = m_parts.GetArray();
446 for (int i = 0; i < parts.Length; i++) 641 bool triggerScriptEvent = m_rootPart.GroupPosition != val;
447 parts[i].GroupPosition = val; 642 if (m_dupeInProgress)
643 triggerScriptEvent = false;
644 foreach (SceneObjectPart part in parts)
645 {
646 part.GroupPosition = val;
647 if (triggerScriptEvent)
648 part.TriggerScriptChangedEvent(Changed.POSITION);
649 }
650 if (!m_dupeInProgress)
651 {
652 foreach (ScenePresence av in m_linkedAvatars)
653 {
654 SceneObjectPart p = m_scene.GetSceneObjectPart(av.ParentID);
655 if (p != null && m_parts.TryGetValue(p.UUID, out p))
656 {
657 Vector3 offset = p.GetWorldPosition() - av.ParentPosition;
658 av.AbsolutePosition += offset;
659 av.ParentPosition = p.GetWorldPosition(); //ParentPosition gets cleared by AbsolutePosition
660 av.SendAvatarDataToAllAgents();
661 }
662 }
663 }
448 664
449 //if (m_rootPart.PhysActor != null) 665 //if (m_rootPart.PhysActor != null)
450 //{ 666 //{
@@ -459,6 +675,40 @@ namespace OpenSim.Region.Framework.Scenes
459 } 675 }
460 } 676 }
461 677
678 public override Vector3 Velocity
679 {
680 get { return RootPart.Velocity; }
681 set { RootPart.Velocity = value; }
682 }
683
684 private void CrossAgentToNewRegionCompleted(IAsyncResult iar)
685 {
686 CrossAgentToNewRegionDelegate icon = (CrossAgentToNewRegionDelegate)iar.AsyncState;
687 ScenePresence agent = icon.EndInvoke(iar);
688
689 //// If the cross was successful, this agent is a child agent
690 if (agent.IsChildAgent)
691 {
692 if (agent.ParentUUID != UUID.Zero)
693 {
694 agent.ParentPart = null;
695 agent.ParentPosition = Vector3.Zero;
696 // agent.ParentUUID = UUID.Zero;
697 }
698 }
699
700 agent.ParentUUID = UUID.Zero;
701
702// agent.Reset();
703// else // Not successful
704// agent.RestoreInCurrentScene();
705
706 // In any case
707 agent.IsInTransit = false;
708
709 m_log.DebugFormat("[SCENE OBJECT]: Crossing agent {0} {1} completed.", agent.Firstname, agent.Lastname);
710 }
711
462 public override uint LocalId 712 public override uint LocalId
463 { 713 {
464 get { return m_rootPart.LocalId; } 714 get { return m_rootPart.LocalId; }
@@ -529,6 +779,11 @@ namespace OpenSim.Region.Framework.Scenes
529 m_isSelected = value; 779 m_isSelected = value;
530 // Tell physics engine that group is selected 780 // Tell physics engine that group is selected
531 781
782 // this is not right
783 // but ode engines should only really need to know about root part
784 // so they can put entire object simulation on hold and not colliding
785 // keep as was for now
786
532 PhysicsActor pa = m_rootPart.PhysActor; 787 PhysicsActor pa = m_rootPart.PhysActor;
533 if (pa != null) 788 if (pa != null)
534 { 789 {
@@ -545,6 +800,42 @@ namespace OpenSim.Region.Framework.Scenes
545 childPa.Selected = value; 800 childPa.Selected = value;
546 } 801 }
547 } 802 }
803 if (RootPart.KeyframeMotion != null)
804 RootPart.KeyframeMotion.Selected = value;
805 }
806 }
807
808 public void PartSelectChanged(bool partSelect)
809 {
810 // any part selected makes group selected
811 if (m_isSelected == partSelect)
812 return;
813
814 if (partSelect)
815 {
816 IsSelected = partSelect;
817// if (!IsAttachment)
818// ScheduleGroupForFullUpdate();
819 }
820 else
821 {
822 // bad bad bad 2 heavy for large linksets
823 // since viewer does send lot of (un)selects
824 // this needs to be replaced by a specific list or count ?
825 // but that will require extra code in several places
826
827 SceneObjectPart[] parts = m_parts.GetArray();
828 for (int i = 0; i < parts.Length; i++)
829 {
830 SceneObjectPart part = parts[i];
831 if (part.IsSelected)
832 return;
833 }
834 IsSelected = partSelect;
835 if (!IsAttachment)
836 {
837 ScheduleGroupForFullUpdate();
838 }
548 } 839 }
549 } 840 }
550 841
@@ -622,6 +913,7 @@ namespace OpenSim.Region.Framework.Scenes
622 /// </summary> 913 /// </summary>
623 public SceneObjectGroup() 914 public SceneObjectGroup()
624 { 915 {
916
625 } 917 }
626 918
627 /// <summary> 919 /// <summary>
@@ -638,7 +930,7 @@ namespace OpenSim.Region.Framework.Scenes
638 /// Constructor. This object is added to the scene later via AttachToScene() 930 /// Constructor. This object is added to the scene later via AttachToScene()
639 /// </summary> 931 /// </summary>
640 public SceneObjectGroup(UUID ownerID, Vector3 pos, Quaternion rot, PrimitiveBaseShape shape) 932 public SceneObjectGroup(UUID ownerID, Vector3 pos, Quaternion rot, PrimitiveBaseShape shape)
641 { 933 {
642 SetRootPart(new SceneObjectPart(ownerID, shape, pos, rot, Vector3.Zero)); 934 SetRootPart(new SceneObjectPart(ownerID, shape, pos, rot, Vector3.Zero));
643 } 935 }
644 936
@@ -674,6 +966,9 @@ namespace OpenSim.Region.Framework.Scenes
674 /// </summary> 966 /// </summary>
675 public virtual void AttachToBackup() 967 public virtual void AttachToBackup()
676 { 968 {
969 if (IsAttachment) return;
970 m_scene.SceneGraph.FireAttachToBackup(this);
971
677 if (InSceneBackup) 972 if (InSceneBackup)
678 { 973 {
679 //m_log.DebugFormat( 974 //m_log.DebugFormat(
@@ -716,6 +1011,13 @@ namespace OpenSim.Region.Framework.Scenes
716 1011
717 ApplyPhysics(); 1012 ApplyPhysics();
718 1013
1014 if (RootPart.PhysActor != null)
1015 RootPart.Force = RootPart.Force;
1016 if (RootPart.PhysActor != null)
1017 RootPart.Torque = RootPart.Torque;
1018 if (RootPart.PhysActor != null)
1019 RootPart.Buoyancy = RootPart.Buoyancy;
1020
719 // Don't trigger the update here - otherwise some client issues occur when multiple updates are scheduled 1021 // Don't trigger the update here - otherwise some client issues occur when multiple updates are scheduled
720 // for the same object with very different properties. The caller must schedule the update. 1022 // for the same object with very different properties. The caller must schedule the update.
721 //ScheduleGroupForFullUpdate(); 1023 //ScheduleGroupForFullUpdate();
@@ -731,6 +1033,10 @@ namespace OpenSim.Region.Framework.Scenes
731 EntityIntersection result = new EntityIntersection(); 1033 EntityIntersection result = new EntityIntersection();
732 1034
733 SceneObjectPart[] parts = m_parts.GetArray(); 1035 SceneObjectPart[] parts = m_parts.GetArray();
1036
1037 // Find closest hit here
1038 float idist = float.MaxValue;
1039
734 for (int i = 0; i < parts.Length; i++) 1040 for (int i = 0; i < parts.Length; i++)
735 { 1041 {
736 SceneObjectPart part = parts[i]; 1042 SceneObjectPart part = parts[i];
@@ -745,11 +1051,6 @@ namespace OpenSim.Region.Framework.Scenes
745 1051
746 EntityIntersection inter = part.TestIntersectionOBB(hRay, parentrotation, frontFacesOnly, faceCenters); 1052 EntityIntersection inter = part.TestIntersectionOBB(hRay, parentrotation, frontFacesOnly, faceCenters);
747 1053
748 // This may need to be updated to the maximum draw distance possible..
749 // We might (and probably will) be checking for prim creation from other sims
750 // when the camera crosses the border.
751 float idist = Constants.RegionSize;
752
753 if (inter.HitTF) 1054 if (inter.HitTF)
754 { 1055 {
755 // We need to find the closest prim to return to the testcaller along the ray 1056 // We need to find the closest prim to return to the testcaller along the ray
@@ -760,10 +1061,11 @@ namespace OpenSim.Region.Framework.Scenes
760 result.obj = part; 1061 result.obj = part;
761 result.normal = inter.normal; 1062 result.normal = inter.normal;
762 result.distance = inter.distance; 1063 result.distance = inter.distance;
1064
1065 idist = inter.distance;
763 } 1066 }
764 } 1067 }
765 } 1068 }
766
767 return result; 1069 return result;
768 } 1070 }
769 1071
@@ -775,25 +1077,27 @@ namespace OpenSim.Region.Framework.Scenes
775 /// <returns></returns> 1077 /// <returns></returns>
776 public void GetAxisAlignedBoundingBoxRaw(out float minX, out float maxX, out float minY, out float maxY, out float minZ, out float maxZ) 1078 public void GetAxisAlignedBoundingBoxRaw(out float minX, out float maxX, out float minY, out float maxY, out float minZ, out float maxZ)
777 { 1079 {
778 maxX = -256f; 1080 maxX = float.MinValue;
779 maxY = -256f; 1081 maxY = float.MinValue;
780 maxZ = -256f; 1082 maxZ = float.MinValue;
781 minX = 256f; 1083 minX = float.MaxValue;
782 minY = 256f; 1084 minY = float.MaxValue;
783 minZ = 8192f; 1085 minZ = float.MaxValue;
784 1086
785 SceneObjectPart[] parts = m_parts.GetArray(); 1087 SceneObjectPart[] parts = m_parts.GetArray();
786 for (int i = 0; i < parts.Length; i++) 1088 foreach (SceneObjectPart part in parts)
787 { 1089 {
788 SceneObjectPart part = parts[i];
789
790 Vector3 worldPos = part.GetWorldPosition(); 1090 Vector3 worldPos = part.GetWorldPosition();
791 Vector3 offset = worldPos - AbsolutePosition; 1091 Vector3 offset = worldPos - AbsolutePosition;
792 Quaternion worldRot; 1092 Quaternion worldRot;
793 if (part.ParentID == 0) 1093 if (part.ParentID == 0)
1094 {
794 worldRot = part.RotationOffset; 1095 worldRot = part.RotationOffset;
1096 }
795 else 1097 else
1098 {
796 worldRot = part.GetWorldRotation(); 1099 worldRot = part.GetWorldRotation();
1100 }
797 1101
798 Vector3 frontTopLeft; 1102 Vector3 frontTopLeft;
799 Vector3 frontTopRight; 1103 Vector3 frontTopRight;
@@ -805,6 +1109,8 @@ namespace OpenSim.Region.Framework.Scenes
805 Vector3 backBottomLeft; 1109 Vector3 backBottomLeft;
806 Vector3 backBottomRight; 1110 Vector3 backBottomRight;
807 1111
1112 // Vector3[] corners = new Vector3[8];
1113
808 Vector3 orig = Vector3.Zero; 1114 Vector3 orig = Vector3.Zero;
809 1115
810 frontTopLeft.X = orig.X - (part.Scale.X / 2); 1116 frontTopLeft.X = orig.X - (part.Scale.X / 2);
@@ -839,6 +1145,38 @@ namespace OpenSim.Region.Framework.Scenes
839 backBottomRight.Y = orig.Y + (part.Scale.Y / 2); 1145 backBottomRight.Y = orig.Y + (part.Scale.Y / 2);
840 backBottomRight.Z = orig.Z - (part.Scale.Z / 2); 1146 backBottomRight.Z = orig.Z - (part.Scale.Z / 2);
841 1147
1148
1149
1150 //m_log.InfoFormat("pre corner 1 is {0} {1} {2}", frontTopLeft.X, frontTopLeft.Y, frontTopLeft.Z);
1151 //m_log.InfoFormat("pre corner 2 is {0} {1} {2}", frontTopRight.X, frontTopRight.Y, frontTopRight.Z);
1152 //m_log.InfoFormat("pre corner 3 is {0} {1} {2}", frontBottomRight.X, frontBottomRight.Y, frontBottomRight.Z);
1153 //m_log.InfoFormat("pre corner 4 is {0} {1} {2}", frontBottomLeft.X, frontBottomLeft.Y, frontBottomLeft.Z);
1154 //m_log.InfoFormat("pre corner 5 is {0} {1} {2}", backTopLeft.X, backTopLeft.Y, backTopLeft.Z);
1155 //m_log.InfoFormat("pre corner 6 is {0} {1} {2}", backTopRight.X, backTopRight.Y, backTopRight.Z);
1156 //m_log.InfoFormat("pre corner 7 is {0} {1} {2}", backBottomRight.X, backBottomRight.Y, backBottomRight.Z);
1157 //m_log.InfoFormat("pre corner 8 is {0} {1} {2}", backBottomLeft.X, backBottomLeft.Y, backBottomLeft.Z);
1158
1159 //for (int i = 0; i < 8; i++)
1160 //{
1161 // corners[i] = corners[i] * worldRot;
1162 // corners[i] += offset;
1163
1164 // if (corners[i].X > maxX)
1165 // maxX = corners[i].X;
1166 // if (corners[i].X < minX)
1167 // minX = corners[i].X;
1168
1169 // if (corners[i].Y > maxY)
1170 // maxY = corners[i].Y;
1171 // if (corners[i].Y < minY)
1172 // minY = corners[i].Y;
1173
1174 // if (corners[i].Z > maxZ)
1175 // maxZ = corners[i].Y;
1176 // if (corners[i].Z < minZ)
1177 // minZ = corners[i].Z;
1178 //}
1179
842 frontTopLeft = frontTopLeft * worldRot; 1180 frontTopLeft = frontTopLeft * worldRot;
843 frontTopRight = frontTopRight * worldRot; 1181 frontTopRight = frontTopRight * worldRot;
844 frontBottomLeft = frontBottomLeft * worldRot; 1182 frontBottomLeft = frontBottomLeft * worldRot;
@@ -860,6 +1198,15 @@ namespace OpenSim.Region.Framework.Scenes
860 backTopLeft += offset; 1198 backTopLeft += offset;
861 backTopRight += offset; 1199 backTopRight += offset;
862 1200
1201 //m_log.InfoFormat("corner 1 is {0} {1} {2}", frontTopLeft.X, frontTopLeft.Y, frontTopLeft.Z);
1202 //m_log.InfoFormat("corner 2 is {0} {1} {2}", frontTopRight.X, frontTopRight.Y, frontTopRight.Z);
1203 //m_log.InfoFormat("corner 3 is {0} {1} {2}", frontBottomRight.X, frontBottomRight.Y, frontBottomRight.Z);
1204 //m_log.InfoFormat("corner 4 is {0} {1} {2}", frontBottomLeft.X, frontBottomLeft.Y, frontBottomLeft.Z);
1205 //m_log.InfoFormat("corner 5 is {0} {1} {2}", backTopLeft.X, backTopLeft.Y, backTopLeft.Z);
1206 //m_log.InfoFormat("corner 6 is {0} {1} {2}", backTopRight.X, backTopRight.Y, backTopRight.Z);
1207 //m_log.InfoFormat("corner 7 is {0} {1} {2}", backBottomRight.X, backBottomRight.Y, backBottomRight.Z);
1208 //m_log.InfoFormat("corner 8 is {0} {1} {2}", backBottomLeft.X, backBottomLeft.Y, backBottomLeft.Z);
1209
863 if (frontTopRight.X > maxX) 1210 if (frontTopRight.X > maxX)
864 maxX = frontTopRight.X; 1211 maxX = frontTopRight.X;
865 if (frontTopLeft.X > maxX) 1212 if (frontTopLeft.X > maxX)
@@ -1003,17 +1350,118 @@ namespace OpenSim.Region.Framework.Scenes
1003 1350
1004 #endregion 1351 #endregion
1005 1352
1353 public void GetResourcesCosts(SceneObjectPart apart,
1354 out float linksetResCost, out float linksetPhysCost, out float partCost, out float partPhysCost)
1355 {
1356 // this information may need to be cached
1357
1358 float cost;
1359 float tmpcost;
1360
1361 bool ComplexCost = false;
1362
1363 SceneObjectPart p;
1364 SceneObjectPart[] parts;
1365
1366 lock (m_parts)
1367 {
1368 parts = m_parts.GetArray();
1369 }
1370
1371 int nparts = parts.Length;
1372
1373
1374 for (int i = 0; i < nparts; i++)
1375 {
1376 p = parts[i];
1377
1378 if (p.UsesComplexCost)
1379 {
1380 ComplexCost = true;
1381 break;
1382 }
1383 }
1384
1385 if (ComplexCost)
1386 {
1387 linksetResCost = 0;
1388 linksetPhysCost = 0;
1389 partCost = 0;
1390 partPhysCost = 0;
1391
1392 for (int i = 0; i < nparts; i++)
1393 {
1394 p = parts[i];
1395
1396 cost = p.StreamingCost;
1397 tmpcost = p.SimulationCost;
1398 if (tmpcost > cost)
1399 cost = tmpcost;
1400 tmpcost = p.PhysicsCost;
1401 if (tmpcost > cost)
1402 cost = tmpcost;
1403
1404 linksetPhysCost += tmpcost;
1405 linksetResCost += cost;
1406
1407 if (p == apart)
1408 {
1409 partCost = cost;
1410 partPhysCost = tmpcost;
1411 }
1412 }
1413 }
1414 else
1415 {
1416 partPhysCost = 1.0f;
1417 partCost = 1.0f;
1418 linksetResCost = (float)nparts;
1419 linksetPhysCost = linksetResCost;
1420 }
1421 }
1422
1423 public void GetSelectedCosts(out float PhysCost, out float StreamCost, out float SimulCost)
1424 {
1425 SceneObjectPart p;
1426 SceneObjectPart[] parts;
1427
1428 lock (m_parts)
1429 {
1430 parts = m_parts.GetArray();
1431 }
1432
1433 int nparts = parts.Length;
1434
1435 PhysCost = 0;
1436 StreamCost = 0;
1437 SimulCost = 0;
1438
1439 for (int i = 0; i < nparts; i++)
1440 {
1441 p = parts[i];
1442
1443 StreamCost += p.StreamingCost;
1444 SimulCost += p.SimulationCost;
1445 PhysCost += p.PhysicsCost;
1446 }
1447 }
1448
1006 public void SaveScriptedState(XmlTextWriter writer) 1449 public void SaveScriptedState(XmlTextWriter writer)
1007 { 1450 {
1451 SaveScriptedState(writer, false);
1452 }
1453
1454 public void SaveScriptedState(XmlTextWriter writer, bool oldIDs)
1455 {
1008 XmlDocument doc = new XmlDocument(); 1456 XmlDocument doc = new XmlDocument();
1009 Dictionary<UUID,string> states = new Dictionary<UUID,string>(); 1457 Dictionary<UUID,string> states = new Dictionary<UUID,string>();
1010 1458
1011 SceneObjectPart[] parts = m_parts.GetArray(); 1459 SceneObjectPart[] parts = m_parts.GetArray();
1012 for (int i = 0; i < parts.Length; i++) 1460 for (int i = 0; i < parts.Length; i++)
1013 { 1461 {
1014 Dictionary<UUID, string> pstates = parts[i].Inventory.GetScriptStates(); 1462 Dictionary<UUID, string> pstates = parts[i].Inventory.GetScriptStates(oldIDs);
1015 foreach (KeyValuePair<UUID, string> kvp in pstates) 1463 foreach (KeyValuePair<UUID, string> kvp in pstates)
1016 states.Add(kvp.Key, kvp.Value); 1464 states[kvp.Key] = kvp.Value;
1017 } 1465 }
1018 1466
1019 if (states.Count > 0) 1467 if (states.Count > 0)
@@ -1033,6 +1481,169 @@ namespace OpenSim.Region.Framework.Scenes
1033 } 1481 }
1034 1482
1035 /// <summary> 1483 /// <summary>
1484 /// Add the avatar to this linkset (avatar is sat).
1485 /// </summary>
1486 /// <param name="agentID"></param>
1487 public void AddAvatar(UUID agentID)
1488 {
1489 ScenePresence presence;
1490 if (m_scene.TryGetScenePresence(agentID, out presence))
1491 {
1492 if (!m_linkedAvatars.Contains(presence))
1493 {
1494 m_linkedAvatars.Add(presence);
1495 }
1496 }
1497 }
1498
1499 /// <summary>
1500 /// Delete the avatar from this linkset (avatar is unsat).
1501 /// </summary>
1502 /// <param name="agentID"></param>
1503 public void DeleteAvatar(UUID agentID)
1504 {
1505 ScenePresence presence;
1506 if (m_scene.TryGetScenePresence(agentID, out presence))
1507 {
1508 if (m_linkedAvatars.Contains(presence))
1509 {
1510 m_linkedAvatars.Remove(presence);
1511 }
1512 }
1513 }
1514
1515 /// <summary>
1516 /// Returns the list of linked presences (avatars sat on this group)
1517 /// </summary>
1518 /// <param name="agentID"></param>
1519 public List<ScenePresence> GetLinkedAvatars()
1520 {
1521 return m_linkedAvatars;
1522 }
1523
1524 /// <summary>
1525 /// Attach this scene object to the given avatar.
1526 /// </summary>
1527 /// <param name="agentID"></param>
1528 /// <param name="attachmentpoint"></param>
1529 /// <param name="AttachOffset"></param>
1530 private void AttachToAgent(
1531 ScenePresence avatar, SceneObjectGroup so, uint attachmentpoint, Vector3 attachOffset, bool silent)
1532 {
1533 if (avatar != null)
1534 {
1535 // don't attach attachments to child agents
1536 if (avatar.IsChildAgent) return;
1537
1538 // Remove from database and parcel prim count
1539 m_scene.DeleteFromStorage(so.UUID);
1540 m_scene.EventManager.TriggerParcelPrimCountTainted();
1541
1542 so.AttachedAvatar = avatar.UUID;
1543
1544 if (so.RootPart.PhysActor != null)
1545 {
1546 m_scene.PhysicsScene.RemovePrim(so.RootPart.PhysActor);
1547 so.RootPart.PhysActor = null;
1548 }
1549
1550 so.AbsolutePosition = attachOffset;
1551 so.RootPart.AttachedPos = attachOffset;
1552 so.IsAttachment = true;
1553 so.RootPart.SetParentLocalId(avatar.LocalId);
1554 so.AttachmentPoint = attachmentpoint;
1555
1556 avatar.AddAttachment(this);
1557
1558 if (!silent)
1559 {
1560 // Killing it here will cause the client to deselect it
1561 // It then reappears on the avatar, deselected
1562 // through the full update below
1563 //
1564 if (IsSelected)
1565 {
1566 m_scene.SendKillObject(new List<uint> { m_rootPart.LocalId });
1567 }
1568
1569 IsSelected = false; // fudge....
1570 ScheduleGroupForFullUpdate();
1571 }
1572 }
1573 else
1574 {
1575 m_log.WarnFormat(
1576 "[SOG]: Tried to add attachment {0} to avatar with UUID {1} in region {2} but the avatar is not present",
1577 UUID, avatar.ControllingClient.AgentId, Scene.RegionInfo.RegionName);
1578 }
1579 }
1580
1581 public byte GetAttachmentPoint()
1582 {
1583 return m_rootPart.Shape.State;
1584 }
1585
1586 public void DetachToGround()
1587 {
1588 ScenePresence avatar = m_scene.GetScenePresence(AttachedAvatar);
1589 if (avatar == null)
1590 return;
1591
1592 avatar.RemoveAttachment(this);
1593
1594 Vector3 detachedpos = new Vector3(127f,127f,127f);
1595 if (avatar == null)
1596 return;
1597
1598 detachedpos = avatar.AbsolutePosition;
1599 FromItemID = UUID.Zero;
1600
1601 AbsolutePosition = detachedpos;
1602 AttachedAvatar = UUID.Zero;
1603
1604 //SceneObjectPart[] parts = m_parts.GetArray();
1605 //for (int i = 0; i < parts.Length; i++)
1606 // parts[i].AttachedAvatar = UUID.Zero;
1607
1608 m_rootPart.SetParentLocalId(0);
1609 AttachmentPoint = (byte)0;
1610 // must check if buildind should be true or false here
1611 m_rootPart.ApplyPhysics(m_rootPart.GetEffectiveObjectFlags(), m_rootPart.VolumeDetectActive,false);
1612 HasGroupChanged = true;
1613 RootPart.Rezzed = DateTime.Now;
1614 RootPart.RemFlag(PrimFlags.TemporaryOnRez);
1615 AttachToBackup();
1616 m_scene.EventManager.TriggerParcelPrimCountTainted();
1617 m_rootPart.ScheduleFullUpdate();
1618 m_rootPart.ClearUndoState();
1619 }
1620
1621 public void DetachToInventoryPrep()
1622 {
1623 ScenePresence avatar = m_scene.GetScenePresence(AttachedAvatar);
1624 //Vector3 detachedpos = new Vector3(127f, 127f, 127f);
1625 if (avatar != null)
1626 {
1627 //detachedpos = avatar.AbsolutePosition;
1628 avatar.RemoveAttachment(this);
1629 }
1630
1631 AttachedAvatar = UUID.Zero;
1632
1633 /*SceneObjectPart[] parts = m_parts.GetArray();
1634 for (int i = 0; i < parts.Length; i++)
1635 parts[i].AttachedAvatar = UUID.Zero;*/
1636
1637 m_rootPart.SetParentLocalId(0);
1638 //m_rootPart.SetAttachmentPoint((byte)0);
1639 IsAttachment = false;
1640 AbsolutePosition = m_rootPart.AttachedPos;
1641 //m_rootPart.ApplyPhysics(m_rootPart.GetEffectiveObjectFlags(), m_scene.m_physicalPrim);
1642 //AttachToBackup();
1643 //m_rootPart.ScheduleFullUpdate();
1644 }
1645
1646 /// <summary>
1036 /// 1647 ///
1037 /// </summary> 1648 /// </summary>
1038 /// <param name="part"></param> 1649 /// <param name="part"></param>
@@ -1082,7 +1693,10 @@ namespace OpenSim.Region.Framework.Scenes
1082 public void AddPart(SceneObjectPart part) 1693 public void AddPart(SceneObjectPart part)
1083 { 1694 {
1084 part.SetParent(this); 1695 part.SetParent(this);
1085 part.LinkNum = m_parts.Add(part.UUID, part); 1696 m_parts.Add(part.UUID, part);
1697
1698 part.LinkNum = m_parts.Count;
1699
1086 if (part.LinkNum == 2) 1700 if (part.LinkNum == 2)
1087 RootPart.LinkNum = 1; 1701 RootPart.LinkNum = 1;
1088 } 1702 }
@@ -1170,7 +1784,7 @@ namespace OpenSim.Region.Framework.Scenes
1170// "[SCENE OBJECT GROUP]: Processing OnGrabPart for {0} on {1} {2}, offsetPos {3}", 1784// "[SCENE OBJECT GROUP]: Processing OnGrabPart for {0} on {1} {2}, offsetPos {3}",
1171// remoteClient.Name, part.Name, part.LocalId, offsetPos); 1785// remoteClient.Name, part.Name, part.LocalId, offsetPos);
1172 1786
1173 part.StoreUndoState(); 1787// part.StoreUndoState();
1174 part.OnGrab(offsetPos, remoteClient); 1788 part.OnGrab(offsetPos, remoteClient);
1175 } 1789 }
1176 1790
@@ -1190,6 +1804,11 @@ namespace OpenSim.Region.Framework.Scenes
1190 /// <param name="silent">If true then deletion is not broadcast to clients</param> 1804 /// <param name="silent">If true then deletion is not broadcast to clients</param>
1191 public void DeleteGroupFromScene(bool silent) 1805 public void DeleteGroupFromScene(bool silent)
1192 { 1806 {
1807 // We need to keep track of this state in case this group is still queued for backup.
1808 IsDeleted = true;
1809
1810 DetachFromBackup();
1811
1193 SceneObjectPart[] parts = m_parts.GetArray(); 1812 SceneObjectPart[] parts = m_parts.GetArray();
1194 for (int i = 0; i < parts.Length; i++) 1813 for (int i = 0; i < parts.Length; i++)
1195 { 1814 {
@@ -1213,6 +1832,7 @@ namespace OpenSim.Region.Framework.Scenes
1213 } 1832 }
1214 }); 1833 });
1215 } 1834 }
1835
1216 } 1836 }
1217 1837
1218 public void AddScriptLPS(int count) 1838 public void AddScriptLPS(int count)
@@ -1282,28 +1902,43 @@ namespace OpenSim.Region.Framework.Scenes
1282 /// </summary> 1902 /// </summary>
1283 public void ApplyPhysics() 1903 public void ApplyPhysics()
1284 { 1904 {
1285 // Apply physics to the root prim
1286 m_rootPart.ApplyPhysics(m_rootPart.GetEffectiveObjectFlags(), m_rootPart.VolumeDetectActive);
1287
1288 // Apply physics to child prims
1289 SceneObjectPart[] parts = m_parts.GetArray(); 1905 SceneObjectPart[] parts = m_parts.GetArray();
1290 if (parts.Length > 1) 1906 if (parts.Length > 1)
1291 { 1907 {
1908 ResetChildPrimPhysicsPositions();
1909
1910 // Apply physics to the root prim
1911 m_rootPart.ApplyPhysics(m_rootPart.GetEffectiveObjectFlags(), m_rootPart.VolumeDetectActive, true);
1912
1913
1292 for (int i = 0; i < parts.Length; i++) 1914 for (int i = 0; i < parts.Length; i++)
1293 { 1915 {
1294 SceneObjectPart part = parts[i]; 1916 SceneObjectPart part = parts[i];
1295 if (part.LocalId != m_rootPart.LocalId) 1917 if (part.LocalId != m_rootPart.LocalId)
1296 part.ApplyPhysics(m_rootPart.GetEffectiveObjectFlags(), part.VolumeDetectActive); 1918 part.ApplyPhysics(m_rootPart.GetEffectiveObjectFlags(), part.VolumeDetectActive, true);
1297 } 1919 }
1298
1299 // Hack to get the physics scene geometries in the right spot 1920 // Hack to get the physics scene geometries in the right spot
1300 ResetChildPrimPhysicsPositions(); 1921// ResetChildPrimPhysicsPositions();
1922 if (m_rootPart.PhysActor != null)
1923 {
1924 m_rootPart.PhysActor.Building = false;
1925 }
1926 }
1927 else
1928 {
1929 // Apply physics to the root prim
1930 m_rootPart.ApplyPhysics(m_rootPart.GetEffectiveObjectFlags(), m_rootPart.VolumeDetectActive, false);
1301 } 1931 }
1302 } 1932 }
1303 1933
1304 public void SetOwnerId(UUID userId) 1934 public void SetOwnerId(UUID userId)
1305 { 1935 {
1306 ForEachPart(delegate(SceneObjectPart part) { part.OwnerID = userId; }); 1936 ForEachPart(delegate(SceneObjectPart part)
1937 {
1938
1939 part.OwnerID = userId;
1940
1941 });
1307 } 1942 }
1308 1943
1309 public void ForEachPart(Action<SceneObjectPart> whatToDo) 1944 public void ForEachPart(Action<SceneObjectPart> whatToDo)
@@ -1335,11 +1970,17 @@ namespace OpenSim.Region.Framework.Scenes
1335 return; 1970 return;
1336 } 1971 }
1337 1972
1973 if ((RootPart.Flags & PrimFlags.TemporaryOnRez) != 0)
1974 return;
1975
1338 // Since this is the top of the section of call stack for backing up a particular scene object, don't let 1976 // Since this is the top of the section of call stack for backing up a particular scene object, don't let
1339 // any exception propogate upwards. 1977 // any exception propogate upwards.
1340 try 1978 try
1341 { 1979 {
1342 if (!m_scene.ShuttingDown) // if shutting down then there will be nothing to handle the return so leave till next restart 1980 if (!m_scene.ShuttingDown || // if shutting down then there will be nothing to handle the return so leave till next restart
1981 m_scene.LoginsDisabled || // We're starting up or doing maintenance, don't mess with things
1982 m_scene.LoadingPrims) // Land may not be valid yet
1983
1343 { 1984 {
1344 ILandObject parcel = m_scene.LandChannel.GetLandObject( 1985 ILandObject parcel = m_scene.LandChannel.GetLandObject(
1345 m_rootPart.GroupPosition.X, m_rootPart.GroupPosition.Y); 1986 m_rootPart.GroupPosition.X, m_rootPart.GroupPosition.Y);
@@ -1366,6 +2007,7 @@ namespace OpenSim.Region.Framework.Scenes
1366 } 2007 }
1367 } 2008 }
1368 } 2009 }
2010
1369 } 2011 }
1370 2012
1371 if (m_scene.UseBackup && HasGroupChanged) 2013 if (m_scene.UseBackup && HasGroupChanged)
@@ -1373,10 +2015,30 @@ namespace OpenSim.Region.Framework.Scenes
1373 // don't backup while it's selected or you're asking for changes mid stream. 2015 // don't backup while it's selected or you're asking for changes mid stream.
1374 if (isTimeToPersist() || forcedBackup) 2016 if (isTimeToPersist() || forcedBackup)
1375 { 2017 {
2018 if (m_rootPart.PhysActor != null &&
2019 (!m_rootPart.PhysActor.IsPhysical))
2020 {
2021 // Possible ghost prim
2022 if (m_rootPart.PhysActor.Position != m_rootPart.GroupPosition)
2023 {
2024 foreach (SceneObjectPart part in m_parts.GetArray())
2025 {
2026 // Re-set physics actor positions and
2027 // orientations
2028 part.GroupPosition = m_rootPart.GroupPosition;
2029 }
2030 }
2031 }
1376// m_log.DebugFormat( 2032// m_log.DebugFormat(
1377// "[SCENE]: Storing {0}, {1} in {2}", 2033// "[SCENE]: Storing {0}, {1} in {2}",
1378// Name, UUID, m_scene.RegionInfo.RegionName); 2034// Name, UUID, m_scene.RegionInfo.RegionName);
1379 2035
2036 if (RootPart.Shape.PCode == 9 && RootPart.Shape.State != 0)
2037 {
2038 RootPart.Shape.State = 0;
2039 ScheduleGroupForFullUpdate();
2040 }
2041
1380 SceneObjectGroup backup_group = Copy(false); 2042 SceneObjectGroup backup_group = Copy(false);
1381 backup_group.RootPart.Velocity = RootPart.Velocity; 2043 backup_group.RootPart.Velocity = RootPart.Velocity;
1382 backup_group.RootPart.Acceleration = RootPart.Acceleration; 2044 backup_group.RootPart.Acceleration = RootPart.Acceleration;
@@ -1390,6 +2052,11 @@ namespace OpenSim.Region.Framework.Scenes
1390 2052
1391 backup_group.ForEachPart(delegate(SceneObjectPart part) 2053 backup_group.ForEachPart(delegate(SceneObjectPart part)
1392 { 2054 {
2055 if (part.KeyframeMotion != null)
2056 {
2057 part.KeyframeMotion = KeyframeMotion.FromData(backup_group, part.KeyframeMotion.Serialize());
2058 part.KeyframeMotion.UpdateSceneObject(this);
2059 }
1393 part.Inventory.ProcessInventoryBackup(datastore); 2060 part.Inventory.ProcessInventoryBackup(datastore);
1394 }); 2061 });
1395 2062
@@ -1442,10 +2109,14 @@ namespace OpenSim.Region.Framework.Scenes
1442 /// <returns></returns> 2109 /// <returns></returns>
1443 public SceneObjectGroup Copy(bool userExposed) 2110 public SceneObjectGroup Copy(bool userExposed)
1444 { 2111 {
2112 m_dupeInProgress = true;
1445 SceneObjectGroup dupe = (SceneObjectGroup)MemberwiseClone(); 2113 SceneObjectGroup dupe = (SceneObjectGroup)MemberwiseClone();
1446 dupe.m_isBackedUp = false; 2114 dupe.m_isBackedUp = false;
1447 dupe.m_parts = new MapAndArray<OpenMetaverse.UUID, SceneObjectPart>(); 2115 dupe.m_parts = new MapAndArray<OpenMetaverse.UUID, SceneObjectPart>();
1448 2116
2117 // new group as no sitting avatars
2118 dupe.m_linkedAvatars = new List<ScenePresence>();
2119
1449 // Warning, The following code related to previousAttachmentStatus is needed so that clones of 2120 // Warning, The following code related to previousAttachmentStatus is needed so that clones of
1450 // attachments do not bordercross while they're being duplicated. This is hacktastic! 2121 // attachments do not bordercross while they're being duplicated. This is hacktastic!
1451 // Normally, setting AbsolutePosition will bordercross a prim if it's outside the region! 2122 // Normally, setting AbsolutePosition will bordercross a prim if it's outside the region!
@@ -1456,7 +2127,7 @@ namespace OpenSim.Region.Framework.Scenes
1456 // This is only necessary when userExposed is false! 2127 // This is only necessary when userExposed is false!
1457 2128
1458 bool previousAttachmentStatus = dupe.IsAttachment; 2129 bool previousAttachmentStatus = dupe.IsAttachment;
1459 2130
1460 if (!userExposed) 2131 if (!userExposed)
1461 dupe.IsAttachment = true; 2132 dupe.IsAttachment = true;
1462 2133
@@ -1474,11 +2145,11 @@ namespace OpenSim.Region.Framework.Scenes
1474 dupe.m_rootPart.TrimPermissions(); 2145 dupe.m_rootPart.TrimPermissions();
1475 2146
1476 List<SceneObjectPart> partList = new List<SceneObjectPart>(m_parts.GetArray()); 2147 List<SceneObjectPart> partList = new List<SceneObjectPart>(m_parts.GetArray());
1477 2148
1478 partList.Sort(delegate(SceneObjectPart p1, SceneObjectPart p2) 2149 partList.Sort(delegate(SceneObjectPart p1, SceneObjectPart p2)
1479 { 2150 {
1480 return p1.LinkNum.CompareTo(p2.LinkNum); 2151 return p1.LinkNum.CompareTo(p2.LinkNum);
1481 } 2152 }
1482 ); 2153 );
1483 2154
1484 foreach (SceneObjectPart part in partList) 2155 foreach (SceneObjectPart part in partList)
@@ -1488,41 +2159,53 @@ namespace OpenSim.Region.Framework.Scenes
1488 { 2159 {
1489 newPart = dupe.CopyPart(part, OwnerID, GroupID, userExposed); 2160 newPart = dupe.CopyPart(part, OwnerID, GroupID, userExposed);
1490 newPart.LinkNum = part.LinkNum; 2161 newPart.LinkNum = part.LinkNum;
1491 } 2162 if (userExposed)
2163 newPart.ParentID = dupe.m_rootPart.LocalId;
2164 }
1492 else 2165 else
1493 { 2166 {
1494 newPart = dupe.m_rootPart; 2167 newPart = dupe.m_rootPart;
1495 } 2168 }
2169/*
2170 bool isphys = ((newPart.Flags & PrimFlags.Physics) != 0);
2171 bool isphan = ((newPart.Flags & PrimFlags.Phantom) != 0);
1496 2172
1497 // Need to duplicate the physics actor as well 2173 // Need to duplicate the physics actor as well
1498 PhysicsActor originalPartPa = part.PhysActor; 2174 if (userExposed && (isphys || !isphan || newPart.VolumeDetectActive))
1499 if (originalPartPa != null && userExposed)
1500 { 2175 {
1501 PrimitiveBaseShape pbs = newPart.Shape; 2176 PrimitiveBaseShape pbs = newPart.Shape;
1502
1503 newPart.PhysActor 2177 newPart.PhysActor
1504 = m_scene.PhysicsScene.AddPrimShape( 2178 = m_scene.PhysicsScene.AddPrimShape(
1505 string.Format("{0}/{1}", newPart.Name, newPart.UUID), 2179 string.Format("{0}/{1}", newPart.Name, newPart.UUID),
1506 pbs, 2180 pbs,
1507 newPart.AbsolutePosition, 2181 newPart.AbsolutePosition,
1508 newPart.Scale, 2182 newPart.Scale,
1509 newPart.RotationOffset, 2183 newPart.GetWorldRotation(),
1510 originalPartPa.IsPhysical, 2184 isphys,
2185 isphan,
1511 newPart.LocalId); 2186 newPart.LocalId);
1512 2187
1513 newPart.DoPhysicsPropertyUpdate(originalPartPa.IsPhysical, true); 2188 newPart.DoPhysicsPropertyUpdate(isphys, true);
1514 } 2189 */
2190 if (userExposed)
2191 newPart.ApplyPhysics((uint)newPart.Flags,newPart.VolumeDetectActive,true);
2192// }
1515 } 2193 }
1516 2194
1517 if (userExposed) 2195 if (userExposed)
1518 { 2196 {
1519 dupe.UpdateParentIDs(); 2197// done above dupe.UpdateParentIDs();
2198
2199 if (dupe.m_rootPart.PhysActor != null)
2200 dupe.m_rootPart.PhysActor.Building = false; // tell physics to finish building
2201
1520 dupe.HasGroupChanged = true; 2202 dupe.HasGroupChanged = true;
1521 dupe.AttachToBackup(); 2203 dupe.AttachToBackup();
1522 2204
1523 ScheduleGroupForFullUpdate(); 2205 ScheduleGroupForFullUpdate();
1524 } 2206 }
1525 2207
2208 m_dupeInProgress = false;
1526 return dupe; 2209 return dupe;
1527 } 2210 }
1528 2211
@@ -1534,11 +2217,24 @@ namespace OpenSim.Region.Framework.Scenes
1534 /// <param name="cGroupID"></param> 2217 /// <param name="cGroupID"></param>
1535 public void CopyRootPart(SceneObjectPart part, UUID cAgentID, UUID cGroupID, bool userExposed) 2218 public void CopyRootPart(SceneObjectPart part, UUID cAgentID, UUID cGroupID, bool userExposed)
1536 { 2219 {
1537 SetRootPart(part.Copy(m_scene.AllocateLocalId(), OwnerID, GroupID, 0, userExposed)); 2220 // SetRootPart(part.Copy(m_scene.AllocateLocalId(), OwnerID, GroupID, 0, userExposed));
2221 // give newpart a new local ID lettng old part keep same
2222 SceneObjectPart newpart = part.Copy(part.LocalId, OwnerID, GroupID, 0, userExposed);
2223 newpart.LocalId = m_scene.AllocateLocalId();
2224
2225 SetRootPart(newpart);
2226 if (userExposed)
2227 RootPart.Velocity = Vector3.Zero; // In case source is moving
1538 } 2228 }
1539 2229
1540 public void ScriptSetPhysicsStatus(bool usePhysics) 2230 public void ScriptSetPhysicsStatus(bool usePhysics)
1541 { 2231 {
2232 if (usePhysics)
2233 {
2234 if (RootPart.KeyframeMotion != null)
2235 RootPart.KeyframeMotion.Stop();
2236 RootPart.KeyframeMotion = null;
2237 }
1542 UpdatePrimFlags(RootPart.LocalId, usePhysics, IsTemporary, IsPhantom, IsVolumeDetect); 2238 UpdatePrimFlags(RootPart.LocalId, usePhysics, IsTemporary, IsPhantom, IsVolumeDetect);
1543 } 2239 }
1544 2240
@@ -1586,13 +2282,14 @@ namespace OpenSim.Region.Framework.Scenes
1586 2282
1587 if (pa != null) 2283 if (pa != null)
1588 { 2284 {
1589 pa.AddForce(impulse, true); 2285 // false to be applied as a impulse
2286 pa.AddForce(impulse, false);
1590 m_scene.PhysicsScene.AddPhysicsActorTaint(pa); 2287 m_scene.PhysicsScene.AddPhysicsActorTaint(pa);
1591 } 2288 }
1592 } 2289 }
1593 } 2290 }
1594 2291
1595 public void applyAngularImpulse(Vector3 impulse) 2292 public void ApplyAngularImpulse(Vector3 impulse)
1596 { 2293 {
1597 PhysicsActor pa = RootPart.PhysActor; 2294 PhysicsActor pa = RootPart.PhysActor;
1598 2295
@@ -1600,21 +2297,8 @@ namespace OpenSim.Region.Framework.Scenes
1600 { 2297 {
1601 if (!IsAttachment) 2298 if (!IsAttachment)
1602 { 2299 {
1603 pa.AddAngularForce(impulse, true); 2300 // false to be applied as a impulse
1604 m_scene.PhysicsScene.AddPhysicsActorTaint(pa); 2301 pa.AddAngularForce(impulse, false);
1605 }
1606 }
1607 }
1608
1609 public void setAngularImpulse(Vector3 impulse)
1610 {
1611 PhysicsActor pa = RootPart.PhysActor;
1612
1613 if (pa != null)
1614 {
1615 if (!IsAttachment)
1616 {
1617 pa.Torque = impulse;
1618 m_scene.PhysicsScene.AddPhysicsActorTaint(pa); 2302 m_scene.PhysicsScene.AddPhysicsActorTaint(pa);
1619 } 2303 }
1620 } 2304 }
@@ -1622,20 +2306,10 @@ namespace OpenSim.Region.Framework.Scenes
1622 2306
1623 public Vector3 GetTorque() 2307 public Vector3 GetTorque()
1624 { 2308 {
1625 PhysicsActor pa = RootPart.PhysActor; 2309 return RootPart.Torque;
1626
1627 if (pa != null)
1628 {
1629 if (!IsAttachment)
1630 {
1631 Vector3 torque = pa.Torque;
1632 return torque;
1633 }
1634 }
1635
1636 return Vector3.Zero;
1637 } 2310 }
1638 2311
2312 // This is used by both Double-Click Auto-Pilot and llMoveToTarget() in an attached object
1639 public void moveToTarget(Vector3 target, float tau) 2313 public void moveToTarget(Vector3 target, float tau)
1640 { 2314 {
1641 if (IsAttachment) 2315 if (IsAttachment)
@@ -1667,6 +2341,46 @@ namespace OpenSim.Region.Framework.Scenes
1667 pa.PIDActive = false; 2341 pa.PIDActive = false;
1668 } 2342 }
1669 2343
2344 public void rotLookAt(Quaternion target, float strength, float damping)
2345 {
2346 SceneObjectPart rootpart = m_rootPart;
2347 if (rootpart != null)
2348 {
2349 if (IsAttachment)
2350 {
2351 /*
2352 ScenePresence avatar = m_scene.GetScenePresence(rootpart.AttachedAvatar);
2353 if (avatar != null)
2354 {
2355 Rotate the Av?
2356 } */
2357 }
2358 else
2359 {
2360 if (rootpart.PhysActor != null)
2361 { // APID must be implemented in your physics system for this to function.
2362 rootpart.PhysActor.APIDTarget = new Quaternion(target.X, target.Y, target.Z, target.W);
2363 rootpart.PhysActor.APIDStrength = strength;
2364 rootpart.PhysActor.APIDDamping = damping;
2365 rootpart.PhysActor.APIDActive = true;
2366 }
2367 }
2368 }
2369 }
2370
2371 public void stopLookAt()
2372 {
2373 SceneObjectPart rootpart = m_rootPart;
2374 if (rootpart != null)
2375 {
2376 if (rootpart.PhysActor != null)
2377 { // APID must be implemented in your physics system for this to function.
2378 rootpart.PhysActor.APIDActive = false;
2379 }
2380 }
2381
2382 }
2383
1670 /// <summary> 2384 /// <summary>
1671 /// Uses a PID to attempt to clamp the object on the Z axis at the given height over tau seconds. 2385 /// Uses a PID to attempt to clamp the object on the Z axis at the given height over tau seconds.
1672 /// </summary> 2386 /// </summary>
@@ -1683,7 +2397,7 @@ namespace OpenSim.Region.Framework.Scenes
1683 { 2397 {
1684 pa.PIDHoverHeight = height; 2398 pa.PIDHoverHeight = height;
1685 pa.PIDHoverType = hoverType; 2399 pa.PIDHoverType = hoverType;
1686 pa.PIDTau = tau; 2400 pa.PIDHoverTau = tau;
1687 pa.PIDHoverActive = true; 2401 pa.PIDHoverActive = true;
1688 } 2402 }
1689 else 2403 else
@@ -1723,7 +2437,12 @@ namespace OpenSim.Region.Framework.Scenes
1723 /// <param name="cGroupID"></param> 2437 /// <param name="cGroupID"></param>
1724 public SceneObjectPart CopyPart(SceneObjectPart part, UUID cAgentID, UUID cGroupID, bool userExposed) 2438 public SceneObjectPart CopyPart(SceneObjectPart part, UUID cAgentID, UUID cGroupID, bool userExposed)
1725 { 2439 {
1726 SceneObjectPart newPart = part.Copy(m_scene.AllocateLocalId(), OwnerID, GroupID, m_parts.Count, userExposed); 2440 // give new ID to the new part, letting old keep original
2441 // SceneObjectPart newPart = part.Copy(m_scene.AllocateLocalId(), OwnerID, GroupID, m_parts.Count, userExposed);
2442 SceneObjectPart newPart = part.Copy(part.LocalId, OwnerID, GroupID, m_parts.Count, userExposed);
2443 newPart.LocalId = m_scene.AllocateLocalId();
2444 newPart.SetParent(this);
2445
1727 AddPart(newPart); 2446 AddPart(newPart);
1728 2447
1729 SetPartAsNonRoot(newPart); 2448 SetPartAsNonRoot(newPart);
@@ -1852,11 +2571,11 @@ namespace OpenSim.Region.Framework.Scenes
1852 /// Immediately send a full update for this scene object. 2571 /// Immediately send a full update for this scene object.
1853 /// </summary> 2572 /// </summary>
1854 public void SendGroupFullUpdate() 2573 public void SendGroupFullUpdate()
1855 { 2574 {
1856 if (IsDeleted) 2575 if (IsDeleted)
1857 return; 2576 return;
1858 2577
1859// m_log.DebugFormat("[SOG]: Sending immediate full group update for {0} {1}", Name, UUID); 2578// m_log.DebugFormat("[SOG]: Sending immediate full group update for {0} {1}", Name, UUID);
1860 2579
1861 RootPart.SendFullUpdateToAllClients(); 2580 RootPart.SendFullUpdateToAllClients();
1862 2581
@@ -1990,6 +2709,11 @@ namespace OpenSim.Region.Framework.Scenes
1990 2709
1991 SceneObjectPart linkPart = objectGroup.m_rootPart; 2710 SceneObjectPart linkPart = objectGroup.m_rootPart;
1992 2711
2712 if (m_rootPart.PhysActor != null)
2713 m_rootPart.PhysActor.Building = true;
2714 if (linkPart.PhysActor != null)
2715 linkPart.PhysActor.Building = true;
2716
1993 // physics flags from group to be applied to linked parts 2717 // physics flags from group to be applied to linked parts
1994 bool grpusephys = UsesPhysics; 2718 bool grpusephys = UsesPhysics;
1995 bool grptemporary = IsTemporary; 2719 bool grptemporary = IsTemporary;
@@ -1998,19 +2722,21 @@ namespace OpenSim.Region.Framework.Scenes
1998 Quaternion oldRootRotation = linkPart.RotationOffset; 2722 Quaternion oldRootRotation = linkPart.RotationOffset;
1999 2723
2000 linkPart.OffsetPosition = linkPart.GroupPosition - AbsolutePosition; 2724 linkPart.OffsetPosition = linkPart.GroupPosition - AbsolutePosition;
2725
2001 linkPart.ParentID = m_rootPart.LocalId; 2726 linkPart.ParentID = m_rootPart.LocalId;
2002 linkPart.GroupPosition = AbsolutePosition; 2727
2003 Vector3 axPos = linkPart.OffsetPosition; 2728 linkPart.GroupPosition = AbsolutePosition;
2004 2729
2730 Vector3 axPos = linkPart.OffsetPosition;
2005 Quaternion parentRot = m_rootPart.RotationOffset; 2731 Quaternion parentRot = m_rootPart.RotationOffset;
2006 axPos *= Quaternion.Inverse(parentRot); 2732 axPos *= Quaternion.Conjugate(parentRot);
2007
2008 linkPart.OffsetPosition = axPos; 2733 linkPart.OffsetPosition = axPos;
2734
2009 Quaternion oldRot = linkPart.RotationOffset; 2735 Quaternion oldRot = linkPart.RotationOffset;
2010 Quaternion newRot = Quaternion.Inverse(parentRot) * oldRot; 2736 Quaternion newRot = Quaternion.Conjugate(parentRot) * oldRot;
2011 linkPart.RotationOffset = newRot; 2737 linkPart.RotationOffset = newRot;
2012 2738
2013 linkPart.ParentID = m_rootPart.LocalId; 2739// linkPart.ParentID = m_rootPart.LocalId; done above
2014 2740
2015 if (m_rootPart.LinkNum == 0) 2741 if (m_rootPart.LinkNum == 0)
2016 m_rootPart.LinkNum = 1; 2742 m_rootPart.LinkNum = 1;
@@ -2038,7 +2764,7 @@ namespace OpenSim.Region.Framework.Scenes
2038 linkPart.CreateSelected = true; 2764 linkPart.CreateSelected = true;
2039 2765
2040 // let physics know preserve part volume dtc messy since UpdatePrimFlags doesn't look to parent changes for now 2766 // let physics know preserve part volume dtc messy since UpdatePrimFlags doesn't look to parent changes for now
2041 linkPart.UpdatePrimFlags(grpusephys, grptemporary, (IsPhantom || (linkPart.Flags & PrimFlags.Phantom) != 0), linkPart.VolumeDetectActive); 2767 linkPart.UpdatePrimFlags(grpusephys, grptemporary, (IsPhantom || (linkPart.Flags & PrimFlags.Phantom) != 0), linkPart.VolumeDetectActive, true);
2042 if (linkPart.PhysActor != null && m_rootPart.PhysActor != null && m_rootPart.PhysActor.IsPhysical) 2768 if (linkPart.PhysActor != null && m_rootPart.PhysActor != null && m_rootPart.PhysActor.IsPhysical)
2043 { 2769 {
2044 linkPart.PhysActor.link(m_rootPart.PhysActor); 2770 linkPart.PhysActor.link(m_rootPart.PhysActor);
@@ -2046,6 +2772,7 @@ namespace OpenSim.Region.Framework.Scenes
2046 } 2772 }
2047 2773
2048 linkPart.LinkNum = linkNum++; 2774 linkPart.LinkNum = linkNum++;
2775 linkPart.UpdatePrimFlags(UsesPhysics, IsTemporary, IsPhantom, IsVolumeDetect, false);
2049 2776
2050 SceneObjectPart[] ogParts = objectGroup.Parts; 2777 SceneObjectPart[] ogParts = objectGroup.Parts;
2051 Array.Sort(ogParts, delegate(SceneObjectPart a, SceneObjectPart b) 2778 Array.Sort(ogParts, delegate(SceneObjectPart a, SceneObjectPart b)
@@ -2060,7 +2787,7 @@ namespace OpenSim.Region.Framework.Scenes
2060 { 2787 {
2061 LinkNonRootPart(part, oldGroupPosition, oldRootRotation, linkNum++); 2788 LinkNonRootPart(part, oldGroupPosition, oldRootRotation, linkNum++);
2062 // let physics know 2789 // let physics know
2063 part.UpdatePrimFlags(grpusephys, grptemporary, (IsPhantom || (part.Flags & PrimFlags.Phantom) != 0), part.VolumeDetectActive); 2790 part.UpdatePrimFlags(grpusephys, grptemporary, (IsPhantom || (part.Flags & PrimFlags.Phantom) != 0), part.VolumeDetectActive, true);
2064 if (part.PhysActor != null && m_rootPart.PhysActor != null && m_rootPart.PhysActor.IsPhysical) 2791 if (part.PhysActor != null && m_rootPart.PhysActor != null && m_rootPart.PhysActor.IsPhysical)
2065 { 2792 {
2066 part.PhysActor.link(m_rootPart.PhysActor); 2793 part.PhysActor.link(m_rootPart.PhysActor);
@@ -2075,7 +2802,7 @@ namespace OpenSim.Region.Framework.Scenes
2075 objectGroup.IsDeleted = true; 2802 objectGroup.IsDeleted = true;
2076 2803
2077 objectGroup.m_parts.Clear(); 2804 objectGroup.m_parts.Clear();
2078 2805
2079 // Can't do this yet since backup still makes use of the root part without any synchronization 2806 // Can't do this yet since backup still makes use of the root part without any synchronization
2080// objectGroup.m_rootPart = null; 2807// objectGroup.m_rootPart = null;
2081 2808
@@ -2086,6 +2813,9 @@ namespace OpenSim.Region.Framework.Scenes
2086 // unmoved prims! 2813 // unmoved prims!
2087 ResetChildPrimPhysicsPositions(); 2814 ResetChildPrimPhysicsPositions();
2088 2815
2816 if (m_rootPart.PhysActor != null)
2817 m_rootPart.PhysActor.Building = false;
2818
2089 //HasGroupChanged = true; 2819 //HasGroupChanged = true;
2090 //ScheduleGroupForFullUpdate(); 2820 //ScheduleGroupForFullUpdate();
2091 } 2821 }
@@ -2153,7 +2883,10 @@ namespace OpenSim.Region.Framework.Scenes
2153// m_log.DebugFormat( 2883// m_log.DebugFormat(
2154// "[SCENE OBJECT GROUP]: Delinking part {0}, {1} from group with root part {2}, {3}", 2884// "[SCENE OBJECT GROUP]: Delinking part {0}, {1} from group with root part {2}, {3}",
2155// linkPart.Name, linkPart.UUID, RootPart.Name, RootPart.UUID); 2885// linkPart.Name, linkPart.UUID, RootPart.Name, RootPart.UUID);
2156 2886
2887 if (m_rootPart.PhysActor != null)
2888 m_rootPart.PhysActor.Building = true;
2889
2157 linkPart.ClearUndoState(); 2890 linkPart.ClearUndoState();
2158 2891
2159 Quaternion worldRot = linkPart.GetWorldRotation(); 2892 Quaternion worldRot = linkPart.GetWorldRotation();
@@ -2213,6 +2946,14 @@ namespace OpenSim.Region.Framework.Scenes
2213 2946
2214 // When we delete a group, we currently have to force persist to the database if the object id has changed 2947 // When we delete a group, we currently have to force persist to the database if the object id has changed
2215 // (since delete works by deleting all rows which have a given object id) 2948 // (since delete works by deleting all rows which have a given object id)
2949
2950 // this is as it seems to be in sl now
2951 if(linkPart.PhysicsShapeType == (byte)PhysShapeType.none)
2952 linkPart.PhysicsShapeType = linkPart.DefaultPhysicsShapeType(); // root prims can't have type none for now
2953
2954 if (m_rootPart.PhysActor != null)
2955 m_rootPart.PhysActor.Building = false;
2956
2216 objectGroup.HasGroupChangedDueToDelink = true; 2957 objectGroup.HasGroupChangedDueToDelink = true;
2217 2958
2218 return objectGroup; 2959 return objectGroup;
@@ -2224,6 +2965,7 @@ namespace OpenSim.Region.Framework.Scenes
2224 /// <param name="objectGroup"></param> 2965 /// <param name="objectGroup"></param>
2225 public virtual void DetachFromBackup() 2966 public virtual void DetachFromBackup()
2226 { 2967 {
2968 m_scene.SceneGraph.FireDetachFromBackup(this);
2227 if (m_isBackedUp && Scene != null) 2969 if (m_isBackedUp && Scene != null)
2228 m_scene.EventManager.OnBackup -= ProcessBackup; 2970 m_scene.EventManager.OnBackup -= ProcessBackup;
2229 2971
@@ -2242,7 +2984,8 @@ namespace OpenSim.Region.Framework.Scenes
2242 2984
2243 axPos *= parentRot; 2985 axPos *= parentRot;
2244 part.OffsetPosition = axPos; 2986 part.OffsetPosition = axPos;
2245 part.GroupPosition = oldGroupPosition + part.OffsetPosition; 2987 Vector3 newPos = oldGroupPosition + part.OffsetPosition;
2988 part.GroupPosition = newPos;
2246 part.OffsetPosition = Vector3.Zero; 2989 part.OffsetPosition = Vector3.Zero;
2247 part.RotationOffset = worldRot; 2990 part.RotationOffset = worldRot;
2248 2991
@@ -2253,20 +2996,20 @@ namespace OpenSim.Region.Framework.Scenes
2253 2996
2254 part.LinkNum = linkNum; 2997 part.LinkNum = linkNum;
2255 2998
2256 part.OffsetPosition = part.GroupPosition - AbsolutePosition; 2999 part.OffsetPosition = newPos - AbsolutePosition;
2257 3000
2258 Quaternion rootRotation = m_rootPart.RotationOffset; 3001 Quaternion rootRotation = m_rootPart.RotationOffset;
2259 3002
2260 Vector3 pos = part.OffsetPosition; 3003 Vector3 pos = part.OffsetPosition;
2261 pos *= Quaternion.Inverse(rootRotation); 3004 pos *= Quaternion.Conjugate(rootRotation);
2262 part.OffsetPosition = pos; 3005 part.OffsetPosition = pos;
2263 3006
2264 parentRot = m_rootPart.RotationOffset; 3007 parentRot = m_rootPart.RotationOffset;
2265 oldRot = part.RotationOffset; 3008 oldRot = part.RotationOffset;
2266 Quaternion newRot = Quaternion.Inverse(parentRot) * oldRot; 3009 Quaternion newRot = Quaternion.Conjugate(parentRot) * worldRot;
2267 part.RotationOffset = newRot; 3010 part.RotationOffset = newRot;
2268 3011
2269 part.UpdatePrimFlags(UsesPhysics, IsTemporary, IsPhantom, IsVolumeDetect); 3012 part.UpdatePrimFlags(UsesPhysics, IsTemporary, IsPhantom, IsVolumeDetect, false);
2270 } 3013 }
2271 3014
2272 /// <summary> 3015 /// <summary>
@@ -2288,10 +3031,14 @@ namespace OpenSim.Region.Framework.Scenes
2288 { 3031 {
2289 if (!m_rootPart.BlockGrab) 3032 if (!m_rootPart.BlockGrab)
2290 { 3033 {
2291 Vector3 llmoveforce = pos - AbsolutePosition; 3034/* Vector3 llmoveforce = pos - AbsolutePosition;
2292 Vector3 grabforce = llmoveforce; 3035 Vector3 grabforce = llmoveforce;
2293 grabforce = (grabforce / 10) * pa.Mass; 3036 grabforce = (grabforce / 10) * pa.Mass;
2294 pa.AddForce(grabforce, true); 3037 */
3038 // empirically convert distance diference to a impulse
3039 Vector3 grabforce = pos - AbsolutePosition;
3040 grabforce = grabforce * (pa.Mass/ 10.0f);
3041 pa.AddForce(grabforce, false);
2295 m_scene.PhysicsScene.AddPhysicsActorTaint(pa); 3042 m_scene.PhysicsScene.AddPhysicsActorTaint(pa);
2296 } 3043 }
2297 } 3044 }
@@ -2517,8 +3264,22 @@ namespace OpenSim.Region.Framework.Scenes
2517 } 3264 }
2518 } 3265 }
2519 3266
2520 for (int i = 0; i < parts.Length; i++) 3267 if (parts.Length > 1)
2521 parts[i].UpdatePrimFlags(UsePhysics, SetTemporary, SetPhantom, SetVolumeDetect); 3268 {
3269 m_rootPart.UpdatePrimFlags(UsePhysics, SetTemporary, SetPhantom, SetVolumeDetect, true);
3270
3271 for (int i = 0; i < parts.Length; i++)
3272 {
3273
3274 if (parts[i].UUID != m_rootPart.UUID)
3275 parts[i].UpdatePrimFlags(UsePhysics, SetTemporary, SetPhantom, SetVolumeDetect, true);
3276 }
3277
3278 if (m_rootPart.PhysActor != null)
3279 m_rootPart.PhysActor.Building = false;
3280 }
3281 else
3282 m_rootPart.UpdatePrimFlags(UsePhysics, SetTemporary, SetPhantom, SetVolumeDetect, false);
2522 } 3283 }
2523 } 3284 }
2524 3285
@@ -2531,6 +3292,17 @@ namespace OpenSim.Region.Framework.Scenes
2531 } 3292 }
2532 } 3293 }
2533 3294
3295
3296
3297 /// <summary>
3298 /// Gets the number of parts
3299 /// </summary>
3300 /// <returns></returns>
3301 public int GetPartCount()
3302 {
3303 return Parts.Count();
3304 }
3305
2534 /// <summary> 3306 /// <summary>
2535 /// Update the texture entry for this part 3307 /// Update the texture entry for this part
2536 /// </summary> 3308 /// </summary>
@@ -2592,11 +3364,6 @@ namespace OpenSim.Region.Framework.Scenes
2592 /// <param name="scale"></param> 3364 /// <param name="scale"></param>
2593 public void GroupResize(Vector3 scale) 3365 public void GroupResize(Vector3 scale)
2594 { 3366 {
2595// m_log.DebugFormat(
2596// "[SCENE OBJECT GROUP]: Group resizing {0} {1} from {2} to {3}", Name, LocalId, RootPart.Scale, scale);
2597
2598 RootPart.StoreUndoState(true);
2599
2600 scale.X = Math.Min(scale.X, Scene.m_maxNonphys); 3367 scale.X = Math.Min(scale.X, Scene.m_maxNonphys);
2601 scale.Y = Math.Min(scale.Y, Scene.m_maxNonphys); 3368 scale.Y = Math.Min(scale.Y, Scene.m_maxNonphys);
2602 scale.Z = Math.Min(scale.Z, Scene.m_maxNonphys); 3369 scale.Z = Math.Min(scale.Z, Scene.m_maxNonphys);
@@ -2623,7 +3390,6 @@ namespace OpenSim.Region.Framework.Scenes
2623 SceneObjectPart obPart = parts[i]; 3390 SceneObjectPart obPart = parts[i];
2624 if (obPart.UUID != m_rootPart.UUID) 3391 if (obPart.UUID != m_rootPart.UUID)
2625 { 3392 {
2626// obPart.IgnoreUndoUpdate = true;
2627 Vector3 oldSize = new Vector3(obPart.Scale); 3393 Vector3 oldSize = new Vector3(obPart.Scale);
2628 3394
2629 float f = 1.0f; 3395 float f = 1.0f;
@@ -2687,8 +3453,6 @@ namespace OpenSim.Region.Framework.Scenes
2687 z *= a; 3453 z *= a;
2688 } 3454 }
2689 } 3455 }
2690
2691// obPart.IgnoreUndoUpdate = false;
2692 } 3456 }
2693 } 3457 }
2694 } 3458 }
@@ -2698,9 +3462,7 @@ namespace OpenSim.Region.Framework.Scenes
2698 prevScale.Y *= y; 3462 prevScale.Y *= y;
2699 prevScale.Z *= z; 3463 prevScale.Z *= z;
2700 3464
2701// RootPart.IgnoreUndoUpdate = true;
2702 RootPart.Resize(prevScale); 3465 RootPart.Resize(prevScale);
2703// RootPart.IgnoreUndoUpdate = false;
2704 3466
2705 parts = m_parts.GetArray(); 3467 parts = m_parts.GetArray();
2706 for (int i = 0; i < parts.Length; i++) 3468 for (int i = 0; i < parts.Length; i++)
@@ -2709,8 +3471,6 @@ namespace OpenSim.Region.Framework.Scenes
2709 3471
2710 if (obPart.UUID != m_rootPart.UUID) 3472 if (obPart.UUID != m_rootPart.UUID)
2711 { 3473 {
2712 obPart.IgnoreUndoUpdate = true;
2713
2714 Vector3 currentpos = new Vector3(obPart.OffsetPosition); 3474 Vector3 currentpos = new Vector3(obPart.OffsetPosition);
2715 currentpos.X *= x; 3475 currentpos.X *= x;
2716 currentpos.Y *= y; 3476 currentpos.Y *= y;
@@ -2723,16 +3483,12 @@ namespace OpenSim.Region.Framework.Scenes
2723 3483
2724 obPart.Resize(newSize); 3484 obPart.Resize(newSize);
2725 obPart.UpdateOffSet(currentpos); 3485 obPart.UpdateOffSet(currentpos);
2726
2727 obPart.IgnoreUndoUpdate = false;
2728 } 3486 }
2729 3487
2730// obPart.IgnoreUndoUpdate = false; 3488 HasGroupChanged = true;
2731// obPart.StoreUndoState(); 3489 m_rootPart.TriggerScriptChangedEvent(Changed.SCALE);
3490 ScheduleGroupForTerseUpdate();
2732 } 3491 }
2733
2734// m_log.DebugFormat(
2735// "[SCENE OBJECT GROUP]: Finished group resizing {0} {1} to {2}", Name, LocalId, RootPart.Scale);
2736 } 3492 }
2737 3493
2738 #endregion 3494 #endregion
@@ -2745,14 +3501,6 @@ namespace OpenSim.Region.Framework.Scenes
2745 /// <param name="pos"></param> 3501 /// <param name="pos"></param>
2746 public void UpdateGroupPosition(Vector3 pos) 3502 public void UpdateGroupPosition(Vector3 pos)
2747 { 3503 {
2748// m_log.DebugFormat("[SCENE OBJECT GROUP]: Updating group position on {0} {1} to {2}", Name, LocalId, pos);
2749
2750 RootPart.StoreUndoState(true);
2751
2752// SceneObjectPart[] parts = m_parts.GetArray();
2753// for (int i = 0; i < parts.Length; i++)
2754// parts[i].StoreUndoState();
2755
2756 if (m_scene.EventManager.TriggerGroupMove(UUID, pos)) 3504 if (m_scene.EventManager.TriggerGroupMove(UUID, pos))
2757 { 3505 {
2758 if (IsAttachment) 3506 if (IsAttachment)
@@ -2785,21 +3533,17 @@ namespace OpenSim.Region.Framework.Scenes
2785 /// </summary> 3533 /// </summary>
2786 /// <param name="pos"></param> 3534 /// <param name="pos"></param>
2787 /// <param name="localID"></param> 3535 /// <param name="localID"></param>
3536 ///
3537
2788 public void UpdateSinglePosition(Vector3 pos, uint localID) 3538 public void UpdateSinglePosition(Vector3 pos, uint localID)
2789 { 3539 {
2790 SceneObjectPart part = GetPart(localID); 3540 SceneObjectPart part = GetPart(localID);
2791 3541
2792// SceneObjectPart[] parts = m_parts.GetArray();
2793// for (int i = 0; i < parts.Length; i++)
2794// parts[i].StoreUndoState();
2795
2796 if (part != null) 3542 if (part != null)
2797 { 3543 {
2798// m_log.DebugFormat( 3544// unlock parts position change
2799// "[SCENE OBJECT GROUP]: Updating single position of {0} {1} to {2}", part.Name, part.LocalId, pos); 3545 if (m_rootPart.PhysActor != null)
2800 3546 m_rootPart.PhysActor.Building = true;
2801 part.StoreUndoState(false);
2802 part.IgnoreUndoUpdate = true;
2803 3547
2804 if (part.UUID == m_rootPart.UUID) 3548 if (part.UUID == m_rootPart.UUID)
2805 { 3549 {
@@ -2810,8 +3554,10 @@ namespace OpenSim.Region.Framework.Scenes
2810 part.UpdateOffSet(pos); 3554 part.UpdateOffSet(pos);
2811 } 3555 }
2812 3556
3557 if (m_rootPart.PhysActor != null)
3558 m_rootPart.PhysActor.Building = false;
3559
2813 HasGroupChanged = true; 3560 HasGroupChanged = true;
2814 part.IgnoreUndoUpdate = false;
2815 } 3561 }
2816 } 3562 }
2817 3563
@@ -2821,13 +3567,7 @@ namespace OpenSim.Region.Framework.Scenes
2821 /// <param name="pos"></param> 3567 /// <param name="pos"></param>
2822 public void UpdateRootPosition(Vector3 pos) 3568 public void UpdateRootPosition(Vector3 pos)
2823 { 3569 {
2824// m_log.DebugFormat( 3570 // needs to be called with phys building true
2825// "[SCENE OBJECT GROUP]: Updating root position of {0} {1} to {2}", Name, LocalId, pos);
2826
2827// SceneObjectPart[] parts = m_parts.GetArray();
2828// for (int i = 0; i < parts.Length; i++)
2829// parts[i].StoreUndoState();
2830
2831 Vector3 newPos = new Vector3(pos.X, pos.Y, pos.Z); 3571 Vector3 newPos = new Vector3(pos.X, pos.Y, pos.Z);
2832 Vector3 oldPos = 3572 Vector3 oldPos =
2833 new Vector3(AbsolutePosition.X + m_rootPart.OffsetPosition.X, 3573 new Vector3(AbsolutePosition.X + m_rootPart.OffsetPosition.X,
@@ -2850,7 +3590,14 @@ namespace OpenSim.Region.Framework.Scenes
2850 AbsolutePosition = newPos; 3590 AbsolutePosition = newPos;
2851 3591
2852 HasGroupChanged = true; 3592 HasGroupChanged = true;
2853 ScheduleGroupForTerseUpdate(); 3593 if (m_rootPart.Undoing)
3594 {
3595 ScheduleGroupForFullUpdate();
3596 }
3597 else
3598 {
3599 ScheduleGroupForTerseUpdate();
3600 }
2854 } 3601 }
2855 3602
2856 #endregion 3603 #endregion
@@ -2863,24 +3610,16 @@ namespace OpenSim.Region.Framework.Scenes
2863 /// <param name="rot"></param> 3610 /// <param name="rot"></param>
2864 public void UpdateGroupRotationR(Quaternion rot) 3611 public void UpdateGroupRotationR(Quaternion rot)
2865 { 3612 {
2866// m_log.DebugFormat(
2867// "[SCENE OBJECT GROUP]: Updating group rotation R of {0} {1} to {2}", Name, LocalId, rot);
2868
2869// SceneObjectPart[] parts = m_parts.GetArray();
2870// for (int i = 0; i < parts.Length; i++)
2871// parts[i].StoreUndoState();
2872
2873 m_rootPart.StoreUndoState(true);
2874
2875 m_rootPart.UpdateRotation(rot); 3613 m_rootPart.UpdateRotation(rot);
2876 3614
3615/* this is done by rootpart RotationOffset set called by UpdateRotation
2877 PhysicsActor actor = m_rootPart.PhysActor; 3616 PhysicsActor actor = m_rootPart.PhysActor;
2878 if (actor != null) 3617 if (actor != null)
2879 { 3618 {
2880 actor.Orientation = m_rootPart.RotationOffset; 3619 actor.Orientation = m_rootPart.RotationOffset;
2881 m_scene.PhysicsScene.AddPhysicsActorTaint(actor); 3620 m_scene.PhysicsScene.AddPhysicsActorTaint(actor);
2882 } 3621 }
2883 3622*/
2884 HasGroupChanged = true; 3623 HasGroupChanged = true;
2885 ScheduleGroupForTerseUpdate(); 3624 ScheduleGroupForTerseUpdate();
2886 } 3625 }
@@ -2892,16 +3631,6 @@ namespace OpenSim.Region.Framework.Scenes
2892 /// <param name="rot"></param> 3631 /// <param name="rot"></param>
2893 public void UpdateGroupRotationPR(Vector3 pos, Quaternion rot) 3632 public void UpdateGroupRotationPR(Vector3 pos, Quaternion rot)
2894 { 3633 {
2895// m_log.DebugFormat(
2896// "[SCENE OBJECT GROUP]: Updating group rotation PR of {0} {1} to {2}", Name, LocalId, rot);
2897
2898// SceneObjectPart[] parts = m_parts.GetArray();
2899// for (int i = 0; i < parts.Length; i++)
2900// parts[i].StoreUndoState();
2901
2902 RootPart.StoreUndoState(true);
2903 RootPart.IgnoreUndoUpdate = true;
2904
2905 m_rootPart.UpdateRotation(rot); 3634 m_rootPart.UpdateRotation(rot);
2906 3635
2907 PhysicsActor actor = m_rootPart.PhysActor; 3636 PhysicsActor actor = m_rootPart.PhysActor;
@@ -2920,8 +3649,6 @@ namespace OpenSim.Region.Framework.Scenes
2920 3649
2921 HasGroupChanged = true; 3650 HasGroupChanged = true;
2922 ScheduleGroupForTerseUpdate(); 3651 ScheduleGroupForTerseUpdate();
2923
2924 RootPart.IgnoreUndoUpdate = false;
2925 } 3652 }
2926 3653
2927 /// <summary> 3654 /// <summary>
@@ -2934,13 +3661,11 @@ namespace OpenSim.Region.Framework.Scenes
2934 SceneObjectPart part = GetPart(localID); 3661 SceneObjectPart part = GetPart(localID);
2935 3662
2936 SceneObjectPart[] parts = m_parts.GetArray(); 3663 SceneObjectPart[] parts = m_parts.GetArray();
2937 for (int i = 0; i < parts.Length; i++)
2938 parts[i].StoreUndoState();
2939 3664
2940 if (part != null) 3665 if (part != null)
2941 { 3666 {
2942// m_log.DebugFormat( 3667 if (m_rootPart.PhysActor != null)
2943// "[SCENE OBJECT GROUP]: Updating single rotation of {0} {1} to {2}", part.Name, part.LocalId, rot); 3668 m_rootPart.PhysActor.Building = true;
2944 3669
2945 if (part.UUID == m_rootPart.UUID) 3670 if (part.UUID == m_rootPart.UUID)
2946 { 3671 {
@@ -2950,6 +3675,9 @@ namespace OpenSim.Region.Framework.Scenes
2950 { 3675 {
2951 part.UpdateRotation(rot); 3676 part.UpdateRotation(rot);
2952 } 3677 }
3678
3679 if (m_rootPart.PhysActor != null)
3680 m_rootPart.PhysActor.Building = false;
2953 } 3681 }
2954 } 3682 }
2955 3683
@@ -2963,12 +3691,8 @@ namespace OpenSim.Region.Framework.Scenes
2963 SceneObjectPart part = GetPart(localID); 3691 SceneObjectPart part = GetPart(localID);
2964 if (part != null) 3692 if (part != null)
2965 { 3693 {
2966// m_log.DebugFormat( 3694 if (m_rootPart.PhysActor != null)
2967// "[SCENE OBJECT GROUP]: Updating single position and rotation of {0} {1} to {2}", 3695 m_rootPart.PhysActor.Building = true;
2968// part.Name, part.LocalId, rot);
2969
2970 part.StoreUndoState();
2971 part.IgnoreUndoUpdate = true;
2972 3696
2973 if (part.UUID == m_rootPart.UUID) 3697 if (part.UUID == m_rootPart.UUID)
2974 { 3698 {
@@ -2981,7 +3705,8 @@ namespace OpenSim.Region.Framework.Scenes
2981 part.OffsetPosition = pos; 3705 part.OffsetPosition = pos;
2982 } 3706 }
2983 3707
2984 part.IgnoreUndoUpdate = false; 3708 if (m_rootPart.PhysActor != null)
3709 m_rootPart.PhysActor.Building = false;
2985 } 3710 }
2986 } 3711 }
2987 3712
@@ -2991,15 +3716,12 @@ namespace OpenSim.Region.Framework.Scenes
2991 /// <param name="rot"></param> 3716 /// <param name="rot"></param>
2992 public void UpdateRootRotation(Quaternion rot) 3717 public void UpdateRootRotation(Quaternion rot)
2993 { 3718 {
2994// m_log.DebugFormat( 3719 // needs to be called with phys building true
2995// "[SCENE OBJECT GROUP]: Updating root rotation of {0} {1} to {2}",
2996// Name, LocalId, rot);
2997
2998 Quaternion axRot = rot; 3720 Quaternion axRot = rot;
2999 Quaternion oldParentRot = m_rootPart.RotationOffset; 3721 Quaternion oldParentRot = m_rootPart.RotationOffset;
3000 3722
3001 m_rootPart.StoreUndoState(); 3723 //Don't use UpdateRotation because it schedules an update prematurely
3002 m_rootPart.UpdateRotation(rot); 3724 m_rootPart.RotationOffset = rot;
3003 3725
3004 PhysicsActor pa = m_rootPart.PhysActor; 3726 PhysicsActor pa = m_rootPart.PhysActor;
3005 3727
@@ -3015,35 +3737,145 @@ namespace OpenSim.Region.Framework.Scenes
3015 SceneObjectPart prim = parts[i]; 3737 SceneObjectPart prim = parts[i];
3016 if (prim.UUID != m_rootPart.UUID) 3738 if (prim.UUID != m_rootPart.UUID)
3017 { 3739 {
3018 prim.IgnoreUndoUpdate = true; 3740 Quaternion NewRot = oldParentRot * prim.RotationOffset;
3741 NewRot = Quaternion.Inverse(axRot) * NewRot;
3742 prim.RotationOffset = NewRot;
3743
3019 Vector3 axPos = prim.OffsetPosition; 3744 Vector3 axPos = prim.OffsetPosition;
3745
3020 axPos *= oldParentRot; 3746 axPos *= oldParentRot;
3021 axPos *= Quaternion.Inverse(axRot); 3747 axPos *= Quaternion.Inverse(axRot);
3022 prim.OffsetPosition = axPos; 3748 prim.OffsetPosition = axPos;
3023 Quaternion primsRot = prim.RotationOffset; 3749 }
3024 Quaternion newRot = oldParentRot * primsRot; 3750 }
3025 newRot = Quaternion.Inverse(axRot) * newRot; 3751
3026 prim.RotationOffset = newRot; 3752 HasGroupChanged = true;
3027 prim.ScheduleTerseUpdate(); 3753 ScheduleGroupForFullUpdate();
3028 prim.IgnoreUndoUpdate = false; 3754 }
3029 }
3030 }
3031
3032// for (int i = 0; i < parts.Length; i++)
3033// {
3034// SceneObjectPart childpart = parts[i];
3035// if (childpart != m_rootPart)
3036// {
3037//// childpart.IgnoreUndoUpdate = false;
3038//// childpart.StoreUndoState();
3039// }
3040// }
3041 3755
3042 m_rootPart.ScheduleTerseUpdate(); 3756 private enum updatetype :int
3757 {
3758 none = 0,
3759 partterse = 1,
3760 partfull = 2,
3761 groupterse = 3,
3762 groupfull = 4
3763 }
3043 3764
3044// m_log.DebugFormat( 3765 public void doChangeObject(SceneObjectPart part, ObjectChangeData data)
3045// "[SCENE OBJECT GROUP]: Updated root rotation of {0} {1} to {2}", 3766 {
3046// Name, LocalId, rot); 3767 // TODO this still as excessive *.Schedule*Update()s
3768
3769 if (part != null && part.ParentGroup != null)
3770 {
3771 ObjectChangeType change = data.change;
3772 bool togroup = ((change & ObjectChangeType.Group) != 0);
3773 // bool uniform = ((what & ObjectChangeType.UniformScale) != 0); not in use
3774
3775 SceneObjectGroup group = part.ParentGroup;
3776 PhysicsActor pha = group.RootPart.PhysActor;
3777
3778 updatetype updateType = updatetype.none;
3779
3780 if (togroup)
3781 {
3782 // related to group
3783 if ((change & (ObjectChangeType.Rotation | ObjectChangeType.Position)) != 0)
3784 {
3785 if ((change & ObjectChangeType.Rotation) != 0)
3786 {
3787 group.RootPart.UpdateRotation(data.rotation);
3788 updateType = updatetype.none;
3789 }
3790 if ((change & ObjectChangeType.Position) != 0)
3791 {
3792 if (IsAttachment || m_scene.Permissions.CanObjectEntry(group.UUID, false, data.position))
3793 UpdateGroupPosition(data.position);
3794 updateType = updatetype.groupterse;
3795 }
3796 else
3797 // ugly rotation update of all parts
3798 {
3799 group.AbsolutePosition = AbsolutePosition;
3800 }
3801
3802 }
3803 if ((change & ObjectChangeType.Scale) != 0)
3804 {
3805 if (pha != null)
3806 pha.Building = true;
3807
3808 group.GroupResize(data.scale);
3809 updateType = updatetype.none;
3810
3811 if (pha != null)
3812 pha.Building = false;
3813 }
3814 }
3815 else
3816 {
3817 // related to single prim in a link-set ( ie group)
3818 if (pha != null)
3819 pha.Building = true;
3820
3821 // root part is special
3822 // parts offset positions or rotations need to change also
3823
3824 if (part == group.RootPart)
3825 {
3826 if ((change & ObjectChangeType.Rotation) != 0)
3827 group.UpdateRootRotation(data.rotation);
3828 if ((change & ObjectChangeType.Position) != 0)
3829 group.UpdateRootPosition(data.position);
3830 if ((change & ObjectChangeType.Scale) != 0)
3831 part.Resize(data.scale);
3832 }
3833 else
3834 {
3835 if ((change & ObjectChangeType.Position) != 0)
3836 {
3837 part.OffsetPosition = data.position;
3838 updateType = updatetype.partterse;
3839 }
3840 if ((change & ObjectChangeType.Rotation) != 0)
3841 {
3842 part.UpdateRotation(data.rotation);
3843 updateType = updatetype.none;
3844 }
3845 if ((change & ObjectChangeType.Scale) != 0)
3846 {
3847 part.Resize(data.scale);
3848 updateType = updatetype.none;
3849 }
3850 }
3851
3852 if (pha != null)
3853 pha.Building = false;
3854 }
3855
3856 if (updateType != updatetype.none)
3857 {
3858 group.HasGroupChanged = true;
3859
3860 switch (updateType)
3861 {
3862 case updatetype.partterse:
3863 part.ScheduleTerseUpdate();
3864 break;
3865 case updatetype.partfull:
3866 part.ScheduleFullUpdate();
3867 break;
3868 case updatetype.groupterse:
3869 group.ScheduleGroupForTerseUpdate();
3870 break;
3871 case updatetype.groupfull:
3872 group.ScheduleGroupForFullUpdate();
3873 break;
3874 default:
3875 break;
3876 }
3877 }
3878 }
3047 } 3879 }
3048 3880
3049 #endregion 3881 #endregion
@@ -3142,10 +3974,11 @@ namespace OpenSim.Region.Framework.Scenes
3142 scriptPosTarget target = m_targets[idx]; 3974 scriptPosTarget target = m_targets[idx];
3143 if (Util.GetDistanceTo(target.targetPos, m_rootPart.GroupPosition) <= target.tolerance) 3975 if (Util.GetDistanceTo(target.targetPos, m_rootPart.GroupPosition) <= target.tolerance)
3144 { 3976 {
3977 at_target = true;
3978
3145 // trigger at_target 3979 // trigger at_target
3146 if (m_scriptListens_atTarget) 3980 if (m_scriptListens_atTarget)
3147 { 3981 {
3148 at_target = true;
3149 scriptPosTarget att = new scriptPosTarget(); 3982 scriptPosTarget att = new scriptPosTarget();
3150 att.targetPos = target.targetPos; 3983 att.targetPos = target.targetPos;
3151 att.tolerance = target.tolerance; 3984 att.tolerance = target.tolerance;
@@ -3263,11 +4096,50 @@ namespace OpenSim.Region.Framework.Scenes
3263 } 4096 }
3264 } 4097 }
3265 } 4098 }
3266 4099
4100 public Vector3 GetGeometricCenter()
4101 {
4102 // this is not real geometric center but a average of positions relative to root prim acording to
4103 // http://wiki.secondlife.com/wiki/llGetGeometricCenter
4104 // ignoring tortured prims details since sl also seems to ignore
4105 // so no real use in doing it on physics
4106
4107 Vector3 gc = Vector3.Zero;
4108
4109 int nparts = m_parts.Count;
4110 if (nparts <= 1)
4111 return gc;
4112
4113 SceneObjectPart[] parts = m_parts.GetArray();
4114 nparts = parts.Length; // just in case it changed
4115 if (nparts <= 1)
4116 return gc;
4117
4118 Quaternion parentRot = RootPart.RotationOffset;
4119 Vector3 pPos;
4120
4121 // average all parts positions
4122 for (int i = 0; i < nparts; i++)
4123 {
4124 // do it directly
4125 // gc += parts[i].GetWorldPosition();
4126 if (parts[i] != RootPart)
4127 {
4128 pPos = parts[i].OffsetPosition;
4129 gc += pPos;
4130 }
4131
4132 }
4133 gc /= nparts;
4134
4135 // relative to root:
4136// gc -= AbsolutePosition;
4137 return gc;
4138 }
4139
3267 public float GetMass() 4140 public float GetMass()
3268 { 4141 {
3269 float retmass = 0f; 4142 float retmass = 0f;
3270
3271 SceneObjectPart[] parts = m_parts.GetArray(); 4143 SceneObjectPart[] parts = m_parts.GetArray();
3272 for (int i = 0; i < parts.Length; i++) 4144 for (int i = 0; i < parts.Length; i++)
3273 retmass += parts[i].GetMass(); 4145 retmass += parts[i].GetMass();
@@ -3275,6 +4147,39 @@ namespace OpenSim.Region.Framework.Scenes
3275 return retmass; 4147 return retmass;
3276 } 4148 }
3277 4149
4150 // center of mass of full object
4151 public Vector3 GetCenterOfMass()
4152 {
4153 PhysicsActor pa = RootPart.PhysActor;
4154
4155 if(((RootPart.Flags & PrimFlags.Physics) !=0) && pa !=null)
4156 {
4157 // physics knows better about center of mass of physical prims
4158 Vector3 tmp = pa.CenterOfMass;
4159 return tmp;
4160 }
4161
4162 Vector3 Ptot = Vector3.Zero;
4163 float totmass = 0f;
4164 float m;
4165
4166 SceneObjectPart[] parts = m_parts.GetArray();
4167 for (int i = 0; i < parts.Length; i++)
4168 {
4169 m = parts[i].GetMass();
4170 Ptot += parts[i].GetPartCenterOfMass() * m;
4171 totmass += m;
4172 }
4173
4174 if (totmass == 0)
4175 totmass = 0;
4176 else
4177 totmass = 1 / totmass;
4178 Ptot *= totmass;
4179
4180 return Ptot;
4181 }
4182
3278 /// <summary> 4183 /// <summary>
3279 /// If the object is a sculpt/mesh, retrieve the mesh data for each part and reinsert it into each shape so that 4184 /// If the object is a sculpt/mesh, retrieve the mesh data for each part and reinsert it into each shape so that
3280 /// the physics engine can use it. 4185 /// the physics engine can use it.
@@ -3428,6 +4333,14 @@ namespace OpenSim.Region.Framework.Scenes
3428 FromItemID = uuid; 4333 FromItemID = uuid;
3429 } 4334 }
3430 4335
4336 public void ResetOwnerChangeFlag()
4337 {
4338 ForEachPart(delegate(SceneObjectPart part)
4339 {
4340 part.ResetOwnerChangeFlag();
4341 });
4342 }
4343
3431 #endregion 4344 #endregion
3432 } 4345 }
3433} 4346}
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
index 3d81358..f1e781c 100644
--- a/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneObjectPart.cs
@@ -62,7 +62,8 @@ namespace OpenSim.Region.Framework.Scenes
62 TELEPORT = 512, 62 TELEPORT = 512,
63 REGION_RESTART = 1024, 63 REGION_RESTART = 1024,
64 MEDIA = 2048, 64 MEDIA = 2048,
65 ANIMATION = 16384 65 ANIMATION = 16384,
66 POSITION = 32768
66 } 67 }
67 68
68 // I don't really know where to put this except here. 69 // I don't really know where to put this except here.
@@ -121,7 +122,18 @@ namespace OpenSim.Region.Framework.Scenes
121 /// Denote all sides of the prim 122 /// Denote all sides of the prim
122 /// </value> 123 /// </value>
123 public const int ALL_SIDES = -1; 124 public const int ALL_SIDES = -1;
124 125
126 private const scriptEvents PhysicsNeededSubsEvents = (
127 scriptEvents.collision | scriptEvents.collision_start | scriptEvents.collision_end |
128 scriptEvents.land_collision | scriptEvents.land_collision_start | scriptEvents.land_collision_end
129 );
130 private const scriptEvents PhyscicsPhantonSubsEvents = (
131 scriptEvents.land_collision | scriptEvents.land_collision_start | scriptEvents.land_collision_end
132 );
133 private const scriptEvents PhyscicsVolumeDtcSubsEvents = (
134 scriptEvents.collision_start | scriptEvents.collision_end
135 );
136
125 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); 137 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
126 138
127 /// <value> 139 /// <value>
@@ -176,12 +188,25 @@ namespace OpenSim.Region.Framework.Scenes
176 188
177 public double SoundRadius; 189 public double SoundRadius;
178 190
191
179 public uint TimeStampFull; 192 public uint TimeStampFull;
180 193
181 public uint TimeStampLastActivity; // Will be used for AutoReturn 194 public uint TimeStampLastActivity; // Will be used for AutoReturn
182 195
183 public uint TimeStampTerse; 196 public uint TimeStampTerse;
184 197
198 // The following two are to hold the attachment data
199 // while an object is inworld
200 [XmlIgnore]
201 public byte AttachPoint = 0;
202
203 [XmlIgnore]
204 public Vector3 AttachOffset = Vector3.Zero;
205
206 [XmlIgnore]
207 public Quaternion AttachRotation = Quaternion.Identity;
208
209 [XmlIgnore]
185 public int STATUS_ROTATE_X; 210 public int STATUS_ROTATE_X;
186 211
187 public int STATUS_ROTATE_Y; 212 public int STATUS_ROTATE_Y;
@@ -208,8 +233,7 @@ namespace OpenSim.Region.Framework.Scenes
208 233
209 public Vector3 RotationAxis = Vector3.One; 234 public Vector3 RotationAxis = Vector3.One;
210 235
211 public bool VolumeDetectActive; // XmlIgnore set to avoid problems with persistance until I come to care for this 236 public bool VolumeDetectActive;
212 // Certainly this must be a persistant setting finally
213 237
214 public bool IsWaitingForFirstSpinUpdatePacket; 238 public bool IsWaitingForFirstSpinUpdatePacket;
215 239
@@ -249,10 +273,10 @@ namespace OpenSim.Region.Framework.Scenes
249 private Quaternion m_sitTargetOrientation = Quaternion.Identity; 273 private Quaternion m_sitTargetOrientation = Quaternion.Identity;
250 private Vector3 m_sitTargetPosition; 274 private Vector3 m_sitTargetPosition;
251 private string m_sitAnimation = "SIT"; 275 private string m_sitAnimation = "SIT";
276 private bool m_occupied; // KF if any av is sitting on this prim
252 private string m_text = String.Empty; 277 private string m_text = String.Empty;
253 private string m_touchName = String.Empty; 278 private string m_touchName = String.Empty;
254 private readonly Stack<UndoState> m_undo = new Stack<UndoState>(5); 279 private UndoRedoState m_UndoRedo = null;
255 private readonly Stack<UndoState> m_redo = new Stack<UndoState>(5);
256 280
257 private bool m_passTouches = false; 281 private bool m_passTouches = false;
258 private bool m_passCollisions = false; 282 private bool m_passCollisions = false;
@@ -281,7 +305,19 @@ namespace OpenSim.Region.Framework.Scenes
281 protected Vector3 m_lastAcceleration; 305 protected Vector3 m_lastAcceleration;
282 protected Vector3 m_lastAngularVelocity; 306 protected Vector3 m_lastAngularVelocity;
283 protected int m_lastTerseSent; 307 protected int m_lastTerseSent;
284 308 protected float m_buoyancy = 0.0f;
309 protected Vector3 m_force;
310 protected Vector3 m_torque;
311
312 protected byte m_physicsShapeType = (byte)PhysShapeType.prim;
313 protected float m_density = 1000.0f; // in kg/m^3
314 protected float m_gravitymod = 1.0f;
315 protected float m_friction = 0.6f; // wood
316 protected float m_bounce = 0.5f; // wood
317
318
319 protected bool m_isSelected = false;
320
285 /// <summary> 321 /// <summary>
286 /// Stores media texture data 322 /// Stores media texture data
287 /// </summary> 323 /// </summary>
@@ -293,10 +329,25 @@ namespace OpenSim.Region.Framework.Scenes
293 private Vector3 m_cameraAtOffset; 329 private Vector3 m_cameraAtOffset;
294 private bool m_forceMouselook; 330 private bool m_forceMouselook;
295 331
296 // TODO: Collision sound should have default. 332
333 // 0 for default collision sounds, -1 for script disabled sound 1 for script defined sound
334 private sbyte m_collisionSoundType;
297 private UUID m_collisionSound; 335 private UUID m_collisionSound;
298 private float m_collisionSoundVolume; 336 private float m_collisionSoundVolume;
299 337
338 private int LastColSoundSentTime;
339
340
341 private SOPVehicle m_vehicle = null;
342
343 private KeyframeMotion m_keyframeMotion = null;
344
345 public KeyframeMotion KeyframeMotion
346 {
347 get; set;
348 }
349
350
300 #endregion Fields 351 #endregion Fields
301 352
302// ~SceneObjectPart() 353// ~SceneObjectPart()
@@ -325,6 +376,7 @@ namespace OpenSim.Region.Framework.Scenes
325 // this appears to have the same UUID (!) as the prim. If this isn't the case, one can't drag items from 376 // this appears to have the same UUID (!) as the prim. If this isn't the case, one can't drag items from
326 // the prim into an agent inventory (Linden client reports that the "Object not found for drop" in its log 377 // the prim into an agent inventory (Linden client reports that the "Object not found for drop" in its log
327 m_inventory = new SceneObjectPartInventory(this); 378 m_inventory = new SceneObjectPartInventory(this);
379 LastColSoundSentTime = Util.EnvironmentTickCount();
328 } 380 }
329 381
330 /// <summary> 382 /// <summary>
@@ -339,7 +391,7 @@ namespace OpenSim.Region.Framework.Scenes
339 UUID ownerID, PrimitiveBaseShape shape, Vector3 groupPosition, 391 UUID ownerID, PrimitiveBaseShape shape, Vector3 groupPosition,
340 Quaternion rotationOffset, Vector3 offsetPosition) : this() 392 Quaternion rotationOffset, Vector3 offsetPosition) : this()
341 { 393 {
342 m_name = "Primitive"; 394 m_name = "Object";
343 395
344 CreationDate = (int)Utils.DateTimeToUnixTime(Rezzed); 396 CreationDate = (int)Utils.DateTimeToUnixTime(Rezzed);
345 LastOwnerID = CreatorID = OwnerID = ownerID; 397 LastOwnerID = CreatorID = OwnerID = ownerID;
@@ -379,7 +431,7 @@ namespace OpenSim.Region.Framework.Scenes
379 private uint _ownerMask = (uint)PermissionMask.All; 431 private uint _ownerMask = (uint)PermissionMask.All;
380 private uint _groupMask = (uint)PermissionMask.None; 432 private uint _groupMask = (uint)PermissionMask.None;
381 private uint _everyoneMask = (uint)PermissionMask.None; 433 private uint _everyoneMask = (uint)PermissionMask.None;
382 private uint _nextOwnerMask = (uint)PermissionMask.All; 434 private uint _nextOwnerMask = (uint)(PermissionMask.Move | PermissionMask.Modify | PermissionMask.Transfer);
383 private PrimFlags _flags = PrimFlags.None; 435 private PrimFlags _flags = PrimFlags.None;
384 private DateTime m_expires; 436 private DateTime m_expires;
385 private DateTime m_rezzed; 437 private DateTime m_rezzed;
@@ -473,12 +525,16 @@ namespace OpenSim.Region.Framework.Scenes
473 } 525 }
474 526
475 /// <value> 527 /// <value>
476 /// Access should be via Inventory directly - this property temporarily remains for xml serialization purposes 528 /// Get the inventory list
477 /// </value> 529 /// </value>
478 public TaskInventoryDictionary TaskInventory 530 public TaskInventoryDictionary TaskInventory
479 { 531 {
480 get { return m_inventory.Items; } 532 get {
481 set { m_inventory.Items = value; } 533 return m_inventory.Items;
534 }
535 set {
536 m_inventory.Items = value;
537 }
482 } 538 }
483 539
484 /// <summary> 540 /// <summary>
@@ -528,20 +584,6 @@ namespace OpenSim.Region.Framework.Scenes
528 } 584 }
529 } 585 }
530 586
531 public byte Material
532 {
533 get { return (byte) m_material; }
534 set
535 {
536 m_material = (Material)value;
537
538 PhysicsActor pa = PhysActor;
539
540 if (pa != null)
541 pa.SetMaterial((int)value);
542 }
543 }
544
545 [XmlIgnore] 587 [XmlIgnore]
546 public bool PassTouches 588 public bool PassTouches
547 { 589 {
@@ -567,6 +609,18 @@ namespace OpenSim.Region.Framework.Scenes
567 } 609 }
568 } 610 }
569 611
612 public bool IsSelected
613 {
614 get { return m_isSelected; }
615 set
616 {
617 m_isSelected = value;
618 if (ParentGroup != null)
619 ParentGroup.PartSelectChanged(value);
620 }
621 }
622
623
570 public Dictionary<int, string> CollisionFilter 624 public Dictionary<int, string> CollisionFilter
571 { 625 {
572 get { return m_CollisionFilter; } 626 get { return m_CollisionFilter; }
@@ -635,14 +689,12 @@ namespace OpenSim.Region.Framework.Scenes
635 set { m_LoopSoundSlavePrims = value; } 689 set { m_LoopSoundSlavePrims = value; }
636 } 690 }
637 691
638
639 public Byte[] TextureAnimation 692 public Byte[] TextureAnimation
640 { 693 {
641 get { return m_TextureAnimation; } 694 get { return m_TextureAnimation; }
642 set { m_TextureAnimation = value; } 695 set { m_TextureAnimation = value; }
643 } 696 }
644 697
645
646 public Byte[] ParticleSystem 698 public Byte[] ParticleSystem
647 { 699 {
648 get { return m_particleSystem; } 700 get { return m_particleSystem; }
@@ -679,8 +731,12 @@ namespace OpenSim.Region.Framework.Scenes
679 { 731 {
680 // If this is a linkset, we don't want the physics engine mucking up our group position here. 732 // If this is a linkset, we don't want the physics engine mucking up our group position here.
681 PhysicsActor actor = PhysActor; 733 PhysicsActor actor = PhysActor;
682 if (actor != null && ParentID == 0) 734 if (ParentID == 0)
683 m_groupPosition = actor.Position; 735 {
736 if (actor != null)
737 m_groupPosition = actor.Position;
738 return m_groupPosition;
739 }
684 740
685 if (ParentGroup.IsAttachment) 741 if (ParentGroup.IsAttachment)
686 { 742 {
@@ -689,12 +745,14 @@ namespace OpenSim.Region.Framework.Scenes
689 return sp.AbsolutePosition; 745 return sp.AbsolutePosition;
690 } 746 }
691 747
748 // use root prim's group position. Physics may have updated it
749 if (ParentGroup.RootPart != this)
750 m_groupPosition = ParentGroup.RootPart.GroupPosition;
692 return m_groupPosition; 751 return m_groupPosition;
693 } 752 }
694 set 753 set
695 { 754 {
696 m_groupPosition = value; 755 m_groupPosition = value;
697
698 PhysicsActor actor = PhysActor; 756 PhysicsActor actor = PhysActor;
699 if (actor != null) 757 if (actor != null)
700 { 758 {
@@ -720,16 +778,6 @@ namespace OpenSim.Region.Framework.Scenes
720 m_log.Error("[SCENEOBJECTPART]: GROUP POSITION. " + e.Message); 778 m_log.Error("[SCENEOBJECTPART]: GROUP POSITION. " + e.Message);
721 } 779 }
722 } 780 }
723
724 // TODO if we decide to do sitting in a more SL compatible way (multiple avatars per prim), this has to be fixed, too
725 if (SitTargetAvatar != UUID.Zero)
726 {
727 ScenePresence avatar;
728 if (ParentGroup.Scene.TryGetScenePresence(SitTargetAvatar, out avatar))
729 {
730 avatar.ParentPosition = GetWorldPosition();
731 }
732 }
733 } 781 }
734 } 782 }
735 783
@@ -738,7 +786,7 @@ namespace OpenSim.Region.Framework.Scenes
738 get { return m_offsetPosition; } 786 get { return m_offsetPosition; }
739 set 787 set
740 { 788 {
741// StoreUndoState(); 789 Vector3 oldpos = m_offsetPosition;
742 m_offsetPosition = value; 790 m_offsetPosition = value;
743 791
744 if (ParentGroup != null && !ParentGroup.IsDeleted) 792 if (ParentGroup != null && !ParentGroup.IsDeleted)
@@ -753,7 +801,22 @@ namespace OpenSim.Region.Framework.Scenes
753 if (ParentGroup.Scene != null) 801 if (ParentGroup.Scene != null)
754 ParentGroup.Scene.PhysicsScene.AddPhysicsActorTaint(actor); 802 ParentGroup.Scene.PhysicsScene.AddPhysicsActorTaint(actor);
755 } 803 }
804
805 if (!m_parentGroup.m_dupeInProgress)
806 {
807 List<ScenePresence> avs = ParentGroup.GetLinkedAvatars();
808 foreach (ScenePresence av in avs)
809 {
810 if (av.ParentID == m_localId)
811 {
812 Vector3 offset = (m_offsetPosition - oldpos);
813 av.AbsolutePosition += offset;
814 av.SendAvatarDataToAllAgents();
815 }
816 }
817 }
756 } 818 }
819 TriggerScriptChangedEvent(Changed.POSITION);
757 } 820 }
758 } 821 }
759 822
@@ -802,7 +865,7 @@ namespace OpenSim.Region.Framework.Scenes
802 865
803 set 866 set
804 { 867 {
805 StoreUndoState(); 868// StoreUndoState();
806 m_rotationOffset = value; 869 m_rotationOffset = value;
807 870
808 PhysicsActor actor = PhysActor; 871 PhysicsActor actor = PhysActor;
@@ -890,7 +953,7 @@ namespace OpenSim.Region.Framework.Scenes
890 get 953 get
891 { 954 {
892 PhysicsActor actor = PhysActor; 955 PhysicsActor actor = PhysActor;
893 if ((actor != null) && actor.IsPhysical) 956 if ((actor != null) && actor.IsPhysical && ParentGroup.RootPart == this)
894 { 957 {
895 m_angularVelocity = actor.RotationalVelocity; 958 m_angularVelocity = actor.RotationalVelocity;
896 } 959 }
@@ -902,7 +965,16 @@ namespace OpenSim.Region.Framework.Scenes
902 /// <summary></summary> 965 /// <summary></summary>
903 public Vector3 Acceleration 966 public Vector3 Acceleration
904 { 967 {
905 get { return m_acceleration; } 968 get
969 {
970 PhysicsActor actor = PhysActor;
971 if (actor != null)
972 {
973 m_acceleration = actor.Acceleration;
974 }
975 return m_acceleration;
976 }
977
906 set { m_acceleration = value; } 978 set { m_acceleration = value; }
907 } 979 }
908 980
@@ -970,7 +1042,10 @@ namespace OpenSim.Region.Framework.Scenes
970 public PrimitiveBaseShape Shape 1042 public PrimitiveBaseShape Shape
971 { 1043 {
972 get { return m_shape; } 1044 get { return m_shape; }
973 set { m_shape = value;} 1045 set
1046 {
1047 m_shape = value;
1048 }
974 } 1049 }
975 1050
976 /// <summary> 1051 /// <summary>
@@ -983,7 +1058,6 @@ namespace OpenSim.Region.Framework.Scenes
983 { 1058 {
984 if (m_shape != null) 1059 if (m_shape != null)
985 { 1060 {
986 StoreUndoState();
987 1061
988 m_shape.Scale = value; 1062 m_shape.Scale = value;
989 1063
@@ -1010,6 +1084,7 @@ namespace OpenSim.Region.Framework.Scenes
1010 } 1084 }
1011 1085
1012 public UpdateRequired UpdateFlag { get; set; } 1086 public UpdateRequired UpdateFlag { get; set; }
1087 public bool UpdatePhysRequired { get; set; }
1013 1088
1014 /// <summary> 1089 /// <summary>
1015 /// Used for media on a prim. 1090 /// Used for media on a prim.
@@ -1050,10 +1125,7 @@ namespace OpenSim.Region.Framework.Scenes
1050 { 1125 {
1051 get 1126 get
1052 { 1127 {
1053 if (ParentGroup.IsAttachment) 1128 return GroupPosition + (m_offsetPosition * ParentGroup.RootPart.RotationOffset);
1054 return GroupPosition;
1055
1056 return m_offsetPosition + m_groupPosition;
1057 } 1129 }
1058 } 1130 }
1059 1131
@@ -1231,6 +1303,13 @@ namespace OpenSim.Region.Framework.Scenes
1231 _flags = value; 1303 _flags = value;
1232 } 1304 }
1233 } 1305 }
1306
1307 [XmlIgnore]
1308 public bool IsOccupied // KF If an av is sittingon this prim
1309 {
1310 get { return m_occupied; }
1311 set { m_occupied = value; }
1312 }
1234 1313
1235 /// <summary> 1314 /// <summary>
1236 /// ID of the avatar that is sat on us. If there is no such avatar then is UUID.Zero 1315 /// ID of the avatar that is sat on us. If there is no such avatar then is UUID.Zero
@@ -1274,12 +1353,41 @@ namespace OpenSim.Region.Framework.Scenes
1274 set { m_sitAnimation = value; } 1353 set { m_sitAnimation = value; }
1275 } 1354 }
1276 1355
1356 public UUID invalidCollisionSoundUUID = new UUID("ffffffff-ffff-ffff-ffff-ffffffffffff");
1357
1358 // 0 for default collision sounds, -1 for script disabled sound 1 for script defined sound
1359 // runtime thing.. do not persist
1360 [XmlIgnore]
1361 public sbyte CollisionSoundType
1362 {
1363 get
1364 {
1365 return m_collisionSoundType;
1366 }
1367 set
1368 {
1369 m_collisionSoundType = value;
1370 if (value == -1)
1371 m_collisionSound = invalidCollisionSoundUUID;
1372 else if (value == 0)
1373 m_collisionSound = UUID.Zero;
1374 }
1375 }
1376
1277 public UUID CollisionSound 1377 public UUID CollisionSound
1278 { 1378 {
1279 get { return m_collisionSound; } 1379 get { return m_collisionSound; }
1280 set 1380 set
1281 { 1381 {
1282 m_collisionSound = value; 1382 m_collisionSound = value;
1383
1384 if (value == invalidCollisionSoundUUID)
1385 m_collisionSoundType = -1;
1386 else if (value == UUID.Zero)
1387 m_collisionSoundType = 0;
1388 else
1389 m_collisionSoundType = 1;
1390
1283 aggregateScriptEvents(); 1391 aggregateScriptEvents();
1284 } 1392 }
1285 } 1393 }
@@ -1290,6 +1398,319 @@ namespace OpenSim.Region.Framework.Scenes
1290 set { m_collisionSoundVolume = value; } 1398 set { m_collisionSoundVolume = value; }
1291 } 1399 }
1292 1400
1401 public float Buoyancy
1402 {
1403 get
1404 {
1405 if (ParentGroup.RootPart == this)
1406 return m_buoyancy;
1407
1408 return ParentGroup.RootPart.Buoyancy;
1409 }
1410 set
1411 {
1412 if (ParentGroup != null && ParentGroup.RootPart != null && ParentGroup.RootPart != this)
1413 {
1414 ParentGroup.RootPart.Buoyancy = value;
1415 return;
1416 }
1417 m_buoyancy = value;
1418 if (PhysActor != null)
1419 PhysActor.Buoyancy = value;
1420 }
1421 }
1422
1423 public Vector3 Force
1424 {
1425 get
1426 {
1427 if (ParentGroup.RootPart == this)
1428 return m_force;
1429
1430 return ParentGroup.RootPart.Force;
1431 }
1432
1433 set
1434 {
1435 if (ParentGroup != null && ParentGroup.RootPart != null && ParentGroup.RootPart != this)
1436 {
1437 ParentGroup.RootPart.Force = value;
1438 return;
1439 }
1440 m_force = value;
1441 if (PhysActor != null)
1442 PhysActor.Force = value;
1443 }
1444 }
1445
1446 public Vector3 Torque
1447 {
1448 get
1449 {
1450 if (ParentGroup.RootPart == this)
1451 return m_torque;
1452
1453 return ParentGroup.RootPart.Torque;
1454 }
1455
1456 set
1457 {
1458 if (ParentGroup != null && ParentGroup.RootPart != null && ParentGroup.RootPart != this)
1459 {
1460 ParentGroup.RootPart.Torque = value;
1461 return;
1462 }
1463 m_torque = value;
1464 if (PhysActor != null)
1465 PhysActor.Torque = value;
1466 }
1467 }
1468
1469 public byte Material
1470 {
1471 get { return (byte)m_material; }
1472 set
1473 {
1474 if (value >= 0 && value <= (byte)SOPMaterialData.MaxMaterial)
1475 {
1476 bool update = false;
1477
1478 if (m_material != (Material)value)
1479 {
1480 update = true;
1481 m_material = (Material)value;
1482 }
1483
1484 if (m_friction != SOPMaterialData.friction(m_material))
1485 {
1486 update = true;
1487 m_friction = SOPMaterialData.friction(m_material);
1488 }
1489
1490 if (m_bounce != SOPMaterialData.bounce(m_material))
1491 {
1492 update = true;
1493 m_bounce = SOPMaterialData.bounce(m_material);
1494 }
1495
1496 if (update)
1497 {
1498 if (PhysActor != null)
1499 {
1500 PhysActor.SetMaterial((int)value);
1501 }
1502 if(ParentGroup != null)
1503 ParentGroup.HasGroupChanged = true;
1504 ScheduleFullUpdateIfNone();
1505 UpdatePhysRequired = true;
1506 }
1507 }
1508 }
1509 }
1510
1511 // not a propriety to move to methods place later
1512 private bool HasMesh()
1513 {
1514 if (Shape != null && (Shape.SculptType == (byte)SculptType.Mesh))
1515 return true;
1516 return false;
1517 }
1518
1519 // not a propriety to move to methods place later
1520 public byte DefaultPhysicsShapeType()
1521 {
1522 byte type;
1523
1524 if (Shape != null && (Shape.SculptType == (byte)SculptType.Mesh))
1525 type = (byte)PhysShapeType.convex;
1526 else
1527 type = (byte)PhysShapeType.prim;
1528
1529 return type;
1530 }
1531
1532 [XmlIgnore]
1533 public bool UsesComplexCost
1534 {
1535 get
1536 {
1537 byte pst = PhysicsShapeType;
1538 if(pst == (byte) PhysShapeType.none || pst == (byte) PhysShapeType.convex || HasMesh())
1539 return true;
1540 return false;
1541 }
1542 }
1543
1544 [XmlIgnore]
1545 public float PhysicsCost
1546 {
1547 get
1548 {
1549 if(PhysicsShapeType == (byte)PhysShapeType.none)
1550 return 0;
1551
1552 float cost = 0.1f;
1553 if (PhysActor != null)
1554// cost += PhysActor.Cost;
1555
1556 if ((Flags & PrimFlags.Physics) != 0)
1557 cost *= (1.0f + 0.01333f * Scale.LengthSquared()); // 0.01333 == 0.04/3
1558 return cost;
1559 }
1560 }
1561
1562 [XmlIgnore]
1563 public float StreamingCost
1564 {
1565 get
1566 {
1567
1568
1569 return 0.1f;
1570 }
1571 }
1572
1573 [XmlIgnore]
1574 public float SimulationCost
1575 {
1576 get
1577 {
1578 // ignoring scripts. Don't like considering them for this
1579 if((Flags & PrimFlags.Physics) != 0)
1580 return 1.0f;
1581
1582 return 0.5f;
1583 }
1584 }
1585
1586 public byte PhysicsShapeType
1587 {
1588 get { return m_physicsShapeType; }
1589 set
1590 {
1591 byte oldv = m_physicsShapeType;
1592
1593 if (value >= 0 && value <= (byte)PhysShapeType.convex)
1594 {
1595 if (value == (byte)PhysShapeType.none && ParentGroup != null && ParentGroup.RootPart == this)
1596 m_physicsShapeType = DefaultPhysicsShapeType();
1597 else
1598 m_physicsShapeType = value;
1599 }
1600 else
1601 m_physicsShapeType = DefaultPhysicsShapeType();
1602
1603 if (m_physicsShapeType != oldv && ParentGroup != null)
1604 {
1605 if (m_physicsShapeType == (byte)PhysShapeType.none)
1606 {
1607 if (PhysActor != null)
1608 {
1609 Velocity = new Vector3(0, 0, 0);
1610 Acceleration = new Vector3(0, 0, 0);
1611 if (ParentGroup.RootPart == this)
1612 AngularVelocity = new Vector3(0, 0, 0);
1613 ParentGroup.Scene.RemovePhysicalPrim(1);
1614 RemoveFromPhysics();
1615 }
1616 }
1617 else if (PhysActor == null)
1618 {
1619 ApplyPhysics((uint)Flags, VolumeDetectActive, false);
1620 UpdatePhysicsSubscribedEvents();
1621 }
1622 else
1623 {
1624 PhysActor.PhysicsShapeType = m_physicsShapeType;
1625 if (Shape.SculptEntry)
1626 CheckSculptAndLoad();
1627 }
1628
1629 if (ParentGroup != null)
1630 ParentGroup.HasGroupChanged = true;
1631 }
1632
1633 if (m_physicsShapeType != value)
1634 {
1635 UpdatePhysRequired = true;
1636 }
1637 }
1638 }
1639
1640 public float Density // in kg/m^3
1641 {
1642 get { return m_density; }
1643 set
1644 {
1645 if (value >=1 && value <= 22587.0)
1646 {
1647 m_density = value;
1648 UpdatePhysRequired = true;
1649 }
1650
1651 ScheduleFullUpdateIfNone();
1652
1653 if (ParentGroup != null)
1654 ParentGroup.HasGroupChanged = true;
1655 }
1656 }
1657
1658 public float GravityModifier
1659 {
1660 get { return m_gravitymod; }
1661 set
1662 {
1663 if( value >= -1 && value <=28.0f)
1664 {
1665 m_gravitymod = value;
1666 UpdatePhysRequired = true;
1667 }
1668
1669 ScheduleFullUpdateIfNone();
1670
1671 if (ParentGroup != null)
1672 ParentGroup.HasGroupChanged = true;
1673
1674 }
1675 }
1676
1677 public float Friction
1678 {
1679 get { return m_friction; }
1680 set
1681 {
1682 if (value >= 0 && value <= 255.0f)
1683 {
1684 m_friction = value;
1685 UpdatePhysRequired = true;
1686 }
1687
1688 ScheduleFullUpdateIfNone();
1689
1690 if (ParentGroup != null)
1691 ParentGroup.HasGroupChanged = true;
1692 }
1693 }
1694
1695 public float Bounciness
1696 {
1697 get { return m_bounce; }
1698 set
1699 {
1700 if (value >= 0 && value <= 1.0f)
1701 {
1702 m_bounce = value;
1703 UpdatePhysRequired = true;
1704 }
1705
1706 ScheduleFullUpdateIfNone();
1707
1708 if (ParentGroup != null)
1709 ParentGroup.HasGroupChanged = true;
1710 }
1711 }
1712
1713
1293 #endregion Public Properties with only Get 1714 #endregion Public Properties with only Get
1294 1715
1295 private uint ApplyMask(uint val, bool set, uint mask) 1716 private uint ApplyMask(uint val, bool set, uint mask)
@@ -1455,7 +1876,7 @@ namespace OpenSim.Region.Framework.Scenes
1455 impulse = newimpulse; 1876 impulse = newimpulse;
1456 } 1877 }
1457 1878
1458 ParentGroup.applyAngularImpulse(impulse); 1879 ParentGroup.ApplyAngularImpulse(impulse);
1459 } 1880 }
1460 1881
1461 /// <summary> 1882 /// <summary>
@@ -1465,20 +1886,24 @@ namespace OpenSim.Region.Framework.Scenes
1465 /// </summary> 1886 /// </summary>
1466 /// <param name="impulsei">Vector force</param> 1887 /// <param name="impulsei">Vector force</param>
1467 /// <param name="localGlobalTF">true for the local frame, false for the global frame</param> 1888 /// <param name="localGlobalTF">true for the local frame, false for the global frame</param>
1468 public void SetAngularImpulse(Vector3 impulsei, bool localGlobalTF) 1889
1890 // this is actualy Set Torque.. keeping naming so not to edit lslapi also
1891 public void SetAngularImpulse(Vector3 torquei, bool localGlobalTF)
1469 { 1892 {
1470 Vector3 impulse = impulsei; 1893 Vector3 torque = torquei;
1471 1894
1472 if (localGlobalTF) 1895 if (localGlobalTF)
1473 { 1896 {
1897/*
1474 Quaternion grot = GetWorldRotation(); 1898 Quaternion grot = GetWorldRotation();
1475 Quaternion AXgrot = grot; 1899 Quaternion AXgrot = grot;
1476 Vector3 AXimpulsei = impulsei; 1900 Vector3 AXimpulsei = impulsei;
1477 Vector3 newimpulse = AXimpulsei * AXgrot; 1901 Vector3 newimpulse = AXimpulsei * AXgrot;
1478 impulse = newimpulse; 1902 */
1903 torque *= GetWorldRotation();
1479 } 1904 }
1480 1905
1481 ParentGroup.setAngularImpulse(impulse); 1906 Torque = torque;
1482 } 1907 }
1483 1908
1484 /// <summary> 1909 /// <summary>
@@ -1486,17 +1911,23 @@ namespace OpenSim.Region.Framework.Scenes
1486 /// </summary> 1911 /// </summary>
1487 /// <param name="rootObjectFlags"></param> 1912 /// <param name="rootObjectFlags"></param>
1488 /// <param name="VolumeDetectActive"></param> 1913 /// <param name="VolumeDetectActive"></param>
1489 public void ApplyPhysics(uint rootObjectFlags, bool VolumeDetectActive) 1914 /// <param name="building"></param>
1915
1916 public void ApplyPhysics(uint _ObjectFlags, bool _VolumeDetectActive, bool building)
1490 { 1917 {
1918 VolumeDetectActive = _VolumeDetectActive;
1919
1491 if (!ParentGroup.Scene.CollidablePrims) 1920 if (!ParentGroup.Scene.CollidablePrims)
1492 return; 1921 return;
1493 1922
1494// m_log.DebugFormat( 1923 if (PhysicsShapeType == (byte)PhysShapeType.none)
1495// "[SCENE OBJECT PART]: Applying physics to {0} {1}, m_physicalPrim {2}", 1924 return;
1496// Name, LocalId, UUID, m_physicalPrim); 1925
1926 bool isPhysical = (_ObjectFlags & (uint) PrimFlags.Physics) != 0;
1927 bool isPhantom = (_ObjectFlags & (uint)PrimFlags.Phantom) != 0;
1497 1928
1498 bool isPhysical = (rootObjectFlags & (uint) PrimFlags.Physics) != 0; 1929 if (_VolumeDetectActive)
1499 bool isPhantom = (rootObjectFlags & (uint) PrimFlags.Phantom) != 0; 1930 isPhantom = true;
1500 1931
1501 if (IsJoint()) 1932 if (IsJoint())
1502 { 1933 {
@@ -1504,22 +1935,14 @@ namespace OpenSim.Region.Framework.Scenes
1504 } 1935 }
1505 else 1936 else
1506 { 1937 {
1507 // Special case for VolumeDetection: If VolumeDetection is set, the phantom flag is locally ignored 1938 if ((!isPhantom || isPhysical || _VolumeDetectActive) && !ParentGroup.IsAttachment
1508 if (VolumeDetectActive) 1939 && !(Shape.PathCurve == (byte)Extrusion.Flexible))
1509 isPhantom = false;
1510
1511 // The only time the physics scene shouldn't know about the prim is if it's phantom or an attachment, which is phantom by definition
1512 // or flexible
1513 if (!isPhantom && !ParentGroup.IsAttachment && !(Shape.PathCurve == (byte)Extrusion.Flexible))
1514 { 1940 {
1515 // Added clarification.. since A rigid body is an object that you can kick around, etc. 1941 AddToPhysics(isPhysical, isPhantom, building, isPhysical);
1516 bool rigidBody = isPhysical && !isPhantom; 1942 UpdatePhysicsSubscribedEvents(); // not sure if appliable here
1517
1518 PhysicsActor pa = AddToPhysics(rigidBody);
1519
1520 if (pa != null)
1521 pa.SetVolumeDetect(VolumeDetectActive ? 1 : 0);
1522 } 1943 }
1944 else
1945 PhysActor = null; // just to be sure
1523 } 1946 }
1524 } 1947 }
1525 1948
@@ -1571,6 +1994,12 @@ namespace OpenSim.Region.Framework.Scenes
1571 dupe.Category = Category; 1994 dupe.Category = Category;
1572 dupe.m_rezzed = m_rezzed; 1995 dupe.m_rezzed = m_rezzed;
1573 1996
1997 dupe.m_UndoRedo = null;
1998 dupe.m_isSelected = false;
1999
2000 dupe.IgnoreUndoUpdate = false;
2001 dupe.Undoing = false;
2002
1574 dupe.m_inventory = new SceneObjectPartInventory(dupe); 2003 dupe.m_inventory = new SceneObjectPartInventory(dupe);
1575 dupe.m_inventory.Items = (TaskInventoryDictionary)m_inventory.Items.Clone(); 2004 dupe.m_inventory.Items = (TaskInventoryDictionary)m_inventory.Items.Clone();
1576 2005
@@ -1586,6 +2015,7 @@ namespace OpenSim.Region.Framework.Scenes
1586 2015
1587 // Move afterwards ResetIDs as it clears the localID 2016 // Move afterwards ResetIDs as it clears the localID
1588 dupe.LocalId = localID; 2017 dupe.LocalId = localID;
2018
1589 // This may be wrong... it might have to be applied in SceneObjectGroup to the object that's being duplicated. 2019 // This may be wrong... it might have to be applied in SceneObjectGroup to the object that's being duplicated.
1590 dupe.LastOwnerID = OwnerID; 2020 dupe.LastOwnerID = OwnerID;
1591 2021
@@ -1603,8 +2033,12 @@ namespace OpenSim.Region.Framework.Scenes
1603 2033
1604 bool UsePhysics = ((dupe.Flags & PrimFlags.Physics) != 0); 2034 bool UsePhysics = ((dupe.Flags & PrimFlags.Physics) != 0);
1605 dupe.DoPhysicsPropertyUpdate(UsePhysics, true); 2035 dupe.DoPhysicsPropertyUpdate(UsePhysics, true);
2036// dupe.UpdatePhysicsSubscribedEvents(); // not sure...
1606 } 2037 }
1607 2038
2039 if (dupe.PhysActor != null)
2040 dupe.PhysActor.LocalID = localID;
2041
1608 ParentGroup.Scene.EventManager.TriggerOnSceneObjectPartCopy(dupe, this, userExposed); 2042 ParentGroup.Scene.EventManager.TriggerOnSceneObjectPartCopy(dupe, this, userExposed);
1609 2043
1610// m_log.DebugFormat("[SCENE OBJECT PART]: Clone of {0} {1} finished", Name, UUID); 2044// m_log.DebugFormat("[SCENE OBJECT PART]: Clone of {0} {1} finished", Name, UUID);
@@ -1724,6 +2158,7 @@ namespace OpenSim.Region.Framework.Scenes
1724 2158
1725 /// <summary> 2159 /// <summary>
1726 /// Do a physics propery update for this part. 2160 /// Do a physics propery update for this part.
2161 /// now also updates phantom and volume detector
1727 /// </summary> 2162 /// </summary>
1728 /// <param name="UsePhysics"></param> 2163 /// <param name="UsePhysics"></param>
1729 /// <param name="isNew"></param> 2164 /// <param name="isNew"></param>
@@ -1749,61 +2184,69 @@ namespace OpenSim.Region.Framework.Scenes
1749 { 2184 {
1750 if (pa.IsPhysical) // implies UsePhysics==false for this block 2185 if (pa.IsPhysical) // implies UsePhysics==false for this block
1751 { 2186 {
1752 if (!isNew) 2187 if (!isNew) // implies UsePhysics==false for this block
2188 {
1753 ParentGroup.Scene.RemovePhysicalPrim(1); 2189 ParentGroup.Scene.RemovePhysicalPrim(1);
1754 2190
1755 pa.OnRequestTerseUpdate -= PhysicsRequestingTerseUpdate; 2191 Velocity = new Vector3(0, 0, 0);
1756 pa.OnOutOfBounds -= PhysicsOutOfBounds; 2192 Acceleration = new Vector3(0, 0, 0);
1757 pa.delink(); 2193 if (ParentGroup.RootPart == this)
2194 AngularVelocity = new Vector3(0, 0, 0);
1758 2195
1759 if (ParentGroup.Scene.PhysicsScene.SupportsNINJAJoints && (!isNew)) 2196 if (pa.Phantom && !VolumeDetectActive)
1760 { 2197 {
1761 // destroy all joints connected to this now deactivated body 2198 RemoveFromPhysics();
1762 ParentGroup.Scene.PhysicsScene.RemoveAllJointsConnectedToActorThreadLocked(pa); 2199 return;
1763 } 2200 }
1764 2201
1765 // stop client-side interpolation of all joint proxy objects that have just been deleted 2202 pa.IsPhysical = UsePhysics;
1766 // this is done because RemoveAllJointsConnectedToActor invokes the OnJointDeactivated callback, 2203 pa.OnRequestTerseUpdate -= PhysicsRequestingTerseUpdate;
1767 // which stops client-side interpolation of deactivated joint proxy objects. 2204 pa.OnOutOfBounds -= PhysicsOutOfBounds;
2205 pa.delink();
2206 if (ParentGroup.Scene.PhysicsScene.SupportsNINJAJoints)
2207 {
2208 // destroy all joints connected to this now deactivated body
2209 ParentGroup.Scene.PhysicsScene.RemoveAllJointsConnectedToActorThreadLocked(pa);
2210 }
2211 }
1768 } 2212 }
1769 2213
1770 if (!UsePhysics && !isNew) 2214 if (pa.IsPhysical != UsePhysics)
1771 { 2215 pa.IsPhysical = UsePhysics;
1772 // reset velocity to 0 on physics switch-off. Without that, the client thinks the
1773 // prim still has velocity and continues to interpolate its position along the old
1774 // velocity-vector.
1775 Velocity = new Vector3(0, 0, 0);
1776 Acceleration = new Vector3(0, 0, 0);
1777 AngularVelocity = new Vector3(0, 0, 0);
1778 //RotationalVelocity = new Vector3(0, 0, 0);
1779 }
1780 2216
1781 pa.IsPhysical = UsePhysics; 2217 if (UsePhysics)
2218 {
2219 if (ParentGroup.RootPart.KeyframeMotion != null)
2220 ParentGroup.RootPart.KeyframeMotion.Stop();
2221 ParentGroup.RootPart.KeyframeMotion = null;
2222 ParentGroup.Scene.AddPhysicalPrim(1);
1782 2223
1783 // If we're not what we're supposed to be in the physics scene, recreate ourselves. 2224 PhysActor.OnRequestTerseUpdate += PhysicsRequestingTerseUpdate;
1784 //m_parentGroup.Scene.PhysicsScene.RemovePrim(PhysActor); 2225 PhysActor.OnOutOfBounds += PhysicsOutOfBounds;
1785 /// that's not wholesome. Had to make Scene public
1786 //PhysActor = null;
1787 2226
1788 if ((Flags & PrimFlags.Phantom) == 0) 2227 if (ParentID != 0 && ParentID != LocalId)
1789 {
1790 if (UsePhysics)
1791 { 2228 {
1792 ParentGroup.Scene.AddPhysicalPrim(1); 2229 PhysicsActor parentPa = ParentGroup.RootPart.PhysActor;
1793 2230
1794 pa.OnRequestTerseUpdate += PhysicsRequestingTerseUpdate; 2231 if (parentPa != null)
1795 pa.OnOutOfBounds += PhysicsOutOfBounds;
1796 if (ParentID != 0 && ParentID != LocalId)
1797 { 2232 {
1798 PhysicsActor parentPa = ParentGroup.RootPart.PhysActor; 2233 pa.link(parentPa);
1799
1800 if (parentPa != null)
1801 {
1802 pa.link(parentPa);
1803 }
1804 } 2234 }
1805 } 2235 }
1806 } 2236 }
2237 }
2238
2239 bool phan = ((Flags & PrimFlags.Phantom) != 0);
2240 if (pa.Phantom != phan)
2241 pa.Phantom = phan;
2242
2243// some engines dont' have this check still
2244// if (VolumeDetectActive != pa.IsVolumeDtc)
2245 {
2246 if (VolumeDetectActive)
2247 pa.SetVolumeDetect(1);
2248 else
2249 pa.SetVolumeDetect(0);
1807 } 2250 }
1808 2251
1809 // If this part is a sculpt then delay the physics update until we've asynchronously loaded the 2252 // If this part is a sculpt then delay the physics update until we've asynchronously loaded the
@@ -1922,12 +2365,26 @@ namespace OpenSim.Region.Framework.Scenes
1922 2365
1923 public Vector3 GetGeometricCenter() 2366 public Vector3 GetGeometricCenter()
1924 { 2367 {
1925 PhysicsActor pa = PhysActor; 2368 // this is not real geometric center but a average of positions relative to root prim acording to
1926 2369 // http://wiki.secondlife.com/wiki/llGetGeometricCenter
1927 if (pa != null) 2370 // ignoring tortured prims details since sl also seems to ignore
1928 return new Vector3(pa.CenterOfMass.X, pa.CenterOfMass.Y, pa.CenterOfMass.Z); 2371 // so no real use in doing it on physics
1929 else 2372 if (ParentGroup.IsDeleted)
1930 return new Vector3(0, 0, 0); 2373 return new Vector3(0, 0, 0);
2374
2375 return ParentGroup.GetGeometricCenter();
2376
2377 /*
2378 PhysicsActor pa = PhysActor;
2379
2380 if (pa != null)
2381 {
2382 Vector3 vtmp = pa.CenterOfMass;
2383 return vtmp;
2384 }
2385 else
2386 return new Vector3(0, 0, 0);
2387 */
1931 } 2388 }
1932 2389
1933 public float GetMass() 2390 public float GetMass()
@@ -1940,14 +2397,43 @@ namespace OpenSim.Region.Framework.Scenes
1940 return 0; 2397 return 0;
1941 } 2398 }
1942 2399
1943 public Vector3 GetForce() 2400 public Vector3 GetCenterOfMass()
2401 {
2402 if (ParentGroup.RootPart == this)
2403 {
2404 if (ParentGroup.IsDeleted)
2405 return AbsolutePosition;
2406 return ParentGroup.GetCenterOfMass();
2407 }
2408
2409 PhysicsActor pa = PhysActor;
2410
2411 if (pa != null)
2412 {
2413 Vector3 tmp = pa.CenterOfMass;
2414 return tmp;
2415 }
2416 else
2417 return AbsolutePosition;
2418 }
2419
2420 public Vector3 GetPartCenterOfMass()
1944 { 2421 {
1945 PhysicsActor pa = PhysActor; 2422 PhysicsActor pa = PhysActor;
1946 2423
1947 if (pa != null) 2424 if (pa != null)
1948 return pa.Force; 2425 {
2426 Vector3 tmp = pa.CenterOfMass;
2427 return tmp;
2428 }
1949 else 2429 else
1950 return Vector3.Zero; 2430 return AbsolutePosition;
2431 }
2432
2433
2434 public Vector3 GetForce()
2435 {
2436 return Force;
1951 } 2437 }
1952 2438
1953 /// <summary> 2439 /// <summary>
@@ -2154,15 +2640,25 @@ namespace OpenSim.Region.Framework.Scenes
2154 2640
2155 private void SendLandCollisionEvent(scriptEvents ev, ScriptCollidingNotification notify) 2641 private void SendLandCollisionEvent(scriptEvents ev, ScriptCollidingNotification notify)
2156 { 2642 {
2157 if ((ParentGroup.RootPart.ScriptEvents & ev) != 0) 2643 bool sendToRoot = true;
2158 {
2159 ColliderArgs LandCollidingMessage = new ColliderArgs();
2160 List<DetectedObject> colliding = new List<DetectedObject>();
2161
2162 colliding.Add(CreateDetObjectForGround());
2163 LandCollidingMessage.Colliders = colliding;
2164 2644
2645 ColliderArgs LandCollidingMessage = new ColliderArgs();
2646 List<DetectedObject> colliding = new List<DetectedObject>();
2647
2648 colliding.Add(CreateDetObjectForGround());
2649 LandCollidingMessage.Colliders = colliding;
2650
2651 if (Inventory.ContainsScripts())
2652 {
2653 if (!PassCollisions)
2654 sendToRoot = false;
2655 }
2656 if ((ScriptEvents & ev) != 0)
2165 notify(LocalId, LandCollidingMessage); 2657 notify(LocalId, LandCollidingMessage);
2658
2659 if ((ParentGroup.RootPart.ScriptEvents & ev) != 0 && sendToRoot)
2660 {
2661 notify(ParentGroup.RootPart.LocalId, LandCollidingMessage);
2166 } 2662 }
2167 } 2663 }
2168 2664
@@ -2178,45 +2674,87 @@ namespace OpenSim.Region.Framework.Scenes
2178 List<uint> endedColliders = new List<uint>(); 2674 List<uint> endedColliders = new List<uint>();
2179 List<uint> startedColliders = new List<uint>(); 2675 List<uint> startedColliders = new List<uint>();
2180 2676
2181 // calculate things that started colliding this time 2677 if (collissionswith.Count == 0)
2182 // and build up list of colliders this time
2183 foreach (uint localid in collissionswith.Keys)
2184 { 2678 {
2185 thisHitColliders.Add(localid); 2679 if (m_lastColliders.Count == 0)
2186 if (!m_lastColliders.Contains(localid)) 2680 return; // nothing to do
2187 startedColliders.Add(localid);
2188 }
2189 2681
2190 // calculate things that ended colliding 2682 foreach (uint localID in m_lastColliders)
2191 foreach (uint localID in m_lastColliders) 2683 {
2192 {
2193 if (!thisHitColliders.Contains(localID))
2194 endedColliders.Add(localID); 2684 endedColliders.Add(localID);
2685 }
2686 m_lastColliders.Clear();
2195 } 2687 }
2196 2688
2197 //add the items that started colliding this time to the last colliders list. 2689 else
2198 foreach (uint localID in startedColliders) 2690 {
2199 m_lastColliders.Add(localID); 2691 List<CollisionForSoundInfo> soundinfolist = new List<CollisionForSoundInfo>();
2692
2693 // calculate things that started colliding this time
2694 // and build up list of colliders this time
2695 if (!VolumeDetectActive && CollisionSoundType >= 0)
2696 {
2697 CollisionForSoundInfo soundinfo;
2698 ContactPoint curcontact;
2699
2700 foreach (uint id in collissionswith.Keys)
2701 {
2702 thisHitColliders.Add(id);
2703 if (!m_lastColliders.Contains(id))
2704 {
2705 startedColliders.Add(id);
2706
2707 curcontact = collissionswith[id];
2708 if (Math.Abs(curcontact.RelativeSpeed) > 0.2)
2709 {
2710 soundinfo = new CollisionForSoundInfo();
2711 soundinfo.colliderID = id;
2712 soundinfo.position = curcontact.Position;
2713 soundinfo.relativeVel = curcontact.RelativeSpeed;
2714 soundinfolist.Add(soundinfo);
2715 }
2716 }
2717 }
2718 }
2719 else
2720 {
2721 foreach (uint id in collissionswith.Keys)
2722 {
2723 thisHitColliders.Add(id);
2724 if (!m_lastColliders.Contains(id))
2725 startedColliders.Add(id);
2726 }
2727 }
2728
2729 // calculate things that ended colliding
2730 foreach (uint localID in m_lastColliders)
2731 {
2732 if (!thisHitColliders.Contains(localID))
2733 endedColliders.Add(localID);
2734 }
2735
2736 //add the items that started colliding this time to the last colliders list.
2737 foreach (uint localID in startedColliders)
2738 m_lastColliders.Add(localID);
2200 2739
2201 // remove things that ended colliding from the last colliders list 2740 // remove things that ended colliding from the last colliders list
2202 foreach (uint localID in endedColliders) 2741 foreach (uint localID in endedColliders)
2203 m_lastColliders.Remove(localID); 2742 m_lastColliders.Remove(localID);
2204 2743
2205 // play the sound. 2744 // play sounds.
2206 if (startedColliders.Count > 0 && CollisionSound != UUID.Zero && CollisionSoundVolume > 0.0f) 2745 if (soundinfolist.Count > 0)
2207 SendSound(CollisionSound.ToString(), CollisionSoundVolume, true, (byte)0, 0, false, false); 2746 CollisionSounds.PartCollisionSound(this, soundinfolist);
2747 }
2208 2748
2209 SendCollisionEvent(scriptEvents.collision_start, startedColliders, ParentGroup.Scene.EventManager.TriggerScriptCollidingStart); 2749 SendCollisionEvent(scriptEvents.collision_start, startedColliders, ParentGroup.Scene.EventManager.TriggerScriptCollidingStart);
2210 SendCollisionEvent(scriptEvents.collision , m_lastColliders , ParentGroup.Scene.EventManager.TriggerScriptColliding); 2750 if (!VolumeDetectActive)
2751 SendCollisionEvent(scriptEvents.collision , m_lastColliders , ParentGroup.Scene.EventManager.TriggerScriptColliding);
2211 SendCollisionEvent(scriptEvents.collision_end , endedColliders , ParentGroup.Scene.EventManager.TriggerScriptCollidingEnd); 2752 SendCollisionEvent(scriptEvents.collision_end , endedColliders , ParentGroup.Scene.EventManager.TriggerScriptCollidingEnd);
2212 2753
2213 if (startedColliders.Contains(0)) 2754 if (startedColliders.Contains(0))
2214 { 2755 SendLandCollisionEvent(scriptEvents.land_collision_start, ParentGroup.Scene.EventManager.TriggerScriptLandCollidingStart);
2215 if (m_lastColliders.Contains(0)) 2756 if (m_lastColliders.Contains(0))
2216 SendLandCollisionEvent(scriptEvents.land_collision, ParentGroup.Scene.EventManager.TriggerScriptLandColliding); 2757 SendLandCollisionEvent(scriptEvents.land_collision, ParentGroup.Scene.EventManager.TriggerScriptLandColliding);
2217 else
2218 SendLandCollisionEvent(scriptEvents.land_collision_start, ParentGroup.Scene.EventManager.TriggerScriptLandCollidingStart);
2219 }
2220 if (endedColliders.Contains(0)) 2758 if (endedColliders.Contains(0))
2221 SendLandCollisionEvent(scriptEvents.land_collision_end, ParentGroup.Scene.EventManager.TriggerScriptLandCollidingEnd); 2759 SendLandCollisionEvent(scriptEvents.land_collision_end, ParentGroup.Scene.EventManager.TriggerScriptLandCollidingEnd);
2222 } 2760 }
@@ -2239,9 +2777,9 @@ namespace OpenSim.Region.Framework.Scenes
2239 Vector3 newpos = new Vector3(pa.Position.GetBytes(), 0); 2777 Vector3 newpos = new Vector3(pa.Position.GetBytes(), 0);
2240 2778
2241 if (ParentGroup.Scene.TestBorderCross(newpos, Cardinals.N) 2779 if (ParentGroup.Scene.TestBorderCross(newpos, Cardinals.N)
2242 | ParentGroup.Scene.TestBorderCross(newpos, Cardinals.S) 2780 || ParentGroup.Scene.TestBorderCross(newpos, Cardinals.S)
2243 | ParentGroup.Scene.TestBorderCross(newpos, Cardinals.E) 2781 || ParentGroup.Scene.TestBorderCross(newpos, Cardinals.E)
2244 | ParentGroup.Scene.TestBorderCross(newpos, Cardinals.W)) 2782 || ParentGroup.Scene.TestBorderCross(newpos, Cardinals.W))
2245 { 2783 {
2246 ParentGroup.AbsolutePosition = newpos; 2784 ParentGroup.AbsolutePosition = newpos;
2247 return; 2785 return;
@@ -2263,17 +2801,18 @@ namespace OpenSim.Region.Framework.Scenes
2263 //Trys to fetch sound id from prim's inventory. 2801 //Trys to fetch sound id from prim's inventory.
2264 //Prim's inventory doesn't support non script items yet 2802 //Prim's inventory doesn't support non script items yet
2265 2803
2266 lock (TaskInventory) 2804 TaskInventory.LockItemsForRead(true);
2805
2806 foreach (KeyValuePair<UUID, TaskInventoryItem> item in TaskInventory)
2267 { 2807 {
2268 foreach (KeyValuePair<UUID, TaskInventoryItem> item in TaskInventory) 2808 if (item.Value.Name == sound)
2269 { 2809 {
2270 if (item.Value.Name == sound) 2810 soundID = item.Value.ItemID;
2271 { 2811 break;
2272 soundID = item.Value.ItemID;
2273 break;
2274 }
2275 } 2812 }
2276 } 2813 }
2814
2815 TaskInventory.LockItemsForRead(false);
2277 } 2816 }
2278 2817
2279 ParentGroup.Scene.ForEachRootScenePresence(delegate(ScenePresence sp) 2818 ParentGroup.Scene.ForEachRootScenePresence(delegate(ScenePresence sp)
@@ -2396,6 +2935,19 @@ namespace OpenSim.Region.Framework.Scenes
2396 APIDTarget = Quaternion.Identity; 2935 APIDTarget = Quaternion.Identity;
2397 } 2936 }
2398 2937
2938
2939
2940 public void ScheduleFullUpdateIfNone()
2941 {
2942 if (ParentGroup == null)
2943 return;
2944
2945// ??? ParentGroup.HasGroupChanged = true;
2946
2947 if (UpdateFlag != UpdateRequired.FULL)
2948 ScheduleFullUpdate();
2949 }
2950
2399 /// <summary> 2951 /// <summary>
2400 /// Schedules this prim for a full update 2952 /// Schedules this prim for a full update
2401 /// </summary> 2953 /// </summary>
@@ -2598,8 +3150,8 @@ namespace OpenSim.Region.Framework.Scenes
2598 { 3150 {
2599 const float ROTATION_TOLERANCE = 0.01f; 3151 const float ROTATION_TOLERANCE = 0.01f;
2600 const float VELOCITY_TOLERANCE = 0.001f; 3152 const float VELOCITY_TOLERANCE = 0.001f;
2601 const float POSITION_TOLERANCE = 0.05f; 3153 const float POSITION_TOLERANCE = 0.05f; // I don't like this, but I suppose it's necessary
2602 const int TIME_MS_TOLERANCE = 3000; 3154 const int TIME_MS_TOLERANCE = 200; //llSetPos has a 200ms delay. This should NOT be 3 seconds.
2603 3155
2604 switch (UpdateFlag) 3156 switch (UpdateFlag)
2605 { 3157 {
@@ -2661,17 +3213,16 @@ namespace OpenSim.Region.Framework.Scenes
2661 if (!UUID.TryParse(sound, out soundID)) 3213 if (!UUID.TryParse(sound, out soundID))
2662 { 3214 {
2663 // search sound file from inventory 3215 // search sound file from inventory
2664 lock (TaskInventory) 3216 TaskInventory.LockItemsForRead(true);
3217 foreach (KeyValuePair<UUID, TaskInventoryItem> item in TaskInventory)
2665 { 3218 {
2666 foreach (KeyValuePair<UUID, TaskInventoryItem> item in TaskInventory) 3219 if (item.Value.Name == sound && item.Value.Type == (int)AssetType.Sound)
2667 { 3220 {
2668 if (item.Value.Name == sound && item.Value.Type == (int)AssetType.Sound) 3221 soundID = item.Value.ItemID;
2669 { 3222 break;
2670 soundID = item.Value.ItemID;
2671 break;
2672 }
2673 } 3223 }
2674 } 3224 }
3225 TaskInventory.LockItemsForRead(false);
2675 } 3226 }
2676 3227
2677 if (soundID == UUID.Zero) 3228 if (soundID == UUID.Zero)
@@ -2728,6 +3279,35 @@ namespace OpenSim.Region.Framework.Scenes
2728 } 3279 }
2729 } 3280 }
2730 3281
3282 public void SendCollisionSound(UUID soundID, double volume, Vector3 position)
3283 {
3284 if (soundID == UUID.Zero)
3285 return;
3286
3287 ISoundModule soundModule = ParentGroup.Scene.RequestModuleInterface<ISoundModule>();
3288 if (soundModule == null)
3289 return;
3290
3291 if (volume > 1)
3292 volume = 1;
3293 if (volume < 0)
3294 volume = 0;
3295
3296 int now = Util.EnvironmentTickCount();
3297 if(Util.EnvironmentTickCountSubtract(now,LastColSoundSentTime) <200)
3298 return;
3299
3300 LastColSoundSentTime = now;
3301
3302 UUID ownerID = OwnerID;
3303 UUID objectID = ParentGroup.RootPart.UUID;
3304 UUID parentID = ParentGroup.UUID;
3305 ulong regionHandle = ParentGroup.Scene.RegionInfo.RegionHandle;
3306
3307 soundModule.TriggerSound(soundID, ownerID, objectID, parentID, volume, position, regionHandle, 0 );
3308 }
3309
3310
2731 /// <summary> 3311 /// <summary>
2732 /// Send a terse update to all clients 3312 /// Send a terse update to all clients
2733 /// </summary> 3313 /// </summary>
@@ -2756,10 +3336,13 @@ namespace OpenSim.Region.Framework.Scenes
2756 3336
2757 public void SetBuoyancy(float fvalue) 3337 public void SetBuoyancy(float fvalue)
2758 { 3338 {
2759 PhysicsActor pa = PhysActor; 3339 Buoyancy = fvalue;
2760 3340/*
2761 if (pa != null) 3341 if (PhysActor != null)
2762 pa.Buoyancy = fvalue; 3342 {
3343 PhysActor.Buoyancy = fvalue;
3344 }
3345 */
2763 } 3346 }
2764 3347
2765 public void SetDieAtEdge(bool p) 3348 public void SetDieAtEdge(bool p)
@@ -2775,47 +3358,111 @@ namespace OpenSim.Region.Framework.Scenes
2775 PhysicsActor pa = PhysActor; 3358 PhysicsActor pa = PhysActor;
2776 3359
2777 if (pa != null) 3360 if (pa != null)
2778 pa.FloatOnWater = floatYN == 1; 3361 pa.FloatOnWater = (floatYN == 1);
2779 } 3362 }
2780 3363
2781 public void SetForce(Vector3 force) 3364 public void SetForce(Vector3 force)
2782 { 3365 {
2783 PhysicsActor pa = PhysActor; 3366 Force = force;
3367 }
2784 3368
2785 if (pa != null) 3369 public SOPVehicle sopVehicle
2786 pa.Force = force; 3370 {
3371 get
3372 {
3373 return m_vehicle;
3374 }
3375 set
3376 {
3377 m_vehicle = value;
3378 }
3379 }
3380
3381
3382 public int VehicleType
3383 {
3384 get
3385 {
3386 if (m_vehicle == null)
3387 return (int)Vehicle.TYPE_NONE;
3388 else
3389 return (int)m_vehicle.Type;
3390 }
3391 set
3392 {
3393 SetVehicleType(value);
3394 }
2787 } 3395 }
2788 3396
2789 public void SetVehicleType(int type) 3397 public void SetVehicleType(int type)
2790 { 3398 {
2791 PhysicsActor pa = PhysActor; 3399 m_vehicle = null;
3400
3401 if (type == (int)Vehicle.TYPE_NONE)
3402 {
3403 if (_parentID ==0 && PhysActor != null)
3404 PhysActor.VehicleType = (int)Vehicle.TYPE_NONE;
3405 return;
3406 }
3407 m_vehicle = new SOPVehicle();
3408 m_vehicle.ProcessTypeChange((Vehicle)type);
3409 {
3410 if (_parentID ==0 && PhysActor != null)
3411 PhysActor.VehicleType = type;
3412 return;
3413 }
3414 }
2792 3415
2793 if (pa != null) 3416 public void SetVehicleFlags(int param, bool remove)
2794 pa.VehicleType = type; 3417 {
3418 if (m_vehicle == null)
3419 return;
3420
3421 m_vehicle.ProcessVehicleFlags(param, remove);
3422
3423 if (_parentID ==0 && PhysActor != null)
3424 {
3425 PhysActor.VehicleFlags(param, remove);
3426 }
2795 } 3427 }
2796 3428
2797 public void SetVehicleFloatParam(int param, float value) 3429 public void SetVehicleFloatParam(int param, float value)
2798 { 3430 {
2799 PhysicsActor pa = PhysActor; 3431 if (m_vehicle == null)
3432 return;
2800 3433
2801 if (pa != null) 3434 m_vehicle.ProcessFloatVehicleParam((Vehicle)param, value);
2802 pa.VehicleFloatParam(param, value); 3435
3436 if (_parentID == 0 && PhysActor != null)
3437 {
3438 PhysActor.VehicleFloatParam(param, value);
3439 }
2803 } 3440 }
2804 3441
2805 public void SetVehicleVectorParam(int param, Vector3 value) 3442 public void SetVehicleVectorParam(int param, Vector3 value)
2806 { 3443 {
2807 PhysicsActor pa = PhysActor; 3444 if (m_vehicle == null)
3445 return;
2808 3446
2809 if (pa != null) 3447 m_vehicle.ProcessVectorVehicleParam((Vehicle)param, value);
2810 pa.VehicleVectorParam(param, value); 3448
3449 if (_parentID == 0 && PhysActor != null)
3450 {
3451 PhysActor.VehicleVectorParam(param, value);
3452 }
2811 } 3453 }
2812 3454
2813 public void SetVehicleRotationParam(int param, Quaternion rotation) 3455 public void SetVehicleRotationParam(int param, Quaternion rotation)
2814 { 3456 {
2815 PhysicsActor pa = PhysActor; 3457 if (m_vehicle == null)
3458 return;
2816 3459
2817 if (pa != null) 3460 m_vehicle.ProcessRotationVehicleParam((Vehicle)param, rotation);
2818 pa.VehicleRotationParam(param, rotation); 3461
3462 if (_parentID == 0 && PhysActor != null)
3463 {
3464 PhysActor.VehicleRotationParam(param, rotation);
3465 }
2819 } 3466 }
2820 3467
2821 /// <summary> 3468 /// <summary>
@@ -2999,14 +3646,6 @@ namespace OpenSim.Region.Framework.Scenes
2999 hasProfileCut = hasDimple; // is it the same thing? 3646 hasProfileCut = hasDimple; // is it the same thing?
3000 } 3647 }
3001 3648
3002 public void SetVehicleFlags(int param, bool remove)
3003 {
3004 PhysicsActor pa = PhysActor;
3005
3006 if (pa != null)
3007 pa.VehicleFlags(param, remove);
3008 }
3009
3010 public void SetGroup(UUID groupID, IClientAPI client) 3649 public void SetGroup(UUID groupID, IClientAPI client)
3011 { 3650 {
3012 // Scene.AddNewPrims() calls with client == null so can't use this. 3651 // Scene.AddNewPrims() calls with client == null so can't use this.
@@ -3110,68 +3749,18 @@ namespace OpenSim.Region.Framework.Scenes
3110 //ParentGroup.ScheduleGroupForFullUpdate(); 3749 //ParentGroup.ScheduleGroupForFullUpdate();
3111 } 3750 }
3112 3751
3113 public void StoreUndoState() 3752 public void StoreUndoState(ObjectChangeType change)
3114 { 3753 {
3115 StoreUndoState(false); 3754 if (m_UndoRedo == null)
3116 } 3755 m_UndoRedo = new UndoRedoState(5);
3117 3756
3118 public void StoreUndoState(bool forGroup) 3757 lock (m_UndoRedo)
3119 {
3120 if (!Undoing)
3121 { 3758 {
3122 if (!IgnoreUndoUpdate) 3759 if (!Undoing && !IgnoreUndoUpdate && ParentGroup != null) // just to read better - undo is in progress, or suspended
3123 { 3760 {
3124 if (ParentGroup != null) 3761 m_UndoRedo.StoreUndo(this, change);
3125 {
3126 lock (m_undo)
3127 {
3128 if (m_undo.Count > 0)
3129 {
3130 UndoState last = m_undo.Peek();
3131 if (last != null)
3132 {
3133 // TODO: May need to fix for group comparison
3134 if (last.Compare(this))
3135 {
3136 // m_log.DebugFormat(
3137 // "[SCENE OBJECT PART]: Not storing undo for {0} {1} since current state is same as last undo state, initial stack size {2}",
3138 // Name, LocalId, m_undo.Count);
3139
3140 return;
3141 }
3142 }
3143 }
3144
3145 // m_log.DebugFormat(
3146 // "[SCENE OBJECT PART]: Storing undo state for {0} {1}, forGroup {2}, initial stack size {3}",
3147 // Name, LocalId, forGroup, m_undo.Count);
3148
3149 if (ParentGroup.GetSceneMaxUndo() > 0)
3150 {
3151 UndoState nUndo = new UndoState(this, forGroup);
3152
3153 m_undo.Push(nUndo);
3154
3155 if (m_redo.Count > 0)
3156 m_redo.Clear();
3157
3158 // m_log.DebugFormat(
3159 // "[SCENE OBJECT PART]: Stored undo state for {0} {1}, forGroup {2}, stack size now {3}",
3160 // Name, LocalId, forGroup, m_undo.Count);
3161 }
3162 }
3163 }
3164 } 3762 }
3165// else
3166// {
3167// m_log.DebugFormat("[SCENE OBJECT PART]: Ignoring undo store for {0} {1}", Name, LocalId);
3168// }
3169 } 3763 }
3170// else
3171// {
3172// m_log.DebugFormat(
3173// "[SCENE OBJECT PART]: Ignoring undo store for {0} {1} since already undoing", Name, LocalId);
3174// }
3175 } 3764 }
3176 3765
3177 /// <summary> 3766 /// <summary>
@@ -3181,84 +3770,46 @@ namespace OpenSim.Region.Framework.Scenes
3181 { 3770 {
3182 get 3771 get
3183 { 3772 {
3184 lock (m_undo) 3773 if (m_UndoRedo == null)
3185 return m_undo.Count; 3774 return 0;
3775 return m_UndoRedo.Count;
3186 } 3776 }
3187 } 3777 }
3188 3778
3189 public void Undo() 3779 public void Undo()
3190 { 3780 {
3191 lock (m_undo) 3781 if (m_UndoRedo == null || Undoing || ParentGroup == null)
3192 { 3782 return;
3193// m_log.DebugFormat(
3194// "[SCENE OBJECT PART]: Handling undo request for {0} {1}, stack size {2}",
3195// Name, LocalId, m_undo.Count);
3196
3197 if (m_undo.Count > 0)
3198 {
3199 UndoState goback = m_undo.Pop();
3200
3201 if (goback != null)
3202 {
3203 UndoState nUndo = null;
3204
3205 if (ParentGroup.GetSceneMaxUndo() > 0)
3206 {
3207 nUndo = new UndoState(this, goback.ForGroup);
3208 }
3209
3210 goback.PlaybackState(this);
3211
3212 if (nUndo != null)
3213 m_redo.Push(nUndo);
3214 }
3215 }
3216 3783
3217// m_log.DebugFormat( 3784 lock (m_UndoRedo)
3218// "[SCENE OBJECT PART]: Handled undo request for {0} {1}, stack size now {2}", 3785 {
3219// Name, LocalId, m_undo.Count); 3786 Undoing = true;
3787 m_UndoRedo.Undo(this);
3788 Undoing = false;
3220 } 3789 }
3221 } 3790 }
3222 3791
3223 public void Redo() 3792 public void Redo()
3224 { 3793 {
3225 lock (m_undo) 3794 if (m_UndoRedo == null || Undoing || ParentGroup == null)
3226 { 3795 return;
3227// m_log.DebugFormat(
3228// "[SCENE OBJECT PART]: Handling redo request for {0} {1}, stack size {2}",
3229// Name, LocalId, m_redo.Count);
3230
3231 if (m_redo.Count > 0)
3232 {
3233 UndoState gofwd = m_redo.Pop();
3234
3235 if (gofwd != null)
3236 {
3237 if (ParentGroup.GetSceneMaxUndo() > 0)
3238 {
3239 UndoState nUndo = new UndoState(this, gofwd.ForGroup);
3240
3241 m_undo.Push(nUndo);
3242 }
3243
3244 gofwd.PlayfwdState(this);
3245 }
3246 3796
3247// m_log.DebugFormat( 3797 lock (m_UndoRedo)
3248// "[SCENE OBJECT PART]: Handled redo request for {0} {1}, stack size now {2}", 3798 {
3249// Name, LocalId, m_redo.Count); 3799 Undoing = true;
3250 } 3800 m_UndoRedo.Redo(this);
3801 Undoing = false;
3251 } 3802 }
3252 } 3803 }
3253 3804
3254 public void ClearUndoState() 3805 public void ClearUndoState()
3255 { 3806 {
3256// m_log.DebugFormat("[SCENE OBJECT PART]: Clearing undo and redo stacks in {0} {1}", Name, LocalId); 3807 if (m_UndoRedo == null || Undoing)
3808 return;
3257 3809
3258 lock (m_undo) 3810 lock (m_UndoRedo)
3259 { 3811 {
3260 m_undo.Clear(); 3812 m_UndoRedo.Clear();
3261 m_redo.Clear();
3262 } 3813 }
3263 } 3814 }
3264 3815
@@ -3888,6 +4439,27 @@ namespace OpenSim.Region.Framework.Scenes
3888 } 4439 }
3889 } 4440 }
3890 4441
4442
4443 public void UpdateExtraPhysics(ExtraPhysicsData physdata)
4444 {
4445 if (physdata.PhysShapeType == PhysShapeType.invalid || ParentGroup == null)
4446 return;
4447
4448 if (PhysicsShapeType != (byte)physdata.PhysShapeType)
4449 {
4450 PhysicsShapeType = (byte)physdata.PhysShapeType;
4451
4452 }
4453
4454 if(Density != physdata.Density)
4455 Density = physdata.Density;
4456 if(GravityModifier != physdata.GravitationModifier)
4457 GravityModifier = physdata.GravitationModifier;
4458 if(Friction != physdata.Friction)
4459 Friction = physdata.Friction;
4460 if(Bounciness != physdata.Bounce)
4461 Bounciness = physdata.Bounce;
4462 }
3891 /// <summary> 4463 /// <summary>
3892 /// Update the flags on this prim. This covers properties such as phantom, physics and temporary. 4464 /// Update the flags on this prim. This covers properties such as phantom, physics and temporary.
3893 /// </summary> 4465 /// </summary>
@@ -3895,7 +4467,7 @@ namespace OpenSim.Region.Framework.Scenes
3895 /// <param name="SetTemporary"></param> 4467 /// <param name="SetTemporary"></param>
3896 /// <param name="SetPhantom"></param> 4468 /// <param name="SetPhantom"></param>
3897 /// <param name="SetVD"></param> 4469 /// <param name="SetVD"></param>
3898 public void UpdatePrimFlags(bool UsePhysics, bool SetTemporary, bool SetPhantom, bool SetVD) 4470 public void UpdatePrimFlags(bool UsePhysics, bool SetTemporary, bool SetPhantom, bool SetVD, bool building)
3899 { 4471 {
3900 bool wasUsingPhysics = ((Flags & PrimFlags.Physics) != 0); 4472 bool wasUsingPhysics = ((Flags & PrimFlags.Physics) != 0);
3901 bool wasTemporary = ((Flags & PrimFlags.TemporaryOnRez) != 0); 4473 bool wasTemporary = ((Flags & PrimFlags.TemporaryOnRez) != 0);
@@ -3905,237 +4477,230 @@ namespace OpenSim.Region.Framework.Scenes
3905 if ((UsePhysics == wasUsingPhysics) && (wasTemporary == SetTemporary) && (wasPhantom == SetPhantom) && (SetVD == wasVD)) 4477 if ((UsePhysics == wasUsingPhysics) && (wasTemporary == SetTemporary) && (wasPhantom == SetPhantom) && (SetVD == wasVD))
3906 return; 4478 return;
3907 4479
3908 PhysicsActor pa = PhysActor; 4480 VolumeDetectActive = SetVD;
3909
3910 // Special cases for VD. VD can only be called from a script
3911 // and can't be combined with changes to other states. So we can rely
3912 // that...
3913 // ... if VD is changed, all others are not.
3914 // ... if one of the others is changed, VD is not.
3915 if (SetVD) // VD is active, special logic applies
3916 {
3917 // State machine logic for VolumeDetect
3918 // More logic below
3919 bool phanReset = (SetPhantom != wasPhantom) && !SetPhantom;
3920
3921 if (phanReset) // Phantom changes from on to off switch VD off too
3922 {
3923 SetVD = false; // Switch it of for the course of this routine
3924 VolumeDetectActive = false; // and also permanently
3925
3926 if (pa != null)
3927 pa.SetVolumeDetect(0); // Let physics know about it too
3928 }
3929 else
3930 {
3931 // If volumedetect is active we don't want phantom to be applied.
3932 // If this is a new call to VD out of the state "phantom"
3933 // this will also cause the prim to be visible to physics
3934 SetPhantom = false;
3935 }
3936 }
3937 4481
3938 if (UsePhysics && IsJoint()) 4482 // volume detector implies phantom
3939 { 4483 if (VolumeDetectActive)
3940 SetPhantom = true; 4484 SetPhantom = true;
3941 }
3942 4485
3943 if (UsePhysics) 4486 if (UsePhysics)
3944 {
3945 AddFlag(PrimFlags.Physics); 4487 AddFlag(PrimFlags.Physics);
3946 if (!wasUsingPhysics)
3947 {
3948 DoPhysicsPropertyUpdate(UsePhysics, false);
3949
3950 if (!ParentGroup.IsDeleted)
3951 {
3952 if (LocalId == ParentGroup.RootPart.LocalId)
3953 {
3954 ParentGroup.CheckSculptAndLoad();
3955 }
3956 }
3957 }
3958 }
3959 else 4488 else
3960 {
3961 RemFlag(PrimFlags.Physics); 4489 RemFlag(PrimFlags.Physics);
3962 if (wasUsingPhysics)
3963 {
3964 DoPhysicsPropertyUpdate(UsePhysics, false);
3965 }
3966 }
3967 4490
3968 if (SetPhantom 4491 if (SetPhantom)
3969 || ParentGroup.IsAttachment
3970 || (Shape.PathCurve == (byte)Extrusion.Flexible)) // note: this may have been changed above in the case of joints
3971 {
3972 AddFlag(PrimFlags.Phantom); 4492 AddFlag(PrimFlags.Phantom);
3973 4493 else
3974 if (PhysActor != null)
3975 {
3976 RemoveFromPhysics();
3977 pa = null;
3978 }
3979 }
3980 else // Not phantom
3981 {
3982 RemFlag(PrimFlags.Phantom); 4494 RemFlag(PrimFlags.Phantom);
3983 4495
3984 if (ParentGroup.Scene == null) 4496 if (SetTemporary)
3985 return; 4497 AddFlag(PrimFlags.TemporaryOnRez);
4498 else
4499 RemFlag(PrimFlags.TemporaryOnRez);
3986 4500
3987 if (ParentGroup.Scene.CollidablePrims && pa == null)
3988 {
3989 pa = AddToPhysics(UsePhysics);
3990 4501
3991 if (pa != null) 4502 if (ParentGroup.Scene == null)
3992 { 4503 return;
3993 pa.SetMaterial(Material);
3994 DoPhysicsPropertyUpdate(UsePhysics, true);
3995
3996 if (!ParentGroup.IsDeleted)
3997 {
3998 if (LocalId == ParentGroup.RootPart.LocalId)
3999 {
4000 ParentGroup.CheckSculptAndLoad();
4001 }
4002 }
4003
4004 if (
4005 ((AggregateScriptEvents & scriptEvents.collision) != 0) ||
4006 ((AggregateScriptEvents & scriptEvents.collision_end) != 0) ||
4007 ((AggregateScriptEvents & scriptEvents.collision_start) != 0) ||
4008 ((AggregateScriptEvents & scriptEvents.land_collision_start) != 0) ||
4009 ((AggregateScriptEvents & scriptEvents.land_collision) != 0) ||
4010 ((AggregateScriptEvents & scriptEvents.land_collision_end) != 0) ||
4011 ((ParentGroup.RootPart.AggregateScriptEvents & scriptEvents.collision) != 0) ||
4012 ((ParentGroup.RootPart.AggregateScriptEvents & scriptEvents.collision_end) != 0) ||
4013 ((ParentGroup.RootPart.AggregateScriptEvents & scriptEvents.collision_start) != 0) ||
4014 ((ParentGroup.RootPart.AggregateScriptEvents & scriptEvents.land_collision_start) != 0) ||
4015 ((ParentGroup.RootPart.AggregateScriptEvents & scriptEvents.land_collision) != 0) ||
4016 ((ParentGroup.RootPart.AggregateScriptEvents & scriptEvents.land_collision_end) != 0) ||
4017 (CollisionSound != UUID.Zero)
4018 )
4019 {
4020 pa.OnCollisionUpdate += PhysicsCollision;
4021 pa.SubscribeEvents(1000);
4022 }
4023 }
4024 }
4025 else // it already has a physical representation
4026 {
4027 DoPhysicsPropertyUpdate(UsePhysics, false); // Update physical status. If it's phantom this will remove the prim
4028 4504
4029 if (!ParentGroup.IsDeleted) 4505 PhysicsActor pa = PhysActor;
4030 {
4031 if (LocalId == ParentGroup.RootPart.LocalId)
4032 {
4033 ParentGroup.CheckSculptAndLoad();
4034 }
4035 }
4036 }
4037 }
4038 4506
4039 if (SetVD) 4507 if (pa != null && building && pa.Building != building)
4508 pa.Building = building;
4509
4510 if ((SetPhantom && !UsePhysics && !SetVD) || ParentGroup.IsAttachment || PhysicsShapeType == (byte)PhysShapeType.none
4511 || (Shape.PathCurve == (byte)Extrusion.Flexible))
4040 { 4512 {
4041 // If the above logic worked (this is urgent candidate to unit tests!)
4042 // we now have a physicsactor.
4043 // Defensive programming calls for a check here.
4044 // Better would be throwing an exception that could be catched by a unit test as the internal
4045 // logic should make sure, this Physactor is always here.
4046 if (pa != null) 4513 if (pa != null)
4047 { 4514 {
4048 pa.SetVolumeDetect(1); 4515 ParentGroup.Scene.RemovePhysicalPrim(1);
4049 AddFlag(PrimFlags.Phantom); // We set this flag also if VD is active 4516 RemoveFromPhysics();
4050 VolumeDetectActive = true;
4051 } 4517 }
4518
4519 Velocity = new Vector3(0, 0, 0);
4520 Acceleration = new Vector3(0, 0, 0);
4521 if (ParentGroup.RootPart == this)
4522 AngularVelocity = new Vector3(0, 0, 0);
4052 } 4523 }
4053 else 4524 else
4054 { 4525 {
4055 // Remove VolumeDetect in any case. Note, it's safe to call SetVolumeDetect as often as you like 4526 if (ParentGroup.Scene.CollidablePrims)
4056 // (mumbles, well, at least if you have infinte CPU powers :-)) 4527 {
4057 if (pa != null) 4528 if (pa == null)
4058 pa.SetVolumeDetect(0); 4529 {
4530 AddToPhysics(UsePhysics, SetPhantom, building, false);
4531 pa = PhysActor;
4532 /*
4533 if (pa != null)
4534 {
4535 if (
4536 // ((AggregateScriptEvents & scriptEvents.collision) != 0) ||
4537 // ((AggregateScriptEvents & scriptEvents.collision_end) != 0) ||
4538 // ((AggregateScriptEvents & scriptEvents.collision_start) != 0) ||
4539 // ((AggregateScriptEvents & scriptEvents.land_collision_start) != 0) ||
4540 // ((AggregateScriptEvents & scriptEvents.land_collision) != 0) ||
4541 // ((AggregateScriptEvents & scriptEvents.land_collision_end) != 0) ||
4542 ((AggregateScriptEvents & PhysicsNeededSubsEvents) != 0) ||
4543 ((ParentGroup.RootPart.AggregateScriptEvents & PhysicsNeededSubsEvents) != 0) ||
4544 (CollisionSound != UUID.Zero)
4545 )
4546 {
4547 pa.OnCollisionUpdate += PhysicsCollision;
4548 pa.SubscribeEvents(1000);
4549 }
4550 }
4551 */
4552 }
4553 else // it already has a physical representation
4554 {
4555 DoPhysicsPropertyUpdate(UsePhysics, false); // Update physical status.
4556 /* moved into DoPhysicsPropertyUpdate
4557 if(VolumeDetectActive)
4558 pa.SetVolumeDetect(1);
4559 else
4560 pa.SetVolumeDetect(0);
4561 */
4059 4562
4060 VolumeDetectActive = false;
4061 }
4062 4563
4063 if (SetTemporary) 4564 if (pa.Building != building)
4064 { 4565 pa.Building = building;
4065 AddFlag(PrimFlags.TemporaryOnRez); 4566 }
4066 } 4567
4067 else 4568 UpdatePhysicsSubscribedEvents();
4068 { 4569 }
4069 RemFlag(PrimFlags.TemporaryOnRez); 4570 }
4070 }
4071 4571
4072 // m_log.Debug("Update: PHY:" + UsePhysics.ToString() + ", T:" + IsTemporary.ToString() + ", PHA:" + IsPhantom.ToString() + " S:" + CastsShadows.ToString()); 4572 // m_log.Debug("Update: PHY:" + UsePhysics.ToString() + ", T:" + IsTemporary.ToString() + ", PHA:" + IsPhantom.ToString() + " S:" + CastsShadows.ToString());
4073 4573
4574 // and last in case we have a new actor and not building
4575
4074 if (ParentGroup != null) 4576 if (ParentGroup != null)
4075 { 4577 {
4076 ParentGroup.HasGroupChanged = true; 4578 ParentGroup.HasGroupChanged = true;
4077 ScheduleFullUpdate(); 4579 ScheduleFullUpdate();
4078 } 4580 }
4079 4581
4080// m_log.DebugFormat("[SCENE OBJECT PART]: Updated PrimFlags on {0} {1} to {2}", Name, LocalId, Flags); 4582// m_log.DebugFormat("[SCENE OBJECT PART]: Updated PrimFlags on {0} {1} to {2}", Name, LocalId, Flags);
4081 } 4583 }
4082 4584
4083 /// <summary> 4585 /// <summary>
4084 /// Adds this part to the physics scene. 4586 /// Adds this part to the physics scene.
4587 /// and sets the PhysActor property
4085 /// </summary> 4588 /// </summary>
4086 /// <remarks>This method also sets the PhysActor property.</remarks> 4589 /// <param name="isPhysical">Add this prim as physical.</param>
4087 /// <param name="rigidBody">Add this prim with a rigid body.</param> 4590 /// <param name="isPhantom">Add this prim as phantom.</param>
4088 /// <returns> 4591 /// <param name="building">tells physics to delay full construction of object</param>
4089 /// The physics actor. null if there was a failure. 4592 /// <param name="applyDynamics">applies velocities, force and torque</param>
4090 /// </returns> 4593 private void AddToPhysics(bool isPhysical, bool isPhantom, bool building, bool applyDynamics)
4091 private PhysicsActor AddToPhysics(bool rigidBody) 4594 {
4092 {
4093 PhysicsActor pa; 4595 PhysicsActor pa;
4094 4596
4597 Vector3 velocity = Velocity;
4598 Vector3 rotationalVelocity = AngularVelocity;;
4599
4095 try 4600 try
4096 { 4601 {
4097 pa = ParentGroup.Scene.PhysicsScene.AddPrimShape( 4602 pa = ParentGroup.Scene.PhysicsScene.AddPrimShape(
4098 string.Format("{0}/{1}", Name, UUID), 4603 string.Format("{0}/{1}", Name, UUID),
4099 Shape, 4604 Shape,
4100 AbsolutePosition, 4605 AbsolutePosition,
4101 Scale, 4606 Scale,
4102 RotationOffset, 4607 GetWorldRotation(),
4103 rigidBody, 4608 isPhysical,
4104 m_localId); 4609 isPhantom,
4610 PhysicsShapeType,
4611 m_localId);
4105 } 4612 }
4106 catch 4613 catch (Exception ex)
4107 { 4614 {
4108 m_log.ErrorFormat("[SCENE]: caught exception meshing object {0}. Object set to phantom.", m_uuid); 4615 m_log.ErrorFormat("[SCENE]: AddToPhysics object {0} failed: {1}", m_uuid, ex.Message);
4109 pa = null; 4616 pa = null;
4110 } 4617 }
4111 4618
4112 // FIXME: Ideally we wouldn't set the property here to reduce situations where threads changing physical
4113 // properties can stop on each other. However, DoPhysicsPropertyUpdate() currently relies on PhysActor
4114 // being set.
4115 PhysActor = pa;
4116
4117 // Basic Physics can also return null as well as an exception catch.
4118 if (pa != null) 4619 if (pa != null)
4119 { 4620 {
4120 pa.SOPName = this.Name; // save object into the PhysActor so ODE internals know the joint/body info 4621 pa.SOPName = this.Name; // save object into the PhysActor so ODE internals know the joint/body info
4121 pa.SetMaterial(Material); 4622 pa.SetMaterial(Material);
4122 DoPhysicsPropertyUpdate(rigidBody, true); 4623
4624 if (VolumeDetectActive) // change if not the default only
4625 pa.SetVolumeDetect(1);
4626
4627 if (m_vehicle != null && LocalId == ParentGroup.RootPart.LocalId)
4628 m_vehicle.SetVehicle(pa);
4629
4630 // we are going to tell rest of code about physics so better have this here
4631 PhysActor = pa;
4632
4633 // DoPhysicsPropertyUpdate(isPhysical, true);
4634 // lets expand it here just with what it really needs to do
4635
4636 if (isPhysical)
4637 {
4638 if (ParentGroup.RootPart.KeyframeMotion != null)
4639 ParentGroup.RootPart.KeyframeMotion.Stop();
4640 ParentGroup.RootPart.KeyframeMotion = null;
4641 ParentGroup.Scene.AddPhysicalPrim(1);
4642
4643 pa.OnRequestTerseUpdate += PhysicsRequestingTerseUpdate;
4644 pa.OnOutOfBounds += PhysicsOutOfBounds;
4645
4646 if (ParentID != 0 && ParentID != LocalId)
4647 {
4648 PhysicsActor parentPa = ParentGroup.RootPart.PhysActor;
4649
4650 if (parentPa != null)
4651 {
4652 pa.link(parentPa);
4653 }
4654 }
4655 }
4656
4657 if (applyDynamics)
4658 // do independent of isphysical so parameters get setted (at least some)
4659 {
4660 Velocity = velocity;
4661 AngularVelocity = rotationalVelocity;
4662// pa.Velocity = velocity;
4663 pa.RotationalVelocity = rotationalVelocity;
4664
4665 // if not vehicle and root part apply force and torque
4666 if ((m_vehicle == null || m_vehicle.Type == Vehicle.TYPE_NONE)
4667 && LocalId == ParentGroup.RootPart.LocalId)
4668 {
4669 pa.Force = Force;
4670 pa.Torque = Torque;
4671 }
4672 }
4673
4674 if (Shape.SculptEntry)
4675 CheckSculptAndLoad();
4676 else
4677 ParentGroup.Scene.PhysicsScene.AddPhysicsActorTaint(pa);
4678
4679 if (!building)
4680 pa.Building = false;
4123 } 4681 }
4124 4682
4125 return pa; 4683 PhysActor = pa;
4126 } 4684 }
4127 4685
4128 /// <summary> 4686 /// <summary>
4129 /// This removes the part from the physics scene. 4687 /// This removes the part from the physics scene.
4130 /// </summary> 4688 /// </summary>
4131 /// <remarks> 4689 /// <remarks>
4132 /// This isn't the same as turning off physical, since even without being physical the prim has a physics 4690 /// This isn't the same as turning off physical, since even without being physical the prim has a physics
4133 /// representation for collision detection. Rather, this would be used in situations such as making a prim 4691 /// representation for collision detection.
4134 /// phantom.
4135 /// </remarks> 4692 /// </remarks>
4136 public void RemoveFromPhysics() 4693 public void RemoveFromPhysics()
4137 { 4694 {
4138 ParentGroup.Scene.PhysicsScene.RemovePrim(PhysActor); 4695 PhysicsActor pa = PhysActor;
4696 if (pa != null)
4697 {
4698 pa.OnCollisionUpdate -= PhysicsCollision;
4699 pa.OnRequestTerseUpdate -= PhysicsRequestingTerseUpdate;
4700 pa.OnOutOfBounds -= PhysicsOutOfBounds;
4701
4702 ParentGroup.Scene.PhysicsScene.RemovePrim(pa);
4703 }
4139 PhysActor = null; 4704 PhysActor = null;
4140 } 4705 }
4141 4706
@@ -4295,6 +4860,44 @@ namespace OpenSim.Region.Framework.Scenes
4295 ScheduleFullUpdate(); 4860 ScheduleFullUpdate();
4296 } 4861 }
4297 4862
4863
4864 private void UpdatePhysicsSubscribedEvents()
4865 {
4866 PhysicsActor pa = PhysActor;
4867 if (pa == null)
4868 return;
4869
4870 pa.OnCollisionUpdate -= PhysicsCollision;
4871
4872 bool hassound = (CollisionSoundType >= 0 && !VolumeDetectActive);
4873
4874 scriptEvents CombinedEvents = AggregateScriptEvents;
4875
4876 // merge with root part
4877 if (ParentGroup != null && ParentGroup.RootPart != null)
4878 CombinedEvents |= ParentGroup.RootPart.AggregateScriptEvents;
4879
4880 // submit to this part case
4881 if (VolumeDetectActive)
4882 CombinedEvents &= PhyscicsVolumeDtcSubsEvents;
4883 else if ((Flags & PrimFlags.Phantom) != 0)
4884 CombinedEvents &= PhyscicsPhantonSubsEvents;
4885 else
4886 CombinedEvents &= PhysicsNeededSubsEvents;
4887
4888 if (hassound || CombinedEvents != 0)
4889 {
4890 // subscribe to physics updates.
4891 pa.OnCollisionUpdate += PhysicsCollision;
4892 pa.SubscribeEvents(50); // 20 reports per second
4893 }
4894 else
4895 {
4896 pa.UnSubscribeEvents();
4897 }
4898 }
4899
4900
4298 public void aggregateScriptEvents() 4901 public void aggregateScriptEvents()
4299 { 4902 {
4300 if (ParentGroup == null || ParentGroup.RootPart == null) 4903 if (ParentGroup == null || ParentGroup.RootPart == null)
@@ -4331,40 +4934,32 @@ namespace OpenSim.Region.Framework.Scenes
4331 { 4934 {
4332 objectflagupdate |= (uint) PrimFlags.AllowInventoryDrop; 4935 objectflagupdate |= (uint) PrimFlags.AllowInventoryDrop;
4333 } 4936 }
4334 4937/*
4335 PhysicsActor pa = PhysActor; 4938 PhysicsActor pa = PhysActor;
4336 4939 if (pa != null)
4337 if (
4338 ((AggregateScriptEvents & scriptEvents.collision) != 0) ||
4339 ((AggregateScriptEvents & scriptEvents.collision_end) != 0) ||
4340 ((AggregateScriptEvents & scriptEvents.collision_start) != 0) ||
4341 ((AggregateScriptEvents & scriptEvents.land_collision_start) != 0) ||
4342 ((AggregateScriptEvents & scriptEvents.land_collision) != 0) ||
4343 ((AggregateScriptEvents & scriptEvents.land_collision_end) != 0) ||
4344 ((ParentGroup.RootPart.AggregateScriptEvents & scriptEvents.collision) != 0) ||
4345 ((ParentGroup.RootPart.AggregateScriptEvents & scriptEvents.collision_end) != 0) ||
4346 ((ParentGroup.RootPart.AggregateScriptEvents & scriptEvents.collision_start) != 0) ||
4347 ((ParentGroup.RootPart.AggregateScriptEvents & scriptEvents.land_collision_start) != 0) ||
4348 ((ParentGroup.RootPart.AggregateScriptEvents & scriptEvents.land_collision) != 0) ||
4349 ((ParentGroup.RootPart.AggregateScriptEvents & scriptEvents.land_collision_end) != 0) ||
4350 (CollisionSound != UUID.Zero)
4351 )
4352 { 4940 {
4353 // subscribe to physics updates. 4941 if (
4354 if (pa != null) 4942// ((AggregateScriptEvents & scriptEvents.collision) != 0) ||
4943// ((AggregateScriptEvents & scriptEvents.collision_end) != 0) ||
4944// ((AggregateScriptEvents & scriptEvents.collision_start) != 0) ||
4945// ((AggregateScriptEvents & scriptEvents.land_collision_start) != 0) ||
4946// ((AggregateScriptEvents & scriptEvents.land_collision) != 0) ||
4947// ((AggregateScriptEvents & scriptEvents.land_collision_end) != 0) ||
4948 ((AggregateScriptEvents & PhysicsNeededSubsEvents) != 0) || ((ParentGroup.RootPart.AggregateScriptEvents & PhysicsNeededSubsEvents) != 0) || (CollisionSound != UUID.Zero)
4949 )
4355 { 4950 {
4951 // subscribe to physics updates.
4356 pa.OnCollisionUpdate += PhysicsCollision; 4952 pa.OnCollisionUpdate += PhysicsCollision;
4357 pa.SubscribeEvents(1000); 4953 pa.SubscribeEvents(1000);
4358 } 4954 }
4359 } 4955 else
4360 else
4361 {
4362 if (pa != null)
4363 { 4956 {
4364 pa.UnSubscribeEvents(); 4957 pa.UnSubscribeEvents();
4365 pa.OnCollisionUpdate -= PhysicsCollision; 4958 pa.OnCollisionUpdate -= PhysicsCollision;
4366 } 4959 }
4367 } 4960 }
4961 */
4962 UpdatePhysicsSubscribedEvents();
4368 4963
4369 //if ((GetEffectiveObjectFlags() & (uint)PrimFlags.Scripted) != 0) 4964 //if ((GetEffectiveObjectFlags() & (uint)PrimFlags.Scripted) != 0)
4370 //{ 4965 //{
@@ -4493,5 +5088,17 @@ namespace OpenSim.Region.Framework.Scenes
4493 Color color = Color; 5088 Color color = Color;
4494 return new Color4(color.R, color.G, color.B, (byte)(0xFF - color.A)); 5089 return new Color4(color.R, color.G, color.B, (byte)(0xFF - color.A));
4495 } 5090 }
5091
5092 public void ResetOwnerChangeFlag()
5093 {
5094 List<UUID> inv = Inventory.GetInventoryList();
5095
5096 foreach (UUID itemID in inv)
5097 {
5098 TaskInventoryItem item = Inventory.GetInventoryItem(itemID);
5099 item.OwnerChanged = false;
5100 Inventory.UpdateInventoryItem(item, false, false);
5101 }
5102 }
4496 } 5103 }
4497} 5104}
diff --git a/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs b/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs
index c223474..14ef0fb 100644
--- a/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneObjectPartInventory.cs
@@ -48,6 +48,9 @@ namespace OpenSim.Region.Framework.Scenes
48 private string m_inventoryFileName = String.Empty; 48 private string m_inventoryFileName = String.Empty;
49 private byte[] m_inventoryFileData = new byte[0]; 49 private byte[] m_inventoryFileData = new byte[0];
50 private uint m_inventoryFileNameSerial = 0; 50 private uint m_inventoryFileNameSerial = 0;
51 private bool m_inventoryPrivileged = false;
52
53 private Dictionary<UUID, ArrayList> m_scriptErrors = new Dictionary<UUID, ArrayList>();
51 54
52 /// <value> 55 /// <value>
53 /// The part to which the inventory belongs. 56 /// The part to which the inventory belongs.
@@ -84,11 +87,14 @@ namespace OpenSim.Region.Framework.Scenes
84 /// </value> 87 /// </value>
85 protected internal TaskInventoryDictionary Items 88 protected internal TaskInventoryDictionary Items
86 { 89 {
87 get { return m_items; } 90 get {
91 return m_items;
92 }
88 set 93 set
89 { 94 {
90 m_items = value; 95 m_items = value;
91 m_inventorySerial++; 96 m_inventorySerial++;
97 QueryScriptStates();
92 } 98 }
93 } 99 }
94 100
@@ -123,38 +129,45 @@ namespace OpenSim.Region.Framework.Scenes
123 public void ResetInventoryIDs() 129 public void ResetInventoryIDs()
124 { 130 {
125 if (null == m_part) 131 if (null == m_part)
126 return; 132 m_items.LockItemsForWrite(true);
127 133
128 lock (m_items) 134 if (Items.Count == 0)
129 { 135 {
130 if (0 == m_items.Count) 136 m_items.LockItemsForWrite(false);
131 return; 137 return;
138 }
132 139
133 IList<TaskInventoryItem> items = GetInventoryItems(); 140 IList<TaskInventoryItem> items = new List<TaskInventoryItem>(Items.Values);
134 m_items.Clear(); 141 Items.Clear();
135 142
136 foreach (TaskInventoryItem item in items) 143 foreach (TaskInventoryItem item in items)
137 { 144 {
138 item.ResetIDs(m_part.UUID); 145 item.ResetIDs(m_part.UUID);
139 m_items.Add(item.ItemID, item); 146 Items.Add(item.ItemID, item);
140 }
141 } 147 }
148 m_items.LockItemsForWrite(false);
142 } 149 }
143 150
144 public void ResetObjectID() 151 public void ResetObjectID()
145 { 152 {
146 lock (Items) 153 m_items.LockItemsForWrite(true);
154
155 if (Items.Count == 0)
147 { 156 {
148 IList<TaskInventoryItem> items = new List<TaskInventoryItem>(Items.Values); 157 m_items.LockItemsForWrite(false);
149 Items.Clear(); 158 return;
150
151 foreach (TaskInventoryItem item in items)
152 {
153 item.ParentPartID = m_part.UUID;
154 item.ParentID = m_part.UUID;
155 Items.Add(item.ItemID, item);
156 }
157 } 159 }
160
161 IList<TaskInventoryItem> items = new List<TaskInventoryItem>(Items.Values);
162 Items.Clear();
163
164 foreach (TaskInventoryItem item in items)
165 {
166 item.ParentPartID = m_part.UUID;
167 item.ParentID = m_part.UUID;
168 Items.Add(item.ItemID, item);
169 }
170 m_items.LockItemsForWrite(false);
158 } 171 }
159 172
160 /// <summary> 173 /// <summary>
@@ -163,17 +176,14 @@ namespace OpenSim.Region.Framework.Scenes
163 /// <param name="ownerId"></param> 176 /// <param name="ownerId"></param>
164 public void ChangeInventoryOwner(UUID ownerId) 177 public void ChangeInventoryOwner(UUID ownerId)
165 { 178 {
166 lock (Items) 179 List<TaskInventoryItem> items = GetInventoryItems();
167 {
168 if (0 == Items.Count)
169 {
170 return;
171 }
172 }
173 180
181 if (items.Count == 0)
182 return;
183
184 m_items.LockItemsForWrite(true);
174 HasInventoryChanged = true; 185 HasInventoryChanged = true;
175 m_part.ParentGroup.HasGroupChanged = true; 186 m_part.ParentGroup.HasGroupChanged = true;
176 List<TaskInventoryItem> items = GetInventoryItems();
177 foreach (TaskInventoryItem item in items) 187 foreach (TaskInventoryItem item in items)
178 { 188 {
179 if (ownerId != item.OwnerID) 189 if (ownerId != item.OwnerID)
@@ -184,6 +194,7 @@ namespace OpenSim.Region.Framework.Scenes
184 item.PermsGranter = UUID.Zero; 194 item.PermsGranter = UUID.Zero;
185 item.OwnerChanged = true; 195 item.OwnerChanged = true;
186 } 196 }
197 m_items.LockItemsForWrite(false);
187 } 198 }
188 199
189 /// <summary> 200 /// <summary>
@@ -192,12 +203,11 @@ namespace OpenSim.Region.Framework.Scenes
192 /// <param name="groupID"></param> 203 /// <param name="groupID"></param>
193 public void ChangeInventoryGroup(UUID groupID) 204 public void ChangeInventoryGroup(UUID groupID)
194 { 205 {
195 lock (Items) 206 m_items.LockItemsForWrite(true);
207 if (0 == Items.Count)
196 { 208 {
197 if (0 == Items.Count) 209 m_items.LockItemsForWrite(false);
198 { 210 return;
199 return;
200 }
201 } 211 }
202 212
203 // Don't let this set the HasGroupChanged flag for attachments 213 // Don't let this set the HasGroupChanged flag for attachments
@@ -209,12 +219,45 @@ namespace OpenSim.Region.Framework.Scenes
209 m_part.ParentGroup.HasGroupChanged = true; 219 m_part.ParentGroup.HasGroupChanged = true;
210 } 220 }
211 221
212 List<TaskInventoryItem> items = GetInventoryItems(); 222 IList<TaskInventoryItem> items = new List<TaskInventoryItem>(Items.Values);
213 foreach (TaskInventoryItem item in items) 223 foreach (TaskInventoryItem item in items)
214 { 224 {
215 if (groupID != item.GroupID) 225 if (groupID != item.GroupID)
226 {
216 item.GroupID = groupID; 227 item.GroupID = groupID;
228 }
217 } 229 }
230 m_items.LockItemsForWrite(false);
231 }
232
233 private void QueryScriptStates()
234 {
235 if (m_part == null || m_part.ParentGroup == null)
236 return;
237
238 IScriptModule[] engines = m_part.ParentGroup.Scene.RequestModuleInterfaces<IScriptModule>();
239 if (engines == null) // No engine at all
240 return;
241
242 Items.LockItemsForRead(true);
243 foreach (TaskInventoryItem item in Items.Values)
244 {
245 if (item.InvType == (int)InventoryType.LSL)
246 {
247 foreach (IScriptModule e in engines)
248 {
249 bool running;
250
251 if (e.HasScript(item.ItemID, out running))
252 {
253 item.ScriptRunning = running;
254 break;
255 }
256 }
257 }
258 }
259
260 Items.LockItemsForRead(false);
218 } 261 }
219 262
220 public int CreateScriptInstances(int startParam, bool postOnRez, string engine, int stateSource) 263 public int CreateScriptInstances(int startParam, bool postOnRez, string engine, int stateSource)
@@ -259,7 +302,10 @@ namespace OpenSim.Region.Framework.Scenes
259 { 302 {
260 List<TaskInventoryItem> scripts = GetInventoryItems(InventoryType.LSL); 303 List<TaskInventoryItem> scripts = GetInventoryItems(InventoryType.LSL);
261 foreach (TaskInventoryItem item in scripts) 304 foreach (TaskInventoryItem item in scripts)
305 {
262 RemoveScriptInstance(item.ItemID, sceneObjectBeingDeleted); 306 RemoveScriptInstance(item.ItemID, sceneObjectBeingDeleted);
307 m_part.RemoveScriptEvents(item.ItemID);
308 }
263 } 309 }
264 310
265 /// <summary> 311 /// <summary>
@@ -273,7 +319,10 @@ namespace OpenSim.Region.Framework.Scenes
273// item.Name, item.ItemID, m_part.Name, m_part.UUID, m_part.ParentGroup.Scene.RegionInfo.RegionName); 319// item.Name, item.ItemID, m_part.Name, m_part.UUID, m_part.ParentGroup.Scene.RegionInfo.RegionName);
274 320
275 if (!m_part.ParentGroup.Scene.Permissions.CanRunScript(item.ItemID, m_part.UUID, item.OwnerID)) 321 if (!m_part.ParentGroup.Scene.Permissions.CanRunScript(item.ItemID, m_part.UUID, item.OwnerID))
322 {
323 StoreScriptError(item.ItemID, "no permission");
276 return false; 324 return false;
325 }
277 326
278 m_part.AddFlag(PrimFlags.Scripted); 327 m_part.AddFlag(PrimFlags.Scripted);
279 328
@@ -283,14 +332,13 @@ namespace OpenSim.Region.Framework.Scenes
283 if (stateSource == 2 && // Prim crossing 332 if (stateSource == 2 && // Prim crossing
284 m_part.ParentGroup.Scene.m_trustBinaries) 333 m_part.ParentGroup.Scene.m_trustBinaries)
285 { 334 {
286 lock (m_items) 335 m_items.LockItemsForWrite(true);
287 { 336 m_items[item.ItemID].PermsMask = 0;
288 m_items[item.ItemID].PermsMask = 0; 337 m_items[item.ItemID].PermsGranter = UUID.Zero;
289 m_items[item.ItemID].PermsGranter = UUID.Zero; 338 m_items.LockItemsForWrite(false);
290 }
291
292 m_part.ParentGroup.Scene.EventManager.TriggerRezScript( 339 m_part.ParentGroup.Scene.EventManager.TriggerRezScript(
293 m_part.LocalId, item.ItemID, String.Empty, startParam, postOnRez, engine, stateSource); 340 m_part.LocalId, item.ItemID, String.Empty, startParam, postOnRez, engine, stateSource);
341 StoreScriptErrors(item.ItemID, null);
294 m_part.ParentGroup.AddActiveScriptCount(1); 342 m_part.ParentGroup.AddActiveScriptCount(1);
295 m_part.ScheduleFullUpdate(); 343 m_part.ScheduleFullUpdate();
296 return true; 344 return true;
@@ -311,16 +359,28 @@ namespace OpenSim.Region.Framework.Scenes
311 if (m_part.ParentGroup.m_savedScriptState != null) 359 if (m_part.ParentGroup.m_savedScriptState != null)
312 item.OldItemID = RestoreSavedScriptState(item.LoadedItemID, item.OldItemID, item.ItemID); 360 item.OldItemID = RestoreSavedScriptState(item.LoadedItemID, item.OldItemID, item.ItemID);
313 361
314 lock (m_items) 362 string msg = String.Format("asset ID {0} could not be found", item.AssetID);
315 { 363 StoreScriptError(item.ItemID, msg);
316 m_items[item.ItemID].OldItemID = item.OldItemID; 364 m_log.ErrorFormat(
317 m_items[item.ItemID].PermsMask = 0; 365 "[PRIM INVENTORY]: Couldn't start script {0}, {1} at {2} in {3} since asset ID {4} could not be found",
318 m_items[item.ItemID].PermsGranter = UUID.Zero; 366 item.Name, item.ItemID, m_part.AbsolutePosition,
319 } 367 m_part.ParentGroup.Scene.RegionInfo.RegionName, item.AssetID);
368
369 m_items.LockItemsForWrite(true);
320 370
371 m_items[item.ItemID].OldItemID = item.OldItemID;
372 m_items[item.ItemID].PermsMask = 0;
373 m_items[item.ItemID].PermsGranter = UUID.Zero;
374
375 m_items.LockItemsForWrite(false);
376
321 string script = Utils.BytesToString(asset.Data); 377 string script = Utils.BytesToString(asset.Data);
322 m_part.ParentGroup.Scene.EventManager.TriggerRezScript( 378 m_part.ParentGroup.Scene.EventManager.TriggerRezScript(
323 m_part.LocalId, item.ItemID, script, startParam, postOnRez, engine, stateSource); 379 m_part.LocalId, item.ItemID, script, startParam, postOnRez, engine, stateSource);
380 StoreScriptErrors(item.ItemID, null);
381 if (!item.ScriptRunning)
382 m_part.ParentGroup.Scene.EventManager.TriggerStopScript(
383 m_part.LocalId, item.ItemID);
324 m_part.ParentGroup.AddActiveScriptCount(1); 384 m_part.ParentGroup.AddActiveScriptCount(1);
325 m_part.ScheduleFullUpdate(); 385 m_part.ScheduleFullUpdate();
326 386
@@ -390,22 +450,149 @@ namespace OpenSim.Region.Framework.Scenes
390 return stateID; 450 return stateID;
391 } 451 }
392 452
453 /// <summary>
454 /// Start a script which is in this prim's inventory.
455 /// Some processing may occur in the background, but this routine returns asap.
456 /// </summary>
457 /// <param name="itemId">
458 /// A <see cref="UUID"/>
459 /// </param>
393 public bool CreateScriptInstance(UUID itemId, int startParam, bool postOnRez, string engine, int stateSource) 460 public bool CreateScriptInstance(UUID itemId, int startParam, bool postOnRez, string engine, int stateSource)
394 { 461 {
395 TaskInventoryItem item = GetInventoryItem(itemId); 462 lock (m_scriptErrors)
396 if (item != null)
397 { 463 {
398 return CreateScriptInstance(item, startParam, postOnRez, engine, stateSource); 464 // Indicate to CreateScriptInstanceInternal() we don't want it to wait for completion
465 m_scriptErrors.Remove(itemId);
466 }
467 CreateScriptInstanceInternal(itemId, startParam, postOnRez, engine, stateSource);
468 return true;
469 }
470
471 private void CreateScriptInstanceInternal(UUID itemId, int startParam, bool postOnRez, string engine, int stateSource)
472 {
473 m_items.LockItemsForRead(true);
474 if (m_items.ContainsKey(itemId))
475 {
476 if (m_items.ContainsKey(itemId))
477 {
478 m_items.LockItemsForRead(false);
479 CreateScriptInstance(m_items[itemId], startParam, postOnRez, engine, stateSource);
480 }
481 else
482 {
483 m_items.LockItemsForRead(false);
484 string msg = String.Format("couldn't be found for prim {0}, {1} at {2} in {3}", m_part.Name, m_part.UUID,
485 m_part.AbsolutePosition, m_part.ParentGroup.Scene.RegionInfo.RegionName);
486 StoreScriptError(itemId, msg);
487 m_log.ErrorFormat(
488 "[PRIM INVENTORY]: " +
489 "Couldn't start script with ID {0} since it {1}", itemId, msg);
490 }
399 } 491 }
400 else 492 else
401 { 493 {
494 m_items.LockItemsForRead(false);
495 string msg = String.Format("couldn't be found for prim {0}, {1}", m_part.Name, m_part.UUID);
496 StoreScriptError(itemId, msg);
402 m_log.ErrorFormat( 497 m_log.ErrorFormat(
403 "[PRIM INVENTORY]: Couldn't start script with ID {0} since it couldn't be found for prim {1}, {2} at {3} in {4}", 498 "[PRIM INVENTORY]: Couldn't start script with ID {0} since it couldn't be found for prim {1}, {2} at {3} in {4}",
404 itemId, m_part.Name, m_part.UUID, 499 itemId, m_part.Name, m_part.UUID,
405 m_part.AbsolutePosition, m_part.ParentGroup.Scene.RegionInfo.RegionName); 500 m_part.AbsolutePosition, m_part.ParentGroup.Scene.RegionInfo.RegionName);
501 }
502
503 }
406 504
407 return false; 505 /// <summary>
506 /// Start a script which is in this prim's inventory and return any compilation error messages.
507 /// </summary>
508 /// <param name="itemId">
509 /// A <see cref="UUID"/>
510 /// </param>
511 public ArrayList CreateScriptInstanceEr(UUID itemId, int startParam, bool postOnRez, string engine, int stateSource)
512 {
513 ArrayList errors;
514
515 // Indicate to CreateScriptInstanceInternal() we want it to
516 // post any compilation/loading error messages
517 lock (m_scriptErrors)
518 {
519 m_scriptErrors[itemId] = null;
520 }
521
522 // Perform compilation/loading
523 CreateScriptInstanceInternal(itemId, startParam, postOnRez, engine, stateSource);
524
525 // Wait for and retrieve any errors
526 lock (m_scriptErrors)
527 {
528 while ((errors = m_scriptErrors[itemId]) == null)
529 {
530 if (!System.Threading.Monitor.Wait(m_scriptErrors, 15000))
531 {
532 m_log.ErrorFormat(
533 "[PRIM INVENTORY]: " +
534 "timedout waiting for script {0} errors", itemId);
535 errors = m_scriptErrors[itemId];
536 if (errors == null)
537 {
538 errors = new ArrayList(1);
539 errors.Add("timedout waiting for errors");
540 }
541 break;
542 }
543 }
544 m_scriptErrors.Remove(itemId);
408 } 545 }
546 return errors;
547 }
548
549 // Signal to CreateScriptInstanceEr() that compilation/loading is complete
550 private void StoreScriptErrors(UUID itemId, ArrayList errors)
551 {
552 lock (m_scriptErrors)
553 {
554 // If compilation/loading initiated via CreateScriptInstance(),
555 // it does not want the errors, so just get out
556 if (!m_scriptErrors.ContainsKey(itemId))
557 {
558 return;
559 }
560
561 // Initiated via CreateScriptInstanceEr(), if we know what the
562 // errors are, save them and wake CreateScriptInstanceEr().
563 if (errors != null)
564 {
565 m_scriptErrors[itemId] = errors;
566 System.Threading.Monitor.PulseAll(m_scriptErrors);
567 return;
568 }
569 }
570
571 // Initiated via CreateScriptInstanceEr() but we don't know what
572 // the errors are yet, so retrieve them from the script engine.
573 // This may involve some waiting internal to GetScriptErrors().
574 errors = GetScriptErrors(itemId);
575
576 // Get a default non-null value to indicate success.
577 if (errors == null)
578 {
579 errors = new ArrayList();
580 }
581
582 // Post to CreateScriptInstanceEr() and wake it up
583 lock (m_scriptErrors)
584 {
585 m_scriptErrors[itemId] = errors;
586 System.Threading.Monitor.PulseAll(m_scriptErrors);
587 }
588 }
589
590 // Like StoreScriptErrors(), but just posts a single string message
591 private void StoreScriptError(UUID itemId, string message)
592 {
593 ArrayList errors = new ArrayList(1);
594 errors.Add(message);
595 StoreScriptErrors(itemId, errors);
409 } 596 }
410 597
411 /// <summary> 598 /// <summary>
@@ -418,15 +605,7 @@ namespace OpenSim.Region.Framework.Scenes
418 /// </param> 605 /// </param>
419 public void RemoveScriptInstance(UUID itemId, bool sceneObjectBeingDeleted) 606 public void RemoveScriptInstance(UUID itemId, bool sceneObjectBeingDeleted)
420 { 607 {
421 bool scriptPresent = false; 608 if (m_items.ContainsKey(itemId))
422
423 lock (m_items)
424 {
425 if (m_items.ContainsKey(itemId))
426 scriptPresent = true;
427 }
428
429 if (scriptPresent)
430 { 609 {
431 if (!sceneObjectBeingDeleted) 610 if (!sceneObjectBeingDeleted)
432 m_part.RemoveScriptEvents(itemId); 611 m_part.RemoveScriptEvents(itemId);
@@ -451,14 +630,16 @@ namespace OpenSim.Region.Framework.Scenes
451 /// <returns></returns> 630 /// <returns></returns>
452 private bool InventoryContainsName(string name) 631 private bool InventoryContainsName(string name)
453 { 632 {
454 lock (m_items) 633 m_items.LockItemsForRead(true);
634 foreach (TaskInventoryItem item in m_items.Values)
455 { 635 {
456 foreach (TaskInventoryItem item in m_items.Values) 636 if (item.Name == name)
457 { 637 {
458 if (item.Name == name) 638 m_items.LockItemsForRead(false);
459 return true; 639 return true;
460 } 640 }
461 } 641 }
642 m_items.LockItemsForRead(false);
462 return false; 643 return false;
463 } 644 }
464 645
@@ -500,8 +681,9 @@ namespace OpenSim.Region.Framework.Scenes
500 /// <param name="item"></param> 681 /// <param name="item"></param>
501 public void AddInventoryItemExclusive(TaskInventoryItem item, bool allowedDrop) 682 public void AddInventoryItemExclusive(TaskInventoryItem item, bool allowedDrop)
502 { 683 {
503 List<TaskInventoryItem> il = GetInventoryItems(); 684 m_items.LockItemsForRead(true);
504 685 List<TaskInventoryItem> il = new List<TaskInventoryItem>(m_items.Values);
686 m_items.LockItemsForRead(false);
505 foreach (TaskInventoryItem i in il) 687 foreach (TaskInventoryItem i in il)
506 { 688 {
507 if (i.Name == item.Name) 689 if (i.Name == item.Name)
@@ -539,14 +721,14 @@ namespace OpenSim.Region.Framework.Scenes
539 item.Name = name; 721 item.Name = name;
540 item.GroupID = m_part.GroupID; 722 item.GroupID = m_part.GroupID;
541 723
542 lock (m_items) 724 m_items.LockItemsForWrite(true);
543 m_items.Add(item.ItemID, item); 725 m_items.Add(item.ItemID, item);
544 726 m_items.LockItemsForWrite(false);
545 if (allowedDrop) 727 if (allowedDrop)
546 m_part.TriggerScriptChangedEvent(Changed.ALLOWED_DROP); 728 m_part.TriggerScriptChangedEvent(Changed.ALLOWED_DROP);
547 else 729 else
548 m_part.TriggerScriptChangedEvent(Changed.INVENTORY); 730 m_part.TriggerScriptChangedEvent(Changed.INVENTORY);
549 731
550 m_inventorySerial++; 732 m_inventorySerial++;
551 //m_inventorySerial += 2; 733 //m_inventorySerial += 2;
552 HasInventoryChanged = true; 734 HasInventoryChanged = true;
@@ -562,15 +744,15 @@ namespace OpenSim.Region.Framework.Scenes
562 /// <param name="items"></param> 744 /// <param name="items"></param>
563 public void RestoreInventoryItems(ICollection<TaskInventoryItem> items) 745 public void RestoreInventoryItems(ICollection<TaskInventoryItem> items)
564 { 746 {
565 lock (m_items) 747 m_items.LockItemsForWrite(true);
748 foreach (TaskInventoryItem item in items)
566 { 749 {
567 foreach (TaskInventoryItem item in items) 750 m_items.Add(item.ItemID, item);
568 { 751// m_part.TriggerScriptChangedEvent(Changed.INVENTORY);
569 m_items.Add(item.ItemID, item);
570// m_part.TriggerScriptChangedEvent(Changed.INVENTORY);
571 }
572 m_inventorySerial++;
573 } 752 }
753 m_items.LockItemsForWrite(false);
754
755 m_inventorySerial++;
574 } 756 }
575 757
576 /// <summary> 758 /// <summary>
@@ -581,23 +763,24 @@ namespace OpenSim.Region.Framework.Scenes
581 public TaskInventoryItem GetInventoryItem(UUID itemId) 763 public TaskInventoryItem GetInventoryItem(UUID itemId)
582 { 764 {
583 TaskInventoryItem item; 765 TaskInventoryItem item;
584 766 m_items.LockItemsForRead(true);
585 lock (m_items) 767 m_items.TryGetValue(itemId, out item);
586 m_items.TryGetValue(itemId, out item); 768 m_items.LockItemsForRead(false);
587
588 return item; 769 return item;
589 } 770 }
590 771
591 public TaskInventoryItem GetInventoryItem(string name) 772 public TaskInventoryItem GetInventoryItem(string name)
592 { 773 {
593 lock (m_items) 774 m_items.LockItemsForRead(true);
775 foreach (TaskInventoryItem item in m_items.Values)
594 { 776 {
595 foreach (TaskInventoryItem item in m_items.Values) 777 if (item.Name == name)
596 { 778 {
597 if (item.Name == name) 779 m_items.LockItemsForRead(false);
598 return item; 780 return item;
599 } 781 }
600 } 782 }
783 m_items.LockItemsForRead(false);
601 784
602 return null; 785 return null;
603 } 786 }
@@ -606,15 +789,16 @@ namespace OpenSim.Region.Framework.Scenes
606 { 789 {
607 List<TaskInventoryItem> items = new List<TaskInventoryItem>(); 790 List<TaskInventoryItem> items = new List<TaskInventoryItem>();
608 791
609 lock (m_items) 792 m_items.LockItemsForRead(true);
793
794 foreach (TaskInventoryItem item in m_items.Values)
610 { 795 {
611 foreach (TaskInventoryItem item in m_items.Values) 796 if (item.Name == name)
612 { 797 items.Add(item);
613 if (item.Name == name)
614 items.Add(item);
615 }
616 } 798 }
617 799
800 m_items.LockItemsForRead(false);
801
618 return items; 802 return items;
619 } 803 }
620 804
@@ -633,6 +817,10 @@ namespace OpenSim.Region.Framework.Scenes
633 string xmlData = Utils.BytesToString(rezAsset.Data); 817 string xmlData = Utils.BytesToString(rezAsset.Data);
634 SceneObjectGroup group = SceneObjectSerializer.FromOriginalXmlFormat(xmlData); 818 SceneObjectGroup group = SceneObjectSerializer.FromOriginalXmlFormat(xmlData);
635 819
820 group.RootPart.AttachPoint = group.RootPart.Shape.State;
821 group.RootPart.AttachOffset = group.AbsolutePosition;
822 group.RootPart.AttachRotation = group.GroupRotation;
823
636 group.ResetIDs(); 824 group.ResetIDs();
637 825
638 SceneObjectPart rootPart = group.GetPart(group.UUID); 826 SceneObjectPart rootPart = group.GetPart(group.UUID);
@@ -707,8 +895,9 @@ namespace OpenSim.Region.Framework.Scenes
707 895
708 public bool UpdateInventoryItem(TaskInventoryItem item, bool fireScriptEvents, bool considerChanged) 896 public bool UpdateInventoryItem(TaskInventoryItem item, bool fireScriptEvents, bool considerChanged)
709 { 897 {
710 TaskInventoryItem it = GetInventoryItem(item.ItemID); 898 m_items.LockItemsForWrite(true);
711 if (it != null) 899
900 if (m_items.ContainsKey(item.ItemID))
712 { 901 {
713// m_log.DebugFormat("[PRIM INVENTORY]: Updating item {0} in {1}", item.Name, m_part.Name); 902// m_log.DebugFormat("[PRIM INVENTORY]: Updating item {0} in {1}", item.Name, m_part.Name);
714 903
@@ -721,14 +910,10 @@ namespace OpenSim.Region.Framework.Scenes
721 item.GroupID = m_part.GroupID; 910 item.GroupID = m_part.GroupID;
722 911
723 if (item.AssetID == UUID.Zero) 912 if (item.AssetID == UUID.Zero)
724 item.AssetID = it.AssetID; 913 item.AssetID = m_items[item.ItemID].AssetID;
725 914
726 lock (m_items) 915 m_items[item.ItemID] = item;
727 { 916 m_inventorySerial++;
728 m_items[item.ItemID] = item;
729 m_inventorySerial++;
730 }
731
732 if (fireScriptEvents) 917 if (fireScriptEvents)
733 m_part.TriggerScriptChangedEvent(Changed.INVENTORY); 918 m_part.TriggerScriptChangedEvent(Changed.INVENTORY);
734 919
@@ -737,7 +922,7 @@ namespace OpenSim.Region.Framework.Scenes
737 HasInventoryChanged = true; 922 HasInventoryChanged = true;
738 m_part.ParentGroup.HasGroupChanged = true; 923 m_part.ParentGroup.HasGroupChanged = true;
739 } 924 }
740 925 m_items.LockItemsForWrite(false);
741 return true; 926 return true;
742 } 927 }
743 else 928 else
@@ -748,8 +933,9 @@ namespace OpenSim.Region.Framework.Scenes
748 item.ItemID, m_part.Name, m_part.UUID, 933 item.ItemID, m_part.Name, m_part.UUID,
749 m_part.AbsolutePosition, m_part.ParentGroup.Scene.RegionInfo.RegionName); 934 m_part.AbsolutePosition, m_part.ParentGroup.Scene.RegionInfo.RegionName);
750 } 935 }
751 return false; 936 m_items.LockItemsForWrite(false);
752 937
938 return false;
753 } 939 }
754 940
755 /// <summary> 941 /// <summary>
@@ -760,43 +946,59 @@ namespace OpenSim.Region.Framework.Scenes
760 /// in this prim's inventory.</returns> 946 /// in this prim's inventory.</returns>
761 public int RemoveInventoryItem(UUID itemID) 947 public int RemoveInventoryItem(UUID itemID)
762 { 948 {
763 TaskInventoryItem item = GetInventoryItem(itemID); 949 m_items.LockItemsForRead(true);
764 if (item != null) 950
951 if (m_items.ContainsKey(itemID))
765 { 952 {
766 int type = m_items[itemID].InvType; 953 int type = m_items[itemID].InvType;
954 m_items.LockItemsForRead(false);
767 if (type == 10) // Script 955 if (type == 10) // Script
768 { 956 {
769 m_part.RemoveScriptEvents(itemID);
770 m_part.ParentGroup.Scene.EventManager.TriggerRemoveScript(m_part.LocalId, itemID); 957 m_part.ParentGroup.Scene.EventManager.TriggerRemoveScript(m_part.LocalId, itemID);
771 } 958 }
959 m_items.LockItemsForWrite(true);
772 m_items.Remove(itemID); 960 m_items.Remove(itemID);
961 m_items.LockItemsForWrite(false);
773 m_inventorySerial++; 962 m_inventorySerial++;
774 m_part.TriggerScriptChangedEvent(Changed.INVENTORY); 963 m_part.TriggerScriptChangedEvent(Changed.INVENTORY);
775 964
776 HasInventoryChanged = true; 965 HasInventoryChanged = true;
777 m_part.ParentGroup.HasGroupChanged = true; 966 m_part.ParentGroup.HasGroupChanged = true;
778 967
779 if (!ContainsScripts()) 968 int scriptcount = 0;
969 m_items.LockItemsForRead(true);
970 foreach (TaskInventoryItem item in m_items.Values)
971 {
972 if (item.Type == 10)
973 {
974 scriptcount++;
975 }
976 }
977 m_items.LockItemsForRead(false);
978
979
980 if (scriptcount <= 0)
981 {
780 m_part.RemFlag(PrimFlags.Scripted); 982 m_part.RemFlag(PrimFlags.Scripted);
983 }
781 984
782 m_part.ScheduleFullUpdate(); 985 m_part.ScheduleFullUpdate();
783 986
784 return type; 987 return type;
785
786 } 988 }
787 else 989 else
788 { 990 {
991 m_items.LockItemsForRead(false);
789 m_log.ErrorFormat( 992 m_log.ErrorFormat(
790 "[PRIM INVENTORY]: " + 993 "[PRIM INVENTORY]: " +
791 "Tried to remove item ID {0} from prim {1}, {2} at {3} in {4} but the item does not exist in this inventory", 994 "Tried to remove item ID {0} from prim {1}, {2} but the item does not exist in this inventory",
792 itemID, m_part.Name, m_part.UUID, 995 itemID, m_part.Name, m_part.UUID);
793 m_part.AbsolutePosition, m_part.ParentGroup.Scene.RegionInfo.RegionName);
794 } 996 }
795 997
796 return -1; 998 return -1;
797 } 999 }
798 1000
799 private bool CreateInventoryFile() 1001 private bool CreateInventoryFileName()
800 { 1002 {
801// m_log.DebugFormat( 1003// m_log.DebugFormat(
802// "[PRIM INVENTORY]: Creating inventory file for {0} {1} {2}, serial {3}", 1004// "[PRIM INVENTORY]: Creating inventory file for {0} {1} {2}, serial {3}",
@@ -805,70 +1007,12 @@ namespace OpenSim.Region.Framework.Scenes
805 if (m_inventoryFileName == String.Empty || 1007 if (m_inventoryFileName == String.Empty ||
806 m_inventoryFileNameSerial < m_inventorySerial) 1008 m_inventoryFileNameSerial < m_inventorySerial)
807 { 1009 {
808 // Something changed, we need to create a new file
809 m_inventoryFileName = "inventory_" + UUID.Random().ToString() + ".tmp"; 1010 m_inventoryFileName = "inventory_" + UUID.Random().ToString() + ".tmp";
810 m_inventoryFileNameSerial = m_inventorySerial; 1011 m_inventoryFileNameSerial = m_inventorySerial;
811 1012
812 InventoryStringBuilder invString = new InventoryStringBuilder(m_part.UUID, UUID.Zero);
813
814 lock (m_items)
815 {
816 foreach (TaskInventoryItem item in m_items.Values)
817 {
818// m_log.DebugFormat(
819// "[PRIM INVENTORY]: Adding item {0} {1} for serial {2} on prim {3} {4} {5}",
820// item.Name, item.ItemID, m_inventorySerial, m_part.Name, m_part.UUID, m_part.LocalId);
821
822 UUID ownerID = item.OwnerID;
823 uint everyoneMask = 0;
824 uint baseMask = item.BasePermissions;
825 uint ownerMask = item.CurrentPermissions;
826 uint groupMask = item.GroupPermissions;
827
828 invString.AddItemStart();
829 invString.AddNameValueLine("item_id", item.ItemID.ToString());
830 invString.AddNameValueLine("parent_id", m_part.UUID.ToString());
831
832 invString.AddPermissionsStart();
833
834 invString.AddNameValueLine("base_mask", Utils.UIntToHexString(baseMask));
835 invString.AddNameValueLine("owner_mask", Utils.UIntToHexString(ownerMask));
836 invString.AddNameValueLine("group_mask", Utils.UIntToHexString(groupMask));
837 invString.AddNameValueLine("everyone_mask", Utils.UIntToHexString(everyoneMask));
838 invString.AddNameValueLine("next_owner_mask", Utils.UIntToHexString(item.NextPermissions));
839
840 invString.AddNameValueLine("creator_id", item.CreatorID.ToString());
841 invString.AddNameValueLine("owner_id", ownerID.ToString());
842
843 invString.AddNameValueLine("last_owner_id", item.LastOwnerID.ToString());
844
845 invString.AddNameValueLine("group_id", item.GroupID.ToString());
846 invString.AddSectionEnd();
847
848 invString.AddNameValueLine("asset_id", item.AssetID.ToString());
849 invString.AddNameValueLine("type", Utils.AssetTypeToString((AssetType)item.Type));
850 invString.AddNameValueLine("inv_type", Utils.InventoryTypeToString((InventoryType)item.InvType));
851 invString.AddNameValueLine("flags", Utils.UIntToHexString(item.Flags));
852
853 invString.AddSaleStart();
854 invString.AddNameValueLine("sale_type", "not");
855 invString.AddNameValueLine("sale_price", "0");
856 invString.AddSectionEnd();
857
858 invString.AddNameValueLine("name", item.Name + "|");
859 invString.AddNameValueLine("desc", item.Description + "|");
860
861 invString.AddNameValueLine("creation_date", item.CreationDate.ToString());
862 invString.AddSectionEnd();
863 }
864 }
865
866 m_inventoryFileData = Utils.StringToBytes(invString.BuildString);
867
868 return true; 1013 return true;
869 } 1014 }
870 1015
871 // No need to recreate, the existing file is fine
872 return false; 1016 return false;
873 } 1017 }
874 1018
@@ -878,43 +1022,110 @@ namespace OpenSim.Region.Framework.Scenes
878 /// <param name="xferManager"></param> 1022 /// <param name="xferManager"></param>
879 public void RequestInventoryFile(IClientAPI client, IXfer xferManager) 1023 public void RequestInventoryFile(IClientAPI client, IXfer xferManager)
880 { 1024 {
881 lock (m_items) 1025 bool changed = CreateInventoryFileName();
882 {
883 // Don't send a inventory xfer name if there are no items. Doing so causes viewer 3 to crash when rezzing
884 // a new script if any previous deletion has left the prim inventory empty.
885 if (m_items.Count == 0) // No inventory
886 {
887// m_log.DebugFormat(
888// "[PRIM INVENTORY]: Not sending inventory data for part {0} {1} {2} for {3} since no items",
889// m_part.Name, m_part.LocalId, m_part.UUID, client.Name);
890 1026
891 client.SendTaskInventory(m_part.UUID, 0, new byte[0]); 1027 bool includeAssets = false;
892 return; 1028 if (m_part.ParentGroup.Scene.Permissions.CanEditObjectInventory(m_part.UUID, client.AgentId))
893 } 1029 includeAssets = true;
1030
1031 if (m_inventoryPrivileged != includeAssets)
1032 changed = true;
1033
1034 InventoryStringBuilder invString = new InventoryStringBuilder(m_part.UUID, UUID.Zero);
894 1035
895 CreateInventoryFile(); 1036 Items.LockItemsForRead(true);
1037
1038 if (m_inventorySerial == 0) // No inventory
1039 {
1040 client.SendTaskInventory(m_part.UUID, 0, new byte[0]);
1041 Items.LockItemsForRead(false);
1042 return;
1043 }
1044
1045 if (m_items.Count == 0) // No inventory
1046 {
1047 client.SendTaskInventory(m_part.UUID, 0, new byte[0]);
1048 Items.LockItemsForRead(false);
1049 return;
1050 }
896 1051
897 // In principle, we should only do the rest if the inventory changed; 1052 if (!changed)
898 // by sending m_inventorySerial to the client, it ought to know 1053 {
899 // that nothing changed and that it doesn't need to request the file.
900 // Unfortunately, it doesn't look like the client optimizes this;
901 // the client seems to always come back and request the Xfer,
902 // no matter what value m_inventorySerial has.
903 // FIXME: Could probably be > 0 here rather than > 2
904 if (m_inventoryFileData.Length > 2) 1054 if (m_inventoryFileData.Length > 2)
905 { 1055 {
906 // Add the file for Xfer 1056 xferManager.AddNewFile(m_inventoryFileName,
907 // m_log.DebugFormat( 1057 m_inventoryFileData);
908 // "[PRIM INVENTORY]: Adding inventory file {0} (length {1}) for transfer on {2} {3} {4}", 1058 client.SendTaskInventory(m_part.UUID, (short)m_inventorySerial,
909 // m_inventoryFileName, m_inventoryFileData.Length, m_part.Name, m_part.UUID, m_part.LocalId); 1059 Util.StringToBytes256(m_inventoryFileName));
910 1060
911 xferManager.AddNewFile(m_inventoryFileName, m_inventoryFileData); 1061 Items.LockItemsForRead(false);
1062 return;
912 } 1063 }
913
914 // Tell the client we're ready to Xfer the file
915 client.SendTaskInventory(m_part.UUID, (short)m_inventorySerial,
916 Util.StringToBytes256(m_inventoryFileName));
917 } 1064 }
1065
1066 m_inventoryPrivileged = includeAssets;
1067
1068 foreach (TaskInventoryItem item in m_items.Values)
1069 {
1070 UUID ownerID = item.OwnerID;
1071 uint everyoneMask = 0;
1072 uint baseMask = item.BasePermissions;
1073 uint ownerMask = item.CurrentPermissions;
1074 uint groupMask = item.GroupPermissions;
1075
1076 invString.AddItemStart();
1077 invString.AddNameValueLine("item_id", item.ItemID.ToString());
1078 invString.AddNameValueLine("parent_id", m_part.UUID.ToString());
1079
1080 invString.AddPermissionsStart();
1081
1082 invString.AddNameValueLine("base_mask", Utils.UIntToHexString(baseMask));
1083 invString.AddNameValueLine("owner_mask", Utils.UIntToHexString(ownerMask));
1084 invString.AddNameValueLine("group_mask", Utils.UIntToHexString(groupMask));
1085 invString.AddNameValueLine("everyone_mask", Utils.UIntToHexString(everyoneMask));
1086 invString.AddNameValueLine("next_owner_mask", Utils.UIntToHexString(item.NextPermissions));
1087
1088 invString.AddNameValueLine("creator_id", item.CreatorID.ToString());
1089 invString.AddNameValueLine("owner_id", ownerID.ToString());
1090
1091 invString.AddNameValueLine("last_owner_id", item.LastOwnerID.ToString());
1092
1093 invString.AddNameValueLine("group_id", item.GroupID.ToString());
1094 invString.AddSectionEnd();
1095
1096 if (includeAssets)
1097 invString.AddNameValueLine("asset_id", item.AssetID.ToString());
1098 else
1099 invString.AddNameValueLine("asset_id", UUID.Zero.ToString());
1100 invString.AddNameValueLine("type", Utils.AssetTypeToString((AssetType)item.Type));
1101 invString.AddNameValueLine("inv_type", Utils.InventoryTypeToString((InventoryType)item.InvType));
1102 invString.AddNameValueLine("flags", Utils.UIntToHexString(item.Flags));
1103
1104 invString.AddSaleStart();
1105 invString.AddNameValueLine("sale_type", "not");
1106 invString.AddNameValueLine("sale_price", "0");
1107 invString.AddSectionEnd();
1108
1109 invString.AddNameValueLine("name", item.Name + "|");
1110 invString.AddNameValueLine("desc", item.Description + "|");
1111
1112 invString.AddNameValueLine("creation_date", item.CreationDate.ToString());
1113 invString.AddSectionEnd();
1114 }
1115
1116 Items.LockItemsForRead(false);
1117
1118 m_inventoryFileData = Utils.StringToBytes(invString.BuildString);
1119
1120 if (m_inventoryFileData.Length > 2)
1121 {
1122 xferManager.AddNewFile(m_inventoryFileName, m_inventoryFileData);
1123 client.SendTaskInventory(m_part.UUID, (short)m_inventorySerial,
1124 Util.StringToBytes256(m_inventoryFileName));
1125 return;
1126 }
1127
1128 client.SendTaskInventory(m_part.UUID, 0, new byte[0]);
918 } 1129 }
919 1130
920 /// <summary> 1131 /// <summary>
@@ -923,13 +1134,19 @@ namespace OpenSim.Region.Framework.Scenes
923 /// <param name="datastore"></param> 1134 /// <param name="datastore"></param>
924 public void ProcessInventoryBackup(ISimulationDataService datastore) 1135 public void ProcessInventoryBackup(ISimulationDataService datastore)
925 { 1136 {
926 if (HasInventoryChanged) 1137// Removed this because linking will cause an immediate delete of the new
927 { 1138// child prim from the database and the subsequent storing of the prim sees
928 HasInventoryChanged = false; 1139// the inventory of it as unchanged and doesn't store it at all. The overhead
929 List<TaskInventoryItem> items = GetInventoryItems(); 1140// of storing prim inventory needlessly is much less than the aggravation
930 datastore.StorePrimInventory(m_part.UUID, items); 1141// of prim inventory loss.
1142// if (HasInventoryChanged)
1143// {
1144 Items.LockItemsForRead(true);
1145 datastore.StorePrimInventory(m_part.UUID, Items.Values);
1146 Items.LockItemsForRead(false);
931 1147
932 } 1148 HasInventoryChanged = false;
1149// }
933 } 1150 }
934 1151
935 public class InventoryStringBuilder 1152 public class InventoryStringBuilder
@@ -995,87 +1212,63 @@ namespace OpenSim.Region.Framework.Scenes
995 { 1212 {
996 uint mask=0x7fffffff; 1213 uint mask=0x7fffffff;
997 1214
998 lock (m_items) 1215 foreach (TaskInventoryItem item in m_items.Values)
999 { 1216 {
1000 foreach (TaskInventoryItem item in m_items.Values) 1217 if ((item.CurrentPermissions & item.NextPermissions & (uint)PermissionMask.Copy) == 0)
1218 mask &= ~((uint)PermissionMask.Copy >> 13);
1219 if ((item.CurrentPermissions & item.NextPermissions & (uint)PermissionMask.Transfer) == 0)
1220 mask &= ~((uint)PermissionMask.Transfer >> 13);
1221 if ((item.CurrentPermissions & item.NextPermissions & (uint)PermissionMask.Modify) == 0)
1222 mask &= ~((uint)PermissionMask.Modify >> 13);
1223
1224 if (item.InvType == (int)InventoryType.Object)
1001 { 1225 {
1002 if ((item.CurrentPermissions & item.NextPermissions & (uint)PermissionMask.Copy) == 0) 1226 if ((item.CurrentPermissions & ((uint)PermissionMask.Copy >> 13)) == 0)
1003 mask &= ~((uint)PermissionMask.Copy >> 13); 1227 mask &= ~((uint)PermissionMask.Copy >> 13);
1004 if ((item.CurrentPermissions & item.NextPermissions & (uint)PermissionMask.Transfer) == 0) 1228 if ((item.CurrentPermissions & ((uint)PermissionMask.Transfer >> 13)) == 0)
1005 mask &= ~((uint)PermissionMask.Transfer >> 13); 1229 mask &= ~((uint)PermissionMask.Transfer >> 13);
1006 if ((item.CurrentPermissions & item.NextPermissions & (uint)PermissionMask.Modify) == 0) 1230 if ((item.CurrentPermissions & ((uint)PermissionMask.Modify >> 13)) == 0)
1007 mask &= ~((uint)PermissionMask.Modify >> 13); 1231 mask &= ~((uint)PermissionMask.Modify >> 13);
1008
1009 if (item.InvType != (int)InventoryType.Object)
1010 {
1011 if ((item.CurrentPermissions & item.NextPermissions & (uint)PermissionMask.Copy) == 0)
1012 mask &= ~((uint)PermissionMask.Copy >> 13);
1013 if ((item.CurrentPermissions & item.NextPermissions & (uint)PermissionMask.Transfer) == 0)
1014 mask &= ~((uint)PermissionMask.Transfer >> 13);
1015 if ((item.CurrentPermissions & item.NextPermissions & (uint)PermissionMask.Modify) == 0)
1016 mask &= ~((uint)PermissionMask.Modify >> 13);
1017 }
1018 else
1019 {
1020 if ((item.CurrentPermissions & ((uint)PermissionMask.Copy >> 13)) == 0)
1021 mask &= ~((uint)PermissionMask.Copy >> 13);
1022 if ((item.CurrentPermissions & ((uint)PermissionMask.Transfer >> 13)) == 0)
1023 mask &= ~((uint)PermissionMask.Transfer >> 13);
1024 if ((item.CurrentPermissions & ((uint)PermissionMask.Modify >> 13)) == 0)
1025 mask &= ~((uint)PermissionMask.Modify >> 13);
1026 }
1027
1028 if ((item.CurrentPermissions & (uint)PermissionMask.Copy) == 0)
1029 mask &= ~(uint)PermissionMask.Copy;
1030 if ((item.CurrentPermissions & (uint)PermissionMask.Transfer) == 0)
1031 mask &= ~(uint)PermissionMask.Transfer;
1032 if ((item.CurrentPermissions & (uint)PermissionMask.Modify) == 0)
1033 mask &= ~(uint)PermissionMask.Modify;
1034 } 1232 }
1233
1234 if ((item.CurrentPermissions & (uint)PermissionMask.Copy) == 0)
1235 mask &= ~(uint)PermissionMask.Copy;
1236 if ((item.CurrentPermissions & (uint)PermissionMask.Transfer) == 0)
1237 mask &= ~(uint)PermissionMask.Transfer;
1238 if ((item.CurrentPermissions & (uint)PermissionMask.Modify) == 0)
1239 mask &= ~(uint)PermissionMask.Modify;
1035 } 1240 }
1036
1037 return mask; 1241 return mask;
1038 } 1242 }
1039 1243
1040 public void ApplyNextOwnerPermissions() 1244 public void ApplyNextOwnerPermissions()
1041 { 1245 {
1042 lock (m_items) 1246 foreach (TaskInventoryItem item in m_items.Values)
1043 { 1247 {
1044 foreach (TaskInventoryItem item in m_items.Values) 1248 if (item.InvType == (int)InventoryType.Object && (item.CurrentPermissions & 7) != 0)
1045 { 1249 {
1046// m_log.DebugFormat ( 1250 if ((item.CurrentPermissions & ((uint)PermissionMask.Copy >> 13)) == 0)
1047// "[SCENE OBJECT PART INVENTORY]: Applying next permissions {0} to {1} in {2} with current {3}, base {4}, everyone {5}", 1251 item.CurrentPermissions &= ~(uint)PermissionMask.Copy;
1048// item.NextPermissions, item.Name, m_part.Name, item.CurrentPermissions, item.BasePermissions, item.EveryonePermissions); 1252 if ((item.CurrentPermissions & ((uint)PermissionMask.Transfer >> 13)) == 0)
1049 1253 item.CurrentPermissions &= ~(uint)PermissionMask.Transfer;
1050 if (item.InvType == (int)InventoryType.Object && (item.CurrentPermissions & 7) != 0) 1254 if ((item.CurrentPermissions & ((uint)PermissionMask.Modify >> 13)) == 0)
1051 { 1255 item.CurrentPermissions &= ~(uint)PermissionMask.Modify;
1052 if ((item.CurrentPermissions & ((uint)PermissionMask.Copy >> 13)) == 0)
1053 item.CurrentPermissions &= ~(uint)PermissionMask.Copy;
1054 if ((item.CurrentPermissions & ((uint)PermissionMask.Transfer >> 13)) == 0)
1055 item.CurrentPermissions &= ~(uint)PermissionMask.Transfer;
1056 if ((item.CurrentPermissions & ((uint)PermissionMask.Modify >> 13)) == 0)
1057 item.CurrentPermissions &= ~(uint)PermissionMask.Modify;
1058 }
1059
1060 item.CurrentPermissions &= item.NextPermissions;
1061 item.BasePermissions &= item.NextPermissions;
1062 item.EveryonePermissions &= item.NextPermissions;
1063 item.OwnerChanged = true;
1064 item.PermsMask = 0;
1065 item.PermsGranter = UUID.Zero;
1066 } 1256 }
1257 item.CurrentPermissions &= item.NextPermissions;
1258 item.BasePermissions &= item.NextPermissions;
1259 item.EveryonePermissions &= item.NextPermissions;
1260 item.OwnerChanged = true;
1261 item.PermsMask = 0;
1262 item.PermsGranter = UUID.Zero;
1067 } 1263 }
1068 } 1264 }
1069 1265
1070 public void ApplyGodPermissions(uint perms) 1266 public void ApplyGodPermissions(uint perms)
1071 { 1267 {
1072 lock (m_items) 1268 foreach (TaskInventoryItem item in m_items.Values)
1073 { 1269 {
1074 foreach (TaskInventoryItem item in m_items.Values) 1270 item.CurrentPermissions = perms;
1075 { 1271 item.BasePermissions = perms;
1076 item.CurrentPermissions = perms;
1077 item.BasePermissions = perms;
1078 }
1079 } 1272 }
1080 1273
1081 m_inventorySerial++; 1274 m_inventorySerial++;
@@ -1088,14 +1281,11 @@ namespace OpenSim.Region.Framework.Scenes
1088 /// <returns></returns> 1281 /// <returns></returns>
1089 public bool ContainsScripts() 1282 public bool ContainsScripts()
1090 { 1283 {
1091 lock (m_items) 1284 foreach (TaskInventoryItem item in m_items.Values)
1092 { 1285 {
1093 foreach (TaskInventoryItem item in m_items.Values) 1286 if (item.InvType == (int)InventoryType.LSL)
1094 { 1287 {
1095 if (item.InvType == (int)InventoryType.LSL) 1288 return true;
1096 {
1097 return true;
1098 }
1099 } 1289 }
1100 } 1290 }
1101 1291
@@ -1109,17 +1299,15 @@ namespace OpenSim.Region.Framework.Scenes
1109 public int ScriptCount() 1299 public int ScriptCount()
1110 { 1300 {
1111 int count = 0; 1301 int count = 0;
1112 lock (m_items) 1302 Items.LockItemsForRead(true);
1303 foreach (TaskInventoryItem item in m_items.Values)
1113 { 1304 {
1114 foreach (TaskInventoryItem item in m_items.Values) 1305 if (item.InvType == (int)InventoryType.LSL)
1115 { 1306 {
1116 if (item.InvType == (int)InventoryType.LSL) 1307 count++;
1117 {
1118 count++;
1119 }
1120 } 1308 }
1121 } 1309 }
1122 1310 Items.LockItemsForRead(false);
1123 return count; 1311 return count;
1124 } 1312 }
1125 /// <summary> 1313 /// <summary>
@@ -1155,11 +1343,8 @@ namespace OpenSim.Region.Framework.Scenes
1155 { 1343 {
1156 List<UUID> ret = new List<UUID>(); 1344 List<UUID> ret = new List<UUID>();
1157 1345
1158 lock (m_items) 1346 foreach (TaskInventoryItem item in m_items.Values)
1159 { 1347 ret.Add(item.ItemID);
1160 foreach (TaskInventoryItem item in m_items.Values)
1161 ret.Add(item.ItemID);
1162 }
1163 1348
1164 return ret; 1349 return ret;
1165 } 1350 }
@@ -1168,8 +1353,9 @@ namespace OpenSim.Region.Framework.Scenes
1168 { 1353 {
1169 List<TaskInventoryItem> ret = new List<TaskInventoryItem>(); 1354 List<TaskInventoryItem> ret = new List<TaskInventoryItem>();
1170 1355
1171 lock (m_items) 1356 Items.LockItemsForRead(true);
1172 ret = new List<TaskInventoryItem>(m_items.Values); 1357 ret = new List<TaskInventoryItem>(m_items.Values);
1358 Items.LockItemsForRead(false);
1173 1359
1174 return ret; 1360 return ret;
1175 } 1361 }
@@ -1178,18 +1364,24 @@ namespace OpenSim.Region.Framework.Scenes
1178 { 1364 {
1179 List<TaskInventoryItem> ret = new List<TaskInventoryItem>(); 1365 List<TaskInventoryItem> ret = new List<TaskInventoryItem>();
1180 1366
1181 lock (m_items) 1367 Items.LockItemsForRead(true);
1182 { 1368
1183 foreach (TaskInventoryItem item in m_items.Values) 1369 foreach (TaskInventoryItem item in m_items.Values)
1184 if (item.InvType == (int)type) 1370 if (item.InvType == (int)type)
1185 ret.Add(item); 1371 ret.Add(item);
1186 } 1372
1373 Items.LockItemsForRead(false);
1187 1374
1188 return ret; 1375 return ret;
1189 } 1376 }
1190 1377
1191 public Dictionary<UUID, string> GetScriptStates() 1378 public Dictionary<UUID, string> GetScriptStates()
1192 { 1379 {
1380 return GetScriptStates(false);
1381 }
1382
1383 public Dictionary<UUID, string> GetScriptStates(bool oldIDs)
1384 {
1193 Dictionary<UUID, string> ret = new Dictionary<UUID, string>(); 1385 Dictionary<UUID, string> ret = new Dictionary<UUID, string>();
1194 1386
1195 if (m_part.ParentGroup.Scene == null) // Group not in a scene 1387 if (m_part.ParentGroup.Scene == null) // Group not in a scene
@@ -1211,14 +1403,21 @@ namespace OpenSim.Region.Framework.Scenes
1211 string n = e.GetXMLState(item.ItemID); 1403 string n = e.GetXMLState(item.ItemID);
1212 if (n != String.Empty) 1404 if (n != String.Empty)
1213 { 1405 {
1214 if (!ret.ContainsKey(item.ItemID)) 1406 if (oldIDs)
1215 ret[item.ItemID] = n; 1407 {
1408 if (!ret.ContainsKey(item.OldItemID))
1409 ret[item.OldItemID] = n;
1410 }
1411 else
1412 {
1413 if (!ret.ContainsKey(item.ItemID))
1414 ret[item.ItemID] = n;
1415 }
1216 break; 1416 break;
1217 } 1417 }
1218 } 1418 }
1219 } 1419 }
1220 } 1420 }
1221
1222 return ret; 1421 return ret;
1223 } 1422 }
1224 1423
@@ -1251,4 +1450,4 @@ namespace OpenSim.Region.Framework.Scenes
1251 } 1450 }
1252 } 1451 }
1253 } 1452 }
1254} \ No newline at end of file 1453}
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
index 909c7c8..f3e8377 100644
--- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs
+++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs
@@ -63,6 +63,7 @@ namespace OpenSim.Region.Framework.Scenes
63 63
64 struct ScriptControllers 64 struct ScriptControllers
65 { 65 {
66 public UUID objectID;
66 public UUID itemID; 67 public UUID itemID;
67 public ScriptControlled ignoreControls; 68 public ScriptControlled ignoreControls;
68 public ScriptControlled eventControls; 69 public ScriptControlled eventControls;
@@ -98,7 +99,7 @@ namespace OpenSim.Region.Framework.Scenes
98 /// rotation, prim cut, prim twist, prim taper, and prim shear. See mantis 99 /// rotation, prim cut, prim twist, prim taper, and prim shear. See mantis
99 /// issue #1716 100 /// issue #1716
100 /// </summary> 101 /// </summary>
101 public static readonly Vector3 SIT_TARGET_ADJUSTMENT = new Vector3(0.0f, 0.0f, 0.418f); 102 public static readonly Vector3 SIT_TARGET_ADJUSTMENT = new Vector3(0.0f, 0.0f, 0.4f);
102 103
103 /// <summary> 104 /// <summary>
104 /// Movement updates for agents in neighboring regions are sent directly to clients. 105 /// Movement updates for agents in neighboring regions are sent directly to clients.
@@ -175,6 +176,7 @@ namespace OpenSim.Region.Framework.Scenes
175// private int m_lastColCount = -1; //KF: Look for Collision chnages 176// private int m_lastColCount = -1; //KF: Look for Collision chnages
176// private int m_updateCount = 0; //KF: Update Anims for a while 177// private int m_updateCount = 0; //KF: Update Anims for a while
177// private static readonly int UPDATE_COUNT = 10; // how many frames to update for 178// private static readonly int UPDATE_COUNT = 10; // how many frames to update for
179 private List<uint> m_lastColliders = new List<uint>();
178 180
179 private TeleportFlags m_teleportFlags; 181 private TeleportFlags m_teleportFlags;
180 public TeleportFlags TeleportFlags 182 public TeleportFlags TeleportFlags
@@ -236,6 +238,13 @@ namespace OpenSim.Region.Framework.Scenes
236 //private int m_moveToPositionStateStatus; 238 //private int m_moveToPositionStateStatus;
237 //***************************************************** 239 //*****************************************************
238 240
241 private bool m_collisionEventFlag = false;
242 private object m_collisionEventLock = new Object();
243
244 private int m_movementAnimationUpdateCounter = 0;
245
246 private Vector3 m_prevSitOffset;
247
239 protected AvatarAppearance m_appearance; 248 protected AvatarAppearance m_appearance;
240 249
241 public AvatarAppearance Appearance 250 public AvatarAppearance Appearance
@@ -577,6 +586,13 @@ namespace OpenSim.Region.Framework.Scenes
577 /// </summary> 586 /// </summary>
578 public uint ParentID { get; set; } 587 public uint ParentID { get; set; }
579 588
589 public UUID ParentUUID
590 {
591 get { return m_parentUUID; }
592 set { m_parentUUID = value; }
593 }
594 private UUID m_parentUUID = UUID.Zero;
595
580 /// <summary> 596 /// <summary>
581 /// If the avatar is sitting, the prim that it's sitting on. If not sitting then null. 597 /// If the avatar is sitting, the prim that it's sitting on. If not sitting then null.
582 /// </summary> 598 /// </summary>
@@ -737,6 +753,33 @@ namespace OpenSim.Region.Framework.Scenes
737 Appearance = appearance; 753 Appearance = appearance;
738 } 754 }
739 755
756 private void RegionHeartbeatEnd(Scene scene)
757 {
758 if (IsChildAgent)
759 return;
760
761 m_movementAnimationUpdateCounter ++;
762 if (m_movementAnimationUpdateCounter >= 2)
763 {
764 m_movementAnimationUpdateCounter = 0;
765 if (Animator != null)
766 {
767 // If the parentID == 0 we are not sitting
768 // if !SitGournd then we are not sitting on the ground
769 // Fairly straightforward, now here comes the twist
770 // if ParentUUID is NOT UUID.Zero, we are looking to
771 // be sat on an object that isn't there yet. Should
772 // be treated as if sat.
773 if(ParentID == 0 && !SitGround && ParentUUID == UUID.Zero) // skip it if sitting
774 Animator.UpdateMovementAnimations();
775 }
776 else
777 {
778 m_scene.EventManager.OnRegionHeartbeatEnd -= RegionHeartbeatEnd;
779 }
780 }
781 }
782
740 public void RegisterToEvents() 783 public void RegisterToEvents()
741 { 784 {
742 ControllingClient.OnCompleteMovementToRegion += CompleteMovement; 785 ControllingClient.OnCompleteMovementToRegion += CompleteMovement;
@@ -746,6 +789,7 @@ namespace OpenSim.Region.Framework.Scenes
746 ControllingClient.OnSetAlwaysRun += HandleSetAlwaysRun; 789 ControllingClient.OnSetAlwaysRun += HandleSetAlwaysRun;
747 ControllingClient.OnStartAnim += HandleStartAnim; 790 ControllingClient.OnStartAnim += HandleStartAnim;
748 ControllingClient.OnStopAnim += HandleStopAnim; 791 ControllingClient.OnStopAnim += HandleStopAnim;
792 ControllingClient.OnChangeAnim += avnHandleChangeAnim;
749 ControllingClient.OnForceReleaseControls += HandleForceReleaseControls; 793 ControllingClient.OnForceReleaseControls += HandleForceReleaseControls;
750 ControllingClient.OnAutoPilotGo += MoveToTarget; 794 ControllingClient.OnAutoPilotGo += MoveToTarget;
751 795
@@ -806,10 +850,38 @@ namespace OpenSim.Region.Framework.Scenes
806 "[SCENE]: Upgrading child to root agent for {0} in {1}", 850 "[SCENE]: Upgrading child to root agent for {0} in {1}",
807 Name, m_scene.RegionInfo.RegionName); 851 Name, m_scene.RegionInfo.RegionName);
808 852
809 //m_log.DebugFormat("[SCENE]: known regions in {0}: {1}", Scene.RegionInfo.RegionName, KnownChildRegionHandles.Count);
810
811 bool wasChild = IsChildAgent; 853 bool wasChild = IsChildAgent;
812 IsChildAgent = false; 854
855 if (ParentUUID != UUID.Zero)
856 {
857 m_log.DebugFormat("[SCENE PRESENCE]: Sitting avatar back on prim {0}", ParentUUID);
858 SceneObjectPart part = m_scene.GetSceneObjectPart(ParentUUID);
859 if (part == null)
860 {
861 m_log.ErrorFormat("[SCENE PRESENCE]: Can't find prim {0} to sit on", ParentUUID);
862 }
863 else
864 {
865 part.ParentGroup.AddAvatar(UUID);
866 if (part.SitTargetPosition != Vector3.Zero)
867 part.SitTargetAvatar = UUID;
868 ParentPosition = part.GetWorldPosition();
869 ParentID = part.LocalId;
870 ParentPart = part;
871 m_pos = m_prevSitOffset;
872 pos = ParentPosition;
873 }
874 ParentUUID = UUID.Zero;
875
876 IsChildAgent = false;
877
878// Animator.TrySetMovementAnimation("SIT");
879 }
880 else
881 {
882 IsChildAgent = false;
883 }
884
813 885
814 IGroupsModule gm = m_scene.RequestModuleInterface<IGroupsModule>(); 886 IGroupsModule gm = m_scene.RequestModuleInterface<IGroupsModule>();
815 if (gm != null) 887 if (gm != null)
@@ -819,62 +891,72 @@ namespace OpenSim.Region.Framework.Scenes
819 891
820 m_scene.EventManager.TriggerSetRootAgentScene(m_uuid, m_scene); 892 m_scene.EventManager.TriggerSetRootAgentScene(m_uuid, m_scene);
821 893
822 // Moved this from SendInitialData to ensure that Appearance is initialized 894 if (ParentID == 0)
823 // before the inventory is processed in MakeRootAgent. This fixes a race condition
824 // related to the handling of attachments
825 //m_scene.GetAvatarAppearance(ControllingClient, out Appearance);
826 if (m_scene.TestBorderCross(pos, Cardinals.E))
827 { 895 {
828 Border crossedBorder = m_scene.GetCrossedBorder(pos, Cardinals.E); 896 // Moved this from SendInitialData to ensure that Appearance is initialized
829 pos.X = crossedBorder.BorderLine.Z - 1; 897 // before the inventory is processed in MakeRootAgent. This fixes a race condition
830 } 898 // related to the handling of attachments
899 //m_scene.GetAvatarAppearance(ControllingClient, out Appearance);
900 if (m_scene.TestBorderCross(pos, Cardinals.E))
901 {
902 Border crossedBorder = m_scene.GetCrossedBorder(pos, Cardinals.E);
903 pos.X = crossedBorder.BorderLine.Z - 1;
904 }
831 905
832 if (m_scene.TestBorderCross(pos, Cardinals.N)) 906 if (m_scene.TestBorderCross(pos, Cardinals.N))
833 { 907 {
834 Border crossedBorder = m_scene.GetCrossedBorder(pos, Cardinals.N); 908 Border crossedBorder = m_scene.GetCrossedBorder(pos, Cardinals.N);
835 pos.Y = crossedBorder.BorderLine.Z - 1; 909 pos.Y = crossedBorder.BorderLine.Z - 1;
836 } 910 }
837 911
838 CheckAndAdjustLandingPoint(ref pos); 912 CheckAndAdjustLandingPoint(ref pos);
839 913
840 if (pos.X < 0f || pos.Y < 0f || pos.Z < 0f) 914 if (pos.X < 0f || pos.Y < 0f || pos.Z < 0f)
841 { 915 {
842 m_log.WarnFormat( 916 m_log.WarnFormat(
843 "[SCENE PRESENCE]: MakeRootAgent() was given an illegal position of {0} for avatar {1}, {2}. Clamping", 917 "[SCENE PRESENCE]: MakeRootAgent() was given an illegal position of {0} for avatar {1}, {2}. Clamping",
844 pos, Name, UUID); 918 pos, Name, UUID);
845 919
846 if (pos.X < 0f) pos.X = 0f; 920 if (pos.X < 0f) pos.X = 0f;
847 if (pos.Y < 0f) pos.Y = 0f; 921 if (pos.Y < 0f) pos.Y = 0f;
848 if (pos.Z < 0f) pos.Z = 0f; 922 if (pos.Z < 0f) pos.Z = 0f;
849 } 923 }
850 924
851 float localAVHeight = 1.56f; 925 float localAVHeight = 1.56f;
852 if (Appearance.AvatarHeight > 0) 926 if (Appearance.AvatarHeight > 0)
853 localAVHeight = Appearance.AvatarHeight; 927 localAVHeight = Appearance.AvatarHeight;
854 928
855 float posZLimit = 0; 929 float posZLimit = 0;
856 930
857 if (pos.X < Constants.RegionSize && pos.Y < Constants.RegionSize) 931 if (pos.X < Constants.RegionSize && pos.Y < Constants.RegionSize)
858 posZLimit = (float)m_scene.Heightmap[(int)pos.X, (int)pos.Y]; 932 posZLimit = (float)m_scene.Heightmap[(int)pos.X, (int)pos.Y];
859 933
860 float newPosZ = posZLimit + localAVHeight / 2; 934 float newPosZ = posZLimit + localAVHeight / 2;
861 if (posZLimit >= (pos.Z - (localAVHeight / 2)) && !(Single.IsInfinity(newPosZ) || Single.IsNaN(newPosZ))) 935 if (posZLimit >= (pos.Z - (localAVHeight / 2)) && !(Single.IsInfinity(newPosZ) || Single.IsNaN(newPosZ)))
862 { 936 {
863 pos.Z = newPosZ; 937 pos.Z = newPosZ;
864 } 938 }
865 AbsolutePosition = pos; 939 AbsolutePosition = pos;
866 940
867 AddToPhysicalScene(isFlying); 941 if (m_teleportFlags == TeleportFlags.Default)
942 {
943 Vector3 vel = Velocity;
944 AddToPhysicalScene(isFlying);
945 if (PhysicsActor != null)
946 PhysicsActor.SetMomentum(vel);
947 }
948 else
949 AddToPhysicalScene(isFlying);
868 950
869 if (ForceFly) 951 if (ForceFly)
870 { 952 {
871 Flying = true; 953 Flying = true;
872 } 954 }
873 else if (FlyDisabled) 955 else if (FlyDisabled)
874 { 956 {
875 Flying = false; 957 Flying = false;
958 }
876 } 959 }
877
878 // Don't send an animation pack here, since on a region crossing this will sometimes cause a flying 960 // Don't send an animation pack here, since on a region crossing this will sometimes cause a flying
879 // avatar to return to the standing position in mid-air. On login it looks like this is being sent 961 // avatar to return to the standing position in mid-air. On login it looks like this is being sent
880 // elsewhere anyway 962 // elsewhere anyway
@@ -892,14 +974,19 @@ namespace OpenSim.Region.Framework.Scenes
892 { 974 {
893 m_log.DebugFormat("[SCENE PRESENCE]: Restarting scripts in attachments..."); 975 m_log.DebugFormat("[SCENE PRESENCE]: Restarting scripts in attachments...");
894 // Resume scripts 976 // Resume scripts
895 foreach (SceneObjectGroup sog in m_attachments) 977 Util.FireAndForget(delegate(object x) {
896 { 978 foreach (SceneObjectGroup sog in m_attachments)
897 sog.RootPart.ParentGroup.CreateScriptInstances(0, false, m_scene.DefaultScriptEngine, GetStateSource()); 979 {
898 sog.ResumeScripts(); 980 sog.ScheduleGroupForFullUpdate();
899 } 981 sog.RootPart.ParentGroup.CreateScriptInstances(0, false, m_scene.DefaultScriptEngine, GetStateSource());
982 sog.ResumeScripts();
983 }
984 });
900 } 985 }
901 } 986 }
902 987
988 SendAvatarDataToAllAgents();
989
903 // send the animations of the other presences to me 990 // send the animations of the other presences to me
904 m_scene.ForEachRootScenePresence(delegate(ScenePresence presence) 991 m_scene.ForEachRootScenePresence(delegate(ScenePresence presence)
905 { 992 {
@@ -910,9 +997,12 @@ namespace OpenSim.Region.Framework.Scenes
910 // If we don't reset the movement flag here, an avatar that crosses to a neighbouring sim and returns will 997 // If we don't reset the movement flag here, an avatar that crosses to a neighbouring sim and returns will
911 // stall on the border crossing since the existing child agent will still have the last movement 998 // stall on the border crossing since the existing child agent will still have the last movement
912 // recorded, which stops the input from being processed. 999 // recorded, which stops the input from being processed.
1000
913 MovementFlag = 0; 1001 MovementFlag = 0;
914 1002
915 m_scene.EventManager.TriggerOnMakeRootAgent(this); 1003 m_scene.EventManager.TriggerOnMakeRootAgent(this);
1004
1005 m_scene.EventManager.OnRegionHeartbeatEnd += RegionHeartbeatEnd;
916 } 1006 }
917 1007
918 public int GetStateSource() 1008 public int GetStateSource()
@@ -940,12 +1030,16 @@ namespace OpenSim.Region.Framework.Scenes
940 /// </remarks> 1030 /// </remarks>
941 public void MakeChildAgent() 1031 public void MakeChildAgent()
942 { 1032 {
1033 m_scene.EventManager.OnRegionHeartbeatEnd -= RegionHeartbeatEnd;
1034
943 m_log.DebugFormat("[SCENE PRESENCE]: Making {0} a child agent in {1}", Name, Scene.RegionInfo.RegionName); 1035 m_log.DebugFormat("[SCENE PRESENCE]: Making {0} a child agent in {1}", Name, Scene.RegionInfo.RegionName);
944 1036
945 // Reset these so that teleporting in and walking out isn't seen 1037 // Reset these so that teleporting in and walking out isn't seen
946 // as teleporting back 1038 // as teleporting back
947 TeleportFlags = TeleportFlags.Default; 1039 TeleportFlags = TeleportFlags.Default;
948 1040
1041 MovementFlag = 0;
1042
949 // It looks like Animator is set to null somewhere, and MakeChild 1043 // It looks like Animator is set to null somewhere, and MakeChild
950 // is called after that. Probably in aborted teleports. 1044 // is called after that. Probably in aborted teleports.
951 if (Animator == null) 1045 if (Animator == null)
@@ -953,6 +1047,7 @@ namespace OpenSim.Region.Framework.Scenes
953 else 1047 else
954 Animator.ResetAnimations(); 1048 Animator.ResetAnimations();
955 1049
1050
956// m_log.DebugFormat( 1051// m_log.DebugFormat(
957// "[SCENE PRESENCE]: Downgrading root agent {0}, {1} to a child agent in {2}", 1052// "[SCENE PRESENCE]: Downgrading root agent {0}, {1} to a child agent in {2}",
958// Name, UUID, m_scene.RegionInfo.RegionName); 1053// Name, UUID, m_scene.RegionInfo.RegionName);
@@ -964,6 +1059,7 @@ namespace OpenSim.Region.Framework.Scenes
964 IsChildAgent = true; 1059 IsChildAgent = true;
965 m_scene.SwapRootAgentCount(true); 1060 m_scene.SwapRootAgentCount(true);
966 RemoveFromPhysicalScene(); 1061 RemoveFromPhysicalScene();
1062 ParentID = 0; // Child agents can't be sitting
967 1063
968 // FIXME: Set RegionHandle to the region handle of the scene this agent is moving into 1064 // FIXME: Set RegionHandle to the region handle of the scene this agent is moving into
969 1065
@@ -979,9 +1075,9 @@ namespace OpenSim.Region.Framework.Scenes
979 { 1075 {
980// PhysicsActor.OnRequestTerseUpdate -= SendTerseUpdateToAllClients; 1076// PhysicsActor.OnRequestTerseUpdate -= SendTerseUpdateToAllClients;
981 PhysicsActor.OnOutOfBounds -= OutOfBoundsCall; 1077 PhysicsActor.OnOutOfBounds -= OutOfBoundsCall;
982 m_scene.PhysicsScene.RemoveAvatar(PhysicsActor);
983 PhysicsActor.UnSubscribeEvents();
984 PhysicsActor.OnCollisionUpdate -= PhysicsCollisionUpdate; 1078 PhysicsActor.OnCollisionUpdate -= PhysicsCollisionUpdate;
1079 PhysicsActor.UnSubscribeEvents();
1080 m_scene.PhysicsScene.RemoveAvatar(PhysicsActor);
985 PhysicsActor = null; 1081 PhysicsActor = null;
986 } 1082 }
987// else 1083// else
@@ -998,7 +1094,7 @@ namespace OpenSim.Region.Framework.Scenes
998 /// <param name="pos"></param> 1094 /// <param name="pos"></param>
999 public void Teleport(Vector3 pos) 1095 public void Teleport(Vector3 pos)
1000 { 1096 {
1001 TeleportWithMomentum(pos, null); 1097 TeleportWithMomentum(pos, Vector3.Zero);
1002 } 1098 }
1003 1099
1004 public void TeleportWithMomentum(Vector3 pos, Vector3? v) 1100 public void TeleportWithMomentum(Vector3 pos, Vector3? v)
@@ -1022,6 +1118,41 @@ namespace OpenSim.Region.Framework.Scenes
1022 SendTerseUpdateToAllClients(); 1118 SendTerseUpdateToAllClients();
1023 } 1119 }
1024 1120
1121 public void avnLocalTeleport(Vector3 newpos, Vector3? newvel, bool rotateToVelXY)
1122 {
1123 CheckLandingPoint(ref newpos);
1124 AbsolutePosition = newpos;
1125
1126 if (newvel.HasValue)
1127 {
1128 if ((Vector3)newvel == Vector3.Zero)
1129 {
1130 if (PhysicsActor != null)
1131 PhysicsActor.SetMomentum(Vector3.Zero);
1132 m_velocity = Vector3.Zero;
1133 }
1134 else
1135 {
1136 if (PhysicsActor != null)
1137 PhysicsActor.SetMomentum((Vector3)newvel);
1138 m_velocity = (Vector3)newvel;
1139
1140 if (rotateToVelXY)
1141 {
1142 Vector3 lookAt = (Vector3)newvel;
1143 lookAt.Z = 0;
1144 lookAt.Normalize();
1145 ControllingClient.SendLocalTeleport(newpos, lookAt, (uint)TeleportFlags.ViaLocation);
1146 return;
1147 }
1148 }
1149 }
1150
1151 SendTerseUpdateToAllClients();
1152 }
1153
1154
1155
1025 public void StopFlying() 1156 public void StopFlying()
1026 { 1157 {
1027 ControllingClient.StopFlying(this); 1158 ControllingClient.StopFlying(this);
@@ -1337,8 +1468,18 @@ namespace OpenSim.Region.Framework.Scenes
1337 { 1468 {
1338 if (m_followCamAuto) 1469 if (m_followCamAuto)
1339 { 1470 {
1340 Vector3 posAdjusted = m_pos + HEAD_ADJUSTMENT; 1471 // Vector3 posAdjusted = m_pos + HEAD_ADJUSTMENT;
1341 m_scene.PhysicsScene.RaycastWorld(m_pos, Vector3.Normalize(CameraPosition - posAdjusted), Vector3.Distance(CameraPosition, posAdjusted) + 0.3f, RayCastCameraCallback); 1472 // m_scene.PhysicsScene.RaycastWorld(m_pos, Vector3.Normalize(CameraPosition - posAdjusted), Vector3.Distance(CameraPosition, posAdjusted) + 0.3f, RayCastCameraCallback);
1473
1474 Vector3 posAdjusted = AbsolutePosition + HEAD_ADJUSTMENT;
1475 Vector3 distTocam = CameraPosition - posAdjusted;
1476 float distTocamlen = distTocam.Length();
1477 if (distTocamlen > 0)
1478 {
1479 distTocam *= 1.0f / distTocamlen;
1480 m_scene.PhysicsScene.RaycastWorld(posAdjusted, distTocam, distTocamlen + 0.3f, RayCastCameraCallback);
1481 }
1482
1342 } 1483 }
1343 } 1484 }
1344 1485
@@ -1772,12 +1913,17 @@ namespace OpenSim.Region.Framework.Scenes
1772// m_log.DebugFormat("[SCENE PRESENCE]: StandUp() for {0}", Name); 1913// m_log.DebugFormat("[SCENE PRESENCE]: StandUp() for {0}", Name);
1773 1914
1774 SitGround = false; 1915 SitGround = false;
1916
1917/* move this down so avatar gets physical in the new position and not where it is siting
1775 if (PhysicsActor == null) 1918 if (PhysicsActor == null)
1776 AddToPhysicalScene(false); 1919 AddToPhysicalScene(false);
1920 */
1777 1921
1778 if (ParentID != 0) 1922 if (ParentID != 0)
1779 { 1923 {
1780 SceneObjectPart part = ParentPart; 1924 SceneObjectPart part = ParentPart;
1925 UnRegisterSeatControls(part.ParentGroup.UUID);
1926
1781 TaskInventoryDictionary taskIDict = part.TaskInventory; 1927 TaskInventoryDictionary taskIDict = part.TaskInventory;
1782 if (taskIDict != null) 1928 if (taskIDict != null)
1783 { 1929 {
@@ -1797,6 +1943,7 @@ namespace OpenSim.Region.Framework.Scenes
1797 if (part.SitTargetAvatar == UUID) 1943 if (part.SitTargetAvatar == UUID)
1798 part.SitTargetAvatar = UUID.Zero; 1944 part.SitTargetAvatar = UUID.Zero;
1799 1945
1946 part.ParentGroup.DeleteAvatar(UUID);
1800 ParentPosition = part.GetWorldPosition(); 1947 ParentPosition = part.GetWorldPosition();
1801 ControllingClient.SendClearFollowCamProperties(part.ParentUUID); 1948 ControllingClient.SendClearFollowCamProperties(part.ParentUUID);
1802 1949
@@ -1805,6 +1952,10 @@ namespace OpenSim.Region.Framework.Scenes
1805 1952
1806 ParentID = 0; 1953 ParentID = 0;
1807 ParentPart = null; 1954 ParentPart = null;
1955
1956 if (PhysicsActor == null)
1957 AddToPhysicalScene(false);
1958
1808 SendAvatarDataToAllAgents(); 1959 SendAvatarDataToAllAgents();
1809 m_requestedSitTargetID = 0; 1960 m_requestedSitTargetID = 0;
1810 1961
@@ -1812,6 +1963,9 @@ namespace OpenSim.Region.Framework.Scenes
1812 part.ParentGroup.TriggerScriptChangedEvent(Changed.LINK); 1963 part.ParentGroup.TriggerScriptChangedEvent(Changed.LINK);
1813 } 1964 }
1814 1965
1966 else if (PhysicsActor == null)
1967 AddToPhysicalScene(false);
1968
1815 Animator.TrySetMovementAnimation("STAND"); 1969 Animator.TrySetMovementAnimation("STAND");
1816 } 1970 }
1817 1971
@@ -1890,7 +2044,7 @@ namespace OpenSim.Region.Framework.Scenes
1890// m_log.DebugFormat("[SCENE PRESENCE]: {0} {1}", SitTargetisSet, SitTargetUnOccupied); 2044// m_log.DebugFormat("[SCENE PRESENCE]: {0} {1}", SitTargetisSet, SitTargetUnOccupied);
1891 2045
1892 if (PhysicsActor != null) 2046 if (PhysicsActor != null)
1893 m_sitAvatarHeight = PhysicsActor.Size.Z; 2047 m_sitAvatarHeight = PhysicsActor.Size.Z * 0.5f;
1894 2048
1895 bool canSit = false; 2049 bool canSit = false;
1896 pos = part.AbsolutePosition + offset; 2050 pos = part.AbsolutePosition + offset;
@@ -1935,7 +2089,7 @@ namespace OpenSim.Region.Framework.Scenes
1935 forceMouselook = part.GetForceMouselook(); 2089 forceMouselook = part.GetForceMouselook();
1936 2090
1937 ControllingClient.SendSitResponse( 2091 ControllingClient.SendSitResponse(
1938 targetID, offset, sitOrientation, false, cameraAtOffset, cameraEyeOffset, forceMouselook); 2092 part.UUID, offset, sitOrientation, false, cameraAtOffset, cameraEyeOffset, forceMouselook);
1939 2093
1940 m_requestedSitTargetUUID = targetID; 2094 m_requestedSitTargetUUID = targetID;
1941 2095
@@ -1949,6 +2103,9 @@ namespace OpenSim.Region.Framework.Scenes
1949 2103
1950 public void HandleAgentRequestSit(IClientAPI remoteClient, UUID agentID, UUID targetID, Vector3 offset) 2104 public void HandleAgentRequestSit(IClientAPI remoteClient, UUID agentID, UUID targetID, Vector3 offset)
1951 { 2105 {
2106 if (IsChildAgent)
2107 return;
2108
1952 if (ParentID != 0) 2109 if (ParentID != 0)
1953 { 2110 {
1954 StandUp(); 2111 StandUp();
@@ -2217,14 +2374,39 @@ namespace OpenSim.Region.Framework.Scenes
2217 2374
2218 //Quaternion result = (sitTargetOrient * vq) * nq; 2375 //Quaternion result = (sitTargetOrient * vq) * nq;
2219 2376
2220 m_pos = sitTargetPos + SIT_TARGET_ADJUSTMENT; 2377 double x, y, z, m;
2378
2379 Quaternion r = sitTargetOrient;
2380 m = r.X * r.X + r.Y * r.Y + r.Z * r.Z + r.W * r.W;
2381
2382 if (Math.Abs(1.0 - m) > 0.000001)
2383 {
2384 m = 1.0 / Math.Sqrt(m);
2385 r.X *= (float)m;
2386 r.Y *= (float)m;
2387 r.Z *= (float)m;
2388 r.W *= (float)m;
2389 }
2390
2391 x = 2 * (r.X * r.Z + r.Y * r.W);
2392 y = 2 * (-r.X * r.W + r.Y * r.Z);
2393 z = -r.X * r.X - r.Y * r.Y + r.Z * r.Z + r.W * r.W;
2394
2395 Vector3 up = new Vector3((float)x, (float)y, (float)z);
2396 Vector3 sitOffset = up * Appearance.AvatarHeight * 0.02638f;
2397
2398 m_pos = sitTargetPos + sitOffset + SIT_TARGET_ADJUSTMENT;
2399
2400// m_pos = sitTargetPos + SIT_TARGET_ADJUSTMENT - sitOffset;
2221 Rotation = sitTargetOrient; 2401 Rotation = sitTargetOrient;
2222 ParentPosition = part.AbsolutePosition; 2402 ParentPosition = part.AbsolutePosition;
2403 part.ParentGroup.AddAvatar(UUID);
2223 } 2404 }
2224 else 2405 else
2225 { 2406 {
2226 m_pos -= part.AbsolutePosition; 2407 m_pos -= part.AbsolutePosition;
2227 ParentPosition = part.AbsolutePosition; 2408 ParentPosition = part.AbsolutePosition;
2409 part.ParentGroup.AddAvatar(UUID);
2228 2410
2229// m_log.DebugFormat( 2411// m_log.DebugFormat(
2230// "[SCENE PRESENCE]: Sitting {0} at position {1} ({2} + {3}) on part {4} {5} without sit target", 2412// "[SCENE PRESENCE]: Sitting {0} at position {1} ({2} + {3}) on part {4} {5} without sit target",
@@ -2269,6 +2451,13 @@ namespace OpenSim.Region.Framework.Scenes
2269 Animator.RemoveAnimation(animID); 2451 Animator.RemoveAnimation(animID);
2270 } 2452 }
2271 2453
2454 public void avnHandleChangeAnim(UUID animID, bool addRemove,bool sendPack)
2455 {
2456 Animator.avnChangeAnim(animID, addRemove, sendPack);
2457 }
2458
2459
2460
2272 /// <summary> 2461 /// <summary>
2273 /// Rotate the avatar to the given rotation and apply a movement in the given relative vector 2462 /// Rotate the avatar to the given rotation and apply a movement in the given relative vector
2274 /// </summary> 2463 /// </summary>
@@ -2322,14 +2511,15 @@ namespace OpenSim.Region.Framework.Scenes
2322 direc.Z *= 2.6f; 2511 direc.Z *= 2.6f;
2323 2512
2324 // TODO: PreJump and jump happen too quickly. Many times prejump gets ignored. 2513 // TODO: PreJump and jump happen too quickly. Many times prejump gets ignored.
2325 Animator.TrySetMovementAnimation("PREJUMP"); 2514// Animator.TrySetMovementAnimation("PREJUMP");
2326 Animator.TrySetMovementAnimation("JUMP"); 2515// Animator.TrySetMovementAnimation("JUMP");
2327 } 2516 }
2328 } 2517 }
2329 } 2518 }
2330 2519
2331 // TODO: Add the force instead of only setting it to support multiple forces per frame? 2520 // TODO: Add the force instead of only setting it to support multiple forces per frame?
2332 m_forceToApply = direc; 2521 m_forceToApply = direc;
2522 Animator.UpdateMovementAnimations();
2333 } 2523 }
2334 2524
2335 #endregion 2525 #endregion
@@ -2722,8 +2912,9 @@ namespace OpenSim.Region.Framework.Scenes
2722 2912
2723 // If we don't have a PhysActor, we can't cross anyway 2913 // If we don't have a PhysActor, we can't cross anyway
2724 // Also don't do this while sat, sitting avatars cross with the 2914 // Also don't do this while sat, sitting avatars cross with the
2725 // object they sit on. 2915 // object they sit on. ParentUUID denoted a pending sit, don't
2726 if (ParentID != 0 || PhysicsActor == null) 2916 // interfere with it.
2917 if (ParentID != 0 || PhysicsActor == null || ParentUUID != UUID.Zero)
2727 return; 2918 return;
2728 2919
2729 if (!IsInTransit) 2920 if (!IsInTransit)
@@ -3064,6 +3255,9 @@ namespace OpenSim.Region.Framework.Scenes
3064 cAgent.AlwaysRun = SetAlwaysRun; 3255 cAgent.AlwaysRun = SetAlwaysRun;
3065 3256
3066 cAgent.Appearance = new AvatarAppearance(Appearance); 3257 cAgent.Appearance = new AvatarAppearance(Appearance);
3258
3259 cAgent.ParentPart = ParentUUID;
3260 cAgent.SitOffset = m_pos;
3067 3261
3068 lock (scriptedcontrols) 3262 lock (scriptedcontrols)
3069 { 3263 {
@@ -3072,7 +3266,7 @@ namespace OpenSim.Region.Framework.Scenes
3072 3266
3073 foreach (ScriptControllers c in scriptedcontrols.Values) 3267 foreach (ScriptControllers c in scriptedcontrols.Values)
3074 { 3268 {
3075 controls[i++] = new ControllerData(c.itemID, (uint)c.ignoreControls, (uint)c.eventControls); 3269 controls[i++] = new ControllerData(c.objectID, c.itemID, (uint)c.ignoreControls, (uint)c.eventControls);
3076 } 3270 }
3077 cAgent.Controllers = controls; 3271 cAgent.Controllers = controls;
3078 } 3272 }
@@ -3083,6 +3277,7 @@ namespace OpenSim.Region.Framework.Scenes
3083 cAgent.Anims = Animator.Animations.ToArray(); 3277 cAgent.Anims = Animator.Animations.ToArray();
3084 } 3278 }
3085 catch { } 3279 catch { }
3280 cAgent.DefaultAnim = Animator.Animations.DefaultAnimation;
3086 3281
3087 // Attachment objects 3282 // Attachment objects
3088 List<SceneObjectGroup> attachments = GetAttachments(); 3283 List<SceneObjectGroup> attachments = GetAttachments();
@@ -3126,6 +3321,8 @@ namespace OpenSim.Region.Framework.Scenes
3126 CameraAtAxis = cAgent.AtAxis; 3321 CameraAtAxis = cAgent.AtAxis;
3127 CameraLeftAxis = cAgent.LeftAxis; 3322 CameraLeftAxis = cAgent.LeftAxis;
3128 CameraUpAxis = cAgent.UpAxis; 3323 CameraUpAxis = cAgent.UpAxis;
3324 ParentUUID = cAgent.ParentPart;
3325 m_prevSitOffset = cAgent.SitOffset;
3129 3326
3130 // When we get to the point of re-computing neighbors everytime this 3327 // When we get to the point of re-computing neighbors everytime this
3131 // changes, then start using the agent's drawdistance rather than the 3328 // changes, then start using the agent's drawdistance rather than the
@@ -3163,6 +3360,7 @@ namespace OpenSim.Region.Framework.Scenes
3163 foreach (ControllerData c in cAgent.Controllers) 3360 foreach (ControllerData c in cAgent.Controllers)
3164 { 3361 {
3165 ScriptControllers sc = new ScriptControllers(); 3362 ScriptControllers sc = new ScriptControllers();
3363 sc.objectID = c.ObjectID;
3166 sc.itemID = c.ItemID; 3364 sc.itemID = c.ItemID;
3167 sc.ignoreControls = (ScriptControlled)c.IgnoreControls; 3365 sc.ignoreControls = (ScriptControlled)c.IgnoreControls;
3168 sc.eventControls = (ScriptControlled)c.EventControls; 3366 sc.eventControls = (ScriptControlled)c.EventControls;
@@ -3177,6 +3375,8 @@ namespace OpenSim.Region.Framework.Scenes
3177 // FIXME: Why is this null check necessary? Where are the cases where we get a null Anims object? 3375 // FIXME: Why is this null check necessary? Where are the cases where we get a null Anims object?
3178 if (cAgent.Anims != null) 3376 if (cAgent.Anims != null)
3179 Animator.Animations.FromArray(cAgent.Anims); 3377 Animator.Animations.FromArray(cAgent.Anims);
3378 if (cAgent.DefaultAnim != null)
3379 Animator.Animations.SetDefaultAnimation(cAgent.DefaultAnim.AnimID, cAgent.DefaultAnim.SequenceNum, UUID.Zero);
3180 3380
3181 if (cAgent.AttachmentObjects != null && cAgent.AttachmentObjects.Count > 0) 3381 if (cAgent.AttachmentObjects != null && cAgent.AttachmentObjects.Count > 0)
3182 { 3382 {
@@ -3249,7 +3449,7 @@ namespace OpenSim.Region.Framework.Scenes
3249 //PhysicsActor.OnRequestTerseUpdate += SendTerseUpdateToAllClients; 3449 //PhysicsActor.OnRequestTerseUpdate += SendTerseUpdateToAllClients;
3250 PhysicsActor.OnCollisionUpdate += PhysicsCollisionUpdate; 3450 PhysicsActor.OnCollisionUpdate += PhysicsCollisionUpdate;
3251 PhysicsActor.OnOutOfBounds += OutOfBoundsCall; // Called for PhysicsActors when there's something wrong 3451 PhysicsActor.OnOutOfBounds += OutOfBoundsCall; // Called for PhysicsActors when there's something wrong
3252 PhysicsActor.SubscribeEvents(500); 3452 PhysicsActor.SubscribeEvents(100);
3253 PhysicsActor.LocalID = LocalId; 3453 PhysicsActor.LocalID = LocalId;
3254 } 3454 }
3255 3455
@@ -3279,18 +3479,6 @@ namespace OpenSim.Region.Framework.Scenes
3279 if (IsChildAgent) 3479 if (IsChildAgent)
3280 return; 3480 return;
3281 3481
3282 //if ((Math.Abs(Velocity.X) > 0.1e-9f) || (Math.Abs(Velocity.Y) > 0.1e-9f))
3283 // The Physics Scene will send updates every 500 ms grep: PhysicsActor.SubscribeEvents(
3284 // as of this comment the interval is set in AddToPhysicalScene
3285 if (Animator != null)
3286 {
3287// if (m_updateCount > 0)
3288// {
3289 Animator.UpdateMovementAnimations();
3290// m_updateCount--;
3291// }
3292 }
3293
3294 CollisionEventUpdate collisionData = (CollisionEventUpdate)e; 3482 CollisionEventUpdate collisionData = (CollisionEventUpdate)e;
3295 Dictionary<uint, ContactPoint> coldata = collisionData.m_objCollisionList; 3483 Dictionary<uint, ContactPoint> coldata = collisionData.m_objCollisionList;
3296 3484
@@ -3333,6 +3521,8 @@ namespace OpenSim.Region.Framework.Scenes
3333 } 3521 }
3334 } 3522 }
3335 3523
3524 RaiseCollisionScriptEvents(coldata);
3525
3336 // Gods do not take damage and Invulnerable is set depending on parcel/region flags 3526 // Gods do not take damage and Invulnerable is set depending on parcel/region flags
3337 if (Invulnerable || GodLevel > 0) 3527 if (Invulnerable || GodLevel > 0)
3338 return; 3528 return;
@@ -3662,10 +3852,15 @@ namespace OpenSim.Region.Framework.Scenes
3662 3852
3663 public void RegisterControlEventsToScript(int controls, int accept, int pass_on, uint Obj_localID, UUID Script_item_UUID) 3853 public void RegisterControlEventsToScript(int controls, int accept, int pass_on, uint Obj_localID, UUID Script_item_UUID)
3664 { 3854 {
3855 SceneObjectPart p = m_scene.GetSceneObjectPart(Obj_localID);
3856 if (p == null)
3857 return;
3858
3665 ScriptControllers obj = new ScriptControllers(); 3859 ScriptControllers obj = new ScriptControllers();
3666 obj.ignoreControls = ScriptControlled.CONTROL_ZERO; 3860 obj.ignoreControls = ScriptControlled.CONTROL_ZERO;
3667 obj.eventControls = ScriptControlled.CONTROL_ZERO; 3861 obj.eventControls = ScriptControlled.CONTROL_ZERO;
3668 3862
3863 obj.objectID = p.ParentGroup.UUID;
3669 obj.itemID = Script_item_UUID; 3864 obj.itemID = Script_item_UUID;
3670 if (pass_on == 0 && accept == 0) 3865 if (pass_on == 0 && accept == 0)
3671 { 3866 {
@@ -3714,6 +3909,21 @@ namespace OpenSim.Region.Framework.Scenes
3714 ControllingClient.SendTakeControls(int.MaxValue, false, false); 3909 ControllingClient.SendTakeControls(int.MaxValue, false, false);
3715 } 3910 }
3716 3911
3912 private void UnRegisterSeatControls(UUID obj)
3913 {
3914 List<UUID> takers = new List<UUID>();
3915
3916 foreach (ScriptControllers c in scriptedcontrols.Values)
3917 {
3918 if (c.objectID == obj)
3919 takers.Add(c.itemID);
3920 }
3921 foreach (UUID t in takers)
3922 {
3923 UnRegisterControlEventsToScript(0, t);
3924 }
3925 }
3926
3717 public void UnRegisterControlEventsToScript(uint Obj_localID, UUID Script_item_UUID) 3927 public void UnRegisterControlEventsToScript(uint Obj_localID, UUID Script_item_UUID)
3718 { 3928 {
3719 ScriptControllers takecontrols; 3929 ScriptControllers takecontrols;
@@ -4032,6 +4242,12 @@ namespace OpenSim.Region.Framework.Scenes
4032 4242
4033 private void CheckAndAdjustLandingPoint(ref Vector3 pos) 4243 private void CheckAndAdjustLandingPoint(ref Vector3 pos)
4034 { 4244 {
4245 string reason;
4246
4247 // Honor bans
4248 if (!m_scene.TestLandRestrictions(UUID, out reason, ref pos.X, ref pos.Y))
4249 return;
4250
4035 SceneObjectGroup telehub = null; 4251 SceneObjectGroup telehub = null;
4036 if (m_scene.RegionInfo.RegionSettings.TelehubObject != UUID.Zero && (telehub = m_scene.GetSceneObjectGroup(m_scene.RegionInfo.RegionSettings.TelehubObject)) != null) 4252 if (m_scene.RegionInfo.RegionSettings.TelehubObject != UUID.Zero && (telehub = m_scene.GetSceneObjectGroup(m_scene.RegionInfo.RegionSettings.TelehubObject)) != null)
4037 { 4253 {
@@ -4071,11 +4287,206 @@ namespace OpenSim.Region.Framework.Scenes
4071 pos = land.LandData.UserLocation; 4287 pos = land.LandData.UserLocation;
4072 } 4288 }
4073 } 4289 }
4074 4290
4075 land.SendLandUpdateToClient(ControllingClient); 4291 land.SendLandUpdateToClient(ControllingClient);
4076 } 4292 }
4077 } 4293 }
4078 4294
4295 private DetectedObject CreateDetObject(SceneObjectPart obj)
4296 {
4297 DetectedObject detobj = new DetectedObject();
4298 detobj.keyUUID = obj.UUID;
4299 detobj.nameStr = obj.Name;
4300 detobj.ownerUUID = obj.OwnerID;
4301 detobj.posVector = obj.AbsolutePosition;
4302 detobj.rotQuat = obj.GetWorldRotation();
4303 detobj.velVector = obj.Velocity;
4304 detobj.colliderType = 0;
4305 detobj.groupUUID = obj.GroupID;
4306
4307 return detobj;
4308 }
4309
4310 private DetectedObject CreateDetObject(ScenePresence av)
4311 {
4312 DetectedObject detobj = new DetectedObject();
4313 detobj.keyUUID = av.UUID;
4314 detobj.nameStr = av.ControllingClient.Name;
4315 detobj.ownerUUID = av.UUID;
4316 detobj.posVector = av.AbsolutePosition;
4317 detobj.rotQuat = av.Rotation;
4318 detobj.velVector = av.Velocity;
4319 detobj.colliderType = 0;
4320 detobj.groupUUID = av.ControllingClient.ActiveGroupId;
4321
4322 return detobj;
4323 }
4324
4325 private DetectedObject CreateDetObjectForGround()
4326 {
4327 DetectedObject detobj = new DetectedObject();
4328 detobj.keyUUID = UUID.Zero;
4329 detobj.nameStr = "";
4330 detobj.ownerUUID = UUID.Zero;
4331 detobj.posVector = AbsolutePosition;
4332 detobj.rotQuat = Quaternion.Identity;
4333 detobj.velVector = Vector3.Zero;
4334 detobj.colliderType = 0;
4335 detobj.groupUUID = UUID.Zero;
4336
4337 return detobj;
4338 }
4339
4340 private ColliderArgs CreateColliderArgs(SceneObjectPart dest, List<uint> colliders)
4341 {
4342 ColliderArgs colliderArgs = new ColliderArgs();
4343 List<DetectedObject> colliding = new List<DetectedObject>();
4344 foreach (uint localId in colliders)
4345 {
4346 if (localId == 0)
4347 continue;
4348
4349 SceneObjectPart obj = m_scene.GetSceneObjectPart(localId);
4350 if (obj != null)
4351 {
4352 if (!dest.CollisionFilteredOut(obj.UUID, obj.Name))
4353 colliding.Add(CreateDetObject(obj));
4354 }
4355 else
4356 {
4357 ScenePresence av = m_scene.GetScenePresence(localId);
4358 if (av != null && (!av.IsChildAgent))
4359 {
4360 if (!dest.CollisionFilteredOut(av.UUID, av.Name))
4361 colliding.Add(CreateDetObject(av));
4362 }
4363 }
4364 }
4365
4366 colliderArgs.Colliders = colliding;
4367
4368 return colliderArgs;
4369 }
4370
4371 private delegate void ScriptCollidingNotification(uint localID, ColliderArgs message);
4372
4373 private void SendCollisionEvent(SceneObjectGroup dest, scriptEvents ev, List<uint> colliders, ScriptCollidingNotification notify)
4374 {
4375 ColliderArgs CollidingMessage;
4376
4377 if (colliders.Count > 0)
4378 {
4379 if ((dest.RootPart.ScriptEvents & ev) != 0)
4380 {
4381 CollidingMessage = CreateColliderArgs(dest.RootPart, colliders);
4382
4383 if (CollidingMessage.Colliders.Count > 0)
4384 notify(dest.RootPart.LocalId, CollidingMessage);
4385 }
4386 }
4387 }
4388
4389 private void SendLandCollisionEvent(SceneObjectGroup dest, scriptEvents ev, ScriptCollidingNotification notify)
4390 {
4391 if ((dest.RootPart.ScriptEvents & ev) != 0)
4392 {
4393 ColliderArgs LandCollidingMessage = new ColliderArgs();
4394 List<DetectedObject> colliding = new List<DetectedObject>();
4395
4396 colliding.Add(CreateDetObjectForGround());
4397 LandCollidingMessage.Colliders = colliding;
4398
4399 notify(dest.RootPart.LocalId, LandCollidingMessage);
4400 }
4401 }
4402
4403 private void RaiseCollisionScriptEvents(Dictionary<uint, ContactPoint> coldata)
4404 {
4405 try
4406 {
4407 List<uint> thisHitColliders = new List<uint>();
4408 List<uint> endedColliders = new List<uint>();
4409 List<uint> startedColliders = new List<uint>();
4410 List<CollisionForSoundInfo> soundinfolist = new List<CollisionForSoundInfo>();
4411 CollisionForSoundInfo soundinfo;
4412 ContactPoint curcontact;
4413
4414 if (coldata.Count == 0)
4415 {
4416 if (m_lastColliders.Count == 0)
4417 return; // nothing to do
4418
4419 foreach (uint localID in m_lastColliders)
4420 {
4421 endedColliders.Add(localID);
4422 }
4423 m_lastColliders.Clear();
4424 }
4425
4426 else
4427 {
4428 foreach (uint id in coldata.Keys)
4429 {
4430 thisHitColliders.Add(id);
4431 if (!m_lastColliders.Contains(id))
4432 {
4433 startedColliders.Add(id);
4434 curcontact = coldata[id];
4435 if (Math.Abs(curcontact.RelativeSpeed) > 0.2)
4436 {
4437 soundinfo = new CollisionForSoundInfo();
4438 soundinfo.colliderID = id;
4439 soundinfo.position = curcontact.Position;
4440 soundinfo.relativeVel = curcontact.RelativeSpeed;
4441 soundinfolist.Add(soundinfo);
4442 }
4443 }
4444 //m_log.Debug("[SCENE PRESENCE]: Collided with:" + localid.ToString() + " at depth of: " + collissionswith[localid].ToString());
4445 }
4446
4447 // calculate things that ended colliding
4448 foreach (uint localID in m_lastColliders)
4449 {
4450 if (!thisHitColliders.Contains(localID))
4451 {
4452 endedColliders.Add(localID);
4453 }
4454 }
4455 //add the items that started colliding this time to the last colliders list.
4456 foreach (uint localID in startedColliders)
4457 {
4458 m_lastColliders.Add(localID);
4459 }
4460 // remove things that ended colliding from the last colliders list
4461 foreach (uint localID in endedColliders)
4462 {
4463 m_lastColliders.Remove(localID);
4464 }
4465
4466 if (soundinfolist.Count > 0)
4467 CollisionSounds.AvatarCollisionSound(this, soundinfolist);
4468 }
4469
4470 foreach (SceneObjectGroup att in GetAttachments())
4471 {
4472 SendCollisionEvent(att, scriptEvents.collision_start, startedColliders, m_scene.EventManager.TriggerScriptCollidingStart);
4473 SendCollisionEvent(att, scriptEvents.collision , m_lastColliders , m_scene.EventManager.TriggerScriptColliding);
4474 SendCollisionEvent(att, scriptEvents.collision_end , endedColliders , m_scene.EventManager.TriggerScriptCollidingEnd);
4475
4476 if (startedColliders.Contains(0))
4477 SendLandCollisionEvent(att, scriptEvents.land_collision_start, m_scene.EventManager.TriggerScriptLandCollidingStart);
4478 if (m_lastColliders.Contains(0))
4479 SendLandCollisionEvent(att, scriptEvents.land_collision, m_scene.EventManager.TriggerScriptLandColliding);
4480 if (endedColliders.Contains(0))
4481 SendLandCollisionEvent(att, scriptEvents.land_collision_end, m_scene.EventManager.TriggerScriptLandCollidingEnd);
4482 }
4483 }
4484 finally
4485 {
4486 m_collisionEventFlag = false;
4487 }
4488 }
4489
4079 private void TeleportFlagsDebug() { 4490 private void TeleportFlagsDebug() {
4080 4491
4081 // Some temporary debugging help to show all the TeleportFlags we have... 4492 // Some temporary debugging help to show all the TeleportFlags we have...
@@ -4100,6 +4511,5 @@ namespace OpenSim.Region.Framework.Scenes
4100 m_log.InfoFormat("[SCENE PRESENCE]: TELEPORT ******************"); 4511 m_log.InfoFormat("[SCENE PRESENCE]: TELEPORT ******************");
4101 4512
4102 } 4513 }
4103
4104 } 4514 }
4105} 4515}
diff --git a/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs b/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs
index 0b34156..e223f47 100644
--- a/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs
+++ b/OpenSim/Region/Framework/Scenes/Serialization/SceneObjectSerializer.cs
@@ -244,6 +244,12 @@ namespace OpenSim.Region.Framework.Scenes.Serialization
244 sr.Close(); 244 sr.Close();
245 } 245 }
246 246
247 XmlNodeList keymotion = doc.GetElementsByTagName("KeyframeMotion");
248 if (keymotion.Count > 0)
249 sceneObject.RootPart.KeyframeMotion = KeyframeMotion.FromData(sceneObject, Convert.FromBase64String(keymotion[0].InnerText));
250 else
251 sceneObject.RootPart.KeyframeMotion = null;
252
247 // Script state may, or may not, exist. Not having any, is NOT 253 // Script state may, or may not, exist. Not having any, is NOT
248 // ever a problem. 254 // ever a problem.
249 sceneObject.LoadScriptState(doc); 255 sceneObject.LoadScriptState(doc);
@@ -348,6 +354,21 @@ namespace OpenSim.Region.Framework.Scenes.Serialization
348 m_SOPXmlProcessors.Add("PayPrice2", ProcessPayPrice2); 354 m_SOPXmlProcessors.Add("PayPrice2", ProcessPayPrice2);
349 m_SOPXmlProcessors.Add("PayPrice3", ProcessPayPrice3); 355 m_SOPXmlProcessors.Add("PayPrice3", ProcessPayPrice3);
350 m_SOPXmlProcessors.Add("PayPrice4", ProcessPayPrice4); 356 m_SOPXmlProcessors.Add("PayPrice4", ProcessPayPrice4);
357
358 m_SOPXmlProcessors.Add("Buoyancy", ProcessBuoyancy);
359 m_SOPXmlProcessors.Add("Force", ProcessForce);
360 m_SOPXmlProcessors.Add("Torque", ProcessTorque);
361 m_SOPXmlProcessors.Add("VolumeDetectActive", ProcessVolumeDetectActive);
362
363
364 m_SOPXmlProcessors.Add("Vehicle", ProcessVehicle);
365
366 m_SOPXmlProcessors.Add("PhysicsShapeType", ProcessPhysicsShapeType);
367 m_SOPXmlProcessors.Add("Density", ProcessDensity);
368 m_SOPXmlProcessors.Add("Friction", ProcessFriction);
369 m_SOPXmlProcessors.Add("Bounce", ProcessBounce);
370 m_SOPXmlProcessors.Add("GravityModifier", ProcessGravityModifier);
371
351 #endregion 372 #endregion
352 373
353 #region TaskInventoryXmlProcessors initialization 374 #region TaskInventoryXmlProcessors initialization
@@ -375,7 +396,7 @@ namespace OpenSim.Region.Framework.Scenes.Serialization
375 m_TaskInventoryXmlProcessors.Add("PermsMask", ProcessTIPermsMask); 396 m_TaskInventoryXmlProcessors.Add("PermsMask", ProcessTIPermsMask);
376 m_TaskInventoryXmlProcessors.Add("Type", ProcessTIType); 397 m_TaskInventoryXmlProcessors.Add("Type", ProcessTIType);
377 m_TaskInventoryXmlProcessors.Add("OwnerChanged", ProcessTIOwnerChanged); 398 m_TaskInventoryXmlProcessors.Add("OwnerChanged", ProcessTIOwnerChanged);
378 399
379 #endregion 400 #endregion
380 401
381 #region ShapeXmlProcessors initialization 402 #region ShapeXmlProcessors initialization
@@ -575,6 +596,49 @@ namespace OpenSim.Region.Framework.Scenes.Serialization
575 obj.ClickAction = (byte)reader.ReadElementContentAsInt("ClickAction", String.Empty); 596 obj.ClickAction = (byte)reader.ReadElementContentAsInt("ClickAction", String.Empty);
576 } 597 }
577 598
599 private static void ProcessPhysicsShapeType(SceneObjectPart obj, XmlTextReader reader)
600 {
601 obj.PhysicsShapeType = (byte)reader.ReadElementContentAsInt("PhysicsShapeType", String.Empty);
602 }
603
604 private static void ProcessDensity(SceneObjectPart obj, XmlTextReader reader)
605 {
606 obj.Density = reader.ReadElementContentAsFloat("Density", String.Empty);
607 }
608
609 private static void ProcessFriction(SceneObjectPart obj, XmlTextReader reader)
610 {
611 obj.Friction = reader.ReadElementContentAsFloat("Friction", String.Empty);
612 }
613
614 private static void ProcessBounce(SceneObjectPart obj, XmlTextReader reader)
615 {
616 obj.Bounciness = reader.ReadElementContentAsFloat("Bounce", String.Empty);
617 }
618
619 private static void ProcessGravityModifier(SceneObjectPart obj, XmlTextReader reader)
620 {
621 obj.GravityModifier = reader.ReadElementContentAsFloat("GravityModifier", String.Empty);
622 }
623
624 private static void ProcessVehicle(SceneObjectPart obj, XmlTextReader reader)
625 {
626 bool errors = false;
627 SOPVehicle _vehicle = new SOPVehicle();
628
629 _vehicle.FromXml2(reader, out errors);
630
631 if (errors)
632 {
633 obj.sopVehicle = null;
634 m_log.DebugFormat(
635 "[SceneObjectSerializer]: Parsing Vehicle for object part {0} {1} encountered errors. Please see earlier log entries.",
636 obj.Name, obj.UUID);
637 }
638 else
639 obj.sopVehicle = _vehicle;
640 }
641
578 private static void ProcessShape(SceneObjectPart obj, XmlTextReader reader) 642 private static void ProcessShape(SceneObjectPart obj, XmlTextReader reader)
579 { 643 {
580 List<string> errorNodeNames; 644 List<string> errorNodeNames;
@@ -739,6 +803,25 @@ namespace OpenSim.Region.Framework.Scenes.Serialization
739 obj.PayPrice[4] = (int)reader.ReadElementContentAsInt("PayPrice4", String.Empty); 803 obj.PayPrice[4] = (int)reader.ReadElementContentAsInt("PayPrice4", String.Empty);
740 } 804 }
741 805
806 private static void ProcessBuoyancy(SceneObjectPart obj, XmlTextReader reader)
807 {
808 obj.Buoyancy = (float)reader.ReadElementContentAsFloat("Buoyancy", String.Empty);
809 }
810
811 private static void ProcessForce(SceneObjectPart obj, XmlTextReader reader)
812 {
813 obj.Force = Util.ReadVector(reader, "Force");
814 }
815 private static void ProcessTorque(SceneObjectPart obj, XmlTextReader reader)
816 {
817 obj.Torque = Util.ReadVector(reader, "Torque");
818 }
819
820 private static void ProcessVolumeDetectActive(SceneObjectPart obj, XmlTextReader reader)
821 {
822 obj.VolumeDetectActive = Util.ReadBoolean(reader);
823 }
824
742 #endregion 825 #endregion
743 826
744 #region TaskInventoryXmlProcessors 827 #region TaskInventoryXmlProcessors
@@ -1126,6 +1209,16 @@ namespace OpenSim.Region.Framework.Scenes.Serialization
1126 }); 1209 });
1127 1210
1128 writer.WriteEndElement(); 1211 writer.WriteEndElement();
1212
1213 if (sog.RootPart.KeyframeMotion != null)
1214 {
1215 Byte[] data = sog.RootPart.KeyframeMotion.Serialize();
1216
1217 writer.WriteStartElement(String.Empty, "KeyframeMotion", String.Empty);
1218 writer.WriteBase64(data, 0, data.Length);
1219 writer.WriteEndElement();
1220 }
1221
1129 writer.WriteEndElement(); 1222 writer.WriteEndElement();
1130 } 1223 }
1131 1224
@@ -1225,6 +1318,27 @@ namespace OpenSim.Region.Framework.Scenes.Serialization
1225 writer.WriteElementString("PayPrice3", sop.PayPrice[3].ToString()); 1318 writer.WriteElementString("PayPrice3", sop.PayPrice[3].ToString());
1226 writer.WriteElementString("PayPrice4", sop.PayPrice[4].ToString()); 1319 writer.WriteElementString("PayPrice4", sop.PayPrice[4].ToString());
1227 1320
1321 writer.WriteElementString("Buoyancy", sop.Buoyancy.ToString());
1322
1323 WriteVector(writer, "Force", sop.Force);
1324 WriteVector(writer, "Torque", sop.Torque);
1325
1326 writer.WriteElementString("VolumeDetectActive", sop.VolumeDetectActive.ToString().ToLower());
1327
1328 if (sop.sopVehicle != null)
1329 sop.sopVehicle.ToXml2(writer);
1330
1331 if(sop.PhysicsShapeType != sop.DefaultPhysicsShapeType())
1332 writer.WriteElementString("PhysicsShapeType", sop.PhysicsShapeType.ToString().ToLower());
1333 if (sop.Density != 1000.0f)
1334 writer.WriteElementString("Density", sop.Density.ToString().ToLower());
1335 if (sop.Friction != 0.6f)
1336 writer.WriteElementString("Friction", sop.Friction.ToString().ToLower());
1337 if (sop.Bounciness != 0.5f)
1338 writer.WriteElementString("Bounce", sop.Bounciness.ToString().ToLower());
1339 if (sop.GravityModifier != 1.0f)
1340 writer.WriteElementString("GravityModifier", sop.GravityModifier.ToString().ToLower());
1341
1228 writer.WriteEndElement(); 1342 writer.WriteEndElement();
1229 } 1343 }
1230 1344
@@ -1449,12 +1563,6 @@ namespace OpenSim.Region.Framework.Scenes.Serialization
1449 { 1563 {
1450 TaskInventoryDictionary tinv = new TaskInventoryDictionary(); 1564 TaskInventoryDictionary tinv = new TaskInventoryDictionary();
1451 1565
1452 if (reader.IsEmptyElement)
1453 {
1454 reader.Read();
1455 return tinv;
1456 }
1457
1458 reader.ReadStartElement(name, String.Empty); 1566 reader.ReadStartElement(name, String.Empty);
1459 1567
1460 while (reader.Name == "TaskInventoryItem") 1568 while (reader.Name == "TaskInventoryItem")
diff --git a/OpenSim/Region/Framework/Scenes/SimStatsReporter.cs b/OpenSim/Region/Framework/Scenes/SimStatsReporter.cs
index 742d42a..18e6ece 100644
--- a/OpenSim/Region/Framework/Scenes/SimStatsReporter.cs
+++ b/OpenSim/Region/Framework/Scenes/SimStatsReporter.cs
@@ -298,6 +298,20 @@ namespace OpenSim.Region.Framework.Scenes
298 physfps = 0; 298 physfps = 0;
299 299
300#endregion 300#endregion
301 if (reportedFPS <= 0)
302 reportedFPS = 1;
303
304 float perframe = 1.0f / (float)reportedFPS;
305
306 float TotalFrameTime = m_frameMS * perframe;
307
308 float targetframetime = 1100.0f / (float)m_nominalReportedFps;
309
310 float sparetime;
311 if (TotalFrameTime > targetframetime)
312 {
313 sparetime = 0;
314 }
301 315
302 m_rootAgents = m_scene.SceneGraph.GetRootAgentCount(); 316 m_rootAgents = m_scene.SceneGraph.GetRootAgentCount();
303 m_childAgents = m_scene.SceneGraph.GetChildAgentCount(); 317 m_childAgents = m_scene.SceneGraph.GetChildAgentCount();
@@ -309,15 +323,13 @@ namespace OpenSim.Region.Framework.Scenes
309 // so that stat numbers are always consistent. 323 // so that stat numbers are always consistent.
310 CheckStatSanity(); 324 CheckStatSanity();
311 325
312 //Our time dilation is 0.91 when we're running a full speed, 326 // other MS is actually simulation time
313 // therefore to make sure we get an appropriate range, 327 // m_otherMS = m_frameMS - m_physicsMS - m_imageMS - m_netMS - m_agentMS;
314 // we have to factor in our error. (0.10f * statsUpdateFactor) 328 // m_imageMS m_netMS are not included in m_frameMS
315 // multiplies the fix for the error times the amount of times it'll occur a second 329
316 // / 10 divides the value by the number of times the sim heartbeat runs (10fps) 330 m_otherMS = m_frameMS - m_physicsMS - m_agentMS;
317 // Then we divide the whole amount by the amount of seconds pass in between stats updates. 331 if (m_otherMS < 0)
318 332 m_otherMS = 0;
319 // 'statsUpdateFactor' is how often stats packets are sent in seconds. Used below to change
320 // values to X-per-second values.
321 333
322 uint thisFrame = m_scene.Frame; 334 uint thisFrame = m_scene.Frame;
323 float framesUpdated = (float)(thisFrame - m_lastUpdateFrame) * m_reportedFpsCorrectionFactor; 335 float framesUpdated = (float)(thisFrame - m_lastUpdateFrame) * m_reportedFpsCorrectionFactor;
diff --git a/OpenSim/Region/Framework/Scenes/UndoState.cs b/OpenSim/Region/Framework/Scenes/UndoState.cs
index 860172c..7bbf1bd 100644
--- a/OpenSim/Region/Framework/Scenes/UndoState.cs
+++ b/OpenSim/Region/Framework/Scenes/UndoState.cs
@@ -27,202 +27,307 @@
27 27
28using System; 28using System;
29using System.Reflection; 29using System.Reflection;
30using System.Collections.Generic;
30using log4net; 31using log4net;
31using OpenMetaverse; 32using OpenMetaverse;
33using OpenSim.Framework;
32using OpenSim.Region.Framework.Interfaces; 34using OpenSim.Region.Framework.Interfaces;
33 35
34namespace OpenSim.Region.Framework.Scenes 36namespace OpenSim.Region.Framework.Scenes
35{ 37{
36 public class UndoState 38 public class UndoState
37 { 39 {
38// private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); 40 const int UNDOEXPIRESECONDS = 300; // undo expire time (nice to have it came from a ini later)
39
40 public Vector3 Position = Vector3.Zero;
41 public Vector3 Scale = Vector3.Zero;
42 public Quaternion Rotation = Quaternion.Identity;
43
44 /// <summary>
45 /// Is this undo state for an entire group?
46 /// </summary>
47 public bool ForGroup;
48 41
42 public ObjectChangeData data;
43 public DateTime creationtime;
49 /// <summary> 44 /// <summary>
50 /// Constructor. 45 /// Constructor.
51 /// </summary> 46 /// </summary>
52 /// <param name="part"></param> 47 /// <param name="part"></param>
53 /// <param name="forGroup">True if the undo is for an entire group</param> 48 /// <param name="change">bit field with what is changed</param>
54 public UndoState(SceneObjectPart part, bool forGroup) 49 ///
50 public UndoState(SceneObjectPart part, ObjectChangeType change)
55 { 51 {
56 if (part.ParentID == 0) 52 data = new ObjectChangeData();
57 { 53 data.change = change;
58 ForGroup = forGroup; 54 creationtime = DateTime.UtcNow;
59
60// if (ForGroup)
61 Position = part.ParentGroup.AbsolutePosition;
62// else
63// Position = part.OffsetPosition;
64
65// m_log.DebugFormat(
66// "[UNDO STATE]: Storing undo position {0} for root part", Position);
67 55
68 Rotation = part.RotationOffset; 56 if (part.ParentGroup.RootPart == part)
69 57 {
70// m_log.DebugFormat( 58 if ((change & ObjectChangeType.Position) != 0)
71// "[UNDO STATE]: Storing undo rotation {0} for root part", Rotation); 59 data.position = part.ParentGroup.AbsolutePosition;
72 60 if ((change & ObjectChangeType.Rotation) != 0)
73 Scale = part.Shape.Scale; 61 data.rotation = part.RotationOffset;
74 62 if ((change & ObjectChangeType.Scale) != 0)
75// m_log.DebugFormat( 63 data.scale = part.Shape.Scale;
76// "[UNDO STATE]: Storing undo scale {0} for root part", Scale);
77 } 64 }
78 else 65 else
79 { 66 {
80 Position = part.OffsetPosition; 67 if ((change & ObjectChangeType.Position) != 0)
81// m_log.DebugFormat( 68 data.position = part.OffsetPosition;
82// "[UNDO STATE]: Storing undo position {0} for child part", Position); 69 if ((change & ObjectChangeType.Rotation) != 0)
70 data.rotation = part.RotationOffset;
71 if ((change & ObjectChangeType.Scale) != 0)
72 data.scale = part.Shape.Scale;
73 }
74 }
75 /// <summary>
76 /// check if undo or redo is too old
77 /// </summary>
83 78
84 Rotation = part.RotationOffset; 79 public bool checkExpire()
85// m_log.DebugFormat( 80 {
86// "[UNDO STATE]: Storing undo rotation {0} for child part", Rotation); 81 TimeSpan t = DateTime.UtcNow - creationtime;
82 if (t.Seconds > UNDOEXPIRESECONDS)
83 return true;
84 return false;
85 }
87 86
88 Scale = part.Shape.Scale; 87 /// <summary>
89// m_log.DebugFormat( 88 /// updates undo or redo creation time to now
90// "[UNDO STATE]: Storing undo scale {0} for child part", Scale); 89 /// </summary>
91 } 90 public void updateExpire()
91 {
92 creationtime = DateTime.UtcNow;
92 } 93 }
93 94
94 /// <summary> 95 /// <summary>
95 /// Compare the relevant state in the given part to this state. 96 /// Compare the relevant state in the given part to this state.
96 /// </summary> 97 /// </summary>
97 /// <param name="part"></param> 98 /// <param name="part"></param>
98 /// <returns>true if both the part's position, rotation and scale match those in this undo state. False otherwise.</returns> 99 /// <returns>true what fiels and related data are equal, False otherwise.</returns>
99 public bool Compare(SceneObjectPart part) 100 ///
101 public bool Compare(SceneObjectPart part, ObjectChangeType change)
100 { 102 {
103 if (data.change != change) // if diferent targets, then they are diferent
104 return false;
105
101 if (part != null) 106 if (part != null)
102 { 107 {
103 if (part.ParentID == 0) 108 if (part.ParentID == 0)
104 return 109 {
105 Position == part.ParentGroup.AbsolutePosition 110 if ((change & ObjectChangeType.Position) != 0 && data.position != part.ParentGroup.AbsolutePosition)
106 && Rotation == part.RotationOffset 111 return false;
107 && Scale == part.Shape.Scale; 112 }
108 else 113 else
109 return 114 {
110 Position == part.OffsetPosition 115 if ((change & ObjectChangeType.Position) != 0 && data.position != part.OffsetPosition)
111 && Rotation == part.RotationOffset 116 return false;
112 && Scale == part.Shape.Scale; 117 }
113 } 118
119 if ((change & ObjectChangeType.Rotation) != 0 && data.rotation != part.RotationOffset)
120 return false;
121 if ((change & ObjectChangeType.Rotation) != 0 && data.scale == part.Shape.Scale)
122 return false;
123 return true;
114 124
125 }
115 return false; 126 return false;
116 } 127 }
117 128
118 public void PlaybackState(SceneObjectPart part) 129 /// <summary>
130 /// executes the undo or redo to a part or its group
131 /// </summary>
132 /// <param name="part"></param>
133 ///
134
135 public void PlayState(SceneObjectPart part)
119 { 136 {
120 part.Undoing = true; 137 part.Undoing = true;
121 138
122 if (part.ParentID == 0) 139 SceneObjectGroup grp = part.ParentGroup;
123 {
124// m_log.DebugFormat(
125// "[UNDO STATE]: Undoing position to {0} for root part {1} {2}",
126// Position, part.Name, part.LocalId);
127 140
128 if (Position != Vector3.Zero) 141 if (grp != null)
129 { 142 {
130 if (ForGroup) 143 grp.doChangeObject(part, data);
131 part.ParentGroup.AbsolutePosition = Position; 144 }
132 else 145 part.Undoing = false;
133 part.ParentGroup.UpdateRootPosition(Position); 146 }
134 } 147 }
135 148
136// m_log.DebugFormat( 149 public class UndoRedoState
137// "[UNDO STATE]: Undoing rotation {0} to {1} for root part {2} {3}", 150 {
138// part.RotationOffset, Rotation, part.Name, part.LocalId); 151 int size;
152 public LinkedList<UndoState> m_redo = new LinkedList<UndoState>();
153 public LinkedList<UndoState> m_undo = new LinkedList<UndoState>();
139 154
140 if (ForGroup) 155 /// <summary>
141 part.UpdateRotation(Rotation); 156 /// creates a new UndoRedoState with default states memory size
142 else 157 /// </summary>
143 part.ParentGroup.UpdateRootRotation(Rotation);
144 158
145 if (Scale != Vector3.Zero) 159 public UndoRedoState()
146 { 160 {
147// m_log.DebugFormat( 161 size = 5;
148// "[UNDO STATE]: Undoing scale {0} to {1} for root part {2} {3}", 162 }
149// part.Shape.Scale, Scale, part.Name, part.LocalId);
150 163
151 if (ForGroup) 164 /// <summary>
152 part.ParentGroup.GroupResize(Scale); 165 /// creates a new UndoRedoState with states memory having indicated size
153 else 166 /// </summary>
154 part.Resize(Scale); 167 /// <param name="size"></param>
155 }
156 168
157 part.ParentGroup.ScheduleGroupForTerseUpdate(); 169 public UndoRedoState(int _size)
158 } 170 {
171 if (_size < 3)
172 size = 3;
159 else 173 else
160 { 174 size = _size;
161 // Note: Updating these properties on sop automatically schedules an update if needed 175 }
162 if (Position != Vector3.Zero)
163 {
164// m_log.DebugFormat(
165// "[UNDO STATE]: Undoing position {0} to {1} for child part {2} {3}",
166// part.OffsetPosition, Position, part.Name, part.LocalId);
167 176
168 part.OffsetPosition = Position; 177 /// <summary>
169 } 178 /// returns number of undo entries in memory
179 /// </summary>
170 180
171// m_log.DebugFormat( 181 public int Count
172// "[UNDO STATE]: Undoing rotation {0} to {1} for child part {2} {3}", 182 {
173// part.RotationOffset, Rotation, part.Name, part.LocalId); 183 get { return m_undo.Count; }
184 }
174 185
175 part.UpdateRotation(Rotation); 186 /// <summary>
187 /// clears all undo and redo entries
188 /// </summary>
176 189
177 if (Scale != Vector3.Zero) 190 public void Clear()
191 {
192 m_undo.Clear();
193 m_redo.Clear();
194 }
195
196 /// <summary>
197 /// adds a new state undo to part or its group, with changes indicated by what bits
198 /// </summary>
199 /// <param name="part"></param>
200 /// <param name="change">bit field with what is changed</param>
201
202 public void StoreUndo(SceneObjectPart part, ObjectChangeType change)
203 {
204 lock (m_undo)
205 {
206 UndoState last;
207
208 if (m_redo.Count > 0) // last code seems to clear redo on every new undo
178 { 209 {
179// m_log.DebugFormat( 210 m_redo.Clear();
180// "[UNDO STATE]: Undoing scale {0} to {1} for child part {2} {3}", 211 }
181// part.Shape.Scale, Scale, part.Name, part.LocalId);
182 212
183 part.Resize(Scale); 213 if (m_undo.Count > 0)
214 {
215 // check expired entry
216 last = m_undo.First.Value;
217 if (last != null && last.checkExpire())
218 m_undo.Clear();
219 else
220 {
221 // see if we actually have a change
222 if (last != null)
223 {
224 if (last.Compare(part, change))
225 return;
226 }
227 }
184 } 228 }
185 }
186 229
187 part.Undoing = false; 230 // limite size
231 while (m_undo.Count >= size)
232 m_undo.RemoveLast();
233
234 UndoState nUndo = new UndoState(part, change);
235 m_undo.AddFirst(nUndo);
236 }
188 } 237 }
189 238
190 public void PlayfwdState(SceneObjectPart part) 239 /// <summary>
191 { 240 /// executes last state undo to part or its group
192 part.Undoing = true; 241 /// current state is pushed into redo
242 /// </summary>
243 /// <param name="part"></param>
193 244
194 if (part.ParentID == 0) 245 public void Undo(SceneObjectPart part)
246 {
247 lock (m_undo)
195 { 248 {
196 if (Position != Vector3.Zero) 249 UndoState nUndo;
197 part.ParentGroup.AbsolutePosition = Position;
198
199 if (Rotation != Quaternion.Identity)
200 part.UpdateRotation(Rotation);
201 250
202 if (Scale != Vector3.Zero) 251 // expire redo
252 if (m_redo.Count > 0)
203 { 253 {
204 if (ForGroup) 254 nUndo = m_redo.First.Value;
205 part.ParentGroup.GroupResize(Scale); 255 if (nUndo != null && nUndo.checkExpire())
206 else 256 m_redo.Clear();
207 part.Resize(Scale);
208 } 257 }
209 258
210 part.ParentGroup.ScheduleGroupForTerseUpdate(); 259 if (m_undo.Count > 0)
260 {
261 UndoState goback = m_undo.First.Value;
262 // check expired
263 if (goback != null && goback.checkExpire())
264 {
265 m_undo.Clear();
266 return;
267 }
268
269 if (goback != null)
270 {
271 m_undo.RemoveFirst();
272
273 // redo limite size
274 while (m_redo.Count >= size)
275 m_redo.RemoveLast();
276
277 nUndo = new UndoState(part, goback.data.change); // new value in part should it be full goback copy?
278 m_redo.AddFirst(nUndo);
279
280 goback.PlayState(part);
281 }
282 }
211 } 283 }
212 else 284 }
285
286 /// <summary>
287 /// executes last state redo to part or its group
288 /// current state is pushed into undo
289 /// </summary>
290 /// <param name="part"></param>
291
292 public void Redo(SceneObjectPart part)
293 {
294 lock (m_undo)
213 { 295 {
214 // Note: Updating these properties on sop automatically schedules an update if needed 296 UndoState nUndo;
215 if (Position != Vector3.Zero)
216 part.OffsetPosition = Position;
217 297
218 if (Rotation != Quaternion.Identity) 298 // expire undo
219 part.UpdateRotation(Rotation); 299 if (m_undo.Count > 0)
300 {
301 nUndo = m_undo.First.Value;
302 if (nUndo != null && nUndo.checkExpire())
303 m_undo.Clear();
304 }
220 305
221 if (Scale != Vector3.Zero) 306 if (m_redo.Count > 0)
222 part.Resize(Scale); 307 {
308 UndoState gofwd = m_redo.First.Value;
309 // check expired
310 if (gofwd != null && gofwd.checkExpire())
311 {
312 m_redo.Clear();
313 return;
314 }
315
316 if (gofwd != null)
317 {
318 m_redo.RemoveFirst();
319
320 // limite undo size
321 while (m_undo.Count >= size)
322 m_undo.RemoveLast();
323
324 nUndo = new UndoState(part, gofwd.data.change); // new value in part should it be full gofwd copy?
325 m_undo.AddFirst(nUndo);
326
327 gofwd.PlayState(part);
328 }
329 }
223 } 330 }
224
225 part.Undoing = false;
226 } 331 }
227 } 332 }
228 333
@@ -247,4 +352,4 @@ namespace OpenSim.Region.Framework.Scenes
247 m_terrainModule.UndoTerrain(m_terrainChannel); 352 m_terrainModule.UndoTerrain(m_terrainChannel);
248 } 353 }
249 } 354 }
250} \ No newline at end of file 355}
diff --git a/OpenSim/Region/Framework/Scenes/UuidGatherer.cs b/OpenSim/Region/Framework/Scenes/UuidGatherer.cs
index efb68a2..411e421 100644
--- a/OpenSim/Region/Framework/Scenes/UuidGatherer.cs
+++ b/OpenSim/Region/Framework/Scenes/UuidGatherer.cs
@@ -87,10 +87,6 @@ namespace OpenSim.Region.Framework.Scenes
87 /// <param name="assetUuids">The assets gathered</param> 87 /// <param name="assetUuids">The assets gathered</param>
88 public void GatherAssetUuids(UUID assetUuid, AssetType assetType, IDictionary<UUID, AssetType> assetUuids) 88 public void GatherAssetUuids(UUID assetUuid, AssetType assetType, IDictionary<UUID, AssetType> assetUuids)
89 { 89 {
90 // avoid infinite loops
91 if (assetUuids.ContainsKey(assetUuid))
92 return;
93
94 try 90 try
95 { 91 {
96 assetUuids[assetUuid] = assetType; 92 assetUuids[assetUuid] = assetType;
diff --git a/OpenSim/Region/OptionalModules/Agent/InternetRelayClientView/Server/IRCClientView.cs b/OpenSim/Region/OptionalModules/Agent/InternetRelayClientView/Server/IRCClientView.cs
index 3a32528..b449089 100644
--- a/OpenSim/Region/OptionalModules/Agent/InternetRelayClientView/Server/IRCClientView.cs
+++ b/OpenSim/Region/OptionalModules/Agent/InternetRelayClientView/Server/IRCClientView.cs
@@ -669,6 +669,7 @@ namespace OpenSim.Region.OptionalModules.Agent.InternetRelayClientView.Server
669 public event ObjectDrop OnObjectDrop; 669 public event ObjectDrop OnObjectDrop;
670 public event StartAnim OnStartAnim; 670 public event StartAnim OnStartAnim;
671 public event StopAnim OnStopAnim; 671 public event StopAnim OnStopAnim;
672 public event ChangeAnim OnChangeAnim;
672 public event LinkObjects OnLinkObjects; 673 public event LinkObjects OnLinkObjects;
673 public event DelinkObjects OnDelinkObjects; 674 public event DelinkObjects OnDelinkObjects;
674 public event RequestMapBlocks OnRequestMapBlocks; 675 public event RequestMapBlocks OnRequestMapBlocks;
@@ -714,6 +715,7 @@ namespace OpenSim.Region.OptionalModules.Agent.InternetRelayClientView.Server
714 public event RequestObjectPropertiesFamily OnRequestObjectPropertiesFamily; 715 public event RequestObjectPropertiesFamily OnRequestObjectPropertiesFamily;
715 public event UpdatePrimFlags OnUpdatePrimFlags; 716 public event UpdatePrimFlags OnUpdatePrimFlags;
716 public event UpdatePrimTexture OnUpdatePrimTexture; 717 public event UpdatePrimTexture OnUpdatePrimTexture;
718 public event ClientChangeObject onClientChangeObject;
717 public event UpdateVector OnUpdatePrimGroupPosition; 719 public event UpdateVector OnUpdatePrimGroupPosition;
718 public event UpdateVector OnUpdatePrimSinglePosition; 720 public event UpdateVector OnUpdatePrimSinglePosition;
719 public event UpdatePrimRotation OnUpdatePrimGroupRotation; 721 public event UpdatePrimRotation OnUpdatePrimGroupRotation;
@@ -818,6 +820,7 @@ namespace OpenSim.Region.OptionalModules.Agent.InternetRelayClientView.Server
818 public event ObjectOwner OnObjectOwner; 820 public event ObjectOwner OnObjectOwner;
819 public event DirPlacesQuery OnDirPlacesQuery; 821 public event DirPlacesQuery OnDirPlacesQuery;
820 public event DirFindQuery OnDirFindQuery; 822 public event DirFindQuery OnDirFindQuery;
823 public event MoveItemsAndLeaveCopy OnMoveItemsAndLeaveCopy;
821 public event DirLandQuery OnDirLandQuery; 824 public event DirLandQuery OnDirLandQuery;
822 public event DirPopularQuery OnDirPopularQuery; 825 public event DirPopularQuery OnDirPopularQuery;
823 public event DirClassifiedQuery OnDirClassifiedQuery; 826 public event DirClassifiedQuery OnDirClassifiedQuery;
@@ -834,7 +837,7 @@ namespace OpenSim.Region.OptionalModules.Agent.InternetRelayClientView.Server
834 public event ClassifiedInfoRequest OnClassifiedInfoRequest; 837 public event ClassifiedInfoRequest OnClassifiedInfoRequest;
835 public event ClassifiedInfoUpdate OnClassifiedInfoUpdate; 838 public event ClassifiedInfoUpdate OnClassifiedInfoUpdate;
836 public event ClassifiedDelete OnClassifiedDelete; 839 public event ClassifiedDelete OnClassifiedDelete;
837 public event ClassifiedDelete OnClassifiedGodDelete; 840 public event ClassifiedGodDelete OnClassifiedGodDelete;
838 public event EventNotificationAddRequest OnEventNotificationAddRequest; 841 public event EventNotificationAddRequest OnEventNotificationAddRequest;
839 public event EventNotificationRemoveRequest OnEventNotificationRemoveRequest; 842 public event EventNotificationRemoveRequest OnEventNotificationRemoveRequest;
840 public event EventGodDelete OnEventGodDelete; 843 public event EventGodDelete OnEventGodDelete;
@@ -864,6 +867,7 @@ namespace OpenSim.Region.OptionalModules.Agent.InternetRelayClientView.Server
864 public event GroupVoteHistoryRequest OnGroupVoteHistoryRequest; 867 public event GroupVoteHistoryRequest OnGroupVoteHistoryRequest;
865 public event SimWideDeletesDelegate OnSimWideDeletes; 868 public event SimWideDeletesDelegate OnSimWideDeletes;
866 public event SendPostcard OnSendPostcard; 869 public event SendPostcard OnSendPostcard;
870 public event ChangeInventoryItemFlags OnChangeInventoryItemFlags;
867 public event MuteListEntryUpdate OnUpdateMuteListEntry; 871 public event MuteListEntryUpdate OnUpdateMuteListEntry;
868 public event MuteListEntryRemove OnRemoveMuteListEntry; 872 public event MuteListEntryRemove OnRemoveMuteListEntry;
869 public event GodlikeMessage onGodlikeMessage; 873 public event GodlikeMessage onGodlikeMessage;
@@ -885,6 +889,11 @@ namespace OpenSim.Region.OptionalModules.Agent.InternetRelayClientView.Server
885 889
886 public void Close() 890 public void Close()
887 { 891 {
892 Close(true);
893 }
894
895 public void Close(bool sendStop)
896 {
888 Disconnect(); 897 Disconnect();
889 } 898 }
890 899
@@ -1685,5 +1694,10 @@ namespace OpenSim.Region.OptionalModules.Agent.InternetRelayClientView.Server
1685 public void SendPlacesReply(UUID queryID, UUID transactionID, PlacesReplyData[] data) 1694 public void SendPlacesReply(UUID queryID, UUID transactionID, PlacesReplyData[] data)
1686 { 1695 {
1687 } 1696 }
1697
1698 public void SendPartPhysicsProprieties(ISceneEntity entity)
1699 {
1700 }
1701
1688 } 1702 }
1689} 1703}
diff --git a/OpenSim/Region/OptionalModules/Avatar/Voice/FreeSwitchVoice/FreeSwitchVoiceModule.cs b/OpenSim/Region/OptionalModules/Avatar/Voice/FreeSwitchVoice/FreeSwitchVoiceModule.cs
index be8873d..6c53d95 100644
--- a/OpenSim/Region/OptionalModules/Avatar/Voice/FreeSwitchVoice/FreeSwitchVoiceModule.cs
+++ b/OpenSim/Region/OptionalModules/Avatar/Voice/FreeSwitchVoice/FreeSwitchVoiceModule.cs
@@ -568,7 +568,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.FreeSwitchVoice
568 568
569 public Hashtable FreeSwitchSLVoiceGetPreloginHTTPHandler(Hashtable request) 569 public Hashtable FreeSwitchSLVoiceGetPreloginHTTPHandler(Hashtable request)
570 { 570 {
571 m_log.Debug("[FreeSwitchVoice]: FreeSwitchSLVoiceGetPreloginHTTPHandler called"); 571// m_log.Debug("[FreeSwitchVoice] FreeSwitchSLVoiceGetPreloginHTTPHandler called");
572 572
573 Hashtable response = new Hashtable(); 573 Hashtable response = new Hashtable();
574 response["content_type"] = "text/xml"; 574 response["content_type"] = "text/xml";
@@ -719,7 +719,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.FreeSwitchVoice
719 719
720 public Hashtable FreeSwitchSLVoiceSigninHTTPHandler(Hashtable request) 720 public Hashtable FreeSwitchSLVoiceSigninHTTPHandler(Hashtable request)
721 { 721 {
722 m_log.Debug("[FreeSwitchVoice]: FreeSwitchSLVoiceSigninHTTPHandler called"); 722 //m_log.Debug("[FreeSwitchVoice] FreeSwitchSLVoiceSigninHTTPHandler called");
723// string requestbody = (string)request["body"]; 723// string requestbody = (string)request["body"];
724// string uri = (string)request["uri"]; 724// string uri = (string)request["uri"];
725// string contenttype = (string)request["content-type"]; 725// string contenttype = (string)request["content-type"];
diff --git a/OpenSim/Region/OptionalModules/Avatar/Voice/VivoxVoice/VivoxVoiceModule.cs b/OpenSim/Region/OptionalModules/Avatar/Voice/VivoxVoice/VivoxVoiceModule.cs
index a36fd74..396d4c5 100644
--- a/OpenSim/Region/OptionalModules/Avatar/Voice/VivoxVoice/VivoxVoiceModule.cs
+++ b/OpenSim/Region/OptionalModules/Avatar/Voice/VivoxVoice/VivoxVoiceModule.cs
@@ -190,7 +190,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice
190 break; 190 break;
191 } 191 }
192 192
193 m_vivoxVoiceAccountApi = String.Format("http://{0}/api2", m_vivoxServer); 193 m_vivoxVoiceAccountApi = String.Format("https://{0}/api2", m_vivoxServer);
194 194
195 // Admin interface required values 195 // Admin interface required values
196 if (String.IsNullOrEmpty(m_vivoxServer) || 196 if (String.IsNullOrEmpty(m_vivoxServer) ||
@@ -738,7 +738,8 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice
738 return channelUri; 738 return channelUri;
739 } 739 }
740 740
741 private static readonly string m_vivoxLoginPath = "http://{0}/api2/viv_signin.php?userid={1}&pwd={2}"; 741
742 private static readonly string m_vivoxLoginPath = "https://{0}/api2/viv_signin.php?userid={1}&pwd={2}";
742 743
743 /// <summary> 744 /// <summary>
744 /// Perform administrative login for Vivox. 745 /// Perform administrative login for Vivox.
@@ -750,7 +751,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice
750 return VivoxCall(requrl, false); 751 return VivoxCall(requrl, false);
751 } 752 }
752 753
753 private static readonly string m_vivoxLogoutPath = "http://{0}/api2/viv_signout.php?auth_token={1}"; 754 private static readonly string m_vivoxLogoutPath = "https://{0}/api2/viv_signout.php?auth_token={1}";
754 755
755 /// <summary> 756 /// <summary>
756 /// Perform administrative logout for Vivox. 757 /// Perform administrative logout for Vivox.
@@ -761,7 +762,8 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice
761 return VivoxCall(requrl, false); 762 return VivoxCall(requrl, false);
762 } 763 }
763 764
764 private static readonly string m_vivoxGetAccountPath = "http://{0}/api2/viv_get_acct.php?auth_token={1}&user_name={2}"; 765
766 private static readonly string m_vivoxGetAccountPath = "https://{0}/api2/viv_get_acct.php?auth_token={1}&user_name={2}";
765 767
766 /// <summary> 768 /// <summary>
767 /// Retrieve account information for the specified user. 769 /// Retrieve account information for the specified user.
@@ -773,7 +775,8 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice
773 return VivoxCall(requrl, true); 775 return VivoxCall(requrl, true);
774 } 776 }
775 777
776 private static readonly string m_vivoxNewAccountPath = "http://{0}/api2/viv_adm_acct_new.php?username={1}&pwd={2}&auth_token={3}"; 778
779 private static readonly string m_vivoxNewAccountPath = "https://{0}/api2/viv_adm_acct_new.php?username={1}&pwd={2}&auth_token={3}";
777 780
778 /// <summary> 781 /// <summary>
779 /// Creates a new account. 782 /// Creates a new account.
@@ -787,7 +790,8 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice
787 return VivoxCall(requrl, true); 790 return VivoxCall(requrl, true);
788 } 791 }
789 792
790 private static readonly string m_vivoxPasswordPath = "http://{0}/api2/viv_adm_password.php?user_name={1}&new_pwd={2}&auth_token={3}"; 793
794 private static readonly string m_vivoxPasswordPath = "https://{0}/api2/viv_adm_password.php?user_name={1}&new_pwd={2}&auth_token={3}";
791 795
792 /// <summary> 796 /// <summary>
793 /// Change the user's password. 797 /// Change the user's password.
@@ -798,7 +802,8 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice
798 return VivoxCall(requrl, true); 802 return VivoxCall(requrl, true);
799 } 803 }
800 804
801 private static readonly string m_vivoxChannelPath = "http://{0}/api2/viv_chan_mod.php?mode={1}&chan_name={2}&auth_token={3}"; 805
806 private static readonly string m_vivoxChannelPath = "https://{0}/api2/viv_chan_mod.php?mode={1}&chan_name={2}&auth_token={3}";
802 807
803 /// <summary> 808 /// <summary>
804 /// Create a channel. 809 /// Create a channel.
@@ -870,7 +875,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice
870 return false; 875 return false;
871 } 876 }
872 877
873 private static readonly string m_vivoxChannelSearchPath = "http://{0}/api2/viv_chan_search.php?cond_channame={1}&auth_token={2}"; 878 private static readonly string m_vivoxChannelSearchPath = "https://{0}/api2/viv_chan_search.php?cond_channame={1}&auth_token={2}";
874 879
875 /// <summary> 880 /// <summary>
876 /// Retrieve a channel. 881 /// Retrieve a channel.
@@ -1013,7 +1018,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice
1013 return false; 1018 return false;
1014 } 1019 }
1015 1020
1016 // private static readonly string m_vivoxChannelById = "http://{0}/api2/viv_chan_mod.php?mode={1}&chan_id={2}&auth_token={3}"; 1021 // private static readonly string m_vivoxChannelById = "https://{0}/api2/viv_chan_mod.php?mode={1}&chan_id={2}&auth_token={3}";
1017 1022
1018 // private XmlElement VivoxGetChannelById(string parent, string channelid) 1023 // private XmlElement VivoxGetChannelById(string parent, string channelid)
1019 // { 1024 // {
@@ -1025,7 +1030,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice
1025 // return VivoxCall(requrl, true); 1030 // return VivoxCall(requrl, true);
1026 // } 1031 // }
1027 1032
1028 private static readonly string m_vivoxChannelDel = "http://{0}/api2/viv_chan_mod.php?mode={1}&chan_id={2}&auth_token={3}"; 1033 private static readonly string m_vivoxChannelDel = "https://{0}/api2/viv_chan_mod.php?mode={1}&chan_id={2}&auth_token={3}";
1029 1034
1030 /// <summary> 1035 /// <summary>
1031 /// Delete a channel. 1036 /// Delete a channel.
@@ -1038,6 +1043,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice
1038 /// are required in a later phase. 1043 /// are required in a later phase.
1039 /// In this case the call handles parent and description as optional values. 1044 /// In this case the call handles parent and description as optional values.
1040 /// </summary> 1045 /// </summary>
1046
1041 private XmlElement VivoxDeleteChannel(string parent, string channelid) 1047 private XmlElement VivoxDeleteChannel(string parent, string channelid)
1042 { 1048 {
1043 string requrl = String.Format(m_vivoxChannelDel, m_vivoxServer, "delete", channelid, m_authToken); 1049 string requrl = String.Format(m_vivoxChannelDel, m_vivoxServer, "delete", channelid, m_authToken);
@@ -1048,11 +1054,12 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice
1048 return VivoxCall(requrl, true); 1054 return VivoxCall(requrl, true);
1049 } 1055 }
1050 1056
1051 private static readonly string m_vivoxChannelSearch = "http://{0}/api2/viv_chan_search.php?&cond_chanparent={1}&auth_token={2}"; 1057 private static readonly string m_vivoxChannelSearch = "https://{0}/api2/viv_chan_search.php?&cond_chanparent={1}&auth_token={2}";
1052 1058
1053 /// <summary> 1059 /// <summary>
1054 /// Return information on channels in the given directory 1060 /// Return information on channels in the given directory
1055 /// </summary> 1061 /// </summary>
1062
1056 private XmlElement VivoxListChildren(string channelid) 1063 private XmlElement VivoxListChildren(string channelid)
1057 { 1064 {
1058 string requrl = String.Format(m_vivoxChannelSearch, m_vivoxServer, channelid, m_authToken); 1065 string requrl = String.Format(m_vivoxChannelSearch, m_vivoxServer, channelid, m_authToken);
@@ -1314,4 +1321,4 @@ namespace OpenSim.Region.OptionalModules.Avatar.Voice.VivoxVoice
1314 return false; 1321 return false;
1315 } 1322 }
1316 } 1323 }
1317} \ No newline at end of file 1324}
diff --git a/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/GroupsModule.cs b/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/GroupsModule.cs
index e669f4c..65bd26c 100644
--- a/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/GroupsModule.cs
+++ b/OpenSim/Region/OptionalModules/Avatar/XmlRpcGroups/GroupsModule.cs
@@ -892,7 +892,7 @@ namespace OpenSim.Region.OptionalModules.Avatar.XmlRpcGroups
892 msg.dialog = dialog; 892 msg.dialog = dialog;
893 // msg.dialog = (byte)OpenMetaverse.InstantMessageDialog.GroupNotice; 893 // msg.dialog = (byte)OpenMetaverse.InstantMessageDialog.GroupNotice;
894 msg.fromGroup = true; 894 msg.fromGroup = true;
895 msg.offline = (byte)0; 895 msg.offline = (byte)1; // Allow this message to be stored for offline use
896 msg.ParentEstateID = 0; 896 msg.ParentEstateID = 0;
897 msg.Position = Vector3.Zero; 897 msg.Position = Vector3.Zero;
898 msg.RegionID = UUID.Zero.Guid; 898 msg.RegionID = UUID.Zero.Guid;
diff --git a/OpenSim/Region/OptionalModules/PrimLimitsModule/PrimLimitsModule.cs b/OpenSim/Region/OptionalModules/PrimLimitsModule/PrimLimitsModule.cs
index c1957e2..59ff9b8 100644
--- a/OpenSim/Region/OptionalModules/PrimLimitsModule/PrimLimitsModule.cs
+++ b/OpenSim/Region/OptionalModules/PrimLimitsModule/PrimLimitsModule.cs
@@ -121,12 +121,18 @@ namespace OpenSim.Region.OptionalModules
121 121
122 private bool CanObjectEnter(UUID objectID, bool enteringRegion, Vector3 newPoint, Scene scene) 122 private bool CanObjectEnter(UUID objectID, bool enteringRegion, Vector3 newPoint, Scene scene)
123 { 123 {
124 if ((newPoint.X > 257f || newPoint.X < -1f || newPoint.Y > 257f || newPoint.Y < -1f))
125 return true;
126
124 SceneObjectPart obj = scene.GetSceneObjectPart(objectID); 127 SceneObjectPart obj = scene.GetSceneObjectPart(objectID);
125 Vector3 oldPoint = obj.GroupPosition; 128 Vector3 oldPoint = obj.GroupPosition;
126 int objectCount = obj.ParentGroup.PrimCount; 129 int objectCount = obj.ParentGroup.PrimCount;
127 ILandObject oldParcel = scene.LandChannel.GetLandObject(oldPoint.X, oldPoint.Y); 130 ILandObject oldParcel = scene.LandChannel.GetLandObject(oldPoint.X, oldPoint.Y);
128 ILandObject newParcel = scene.LandChannel.GetLandObject(newPoint.X, newPoint.Y); 131 ILandObject newParcel = scene.LandChannel.GetLandObject(newPoint.X, newPoint.Y);
129 132
133 if (newParcel == null)
134 return true;
135
130 int usedPrims = newParcel.PrimCounts.Total; 136 int usedPrims = newParcel.PrimCounts.Total;
131 int simulatorCapacity = newParcel.GetSimulatorMaxPrimCount(); 137 int simulatorCapacity = newParcel.GetSimulatorMaxPrimCount();
132 138
@@ -171,4 +177,4 @@ namespace OpenSim.Region.OptionalModules
171 return true; 177 return true;
172 } 178 }
173 } 179 }
174} \ No newline at end of file 180}
diff --git a/OpenSim/Region/OptionalModules/Scripting/XmlRpcRouterModule/XmlRpcRouterModule.cs b/OpenSim/Region/OptionalModules/Scripting/XmlRpcRouterModule/XmlRpcRouterModule.cs
index 32659c8..11c87f8 100644
--- a/OpenSim/Region/OptionalModules/Scripting/XmlRpcRouterModule/XmlRpcRouterModule.cs
+++ b/OpenSim/Region/OptionalModules/Scripting/XmlRpcRouterModule/XmlRpcRouterModule.cs
@@ -42,17 +42,22 @@ namespace OpenSim.Region.OptionalModules.Scripting.XmlRpcRouterModule
42 public class XmlRpcRouter : IRegionModule, IXmlRpcRouter 42 public class XmlRpcRouter : IRegionModule, IXmlRpcRouter
43 { 43 {
44 //private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); 44 //private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
45 45 private bool m_enabled = false;
46 public void Initialise(Scene scene, IConfigSource config) 46 public void Initialise(Scene scene, IConfigSource config)
47 { 47 {
48 IConfig startupConfig = config.Configs["Startup"]; 48 IConfig startupConfig = config.Configs["XMLRPC"];
49 if (startupConfig == null) 49 if (startupConfig == null)
50 return; 50 return;
51 51
52 if (startupConfig.GetString("XmlRpcRouterModule", 52 if (startupConfig.GetString("XmlRpcRouterModule",
53 "XmlRpcRouterModule") == "XmlRpcRouterModule") 53 "") == "XmlRpcRouterModule")
54 { 54 {
55 scene.RegisterModuleInterface<IXmlRpcRouter>(this); 55 scene.RegisterModuleInterface<IXmlRpcRouter>(this);
56 m_enabled = true;
57 }
58 else
59 {
60 m_enabled = false;
56 } 61 }
57 } 62 }
58 63
@@ -76,7 +81,10 @@ namespace OpenSim.Region.OptionalModules.Scripting.XmlRpcRouterModule
76 81
77 public void RegisterNewReceiver(IScriptModule scriptEngine, UUID channel, UUID objectID, UUID itemID, string uri) 82 public void RegisterNewReceiver(IScriptModule scriptEngine, UUID channel, UUID objectID, UUID itemID, string uri)
78 { 83 {
79 scriptEngine.PostScriptEvent(itemID, "xmlrpc_uri", new Object[] {uri}); 84 if (m_enabled)
85 {
86 scriptEngine.PostScriptEvent(itemID, "xmlrpc_uri", new Object[] { uri });
87 }
80 } 88 }
81 89
82 public void ScriptRemoved(UUID itemID) 90 public void ScriptRemoved(UUID itemID)
diff --git a/OpenSim/Region/OptionalModules/World/MoneyModule/SampleMoneyModule.cs b/OpenSim/Region/OptionalModules/World/MoneyModule/SampleMoneyModule.cs
index 9c838d0..d206f69 100644
--- a/OpenSim/Region/OptionalModules/World/MoneyModule/SampleMoneyModule.cs
+++ b/OpenSim/Region/OptionalModules/World/MoneyModule/SampleMoneyModule.cs
@@ -838,6 +838,10 @@ namespace OpenSim.Region.OptionalModules.World.MoneyModule
838 if (module != null) 838 if (module != null)
839 module.BuyObject(remoteClient, categoryID, localID, saleType, salePrice); 839 module.BuyObject(remoteClient, categoryID, localID, saleType, salePrice);
840 } 840 }
841
842 public void MoveMoney(UUID fromAgentID, UUID toAgentID, int amount, string text)
843 {
844 }
841 } 845 }
842 846
843 public enum TransactionType : int 847 public enum TransactionType : int
diff --git a/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs b/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs
index b3e1069..4fcf40d 100644
--- a/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs
+++ b/OpenSim/Region/OptionalModules/World/NPC/NPCAvatar.cs
@@ -47,7 +47,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC
47 private readonly string m_firstname; 47 private readonly string m_firstname;
48 private readonly string m_lastname; 48 private readonly string m_lastname;
49 private readonly Vector3 m_startPos; 49 private readonly Vector3 m_startPos;
50 private readonly UUID m_uuid = UUID.Random(); 50 private UUID m_uuid = UUID.Random();
51 private readonly Scene m_scene; 51 private readonly Scene m_scene;
52 private readonly UUID m_ownerID; 52 private readonly UUID m_ownerID;
53 53
@@ -174,7 +174,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC
174#pragma warning disable 67 174#pragma warning disable 67
175 public event Action<IClientAPI> OnLogout; 175 public event Action<IClientAPI> OnLogout;
176 public event ObjectPermissions OnObjectPermissions; 176 public event ObjectPermissions OnObjectPermissions;
177 177 public event MoveItemsAndLeaveCopy OnMoveItemsAndLeaveCopy;
178 public event MoneyTransferRequest OnMoneyTransferRequest; 178 public event MoneyTransferRequest OnMoneyTransferRequest;
179 public event ParcelBuy OnParcelBuy; 179 public event ParcelBuy OnParcelBuy;
180 public event Action<IClientAPI> OnConnectionClosed; 180 public event Action<IClientAPI> OnConnectionClosed;
@@ -194,6 +194,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC
194 public event ObjectDrop OnObjectDrop; 194 public event ObjectDrop OnObjectDrop;
195 public event StartAnim OnStartAnim; 195 public event StartAnim OnStartAnim;
196 public event StopAnim OnStopAnim; 196 public event StopAnim OnStopAnim;
197 public event ChangeAnim OnChangeAnim;
197 public event LinkObjects OnLinkObjects; 198 public event LinkObjects OnLinkObjects;
198 public event DelinkObjects OnDelinkObjects; 199 public event DelinkObjects OnDelinkObjects;
199 public event RequestMapBlocks OnRequestMapBlocks; 200 public event RequestMapBlocks OnRequestMapBlocks;
@@ -243,6 +244,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC
243 public event UpdatePrimTexture OnUpdatePrimTexture; 244 public event UpdatePrimTexture OnUpdatePrimTexture;
244 public event UpdateVector OnUpdatePrimGroupPosition; 245 public event UpdateVector OnUpdatePrimGroupPosition;
245 public event UpdateVector OnUpdatePrimSinglePosition; 246 public event UpdateVector OnUpdatePrimSinglePosition;
247 public event ClientChangeObject onClientChangeObject;
246 public event UpdatePrimRotation OnUpdatePrimGroupRotation; 248 public event UpdatePrimRotation OnUpdatePrimGroupRotation;
247 public event UpdatePrimSingleRotationPosition OnUpdatePrimSingleRotationPosition; 249 public event UpdatePrimSingleRotationPosition OnUpdatePrimSingleRotationPosition;
248 public event UpdatePrimSingleRotation OnUpdatePrimSingleRotation; 250 public event UpdatePrimSingleRotation OnUpdatePrimSingleRotation;
@@ -380,7 +382,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC
380 public event ClassifiedInfoRequest OnClassifiedInfoRequest; 382 public event ClassifiedInfoRequest OnClassifiedInfoRequest;
381 public event ClassifiedInfoUpdate OnClassifiedInfoUpdate; 383 public event ClassifiedInfoUpdate OnClassifiedInfoUpdate;
382 public event ClassifiedDelete OnClassifiedDelete; 384 public event ClassifiedDelete OnClassifiedDelete;
383 public event ClassifiedDelete OnClassifiedGodDelete; 385 public event ClassifiedGodDelete OnClassifiedGodDelete;
384 386
385 public event EventNotificationAddRequest OnEventNotificationAddRequest; 387 public event EventNotificationAddRequest OnEventNotificationAddRequest;
386 public event EventNotificationRemoveRequest OnEventNotificationRemoveRequest; 388 public event EventNotificationRemoveRequest OnEventNotificationRemoveRequest;
@@ -419,6 +421,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC
419 public event GroupVoteHistoryRequest OnGroupVoteHistoryRequest; 421 public event GroupVoteHistoryRequest OnGroupVoteHistoryRequest;
420 public event SimWideDeletesDelegate OnSimWideDeletes; 422 public event SimWideDeletesDelegate OnSimWideDeletes;
421 public event SendPostcard OnSendPostcard; 423 public event SendPostcard OnSendPostcard;
424 public event ChangeInventoryItemFlags OnChangeInventoryItemFlags;
422 public event MuteListEntryUpdate OnUpdateMuteListEntry; 425 public event MuteListEntryUpdate OnUpdateMuteListEntry;
423 public event MuteListEntryRemove OnRemoveMuteListEntry; 426 public event MuteListEntryRemove OnRemoveMuteListEntry;
424 public event GodlikeMessage onGodlikeMessage; 427 public event GodlikeMessage onGodlikeMessage;
@@ -446,6 +449,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC
446 public virtual UUID AgentId 449 public virtual UUID AgentId
447 { 450 {
448 get { return m_uuid; } 451 get { return m_uuid; }
452 set { m_uuid = value; }
449 } 453 }
450 454
451 public UUID SessionId 455 public UUID SessionId
@@ -854,8 +858,11 @@ namespace OpenSim.Region.OptionalModules.World.NPC
854 858
855 public void Close() 859 public void Close()
856 { 860 {
857 // Remove ourselves from the scene 861 Close(true);
858 m_scene.RemoveClient(AgentId, false); 862 }
863
864 public void Close(bool sendStop)
865 {
859 } 866 }
860 867
861 public void Start() 868 public void Start()
@@ -1185,5 +1192,10 @@ namespace OpenSim.Region.OptionalModules.World.NPC
1185 public void SendPlacesReply(UUID queryID, UUID transactionID, PlacesReplyData[] data) 1192 public void SendPlacesReply(UUID queryID, UUID transactionID, PlacesReplyData[] data)
1186 { 1193 {
1187 } 1194 }
1195
1196 public void SendPartPhysicsProprieties(ISceneEntity entity)
1197 {
1198 }
1199
1188 } 1200 }
1189} 1201}
diff --git a/OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs b/OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs
index d3456ab..a32ab2a 100644
--- a/OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs
+++ b/OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs
@@ -144,29 +144,30 @@ namespace OpenSim.Region.OptionalModules.World.NPC
144// acd.AgentID, i, acd.Appearance.Texture.FaceTextures[i]); 144// acd.AgentID, i, acd.Appearance.Texture.FaceTextures[i]);
145// } 145// }
146 146
147 lock (m_avatars) 147 ManualResetEvent ev = new ManualResetEvent(false);
148 {
149 scene.AuthenticateHandler.AddNewCircuit(npcAvatar.CircuitCode, acd);
150 scene.AddNewClient(npcAvatar, PresenceType.Npc);
151 148
152 ScenePresence sp; 149 Util.FireAndForget(delegate(object x) {
153 if (scene.TryGetScenePresence(npcAvatar.AgentId, out sp)) 150 lock (m_avatars)
154 { 151 {
155// m_log.DebugFormat( 152 scene.AuthenticateHandler.AddNewCircuit(npcAvatar.CircuitCode, acd);
156// "[NPC MODULE]: Successfully retrieved scene presence for NPC {0} {1}", sp.Name, sp.UUID); 153 scene.AddNewClient(npcAvatar, PresenceType.Npc);
157 154
158 sp.CompleteMovement(npcAvatar, false); 155 ScenePresence sp;
159 m_avatars.Add(npcAvatar.AgentId, npcAvatar); 156 if (scene.TryGetScenePresence(npcAvatar.AgentId, out sp))
160 m_log.DebugFormat("[NPC MODULE]: Created NPC {0} {1}", npcAvatar.AgentId, sp.Name); 157 {
161 158 sp.CompleteMovement(npcAvatar, false);
162 return npcAvatar.AgentId; 159 m_avatars.Add(npcAvatar.AgentId, npcAvatar);
163 } 160 m_log.DebugFormat("[NPC MODULE]: Created NPC {0} {1}", npcAvatar.AgentId, sp.Name);
164 else 161 }
165 {
166 m_log.WarnFormat("[NPC MODULE]: Could not find scene presence for NPC {0} {1}", sp.Name, sp.UUID);
167 return UUID.Zero;
168 } 162 }
169 } 163 ev.Set();
164 });
165
166 ev.WaitOne();
167
168// m_log.DebugFormat("[NPC MODULE]: Created NPC with id {0}", npcAvatar.AgentId);
169
170 return npcAvatar.AgentId;
170 } 171 }
171 172
172 public bool MoveToTarget(UUID agentID, Scene scene, Vector3 pos, bool noFly, bool landAtTarget, bool running) 173 public bool MoveToTarget(UUID agentID, Scene scene, Vector3 pos, bool noFly, bool landAtTarget, bool running)
@@ -356,9 +357,15 @@ namespace OpenSim.Region.OptionalModules.World.NPC
356 { 357 {
357 NPCAvatar av; 358 NPCAvatar av;
358 if (m_avatars.TryGetValue(npcID, out av)) 359 if (m_avatars.TryGetValue(npcID, out av))
360 {
361 if (npcID == callerID)
362 return true;
359 return CheckPermissions(av, callerID); 363 return CheckPermissions(av, callerID);
364 }
360 else 365 else
366 {
361 return false; 367 return false;
368 }
362 } 369 }
363 } 370 }
364 371
@@ -370,7 +377,7 @@ namespace OpenSim.Region.OptionalModules.World.NPC
370 /// <returns>true if they do, false if they don't.</returns> 377 /// <returns>true if they do, false if they don't.</returns>
371 private bool CheckPermissions(NPCAvatar av, UUID callerID) 378 private bool CheckPermissions(NPCAvatar av, UUID callerID)
372 { 379 {
373 return callerID == UUID.Zero || av.OwnerID == UUID.Zero || av.OwnerID == callerID; 380 return callerID == UUID.Zero || av.OwnerID == UUID.Zero || av.OwnerID == callerID || av.AgentId == callerID;
374 } 381 }
375 } 382 }
376} 383}
diff --git a/OpenSim/Region/Physics/ChOdePlugin/AssemblyInfo.cs b/OpenSim/Region/Physics/ChOdePlugin/AssemblyInfo.cs
new file mode 100644
index 0000000..d65929a
--- /dev/null
+++ b/OpenSim/Region/Physics/ChOdePlugin/AssemblyInfo.cs
@@ -0,0 +1,58 @@
1/*
2 * Copyright (c) Contributors, http://opensimulator.org/
3 * See CONTRIBUTORS.TXT for a full list of copyright holders.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 * * Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * * Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
12 * * Neither the name of the OpenSimulator Project nor the
13 * names of its contributors may be used to endorse or promote products
14 * derived from this software without specific prior written permission.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
17 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
20 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28using System.Reflection;
29using System.Runtime.InteropServices;
30
31// Information about this assembly is defined by the following
32// attributes.
33//
34// change them to the information which is associated with the assembly
35// you compile.
36
37[assembly : AssemblyTitle("OdePlugin")]
38[assembly : AssemblyDescription("")]
39[assembly : AssemblyConfiguration("")]
40[assembly : AssemblyCompany("http://opensimulator.org")]
41[assembly : AssemblyProduct("OdePlugin")]
42[assembly : AssemblyCopyright("Copyright (c) OpenSimulator.org Developers 2007-2009")]
43[assembly : AssemblyTrademark("")]
44[assembly : AssemblyCulture("")]
45
46// This sets the default COM visibility of types in the assembly to invisible.
47// If you need to expose a type to COM, use [ComVisible(true)] on that type.
48
49[assembly : ComVisible(false)]
50
51// The assembly version has following format :
52//
53// Major.Minor.Build.Revision
54//
55// You can specify all values by your own or you can build default build and revision
56// numbers with the '*' character (the default):
57
58[assembly : AssemblyVersion("0.6.5.*")]
diff --git a/OpenSim/Region/Physics/ChOdePlugin/ODECharacter.cs b/OpenSim/Region/Physics/ChOdePlugin/ODECharacter.cs
new file mode 100644
index 0000000..ec717d7
--- /dev/null
+++ b/OpenSim/Region/Physics/ChOdePlugin/ODECharacter.cs
@@ -0,0 +1,1467 @@
1/*
2 * Copyright (c) Contributors, http://opensimulator.org/
3 * See CONTRIBUTORS.TXT for a full list of copyright holders.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 * * Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * * Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
12 * * Neither the name of the OpenSimulator Project nor the
13 * names of its contributors may be used to endorse or promote products
14 * derived from this software without specific prior written permission.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
17 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
20 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28using System;
29using System.Collections.Generic;
30using System.Reflection;
31using OpenMetaverse;
32using Ode.NET;
33using OpenSim.Framework;
34using OpenSim.Region.Physics.Manager;
35using log4net;
36
37namespace OpenSim.Region.Physics.OdePlugin
38{
39 /// <summary>
40 /// Various properties that ODE uses for AMotors but isn't exposed in ODE.NET so we must define them ourselves.
41 /// </summary>
42
43 public enum dParam : int
44 {
45 LowStop = 0,
46 HiStop = 1,
47 Vel = 2,
48 FMax = 3,
49 FudgeFactor = 4,
50 Bounce = 5,
51 CFM = 6,
52 StopERP = 7,
53 StopCFM = 8,
54 LoStop2 = 256,
55 HiStop2 = 257,
56 Vel2 = 258,
57 FMax2 = 259,
58 StopERP2 = 7 + 256,
59 StopCFM2 = 8 + 256,
60 LoStop3 = 512,
61 HiStop3 = 513,
62 Vel3 = 514,
63 FMax3 = 515,
64 StopERP3 = 7 + 512,
65 StopCFM3 = 8 + 512
66 }
67 public class OdeCharacter : PhysicsActor
68 {
69 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
70
71 private Vector3 _position;
72 private d.Vector3 _zeroPosition;
73 // private d.Matrix3 m_StandUpRotation;
74 private bool _zeroFlag = false;
75 private bool m_lastUpdateSent = false;
76 private Vector3 _velocity;
77 private Vector3 _target_velocity;
78 private Vector3 _acceleration;
79 private Vector3 m_rotationalVelocity;
80 private float m_mass = 80f;
81 public float m_density = 60f;
82 private bool m_pidControllerActive = true;
83 public float PID_D = 800.0f;
84 public float PID_P = 900.0f;
85 //private static float POSTURE_SERVO = 10000.0f;
86 public float CAPSULE_RADIUS = 0.37f;
87 public float CAPSULE_LENGTH = 2.140599f;
88 public float m_tensor = 3800000f;
89 public float heightFudgeFactor = 0.52f;
90 public float walkDivisor = 1.3f;
91 public float runDivisor = 0.8f;
92 private bool flying = false;
93 private bool jumping = false; // add for jumping
94 private bool m_iscolliding = false;
95 private bool m_iscollidingGround = false;
96 private bool m_wascolliding = false;
97 private bool m_wascollidingGround = false;
98 private bool m_iscollidingObj = false;
99 private bool m_alwaysRun = false;
100 private bool m_hackSentFall = false;
101 private bool m_hackSentFly = false;
102 private int m_requestedUpdateFrequency = 0;
103 private Vector3 m_taintPosition = Vector3.Zero;
104 public uint m_localID = 0;
105 public bool m_returnCollisions = false;
106 // taints and their non-tainted counterparts
107 public bool m_isPhysical = false; // the current physical status
108 public bool m_tainted_isPhysical = false; // set when the physical status is tainted (false=not existing in physics engine, true=existing)
109 public float MinimumGroundFlightOffset = 3f;
110
111 private float m_tainted_CAPSULE_LENGTH; // set when the capsule length changes.
112 private float m_tiltMagnitudeWhenProjectedOnXYPlane = 0.1131371f; // used to introduce a fixed tilt because a straight-up capsule falls through terrain, probably a bug in terrain collider
113
114
115 private float m_buoyancy = 0f;
116
117 // private CollisionLocker ode;
118
119 private string m_name = String.Empty;
120
121 private bool[] m_colliderarr = new bool[11];
122 private bool[] m_colliderGroundarr = new bool[11];
123
124 // Default we're a Character
125 private CollisionCategories m_collisionCategories = (CollisionCategories.Character);
126
127 // Default, Collide with Other Geometries, spaces, bodies and characters.
128 private CollisionCategories m_collisionFlags = (CollisionCategories.Geom
129 | CollisionCategories.Space
130 | CollisionCategories.Body
131 | CollisionCategories.Character
132 | CollisionCategories.Land);
133 public IntPtr Body = IntPtr.Zero;
134 private OdeScene _parent_scene;
135 public IntPtr Shell = IntPtr.Zero;
136 public IntPtr Amotor = IntPtr.Zero;
137 public d.Mass ShellMass;
138 public bool collidelock = false;
139
140 public int m_eventsubscription = 0;
141 private CollisionEventUpdate CollisionEventsThisFrame = new CollisionEventUpdate();
142
143 private Vector3 m_taintMomentum = Vector3.Zero;
144 private bool m_haveTaintMomentum = false;
145
146
147 // unique UUID of this character object
148 public UUID m_uuid;
149 public bool bad = false;
150 private Object m_syncRoot = new Object();
151
152 public OdeCharacter(String avName, OdeScene parent_scene, Vector3 pos, CollisionLocker dode, Vector3 size, float pid_d, float pid_p, float capsule_radius, float tensor, float density, float height_fudge_factor, float walk_divisor, float rundivisor)
153 {
154 m_uuid = UUID.Random();
155
156 if (pos.IsFinite())
157 {
158 if (pos.Z > 9999999f)
159 {
160 pos.Z = parent_scene.GetTerrainHeightAtXY(127, 127) + 5;
161 }
162 if (pos.Z < -90000f)
163 {
164 pos.Z = parent_scene.GetTerrainHeightAtXY(127, 127) + 5;
165 }
166 _position = pos;
167 m_taintPosition.X = pos.X;
168 m_taintPosition.Y = pos.Y;
169 m_taintPosition.Z = pos.Z;
170 }
171 else
172 {
173 _position = new Vector3(((float)_parent_scene.WorldExtents.X * 0.5f), ((float)_parent_scene.WorldExtents.Y * 0.5f), parent_scene.GetTerrainHeightAtXY(128f, 128f) + 10f);
174 m_taintPosition.X = _position.X;
175 m_taintPosition.Y = _position.Y;
176 m_taintPosition.Z = _position.Z;
177 m_log.Warn("[PHYSICS]: Got NaN Position on Character Create");
178 }
179
180 _parent_scene = parent_scene;
181
182 PID_D = pid_d;
183 PID_P = pid_p;
184 CAPSULE_RADIUS = capsule_radius;
185 m_tensor = tensor;
186 m_density = density;
187 heightFudgeFactor = height_fudge_factor;
188 walkDivisor = walk_divisor;
189 runDivisor = rundivisor;
190
191 // m_StandUpRotation =
192 // new d.Matrix3(0.5f, 0.7071068f, 0.5f, -0.7071068f, 0f, 0.7071068f, 0.5f, -0.7071068f,
193 // 0.5f);
194
195 for (int i = 0; i < 11; i++)
196 {
197 m_colliderarr[i] = false;
198 }
199 CAPSULE_LENGTH = (size.Z * 1.15f) - CAPSULE_RADIUS * 2.0f;
200 //m_log.Info("[SIZE]: " + CAPSULE_LENGTH.ToString());
201 m_tainted_CAPSULE_LENGTH = CAPSULE_LENGTH;
202
203 m_isPhysical = false; // current status: no ODE information exists
204 m_tainted_isPhysical = true; // new tainted status: need to create ODE information
205
206 _parent_scene.AddPhysicsActorTaint(this);
207
208 m_name = avName;
209 }
210
211 public override int PhysicsActorType
212 {
213 get { return (int) ActorTypes.Agent; }
214 set { return; }
215 }
216
217 /// <summary>
218 /// If this is set, the avatar will move faster
219 /// </summary>
220 public override bool SetAlwaysRun
221 {
222 get { return m_alwaysRun; }
223 set { m_alwaysRun = value; }
224 }
225
226 public override uint LocalID
227 {
228 set { m_localID = value; }
229 }
230
231 public override bool Grabbed
232 {
233 set { return; }
234 }
235
236 public override bool Selected
237 {
238// set { return; }
239 set { jumping = value; } // add for jumping flag
240 }
241
242 public override float Buoyancy
243 {
244 get { return m_buoyancy; }
245 set { m_buoyancy = value; }
246 }
247
248 public override bool FloatOnWater
249 {
250 set { return; }
251 }
252
253 public override bool IsPhysical
254 {
255 get { return false; }
256 set { return; }
257 }
258
259 public override bool ThrottleUpdates
260 {
261 get { return false; }
262 set { return; }
263 }
264
265 public override bool Flying
266 {
267 get { return flying; }
268 set { flying = value; }
269 }
270
271 /// <summary>
272 /// Returns if the avatar is colliding in general.
273 /// This includes the ground and objects and avatar.
274 /// </summary>
275 public override bool IsColliding
276 {
277//#@ get { return m_iscolliding; }
278 get { //##
279//Console.WriteLine(">>>>>>>>>>>> IC get = {0}", m_iscolliding); //##
280 return m_iscolliding; } //##
281 set
282 {
283 int i;
284 int truecount = 0;
285 int falsecount = 0;
286
287 if (m_colliderarr.Length >= 10)
288 {
289 for (i = 0; i < 10; i++)
290 {
291 m_colliderarr[i] = m_colliderarr[i + 1];
292 }
293 }
294 m_colliderarr[10] = value;
295
296 for (i = 0; i < 11; i++)
297 {
298 if (m_colliderarr[i])
299 {
300 truecount++;
301 }
302 else
303 {
304 falsecount++;
305 }
306 }
307
308 // Equal truecounts and false counts means we're colliding with something.
309
310 if (falsecount > 1.2*truecount)
311 {
312 m_iscolliding = false;
313 }
314 else
315 {
316 m_iscolliding = true;
317 }
318// ## Console.WriteLine("IC SET = {0} t{1} f{2} i {3}", value, truecount, falsecount, m_iscolliding);
319 if (m_wascolliding != m_iscolliding)
320 {
321 //base.SendCollisionUpdate(new CollisionEventUpdate());
322 }
323 m_wascolliding = m_iscolliding;
324 }
325 }
326
327 /// <summary>
328 /// Returns if an avatar is colliding with the ground
329 /// </summary>
330 public override bool CollidingGround
331 {
332 get { return m_iscollidingGround; }
333 set
334 {
335 // Collisions against the ground are not really reliable
336 // So, to get a consistant value we have to average the current result over time
337 // Currently we use 1 second = 10 calls to this.
338 int i;
339 int truecount = 0;
340 int falsecount = 0;
341
342 if (m_colliderGroundarr.Length >= 10)
343 {
344 for (i = 0; i < 10; i++)
345 {
346 m_colliderGroundarr[i] = m_colliderGroundarr[i + 1];
347 }
348 }
349 m_colliderGroundarr[10] = value;
350
351 for (i = 0; i < 11; i++)
352 {
353 if (m_colliderGroundarr[i])
354 {
355 truecount++;
356 }
357 else
358 {
359 falsecount++;
360 }
361 }
362
363 // Equal truecounts and false counts means we're colliding with something.
364
365 if (falsecount > 1.2*truecount)
366 {
367 m_iscollidingGround = false;
368 }
369 else
370 {
371 m_iscollidingGround = true;
372 }
373 if (m_wascollidingGround != m_iscollidingGround)
374 {
375 //base.SendCollisionUpdate(new CollisionEventUpdate());
376 }
377 m_wascollidingGround = m_iscollidingGround;
378 }
379 }
380
381 /// <summary>
382 /// Returns if the avatar is colliding with an object
383 /// </summary>
384 public override bool CollidingObj
385 {
386 get { return m_iscollidingObj; }
387 set
388 {
389 m_iscollidingObj = value;
390 if (value)
391 m_pidControllerActive = false;
392 else
393 m_pidControllerActive = true;
394 }
395 }
396
397 /// <summary>
398 /// turn the PID controller on or off.
399 /// The PID Controller will turn on all by itself in many situations
400 /// </summary>
401 /// <param name="status"></param>
402 public void SetPidStatus(bool status)
403 {
404 m_pidControllerActive = status;
405 }
406
407 public override bool Stopped
408 {
409 get { return _zeroFlag; }
410 }
411
412 /// <summary>
413 /// This 'puts' an avatar somewhere in the physics space.
414 /// Not really a good choice unless you 'know' it's a good
415 /// spot otherwise you're likely to orbit the avatar.
416 /// </summary>
417 public override Vector3 Position
418 {
419 get { return _position; }
420 set
421 {
422 if (Body == IntPtr.Zero || Shell == IntPtr.Zero)
423 {
424 if (value.IsFinite())
425 {
426 if (value.Z > 9999999f)
427 {
428 value.Z = _parent_scene.GetTerrainHeightAtXY(127, 127) + 5;
429 }
430 if (value.Z < -90000f)
431 {
432 value.Z = _parent_scene.GetTerrainHeightAtXY(127, 127) + 5;
433 }
434
435 _position.X = value.X;
436 _position.Y = value.Y;
437 _position.Z = value.Z;
438
439 m_taintPosition.X = value.X;
440 m_taintPosition.Y = value.Y;
441 m_taintPosition.Z = value.Z;
442 _parent_scene.AddPhysicsActorTaint(this);
443 }
444 else
445 {
446 m_log.Warn("[PHYSICS]: Got a NaN Position from Scene on a Character");
447 }
448 }
449 }
450 }
451
452 public override Vector3 RotationalVelocity
453 {
454 get { return m_rotationalVelocity; }
455 set { m_rotationalVelocity = value; }
456 }
457
458 /// <summary>
459 /// This property sets the height of the avatar only. We use the height to make sure the avatar stands up straight
460 /// and use it to offset landings properly
461 /// </summary>
462 public override Vector3 Size
463 {
464 get { return new Vector3(CAPSULE_RADIUS * 2, CAPSULE_RADIUS * 2, CAPSULE_LENGTH); }
465 set
466 {
467 if (value.IsFinite())
468 {
469 m_pidControllerActive = true;
470
471 Vector3 SetSize = value;
472 m_tainted_CAPSULE_LENGTH = (SetSize.Z*1.15f) - CAPSULE_RADIUS*2.0f;
473 //m_log.Info("[SIZE]: " + CAPSULE_LENGTH.ToString());
474
475 Velocity = Vector3.Zero;
476 m_taintPosition = _position; // update the stale taint position
477 _parent_scene.AddPhysicsActorTaint(this);
478 }
479 else
480 {
481 m_log.Warn("[PHYSICS]: Got a NaN Size from Scene on a Character");
482 }
483 }
484 }
485
486 private void AlignAvatarTiltWithCurrentDirectionOfMovement(Vector3 movementVector)
487 {
488 movementVector.Z = 0f;
489 float magnitude = (float)Math.Sqrt((double)(movementVector.X * movementVector.X + movementVector.Y * movementVector.Y));
490 if (magnitude < 0.1f) return;
491
492 // normalize the velocity vector
493 float invMagnitude = 1.0f / magnitude;
494 movementVector.X *= invMagnitude;
495 movementVector.Y *= invMagnitude;
496
497 // if we change the capsule heading too often, the capsule can fall down
498 // therefore we snap movement vector to just 1 of 4 predefined directions (ne, nw, se, sw),
499 // meaning only 4 possible capsule tilt orientations
500 if (movementVector.X > 0)
501 {
502 // east
503 if (movementVector.Y > 0)
504 {
505 // northeast
506 movementVector.X = (float)Math.Sqrt(2.0);
507 movementVector.Y = (float)Math.Sqrt(2.0);
508 }
509 else
510 {
511 // southeast
512 movementVector.X = (float)Math.Sqrt(2.0);
513 movementVector.Y = -(float)Math.Sqrt(2.0);
514 }
515 }
516 else
517 {
518 // west
519 if (movementVector.Y > 0)
520 {
521 // northwest
522 movementVector.X = -(float)Math.Sqrt(2.0);
523 movementVector.Y = (float)Math.Sqrt(2.0);
524 }
525 else
526 {
527 // southwest
528 movementVector.X = -(float)Math.Sqrt(2.0);
529 movementVector.Y = -(float)Math.Sqrt(2.0);
530 }
531 }
532
533
534 // movementVector.Z is zero
535
536 // calculate tilt components based on desired amount of tilt and current (snapped) heading.
537 // the "-" sign is to force the tilt to be OPPOSITE the direction of movement.
538 float xTiltComponent = -movementVector.X * m_tiltMagnitudeWhenProjectedOnXYPlane;
539 float yTiltComponent = -movementVector.Y * m_tiltMagnitudeWhenProjectedOnXYPlane;
540
541 //m_log.Debug("[PHYSICS] changing avatar tilt");
542 d.JointSetAMotorParam(Amotor, (int)dParam.LowStop, xTiltComponent);
543 d.JointSetAMotorParam(Amotor, (int)dParam.HiStop, xTiltComponent); // must be same as lowstop, else a different, spurious tilt is introduced
544 d.JointSetAMotorParam(Amotor, (int)dParam.LoStop2, yTiltComponent);
545 d.JointSetAMotorParam(Amotor, (int)dParam.HiStop2, yTiltComponent); // same as lowstop
546 d.JointSetAMotorParam(Amotor, (int)dParam.LoStop3, 0f);
547 d.JointSetAMotorParam(Amotor, (int)dParam.HiStop3, 0f); // same as lowstop
548 }
549
550 /// <summary>
551 /// This creates the Avatar's physical Surrogate at the position supplied
552 /// </summary>
553 /// <param name="npositionX"></param>
554 /// <param name="npositionY"></param>
555 /// <param name="npositionZ"></param>
556
557 // WARNING: This MUST NOT be called outside of ProcessTaints, else we can have unsynchronized access
558 // to ODE internals. ProcessTaints is called from within thread-locked Simulate(), so it is the only
559 // place that is safe to call this routine AvatarGeomAndBodyCreation.
560 private void AvatarGeomAndBodyCreation(float npositionX, float npositionY, float npositionZ, float tensor)
561 {
562 //CAPSULE_LENGTH = -5;
563 //CAPSULE_RADIUS = -5;
564 int dAMotorEuler = 1;
565 _parent_scene.waitForSpaceUnlock(_parent_scene.space);
566 if (CAPSULE_LENGTH <= 0)
567 {
568 m_log.Warn("[PHYSICS]: The capsule size you specified in opensim.ini is invalid! Setting it to the smallest possible size!");
569 CAPSULE_LENGTH = 0.01f;
570
571 }
572
573 if (CAPSULE_RADIUS <= 0)
574 {
575 m_log.Warn("[PHYSICS]: The capsule size you specified in opensim.ini is invalid! Setting it to the smallest possible size!");
576 CAPSULE_RADIUS = 0.01f;
577
578 }
579
580 if(Shell != IntPtr.Zero)
581 {
582 try
583 {
584 d.GeomDestroy(Shell);
585 }
586 catch (System.AccessViolationException)
587 {
588 m_log.Error("[PHYSICS]: PrimGeom dead");
589 }
590 // Remove any old entries
591//string tShell;
592//_parent_scene.geom_name_map.TryGetValue(Shell, out tShell);
593//Console.WriteLine("**** Remove {0}", tShell);
594 if(_parent_scene.geom_name_map.ContainsKey(Shell)) _parent_scene.geom_name_map.Remove(Shell);
595 if(_parent_scene.actor_name_map.ContainsKey(Shell)) _parent_scene.actor_name_map.Remove(Shell);
596 }
597
598 Shell = d.CreateCapsule(_parent_scene.space, CAPSULE_RADIUS, CAPSULE_LENGTH);
599 _parent_scene.geom_name_map[Shell] = m_name;
600 _parent_scene.actor_name_map[Shell] = (PhysicsActor)this;
601//Console.WriteLine("**** Create {2} Dicts: actor={0} name={1} height={3} rad={4}", _parent_scene.actor_name_map.Count, _parent_scene.geom_name_map.Count, m_name, CAPSULE_LENGTH, CAPSULE_RADIUS);
602
603 d.GeomSetCategoryBits(Shell, (int)m_collisionCategories);
604 d.GeomSetCollideBits(Shell, (int)m_collisionFlags);
605
606 d.MassSetCapsuleTotal(out ShellMass, m_mass, 2, CAPSULE_RADIUS, CAPSULE_LENGTH);
607 Body = d.BodyCreate(_parent_scene.world);
608 d.BodySetPosition(Body, npositionX, npositionY, npositionZ);
609
610 _position.X = npositionX;
611 _position.Y = npositionY;
612 _position.Z = npositionZ;
613
614
615 m_taintPosition.X = npositionX;
616 m_taintPosition.Y = npositionY;
617 m_taintPosition.Z = npositionZ;
618
619 d.BodySetMass(Body, ref ShellMass);
620 d.Matrix3 m_caprot;
621 // 90 Stand up on the cap of the capped cyllinder
622 if (_parent_scene.IsAvCapsuleTilted)
623 {
624 d.RFromAxisAndAngle(out m_caprot, 1, 0, 1, (float)(Math.PI / 2));
625 }
626 else
627 {
628 d.RFromAxisAndAngle(out m_caprot, 0, 0, 1, (float)(Math.PI / 2));
629 }
630
631
632 d.GeomSetRotation(Shell, ref m_caprot);
633 d.BodySetRotation(Body, ref m_caprot);
634
635 d.GeomSetBody(Shell, Body);
636
637
638 // The purpose of the AMotor here is to keep the avatar's physical
639 // surrogate from rotating while moving
640 Amotor = d.JointCreateAMotor(_parent_scene.world, IntPtr.Zero);
641 d.JointAttach(Amotor, Body, IntPtr.Zero);
642 d.JointSetAMotorMode(Amotor, dAMotorEuler);
643 d.JointSetAMotorNumAxes(Amotor, 3);
644 d.JointSetAMotorAxis(Amotor, 0, 0, 1, 0, 0);
645 d.JointSetAMotorAxis(Amotor, 1, 0, 0, 1, 0);
646 d.JointSetAMotorAxis(Amotor, 2, 0, 0, 0, 1);
647 d.JointSetAMotorAngle(Amotor, 0, 0);
648 d.JointSetAMotorAngle(Amotor, 1, 0);
649 d.JointSetAMotorAngle(Amotor, 2, 0);
650
651 // These lowstops and high stops are effectively (no wiggle room)
652 if (_parent_scene.IsAvCapsuleTilted)
653 {
654 d.JointSetAMotorParam(Amotor, (int)dParam.LowStop, -0.000000000001f);
655 d.JointSetAMotorParam(Amotor, (int)dParam.LoStop3, -0.000000000001f);
656 d.JointSetAMotorParam(Amotor, (int)dParam.LoStop2, -0.000000000001f);
657 d.JointSetAMotorParam(Amotor, (int)dParam.HiStop, 0.000000000001f);
658 d.JointSetAMotorParam(Amotor, (int)dParam.HiStop3, 0.000000000001f);
659 d.JointSetAMotorParam(Amotor, (int)dParam.HiStop2, 0.000000000001f);
660 }
661 else
662 {
663 #region Documentation of capsule motor LowStop and HighStop parameters
664 // Intentionally introduce some tilt into the capsule by setting
665 // the motor stops to small epsilon values. This small tilt prevents
666 // the capsule from falling into the terrain; a straight-up capsule
667 // (with -0..0 motor stops) falls into the terrain for reasons yet
668 // to be comprehended in their entirety.
669 #endregion
670 AlignAvatarTiltWithCurrentDirectionOfMovement(Vector3.Zero);
671 d.JointSetAMotorParam(Amotor, (int)dParam.LowStop, 0.08f);
672 d.JointSetAMotorParam(Amotor, (int)dParam.LoStop3, -0f);
673 d.JointSetAMotorParam(Amotor, (int)dParam.LoStop2, 0.08f);
674 d.JointSetAMotorParam(Amotor, (int)dParam.HiStop, 0.08f); // must be same as lowstop, else a different, spurious tilt is introduced
675 d.JointSetAMotorParam(Amotor, (int)dParam.HiStop3, 0f); // same as lowstop
676 d.JointSetAMotorParam(Amotor, (int)dParam.HiStop2, 0.08f); // same as lowstop
677 }
678
679 // Fudge factor is 1f by default, we're setting it to 0. We don't want it to Fudge or the
680 // capped cyllinder will fall over
681 d.JointSetAMotorParam(Amotor, (int)dParam.FudgeFactor, 0f);
682 d.JointSetAMotorParam(Amotor, (int)dParam.FMax, tensor);
683
684 //d.Matrix3 bodyrotation = d.BodyGetRotation(Body);
685 //d.QfromR(
686 //d.Matrix3 checkrotation = new d.Matrix3(0.7071068,0.5, -0.7071068,
687 //
688 //m_log.Info("[PHYSICSAV]: Rotation: " + bodyrotation.M00 + " : " + bodyrotation.M01 + " : " + bodyrotation.M02 + " : " + bodyrotation.M10 + " : " + bodyrotation.M11 + " : " + bodyrotation.M12 + " : " + bodyrotation.M20 + " : " + bodyrotation.M21 + " : " + bodyrotation.M22);
689 //standupStraight();
690 }
691
692 //
693 /// <summary>
694 /// Uses the capped cyllinder volume formula to calculate the avatar's mass.
695 /// This may be used in calculations in the scene/scenepresence
696 /// </summary>
697 public override float Mass
698 {
699 get
700 {
701 float AVvolume = (float) (Math.PI*Math.Pow(CAPSULE_RADIUS, 2)*CAPSULE_LENGTH);
702 return m_density*AVvolume;
703 }
704 }
705 public override void link(PhysicsActor obj)
706 {
707
708 }
709
710 public override void delink()
711 {
712
713 }
714
715 public override void LockAngularMotion(Vector3 axis)
716 {
717
718 }
719
720// This code is very useful. Written by DanX0r. We're just not using it right now.
721// Commented out to prevent a warning.
722//
723// private void standupStraight()
724// {
725// // The purpose of this routine here is to quickly stabilize the Body while it's popped up in the air.
726// // The amotor needs a few seconds to stabilize so without it, the avatar shoots up sky high when you
727// // change appearance and when you enter the simulator
728// // After this routine is done, the amotor stabilizes much quicker
729// d.Vector3 feet;
730// d.Vector3 head;
731// d.BodyGetRelPointPos(Body, 0.0f, 0.0f, -1.0f, out feet);
732// d.BodyGetRelPointPos(Body, 0.0f, 0.0f, 1.0f, out head);
733// float posture = head.Z - feet.Z;
734
735// // restoring force proportional to lack of posture:
736// float servo = (2.5f - posture) * POSTURE_SERVO;
737// d.BodyAddForceAtRelPos(Body, 0.0f, 0.0f, servo, 0.0f, 0.0f, 1.0f);
738// d.BodyAddForceAtRelPos(Body, 0.0f, 0.0f, -servo, 0.0f, 0.0f, -1.0f);
739// //d.Matrix3 bodyrotation = d.BodyGetRotation(Body);
740// //m_log.Info("[PHYSICSAV]: Rotation: " + bodyrotation.M00 + " : " + bodyrotation.M01 + " : " + bodyrotation.M02 + " : " + bodyrotation.M10 + " : " + bodyrotation.M11 + " : " + bodyrotation.M12 + " : " + bodyrotation.M20 + " : " + bodyrotation.M21 + " : " + bodyrotation.M22);
741// }
742
743 public override Vector3 Force
744 {
745 get { return _target_velocity; }
746 set { return; }
747 }
748
749 public override int VehicleType
750 {
751 get { return 0; }
752 set { return; }
753 }
754
755 public override void VehicleFloatParam(int param, float value)
756 {
757
758 }
759
760 public override void VehicleVectorParam(int param, Vector3 value)
761 {
762
763 }
764
765 public override void VehicleRotationParam(int param, Quaternion rotation)
766 {
767
768 }
769
770 public override void VehicleFlags(int flags, bool remove)
771 {
772 }
773
774 public override void SetVolumeDetect(int param)
775 {
776
777 }
778
779 public override Vector3 CenterOfMass
780 {
781 get { return Vector3.Zero; }
782 }
783
784 public override Vector3 GeometricCenter
785 {
786 get { return Vector3.Zero; }
787 }
788
789 public override PrimitiveBaseShape Shape
790 {
791 set { return; }
792 }
793
794 public override Vector3 Velocity
795 {
796 get {
797 // There's a problem with Vector3.Zero! Don't Use it Here!
798 if (_zeroFlag)
799 return Vector3.Zero;
800 m_lastUpdateSent = false;
801 return _velocity;
802 }
803 set
804 {
805 if (value.IsFinite())
806 {
807 _target_velocity = value;
808 m_pidControllerActive = true;
809 }
810 else
811 {
812 m_log.Warn("[PHYSICS]: Got a NaN velocity from Scene in a Character");
813 }
814 }
815 }
816
817 public override Vector3 Torque
818 {
819 get { return Vector3.Zero; }
820 set { return; }
821 }
822
823 public override float CollisionScore
824 {
825 get { return 0f; }
826 set { }
827 }
828
829 public override bool Kinematic
830 {
831 get { return false; }
832 set { }
833 }
834
835 public override Quaternion Orientation
836 {
837 get { return Quaternion.Identity; }
838 set {
839 //Matrix3 or = Orientation.ToRotationMatrix();
840 //d.Matrix3 ord = new d.Matrix3(or.m00, or.m10, or.m20, or.m01, or.m11, or.m21, or.m02, or.m12, or.m22);
841 //d.BodySetRotation(Body, ref ord);
842 }
843 }
844
845 public override Vector3 Acceleration
846 {
847 get { return _acceleration; }
848 set { _acceleration = value; }
849 }
850
851 public void SetAcceleration(Vector3 accel)
852 {
853 m_pidControllerActive = true;
854 _acceleration = accel;
855 }
856
857 /// <summary>
858 /// Adds the force supplied to the Target Velocity
859 /// The PID controller takes this target velocity and tries to make it a reality
860 /// </summary>
861 /// <param name="force"></param>
862 public override void AddForce(Vector3 force, bool pushforce)
863 {
864 if (force.IsFinite())
865 {
866 if (pushforce)
867 {
868 m_pidControllerActive = false;
869 force *= 100f;
870//Console.WriteLine("DF 1"); // ##
871 if (!force.ApproxEquals(Vector3.Zero, 0.01f))
872 doForce(force);
873 // If uncommented, things get pushed off world
874 //
875 // m_log.Debug("Push!");
876 // _target_velocity.X += force.X;
877 // _target_velocity.Y += force.Y;
878 // _target_velocity.Z += force.Z;
879 }
880 else
881 {
882 m_pidControllerActive = true;
883 _target_velocity.X += force.X;
884 _target_velocity.Y += force.Y;
885 _target_velocity.Z += force.Z;
886 }
887 }
888 else
889 {
890 m_log.Warn("[PHYSICS]: Got a NaN force applied to a Character");
891 }
892 //m_lastUpdateSent = false;
893 }
894
895 public override void AddAngularForce(Vector3 force, bool pushforce)
896 {
897
898 }
899
900 /// <summary>
901 /// After all of the forces add up with 'add force' we apply them with doForce
902 /// </summary>
903 /// <param name="force"></param>
904 public void doForce(Vector3 force)
905 {
906 if (!collidelock)
907 {
908 d.BodyAddForce(Body, force.X, force.Y, force.Z);
909 //d.BodySetRotation(Body, ref m_StandUpRotation);
910 //standupStraight();
911 d.Vector3 vel = d.BodyGetLinearVel(Body); //##
912//Console.WriteLine("AvVel <{0},{1},{2}>", vel.X, vel.Y, vel.Z); //##
913 }
914 }
915
916 public override void SetMomentum(Vector3 momentum)
917 {
918 if (momentum.IsFinite())
919 {
920 m_taintMomentum = momentum;
921 m_haveTaintMomentum = true;
922 _parent_scene.AddPhysicsActorTaint(this);
923 }
924 else
925 m_log.Warn("[PHYSICS] !isFinite momentum");
926 }
927
928
929 /// <summary>
930 /// Called from Simulate
931 /// This is the avatar's movement control + PID Controller
932 /// </summary>
933 /// <param name="timeStep"></param>
934 public void Move(float timeStep, List<OdeCharacter> defects)
935 {
936 // no lock; for now it's only called from within Simulate()
937
938 // If the PID Controller isn't active then we set our force
939 // calculating base velocity to the current position
940
941 if (Body == IntPtr.Zero)
942 return;
943
944 if (m_pidControllerActive == false)
945 {
946 _zeroPosition = d.BodyGetPosition(Body);
947 }
948 //PidStatus = true;
949
950 d.Vector3 localpos = d.BodyGetPosition(Body);
951 Vector3 localPos = new Vector3(localpos.X, localpos.Y, localpos.Z);
952
953 if (!localPos.IsFinite())
954 {
955
956 m_log.Warn("[PHYSICS]: Avatar Position is non-finite!");
957 defects.Add(this);
958 // _parent_scene.RemoveCharacter(this);
959
960 // destroy avatar capsule and related ODE data
961 if (Amotor != IntPtr.Zero)
962 {
963 // Kill the Amotor
964 d.JointDestroy(Amotor);
965 Amotor = IntPtr.Zero;
966 }
967
968 //kill the Geometry
969 _parent_scene.waitForSpaceUnlock(_parent_scene.space);
970
971 if (Body != IntPtr.Zero)
972 {
973 //kill the body
974 d.BodyDestroy(Body);
975
976 Body = IntPtr.Zero;
977 }
978
979 if(Shell != IntPtr.Zero)
980 {
981 try
982 {
983 d.GeomDestroy(Shell);
984 }
985 catch (System.AccessViolationException)
986 {
987 m_log.Error("[PHYSICS]: PrimGeom dead");
988 }
989 // Remove any old entries
990//string tShell;
991//_parent_scene.geom_name_map.TryGetValue(Shell, out tShell);
992//Console.WriteLine("**** Remove {0}", tShell);
993
994 if(_parent_scene.geom_name_map.ContainsKey(Shell)) _parent_scene.geom_name_map.Remove(Shell);
995 if(_parent_scene.actor_name_map.ContainsKey(Shell)) _parent_scene.actor_name_map.Remove(Shell);
996 Shell = IntPtr.Zero;
997 }
998
999 return;
1000 }
1001
1002 Vector3 vec = Vector3.Zero;
1003 d.Vector3 vel = d.BodyGetLinearVel(Body);
1004
1005 float movementdivisor = 1f;
1006
1007 if (!m_alwaysRun)
1008 {
1009 movementdivisor = walkDivisor;
1010 }
1011 else
1012 {
1013 movementdivisor = runDivisor;
1014 }
1015
1016 // if velocity is zero, use position control; otherwise, velocity control
1017 if (_target_velocity.X == 0.0f && _target_velocity.Y == 0.0f && _target_velocity.Z == 0.0f && m_iscolliding)
1018 {
1019 // keep track of where we stopped. No more slippin' & slidin'
1020 if (!_zeroFlag)
1021 {
1022 _zeroFlag = true;
1023 _zeroPosition = d.BodyGetPosition(Body);
1024 }
1025 if (m_pidControllerActive)
1026 {
1027 // We only want to deactivate the PID Controller if we think we want to have our surrogate
1028 // react to the physics scene by moving it's position.
1029 // Avatar to Avatar collisions
1030 // Prim to avatar collisions
1031
1032 d.Vector3 pos = d.BodyGetPosition(Body);
1033 float errX = _zeroPosition.X - pos.X;
1034 float errY = _zeroPosition.Y - pos.Y;
1035 if( (Math.Abs(errX) > 0.1f) || (Math.Abs(errY) > 0.1f) )
1036 {
1037 vec.X = (_target_velocity.X - vel.X) * (PID_D) + (errX) * (PID_P * 2);
1038 vec.Y = (_target_velocity.Y - vel.Y) * (PID_D) + (errY) * (PID_P * 2);
1039 }
1040 else
1041 { // close, jump to lateral destination
1042 d.BodySetPosition(Body, _zeroPosition.X, _zeroPosition.Y, pos.Z);
1043 }
1044// if (flying)
1045 if (flying || jumping) // add for jumping
1046 {
1047 vec.Z = (_target_velocity.Z - vel.Z) * (PID_D) + (_zeroPosition.Z - pos.Z) * PID_P;
1048 }
1049 }
1050 //PidStatus = true;
1051 }
1052 else
1053 {
1054 m_pidControllerActive = true;
1055 _zeroFlag = false;
1056 if (m_iscolliding && !flying)
1057 {
1058 // We're standing on something
1059 vec.X = ((_target_velocity.X / movementdivisor) - vel.X) * (PID_D);
1060 vec.Y = ((_target_velocity.Y / movementdivisor) - vel.Y) * (PID_D);
1061 }
1062 else if (m_iscolliding && flying)
1063 {
1064 // We're flying and colliding with something
1065 vec.X = ((_target_velocity.X/movementdivisor) - vel.X)*(PID_D / 16);
1066 vec.Y = ((_target_velocity.Y/movementdivisor) - vel.Y)*(PID_D / 16);
1067 }
1068 else if (!m_iscolliding && flying)
1069 {
1070 // we're in mid air suspended
1071 vec.X = ((_target_velocity.X / movementdivisor) - vel.X) * (PID_D/6);
1072 vec.Y = ((_target_velocity.Y / movementdivisor) - vel.Y) * (PID_D/6);
1073 }
1074
1075 if (m_iscolliding && !flying && _target_velocity.Z > 0.0f)
1076 {
1077 // We're colliding with something and we're not flying but we're moving
1078 // This means we're walking or running.
1079 d.Vector3 pos = d.BodyGetPosition(Body);
1080 vec.Z = (_target_velocity.Z - vel.Z)*PID_D + (_zeroPosition.Z - pos.Z)*PID_P;
1081 if (_target_velocity.X > 0)
1082 {
1083 vec.X = ((_target_velocity.X - vel.X)/1.2f)*PID_D;
1084 }
1085 if (_target_velocity.Y > 0)
1086 {
1087 vec.Y = ((_target_velocity.Y - vel.Y)/1.2f)*PID_D;
1088 }
1089 }
1090 else if (!m_iscolliding && !flying)
1091 {
1092 // we're not colliding and we're not flying so that means we're falling!
1093 // m_iscolliding includes collisions with the ground.
1094
1095 // d.Vector3 pos = d.BodyGetPosition(Body);
1096 if (Math.Abs(_target_velocity.X) > 0)
1097 {
1098 vec.X = ((_target_velocity.X - vel.X)/1.2f)*PID_D;
1099 }
1100 if (Math.Abs(_target_velocity.Y) > 0)
1101 {
1102 vec.Y = ((_target_velocity.Y - vel.Y)/1.2f)*PID_D;
1103 }
1104 }
1105
1106 if (flying)
1107 {
1108 vec.Z = (_target_velocity.Z - vel.Z) * (PID_D);
1109 }
1110 }
1111 if (flying)
1112 {
1113 vec.Z += ((-1 * _parent_scene.gravityz)*m_mass);
1114
1115 //Added for auto fly height. Kitto Flora
1116 //d.Vector3 pos = d.BodyGetPosition(Body);
1117 float target_altitude = _parent_scene.GetTerrainHeightAtXY(_position.X, _position.Y) + MinimumGroundFlightOffset;
1118
1119 if (_position.Z < target_altitude)
1120 {
1121 vec.Z += (target_altitude - _position.Z) * PID_P * 5.0f;
1122 }
1123 // end add Kitto Flora
1124 }
1125
1126 if (vel.X * vel.X + vel.Y * vel.Y + vel.Z * vel.Z > 2500.0f) // 50ms apply breaks
1127 {
1128 float breakfactor = 0.16f * m_mass; // will give aprox 60m/s terminal velocity at free fall
1129 vec.X -= breakfactor * vel.X;
1130 vec.Y -= breakfactor * vel.Y;
1131 vec.Z -= breakfactor * vel.Z;
1132 }
1133
1134 if (vec.IsFinite())
1135 {
1136 if (vec.LengthSquared() > 0.0004f) // 0.01 allows 0.002 !!
1137 {
1138//Console.WriteLine("DF 2"); // ##
1139
1140 doForce(vec);
1141 if (!_zeroFlag)
1142 {
1143// AlignAvatarTiltWithCurrentDirectionOfMovement(vec);
1144 }
1145 }
1146 }
1147 else
1148 {
1149 m_log.Warn("[PHYSICS]: Got a NaN force vector in Move()");
1150 m_log.Warn("[PHYSICS]: Avatar Position is non-finite!");
1151 defects.Add(this);
1152 // _parent_scene.RemoveCharacter(this);
1153 // destroy avatar capsule and related ODE data
1154 if (Amotor != IntPtr.Zero)
1155 {
1156 // Kill the Amotor
1157 d.JointDestroy(Amotor);
1158 Amotor = IntPtr.Zero;
1159 }
1160 //kill the Geometry
1161 _parent_scene.waitForSpaceUnlock(_parent_scene.space);
1162
1163 if (Body != IntPtr.Zero)
1164 {
1165 //kill the body
1166 d.BodyDestroy(Body);
1167
1168 Body = IntPtr.Zero;
1169 }
1170
1171 if(Shell != IntPtr.Zero)
1172 {
1173 try
1174 {
1175 d.GeomDestroy(Shell);
1176 }
1177 catch (System.AccessViolationException)
1178 {
1179 m_log.Error("[PHYSICS]: PrimGeom dead");
1180 }
1181 // Remove any old entries
1182//string tShell;
1183//_parent_scene.geom_name_map.TryGetValue(Shell, out tShell);
1184//Console.WriteLine("**** Remove {0}", tShell);
1185
1186 if(_parent_scene.geom_name_map.ContainsKey(Shell)) _parent_scene.geom_name_map.Remove(Shell);
1187 if(_parent_scene.actor_name_map.ContainsKey(Shell)) _parent_scene.actor_name_map.Remove(Shell);
1188 Shell = IntPtr.Zero;
1189 }
1190 }
1191 }
1192
1193 /// <summary>
1194 /// Updates the reported position and velocity. This essentially sends the data up to ScenePresence.
1195 /// </summary>
1196 public void UpdatePositionAndVelocity()
1197 {
1198 // no lock; called from Simulate() -- if you call this from elsewhere, gotta lock or do Monitor.Enter/Exit!
1199 d.Vector3 vec;
1200 try
1201 {
1202 vec = d.BodyGetPosition(Body);
1203 }
1204 catch (NullReferenceException)
1205 {
1206 bad = true;
1207 _parent_scene.BadCharacter(this);
1208 vec = new d.Vector3(_position.X, _position.Y, _position.Z);
1209 base.RaiseOutOfBounds(_position); // Tells ScenePresence that there's a problem!
1210 m_log.WarnFormat("[ODEPLUGIN]: Avatar Null reference for Avatar {0}, physical actor {1}", m_name, m_uuid);
1211 }
1212
1213
1214 // kluge to keep things in bounds. ODE lets dead avatars drift away (they should be removed!)
1215 if (vec.X < 0.0f) vec.X = 0.0f;
1216 if (vec.Y < 0.0f) vec.Y = 0.0f;
1217 if (vec.X > (int)_parent_scene.WorldExtents.X - 0.05f) vec.X = (int)_parent_scene.WorldExtents.X - 0.05f;
1218 if (vec.Y > (int)_parent_scene.WorldExtents.Y - 0.05f) vec.Y = (int)_parent_scene.WorldExtents.Y - 0.05f;
1219
1220 _position.X = vec.X;
1221 _position.Y = vec.Y;
1222 _position.Z = vec.Z;
1223
1224 // Did we move last? = zeroflag
1225 // This helps keep us from sliding all over
1226
1227 if (_zeroFlag)
1228 {
1229 _velocity.X = 0.0f;
1230 _velocity.Y = 0.0f;
1231 _velocity.Z = 0.0f;
1232
1233 // Did we send out the 'stopped' message?
1234 if (!m_lastUpdateSent)
1235 {
1236 m_lastUpdateSent = true;
1237 //base.RequestPhysicsterseUpdate();
1238
1239 }
1240 }
1241 else
1242 {
1243 m_lastUpdateSent = false;
1244 try
1245 {
1246 vec = d.BodyGetLinearVel(Body);
1247 }
1248 catch (NullReferenceException)
1249 {
1250 vec.X = _velocity.X;
1251 vec.Y = _velocity.Y;
1252 vec.Z = _velocity.Z;
1253 }
1254 _velocity.X = (vec.X);
1255 _velocity.Y = (vec.Y);
1256
1257 _velocity.Z = (vec.Z);
1258
1259 if (_velocity.Z < -6 && !m_hackSentFall)
1260 {
1261 m_hackSentFall = true;
1262 m_pidControllerActive = false;
1263 }
1264 else if (flying && !m_hackSentFly)
1265 {
1266 //m_hackSentFly = true;
1267 //base.SendCollisionUpdate(new CollisionEventUpdate());
1268 }
1269 else
1270 {
1271 m_hackSentFly = false;
1272 m_hackSentFall = false;
1273 }
1274 }
1275 }
1276
1277 /// <summary>
1278 /// Cleanup the things we use in the scene.
1279 /// </summary>
1280 public void Destroy()
1281 {
1282 m_tainted_isPhysical = false;
1283 _parent_scene.AddPhysicsActorTaint(this);
1284 }
1285
1286 public override void CrossingFailure()
1287 {
1288 }
1289
1290 public override Vector3 PIDTarget { set { return; } }
1291 public override bool PIDActive { set { return; } }
1292 public override float PIDTau { set { return; } }
1293
1294 public override float PIDHoverHeight { set { return; } }
1295 public override bool PIDHoverActive { set { return; } }
1296 public override PIDHoverType PIDHoverType { set { return; } }
1297 public override float PIDHoverTau { set { return; } }
1298
1299 public override Quaternion APIDTarget{ set { return; } }
1300
1301 public override bool APIDActive{ set { return; } }
1302
1303 public override float APIDStrength{ set { return; } }
1304
1305 public override float APIDDamping{ set { return; } }
1306
1307
1308 public override void SubscribeEvents(int ms)
1309 {
1310 m_requestedUpdateFrequency = ms;
1311 m_eventsubscription = ms;
1312 _parent_scene.addCollisionEventReporting(this);
1313 }
1314 public override void UnSubscribeEvents()
1315 {
1316 _parent_scene.remCollisionEventReporting(this);
1317 m_requestedUpdateFrequency = 0;
1318 m_eventsubscription = 0;
1319 }
1320 public void AddCollisionEvent(uint CollidedWith, ContactPoint contact)
1321 {
1322 if (m_eventsubscription > 0)
1323 {
1324 CollisionEventsThisFrame.AddCollider(CollidedWith, contact);
1325 }
1326 }
1327
1328 public void SendCollisions()
1329 {
1330 if (m_eventsubscription > m_requestedUpdateFrequency)
1331 {
1332 if (CollisionEventsThisFrame != null)
1333 {
1334 base.SendCollisionUpdate(CollisionEventsThisFrame);
1335 }
1336 CollisionEventsThisFrame = new CollisionEventUpdate();
1337 m_eventsubscription = 0;
1338 }
1339 }
1340 public override bool SubscribedEvents()
1341 {
1342 if (m_eventsubscription > 0)
1343 return true;
1344 return false;
1345 }
1346
1347 public void ProcessTaints(float timestep)
1348 {
1349 lock (m_syncRoot)
1350 {
1351 if (m_tainted_isPhysical != m_isPhysical)
1352 {
1353 if (m_tainted_isPhysical)
1354 {
1355 // Create avatar capsule and related ODE data
1356 if (!(Shell == IntPtr.Zero && Body == IntPtr.Zero && Amotor == IntPtr.Zero))
1357 {
1358 m_log.Warn("[PHYSICS]: re-creating the following avatar ODE data, even though it already exists - "
1359 + (Shell!=IntPtr.Zero ? "Shell ":"")
1360 + (Body!=IntPtr.Zero ? "Body ":"")
1361 + (Amotor!=IntPtr.Zero ? "Amotor ":""));
1362 }
1363 AvatarGeomAndBodyCreation(_position.X, _position.Y, _position.Z, m_tensor);
1364 _parent_scene.AddCharacter(this);
1365 }
1366 else
1367 {
1368 _parent_scene.RemoveCharacter(this);
1369 // destroy avatar capsule and related ODE data
1370 if (Amotor != IntPtr.Zero)
1371 {
1372 // Kill the Amotor
1373 d.JointDestroy(Amotor);
1374 Amotor = IntPtr.Zero;
1375 }
1376 //kill the Geometry
1377 _parent_scene.waitForSpaceUnlock(_parent_scene.space);
1378
1379 if (Body != IntPtr.Zero)
1380 {
1381 //kill the body
1382 d.BodyDestroy(Body);
1383 Body = IntPtr.Zero;
1384 }
1385
1386 if(Shell != IntPtr.Zero)
1387 {
1388 try
1389 {
1390 d.GeomDestroy(Shell);
1391 }
1392 catch (Exception e)
1393 {
1394 m_log.ErrorFormat("[PHYSICS]: Failed to destroy character shell {0}",e.Message);
1395 }
1396 // Remove any old entries
1397 //string tShell;
1398 //_parent_scene.geom_name_map.TryGetValue(Shell, out tShell);
1399 //Console.WriteLine("**** Remove {0}", tShell);
1400
1401 if(_parent_scene.geom_name_map.ContainsKey(Shell)) _parent_scene.geom_name_map.Remove(Shell);
1402 if(_parent_scene.actor_name_map.ContainsKey(Shell)) _parent_scene.actor_name_map.Remove(Shell);
1403 Shell = IntPtr.Zero;
1404 }
1405 }
1406
1407 m_isPhysical = m_tainted_isPhysical;
1408 }
1409
1410 if (m_tainted_CAPSULE_LENGTH != CAPSULE_LENGTH)
1411 {
1412 if (Shell != IntPtr.Zero && Body != IntPtr.Zero && Amotor != IntPtr.Zero)
1413 {
1414
1415 m_pidControllerActive = true;
1416 // no lock needed on _parent_scene.OdeLock because we are called from within the thread lock in OdePlugin's simulate()
1417 d.JointDestroy(Amotor);
1418 float prevCapsule = CAPSULE_LENGTH;
1419 CAPSULE_LENGTH = m_tainted_CAPSULE_LENGTH;
1420 //m_log.Info("[SIZE]: " + CAPSULE_LENGTH.ToString());
1421 d.BodyDestroy(Body);
1422 AvatarGeomAndBodyCreation(_position.X, _position.Y,
1423 _position.Z + (Math.Abs(CAPSULE_LENGTH - prevCapsule) * 2), m_tensor);
1424 Velocity = Vector3.Zero;
1425 }
1426 else
1427 {
1428 m_log.Warn("[PHYSICS]: trying to change capsule size, but the following ODE data is missing - "
1429 + (Shell==IntPtr.Zero ? "Shell ":"")
1430 + (Body==IntPtr.Zero ? "Body ":"")
1431 + (Amotor==IntPtr.Zero ? "Amotor ":""));
1432 }
1433 }
1434
1435 if (!m_taintPosition.ApproxEquals(_position, 0.05f))
1436 {
1437 if (Body != IntPtr.Zero)
1438 {
1439 d.BodySetPosition(Body, m_taintPosition.X, m_taintPosition.Y, m_taintPosition.Z);
1440
1441 }
1442 _position.X = m_taintPosition.X;
1443 _position.Y = m_taintPosition.Y;
1444 _position.Z = m_taintPosition.Z;
1445 }
1446
1447 if (m_haveTaintMomentum)
1448 {
1449 m_haveTaintMomentum = false;
1450 _velocity = m_taintMomentum;
1451 _target_velocity = m_taintMomentum;
1452 m_pidControllerActive = true;
1453 if (Body != IntPtr.Zero)
1454 d.BodySetLinearVel(Body, _velocity.X, _velocity.Y, _velocity.Z);
1455 }
1456 }
1457 }
1458
1459 internal void AddCollisionFrameTime(int p)
1460 {
1461 // protect it from overflow crashing
1462 if (m_eventsubscription + p >= int.MaxValue)
1463 m_eventsubscription = 0;
1464 m_eventsubscription += p;
1465 }
1466 }
1467}
diff --git a/OpenSim/Region/Physics/ChOdePlugin/ODEPrim.cs b/OpenSim/Region/Physics/ChOdePlugin/ODEPrim.cs
new file mode 100644
index 0000000..5b743e8
--- /dev/null
+++ b/OpenSim/Region/Physics/ChOdePlugin/ODEPrim.cs
@@ -0,0 +1,4124 @@
1/* Copyright (c) Contributors, http://opensimulator.org/
2 * See CONTRIBUTORS.TXT for a full list of copyright holders.
3 * Redistribution and use in source and binary forms, with or without
4 * modification, are permitted provided that the following conditions are met:
5 * * Redistributions of source code must retain the above copyright
6 * notice, this list of conditions and the following disclaimer.
7 * * Redistributions in binary form must reproduce the above copyright
8 * notice, this list of conditions and the following disclaimer in the
9 * documentation and/or other materials provided with the distribution.
10 * * Neither the name of the OpenSimulator Project nor the
11 * names of its contributors may be used to endorse or promote products
12 * derived from this software without specific prior written permission.
13 *
14 * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
15 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
16 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
17 * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
18 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
19 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
20 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
21 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
23 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 *
25 * Revised March 5th 2010 by Kitto Flora. ODEDynamics.cs
26 * Ubit 2012
27 * rolled into ODEPrim.cs
28 */
29
30using System;
31using System.IO;
32using System.Collections.Generic;
33using System.Reflection;
34using System.Runtime.InteropServices;
35using System.Threading;
36using log4net;
37using OpenMetaverse;
38using Ode.NET;
39using OpenSim.Framework;
40using OpenSim.Region.Physics.Manager;
41
42namespace OpenSim.Region.Physics.OdePlugin
43{
44 /// <summary>
45 /// Various properties that ODE uses for AMotors but isn't exposed in ODE.NET so we must define them ourselves.
46 /// </summary>
47
48 public class OdePrim : PhysicsActor
49 {
50 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
51
52 public class SerialControl
53 {
54 public object alock = new object();
55 public byte[] data = new byte[0];
56 }
57 private Vector3 _position;
58 private Vector3 _velocity;
59 private Vector3 _torque;
60 private Vector3 m_lastVelocity;
61 private Vector3 m_lastposition;
62 private Quaternion m_lastorientation = new Quaternion();
63 private Vector3 m_rotationalVelocity;
64 private Vector3 _size;
65 private Vector3 _acceleration;
66 // private d.Vector3 _zeroPosition = new d.Vector3(0.0f, 0.0f, 0.0f);
67 private Quaternion _orientation;
68 private Vector3 m_taintposition;
69 private Vector3 m_taintsize;
70 private Vector3 m_taintVelocity;
71 private Vector3 m_taintTorque;
72 private Quaternion m_taintrot;
73 private Vector3 m_rotateEnable = Vector3.One; // Current setting
74 private Vector3 m_rotateEnableRequest = Vector3.One; // Request from LSL
75 private bool m_rotateEnableUpdate = false;
76 private Vector3 m_lockX;
77 private Vector3 m_lockY;
78 private Vector3 m_lockZ;
79 private IntPtr Amotor = IntPtr.Zero;
80 private IntPtr AmotorX = IntPtr.Zero;
81 private IntPtr AmotorY = IntPtr.Zero;
82 private IntPtr AmotorZ = IntPtr.Zero;
83
84 private Vector3 m_PIDTarget;
85 private float m_PIDTau;
86 private float PID_D = 35f;
87 private float PID_G = 25f;
88 private bool m_usePID = false;
89
90 private Quaternion m_APIDTarget = new Quaternion();
91 private float m_APIDStrength = 0.5f;
92 private float m_APIDDamping = 0.5f;
93 private bool m_useAPID = false;
94 private float m_APIDdamper = 1.0f;
95
96 // These next 7 params apply to llSetHoverHeight(float height, integer water, float tau),
97 // do not confuse with VEHICLE HOVER
98
99 private float m_PIDHoverHeight;
100 private float m_PIDHoverTau;
101 private bool m_useHoverPID;
102 private PIDHoverType m_PIDHoverType = PIDHoverType.Ground;
103 private float m_targetHoverHeight;
104 private float m_groundHeight;
105 private float m_waterHeight;
106 private float m_buoyancy; //m_buoyancy set by llSetBuoyancy()
107
108 // private float m_tensor = 5f;
109 private int body_autodisable_frames = 20;
110
111
112 private const CollisionCategories m_default_collisionFlags = (CollisionCategories.Geom
113 | CollisionCategories.Space
114 | CollisionCategories.Body
115 | CollisionCategories.Character
116 );
117 private bool m_taintshape;
118 private bool m_taintPhysics;
119 private bool m_collidesLand = true;
120 private bool m_collidesWater;
121 // public bool m_returnCollisions;
122
123 // Default we're a Geometry
124 private CollisionCategories m_collisionCategories = (CollisionCategories.Geom);
125
126 // Default, Collide with Other Geometries, spaces and Bodies
127 private CollisionCategories m_collisionFlags = m_default_collisionFlags;
128
129 public bool m_taintremove;
130 public bool m_taintdisable;
131 public bool m_disabled;
132 public bool m_taintadd;
133 public bool m_taintselected;
134 public bool m_taintphantom;
135 public bool m_taintCollidesWater;
136
137 public uint m_localID;
138
139 //public GCHandle gc;
140 private CollisionLocker ode;
141
142 private bool m_meshfailed = false;
143 private bool m_taintforce = false;
144 private bool m_taintaddangularforce = false;
145 private Vector3 m_force;
146 private List<Vector3> m_forcelist = new List<Vector3>();
147 private List<Vector3> m_angularforcelist = new List<Vector3>();
148
149 private IMesh _mesh;
150 private PrimitiveBaseShape _pbs;
151 private OdeScene _parent_scene;
152 public IntPtr m_targetSpace = IntPtr.Zero;
153 public IntPtr prim_geom;
154 // public IntPtr prev_geom;
155 public IntPtr _triMeshData;
156
157 private IntPtr _linkJointGroup = IntPtr.Zero;
158 private PhysicsActor _parent;
159 private PhysicsActor m_taintparent;
160
161 private List<OdePrim> childrenPrim = new List<OdePrim>();
162
163 private bool iscolliding;
164 private bool m_isphysical;
165 private bool m_isphantom;
166 private bool m_isSelected;
167
168 private bool m_NoColide; // for now only for internal use for bad meshs
169
170 internal bool m_isVolumeDetect; // If true, this prim only detects collisions but doesn't collide actively
171
172 private bool m_throttleUpdates;
173 private int throttleCounter;
174 public int m_interpenetrationcount;
175 public float m_collisionscore;
176 // public int m_roundsUnderMotionThreshold;
177 // private int m_crossingfailures;
178
179 public bool m_outofBounds;
180 private float m_density = 10.000006836f; // Aluminum g/cm3;
181
182 private float m_primMass = 10.000006836f; // Aluminum g/cm3;
183
184 private byte m_shapetype;
185 private byte m_taintshapetype;
186
187 public bool _zeroFlag; // if body has been stopped
188 private bool m_lastUpdateSent;
189
190 public IntPtr Body = IntPtr.Zero;
191 public String m_primName;
192 private Vector3 _target_velocity;
193 public d.Mass pMass;
194
195 public int m_eventsubscription;
196 private CollisionEventUpdate CollisionEventsThisFrame;
197
198 private IntPtr m_linkJoint = IntPtr.Zero;
199
200 public volatile bool childPrim;
201
202 internal int m_material = (int)Material.Wood;
203
204 private IntPtr m_body = IntPtr.Zero;
205
206 // Vehicle properties ============================================================================================
207 private Vehicle m_type = Vehicle.TYPE_NONE; // If a 'VEHICLE', and what kind
208 // private Quaternion m_referenceFrame = Quaternion.Identity; // Axis modifier
209 private VehicleFlag m_flags = (VehicleFlag)0; // Bit settings:
210 // HOVER_TERRAIN_ONLY
211 // HOVER_GLOBAL_HEIGHT
212 // NO_DEFLECTION_UP
213 // HOVER_WATER_ONLY
214 // HOVER_UP_ONLY
215 // LIMIT_MOTOR_UP
216 // LIMIT_ROLL_ONLY
217
218 // Linear properties
219 private Vector3 m_linearMotorDirection = Vector3.Zero; // (was m_linearMotorDirectionLASTSET) the (local) Velocity
220 //requested by LSL
221 private float m_linearMotorTimescale = 0; // Motor Attack rate set by LSL
222 private float m_linearMotorDecayTimescale = 0; // Motor Decay rate set by LSL
223 private Vector3 m_linearFrictionTimescale = Vector3.Zero; // General Friction set by LSL
224
225 private Vector3 m_lLinMotorDVel = Vector3.Zero; // decayed motor
226 private Vector3 m_lLinObjectVel = Vector3.Zero; // local frame object velocity
227 private Vector3 m_wLinObjectVel = Vector3.Zero; // world frame object velocity
228
229 //Angular properties
230 private Vector3 m_angularMotorDirection = Vector3.Zero; // angular velocity requested by LSL motor
231
232 private float m_angularMotorTimescale = 0; // motor angular Attack rate set by LSL
233 private float m_angularMotorDecayTimescale = 0; // motor angular Decay rate set by LSL
234 private Vector3 m_angularFrictionTimescale = Vector3.Zero; // body angular Friction set by LSL
235
236 private Vector3 m_angularMotorDVel = Vector3.Zero; // decayed angular motor
237 // private Vector3 m_angObjectVel = Vector3.Zero; // current body angular velocity
238 private Vector3 m_lastAngularVelocity = Vector3.Zero; // what was last applied to body
239
240 //Deflection properties
241 // private float m_angularDeflectionEfficiency = 0;
242 // private float m_angularDeflectionTimescale = 0;
243 // private float m_linearDeflectionEfficiency = 0;
244 // private float m_linearDeflectionTimescale = 0;
245
246 //Banking properties
247 // private float m_bankingEfficiency = 0;
248 // private float m_bankingMix = 0;
249 // private float m_bankingTimescale = 0;
250
251 //Hover and Buoyancy properties
252 private float m_VhoverHeight = 0f;
253 // private float m_VhoverEfficiency = 0f;
254 private float m_VhoverTimescale = 0f;
255 private float m_VhoverTargetHeight = -1.0f; // if <0 then no hover, else its the current target height
256 private float m_VehicleBuoyancy = 0f; // Set by VEHICLE_BUOYANCY, for a vehicle.
257 // Modifies gravity. Slider between -1 (double-gravity) and 1 (full anti-gravity)
258 // KF: So far I have found no good method to combine a script-requested .Z velocity and gravity.
259 // Therefore only m_VehicleBuoyancy=1 (0g) will use the script-requested .Z velocity.
260
261 //Attractor properties
262 private float m_verticalAttractionEfficiency = 1.0f; // damped
263 private float m_verticalAttractionTimescale = 500f; // Timescale > 300 means no vert attractor.
264
265// SerialControl m_taintserial = null;
266 object m_taintvehicledata = null;
267
268 public void DoSetVehicle()
269 {
270 VehicleData vd = (VehicleData)m_taintvehicledata;
271
272 m_type = vd.m_type;
273 m_flags = vd.m_flags;
274
275 // Linear properties
276 m_linearMotorDirection = vd.m_linearMotorDirection;
277 m_linearFrictionTimescale = vd.m_linearFrictionTimescale;
278 m_linearMotorDecayTimescale = vd.m_linearMotorDecayTimescale;
279 m_linearMotorTimescale = vd.m_linearMotorTimescale;
280// m_linearMotorOffset = vd.m_linearMotorOffset;
281
282 //Angular properties
283 m_angularMotorDirection = vd.m_angularMotorDirection;
284 m_angularMotorTimescale = vd.m_angularMotorTimescale;
285 m_angularMotorDecayTimescale = vd.m_angularMotorDecayTimescale;
286 m_angularFrictionTimescale = vd.m_angularFrictionTimescale;
287
288 //Deflection properties
289// m_angularDeflectionEfficiency = vd.m_angularDeflectionEfficiency;
290// m_angularDeflectionTimescale = vd.m_angularDeflectionTimescale;
291// m_linearDeflectionEfficiency = vd.m_linearDeflectionEfficiency;
292// m_linearDeflectionTimescale = vd.m_linearDeflectionTimescale;
293
294 //Banking properties
295// m_bankingEfficiency = vd.m_bankingEfficiency;
296// m_bankingMix = vd.m_bankingMix;
297// m_bankingTimescale = vd.m_bankingTimescale;
298
299 //Hover and Buoyancy properties
300 m_VhoverHeight = vd.m_VhoverHeight;
301// m_VhoverEfficiency = vd.m_VhoverEfficiency;
302 m_VhoverTimescale = vd.m_VhoverTimescale;
303 m_VehicleBuoyancy = vd.m_VehicleBuoyancy;
304
305 //Attractor properties
306 m_verticalAttractionEfficiency = vd.m_verticalAttractionEfficiency;
307 m_verticalAttractionTimescale = vd.m_verticalAttractionTimescale;
308
309 // Axis
310// m_referenceFrame = vd.m_referenceFrame;
311
312
313 m_taintvehicledata = null;
314 }
315
316 public override void SetVehicle(object vdata)
317 {
318 m_taintvehicledata = vdata;
319 _parent_scene.AddPhysicsActorTaint(this);
320 }
321
322 public OdePrim(String primName, OdeScene parent_scene, Vector3 pos, Vector3 size,
323 Quaternion rotation, IMesh mesh, PrimitiveBaseShape pbs, bool pisPhysical,
324 bool pisPhantom,byte shapetype, CollisionLocker dode, uint localid)
325 {
326 m_localID = localid;
327 ode = dode;
328 if (!pos.IsFinite())
329 {
330 pos = new Vector3(((float)Constants.RegionSize * 0.5f), ((float)Constants.RegionSize * 0.5f),
331 parent_scene.GetTerrainHeightAtXY(((float)Constants.RegionSize * 0.5f), ((float)Constants.RegionSize * 0.5f)) + 0.5f);
332 m_log.Warn("[PHYSICS]: Got nonFinite Object create Position");
333 }
334
335 _position = pos;
336 m_taintposition = pos;
337 PID_D = parent_scene.bodyPIDD;
338 PID_G = parent_scene.bodyPIDG;
339 m_density = parent_scene.geomDefaultDensity;
340 // m_tensor = parent_scene.bodyMotorJointMaxforceTensor;
341 body_autodisable_frames = parent_scene.bodyFramesAutoDisable;
342
343 prim_geom = IntPtr.Zero;
344 // prev_geom = IntPtr.Zero;
345
346 if (!pos.IsFinite())
347 {
348 size = new Vector3(0.5f, 0.5f, 0.5f);
349 m_log.Warn("[PHYSICS]: Got nonFinite Object create Size");
350 }
351
352 if (size.X <= 0) size.X = 0.01f;
353 if (size.Y <= 0) size.Y = 0.01f;
354 if (size.Z <= 0) size.Z = 0.01f;
355
356 _size = size;
357 m_taintsize = _size;
358
359 if (!QuaternionIsFinite(rotation))
360 {
361 rotation = Quaternion.Identity;
362 m_log.Warn("[PHYSICS]: Got nonFinite Object create Rotation");
363 }
364
365 _orientation = rotation;
366 m_taintrot = _orientation;
367 _mesh = mesh;
368 _pbs = pbs;
369 m_shapetype = shapetype;
370 m_taintshapetype = shapetype;
371
372 _parent_scene = parent_scene;
373 m_targetSpace = (IntPtr)0;
374
375 // if (pos.Z < 0)
376 if (pos.Z < parent_scene.GetTerrainHeightAtXY(pos.X, pos.Y))
377 m_isphysical = false;
378 else
379 {
380 m_isphysical = pisPhysical;
381 // If we're physical, we need to be in the master space for now.
382 // linksets *should* be in a space together.. but are not currently
383 if (m_isphysical)
384 m_targetSpace = _parent_scene.space;
385 }
386
387 m_isphantom = pisPhantom;
388 m_taintphantom = pisPhantom;
389
390 _triMeshData = IntPtr.Zero;
391 m_NoColide = false;
392
393// m_taintserial = null;
394 m_primName = primName;
395 m_taintadd = true;
396 _parent_scene.AddPhysicsActorTaint(this);
397 // don't do .add() here; old geoms get recycled with the same hash
398 }
399
400 public override int PhysicsActorType
401 {
402 get { return (int)ActorTypes.Prim; }
403 set { return; }
404 }
405
406 public override bool SetAlwaysRun
407 {
408 get { return false; }
409 set { return; }
410 }
411
412 public override uint LocalID
413 {
414 set
415 {
416 //m_log.Info("[PHYSICS]: Setting TrackerID: " + value);
417 m_localID = value;
418 }
419 }
420
421 public override bool Grabbed
422 {
423 set { return; }
424 }
425
426 public override bool Selected
427 {
428 set
429 {
430 //Console.WriteLine("Sel {0} {1} {2}", m_primName, value, m_isphysical);
431 // This only makes the object not collidable if the object
432 // is physical or the object is modified somehow *IN THE FUTURE*
433 // without this, if an avatar selects prim, they can walk right
434 // through it while it's selected
435 m_collisionscore = 0;
436 if ((m_isphysical && !_zeroFlag) || !value)
437 {
438 m_taintselected = value;
439 _parent_scene.AddPhysicsActorTaint(this);
440 }
441 else
442 {
443 m_taintselected = value;
444 m_isSelected = value;
445 }
446 if (m_isSelected) disableBodySoft();
447 }
448 }
449
450 public override bool IsPhysical
451 {
452 get { return m_isphysical; }
453 set
454 {
455 m_isphysical = value;
456 if (!m_isphysical)
457 { // Zero the remembered last velocity
458 m_lastVelocity = Vector3.Zero;
459 if (m_type != Vehicle.TYPE_NONE) Halt();
460 }
461 }
462 }
463
464 public override bool IsVolumeDtc
465 {
466 set { return; }
467 get { return m_isVolumeDetect; }
468
469 }
470
471 public override bool Phantom
472 {
473 get { return m_isphantom; }
474 set
475 {
476 m_isphantom = value;
477 }
478 }
479
480 public void setPrimForRemoval()
481 {
482 m_taintremove = true;
483 }
484
485 public override bool Flying
486 {
487 // no flying prims for you
488 get { return false; }
489 set { }
490 }
491
492 public override bool IsColliding
493 {
494 get { return iscolliding; }
495 set { iscolliding = value; }
496 }
497
498 public override bool CollidingGround
499 {
500 get { return false; }
501 set { return; }
502 }
503
504 public override bool CollidingObj
505 {
506 get { return false; }
507 set { return; }
508 }
509
510 public override bool ThrottleUpdates
511 {
512 get { return m_throttleUpdates; }
513 set { m_throttleUpdates = value; }
514 }
515
516 public override bool Stopped
517 {
518 get { return _zeroFlag; }
519 }
520
521 public override Vector3 Position
522 {
523 get { return _position; }
524
525 set
526 {
527 _position = value;
528 //m_log.Info("[PHYSICS]: " + _position.ToString());
529 }
530 }
531
532 public override Vector3 Size
533 {
534 get { return _size; }
535 set
536 {
537 if (value.IsFinite())
538 {
539 _size = value;
540 }
541 else
542 {
543 m_log.Warn("[PHYSICS]: Got NaN Size on object");
544 }
545 }
546 }
547
548 public override float Mass
549 {
550 get
551 {
552 CalculateMass();
553 return m_primMass;
554 }
555 }
556
557 public override Vector3 Force
558 {
559 //get { return Vector3.Zero; }
560 get { return m_force; }
561 set
562 {
563 if (value.IsFinite())
564 {
565 m_force = value;
566 }
567 else
568 {
569 m_log.Warn("[PHYSICS]: NaN in Force Applied to an Object");
570 }
571 }
572 }
573
574 public override int VehicleType
575 {
576 get { return (int)m_type; }
577 set { ProcessTypeChange((Vehicle)value); }
578 }
579
580 public override void VehicleFloatParam(int param, float value)
581 {
582 ProcessFloatVehicleParam((Vehicle)param, value);
583 }
584
585 public override void VehicleVectorParam(int param, Vector3 value)
586 {
587 ProcessVectorVehicleParam((Vehicle)param, value);
588 }
589
590 public override void VehicleRotationParam(int param, Quaternion rotation)
591 {
592 ProcessRotationVehicleParam((Vehicle)param, rotation);
593 }
594
595 public override void VehicleFlags(int param, bool remove)
596 {
597 ProcessVehicleFlags(param, remove);
598 }
599
600 public override void SetVolumeDetect(int param)
601 {
602 lock (_parent_scene.OdeLock)
603 {
604 m_isVolumeDetect = (param != 0);
605 }
606 }
607
608
609 public override Vector3 CenterOfMass
610 {
611 get { return Vector3.Zero; }
612 }
613
614 public override Vector3 GeometricCenter
615 {
616 get { return Vector3.Zero; }
617 }
618
619 public override PrimitiveBaseShape Shape
620 {
621 set
622 {
623 _pbs = value;
624 m_taintshape = true;
625 }
626 }
627
628 public override byte PhysicsShapeType
629 {
630 get
631 {
632 return m_shapetype;
633 }
634 set
635 {
636 m_taintshapetype = value;
637 _parent_scene.AddPhysicsActorTaint(this);
638 }
639 }
640
641 public override Vector3 Velocity
642 {
643 get
644 {
645 // Averate previous velocity with the new one so
646 // client object interpolation works a 'little' better
647 if (_zeroFlag)
648 return Vector3.Zero;
649
650 Vector3 returnVelocity = Vector3.Zero;
651 returnVelocity.X = (m_lastVelocity.X + _velocity.X) / 2;
652 returnVelocity.Y = (m_lastVelocity.Y + _velocity.Y) / 2;
653 returnVelocity.Z = (m_lastVelocity.Z + _velocity.Z) / 2;
654 return returnVelocity;
655 }
656 set
657 {
658 if (value.IsFinite())
659 {
660 _velocity = value;
661 if (_velocity.ApproxEquals(Vector3.Zero, 0.001f))
662 _acceleration = Vector3.Zero;
663
664 m_taintVelocity = value;
665 _parent_scene.AddPhysicsActorTaint(this);
666 }
667 else
668 {
669 m_log.Warn("[PHYSICS]: Got NaN Velocity in Object");
670 }
671
672 }
673 }
674
675 public override Vector3 Torque
676 {
677 get
678 {
679 if (!m_isphysical || Body == IntPtr.Zero)
680 return Vector3.Zero;
681
682 return _torque;
683 }
684
685 set
686 {
687 if (value.IsFinite())
688 {
689 m_taintTorque = value;
690 _parent_scene.AddPhysicsActorTaint(this);
691 }
692 else
693 {
694 m_log.Warn("[PHYSICS]: Got NaN Torque in Object");
695 }
696 }
697 }
698
699 public override float CollisionScore
700 {
701 get { return m_collisionscore; }
702 set { m_collisionscore = value; }
703 }
704
705 public override bool Kinematic
706 {
707 get { return false; }
708 set { }
709 }
710
711 public override Quaternion Orientation
712 {
713 get { return _orientation; }
714 set
715 {
716 if (QuaternionIsFinite(value))
717 {
718 _orientation = value;
719 }
720 else
721 m_log.Warn("[PHYSICS]: Got NaN quaternion Orientation from Scene in Object");
722
723 }
724 }
725
726 public override bool FloatOnWater
727 {
728 set
729 {
730 m_taintCollidesWater = value;
731 _parent_scene.AddPhysicsActorTaint(this);
732 }
733 }
734
735 public override void SetMomentum(Vector3 momentum)
736 {
737 }
738
739 public override Vector3 PIDTarget
740 {
741 set
742 {
743 if (value.IsFinite())
744 {
745 m_PIDTarget = value;
746 }
747 else
748 m_log.Warn("[PHYSICS]: Got NaN PIDTarget from Scene on Object");
749 }
750 }
751 public override bool PIDActive { set { m_usePID = value; } }
752 public override float PIDTau { set { m_PIDTau = value; } }
753
754 // For RotLookAt
755 public override Quaternion APIDTarget { set { m_APIDTarget = value; } }
756 public override bool APIDActive { set { m_useAPID = value; } }
757 public override float APIDStrength { set { m_APIDStrength = value; } }
758 public override float APIDDamping { set { m_APIDDamping = value; } }
759
760 public override float PIDHoverHeight { set { m_PIDHoverHeight = value; ; } }
761 public override bool PIDHoverActive { set { m_useHoverPID = value; } }
762 public override PIDHoverType PIDHoverType { set { m_PIDHoverType = value; } }
763 public override float PIDHoverTau { set { m_PIDHoverTau = value; } }
764
765 internal static bool QuaternionIsFinite(Quaternion q)
766 {
767 if (Single.IsNaN(q.X) || Single.IsInfinity(q.X))
768 return false;
769 if (Single.IsNaN(q.Y) || Single.IsInfinity(q.Y))
770 return false;
771 if (Single.IsNaN(q.Z) || Single.IsInfinity(q.Z))
772 return false;
773 if (Single.IsNaN(q.W) || Single.IsInfinity(q.W))
774 return false;
775 return true;
776 }
777
778 public override Vector3 Acceleration // client updates read data via here
779 {
780 get
781 {
782 if (_zeroFlag)
783 {
784 return Vector3.Zero;
785 }
786 return _acceleration;
787 }
788 set { _acceleration = value; }
789 }
790
791
792 public void SetAcceleration(Vector3 accel) // No one calls this, and it would not do anything.
793 {
794 _acceleration = accel;
795 }
796
797 public override void AddForce(Vector3 force, bool pushforce)
798 {
799 if (force.IsFinite())
800 {
801 lock (m_forcelist)
802 m_forcelist.Add(force);
803
804 m_taintforce = true;
805 }
806 else
807 {
808 m_log.Warn("[PHYSICS]: Got Invalid linear force vector from Scene in Object");
809 }
810 //m_log.Info("[PHYSICS]: Added Force:" + force.ToString() + " to prim at " + Position.ToString());
811 }
812
813 public override void AddAngularForce(Vector3 force, bool pushforce)
814 {
815 if (force.IsFinite())
816 {
817 m_angularforcelist.Add(force);
818 m_taintaddangularforce = true;
819 }
820 else
821 {
822 m_log.Warn("[PHYSICS]: Got Invalid Angular force vector from Scene in Object");
823 }
824 }
825
826 public override Vector3 RotationalVelocity
827 {
828 get
829 {
830 return m_rotationalVelocity;
831 }
832 set
833 {
834 if (value.IsFinite())
835 {
836 m_rotationalVelocity = value;
837 }
838 else
839 {
840 m_log.Warn("[PHYSICS]: Got NaN RotationalVelocity in Object");
841 }
842 }
843 }
844
845 public override void CrossingFailure()
846 {
847 if (m_outofBounds)
848 {
849 _position.X = Util.Clip(_position.X, 0.5f, _parent_scene.WorldExtents.X - 0.5f);
850 _position.Y = Util.Clip(_position.Y, 0.5f, _parent_scene.WorldExtents.Y - 0.5f);
851 _position.Z = Util.Clip(_position.Z, -100f, 50000f);
852 d.BodySetPosition(Body, _position.X, _position.Y, _position.Z);
853
854 m_lastposition = _position;
855
856 _velocity = Vector3.Zero;
857 m_lastVelocity = _velocity;
858
859
860 if (m_type != Vehicle.TYPE_NONE)
861 Halt();
862
863 d.BodySetLinearVel(Body, 0, 0, 0);
864 base.RequestPhysicsterseUpdate();
865 m_outofBounds = false;
866 }
867 /*
868 int tmp = Interlocked.Increment(ref m_crossingfailures);
869 if (tmp > _parent_scene.geomCrossingFailuresBeforeOutofbounds)
870 {
871 base.RaiseOutOfBounds(_position);
872 return;
873 }
874 else if (tmp == _parent_scene.geomCrossingFailuresBeforeOutofbounds)
875 {
876 m_log.Warn("[PHYSICS]: Too many crossing failures for: " + m_primName);
877 }
878 */
879 }
880
881 public override float Buoyancy
882 {
883 get { return m_buoyancy; }
884 set { m_buoyancy = value; }
885 }
886
887 public override void link(PhysicsActor obj)
888 {
889 m_taintparent = obj;
890 }
891
892 public override void delink()
893 {
894 m_taintparent = null;
895 }
896
897 public override void LockAngularMotion(Vector3 axis)
898 {
899 // This is actually ROTATION ENABLE, not a lock.
900 // default is <1,1,1> which is all enabled.
901 // The lock value is updated inside Move(), no point in using the taint system.
902 // OS 'm_taintAngularLock' etc change to m_rotateEnable.
903 if (axis.IsFinite())
904 {
905 axis.X = (axis.X > 0) ? 1f : 0f;
906 axis.Y = (axis.Y > 0) ? 1f : 0f;
907 axis.Z = (axis.Z > 0) ? 1f : 0f;
908 m_log.DebugFormat("[axislock]: <{0},{1},{2}>", axis.X, axis.Y, axis.Z);
909 m_rotateEnableRequest = axis;
910 m_rotateEnableUpdate = true;
911 }
912 else
913 {
914 m_log.Warn("[PHYSICS]: Got NaN locking axis from Scene on Object");
915 }
916 }
917
918 public void SetGeom(IntPtr geom)
919 {
920 if (prim_geom != IntPtr.Zero)
921 {
922 // Remove any old entries
923 //string tPA;
924 //_parent_scene.geom_name_map.TryGetValue(prim_geom, out tPA);
925 //Console.WriteLine("**** Remove {0}", tPA);
926 if (_parent_scene.geom_name_map.ContainsKey(prim_geom)) _parent_scene.geom_name_map.Remove(prim_geom);
927 if (_parent_scene.actor_name_map.ContainsKey(prim_geom)) _parent_scene.actor_name_map.Remove(prim_geom);
928 d.GeomDestroy(prim_geom);
929 }
930
931 prim_geom = geom;
932 //Console.WriteLine("SetGeom to " + prim_geom + " for " + m_primName);
933 if (prim_geom != IntPtr.Zero)
934 {
935 _parent_scene.geom_name_map[prim_geom] = this.m_primName;
936 _parent_scene.actor_name_map[prim_geom] = (PhysicsActor)this;
937 //Console.WriteLine("**** Create {2} Dicts: actor={0} name={1}", _parent_scene.actor_name_map.Count, _parent_scene.geom_name_map.Count, this.m_primName);
938 if (m_NoColide)
939 {
940 d.GeomSetCategoryBits(prim_geom, 0);
941 if (m_isphysical && !m_isVolumeDetect)
942 {
943 d.GeomSetCollideBits(prim_geom, (int)CollisionCategories.Land);
944 }
945 else
946 {
947 d.GeomSetCollideBits(prim_geom, 0);
948 d.GeomDisable(prim_geom);
949 }
950 }
951 else
952 {
953 d.GeomSetCategoryBits(prim_geom, (int)m_collisionCategories);
954 d.GeomSetCollideBits(prim_geom, (int)m_collisionFlags);
955 }
956 }
957
958 if (childPrim)
959 {
960 if (_parent != null && _parent is OdePrim)
961 {
962 OdePrim parent = (OdePrim)_parent;
963 //Console.WriteLine("SetGeom calls ChildSetGeom");
964 parent.ChildSetGeom(this);
965 }
966 }
967 //m_log.Warn("Setting Geom to: " + prim_geom);
968 }
969
970 public void enableBodySoft()
971 {
972 if (!childPrim)
973 {
974 if (m_isphysical && Body != IntPtr.Zero)
975 {
976 d.BodyEnable(Body);
977 if (m_type != Vehicle.TYPE_NONE)
978 Enable(Body, _parent_scene);
979 }
980
981 m_disabled = false;
982 }
983 }
984
985 public void disableBodySoft()
986 {
987 m_disabled = true;
988
989 if (m_isphysical && Body != IntPtr.Zero)
990 {
991 d.BodyDisable(Body);
992 Halt();
993 }
994 }
995
996 public void enableBody()
997 {
998 // Don't enable this body if we're a child prim
999 // this should be taken care of in the parent function not here
1000 if (!childPrim)
1001 {
1002 // Sets the geom to a body
1003 Body = d.BodyCreate(_parent_scene.world);
1004
1005 setMass();
1006 d.BodySetPosition(Body, _position.X, _position.Y, _position.Z);
1007 d.Quaternion myrot = new d.Quaternion();
1008 myrot.X = _orientation.X;
1009 myrot.Y = _orientation.Y;
1010 myrot.Z = _orientation.Z;
1011 myrot.W = _orientation.W;
1012 d.BodySetQuaternion(Body, ref myrot);
1013 d.GeomSetBody(prim_geom, Body);
1014
1015 m_collisionCategories |= CollisionCategories.Body;
1016 m_collisionFlags |= (CollisionCategories.Land | CollisionCategories.Wind);
1017
1018 if (m_NoColide)
1019 {
1020 d.GeomSetCategoryBits(prim_geom, 0);
1021 d.GeomSetCollideBits(prim_geom, (int)CollisionCategories.Land);
1022 }
1023 else
1024 {
1025 d.GeomSetCategoryBits(prim_geom, (int)m_collisionCategories);
1026 d.GeomSetCollideBits(prim_geom, (int)m_collisionFlags);
1027 }
1028
1029 d.BodySetAutoDisableFlag(Body, true);
1030 d.BodySetAutoDisableSteps(Body, body_autodisable_frames);
1031
1032 // disconnect from world gravity so we can apply buoyancy
1033 d.BodySetGravityMode(Body, false);
1034
1035 m_interpenetrationcount = 0;
1036 m_collisionscore = 0;
1037 m_disabled = false;
1038
1039 if (m_type != Vehicle.TYPE_NONE)
1040 {
1041 Enable(Body, _parent_scene);
1042 }
1043
1044 _parent_scene.addActivePrim(this);
1045 }
1046 }
1047
1048 #region Mass Calculation
1049
1050 private float CalculateMass()
1051 {
1052 float volume = _size.X * _size.Y * _size.Z; // default
1053 float tmp;
1054
1055 float returnMass = 0;
1056 float hollowAmount = (float)_pbs.ProfileHollow * 2.0e-5f;
1057 float hollowVolume = hollowAmount * hollowAmount;
1058
1059 switch (_pbs.ProfileShape)
1060 {
1061 case ProfileShape.Square:
1062 // default box
1063
1064 if (_pbs.PathCurve == (byte)Extrusion.Straight)
1065 {
1066 if (hollowAmount > 0.0)
1067 {
1068 switch (_pbs.HollowShape)
1069 {
1070 case HollowShape.Square:
1071 case HollowShape.Same:
1072 break;
1073
1074 case HollowShape.Circle:
1075
1076 hollowVolume *= 0.78539816339f;
1077 break;
1078
1079 case HollowShape.Triangle:
1080
1081 hollowVolume *= (0.5f * .5f);
1082 break;
1083
1084 default:
1085 hollowVolume = 0;
1086 break;
1087 }
1088 volume *= (1.0f - hollowVolume);
1089 }
1090 }
1091
1092 else if (_pbs.PathCurve == (byte)Extrusion.Curve1)
1093 {
1094 //a tube
1095
1096 volume *= 0.78539816339e-2f * (float)(200 - _pbs.PathScaleX);
1097 tmp = 1.0f - 2.0e-2f * (float)(200 - _pbs.PathScaleY);
1098 volume -= volume * tmp * tmp;
1099
1100 if (hollowAmount > 0.0)
1101 {
1102 hollowVolume *= hollowAmount;
1103
1104 switch (_pbs.HollowShape)
1105 {
1106 case HollowShape.Square:
1107 case HollowShape.Same:
1108 break;
1109
1110 case HollowShape.Circle:
1111 hollowVolume *= 0.78539816339f; ;
1112 break;
1113
1114 case HollowShape.Triangle:
1115 hollowVolume *= 0.5f * 0.5f;
1116 break;
1117 default:
1118 hollowVolume = 0;
1119 break;
1120 }
1121 volume *= (1.0f - hollowVolume);
1122 }
1123 }
1124
1125 break;
1126
1127 case ProfileShape.Circle:
1128
1129 if (_pbs.PathCurve == (byte)Extrusion.Straight)
1130 {
1131 volume *= 0.78539816339f; // elipse base
1132
1133 if (hollowAmount > 0.0)
1134 {
1135 switch (_pbs.HollowShape)
1136 {
1137 case HollowShape.Same:
1138 case HollowShape.Circle:
1139 break;
1140
1141 case HollowShape.Square:
1142 hollowVolume *= 0.5f * 2.5984480504799f;
1143 break;
1144
1145 case HollowShape.Triangle:
1146 hollowVolume *= .5f * 1.27323954473516f;
1147 break;
1148
1149 default:
1150 hollowVolume = 0;
1151 break;
1152 }
1153 volume *= (1.0f - hollowVolume);
1154 }
1155 }
1156
1157 else if (_pbs.PathCurve == (byte)Extrusion.Curve1)
1158 {
1159 volume *= 0.61685027506808491367715568749226e-2f * (float)(200 - _pbs.PathScaleX);
1160 tmp = 1.0f - .02f * (float)(200 - _pbs.PathScaleY);
1161 volume *= (1.0f - tmp * tmp);
1162
1163 if (hollowAmount > 0.0)
1164 {
1165
1166 // calculate the hollow volume by it's shape compared to the prim shape
1167 hollowVolume *= hollowAmount;
1168
1169 switch (_pbs.HollowShape)
1170 {
1171 case HollowShape.Same:
1172 case HollowShape.Circle:
1173 break;
1174
1175 case HollowShape.Square:
1176 hollowVolume *= 0.5f * 2.5984480504799f;
1177 break;
1178
1179 case HollowShape.Triangle:
1180 hollowVolume *= .5f * 1.27323954473516f;
1181 break;
1182
1183 default:
1184 hollowVolume = 0;
1185 break;
1186 }
1187 volume *= (1.0f - hollowVolume);
1188 }
1189 }
1190 break;
1191
1192 case ProfileShape.HalfCircle:
1193 if (_pbs.PathCurve == (byte)Extrusion.Curve1)
1194 {
1195 volume *= 0.52359877559829887307710723054658f;
1196 }
1197 break;
1198
1199 case ProfileShape.EquilateralTriangle:
1200
1201 if (_pbs.PathCurve == (byte)Extrusion.Straight)
1202 {
1203 volume *= 0.32475953f;
1204
1205 if (hollowAmount > 0.0)
1206 {
1207
1208 // calculate the hollow volume by it's shape compared to the prim shape
1209 switch (_pbs.HollowShape)
1210 {
1211 case HollowShape.Same:
1212 case HollowShape.Triangle:
1213 hollowVolume *= .25f;
1214 break;
1215
1216 case HollowShape.Square:
1217 hollowVolume *= 0.499849f * 3.07920140172638f;
1218 break;
1219
1220 case HollowShape.Circle:
1221 // Hollow shape is a perfect cyllinder in respect to the cube's scale
1222 // Cyllinder hollow volume calculation
1223
1224 hollowVolume *= 0.1963495f * 3.07920140172638f;
1225 break;
1226
1227 default:
1228 hollowVolume = 0;
1229 break;
1230 }
1231 volume *= (1.0f - hollowVolume);
1232 }
1233 }
1234 else if (_pbs.PathCurve == (byte)Extrusion.Curve1)
1235 {
1236 volume *= 0.32475953f;
1237 volume *= 0.01f * (float)(200 - _pbs.PathScaleX);
1238 tmp = 1.0f - .02f * (float)(200 - _pbs.PathScaleY);
1239 volume *= (1.0f - tmp * tmp);
1240
1241 if (hollowAmount > 0.0)
1242 {
1243
1244 hollowVolume *= hollowAmount;
1245
1246 switch (_pbs.HollowShape)
1247 {
1248 case HollowShape.Same:
1249 case HollowShape.Triangle:
1250 hollowVolume *= .25f;
1251 break;
1252
1253 case HollowShape.Square:
1254 hollowVolume *= 0.499849f * 3.07920140172638f;
1255 break;
1256
1257 case HollowShape.Circle:
1258
1259 hollowVolume *= 0.1963495f * 3.07920140172638f;
1260 break;
1261
1262 default:
1263 hollowVolume = 0;
1264 break;
1265 }
1266 volume *= (1.0f - hollowVolume);
1267 }
1268 }
1269 break;
1270
1271 default:
1272 break;
1273 }
1274
1275
1276
1277 float taperX1;
1278 float taperY1;
1279 float taperX;
1280 float taperY;
1281 float pathBegin;
1282 float pathEnd;
1283 float profileBegin;
1284 float profileEnd;
1285
1286 if (_pbs.PathCurve == (byte)Extrusion.Straight || _pbs.PathCurve == (byte)Extrusion.Flexible)
1287 {
1288 taperX1 = _pbs.PathScaleX * 0.01f;
1289 if (taperX1 > 1.0f)
1290 taperX1 = 2.0f - taperX1;
1291 taperX = 1.0f - taperX1;
1292
1293 taperY1 = _pbs.PathScaleY * 0.01f;
1294 if (taperY1 > 1.0f)
1295 taperY1 = 2.0f - taperY1;
1296 taperY = 1.0f - taperY1;
1297 }
1298 else
1299 {
1300 taperX = _pbs.PathTaperX * 0.01f;
1301 if (taperX < 0.0f)
1302 taperX = -taperX;
1303 taperX1 = 1.0f - taperX;
1304
1305 taperY = _pbs.PathTaperY * 0.01f;
1306 if (taperY < 0.0f)
1307 taperY = -taperY;
1308 taperY1 = 1.0f - taperY;
1309
1310 }
1311
1312
1313 volume *= (taperX1 * taperY1 + 0.5f * (taperX1 * taperY + taperX * taperY1) + 0.3333333333f * taperX * taperY);
1314
1315 pathBegin = (float)_pbs.PathBegin * 2.0e-5f;
1316 pathEnd = 1.0f - (float)_pbs.PathEnd * 2.0e-5f;
1317 volume *= (pathEnd - pathBegin);
1318
1319 // this is crude aproximation
1320 profileBegin = (float)_pbs.ProfileBegin * 2.0e-5f;
1321 profileEnd = 1.0f - (float)_pbs.ProfileEnd * 2.0e-5f;
1322 volume *= (profileEnd - profileBegin);
1323
1324 returnMass = m_density * volume;
1325
1326 if (returnMass <= 0)
1327 returnMass = 0.0001f;//ckrinke: Mass must be greater then zero.
1328 // else if (returnMass > _parent_scene.maximumMassObject)
1329 // returnMass = _parent_scene.maximumMassObject;
1330
1331
1332
1333 m_primMass = returnMass;
1334 if (m_primMass > _parent_scene.maximumMassObject)
1335 m_primMass = _parent_scene.maximumMassObject;
1336
1337 // Recursively calculate mass
1338 bool HasChildPrim = false;
1339 lock (childrenPrim)
1340 {
1341 if (childrenPrim.Count > 0)
1342 {
1343 HasChildPrim = true;
1344 }
1345
1346 }
1347 if (HasChildPrim)
1348 {
1349 OdePrim[] childPrimArr = new OdePrim[0];
1350
1351 lock (childrenPrim)
1352 childPrimArr = childrenPrim.ToArray();
1353
1354 for (int i = 0; i < childPrimArr.Length; i++)
1355 {
1356 if (childPrimArr[i] != null && !childPrimArr[i].m_taintremove)
1357 returnMass += childPrimArr[i].CalculateMass();
1358 // failsafe, this shouldn't happen but with OpenSim, you never know :)
1359 if (i > 256)
1360 break;
1361 }
1362 }
1363 if (returnMass > _parent_scene.maximumMassObject)
1364 returnMass = _parent_scene.maximumMassObject;
1365 return returnMass;
1366 }// end CalculateMass
1367
1368 #endregion
1369
1370 public void setMass()
1371 {
1372 if (Body != (IntPtr)0)
1373 {
1374 float newmass = CalculateMass();
1375
1376 //m_log.Info("[PHYSICS]: New Mass: " + newmass.ToString());
1377
1378 d.MassSetBoxTotal(out pMass, newmass, _size.X, _size.Y, _size.Z);
1379 d.BodySetMass(Body, ref pMass);
1380 }
1381 }
1382
1383
1384 private void UpdateDataFromGeom()
1385 {
1386 if (prim_geom != IntPtr.Zero)
1387 {
1388 d.Quaternion qtmp;
1389 d.GeomCopyQuaternion(prim_geom, out qtmp);
1390 _orientation.W = qtmp.W;
1391 _orientation.X = qtmp.X;
1392 _orientation.Y = qtmp.Y;
1393 _orientation.Z = qtmp.Z;
1394
1395 d.Vector3 lpos = d.GeomGetPosition(prim_geom);
1396 _position.X = lpos.X;
1397 _position.Y = lpos.Y;
1398 _position.Z = lpos.Z;
1399 }
1400 }
1401
1402 public void disableBody()
1403 {
1404 //this kills the body so things like 'mesh' can re-create it.
1405 lock (this)
1406 {
1407 if (!childPrim)
1408 {
1409 if (Body != IntPtr.Zero)
1410 {
1411 _parent_scene.remActivePrim(this);
1412 m_collisionCategories &= ~CollisionCategories.Body;
1413 m_collisionFlags &= ~(CollisionCategories.Wind | CollisionCategories.Land);
1414
1415 if (prim_geom != IntPtr.Zero)
1416 {
1417 if (m_NoColide)
1418 {
1419 d.GeomSetCategoryBits(prim_geom, 0);
1420 d.GeomSetCollideBits(prim_geom, 0);
1421 d.GeomDisable(prim_geom);
1422 }
1423 else
1424 {
1425 d.GeomSetCategoryBits(prim_geom, (int)m_collisionCategories);
1426 d.GeomSetCollideBits(prim_geom, (int)m_collisionFlags);
1427 }
1428 }
1429
1430 UpdateDataFromGeom();
1431
1432 lock (childrenPrim)
1433 {
1434 if (childrenPrim.Count > 0)
1435 {
1436 foreach (OdePrim prm in childrenPrim)
1437 {
1438 if (prm.prim_geom != IntPtr.Zero)
1439 {
1440 if (prm.m_NoColide)
1441 {
1442 d.GeomSetCategoryBits(prm.prim_geom, 0);
1443 d.GeomSetCollideBits(prm.prim_geom, 0);
1444 d.GeomDisable(prm.prim_geom);
1445
1446 }
1447 prm.UpdateDataFromGeom();
1448 }
1449 _parent_scene.remActivePrim(prm);
1450 prm.Body = IntPtr.Zero;
1451 }
1452 }
1453 }
1454 d.BodyDestroy(Body);
1455 Body = IntPtr.Zero;
1456 }
1457 }
1458 else
1459 {
1460 _parent_scene.remActivePrim(this);
1461
1462 m_collisionCategories &= ~CollisionCategories.Body;
1463 m_collisionFlags &= ~(CollisionCategories.Wind | CollisionCategories.Land);
1464
1465 if (prim_geom != IntPtr.Zero)
1466 {
1467 if (m_NoColide)
1468 {
1469 d.GeomSetCategoryBits(prim_geom, 0);
1470 d.GeomSetCollideBits(prim_geom, 0);
1471 d.GeomDisable(prim_geom);
1472 }
1473 else
1474 {
1475 d.GeomSetCategoryBits(prim_geom, (int)m_collisionCategories);
1476 d.GeomSetCollideBits(prim_geom, (int)m_collisionFlags);
1477 }
1478 }
1479
1480 Body = IntPtr.Zero;
1481 }
1482 }
1483 m_disabled = true;
1484 m_collisionscore = 0;
1485 }
1486
1487// private static Dictionary<IMesh, IntPtr> m_MeshToTriMeshMap = new Dictionary<IMesh, IntPtr>();
1488
1489 public bool setMesh(OdeScene parent_scene, IMesh mesh)
1490 {
1491 //Kill Body so that mesh can re-make the geom
1492 if (IsPhysical && Body != IntPtr.Zero)
1493 {
1494 if (childPrim)
1495 {
1496 if (_parent != null)
1497 {
1498 OdePrim parent = (OdePrim)_parent;
1499 parent.ChildDelink(this);
1500 }
1501 }
1502 else
1503 {
1504 disableBody();
1505 }
1506 }
1507
1508 IntPtr vertices, indices;
1509 int vertexCount, indexCount;
1510 int vertexStride, triStride;
1511 mesh.getVertexListAsPtrToFloatArray(out vertices, out vertexStride, out vertexCount); // Note, that vertices are fixed in unmanaged heap
1512 mesh.getIndexListAsPtrToIntArray(out indices, out triStride, out indexCount); // Also fixed, needs release after usage
1513
1514 // warning this destroys the mesh for eventual future use. Only pinned float arrays stay valid
1515 mesh.releaseSourceMeshData(); // free up the original mesh data to save memory
1516
1517 if (vertexCount == 0 || indexCount == 0)
1518 {
1519 m_log.WarnFormat("[PHYSICS]: Got invalid mesh on prim {0} at <{1},{2},{3}>. mesh UUID {4}", Name, _position.X, _position.Y, _position.Z, _pbs.SculptTexture.ToString());
1520 return false;
1521 }
1522
1523 IntPtr geo = IntPtr.Zero;
1524 try
1525 {
1526 _triMeshData = d.GeomTriMeshDataCreate();
1527 d.GeomTriMeshDataBuildSimple(_triMeshData, vertices, vertexStride, vertexCount, indices, indexCount, triStride);
1528 d.GeomTriMeshDataPreprocess(_triMeshData);
1529
1530 _parent_scene.waitForSpaceUnlock(m_targetSpace);
1531
1532 geo = d.CreateTriMesh(m_targetSpace, _triMeshData, null, null, null);
1533 }
1534 catch (Exception e)
1535 {
1536 m_log.ErrorFormat("[PHYSICS]: Create trimesh failed on prim {0} : {1}",Name,e.Message);
1537
1538 if (_triMeshData != IntPtr.Zero)
1539 {
1540 d.GeomTriMeshDataDestroy(_triMeshData);
1541 _triMeshData = IntPtr.Zero;
1542 }
1543 return false;
1544 }
1545
1546 SetGeom(geo);
1547
1548 return true;
1549 }
1550
1551 public void ProcessTaints(float timestep) //=============================================================================
1552 {
1553 if (m_taintadd)
1554 {
1555 changeadd(timestep);
1556 }
1557
1558 if (m_taintremove)
1559 return;
1560
1561 if (prim_geom != IntPtr.Zero)
1562 {
1563 if (!_position.ApproxEquals(m_taintposition, 0f))
1564 {
1565 changemove(timestep);
1566 }
1567 if (m_taintrot != _orientation)
1568 {
1569 if (childPrim && IsPhysical) // For physical child prim...
1570 {
1571 rotate(timestep);
1572 // KF: ODE will also rotate the parent prim!
1573 // so rotate the root back to where it was
1574 OdePrim parent = (OdePrim)_parent;
1575 parent.rotate(timestep);
1576 }
1577 else
1578 {
1579 //Just rotate the prim
1580 rotate(timestep);
1581 }
1582 }
1583 //
1584 if (m_taintphantom != m_isphantom )
1585 {
1586 changePhantomStatus();
1587 }//
1588
1589 if (m_taintPhysics != m_isphysical && !(m_taintparent != _parent))
1590 {
1591 changePhysicsStatus(timestep);
1592 }//
1593
1594
1595 if (!_size.ApproxEquals(m_taintsize, 0f))
1596 changesize(timestep);
1597 //
1598
1599 if(m_taintshapetype != m_shapetype)
1600 {
1601 m_shapetype = m_taintshapetype;
1602 changeshape(timestep);
1603 }
1604
1605 if (m_taintshape)
1606 changeshape(timestep);
1607 //
1608
1609 if (m_taintforce)
1610 changeAddForce(timestep);
1611
1612 if (m_taintaddangularforce)
1613 changeAddAngularForce(timestep);
1614
1615 if (!m_taintTorque.ApproxEquals(Vector3.Zero, 0.001f))
1616 changeSetTorque(timestep);
1617
1618 if (m_taintdisable)
1619 changedisable(timestep);
1620
1621 if (m_taintselected != m_isSelected)
1622 changeSelectedStatus();
1623
1624 if (!m_taintVelocity.ApproxEquals(Vector3.Zero, 0.001f))
1625 changevelocity(timestep);
1626
1627 if (m_taintparent != _parent)
1628 changelink(timestep);
1629
1630 if (m_taintCollidesWater != m_collidesWater)
1631 changefloatonwater(timestep);
1632
1633 if (m_taintvehicledata != null)
1634 DoSetVehicle();
1635
1636 /* obsolete
1637 if (!m_angularLock.ApproxEquals(m_taintAngularLock,0f))
1638 changeAngularLock(timestep);
1639 */
1640 }
1641
1642 else
1643 {
1644 m_log.Error("[PHYSICS]: prim {0} at <{1},{2},{3}> as invalid geom");
1645
1646 // not sure this will not flame...
1647 m_taintremove = true;
1648 _parent_scene.AddPhysicsActorTaint(this);
1649 }
1650
1651 }
1652
1653 private void changelink(float timestep)
1654 {
1655 // If the newly set parent is not null
1656 // create link
1657 if (_parent == null && m_taintparent != null)
1658 {
1659 if (m_taintparent.PhysicsActorType == (int)ActorTypes.Prim)
1660 {
1661 OdePrim obj = (OdePrim)m_taintparent;
1662 obj.ParentPrim(this);
1663 }
1664 }
1665 // If the newly set parent is null
1666 // destroy link
1667 else if (_parent != null && m_taintparent == null)
1668 {
1669 if (_parent is OdePrim)
1670 {
1671 OdePrim obj = (OdePrim)_parent;
1672 obj.ChildDelink(this);
1673 childPrim = false;
1674 }
1675 }
1676
1677 _parent = m_taintparent;
1678 m_taintPhysics = m_isphysical;
1679 }
1680
1681 // I'm the parent
1682 // prim is the child
1683 public void ParentPrim(OdePrim prim)
1684 {
1685 if (this.m_localID != prim.m_localID)
1686 {
1687 if (Body == IntPtr.Zero)
1688 {
1689 Body = d.BodyCreate(_parent_scene.world);
1690 // disconnect from world gravity so we can apply buoyancy
1691 d.BodySetGravityMode(Body, false);
1692
1693 setMass();
1694 }
1695 if (Body != IntPtr.Zero)
1696 {
1697 lock (childrenPrim)
1698 {
1699 if (!childrenPrim.Contains(prim))
1700 {
1701 childrenPrim.Add(prim);
1702
1703 foreach (OdePrim prm in childrenPrim)
1704 {
1705 d.Mass m2;
1706 d.MassSetZero(out m2);
1707 d.MassSetBoxTotal(out m2, prim.CalculateMass(), prm._size.X, prm._size.Y, prm._size.Z);
1708
1709
1710 d.Quaternion quat = new d.Quaternion();
1711 quat.W = prm._orientation.W;
1712 quat.X = prm._orientation.X;
1713 quat.Y = prm._orientation.Y;
1714 quat.Z = prm._orientation.Z;
1715
1716 d.Matrix3 mat = new d.Matrix3();
1717 d.RfromQ(out mat, ref quat);
1718 d.MassRotate(ref m2, ref mat);
1719 d.MassTranslate(ref m2, Position.X - prm.Position.X, Position.Y - prm.Position.Y, Position.Z - prm.Position.Z);
1720 d.MassAdd(ref pMass, ref m2);
1721 }
1722 foreach (OdePrim prm in childrenPrim)
1723 {
1724 if (m_isphantom && !prm.m_isVolumeDetect)
1725 {
1726 prm.m_collisionCategories = 0;
1727 prm.m_collisionFlags = CollisionCategories.Land;
1728 }
1729 else
1730 {
1731 prm.m_collisionCategories |= CollisionCategories.Body;
1732 prm.m_collisionFlags |= (CollisionCategories.Land | CollisionCategories.Wind);
1733 }
1734 if (prm.prim_geom == IntPtr.Zero)
1735 {
1736 m_log.Warn("[PHYSICS]: Unable to link one of the linkset elements. No geom yet");
1737 continue;
1738 }
1739
1740 if (prm.m_NoColide)
1741 {
1742 d.GeomSetCategoryBits(prm.prim_geom, 0);
1743 d.GeomSetCollideBits(prm.prim_geom, (int)CollisionCategories.Land);
1744 }
1745 else
1746 {
1747 d.GeomSetCategoryBits(prm.prim_geom, (int)prm.m_collisionCategories);
1748 d.GeomSetCollideBits(prm.prim_geom, (int)prm.m_collisionFlags);
1749 }
1750
1751 d.Quaternion quat = new d.Quaternion();
1752 quat.W = prm._orientation.W;
1753 quat.X = prm._orientation.X;
1754 quat.Y = prm._orientation.Y;
1755 quat.Z = prm._orientation.Z;
1756
1757 d.Matrix3 mat = new d.Matrix3();
1758 d.RfromQ(out mat, ref quat);
1759 if (Body != IntPtr.Zero)
1760 {
1761 d.GeomSetBody(prm.prim_geom, Body);
1762 prm.childPrim = true;
1763 d.GeomSetOffsetWorldPosition(prm.prim_geom, prm.Position.X, prm.Position.Y, prm.Position.Z);
1764 //d.GeomSetOffsetPosition(prim.prim_geom,
1765 // (Position.X - prm.Position.X) - pMass.c.X,
1766 // (Position.Y - prm.Position.Y) - pMass.c.Y,
1767 // (Position.Z - prm.Position.Z) - pMass.c.Z);
1768 d.GeomSetOffsetWorldRotation(prm.prim_geom, ref mat);
1769 //d.GeomSetOffsetRotation(prm.prim_geom, ref mat);
1770 d.MassTranslate(ref pMass, -pMass.c.X, -pMass.c.Y, -pMass.c.Z);
1771 d.BodySetMass(Body, ref pMass);
1772 }
1773 else
1774 {
1775 m_log.Debug("[PHYSICS]:I ain't got no boooooooooddy, no body");
1776 }
1777
1778 prm.m_interpenetrationcount = 0;
1779 prm.m_collisionscore = 0;
1780 prm.m_disabled = false;
1781
1782 prm.Body = Body;
1783
1784 _parent_scene.addActivePrim(prm);
1785 }
1786
1787 if (m_isphantom && !m_isVolumeDetect)
1788 {
1789 m_collisionCategories = 0;
1790 m_collisionFlags = CollisionCategories.Land;
1791 }
1792 else
1793 {
1794 m_collisionCategories |= CollisionCategories.Body;
1795 m_collisionFlags |= (CollisionCategories.Land | CollisionCategories.Wind);
1796 }
1797
1798 if (m_NoColide)
1799 {
1800 d.GeomSetCategoryBits(prim_geom, 0);
1801 d.GeomSetCollideBits(prim_geom, (int)CollisionCategories.Land);
1802 }
1803 else
1804 {
1805 d.GeomSetCategoryBits(prim_geom, (int)m_collisionCategories);
1806 d.GeomSetCollideBits(prim_geom, (int)m_collisionFlags);
1807 }
1808
1809 d.Quaternion quat2 = new d.Quaternion();
1810 quat2.W = _orientation.W;
1811 quat2.X = _orientation.X;
1812 quat2.Y = _orientation.Y;
1813 quat2.Z = _orientation.Z;
1814
1815 d.Matrix3 mat2 = new d.Matrix3();
1816 d.RfromQ(out mat2, ref quat2);
1817 d.GeomSetBody(prim_geom, Body);
1818 d.GeomSetOffsetWorldPosition(prim_geom, Position.X - pMass.c.X, Position.Y - pMass.c.Y, Position.Z - pMass.c.Z);
1819 //d.GeomSetOffsetPosition(prim.prim_geom,
1820 // (Position.X - prm.Position.X) - pMass.c.X,
1821 // (Position.Y - prm.Position.Y) - pMass.c.Y,
1822 // (Position.Z - prm.Position.Z) - pMass.c.Z);
1823 //d.GeomSetOffsetRotation(prim_geom, ref mat2);
1824 d.MassTranslate(ref pMass, -pMass.c.X, -pMass.c.Y, -pMass.c.Z);
1825 d.BodySetMass(Body, ref pMass);
1826
1827 d.BodySetAutoDisableFlag(Body, true);
1828 d.BodySetAutoDisableSteps(Body, body_autodisable_frames);
1829
1830 m_interpenetrationcount = 0;
1831 m_collisionscore = 0;
1832 m_disabled = false;
1833
1834 d.BodySetPosition(Body, Position.X, Position.Y, Position.Z);
1835 if (m_type != Vehicle.TYPE_NONE) Enable(Body, _parent_scene);
1836
1837 _parent_scene.addActivePrim(this);
1838 }
1839 }
1840 }
1841 }
1842 }
1843
1844 private void ChildSetGeom(OdePrim odePrim)
1845 {
1846 lock (childrenPrim)
1847 {
1848 foreach (OdePrim prm in childrenPrim)
1849 {
1850 prm.disableBody();
1851 }
1852 }
1853 disableBody();
1854
1855 if (Body != IntPtr.Zero)
1856 {
1857 _parent_scene.remActivePrim(this);
1858 }
1859
1860 lock (childrenPrim)
1861 {
1862 foreach (OdePrim prm in childrenPrim)
1863 {
1864 ParentPrim(prm);
1865 }
1866 }
1867 }
1868
1869 private void ChildDelink(OdePrim odePrim)
1870 {
1871 // Okay, we have a delinked child.. need to rebuild the body.
1872 lock (childrenPrim)
1873 {
1874 foreach (OdePrim prm in childrenPrim)
1875 {
1876 prm.childPrim = true;
1877 prm.disableBody();
1878 }
1879 }
1880 disableBody();
1881
1882 lock (childrenPrim)
1883 {
1884 childrenPrim.Remove(odePrim);
1885 }
1886
1887 if (Body != IntPtr.Zero)
1888 {
1889 _parent_scene.remActivePrim(this);
1890 }
1891
1892 lock (childrenPrim)
1893 {
1894 foreach (OdePrim prm in childrenPrim)
1895 {
1896 ParentPrim(prm);
1897 }
1898 }
1899 }
1900
1901 private void changePhantomStatus()
1902 {
1903 m_taintphantom = m_isphantom;
1904 changeSelectedStatus();
1905 }
1906
1907/* not in use
1908 private void SetCollider()
1909 {
1910 SetCollider(m_isSelected, m_isphysical, m_isphantom, m_isSelected);
1911 }
1912
1913 private void SetCollider(bool sel, bool phys, bool phan, bool vdtc)
1914 {
1915 if (sel)
1916 {
1917 m_collisionCategories = CollisionCategories.Selected;
1918 m_collisionFlags = (CollisionCategories.Sensor | CollisionCategories.Space);
1919 }
1920 else
1921 {
1922 if (phan && !vdtc)
1923 {
1924 m_collisionCategories = 0;
1925 if (phys)
1926 m_collisionFlags = CollisionCategories.Land;
1927 else
1928 m_collisionFlags = 0; // this case should not happen non physical phantoms should not have physics
1929 }
1930 else
1931 {
1932 m_collisionCategories = CollisionCategories.Geom;
1933 if (phys)
1934 m_collisionCategories |= CollisionCategories.Body;
1935
1936 m_collisionFlags = m_default_collisionFlags;
1937
1938 if (m_collidesLand)
1939 m_collisionFlags |= CollisionCategories.Land;
1940 if (m_collidesWater)
1941 m_collisionFlags |= CollisionCategories.Water;
1942 }
1943 }
1944
1945 if (prim_geom != IntPtr.Zero)
1946 {
1947 if (m_NoColide)
1948 {
1949 d.GeomSetCategoryBits(prim_geom, 0);
1950 if (phys)
1951 d.GeomSetCollideBits(prim_geom, (int)CollisionCategories.Land);
1952 else
1953 {
1954 d.GeomSetCollideBits(prim_geom, 0);
1955 d.GeomDisable(prim_geom);
1956 }
1957 }
1958 else
1959 {
1960 d.GeomSetCategoryBits(prim_geom, (int)m_collisionCategories);
1961 d.GeomSetCollideBits(prim_geom, (int)m_collisionFlags);
1962 }
1963 }
1964 }
1965*/
1966
1967 private void changeSelectedStatus()
1968 {
1969 if (m_taintselected)
1970 {
1971 m_collisionCategories = CollisionCategories.Selected;
1972 m_collisionFlags = (CollisionCategories.Sensor | CollisionCategories.Space);
1973
1974 // We do the body disable soft twice because 'in theory' a collision could have happened
1975 // in between the disabling and the collision properties setting
1976 // which would wake the physical body up from a soft disabling and potentially cause it to fall
1977 // through the ground.
1978
1979 // NOTE FOR JOINTS: this doesn't always work for jointed assemblies because if you select
1980 // just one part of the assembly, the rest of the assembly is non-selected and still simulating,
1981 // so that causes the selected part to wake up and continue moving.
1982
1983 // even if you select all parts of a jointed assembly, it is not guaranteed that the entire
1984 // assembly will stop simulating during the selection, because of the lack of atomicity
1985 // of select operations (their processing could be interrupted by a thread switch, causing
1986 // simulation to continue before all of the selected object notifications trickle down to
1987 // the physics engine).
1988
1989 // e.g. we select 100 prims that are connected by joints. non-atomically, the first 50 are
1990 // selected and disabled. then, due to a thread switch, the selection processing is
1991 // interrupted and the physics engine continues to simulate, so the last 50 items, whose
1992 // selection was not yet processed, continues to simulate. this wakes up ALL of the
1993 // first 50 again. then the last 50 are disabled. then the first 50, which were just woken
1994 // up, start simulating again, which in turn wakes up the last 50.
1995
1996 if (m_isphysical)
1997 {
1998 disableBodySoft();
1999 }
2000
2001 if (prim_geom != IntPtr.Zero)
2002 {
2003 d.GeomSetCategoryBits(prim_geom, (int)m_collisionCategories);
2004 d.GeomSetCollideBits(prim_geom, (int)m_collisionFlags);
2005 if (m_NoColide)
2006 d.GeomDisable(prim_geom);
2007 }
2008
2009 if (m_isphysical)
2010 {
2011 disableBodySoft();
2012 }
2013 if (Body != IntPtr.Zero)
2014 {
2015 d.BodySetLinearVel(Body, 0f, 0f, 0f);
2016 d.BodySetForce(Body, 0f, 0f, 0f);
2017 d.BodySetAngularVel(Body, 0.0f, 0.0f, 0.0f);
2018 d.BodySetTorque(Body, 0.0f, 0.0f, 0.0f);
2019 }
2020 }
2021 else
2022 {
2023 if (m_isphantom && !m_isVolumeDetect)
2024 {
2025 m_collisionCategories = 0;
2026 if (m_isphysical)
2027 m_collisionFlags = CollisionCategories.Land;
2028 else
2029 m_collisionFlags = 0; // this case should not happen non physical phantoms should not have physics
2030 }
2031 else
2032 {
2033 m_collisionCategories = CollisionCategories.Geom;
2034 if (m_isphysical)
2035 m_collisionCategories |= CollisionCategories.Body;
2036
2037 m_collisionFlags = m_default_collisionFlags;
2038
2039 if (m_collidesLand)
2040 m_collisionFlags |= CollisionCategories.Land;
2041 if (m_collidesWater)
2042 m_collisionFlags |= CollisionCategories.Water;
2043 }
2044
2045 if (prim_geom != IntPtr.Zero)
2046 {
2047 if (m_NoColide)
2048 {
2049 d.GeomSetCategoryBits(prim_geom, 0);
2050 if (m_isphysical)
2051 d.GeomSetCollideBits(prim_geom, (int)CollisionCategories.Land);
2052 else
2053 {
2054 d.GeomSetCollideBits(prim_geom, 0);
2055 d.GeomDisable(prim_geom);
2056 }
2057 }
2058 else
2059 {
2060 d.GeomSetCategoryBits(prim_geom, (int)m_collisionCategories);
2061 d.GeomSetCollideBits(prim_geom, (int)m_collisionFlags);
2062 }
2063 }
2064 if (Body != IntPtr.Zero)
2065 {
2066 d.BodySetLinearVel(Body, 0f, 0f, 0f);
2067 d.BodySetForce(Body, 0f, 0f, 0f);
2068 d.BodySetAngularVel(Body, 0.0f, 0.0f, 0.0f);
2069 d.BodySetTorque(Body, 0.0f, 0.0f, 0.0f);
2070 }
2071
2072 if (m_isphysical)
2073 {
2074 if (Body != IntPtr.Zero)
2075 {
2076 enableBodySoft();
2077 }
2078 }
2079 }
2080
2081 resetCollisionAccounting();
2082 m_isSelected = m_taintselected;
2083 }//end changeSelectedStatus
2084
2085 public void ResetTaints()
2086 {
2087 m_taintposition = _position;
2088 m_taintrot = _orientation;
2089 m_taintPhysics = m_isphysical;
2090 m_taintselected = m_isSelected;
2091 m_taintsize = _size;
2092 m_taintshape = false;
2093 m_taintforce = false;
2094 m_taintdisable = false;
2095 m_taintVelocity = Vector3.Zero;
2096 }
2097
2098 public void CreateGeom(IntPtr m_targetSpace, IMesh _mesh)
2099 {
2100 bool gottrimesh = false;
2101
2102 m_NoColide = false; // assume all will go well
2103
2104 if (_triMeshData != IntPtr.Zero)
2105 {
2106 d.GeomTriMeshDataDestroy(_triMeshData);
2107 _triMeshData = IntPtr.Zero;
2108 }
2109
2110 if (_mesh != null)
2111 {
2112 gottrimesh = setMesh(_parent_scene, _mesh);
2113 if (!gottrimesh)
2114 {
2115 // getting a mesh failed,
2116 // lets go on having a basic box or sphere, with prim size but not coliding
2117 // physical colides with land, non with nothing
2118
2119 m_NoColide = true;
2120 }
2121 }
2122
2123 if (!gottrimesh)
2124 { // we will have a basic box or sphere
2125 IntPtr geo = IntPtr.Zero;
2126
2127 if (_pbs.ProfileShape == ProfileShape.HalfCircle && _pbs.PathCurve == (byte)Extrusion.Curve1
2128 && _size.X == _size.Y && _size.X == _size.Z)
2129 {
2130 // its a sphere
2131 _parent_scene.waitForSpaceUnlock(m_targetSpace);
2132 try
2133 {
2134 geo = d.CreateSphere(m_targetSpace, _size.X * 0.5f);
2135 }
2136 catch (Exception e)
2137 {
2138 m_log.WarnFormat("[PHYSICS]: Unable to create basic sphere for object {0}", e.Message);
2139 geo = IntPtr.Zero;
2140 ode.dunlock(_parent_scene.world);
2141 }
2142 }
2143 else // make it a box
2144 {
2145 _parent_scene.waitForSpaceUnlock(m_targetSpace);
2146 try
2147 {
2148 geo = d.CreateBox(m_targetSpace, _size.X, _size.Y, _size.Z);
2149 }
2150 catch (Exception e)
2151 {
2152 m_log.WarnFormat("[PHYSICS]: Unable to create basic sphere for object {0}", e.Message);
2153 geo = IntPtr.Zero;
2154 ode.dunlock(_parent_scene.world);
2155 }
2156 }
2157
2158 if (geo == IntPtr.Zero) // if this happens it must be fixed
2159 {
2160 // if it does lets stop what we can
2161 // not sure this will not flame...
2162
2163 m_taintremove = true;
2164 _parent_scene.AddPhysicsActorTaint(this);
2165 return;
2166 }
2167
2168 SetGeom(geo); // this processes the m_NoColide
2169 }
2170 }
2171
2172 public void changeadd(float timestep)
2173 {
2174 int[] iprimspaceArrItem = _parent_scene.calculateSpaceArrayItemFromPos(_position);
2175 IntPtr targetspace = _parent_scene.calculateSpaceForGeom(_position);
2176
2177 if (targetspace == IntPtr.Zero)
2178 targetspace = _parent_scene.createprimspace(iprimspaceArrItem[0], iprimspaceArrItem[1]);
2179
2180 m_targetSpace = targetspace;
2181
2182 if (_mesh == null) // && m_meshfailed == false)
2183 {
2184 if (_parent_scene.needsMeshing(_pbs))
2185 {
2186 bool convex;
2187 if (m_shapetype == 2)
2188 convex = true;
2189 else
2190 convex = false;
2191 try
2192 {
2193 _mesh = _parent_scene.mesher.CreateMesh(m_primName, _pbs, _size, (int)LevelOfDetail.High, true,convex);
2194 }
2195 catch
2196 {
2197 //Don't continuously try to mesh prims when meshing has failed
2198 m_meshfailed = true;
2199 _mesh = null;
2200 m_log.WarnFormat("[PHYSICS]: changeAdd CreateMesh fail on prim {0} at <{1},{2},{3}>", Name, _position.X, _position.Y, _position.Z);
2201 }
2202 }
2203 }
2204
2205 lock (_parent_scene.OdeLock)
2206 {
2207 CreateGeom(m_targetSpace, _mesh);
2208
2209 if (prim_geom != IntPtr.Zero)
2210 {
2211 d.GeomSetPosition(prim_geom, _position.X, _position.Y, _position.Z);
2212 d.Quaternion myrot = new d.Quaternion();
2213 myrot.X = _orientation.X;
2214 myrot.Y = _orientation.Y;
2215 myrot.Z = _orientation.Z;
2216 myrot.W = _orientation.W;
2217 d.GeomSetQuaternion(prim_geom, ref myrot);
2218 }
2219
2220 if (m_isphysical && Body == IntPtr.Zero)
2221 {
2222 enableBody();
2223 }
2224 }
2225
2226 changeSelectedStatus();
2227
2228 m_taintadd = false;
2229 }
2230
2231 public void changemove(float timestep)
2232 {
2233 if (m_isphysical)
2234 {
2235 // if (!m_disabled && !m_taintremove && !childPrim) After one edit m_disabled is sometimes set, disabling further edits!
2236 if (!m_taintremove && !childPrim)
2237 {
2238 if (Body == IntPtr.Zero)
2239 enableBody();
2240 //Prim auto disable after 20 frames,
2241 //if you move it, re-enable the prim manually.
2242 if (_parent != null)
2243 {
2244 if (m_linkJoint != IntPtr.Zero)
2245 {
2246 d.JointDestroy(m_linkJoint);
2247 m_linkJoint = IntPtr.Zero;
2248 }
2249 }
2250 if (Body != IntPtr.Zero)
2251 {
2252 d.BodySetPosition(Body, _position.X, _position.Y, _position.Z);
2253
2254 if (_parent != null)
2255 {
2256 OdePrim odParent = (OdePrim)_parent;
2257 if (Body != (IntPtr)0 && odParent.Body != (IntPtr)0 && Body != odParent.Body)
2258 {
2259 // KF: Fixed Joints were removed? Anyway - this Console.WriteLine does not show up, so routine is not used??
2260 Console.WriteLine("ODEPrim JointCreateFixed !!!");
2261 m_linkJoint = d.JointCreateFixed(_parent_scene.world, _linkJointGroup);
2262 d.JointAttach(m_linkJoint, Body, odParent.Body);
2263 d.JointSetFixed(m_linkJoint);
2264 }
2265 }
2266 d.BodyEnable(Body);
2267 if (m_type != Vehicle.TYPE_NONE)
2268 {
2269 Enable(Body, _parent_scene);
2270 }
2271 }
2272 else
2273 {
2274 m_log.Warn("[PHYSICS]: Body Still null after enableBody(). This is a crash scenario.");
2275 }
2276 }
2277 //else
2278 // {
2279 //m_log.Debug("[BUG]: race!");
2280 //}
2281 }
2282 else
2283 {
2284 // string primScenAvatarIn = _parent_scene.whichspaceamIin(_position);
2285 // int[] arrayitem = _parent_scene.calculateSpaceArrayItemFromPos(_position);
2286 _parent_scene.waitForSpaceUnlock(m_targetSpace);
2287
2288 IntPtr tempspace = _parent_scene.recalculateSpaceForGeom(prim_geom, _position, m_targetSpace);
2289 m_targetSpace = tempspace;
2290
2291 _parent_scene.waitForSpaceUnlock(m_targetSpace);
2292 if (prim_geom != IntPtr.Zero)
2293 {
2294 d.GeomSetPosition(prim_geom, _position.X, _position.Y, _position.Z);
2295
2296 _parent_scene.waitForSpaceUnlock(m_targetSpace);
2297 d.SpaceAdd(m_targetSpace, prim_geom);
2298 }
2299 }
2300
2301 changeSelectedStatus();
2302
2303 resetCollisionAccounting();
2304 m_taintposition = _position;
2305 }
2306
2307 public void rotate(float timestep)
2308 {
2309 d.Quaternion myrot = new d.Quaternion();
2310 myrot.X = _orientation.X;
2311 myrot.Y = _orientation.Y;
2312 myrot.Z = _orientation.Z;
2313 myrot.W = _orientation.W;
2314 if (Body != IntPtr.Zero)
2315 {
2316 // KF: If this is a root prim do BodySet
2317 d.BodySetQuaternion(Body, ref myrot);
2318 }
2319 else
2320 {
2321 // daughter prim, do Geom set
2322 d.GeomSetQuaternion(prim_geom, ref myrot);
2323 }
2324
2325 resetCollisionAccounting();
2326 m_taintrot = _orientation;
2327 }
2328
2329 private void resetCollisionAccounting()
2330 {
2331 m_collisionscore = 0;
2332 m_interpenetrationcount = 0;
2333 m_disabled = false;
2334 }
2335
2336 public void changedisable(float timestep)
2337 {
2338 m_disabled = true;
2339 if (Body != IntPtr.Zero)
2340 {
2341 d.BodyDisable(Body);
2342 Body = IntPtr.Zero;
2343 }
2344
2345 m_taintdisable = false;
2346 }
2347
2348 public void changePhysicsStatus(float timestep)
2349 {
2350 if (m_isphysical == true)
2351 {
2352 if (Body == IntPtr.Zero)
2353 {
2354 if (_pbs.SculptEntry && _parent_scene.meshSculptedPrim)
2355 {
2356 changeshape(2f);
2357 }
2358 else
2359 {
2360 enableBody();
2361 }
2362 }
2363 }
2364 else
2365 {
2366 if (Body != IntPtr.Zero)
2367 {
2368 if (_pbs.SculptEntry && _parent_scene.meshSculptedPrim)
2369 {
2370 _mesh = null;
2371 changeadd(2f);
2372 }
2373 if (childPrim)
2374 {
2375 if (_parent != null)
2376 {
2377 OdePrim parent = (OdePrim)_parent;
2378 parent.ChildDelink(this);
2379 }
2380 }
2381 else
2382 {
2383 disableBody();
2384 }
2385 }
2386 }
2387
2388 changeSelectedStatus();
2389
2390 resetCollisionAccounting();
2391 m_taintPhysics = m_isphysical;
2392 }
2393
2394 public void changesize(float timestamp)
2395 {
2396
2397 string oldname = _parent_scene.geom_name_map[prim_geom];
2398
2399 if (_size.X <= 0) _size.X = 0.01f;
2400 if (_size.Y <= 0) _size.Y = 0.01f;
2401 if (_size.Z <= 0) _size.Z = 0.01f;
2402
2403 // Cleanup of old prim geometry
2404 if (_mesh != null)
2405 {
2406 // Cleanup meshing here
2407 }
2408 //kill body to rebuild
2409 if (IsPhysical && Body != IntPtr.Zero)
2410 {
2411 if (childPrim)
2412 {
2413 if (_parent != null)
2414 {
2415 OdePrim parent = (OdePrim)_parent;
2416 parent.ChildDelink(this);
2417 }
2418 }
2419 else
2420 {
2421 disableBody();
2422 }
2423 }
2424 if (d.SpaceQuery(m_targetSpace, prim_geom))
2425 {
2426 _parent_scene.waitForSpaceUnlock(m_targetSpace);
2427 d.SpaceRemove(m_targetSpace, prim_geom);
2428 }
2429 // we don't need to do space calculation because the client sends a position update also.
2430
2431 // Construction of new prim
2432 if (_parent_scene.needsMeshing(_pbs))// && m_meshfailed == false)
2433 {
2434 float meshlod = _parent_scene.meshSculptLOD;
2435
2436 if (IsPhysical)
2437 meshlod = _parent_scene.MeshSculptphysicalLOD;
2438 // Don't need to re-enable body.. it's done in SetMesh
2439
2440 IMesh mesh = null;
2441
2442 try
2443 {
2444 if (_parent_scene.needsMeshing(_pbs))
2445 mesh = _parent_scene.mesher.CreateMesh(oldname, _pbs, _size, (int)LevelOfDetail.High, true);
2446 }
2447 catch
2448 {
2449 m_meshfailed = true;
2450 mesh = null;
2451 m_log.WarnFormat("[PHYSICS]: changeSize CreateMesh fail on prim {0} at <{1},{2},{3}>", Name, _position.X, _position.Y, _position.Z);
2452 }
2453
2454 //IMesh mesh = _parent_scene.mesher.CreateMesh(oldname, _pbs, _size, meshlod, IsPhysical);
2455 CreateGeom(m_targetSpace, mesh);
2456 }
2457 else
2458 {
2459 _mesh = null;
2460 CreateGeom(m_targetSpace, _mesh);
2461 }
2462
2463 d.GeomSetPosition(prim_geom, _position.X, _position.Y, _position.Z);
2464 d.Quaternion myrot = new d.Quaternion();
2465 myrot.X = _orientation.X;
2466 myrot.Y = _orientation.Y;
2467 myrot.Z = _orientation.Z;
2468 myrot.W = _orientation.W;
2469 d.GeomSetQuaternion(prim_geom, ref myrot);
2470
2471 //d.GeomBoxSetLengths(prim_geom, _size.X, _size.Y, _size.Z);
2472 if (IsPhysical && Body == IntPtr.Zero && !childPrim)
2473 {
2474 // Re creates body on size.
2475 // EnableBody also does setMass()
2476 enableBody();
2477 d.BodyEnable(Body);
2478 }
2479
2480 _parent_scene.geom_name_map[prim_geom] = oldname;
2481
2482 changeSelectedStatus();
2483 if (childPrim)
2484 {
2485 if (_parent is OdePrim)
2486 {
2487 OdePrim parent = (OdePrim)_parent;
2488 parent.ChildSetGeom(this);
2489 }
2490 }
2491 resetCollisionAccounting();
2492 m_taintsize = _size;
2493 }
2494
2495
2496
2497 public void changefloatonwater(float timestep)
2498 {
2499 m_collidesWater = m_taintCollidesWater;
2500
2501 if (prim_geom != IntPtr.Zero)
2502 {
2503 if (m_collidesWater)
2504 {
2505 m_collisionFlags |= CollisionCategories.Water;
2506 }
2507 else
2508 {
2509 m_collisionFlags &= ~CollisionCategories.Water;
2510 }
2511 d.GeomSetCollideBits(prim_geom, (int)m_collisionFlags);
2512 }
2513 }
2514
2515 public void changeshape(float timestamp)
2516 {
2517 string oldname = _parent_scene.geom_name_map[prim_geom];
2518
2519 // Cleanup of old prim geometry and Bodies
2520 if (IsPhysical && Body != IntPtr.Zero)
2521 {
2522 if (childPrim)
2523 {
2524 if (_parent != null)
2525 {
2526 OdePrim parent = (OdePrim)_parent;
2527 parent.ChildDelink(this);
2528 }
2529 }
2530 else
2531 {
2532 disableBody();
2533 }
2534 }
2535
2536
2537 // we don't need to do space calculation because the client sends a position update also.
2538 if (_size.X <= 0) _size.X = 0.01f;
2539 if (_size.Y <= 0) _size.Y = 0.01f;
2540 if (_size.Z <= 0) _size.Z = 0.01f;
2541 // Construction of new prim
2542
2543 if (_parent_scene.needsMeshing(_pbs))// && m_meshfailed == false)
2544 {
2545 // Don't need to re-enable body.. it's done in SetMesh
2546 float meshlod = _parent_scene.meshSculptLOD;
2547 IMesh mesh;
2548
2549 if (IsPhysical)
2550 meshlod = _parent_scene.MeshSculptphysicalLOD;
2551
2552 bool convex;
2553 if (m_shapetype == 2)
2554 convex = true;
2555 else
2556 convex = false;
2557
2558 try
2559 {
2560 mesh = _parent_scene.mesher.CreateMesh(oldname, _pbs, _size, (int)LevelOfDetail.High, true, convex);
2561 }
2562 catch
2563 {
2564 mesh = null;
2565 m_meshfailed = true;
2566 m_log.WarnFormat("[PHYSICS]: changeAdd CreateMesh fail on prim {0} at <{1},{2},{3}>", Name, _position.X, _position.Y, _position.Z);
2567 }
2568
2569 CreateGeom(m_targetSpace, mesh);
2570
2571 // createmesh returns null when it doesn't mesh.
2572 }
2573 else
2574 {
2575 _mesh = null;
2576 CreateGeom(m_targetSpace, null);
2577 }
2578
2579 d.GeomSetPosition(prim_geom, _position.X, _position.Y, _position.Z);
2580 d.Quaternion myrot = new d.Quaternion();
2581 //myrot.W = _orientation.w;
2582 myrot.W = _orientation.W;
2583 myrot.X = _orientation.X;
2584 myrot.Y = _orientation.Y;
2585 myrot.Z = _orientation.Z;
2586 d.GeomSetQuaternion(prim_geom, ref myrot);
2587
2588 //d.GeomBoxSetLengths(prim_geom, _size.X, _size.Y, _size.Z);
2589 if (IsPhysical && Body == IntPtr.Zero)
2590 {
2591 // Re creates body on size.
2592 // EnableBody also does setMass()
2593 enableBody();
2594 if (Body != IntPtr.Zero)
2595 {
2596 d.BodyEnable(Body);
2597 }
2598 }
2599 _parent_scene.geom_name_map[prim_geom] = oldname;
2600
2601 changeSelectedStatus();
2602 if (childPrim)
2603 {
2604 if (_parent is OdePrim)
2605 {
2606 OdePrim parent = (OdePrim)_parent;
2607 parent.ChildSetGeom(this);
2608 }
2609 }
2610 resetCollisionAccounting();
2611 m_taintshape = false;
2612 }
2613
2614 public void changeAddForce(float timestamp)
2615 {
2616 if (!m_isSelected)
2617 {
2618 lock (m_forcelist)
2619 {
2620 //m_log.Info("[PHYSICS]: dequeing forcelist");
2621 if (IsPhysical)
2622 {
2623 Vector3 iforce = Vector3.Zero;
2624 int i = 0;
2625 try
2626 {
2627 for (i = 0; i < m_forcelist.Count; i++)
2628 {
2629
2630 iforce = iforce + (m_forcelist[i] * 100);
2631 }
2632 }
2633 catch (IndexOutOfRangeException)
2634 {
2635 m_forcelist = new List<Vector3>();
2636 m_collisionscore = 0;
2637 m_interpenetrationcount = 0;
2638 m_taintforce = false;
2639 return;
2640 }
2641 catch (ArgumentOutOfRangeException)
2642 {
2643 m_forcelist = new List<Vector3>();
2644 m_collisionscore = 0;
2645 m_interpenetrationcount = 0;
2646 m_taintforce = false;
2647 return;
2648 }
2649 d.BodyEnable(Body);
2650
2651 d.BodyAddForce(Body, iforce.X, iforce.Y, iforce.Z);
2652 }
2653 m_forcelist.Clear();
2654 }
2655
2656 m_collisionscore = 0;
2657 m_interpenetrationcount = 0;
2658 }
2659
2660 m_taintforce = false;
2661
2662 }
2663
2664
2665
2666 public void changeSetTorque(float timestamp)
2667 {
2668 if (!m_isSelected)
2669 {
2670 if (IsPhysical && Body != IntPtr.Zero)
2671 {
2672 d.BodySetTorque(Body, m_taintTorque.X, m_taintTorque.Y, m_taintTorque.Z);
2673 }
2674 }
2675
2676 m_taintTorque = Vector3.Zero;
2677 }
2678
2679 public void changeAddAngularForce(float timestamp)
2680 {
2681 if (!m_isSelected)
2682 {
2683 lock (m_angularforcelist)
2684 {
2685 //m_log.Info("[PHYSICS]: dequeing forcelist");
2686 if (IsPhysical)
2687 {
2688 Vector3 iforce = Vector3.Zero;
2689 for (int i = 0; i < m_angularforcelist.Count; i++)
2690 {
2691 iforce = iforce + (m_angularforcelist[i] * 100);
2692 }
2693 d.BodyEnable(Body);
2694 d.BodyAddTorque(Body, iforce.X, iforce.Y, iforce.Z);
2695
2696 }
2697 m_angularforcelist.Clear();
2698 }
2699
2700 m_collisionscore = 0;
2701 m_interpenetrationcount = 0;
2702 }
2703
2704 m_taintaddangularforce = false;
2705 }
2706
2707 private void changevelocity(float timestep)
2708 {
2709 if (!m_isSelected)
2710 {
2711 Thread.Sleep(20);
2712 if (IsPhysical)
2713 {
2714 if (Body != IntPtr.Zero)
2715 d.BodySetLinearVel(Body, m_taintVelocity.X, m_taintVelocity.Y, m_taintVelocity.Z);
2716 }
2717
2718 //resetCollisionAccounting();
2719 }
2720 m_taintVelocity = Vector3.Zero;
2721 }
2722
2723 public void UpdatePositionAndVelocity()
2724 {
2725 return; // moved to the Move () method
2726 }
2727
2728 public d.Mass FromMatrix4(Matrix4 pMat, ref d.Mass obj)
2729 {
2730 obj.I.M00 = pMat[0, 0];
2731 obj.I.M01 = pMat[0, 1];
2732 obj.I.M02 = pMat[0, 2];
2733 obj.I.M10 = pMat[1, 0];
2734 obj.I.M11 = pMat[1, 1];
2735 obj.I.M12 = pMat[1, 2];
2736 obj.I.M20 = pMat[2, 0];
2737 obj.I.M21 = pMat[2, 1];
2738 obj.I.M22 = pMat[2, 2];
2739 return obj;
2740 }
2741
2742 public override void SubscribeEvents(int ms)
2743 {
2744 m_eventsubscription = ms;
2745 _parent_scene.addCollisionEventReporting(this);
2746 }
2747
2748 public override void UnSubscribeEvents()
2749 {
2750 _parent_scene.remCollisionEventReporting(this);
2751 m_eventsubscription = 0;
2752 }
2753
2754 public void AddCollisionEvent(uint CollidedWith, ContactPoint contact)
2755 {
2756 if (CollisionEventsThisFrame == null)
2757 CollisionEventsThisFrame = new CollisionEventUpdate();
2758 CollisionEventsThisFrame.AddCollider(CollidedWith, contact);
2759 }
2760
2761 public void SendCollisions()
2762 {
2763 if (CollisionEventsThisFrame == null)
2764 return;
2765
2766 base.SendCollisionUpdate(CollisionEventsThisFrame);
2767
2768 if (CollisionEventsThisFrame.m_objCollisionList.Count == 0)
2769 CollisionEventsThisFrame = null;
2770 else
2771 CollisionEventsThisFrame = new CollisionEventUpdate();
2772 }
2773
2774 public override bool SubscribedEvents()
2775 {
2776 if (m_eventsubscription > 0)
2777 return true;
2778 return false;
2779 }
2780
2781 public static Matrix4 Inverse(Matrix4 pMat)
2782 {
2783 if (determinant3x3(pMat) == 0)
2784 {
2785 return Matrix4.Identity; // should probably throw an error. singluar matrix inverse not possible
2786 }
2787
2788
2789
2790 return (Adjoint(pMat) / determinant3x3(pMat));
2791 }
2792
2793 public static Matrix4 Adjoint(Matrix4 pMat)
2794 {
2795 Matrix4 adjointMatrix = new Matrix4();
2796 for (int i = 0; i < 4; i++)
2797 {
2798 for (int j = 0; j < 4; j++)
2799 {
2800 Matrix4SetValue(ref adjointMatrix, i, j, (float)(Math.Pow(-1, i + j) * (determinant3x3(Minor(pMat, i, j)))));
2801 }
2802 }
2803
2804 adjointMatrix = Transpose(adjointMatrix);
2805 return adjointMatrix;
2806 }
2807
2808 public static Matrix4 Minor(Matrix4 matrix, int iRow, int iCol)
2809 {
2810 Matrix4 minor = new Matrix4();
2811 int m = 0, n = 0;
2812 for (int i = 0; i < 4; i++)
2813 {
2814 if (i == iRow)
2815 continue;
2816 n = 0;
2817 for (int j = 0; j < 4; j++)
2818 {
2819 if (j == iCol)
2820 continue;
2821 Matrix4SetValue(ref minor, m, n, matrix[i, j]);
2822 n++;
2823 }
2824 m++;
2825 }
2826 return minor;
2827 }
2828
2829 public static Matrix4 Transpose(Matrix4 pMat)
2830 {
2831 Matrix4 transposeMatrix = new Matrix4();
2832 for (int i = 0; i < 4; i++)
2833 for (int j = 0; j < 4; j++)
2834 Matrix4SetValue(ref transposeMatrix, i, j, pMat[j, i]);
2835 return transposeMatrix;
2836 }
2837
2838 public static void Matrix4SetValue(ref Matrix4 pMat, int r, int c, float val)
2839 {
2840 switch (r)
2841 {
2842 case 0:
2843 switch (c)
2844 {
2845 case 0:
2846 pMat.M11 = val;
2847 break;
2848 case 1:
2849 pMat.M12 = val;
2850 break;
2851 case 2:
2852 pMat.M13 = val;
2853 break;
2854 case 3:
2855 pMat.M14 = val;
2856 break;
2857 }
2858
2859 break;
2860 case 1:
2861 switch (c)
2862 {
2863 case 0:
2864 pMat.M21 = val;
2865 break;
2866 case 1:
2867 pMat.M22 = val;
2868 break;
2869 case 2:
2870 pMat.M23 = val;
2871 break;
2872 case 3:
2873 pMat.M24 = val;
2874 break;
2875 }
2876
2877 break;
2878 case 2:
2879 switch (c)
2880 {
2881 case 0:
2882 pMat.M31 = val;
2883 break;
2884 case 1:
2885 pMat.M32 = val;
2886 break;
2887 case 2:
2888 pMat.M33 = val;
2889 break;
2890 case 3:
2891 pMat.M34 = val;
2892 break;
2893 }
2894
2895 break;
2896 case 3:
2897 switch (c)
2898 {
2899 case 0:
2900 pMat.M41 = val;
2901 break;
2902 case 1:
2903 pMat.M42 = val;
2904 break;
2905 case 2:
2906 pMat.M43 = val;
2907 break;
2908 case 3:
2909 pMat.M44 = val;
2910 break;
2911 }
2912
2913 break;
2914 }
2915 }
2916 private static float determinant3x3(Matrix4 pMat)
2917 {
2918 float det = 0;
2919 float diag1 = pMat[0, 0] * pMat[1, 1] * pMat[2, 2];
2920 float diag2 = pMat[0, 1] * pMat[2, 1] * pMat[2, 0];
2921 float diag3 = pMat[0, 2] * pMat[1, 0] * pMat[2, 1];
2922 float diag4 = pMat[2, 0] * pMat[1, 1] * pMat[0, 2];
2923 float diag5 = pMat[2, 1] * pMat[1, 2] * pMat[0, 0];
2924 float diag6 = pMat[2, 2] * pMat[1, 0] * pMat[0, 1];
2925
2926 det = diag1 + diag2 + diag3 - (diag4 + diag5 + diag6);
2927 return det;
2928
2929 }
2930
2931 private static void DMassCopy(ref d.Mass src, ref d.Mass dst)
2932 {
2933 dst.c.W = src.c.W;
2934 dst.c.X = src.c.X;
2935 dst.c.Y = src.c.Y;
2936 dst.c.Z = src.c.Z;
2937 dst.mass = src.mass;
2938 dst.I.M00 = src.I.M00;
2939 dst.I.M01 = src.I.M01;
2940 dst.I.M02 = src.I.M02;
2941 dst.I.M10 = src.I.M10;
2942 dst.I.M11 = src.I.M11;
2943 dst.I.M12 = src.I.M12;
2944 dst.I.M20 = src.I.M20;
2945 dst.I.M21 = src.I.M21;
2946 dst.I.M22 = src.I.M22;
2947 }
2948
2949 public override void SetMaterial(int pMaterial)
2950 {
2951 m_material = pMaterial;
2952 }
2953
2954 internal void ProcessFloatVehicleParam(Vehicle pParam, float pValue)
2955 {
2956 switch (pParam)
2957 {
2958 case Vehicle.ANGULAR_DEFLECTION_EFFICIENCY:
2959 if (pValue < 0.01f) pValue = 0.01f;
2960 // m_angularDeflectionEfficiency = pValue;
2961 break;
2962 case Vehicle.ANGULAR_DEFLECTION_TIMESCALE:
2963 if (pValue < 0.1f) pValue = 0.1f;
2964 // m_angularDeflectionTimescale = pValue;
2965 break;
2966 case Vehicle.ANGULAR_MOTOR_DECAY_TIMESCALE:
2967 if (pValue < 0.3f) pValue = 0.3f;
2968 m_angularMotorDecayTimescale = pValue;
2969 break;
2970 case Vehicle.ANGULAR_MOTOR_TIMESCALE:
2971 if (pValue < 0.3f) pValue = 0.3f;
2972 m_angularMotorTimescale = pValue;
2973 break;
2974 case Vehicle.BANKING_EFFICIENCY:
2975 if (pValue < 0.01f) pValue = 0.01f;
2976 // m_bankingEfficiency = pValue;
2977 break;
2978 case Vehicle.BANKING_MIX:
2979 if (pValue < 0.01f) pValue = 0.01f;
2980 // m_bankingMix = pValue;
2981 break;
2982 case Vehicle.BANKING_TIMESCALE:
2983 if (pValue < 0.01f) pValue = 0.01f;
2984 // m_bankingTimescale = pValue;
2985 break;
2986 case Vehicle.BUOYANCY:
2987 if (pValue < -1f) pValue = -1f;
2988 if (pValue > 1f) pValue = 1f;
2989 m_VehicleBuoyancy = pValue;
2990 break;
2991 // case Vehicle.HOVER_EFFICIENCY:
2992 // if (pValue < 0f) pValue = 0f;
2993 // if (pValue > 1f) pValue = 1f;
2994 // m_VhoverEfficiency = pValue;
2995 // break;
2996 case Vehicle.HOVER_HEIGHT:
2997 m_VhoverHeight = pValue;
2998 break;
2999 case Vehicle.HOVER_TIMESCALE:
3000 if (pValue < 0.1f) pValue = 0.1f;
3001 m_VhoverTimescale = pValue;
3002 break;
3003 case Vehicle.LINEAR_DEFLECTION_EFFICIENCY:
3004 if (pValue < 0.01f) pValue = 0.01f;
3005 // m_linearDeflectionEfficiency = pValue;
3006 break;
3007 case Vehicle.LINEAR_DEFLECTION_TIMESCALE:
3008 if (pValue < 0.01f) pValue = 0.01f;
3009 // m_linearDeflectionTimescale = pValue;
3010 break;
3011 case Vehicle.LINEAR_MOTOR_DECAY_TIMESCALE:
3012 if (pValue < 0.3f) pValue = 0.3f;
3013 m_linearMotorDecayTimescale = pValue;
3014 break;
3015 case Vehicle.LINEAR_MOTOR_TIMESCALE:
3016 if (pValue < 0.1f) pValue = 0.1f;
3017 m_linearMotorTimescale = pValue;
3018 break;
3019 case Vehicle.VERTICAL_ATTRACTION_EFFICIENCY:
3020 if (pValue < 0.1f) pValue = 0.1f; // Less goes unstable
3021 if (pValue > 1.0f) pValue = 1.0f;
3022 m_verticalAttractionEfficiency = pValue;
3023 break;
3024 case Vehicle.VERTICAL_ATTRACTION_TIMESCALE:
3025 if (pValue < 0.1f) pValue = 0.1f;
3026 m_verticalAttractionTimescale = pValue;
3027 break;
3028
3029 // These are vector properties but the engine lets you use a single float value to
3030 // set all of the components to the same value
3031 case Vehicle.ANGULAR_FRICTION_TIMESCALE:
3032 if (pValue > 30f) pValue = 30f;
3033 if (pValue < 0.1f) pValue = 0.1f;
3034 m_angularFrictionTimescale = new Vector3(pValue, pValue, pValue);
3035 break;
3036 case Vehicle.ANGULAR_MOTOR_DIRECTION:
3037 m_angularMotorDirection = new Vector3(pValue, pValue, pValue);
3038 UpdateAngDecay();
3039 break;
3040 case Vehicle.LINEAR_FRICTION_TIMESCALE:
3041 if (pValue < 0.1f) pValue = 0.1f;
3042 m_linearFrictionTimescale = new Vector3(pValue, pValue, pValue);
3043 break;
3044 case Vehicle.LINEAR_MOTOR_DIRECTION:
3045 m_linearMotorDirection = new Vector3(pValue, pValue, pValue);
3046 UpdateLinDecay();
3047 break;
3048 case Vehicle.LINEAR_MOTOR_OFFSET:
3049 // m_linearMotorOffset = new Vector3(pValue, pValue, pValue);
3050 break;
3051
3052 }
3053
3054 }//end ProcessFloatVehicleParam
3055
3056 internal void ProcessVectorVehicleParam(Vehicle pParam, Vector3 pValue)
3057 {
3058 switch (pParam)
3059 {
3060 case Vehicle.ANGULAR_FRICTION_TIMESCALE:
3061 if (pValue.X > 30f) pValue.X = 30f;
3062 if (pValue.X < 0.1f) pValue.X = 0.1f;
3063 if (pValue.Y > 30f) pValue.Y = 30f;
3064 if (pValue.Y < 0.1f) pValue.Y = 0.1f;
3065 if (pValue.Z > 30f) pValue.Z = 30f;
3066 if (pValue.Z < 0.1f) pValue.Z = 0.1f;
3067 m_angularFrictionTimescale = new Vector3(pValue.X, pValue.Y, pValue.Z);
3068 break;
3069 case Vehicle.ANGULAR_MOTOR_DIRECTION:
3070 m_angularMotorDirection = new Vector3(pValue.X, pValue.Y, pValue.Z);
3071 // Limit requested angular speed to 2 rps= 4 pi rads/sec
3072 if (m_angularMotorDirection.X > 12.56f) m_angularMotorDirection.X = 12.56f;
3073 if (m_angularMotorDirection.X < -12.56f) m_angularMotorDirection.X = -12.56f;
3074 if (m_angularMotorDirection.Y > 12.56f) m_angularMotorDirection.Y = 12.56f;
3075 if (m_angularMotorDirection.Y < -12.56f) m_angularMotorDirection.Y = -12.56f;
3076 if (m_angularMotorDirection.Z > 12.56f) m_angularMotorDirection.Z = 12.56f;
3077 if (m_angularMotorDirection.Z < -12.56f) m_angularMotorDirection.Z = -12.56f;
3078 UpdateAngDecay();
3079 break;
3080 case Vehicle.LINEAR_FRICTION_TIMESCALE:
3081 if (pValue.X < 0.1f) pValue.X = 0.1f;
3082 if (pValue.Y < 0.1f) pValue.Y = 0.1f;
3083 if (pValue.Z < 0.1f) pValue.Z = 0.1f;
3084 m_linearFrictionTimescale = new Vector3(pValue.X, pValue.Y, pValue.Z);
3085 break;
3086 case Vehicle.LINEAR_MOTOR_DIRECTION:
3087 m_linearMotorDirection = new Vector3(pValue.X, pValue.Y, pValue.Z); // velocity requested by LSL, for max limiting
3088 UpdateLinDecay();
3089 break;
3090 case Vehicle.LINEAR_MOTOR_OFFSET:
3091 // m_linearMotorOffset = new Vector3(pValue.X, pValue.Y, pValue.Z);
3092 break;
3093 }
3094
3095 }//end ProcessVectorVehicleParam
3096
3097 internal void ProcessRotationVehicleParam(Vehicle pParam, Quaternion pValue)
3098 {
3099 switch (pParam)
3100 {
3101 case Vehicle.REFERENCE_FRAME:
3102 // m_referenceFrame = pValue;
3103 break;
3104 }
3105
3106 }//end ProcessRotationVehicleParam
3107
3108 internal void ProcessVehicleFlags(int pParam, bool remove)
3109 {
3110 if (remove)
3111 {
3112 m_flags &= ~((VehicleFlag)pParam);
3113 }
3114 else
3115 {
3116 m_flags |= (VehicleFlag)pParam;
3117 }
3118 }
3119
3120 internal void ProcessTypeChange(Vehicle pType)
3121 {
3122 // Set Defaults For Type
3123 m_type = pType;
3124 switch (pType)
3125 {
3126 case Vehicle.TYPE_SLED:
3127 m_linearFrictionTimescale = new Vector3(30, 1, 1000);
3128 m_angularFrictionTimescale = new Vector3(30, 30, 30);
3129 // m_lLinMotorVel = Vector3.Zero;
3130 m_linearMotorTimescale = 1000;
3131 m_linearMotorDecayTimescale = 120;
3132 m_angularMotorDirection = Vector3.Zero;
3133 m_angularMotorDVel = Vector3.Zero;
3134 m_angularMotorTimescale = 1000;
3135 m_angularMotorDecayTimescale = 120;
3136 m_VhoverHeight = 0;
3137 // m_VhoverEfficiency = 1;
3138 m_VhoverTimescale = 10;
3139 m_VehicleBuoyancy = 0;
3140 // m_linearDeflectionEfficiency = 1;
3141 // m_linearDeflectionTimescale = 1;
3142 // m_angularDeflectionEfficiency = 1;
3143 // m_angularDeflectionTimescale = 1000;
3144 // m_bankingEfficiency = 0;
3145 // m_bankingMix = 1;
3146 // m_bankingTimescale = 10;
3147 // m_referenceFrame = Quaternion.Identity;
3148 m_flags &=
3149 ~(VehicleFlag.HOVER_WATER_ONLY | VehicleFlag.HOVER_TERRAIN_ONLY |
3150 VehicleFlag.HOVER_GLOBAL_HEIGHT | VehicleFlag.HOVER_UP_ONLY);
3151 m_flags |= (VehicleFlag.NO_DEFLECTION_UP | VehicleFlag.LIMIT_ROLL_ONLY | VehicleFlag.LIMIT_MOTOR_UP);
3152 break;
3153 case Vehicle.TYPE_CAR:
3154 m_linearFrictionTimescale = new Vector3(100, 2, 1000);
3155 m_angularFrictionTimescale = new Vector3(30, 30, 30); // was 1000, but sl max frict time is 30.
3156 // m_lLinMotorVel = Vector3.Zero;
3157 m_linearMotorTimescale = 1;
3158 m_linearMotorDecayTimescale = 60;
3159 m_angularMotorDirection = Vector3.Zero;
3160 m_angularMotorDVel = Vector3.Zero;
3161 m_angularMotorTimescale = 1;
3162 m_angularMotorDecayTimescale = 0.8f;
3163 m_VhoverHeight = 0;
3164 // m_VhoverEfficiency = 0;
3165 m_VhoverTimescale = 1000;
3166 m_VehicleBuoyancy = 0;
3167 // // m_linearDeflectionEfficiency = 1;
3168 // // m_linearDeflectionTimescale = 2;
3169 // // m_angularDeflectionEfficiency = 0;
3170 // m_angularDeflectionTimescale = 10;
3171 m_verticalAttractionEfficiency = 1f;
3172 m_verticalAttractionTimescale = 10f;
3173 // m_bankingEfficiency = -0.2f;
3174 // m_bankingMix = 1;
3175 // m_bankingTimescale = 1;
3176 // m_referenceFrame = Quaternion.Identity;
3177 m_flags &= ~(VehicleFlag.HOVER_WATER_ONLY | VehicleFlag.HOVER_TERRAIN_ONLY | VehicleFlag.HOVER_GLOBAL_HEIGHT);
3178 m_flags |= (VehicleFlag.NO_DEFLECTION_UP | VehicleFlag.LIMIT_ROLL_ONLY | VehicleFlag.HOVER_UP_ONLY |
3179 VehicleFlag.LIMIT_MOTOR_UP);
3180 break;
3181 case Vehicle.TYPE_BOAT:
3182 m_linearFrictionTimescale = new Vector3(10, 3, 2);
3183 m_angularFrictionTimescale = new Vector3(10, 10, 10);
3184 // m_lLinMotorVel = Vector3.Zero;
3185 m_linearMotorTimescale = 5;
3186 m_linearMotorDecayTimescale = 60;
3187 m_angularMotorDirection = Vector3.Zero;
3188 m_angularMotorDVel = Vector3.Zero;
3189 m_angularMotorTimescale = 4;
3190 m_angularMotorDecayTimescale = 4;
3191 m_VhoverHeight = 0;
3192 // m_VhoverEfficiency = 0.5f;
3193 m_VhoverTimescale = 2;
3194 m_VehicleBuoyancy = 1;
3195 // m_linearDeflectionEfficiency = 0.5f;
3196 // m_linearDeflectionTimescale = 3;
3197 // m_angularDeflectionEfficiency = 0.5f;
3198 // m_angularDeflectionTimescale = 5;
3199 m_verticalAttractionEfficiency = 0.5f;
3200 m_verticalAttractionTimescale = 5f;
3201 // m_bankingEfficiency = -0.3f;
3202 // m_bankingMix = 0.8f;
3203 // m_bankingTimescale = 1;
3204 // m_referenceFrame = Quaternion.Identity;
3205 m_flags &= ~(VehicleFlag.HOVER_TERRAIN_ONLY | VehicleFlag.LIMIT_ROLL_ONLY |
3206 VehicleFlag.HOVER_GLOBAL_HEIGHT | VehicleFlag.HOVER_UP_ONLY);
3207 m_flags |= (VehicleFlag.NO_DEFLECTION_UP | VehicleFlag.HOVER_WATER_ONLY |
3208 VehicleFlag.LIMIT_MOTOR_UP);
3209 break;
3210 case Vehicle.TYPE_AIRPLANE:
3211 m_linearFrictionTimescale = new Vector3(200, 10, 5);
3212 m_angularFrictionTimescale = new Vector3(20, 20, 20);
3213 // m_lLinMotorVel = Vector3.Zero;
3214 m_linearMotorTimescale = 2;
3215 m_linearMotorDecayTimescale = 60;
3216 m_angularMotorDirection = Vector3.Zero;
3217 m_angularMotorDVel = Vector3.Zero;
3218 m_angularMotorTimescale = 4;
3219 m_angularMotorDecayTimescale = 4;
3220 m_VhoverHeight = 0;
3221 // m_VhoverEfficiency = 0.5f;
3222 m_VhoverTimescale = 1000;
3223 m_VehicleBuoyancy = 0;
3224 // m_linearDeflectionEfficiency = 0.5f;
3225 // m_linearDeflectionTimescale = 3;
3226 // m_angularDeflectionEfficiency = 1;
3227 // m_angularDeflectionTimescale = 2;
3228 m_verticalAttractionEfficiency = 0.9f;
3229 m_verticalAttractionTimescale = 2f;
3230 // m_bankingEfficiency = 1;
3231 // m_bankingMix = 0.7f;
3232 // m_bankingTimescale = 2;
3233 // m_referenceFrame = Quaternion.Identity;
3234 m_flags &= ~(VehicleFlag.NO_DEFLECTION_UP | VehicleFlag.HOVER_WATER_ONLY | VehicleFlag.HOVER_TERRAIN_ONLY |
3235 VehicleFlag.HOVER_GLOBAL_HEIGHT | VehicleFlag.HOVER_UP_ONLY | VehicleFlag.LIMIT_MOTOR_UP);
3236 m_flags |= (VehicleFlag.LIMIT_ROLL_ONLY);
3237 break;
3238 case Vehicle.TYPE_BALLOON:
3239 m_linearFrictionTimescale = new Vector3(5, 5, 5);
3240 m_angularFrictionTimescale = new Vector3(10, 10, 10);
3241 m_linearMotorTimescale = 5;
3242 m_linearMotorDecayTimescale = 60;
3243 m_angularMotorDirection = Vector3.Zero;
3244 m_angularMotorDVel = Vector3.Zero;
3245 m_angularMotorTimescale = 6;
3246 m_angularMotorDecayTimescale = 10;
3247 m_VhoverHeight = 5;
3248 // m_VhoverEfficiency = 0.8f;
3249 m_VhoverTimescale = 10;
3250 m_VehicleBuoyancy = 1;
3251 // m_linearDeflectionEfficiency = 0;
3252 // m_linearDeflectionTimescale = 5;
3253 // m_angularDeflectionEfficiency = 0;
3254 // m_angularDeflectionTimescale = 5;
3255 m_verticalAttractionEfficiency = 1f;
3256 m_verticalAttractionTimescale = 100f;
3257 // m_bankingEfficiency = 0;
3258 // m_bankingMix = 0.7f;
3259 // m_bankingTimescale = 5;
3260 // m_referenceFrame = Quaternion.Identity;
3261 m_flags &= ~(VehicleFlag.NO_DEFLECTION_UP | VehicleFlag.HOVER_WATER_ONLY | VehicleFlag.HOVER_TERRAIN_ONLY |
3262 VehicleFlag.HOVER_UP_ONLY | VehicleFlag.LIMIT_MOTOR_UP);
3263 m_flags |= (VehicleFlag.LIMIT_ROLL_ONLY | VehicleFlag.HOVER_GLOBAL_HEIGHT);
3264 break;
3265
3266 }
3267 }//end SetDefaultsForType
3268
3269 internal void Enable(IntPtr pBody, OdeScene pParentScene)
3270 {
3271 if (m_type == Vehicle.TYPE_NONE)
3272 return;
3273
3274 m_body = pBody;
3275 }
3276
3277
3278 internal void Halt()
3279 { // Kill all motions, when non-physical
3280 // m_linearMotorDirection = Vector3.Zero;
3281 m_lLinMotorDVel = Vector3.Zero;
3282 m_lLinObjectVel = Vector3.Zero;
3283 m_wLinObjectVel = Vector3.Zero;
3284 m_angularMotorDirection = Vector3.Zero;
3285 m_lastAngularVelocity = Vector3.Zero;
3286 m_angularMotorDVel = Vector3.Zero;
3287 _acceleration = Vector3.Zero;
3288 }
3289
3290 private void UpdateLinDecay()
3291 {
3292 m_lLinMotorDVel.X = m_linearMotorDirection.X;
3293 m_lLinMotorDVel.Y = m_linearMotorDirection.Y;
3294 m_lLinMotorDVel.Z = m_linearMotorDirection.Z;
3295 } // else let the motor decay on its own
3296
3297 private void UpdateAngDecay()
3298 {
3299 m_angularMotorDVel.X = m_angularMotorDirection.X;
3300 m_angularMotorDVel.Y = m_angularMotorDirection.Y;
3301 m_angularMotorDVel.Z = m_angularMotorDirection.Z;
3302 } // else let the motor decay on its own
3303
3304 public void Move(float timestep)
3305 {
3306 float fx = 0;
3307 float fy = 0;
3308 float fz = 0;
3309 Vector3 linvel; // velocity applied, including any reversal
3310
3311 // If geomCrossingFailuresBeforeOutofbounds is set to 0 in OpenSim.ini then phys objects bounce off region borders.
3312 // This is a temp patch until proper region crossing is developed.
3313
3314
3315 if (IsPhysical && (Body != IntPtr.Zero) && !m_isSelected && !childPrim && !m_outofBounds) // Only move root prims.
3316 {
3317 // Old public void UpdatePositionAndVelocity(), more accuratley calculated here
3318 bool lastZeroFlag = _zeroFlag; // was it stopped
3319
3320 d.Vector3 vec = d.BodyGetPosition(Body);
3321 Vector3 l_position = Vector3.Zero;
3322 l_position.X = vec.X;
3323 l_position.Y = vec.Y;
3324 l_position.Z = vec.Z;
3325 m_lastposition = _position;
3326 _position = l_position;
3327
3328 d.Quaternion ori = d.BodyGetQuaternion(Body);
3329 // Quaternion l_orientation = Quaternion.Identity;
3330 _orientation.X = ori.X;
3331 _orientation.Y = ori.Y;
3332 _orientation.Z = ori.Z;
3333 _orientation.W = ori.W;
3334 m_lastorientation = _orientation;
3335
3336 d.Vector3 vel = d.BodyGetLinearVel(Body);
3337 m_lastVelocity = _velocity;
3338 _velocity.X = vel.X;
3339 _velocity.Y = vel.Y;
3340 _velocity.Z = vel.Z;
3341 _acceleration = ((_velocity - m_lastVelocity) / timestep);
3342
3343 d.Vector3 torque = d.BodyGetTorque(Body);
3344 _torque = new Vector3(torque.X, torque.Y, torque.Z);
3345
3346
3347 if (_position.X < 0f || _position.X > _parent_scene.WorldExtents.X
3348 || _position.Y < 0f || _position.Y > _parent_scene.WorldExtents.Y
3349 )
3350 {
3351 // we are outside current region
3352 // clip position to a stop just outside region and stop it only internally
3353 // do it only once using m_crossingfailures as control
3354 _position.X = Util.Clip(l_position.X, -0.2f, _parent_scene.WorldExtents.X + .2f);
3355 _position.Y = Util.Clip(l_position.Y, -0.2f, _parent_scene.WorldExtents.Y + .2f);
3356 _position.Z = Util.Clip(l_position.Z, -100f, 50000f);
3357 d.BodySetPosition(Body, _position.X, _position.Y, _position.Z);
3358 d.BodySetLinearVel(Body, 0, 0, 0);
3359 m_outofBounds = true;
3360 base.RequestPhysicsterseUpdate();
3361 return;
3362 }
3363
3364 base.RequestPhysicsterseUpdate();
3365
3366 if (l_position.Z < 0)
3367 {
3368 // This is so prim that get lost underground don't fall forever and suck up
3369 //
3370 // Sim resources and memory.
3371 // Disables the prim's movement physics....
3372 // It's a hack and will generate a console message if it fails.
3373
3374 //IsPhysical = false;
3375 if (_parent == null) base.RaiseOutOfBounds(_position);
3376
3377
3378 _acceleration.X = 0; // This stuff may stop client display but it has no
3379 _acceleration.Y = 0; // effect on the object in phys engine!
3380 _acceleration.Z = 0;
3381
3382 _velocity.X = 0;
3383 _velocity.Y = 0;
3384 _velocity.Z = 0;
3385 m_lastVelocity = Vector3.Zero;
3386 m_rotationalVelocity.X = 0;
3387 m_rotationalVelocity.Y = 0;
3388 m_rotationalVelocity.Z = 0;
3389
3390 if (_parent == null) base.RequestPhysicsterseUpdate();
3391
3392 m_throttleUpdates = false;
3393 throttleCounter = 0;
3394 _zeroFlag = true;
3395 //outofBounds = true;
3396 } // end neg Z check
3397
3398 // Is it moving?
3399 /* if ((Math.Abs(m_lastposition.X - l_position.X) < 0.02)
3400 && (Math.Abs(m_lastposition.Y - l_position.Y) < 0.02)
3401 && (Math.Abs(m_lastposition.Z - l_position.Z) < 0.02) */
3402 if ((Vector3.Mag(_velocity) < 0.01) && // moving very slowly
3403 (Vector3.Mag(_velocity) < Vector3.Mag(m_lastVelocity)) && // decelerating
3404 (1.0 - Math.Abs(Quaternion.Dot(m_lastorientation, _orientation)) < 0.0001)) // spinning very slowly
3405 {
3406 _zeroFlag = true;
3407 m_throttleUpdates = false;
3408 }
3409 else
3410 {
3411 //m_log.Debug(Math.Abs(m_lastposition.X - l_position.X).ToString());
3412 _zeroFlag = false;
3413 m_lastUpdateSent = false;
3414 //m_throttleUpdates = false;
3415 }
3416
3417 if (_zeroFlag)
3418 { // Its stopped
3419 _velocity.X = 0.0f;
3420 _velocity.Y = 0.0f;
3421 // _velocity.Z = 0.0f;
3422
3423 _acceleration.X = 0;
3424 _acceleration.Y = 0;
3425 // _acceleration.Z = 0;
3426
3427 m_rotationalVelocity.X = 0;
3428 m_rotationalVelocity.Y = 0;
3429 m_rotationalVelocity.Z = 0;
3430 // Stop it in the phys engine
3431 d.BodySetLinearVel(Body, 0.0f, 0.0f, _velocity.Z);
3432 d.BodySetAngularVel(Body, 0.0f, 0.0f, 0.0f);
3433 d.BodySetForce(Body, 0f, 0f, 0f);
3434
3435 if (!m_lastUpdateSent)
3436 {
3437 m_throttleUpdates = false;
3438 throttleCounter = 0;
3439 if (_parent == null)
3440 {
3441 base.RequestPhysicsterseUpdate();
3442 }
3443
3444 m_lastUpdateSent = true;
3445 }
3446 }
3447 else
3448 { // Its moving
3449 if (lastZeroFlag != _zeroFlag)
3450 {
3451 if (_parent == null)
3452 {
3453 base.RequestPhysicsterseUpdate();
3454 }
3455 }
3456 m_lastUpdateSent = false;
3457 if (!m_throttleUpdates || throttleCounter > _parent_scene.geomUpdatesPerThrottledUpdate)
3458 {
3459 if (_parent == null)
3460 {
3461 base.RequestPhysicsterseUpdate();
3462 }
3463 }
3464 else
3465 {
3466 throttleCounter++;
3467 }
3468 }
3469 m_lastposition = l_position;
3470
3471 /// End UpdatePositionAndVelocity insert
3472
3473
3474 // Rotation lock =====================================
3475 if (m_rotateEnableUpdate)
3476 {
3477 // Snapshot current angles, set up Amotor(s)
3478 m_rotateEnableUpdate = false;
3479 m_rotateEnable = m_rotateEnableRequest;
3480 //Console.WriteLine("RotEnable {0} = {1}",m_primName, m_rotateEnable);
3481
3482 if (Amotor != IntPtr.Zero)
3483 {
3484 d.JointDestroy(Amotor);
3485 Amotor = IntPtr.Zero;
3486 //Console.WriteLine("Old Amotor Destroyed");
3487 }
3488
3489 if (!m_rotateEnable.ApproxEquals(Vector3.One, 0.003f))
3490 { // not all are enabled
3491 d.Quaternion r = d.BodyGetQuaternion(Body);
3492 Quaternion locrot = new Quaternion(r.X, r.Y, r.Z, r.W);
3493 // extract the axes vectors
3494 Vector3 vX = new Vector3(1f, 0f, 0f);
3495 Vector3 vY = new Vector3(0f, 1f, 0f);
3496 Vector3 vZ = new Vector3(0f, 0f, 1f);
3497 vX = vX * locrot;
3498 vY = vY * locrot;
3499 vZ = vZ * locrot;
3500 // snapshot the current angle vectors
3501 m_lockX = vX;
3502 m_lockY = vY;
3503 m_lockZ = vZ;
3504 // m_lockRot = locrot;
3505 Amotor = d.JointCreateAMotor(_parent_scene.world, IntPtr.Zero);
3506 d.JointAttach(Amotor, Body, IntPtr.Zero);
3507 d.JointSetAMotorMode(Amotor, 0); // User mode??
3508 //Console.WriteLine("New Amotor Created for {0}", m_primName);
3509
3510 float axisnum = 3; // how many to lock
3511 axisnum = (axisnum - (m_rotateEnable.X + m_rotateEnable.Y + m_rotateEnable.Z));
3512 d.JointSetAMotorNumAxes(Amotor, (int)axisnum);
3513 //Console.WriteLine("AxisNum={0}",(int)axisnum);
3514
3515 int i = 0;
3516
3517 if (m_rotateEnable.X == 0)
3518 {
3519 d.JointSetAMotorAxis(Amotor, i, 0, m_lockX.X, m_lockX.Y, m_lockX.Z);
3520 //Console.WriteLine("AxisX {0} set to {1}", i, m_lockX);
3521 i++;
3522 }
3523
3524 if (m_rotateEnable.Y == 0)
3525 {
3526 d.JointSetAMotorAxis(Amotor, i, 0, m_lockY.X, m_lockY.Y, m_lockY.Z);
3527 //Console.WriteLine("AxisY {0} set to {1}", i, m_lockY);
3528 i++;
3529 }
3530
3531 if (m_rotateEnable.Z == 0)
3532 {
3533 d.JointSetAMotorAxis(Amotor, i, 0, m_lockZ.X, m_lockZ.Y, m_lockZ.Z);
3534 //Console.WriteLine("AxisZ {0} set to {1}", i, m_lockZ);
3535 i++;
3536 }
3537
3538 // These lowstops and high stops are effectively (no wiggle room)
3539 d.JointSetAMotorParam(Amotor, (int)dParam.LowStop, 0f);
3540 d.JointSetAMotorParam(Amotor, (int)dParam.LoStop3, 0f);
3541 d.JointSetAMotorParam(Amotor, (int)dParam.LoStop2, 0f);
3542 d.JointSetAMotorParam(Amotor, (int)dParam.HiStop, 0f);
3543 d.JointSetAMotorParam(Amotor, (int)dParam.HiStop3, 0f);
3544 d.JointSetAMotorParam(Amotor, (int)dParam.HiStop2, 0f);
3545 d.JointSetAMotorParam(Amotor, (int)dParam.Vel, 0f);
3546 d.JointSetAMotorParam(Amotor, (int)dParam.Vel3, 0f);
3547 d.JointSetAMotorParam(Amotor, (int)dParam.Vel2, 0f);
3548 d.JointSetAMotorParam(Amotor, (int)dParam.StopCFM, 0f);
3549 d.JointSetAMotorParam(Amotor, (int)dParam.StopCFM3, 0f);
3550 d.JointSetAMotorParam(Amotor, (int)dParam.StopCFM2, 0f);
3551 } // else none are locked
3552 } // end Rotation Update
3553
3554
3555 // VEHICLE processing ==========================================
3556 if (m_type != Vehicle.TYPE_NONE)
3557 {
3558 // get body attitude
3559 d.Quaternion rot = d.BodyGetQuaternion(Body);
3560 Quaternion rotq = new Quaternion(rot.X, rot.Y, rot.Z, rot.W); // rotq = rotation of object
3561 Quaternion irotq = Quaternion.Inverse(rotq);
3562
3563 // VEHICLE Linear Motion
3564 d.Vector3 velnow = d.BodyGetLinearVel(Body); // this is in world frame
3565 Vector3 vel_now = new Vector3(velnow.X, velnow.Y, velnow.Z);
3566 m_lLinObjectVel = vel_now * irotq;
3567 if (m_linearMotorDecayTimescale < 300.0f) //setting of 300 or more disables decay rate
3568 {
3569 if (Vector3.Mag(m_lLinMotorDVel) < 1.0f)
3570 {
3571 float decayfactor = m_linearMotorDecayTimescale / timestep;
3572 Vector3 decayAmount = (m_lLinMotorDVel / decayfactor);
3573 m_lLinMotorDVel -= decayAmount;
3574 }
3575 else
3576 {
3577 float decayfactor = 3.0f - (0.57f * (float)Math.Log((double)(m_linearMotorDecayTimescale)));
3578 Vector3 decel = Vector3.Normalize(m_lLinMotorDVel) * decayfactor * timestep;
3579 m_lLinMotorDVel -= decel;
3580 }
3581 if (m_lLinMotorDVel.ApproxEquals(Vector3.Zero, 0.01f))
3582 {
3583 m_lLinMotorDVel = Vector3.Zero;
3584 }
3585
3586 /* else
3587 {
3588 if (Math.Abs(m_lLinMotorDVel.X) < Math.Abs(m_lLinObjectVel.X)) m_lLinObjectVel.X = m_lLinMotorDVel.X;
3589 if (Math.Abs(m_lLinMotorDVel.Y) < Math.Abs(m_lLinObjectVel.Y)) m_lLinObjectVel.Y = m_lLinMotorDVel.Y;
3590 if (Math.Abs(m_lLinMotorDVel.Z) < Math.Abs(m_lLinObjectVel.Z)) m_lLinObjectVel.Z = m_lLinMotorDVel.Z;
3591 } */
3592 } // end linear motor decay
3593
3594 if ((!m_lLinMotorDVel.ApproxEquals(Vector3.Zero, 0.01f)) || (!m_lLinObjectVel.ApproxEquals(Vector3.Zero, 0.01f)))
3595 {
3596 if (!d.BodyIsEnabled(Body)) d.BodyEnable(Body);
3597 if (m_linearMotorTimescale < 300.0f)
3598 {
3599 Vector3 attack_error = m_lLinMotorDVel - m_lLinObjectVel;
3600 float linfactor = m_linearMotorTimescale / timestep;
3601 Vector3 attackAmount = (attack_error / linfactor) * 1.3f;
3602 m_lLinObjectVel += attackAmount;
3603 }
3604 if (m_linearFrictionTimescale.X < 300.0f)
3605 {
3606 float fricfactor = m_linearFrictionTimescale.X / timestep;
3607 float fricX = m_lLinObjectVel.X / fricfactor;
3608 m_lLinObjectVel.X -= fricX;
3609 }
3610 if (m_linearFrictionTimescale.Y < 300.0f)
3611 {
3612 float fricfactor = m_linearFrictionTimescale.Y / timestep;
3613 float fricY = m_lLinObjectVel.Y / fricfactor;
3614 m_lLinObjectVel.Y -= fricY;
3615 }
3616 if (m_linearFrictionTimescale.Z < 300.0f)
3617 {
3618 float fricfactor = m_linearFrictionTimescale.Z / timestep;
3619 float fricZ = m_lLinObjectVel.Z / fricfactor;
3620 m_lLinObjectVel.Z -= fricZ;
3621 }
3622 }
3623 m_wLinObjectVel = m_lLinObjectVel * rotq;
3624
3625 // Gravity and Buoyancy
3626 Vector3 grav = Vector3.Zero;
3627 if (m_VehicleBuoyancy < 1.0f)
3628 {
3629 // There is some gravity, make a gravity force vector
3630 // that is applied after object velocity.
3631 d.Mass objMass;
3632 d.BodyGetMass(Body, out objMass);
3633 // m_VehicleBuoyancy: -1=2g; 0=1g; 1=0g;
3634 grav.Z = _parent_scene.gravityz * objMass.mass * (1f - m_VehicleBuoyancy); // Applied later as a force
3635 } // else its 1.0, no gravity.
3636
3637 // Hovering
3638 if ((m_flags & (VehicleFlag.HOVER_WATER_ONLY | VehicleFlag.HOVER_TERRAIN_ONLY | VehicleFlag.HOVER_GLOBAL_HEIGHT)) != 0)
3639 {
3640 // We should hover, get the target height
3641 d.Vector3 pos = d.BodyGetPosition(Body);
3642 if ((m_flags & VehicleFlag.HOVER_WATER_ONLY) == VehicleFlag.HOVER_WATER_ONLY)
3643 {
3644 m_VhoverTargetHeight = _parent_scene.GetWaterLevel() + m_VhoverHeight;
3645 }
3646 else if ((m_flags & VehicleFlag.HOVER_TERRAIN_ONLY) == VehicleFlag.HOVER_TERRAIN_ONLY)
3647 {
3648 m_VhoverTargetHeight = _parent_scene.GetTerrainHeightAtXY(pos.X, pos.Y) + m_VhoverHeight;
3649 }
3650 else if ((m_flags & VehicleFlag.HOVER_GLOBAL_HEIGHT) == VehicleFlag.HOVER_GLOBAL_HEIGHT)
3651 {
3652 m_VhoverTargetHeight = m_VhoverHeight;
3653 }
3654
3655 if ((m_flags & VehicleFlag.HOVER_UP_ONLY) == VehicleFlag.HOVER_UP_ONLY)
3656 {
3657 // If body is aready heigher, use its height as target height
3658 if (pos.Z > m_VhoverTargetHeight) m_VhoverTargetHeight = pos.Z;
3659 }
3660
3661 // m_VhoverEfficiency = 0f; // 0=boucy, 1=Crit.damped
3662 // m_VhoverTimescale = 0f; // time to acheive height
3663 // timestep is time since last frame,in secs
3664 float herr0 = pos.Z - m_VhoverTargetHeight;
3665 // Replace Vertical speed with correction figure if significant
3666 if (Math.Abs(herr0) > 0.01f)
3667 {
3668 //? d.Mass objMass;
3669 //? d.BodyGetMass(Body, out objMass);
3670 m_wLinObjectVel.Z = -((herr0 * timestep * 50.0f) / m_VhoverTimescale);
3671 //KF: m_VhoverEfficiency is not yet implemented
3672 }
3673 else
3674 {
3675 m_wLinObjectVel.Z = 0f;
3676 }
3677 }
3678 else
3679 { // not hovering
3680 if (m_wLinObjectVel.Z == 0f)
3681 { // Gravity rules
3682 m_wLinObjectVel.Z = vel_now.Z;
3683 } // else the motor has it
3684 }
3685 linvel = m_wLinObjectVel;
3686
3687 // Vehicle Linear Motion done =======================================
3688 // Apply velocity
3689 d.BodySetLinearVel(Body, linvel.X, linvel.Y, linvel.Z);
3690 // apply gravity force
3691 d.BodyAddForce(Body, grav.X, grav.Y, grav.Z);
3692 //if(frcount == 0) Console.WriteLine("Vel={0} Force={1}",linvel , grav);
3693 // end MoveLinear()
3694
3695
3696 // MoveAngular
3697 /*
3698 private Vector3 m_angularMotorDirection = Vector3.Zero; // angular velocity requested by LSL motor
3699
3700 private float m_angularMotorTimescale = 0; // motor angular Attack rate set by LSL
3701 private float m_angularMotorDecayTimescale = 0; // motor angular Decay rate set by LSL
3702 private Vector3 m_angularFrictionTimescale = Vector3.Zero; // body angular Friction set by LSL
3703
3704 private Vector3 m_angularMotorDVel = Vector3.Zero; // decayed angular motor
3705 private Vector3 m_angObjectVel = Vector3.Zero; // what was last applied to body
3706 */
3707 //if(frcount == 0) Console.WriteLine("MoveAngular ");
3708
3709 d.Vector3 angularObjectVel = d.BodyGetAngularVel(Body);
3710 Vector3 angObjectVel = new Vector3(angularObjectVel.X, angularObjectVel.Y, angularObjectVel.Z);
3711 angObjectVel = angObjectVel * irotq; // ============ Converts to LOCAL rotation
3712
3713 //if(frcount == 0) Console.WriteLine("V0 = {0}", angObjectVel);
3714
3715 // Decay Angular Motor 1. In SL this also depends on attack rate! decay ~= 23/Attack.
3716 float atk_decayfactor = 23.0f / (m_angularMotorTimescale * timestep);
3717 m_angularMotorDVel -= m_angularMotorDVel / atk_decayfactor;
3718 // Decay Angular Motor 2.
3719 if (m_angularMotorDecayTimescale < 300.0f)
3720 {
3721 if (Vector3.Mag(m_angularMotorDVel) < 1.0f)
3722 {
3723 float decayfactor = (m_angularMotorDecayTimescale) / timestep;
3724 Vector3 decayAmount = (m_angularMotorDVel / decayfactor);
3725 m_angularMotorDVel -= decayAmount;
3726 }
3727 else
3728 {
3729 Vector3 decel = Vector3.Normalize(m_angularMotorDVel) * timestep / m_angularMotorDecayTimescale;
3730 m_angularMotorDVel -= decel;
3731 }
3732
3733 if (m_angularMotorDVel.ApproxEquals(Vector3.Zero, 0.01f))
3734 {
3735 m_angularMotorDVel = Vector3.Zero;
3736 }
3737 else
3738 {
3739 if (Math.Abs(m_angularMotorDVel.X) < Math.Abs(angObjectVel.X)) angObjectVel.X = m_angularMotorDVel.X;
3740 if (Math.Abs(m_angularMotorDVel.Y) < Math.Abs(angObjectVel.Y)) angObjectVel.Y = m_angularMotorDVel.Y;
3741 if (Math.Abs(m_angularMotorDVel.Z) < Math.Abs(angObjectVel.Z)) angObjectVel.Z = m_angularMotorDVel.Z;
3742 }
3743 } // end decay angular motor
3744 //if(frcount == 0) Console.WriteLine("MotorDvel {0} Obj {1}", m_angularMotorDVel, angObjectVel);
3745
3746 //if(frcount == 0) Console.WriteLine("VA = {0}", angObjectVel);
3747
3748 if ((!m_angularMotorDVel.ApproxEquals(Vector3.Zero, 0.01f)) || (!angObjectVel.ApproxEquals(Vector3.Zero, 0.01f)))
3749 { // if motor or object have motion
3750 if (!d.BodyIsEnabled(Body)) d.BodyEnable(Body);
3751
3752 if (m_angularMotorTimescale < 300.0f)
3753 {
3754 Vector3 attack_error = m_angularMotorDVel - angObjectVel;
3755 float angfactor = m_angularMotorTimescale / timestep;
3756 Vector3 attackAmount = (attack_error / angfactor);
3757 angObjectVel += attackAmount;
3758 //if(frcount == 0) Console.WriteLine("Accel {0} Attk {1}",FrAaccel, attackAmount);
3759 //if(frcount == 0) Console.WriteLine("V2+= {0}", angObjectVel);
3760 }
3761
3762 angObjectVel.X -= angObjectVel.X / (m_angularFrictionTimescale.X * 0.7f / timestep);
3763 angObjectVel.Y -= angObjectVel.Y / (m_angularFrictionTimescale.Y * 0.7f / timestep);
3764 angObjectVel.Z -= angObjectVel.Z / (m_angularFrictionTimescale.Z * 0.7f / timestep);
3765 } // else no signif. motion
3766
3767 //if(frcount == 0) Console.WriteLine("Dmotor {0} Obj {1}", m_angularMotorDVel, angObjectVel);
3768 // Bank section tba
3769 // Deflection section tba
3770 //if(frcount == 0) Console.WriteLine("V3 = {0}", angObjectVel);
3771
3772
3773 /* // Rotation Axis Disables:
3774 if (!m_angularEnable.ApproxEquals(Vector3.One, 0.003f))
3775 {
3776 if (m_angularEnable.X == 0)
3777 angObjectVel.X = 0f;
3778 if (m_angularEnable.Y == 0)
3779 angObjectVel.Y = 0f;
3780 if (m_angularEnable.Z == 0)
3781 angObjectVel.Z = 0f;
3782 }
3783 */
3784 angObjectVel = angObjectVel * rotq; // ================ Converts to WORLD rotation
3785
3786 // Vertical attractor section
3787 Vector3 vertattr = Vector3.Zero;
3788
3789 if (m_verticalAttractionTimescale < 300)
3790 {
3791 float VAservo = 1.0f / (m_verticalAttractionTimescale * timestep);
3792 // make a vector pointing up
3793 Vector3 verterr = Vector3.Zero;
3794 verterr.Z = 1.0f;
3795 // rotate it to Body Angle
3796 verterr = verterr * rotq;
3797 // verterr.X and .Y are the World error ammounts. They are 0 when there is no error (Vehicle Body is 'vertical'), and .Z will be 1.
3798 // As the body leans to its side |.X| will increase to 1 and .Z fall to 0. As body inverts |.X| will fall and .Z will go
3799 // negative. Similar for tilt and |.Y|. .X and .Y must be modulated to prevent a stable inverted body.
3800
3801 if (verterr.Z < 0.0f)
3802 { // Deflection from vertical exceeds 90-degrees. This method will ensure stable return to
3803 // vertical, BUT for some reason a z-rotation is imparted to the object. TBI.
3804 //Console.WriteLine("InvertFlip");
3805 verterr.X = 2.0f - verterr.X;
3806 verterr.Y = 2.0f - verterr.Y;
3807 }
3808 verterr *= 0.5f;
3809 // verterror is 0 (no error) to +/- 1 (max error at 180-deg tilt)
3810 Vector3 xyav = angObjectVel;
3811 xyav.Z = 0.0f;
3812 if ((!xyav.ApproxEquals(Vector3.Zero, 0.001f)) || (verterr.Z < 0.49f))
3813 {
3814 // As the body rotates around the X axis, then verterr.Y increases; Rotated around Y then .X increases, so
3815 // Change Body angular velocity X based on Y, and Y based on X. Z is not changed.
3816 vertattr.X = verterr.Y;
3817 vertattr.Y = -verterr.X;
3818 vertattr.Z = 0f;
3819 //if(frcount == 0) Console.WriteLine("VAerr=" + verterr);
3820
3821 // scaling appears better usingsquare-law
3822 float damped = m_verticalAttractionEfficiency * m_verticalAttractionEfficiency;
3823 float bounce = 1.0f - damped;
3824 // 0 = crit damp, 1 = bouncy
3825 float oavz = angObjectVel.Z; // retain z velocity
3826 // time-scaled correction, which sums, therefore is bouncy:
3827 angObjectVel = (angObjectVel + (vertattr * VAservo * 0.0333f)) * bounce;
3828 // damped, good @ < 90:
3829 angObjectVel = angObjectVel + (vertattr * VAservo * 0.0667f * damped);
3830 angObjectVel.Z = oavz;
3831 //if(frcount == 0) Console.WriteLine("VA+");
3832 //Console.WriteLine("VAttr {0} OAvel {1}", vertattr, angObjectVel);
3833 }
3834 else
3835 {
3836 // else error is very small
3837 angObjectVel.X = 0f;
3838 angObjectVel.Y = 0f;
3839 //if(frcount == 0) Console.WriteLine("VA0");
3840 }
3841 } // else vertical attractor is off
3842 //if(frcount == 0) Console.WriteLine("V1 = {0}", angObjectVel);
3843
3844
3845 m_lastAngularVelocity = angObjectVel;
3846 // apply Angular Velocity to body
3847 d.BodySetAngularVel(Body, m_lastAngularVelocity.X, m_lastAngularVelocity.Y, m_lastAngularVelocity.Z);
3848 //if(frcount == 0) Console.WriteLine("V4 = {0}", m_lastAngularVelocity);
3849
3850 } // end VEHICLES
3851 else
3852 {
3853 // Dyamics (NON-'VEHICLES') are dealt with here ================================================================
3854
3855 if (!d.BodyIsEnabled(Body)) d.BodyEnable(Body); // KF add 161009
3856
3857 /// Dynamics Buoyancy
3858 //KF: m_buoyancy is set by llSetBuoyancy() and is for non-vehicle.
3859 // m_buoyancy: (unlimited value) <0=Falls fast; 0=1g; 1=0g; >1 = floats up
3860 // NB Prims in ODE are no subject to global gravity
3861 // This should only affect gravity operations
3862
3863 float m_mass = CalculateMass();
3864 // calculate z-force due togravity on object.
3865 fz = _parent_scene.gravityz * (1.0f - m_buoyancy) * m_mass; // force = acceleration * mass
3866 if ((m_usePID) && (m_PIDTau > 0.0f)) // Dynamics llMoveToTarget.
3867 {
3868 fz = 0; // llMoveToTarget ignores gravity.
3869 // it also ignores mass of object, and any physical resting on it.
3870 // Vector3 m_PIDTarget is where we are going
3871 // float m_PIDTau is time to get there
3872 fx = 0;
3873 fy = 0;
3874 d.Vector3 pos = d.BodyGetPosition(Body);
3875 Vector3 error = new Vector3(
3876 (m_PIDTarget.X - pos.X),
3877 (m_PIDTarget.Y - pos.Y),
3878 (m_PIDTarget.Z - pos.Z));
3879 if (error.ApproxEquals(Vector3.Zero, 0.01f))
3880 { // Very close, Jump there and quit move
3881
3882 d.BodySetPosition(Body, m_PIDTarget.X, m_PIDTarget.Y, m_PIDTarget.Z);
3883 _target_velocity = Vector3.Zero;
3884 d.BodySetLinearVel(Body, _target_velocity.X, _target_velocity.Y, _target_velocity.Z);
3885 d.BodySetForce(Body, 0f, 0f, 0f);
3886 }
3887 else
3888 {
3889 float scale = 50.0f * timestep / m_PIDTau;
3890 if ((error.ApproxEquals(Vector3.Zero, 0.5f)) && (_target_velocity != Vector3.Zero))
3891 {
3892 // Nearby, quit update of velocity
3893 }
3894 else
3895 { // Far, calc damped velocity
3896 _target_velocity = error * scale;
3897 }
3898 d.BodySetLinearVel(Body, _target_velocity.X, _target_velocity.Y, _target_velocity.Z);
3899 }
3900 } // end PID MoveToTarget
3901
3902
3903 /// Dynamics Hover ===================================================================================
3904 // Hover PID Controller can only run if the PIDcontroller is not in use.
3905 if (m_useHoverPID && !m_usePID)
3906 {
3907 //Console.WriteLine("Hover " + m_primName);
3908
3909 // If we're using the PID controller, then we have no gravity
3910 fz = (-1 * _parent_scene.gravityz) * m_mass;
3911
3912 // no lock; for now it's only called from within Simulate()
3913
3914 // If the PID Controller isn't active then we set our force
3915 // calculating base velocity to the current position
3916
3917 if ((m_PIDTau < 1))
3918 {
3919 PID_G = PID_G / m_PIDTau;
3920 }
3921
3922 if ((PID_G - m_PIDTau) <= 0)
3923 {
3924 PID_G = m_PIDTau + 1;
3925 }
3926
3927
3928 // Where are we, and where are we headed?
3929 d.Vector3 pos = d.BodyGetPosition(Body);
3930 // d.Vector3 vel = d.BodyGetLinearVel(Body);
3931
3932
3933 // Non-Vehicles have a limited set of Hover options.
3934 // determine what our target height really is based on HoverType
3935 switch (m_PIDHoverType)
3936 {
3937 case PIDHoverType.Ground:
3938 m_groundHeight = _parent_scene.GetTerrainHeightAtXY(pos.X, pos.Y);
3939 m_targetHoverHeight = m_groundHeight + m_PIDHoverHeight;
3940 break;
3941 case PIDHoverType.GroundAndWater:
3942 m_groundHeight = _parent_scene.GetTerrainHeightAtXY(pos.X, pos.Y);
3943 m_waterHeight = _parent_scene.GetWaterLevel();
3944 if (m_groundHeight > m_waterHeight)
3945 {
3946 m_targetHoverHeight = m_groundHeight + m_PIDHoverHeight;
3947 }
3948 else
3949 {
3950 m_targetHoverHeight = m_waterHeight + m_PIDHoverHeight;
3951 }
3952 break;
3953
3954 } // end switch (m_PIDHoverType)
3955
3956
3957 _target_velocity =
3958 new Vector3(0.0f, 0.0f,
3959 (m_targetHoverHeight - pos.Z) * ((PID_G - m_PIDHoverTau) * timestep)
3960 );
3961
3962 // if velocity is zero, use position control; otherwise, velocity control
3963
3964 if (_target_velocity.ApproxEquals(Vector3.Zero, 0.1f))
3965 {
3966 // keep track of where we stopped. No more slippin' & slidin'
3967
3968 // We only want to deactivate the PID Controller if we think we want to have our surrogate
3969 // react to the physics scene by moving it's position.
3970 // Avatar to Avatar collisions
3971 // Prim to avatar collisions
3972 d.Vector3 dlinvel = vel;
3973 d.BodySetPosition(Body, pos.X, pos.Y, m_targetHoverHeight);
3974 d.BodySetLinearVel(Body, dlinvel.X, dlinvel.Y, dlinvel.Z);
3975 d.BodyAddForce(Body, 0, 0, fz);
3976 //KF this prevents furthur motions return;
3977 }
3978 else
3979 {
3980 _zeroFlag = false;
3981
3982 // We're flying and colliding with something
3983 fz = fz + ((_target_velocity.Z - vel.Z) * (PID_D) * m_mass);
3984 }
3985 } // end m_useHoverPID && !m_usePID
3986
3987
3988 /// Dynamics Apply Forces ===================================================================================
3989 fx *= m_mass;
3990 fy *= m_mass;
3991 //fz *= m_mass;
3992 fx += m_force.X;
3993 fy += m_force.Y;
3994 fz += m_force.Z;
3995
3996 //m_log.Info("[OBJPID]: X:" + fx.ToString() + " Y:" + fy.ToString() + " Z:" + fz.ToString());
3997 if (fx != 0 || fy != 0 || fz != 0)
3998 {
3999 //m_taintdisable = true;
4000 //base.RaiseOutOfBounds(Position);
4001 //d.BodySetLinearVel(Body, fx, fy, 0f);
4002 if (!d.BodyIsEnabled(Body))
4003 {
4004 // A physical body at rest on a surface will auto-disable after a while,
4005 // this appears to re-enable it incase the surface it is upon vanishes,
4006 // and the body should fall again.
4007 d.BodySetLinearVel(Body, 0f, 0f, 0f);
4008 d.BodySetForce(Body, 0f, 0f, 0f);
4009 enableBodySoft();
4010 }
4011
4012 // 35x10 = 350n times the mass per second applied maximum.
4013 float nmax = 35f * m_mass;
4014 float nmin = -35f * m_mass;
4015
4016
4017 if (fx > nmax)
4018 fx = nmax;
4019 if (fx < nmin)
4020 fx = nmin;
4021 if (fy > nmax)
4022 fy = nmax;
4023 if (fy < nmin)
4024 fy = nmin;
4025 d.BodyAddForce(Body, fx, fy, fz);
4026 } // end apply forces
4027 } // end Vehicle/Dynamics
4028
4029 /// RotLookAt / LookAt =================================================================================
4030 if (m_useAPID)
4031 {
4032 // RotLookAt, apparently overrides all other rotation sources. Inputs:
4033 // Quaternion m_APIDTarget
4034 // float m_APIDStrength // From SL experiments, this is the time to get there
4035 // float m_APIDDamping // From SL experiments, this is damping, 1.0 = damped, 0.1 = wobbly
4036 // Also in SL the mass of the object has no effect on time to get there.
4037 // Factors:
4038 // get present body rotation
4039 float limit = 1.0f;
4040 float rscaler = 50f; // adjusts rotation damping time
4041 float lscaler = 10f; // adjusts linear damping time in llLookAt
4042 float RLAservo = 0f;
4043 Vector3 diff_axis;
4044 float diff_angle;
4045 d.Quaternion rot = d.BodyGetQuaternion(Body); // prim present rotation
4046 Quaternion rotq = new Quaternion(rot.X, rot.Y, rot.Z, rot.W);
4047 Quaternion rtarget = new Quaternion();
4048
4049 if (m_APIDTarget.W == -99.9f)
4050 {
4051 // this is really a llLookAt(), x,y,z is the target vector
4052 Vector3 target = new Vector3(m_APIDTarget.X, m_APIDTarget.Y, m_APIDTarget.Z);
4053 Vector3 ospin = new Vector3(1.0f, 0.0f, 0.0f) * rotq;
4054 Vector3 error = new Vector3(0.0f, 0.0f, 0.0f);
4055 float twopi = 2.0f * (float)Math.PI;
4056 Vector3 dir = target - _position;
4057 dir.Normalize();
4058 float tzrot = (float)Math.Atan2(dir.Y, dir.X);
4059 float txy = (float)Math.Sqrt((dir.X * dir.X) + (dir.Y * dir.Y));
4060 float terot = (float)Math.Atan2(dir.Z, txy);
4061 float ozrot = (float)Math.Atan2(ospin.Y, ospin.X);
4062 float oxy = (float)Math.Sqrt((ospin.X * ospin.X) + (ospin.Y * ospin.Y));
4063 float oerot = (float)Math.Atan2(ospin.Z, oxy);
4064 float ra = 2.0f * ((rotq.W * rotq.X) + (rotq.Y * rotq.Z));
4065 float rb = 1.0f - 2.0f * ((rotq.Y * rotq.Y) + (rotq.X * rotq.X));
4066 float roll = (float)Math.Atan2(ra, rb);
4067 float errorz = tzrot - ozrot;
4068 if (errorz > (float)Math.PI) errorz -= twopi;
4069 else if (errorz < -(float)Math.PI) errorz += twopi;
4070 float errory = oerot - terot;
4071 if (errory > (float)Math.PI) errory -= twopi;
4072 else if (errory < -(float)Math.PI) errory += twopi;
4073 diff_angle = Math.Abs(errorz) + Math.Abs(errory) + Math.Abs(roll);
4074 if (diff_angle > 0.01f * m_APIDdamper)
4075 {
4076 m_APIDdamper = 1.0f;
4077 RLAservo = timestep / m_APIDStrength * rscaler;
4078 errorz *= RLAservo;
4079 errory *= RLAservo;
4080 error.X = -roll * 8.0f;
4081 error.Y = errory;
4082 error.Z = errorz;
4083 error *= rotq;
4084 d.BodySetAngularVel(Body, error.X, error.Y, error.Z);
4085 }
4086 else
4087 {
4088 d.BodySetAngularVel(Body, 0.0f, 0.0f, 0.0f);
4089 m_APIDdamper = 2.0f;
4090 }
4091 }
4092 else
4093 {
4094 // this is a llRotLookAt()
4095 rtarget = m_APIDTarget;
4096
4097 Quaternion rot_diff = Quaternion.Inverse(rotq) * rtarget; // difference to desired rot
4098 rot_diff.GetAxisAngle(out diff_axis, out diff_angle); // convert to axis to point at & error angle
4099 //if(frcount == 0) Console.WriteLine("axis {0} angle {1}",diff_axis * 57.3f, diff_angle);
4100
4101 // diff_axis.Normalize(); it already is!
4102 if (diff_angle > 0.01f * m_APIDdamper) // diff_angle is always +ve // if there is enough error
4103 {
4104 m_APIDdamper = 1.0f;
4105 Vector3 rotforce = new Vector3(diff_axis.X, diff_axis.Y, diff_axis.Z);
4106 rotforce = rotforce * rotq;
4107 if (diff_angle > limit) diff_angle = limit; // cap the rotate rate
4108 RLAservo = timestep / m_APIDStrength * lscaler;
4109 rotforce = rotforce * RLAservo * diff_angle;
4110 d.BodySetAngularVel(Body, rotforce.X, rotforce.Y, rotforce.Z);
4111 //Console.WriteLine("axis= " + diff_axis + " angle= " + diff_angle + "servo= " + RLAservo);
4112 }
4113 else
4114 { // close enough
4115 d.BodySetAngularVel(Body, 0.0f, 0.0f, 0.0f);
4116 m_APIDdamper = 2.0f;
4117 }
4118 } // end llLookAt/llRotLookAt
4119 //if(frcount == 0) Console.WriteLine("mass= " + m_mass + " servo= " + RLAservo + " angle= " + diff_angle);
4120 } // end m_useAPID
4121 } // end root prims
4122 } // end Move()
4123 } // end class
4124}
diff --git a/OpenSim/Region/Physics/ChOdePlugin/ODERayCastRequestManager.cs b/OpenSim/Region/Physics/ChOdePlugin/ODERayCastRequestManager.cs
new file mode 100644
index 0000000..712029e
--- /dev/null
+++ b/OpenSim/Region/Physics/ChOdePlugin/ODERayCastRequestManager.cs
@@ -0,0 +1,384 @@
1/*
2 * Copyright (c) Contributors, http://opensimulator.org/
3 * See CONTRIBUTORS.TXT for a full list of copyright holders.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 * * Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * * Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
12 * * Neither the name of the OpenSimulator Project nor the
13 * names of its contributors may be used to endorse or promote products
14 * derived from this software without specific prior written permission.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
17 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
20 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28using System;
29using System.Collections.Generic;
30using System.Reflection;
31using System.Runtime.InteropServices;
32using System.Text;
33using OpenMetaverse;
34using OpenSim.Region.Physics.Manager;
35using Ode.NET;
36using log4net;
37
38namespace OpenSim.Region.Physics.OdePlugin
39{
40 /// <summary>
41 /// Processes raycast requests as ODE is in a state to be able to do them.
42 /// This ensures that it's thread safe and there will be no conflicts.
43 /// Requests get returned by a different thread then they were requested by.
44 /// </summary>
45 public class ODERayCastRequestManager
46 {
47 /// <summary>
48 /// Pending Raycast Requests
49 /// </summary>
50 protected List<ODERayCastRequest> m_PendingRequests = new List<ODERayCastRequest>();
51
52 /// <summary>
53 /// Scene that created this object.
54 /// </summary>
55 private OdeScene m_scene;
56
57 /// <summary>
58 /// ODE contact array to be filled by the collision testing
59 /// </summary>
60 d.ContactGeom[] contacts = new d.ContactGeom[5];
61
62 /// <summary>
63 /// ODE near callback delegate
64 /// </summary>
65 private d.NearCallback nearCallback;
66 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
67 private List<ContactResult> m_contactResults = new List<ContactResult>();
68
69
70 public ODERayCastRequestManager(OdeScene pScene)
71 {
72 m_scene = pScene;
73 nearCallback = near;
74
75 }
76
77 /// <summary>
78 /// Queues a raycast
79 /// </summary>
80 /// <param name="position">Origin of Ray</param>
81 /// <param name="direction">Ray normal</param>
82 /// <param name="length">Ray length</param>
83 /// <param name="retMethod">Return method to send the results</param>
84 public void QueueRequest(Vector3 position, Vector3 direction, float length, RaycastCallback retMethod)
85 {
86 lock (m_PendingRequests)
87 {
88 ODERayCastRequest req = new ODERayCastRequest();
89 req.callbackMethod = retMethod;
90 req.length = length;
91 req.Normal = direction;
92 req.Origin = position;
93
94 m_PendingRequests.Add(req);
95 }
96 }
97
98 /// <summary>
99 /// Process all queued raycast requests
100 /// </summary>
101 /// <returns>Time in MS the raycasts took to process.</returns>
102 public int ProcessQueuedRequests()
103 {
104 int time = System.Environment.TickCount;
105 lock (m_PendingRequests)
106 {
107 if (m_PendingRequests.Count > 0)
108 {
109 ODERayCastRequest[] reqs = m_PendingRequests.ToArray();
110 for (int i = 0; i < reqs.Length; i++)
111 {
112 try
113 {
114 if (reqs[i].callbackMethod != null) // quick optimization here, don't raycast
115 RayCast(reqs[i]); // if there isn't anyone to send results
116 }
117 catch
118 {
119 //Fail silently
120 //This can genuinely happen because raycast requests are queued, and the actor may have
121 //been removed from the scene since it was queued
122 }
123 }
124 /*
125 foreach (ODERayCastRequest req in m_PendingRequests)
126 {
127 if (req.callbackMethod != null) // quick optimization here, don't raycast
128 RayCast(req); // if there isn't anyone to send results to
129
130 }
131 */
132 m_PendingRequests.Clear();
133 }
134 }
135
136 lock (m_contactResults)
137 m_contactResults.Clear();
138
139 return System.Environment.TickCount - time;
140 }
141
142 /// <summary>
143 /// Method that actually initiates the raycast
144 /// </summary>
145 /// <param name="req"></param>
146 private void RayCast(ODERayCastRequest req)
147 {
148 // Create the ray
149 IntPtr ray = d.CreateRay(m_scene.space, req.length);
150 d.GeomRaySet(ray, req.Origin.X, req.Origin.Y, req.Origin.Z, req.Normal.X, req.Normal.Y, req.Normal.Z);
151
152 // Collide test
153 d.SpaceCollide2(m_scene.space, ray, IntPtr.Zero, nearCallback);
154
155 // Remove Ray
156 d.GeomDestroy(ray);
157
158
159 // Define default results
160 bool hitYN = false;
161 uint hitConsumerID = 0;
162 float distance = 999999999999f;
163 Vector3 closestcontact = new Vector3(99999f, 99999f, 99999f);
164 Vector3 snormal = Vector3.Zero;
165
166 // Find closest contact and object.
167 lock (m_contactResults)
168 {
169 foreach (ContactResult cResult in m_contactResults)
170 {
171 if (Vector3.Distance(req.Origin, cResult.Pos) < Vector3.Distance(req.Origin, closestcontact))
172 {
173 closestcontact = cResult.Pos;
174 hitConsumerID = cResult.ConsumerID;
175 distance = cResult.Depth;
176 hitYN = true;
177 snormal = cResult.Normal;
178 }
179 }
180
181 m_contactResults.Clear();
182 }
183
184 // Return results
185 if (req.callbackMethod != null)
186 req.callbackMethod(hitYN, closestcontact, hitConsumerID, distance, snormal);
187 }
188
189 // This is the standard Near. Uses space AABBs to speed up detection.
190 private void near(IntPtr space, IntPtr g1, IntPtr g2)
191 {
192
193 //Don't test against heightfield Geom, or you'll be sorry!
194
195 /*
196 terminate called after throwing an instance of 'std::bad_alloc'
197 what(): std::bad_alloc
198 Stacktrace:
199
200 at (wrapper managed-to-native) Ode.NET.d.Collide (intptr,intptr,int,Ode.NET.d/ContactGeom[],int) <0x00004>
201 at (wrapper managed-to-native) Ode.NET.d.Collide (intptr,intptr,int,Ode.NET.d/ContactGeom[],int) <0xffffffff>
202 at OpenSim.Region.Physics.OdePlugin.ODERayCastRequestManager.near (intptr,intptr,intptr) <0x00280>
203 at (wrapper native-to-managed) OpenSim.Region.Physics.OdePlugin.ODERayCastRequestManager.near (intptr,intptr,intptr) <0xfff
204 fffff>
205 at (wrapper managed-to-native) Ode.NET.d.SpaceCollide2 (intptr,intptr,intptr,Ode.NET.d/NearCallback) <0x00004>
206 at (wrapper managed-to-native) Ode.NET.d.SpaceCollide2 (intptr,intptr,intptr,Ode.NET.d/NearCallback) <0xffffffff>
207 at OpenSim.Region.Physics.OdePlugin.ODERayCastRequestManager.RayCast (OpenSim.Region.Physics.OdePlugin.ODERayCastRequest) <
208 0x00114>
209 at OpenSim.Region.Physics.OdePlugin.ODERayCastRequestManager.ProcessQueuedRequests () <0x000eb>
210 at OpenSim.Region.Physics.OdePlugin.OdeScene.Simulate (single) <0x017e6>
211 at OpenSim.Region.Framework.Scenes.SceneGraph.UpdatePhysics (double) <0x00042>
212 at OpenSim.Region.Framework.Scenes.Scene.Update () <0x0039e>
213 at OpenSim.Region.Framework.Scenes.Scene.Heartbeat (object) <0x00019>
214 at (wrapper runtime-invoke) object.runtime_invoke_void__this___object (object,intptr,intptr,intptr) <0xffffffff>
215
216 Native stacktrace:
217
218 mono [0x80d2a42]
219 [0xb7f5840c]
220 /lib/i686/cmov/libc.so.6(abort+0x188) [0xb7d1a018]
221 /usr/lib/libstdc++.so.6(_ZN9__gnu_cxx27__verbose_terminate_handlerEv+0x158) [0xb45fc988]
222 /usr/lib/libstdc++.so.6 [0xb45fa865]
223 /usr/lib/libstdc++.so.6 [0xb45fa8a2]
224 /usr/lib/libstdc++.so.6 [0xb45fa9da]
225 /usr/lib/libstdc++.so.6(_Znwj+0x83) [0xb45fb033]
226 /usr/lib/libstdc++.so.6(_Znaj+0x1d) [0xb45fb11d]
227 libode.so(_ZN13dxHeightfield23dCollideHeightfieldZoneEiiiiP6dxGeomiiP12dContactGeomi+0xd04) [0xb46678e4]
228 libode.so(_Z19dCollideHeightfieldP6dxGeomS0_iP12dContactGeomi+0x54b) [0xb466832b]
229 libode.so(dCollide+0x102) [0xb46571b2]
230 [0x95cfdec9]
231 [0x8ea07fe1]
232 [0xab260146]
233 libode.so [0xb465a5c4]
234 libode.so(_ZN11dxHashSpace8collide2EPvP6dxGeomPFvS0_S2_S2_E+0x75) [0xb465bcf5]
235 libode.so(dSpaceCollide2+0x177) [0xb465ac67]
236 [0x95cf978e]
237 [0x8ea07945]
238 [0x95cf2bbc]
239 [0xab2787e7]
240 [0xab419fb3]
241 [0xab416657]
242 [0xab415bda]
243 [0xb609b08e]
244 mono(mono_runtime_delegate_invoke+0x34) [0x8192534]
245 mono [0x81a2f0f]
246 mono [0x81d28b6]
247 mono [0x81ea2c6]
248 /lib/i686/cmov/libpthread.so.0 [0xb7e744c0]
249 /lib/i686/cmov/libc.so.6(clone+0x5e) [0xb7dcd6de]
250 */
251
252 // Exclude heightfield geom
253
254 if (g1 == IntPtr.Zero || g2 == IntPtr.Zero)
255 return;
256 if (d.GeomGetClass(g1) == d.GeomClassID.HeightfieldClass || d.GeomGetClass(g2) == d.GeomClassID.HeightfieldClass)
257 return;
258
259 // Raytest against AABBs of spaces first, then dig into the spaces it hits for actual geoms.
260 if (d.GeomIsSpace(g1) || d.GeomIsSpace(g2))
261 {
262 if (g1 == IntPtr.Zero || g2 == IntPtr.Zero)
263 return;
264
265 // Separating static prim geometry spaces.
266 // We'll be calling near recursivly if one
267 // of them is a space to find all of the
268 // contact points in the space
269 try
270 {
271 d.SpaceCollide2(g1, g2, IntPtr.Zero, nearCallback);
272 }
273 catch (AccessViolationException)
274 {
275 m_log.Warn("[PHYSICS]: Unable to collide test a space");
276 return;
277 }
278 //Colliding a space or a geom with a space or a geom. so drill down
279
280 //Collide all geoms in each space..
281 //if (d.GeomIsSpace(g1)) d.SpaceCollide(g1, IntPtr.Zero, nearCallback);
282 //if (d.GeomIsSpace(g2)) d.SpaceCollide(g2, IntPtr.Zero, nearCallback);
283 return;
284 }
285
286 if (g1 == IntPtr.Zero || g2 == IntPtr.Zero)
287 return;
288
289 int count = 0;
290 try
291 {
292
293 if (g1 == g2)
294 return; // Can't collide with yourself
295
296 lock (contacts)
297 {
298 count = d.Collide(g1, g2, contacts.GetLength(0), contacts, d.ContactGeom.SizeOf);
299 }
300 }
301 catch (SEHException)
302 {
303 m_log.Error("[PHYSICS]: The Operating system shut down ODE because of corrupt memory. This could be a result of really irregular terrain. If this repeats continuously, restart using Basic Physics and terrain fill your terrain. Restarting the sim.");
304 }
305 catch (Exception e)
306 {
307 m_log.WarnFormat("[PHYSICS]: Unable to collide test an object: {0}", e.Message);
308 return;
309 }
310
311 PhysicsActor p1 = null;
312 PhysicsActor p2 = null;
313
314 if (g1 != IntPtr.Zero)
315 m_scene.actor_name_map.TryGetValue(g1, out p1);
316
317 if (g2 != IntPtr.Zero)
318 m_scene.actor_name_map.TryGetValue(g1, out p2);
319
320 // Loop over contacts, build results.
321 for (int i = 0; i < count; i++)
322 {
323 if (p1 != null) {
324 if (p1 is OdePrim)
325 {
326 ContactResult collisionresult = new ContactResult();
327
328 collisionresult.ConsumerID = ((OdePrim)p1).m_localID;
329 collisionresult.Pos = new Vector3(contacts[i].pos.X, contacts[i].pos.Y, contacts[i].pos.Z);
330 collisionresult.Depth = contacts[i].depth;
331 collisionresult.Normal = new Vector3(contacts[i].normal.X, contacts[i].normal.Y,
332 contacts[i].normal.Z);
333 lock (m_contactResults)
334 m_contactResults.Add(collisionresult);
335 }
336 }
337
338 if (p2 != null)
339 {
340 if (p2 is OdePrim)
341 {
342 ContactResult collisionresult = new ContactResult();
343
344 collisionresult.ConsumerID = ((OdePrim)p2).m_localID;
345 collisionresult.Pos = new Vector3(contacts[i].pos.X, contacts[i].pos.Y, contacts[i].pos.Z);
346 collisionresult.Depth = contacts[i].depth;
347 collisionresult.Normal = new Vector3(contacts[i].normal.X, contacts[i].normal.Y,
348 contacts[i].normal.Z);
349
350 lock (m_contactResults)
351 m_contactResults.Add(collisionresult);
352 }
353 }
354
355
356 }
357
358 }
359
360 /// <summary>
361 /// Dereference the creator scene so that it can be garbage collected if needed.
362 /// </summary>
363 internal void Dispose()
364 {
365 m_scene = null;
366 }
367 }
368
369 public struct ODERayCastRequest
370 {
371 public Vector3 Origin;
372 public Vector3 Normal;
373 public float length;
374 public RaycastCallback callbackMethod;
375 }
376
377 public struct ContactResult
378 {
379 public Vector3 Pos;
380 public float Depth;
381 public uint ConsumerID;
382 public Vector3 Normal;
383 }
384}
diff --git a/OpenSim/Region/Physics/ChOdePlugin/OdePhysicsJoint.cs b/OpenSim/Region/Physics/ChOdePlugin/OdePhysicsJoint.cs
new file mode 100644
index 0000000..b4a3c48
--- /dev/null
+++ b/OpenSim/Region/Physics/ChOdePlugin/OdePhysicsJoint.cs
@@ -0,0 +1,48 @@
1/*
2 * Copyright (c) Contributors, http://opensimulator.org/
3 * See CONTRIBUTORS.TXT for a full list of copyright holders.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 * * Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * * Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
12 * * Neither the name of the OpenSimulator Project nor the
13 * names of its contributors may be used to endorse or promote products
14 * derived from this software without specific prior written permission.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
17 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
20 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28using System;
29using OpenMetaverse;
30using Ode.NET;
31using OpenSim.Framework;
32using OpenSim.Region.Physics.Manager;
33using OpenSim.Region.Physics.OdePlugin;
34
35namespace OpenSim.Region.Physics.OdePlugin
36{
37 class OdePhysicsJoint : PhysicsJoint
38 {
39 public override bool IsInPhysicsEngine
40 {
41 get
42 {
43 return (jointID != IntPtr.Zero);
44 }
45 }
46 public IntPtr jointID;
47 }
48}
diff --git a/OpenSim/Region/Physics/ChOdePlugin/OdePlugin.cs b/OpenSim/Region/Physics/ChOdePlugin/OdePlugin.cs
new file mode 100644
index 0000000..00f5122
--- /dev/null
+++ b/OpenSim/Region/Physics/ChOdePlugin/OdePlugin.cs
@@ -0,0 +1,3887 @@
1/*
2 * Copyright (c) Contributors, http://opensimulator.org/
3 * See CONTRIBUTORS.TXT for a full list of copyright holders.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 * * Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * * Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
12 * * Neither the name of the OpenSimulator Project nor the
13 * names of its contributors may be used to endorse or promote products
14 * derived from this software without specific prior written permission.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
17 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
20 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28//#define USE_DRAWSTUFF
29
30using System;
31using System.Collections.Generic;
32using System.Reflection;
33using System.Runtime.InteropServices;
34using System.Threading;
35using System.IO;
36using System.Diagnostics;
37using log4net;
38using Nini.Config;
39using Ode.NET;
40#if USE_DRAWSTUFF
41using Drawstuff.NET;
42#endif
43using OpenSim.Framework;
44using OpenSim.Region.Physics.Manager;
45using OpenMetaverse;
46
47//using OpenSim.Region.Physics.OdePlugin.Meshing;
48
49namespace OpenSim.Region.Physics.OdePlugin
50{
51 /// <summary>
52 /// ODE plugin
53 /// </summary>
54 public class OdePlugin : IPhysicsPlugin
55 {
56 //private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
57
58 private CollisionLocker ode;
59 private OdeScene _mScene;
60
61 public OdePlugin()
62 {
63 ode = new CollisionLocker();
64 }
65
66 public bool Init()
67 {
68 return true;
69 }
70
71 public PhysicsScene GetScene(String sceneIdentifier)
72 {
73 if (_mScene == null)
74 {
75 if (Util.IsWindows())
76 Util.LoadArchSpecificWindowsDll("ode.dll");
77
78 // Initializing ODE only when a scene is created allows alternative ODE plugins to co-habit (according to
79 // http://opensimulator.org/mantis/view.php?id=2750).
80 d.InitODE();
81
82 _mScene = new OdeScene(ode, sceneIdentifier);
83 }
84 return (_mScene);
85 }
86
87 public string GetName()
88 {
89 return ("ChODE");
90 }
91
92 public void Dispose()
93 {
94 }
95 }
96
97 public enum StatusIndicators : int
98 {
99 Generic = 0,
100 Start = 1,
101 End = 2
102 }
103
104 public struct sCollisionData
105 {
106 public uint ColliderLocalId;
107 public uint CollidedWithLocalId;
108 public int NumberOfCollisions;
109 public int CollisionType;
110 public int StatusIndicator;
111 public int lastframe;
112 }
113
114 [Flags]
115 public enum CollisionCategories : int
116 {
117 Disabled = 0,
118 Geom = 0x00000001,
119 Body = 0x00000002,
120 Space = 0x00000004,
121 Character = 0x00000008,
122 Land = 0x00000010,
123 Water = 0x00000020,
124 Wind = 0x00000040,
125 Sensor = 0x00000080,
126 Selected = 0x00000100
127 }
128
129 /// <summary>
130 /// Material type for a primitive
131 /// </summary>
132 public enum Material : int
133 {
134 /// <summary></summary>
135 Stone = 0,
136 /// <summary></summary>
137 Metal = 1,
138 /// <summary></summary>
139 Glass = 2,
140 /// <summary></summary>
141 Wood = 3,
142 /// <summary></summary>
143 Flesh = 4,
144 /// <summary></summary>
145 Plastic = 5,
146 /// <summary></summary>
147 Rubber = 6
148
149 }
150
151 public sealed class OdeScene : PhysicsScene
152 {
153 private readonly ILog m_log;
154 // private Dictionary<string, sCollisionData> m_storedCollisions = new Dictionary<string, sCollisionData>();
155
156 CollisionLocker ode;
157
158 private Random fluidRandomizer = new Random(Environment.TickCount);
159
160 private const uint m_regionWidth = Constants.RegionSize;
161 private const uint m_regionHeight = Constants.RegionSize;
162
163 private float ODE_STEPSIZE = 0.020f;
164 private float metersInSpace = 29.9f;
165 private float m_timeDilation = 1.0f;
166
167 public float gravityx = 0f;
168 public float gravityy = 0f;
169 public float gravityz = -9.8f;
170
171 private float contactsurfacelayer = 0.001f;
172
173 private int worldHashspaceLow = -4;
174 private int worldHashspaceHigh = 128;
175
176 private int smallHashspaceLow = -4;
177 private int smallHashspaceHigh = 66;
178
179 private float waterlevel = 0f;
180 private int framecount = 0;
181 //private int m_returncollisions = 10;
182
183 private readonly IntPtr contactgroup;
184
185 internal IntPtr LandGeom;
186 internal IntPtr WaterGeom;
187
188 private float nmTerrainContactFriction = 255.0f;
189 private float nmTerrainContactBounce = 0.1f;
190 private float nmTerrainContactERP = 0.1025f;
191
192 private float mTerrainContactFriction = 75f;
193 private float mTerrainContactBounce = 0.1f;
194 private float mTerrainContactERP = 0.05025f;
195
196 private float nmAvatarObjectContactFriction = 250f;
197 private float nmAvatarObjectContactBounce = 0.1f;
198
199 private float mAvatarObjectContactFriction = 75f;
200 private float mAvatarObjectContactBounce = 0.1f;
201
202 private float avPIDD = 3200f;
203 private float avPIDP = 1400f;
204 private float avCapRadius = 0.37f;
205 private float avStandupTensor = 2000000f;
206 private bool avCapsuleTilted = true; // true = old compatibility mode with leaning capsule; false = new corrected mode
207 public bool IsAvCapsuleTilted { get { return avCapsuleTilted; } set { avCapsuleTilted = value; } }
208 private float avDensity = 80f;
209 private float avHeightFudgeFactor = 0.52f;
210 private float avMovementDivisorWalk = 1.3f;
211 private float avMovementDivisorRun = 0.8f;
212 private float minimumGroundFlightOffset = 3f;
213 public float maximumMassObject = 10000.01f;
214
215 public bool meshSculptedPrim = true;
216 public bool forceSimplePrimMeshing = false;
217
218 public float meshSculptLOD = 32;
219 public float MeshSculptphysicalLOD = 16;
220
221 public float geomDefaultDensity = 10.000006836f;
222
223 public int geomContactPointsStartthrottle = 3;
224 public int geomUpdatesPerThrottledUpdate = 15;
225
226 public float bodyPIDD = 35f;
227 public float bodyPIDG = 25;
228
229 public int geomCrossingFailuresBeforeOutofbounds = 5;
230 public float geomRegionFence = 0.0f;
231
232 public float bodyMotorJointMaxforceTensor = 2;
233
234 public int bodyFramesAutoDisable = 20;
235
236 private DateTime m_lastframe = DateTime.UtcNow;
237
238 private float[] _watermap;
239 private bool m_filterCollisions = true;
240
241 private d.NearCallback nearCallback;
242 public d.TriCallback triCallback;
243 public d.TriArrayCallback triArrayCallback;
244 private readonly HashSet<OdeCharacter> _characters = new HashSet<OdeCharacter>();
245 private readonly HashSet<OdePrim> _prims = new HashSet<OdePrim>();
246 private readonly HashSet<OdePrim> _activeprims = new HashSet<OdePrim>();
247 private readonly HashSet<OdePrim> _taintedPrimH = new HashSet<OdePrim>();
248 private readonly Object _taintedPrimLock = new Object();
249 private readonly List<OdePrim> _taintedPrimL = new List<OdePrim>();
250 private readonly HashSet<OdeCharacter> _taintedActors = new HashSet<OdeCharacter>();
251 private readonly List<d.ContactGeom> _perloopContact = new List<d.ContactGeom>();
252 private readonly List<PhysicsActor> _collisionEventPrim = new List<PhysicsActor>();
253 private readonly HashSet<OdeCharacter> _badCharacter = new HashSet<OdeCharacter>();
254 public Dictionary<IntPtr, String> geom_name_map = new Dictionary<IntPtr, String>();
255 public Dictionary<IntPtr, PhysicsActor> actor_name_map = new Dictionary<IntPtr, PhysicsActor>();
256 private bool m_NINJA_physics_joints_enabled = false;
257 //private Dictionary<String, IntPtr> jointpart_name_map = new Dictionary<String,IntPtr>();
258 private readonly Dictionary<String, List<PhysicsJoint>> joints_connecting_actor = new Dictionary<String, List<PhysicsJoint>>();
259 private d.ContactGeom[] contacts;
260 private readonly List<PhysicsJoint> requestedJointsToBeCreated = new List<PhysicsJoint>(); // lock only briefly. accessed by external code (to request new joints) and by OdeScene.Simulate() to move those joints into pending/active
261 private readonly List<PhysicsJoint> pendingJoints = new List<PhysicsJoint>(); // can lock for longer. accessed only by OdeScene.
262 private readonly List<PhysicsJoint> activeJoints = new List<PhysicsJoint>(); // can lock for longer. accessed only by OdeScene.
263 private readonly List<string> requestedJointsToBeDeleted = new List<string>(); // lock only briefly. accessed by external code (to request deletion of joints) and by OdeScene.Simulate() to move those joints out of pending/active
264 private Object externalJointRequestsLock = new Object();
265 private readonly Dictionary<String, PhysicsJoint> SOPName_to_activeJoint = new Dictionary<String, PhysicsJoint>();
266 private readonly Dictionary<String, PhysicsJoint> SOPName_to_pendingJoint = new Dictionary<String, PhysicsJoint>();
267 private readonly DoubleDictionary<Vector3, IntPtr, IntPtr> RegionTerrain = new DoubleDictionary<Vector3, IntPtr, IntPtr>();
268 private readonly Dictionary<IntPtr,float[]> TerrainHeightFieldHeights = new Dictionary<IntPtr, float[]>();
269
270 private d.Contact ContactCopy; // local copy that can be modified
271 private d.Contact TerrainContact;
272 private d.Contact AvatarStaticprimContact; // was 'contact'
273 private d.Contact AvatarMovementprimContact;
274 private d.Contact AvatarMovementTerrainContact;
275 private d.Contact WaterContact;
276 private d.Contact[,] m_materialContacts;
277
278//Ckrinke: Comment out until used. We declare it, initialize it, but do not use it
279//Ckrinke private int m_randomizeWater = 200;
280 private int m_physicsiterations = 10;
281 private const float m_SkipFramesAtms = 0.40f; // Drop frames gracefully at a 400 ms lag
282 private readonly PhysicsActor PANull = new NullPhysicsActor();
283 private float step_time = 0.0f;
284//Ckrinke: Comment out until used. We declare it, initialize it, but do not use it
285//Ckrinke private int ms = 0;
286 public IntPtr world;
287 //private bool returncollisions = false;
288 // private uint obj1LocalID = 0;
289 private uint obj2LocalID = 0;
290 //private int ctype = 0;
291 private OdeCharacter cc1;
292 private OdePrim cp1;
293 private OdeCharacter cc2;
294 private OdePrim cp2;
295 //private int cStartStop = 0;
296 //private string cDictKey = "";
297
298 public IntPtr space;
299
300 //private IntPtr tmpSpace;
301 // split static geometry collision handling into spaces of 30 meters
302 public IntPtr[,] staticPrimspace;
303
304 public Object OdeLock;
305
306 public IMesher mesher;
307
308 private IConfigSource m_config;
309
310 public bool physics_logging = false;
311 public int physics_logging_interval = 0;
312 public bool physics_logging_append_existing_logfile = false;
313
314 public d.Vector3 xyz = new d.Vector3(128.1640f, 128.3079f, 25.7600f);
315 public d.Vector3 hpr = new d.Vector3(125.5000f, -17.0000f, 0.0000f);
316
317 // TODO: unused: private uint heightmapWidth = m_regionWidth + 1;
318 // TODO: unused: private uint heightmapHeight = m_regionHeight + 1;
319 // TODO: unused: private uint heightmapWidthSamples;
320 // TODO: unused: private uint heightmapHeightSamples;
321
322 private volatile int m_global_contactcount = 0;
323
324 private Vector3 m_worldOffset = Vector3.Zero;
325 public Vector2 WorldExtents = new Vector2((int)Constants.RegionSize, (int)Constants.RegionSize);
326 private PhysicsScene m_parentScene = null;
327
328 private ODERayCastRequestManager m_rayCastManager;
329
330 /// <summary>
331 /// Initiailizes the scene
332 /// Sets many properties that ODE requires to be stable
333 /// These settings need to be tweaked 'exactly' right or weird stuff happens.
334 /// </summary>
335 public OdeScene(CollisionLocker dode, string sceneIdentifier)
336 {
337 m_log
338 = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType.ToString() + "." + sceneIdentifier);
339
340 OdeLock = new Object();
341 ode = dode;
342 nearCallback = near;
343 triCallback = TriCallback;
344 triArrayCallback = TriArrayCallback;
345 m_rayCastManager = new ODERayCastRequestManager(this);
346 lock (OdeLock)
347 {
348 // Create the world and the first space
349 world = d.WorldCreate();
350 space = d.HashSpaceCreate(IntPtr.Zero);
351
352
353 contactgroup = d.JointGroupCreate(0);
354 //contactgroup
355
356 d.WorldSetAutoDisableFlag(world, false);
357 #if USE_DRAWSTUFF
358
359 Thread viewthread = new Thread(new ParameterizedThreadStart(startvisualization));
360 viewthread.Start();
361 #endif
362 }
363
364
365 _watermap = new float[258 * 258];
366
367 // Zero out the prim spaces array (we split our space into smaller spaces so
368 // we can hit test less.
369 }
370
371#if USE_DRAWSTUFF
372 public void startvisualization(object o)
373 {
374 ds.Functions fn;
375 fn.version = ds.VERSION;
376 fn.start = new ds.CallbackFunction(start);
377 fn.step = new ds.CallbackFunction(step);
378 fn.command = new ds.CallbackFunction(command);
379 fn.stop = null;
380 fn.path_to_textures = "./textures";
381 string[] args = new string[0];
382 ds.SimulationLoop(args.Length, args, 352, 288, ref fn);
383 }
384#endif
385
386 // Initialize the mesh plugin
387 public override void Initialise(IMesher meshmerizer, IConfigSource config)
388 {
389 mesher = meshmerizer;
390 m_config = config;
391 // Defaults
392
393 if (Environment.OSVersion.Platform == PlatformID.Unix)
394 {
395 avPIDD = 3200.0f;
396 avPIDP = 1400.0f;
397 avStandupTensor = 2000000f;
398 }
399 else
400 {
401 avPIDD = 2200.0f;
402 avPIDP = 900.0f;
403 avStandupTensor = 550000f;
404 }
405
406 int contactsPerCollision = 80;
407
408 if (m_config != null)
409 {
410 IConfig physicsconfig = m_config.Configs["ODEPhysicsSettings"];
411 if (physicsconfig != null)
412 {
413 gravityx = physicsconfig.GetFloat("world_gravityx", 0f);
414 gravityy = physicsconfig.GetFloat("world_gravityy", 0f);
415 gravityz = physicsconfig.GetFloat("world_gravityz", -9.8f);
416
417 worldHashspaceLow = physicsconfig.GetInt("world_hashspace_size_low", -4);
418 worldHashspaceHigh = physicsconfig.GetInt("world_hashspace_size_high", 128);
419
420 metersInSpace = physicsconfig.GetFloat("meters_in_small_space", 29.9f);
421 smallHashspaceLow = physicsconfig.GetInt("small_hashspace_size_low", -4);
422 smallHashspaceHigh = physicsconfig.GetInt("small_hashspace_size_high", 66);
423
424 contactsurfacelayer = physicsconfig.GetFloat("world_contact_surface_layer", 0.001f);
425
426 nmTerrainContactFriction = physicsconfig.GetFloat("nm_terraincontact_friction", 255.0f);
427 nmTerrainContactBounce = physicsconfig.GetFloat("nm_terraincontact_bounce", 0.1f);
428 nmTerrainContactERP = physicsconfig.GetFloat("nm_terraincontact_erp", 0.1025f);
429
430 mTerrainContactFriction = physicsconfig.GetFloat("m_terraincontact_friction", 75f);
431 mTerrainContactBounce = physicsconfig.GetFloat("m_terraincontact_bounce", 0.05f);
432 mTerrainContactERP = physicsconfig.GetFloat("m_terraincontact_erp", 0.05025f);
433
434 nmAvatarObjectContactFriction = physicsconfig.GetFloat("objectcontact_friction", 250f);
435 nmAvatarObjectContactBounce = physicsconfig.GetFloat("objectcontact_bounce", 0.2f);
436
437 mAvatarObjectContactFriction = physicsconfig.GetFloat("m_avatarobjectcontact_friction", 75f);
438 mAvatarObjectContactBounce = physicsconfig.GetFloat("m_avatarobjectcontact_bounce", 0.1f);
439
440 ODE_STEPSIZE = physicsconfig.GetFloat("world_stepsize", 0.020f);
441 m_physicsiterations = physicsconfig.GetInt("world_internal_steps_without_collisions", 10);
442
443 avDensity = physicsconfig.GetFloat("av_density", 80f);
444 avHeightFudgeFactor = physicsconfig.GetFloat("av_height_fudge_factor", 0.52f);
445 avMovementDivisorWalk = physicsconfig.GetFloat("av_movement_divisor_walk", 1.3f);
446 avMovementDivisorRun = physicsconfig.GetFloat("av_movement_divisor_run", 0.8f);
447 avCapRadius = physicsconfig.GetFloat("av_capsule_radius", 0.37f);
448 avCapsuleTilted = physicsconfig.GetBoolean("av_capsule_tilted", false);
449
450 contactsPerCollision = physicsconfig.GetInt("contacts_per_collision", 80);
451
452 geomContactPointsStartthrottle = physicsconfig.GetInt("geom_contactpoints_start_throttling", 3);
453 geomUpdatesPerThrottledUpdate = physicsconfig.GetInt("geom_updates_before_throttled_update", 15);
454 geomCrossingFailuresBeforeOutofbounds = physicsconfig.GetInt("geom_crossing_failures_before_outofbounds", 5);
455 geomRegionFence = physicsconfig.GetFloat("region_border_fence", 0.0f);
456
457 geomDefaultDensity = physicsconfig.GetFloat("geometry_default_density", 10.000006836f);
458 bodyFramesAutoDisable = physicsconfig.GetInt("body_frames_auto_disable", 20);
459
460 bodyPIDD = physicsconfig.GetFloat("body_pid_derivative", 35f);
461 bodyPIDG = physicsconfig.GetFloat("body_pid_gain", 25f);
462
463 forceSimplePrimMeshing = physicsconfig.GetBoolean("force_simple_prim_meshing", forceSimplePrimMeshing);
464 meshSculptedPrim = physicsconfig.GetBoolean("mesh_sculpted_prim", true);
465 meshSculptLOD = physicsconfig.GetFloat("mesh_lod", 32f);
466 MeshSculptphysicalLOD = physicsconfig.GetFloat("mesh_physical_lod", 16f);
467 m_filterCollisions = physicsconfig.GetBoolean("filter_collisions", false);
468
469 if (Environment.OSVersion.Platform == PlatformID.Unix)
470 {
471 avPIDD = physicsconfig.GetFloat("av_pid_derivative_linux", 2200.0f);
472 avPIDP = physicsconfig.GetFloat("av_pid_proportional_linux", 900.0f);
473 avStandupTensor = physicsconfig.GetFloat("av_capsule_standup_tensor_linux", 550000f);
474 bodyMotorJointMaxforceTensor = physicsconfig.GetFloat("body_motor_joint_maxforce_tensor_linux", 5f);
475 }
476 else
477 {
478 avPIDD = physicsconfig.GetFloat("av_pid_derivative_win", 2200.0f);
479 avPIDP = physicsconfig.GetFloat("av_pid_proportional_win", 900.0f);
480 avStandupTensor = physicsconfig.GetFloat("av_capsule_standup_tensor_win", 550000f);
481 bodyMotorJointMaxforceTensor = physicsconfig.GetFloat("body_motor_joint_maxforce_tensor_win", 5f);
482 }
483
484 physics_logging = physicsconfig.GetBoolean("physics_logging", false);
485 physics_logging_interval = physicsconfig.GetInt("physics_logging_interval", 0);
486 physics_logging_append_existing_logfile = physicsconfig.GetBoolean("physics_logging_append_existing_logfile", false);
487
488 m_NINJA_physics_joints_enabled = physicsconfig.GetBoolean("use_NINJA_physics_joints", false);
489 minimumGroundFlightOffset = physicsconfig.GetFloat("minimum_ground_flight_offset", 3f);
490 maximumMassObject = physicsconfig.GetFloat("maximum_mass_object", 10000.01f);
491 }
492 }
493
494 contacts = new d.ContactGeom[contactsPerCollision];
495
496 staticPrimspace = new IntPtr[(int)(300 / metersInSpace), (int)(300 / metersInSpace)];
497
498 // Avatar static on a Prim parameters
499 AvatarStaticprimContact.surface.mode = d.ContactFlags.SoftCFM | d.ContactFlags.SoftERP | d.ContactFlags.Bounce;
500 AvatarStaticprimContact.surface.mu = 255.0f;
501 AvatarStaticprimContact.surface.bounce = 0.0f;
502 AvatarStaticprimContact.surface.soft_cfm = 0.0f;
503 AvatarStaticprimContact.surface.soft_erp = 0.30f; // If this is too small static Av will fall through a sloping prim. 1.0 prevents fall-thru
504
505 // Avatar moving on a Prim parameters
506 AvatarMovementprimContact.surface.mode = d.ContactFlags.SoftCFM | d.ContactFlags.SoftERP | d.ContactFlags.Bounce;
507 AvatarMovementprimContact.surface.mu = 255.0f;
508 AvatarMovementprimContact.surface.bounce = 0.0f;
509 AvatarMovementprimContact.surface.soft_cfm = 0.0f; // if this is 0.01 then prims become phantom to Avs!
510 AvatarMovementprimContact.surface.soft_erp = 0.3f;
511
512 // Static Avatar on Terrain parameters
513 // Keeps Avatar in place better
514 TerrainContact.surface.mode = d.ContactFlags.SoftCFM | d.ContactFlags.SoftERP | d.ContactFlags.Bounce;
515 TerrainContact.surface.mu = 255.0f;
516 TerrainContact.surface.bounce = 0.0f;
517 TerrainContact.surface.soft_cfm = 0.0f;
518 TerrainContact.surface.soft_erp = 0.05f;
519
520 // Moving Avatar on Terrain parameters
521 AvatarMovementTerrainContact.surface.mode = d.ContactFlags.SoftCFM | d.ContactFlags.SoftERP | d.ContactFlags.Bounce;
522 AvatarMovementTerrainContact.surface.mu = 75f;
523 AvatarMovementTerrainContact.surface.bounce = 0.0f;
524 AvatarMovementTerrainContact.surface.soft_cfm = 0.0f;
525 AvatarMovementTerrainContact.surface.soft_erp = 0.05f;
526
527 // Avatar or prim the the water, this may not be used, possibly water is same as air?
528 WaterContact.surface.mode |= (d.ContactFlags.SoftERP | d.ContactFlags.SoftCFM);
529 WaterContact.surface.mu = 0.0f; // No friction
530 WaterContact.surface.bounce = 0.0f; // No bounce
531 WaterContact.surface.soft_cfm = 0.010f;
532 WaterContact.surface.soft_erp = 0.010f;
533
534
535 // Prim static or moving on a prim, depends on material type
536 m_materialContacts = new d.Contact[7,2];
537 // V 1 = Sliding; 0 = static or fell onto
538 m_materialContacts[(int)Material.Stone, 0] = new d.Contact();
539 m_materialContacts[(int)Material.Stone, 0].surface.mode = d.ContactFlags.SoftCFM | d.ContactFlags.SoftERP | d.ContactFlags.Bounce;
540 m_materialContacts[(int)Material.Stone, 0].surface.mu = 60f; // friction, 1 = slippery, 255 = no slip
541 m_materialContacts[(int)Material.Stone, 0].surface.bounce = 0.0f;
542 m_materialContacts[(int)Material.Stone, 0].surface.soft_cfm = 0.0f;
543 m_materialContacts[(int)Material.Stone, 0].surface.soft_erp = 0.50f; // erp also changes friction, more erp=less friction
544
545 m_materialContacts[(int)Material.Stone, 1] = new d.Contact();
546 m_materialContacts[(int)Material.Stone, 1].surface.mode = d.ContactFlags.SoftCFM | d.ContactFlags.SoftERP | d.ContactFlags.Bounce;
547 m_materialContacts[(int)Material.Stone, 1].surface.mu = 40f;
548 m_materialContacts[(int)Material.Stone, 1].surface.bounce = 0.0f;
549 m_materialContacts[(int)Material.Stone, 1].surface.soft_cfm = 0.0f;
550 m_materialContacts[(int)Material.Stone, 1].surface.soft_erp = 0.50f;
551
552 m_materialContacts[(int)Material.Metal, 0] = new d.Contact();
553 m_materialContacts[(int)Material.Metal, 0].surface.mode = d.ContactFlags.SoftCFM | d.ContactFlags.SoftERP | d.ContactFlags.Bounce;
554 m_materialContacts[(int)Material.Metal, 0].surface.mu = 15f;
555 m_materialContacts[(int)Material.Metal, 0].surface.bounce = 0.2f;
556 m_materialContacts[(int)Material.Metal, 0].surface.soft_cfm = 0.0f;
557 m_materialContacts[(int)Material.Metal, 0].surface.soft_erp = 0.50f;
558
559 m_materialContacts[(int)Material.Metal, 1] = new d.Contact();
560 m_materialContacts[(int)Material.Metal, 1].surface.mode = d.ContactFlags.SoftCFM | d.ContactFlags.SoftERP | d.ContactFlags.Bounce;
561 m_materialContacts[(int)Material.Metal, 1].surface.mu = 10f;
562 m_materialContacts[(int)Material.Metal, 1].surface.bounce = 0.2f;
563 m_materialContacts[(int)Material.Metal, 1].surface.soft_cfm = 0.0f;
564 m_materialContacts[(int)Material.Metal, 1].surface.soft_erp = 0.50f;
565
566 m_materialContacts[(int)Material.Glass, 0] = new d.Contact();
567 m_materialContacts[(int)Material.Glass, 0].surface.mode = d.ContactFlags.SoftCFM | d.ContactFlags.SoftERP | d.ContactFlags.Bounce;
568 m_materialContacts[(int)Material.Glass, 0].surface.mu = 7.5f;
569 m_materialContacts[(int)Material.Glass, 0].surface.bounce = 0.0f;
570 m_materialContacts[(int)Material.Glass, 0].surface.soft_cfm = 0.0f;
571 m_materialContacts[(int)Material.Glass, 0].surface.soft_erp = 0.50f;
572
573 m_materialContacts[(int)Material.Glass, 1] = new d.Contact();
574 m_materialContacts[(int)Material.Glass, 1].surface.mode = d.ContactFlags.SoftCFM | d.ContactFlags.SoftERP | d.ContactFlags.Bounce;
575 m_materialContacts[(int)Material.Glass, 1].surface.mu = 5f;
576 m_materialContacts[(int)Material.Glass, 1].surface.bounce = 0.0f;
577 m_materialContacts[(int)Material.Glass, 1].surface.soft_cfm = 0.0f;
578 m_materialContacts[(int)Material.Glass, 1].surface.soft_erp = 0.50f;
579
580 m_materialContacts[(int)Material.Wood, 0] = new d.Contact();
581 m_materialContacts[(int)Material.Wood, 0].surface.mode = d.ContactFlags.SoftCFM | d.ContactFlags.SoftERP | d.ContactFlags.Bounce;
582 m_materialContacts[(int)Material.Wood, 0].surface.mu = 45f;
583 m_materialContacts[(int)Material.Wood, 0].surface.bounce = 0.1f;
584 m_materialContacts[(int)Material.Wood, 0].surface.soft_cfm = 0.0f;
585 m_materialContacts[(int)Material.Wood, 0].surface.soft_erp = 0.50f;
586
587 m_materialContacts[(int)Material.Wood, 1] = new d.Contact();
588 m_materialContacts[(int)Material.Wood, 1].surface.mode = d.ContactFlags.SoftCFM | d.ContactFlags.SoftERP | d.ContactFlags.Bounce;
589 m_materialContacts[(int)Material.Wood, 1].surface.mu = 30f;
590 m_materialContacts[(int)Material.Wood, 1].surface.bounce = 0.1f;
591 m_materialContacts[(int)Material.Wood, 1].surface.soft_cfm = 0.0f;
592 m_materialContacts[(int)Material.Wood, 1].surface.soft_erp = 0.50f;
593
594 m_materialContacts[(int)Material.Flesh, 0] = new d.Contact();
595 m_materialContacts[(int)Material.Flesh, 0].surface.mode = d.ContactFlags.SoftCFM | d.ContactFlags.SoftERP | d.ContactFlags.Bounce;
596 m_materialContacts[(int)Material.Flesh, 0].surface.mu = 150f;
597 m_materialContacts[(int)Material.Flesh, 0].surface.bounce = 0.0f;
598 m_materialContacts[(int)Material.Flesh, 0].surface.soft_cfm = 0.0f;
599 m_materialContacts[(int)Material.Flesh, 0].surface.soft_erp = 0.50f;
600
601 m_materialContacts[(int)Material.Flesh, 1] = new d.Contact();
602 m_materialContacts[(int)Material.Flesh, 1].surface.mode = d.ContactFlags.SoftCFM | d.ContactFlags.SoftERP | d.ContactFlags.Bounce;
603 m_materialContacts[(int)Material.Flesh, 1].surface.mu = 100f;
604 m_materialContacts[(int)Material.Flesh, 1].surface.bounce = 0.0f;
605 m_materialContacts[(int)Material.Flesh, 1].surface.soft_cfm = 0.0f;
606 m_materialContacts[(int)Material.Flesh, 1].surface.soft_erp = 0.50f;
607
608 m_materialContacts[(int)Material.Plastic, 0] = new d.Contact();
609 m_materialContacts[(int)Material.Plastic, 0].surface.mode = d.ContactFlags.SoftCFM | d.ContactFlags.SoftERP | d.ContactFlags.Bounce;
610 m_materialContacts[(int)Material.Plastic, 0].surface.mu = 30f;
611 m_materialContacts[(int)Material.Plastic, 0].surface.bounce = 0.2f;
612 m_materialContacts[(int)Material.Plastic, 0].surface.soft_cfm = 0.0f;
613 m_materialContacts[(int)Material.Plastic, 0].surface.soft_erp = 0.50f;
614
615 m_materialContacts[(int)Material.Plastic, 1] = new d.Contact();
616 m_materialContacts[(int)Material.Plastic, 1].surface.mode = d.ContactFlags.SoftCFM | d.ContactFlags.SoftERP | d.ContactFlags.Bounce;
617 m_materialContacts[(int)Material.Plastic, 1].surface.mu = 20f;
618 m_materialContacts[(int)Material.Plastic, 1].surface.bounce = 0.2f;
619 m_materialContacts[(int)Material.Plastic, 1].surface.soft_cfm = 0.0f;
620 m_materialContacts[(int)Material.Plastic, 1].surface.soft_erp = 0.50f;
621
622 m_materialContacts[(int)Material.Rubber, 0] = new d.Contact();
623 m_materialContacts[(int)Material.Rubber, 0].surface.mode = d.ContactFlags.SoftCFM | d.ContactFlags.SoftERP | d.ContactFlags.Bounce;
624 m_materialContacts[(int)Material.Rubber, 0].surface.mu = 150f;
625 m_materialContacts[(int)Material.Rubber, 0].surface.bounce = 0.7f;
626 m_materialContacts[(int)Material.Rubber, 0].surface.soft_cfm = 0.0f;
627 m_materialContacts[(int)Material.Rubber, 0].surface.soft_erp = 0.50f;
628
629 m_materialContacts[(int)Material.Rubber, 1] = new d.Contact();
630 m_materialContacts[(int)Material.Rubber, 1].surface.mode = d.ContactFlags.SoftCFM | d.ContactFlags.SoftERP | d.ContactFlags.Bounce;
631 m_materialContacts[(int)Material.Rubber, 1].surface.mu = 100f;
632 m_materialContacts[(int)Material.Rubber, 1].surface.bounce = 0.7f;
633 m_materialContacts[(int)Material.Rubber, 1].surface.soft_cfm = 0.0f;
634 m_materialContacts[(int)Material.Rubber, 1].surface.soft_erp = 0.50f;
635
636 d.HashSpaceSetLevels(space, worldHashspaceLow, worldHashspaceHigh);
637
638 // Set the gravity,, don't disable things automatically (we set it explicitly on some things)
639
640 d.WorldSetGravity(world, gravityx, gravityy, gravityz);
641 d.WorldSetContactSurfaceLayer(world, contactsurfacelayer);
642
643
644 d.WorldSetLinearDampingThreshold(world, 256f);
645 d.WorldSetLinearDamping(world, 256f);
646// d.WorldSetLinearDampingThreshold(world, 0.01f);
647// d.WorldSetLinearDamping(world, 0.1f);
648 d.WorldSetAngularDampingThreshold(world, 256f);
649 d.WorldSetAngularDamping(world, 256f);
650 d.WorldSetMaxAngularSpeed(world, 256f);
651
652 // Set how many steps we go without running collision testing
653 // This is in addition to the step size.
654 // Essentially Steps * m_physicsiterations
655 d.WorldSetQuickStepNumIterations(world, m_physicsiterations);
656 //d.WorldSetContactMaxCorrectingVel(world, 1000.0f);
657
658
659
660 for (int i = 0; i < staticPrimspace.GetLength(0); i++)
661 {
662 for (int j = 0; j < staticPrimspace.GetLength(1); j++)
663 {
664 staticPrimspace[i, j] = IntPtr.Zero;
665 }
666 }
667 }
668
669 internal void waitForSpaceUnlock(IntPtr space)
670 {
671 //if (space != IntPtr.Zero)
672 //while (d.SpaceLockQuery(space)) { } // Wait and do nothing
673 }
674
675 /// <summary>
676 /// Debug space message for printing the space that a prim/avatar is in.
677 /// </summary>
678 /// <param name="pos"></param>
679 /// <returns>Returns which split up space the given position is in.</returns>
680 public string whichspaceamIin(Vector3 pos)
681 {
682 return calculateSpaceForGeom(pos).ToString();
683 }
684
685 #region Collision Detection
686
687 /// <summary>
688 /// This is our near callback. A geometry is near a body
689 /// </summary>
690 /// <param name="space">The space that contains the geoms. Remember, spaces are also geoms</param>
691 /// <param name="g1">a geometry or space</param>
692 /// <param name="g2">another geometry or space</param>
693 private void near(IntPtr space, IntPtr g1, IntPtr g2)
694 {
695 // no lock here! It's invoked from within Simulate(), which is thread-locked
696
697 // Test if we're colliding a geom with a space.
698 // If so we have to drill down into the space recursively
699//Console.WriteLine("near -----------"); //##
700 if (d.GeomIsSpace(g1) || d.GeomIsSpace(g2))
701 {
702 if (g1 == IntPtr.Zero || g2 == IntPtr.Zero)
703 return;
704
705 // Separating static prim geometry spaces.
706 // We'll be calling near recursivly if one
707 // of them is a space to find all of the
708 // contact points in the space
709 try
710 {
711 d.SpaceCollide2(g1, g2, IntPtr.Zero, nearCallback);
712 }
713 catch (AccessViolationException)
714 {
715 m_log.Warn("[PHYSICS]: Unable to collide test a space");
716 return;
717 }
718 //Colliding a space or a geom with a space or a geom. so drill down
719
720 //Collide all geoms in each space..
721 //if (d.GeomIsSpace(g1)) d.SpaceCollide(g1, IntPtr.Zero, nearCallback);
722 //if (d.GeomIsSpace(g2)) d.SpaceCollide(g2, IntPtr.Zero, nearCallback);
723 return;
724 }
725
726 if (g1 == IntPtr.Zero || g2 == IntPtr.Zero)
727 return;
728
729 IntPtr b1 = d.GeomGetBody(g1);
730 IntPtr b2 = d.GeomGetBody(g2);
731
732 // d.GeomClassID id = d.GeomGetClass(g1);
733
734 String name1 = null;
735 String name2 = null;
736
737 if (!geom_name_map.TryGetValue(g1, out name1))
738 {
739 name1 = "null";
740 }
741 if (!geom_name_map.TryGetValue(g2, out name2))
742 {
743 name2 = "null";
744 }
745
746 //if (id == d.GeomClassId.TriMeshClass)
747 //{
748 // m_log.InfoFormat("near: A collision was detected between {1} and {2}", 0, name1, name2);
749 //m_log.Debug("near: A collision was detected between {1} and {2}", 0, name1, name2);
750 //}
751
752 // Figure out how many contact points we have
753 int count = 0;
754 try
755 {
756 // Colliding Geom To Geom
757 // This portion of the function 'was' blatantly ripped off from BoxStack.cs
758
759 if (g1 == g2)
760 return; // Can't collide with yourself
761
762 if (b1 != IntPtr.Zero && b2 != IntPtr.Zero && d.AreConnectedExcluding(b1, b2, d.JointType.Contact))
763 return;
764
765 lock (contacts)
766 {
767 count = d.Collide(g1, g2, contacts.Length, contacts, d.ContactGeom.SizeOf);
768 if (count > contacts.Length)
769 m_log.Error("[PHYSICS]: Got " + count + " contacts when we asked for a maximum of " + contacts.Length);
770 }
771 }
772 catch (SEHException)
773 {
774 m_log.Error("[PHYSICS]: The Operating system shut down ODE because of corrupt memory. This could be a result of really irregular terrain. If this repeats continuously, restart using Basic Physics and terrain fill your terrain. Restarting the sim.");
775 ode.drelease(world);
776 base.TriggerPhysicsBasedRestart();
777 }
778 catch (Exception e)
779 {
780 m_log.WarnFormat("[PHYSICS]: Unable to collide test an object: {0}", e.Message);
781 return;
782 }
783
784 PhysicsActor p1;
785 PhysicsActor p2;
786
787 if (!actor_name_map.TryGetValue(g1, out p1))
788 {
789 p1 = PANull;
790 }
791
792 if (!actor_name_map.TryGetValue(g2, out p2))
793 {
794 p2 = PANull;
795 }
796
797 ContactPoint maxDepthContact = new ContactPoint();
798 if (p1.CollisionScore + count >= float.MaxValue)
799 p1.CollisionScore = 0;
800 p1.CollisionScore += count;
801
802 if (p2.CollisionScore + count >= float.MaxValue)
803 p2.CollisionScore = 0;
804 p2.CollisionScore += count;
805 for (int i = 0; i < count; i++)
806 {
807 d.ContactGeom curContact = contacts[i];
808
809 if (curContact.depth > maxDepthContact.PenetrationDepth)
810 {
811 maxDepthContact = new ContactPoint(
812 new Vector3(curContact.pos.X, curContact.pos.Y, curContact.pos.Z),
813 new Vector3(curContact.normal.X, curContact.normal.Y, curContact.normal.Z),
814 curContact.depth
815 );
816 }
817
818 //m_log.Warn("[CCOUNT]: " + count);
819 IntPtr joint;
820 // If we're colliding with terrain, use 'TerrainContact' instead of AvatarStaticprimContact.
821 // allows us to have different settings
822
823 // We only need to test p2 for 'jump crouch purposes'
824 if (p2 is OdeCharacter && p1.PhysicsActorType == (int)ActorTypes.Prim)
825 {
826 // Testing if the collision is at the feet of the avatar
827
828 //m_log.DebugFormat("[PHYSICS]: {0} - {1} - {2} - {3}", curContact.pos.Z, p2.Position.Z, (p2.Position.Z - curContact.pos.Z), (p2.Size.Z * 0.6f));
829//#@ if ((p2.Position.Z - curContact.pos.Z) > (p2.Size.Z * 0.6f))
830//#@ p2.IsColliding = true;
831 if ((p2.Position.Z - curContact.pos.Z) > (p2.Size.Z * 0.6f)){ //##
832 p2.IsColliding = true; //##
833 }else{
834
835 } //##
836 }
837 else
838 {
839 p2.IsColliding = true;
840 }
841
842 //if ((framecount % m_returncollisions) == 0)
843
844 switch (p1.PhysicsActorType)
845 {
846 case (int)ActorTypes.Agent:
847 p2.CollidingObj = true;
848 break;
849 case (int)ActorTypes.Prim:
850 if (p2.Velocity.LengthSquared() > 0.0f)
851 p2.CollidingObj = true;
852 break;
853 case (int)ActorTypes.Unknown:
854 p2.CollidingGround = true;
855 break;
856 default:
857 p2.CollidingGround = true;
858 break;
859 }
860
861 // we don't want prim or avatar to explode
862
863 #region InterPenetration Handling - Unintended physics explosions
864# region disabled code1
865
866 if (curContact.depth >= 0.08f)
867 {
868 //This is disabled at the moment only because it needs more tweaking
869 //It will eventually be uncommented
870 /*
871 if (AvatarStaticprimContact.depth >= 1.00f)
872 {
873 //m_log.Debug("[PHYSICS]: " + AvatarStaticprimContact.depth.ToString());
874 }
875
876 //If you interpenetrate a prim with an agent
877 if ((p2.PhysicsActorType == (int) ActorTypes.Agent &&
878 p1.PhysicsActorType == (int) ActorTypes.Prim) ||
879 (p1.PhysicsActorType == (int) ActorTypes.Agent &&
880 p2.PhysicsActorType == (int) ActorTypes.Prim))
881 {
882
883 //AvatarStaticprimContact.depth = AvatarStaticprimContact.depth * 4.15f;
884 /*
885 if (p2.PhysicsActorType == (int) ActorTypes.Agent)
886 {
887 p2.CollidingObj = true;
888 AvatarStaticprimContact.depth = 0.003f;
889 p2.Velocity = p2.Velocity + new PhysicsVector(0, 0, 2.5f);
890 OdeCharacter character = (OdeCharacter) p2;
891 character.SetPidStatus(true);
892 AvatarStaticprimContact.pos = new d.Vector3(AvatarStaticprimContact.pos.X + (p1.Size.X / 2), AvatarStaticprimContact.pos.Y + (p1.Size.Y / 2), AvatarStaticprimContact.pos.Z + (p1.Size.Z / 2));
893
894 }
895 else
896 {
897
898 //AvatarStaticprimContact.depth = 0.0000000f;
899 }
900 if (p1.PhysicsActorType == (int) ActorTypes.Agent)
901 {
902
903 p1.CollidingObj = true;
904 AvatarStaticprimContact.depth = 0.003f;
905 p1.Velocity = p1.Velocity + new PhysicsVector(0, 0, 2.5f);
906 AvatarStaticprimContact.pos = new d.Vector3(AvatarStaticprimContact.pos.X + (p2.Size.X / 2), AvatarStaticprimContact.pos.Y + (p2.Size.Y / 2), AvatarStaticprimContact.pos.Z + (p2.Size.Z / 2));
907 OdeCharacter character = (OdeCharacter)p1;
908 character.SetPidStatus(true);
909 }
910 else
911 {
912
913 //AvatarStaticprimContact.depth = 0.0000000f;
914 }
915
916
917
918 }
919*/
920 // If you interpenetrate a prim with another prim
921 /*
922 if (p1.PhysicsActorType == (int) ActorTypes.Prim && p2.PhysicsActorType == (int) ActorTypes.Prim)
923 {
924 #region disabledcode2
925 //OdePrim op1 = (OdePrim)p1;
926 //OdePrim op2 = (OdePrim)p2;
927 //op1.m_collisionscore++;
928 //op2.m_collisionscore++;
929
930 //if (op1.m_collisionscore > 8000 || op2.m_collisionscore > 8000)
931 //{
932 //op1.m_taintdisable = true;
933 //AddPhysicsActorTaint(p1);
934 //op2.m_taintdisable = true;
935 //AddPhysicsActorTaint(p2);
936 //}
937
938 //if (AvatarStaticprimContact.depth >= 0.25f)
939 //{
940 // Don't collide, one or both prim will expld.
941
942 //op1.m_interpenetrationcount++;
943 //op2.m_interpenetrationcount++;
944 //interpenetrations_before_disable = 200;
945 //if (op1.m_interpenetrationcount >= interpenetrations_before_disable)
946 //{
947 //op1.m_taintdisable = true;
948 //AddPhysicsActorTaint(p1);
949 //}
950 //if (op2.m_interpenetrationcount >= interpenetrations_before_disable)
951 //{
952 // op2.m_taintdisable = true;
953 //AddPhysicsActorTaint(p2);
954 //}
955
956 //AvatarStaticprimContact.depth = AvatarStaticprimContact.depth / 8f;
957 //AvatarStaticprimContact.normal = new d.Vector3(0, 0, 1);
958 //}
959 //if (op1.m_disabled || op2.m_disabled)
960 //{
961 //Manually disabled objects stay disabled
962 //AvatarStaticprimContact.depth = 0f;
963 //}
964 #endregion
965 }
966 */
967#endregion
968 if (curContact.depth >= 1.00f)
969 {
970 //m_log.Info("[P]: " + AvatarStaticprimContact.depth.ToString());
971 if ((p2.PhysicsActorType == (int) ActorTypes.Agent &&
972 p1.PhysicsActorType == (int) ActorTypes.Unknown) ||
973 (p1.PhysicsActorType == (int) ActorTypes.Agent &&
974 p2.PhysicsActorType == (int) ActorTypes.Unknown))
975 {
976 if (p2.PhysicsActorType == (int) ActorTypes.Agent)
977 {
978 if (p2 is OdeCharacter)
979 {
980 OdeCharacter character = (OdeCharacter) p2;
981
982 //p2.CollidingObj = true;
983 curContact.depth = 0.00000003f;
984 p2.Velocity = p2.Velocity + new Vector3(0f, 0f, 0.5f);
985 curContact.pos =
986 new d.Vector3(curContact.pos.X + (p1.Size.X/2),
987 curContact.pos.Y + (p1.Size.Y/2),
988 curContact.pos.Z + (p1.Size.Z/2));
989 character.SetPidStatus(true);
990 }
991 }
992
993
994 if (p1.PhysicsActorType == (int) ActorTypes.Agent)
995 {
996 if (p1 is OdeCharacter)
997 {
998 OdeCharacter character = (OdeCharacter) p1;
999
1000 //p2.CollidingObj = true;
1001 curContact.depth = 0.00000003f;
1002 p1.Velocity = p1.Velocity + new Vector3(0f, 0f, 0.5f);
1003 curContact.pos =
1004 new d.Vector3(curContact.pos.X + (p1.Size.X/2),
1005 curContact.pos.Y + (p1.Size.Y/2),
1006 curContact.pos.Z + (p1.Size.Z/2));
1007 character.SetPidStatus(true);
1008 }
1009 }
1010 }
1011 }
1012 }
1013
1014 #endregion
1015
1016 // Logic for collision handling
1017 // Note, that if *all* contacts are skipped (VolumeDetect)
1018 // The prim still detects (and forwards) collision events but
1019 // appears to be phantom for the world
1020 Boolean skipThisContact = false;
1021
1022 if ((p1 is OdePrim) && (((OdePrim)p1).m_isVolumeDetect))
1023 skipThisContact = true; // No collision on volume detect prims
1024
1025 if (!skipThisContact && (p2 is OdePrim) && (((OdePrim)p2).m_isVolumeDetect))
1026 skipThisContact = true; // No collision on volume detect prims
1027
1028 if (!skipThisContact && curContact.depth < 0f)
1029 skipThisContact = true;
1030
1031 if (!skipThisContact && checkDupe(curContact, p2.PhysicsActorType))
1032 skipThisContact = true;
1033
1034 const int maxContactsbeforedeath = 4000;
1035 joint = IntPtr.Zero;
1036
1037 if (!skipThisContact)
1038 {
1039 // Add contact joints with materials params----------------------------------
1040 // p1 is what is being hit, p2 is the physical object doing the hitting
1041 int material = (int) Material.Wood;
1042 int movintYN = 0; // 1 = Sliding; 0 = static or fell onto
1043 if (Math.Abs(p2.Velocity.X) > 0.01f || Math.Abs(p2.Velocity.Y) > 0.01f) movintYN = 1;
1044
1045 // If we're colliding against terrain
1046 if (name1 == "Terrain" || name2 == "Terrain")
1047 {
1048 // If we're moving
1049 if ((p2.PhysicsActorType == (int) ActorTypes.Agent) && (movintYN == 1))
1050 {
1051 //$ Av walk/run on terrain (not falling) Use the Avatar movement terrain contact
1052 AvatarMovementTerrainContact.geom = curContact;
1053 _perloopContact.Add(curContact);
1054 if (m_global_contactcount < maxContactsbeforedeath)
1055 {
1056 joint = d.JointCreateContact(world, contactgroup, ref AvatarMovementTerrainContact);
1057 m_global_contactcount++;
1058 }
1059 }
1060 else
1061 {
1062 if (p2.PhysicsActorType == (int)ActorTypes.Agent)
1063 {
1064 //$ Av standing on terrain, Use the non moving Avata terrain contact
1065 TerrainContact.geom = curContact;
1066 _perloopContact.Add(curContact);
1067 if (m_global_contactcount < maxContactsbeforedeath)
1068 {
1069 joint = d.JointCreateContact(world, contactgroup, ref TerrainContact);
1070 m_global_contactcount++;
1071 }
1072 }
1073 else
1074 {
1075 if (p2.PhysicsActorType == (int)ActorTypes.Prim && p1.PhysicsActorType == (int)ActorTypes.Prim)
1076 {
1077 //& THIS NEVER HAPPENS? prim prim contact In terrain contact?
1078 // int pj294950 = 0;
1079 // prim terrain contact
1080
1081 if (p2 is OdePrim)
1082 material = ((OdePrim)p2).m_material;
1083 //m_log.DebugFormat("Material: {0}", material);
1084 m_materialContacts[material, movintYN].geom = curContact;
1085 _perloopContact.Add(curContact);
1086
1087 if (m_global_contactcount < maxContactsbeforedeath)
1088 {
1089 joint = d.JointCreateContact(world, contactgroup, ref m_materialContacts[material, movintYN]);
1090 m_global_contactcount++;
1091
1092 }
1093
1094 }
1095 else
1096 {
1097 //$ prim on terrain contact
1098 if (p2 is OdePrim)
1099 material = ((OdePrim)p2).m_material;
1100 //m_log.DebugFormat("Material: {0}", material);
1101 m_materialContacts[material, movintYN].geom = curContact;
1102 _perloopContact.Add(curContact);
1103
1104 ContactCopy = m_materialContacts[material, movintYN];
1105 if(movintYN == 1)
1106 {
1107 // prevent excessive slide on terrain
1108 ContactCopy.surface.mu = m_materialContacts[material, movintYN].surface.mu * 30.0f;
1109 }
1110
1111 if (m_global_contactcount < maxContactsbeforedeath)
1112 {
1113 joint = d.JointCreateContact(world, contactgroup, ref ContactCopy);
1114 m_global_contactcount++;
1115 }
1116 }
1117 }
1118 }
1119 }
1120 else if (name1 == "Water" || name2 == "Water")
1121 {
1122 //$ This never happens! Perhaps water is treated like air?
1123 /*
1124 if ((p2.PhysicsActorType == (int) ActorTypes.Prim))
1125 {
1126 }
1127 else
1128 {
1129 }
1130 */
1131 //WaterContact.surface.soft_cfm = 0.0000f;
1132 //WaterContact.surface.soft_erp = 0.00000f;
1133 if (curContact.depth > 0.1f)
1134 {
1135 curContact.depth *= 52;
1136 //AvatarStaticprimContact.normal = new d.Vector3(0, 0, 1);
1137 //AvatarStaticprimContact.pos = new d.Vector3(0, 0, contact.pos.Z - 5f);
1138 }
1139 WaterContact.geom = curContact;
1140 _perloopContact.Add(curContact);
1141 if (m_global_contactcount < maxContactsbeforedeath)
1142 {
1143 joint = d.JointCreateContact(world, contactgroup, ref WaterContact);
1144 m_global_contactcount++;
1145 }
1146 //m_log.Info("[PHYSICS]: Prim Water Contact" + AvatarStaticprimContact.depth);
1147 }
1148 else
1149 {
1150
1151 // no terrain and no water, we're colliding with prim or avatar
1152 // check if we're moving
1153 if ((p2.PhysicsActorType == (int)ActorTypes.Agent))
1154 {
1155 //$ Avatar on Prim or other Avatar
1156 if (movintYN == 1)
1157 {
1158 // Use the AV Movement / prim contact
1159 AvatarMovementprimContact.geom = curContact;
1160 _perloopContact.Add(curContact);
1161 if (m_global_contactcount < maxContactsbeforedeath)
1162 {
1163 joint = d.JointCreateContact(world, contactgroup, ref AvatarMovementprimContact);
1164 m_global_contactcount++;
1165 }
1166 }
1167 else
1168 {
1169 // Use the Av non movement / prim contact
1170 AvatarStaticprimContact.geom = curContact;
1171 _perloopContact.Add(curContact);
1172 ContactCopy = AvatarStaticprimContact; // local copy so we can change locally
1173
1174 if (m_global_contactcount < maxContactsbeforedeath)
1175 {
1176 if (curContact.depth > 0.2)
1177 { // embedded, eject slowly
1178 ContactCopy.surface.soft_erp = 0.1f;
1179 ContactCopy.surface.soft_cfm = 0.1f;
1180 }
1181 else
1182 { // keep on the surface
1183 ContactCopy.surface.soft_erp = 0.3f;
1184 ContactCopy.surface.soft_cfm = 0.0f;
1185 }
1186 joint = d.JointCreateContact(world, contactgroup, ref ContactCopy);
1187 m_global_contactcount++;
1188 }
1189 }
1190 }
1191 else if (p2.PhysicsActorType == (int)ActorTypes.Prim)
1192 {
1193 //$ Prim on Prim
1194 //p1.PhysicsActorType
1195
1196 if (p2 is OdePrim) material = ((OdePrim)p2).m_material;
1197 //m_log.DebugFormat("Material: {0}", material);
1198
1199 m_materialContacts[material, movintYN].geom = curContact;
1200 _perloopContact.Add(curContact);
1201
1202 if (m_global_contactcount < maxContactsbeforedeath)
1203 {
1204 joint = d.JointCreateContact(world, contactgroup, ref m_materialContacts[material, movintYN]);
1205 m_global_contactcount++;
1206 }
1207 }
1208 }
1209
1210 if (m_global_contactcount < maxContactsbeforedeath && joint != IntPtr.Zero) // stack collide!
1211 {
1212 d.JointAttach(joint, b1, b2);
1213 m_global_contactcount++;
1214 }
1215
1216 }
1217 collision_accounting_events(p1, p2, maxDepthContact);
1218 if (count > geomContactPointsStartthrottle)
1219 {
1220 // If there are more then 3 contact points, it's likely
1221 // that we've got a pile of objects, so ...
1222 // We don't want to send out hundreds of terse updates over and over again
1223 // so lets throttle them and send them again after it's somewhat sorted out.
1224 p2.ThrottleUpdates = true;
1225 }
1226 //m_log.Debug(count.ToString());
1227 //m_log.Debug("near: A collision was detected between {1} and {2}", 0, name1, name2);
1228 } // end for i.. loop
1229 } // end near
1230
1231 private bool checkDupe(d.ContactGeom contactGeom, int atype)
1232 {
1233 bool result = false;
1234 //return result;
1235 if (!m_filterCollisions)
1236 return false;
1237
1238 ActorTypes at = (ActorTypes)atype;
1239 lock (_perloopContact)
1240 {
1241 foreach (d.ContactGeom contact in _perloopContact)
1242 {
1243 //if ((contact.g1 == contactGeom.g1 && contact.g2 == contactGeom.g2))
1244 //{
1245 // || (contact.g2 == contactGeom.g1 && contact.g1 == contactGeom.g2)
1246 if (at == ActorTypes.Agent)
1247 {
1248 if (((Math.Abs(contactGeom.normal.X - contact.normal.X) < 1.026f) && (Math.Abs(contactGeom.normal.Y - contact.normal.Y) < 0.303f) && (Math.Abs(contactGeom.normal.Z - contact.normal.Z) < 0.065f)) && contactGeom.g1 != LandGeom && contactGeom.g2 != LandGeom)
1249 {
1250
1251 if (Math.Abs(contact.depth - contactGeom.depth) < 0.052f)
1252 {
1253 //contactGeom.depth *= .00005f;
1254 //m_log.DebugFormat("[Collsion]: Depth {0}", Math.Abs(contact.depth - contactGeom.depth));
1255 // m_log.DebugFormat("[Collision]: <{0},{1},{2}>", Math.Abs(contactGeom.normal.X - contact.normal.X), Math.Abs(contactGeom.normal.Y - contact.normal.Y), Math.Abs(contactGeom.normal.Z - contact.normal.Z));
1256 result = true;
1257 break;
1258 }
1259 else
1260 {
1261 //m_log.DebugFormat("[Collsion]: Depth {0}", Math.Abs(contact.depth - contactGeom.depth));
1262 }
1263 }
1264 else
1265 {
1266 //m_log.DebugFormat("[Collision]: <{0},{1},{2}>", Math.Abs(contactGeom.normal.X - contact.normal.X), Math.Abs(contactGeom.normal.Y - contact.normal.Y), Math.Abs(contactGeom.normal.Z - contact.normal.Z));
1267 //int i = 0;
1268 }
1269 }
1270 else if (at == ActorTypes.Prim)
1271 {
1272 //d.AABB aabb1 = new d.AABB();
1273 //d.AABB aabb2 = new d.AABB();
1274
1275 //d.GeomGetAABB(contactGeom.g2, out aabb2);
1276 //d.GeomGetAABB(contactGeom.g1, out aabb1);
1277 //aabb1.
1278 if (((Math.Abs(contactGeom.normal.X - contact.normal.X) < 1.026f) && (Math.Abs(contactGeom.normal.Y - contact.normal.Y) < 0.303f) && (Math.Abs(contactGeom.normal.Z - contact.normal.Z) < 0.065f)) && contactGeom.g1 != LandGeom && contactGeom.g2 != LandGeom)
1279 {
1280 if (contactGeom.normal.X == contact.normal.X && contactGeom.normal.Y == contact.normal.Y && contactGeom.normal.Z == contact.normal.Z)
1281 {
1282 if (Math.Abs(contact.depth - contactGeom.depth) < 0.272f)
1283 {
1284 result = true;
1285 break;
1286 }
1287 }
1288 //m_log.DebugFormat("[Collsion]: Depth {0}", Math.Abs(contact.depth - contactGeom.depth));
1289 //m_log.DebugFormat("[Collision]: <{0},{1},{2}>", Math.Abs(contactGeom.normal.X - contact.normal.X), Math.Abs(contactGeom.normal.Y - contact.normal.Y), Math.Abs(contactGeom.normal.Z - contact.normal.Z));
1290 }
1291
1292 }
1293
1294 //}
1295
1296 }
1297 }
1298 return result;
1299 }
1300
1301 private void collision_accounting_events(PhysicsActor p1, PhysicsActor p2, ContactPoint contact)
1302 {
1303 // obj1LocalID = 0;
1304 //returncollisions = false;
1305 obj2LocalID = 0;
1306 //ctype = 0;
1307 //cStartStop = 0;
1308 if (!p2.SubscribedEvents() && !p1.SubscribedEvents())
1309 return;
1310
1311 switch ((ActorTypes)p2.PhysicsActorType)
1312 {
1313 case ActorTypes.Agent:
1314 cc2 = (OdeCharacter)p2;
1315
1316 // obj1LocalID = cc2.m_localID;
1317 switch ((ActorTypes)p1.PhysicsActorType)
1318 {
1319 case ActorTypes.Agent:
1320 cc1 = (OdeCharacter)p1;
1321 obj2LocalID = cc1.m_localID;
1322 cc1.AddCollisionEvent(cc2.m_localID, contact);
1323 //ctype = (int)CollisionCategories.Character;
1324
1325 //if (cc1.CollidingObj)
1326 //cStartStop = (int)StatusIndicators.Generic;
1327 //else
1328 //cStartStop = (int)StatusIndicators.Start;
1329
1330 //returncollisions = true;
1331 break;
1332 case ActorTypes.Prim:
1333 if (p1 is OdePrim)
1334 {
1335 cp1 = (OdePrim) p1;
1336 obj2LocalID = cp1.m_localID;
1337 cp1.AddCollisionEvent(cc2.m_localID, contact);
1338 }
1339 //ctype = (int)CollisionCategories.Geom;
1340
1341 //if (cp1.CollidingObj)
1342 //cStartStop = (int)StatusIndicators.Generic;
1343 //else
1344 //cStartStop = (int)StatusIndicators.Start;
1345
1346 //returncollisions = true;
1347 break;
1348
1349 case ActorTypes.Ground:
1350 case ActorTypes.Unknown:
1351 obj2LocalID = 0;
1352 //ctype = (int)CollisionCategories.Land;
1353 //returncollisions = true;
1354 break;
1355 }
1356
1357 cc2.AddCollisionEvent(obj2LocalID, contact);
1358 break;
1359 case ActorTypes.Prim:
1360
1361 if (p2 is OdePrim)
1362 {
1363 cp2 = (OdePrim) p2;
1364
1365 // obj1LocalID = cp2.m_localID;
1366 switch ((ActorTypes) p1.PhysicsActorType)
1367 {
1368 case ActorTypes.Agent:
1369 if (p1 is OdeCharacter)
1370 {
1371 cc1 = (OdeCharacter) p1;
1372 obj2LocalID = cc1.m_localID;
1373 cc1.AddCollisionEvent(cp2.m_localID, contact);
1374 //ctype = (int)CollisionCategories.Character;
1375
1376 //if (cc1.CollidingObj)
1377 //cStartStop = (int)StatusIndicators.Generic;
1378 //else
1379 //cStartStop = (int)StatusIndicators.Start;
1380 //returncollisions = true;
1381 }
1382 break;
1383 case ActorTypes.Prim:
1384
1385 if (p1 is OdePrim)
1386 {
1387 cp1 = (OdePrim) p1;
1388 obj2LocalID = cp1.m_localID;
1389 cp1.AddCollisionEvent(cp2.m_localID, contact);
1390 //ctype = (int)CollisionCategories.Geom;
1391
1392 //if (cp1.CollidingObj)
1393 //cStartStop = (int)StatusIndicators.Generic;
1394 //else
1395 //cStartStop = (int)StatusIndicators.Start;
1396
1397 //returncollisions = true;
1398 }
1399 break;
1400
1401 case ActorTypes.Ground:
1402 case ActorTypes.Unknown:
1403 obj2LocalID = 0;
1404 //ctype = (int)CollisionCategories.Land;
1405
1406 //returncollisions = true;
1407 break;
1408 }
1409
1410 cp2.AddCollisionEvent(obj2LocalID, contact);
1411 }
1412 break;
1413 }
1414 //if (returncollisions)
1415 //{
1416
1417 //lock (m_storedCollisions)
1418 //{
1419 //cDictKey = obj1LocalID.ToString() + obj2LocalID.ToString() + cStartStop.ToString() + ctype.ToString();
1420 //if (m_storedCollisions.ContainsKey(cDictKey))
1421 //{
1422 //sCollisionData objd = m_storedCollisions[cDictKey];
1423 //objd.NumberOfCollisions += 1;
1424 //objd.lastframe = framecount;
1425 //m_storedCollisions[cDictKey] = objd;
1426 //}
1427 //else
1428 //{
1429 //sCollisionData objd = new sCollisionData();
1430 //objd.ColliderLocalId = obj1LocalID;
1431 //objd.CollidedWithLocalId = obj2LocalID;
1432 //objd.CollisionType = ctype;
1433 //objd.NumberOfCollisions = 1;
1434 //objd.lastframe = framecount;
1435 //objd.StatusIndicator = cStartStop;
1436 //m_storedCollisions.Add(cDictKey, objd);
1437 //}
1438 //}
1439 // }
1440 }
1441
1442 public int TriArrayCallback(IntPtr trimesh, IntPtr refObject, int[] triangleIndex, int triCount)
1443 {
1444 /* String name1 = null;
1445 String name2 = null;
1446
1447 if (!geom_name_map.TryGetValue(trimesh, out name1))
1448 {
1449 name1 = "null";
1450 }
1451 if (!geom_name_map.TryGetValue(refObject, out name2))
1452 {
1453 name2 = "null";
1454 }
1455
1456 m_log.InfoFormat("TriArrayCallback: A collision was detected between {1} and {2}", 0, name1, name2);
1457 */
1458 return 1;
1459 }
1460
1461 public int TriCallback(IntPtr trimesh, IntPtr refObject, int triangleIndex)
1462 {
1463 String name1 = null;
1464 String name2 = null;
1465
1466 if (!geom_name_map.TryGetValue(trimesh, out name1))
1467 {
1468 name1 = "null";
1469 }
1470
1471 if (!geom_name_map.TryGetValue(refObject, out name2))
1472 {
1473 name2 = "null";
1474 }
1475
1476 // m_log.InfoFormat("TriCallback: A collision was detected between {1} and {2}. Index was {3}", 0, name1, name2, triangleIndex);
1477
1478 d.Vector3 v0 = new d.Vector3();
1479 d.Vector3 v1 = new d.Vector3();
1480 d.Vector3 v2 = new d.Vector3();
1481
1482 d.GeomTriMeshGetTriangle(trimesh, 0, ref v0, ref v1, ref v2);
1483 // m_log.DebugFormat("Triangle {0} is <{1},{2},{3}>, <{4},{5},{6}>, <{7},{8},{9}>", triangleIndex, v0.X, v0.Y, v0.Z, v1.X, v1.Y, v1.Z, v2.X, v2.Y, v2.Z);
1484
1485 return 1;
1486 }
1487
1488 /// <summary>
1489 /// This is our collision testing routine in ODE
1490 /// </summary>
1491 /// <param name="timeStep"></param>
1492 private void collision_optimized(float timeStep)
1493 {
1494 _perloopContact.Clear();
1495
1496 lock (_characters)
1497 {
1498 foreach (OdeCharacter chr in _characters)
1499 {
1500 // Reset the collision values to false
1501 // since we don't know if we're colliding yet
1502
1503 // For some reason this can happen. Don't ask...
1504 //
1505 if (chr == null)
1506 continue;
1507
1508 if (chr.Shell == IntPtr.Zero || chr.Body == IntPtr.Zero)
1509 continue;
1510
1511 chr.IsColliding = false;
1512 chr.CollidingGround = false;
1513 chr.CollidingObj = false;
1514
1515 // test the avatar's geometry for collision with the space
1516 // This will return near and the space that they are the closest to
1517 // And we'll run this again against the avatar and the space segment
1518 // This will return with a bunch of possible objects in the space segment
1519 // and we'll run it again on all of them.
1520 try
1521 {
1522 d.SpaceCollide2(space, chr.Shell, IntPtr.Zero, nearCallback);
1523 }
1524 catch (AccessViolationException)
1525 {
1526 m_log.Warn("[PHYSICS]: Unable to space collide");
1527 }
1528 //float terrainheight = GetTerrainHeightAtXY(chr.Position.X, chr.Position.Y);
1529 //if (chr.Position.Z + (chr.Velocity.Z * timeStep) < terrainheight + 10)
1530 //{
1531 //chr.Position.Z = terrainheight + 10.0f;
1532 //forcedZ = true;
1533 //}
1534 }
1535 }
1536
1537 lock (_activeprims)
1538 {
1539 List<OdePrim> removeprims = null;
1540 foreach (OdePrim chr in _activeprims)
1541 {
1542 if (chr.Body != IntPtr.Zero && d.BodyIsEnabled(chr.Body) && (!chr.m_disabled) && !chr.m_outofBounds)
1543 {
1544 try
1545 {
1546 lock (chr)
1547 {
1548 if (space != IntPtr.Zero && chr.prim_geom != IntPtr.Zero && chr.m_taintremove == false)
1549 {
1550 d.SpaceCollide2(space, chr.prim_geom, IntPtr.Zero, nearCallback);
1551 }
1552 else
1553 {
1554 if (removeprims == null)
1555 {
1556 removeprims = new List<OdePrim>();
1557 }
1558 removeprims.Add(chr);
1559 /// Commented this because it triggers on every bullet
1560 //m_log.Debug("[PHYSICS]: unable to collide test active prim against space. The space was zero, the geom was zero or it was in the process of being removed. Removed it from the active prim list. This needs to be fixed!");
1561 }
1562 }
1563 }
1564 catch (AccessViolationException)
1565 {
1566 m_log.Warn("[PHYSICS]: Unable to space collide");
1567 }
1568 }
1569 }
1570 if (removeprims != null)
1571 {
1572 foreach (OdePrim chr in removeprims)
1573 {
1574 _activeprims.Remove(chr);
1575 }
1576 }
1577 }
1578
1579 _perloopContact.Clear();
1580 }
1581
1582 #endregion
1583
1584 public override void Combine(PhysicsScene pScene, Vector3 offset, Vector3 extents)
1585 {
1586 m_worldOffset = offset;
1587 WorldExtents = new Vector2(extents.X, extents.Y);
1588 m_parentScene = pScene;
1589
1590 }
1591
1592 // Recovered for use by fly height. Kitto Flora
1593 public float GetTerrainHeightAtXY(float x, float y)
1594 {
1595
1596 int offsetX = ((int)(x / (int)Constants.RegionSize)) * (int)Constants.RegionSize;
1597 int offsetY = ((int)(y / (int)Constants.RegionSize)) * (int)Constants.RegionSize;
1598
1599 IntPtr heightFieldGeom = IntPtr.Zero;
1600
1601 if (RegionTerrain.TryGetValue(new Vector3(offsetX,offsetY,0), out heightFieldGeom))
1602 {
1603 if (heightFieldGeom != IntPtr.Zero)
1604 {
1605 if (TerrainHeightFieldHeights.ContainsKey(heightFieldGeom))
1606 {
1607
1608 int index;
1609
1610
1611 if ((int)x > WorldExtents.X || (int)y > WorldExtents.Y ||
1612 (int)x < 0.001f || (int)y < 0.001f)
1613 return 0;
1614
1615 x = x - offsetX;
1616 y = y - offsetY;
1617
1618 index = (int)((int)x * ((int)Constants.RegionSize + 2) + (int)y);
1619
1620 if (index < TerrainHeightFieldHeights[heightFieldGeom].Length)
1621 {
1622 //m_log.DebugFormat("x{0} y{1} = {2}", x, y, (float)TerrainHeightFieldHeights[heightFieldGeom][index]);
1623 return (float)TerrainHeightFieldHeights[heightFieldGeom][index];
1624 }
1625
1626 else
1627 return 0f;
1628 }
1629 else
1630 {
1631 return 0f;
1632 }
1633
1634 }
1635 else
1636 {
1637 return 0f;
1638 }
1639
1640 }
1641 else
1642 {
1643 return 0f;
1644 }
1645
1646
1647 }
1648// End recovered. Kitto Flora
1649
1650 public void addCollisionEventReporting(PhysicsActor obj)
1651 {
1652 lock (_collisionEventPrim)
1653 {
1654 if (!_collisionEventPrim.Contains(obj))
1655 _collisionEventPrim.Add(obj);
1656 }
1657 }
1658
1659 public void remCollisionEventReporting(PhysicsActor obj)
1660 {
1661 lock (_collisionEventPrim)
1662 {
1663 if (!_collisionEventPrim.Contains(obj))
1664 _collisionEventPrim.Remove(obj);
1665 }
1666 }
1667
1668 #region Add/Remove Entities
1669
1670 public override PhysicsActor AddAvatar(string avName, Vector3 position, Vector3 size, bool isFlying)
1671 {
1672 Vector3 pos;
1673 pos.X = position.X;
1674 pos.Y = position.Y;
1675 pos.Z = position.Z;
1676 OdeCharacter newAv = new OdeCharacter(avName, this, pos, ode, size, avPIDD, avPIDP, avCapRadius, avStandupTensor, avDensity, avHeightFudgeFactor, avMovementDivisorWalk, avMovementDivisorRun);
1677 newAv.Flying = isFlying;
1678 newAv.MinimumGroundFlightOffset = minimumGroundFlightOffset;
1679
1680 return newAv;
1681 }
1682
1683 public void AddCharacter(OdeCharacter chr)
1684 {
1685 lock (_characters)
1686 {
1687 if (!_characters.Contains(chr))
1688 {
1689 _characters.Add(chr);
1690 if (chr.bad)
1691 m_log.DebugFormat("[PHYSICS] Added BAD actor {0} to characters list", chr.m_uuid);
1692 }
1693 }
1694 }
1695
1696 public void RemoveCharacter(OdeCharacter chr)
1697 {
1698 lock (_characters)
1699 {
1700 if (_characters.Contains(chr))
1701 {
1702 _characters.Remove(chr);
1703 }
1704 }
1705 }
1706 public void BadCharacter(OdeCharacter chr)
1707 {
1708 lock (_badCharacter)
1709 {
1710 if (!_badCharacter.Contains(chr))
1711 _badCharacter.Add(chr);
1712 }
1713 }
1714
1715 public override void RemoveAvatar(PhysicsActor actor)
1716 {
1717 //m_log.Debug("[PHYSICS]:ODELOCK");
1718 ((OdeCharacter) actor).Destroy();
1719
1720 }
1721
1722 private PhysicsActor AddPrim(String name, Vector3 position, Vector3 size, Quaternion rotation,
1723 IMesh mesh, PrimitiveBaseShape pbs, bool isphysical, bool isphantom, byte shapetype, uint localid)
1724 {
1725
1726 Vector3 pos = position;
1727 Vector3 siz = size;
1728 Quaternion rot = rotation;
1729
1730 OdePrim newPrim;
1731 lock (OdeLock)
1732 {
1733 newPrim = new OdePrim(name, this, pos, siz, rot, mesh, pbs, isphysical, isphantom, shapetype, ode, localid);
1734
1735 lock (_prims)
1736 _prims.Add(newPrim);
1737 }
1738
1739 return newPrim;
1740 }
1741
1742
1743 public void addActivePrim(OdePrim activatePrim)
1744 {
1745 // adds active prim.. (ones that should be iterated over in collisions_optimized
1746 lock (_activeprims)
1747 {
1748 if (!_activeprims.Contains(activatePrim))
1749 _activeprims.Add(activatePrim);
1750 //else
1751 // m_log.Warn("[PHYSICS]: Double Entry in _activeprims detected, potential crash immenent");
1752 }
1753 }
1754
1755 public override PhysicsActor AddPrimShape(string primName, PrimitiveBaseShape pbs, Vector3 position,
1756 Vector3 size, Quaternion rotation, bool isPhysical, uint localid)
1757 {
1758 PhysicsActor result;
1759 IMesh mesh = null;
1760
1761 if (needsMeshing(pbs))
1762 mesh = mesher.CreateMesh(primName, pbs, size, (int)LevelOfDetail.High, true);
1763
1764 result = AddPrim(primName, position, size, rotation, mesh, pbs, isPhysical,false,0, localid);
1765
1766 return result;
1767 }
1768
1769 public override PhysicsActor AddPrimShape(string primName, PrimitiveBaseShape pbs, Vector3 position,
1770 Vector3 size, Quaternion rotation, bool isPhysical, bool isPhantom, uint localid)
1771 {
1772 PhysicsActor result;
1773 IMesh mesh = null;
1774
1775 if (needsMeshing(pbs))
1776 mesh = mesher.CreateMesh(primName, pbs, size, (int)LevelOfDetail.High, true);
1777
1778 result = AddPrim(primName, position, size, rotation, mesh, pbs, isPhysical, isPhantom,0, localid);
1779
1780 return result;
1781 }
1782
1783 public override PhysicsActor AddPrimShape(string primName, PrimitiveBaseShape pbs, Vector3 position,
1784 Vector3 size, Quaternion rotation, bool isPhysical, bool isPhantom, byte shapetype, uint localid)
1785 {
1786 PhysicsActor result;
1787 IMesh mesh = null;
1788
1789 if (needsMeshing(pbs))
1790 mesh = mesher.CreateMesh(primName, pbs, size, (int)LevelOfDetail.High, true);
1791
1792 result = AddPrim(primName, position, size, rotation, mesh, pbs, isPhysical, isPhantom, shapetype, localid);
1793
1794 return result;
1795 }
1796
1797 public override float TimeDilation
1798 {
1799 get { return m_timeDilation; }
1800 }
1801
1802 public override bool SupportsNINJAJoints
1803 {
1804 get { return m_NINJA_physics_joints_enabled; }
1805 }
1806
1807 // internal utility function: must be called within a lock (OdeLock)
1808 private void InternalAddActiveJoint(PhysicsJoint joint)
1809 {
1810 activeJoints.Add(joint);
1811 SOPName_to_activeJoint.Add(joint.ObjectNameInScene, joint);
1812 }
1813
1814 // internal utility function: must be called within a lock (OdeLock)
1815 private void InternalAddPendingJoint(OdePhysicsJoint joint)
1816 {
1817 pendingJoints.Add(joint);
1818 SOPName_to_pendingJoint.Add(joint.ObjectNameInScene, joint);
1819 }
1820
1821 // internal utility function: must be called within a lock (OdeLock)
1822 private void InternalRemovePendingJoint(PhysicsJoint joint)
1823 {
1824 pendingJoints.Remove(joint);
1825 SOPName_to_pendingJoint.Remove(joint.ObjectNameInScene);
1826 }
1827
1828 // internal utility function: must be called within a lock (OdeLock)
1829 private void InternalRemoveActiveJoint(PhysicsJoint joint)
1830 {
1831 activeJoints.Remove(joint);
1832 SOPName_to_activeJoint.Remove(joint.ObjectNameInScene);
1833 }
1834
1835 public override void DumpJointInfo()
1836 {
1837 string hdr = "[NINJA] JOINTINFO: ";
1838 foreach (PhysicsJoint j in pendingJoints)
1839 {
1840 m_log.Debug(hdr + " pending joint, Name: " + j.ObjectNameInScene + " raw parms:" + j.RawParams);
1841 }
1842 m_log.Debug(hdr + pendingJoints.Count + " total pending joints");
1843 foreach (string jointName in SOPName_to_pendingJoint.Keys)
1844 {
1845 m_log.Debug(hdr + " pending joints dict contains Name: " + jointName);
1846 }
1847 m_log.Debug(hdr + SOPName_to_pendingJoint.Keys.Count + " total pending joints dict entries");
1848 foreach (PhysicsJoint j in activeJoints)
1849 {
1850 m_log.Debug(hdr + " active joint, Name: " + j.ObjectNameInScene + " raw parms:" + j.RawParams);
1851 }
1852 m_log.Debug(hdr + activeJoints.Count + " total active joints");
1853 foreach (string jointName in SOPName_to_activeJoint.Keys)
1854 {
1855 m_log.Debug(hdr + " active joints dict contains Name: " + jointName);
1856 }
1857 m_log.Debug(hdr + SOPName_to_activeJoint.Keys.Count + " total active joints dict entries");
1858
1859 m_log.Debug(hdr + " Per-body joint connectivity information follows.");
1860 m_log.Debug(hdr + joints_connecting_actor.Keys.Count + " bodies are connected by joints.");
1861 foreach (string actorName in joints_connecting_actor.Keys)
1862 {
1863 m_log.Debug(hdr + " Actor " + actorName + " has the following joints connecting it");
1864 foreach (PhysicsJoint j in joints_connecting_actor[actorName])
1865 {
1866 m_log.Debug(hdr + " * joint Name: " + j.ObjectNameInScene + " raw parms:" + j.RawParams);
1867 }
1868 m_log.Debug(hdr + joints_connecting_actor[actorName].Count + " connecting joints total for this actor");
1869 }
1870 }
1871
1872 public override void RequestJointDeletion(string ObjectNameInScene)
1873 {
1874 lock (externalJointRequestsLock)
1875 {
1876 if (!requestedJointsToBeDeleted.Contains(ObjectNameInScene)) // forbid same deletion request from entering twice to prevent spurious deletions processed asynchronously
1877 {
1878 requestedJointsToBeDeleted.Add(ObjectNameInScene);
1879 }
1880 }
1881 }
1882
1883 private void DeleteRequestedJoints()
1884 {
1885 List<string> myRequestedJointsToBeDeleted;
1886 lock (externalJointRequestsLock)
1887 {
1888 // make a local copy of the shared list for processing (threading issues)
1889 myRequestedJointsToBeDeleted = new List<string>(requestedJointsToBeDeleted);
1890 }
1891
1892 foreach (string jointName in myRequestedJointsToBeDeleted)
1893 {
1894 lock (OdeLock)
1895 {
1896 //m_log.Debug("[NINJA] trying to deleting requested joint " + jointName);
1897 if (SOPName_to_activeJoint.ContainsKey(jointName) || SOPName_to_pendingJoint.ContainsKey(jointName))
1898 {
1899 OdePhysicsJoint joint = null;
1900 if (SOPName_to_activeJoint.ContainsKey(jointName))
1901 {
1902 joint = SOPName_to_activeJoint[jointName] as OdePhysicsJoint;
1903 InternalRemoveActiveJoint(joint);
1904 }
1905 else if (SOPName_to_pendingJoint.ContainsKey(jointName))
1906 {
1907 joint = SOPName_to_pendingJoint[jointName] as OdePhysicsJoint;
1908 InternalRemovePendingJoint(joint);
1909 }
1910
1911 if (joint != null)
1912 {
1913 //m_log.Debug("joint.BodyNames.Count is " + joint.BodyNames.Count + " and contents " + joint.BodyNames);
1914 for (int iBodyName = 0; iBodyName < 2; iBodyName++)
1915 {
1916 string bodyName = joint.BodyNames[iBodyName];
1917 if (bodyName != "NULL")
1918 {
1919 joints_connecting_actor[bodyName].Remove(joint);
1920 if (joints_connecting_actor[bodyName].Count == 0)
1921 {
1922 joints_connecting_actor.Remove(bodyName);
1923 }
1924 }
1925 }
1926
1927 DoJointDeactivated(joint);
1928 if (joint.jointID != IntPtr.Zero)
1929 {
1930 d.JointDestroy(joint.jointID);
1931 joint.jointID = IntPtr.Zero;
1932 //DoJointErrorMessage(joint, "successfully destroyed joint " + jointName);
1933 }
1934 else
1935 {
1936 //m_log.Warn("[NINJA] Ignoring re-request to destroy joint " + jointName);
1937 }
1938 }
1939 else
1940 {
1941 // DoJointErrorMessage(joint, "coult not find joint to destroy based on name " + jointName);
1942 }
1943 }
1944 else
1945 {
1946 // DoJointErrorMessage(joint, "WARNING - joint removal failed, joint " + jointName);
1947 }
1948 }
1949 }
1950
1951 // remove processed joints from the shared list
1952 lock (externalJointRequestsLock)
1953 {
1954 foreach (string jointName in myRequestedJointsToBeDeleted)
1955 {
1956 requestedJointsToBeDeleted.Remove(jointName);
1957 }
1958 }
1959 }
1960
1961 // for pending joints we don't know if their associated bodies exist yet or not.
1962 // the joint is actually created during processing of the taints
1963 private void CreateRequestedJoints()
1964 {
1965 List<PhysicsJoint> myRequestedJointsToBeCreated;
1966 lock (externalJointRequestsLock)
1967 {
1968 // make a local copy of the shared list for processing (threading issues)
1969 myRequestedJointsToBeCreated = new List<PhysicsJoint>(requestedJointsToBeCreated);
1970 }
1971
1972 foreach (PhysicsJoint joint in myRequestedJointsToBeCreated)
1973 {
1974 lock (OdeLock)
1975 {
1976 if (SOPName_to_pendingJoint.ContainsKey(joint.ObjectNameInScene) && SOPName_to_pendingJoint[joint.ObjectNameInScene] != null)
1977 {
1978 DoJointErrorMessage(joint, "WARNING: ignoring request to re-add already pending joint Name:" + joint.ObjectNameInScene + " type:" + joint.Type + " parms: " + joint.RawParams + " pos: " + joint.Position + " rot:" + joint.Rotation);
1979 continue;
1980 }
1981 if (SOPName_to_activeJoint.ContainsKey(joint.ObjectNameInScene) && SOPName_to_activeJoint[joint.ObjectNameInScene] != null)
1982 {
1983 DoJointErrorMessage(joint, "WARNING: ignoring request to re-add already active joint Name:" + joint.ObjectNameInScene + " type:" + joint.Type + " parms: " + joint.RawParams + " pos: " + joint.Position + " rot:" + joint.Rotation);
1984 continue;
1985 }
1986
1987 InternalAddPendingJoint(joint as OdePhysicsJoint);
1988
1989 if (joint.BodyNames.Count >= 2)
1990 {
1991 for (int iBodyName = 0; iBodyName < 2; iBodyName++)
1992 {
1993 string bodyName = joint.BodyNames[iBodyName];
1994 if (bodyName != "NULL")
1995 {
1996 if (!joints_connecting_actor.ContainsKey(bodyName))
1997 {
1998 joints_connecting_actor.Add(bodyName, new List<PhysicsJoint>());
1999 }
2000 joints_connecting_actor[bodyName].Add(joint);
2001 }
2002 }
2003 }
2004 }
2005 }
2006
2007 // remove processed joints from shared list
2008 lock (externalJointRequestsLock)
2009 {
2010 foreach (PhysicsJoint joint in myRequestedJointsToBeCreated)
2011 {
2012 requestedJointsToBeCreated.Remove(joint);
2013 }
2014 }
2015
2016 }
2017
2018 // public function to add an request for joint creation
2019 // this joint will just be added to a waiting list that is NOT processed during the main
2020 // Simulate() loop (to avoid deadlocks). After Simulate() is finished, we handle unprocessed joint requests.
2021
2022 public override PhysicsJoint RequestJointCreation(string objectNameInScene, PhysicsJointType jointType, Vector3 position,
2023 Quaternion rotation, string parms, List<string> bodyNames, string trackedBodyName, Quaternion localRotation)
2024
2025 {
2026
2027 OdePhysicsJoint joint = new OdePhysicsJoint();
2028 joint.ObjectNameInScene = objectNameInScene;
2029 joint.Type = jointType;
2030 joint.Position = position;
2031 joint.Rotation = rotation;
2032 joint.RawParams = parms;
2033 joint.BodyNames = new List<string>(bodyNames);
2034 joint.TrackedBodyName = trackedBodyName;
2035 joint.LocalRotation = localRotation;
2036 joint.jointID = IntPtr.Zero;
2037 joint.ErrorMessageCount = 0;
2038
2039 lock (externalJointRequestsLock)
2040 {
2041 if (!requestedJointsToBeCreated.Contains(joint)) // forbid same creation request from entering twice
2042 {
2043 requestedJointsToBeCreated.Add(joint);
2044 }
2045 }
2046 return joint;
2047 }
2048
2049 private void RemoveAllJointsConnectedToActor(PhysicsActor actor)
2050 {
2051 //m_log.Debug("RemoveAllJointsConnectedToActor: start");
2052 if (actor.SOPName != null && joints_connecting_actor.ContainsKey(actor.SOPName) && joints_connecting_actor[actor.SOPName] != null)
2053 {
2054
2055 List<PhysicsJoint> jointsToRemove = new List<PhysicsJoint>();
2056 //TODO: merge these 2 loops (originally it was needed to avoid altering a list being iterated over, but it is no longer needed due to the joint request queue mechanism)
2057 foreach (PhysicsJoint j in joints_connecting_actor[actor.SOPName])
2058 {
2059 jointsToRemove.Add(j);
2060 }
2061 foreach (PhysicsJoint j in jointsToRemove)
2062 {
2063 //m_log.Debug("RemoveAllJointsConnectedToActor: about to request deletion of " + j.ObjectNameInScene);
2064 RequestJointDeletion(j.ObjectNameInScene);
2065 //m_log.Debug("RemoveAllJointsConnectedToActor: done request deletion of " + j.ObjectNameInScene);
2066 j.TrackedBodyName = null; // *IMMEDIATELY* prevent any further movement of this joint (else a deleted actor might cause spurious tracking motion of the joint for a few frames, leading to the joint proxy object disappearing)
2067 }
2068 }
2069 }
2070
2071 public override void RemoveAllJointsConnectedToActorThreadLocked(PhysicsActor actor)
2072 {
2073 //m_log.Debug("RemoveAllJointsConnectedToActorThreadLocked: start");
2074 lock (OdeLock)
2075 {
2076 //m_log.Debug("RemoveAllJointsConnectedToActorThreadLocked: got lock");
2077 RemoveAllJointsConnectedToActor(actor);
2078 }
2079 }
2080
2081 // normally called from within OnJointMoved, which is called from within a lock (OdeLock)
2082 public override Vector3 GetJointAnchor(PhysicsJoint joint)
2083 {
2084 Debug.Assert(joint.IsInPhysicsEngine);
2085 d.Vector3 pos = new d.Vector3();
2086
2087 if (!(joint is OdePhysicsJoint))
2088 {
2089 DoJointErrorMessage(joint, "warning: non-ODE joint requesting anchor: " + joint.ObjectNameInScene);
2090 }
2091 else
2092 {
2093 OdePhysicsJoint odeJoint = (OdePhysicsJoint)joint;
2094 switch (odeJoint.Type)
2095 {
2096 case PhysicsJointType.Ball:
2097 d.JointGetBallAnchor(odeJoint.jointID, out pos);
2098 break;
2099 case PhysicsJointType.Hinge:
2100 d.JointGetHingeAnchor(odeJoint.jointID, out pos);
2101 break;
2102 }
2103 }
2104 return new Vector3(pos.X, pos.Y, pos.Z);
2105 }
2106
2107 // normally called from within OnJointMoved, which is called from within a lock (OdeLock)
2108 // WARNING: ODE sometimes returns <0,0,0> as the joint axis! Therefore this function
2109 // appears to be unreliable. Fortunately we can compute the joint axis ourselves by
2110 // keeping track of the joint's original orientation relative to one of the involved bodies.
2111 public override Vector3 GetJointAxis(PhysicsJoint joint)
2112 {
2113 Debug.Assert(joint.IsInPhysicsEngine);
2114 d.Vector3 axis = new d.Vector3();
2115
2116 if (!(joint is OdePhysicsJoint))
2117 {
2118 DoJointErrorMessage(joint, "warning: non-ODE joint requesting anchor: " + joint.ObjectNameInScene);
2119 }
2120 else
2121 {
2122 OdePhysicsJoint odeJoint = (OdePhysicsJoint)joint;
2123 switch (odeJoint.Type)
2124 {
2125 case PhysicsJointType.Ball:
2126 DoJointErrorMessage(joint, "warning - axis requested for ball joint: " + joint.ObjectNameInScene);
2127 break;
2128 case PhysicsJointType.Hinge:
2129 d.JointGetHingeAxis(odeJoint.jointID, out axis);
2130 break;
2131 }
2132 }
2133 return new Vector3(axis.X, axis.Y, axis.Z);
2134 }
2135
2136
2137 public void remActivePrim(OdePrim deactivatePrim)
2138 {
2139 lock (_activeprims)
2140 {
2141 _activeprims.Remove(deactivatePrim);
2142 }
2143 }
2144
2145 public override void RemovePrim(PhysicsActor prim)
2146 {
2147 if (prim is OdePrim)
2148 {
2149 lock (OdeLock)
2150 {
2151 OdePrim p = (OdePrim) prim;
2152
2153 p.setPrimForRemoval();
2154 AddPhysicsActorTaint(prim);
2155 //RemovePrimThreadLocked(p);
2156 }
2157 }
2158 }
2159
2160 /// <summary>
2161 /// This is called from within simulate but outside the locked portion
2162 /// We need to do our own locking here
2163 /// Essentially, we need to remove the prim from our space segment, whatever segment it's in.
2164 ///
2165 /// If there are no more prim in the segment, we need to empty (spacedestroy)the segment and reclaim memory
2166 /// that the space was using.
2167 /// </summary>
2168 /// <param name="prim"></param>
2169 public void RemovePrimThreadLocked(OdePrim prim)
2170 {
2171//Console.WriteLine("RemovePrimThreadLocked " + prim.m_primName);
2172 lock (prim)
2173 {
2174 remCollisionEventReporting(prim);
2175 lock (ode)
2176 {
2177 if (prim.prim_geom != IntPtr.Zero)
2178 {
2179 prim.ResetTaints();
2180
2181 try
2182 {
2183 if (prim._triMeshData != IntPtr.Zero)
2184 {
2185 d.GeomTriMeshDataDestroy(prim._triMeshData);
2186 prim._triMeshData = IntPtr.Zero;
2187 }
2188 }
2189 catch { };
2190
2191 if (prim.IsPhysical)
2192 {
2193 prim.disableBody();
2194 if (prim.childPrim)
2195 {
2196 prim.childPrim = false;
2197 prim.Body = IntPtr.Zero;
2198 prim.m_disabled = true;
2199 prim.IsPhysical = false;
2200 }
2201
2202 }
2203 // we don't want to remove the main space
2204
2205 // If the geometry is in the targetspace, remove it from the target space
2206 //m_log.Warn(prim.m_targetSpace);
2207
2208 //if (prim.m_targetSpace != IntPtr.Zero)
2209 //{
2210 //if (d.SpaceQuery(prim.m_targetSpace, prim.prim_geom))
2211 //{
2212
2213 //if (d.GeomIsSpace(prim.m_targetSpace))
2214 //{
2215 //waitForSpaceUnlock(prim.m_targetSpace);
2216 //d.SpaceRemove(prim.m_targetSpace, prim.prim_geom);
2217 prim.m_targetSpace = IntPtr.Zero;
2218 //}
2219 //else
2220 //{
2221 // m_log.Info("[Physics]: Invalid Scene passed to 'removeprim from scene':" +
2222 //((OdePrim)prim).m_targetSpace.ToString());
2223 //}
2224
2225 //}
2226 //}
2227 //m_log.Warn(prim.prim_geom);
2228 try
2229 {
2230 if (prim.prim_geom != IntPtr.Zero)
2231 {
2232
2233//string tPA;
2234//geom_name_map.TryGetValue(prim.prim_geom, out tPA);
2235//Console.WriteLine("**** Remove {0}", tPA);
2236 if(geom_name_map.ContainsKey(prim.prim_geom)) geom_name_map.Remove(prim.prim_geom);
2237 if(actor_name_map.ContainsKey(prim.prim_geom)) actor_name_map.Remove(prim.prim_geom);
2238 d.GeomDestroy(prim.prim_geom);
2239 prim.prim_geom = IntPtr.Zero;
2240 }
2241 else
2242 {
2243 m_log.Warn("[PHYSICS]: Unable to remove prim from physics scene");
2244 }
2245 }
2246 catch (AccessViolationException)
2247 {
2248 m_log.Info("[PHYSICS]: Couldn't remove prim from physics scene, it was already be removed.");
2249 }
2250 lock (_prims)
2251 _prims.Remove(prim);
2252
2253 //If there are no more geometries in the sub-space, we don't need it in the main space anymore
2254 //if (d.SpaceGetNumGeoms(prim.m_targetSpace) == 0)
2255 //{
2256 //if (prim.m_targetSpace != null)
2257 //{
2258 //if (d.GeomIsSpace(prim.m_targetSpace))
2259 //{
2260 //waitForSpaceUnlock(prim.m_targetSpace);
2261 //d.SpaceRemove(space, prim.m_targetSpace);
2262 // free up memory used by the space.
2263 //d.SpaceDestroy(prim.m_targetSpace);
2264 //int[] xyspace = calculateSpaceArrayItemFromPos(prim.Position);
2265 //resetSpaceArrayItemToZero(xyspace[0], xyspace[1]);
2266 //}
2267 //else
2268 //{
2269 //m_log.Info("[Physics]: Invalid Scene passed to 'removeprim from scene':" +
2270 //((OdePrim) prim).m_targetSpace.ToString());
2271 //}
2272 //}
2273 //}
2274
2275 if (SupportsNINJAJoints)
2276 {
2277 RemoveAllJointsConnectedToActorThreadLocked(prim);
2278 }
2279 }
2280 }
2281 }
2282 }
2283
2284 #endregion
2285
2286 #region Space Separation Calculation
2287
2288 /// <summary>
2289 /// Takes a space pointer and zeros out the array we're using to hold the spaces
2290 /// </summary>
2291 /// <param name="pSpace"></param>
2292 public void resetSpaceArrayItemToZero(IntPtr pSpace)
2293 {
2294 for (int x = 0; x < staticPrimspace.GetLength(0); x++)
2295 {
2296 for (int y = 0; y < staticPrimspace.GetLength(1); y++)
2297 {
2298 if (staticPrimspace[x, y] == pSpace)
2299 staticPrimspace[x, y] = IntPtr.Zero;
2300 }
2301 }
2302 }
2303
2304 public void resetSpaceArrayItemToZero(int arrayitemX, int arrayitemY)
2305 {
2306 staticPrimspace[arrayitemX, arrayitemY] = IntPtr.Zero;
2307 }
2308
2309 /// <summary>
2310 /// Called when a static prim moves. Allocates a space for the prim based on its position
2311 /// </summary>
2312 /// <param name="geom">the pointer to the geom that moved</param>
2313 /// <param name="pos">the position that the geom moved to</param>
2314 /// <param name="currentspace">a pointer to the space it was in before it was moved.</param>
2315 /// <returns>a pointer to the new space it's in</returns>
2316 public IntPtr recalculateSpaceForGeom(IntPtr geom, Vector3 pos, IntPtr currentspace)
2317 {
2318 // Called from setting the Position and Size of an ODEPrim so
2319 // it's already in locked space.
2320
2321 // we don't want to remove the main space
2322 // we don't need to test physical here because this function should
2323 // never be called if the prim is physical(active)
2324
2325 // All physical prim end up in the root space
2326 //Thread.Sleep(20);
2327 if (currentspace != space)
2328 {
2329 //m_log.Info("[SPACE]: C:" + currentspace.ToString() + " g:" + geom.ToString());
2330 //if (currentspace == IntPtr.Zero)
2331 //{
2332 //int adfadf = 0;
2333 //}
2334 if (d.SpaceQuery(currentspace, geom) && currentspace != IntPtr.Zero)
2335 {
2336 if (d.GeomIsSpace(currentspace))
2337 {
2338 waitForSpaceUnlock(currentspace);
2339 d.SpaceRemove(currentspace, geom);
2340 }
2341 else
2342 {
2343 m_log.Info("[Physics]: Invalid Scene passed to 'recalculatespace':" + currentspace +
2344 " Geom:" + geom);
2345 }
2346 }
2347 else
2348 {
2349 IntPtr sGeomIsIn = d.GeomGetSpace(geom);
2350 if (sGeomIsIn != IntPtr.Zero)
2351 {
2352 if (d.GeomIsSpace(currentspace))
2353 {
2354 waitForSpaceUnlock(sGeomIsIn);
2355 d.SpaceRemove(sGeomIsIn, geom);
2356 }
2357 else
2358 {
2359 m_log.Info("[Physics]: Invalid Scene passed to 'recalculatespace':" +
2360 sGeomIsIn + " Geom:" + geom);
2361 }
2362 }
2363 }
2364
2365 //If there are no more geometries in the sub-space, we don't need it in the main space anymore
2366 if (d.SpaceGetNumGeoms(currentspace) == 0)
2367 {
2368 if (currentspace != IntPtr.Zero)
2369 {
2370 if (d.GeomIsSpace(currentspace))
2371 {
2372 waitForSpaceUnlock(currentspace);
2373 waitForSpaceUnlock(space);
2374 d.SpaceRemove(space, currentspace);
2375 // free up memory used by the space.
2376
2377 //d.SpaceDestroy(currentspace);
2378 resetSpaceArrayItemToZero(currentspace);
2379 }
2380 else
2381 {
2382 m_log.Info("[Physics]: Invalid Scene passed to 'recalculatespace':" +
2383 currentspace + " Geom:" + geom);
2384 }
2385 }
2386 }
2387 }
2388 else
2389 {
2390 // this is a physical object that got disabled. ;.;
2391 if (currentspace != IntPtr.Zero && geom != IntPtr.Zero)
2392 {
2393 if (d.SpaceQuery(currentspace, geom))
2394 {
2395 if (d.GeomIsSpace(currentspace))
2396 {
2397 waitForSpaceUnlock(currentspace);
2398 d.SpaceRemove(currentspace, geom);
2399 }
2400 else
2401 {
2402 m_log.Info("[Physics]: Invalid Scene passed to 'recalculatespace':" +
2403 currentspace + " Geom:" + geom);
2404 }
2405 }
2406 else
2407 {
2408 IntPtr sGeomIsIn = d.GeomGetSpace(geom);
2409 if (sGeomIsIn != IntPtr.Zero)
2410 {
2411 if (d.GeomIsSpace(sGeomIsIn))
2412 {
2413 waitForSpaceUnlock(sGeomIsIn);
2414 d.SpaceRemove(sGeomIsIn, geom);
2415 }
2416 else
2417 {
2418 m_log.Info("[Physics]: Invalid Scene passed to 'recalculatespace':" +
2419 sGeomIsIn + " Geom:" + geom);
2420 }
2421 }
2422 }
2423 }
2424 }
2425
2426 // The routines in the Position and Size sections do the 'inserting' into the space,
2427 // so all we have to do is make sure that the space that we're putting the prim into
2428 // is in the 'main' space.
2429 int[] iprimspaceArrItem = calculateSpaceArrayItemFromPos(pos);
2430 IntPtr newspace = calculateSpaceForGeom(pos);
2431
2432 if (newspace == IntPtr.Zero)
2433 {
2434 newspace = createprimspace(iprimspaceArrItem[0], iprimspaceArrItem[1]);
2435 d.HashSpaceSetLevels(newspace, smallHashspaceLow, smallHashspaceHigh);
2436 }
2437
2438 return newspace;
2439 }
2440
2441 /// <summary>
2442 /// Creates a new space at X Y
2443 /// </summary>
2444 /// <param name="iprimspaceArrItemX"></param>
2445 /// <param name="iprimspaceArrItemY"></param>
2446 /// <returns>A pointer to the created space</returns>
2447 public IntPtr createprimspace(int iprimspaceArrItemX, int iprimspaceArrItemY)
2448 {
2449 // creating a new space for prim and inserting it into main space.
2450 staticPrimspace[iprimspaceArrItemX, iprimspaceArrItemY] = d.HashSpaceCreate(IntPtr.Zero);
2451 d.GeomSetCategoryBits(staticPrimspace[iprimspaceArrItemX, iprimspaceArrItemY], (int)CollisionCategories.Space);
2452 waitForSpaceUnlock(space);
2453 d.SpaceSetSublevel(space, 1);
2454 d.SpaceAdd(space, staticPrimspace[iprimspaceArrItemX, iprimspaceArrItemY]);
2455 return staticPrimspace[iprimspaceArrItemX, iprimspaceArrItemY];
2456 }
2457
2458 /// <summary>
2459 /// Calculates the space the prim should be in by its position
2460 /// </summary>
2461 /// <param name="pos"></param>
2462 /// <returns>a pointer to the space. This could be a new space or reused space.</returns>
2463 public IntPtr calculateSpaceForGeom(Vector3 pos)
2464 {
2465 int[] xyspace = calculateSpaceArrayItemFromPos(pos);
2466 //m_log.Info("[Physics]: Attempting to use arrayItem: " + xyspace[0].ToString() + "," + xyspace[1].ToString());
2467 return staticPrimspace[xyspace[0], xyspace[1]];
2468 }
2469
2470 /// <summary>
2471 /// Holds the space allocation logic
2472 /// </summary>
2473 /// <param name="pos"></param>
2474 /// <returns>an array item based on the position</returns>
2475 public int[] calculateSpaceArrayItemFromPos(Vector3 pos)
2476 {
2477 int[] returnint = new int[2];
2478
2479 returnint[0] = (int) (pos.X/metersInSpace);
2480
2481 if (returnint[0] > ((int) (259f/metersInSpace)))
2482 returnint[0] = ((int) (259f/metersInSpace));
2483 if (returnint[0] < 0)
2484 returnint[0] = 0;
2485
2486 returnint[1] = (int) (pos.Y/metersInSpace);
2487 if (returnint[1] > ((int) (259f/metersInSpace)))
2488 returnint[1] = ((int) (259f/metersInSpace));
2489 if (returnint[1] < 0)
2490 returnint[1] = 0;
2491
2492 return returnint;
2493 }
2494
2495 #endregion
2496
2497 /// <summary>
2498 /// Routine to figure out if we need to mesh this prim with our mesher
2499 /// </summary>
2500 /// <param name="pbs"></param>
2501 /// <returns></returns>
2502 public bool needsMeshing(PrimitiveBaseShape pbs)
2503 {
2504 // most of this is redundant now as the mesher will return null if it cant mesh a prim
2505 // but we still need to check for sculptie meshing being enabled so this is the most
2506 // convenient place to do it for now...
2507
2508 // //if (pbs.PathCurve == (byte)Primitive.PathCurve.Circle && pbs.ProfileCurve == (byte)Primitive.ProfileCurve.Circle && pbs.PathScaleY <= 0.75f)
2509 // //m_log.Debug("needsMeshing: " + " pathCurve: " + pbs.PathCurve.ToString() + " profileCurve: " + pbs.ProfileCurve.ToString() + " pathScaleY: " + Primitive.UnpackPathScale(pbs.PathScaleY).ToString());
2510 int iPropertiesNotSupportedDefault = 0;
2511
2512 if (pbs.SculptEntry && !meshSculptedPrim)
2513 {
2514#if SPAM
2515 m_log.Warn("NonMesh");
2516#endif
2517 return false;
2518 }
2519
2520 // if it's a standard box or sphere with no cuts, hollows, twist or top shear, return false since ODE can use an internal representation for the prim
2521 if (!forceSimplePrimMeshing && !pbs.SculptEntry)
2522 {
2523 if ((pbs.ProfileShape == ProfileShape.Square && pbs.PathCurve == (byte)Extrusion.Straight)
2524 || (pbs.ProfileShape == ProfileShape.HalfCircle && pbs.PathCurve == (byte)Extrusion.Curve1
2525 && pbs.Scale.X == pbs.Scale.Y && pbs.Scale.Y == pbs.Scale.Z))
2526 {
2527
2528 if (pbs.ProfileBegin == 0 && pbs.ProfileEnd == 0
2529 && pbs.ProfileHollow == 0
2530 && pbs.PathTwist == 0 && pbs.PathTwistBegin == 0
2531 && pbs.PathBegin == 0 && pbs.PathEnd == 0
2532 && pbs.PathTaperX == 0 && pbs.PathTaperY == 0
2533 && pbs.PathScaleX == 100 && pbs.PathScaleY == 100
2534 && pbs.PathShearX == 0 && pbs.PathShearY == 0)
2535 {
2536#if SPAM
2537 m_log.Warn("NonMesh");
2538#endif
2539 return false;
2540 }
2541 }
2542 }
2543
2544 if (forceSimplePrimMeshing)
2545 return true;
2546
2547 if (pbs.ProfileHollow != 0)
2548 iPropertiesNotSupportedDefault++;
2549
2550 if ((pbs.PathTwistBegin != 0) || (pbs.PathTwist != 0))
2551 iPropertiesNotSupportedDefault++;
2552
2553 if ((pbs.ProfileBegin != 0) || pbs.ProfileEnd != 0)
2554 iPropertiesNotSupportedDefault++;
2555
2556 if ((pbs.PathScaleX != 100) || (pbs.PathScaleY != 100))
2557 iPropertiesNotSupportedDefault++;
2558
2559 if ((pbs.PathShearX != 0) || (pbs.PathShearY != 0))
2560 iPropertiesNotSupportedDefault++;
2561
2562 if (pbs.ProfileShape == ProfileShape.Circle && pbs.PathCurve == (byte)Extrusion.Straight)
2563 iPropertiesNotSupportedDefault++;
2564
2565 if (pbs.ProfileShape == ProfileShape.HalfCircle && pbs.PathCurve == (byte)Extrusion.Curve1 && (pbs.Scale.X != pbs.Scale.Y || pbs.Scale.Y != pbs.Scale.Z || pbs.Scale.Z != pbs.Scale.X))
2566 iPropertiesNotSupportedDefault++;
2567
2568 if (pbs.ProfileShape == ProfileShape.HalfCircle && pbs.PathCurve == (byte) Extrusion.Curve1)
2569 iPropertiesNotSupportedDefault++;
2570
2571 // test for torus
2572 if ((pbs.ProfileCurve & 0x07) == (byte)ProfileShape.Square)
2573 {
2574 if (pbs.PathCurve == (byte)Extrusion.Curve1)
2575 {
2576 iPropertiesNotSupportedDefault++;
2577 }
2578 }
2579 else if ((pbs.ProfileCurve & 0x07) == (byte)ProfileShape.Circle)
2580 {
2581 if (pbs.PathCurve == (byte)Extrusion.Straight)
2582 {
2583 iPropertiesNotSupportedDefault++;
2584 }
2585
2586 // ProfileCurve seems to combine hole shape and profile curve so we need to only compare against the lower 3 bits
2587 else if (pbs.PathCurve == (byte)Extrusion.Curve1)
2588 {
2589 iPropertiesNotSupportedDefault++;
2590 }
2591 }
2592 else if ((pbs.ProfileCurve & 0x07) == (byte)ProfileShape.HalfCircle)
2593 {
2594 if (pbs.PathCurve == (byte)Extrusion.Curve1 || pbs.PathCurve == (byte)Extrusion.Curve2)
2595 {
2596 iPropertiesNotSupportedDefault++;
2597 }
2598 }
2599 else if ((pbs.ProfileCurve & 0x07) == (byte)ProfileShape.EquilateralTriangle)
2600 {
2601 if (pbs.PathCurve == (byte)Extrusion.Straight)
2602 {
2603 iPropertiesNotSupportedDefault++;
2604 }
2605 else if (pbs.PathCurve == (byte)Extrusion.Curve1)
2606 {
2607 iPropertiesNotSupportedDefault++;
2608 }
2609 }
2610
2611 if (pbs.SculptEntry && meshSculptedPrim)
2612 iPropertiesNotSupportedDefault++;
2613
2614 if (iPropertiesNotSupportedDefault == 0)
2615 {
2616#if SPAM
2617 m_log.Warn("NonMesh");
2618#endif
2619 return false;
2620 }
2621#if SPAM
2622 m_log.Debug("Mesh");
2623#endif
2624 return true;
2625 }
2626
2627 /// <summary>
2628 /// Called after our prim properties are set Scale, position etc.
2629 /// We use this event queue like method to keep changes to the physical scene occuring in the threadlocked mutex
2630 /// This assures us that we have no race conditions
2631 /// </summary>
2632 /// <param name="prim"></param>
2633 public override void AddPhysicsActorTaint(PhysicsActor prim)
2634 {
2635
2636 if (prim is OdePrim)
2637 {
2638 OdePrim taintedprim = ((OdePrim) prim);
2639 lock (_taintedPrimLock)
2640 {
2641 if (!(_taintedPrimH.Contains(taintedprim)))
2642 {
2643//Console.WriteLine("AddPhysicsActorTaint to " + taintedprim.m_primName);
2644 _taintedPrimH.Add(taintedprim); // HashSet for searching
2645 _taintedPrimL.Add(taintedprim); // List for ordered readout
2646 }
2647 }
2648 return;
2649 }
2650 else if (prim is OdeCharacter)
2651 {
2652 OdeCharacter taintedchar = ((OdeCharacter)prim);
2653 lock (_taintedActors)
2654 {
2655 if (!(_taintedActors.Contains(taintedchar)))
2656 {
2657 _taintedActors.Add(taintedchar);
2658 if (taintedchar.bad)
2659 m_log.DebugFormat("[PHYSICS]: Added BAD actor {0} to tainted actors", taintedchar.m_uuid);
2660 }
2661 }
2662 }
2663 }
2664
2665 /// <summary>
2666 /// This is our main simulate loop
2667 /// It's thread locked by a Mutex in the scene.
2668 /// It holds Collisions, it instructs ODE to step through the physical reactions
2669 /// It moves the objects around in memory
2670 /// It calls the methods that report back to the object owners.. (scenepresence, SceneObjectGroup)
2671 /// </summary>
2672 /// <param name="timeStep"></param>
2673 /// <returns></returns>
2674 public override float Simulate(float timeStep)
2675 {
2676 if (framecount >= int.MaxValue)
2677 framecount = 0;
2678 //if (m_worldOffset != Vector3.Zero)
2679 // return 0;
2680
2681 framecount++;
2682
2683 DateTime now = DateTime.UtcNow;
2684 TimeSpan SinceLastFrame = now - m_lastframe;
2685 m_lastframe = now;
2686 float realtime = (float)SinceLastFrame.TotalSeconds;
2687// Console.WriteLine("ts={0} rt={1}", timeStep, realtime);
2688 timeStep = realtime;
2689
2690 // float fps = 1.0f / realtime;
2691 float fps = 0.0f; // number of ODE steps in this Simulate step
2692 //m_log.Info(timeStep.ToString());
2693 step_time += timeStep;
2694
2695 // If We're loaded down by something else,
2696 // or debugging with the Visual Studio project on pause
2697 // skip a few frames to catch up gracefully.
2698 // without shooting the physicsactors all over the place
2699
2700 if (step_time >= m_SkipFramesAtms)
2701 {
2702 // Instead of trying to catch up, it'll do 5 physics frames only
2703 step_time = ODE_STEPSIZE;
2704 m_physicsiterations = 5;
2705 }
2706 else
2707 {
2708 m_physicsiterations = 10;
2709 }
2710
2711 if (SupportsNINJAJoints)
2712 {
2713 DeleteRequestedJoints(); // this must be outside of the lock (OdeLock) to avoid deadlocks
2714 CreateRequestedJoints(); // this must be outside of the lock (OdeLock) to avoid deadlocks
2715 }
2716
2717 lock (OdeLock)
2718 {
2719 // Process 10 frames if the sim is running normal..
2720 // process 5 frames if the sim is running slow
2721 //try
2722 //{
2723 //d.WorldSetQuickStepNumIterations(world, m_physicsiterations);
2724 //}
2725 //catch (StackOverflowException)
2726 //{
2727 // m_log.Error("[PHYSICS]: The operating system wasn't able to allocate enough memory for the simulation. Restarting the sim.");
2728 // ode.drelease(world);
2729 //base.TriggerPhysicsBasedRestart();
2730 //}
2731
2732 int i = 0;
2733
2734 // Figure out the Frames Per Second we're going at.
2735 //(step_time == 0.004f, there's 250 of those per second. Times the step time/step size
2736
2737 // fps = (step_time / ODE_STEPSIZE) * 1000;
2738 // HACK: Using a time dilation of 1.0 to debug rubberbanding issues
2739 //m_timeDilation = Math.Min((step_time / ODE_STEPSIZE) / (0.09375f / ODE_STEPSIZE), 1.0f);
2740
2741 // step_time = 0.09375f;
2742
2743 while (step_time > 0.0f)
2744 {
2745 //lock (ode)
2746 //{
2747 //if (!ode.lockquery())
2748 //{
2749 // ode.dlock(world);
2750 try
2751 {
2752 // Insert, remove Characters
2753 bool processedtaints = false;
2754
2755 lock (_taintedActors)
2756 {
2757 if (_taintedActors.Count > 0)
2758 {
2759 foreach (OdeCharacter character in _taintedActors)
2760 {
2761
2762 character.ProcessTaints(ODE_STEPSIZE);
2763
2764 processedtaints = true;
2765 //character.m_collisionscore = 0;
2766 }
2767
2768 if (processedtaints)
2769 _taintedActors.Clear();
2770 }
2771 } // end lock _taintedActors
2772
2773 // Modify other objects in the scene.
2774 processedtaints = false;
2775
2776 lock (_taintedPrimLock)
2777 {
2778 foreach (OdePrim prim in _taintedPrimL)
2779 {
2780 if (prim.m_taintremove)
2781 {
2782 //Console.WriteLine("Simulate calls RemovePrimThreadLocked");
2783 RemovePrimThreadLocked(prim);
2784 }
2785 else
2786 {
2787 //Console.WriteLine("Simulate calls ProcessTaints");
2788 prim.ProcessTaints(ODE_STEPSIZE);
2789 }
2790 processedtaints = true;
2791 prim.m_collisionscore = 0;
2792
2793 // This loop can block up the Heartbeat for a very long time on large regions.
2794 // We need to let the Watchdog know that the Heartbeat is not dead
2795 // NOTE: This is currently commented out, but if things like OAR loading are
2796 // timing the heartbeat out we will need to uncomment it
2797 //Watchdog.UpdateThread();
2798 }
2799
2800 if (SupportsNINJAJoints)
2801 {
2802 // Create pending joints, if possible
2803
2804 // joints can only be processed after ALL bodies are processed (and exist in ODE), since creating
2805 // a joint requires specifying the body id of both involved bodies
2806 if (pendingJoints.Count > 0)
2807 {
2808 List<PhysicsJoint> successfullyProcessedPendingJoints = new List<PhysicsJoint>();
2809 //DoJointErrorMessage(joints_connecting_actor, "taint: " + pendingJoints.Count + " pending joints");
2810 foreach (PhysicsJoint joint in pendingJoints)
2811 {
2812 //DoJointErrorMessage(joint, "taint: time to create joint with parms: " + joint.RawParams);
2813 string[] jointParams = joint.RawParams.Split(" ".ToCharArray(),
2814 System.StringSplitOptions.RemoveEmptyEntries);
2815 List<IntPtr> jointBodies = new List<IntPtr>();
2816 bool allJointBodiesAreReady = true;
2817 foreach (string jointParam in jointParams)
2818 {
2819 if (jointParam == "NULL")
2820 {
2821 //DoJointErrorMessage(joint, "attaching NULL joint to world");
2822 jointBodies.Add(IntPtr.Zero);
2823 }
2824 else
2825 {
2826 //DoJointErrorMessage(joint, "looking for prim name: " + jointParam);
2827 bool foundPrim = false;
2828 lock (_prims)
2829 {
2830 foreach (OdePrim prim in _prims) // FIXME: inefficient
2831 {
2832 if (prim.SOPName == jointParam)
2833 {
2834 //DoJointErrorMessage(joint, "found for prim name: " + jointParam);
2835 if (prim.IsPhysical && prim.Body != IntPtr.Zero)
2836 {
2837 jointBodies.Add(prim.Body);
2838 foundPrim = true;
2839 break;
2840 }
2841 else
2842 {
2843 DoJointErrorMessage(joint, "prim name " + jointParam +
2844 " exists but is not (yet) physical; deferring joint creation. " +
2845 "IsPhysical property is " + prim.IsPhysical +
2846 " and body is " + prim.Body);
2847 foundPrim = false;
2848 break;
2849 }
2850 }
2851 }
2852 }
2853 if (foundPrim)
2854 {
2855 // all is fine
2856 }
2857 else
2858 {
2859 allJointBodiesAreReady = false;
2860 break;
2861 }
2862 }
2863 }
2864 if (allJointBodiesAreReady)
2865 {
2866 //DoJointErrorMessage(joint, "allJointBodiesAreReady for " + joint.ObjectNameInScene + " with parms " + joint.RawParams);
2867 if (jointBodies[0] == jointBodies[1])
2868 {
2869 DoJointErrorMessage(joint, "ERROR: joint cannot be created; the joint bodies are the same, body1==body2. Raw body is " + jointBodies[0] + ". raw parms: " + joint.RawParams);
2870 }
2871 else
2872 {
2873 switch (joint.Type)
2874 {
2875 case PhysicsJointType.Ball:
2876 {
2877 IntPtr odeJoint;
2878 //DoJointErrorMessage(joint, "ODE creating ball joint ");
2879 odeJoint = d.JointCreateBall(world, IntPtr.Zero);
2880 //DoJointErrorMessage(joint, "ODE attaching ball joint: " + odeJoint + " with b1:" + jointBodies[0] + " b2:" + jointBodies[1]);
2881 d.JointAttach(odeJoint, jointBodies[0], jointBodies[1]);
2882 //DoJointErrorMessage(joint, "ODE setting ball anchor: " + odeJoint + " to vec:" + joint.Position);
2883 d.JointSetBallAnchor(odeJoint,
2884 joint.Position.X,
2885 joint.Position.Y,
2886 joint.Position.Z);
2887 //DoJointErrorMessage(joint, "ODE joint setting OK");
2888 //DoJointErrorMessage(joint, "The ball joint's bodies are here: b0: ");
2889 //DoJointErrorMessage(joint, "" + (jointBodies[0] != IntPtr.Zero ? "" + d.BodyGetPosition(jointBodies[0]) : "fixed environment"));
2890 //DoJointErrorMessage(joint, "The ball joint's bodies are here: b1: ");
2891 //DoJointErrorMessage(joint, "" + (jointBodies[1] != IntPtr.Zero ? "" + d.BodyGetPosition(jointBodies[1]) : "fixed environment"));
2892
2893 if (joint is OdePhysicsJoint)
2894 {
2895 ((OdePhysicsJoint)joint).jointID = odeJoint;
2896 }
2897 else
2898 {
2899 DoJointErrorMessage(joint, "WARNING: non-ode joint in ODE!");
2900 }
2901 }
2902 break;
2903 case PhysicsJointType.Hinge:
2904 {
2905 IntPtr odeJoint;
2906 //DoJointErrorMessage(joint, "ODE creating hinge joint ");
2907 odeJoint = d.JointCreateHinge(world, IntPtr.Zero);
2908 //DoJointErrorMessage(joint, "ODE attaching hinge joint: " + odeJoint + " with b1:" + jointBodies[0] + " b2:" + jointBodies[1]);
2909 d.JointAttach(odeJoint, jointBodies[0], jointBodies[1]);
2910 //DoJointErrorMessage(joint, "ODE setting hinge anchor: " + odeJoint + " to vec:" + joint.Position);
2911 d.JointSetHingeAnchor(odeJoint,
2912 joint.Position.X,
2913 joint.Position.Y,
2914 joint.Position.Z);
2915 // We use the orientation of the x-axis of the joint's coordinate frame
2916 // as the axis for the hinge.
2917
2918 // Therefore, we must get the joint's coordinate frame based on the
2919 // joint.Rotation field, which originates from the orientation of the
2920 // joint's proxy object in the scene.
2921
2922 // The joint's coordinate frame is defined as the transformation matrix
2923 // that converts a vector from joint-local coordinates into world coordinates.
2924 // World coordinates are defined as the XYZ coordinate system of the sim,
2925 // as shown in the top status-bar of the viewer.
2926
2927 // Once we have the joint's coordinate frame, we extract its X axis (AtAxis)
2928 // and use that as the hinge axis.
2929
2930 //joint.Rotation.Normalize();
2931 Matrix4 proxyFrame = Matrix4.CreateFromQuaternion(joint.Rotation);
2932
2933 // Now extract the X axis of the joint's coordinate frame.
2934
2935 // Do not try to use proxyFrame.AtAxis or you will become mired in the
2936 // tar pit of transposed, inverted, and generally messed-up orientations.
2937 // (In other words, Matrix4.AtAxis() is borked.)
2938 // Vector3 jointAxis = proxyFrame.AtAxis; <--- this path leadeth to madness
2939
2940 // Instead, compute the X axis of the coordinate frame by transforming
2941 // the (1,0,0) vector. At least that works.
2942
2943 //m_log.Debug("PHY: making axis: complete matrix is " + proxyFrame);
2944 Vector3 jointAxis = Vector3.Transform(Vector3.UnitX, proxyFrame);
2945 //m_log.Debug("PHY: making axis: hinge joint axis is " + jointAxis);
2946 //DoJointErrorMessage(joint, "ODE setting hinge axis: " + odeJoint + " to vec:" + jointAxis);
2947 d.JointSetHingeAxis(odeJoint,
2948 jointAxis.X,
2949 jointAxis.Y,
2950 jointAxis.Z);
2951 //d.JointSetHingeParam(odeJoint, (int)dParam.CFM, 0.1f);
2952 if (joint is OdePhysicsJoint)
2953 {
2954 ((OdePhysicsJoint)joint).jointID = odeJoint;
2955 }
2956 else
2957 {
2958 DoJointErrorMessage(joint, "WARNING: non-ode joint in ODE!");
2959 }
2960 }
2961 break;
2962 }
2963 successfullyProcessedPendingJoints.Add(joint);
2964 }
2965 }
2966 else
2967 {
2968 DoJointErrorMessage(joint, "joint could not yet be created; still pending");
2969 }
2970 }
2971 foreach (PhysicsJoint successfullyProcessedJoint in successfullyProcessedPendingJoints)
2972 {
2973 //DoJointErrorMessage(successfullyProcessedJoint, "finalizing succesfully procsssed joint " + successfullyProcessedJoint.ObjectNameInScene + " parms " + successfullyProcessedJoint.RawParams);
2974 //DoJointErrorMessage(successfullyProcessedJoint, "removing from pending");
2975 InternalRemovePendingJoint(successfullyProcessedJoint);
2976 //DoJointErrorMessage(successfullyProcessedJoint, "adding to active");
2977 InternalAddActiveJoint(successfullyProcessedJoint);
2978 //DoJointErrorMessage(successfullyProcessedJoint, "done");
2979 }
2980 }
2981 } // end SupportsNINJAJoints
2982
2983 if (processedtaints)
2984//Console.WriteLine("Simulate calls Clear of _taintedPrim list");
2985 _taintedPrimH.Clear(); // ??? if this only ???
2986 _taintedPrimL.Clear();
2987 } // end lock _taintedPrimLock
2988
2989 // Move characters
2990 lock (_characters)
2991 {
2992 List<OdeCharacter> defects = new List<OdeCharacter>();
2993 foreach (OdeCharacter actor in _characters)
2994 {
2995 if (actor != null)
2996 actor.Move(ODE_STEPSIZE, defects);
2997 }
2998 if (0 != defects.Count)
2999 {
3000 foreach (OdeCharacter defect in defects)
3001 {
3002 RemoveCharacter(defect);
3003 }
3004 }
3005 } // end lock _characters
3006
3007 // Move other active objects
3008 lock (_activeprims)
3009 {
3010 foreach (OdePrim prim in _activeprims)
3011 {
3012 prim.m_collisionscore = 0;
3013 prim.Move(ODE_STEPSIZE);
3014 }
3015 } // end lock _activeprims
3016
3017 //if ((framecount % m_randomizeWater) == 0)
3018 // randomizeWater(waterlevel);
3019
3020 //int RayCastTimeMS = m_rayCastManager.ProcessQueuedRequests();
3021 m_rayCastManager.ProcessQueuedRequests();
3022
3023 collision_optimized(ODE_STEPSIZE);
3024
3025 lock (_collisionEventPrim)
3026 {
3027 foreach (PhysicsActor obj in _collisionEventPrim)
3028 {
3029 if (obj == null)
3030 continue;
3031
3032 switch ((ActorTypes)obj.PhysicsActorType)
3033 {
3034 case ActorTypes.Agent:
3035 OdeCharacter cobj = (OdeCharacter)obj;
3036 cobj.AddCollisionFrameTime(100);
3037 cobj.SendCollisions();
3038 break;
3039 case ActorTypes.Prim:
3040 OdePrim pobj = (OdePrim)obj;
3041 pobj.SendCollisions();
3042 break;
3043 }
3044 }
3045 } // end lock _collisionEventPrim
3046
3047 //if (m_global_contactcount > 5)
3048 //{
3049 // m_log.DebugFormat("[PHYSICS]: Contacts:{0}", m_global_contactcount);
3050 //}
3051
3052 m_global_contactcount = 0;
3053
3054 d.WorldQuickStep(world, ODE_STEPSIZE);
3055 d.JointGroupEmpty(contactgroup);
3056 fps++;
3057 //ode.dunlock(world);
3058 } // end try
3059 catch (Exception e)
3060 {
3061 m_log.ErrorFormat("[PHYSICS]: {0}, {1}, {2}", e.Message, e.TargetSite, e);
3062 ode.dunlock(world);
3063 }
3064
3065 step_time -= ODE_STEPSIZE;
3066 i++;
3067 //}
3068 //else
3069 //{
3070 //fps = 0;
3071 //}
3072 //}
3073 } // end while (step_time > 0.0f)
3074
3075 lock (_characters)
3076 {
3077 foreach (OdeCharacter actor in _characters)
3078 {
3079 if (actor != null)
3080 {
3081 if (actor.bad)
3082 m_log.WarnFormat("[PHYSICS]: BAD Actor {0} in _characters list was not removed?", actor.m_uuid);
3083 actor.UpdatePositionAndVelocity();
3084 }
3085 }
3086 }
3087
3088 lock (_badCharacter)
3089 {
3090 if (_badCharacter.Count > 0)
3091 {
3092 foreach (OdeCharacter chr in _badCharacter)
3093 {
3094 RemoveCharacter(chr);
3095 }
3096 _badCharacter.Clear();
3097 }
3098 }
3099
3100 lock (_activeprims)
3101 {
3102 //if (timeStep < 0.2f)
3103 {
3104 foreach (OdePrim actor in _activeprims)
3105 {
3106 if (actor.IsPhysical && (d.BodyIsEnabled(actor.Body) || !actor._zeroFlag))
3107 {
3108 actor.UpdatePositionAndVelocity();
3109
3110 if (SupportsNINJAJoints)
3111 {
3112 // If an actor moved, move its joint proxy objects as well.
3113 // There seems to be an event PhysicsActor.OnPositionUpdate that could be used
3114 // for this purpose but it is never called! So we just do the joint
3115 // movement code here.
3116
3117 if (actor.SOPName != null &&
3118 joints_connecting_actor.ContainsKey(actor.SOPName) &&
3119 joints_connecting_actor[actor.SOPName] != null &&
3120 joints_connecting_actor[actor.SOPName].Count > 0)
3121 {
3122 foreach (PhysicsJoint affectedJoint in joints_connecting_actor[actor.SOPName])
3123 {
3124 if (affectedJoint.IsInPhysicsEngine)
3125 {
3126 DoJointMoved(affectedJoint);
3127 }
3128 else
3129 {
3130 DoJointErrorMessage(affectedJoint, "a body connected to a joint was moved, but the joint doesn't exist yet! this will lead to joint error. joint was: " + affectedJoint.ObjectNameInScene + " parms:" + affectedJoint.RawParams);
3131 }
3132 }
3133 }
3134 }
3135 }
3136 }
3137 }
3138 } // end lock _activeprims
3139
3140 //DumpJointInfo();
3141
3142 // Finished with all sim stepping. If requested, dump world state to file for debugging.
3143 // TODO: This call to the export function is already inside lock (OdeLock) - but is an extra lock needed?
3144 // TODO: This overwrites all dump files in-place. Should this be a growing logfile, or separate snapshots?
3145 if (physics_logging && (physics_logging_interval>0) && (framecount % physics_logging_interval == 0))
3146 {
3147 string fname = "state-" + world.ToString() + ".DIF"; // give each physics world a separate filename
3148 string prefix = "world" + world.ToString(); // prefix for variable names in exported .DIF file
3149
3150 if (physics_logging_append_existing_logfile)
3151 {
3152 string header = "-------------- START OF PHYSICS FRAME " + framecount.ToString() + " --------------";
3153 TextWriter fwriter = File.AppendText(fname);
3154 fwriter.WriteLine(header);
3155 fwriter.Close();
3156 }
3157 d.WorldExportDIF(world, fname, physics_logging_append_existing_logfile, prefix);
3158 }
3159 } // end lock OdeLock
3160
3161 return fps * 1000.0f; //NB This is a FRAME COUNT, not a time! AND is divide by 1000 in SimStatusReporter!
3162 } // end Simulate
3163
3164 public override void GetResults()
3165 {
3166 }
3167
3168 public override bool IsThreaded
3169 {
3170 // for now we won't be multithreaded
3171 get { return (false); }
3172 }
3173
3174 #region ODE Specific Terrain Fixes
3175 public float[] ResizeTerrain512NearestNeighbour(float[] heightMap)
3176 {
3177 float[] returnarr = new float[262144];
3178 float[,] resultarr = new float[(int)WorldExtents.X, (int)WorldExtents.Y];
3179
3180 // Filling out the array into its multi-dimensional components
3181 for (int y = 0; y < WorldExtents.Y; y++)
3182 {
3183 for (int x = 0; x < WorldExtents.X; x++)
3184 {
3185 resultarr[y, x] = heightMap[y * (int)WorldExtents.Y + x];
3186 }
3187 }
3188
3189 // Resize using Nearest Neighbour
3190
3191 // This particular way is quick but it only works on a multiple of the original
3192
3193 // The idea behind this method can be described with the following diagrams
3194 // second pass and third pass happen in the same loop really.. just separated
3195 // them to show what this does.
3196
3197 // First Pass
3198 // ResultArr:
3199 // 1,1,1,1,1,1
3200 // 1,1,1,1,1,1
3201 // 1,1,1,1,1,1
3202 // 1,1,1,1,1,1
3203 // 1,1,1,1,1,1
3204 // 1,1,1,1,1,1
3205
3206 // Second Pass
3207 // ResultArr2:
3208 // 1,,1,,1,,1,,1,,1,
3209 // ,,,,,,,,,,
3210 // 1,,1,,1,,1,,1,,1,
3211 // ,,,,,,,,,,
3212 // 1,,1,,1,,1,,1,,1,
3213 // ,,,,,,,,,,
3214 // 1,,1,,1,,1,,1,,1,
3215 // ,,,,,,,,,,
3216 // 1,,1,,1,,1,,1,,1,
3217 // ,,,,,,,,,,
3218 // 1,,1,,1,,1,,1,,1,
3219
3220 // Third pass fills in the blanks
3221 // ResultArr2:
3222 // 1,1,1,1,1,1,1,1,1,1,1,1
3223 // 1,1,1,1,1,1,1,1,1,1,1,1
3224 // 1,1,1,1,1,1,1,1,1,1,1,1
3225 // 1,1,1,1,1,1,1,1,1,1,1,1
3226 // 1,1,1,1,1,1,1,1,1,1,1,1
3227 // 1,1,1,1,1,1,1,1,1,1,1,1
3228 // 1,1,1,1,1,1,1,1,1,1,1,1
3229 // 1,1,1,1,1,1,1,1,1,1,1,1
3230 // 1,1,1,1,1,1,1,1,1,1,1,1
3231 // 1,1,1,1,1,1,1,1,1,1,1,1
3232 // 1,1,1,1,1,1,1,1,1,1,1,1
3233
3234 // X,Y = .
3235 // X+1,y = ^
3236 // X,Y+1 = *
3237 // X+1,Y+1 = #
3238
3239 // Filling in like this;
3240 // .*
3241 // ^#
3242 // 1st .
3243 // 2nd *
3244 // 3rd ^
3245 // 4th #
3246 // on single loop.
3247
3248 float[,] resultarr2 = new float[512, 512];
3249 for (int y = 0; y < WorldExtents.Y; y++)
3250 {
3251 for (int x = 0; x < WorldExtents.X; x++)
3252 {
3253 resultarr2[y * 2, x * 2] = resultarr[y, x];
3254
3255 if (y < WorldExtents.Y)
3256 {
3257 resultarr2[(y * 2) + 1, x * 2] = resultarr[y, x];
3258 }
3259 if (x < WorldExtents.X)
3260 {
3261 resultarr2[y * 2, (x * 2) + 1] = resultarr[y, x];
3262 }
3263 if (x < WorldExtents.X && y < WorldExtents.Y)
3264 {
3265 resultarr2[(y * 2) + 1, (x * 2) + 1] = resultarr[y, x];
3266 }
3267 }
3268 }
3269
3270 //Flatten out the array
3271 int i = 0;
3272 for (int y = 0; y < 512; y++)
3273 {
3274 for (int x = 0; x < 512; x++)
3275 {
3276 if (resultarr2[y, x] <= 0)
3277 returnarr[i] = 0.0000001f;
3278 else
3279 returnarr[i] = resultarr2[y, x];
3280
3281 i++;
3282 }
3283 }
3284
3285 return returnarr;
3286 }
3287
3288 public float[] ResizeTerrain512Interpolation(float[] heightMap)
3289 {
3290 float[] returnarr = new float[262144];
3291 float[,] resultarr = new float[512,512];
3292
3293 // Filling out the array into its multi-dimensional components
3294 for (int y = 0; y < 256; y++)
3295 {
3296 for (int x = 0; x < 256; x++)
3297 {
3298 resultarr[y, x] = heightMap[y * 256 + x];
3299 }
3300 }
3301
3302 // Resize using interpolation
3303
3304 // This particular way is quick but it only works on a multiple of the original
3305
3306 // The idea behind this method can be described with the following diagrams
3307 // second pass and third pass happen in the same loop really.. just separated
3308 // them to show what this does.
3309
3310 // First Pass
3311 // ResultArr:
3312 // 1,1,1,1,1,1
3313 // 1,1,1,1,1,1
3314 // 1,1,1,1,1,1
3315 // 1,1,1,1,1,1
3316 // 1,1,1,1,1,1
3317 // 1,1,1,1,1,1
3318
3319 // Second Pass
3320 // ResultArr2:
3321 // 1,,1,,1,,1,,1,,1,
3322 // ,,,,,,,,,,
3323 // 1,,1,,1,,1,,1,,1,
3324 // ,,,,,,,,,,
3325 // 1,,1,,1,,1,,1,,1,
3326 // ,,,,,,,,,,
3327 // 1,,1,,1,,1,,1,,1,
3328 // ,,,,,,,,,,
3329 // 1,,1,,1,,1,,1,,1,
3330 // ,,,,,,,,,,
3331 // 1,,1,,1,,1,,1,,1,
3332
3333 // Third pass fills in the blanks
3334 // ResultArr2:
3335 // 1,1,1,1,1,1,1,1,1,1,1,1
3336 // 1,1,1,1,1,1,1,1,1,1,1,1
3337 // 1,1,1,1,1,1,1,1,1,1,1,1
3338 // 1,1,1,1,1,1,1,1,1,1,1,1
3339 // 1,1,1,1,1,1,1,1,1,1,1,1
3340 // 1,1,1,1,1,1,1,1,1,1,1,1
3341 // 1,1,1,1,1,1,1,1,1,1,1,1
3342 // 1,1,1,1,1,1,1,1,1,1,1,1
3343 // 1,1,1,1,1,1,1,1,1,1,1,1
3344 // 1,1,1,1,1,1,1,1,1,1,1,1
3345 // 1,1,1,1,1,1,1,1,1,1,1,1
3346
3347 // X,Y = .
3348 // X+1,y = ^
3349 // X,Y+1 = *
3350 // X+1,Y+1 = #
3351
3352 // Filling in like this;
3353 // .*
3354 // ^#
3355 // 1st .
3356 // 2nd *
3357 // 3rd ^
3358 // 4th #
3359 // on single loop.
3360
3361 float[,] resultarr2 = new float[512,512];
3362 for (int y = 0; y < (int)Constants.RegionSize; y++)
3363 {
3364 for (int x = 0; x < (int)Constants.RegionSize; x++)
3365 {
3366 resultarr2[y*2, x*2] = resultarr[y, x];
3367
3368 if (y < (int)Constants.RegionSize)
3369 {
3370 if (y + 1 < (int)Constants.RegionSize)
3371 {
3372 if (x + 1 < (int)Constants.RegionSize)
3373 {
3374 resultarr2[(y*2) + 1, x*2] = ((resultarr[y, x] + resultarr[y + 1, x] +
3375 resultarr[y, x + 1] + resultarr[y + 1, x + 1])/4);
3376 }
3377 else
3378 {
3379 resultarr2[(y*2) + 1, x*2] = ((resultarr[y, x] + resultarr[y + 1, x])/2);
3380 }
3381 }
3382 else
3383 {
3384 resultarr2[(y*2) + 1, x*2] = resultarr[y, x];
3385 }
3386 }
3387 if (x < (int)Constants.RegionSize)
3388 {
3389 if (x + 1 < (int)Constants.RegionSize)
3390 {
3391 if (y + 1 < (int)Constants.RegionSize)
3392 {
3393 resultarr2[y*2, (x*2) + 1] = ((resultarr[y, x] + resultarr[y + 1, x] +
3394 resultarr[y, x + 1] + resultarr[y + 1, x + 1])/4);
3395 }
3396 else
3397 {
3398 resultarr2[y*2, (x*2) + 1] = ((resultarr[y, x] + resultarr[y, x + 1])/2);
3399 }
3400 }
3401 else
3402 {
3403 resultarr2[y*2, (x*2) + 1] = resultarr[y, x];
3404 }
3405 }
3406 if (x < (int)Constants.RegionSize && y < (int)Constants.RegionSize)
3407 {
3408 if ((x + 1 < (int)Constants.RegionSize) && (y + 1 < (int)Constants.RegionSize))
3409 {
3410 resultarr2[(y*2) + 1, (x*2) + 1] = ((resultarr[y, x] + resultarr[y + 1, x] +
3411 resultarr[y, x + 1] + resultarr[y + 1, x + 1])/4);
3412 }
3413 else
3414 {
3415 resultarr2[(y*2) + 1, (x*2) + 1] = resultarr[y, x];
3416 }
3417 }
3418 }
3419 }
3420 //Flatten out the array
3421 int i = 0;
3422 for (int y = 0; y < 512; y++)
3423 {
3424 for (int x = 0; x < 512; x++)
3425 {
3426 if (Single.IsNaN(resultarr2[y, x]) || Single.IsInfinity(resultarr2[y, x]))
3427 {
3428 m_log.Warn("[PHYSICS]: Non finite heightfield element detected. Setting it to 0");
3429 resultarr2[y, x] = 0;
3430 }
3431 returnarr[i] = resultarr2[y, x];
3432 i++;
3433 }
3434 }
3435
3436 return returnarr;
3437 }
3438
3439 #endregion
3440
3441 public override void SetTerrain(float[] heightMap)
3442 {
3443 if (m_worldOffset != Vector3.Zero && m_parentScene != null)
3444 {
3445 if (m_parentScene is OdeScene)
3446 {
3447 ((OdeScene)m_parentScene).SetTerrain(heightMap, m_worldOffset);
3448 }
3449 }
3450 else
3451 {
3452 SetTerrain(heightMap, m_worldOffset);
3453 }
3454 }
3455
3456 public void SetTerrain(float[] heightMap, Vector3 pOffset)
3457 {
3458
3459 int regionsize = (int) Constants.RegionSize; // visible region size eg. 256(M)
3460
3461 int heightmapWidth = regionsize + 2; // ODE map size 257 x 257 (Meters) (1 extra
3462 int heightmapHeight = regionsize + 2;
3463
3464 int heightmapWidthSamples = (int)regionsize + 2; // Sample file size, 258 x 258 samples
3465 int heightmapHeightSamples = (int)regionsize + 2;
3466
3467 // Array of height samples for ODE
3468 float[] _heightmap;
3469 _heightmap = new float[(heightmapWidthSamples * heightmapHeightSamples)]; // loaded samples 258 x 258
3470
3471 // Other ODE parameters
3472 const float scale = 1.0f;
3473 const float offset = 0.0f;
3474 const float thickness = 2.0f; // Was 0.2f, Larger appears to prevent Av fall-through
3475 const int wrap = 0;
3476
3477 float hfmin = 2000f;
3478 float hfmax = -2000f;
3479 float minele = 0.0f; // Dont allow -ve heights
3480
3481 int x = 0;
3482 int y = 0;
3483 int xx = 0;
3484 int yy = 0;
3485
3486 // load the height samples array from the heightMap
3487 for ( x = 0; x < heightmapWidthSamples; x++) // 0 to 257
3488 {
3489 for ( y = 0; y < heightmapHeightSamples; y++) // 0 to 257
3490 {
3491 xx = x - 1;
3492 if (xx < 0) xx = 0;
3493 if (xx > (regionsize - 1)) xx = regionsize - 1;
3494
3495 yy = y - 1;
3496 if (yy < 0) yy = 0;
3497 if (yy > (regionsize - 1)) yy = regionsize - 1;
3498 // Input xx = 0 0 1 2 ..... 254 255 255 256 total in
3499 // Output x = 0 1 2 3 ..... 255 256 257 258 total out
3500 float val= heightMap[(yy * regionsize) + xx]; // input from heightMap, <0-255 * 256> <0-255>
3501 if (val < minele) val = minele;
3502 _heightmap[x * (regionsize + 2) + y] = val; // samples output to _heightmap, <0-257 * 258> <0-257>
3503 hfmin = (val < hfmin) ? val : hfmin;
3504 hfmax = (val > hfmax) ? val : hfmax;
3505 }
3506 }
3507
3508 lock (OdeLock)
3509 {
3510 IntPtr GroundGeom = IntPtr.Zero;
3511 if (RegionTerrain.TryGetValue(pOffset, out GroundGeom))
3512 {
3513 RegionTerrain.Remove(pOffset);
3514 if (GroundGeom != IntPtr.Zero)
3515 {
3516 if (TerrainHeightFieldHeights.ContainsKey(GroundGeom))
3517 {
3518 TerrainHeightFieldHeights.Remove(GroundGeom);
3519 }
3520 d.SpaceRemove(space, GroundGeom);
3521 d.GeomDestroy(GroundGeom);
3522 }
3523 }
3524 IntPtr HeightmapData = d.GeomHeightfieldDataCreate();
3525 d.GeomHeightfieldDataBuildSingle(HeightmapData, _heightmap, 0,
3526 heightmapWidth, heightmapHeight, (int)heightmapWidthSamples,
3527 (int)heightmapHeightSamples, scale, offset, thickness, wrap);
3528 d.GeomHeightfieldDataSetBounds(HeightmapData, hfmin - 1, hfmax + 1);
3529 GroundGeom = d.CreateHeightfield(space, HeightmapData, 1);
3530 if (GroundGeom != IntPtr.Zero)
3531 {
3532 d.GeomSetCategoryBits(GroundGeom, (int)(CollisionCategories.Land));
3533 d.GeomSetCollideBits(GroundGeom, (int)(CollisionCategories.Space));
3534 }
3535 geom_name_map[GroundGeom] = "Terrain";
3536
3537 d.Matrix3 R = new d.Matrix3();
3538
3539 Quaternion q1 = Quaternion.CreateFromAxisAngle(new Vector3(1, 0, 0), 1.5707f);
3540 Quaternion q2 = Quaternion.CreateFromAxisAngle(new Vector3(0, 1, 0), 1.5707f);
3541 //Axiom.Math.Quaternion q3 = Axiom.Math.Quaternion.FromAngleAxis(3.14f, new Axiom.Math.Vector3(0, 0, 1));
3542
3543 q1 = q1 * q2;
3544 //q1 = q1 * q3;
3545 Vector3 v3;
3546 float angle;
3547 q1.GetAxisAngle(out v3, out angle);
3548
3549 d.RFromAxisAndAngle(out R, v3.X, v3.Y, v3.Z, angle);
3550 d.GeomSetRotation(GroundGeom, ref R);
3551 d.GeomSetPosition(GroundGeom, (pOffset.X + (regionsize * 0.5f)) - 0.5f, (pOffset.Y + (regionsize * 0.5f)) - 0.5f, 0);
3552 IntPtr testGround = IntPtr.Zero;
3553 if (RegionTerrain.TryGetValue(pOffset, out testGround))
3554 {
3555 RegionTerrain.Remove(pOffset);
3556 }
3557 RegionTerrain.Add(pOffset, GroundGeom, GroundGeom);
3558 TerrainHeightFieldHeights.Add(GroundGeom,_heightmap);
3559 }
3560 }
3561
3562 public override void DeleteTerrain()
3563 {
3564 }
3565
3566 public float GetWaterLevel()
3567 {
3568 return waterlevel;
3569 }
3570
3571 public override bool SupportsCombining()
3572 {
3573 return true;
3574 }
3575
3576 public override void UnCombine(PhysicsScene pScene)
3577 {
3578 IntPtr localGround = IntPtr.Zero;
3579// float[] localHeightfield;
3580 bool proceed = false;
3581 List<IntPtr> geomDestroyList = new List<IntPtr>();
3582
3583 lock (OdeLock)
3584 {
3585 if (RegionTerrain.TryGetValue(Vector3.Zero, out localGround))
3586 {
3587 foreach (IntPtr geom in TerrainHeightFieldHeights.Keys)
3588 {
3589 if (geom == localGround)
3590 {
3591// localHeightfield = TerrainHeightFieldHeights[geom];
3592 proceed = true;
3593 }
3594 else
3595 {
3596 geomDestroyList.Add(geom);
3597 }
3598 }
3599
3600 if (proceed)
3601 {
3602 m_worldOffset = Vector3.Zero;
3603 WorldExtents = new Vector2((int)Constants.RegionSize, (int)Constants.RegionSize);
3604 m_parentScene = null;
3605
3606 foreach (IntPtr g in geomDestroyList)
3607 {
3608 // removingHeightField needs to be done or the garbage collector will
3609 // collect the terrain data before we tell ODE to destroy it causing
3610 // memory corruption
3611 if (TerrainHeightFieldHeights.ContainsKey(g))
3612 {
3613// float[] removingHeightField = TerrainHeightFieldHeights[g];
3614 TerrainHeightFieldHeights.Remove(g);
3615
3616 if (RegionTerrain.ContainsKey(g))
3617 {
3618 RegionTerrain.Remove(g);
3619 }
3620
3621 d.GeomDestroy(g);
3622 //removingHeightField = new float[0];
3623 }
3624 }
3625
3626 }
3627 else
3628 {
3629 m_log.Warn("[PHYSICS]: Couldn't proceed with UnCombine. Region has inconsistant data.");
3630
3631 }
3632 }
3633 }
3634 }
3635
3636 public override void SetWaterLevel(float baseheight)
3637 {
3638 waterlevel = baseheight;
3639 randomizeWater(waterlevel);
3640 }
3641
3642 public void randomizeWater(float baseheight)
3643 {
3644 const uint heightmapWidth = m_regionWidth + 2;
3645 const uint heightmapHeight = m_regionHeight + 2;
3646 const uint heightmapWidthSamples = m_regionWidth + 2;
3647 const uint heightmapHeightSamples = m_regionHeight + 2;
3648 const float scale = 1.0f;
3649 const float offset = 0.0f;
3650 const float thickness = 2.9f;
3651 const int wrap = 0;
3652
3653 for (int i = 0; i < (258 * 258); i++)
3654 {
3655 _watermap[i] = (baseheight-0.1f) + ((float)fluidRandomizer.Next(1,9) / 10f);
3656 // m_log.Info((baseheight - 0.1f) + ((float)fluidRandomizer.Next(1, 9) / 10f));
3657 }
3658
3659 lock (OdeLock)
3660 {
3661 if (WaterGeom != IntPtr.Zero)
3662 {
3663 d.SpaceRemove(space, WaterGeom);
3664 }
3665 IntPtr HeightmapData = d.GeomHeightfieldDataCreate();
3666 d.GeomHeightfieldDataBuildSingle(HeightmapData, _watermap, 0, heightmapWidth, heightmapHeight,
3667 (int)heightmapWidthSamples, (int)heightmapHeightSamples, scale,
3668 offset, thickness, wrap);
3669 d.GeomHeightfieldDataSetBounds(HeightmapData, m_regionWidth, m_regionHeight);
3670 WaterGeom = d.CreateHeightfield(space, HeightmapData, 1);
3671 if (WaterGeom != IntPtr.Zero)
3672 {
3673 d.GeomSetCategoryBits(WaterGeom, (int)(CollisionCategories.Water));
3674 d.GeomSetCollideBits(WaterGeom, (int)(CollisionCategories.Space));
3675
3676 }
3677 geom_name_map[WaterGeom] = "Water";
3678
3679 d.Matrix3 R = new d.Matrix3();
3680
3681 Quaternion q1 = Quaternion.CreateFromAxisAngle(new Vector3(1, 0, 0), 1.5707f);
3682 Quaternion q2 = Quaternion.CreateFromAxisAngle(new Vector3(0, 1, 0), 1.5707f);
3683 //Axiom.Math.Quaternion q3 = Axiom.Math.Quaternion.FromAngleAxis(3.14f, new Axiom.Math.Vector3(0, 0, 1));
3684
3685 q1 = q1 * q2;
3686 //q1 = q1 * q3;
3687 Vector3 v3;
3688 float angle;
3689 q1.GetAxisAngle(out v3, out angle);
3690
3691 d.RFromAxisAndAngle(out R, v3.X, v3.Y, v3.Z, angle);
3692 d.GeomSetRotation(WaterGeom, ref R);
3693 d.GeomSetPosition(WaterGeom, 128, 128, 0);
3694
3695 }
3696
3697 }
3698
3699 public override void Dispose()
3700 {
3701 m_rayCastManager.Dispose();
3702 m_rayCastManager = null;
3703
3704 lock (OdeLock)
3705 {
3706 lock (_prims)
3707 {
3708 foreach (OdePrim prm in _prims)
3709 {
3710 RemovePrim(prm);
3711 }
3712 }
3713
3714 //foreach (OdeCharacter act in _characters)
3715 //{
3716 //RemoveAvatar(act);
3717 //}
3718 d.WorldDestroy(world);
3719 //d.CloseODE();
3720 }
3721 }
3722 public override Dictionary<uint, float> GetTopColliders()
3723 {
3724 Dictionary<uint, float> returncolliders = new Dictionary<uint, float>();
3725 int cnt = 0;
3726 lock (_prims)
3727 {
3728 foreach (OdePrim prm in _prims)
3729 {
3730 if (prm.CollisionScore > 0)
3731 {
3732 returncolliders.Add(prm.m_localID, prm.CollisionScore);
3733 cnt++;
3734 prm.CollisionScore = 0f;
3735 if (cnt > 25)
3736 {
3737 break;
3738 }
3739 }
3740 }
3741 }
3742 return returncolliders;
3743 }
3744
3745 public override bool SupportsRayCast()
3746 {
3747 return true;
3748 }
3749
3750 public override void RaycastWorld(Vector3 position, Vector3 direction, float length, RaycastCallback retMethod)
3751 {
3752 if (retMethod != null)
3753 {
3754 m_rayCastManager.QueueRequest(position, direction, length, retMethod);
3755 }
3756 }
3757
3758#if USE_DRAWSTUFF
3759 // Keyboard callback
3760 public void command(int cmd)
3761 {
3762 IntPtr geom;
3763 d.Mass mass;
3764 d.Vector3 sides = new d.Vector3(d.RandReal() * 0.5f + 0.1f, d.RandReal() * 0.5f + 0.1f, d.RandReal() * 0.5f + 0.1f);
3765
3766
3767
3768 Char ch = Char.ToLower((Char)cmd);
3769 switch ((Char)ch)
3770 {
3771 case 'w':
3772 try
3773 {
3774 Vector3 rotate = (new Vector3(1, 0, 0) * Quaternion.CreateFromEulers(hpr.Z * Utils.DEG_TO_RAD, hpr.Y * Utils.DEG_TO_RAD, hpr.X * Utils.DEG_TO_RAD));
3775
3776 xyz.X += rotate.X; xyz.Y += rotate.Y; xyz.Z += rotate.Z;
3777 ds.SetViewpoint(ref xyz, ref hpr);
3778 }
3779 catch (ArgumentException)
3780 { hpr.X = 0; }
3781 break;
3782
3783 case 'a':
3784 hpr.X++;
3785 ds.SetViewpoint(ref xyz, ref hpr);
3786 break;
3787
3788 case 's':
3789 try
3790 {
3791 Vector3 rotate2 = (new Vector3(-1, 0, 0) * Quaternion.CreateFromEulers(hpr.Z * Utils.DEG_TO_RAD, hpr.Y * Utils.DEG_TO_RAD, hpr.X * Utils.DEG_TO_RAD));
3792
3793 xyz.X += rotate2.X; xyz.Y += rotate2.Y; xyz.Z += rotate2.Z;
3794 ds.SetViewpoint(ref xyz, ref hpr);
3795 }
3796 catch (ArgumentException)
3797 { hpr.X = 0; }
3798 break;
3799 case 'd':
3800 hpr.X--;
3801 ds.SetViewpoint(ref xyz, ref hpr);
3802 break;
3803 case 'r':
3804 xyz.Z++;
3805 ds.SetViewpoint(ref xyz, ref hpr);
3806 break;
3807 case 'f':
3808 xyz.Z--;
3809 ds.SetViewpoint(ref xyz, ref hpr);
3810 break;
3811 case 'e':
3812 xyz.Y++;
3813 ds.SetViewpoint(ref xyz, ref hpr);
3814 break;
3815 case 'q':
3816 xyz.Y--;
3817 ds.SetViewpoint(ref xyz, ref hpr);
3818 break;
3819 }
3820 }
3821
3822 public void step(int pause)
3823 {
3824
3825 ds.SetColor(1.0f, 1.0f, 0.0f);
3826 ds.SetTexture(ds.Texture.Wood);
3827 lock (_prims)
3828 {
3829 foreach (OdePrim prm in _prims)
3830 {
3831 //IntPtr body = d.GeomGetBody(prm.prim_geom);
3832 if (prm.prim_geom != IntPtr.Zero)
3833 {
3834 d.Vector3 pos;
3835 d.GeomCopyPosition(prm.prim_geom, out pos);
3836 //d.BodyCopyPosition(body, out pos);
3837
3838 d.Matrix3 R;
3839 d.GeomCopyRotation(prm.prim_geom, out R);
3840 //d.BodyCopyRotation(body, out R);
3841
3842
3843 d.Vector3 sides = new d.Vector3();
3844 sides.X = prm.Size.X;
3845 sides.Y = prm.Size.Y;
3846 sides.Z = prm.Size.Z;
3847
3848 ds.DrawBox(ref pos, ref R, ref sides);
3849 }
3850 }
3851 }
3852 ds.SetColor(1.0f, 0.0f, 0.0f);
3853 lock (_characters)
3854 {
3855 foreach (OdeCharacter chr in _characters)
3856 {
3857 if (chr.Shell != IntPtr.Zero)
3858 {
3859 IntPtr body = d.GeomGetBody(chr.Shell);
3860
3861 d.Vector3 pos;
3862 d.GeomCopyPosition(chr.Shell, out pos);
3863 //d.BodyCopyPosition(body, out pos);
3864
3865 d.Matrix3 R;
3866 d.GeomCopyRotation(chr.Shell, out R);
3867 //d.BodyCopyRotation(body, out R);
3868
3869 ds.DrawCapsule(ref pos, ref R, chr.Size.Z, 0.35f);
3870 d.Vector3 sides = new d.Vector3();
3871 sides.X = 0.5f;
3872 sides.Y = 0.5f;
3873 sides.Z = 0.5f;
3874
3875 ds.DrawBox(ref pos, ref R, ref sides);
3876 }
3877 }
3878 }
3879 }
3880
3881 public void start(int unused)
3882 {
3883 ds.SetViewpoint(ref xyz, ref hpr);
3884 }
3885#endif
3886 }
3887}
diff --git a/OpenSim/Region/Physics/ChOdePlugin/OdeUtils.cs b/OpenSim/Region/Physics/ChOdePlugin/OdeUtils.cs
new file mode 100644
index 0000000..e7e7bb3
--- /dev/null
+++ b/OpenSim/Region/Physics/ChOdePlugin/OdeUtils.cs
@@ -0,0 +1,353 @@
1/* Ubit 2012
2 * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
3 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
4 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
5 * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
6 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
7 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
8 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
9 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
10 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
11 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
12*/
13
14// no endian conversion. So can't be use to pass information around diferent cpus with diferent endian
15
16using System;
17using System.IO;
18using OpenMetaverse;
19
20namespace OpenSim.Region.Physics.OdePlugin
21{
22
23 unsafe public class wstreamer
24 {
25 byte[] buf;
26 int index;
27 byte* src;
28
29 public wstreamer()
30 {
31 buf = new byte[1024];
32 index = 0;
33 }
34 public wstreamer(int size)
35 {
36 buf = new byte[size];
37 index = 0;
38 }
39
40 public byte[] close()
41 {
42 byte[] data = new byte[index];
43 Buffer.BlockCopy(buf, 0, data, 0, index);
44 return data;
45 }
46
47 public void Seek(int pos)
48 {
49 index = pos;
50 }
51
52 public void Seekrel(int pos)
53 {
54 index += pos;
55 }
56
57 public void Wbyte(byte value)
58 {
59 buf[index++] = value;
60 }
61 public void Wshort(short value)
62 {
63 src = (byte*)&value;
64 buf[index++] = *src++;
65 buf[index++] = *src;
66 }
67 public void Wushort(ushort value)
68 {
69 src = (byte*)&value;
70 buf[index++] = *src++;
71 buf[index++] = *src;
72 }
73 public void Wint(int value)
74 {
75 src = (byte*)&value;
76 buf[index++] = *src++;
77 buf[index++] = *src++;
78 buf[index++] = *src++;
79 buf[index++] = *src;
80 }
81 public void Wuint(uint value)
82 {
83 src = (byte*)&value;
84 buf[index++] = *src++;
85 buf[index++] = *src++;
86 buf[index++] = *src++;
87 buf[index++] = *src;
88 }
89 public void Wlong(long value)
90 {
91 src = (byte*)&value;
92 buf[index++] = *src++;
93 buf[index++] = *src++;
94 buf[index++] = *src++;
95 buf[index++] = *src++;
96 buf[index++] = *src++;
97 buf[index++] = *src++;
98 buf[index++] = *src++;
99 buf[index++] = *src;
100 }
101 public void Wulong(ulong value)
102 {
103 src = (byte*)&value;
104 buf[index++] = *src++;
105 buf[index++] = *src++;
106 buf[index++] = *src++;
107 buf[index++] = *src++;
108 buf[index++] = *src++;
109 buf[index++] = *src++;
110 buf[index++] = *src++;
111 buf[index++] = *src;
112 }
113
114 public void Wfloat(float value)
115 {
116 src = (byte*)&value;
117 buf[index++] = *src++;
118 buf[index++] = *src++;
119 buf[index++] = *src++;
120 buf[index++] = *src;
121 }
122
123 public void Wdouble(double value)
124 {
125 src = (byte*)&value;
126 buf[index++] = *src++;
127 buf[index++] = *src++;
128 buf[index++] = *src++;
129 buf[index++] = *src++;
130 buf[index++] = *src++;
131 buf[index++] = *src++;
132 buf[index++] = *src++;
133 buf[index++] = *src;
134 }
135
136 public void Wvector3(Vector3 value)
137 {
138 src = (byte*)&value.X;
139 buf[index++] = *src++;
140 buf[index++] = *src++;
141 buf[index++] = *src++;
142 buf[index++] = *src;
143 src = (byte*)&value.Y; // it may have padding ??
144 buf[index++] = *src++;
145 buf[index++] = *src++;
146 buf[index++] = *src++;
147 buf[index++] = *src;
148 src = (byte*)&value.Z;
149 buf[index++] = *src++;
150 buf[index++] = *src++;
151 buf[index++] = *src++;
152 buf[index++] = *src;
153 }
154 public void Wquat(Quaternion value)
155 {
156 src = (byte*)&value.X;
157 buf[index++] = *src++;
158 buf[index++] = *src++;
159 buf[index++] = *src++;
160 buf[index++] = *src;
161 src = (byte*)&value.Y; // it may have padding ??
162 buf[index++] = *src++;
163 buf[index++] = *src++;
164 buf[index++] = *src++;
165 buf[index++] = *src;
166 src = (byte*)&value.Z;
167 buf[index++] = *src++;
168 buf[index++] = *src++;
169 buf[index++] = *src++;
170 buf[index++] = *src;
171 src = (byte*)&value.W;
172 buf[index++] = *src++;
173 buf[index++] = *src++;
174 buf[index++] = *src++;
175 buf[index++] = *src;
176 }
177 }
178
179 unsafe public class rstreamer
180 {
181 private byte[] rbuf;
182 private int ptr;
183 private byte* dst;
184
185 public rstreamer(byte[] data)
186 {
187 rbuf = data;
188 ptr = 0;
189 }
190
191 public void close()
192 {
193 }
194
195 public void Seek(int pos)
196 {
197 ptr = pos;
198 }
199
200 public void Seekrel(int pos)
201 {
202 ptr += pos;
203 }
204
205 public byte Rbyte()
206 {
207 return (byte)rbuf[ptr++];
208 }
209
210 public short Rshort()
211 {
212 short v;
213 dst = (byte*)&v;
214 *dst++ = rbuf[ptr++];
215 *dst = rbuf[ptr++];
216 return v;
217 }
218 public ushort Rushort()
219 {
220 ushort v;
221 dst = (byte*)&v;
222 *dst++ = rbuf[ptr++];
223 *dst = rbuf[ptr++];
224 return v;
225 }
226 public int Rint()
227 {
228 int v;
229 dst = (byte*)&v;
230 *dst++ = rbuf[ptr++];
231 *dst++ = rbuf[ptr++];
232 *dst++ = rbuf[ptr++];
233 *dst = rbuf[ptr++];
234 return v;
235 }
236 public uint Ruint()
237 {
238 uint v;
239 dst = (byte*)&v;
240 *dst++ = rbuf[ptr++];
241 *dst++ = rbuf[ptr++];
242 *dst++ = rbuf[ptr++];
243 *dst = rbuf[ptr++];
244 return v;
245 }
246 public long Rlong()
247 {
248 long v;
249 dst = (byte*)&v;
250 *dst++ = rbuf[ptr++];
251 *dst++ = rbuf[ptr++];
252 *dst++ = rbuf[ptr++];
253 *dst++ = rbuf[ptr++];
254 *dst++ = rbuf[ptr++];
255 *dst++ = rbuf[ptr++];
256 *dst++ = rbuf[ptr++];
257 *dst = rbuf[ptr++];
258 return v;
259 }
260 public ulong Rulong()
261 {
262 ulong v;
263 dst = (byte*)&v;
264 *dst++ = rbuf[ptr++];
265 *dst++ = rbuf[ptr++];
266 *dst++ = rbuf[ptr++];
267 *dst++ = rbuf[ptr++];
268 *dst++ = rbuf[ptr++];
269 *dst++ = rbuf[ptr++];
270 *dst++ = rbuf[ptr++];
271 *dst = rbuf[ptr++];
272 return v;
273 }
274 public float Rfloat()
275 {
276 float v;
277 dst = (byte*)&v;
278 *dst++ = rbuf[ptr++];
279 *dst++ = rbuf[ptr++];
280 *dst++ = rbuf[ptr++];
281 *dst = rbuf[ptr++];
282 return v;
283 }
284
285 public double Rdouble()
286 {
287 double v;
288 dst = (byte*)&v;
289 *dst++ = rbuf[ptr++];
290 *dst++ = rbuf[ptr++];
291 *dst++ = rbuf[ptr++];
292 *dst++ = rbuf[ptr++];
293 *dst++ = rbuf[ptr++];
294 *dst++ = rbuf[ptr++];
295 *dst++ = rbuf[ptr++];
296 *dst = rbuf[ptr++];
297 return v;
298 }
299
300 public Vector3 Rvector3()
301 {
302 Vector3 v;
303 dst = (byte*)&v.X;
304 *dst++ = rbuf[ptr++];
305 *dst++ = rbuf[ptr++];
306 *dst++ = rbuf[ptr++];
307 *dst = rbuf[ptr++];
308
309 dst = (byte*)&v.Y;
310 *dst++ = rbuf[ptr++];
311 *dst++ = rbuf[ptr++];
312 *dst++ = rbuf[ptr++];
313 *dst = rbuf[ptr++];
314
315 dst = (byte*)&v.Z;
316 *dst++ = rbuf[ptr++];
317 *dst++ = rbuf[ptr++];
318 *dst++ = rbuf[ptr++];
319 *dst = rbuf[ptr++];
320 return v;
321 }
322
323 public Quaternion Rquat()
324 {
325 Quaternion v;
326 dst = (byte*)&v.X;
327 *dst++ = rbuf[ptr++];
328 *dst++ = rbuf[ptr++];
329 *dst++ = rbuf[ptr++];
330 *dst = rbuf[ptr++];
331
332 dst = (byte*)&v.Y;
333 *dst++ = rbuf[ptr++];
334 *dst++ = rbuf[ptr++];
335 *dst++ = rbuf[ptr++];
336 *dst = rbuf[ptr++];
337
338 dst = (byte*)&v.Z;
339 *dst++ = rbuf[ptr++];
340 *dst++ = rbuf[ptr++];
341 *dst++ = rbuf[ptr++];
342 *dst = rbuf[ptr++];
343
344 dst = (byte*)&v.W;
345 *dst++ = rbuf[ptr++];
346 *dst++ = rbuf[ptr++];
347 *dst++ = rbuf[ptr++];
348 *dst = rbuf[ptr++];
349
350 return v;
351 }
352 }
353}
diff --git a/OpenSim/Region/Physics/ChOdePlugin/Tests/ODETestClass.cs b/OpenSim/Region/Physics/ChOdePlugin/Tests/ODETestClass.cs
new file mode 100644
index 0000000..69e2d03
--- /dev/null
+++ b/OpenSim/Region/Physics/ChOdePlugin/Tests/ODETestClass.cs
@@ -0,0 +1,122 @@
1/*
2 * Copyright (c) Contributors, http://opensimulator.org/
3 * See CONTRIBUTORS.TXT for a full list of copyright holders.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 * * Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * * Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
12 * * Neither the name of the OpenSimulator Project nor the
13 * names of its contributors may be used to endorse or promote products
14 * derived from this software without specific prior written permission.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
17 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
20 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28using System;
29using Nini.Config;
30using NUnit.Framework;
31using OpenMetaverse;
32using OpenSim.Framework;
33using OpenSim.Region.Physics.Manager;
34using log4net;
35using System.Reflection;
36
37namespace OpenSim.Region.Physics.OdePlugin
38{
39 [TestFixture]
40 public class ODETestClass
41 {
42 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
43
44 private OdePlugin cbt;
45 private PhysicsScene ps;
46 private IMeshingPlugin imp;
47
48 [SetUp]
49 public void Initialize()
50 {
51 // Loading ODEPlugin
52 cbt = new OdePlugin();
53 // Loading Zero Mesher
54 imp = new ZeroMesherPlugin();
55 // Getting Physics Scene
56 ps = cbt.GetScene("test");
57 // Initializing Physics Scene.
58 ps.Initialise(imp.GetMesher(),null);
59 float[] _heightmap = new float[(int)Constants.RegionSize * (int)Constants.RegionSize];
60 for (int i = 0; i < ((int)Constants.RegionSize * (int)Constants.RegionSize); i++)
61 {
62 _heightmap[i] = 21f;
63 }
64 ps.SetTerrain(_heightmap);
65 }
66
67 [TearDown]
68 public void Terminate()
69 {
70 ps.DeleteTerrain();
71 ps.Dispose();
72
73 }
74
75 [Test]
76 public void CreateAndDropPhysicalCube()
77 {
78 PrimitiveBaseShape newcube = PrimitiveBaseShape.CreateBox();
79 Vector3 position = new Vector3(((float)Constants.RegionSize * 0.5f), ((float)Constants.RegionSize * 0.5f), 128f);
80 Vector3 size = new Vector3(0.5f, 0.5f, 0.5f);
81 Quaternion rot = Quaternion.Identity;
82 PhysicsActor prim = ps.AddPrimShape("CoolShape", newcube, position, size, rot, true);
83 OdePrim oprim = (OdePrim)prim;
84 OdeScene pscene = (OdeScene) ps;
85
86 Assert.That(oprim.m_taintadd);
87
88 prim.LocalID = 5;
89
90 for (int i = 0; i < 58; i++)
91 {
92 ps.Simulate(0.133f);
93
94 Assert.That(oprim.prim_geom != (IntPtr)0);
95
96 Assert.That(oprim.m_targetSpace != (IntPtr)0);
97
98 //Assert.That(oprim.m_targetSpace == pscene.space);
99 m_log.Info("TargetSpace: " + oprim.m_targetSpace + " - SceneMainSpace: " + pscene.space);
100
101 Assert.That(!oprim.m_taintadd);
102 m_log.Info("Prim Position (" + oprim.m_localID + "): " + prim.Position.ToString());
103
104 // Make sure we're above the ground
105 //Assert.That(prim.Position.Z > 20f);
106 //m_log.Info("PrimCollisionScore (" + oprim.m_localID + "): " + oprim.m_collisionscore);
107
108 // Make sure we've got a Body
109 Assert.That(oprim.Body != (IntPtr)0);
110 //m_log.Info(
111 }
112
113 // Make sure we're not somewhere above the ground
114 Assert.That(prim.Position.Z < 21.5f);
115
116 ps.RemovePrim(prim);
117 Assert.That(oprim.m_taintremove);
118 ps.Simulate(0.133f);
119 Assert.That(oprim.Body == (IntPtr)0);
120 }
121 }
122}
diff --git a/OpenSim/Region/Physics/ChOdePlugin/drawstuff.cs b/OpenSim/Region/Physics/ChOdePlugin/drawstuff.cs
new file mode 100644
index 0000000..87ca446
--- /dev/null
+++ b/OpenSim/Region/Physics/ChOdePlugin/drawstuff.cs
@@ -0,0 +1,98 @@
1/*
2 * Copyright ODE
3 * Ode.NET - .NET bindings for ODE
4 * Jason Perkins (starkos@industriousone.com)
5 * Licensed under the New BSD
6 * Part of the OpenDynamicsEngine
7Open Dynamics Engine
8Copyright (c) 2001-2007, Russell L. Smith.
9All rights reserved.
10
11Redistribution and use in source and binary forms, with or without
12modification, are permitted provided that the following conditions
13are met:
14
15Redistributions of source code must retain the above copyright notice,
16this list of conditions and the following disclaimer.
17
18Redistributions in binary form must reproduce the above copyright notice,
19this list of conditions and the following disclaimer in the documentation
20and/or other materials provided with the distribution.
21
22Neither the names of ODE's copyright owner nor the names of its
23contributors may be used to endorse or promote products derived from
24this software without specific prior written permission.
25
26THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
27"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
28LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
29FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
30OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
31SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
32TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
33PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
34LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
35NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
36SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
37 *
38 *
39 */
40
41using System;
42using System.Runtime.InteropServices;
43using Ode.NET;
44
45namespace Drawstuff.NET
46{
47#if dDOUBLE
48 using dReal = System.Double;
49#else
50 using dReal = System.Single;
51#endif
52
53 public static class ds
54 {
55 public const int VERSION = 2;
56
57 public enum Texture
58 {
59 None,
60 Wood
61 }
62
63 [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
64 public delegate void CallbackFunction(int arg);
65
66 [StructLayout(LayoutKind.Sequential)]
67 public struct Functions
68 {
69 public int version;
70 public CallbackFunction start;
71 public CallbackFunction step;
72 public CallbackFunction command;
73 public CallbackFunction stop;
74 public string path_to_textures;
75 }
76
77 [DllImport("drawstuff", EntryPoint = "dsDrawBox")]
78 public static extern void DrawBox(ref d.Vector3 pos, ref d.Matrix3 R, ref d.Vector3 sides);
79
80 [DllImport("drawstuff", EntryPoint = "dsDrawCapsule")]
81 public static extern void DrawCapsule(ref d.Vector3 pos, ref d.Matrix3 R, dReal length, dReal radius);
82
83 [DllImport("drawstuff", EntryPoint = "dsDrawConvex")]
84 public static extern void DrawConvex(ref d.Vector3 pos, ref d.Matrix3 R, dReal[] planes, int planeCount, dReal[] points, int pointCount, int[] polygons);
85
86 [DllImport("drawstuff", EntryPoint = "dsSetColor")]
87 public static extern void SetColor(float red, float green, float blue);
88
89 [DllImport("drawstuff", EntryPoint = "dsSetTexture")]
90 public static extern void SetTexture(Texture texture);
91
92 [DllImport("drawstuff", EntryPoint = "dsSetViewpoint")]
93 public static extern void SetViewpoint(ref d.Vector3 xyz, ref d.Vector3 hpr);
94
95 [DllImport("drawstuff", EntryPoint = "dsSimulationLoop")]
96 public static extern void SimulationLoop(int argc, string[] argv, int window_width, int window_height, ref Functions fn);
97 }
98}
diff --git a/OpenSim/Region/Physics/Manager/IMesher.cs b/OpenSim/Region/Physics/Manager/IMesher.cs
index 3a9ca1b..c32cf38 100644
--- a/OpenSim/Region/Physics/Manager/IMesher.cs
+++ b/OpenSim/Region/Physics/Manager/IMesher.cs
@@ -36,6 +36,7 @@ namespace OpenSim.Region.Physics.Manager
36 { 36 {
37 IMesh CreateMesh(String primName, PrimitiveBaseShape primShape, Vector3 size, float lod); 37 IMesh CreateMesh(String primName, PrimitiveBaseShape primShape, Vector3 size, float lod);
38 IMesh CreateMesh(String primName, PrimitiveBaseShape primShape, Vector3 size, float lod, bool isPhysical); 38 IMesh CreateMesh(String primName, PrimitiveBaseShape primShape, Vector3 size, float lod, bool isPhysical);
39 IMesh CreateMesh(String primName, PrimitiveBaseShape primShape, Vector3 size, float lod, bool isPhysical,bool convex);
39 } 40 }
40 41
41 // Values for level of detail to be passed to the mesher. 42 // Values for level of detail to be passed to the mesher.
@@ -65,5 +66,6 @@ namespace OpenSim.Region.Physics.Manager
65 void releasePinned(); 66 void releasePinned();
66 void Append(IMesh newMesh); 67 void Append(IMesh newMesh);
67 void TransformLinear(float[,] matrix, float[] offset); 68 void TransformLinear(float[,] matrix, float[] offset);
69 Vector3 GetCentroid();
68 } 70 }
69} 71}
diff --git a/OpenSim/Region/Physics/Manager/PhysicsActor.cs b/OpenSim/Region/Physics/Manager/PhysicsActor.cs
index 0587054..aaeae86 100644
--- a/OpenSim/Region/Physics/Manager/PhysicsActor.cs
+++ b/OpenSim/Region/Physics/Manager/PhysicsActor.cs
@@ -59,15 +59,30 @@ namespace OpenSim.Region.Physics.Manager
59 public Vector3 Position; 59 public Vector3 Position;
60 public Vector3 SurfaceNormal; 60 public Vector3 SurfaceNormal;
61 public float PenetrationDepth; 61 public float PenetrationDepth;
62 public float RelativeSpeed;
62 63
63 public ContactPoint(Vector3 position, Vector3 surfaceNormal, float penetrationDepth) 64 public ContactPoint(Vector3 position, Vector3 surfaceNormal, float penetrationDepth)
64 { 65 {
65 Position = position; 66 Position = position;
66 SurfaceNormal = surfaceNormal; 67 SurfaceNormal = surfaceNormal;
67 PenetrationDepth = penetrationDepth; 68 PenetrationDepth = penetrationDepth;
69 RelativeSpeed = 0f; // for now let this one be set explicity
68 } 70 }
69 } 71 }
70 72
73 public struct ContactData
74 {
75 public float mu;
76 public float bounce;
77 public bool softcolide;
78
79 public ContactData(float _mu, float _bounce, bool _softcolide)
80 {
81 mu = _mu;
82 bounce = _bounce;
83 softcolide = _softcolide;
84 }
85 }
71 /// <summary> 86 /// <summary>
72 /// Used to pass collision information to OnCollisionUpdate listeners. 87 /// Used to pass collision information to OnCollisionUpdate listeners.
73 /// </summary> 88 /// </summary>
@@ -135,6 +150,8 @@ namespace OpenSim.Region.Physics.Manager
135 /// </summary> 150 /// </summary>
136 public event CollisionUpdate OnCollisionUpdate; 151 public event CollisionUpdate OnCollisionUpdate;
137 152
153 public virtual void SetVehicle(object vdata) { }
154
138 public event OutOfBounds OnOutOfBounds; 155 public event OutOfBounds OnOutOfBounds;
139#pragma warning restore 67 156#pragma warning restore 67
140 157
@@ -142,11 +159,29 @@ namespace OpenSim.Region.Physics.Manager
142 { 159 {
143 get { return new NullPhysicsActor(); } 160 get { return new NullPhysicsActor(); }
144 } 161 }
162
163 public virtual bool Building { get; set; }
164
165 public virtual void getContactData(ref ContactData cdata)
166 {
167 cdata.mu = 0;
168 cdata.bounce = 0;
169 }
145 170
146 public abstract bool Stopped { get; } 171 public abstract bool Stopped { get; }
147 172
148 public abstract Vector3 Size { get; set; } 173 public abstract Vector3 Size { get; set; }
149 174
175 public virtual bool Phantom { get; set; }
176
177 public virtual bool IsVolumeDtc
178 {
179 get { return false; }
180 set { return; }
181 }
182
183 public virtual byte PhysicsShapeType { get; set; }
184
150 public abstract PrimitiveBaseShape Shape { set; } 185 public abstract PrimitiveBaseShape Shape { set; }
151 186
152 uint m_baseLocalID; 187 uint m_baseLocalID;
@@ -195,6 +230,11 @@ namespace OpenSim.Region.Physics.Manager
195 } 230 }
196 } 231 }
197 232
233 public virtual byte[] Serialize(bool PhysIsRunning)
234 {
235 return new byte[0];
236 }
237
198 public virtual void RaiseOutOfBounds(Vector3 pos) 238 public virtual void RaiseOutOfBounds(Vector3 pos)
199 { 239 {
200 // Make a temporary copy of the event to avoid possibility of 240 // Make a temporary copy of the event to avoid possibility of
@@ -222,6 +262,11 @@ namespace OpenSim.Region.Physics.Manager
222 { 262 {
223 } 263 }
224 264
265 public virtual float Density { get; set; }
266 public virtual float GravModifier { get; set; }
267 public virtual float Friction { get; set; }
268 public virtual float Bounce { get; set; }
269
225 /// <summary> 270 /// <summary>
226 /// Position of this actor. 271 /// Position of this actor.
227 /// </summary> 272 /// </summary>
@@ -249,6 +294,34 @@ namespace OpenSim.Region.Physics.Manager
249 public abstract Vector3 GeometricCenter { get; } 294 public abstract Vector3 GeometricCenter { get; }
250 public abstract Vector3 CenterOfMass { get; } 295 public abstract Vector3 CenterOfMass { get; }
251 296
297 public virtual Vector3 OOBsize
298 {
299 get
300 {
301 Vector3 s=Size;
302 s.X *=0.5f;
303 s.Y *=0.5f;
304 s.Z *=0.5f;
305 return s;
306 }
307 }
308
309 public virtual Vector3 OOBoffset
310 {
311 get
312 {
313 return Vector3.Zero;
314 }
315 }
316
317 public virtual float OOBRadiusSQ
318 {
319 get
320 {
321 return Size.LengthSquared() * 0.25f; // ((0.5^2)
322 }
323 }
324
252 /// <summary> 325 /// <summary>
253 /// Velocity of this actor. 326 /// Velocity of this actor.
254 /// </summary> 327 /// </summary>
@@ -384,7 +457,6 @@ namespace OpenSim.Region.Physics.Manager
384 457
385 public override void VehicleFloatParam(int param, float value) 458 public override void VehicleFloatParam(int param, float value)
386 { 459 {
387
388 } 460 }
389 461
390 public override void VehicleVectorParam(int param, Vector3 value) 462 public override void VehicleVectorParam(int param, Vector3 value)
@@ -554,5 +626,6 @@ namespace OpenSim.Region.Physics.Manager
554 { 626 {
555 return false; 627 return false;
556 } 628 }
629
557 } 630 }
558} 631}
diff --git a/OpenSim/Region/Physics/Manager/PhysicsScene.cs b/OpenSim/Region/Physics/Manager/PhysicsScene.cs
index b32cd30..cfede55 100644
--- a/OpenSim/Region/Physics/Manager/PhysicsScene.cs
+++ b/OpenSim/Region/Physics/Manager/PhysicsScene.cs
@@ -43,6 +43,34 @@ namespace OpenSim.Region.Physics.Manager
43 public delegate void JointDeactivated(PhysicsJoint joint); 43 public delegate void JointDeactivated(PhysicsJoint joint);
44 public delegate void JointErrorMessage(PhysicsJoint joint, string message); // this refers to an "error message due to a problem", not "amount of joint constraint violation" 44 public delegate void JointErrorMessage(PhysicsJoint joint, string message); // this refers to an "error message due to a problem", not "amount of joint constraint violation"
45 45
46 public enum RayFilterFlags:ushort
47 {
48 // the flags
49 water = 0x01,
50 land = 0x02,
51 agent = 0x04,
52 nonphysical = 0x08,
53 physical = 0x10,
54 phantom = 0x20,
55 volumedtc = 0x40,
56
57 // ray cast colision control (may only work for meshs)
58 BackFaceCull = 0x4000,
59 ClosestHit = 0x8000,
60
61 // some combinations
62 LSLPhanton = phantom | volumedtc,
63 PrimsNonPhantom = nonphysical | physical,
64 PrimsNonPhantomAgents = nonphysical | physical | agent,
65
66 AllPrims = nonphysical | phantom | volumedtc | physical,
67 AllButLand = agent | nonphysical | physical | phantom | volumedtc,
68
69 ClosestAndBackCull = ClosestHit | BackFaceCull,
70
71 All = 0x3f
72 }
73
46 /// <summary> 74 /// <summary>
47 /// Contact result from a raycast. 75 /// Contact result from a raycast.
48 /// </summary> 76 /// </summary>
@@ -54,6 +82,8 @@ namespace OpenSim.Region.Physics.Manager
54 public Vector3 Normal; 82 public Vector3 Normal;
55 } 83 }
56 84
85
86
57 public abstract class PhysicsScene 87 public abstract class PhysicsScene
58 { 88 {
59// private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); 89// private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
@@ -125,6 +155,25 @@ namespace OpenSim.Region.Physics.Manager
125 public abstract PhysicsActor AddPrimShape(string primName, PrimitiveBaseShape pbs, Vector3 position, 155 public abstract PhysicsActor AddPrimShape(string primName, PrimitiveBaseShape pbs, Vector3 position,
126 Vector3 size, Quaternion rotation, bool isPhysical, uint localid); 156 Vector3 size, Quaternion rotation, bool isPhysical, uint localid);
127 157
158 public virtual PhysicsActor AddPrimShape(string primName, PhysicsActor parent, PrimitiveBaseShape pbs, Vector3 position,
159 uint localid, byte[] sdata)
160 {
161 return null;
162 }
163
164 public virtual PhysicsActor AddPrimShape(string primName, PrimitiveBaseShape pbs, Vector3 position,
165 Vector3 size, Quaternion rotation, bool isPhysical, bool isPhantom, uint localid)
166 {
167 return AddPrimShape(primName, pbs, position, size, rotation, isPhysical, localid);
168 }
169
170
171 public virtual PhysicsActor AddPrimShape(string primName, PrimitiveBaseShape pbs, Vector3 position,
172 Vector3 size, Quaternion rotation, bool isPhysical, bool isPhantom, byte shapetype, uint localid)
173 {
174 return AddPrimShape(primName, pbs, position, size, rotation, isPhysical, localid);
175 }
176
128 public virtual float TimeDilation 177 public virtual float TimeDilation
129 { 178 {
130 get { return 1.0f; } 179 get { return 1.0f; }
@@ -236,7 +285,7 @@ namespace OpenSim.Region.Physics.Manager
236 } 285 }
237 286
238 public virtual void Combine(PhysicsScene pScene, Vector3 offset, Vector3 extents) {} 287 public virtual void Combine(PhysicsScene pScene, Vector3 offset, Vector3 extents) {}
239 288 public virtual void CombineTerrain(float[] heightMap, Vector3 pOffset) {}
240 public virtual void UnCombine(PhysicsScene pScene) {} 289 public virtual void UnCombine(PhysicsScene pScene) {}
241 290
242 /// <summary> 291 /// <summary>
@@ -274,5 +323,23 @@ namespace OpenSim.Region.Physics.Manager
274 { 323 {
275 return new List<ContactResult>(); 324 return new List<ContactResult>();
276 } 325 }
326
327 public virtual object RaycastWorld(Vector3 position, Vector3 direction, float length, int Count, RayFilterFlags filter)
328 {
329 return null;
330 }
331
332 public virtual bool SuportsRaycastWorldFiltered()
333 {
334 return false;
335 }
336
337 public virtual void RaycastActor(PhysicsActor actor, Vector3 position, Vector3 direction, float length, RaycastCallback retMethod){}
338 public virtual void RaycastActor(PhysicsActor actor, Vector3 position, Vector3 direction, float length, int Count, RayCallback retMethod) { }
339 public virtual List<ContactResult> RaycastActor(PhysicsActor actor, Vector3 position, Vector3 direction, float length, int Count)
340 {
341 return new List<ContactResult>();
342 }
343
277 } 344 }
278} 345}
diff --git a/OpenSim/Region/Physics/Manager/VehicleConstants.cs b/OpenSim/Region/Physics/Manager/VehicleConstants.cs
index f0775c1..8e24b4c 100644
--- a/OpenSim/Region/Physics/Manager/VehicleConstants.cs
+++ b/OpenSim/Region/Physics/Manager/VehicleConstants.cs
@@ -26,6 +26,7 @@
26 */ 26 */
27 27
28using System; 28using System;
29using OpenMetaverse;
29 30
30namespace OpenSim.Region.Physics.Manager 31namespace OpenSim.Region.Physics.Manager
31{ 32{
@@ -117,5 +118,47 @@ namespace OpenSim.Region.Physics.Manager
117 NO_DEFLECTION = 16392, 118 NO_DEFLECTION = 16392,
118 LOCK_ROTATION = 32784 119 LOCK_ROTATION = 32784
119 } 120 }
120 121
122 public struct VehicleData
123 {
124 public Vehicle m_type;
125 public VehicleFlag m_flags;
126
127 // Linear properties
128 public Vector3 m_linearMotorDirection;
129 public Vector3 m_linearFrictionTimescale;
130 public float m_linearMotorDecayTimescale;
131 public float m_linearMotorTimescale;
132 public Vector3 m_linearMotorOffset;
133
134 //Angular properties
135 public Vector3 m_angularMotorDirection;
136 public float m_angularMotorTimescale;
137 public float m_angularMotorDecayTimescale;
138 public Vector3 m_angularFrictionTimescale;
139
140 //Deflection properties
141 public float m_angularDeflectionEfficiency;
142 public float m_angularDeflectionTimescale;
143 public float m_linearDeflectionEfficiency;
144 public float m_linearDeflectionTimescale;
145
146 //Banking properties
147 public float m_bankingEfficiency;
148 public float m_bankingMix;
149 public float m_bankingTimescale;
150
151 //Hover and Buoyancy properties
152 public float m_VhoverHeight;
153 public float m_VhoverEfficiency;
154 public float m_VhoverTimescale;
155 public float m_VehicleBuoyancy;
156
157 //Attractor properties
158 public float m_verticalAttractionEfficiency;
159 public float m_verticalAttractionTimescale;
160
161 // Axis
162 public Quaternion m_referenceFrame;
163 }
121} 164}
diff --git a/OpenSim/Region/Physics/Manager/ZeroMesher.cs b/OpenSim/Region/Physics/Manager/ZeroMesher.cs
index ba19db6..8a3b50b 100644
--- a/OpenSim/Region/Physics/Manager/ZeroMesher.cs
+++ b/OpenSim/Region/Physics/Manager/ZeroMesher.cs
@@ -67,6 +67,11 @@ namespace OpenSim.Region.Physics.Manager
67 return CreateMesh(primName, primShape, size, lod, false); 67 return CreateMesh(primName, primShape, size, lod, false);
68 } 68 }
69 69
70 public IMesh CreateMesh(String primName, PrimitiveBaseShape primShape, Vector3 size, float lod, bool isPhysical, bool convex)
71 {
72 return CreateMesh(primName, primShape, size, lod, false);
73 }
74
70 public IMesh CreateMesh(String primName, PrimitiveBaseShape primShape, Vector3 size, float lod, bool isPhysical) 75 public IMesh CreateMesh(String primName, PrimitiveBaseShape primShape, Vector3 size, float lod, bool isPhysical)
71 { 76 {
72 // Remove the reference to the encoded JPEG2000 data so it can be GCed 77 // Remove the reference to the encoded JPEG2000 data so it can be GCed
diff --git a/OpenSim/Region/Physics/Meshing/Mesh.cs b/OpenSim/Region/Physics/Meshing/Mesh.cs
index f781ff9..c715642 100644
--- a/OpenSim/Region/Physics/Meshing/Mesh.cs
+++ b/OpenSim/Region/Physics/Meshing/Mesh.cs
@@ -46,11 +46,36 @@ namespace OpenSim.Region.Physics.Meshing
46 IntPtr m_indicesPtr = IntPtr.Zero; 46 IntPtr m_indicesPtr = IntPtr.Zero;
47 int m_indexCount = 0; 47 int m_indexCount = 0;
48 public float[] m_normals; 48 public float[] m_normals;
49 Vector3 _centroid;
50 int _centroidDiv;
51
52 private class vertexcomp : IEqualityComparer<Vertex>
53 {
54 public bool Equals(Vertex v1, Vertex v2)
55 {
56 if (v1.X == v2.X && v1.Y == v2.Y && v1.Z == v2.Z)
57 return true;
58 else
59 return false;
60 }
61 public int GetHashCode(Vertex v)
62 {
63 int a = v.X.GetHashCode();
64 int b = v.Y.GetHashCode();
65 int c = v.Z.GetHashCode();
66 return (a << 16) ^ (b << 8) ^ c;
67 }
68
69 }
49 70
50 public Mesh() 71 public Mesh()
51 { 72 {
52 m_vertices = new Dictionary<Vertex, int>(); 73 vertexcomp vcomp = new vertexcomp();
74
75 m_vertices = new Dictionary<Vertex, int>(vcomp);
53 m_triangles = new List<Triangle>(); 76 m_triangles = new List<Triangle>();
77 _centroid = Vector3.Zero;
78 _centroidDiv = 0;
54 } 79 }
55 80
56 public Mesh Clone() 81 public Mesh Clone()
@@ -61,7 +86,8 @@ namespace OpenSim.Region.Physics.Meshing
61 { 86 {
62 result.Add(new Triangle(t.v1.Clone(), t.v2.Clone(), t.v3.Clone())); 87 result.Add(new Triangle(t.v1.Clone(), t.v2.Clone(), t.v3.Clone()));
63 } 88 }
64 89 result._centroid = _centroid;
90 result._centroidDiv = _centroidDiv;
65 return result; 91 return result;
66 } 92 }
67 93
@@ -71,15 +97,57 @@ namespace OpenSim.Region.Physics.Meshing
71 throw new NotSupportedException("Attempt to Add to a pinned Mesh"); 97 throw new NotSupportedException("Attempt to Add to a pinned Mesh");
72 // If a vertex of the triangle is not yet in the vertices list, 98 // If a vertex of the triangle is not yet in the vertices list,
73 // add it and set its index to the current index count 99 // add it and set its index to the current index count
100 // vertex == seems broken
101 // skip colapsed triangles
102 if ((triangle.v1.X == triangle.v2.X && triangle.v1.Y == triangle.v2.Y && triangle.v1.Z == triangle.v2.Z)
103 || (triangle.v1.X == triangle.v3.X && triangle.v1.Y == triangle.v3.Y && triangle.v1.Z == triangle.v3.Z)
104 || (triangle.v2.X == triangle.v3.X && triangle.v2.Y == triangle.v3.Y && triangle.v2.Z == triangle.v3.Z)
105 )
106 {
107 return;
108 }
109
110 if (m_vertices.Count == 0)
111 {
112 _centroidDiv = 0;
113 _centroid = Vector3.Zero;
114 }
115
74 if (!m_vertices.ContainsKey(triangle.v1)) 116 if (!m_vertices.ContainsKey(triangle.v1))
117 {
75 m_vertices[triangle.v1] = m_vertices.Count; 118 m_vertices[triangle.v1] = m_vertices.Count;
119 _centroid.X += triangle.v1.X;
120 _centroid.Y += triangle.v1.Y;
121 _centroid.Z += triangle.v1.Z;
122 _centroidDiv++;
123 }
76 if (!m_vertices.ContainsKey(triangle.v2)) 124 if (!m_vertices.ContainsKey(triangle.v2))
125 {
77 m_vertices[triangle.v2] = m_vertices.Count; 126 m_vertices[triangle.v2] = m_vertices.Count;
127 _centroid.X += triangle.v2.X;
128 _centroid.Y += triangle.v2.Y;
129 _centroid.Z += triangle.v2.Z;
130 _centroidDiv++;
131 }
78 if (!m_vertices.ContainsKey(triangle.v3)) 132 if (!m_vertices.ContainsKey(triangle.v3))
133 {
79 m_vertices[triangle.v3] = m_vertices.Count; 134 m_vertices[triangle.v3] = m_vertices.Count;
135 _centroid.X += triangle.v3.X;
136 _centroid.Y += triangle.v3.Y;
137 _centroid.Z += triangle.v3.Z;
138 _centroidDiv++;
139 }
80 m_triangles.Add(triangle); 140 m_triangles.Add(triangle);
81 } 141 }
82 142
143 public Vector3 GetCentroid()
144 {
145 if (_centroidDiv > 0)
146 return new Vector3(_centroid.X / _centroidDiv, _centroid.Y / _centroidDiv, _centroid.Z / _centroidDiv);
147 else
148 return Vector3.Zero;
149 }
150
83 public void CalcNormals() 151 public void CalcNormals()
84 { 152 {
85 int iTriangles = m_triangles.Count; 153 int iTriangles = m_triangles.Count;
diff --git a/OpenSim/Region/Physics/Meshing/Meshmerizer.cs b/OpenSim/Region/Physics/Meshing/Meshmerizer.cs
index 3bd15ce..825b858 100644
--- a/OpenSim/Region/Physics/Meshing/Meshmerizer.cs
+++ b/OpenSim/Region/Physics/Meshing/Meshmerizer.cs
@@ -74,6 +74,8 @@ namespace OpenSim.Region.Physics.Meshing
74#endif 74#endif
75 75
76 private bool cacheSculptMaps = true; 76 private bool cacheSculptMaps = true;
77 private bool cacheSculptAlphaMaps = true;
78
77 private string decodedSculptMapPath = null; 79 private string decodedSculptMapPath = null;
78 private bool useMeshiesPhysicsMesh = false; 80 private bool useMeshiesPhysicsMesh = false;
79 81
@@ -87,7 +89,16 @@ namespace OpenSim.Region.Physics.Meshing
87 IConfig mesh_config = config.Configs["Mesh"]; 89 IConfig mesh_config = config.Configs["Mesh"];
88 90
89 decodedSculptMapPath = start_config.GetString("DecodedSculptMapPath","j2kDecodeCache"); 91 decodedSculptMapPath = start_config.GetString("DecodedSculptMapPath","j2kDecodeCache");
92
90 cacheSculptMaps = start_config.GetBoolean("CacheSculptMaps", cacheSculptMaps); 93 cacheSculptMaps = start_config.GetBoolean("CacheSculptMaps", cacheSculptMaps);
94
95 if (Environment.OSVersion.Platform == PlatformID.Unix)
96 {
97 cacheSculptAlphaMaps = false;
98 }
99 else
100 cacheSculptAlphaMaps = cacheSculptMaps;
101
91 if(mesh_config != null) 102 if(mesh_config != null)
92 useMeshiesPhysicsMesh = mesh_config.GetBoolean("UseMeshiesPhysicsMesh", useMeshiesPhysicsMesh); 103 useMeshiesPhysicsMesh = mesh_config.GetBoolean("UseMeshiesPhysicsMesh", useMeshiesPhysicsMesh);
93 104
@@ -268,15 +279,18 @@ namespace OpenSim.Region.Physics.Meshing
268 { 279 {
269 if (!GenerateCoordsAndFacesFromPrimSculptData(primName, primShape, size, lod, out coords, out faces)) 280 if (!GenerateCoordsAndFacesFromPrimSculptData(primName, primShape, size, lod, out coords, out faces))
270 return null; 281 return null;
282 // Remove the reference to any JPEG2000 sculpt data so it can be GCed
283 // don't loose it
284 // primShape.SculptData = Utils.EmptyBytes;
271 } 285 }
286// primShape.SculptDataLoaded = true;
272 } 287 }
273 else 288 else
274 { 289 {
275 if (!GenerateCoordsAndFacesFromPrimShapeData(primName, primShape, size, lod, out coords, out faces)) 290 if (!GenerateCoordsAndFacesFromPrimShapeData(primName, primShape, size, lod, out coords, out faces))
276 return null; 291 return null;
277 } 292 }
278 293 // keep compatible
279 // Remove the reference to any JPEG2000 sculpt data so it can be GCed
280 primShape.SculptData = Utils.EmptyBytes; 294 primShape.SculptData = Utils.EmptyBytes;
281 295
282 int numCoords = coords.Count; 296 int numCoords = coords.Count;
@@ -321,7 +335,7 @@ namespace OpenSim.Region.Physics.Meshing
321 335
322 if (primShape.SculptData.Length <= 0) 336 if (primShape.SculptData.Length <= 0)
323 { 337 {
324 m_log.ErrorFormat("[MESH]: asset data for {0} is zero length", primName); 338 m_log.InfoFormat("[MESH]: asset data for {0} is zero length", primName);
325 return false; 339 return false;
326 } 340 }
327 341
@@ -482,7 +496,8 @@ namespace OpenSim.Region.Physics.Meshing
482 496
483 //idata = CSJ2K.J2kImage.FromBytes(primShape.SculptData); 497 //idata = CSJ2K.J2kImage.FromBytes(primShape.SculptData);
484 498
485 if (cacheSculptMaps) 499 if (cacheSculptMaps && (cacheSculptAlphaMaps || (((ImageFlags)(idata.Flags) & ImageFlags.HasAlpha) ==0)))
500 // don't cache images with alpha channel in linux since mono can't load them correctly)
486 { 501 {
487 try { idata.Save(decodedSculptFileName, ImageFormat.MemoryBmp); } 502 try { idata.Save(decodedSculptFileName, ImageFormat.MemoryBmp); }
488 catch (Exception e) { m_log.Error("[SCULPT]: unable to cache sculpt map " + decodedSculptFileName + " " + e.Message); } 503 catch (Exception e) { m_log.Error("[SCULPT]: unable to cache sculpt map " + decodedSculptFileName + " " + e.Message); }
@@ -702,6 +717,11 @@ namespace OpenSim.Region.Physics.Meshing
702 return CreateMesh(primName, primShape, size, lod, false); 717 return CreateMesh(primName, primShape, size, lod, false);
703 } 718 }
704 719
720 public IMesh CreateMesh(String primName, PrimitiveBaseShape primShape, Vector3 size, float lod, bool isPhysical, bool convex)
721 {
722 return CreateMesh(primName, primShape, size, lod, false);
723 }
724
705 public IMesh CreateMesh(String primName, PrimitiveBaseShape primShape, Vector3 size, float lod, bool isPhysical) 725 public IMesh CreateMesh(String primName, PrimitiveBaseShape primShape, Vector3 size, float lod, bool isPhysical)
706 { 726 {
707#if SPAM 727#if SPAM
diff --git a/OpenSim/Region/Physics/Meshing/SculptMap.cs b/OpenSim/Region/Physics/Meshing/SculptMap.cs
index 740424e..b3d9cb6 100644
--- a/OpenSim/Region/Physics/Meshing/SculptMap.cs
+++ b/OpenSim/Region/Physics/Meshing/SculptMap.cs
@@ -58,28 +58,24 @@ namespace PrimMesher
58 if (bmW == 0 || bmH == 0) 58 if (bmW == 0 || bmH == 0)
59 throw new Exception("SculptMap: bitmap has no data"); 59 throw new Exception("SculptMap: bitmap has no data");
60 60
61 int numLodPixels = lod * 2 * lod * 2; // (32 * 2)^2 = 64^2 pixels for default sculpt map image 61 int numLodPixels = lod * lod; // (32 * 2)^2 = 64^2 pixels for default sculpt map image
62 62
63 bool smallMap = bmW * bmH <= numLodPixels;
63 bool needsScaling = false; 64 bool needsScaling = false;
64 65
65 bool smallMap = bmW * bmH <= lod * lod;
66
67 width = bmW; 66 width = bmW;
68 height = bmH; 67 height = bmH;
69 while (width * height > numLodPixels) 68 while (width * height > numLodPixels * 4)
70 { 69 {
71 width >>= 1; 70 width >>= 1;
72 height >>= 1; 71 height >>= 1;
73 needsScaling = true; 72 needsScaling = true;
74 } 73 }
75 74
76
77
78 try 75 try
79 { 76 {
80 if (needsScaling) 77 if (needsScaling)
81 bm = ScaleImage(bm, width, height, 78 bm = ScaleImage(bm, width, height);
82 System.Drawing.Drawing2D.InterpolationMode.NearestNeighbor);
83 } 79 }
84 80
85 catch (Exception e) 81 catch (Exception e)
@@ -87,7 +83,7 @@ namespace PrimMesher
87 throw new Exception("Exception in ScaleImage(): e: " + e.ToString()); 83 throw new Exception("Exception in ScaleImage(): e: " + e.ToString());
88 } 84 }
89 85
90 if (width * height > lod * lod) 86 if (width * height > numLodPixels)
91 { 87 {
92 width >>= 1; 88 width >>= 1;
93 height >>= 1; 89 height >>= 1;
@@ -144,15 +140,17 @@ namespace PrimMesher
144 int rowNdx, colNdx; 140 int rowNdx, colNdx;
145 int smNdx = 0; 141 int smNdx = 0;
146 142
143
147 for (rowNdx = 0; rowNdx < numRows; rowNdx++) 144 for (rowNdx = 0; rowNdx < numRows; rowNdx++)
148 { 145 {
149 List<Coord> row = new List<Coord>(numCols); 146 List<Coord> row = new List<Coord>(numCols);
150 for (colNdx = 0; colNdx < numCols; colNdx++) 147 for (colNdx = 0; colNdx < numCols; colNdx++)
151 { 148 {
149
152 if (mirror) 150 if (mirror)
153 row.Add(new Coord(-(redBytes[smNdx] * pixScale - 0.5f), (greenBytes[smNdx] * pixScale - 0.5f), blueBytes[smNdx] * pixScale - 0.5f)); 151 row.Add(new Coord(-((float)redBytes[smNdx] * pixScale - 0.5f), ((float)greenBytes[smNdx] * pixScale - 0.5f), (float)blueBytes[smNdx] * pixScale - 0.5f));
154 else 152 else
155 row.Add(new Coord(redBytes[smNdx] * pixScale - 0.5f, greenBytes[smNdx] * pixScale - 0.5f, blueBytes[smNdx] * pixScale - 0.5f)); 153 row.Add(new Coord((float)redBytes[smNdx] * pixScale - 0.5f, (float)greenBytes[smNdx] * pixScale - 0.5f, (float)blueBytes[smNdx] * pixScale - 0.5f));
156 154
157 ++smNdx; 155 ++smNdx;
158 } 156 }
@@ -161,23 +159,39 @@ namespace PrimMesher
161 return rows; 159 return rows;
162 } 160 }
163 161
164 private Bitmap ScaleImage(Bitmap srcImage, int destWidth, int destHeight, 162 private Bitmap ScaleImage(Bitmap srcImage, int destWidth, int destHeight)
165 System.Drawing.Drawing2D.InterpolationMode interpMode)
166 { 163 {
167 Bitmap scaledImage = new Bitmap(srcImage, destWidth, destHeight);
168 scaledImage.SetResolution(96.0f, 96.0f);
169
170 Graphics grPhoto = Graphics.FromImage(scaledImage);
171 grPhoto.InterpolationMode = interpMode;
172 164
173 grPhoto.DrawImage(srcImage, 165 Bitmap scaledImage = new Bitmap(destWidth, destHeight, PixelFormat.Format24bppRgb);
174 new Rectangle(0, 0, destWidth, destHeight), 166
175 new Rectangle(0, 0, srcImage.Width, srcImage.Height), 167 Color c;
176 GraphicsUnit.Pixel); 168 float xscale = srcImage.Width / destWidth;
169 float yscale = srcImage.Height / destHeight;
170
171 float sy = 0.5f;
172 for (int y = 0; y < destHeight; y++)
173 {
174 float sx = 0.5f;
175 for (int x = 0; x < destWidth; x++)
176 {
177 try
178 {
179 c = srcImage.GetPixel((int)(sx), (int)(sy));
180 scaledImage.SetPixel(x, y, Color.FromArgb(c.R, c.G, c.B));
181 }
182 catch (IndexOutOfRangeException)
183 {
184 }
177 185
178 grPhoto.Dispose(); 186 sx += xscale;
187 }
188 sy += yscale;
189 }
190 srcImage.Dispose();
179 return scaledImage; 191 return scaledImage;
180 } 192 }
193
194 }
195
181 } 196 }
182}
183#endif 197#endif
diff --git a/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs b/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs
index 0716214..a41c856 100644
--- a/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs
+++ b/OpenSim/Region/Physics/OdePlugin/ODEPrim.cs
@@ -601,8 +601,8 @@ namespace OpenSim.Region.Physics.OdePlugin
601 break; 601 break;
602 602
603 case HollowShape.Circle: 603 case HollowShape.Circle:
604 // Hollow shape is a perfect cyllinder in respect to the cube's scale 604 // Hollow shape is a perfect cylinder in respect to the cube's scale
605 // Cyllinder hollow volume calculation 605 // Cylinder hollow volume calculation
606 606
607 hollowVolume *= 0.1963495f * 3.07920140172638f; 607 hollowVolume *= 0.1963495f * 3.07920140172638f;
608 break; 608 break;
@@ -2827,7 +2827,7 @@ Console.WriteLine(" JointCreateFixed");
2827 } 2827 }
2828 public override bool PIDActive { set { m_usePID = value; } } 2828 public override bool PIDActive { set { m_usePID = value; } }
2829 public override float PIDTau { set { m_PIDTau = value; } } 2829 public override float PIDTau { set { m_PIDTau = value; } }
2830 2830
2831 public override float PIDHoverHeight { set { m_PIDHoverHeight = value; ; } } 2831 public override float PIDHoverHeight { set { m_PIDHoverHeight = value; ; } }
2832 public override bool PIDHoverActive { set { m_useHoverPID = value; } } 2832 public override bool PIDHoverActive { set { m_useHoverPID = value; } }
2833 public override PIDHoverType PIDHoverType { set { m_PIDHoverType = value; } } 2833 public override PIDHoverType PIDHoverType { set { m_PIDHoverType = value; } }
diff --git a/OpenSim/Region/Physics/OdePlugin/ODERayCastRequestManager.cs b/OpenSim/Region/Physics/OdePlugin/ODERayCastRequestManager.cs
index 8d7d3b3..7e3ec63 100644
--- a/OpenSim/Region/Physics/OdePlugin/ODERayCastRequestManager.cs
+++ b/OpenSim/Region/Physics/OdePlugin/ODERayCastRequestManager.cs
@@ -137,8 +137,15 @@ namespace OpenSim.Region.Physics.OdePlugin
137 ODERayCastRequest[] reqs = m_PendingRequests.ToArray(); 137 ODERayCastRequest[] reqs = m_PendingRequests.ToArray();
138 for (int i = 0; i < reqs.Length; i++) 138 for (int i = 0; i < reqs.Length; i++)
139 { 139 {
140 if (reqs[i].callbackMethod != null) // quick optimization here, don't raycast 140 try
141 RayCast(reqs[i]); // if there isn't anyone to send results 141 {
142 if (reqs[i].callbackMethod != null) // quick optimization here, don't raycast
143 RayCast(reqs[i]); // if there isn't anyone to send results
144 }
145 catch
146 {
147 //Fail silently
148 }
142 } 149 }
143 150
144 m_PendingRequests.Clear(); 151 m_PendingRequests.Clear();
diff --git a/OpenSim/Region/Physics/POSPlugin/POSPrim.cs b/OpenSim/Region/Physics/POSPlugin/POSPrim.cs
index e4fd7eb..2ea8bfc 100644
--- a/OpenSim/Region/Physics/POSPlugin/POSPrim.cs
+++ b/OpenSim/Region/Physics/POSPlugin/POSPrim.cs
@@ -297,7 +297,7 @@ namespace OpenSim.Region.Physics.POSPlugin
297 { 297 {
298 set { return; } 298 set { return; }
299 } 299 }
300 300
301 public override Quaternion APIDTarget 301 public override Quaternion APIDTarget
302 { 302 {
303 set { return; } 303 set { return; }
diff --git a/OpenSim/Region/Physics/UbitMeshing/HelperTypes.cs b/OpenSim/Region/Physics/UbitMeshing/HelperTypes.cs
new file mode 100644
index 0000000..2938257
--- /dev/null
+++ b/OpenSim/Region/Physics/UbitMeshing/HelperTypes.cs
@@ -0,0 +1,340 @@
1/*
2 * Copyright (c) Contributors, http://opensimulator.org/
3 * See CONTRIBUTORS.TXT for a full list of copyright holders.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 * * Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * * Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
12 * * Neither the name of the OpenSimulator Project nor the
13 * names of its contributors may be used to endorse or promote products
14 * derived from this software without specific prior written permission.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
17 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
20 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28using System;
29using System.Collections.Generic;
30using System.Diagnostics;
31using System.Globalization;
32using OpenMetaverse;
33using OpenSim.Region.Physics.Manager;
34using OpenSim.Region.Physics.Meshing;
35
36public class Vertex : IComparable<Vertex>
37{
38 Vector3 vector;
39
40 public float X
41 {
42 get { return vector.X; }
43 set { vector.X = value; }
44 }
45
46 public float Y
47 {
48 get { return vector.Y; }
49 set { vector.Y = value; }
50 }
51
52 public float Z
53 {
54 get { return vector.Z; }
55 set { vector.Z = value; }
56 }
57
58 public Vertex(float x, float y, float z)
59 {
60 vector.X = x;
61 vector.Y = y;
62 vector.Z = z;
63 }
64
65 public Vertex normalize()
66 {
67 float tlength = vector.Length();
68 if (tlength != 0f)
69 {
70 float mul = 1.0f / tlength;
71 return new Vertex(vector.X * mul, vector.Y * mul, vector.Z * mul);
72 }
73 else
74 {
75 return new Vertex(0f, 0f, 0f);
76 }
77 }
78
79 public Vertex cross(Vertex v)
80 {
81 return new Vertex(vector.Y * v.Z - vector.Z * v.Y, vector.Z * v.X - vector.X * v.Z, vector.X * v.Y - vector.Y * v.X);
82 }
83
84 // disable warning: mono compiler moans about overloading
85 // operators hiding base operator but should not according to C#
86 // language spec
87#pragma warning disable 0108
88 public static Vertex operator *(Vertex v, Quaternion q)
89 {
90 // From http://www.euclideanspace.com/maths/algebra/realNormedAlgebra/quaternions/transforms/
91
92 Vertex v2 = new Vertex(0f, 0f, 0f);
93
94 v2.X = q.W * q.W * v.X +
95 2f * q.Y * q.W * v.Z -
96 2f * q.Z * q.W * v.Y +
97 q.X * q.X * v.X +
98 2f * q.Y * q.X * v.Y +
99 2f * q.Z * q.X * v.Z -
100 q.Z * q.Z * v.X -
101 q.Y * q.Y * v.X;
102
103 v2.Y =
104 2f * q.X * q.Y * v.X +
105 q.Y * q.Y * v.Y +
106 2f * q.Z * q.Y * v.Z +
107 2f * q.W * q.Z * v.X -
108 q.Z * q.Z * v.Y +
109 q.W * q.W * v.Y -
110 2f * q.X * q.W * v.Z -
111 q.X * q.X * v.Y;
112
113 v2.Z =
114 2f * q.X * q.Z * v.X +
115 2f * q.Y * q.Z * v.Y +
116 q.Z * q.Z * v.Z -
117 2f * q.W * q.Y * v.X -
118 q.Y * q.Y * v.Z +
119 2f * q.W * q.X * v.Y -
120 q.X * q.X * v.Z +
121 q.W * q.W * v.Z;
122
123 return v2;
124 }
125
126 public static Vertex operator +(Vertex v1, Vertex v2)
127 {
128 return new Vertex(v1.X + v2.X, v1.Y + v2.Y, v1.Z + v2.Z);
129 }
130
131 public static Vertex operator -(Vertex v1, Vertex v2)
132 {
133 return new Vertex(v1.X - v2.X, v1.Y - v2.Y, v1.Z - v2.Z);
134 }
135
136 public static Vertex operator *(Vertex v1, Vertex v2)
137 {
138 return new Vertex(v1.X * v2.X, v1.Y * v2.Y, v1.Z * v2.Z);
139 }
140
141 public static Vertex operator +(Vertex v1, float am)
142 {
143 v1.X += am;
144 v1.Y += am;
145 v1.Z += am;
146 return v1;
147 }
148
149 public static Vertex operator -(Vertex v1, float am)
150 {
151 v1.X -= am;
152 v1.Y -= am;
153 v1.Z -= am;
154 return v1;
155 }
156
157 public static Vertex operator *(Vertex v1, float am)
158 {
159 v1.X *= am;
160 v1.Y *= am;
161 v1.Z *= am;
162 return v1;
163 }
164
165 public static Vertex operator /(Vertex v1, float am)
166 {
167 if (am == 0f)
168 {
169 return new Vertex(0f,0f,0f);
170 }
171 float mul = 1.0f / am;
172 v1.X *= mul;
173 v1.Y *= mul;
174 v1.Z *= mul;
175 return v1;
176 }
177#pragma warning restore 0108
178
179
180 public float dot(Vertex v)
181 {
182 return X * v.X + Y * v.Y + Z * v.Z;
183 }
184
185 public Vertex(Vector3 v)
186 {
187 vector = v;
188 }
189
190 public Vertex Clone()
191 {
192 return new Vertex(X, Y, Z);
193 }
194
195 public static Vertex FromAngle(double angle)
196 {
197 return new Vertex((float) Math.Cos(angle), (float) Math.Sin(angle), 0.0f);
198 }
199
200 public float Length()
201 {
202 return vector.Length();
203 }
204
205 public virtual bool Equals(Vertex v, float tolerance)
206 {
207 Vertex diff = this - v;
208 float d = diff.Length();
209 if (d < tolerance)
210 return true;
211
212 return false;
213 }
214
215
216 public int CompareTo(Vertex other)
217 {
218 if (X < other.X)
219 return -1;
220
221 if (X > other.X)
222 return 1;
223
224 if (Y < other.Y)
225 return -1;
226
227 if (Y > other.Y)
228 return 1;
229
230 if (Z < other.Z)
231 return -1;
232
233 if (Z > other.Z)
234 return 1;
235
236 return 0;
237 }
238
239 public static bool operator >(Vertex me, Vertex other)
240 {
241 return me.CompareTo(other) > 0;
242 }
243
244 public static bool operator <(Vertex me, Vertex other)
245 {
246 return me.CompareTo(other) < 0;
247 }
248
249 public String ToRaw()
250 {
251 // Why this stuff with the number formatter?
252 // Well, the raw format uses the english/US notation of numbers
253 // where the "," separates groups of 1000 while the "." marks the border between 1 and 10E-1.
254 // The german notation uses these characters exactly vice versa!
255 // The Float.ToString() routine is a localized one, giving different results depending on the country
256 // settings your machine works with. Unusable for a machine readable file format :-(
257 NumberFormatInfo nfi = new NumberFormatInfo();
258 nfi.NumberDecimalSeparator = ".";
259 nfi.NumberDecimalDigits = 3;
260
261 String s1 = X.ToString("N2", nfi) + " " + Y.ToString("N2", nfi) + " " + Z.ToString("N2", nfi);
262
263 return s1;
264 }
265}
266
267public class Triangle
268{
269 public Vertex v1;
270 public Vertex v2;
271 public Vertex v3;
272
273 public Triangle(Vertex _v1, Vertex _v2, Vertex _v3)
274 {
275 v1 = _v1;
276 v2 = _v2;
277 v3 = _v3;
278 }
279
280 public Triangle(float _v1x,float _v1y,float _v1z,
281 float _v2x,float _v2y,float _v2z,
282 float _v3x,float _v3y,float _v3z)
283 {
284 v1 = new Vertex(_v1x, _v1y, _v1z);
285 v2 = new Vertex(_v2x, _v2y, _v2z);
286 v3 = new Vertex(_v3x, _v3y, _v3z);
287 }
288
289 public override String ToString()
290 {
291 NumberFormatInfo nfi = new NumberFormatInfo();
292 nfi.CurrencyDecimalDigits = 2;
293 nfi.CurrencyDecimalSeparator = ".";
294
295 String s1 = "<" + v1.X.ToString(nfi) + "," + v1.Y.ToString(nfi) + "," + v1.Z.ToString(nfi) + ">";
296 String s2 = "<" + v2.X.ToString(nfi) + "," + v2.Y.ToString(nfi) + "," + v2.Z.ToString(nfi) + ">";
297 String s3 = "<" + v3.X.ToString(nfi) + "," + v3.Y.ToString(nfi) + "," + v3.Z.ToString(nfi) + ">";
298
299 return s1 + ";" + s2 + ";" + s3;
300 }
301
302 public Vector3 getNormal()
303 {
304 // Vertices
305
306 // Vectors for edges
307 Vector3 e1;
308 Vector3 e2;
309
310 e1 = new Vector3(v1.X - v2.X, v1.Y - v2.Y, v1.Z - v2.Z);
311 e2 = new Vector3(v1.X - v3.X, v1.Y - v3.Y, v1.Z - v3.Z);
312
313 // Cross product for normal
314 Vector3 n = Vector3.Cross(e1, e2);
315
316 // Length
317 float l = n.Length();
318
319 // Normalized "normal"
320 n = n/l;
321
322 return n;
323 }
324
325 public void invertNormal()
326 {
327 Vertex vt;
328 vt = v1;
329 v1 = v2;
330 v2 = vt;
331 }
332
333 // Dumps a triangle in the "raw faces" format, blender can import. This is for visualisation and
334 // debugging purposes
335 public String ToStringRaw()
336 {
337 String output = v1.ToRaw() + " " + v2.ToRaw() + " " + v3.ToRaw();
338 return output;
339 }
340}
diff --git a/OpenSim/Region/Physics/UbitMeshing/Mesh.cs b/OpenSim/Region/Physics/UbitMeshing/Mesh.cs
new file mode 100644
index 0000000..c715642
--- /dev/null
+++ b/OpenSim/Region/Physics/UbitMeshing/Mesh.cs
@@ -0,0 +1,401 @@
1/*
2 * Copyright (c) Contributors, http://opensimulator.org/
3 * See CONTRIBUTORS.TXT for a full list of copyright holders.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 * * Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * * Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
12 * * Neither the name of the OpenSimulator Project nor the
13 * names of its contributors may be used to endorse or promote products
14 * derived from this software without specific prior written permission.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
17 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
20 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28using System;
29using System.Collections.Generic;
30using System.IO;
31using System.Runtime.InteropServices;
32using OpenSim.Region.Physics.Manager;
33using PrimMesher;
34using OpenMetaverse;
35
36namespace OpenSim.Region.Physics.Meshing
37{
38 public class Mesh : IMesh
39 {
40 private Dictionary<Vertex, int> m_vertices;
41 private List<Triangle> m_triangles;
42 GCHandle m_pinnedVertexes;
43 GCHandle m_pinnedIndex;
44 IntPtr m_verticesPtr = IntPtr.Zero;
45 int m_vertexCount = 0;
46 IntPtr m_indicesPtr = IntPtr.Zero;
47 int m_indexCount = 0;
48 public float[] m_normals;
49 Vector3 _centroid;
50 int _centroidDiv;
51
52 private class vertexcomp : IEqualityComparer<Vertex>
53 {
54 public bool Equals(Vertex v1, Vertex v2)
55 {
56 if (v1.X == v2.X && v1.Y == v2.Y && v1.Z == v2.Z)
57 return true;
58 else
59 return false;
60 }
61 public int GetHashCode(Vertex v)
62 {
63 int a = v.X.GetHashCode();
64 int b = v.Y.GetHashCode();
65 int c = v.Z.GetHashCode();
66 return (a << 16) ^ (b << 8) ^ c;
67 }
68
69 }
70
71 public Mesh()
72 {
73 vertexcomp vcomp = new vertexcomp();
74
75 m_vertices = new Dictionary<Vertex, int>(vcomp);
76 m_triangles = new List<Triangle>();
77 _centroid = Vector3.Zero;
78 _centroidDiv = 0;
79 }
80
81 public Mesh Clone()
82 {
83 Mesh result = new Mesh();
84
85 foreach (Triangle t in m_triangles)
86 {
87 result.Add(new Triangle(t.v1.Clone(), t.v2.Clone(), t.v3.Clone()));
88 }
89 result._centroid = _centroid;
90 result._centroidDiv = _centroidDiv;
91 return result;
92 }
93
94 public void Add(Triangle triangle)
95 {
96 if (m_pinnedIndex.IsAllocated || m_pinnedVertexes.IsAllocated || m_indicesPtr != IntPtr.Zero || m_verticesPtr != IntPtr.Zero)
97 throw new NotSupportedException("Attempt to Add to a pinned Mesh");
98 // If a vertex of the triangle is not yet in the vertices list,
99 // add it and set its index to the current index count
100 // vertex == seems broken
101 // skip colapsed triangles
102 if ((triangle.v1.X == triangle.v2.X && triangle.v1.Y == triangle.v2.Y && triangle.v1.Z == triangle.v2.Z)
103 || (triangle.v1.X == triangle.v3.X && triangle.v1.Y == triangle.v3.Y && triangle.v1.Z == triangle.v3.Z)
104 || (triangle.v2.X == triangle.v3.X && triangle.v2.Y == triangle.v3.Y && triangle.v2.Z == triangle.v3.Z)
105 )
106 {
107 return;
108 }
109
110 if (m_vertices.Count == 0)
111 {
112 _centroidDiv = 0;
113 _centroid = Vector3.Zero;
114 }
115
116 if (!m_vertices.ContainsKey(triangle.v1))
117 {
118 m_vertices[triangle.v1] = m_vertices.Count;
119 _centroid.X += triangle.v1.X;
120 _centroid.Y += triangle.v1.Y;
121 _centroid.Z += triangle.v1.Z;
122 _centroidDiv++;
123 }
124 if (!m_vertices.ContainsKey(triangle.v2))
125 {
126 m_vertices[triangle.v2] = m_vertices.Count;
127 _centroid.X += triangle.v2.X;
128 _centroid.Y += triangle.v2.Y;
129 _centroid.Z += triangle.v2.Z;
130 _centroidDiv++;
131 }
132 if (!m_vertices.ContainsKey(triangle.v3))
133 {
134 m_vertices[triangle.v3] = m_vertices.Count;
135 _centroid.X += triangle.v3.X;
136 _centroid.Y += triangle.v3.Y;
137 _centroid.Z += triangle.v3.Z;
138 _centroidDiv++;
139 }
140 m_triangles.Add(triangle);
141 }
142
143 public Vector3 GetCentroid()
144 {
145 if (_centroidDiv > 0)
146 return new Vector3(_centroid.X / _centroidDiv, _centroid.Y / _centroidDiv, _centroid.Z / _centroidDiv);
147 else
148 return Vector3.Zero;
149 }
150
151 public void CalcNormals()
152 {
153 int iTriangles = m_triangles.Count;
154
155 this.m_normals = new float[iTriangles * 3];
156
157 int i = 0;
158 foreach (Triangle t in m_triangles)
159 {
160 float ux, uy, uz;
161 float vx, vy, vz;
162 float wx, wy, wz;
163
164 ux = t.v1.X;
165 uy = t.v1.Y;
166 uz = t.v1.Z;
167
168 vx = t.v2.X;
169 vy = t.v2.Y;
170 vz = t.v2.Z;
171
172 wx = t.v3.X;
173 wy = t.v3.Y;
174 wz = t.v3.Z;
175
176
177 // Vectors for edges
178 float e1x, e1y, e1z;
179 float e2x, e2y, e2z;
180
181 e1x = ux - vx;
182 e1y = uy - vy;
183 e1z = uz - vz;
184
185 e2x = ux - wx;
186 e2y = uy - wy;
187 e2z = uz - wz;
188
189
190 // Cross product for normal
191 float nx, ny, nz;
192 nx = e1y * e2z - e1z * e2y;
193 ny = e1z * e2x - e1x * e2z;
194 nz = e1x * e2y - e1y * e2x;
195
196 // Length
197 float l = (float)Math.Sqrt(nx * nx + ny * ny + nz * nz);
198 float lReciprocal = 1.0f / l;
199
200 // Normalized "normal"
201 //nx /= l;
202 //ny /= l;
203 //nz /= l;
204
205 m_normals[i] = nx * lReciprocal;
206 m_normals[i + 1] = ny * lReciprocal;
207 m_normals[i + 2] = nz * lReciprocal;
208
209 i += 3;
210 }
211 }
212
213 public List<Vector3> getVertexList()
214 {
215 List<Vector3> result = new List<Vector3>();
216 foreach (Vertex v in m_vertices.Keys)
217 {
218 result.Add(new Vector3(v.X, v.Y, v.Z));
219 }
220 return result;
221 }
222
223 private float[] getVertexListAsFloat()
224 {
225 if (m_vertices == null)
226 throw new NotSupportedException();
227 float[] result = new float[m_vertices.Count * 3];
228 foreach (KeyValuePair<Vertex, int> kvp in m_vertices)
229 {
230 Vertex v = kvp.Key;
231 int i = kvp.Value;
232 result[3 * i + 0] = v.X;
233 result[3 * i + 1] = v.Y;
234 result[3 * i + 2] = v.Z;
235 }
236 return result;
237 }
238
239 public float[] getVertexListAsFloatLocked()
240 {
241 if (m_pinnedVertexes.IsAllocated)
242 return (float[])(m_pinnedVertexes.Target);
243
244 float[] result = getVertexListAsFloat();
245 m_pinnedVertexes = GCHandle.Alloc(result, GCHandleType.Pinned);
246 // Inform the garbage collector of this unmanaged allocation so it can schedule
247 // the next GC round more intelligently
248 GC.AddMemoryPressure(Buffer.ByteLength(result));
249
250 return result;
251 }
252
253 public void getVertexListAsPtrToFloatArray(out IntPtr vertices, out int vertexStride, out int vertexCount)
254 {
255 // A vertex is 3 floats
256 vertexStride = 3 * sizeof(float);
257
258 // If there isn't an unmanaged array allocated yet, do it now
259 if (m_verticesPtr == IntPtr.Zero)
260 {
261 float[] vertexList = getVertexListAsFloat();
262 // Each vertex is 3 elements (floats)
263 m_vertexCount = vertexList.Length / 3;
264 int byteCount = m_vertexCount * vertexStride;
265 m_verticesPtr = System.Runtime.InteropServices.Marshal.AllocHGlobal(byteCount);
266 System.Runtime.InteropServices.Marshal.Copy(vertexList, 0, m_verticesPtr, m_vertexCount * 3);
267 }
268 vertices = m_verticesPtr;
269 vertexCount = m_vertexCount;
270 }
271
272 public int[] getIndexListAsInt()
273 {
274 if (m_triangles == null)
275 throw new NotSupportedException();
276 int[] result = new int[m_triangles.Count * 3];
277 for (int i = 0; i < m_triangles.Count; i++)
278 {
279 Triangle t = m_triangles[i];
280 result[3 * i + 0] = m_vertices[t.v1];
281 result[3 * i + 1] = m_vertices[t.v2];
282 result[3 * i + 2] = m_vertices[t.v3];
283 }
284 return result;
285 }
286
287 /// <summary>
288 /// creates a list of index values that defines triangle faces. THIS METHOD FREES ALL NON-PINNED MESH DATA
289 /// </summary>
290 /// <returns></returns>
291 public int[] getIndexListAsIntLocked()
292 {
293 if (m_pinnedIndex.IsAllocated)
294 return (int[])(m_pinnedIndex.Target);
295
296 int[] result = getIndexListAsInt();
297 m_pinnedIndex = GCHandle.Alloc(result, GCHandleType.Pinned);
298 // Inform the garbage collector of this unmanaged allocation so it can schedule
299 // the next GC round more intelligently
300 GC.AddMemoryPressure(Buffer.ByteLength(result));
301
302 return result;
303 }
304
305 public void getIndexListAsPtrToIntArray(out IntPtr indices, out int triStride, out int indexCount)
306 {
307 // If there isn't an unmanaged array allocated yet, do it now
308 if (m_indicesPtr == IntPtr.Zero)
309 {
310 int[] indexList = getIndexListAsInt();
311 m_indexCount = indexList.Length;
312 int byteCount = m_indexCount * sizeof(int);
313 m_indicesPtr = System.Runtime.InteropServices.Marshal.AllocHGlobal(byteCount);
314 System.Runtime.InteropServices.Marshal.Copy(indexList, 0, m_indicesPtr, m_indexCount);
315 }
316 // A triangle is 3 ints (indices)
317 triStride = 3 * sizeof(int);
318 indices = m_indicesPtr;
319 indexCount = m_indexCount;
320 }
321
322 public void releasePinned()
323 {
324 if (m_pinnedVertexes.IsAllocated)
325 m_pinnedVertexes.Free();
326 if (m_pinnedIndex.IsAllocated)
327 m_pinnedIndex.Free();
328 if (m_verticesPtr != IntPtr.Zero)
329 {
330 System.Runtime.InteropServices.Marshal.FreeHGlobal(m_verticesPtr);
331 m_verticesPtr = IntPtr.Zero;
332 }
333 if (m_indicesPtr != IntPtr.Zero)
334 {
335 System.Runtime.InteropServices.Marshal.FreeHGlobal(m_indicesPtr);
336 m_indicesPtr = IntPtr.Zero;
337 }
338 }
339
340 /// <summary>
341 /// frees up the source mesh data to minimize memory - call this method after calling get*Locked() functions
342 /// </summary>
343 public void releaseSourceMeshData()
344 {
345 m_triangles = null;
346 m_vertices = null;
347 }
348
349 public void Append(IMesh newMesh)
350 {
351 if (m_pinnedIndex.IsAllocated || m_pinnedVertexes.IsAllocated || m_indicesPtr != IntPtr.Zero || m_verticesPtr != IntPtr.Zero)
352 throw new NotSupportedException("Attempt to Append to a pinned Mesh");
353
354 if (!(newMesh is Mesh))
355 return;
356
357 foreach (Triangle t in ((Mesh)newMesh).m_triangles)
358 Add(t);
359 }
360
361 // Do a linear transformation of mesh.
362 public void TransformLinear(float[,] matrix, float[] offset)
363 {
364 if (m_pinnedIndex.IsAllocated || m_pinnedVertexes.IsAllocated || m_indicesPtr != IntPtr.Zero || m_verticesPtr != IntPtr.Zero)
365 throw new NotSupportedException("Attempt to TransformLinear a pinned Mesh");
366
367 foreach (Vertex v in m_vertices.Keys)
368 {
369 if (v == null)
370 continue;
371 float x, y, z;
372 x = v.X*matrix[0, 0] + v.Y*matrix[1, 0] + v.Z*matrix[2, 0];
373 y = v.X*matrix[0, 1] + v.Y*matrix[1, 1] + v.Z*matrix[2, 1];
374 z = v.X*matrix[0, 2] + v.Y*matrix[1, 2] + v.Z*matrix[2, 2];
375 v.X = x + offset[0];
376 v.Y = y + offset[1];
377 v.Z = z + offset[2];
378 }
379 }
380
381 public void DumpRaw(String path, String name, String title)
382 {
383 if (path == null)
384 return;
385 String fileName = name + "_" + title + ".raw";
386 String completePath = System.IO.Path.Combine(path, fileName);
387 StreamWriter sw = new StreamWriter(completePath);
388 foreach (Triangle t in m_triangles)
389 {
390 String s = t.ToStringRaw();
391 sw.WriteLine(s);
392 }
393 sw.Close();
394 }
395
396 public void TrimExcess()
397 {
398 m_triangles.TrimExcess();
399 }
400 }
401}
diff --git a/OpenSim/Region/Physics/UbitMeshing/Meshmerizer.cs b/OpenSim/Region/Physics/UbitMeshing/Meshmerizer.cs
new file mode 100644
index 0000000..f002bba
--- /dev/null
+++ b/OpenSim/Region/Physics/UbitMeshing/Meshmerizer.cs
@@ -0,0 +1,1026 @@
1/*
2 * Copyright (c) Contributors, http://opensimulator.org/
3 * See CONTRIBUTORS.TXT for a full list of copyright holders.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 * * Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * * Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
12 * * Neither the name of the OpenSimulator Project nor the
13 * names of its contributors may be used to endorse or promote products
14 * derived from this software without specific prior written permission.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
17 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
20 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27//#define SPAM
28
29using System;
30using System.Collections.Generic;
31using OpenSim.Framework;
32using OpenSim.Region.Physics.Manager;
33using OpenMetaverse;
34using OpenMetaverse.StructuredData;
35using System.Drawing;
36using System.Drawing.Imaging;
37using System.IO.Compression;
38using PrimMesher;
39using log4net;
40using Nini.Config;
41using System.Reflection;
42using System.IO;
43using ComponentAce.Compression.Libs.zlib;
44using OpenSim.Region.Physics.ConvexDecompositionDotNet;
45
46namespace OpenSim.Region.Physics.Meshing
47{
48 public class MeshmerizerPlugin : IMeshingPlugin
49 {
50 public MeshmerizerPlugin()
51 {
52 }
53
54 public string GetName()
55 {
56 return "UbitMeshmerizer";
57 }
58
59 public IMesher GetMesher(IConfigSource config)
60 {
61 return new Meshmerizer(config);
62 }
63 }
64
65 public class Meshmerizer : IMesher
66 {
67 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
68
69 // Setting baseDir to a path will enable the dumping of raw files
70 // raw files can be imported by blender so a visual inspection of the results can be done
71#if SPAM
72 const string baseDir = "rawFiles";
73#else
74 private const string baseDir = null; //"rawFiles";
75#endif
76
77 private bool cacheSculptMaps = true;
78 private bool cacheSculptAlphaMaps = true;
79
80 private string decodedSculptMapPath = null;
81 private bool useMeshiesPhysicsMesh = false;
82
83 private float minSizeForComplexMesh = 0.2f; // prims with all dimensions smaller than this will have a bounding box mesh
84
85 private Dictionary<ulong, Mesh> m_uniqueMeshes = new Dictionary<ulong, Mesh>();
86
87 public Meshmerizer(IConfigSource config)
88 {
89 IConfig start_config = config.Configs["Startup"];
90 IConfig mesh_config = config.Configs["Mesh"];
91
92 decodedSculptMapPath = start_config.GetString("DecodedSculptMapPath","j2kDecodeCache");
93
94 cacheSculptMaps = start_config.GetBoolean("CacheSculptMaps", cacheSculptMaps);
95
96 if (Environment.OSVersion.Platform == PlatformID.Unix)
97 {
98 cacheSculptAlphaMaps = false;
99 }
100 else
101 cacheSculptAlphaMaps = cacheSculptMaps;
102
103 if(mesh_config != null)
104 useMeshiesPhysicsMesh = mesh_config.GetBoolean("UseMeshiesPhysicsMesh", useMeshiesPhysicsMesh);
105
106 try
107 {
108 if (!Directory.Exists(decodedSculptMapPath))
109 Directory.CreateDirectory(decodedSculptMapPath);
110 }
111 catch (Exception e)
112 {
113 m_log.WarnFormat("[SCULPT]: Unable to create {0} directory: ", decodedSculptMapPath, e.Message);
114 }
115 }
116
117 /// <summary>
118 /// creates a simple box mesh of the specified size. This mesh is of very low vertex count and may
119 /// be useful as a backup proxy when level of detail is not needed or when more complex meshes fail
120 /// for some reason
121 /// </summary>
122 /// <param name="minX"></param>
123 /// <param name="maxX"></param>
124 /// <param name="minY"></param>
125 /// <param name="maxY"></param>
126 /// <param name="minZ"></param>
127 /// <param name="maxZ"></param>
128 /// <returns></returns>
129 private static Mesh CreateSimpleBoxMesh(float minX, float maxX, float minY, float maxY, float minZ, float maxZ)
130 {
131 Mesh box = new Mesh();
132 List<Vertex> vertices = new List<Vertex>();
133 // bottom
134
135 vertices.Add(new Vertex(minX, maxY, minZ));
136 vertices.Add(new Vertex(maxX, maxY, minZ));
137 vertices.Add(new Vertex(maxX, minY, minZ));
138 vertices.Add(new Vertex(minX, minY, minZ));
139
140 box.Add(new Triangle(vertices[0], vertices[1], vertices[2]));
141 box.Add(new Triangle(vertices[0], vertices[2], vertices[3]));
142
143 // top
144
145 vertices.Add(new Vertex(maxX, maxY, maxZ));
146 vertices.Add(new Vertex(minX, maxY, maxZ));
147 vertices.Add(new Vertex(minX, minY, maxZ));
148 vertices.Add(new Vertex(maxX, minY, maxZ));
149
150 box.Add(new Triangle(vertices[4], vertices[5], vertices[6]));
151 box.Add(new Triangle(vertices[4], vertices[6], vertices[7]));
152
153 // sides
154
155 box.Add(new Triangle(vertices[5], vertices[0], vertices[3]));
156 box.Add(new Triangle(vertices[5], vertices[3], vertices[6]));
157
158 box.Add(new Triangle(vertices[1], vertices[0], vertices[5]));
159 box.Add(new Triangle(vertices[1], vertices[5], vertices[4]));
160
161 box.Add(new Triangle(vertices[7], vertices[1], vertices[4]));
162 box.Add(new Triangle(vertices[7], vertices[2], vertices[1]));
163
164 box.Add(new Triangle(vertices[3], vertices[2], vertices[7]));
165 box.Add(new Triangle(vertices[3], vertices[7], vertices[6]));
166
167 return box;
168 }
169
170 /// <summary>
171 /// Creates a simple bounding box mesh for a complex input mesh
172 /// </summary>
173 /// <param name="meshIn"></param>
174 /// <returns></returns>
175 private static Mesh CreateBoundingBoxMesh(Mesh meshIn)
176 {
177 float minX = float.MaxValue;
178 float maxX = float.MinValue;
179 float minY = float.MaxValue;
180 float maxY = float.MinValue;
181 float minZ = float.MaxValue;
182 float maxZ = float.MinValue;
183
184 foreach (Vector3 v in meshIn.getVertexList())
185 {
186 if (v.X < minX) minX = v.X;
187 if (v.Y < minY) minY = v.Y;
188 if (v.Z < minZ) minZ = v.Z;
189
190 if (v.X > maxX) maxX = v.X;
191 if (v.Y > maxY) maxY = v.Y;
192 if (v.Z > maxZ) maxZ = v.Z;
193 }
194
195 return CreateSimpleBoxMesh(minX, maxX, minY, maxY, minZ, maxZ);
196 }
197
198 private void ReportPrimError(string message, string primName, PrimMesh primMesh)
199 {
200 m_log.Error(message);
201 m_log.Error("\nPrim Name: " + primName);
202 m_log.Error("****** PrimMesh Parameters ******\n" + primMesh.ParamsToDisplayString());
203 }
204
205 /// <summary>
206 /// Add a submesh to an existing list of coords and faces.
207 /// </summary>
208 /// <param name="subMeshData"></param>
209 /// <param name="size">Size of entire object</param>
210 /// <param name="coords"></param>
211 /// <param name="faces"></param>
212 private void AddSubMesh(OSDMap subMeshData, Vector3 size, List<Coord> coords, List<Face> faces)
213 {
214 // Console.WriteLine("subMeshMap for {0} - {1}", primName, Util.GetFormattedXml((OSD)subMeshMap));
215
216 // As per http://wiki.secondlife.com/wiki/Mesh/Mesh_Asset_Format, some Mesh Level
217 // of Detail Blocks (maps) contain just a NoGeometry key to signal there is no
218 // geometry for this submesh.
219 if (subMeshData.ContainsKey("NoGeometry") && ((OSDBoolean)subMeshData["NoGeometry"]))
220 return;
221
222 OpenMetaverse.Vector3 posMax;
223 OpenMetaverse.Vector3 posMin;
224 if (subMeshData.ContainsKey("PositionDomain"))
225 {
226 posMax = ((OSDMap)subMeshData["PositionDomain"])["Max"].AsVector3();
227 posMin = ((OSDMap)subMeshData["PositionDomain"])["Min"].AsVector3();
228 }
229 else
230 {
231 posMax = new Vector3(0.5f, 0.5f, 0.5f);
232 posMin = new Vector3(-0.5f, -0.5f, -0.5f);
233 }
234
235 ushort faceIndexOffset = (ushort)coords.Count;
236
237 byte[] posBytes = subMeshData["Position"].AsBinary();
238 for (int i = 0; i < posBytes.Length; i += 6)
239 {
240 ushort uX = Utils.BytesToUInt16(posBytes, i);
241 ushort uY = Utils.BytesToUInt16(posBytes, i + 2);
242 ushort uZ = Utils.BytesToUInt16(posBytes, i + 4);
243
244 Coord c = new Coord(
245 Utils.UInt16ToFloat(uX, posMin.X, posMax.X) * size.X,
246 Utils.UInt16ToFloat(uY, posMin.Y, posMax.Y) * size.Y,
247 Utils.UInt16ToFloat(uZ, posMin.Z, posMax.Z) * size.Z);
248
249 coords.Add(c);
250 }
251
252 byte[] triangleBytes = subMeshData["TriangleList"].AsBinary();
253 for (int i = 0; i < triangleBytes.Length; i += 6)
254 {
255 ushort v1 = (ushort)(Utils.BytesToUInt16(triangleBytes, i) + faceIndexOffset);
256 ushort v2 = (ushort)(Utils.BytesToUInt16(triangleBytes, i + 2) + faceIndexOffset);
257 ushort v3 = (ushort)(Utils.BytesToUInt16(triangleBytes, i + 4) + faceIndexOffset);
258 Face f = new Face(v1, v2, v3);
259 faces.Add(f);
260 }
261 }
262
263 /// <summary>
264 /// Create a physics mesh from data that comes with the prim. The actual data used depends on the prim type.
265 /// </summary>
266 /// <param name="primName"></param>
267 /// <param name="primShape"></param>
268 /// <param name="size"></param>
269 /// <param name="lod"></param>
270 /// <returns></returns>
271 private Mesh CreateMeshFromPrimMesher(string primName, PrimitiveBaseShape primShape, Vector3 size, float lod, bool convex)
272 {
273// m_log.DebugFormat(
274// "[MESH]: Creating physics proxy for {0}, shape {1}",
275// primName, (OpenMetaverse.SculptType)primShape.SculptType);
276
277 List<Coord> coords;
278 List<Face> faces;
279
280 if (primShape.SculptEntry)
281 {
282 if (((OpenMetaverse.SculptType)primShape.SculptType) == SculptType.Mesh)
283 {
284 if (!useMeshiesPhysicsMesh)
285 return null;
286
287 if (!GenerateCoordsAndFacesFromPrimMeshData(primName, primShape, size, out coords, out faces, convex))
288 return null;
289 }
290 else
291 {
292 if (!GenerateCoordsAndFacesFromPrimSculptData(primName, primShape, size, lod, out coords, out faces))
293 return null;
294 }
295 }
296 else
297 {
298 if (!GenerateCoordsAndFacesFromPrimShapeData(primName, primShape, size, lod, out coords, out faces))
299 return null;
300 }
301
302 primShape.SculptData = Utils.EmptyBytes;
303
304 int numCoords = coords.Count;
305 int numFaces = faces.Count;
306
307 Mesh mesh = new Mesh();
308 // Add the corresponding triangles to the mesh
309 for (int i = 0; i < numFaces; i++)
310 {
311 Face f = faces[i];
312 mesh.Add(new Triangle(coords[f.v1].X, coords[f.v1].Y, coords[f.v1].Z,
313 coords[f.v2].X, coords[f.v2].Y, coords[f.v2].Z,
314 coords[f.v3].X, coords[f.v3].Y, coords[f.v3].Z));
315 }
316
317 return mesh;
318 }
319
320 /// <summary>
321 /// Generate the co-ords and faces necessary to construct a mesh from the mesh data the accompanies a prim.
322 /// </summary>
323 /// <param name="primName"></param>
324 /// <param name="primShape"></param>
325 /// <param name="size"></param>
326 /// <param name="coords">Coords are added to this list by the method.</param>
327 /// <param name="faces">Faces are added to this list by the method.</param>
328 /// <returns>true if coords and faces were successfully generated, false if not</returns>
329 private bool GenerateCoordsAndFacesFromPrimMeshData(
330 string primName, PrimitiveBaseShape primShape, Vector3 size, out List<Coord> coords, out List<Face> faces, bool convex)
331 {
332// m_log.DebugFormat("[MESH]: experimental mesh proxy generation for {0}", primName);
333
334 bool usemesh = false;
335
336 coords = new List<Coord>();
337 faces = new List<Face>();
338 OSD meshOsd = null;
339
340 if (primShape.SculptData.Length <= 0)
341 {
342 m_log.InfoFormat("[MESH]: asset data for {0} is zero length", primName);
343 return false;
344 }
345
346 long start = 0;
347 using (MemoryStream data = new MemoryStream(primShape.SculptData))
348 {
349 try
350 {
351 OSD osd = OSDParser.DeserializeLLSDBinary(data);
352 if (osd is OSDMap)
353 meshOsd = (OSDMap)osd;
354 else
355 {
356 m_log.Warn("[Mesh}: unable to cast mesh asset to OSDMap");
357 return false;
358 }
359 }
360 catch (Exception e)
361 {
362 m_log.Error("[MESH]: Exception deserializing mesh asset header:" + e.ToString());
363 }
364
365 start = data.Position;
366 }
367
368 if (meshOsd is OSDMap)
369 {
370 OSDMap physicsParms = null;
371 OSDMap map = (OSDMap)meshOsd;
372
373 if (!convex)
374 {
375 if (map.ContainsKey("physics_shape"))
376 physicsParms = (OSDMap)map["physics_shape"]; // old asset format
377 else if (map.ContainsKey("physics_mesh"))
378 physicsParms = (OSDMap)map["physics_mesh"]; // new asset format
379
380 if (physicsParms != null)
381 usemesh = true;
382 }
383
384 if(!usemesh && (map.ContainsKey("physics_convex")))
385 physicsParms = (OSDMap)map["physics_convex"];
386
387
388 if (physicsParms == null)
389 {
390 m_log.Warn("[MESH]: unknown mesh type");
391 return false;
392 }
393
394 int physOffset = physicsParms["offset"].AsInteger() + (int)start;
395 int physSize = physicsParms["size"].AsInteger();
396
397 if (physOffset < 0 || physSize == 0)
398 return false; // no mesh data in asset
399
400 OSD decodedMeshOsd = new OSD();
401 byte[] meshBytes = new byte[physSize];
402 System.Buffer.BlockCopy(primShape.SculptData, physOffset, meshBytes, 0, physSize);
403// byte[] decompressed = new byte[physSize * 5];
404 try
405 {
406 using (MemoryStream inMs = new MemoryStream(meshBytes))
407 {
408 using (MemoryStream outMs = new MemoryStream())
409 {
410 using (ZOutputStream zOut = new ZOutputStream(outMs))
411 {
412 byte[] readBuffer = new byte[2048];
413 int readLen = 0;
414 while ((readLen = inMs.Read(readBuffer, 0, readBuffer.Length)) > 0)
415 {
416 zOut.Write(readBuffer, 0, readLen);
417 }
418 zOut.Flush();
419 outMs.Seek(0, SeekOrigin.Begin);
420
421 byte[] decompressedBuf = outMs.GetBuffer();
422
423 decodedMeshOsd = OSDParser.DeserializeLLSDBinary(decompressedBuf);
424 }
425 }
426 }
427 }
428 catch (Exception e)
429 {
430 m_log.Error("[MESH]: exception decoding physical mesh: " + e.ToString());
431 return false;
432 }
433
434 if (usemesh)
435 {
436 OSDArray decodedMeshOsdArray = null;
437
438 // physics_shape is an array of OSDMaps, one for each submesh
439 if (decodedMeshOsd is OSDArray)
440 {
441 // Console.WriteLine("decodedMeshOsd for {0} - {1}", primName, Util.GetFormattedXml(decodedMeshOsd));
442
443 decodedMeshOsdArray = (OSDArray)decodedMeshOsd;
444 foreach (OSD subMeshOsd in decodedMeshOsdArray)
445 {
446 if (subMeshOsd is OSDMap)
447 AddSubMesh(subMeshOsd as OSDMap, size, coords, faces);
448 }
449 }
450 }
451 else
452 {
453 OSDMap cmap = (OSDMap)decodedMeshOsd;
454 if (cmap == null)
455 return false;
456
457 byte[] data;
458
459 List<float3> vs = new List<float3>();
460 PHullResult hullr = new PHullResult();
461 float3 f3;
462 Coord c;
463 Face f;
464 Vector3 range;
465 Vector3 min;
466
467 const float invMaxU16 = 1.0f / 65535f;
468 int t1;
469 int t2;
470 int t3;
471 int i;
472 int nverts;
473 int nindexs;
474
475 if (cmap.ContainsKey("Max"))
476 range = cmap["Max"].AsVector3();
477 else
478 range = new Vector3(0.5f, 0.5f, 0.5f);
479
480 if (cmap.ContainsKey("Min"))
481 min = cmap["Min"].AsVector3();
482 else
483 min = new Vector3(-0.5f, -0.5f, -0.5f);
484
485 range = range - min;
486 range *= invMaxU16;
487
488 if (!convex && cmap.ContainsKey("HullList") && cmap.ContainsKey("Positions"))
489 {
490 List<int> hsizes = new List<int>();
491 int totalpoints = 0;
492 data = cmap["HullList"].AsBinary();
493 for (i = 0; i < data.Length; i++)
494 {
495 t1 = data[i];
496 if (t1 == 0)
497 t1 = 256;
498 totalpoints += t1;
499 hsizes.Add(t1);
500 }
501
502 data = cmap["Positions"].AsBinary();
503 int ptr = 0;
504 int vertsoffset = 0;
505
506 if (totalpoints == data.Length / 6) // 2 bytes per coord, 3 coords per point
507 {
508 foreach (int hullsize in hsizes)
509 {
510 for (i = 0; i < hullsize; i++ )
511 {
512 t1 = data[ptr++];
513 t1 += data[ptr++] << 8;
514 t2 = data[ptr++];
515 t2 += data[ptr++] << 8;
516 t3 = data[ptr++];
517 t3 += data[ptr++] << 8;
518
519 f3 = new float3((t1 * range.X + min.X) * size.X,
520 (t2 * range.Y + min.Y) * size.Y,
521 (t3 * range.Z + min.Z) * size.Z);
522 vs.Add(f3);
523 }
524
525 if(hullsize <3)
526 {
527 vs.Clear();
528 continue;
529 }
530
531 if (hullsize <5)
532 {
533 foreach (float3 point in vs)
534 {
535 c.X = point.x;
536 c.Y = point.y;
537 c.Z = point.z;
538 coords.Add(c);
539 }
540 f = new Face(vertsoffset, vertsoffset + 1, vertsoffset + 2);
541 faces.Add(f);
542
543 if (hullsize == 4)
544 {
545 // not sure about orientation..
546 f = new Face(vertsoffset, vertsoffset + 2, vertsoffset + 3);
547 faces.Add(f);
548 f = new Face(vertsoffset, vertsoffset + 3, vertsoffset + 1);
549 faces.Add(f);
550 f = new Face(vertsoffset + 3, vertsoffset + 2, vertsoffset + 1);
551 faces.Add(f);
552 }
553 vertsoffset += vs.Count;
554 vs.Clear();
555 continue;
556 }
557
558 if (!HullUtils.ComputeHull(vs, ref hullr, 0, 0.0f))
559 {
560 vs.Clear();
561 continue;
562 }
563
564 nverts = hullr.Vertices.Count;
565 nindexs = hullr.Indices.Count;
566
567 if (nindexs % 3 != 0)
568 {
569 vs.Clear();
570 continue;
571 }
572
573 for (i = 0; i < nverts; i++)
574 {
575 c.X = hullr.Vertices[i].x;
576 c.Y = hullr.Vertices[i].y;
577 c.Z = hullr.Vertices[i].z;
578 coords.Add(c);
579 }
580
581 for (i = 0; i < nindexs; i += 3)
582 {
583 t1 = hullr.Indices[i];
584 if (t1 > nverts)
585 break;
586 t2 = hullr.Indices[i + 1];
587 if (t2 > nverts)
588 break;
589 t3 = hullr.Indices[i + 2];
590 if (t3 > nverts)
591 break;
592 f = new Face(vertsoffset + t1, vertsoffset + t2, vertsoffset + t3);
593 faces.Add(f);
594 }
595 vertsoffset += nverts;
596 vs.Clear();
597 }
598 }
599 if (coords.Count > 0 && faces.Count > 0)
600 return true;
601 }
602
603 vs.Clear();
604
605 if (cmap.ContainsKey("BoundingVerts"))
606 {
607 data = cmap["BoundingVerts"].AsBinary();
608
609 for (i = 0; i < data.Length; )
610 {
611 t1 = data[i++];
612 t1 += data[i++] << 8;
613 t2 = data[i++];
614 t2 += data[i++] << 8;
615 t3 = data[i++];
616 t3 += data[i++] << 8;
617
618 f3 = new float3((t1 * range.X + min.X) * size.X,
619 (t2 * range.Y + min.Y) * size.Y,
620 (t3 * range.Z + min.Z) * size.Z);
621 vs.Add(f3);
622 }
623
624 if (vs.Count < 3)
625 {
626 vs.Clear();
627 return false;
628 }
629
630 if (vs.Count < 5)
631 {
632 foreach (float3 point in vs)
633 {
634 c.X = point.x;
635 c.Y = point.y;
636 c.Z = point.z;
637 coords.Add(c);
638 }
639 f = new Face(0, 1, 2);
640 faces.Add(f);
641
642 if (vs.Count == 4)
643 {
644 f = new Face(0, 2, 3);
645 faces.Add(f);
646 f = new Face(0, 3, 1);
647 faces.Add(f);
648 f = new Face( 3, 2, 1);
649 faces.Add(f);
650 }
651 vs.Clear();
652 return true;
653 }
654
655 if (!HullUtils.ComputeHull(vs, ref hullr, 0, 0.0f))
656 return false;
657
658 nverts = hullr.Vertices.Count;
659 nindexs = hullr.Indices.Count;
660
661 if (nindexs % 3 != 0)
662 return false;
663
664 for (i = 0; i < nverts; i++)
665 {
666 c.X = hullr.Vertices[i].x;
667 c.Y = hullr.Vertices[i].y;
668 c.Z = hullr.Vertices[i].z;
669 coords.Add(c);
670 }
671 for (i = 0; i < nindexs; i += 3)
672 {
673 t1 = hullr.Indices[i];
674 if (t1 > nverts)
675 break;
676 t2 = hullr.Indices[i + 1];
677 if (t2 > nverts)
678 break;
679 t3 = hullr.Indices[i + 2];
680 if (t3 > nverts)
681 break;
682 f = new Face(t1, t2, t3);
683 faces.Add(f);
684 }
685
686 if (coords.Count > 0 && faces.Count > 0)
687 return true;
688 }
689 else
690 return false;
691 }
692 }
693
694 return true;
695 }
696
697 /// <summary>
698 /// Generate the co-ords and faces necessary to construct a mesh from the sculpt data the accompanies a prim.
699 /// </summary>
700 /// <param name="primName"></param>
701 /// <param name="primShape"></param>
702 /// <param name="size"></param>
703 /// <param name="lod"></param>
704 /// <param name="coords">Coords are added to this list by the method.</param>
705 /// <param name="faces">Faces are added to this list by the method.</param>
706 /// <returns>true if coords and faces were successfully generated, false if not</returns>
707 private bool GenerateCoordsAndFacesFromPrimSculptData(
708 string primName, PrimitiveBaseShape primShape, Vector3 size, float lod, out List<Coord> coords, out List<Face> faces)
709 {
710 coords = new List<Coord>();
711 faces = new List<Face>();
712 PrimMesher.SculptMesh sculptMesh;
713 Image idata = null;
714 string decodedSculptFileName = "";
715
716 if (cacheSculptMaps && primShape.SculptTexture != UUID.Zero)
717 {
718 decodedSculptFileName = System.IO.Path.Combine(decodedSculptMapPath, "smap_" + primShape.SculptTexture.ToString());
719 try
720 {
721 if (File.Exists(decodedSculptFileName))
722 {
723 idata = Image.FromFile(decodedSculptFileName);
724 }
725 }
726 catch (Exception e)
727 {
728 m_log.Error("[SCULPT]: unable to load cached sculpt map " + decodedSculptFileName + " " + e.Message);
729
730 }
731 //if (idata != null)
732 // m_log.Debug("[SCULPT]: loaded cached map asset for map ID: " + primShape.SculptTexture.ToString());
733 }
734
735 if (idata == null)
736 {
737 if (primShape.SculptData == null || primShape.SculptData.Length == 0)
738 return false;
739
740 try
741 {
742 OpenMetaverse.Imaging.ManagedImage unusedData;
743 OpenMetaverse.Imaging.OpenJPEG.DecodeToImage(primShape.SculptData, out unusedData, out idata);
744
745 if (idata == null)
746 {
747 // In some cases it seems that the decode can return a null bitmap without throwing
748 // an exception
749 m_log.WarnFormat("[PHYSICS]: OpenJPEG decoded sculpt data for {0} to a null bitmap. Ignoring.", primName);
750
751 return false;
752 }
753
754 unusedData = null;
755
756 //idata = CSJ2K.J2kImage.FromBytes(primShape.SculptData);
757
758 if (cacheSculptMaps && (cacheSculptAlphaMaps || (((ImageFlags)(idata.Flags) & ImageFlags.HasAlpha) ==0)))
759 // don't cache images with alpha channel in linux since mono can't load them correctly)
760 {
761 try { idata.Save(decodedSculptFileName, ImageFormat.MemoryBmp); }
762 catch (Exception e) { m_log.Error("[SCULPT]: unable to cache sculpt map " + decodedSculptFileName + " " + e.Message); }
763 }
764 }
765 catch (DllNotFoundException)
766 {
767 m_log.Error("[PHYSICS]: OpenJpeg is not installed correctly on this system. Physics Proxy generation failed. Often times this is because of an old version of GLIBC. You must have version 2.4 or above!");
768 return false;
769 }
770 catch (IndexOutOfRangeException)
771 {
772 m_log.Error("[PHYSICS]: OpenJpeg was unable to decode this. Physics Proxy generation failed");
773 return false;
774 }
775 catch (Exception ex)
776 {
777 m_log.Error("[PHYSICS]: Unable to generate a Sculpty physics proxy. Sculpty texture decode failed: " + ex.Message);
778 return false;
779 }
780 }
781
782 PrimMesher.SculptMesh.SculptType sculptType;
783 switch ((OpenMetaverse.SculptType)primShape.SculptType)
784 {
785 case OpenMetaverse.SculptType.Cylinder:
786 sculptType = PrimMesher.SculptMesh.SculptType.cylinder;
787 break;
788 case OpenMetaverse.SculptType.Plane:
789 sculptType = PrimMesher.SculptMesh.SculptType.plane;
790 break;
791 case OpenMetaverse.SculptType.Torus:
792 sculptType = PrimMesher.SculptMesh.SculptType.torus;
793 break;
794 case OpenMetaverse.SculptType.Sphere:
795 sculptType = PrimMesher.SculptMesh.SculptType.sphere;
796 break;
797 default:
798 sculptType = PrimMesher.SculptMesh.SculptType.plane;
799 break;
800 }
801
802 bool mirror = ((primShape.SculptType & 128) != 0);
803 bool invert = ((primShape.SculptType & 64) != 0);
804
805 sculptMesh = new PrimMesher.SculptMesh((Bitmap)idata, sculptType, (int)lod, false, mirror, invert);
806
807 idata.Dispose();
808
809 sculptMesh.DumpRaw(baseDir, primName, "primMesh");
810
811 sculptMesh.Scale(size.X, size.Y, size.Z);
812
813 coords = sculptMesh.coords;
814 faces = sculptMesh.faces;
815
816 return true;
817 }
818
819 /// <summary>
820 /// Generate the co-ords and faces necessary to construct a mesh from the shape data the accompanies a prim.
821 /// </summary>
822 /// <param name="primName"></param>
823 /// <param name="primShape"></param>
824 /// <param name="size"></param>
825 /// <param name="coords">Coords are added to this list by the method.</param>
826 /// <param name="faces">Faces are added to this list by the method.</param>
827 /// <returns>true if coords and faces were successfully generated, false if not</returns>
828 private bool GenerateCoordsAndFacesFromPrimShapeData(
829 string primName, PrimitiveBaseShape primShape, Vector3 size, float lod, out List<Coord> coords, out List<Face> faces)
830 {
831 PrimMesh primMesh;
832 coords = new List<Coord>();
833 faces = new List<Face>();
834
835 float pathShearX = primShape.PathShearX < 128 ? (float)primShape.PathShearX * 0.01f : (float)(primShape.PathShearX - 256) * 0.01f;
836 float pathShearY = primShape.PathShearY < 128 ? (float)primShape.PathShearY * 0.01f : (float)(primShape.PathShearY - 256) * 0.01f;
837 float pathBegin = (float)primShape.PathBegin * 2.0e-5f;
838 float pathEnd = 1.0f - (float)primShape.PathEnd * 2.0e-5f;
839 float pathScaleX = (float)(primShape.PathScaleX - 100) * 0.01f;
840 float pathScaleY = (float)(primShape.PathScaleY - 100) * 0.01f;
841
842 float profileBegin = (float)primShape.ProfileBegin * 2.0e-5f;
843 float profileEnd = 1.0f - (float)primShape.ProfileEnd * 2.0e-5f;
844 float profileHollow = (float)primShape.ProfileHollow * 2.0e-5f;
845 if (profileHollow > 0.95f)
846 profileHollow = 0.95f;
847
848 int sides = 4;
849 LevelOfDetail iLOD = (LevelOfDetail)lod;
850 if ((primShape.ProfileCurve & 0x07) == (byte)ProfileShape.EquilateralTriangle)
851 sides = 3;
852 else if ((primShape.ProfileCurve & 0x07) == (byte)ProfileShape.Circle)
853 {
854 switch (iLOD)
855 {
856 case LevelOfDetail.High: sides = 24; break;
857 case LevelOfDetail.Medium: sides = 12; break;
858 case LevelOfDetail.Low: sides = 6; break;
859 case LevelOfDetail.VeryLow: sides = 3; break;
860 default: sides = 24; break;
861 }
862 }
863 else if ((primShape.ProfileCurve & 0x07) == (byte)ProfileShape.HalfCircle)
864 { // half circle, prim is a sphere
865 switch (iLOD)
866 {
867 case LevelOfDetail.High: sides = 24; break;
868 case LevelOfDetail.Medium: sides = 12; break;
869 case LevelOfDetail.Low: sides = 6; break;
870 case LevelOfDetail.VeryLow: sides = 3; break;
871 default: sides = 24; break;
872 }
873
874 profileBegin = 0.5f * profileBegin + 0.5f;
875 profileEnd = 0.5f * profileEnd + 0.5f;
876 }
877
878 int hollowSides = sides;
879 if (primShape.HollowShape == HollowShape.Circle)
880 {
881 switch (iLOD)
882 {
883 case LevelOfDetail.High: hollowSides = 24; break;
884 case LevelOfDetail.Medium: hollowSides = 12; break;
885 case LevelOfDetail.Low: hollowSides = 6; break;
886 case LevelOfDetail.VeryLow: hollowSides = 3; break;
887 default: hollowSides = 24; break;
888 }
889 }
890 else if (primShape.HollowShape == HollowShape.Square)
891 hollowSides = 4;
892 else if (primShape.HollowShape == HollowShape.Triangle)
893 hollowSides = 3;
894
895 primMesh = new PrimMesh(sides, profileBegin, profileEnd, profileHollow, hollowSides);
896
897 if (primMesh.errorMessage != null)
898 if (primMesh.errorMessage.Length > 0)
899 m_log.Error("[ERROR] " + primMesh.errorMessage);
900
901 primMesh.topShearX = pathShearX;
902 primMesh.topShearY = pathShearY;
903 primMesh.pathCutBegin = pathBegin;
904 primMesh.pathCutEnd = pathEnd;
905
906 if (primShape.PathCurve == (byte)Extrusion.Straight || primShape.PathCurve == (byte) Extrusion.Flexible)
907 {
908 primMesh.twistBegin = primShape.PathTwistBegin * 18 / 10;
909 primMesh.twistEnd = primShape.PathTwist * 18 / 10;
910 primMesh.taperX = pathScaleX;
911 primMesh.taperY = pathScaleY;
912
913 if (profileBegin < 0.0f || profileBegin >= profileEnd || profileEnd > 1.0f)
914 {
915 ReportPrimError("*** CORRUPT PRIM!! ***", primName, primMesh);
916 if (profileBegin < 0.0f) profileBegin = 0.0f;
917 if (profileEnd > 1.0f) profileEnd = 1.0f;
918 }
919#if SPAM
920 m_log.Debug("****** PrimMesh Parameters (Linear) ******\n" + primMesh.ParamsToDisplayString());
921#endif
922 try
923 {
924 primMesh.ExtrudeLinear();
925 }
926 catch (Exception ex)
927 {
928 ReportPrimError("Extrusion failure: exception: " + ex.ToString(), primName, primMesh);
929 return false;
930 }
931 }
932 else
933 {
934 primMesh.holeSizeX = (200 - primShape.PathScaleX) * 0.01f;
935 primMesh.holeSizeY = (200 - primShape.PathScaleY) * 0.01f;
936 primMesh.radius = 0.01f * primShape.PathRadiusOffset;
937 primMesh.revolutions = 1.0f + 0.015f * primShape.PathRevolutions;
938 primMesh.skew = 0.01f * primShape.PathSkew;
939 primMesh.twistBegin = primShape.PathTwistBegin * 36 / 10;
940 primMesh.twistEnd = primShape.PathTwist * 36 / 10;
941 primMesh.taperX = primShape.PathTaperX * 0.01f;
942 primMesh.taperY = primShape.PathTaperY * 0.01f;
943
944 if (profileBegin < 0.0f || profileBegin >= profileEnd || profileEnd > 1.0f)
945 {
946 ReportPrimError("*** CORRUPT PRIM!! ***", primName, primMesh);
947 if (profileBegin < 0.0f) profileBegin = 0.0f;
948 if (profileEnd > 1.0f) profileEnd = 1.0f;
949 }
950#if SPAM
951 m_log.Debug("****** PrimMesh Parameters (Circular) ******\n" + primMesh.ParamsToDisplayString());
952#endif
953 try
954 {
955 primMesh.ExtrudeCircular();
956 }
957 catch (Exception ex)
958 {
959 ReportPrimError("Extrusion failure: exception: " + ex.ToString(), primName, primMesh);
960 return false;
961 }
962 }
963
964 primMesh.DumpRaw(baseDir, primName, "primMesh");
965
966 primMesh.Scale(size.X, size.Y, size.Z);
967
968 coords = primMesh.coords;
969 faces = primMesh.faces;
970
971 return true;
972 }
973
974 public IMesh CreateMesh(String primName, PrimitiveBaseShape primShape, Vector3 size, float lod)
975 {
976 return CreateMesh(primName, primShape, size, lod, false,false);
977 }
978
979 public IMesh CreateMesh(String primName, PrimitiveBaseShape primShape, Vector3 size, float lod, bool isPhysical)
980 {
981 return CreateMesh(primName, primShape, size, lod, false,false);
982 }
983
984 public IMesh CreateMesh(String primName, PrimitiveBaseShape primShape, Vector3 size, float lod, bool isPhysical, bool convex)
985 {
986#if SPAM
987 m_log.DebugFormat("[MESH]: Creating mesh for {0}", primName);
988#endif
989
990 Mesh mesh = null;
991 ulong key = 0;
992
993 // If this mesh has been created already, return it instead of creating another copy
994 // For large regions with 100k+ prims and hundreds of copies of each, this can save a GB or more of memory
995 key = primShape.GetMeshKey(size, lod, convex);
996 if (m_uniqueMeshes.TryGetValue(key, out mesh))
997 return mesh;
998
999 if (size.X < 0.01f) size.X = 0.01f;
1000 if (size.Y < 0.01f) size.Y = 0.01f;
1001 if (size.Z < 0.01f) size.Z = 0.01f;
1002
1003 mesh = CreateMeshFromPrimMesher(primName, primShape, size, lod,convex);
1004
1005 if (mesh != null)
1006 {
1007 if ((!isPhysical) && size.X < minSizeForComplexMesh && size.Y < minSizeForComplexMesh && size.Z < minSizeForComplexMesh)
1008 {
1009#if SPAM
1010 m_log.Debug("Meshmerizer: prim " + primName + " has a size of " + size.ToString() + " which is below threshold of " +
1011 minSizeForComplexMesh.ToString() + " - creating simple bounding box");
1012#endif
1013 mesh = CreateBoundingBoxMesh(mesh);
1014 mesh.DumpRaw(baseDir, primName, "Z extruded");
1015 }
1016
1017 // trim the vertex and triangle lists to free up memory
1018 mesh.TrimExcess();
1019
1020 m_uniqueMeshes.Add(key, mesh);
1021 }
1022
1023 return mesh;
1024 }
1025 }
1026}
diff --git a/OpenSim/Region/Physics/UbitMeshing/PrimMesher.cs b/OpenSim/Region/Physics/UbitMeshing/PrimMesher.cs
new file mode 100644
index 0000000..53022ad
--- /dev/null
+++ b/OpenSim/Region/Physics/UbitMeshing/PrimMesher.cs
@@ -0,0 +1,2284 @@
1/*
2 * Copyright (c) Contributors
3 * See CONTRIBUTORS.TXT for a full list of copyright holders.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 * * Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * * Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
12 * * Neither the name of the OpenSimulator Project nor the
13 * names of its contributors may be used to endorse or promote products
14 * derived from this software without specific prior written permission.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
17 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
20 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28using System;
29using System.Collections.Generic;
30using System.Text;
31using System.IO;
32
33namespace PrimMesher
34{
35 public struct Quat
36 {
37 /// <summary>X value</summary>
38 public float X;
39 /// <summary>Y value</summary>
40 public float Y;
41 /// <summary>Z value</summary>
42 public float Z;
43 /// <summary>W value</summary>
44 public float W;
45
46 public Quat(float x, float y, float z, float w)
47 {
48 X = x;
49 Y = y;
50 Z = z;
51 W = w;
52 }
53
54 public Quat(Coord axis, float angle)
55 {
56 axis = axis.Normalize();
57
58 angle *= 0.5f;
59 float c = (float)Math.Cos(angle);
60 float s = (float)Math.Sin(angle);
61
62 X = axis.X * s;
63 Y = axis.Y * s;
64 Z = axis.Z * s;
65 W = c;
66
67 Normalize();
68 }
69
70 public float Length()
71 {
72 return (float)Math.Sqrt(X * X + Y * Y + Z * Z + W * W);
73 }
74
75 public Quat Normalize()
76 {
77 const float MAG_THRESHOLD = 0.0000001f;
78 float mag = Length();
79
80 // Catch very small rounding errors when normalizing
81 if (mag > MAG_THRESHOLD)
82 {
83 float oomag = 1f / mag;
84 X *= oomag;
85 Y *= oomag;
86 Z *= oomag;
87 W *= oomag;
88 }
89 else
90 {
91 X = 0f;
92 Y = 0f;
93 Z = 0f;
94 W = 1f;
95 }
96
97 return this;
98 }
99
100 public static Quat operator *(Quat q1, Quat q2)
101 {
102 float x = q1.W * q2.X + q1.X * q2.W + q1.Y * q2.Z - q1.Z * q2.Y;
103 float y = q1.W * q2.Y - q1.X * q2.Z + q1.Y * q2.W + q1.Z * q2.X;
104 float z = q1.W * q2.Z + q1.X * q2.Y - q1.Y * q2.X + q1.Z * q2.W;
105 float w = q1.W * q2.W - q1.X * q2.X - q1.Y * q2.Y - q1.Z * q2.Z;
106 return new Quat(x, y, z, w);
107 }
108
109 public override string ToString()
110 {
111 return "< X: " + this.X.ToString() + ", Y: " + this.Y.ToString() + ", Z: " + this.Z.ToString() + ", W: " + this.W.ToString() + ">";
112 }
113 }
114
115 public struct Coord
116 {
117 public float X;
118 public float Y;
119 public float Z;
120
121 public Coord(float x, float y, float z)
122 {
123 this.X = x;
124 this.Y = y;
125 this.Z = z;
126 }
127
128 public float Length()
129 {
130 return (float)Math.Sqrt(this.X * this.X + this.Y * this.Y + this.Z * this.Z);
131 }
132
133 public Coord Invert()
134 {
135 this.X = -this.X;
136 this.Y = -this.Y;
137 this.Z = -this.Z;
138
139 return this;
140 }
141
142 public Coord Normalize()
143 {
144 const float MAG_THRESHOLD = 0.0000001f;
145 float mag = Length();
146
147 // Catch very small rounding errors when normalizing
148 if (mag > MAG_THRESHOLD)
149 {
150 float oomag = 1.0f / mag;
151 this.X *= oomag;
152 this.Y *= oomag;
153 this.Z *= oomag;
154 }
155 else
156 {
157 this.X = 0.0f;
158 this.Y = 0.0f;
159 this.Z = 0.0f;
160 }
161
162 return this;
163 }
164
165 public override string ToString()
166 {
167 return this.X.ToString() + " " + this.Y.ToString() + " " + this.Z.ToString();
168 }
169
170 public static Coord Cross(Coord c1, Coord c2)
171 {
172 return new Coord(
173 c1.Y * c2.Z - c2.Y * c1.Z,
174 c1.Z * c2.X - c2.Z * c1.X,
175 c1.X * c2.Y - c2.X * c1.Y
176 );
177 }
178
179 public static Coord operator +(Coord v, Coord a)
180 {
181 return new Coord(v.X + a.X, v.Y + a.Y, v.Z + a.Z);
182 }
183
184 public static Coord operator *(Coord v, Coord m)
185 {
186 return new Coord(v.X * m.X, v.Y * m.Y, v.Z * m.Z);
187 }
188
189 public static Coord operator *(Coord v, Quat q)
190 {
191 // From http://www.euclideanspace.com/maths/algebra/realNormedAlgebra/quaternions/transforms/
192
193 Coord c2 = new Coord(0.0f, 0.0f, 0.0f);
194
195 c2.X = q.W * q.W * v.X +
196 2f * q.Y * q.W * v.Z -
197 2f * q.Z * q.W * v.Y +
198 q.X * q.X * v.X +
199 2f * q.Y * q.X * v.Y +
200 2f * q.Z * q.X * v.Z -
201 q.Z * q.Z * v.X -
202 q.Y * q.Y * v.X;
203
204 c2.Y =
205 2f * q.X * q.Y * v.X +
206 q.Y * q.Y * v.Y +
207 2f * q.Z * q.Y * v.Z +
208 2f * q.W * q.Z * v.X -
209 q.Z * q.Z * v.Y +
210 q.W * q.W * v.Y -
211 2f * q.X * q.W * v.Z -
212 q.X * q.X * v.Y;
213
214 c2.Z =
215 2f * q.X * q.Z * v.X +
216 2f * q.Y * q.Z * v.Y +
217 q.Z * q.Z * v.Z -
218 2f * q.W * q.Y * v.X -
219 q.Y * q.Y * v.Z +
220 2f * q.W * q.X * v.Y -
221 q.X * q.X * v.Z +
222 q.W * q.W * v.Z;
223
224 return c2;
225 }
226 }
227
228 public struct UVCoord
229 {
230 public float U;
231 public float V;
232
233
234 public UVCoord(float u, float v)
235 {
236 this.U = u;
237 this.V = v;
238 }
239 }
240
241 public struct Face
242 {
243 public int primFace;
244
245 // vertices
246 public int v1;
247 public int v2;
248 public int v3;
249
250 //normals
251 public int n1;
252 public int n2;
253 public int n3;
254
255 // uvs
256 public int uv1;
257 public int uv2;
258 public int uv3;
259
260 public Face(int v1, int v2, int v3)
261 {
262 primFace = 0;
263
264 this.v1 = v1;
265 this.v2 = v2;
266 this.v3 = v3;
267
268 this.n1 = 0;
269 this.n2 = 0;
270 this.n3 = 0;
271
272 this.uv1 = 0;
273 this.uv2 = 0;
274 this.uv3 = 0;
275
276 }
277
278 public Face(int v1, int v2, int v3, int n1, int n2, int n3)
279 {
280 primFace = 0;
281
282 this.v1 = v1;
283 this.v2 = v2;
284 this.v3 = v3;
285
286 this.n1 = n1;
287 this.n2 = n2;
288 this.n3 = n3;
289
290 this.uv1 = 0;
291 this.uv2 = 0;
292 this.uv3 = 0;
293 }
294
295 public Coord SurfaceNormal(List<Coord> coordList)
296 {
297 Coord c1 = coordList[this.v1];
298 Coord c2 = coordList[this.v2];
299 Coord c3 = coordList[this.v3];
300
301 Coord edge1 = new Coord(c2.X - c1.X, c2.Y - c1.Y, c2.Z - c1.Z);
302 Coord edge2 = new Coord(c3.X - c1.X, c3.Y - c1.Y, c3.Z - c1.Z);
303
304 return Coord.Cross(edge1, edge2).Normalize();
305 }
306 }
307
308 public struct ViewerFace
309 {
310 public int primFaceNumber;
311
312 public Coord v1;
313 public Coord v2;
314 public Coord v3;
315
316 public int coordIndex1;
317 public int coordIndex2;
318 public int coordIndex3;
319
320 public Coord n1;
321 public Coord n2;
322 public Coord n3;
323
324 public UVCoord uv1;
325 public UVCoord uv2;
326 public UVCoord uv3;
327
328 public ViewerFace(int primFaceNumber)
329 {
330 this.primFaceNumber = primFaceNumber;
331
332 this.v1 = new Coord();
333 this.v2 = new Coord();
334 this.v3 = new Coord();
335
336 this.coordIndex1 = this.coordIndex2 = this.coordIndex3 = -1; // -1 means not assigned yet
337
338 this.n1 = new Coord();
339 this.n2 = new Coord();
340 this.n3 = new Coord();
341
342 this.uv1 = new UVCoord();
343 this.uv2 = new UVCoord();
344 this.uv3 = new UVCoord();
345 }
346
347 public void Scale(float x, float y, float z)
348 {
349 this.v1.X *= x;
350 this.v1.Y *= y;
351 this.v1.Z *= z;
352
353 this.v2.X *= x;
354 this.v2.Y *= y;
355 this.v2.Z *= z;
356
357 this.v3.X *= x;
358 this.v3.Y *= y;
359 this.v3.Z *= z;
360 }
361
362 public void AddPos(float x, float y, float z)
363 {
364 this.v1.X += x;
365 this.v2.X += x;
366 this.v3.X += x;
367
368 this.v1.Y += y;
369 this.v2.Y += y;
370 this.v3.Y += y;
371
372 this.v1.Z += z;
373 this.v2.Z += z;
374 this.v3.Z += z;
375 }
376
377 public void AddRot(Quat q)
378 {
379 this.v1 *= q;
380 this.v2 *= q;
381 this.v3 *= q;
382
383 this.n1 *= q;
384 this.n2 *= q;
385 this.n3 *= q;
386 }
387
388 public void CalcSurfaceNormal()
389 {
390
391 Coord edge1 = new Coord(this.v2.X - this.v1.X, this.v2.Y - this.v1.Y, this.v2.Z - this.v1.Z);
392 Coord edge2 = new Coord(this.v3.X - this.v1.X, this.v3.Y - this.v1.Y, this.v3.Z - this.v1.Z);
393
394 this.n1 = this.n2 = this.n3 = Coord.Cross(edge1, edge2).Normalize();
395 }
396 }
397
398 internal struct Angle
399 {
400 internal float angle;
401 internal float X;
402 internal float Y;
403
404 internal Angle(float angle, float x, float y)
405 {
406 this.angle = angle;
407 this.X = x;
408 this.Y = y;
409 }
410 }
411
412 internal class AngleList
413 {
414 private float iX, iY; // intersection point
415
416 private static Angle[] angles3 =
417 {
418 new Angle(0.0f, 1.0f, 0.0f),
419 new Angle(0.33333333333333333f, -0.5f, 0.86602540378443871f),
420 new Angle(0.66666666666666667f, -0.5f, -0.86602540378443837f),
421 new Angle(1.0f, 1.0f, 0.0f)
422 };
423
424 private static Coord[] normals3 =
425 {
426 new Coord(0.25f, 0.4330127019f, 0.0f).Normalize(),
427 new Coord(-0.5f, 0.0f, 0.0f).Normalize(),
428 new Coord(0.25f, -0.4330127019f, 0.0f).Normalize(),
429 new Coord(0.25f, 0.4330127019f, 0.0f).Normalize()
430 };
431
432 private static Angle[] angles4 =
433 {
434 new Angle(0.0f, 1.0f, 0.0f),
435 new Angle(0.25f, 0.0f, 1.0f),
436 new Angle(0.5f, -1.0f, 0.0f),
437 new Angle(0.75f, 0.0f, -1.0f),
438 new Angle(1.0f, 1.0f, 0.0f)
439 };
440
441 private static Coord[] normals4 =
442 {
443 new Coord(0.5f, 0.5f, 0.0f).Normalize(),
444 new Coord(-0.5f, 0.5f, 0.0f).Normalize(),
445 new Coord(-0.5f, -0.5f, 0.0f).Normalize(),
446 new Coord(0.5f, -0.5f, 0.0f).Normalize(),
447 new Coord(0.5f, 0.5f, 0.0f).Normalize()
448 };
449
450 private static Angle[] angles24 =
451 {
452 new Angle(0.0f, 1.0f, 0.0f),
453 new Angle(0.041666666666666664f, 0.96592582628906831f, 0.25881904510252074f),
454 new Angle(0.083333333333333329f, 0.86602540378443871f, 0.5f),
455 new Angle(0.125f, 0.70710678118654757f, 0.70710678118654746f),
456 new Angle(0.16666666666666667f, 0.5f, 0.8660254037844386f),
457 new Angle(0.20833333333333331f, 0.25881904510252096f, 0.9659258262890682f),
458 new Angle(0.25f, 0.0f, 1.0f),
459 new Angle(0.29166666666666663f, -0.25881904510252063f, 0.96592582628906831f),
460 new Angle(0.33333333333333333f, -0.5f, 0.86602540378443871f),
461 new Angle(0.375f, -0.70710678118654746f, 0.70710678118654757f),
462 new Angle(0.41666666666666663f, -0.86602540378443849f, 0.5f),
463 new Angle(0.45833333333333331f, -0.9659258262890682f, 0.25881904510252102f),
464 new Angle(0.5f, -1.0f, 0.0f),
465 new Angle(0.54166666666666663f, -0.96592582628906842f, -0.25881904510252035f),
466 new Angle(0.58333333333333326f, -0.86602540378443882f, -0.5f),
467 new Angle(0.62499999999999989f, -0.70710678118654791f, -0.70710678118654713f),
468 new Angle(0.66666666666666667f, -0.5f, -0.86602540378443837f),
469 new Angle(0.70833333333333326f, -0.25881904510252152f, -0.96592582628906809f),
470 new Angle(0.75f, 0.0f, -1.0f),
471 new Angle(0.79166666666666663f, 0.2588190451025203f, -0.96592582628906842f),
472 new Angle(0.83333333333333326f, 0.5f, -0.86602540378443904f),
473 new Angle(0.875f, 0.70710678118654735f, -0.70710678118654768f),
474 new Angle(0.91666666666666663f, 0.86602540378443837f, -0.5f),
475 new Angle(0.95833333333333326f, 0.96592582628906809f, -0.25881904510252157f),
476 new Angle(1.0f, 1.0f, 0.0f)
477 };
478
479 private Angle interpolatePoints(float newPoint, Angle p1, Angle p2)
480 {
481 float m = (newPoint - p1.angle) / (p2.angle - p1.angle);
482 return new Angle(newPoint, p1.X + m * (p2.X - p1.X), p1.Y + m * (p2.Y - p1.Y));
483 }
484
485 private void intersection(double x1, double y1, double x2, double y2, double x3, double y3, double x4, double y4)
486 { // ref: http://local.wasp.uwa.edu.au/~pbourke/geometry/lineline2d/
487 double denom = (y4 - y3) * (x2 - x1) - (x4 - x3) * (y2 - y1);
488 double uaNumerator = (x4 - x3) * (y1 - y3) - (y4 - y3) * (x1 - x3);
489
490 if (denom != 0.0)
491 {
492 double ua = uaNumerator / denom;
493 iX = (float)(x1 + ua * (x2 - x1));
494 iY = (float)(y1 + ua * (y2 - y1));
495 }
496 }
497
498 internal List<Angle> angles;
499 internal List<Coord> normals;
500
501 internal void makeAngles(int sides, float startAngle, float stopAngle)
502 {
503 angles = new List<Angle>();
504 normals = new List<Coord>();
505
506 double twoPi = System.Math.PI * 2.0;
507 float twoPiInv = 1.0f / (float)twoPi;
508
509 if (sides < 1)
510 throw new Exception("number of sides not greater than zero");
511 if (stopAngle <= startAngle)
512 throw new Exception("stopAngle not greater than startAngle");
513
514 if ((sides == 3 || sides == 4 || sides == 24))
515 {
516 startAngle *= twoPiInv;
517 stopAngle *= twoPiInv;
518
519 Angle[] sourceAngles;
520 if (sides == 3)
521 sourceAngles = angles3;
522 else if (sides == 4)
523 sourceAngles = angles4;
524 else sourceAngles = angles24;
525
526 int startAngleIndex = (int)(startAngle * sides);
527 int endAngleIndex = sourceAngles.Length - 1;
528 if (stopAngle < 1.0f)
529 endAngleIndex = (int)(stopAngle * sides) + 1;
530 if (endAngleIndex == startAngleIndex)
531 endAngleIndex++;
532
533 for (int angleIndex = startAngleIndex; angleIndex < endAngleIndex + 1; angleIndex++)
534 {
535 angles.Add(sourceAngles[angleIndex]);
536 if (sides == 3)
537 normals.Add(normals3[angleIndex]);
538 else if (sides == 4)
539 normals.Add(normals4[angleIndex]);
540 }
541
542 if (startAngle > 0.0f)
543 angles[0] = interpolatePoints(startAngle, angles[0], angles[1]);
544
545 if (stopAngle < 1.0f)
546 {
547 int lastAngleIndex = angles.Count - 1;
548 angles[lastAngleIndex] = interpolatePoints(stopAngle, angles[lastAngleIndex - 1], angles[lastAngleIndex]);
549 }
550 }
551 else
552 {
553 double stepSize = twoPi / sides;
554
555 int startStep = (int)(startAngle / stepSize);
556 double angle = stepSize * startStep;
557 int step = startStep;
558 double stopAngleTest = stopAngle;
559 if (stopAngle < twoPi)
560 {
561 stopAngleTest = stepSize * ((int)(stopAngle / stepSize) + 1);
562 if (stopAngleTest < stopAngle)
563 stopAngleTest += stepSize;
564 if (stopAngleTest > twoPi)
565 stopAngleTest = twoPi;
566 }
567
568 while (angle <= stopAngleTest)
569 {
570 Angle newAngle;
571 newAngle.angle = (float)angle;
572 newAngle.X = (float)System.Math.Cos(angle);
573 newAngle.Y = (float)System.Math.Sin(angle);
574 angles.Add(newAngle);
575 step += 1;
576 angle = stepSize * step;
577 }
578
579 if (startAngle > angles[0].angle)
580 {
581 Angle newAngle;
582 intersection(angles[0].X, angles[0].Y, angles[1].X, angles[1].Y, 0.0f, 0.0f, (float)Math.Cos(startAngle), (float)Math.Sin(startAngle));
583 newAngle.angle = startAngle;
584 newAngle.X = iX;
585 newAngle.Y = iY;
586 angles[0] = newAngle;
587 }
588
589 int index = angles.Count - 1;
590 if (stopAngle < angles[index].angle)
591 {
592 Angle newAngle;
593 intersection(angles[index - 1].X, angles[index - 1].Y, angles[index].X, angles[index].Y, 0.0f, 0.0f, (float)Math.Cos(stopAngle), (float)Math.Sin(stopAngle));
594 newAngle.angle = stopAngle;
595 newAngle.X = iX;
596 newAngle.Y = iY;
597 angles[index] = newAngle;
598 }
599 }
600 }
601 }
602
603 /// <summary>
604 /// generates a profile for extrusion
605 /// </summary>
606 internal class Profile
607 {
608 private const float twoPi = 2.0f * (float)Math.PI;
609
610 internal string errorMessage = null;
611
612 internal List<Coord> coords;
613 internal List<Face> faces;
614 internal List<Coord> vertexNormals;
615 internal List<float> us;
616 internal List<UVCoord> faceUVs;
617 internal List<int> faceNumbers;
618
619 // use these for making individual meshes for each prim face
620 internal List<int> outerCoordIndices = null;
621 internal List<int> hollowCoordIndices = null;
622 internal List<int> cut1CoordIndices = null;
623 internal List<int> cut2CoordIndices = null;
624
625 internal Coord faceNormal = new Coord(0.0f, 0.0f, 1.0f);
626 internal Coord cutNormal1 = new Coord();
627 internal Coord cutNormal2 = new Coord();
628
629 internal int numOuterVerts = 0;
630 internal int numHollowVerts = 0;
631
632 internal int outerFaceNumber = -1;
633 internal int hollowFaceNumber = -1;
634
635 internal bool calcVertexNormals = false;
636 internal int bottomFaceNumber = 0;
637 internal int numPrimFaces = 0;
638
639 internal Profile()
640 {
641 this.coords = new List<Coord>();
642 this.faces = new List<Face>();
643 this.vertexNormals = new List<Coord>();
644 this.us = new List<float>();
645 this.faceUVs = new List<UVCoord>();
646 this.faceNumbers = new List<int>();
647 }
648
649 internal Profile(int sides, float profileStart, float profileEnd, float hollow, int hollowSides, bool createFaces, bool calcVertexNormals)
650 {
651 this.calcVertexNormals = calcVertexNormals;
652 this.coords = new List<Coord>();
653 this.faces = new List<Face>();
654 this.vertexNormals = new List<Coord>();
655 this.us = new List<float>();
656 this.faceUVs = new List<UVCoord>();
657 this.faceNumbers = new List<int>();
658
659 Coord center = new Coord(0.0f, 0.0f, 0.0f);
660 //bool hasCenter = false;
661
662 List<Coord> hollowCoords = new List<Coord>();
663 List<Coord> hollowNormals = new List<Coord>();
664 List<float> hollowUs = new List<float>();
665
666 if (calcVertexNormals)
667 {
668 this.outerCoordIndices = new List<int>();
669 this.hollowCoordIndices = new List<int>();
670 this.cut1CoordIndices = new List<int>();
671 this.cut2CoordIndices = new List<int>();
672 }
673
674 bool hasHollow = (hollow > 0.0f);
675
676 bool hasProfileCut = (profileStart > 0.0f || profileEnd < 1.0f);
677
678 AngleList angles = new AngleList();
679 AngleList hollowAngles = new AngleList();
680
681 float xScale = 0.5f;
682 float yScale = 0.5f;
683 if (sides == 4) // corners of a square are sqrt(2) from center
684 {
685 xScale = 0.707f;
686 yScale = 0.707f;
687 }
688
689 float startAngle = profileStart * twoPi;
690 float stopAngle = profileEnd * twoPi;
691
692 try { angles.makeAngles(sides, startAngle, stopAngle); }
693 catch (Exception ex)
694 {
695
696 errorMessage = "makeAngles failed: Exception: " + ex.ToString()
697 + "\nsides: " + sides.ToString() + " startAngle: " + startAngle.ToString() + " stopAngle: " + stopAngle.ToString();
698
699 return;
700 }
701
702 this.numOuterVerts = angles.angles.Count;
703
704 // flag to create as few triangles as possible for 3 or 4 side profile
705 bool simpleFace = (sides < 5 && !hasHollow && !hasProfileCut);
706
707 if (hasHollow)
708 {
709 if (sides == hollowSides)
710 hollowAngles = angles;
711 else
712 {
713 try { hollowAngles.makeAngles(hollowSides, startAngle, stopAngle); }
714 catch (Exception ex)
715 {
716 errorMessage = "makeAngles failed: Exception: " + ex.ToString()
717 + "\nsides: " + sides.ToString() + " startAngle: " + startAngle.ToString() + " stopAngle: " + stopAngle.ToString();
718
719 return;
720 }
721 }
722 this.numHollowVerts = hollowAngles.angles.Count;
723 }
724 else if (!simpleFace)
725 {
726 this.coords.Add(center);
727 //hasCenter = true;
728 if (this.calcVertexNormals)
729 this.vertexNormals.Add(new Coord(0.0f, 0.0f, 1.0f));
730 this.us.Add(0.0f);
731 }
732
733 float z = 0.0f;
734
735 Angle angle;
736 Coord newVert = new Coord();
737 if (hasHollow && hollowSides != sides)
738 {
739 int numHollowAngles = hollowAngles.angles.Count;
740 for (int i = 0; i < numHollowAngles; i++)
741 {
742 angle = hollowAngles.angles[i];
743 newVert.X = hollow * xScale * angle.X;
744 newVert.Y = hollow * yScale * angle.Y;
745 newVert.Z = z;
746
747 hollowCoords.Add(newVert);
748 if (this.calcVertexNormals)
749 {
750 if (hollowSides < 5)
751 hollowNormals.Add(hollowAngles.normals[i].Invert());
752 else
753 hollowNormals.Add(new Coord(-angle.X, -angle.Y, 0.0f));
754
755 hollowUs.Add(angle.angle * hollow);
756 }
757 }
758 }
759
760 int index = 0;
761 int numAngles = angles.angles.Count;
762
763 for (int i = 0; i < numAngles; i++)
764 {
765 angle = angles.angles[i];
766 newVert.X = angle.X * xScale;
767 newVert.Y = angle.Y * yScale;
768 newVert.Z = z;
769 this.coords.Add(newVert);
770 if (this.calcVertexNormals)
771 {
772 this.outerCoordIndices.Add(this.coords.Count - 1);
773
774 if (sides < 5)
775 {
776 this.vertexNormals.Add(angles.normals[i]);
777 float u = angle.angle;
778 this.us.Add(u);
779 }
780 else
781 {
782 this.vertexNormals.Add(new Coord(angle.X, angle.Y, 0.0f));
783 this.us.Add(angle.angle);
784 }
785 }
786
787 if (hasHollow)
788 {
789 if (hollowSides == sides)
790 {
791 newVert.X *= hollow;
792 newVert.Y *= hollow;
793 newVert.Z = z;
794 hollowCoords.Add(newVert);
795 if (this.calcVertexNormals)
796 {
797 if (sides < 5)
798 {
799 hollowNormals.Add(angles.normals[i].Invert());
800 }
801
802 else
803 hollowNormals.Add(new Coord(-angle.X, -angle.Y, 0.0f));
804
805 hollowUs.Add(angle.angle * hollow);
806 }
807 }
808 }
809 else if (!simpleFace && createFaces && angle.angle > 0.0001f)
810 {
811 Face newFace = new Face();
812 newFace.v1 = 0;
813 newFace.v2 = index;
814 newFace.v3 = index + 1;
815
816 this.faces.Add(newFace);
817 }
818 index += 1;
819 }
820
821 if (hasHollow)
822 {
823 hollowCoords.Reverse();
824 if (this.calcVertexNormals)
825 {
826 hollowNormals.Reverse();
827 hollowUs.Reverse();
828 }
829
830 if (createFaces)
831 {
832 //int numOuterVerts = this.coords.Count;
833 //numOuterVerts = this.coords.Count;
834 //int numHollowVerts = hollowCoords.Count;
835 int numTotalVerts = this.numOuterVerts + this.numHollowVerts;
836
837 if (this.numOuterVerts == this.numHollowVerts)
838 {
839 Face newFace = new Face();
840
841 for (int coordIndex = 0; coordIndex < this.numOuterVerts - 1; coordIndex++)
842 {
843 newFace.v1 = coordIndex;
844 newFace.v2 = coordIndex + 1;
845 newFace.v3 = numTotalVerts - coordIndex - 1;
846 this.faces.Add(newFace);
847
848 newFace.v1 = coordIndex + 1;
849 newFace.v2 = numTotalVerts - coordIndex - 2;
850 newFace.v3 = numTotalVerts - coordIndex - 1;
851 this.faces.Add(newFace);
852 }
853 }
854 else
855 {
856 if (this.numOuterVerts < this.numHollowVerts)
857 {
858 Face newFace = new Face();
859 int j = 0; // j is the index for outer vertices
860 int maxJ = this.numOuterVerts - 1;
861 for (int i = 0; i < this.numHollowVerts; i++) // i is the index for inner vertices
862 {
863 if (j < maxJ)
864 if (angles.angles[j + 1].angle - hollowAngles.angles[i].angle < hollowAngles.angles[i].angle - angles.angles[j].angle + 0.000001f)
865 {
866 newFace.v1 = numTotalVerts - i - 1;
867 newFace.v2 = j;
868 newFace.v3 = j + 1;
869
870 this.faces.Add(newFace);
871 j += 1;
872 }
873
874 newFace.v1 = j;
875 newFace.v2 = numTotalVerts - i - 2;
876 newFace.v3 = numTotalVerts - i - 1;
877
878 this.faces.Add(newFace);
879 }
880 }
881 else // numHollowVerts < numOuterVerts
882 {
883 Face newFace = new Face();
884 int j = 0; // j is the index for inner vertices
885 int maxJ = this.numHollowVerts - 1;
886 for (int i = 0; i < this.numOuterVerts; i++)
887 {
888 if (j < maxJ)
889 if (hollowAngles.angles[j + 1].angle - angles.angles[i].angle < angles.angles[i].angle - hollowAngles.angles[j].angle + 0.000001f)
890 {
891 newFace.v1 = i;
892 newFace.v2 = numTotalVerts - j - 2;
893 newFace.v3 = numTotalVerts - j - 1;
894
895 this.faces.Add(newFace);
896 j += 1;
897 }
898
899 newFace.v1 = numTotalVerts - j - 1;
900 newFace.v2 = i;
901 newFace.v3 = i + 1;
902
903 this.faces.Add(newFace);
904 }
905 }
906 }
907 }
908
909 if (calcVertexNormals)
910 {
911 foreach (Coord hc in hollowCoords)
912 {
913 this.coords.Add(hc);
914 hollowCoordIndices.Add(this.coords.Count - 1);
915 }
916 }
917 else
918 this.coords.AddRange(hollowCoords);
919
920 if (this.calcVertexNormals)
921 {
922 this.vertexNormals.AddRange(hollowNormals);
923 this.us.AddRange(hollowUs);
924
925 }
926 }
927
928 if (simpleFace && createFaces)
929 {
930 if (sides == 3)
931 this.faces.Add(new Face(0, 1, 2));
932 else if (sides == 4)
933 {
934 this.faces.Add(new Face(0, 1, 2));
935 this.faces.Add(new Face(0, 2, 3));
936 }
937 }
938
939 if (calcVertexNormals && hasProfileCut)
940 {
941 int lastOuterVertIndex = this.numOuterVerts - 1;
942
943 if (hasHollow)
944 {
945 this.cut1CoordIndices.Add(0);
946 this.cut1CoordIndices.Add(this.coords.Count - 1);
947
948 this.cut2CoordIndices.Add(lastOuterVertIndex + 1);
949 this.cut2CoordIndices.Add(lastOuterVertIndex);
950
951 this.cutNormal1.X = this.coords[0].Y - this.coords[this.coords.Count - 1].Y;
952 this.cutNormal1.Y = -(this.coords[0].X - this.coords[this.coords.Count - 1].X);
953
954 this.cutNormal2.X = this.coords[lastOuterVertIndex + 1].Y - this.coords[lastOuterVertIndex].Y;
955 this.cutNormal2.Y = -(this.coords[lastOuterVertIndex + 1].X - this.coords[lastOuterVertIndex].X);
956 }
957
958 else
959 {
960 this.cut1CoordIndices.Add(0);
961 this.cut1CoordIndices.Add(1);
962
963 this.cut2CoordIndices.Add(lastOuterVertIndex);
964 this.cut2CoordIndices.Add(0);
965
966 this.cutNormal1.X = this.vertexNormals[1].Y;
967 this.cutNormal1.Y = -this.vertexNormals[1].X;
968
969 this.cutNormal2.X = -this.vertexNormals[this.vertexNormals.Count - 2].Y;
970 this.cutNormal2.Y = this.vertexNormals[this.vertexNormals.Count - 2].X;
971
972 }
973 this.cutNormal1.Normalize();
974 this.cutNormal2.Normalize();
975 }
976
977 this.MakeFaceUVs();
978
979 hollowCoords = null;
980 hollowNormals = null;
981 hollowUs = null;
982
983 if (calcVertexNormals)
984 { // calculate prim face numbers
985
986 // face number order is top, outer, hollow, bottom, start cut, end cut
987 // I know it's ugly but so is the whole concept of prim face numbers
988
989 int faceNum = 1; // start with outer faces
990 this.outerFaceNumber = faceNum;
991
992 int startVert = hasProfileCut && !hasHollow ? 1 : 0;
993 if (startVert > 0)
994 this.faceNumbers.Add(-1);
995 for (int i = 0; i < this.numOuterVerts - 1; i++)
996 //this.faceNumbers.Add(sides < 5 ? faceNum++ : faceNum);
997 this.faceNumbers.Add(sides < 5 && i < sides ? faceNum++ : faceNum);
998
999 //if (!hasHollow && !hasProfileCut)
1000 // this.bottomFaceNumber = faceNum++;
1001
1002 this.faceNumbers.Add(hasProfileCut ? -1 : faceNum++);
1003
1004 if (sides > 4 && (hasHollow || hasProfileCut))
1005 faceNum++;
1006
1007 if (sides < 5 && (hasHollow || hasProfileCut) && this.numOuterVerts < sides)
1008 faceNum++;
1009
1010 if (hasHollow)
1011 {
1012 for (int i = 0; i < this.numHollowVerts; i++)
1013 this.faceNumbers.Add(faceNum);
1014
1015 this.hollowFaceNumber = faceNum++;
1016 }
1017 //if (hasProfileCut || hasHollow)
1018 // this.bottomFaceNumber = faceNum++;
1019 this.bottomFaceNumber = faceNum++;
1020
1021 if (hasHollow && hasProfileCut)
1022 this.faceNumbers.Add(faceNum++);
1023
1024 for (int i = 0; i < this.faceNumbers.Count; i++)
1025 if (this.faceNumbers[i] == -1)
1026 this.faceNumbers[i] = faceNum++;
1027
1028 this.numPrimFaces = faceNum;
1029 }
1030
1031 }
1032
1033 internal void MakeFaceUVs()
1034 {
1035 this.faceUVs = new List<UVCoord>();
1036 foreach (Coord c in this.coords)
1037 this.faceUVs.Add(new UVCoord(0.5f + c.X, 0.5f - c.Y));
1038 }
1039
1040 internal Profile Copy()
1041 {
1042 return this.Copy(true);
1043 }
1044
1045 internal Profile Copy(bool needFaces)
1046 {
1047 Profile copy = new Profile();
1048
1049 copy.coords.AddRange(this.coords);
1050 copy.faceUVs.AddRange(this.faceUVs);
1051
1052 if (needFaces)
1053 copy.faces.AddRange(this.faces);
1054 if ((copy.calcVertexNormals = this.calcVertexNormals) == true)
1055 {
1056 copy.vertexNormals.AddRange(this.vertexNormals);
1057 copy.faceNormal = this.faceNormal;
1058 copy.cutNormal1 = this.cutNormal1;
1059 copy.cutNormal2 = this.cutNormal2;
1060 copy.us.AddRange(this.us);
1061 copy.faceNumbers.AddRange(this.faceNumbers);
1062
1063 copy.cut1CoordIndices = new List<int>(this.cut1CoordIndices);
1064 copy.cut2CoordIndices = new List<int>(this.cut2CoordIndices);
1065 copy.hollowCoordIndices = new List<int>(this.hollowCoordIndices);
1066 copy.outerCoordIndices = new List<int>(this.outerCoordIndices);
1067 }
1068 copy.numOuterVerts = this.numOuterVerts;
1069 copy.numHollowVerts = this.numHollowVerts;
1070
1071 return copy;
1072 }
1073
1074 internal void AddPos(Coord v)
1075 {
1076 this.AddPos(v.X, v.Y, v.Z);
1077 }
1078
1079 internal void AddPos(float x, float y, float z)
1080 {
1081 int i;
1082 int numVerts = this.coords.Count;
1083 Coord vert;
1084
1085 for (i = 0; i < numVerts; i++)
1086 {
1087 vert = this.coords[i];
1088 vert.X += x;
1089 vert.Y += y;
1090 vert.Z += z;
1091 this.coords[i] = vert;
1092 }
1093 }
1094
1095 internal void AddRot(Quat q)
1096 {
1097 int i;
1098 int numVerts = this.coords.Count;
1099
1100 for (i = 0; i < numVerts; i++)
1101 this.coords[i] *= q;
1102
1103 if (this.calcVertexNormals)
1104 {
1105 int numNormals = this.vertexNormals.Count;
1106 for (i = 0; i < numNormals; i++)
1107 this.vertexNormals[i] *= q;
1108
1109 this.faceNormal *= q;
1110 this.cutNormal1 *= q;
1111 this.cutNormal2 *= q;
1112
1113 }
1114 }
1115
1116 internal void Scale(float x, float y)
1117 {
1118 int i;
1119 int numVerts = this.coords.Count;
1120 Coord vert;
1121
1122 for (i = 0; i < numVerts; i++)
1123 {
1124 vert = this.coords[i];
1125 vert.X *= x;
1126 vert.Y *= y;
1127 this.coords[i] = vert;
1128 }
1129 }
1130
1131 /// <summary>
1132 /// Changes order of the vertex indices and negates the center vertex normal. Does not alter vertex normals of radial vertices
1133 /// </summary>
1134 internal void FlipNormals()
1135 {
1136 int i;
1137 int numFaces = this.faces.Count;
1138 Face tmpFace;
1139 int tmp;
1140
1141 for (i = 0; i < numFaces; i++)
1142 {
1143 tmpFace = this.faces[i];
1144 tmp = tmpFace.v3;
1145 tmpFace.v3 = tmpFace.v1;
1146 tmpFace.v1 = tmp;
1147 this.faces[i] = tmpFace;
1148 }
1149
1150 if (this.calcVertexNormals)
1151 {
1152 int normalCount = this.vertexNormals.Count;
1153 if (normalCount > 0)
1154 {
1155 Coord n = this.vertexNormals[normalCount - 1];
1156 n.Z = -n.Z;
1157 this.vertexNormals[normalCount - 1] = n;
1158 }
1159 }
1160
1161 this.faceNormal.X = -this.faceNormal.X;
1162 this.faceNormal.Y = -this.faceNormal.Y;
1163 this.faceNormal.Z = -this.faceNormal.Z;
1164
1165 int numfaceUVs = this.faceUVs.Count;
1166 for (i = 0; i < numfaceUVs; i++)
1167 {
1168 UVCoord uv = this.faceUVs[i];
1169 uv.V = 1.0f - uv.V;
1170 this.faceUVs[i] = uv;
1171 }
1172 }
1173
1174 internal void AddValue2FaceVertexIndices(int num)
1175 {
1176 int numFaces = this.faces.Count;
1177 Face tmpFace;
1178 for (int i = 0; i < numFaces; i++)
1179 {
1180 tmpFace = this.faces[i];
1181 tmpFace.v1 += num;
1182 tmpFace.v2 += num;
1183 tmpFace.v3 += num;
1184
1185 this.faces[i] = tmpFace;
1186 }
1187 }
1188
1189 internal void AddValue2FaceNormalIndices(int num)
1190 {
1191 if (this.calcVertexNormals)
1192 {
1193 int numFaces = this.faces.Count;
1194 Face tmpFace;
1195 for (int i = 0; i < numFaces; i++)
1196 {
1197 tmpFace = this.faces[i];
1198 tmpFace.n1 += num;
1199 tmpFace.n2 += num;
1200 tmpFace.n3 += num;
1201
1202 this.faces[i] = tmpFace;
1203 }
1204 }
1205 }
1206
1207 internal void DumpRaw(String path, String name, String title)
1208 {
1209 if (path == null)
1210 return;
1211 String fileName = name + "_" + title + ".raw";
1212 String completePath = System.IO.Path.Combine(path, fileName);
1213 StreamWriter sw = new StreamWriter(completePath);
1214
1215 for (int i = 0; i < this.faces.Count; i++)
1216 {
1217 string s = this.coords[this.faces[i].v1].ToString();
1218 s += " " + this.coords[this.faces[i].v2].ToString();
1219 s += " " + this.coords[this.faces[i].v3].ToString();
1220
1221 sw.WriteLine(s);
1222 }
1223
1224 sw.Close();
1225 }
1226 }
1227
1228 public struct PathNode
1229 {
1230 public Coord position;
1231 public Quat rotation;
1232 public float xScale;
1233 public float yScale;
1234 public float percentOfPath;
1235 }
1236
1237 public enum PathType { Linear = 0, Circular = 1, Flexible = 2 }
1238
1239 public class Path
1240 {
1241 public List<PathNode> pathNodes = new List<PathNode>();
1242
1243 public float twistBegin = 0.0f;
1244 public float twistEnd = 0.0f;
1245 public float topShearX = 0.0f;
1246 public float topShearY = 0.0f;
1247 public float pathCutBegin = 0.0f;
1248 public float pathCutEnd = 1.0f;
1249 public float dimpleBegin = 0.0f;
1250 public float dimpleEnd = 1.0f;
1251 public float skew = 0.0f;
1252 public float holeSizeX = 1.0f; // called pathScaleX in pbs
1253 public float holeSizeY = 0.25f;
1254 public float taperX = 0.0f;
1255 public float taperY = 0.0f;
1256 public float radius = 0.0f;
1257 public float revolutions = 1.0f;
1258 public int stepsPerRevolution = 24;
1259
1260 private const float twoPi = 2.0f * (float)Math.PI;
1261
1262 public void Create(PathType pathType, int steps)
1263 {
1264 if (pathType == PathType.Linear || pathType == PathType.Flexible)
1265 {
1266 int step = 0;
1267
1268 float length = this.pathCutEnd - this.pathCutBegin;
1269 float twistTotal = twistEnd - twistBegin;
1270 float twistTotalAbs = Math.Abs(twistTotal);
1271 if (twistTotalAbs > 0.01f)
1272 steps += (int)(twistTotalAbs * 3.66); // dahlia's magic number
1273
1274 float start = -0.5f;
1275 float stepSize = length / (float)steps;
1276 float percentOfPathMultiplier = stepSize;
1277 float xOffset = 0.0f;
1278 float yOffset = 0.0f;
1279 float zOffset = start;
1280 float xOffsetStepIncrement = this.topShearX / steps;
1281 float yOffsetStepIncrement = this.topShearY / steps;
1282
1283 float percentOfPath = this.pathCutBegin;
1284 zOffset += percentOfPath;
1285
1286 // sanity checks
1287
1288 bool done = false;
1289
1290 while (!done)
1291 {
1292 PathNode newNode = new PathNode();
1293
1294 newNode.xScale = 1.0f;
1295 if (this.taperX == 0.0f)
1296 newNode.xScale = 1.0f;
1297 else if (this.taperX > 0.0f)
1298 newNode.xScale = 1.0f - percentOfPath * this.taperX;
1299 else newNode.xScale = 1.0f + (1.0f - percentOfPath) * this.taperX;
1300
1301 newNode.yScale = 1.0f;
1302 if (this.taperY == 0.0f)
1303 newNode.yScale = 1.0f;
1304 else if (this.taperY > 0.0f)
1305 newNode.yScale = 1.0f - percentOfPath * this.taperY;
1306 else newNode.yScale = 1.0f + (1.0f - percentOfPath) * this.taperY;
1307
1308 float twist = twistBegin + twistTotal * percentOfPath;
1309
1310 newNode.rotation = new Quat(new Coord(0.0f, 0.0f, 1.0f), twist);
1311 newNode.position = new Coord(xOffset, yOffset, zOffset);
1312 newNode.percentOfPath = percentOfPath;
1313
1314 pathNodes.Add(newNode);
1315
1316 if (step < steps)
1317 {
1318 step += 1;
1319 percentOfPath += percentOfPathMultiplier;
1320 xOffset += xOffsetStepIncrement;
1321 yOffset += yOffsetStepIncrement;
1322 zOffset += stepSize;
1323 if (percentOfPath > this.pathCutEnd)
1324 done = true;
1325 }
1326 else done = true;
1327 }
1328 } // end of linear path code
1329
1330 else // pathType == Circular
1331 {
1332 float twistTotal = twistEnd - twistBegin;
1333
1334 // if the profile has a lot of twist, add more layers otherwise the layers may overlap
1335 // and the resulting mesh may be quite inaccurate. This method is arbitrary and doesn't
1336 // accurately match the viewer
1337 float twistTotalAbs = Math.Abs(twistTotal);
1338 if (twistTotalAbs > 0.01f)
1339 {
1340 if (twistTotalAbs > Math.PI * 1.5f)
1341 steps *= 2;
1342 if (twistTotalAbs > Math.PI * 3.0f)
1343 steps *= 2;
1344 }
1345
1346 float yPathScale = this.holeSizeY * 0.5f;
1347 float pathLength = this.pathCutEnd - this.pathCutBegin;
1348 float totalSkew = this.skew * 2.0f * pathLength;
1349 float skewStart = this.pathCutBegin * 2.0f * this.skew - this.skew;
1350 float xOffsetTopShearXFactor = this.topShearX * (0.25f + 0.5f * (0.5f - this.holeSizeY));
1351 float yShearCompensation = 1.0f + Math.Abs(this.topShearY) * 0.25f;
1352
1353 // It's not quite clear what pushY (Y top shear) does, but subtracting it from the start and end
1354 // angles appears to approximate it's effects on path cut. Likewise, adding it to the angle used
1355 // to calculate the sine for generating the path radius appears to approximate it's effects there
1356 // too, but there are some subtle differences in the radius which are noticeable as the prim size
1357 // increases and it may affect megaprims quite a bit. The effect of the Y top shear parameter on
1358 // the meshes generated with this technique appear nearly identical in shape to the same prims when
1359 // displayed by the viewer.
1360
1361 float startAngle = (twoPi * this.pathCutBegin * this.revolutions) - this.topShearY * 0.9f;
1362 float endAngle = (twoPi * this.pathCutEnd * this.revolutions) - this.topShearY * 0.9f;
1363 float stepSize = twoPi / this.stepsPerRevolution;
1364
1365 int step = (int)(startAngle / stepSize);
1366 float angle = startAngle;
1367
1368 bool done = false;
1369 while (!done) // loop through the length of the path and add the layers
1370 {
1371 PathNode newNode = new PathNode();
1372
1373 float xProfileScale = (1.0f - Math.Abs(this.skew)) * this.holeSizeX;
1374 float yProfileScale = this.holeSizeY;
1375
1376 float percentOfPath = angle / (twoPi * this.revolutions);
1377 float percentOfAngles = (angle - startAngle) / (endAngle - startAngle);
1378
1379 if (this.taperX > 0.01f)
1380 xProfileScale *= 1.0f - percentOfPath * this.taperX;
1381 else if (this.taperX < -0.01f)
1382 xProfileScale *= 1.0f + (1.0f - percentOfPath) * this.taperX;
1383
1384 if (this.taperY > 0.01f)
1385 yProfileScale *= 1.0f - percentOfPath * this.taperY;
1386 else if (this.taperY < -0.01f)
1387 yProfileScale *= 1.0f + (1.0f - percentOfPath) * this.taperY;
1388
1389 newNode.xScale = xProfileScale;
1390 newNode.yScale = yProfileScale;
1391
1392 float radiusScale = 1.0f;
1393 if (this.radius > 0.001f)
1394 radiusScale = 1.0f - this.radius * percentOfPath;
1395 else if (this.radius < 0.001f)
1396 radiusScale = 1.0f + this.radius * (1.0f - percentOfPath);
1397
1398 float twist = twistBegin + twistTotal * percentOfPath;
1399
1400 float xOffset = 0.5f * (skewStart + totalSkew * percentOfAngles);
1401 xOffset += (float)Math.Sin(angle) * xOffsetTopShearXFactor;
1402
1403 float yOffset = yShearCompensation * (float)Math.Cos(angle) * (0.5f - yPathScale) * radiusScale;
1404
1405 float zOffset = (float)Math.Sin(angle + this.topShearY) * (0.5f - yPathScale) * radiusScale;
1406
1407 newNode.position = new Coord(xOffset, yOffset, zOffset);
1408
1409 // now orient the rotation of the profile layer relative to it's position on the path
1410 // adding taperY to the angle used to generate the quat appears to approximate the viewer
1411
1412 newNode.rotation = new Quat(new Coord(1.0f, 0.0f, 0.0f), angle + this.topShearY);
1413
1414 // next apply twist rotation to the profile layer
1415 if (twistTotal != 0.0f || twistBegin != 0.0f)
1416 newNode.rotation *= new Quat(new Coord(0.0f, 0.0f, 1.0f), twist);
1417
1418 newNode.percentOfPath = percentOfPath;
1419
1420 pathNodes.Add(newNode);
1421
1422 // calculate terms for next iteration
1423 // calculate the angle for the next iteration of the loop
1424
1425 if (angle >= endAngle - 0.01)
1426 done = true;
1427 else
1428 {
1429 step += 1;
1430 angle = stepSize * step;
1431 if (angle > endAngle)
1432 angle = endAngle;
1433 }
1434 }
1435 }
1436 }
1437 }
1438
1439 public class PrimMesh
1440 {
1441 public string errorMessage = "";
1442 private const float twoPi = 2.0f * (float)Math.PI;
1443
1444 public List<Coord> coords;
1445 public List<Coord> normals;
1446 public List<Face> faces;
1447
1448 public List<ViewerFace> viewerFaces;
1449
1450 private int sides = 4;
1451 private int hollowSides = 4;
1452 private float profileStart = 0.0f;
1453 private float profileEnd = 1.0f;
1454 private float hollow = 0.0f;
1455 public int twistBegin = 0;
1456 public int twistEnd = 0;
1457 public float topShearX = 0.0f;
1458 public float topShearY = 0.0f;
1459 public float pathCutBegin = 0.0f;
1460 public float pathCutEnd = 1.0f;
1461 public float dimpleBegin = 0.0f;
1462 public float dimpleEnd = 1.0f;
1463 public float skew = 0.0f;
1464 public float holeSizeX = 1.0f; // called pathScaleX in pbs
1465 public float holeSizeY = 0.25f;
1466 public float taperX = 0.0f;
1467 public float taperY = 0.0f;
1468 public float radius = 0.0f;
1469 public float revolutions = 1.0f;
1470 public int stepsPerRevolution = 24;
1471
1472 private int profileOuterFaceNumber = -1;
1473 private int profileHollowFaceNumber = -1;
1474
1475 private bool hasProfileCut = false;
1476 private bool hasHollow = false;
1477 public bool calcVertexNormals = false;
1478 private bool normalsProcessed = false;
1479 public bool viewerMode = false;
1480 public bool sphereMode = false;
1481
1482 public int numPrimFaces = 0;
1483
1484 /// <summary>
1485 /// Human readable string representation of the parameters used to create a mesh.
1486 /// </summary>
1487 /// <returns></returns>
1488 public string ParamsToDisplayString()
1489 {
1490 string s = "";
1491 s += "sides..................: " + this.sides.ToString();
1492 s += "\nhollowSides..........: " + this.hollowSides.ToString();
1493 s += "\nprofileStart.........: " + this.profileStart.ToString();
1494 s += "\nprofileEnd...........: " + this.profileEnd.ToString();
1495 s += "\nhollow...............: " + this.hollow.ToString();
1496 s += "\ntwistBegin...........: " + this.twistBegin.ToString();
1497 s += "\ntwistEnd.............: " + this.twistEnd.ToString();
1498 s += "\ntopShearX............: " + this.topShearX.ToString();
1499 s += "\ntopShearY............: " + this.topShearY.ToString();
1500 s += "\npathCutBegin.........: " + this.pathCutBegin.ToString();
1501 s += "\npathCutEnd...........: " + this.pathCutEnd.ToString();
1502 s += "\ndimpleBegin..........: " + this.dimpleBegin.ToString();
1503 s += "\ndimpleEnd............: " + this.dimpleEnd.ToString();
1504 s += "\nskew.................: " + this.skew.ToString();
1505 s += "\nholeSizeX............: " + this.holeSizeX.ToString();
1506 s += "\nholeSizeY............: " + this.holeSizeY.ToString();
1507 s += "\ntaperX...............: " + this.taperX.ToString();
1508 s += "\ntaperY...............: " + this.taperY.ToString();
1509 s += "\nradius...............: " + this.radius.ToString();
1510 s += "\nrevolutions..........: " + this.revolutions.ToString();
1511 s += "\nstepsPerRevolution...: " + this.stepsPerRevolution.ToString();
1512 s += "\nsphereMode...........: " + this.sphereMode.ToString();
1513 s += "\nhasProfileCut........: " + this.hasProfileCut.ToString();
1514 s += "\nhasHollow............: " + this.hasHollow.ToString();
1515 s += "\nviewerMode...........: " + this.viewerMode.ToString();
1516
1517 return s;
1518 }
1519
1520 public int ProfileOuterFaceNumber
1521 {
1522 get { return profileOuterFaceNumber; }
1523 }
1524
1525 public int ProfileHollowFaceNumber
1526 {
1527 get { return profileHollowFaceNumber; }
1528 }
1529
1530 public bool HasProfileCut
1531 {
1532 get { return hasProfileCut; }
1533 }
1534
1535 public bool HasHollow
1536 {
1537 get { return hasHollow; }
1538 }
1539
1540
1541 /// <summary>
1542 /// Constructs a PrimMesh object and creates the profile for extrusion.
1543 /// </summary>
1544 /// <param name="sides"></param>
1545 /// <param name="profileStart"></param>
1546 /// <param name="profileEnd"></param>
1547 /// <param name="hollow"></param>
1548 /// <param name="hollowSides"></param>
1549 public PrimMesh(int sides, float profileStart, float profileEnd, float hollow, int hollowSides)
1550 {
1551 this.coords = new List<Coord>();
1552 this.faces = new List<Face>();
1553
1554 this.sides = sides;
1555 this.profileStart = profileStart;
1556 this.profileEnd = profileEnd;
1557 this.hollow = hollow;
1558 this.hollowSides = hollowSides;
1559
1560 if (sides < 3)
1561 this.sides = 3;
1562 if (hollowSides < 3)
1563 this.hollowSides = 3;
1564 if (profileStart < 0.0f)
1565 this.profileStart = 0.0f;
1566 if (profileEnd > 1.0f)
1567 this.profileEnd = 1.0f;
1568 if (profileEnd < 0.02f)
1569 this.profileEnd = 0.02f;
1570 if (profileStart >= profileEnd)
1571 this.profileStart = profileEnd - 0.02f;
1572 if (hollow > 0.99f)
1573 this.hollow = 0.99f;
1574 if (hollow < 0.0f)
1575 this.hollow = 0.0f;
1576
1577 //if (sphereMode)
1578 // this.hasProfileCut = this.profileEnd - this.profileStart < 0.4999f;
1579 //else
1580 // //this.hasProfileCut = (this.profileStart > 0.0f || this.profileEnd < 1.0f);
1581 // this.hasProfileCut = this.profileEnd - this.profileStart < 0.9999f;
1582 //this.hasHollow = (this.hollow > 0.001f);
1583 }
1584
1585 /// <summary>
1586 /// Extrudes a profile along a path.
1587 /// </summary>
1588 public void Extrude(PathType pathType)
1589 {
1590 bool needEndFaces = false;
1591
1592 this.coords = new List<Coord>();
1593 this.faces = new List<Face>();
1594
1595 if (this.viewerMode)
1596 {
1597 this.viewerFaces = new List<ViewerFace>();
1598 this.calcVertexNormals = true;
1599 }
1600
1601 if (this.calcVertexNormals)
1602 this.normals = new List<Coord>();
1603
1604 int steps = 1;
1605
1606 float length = this.pathCutEnd - this.pathCutBegin;
1607 normalsProcessed = false;
1608
1609 if (this.viewerMode && this.sides == 3)
1610 {
1611 // prisms don't taper well so add some vertical resolution
1612 // other prims may benefit from this but just do prisms for now
1613 if (Math.Abs(this.taperX) > 0.01 || Math.Abs(this.taperY) > 0.01)
1614 steps = (int)(steps * 4.5 * length);
1615 }
1616
1617 if (sphereMode)
1618 this.hasProfileCut = this.profileEnd - this.profileStart < 0.4999f;
1619 else
1620 //this.hasProfileCut = (this.profileStart > 0.0f || this.profileEnd < 1.0f);
1621 this.hasProfileCut = this.profileEnd - this.profileStart < 0.9999f;
1622 this.hasHollow = (this.hollow > 0.001f);
1623
1624 float twistBegin = this.twistBegin / 360.0f * twoPi;
1625 float twistEnd = this.twistEnd / 360.0f * twoPi;
1626 float twistTotal = twistEnd - twistBegin;
1627 float twistTotalAbs = Math.Abs(twistTotal);
1628 if (twistTotalAbs > 0.01f)
1629 steps += (int)(twistTotalAbs * 3.66); // dahlia's magic number
1630
1631 float hollow = this.hollow;
1632
1633 // sanity checks
1634 float initialProfileRot = 0.0f;
1635 if (pathType == PathType.Circular)
1636 {
1637 if (this.sides == 3)
1638 {
1639 initialProfileRot = (float)Math.PI;
1640 if (this.hollowSides == 4)
1641 {
1642 if (hollow > 0.7f)
1643 hollow = 0.7f;
1644 hollow *= 0.707f;
1645 }
1646 else hollow *= 0.5f;
1647 }
1648 else if (this.sides == 4)
1649 {
1650 initialProfileRot = 0.25f * (float)Math.PI;
1651 if (this.hollowSides != 4)
1652 hollow *= 0.707f;
1653 }
1654 else if (this.sides > 4)
1655 {
1656 initialProfileRot = (float)Math.PI;
1657 if (this.hollowSides == 4)
1658 {
1659 if (hollow > 0.7f)
1660 hollow = 0.7f;
1661 hollow /= 0.7f;
1662 }
1663 }
1664 }
1665 else
1666 {
1667 if (this.sides == 3)
1668 {
1669 if (this.hollowSides == 4)
1670 {
1671 if (hollow > 0.7f)
1672 hollow = 0.7f;
1673 hollow *= 0.707f;
1674 }
1675 else hollow *= 0.5f;
1676 }
1677 else if (this.sides == 4)
1678 {
1679 initialProfileRot = 1.25f * (float)Math.PI;
1680 if (this.hollowSides != 4)
1681 hollow *= 0.707f;
1682 }
1683 else if (this.sides == 24 && this.hollowSides == 4)
1684 hollow *= 1.414f;
1685 }
1686
1687 Profile profile = new Profile(this.sides, this.profileStart, this.profileEnd, hollow, this.hollowSides, true, calcVertexNormals);
1688 this.errorMessage = profile.errorMessage;
1689
1690 this.numPrimFaces = profile.numPrimFaces;
1691
1692 //profileOuterFaceNumber = profile.faceNumbers[0];
1693 //if (!needEndFaces)
1694 // profileOuterFaceNumber--;
1695 //profileOuterFaceNumber = needEndFaces ? 1 : 0;
1696
1697
1698 //if (hasHollow)
1699 //{
1700 // if (needEndFaces)
1701 // profileHollowFaceNumber = profile.faceNumbers[profile.numOuterVerts + 1];
1702 // else
1703 // profileHollowFaceNumber = profile.faceNumbers[profile.numOuterVerts] - 1;
1704 //}
1705
1706
1707 profileOuterFaceNumber = profile.outerFaceNumber;
1708 if (!needEndFaces)
1709 profileOuterFaceNumber--;
1710
1711 if (hasHollow)
1712 {
1713 profileHollowFaceNumber = profile.hollowFaceNumber;
1714 if (!needEndFaces)
1715 profileHollowFaceNumber--;
1716 }
1717
1718 int cut1Vert = -1;
1719 int cut2Vert = -1;
1720 if (hasProfileCut)
1721 {
1722 cut1Vert = hasHollow ? profile.coords.Count - 1 : 0;
1723 cut2Vert = hasHollow ? profile.numOuterVerts - 1 : profile.numOuterVerts;
1724 }
1725
1726 if (initialProfileRot != 0.0f)
1727 {
1728 profile.AddRot(new Quat(new Coord(0.0f, 0.0f, 1.0f), initialProfileRot));
1729 if (viewerMode)
1730 profile.MakeFaceUVs();
1731 }
1732
1733 Coord lastCutNormal1 = new Coord();
1734 Coord lastCutNormal2 = new Coord();
1735 float lastV = 1.0f;
1736
1737 Path path = new Path();
1738 path.twistBegin = twistBegin;
1739 path.twistEnd = twistEnd;
1740 path.topShearX = topShearX;
1741 path.topShearY = topShearY;
1742 path.pathCutBegin = pathCutBegin;
1743 path.pathCutEnd = pathCutEnd;
1744 path.dimpleBegin = dimpleBegin;
1745 path.dimpleEnd = dimpleEnd;
1746 path.skew = skew;
1747 path.holeSizeX = holeSizeX;
1748 path.holeSizeY = holeSizeY;
1749 path.taperX = taperX;
1750 path.taperY = taperY;
1751 path.radius = radius;
1752 path.revolutions = revolutions;
1753 path.stepsPerRevolution = stepsPerRevolution;
1754
1755 path.Create(pathType, steps);
1756
1757
1758 if (pathType == PathType.Circular)
1759 {
1760 needEndFaces = false;
1761 if (this.pathCutBegin != 0.0f || this.pathCutEnd != 1.0f)
1762 needEndFaces = true;
1763 else if (this.taperX != 0.0f || this.taperY != 0.0f)
1764 needEndFaces = true;
1765 else if (this.skew != 0.0f)
1766 needEndFaces = true;
1767 else if (twistTotal != 0.0f)
1768 needEndFaces = true;
1769 else if (this.radius != 0.0f)
1770 needEndFaces = true;
1771 }
1772 else needEndFaces = true;
1773
1774 for (int nodeIndex = 0; nodeIndex < path.pathNodes.Count; nodeIndex++)
1775 {
1776 PathNode node = path.pathNodes[nodeIndex];
1777 Profile newLayer = profile.Copy();
1778 newLayer.Scale(node.xScale, node.yScale);
1779
1780 newLayer.AddRot(node.rotation);
1781 newLayer.AddPos(node.position);
1782
1783 if (needEndFaces && nodeIndex == 0)
1784 {
1785 newLayer.FlipNormals();
1786
1787 // add the top faces to the viewerFaces list here
1788 if (this.viewerMode)
1789 {
1790 Coord faceNormal = newLayer.faceNormal;
1791 ViewerFace newViewerFace = new ViewerFace(profile.bottomFaceNumber);
1792 int numFaces = newLayer.faces.Count;
1793 List<Face> faces = newLayer.faces;
1794
1795 for (int i = 0; i < numFaces; i++)
1796 {
1797 Face face = faces[i];
1798 newViewerFace.v1 = newLayer.coords[face.v1];
1799 newViewerFace.v2 = newLayer.coords[face.v2];
1800 newViewerFace.v3 = newLayer.coords[face.v3];
1801
1802 newViewerFace.coordIndex1 = face.v1;
1803 newViewerFace.coordIndex2 = face.v2;
1804 newViewerFace.coordIndex3 = face.v3;
1805
1806 newViewerFace.n1 = faceNormal;
1807 newViewerFace.n2 = faceNormal;
1808 newViewerFace.n3 = faceNormal;
1809
1810 newViewerFace.uv1 = newLayer.faceUVs[face.v1];
1811 newViewerFace.uv2 = newLayer.faceUVs[face.v2];
1812 newViewerFace.uv3 = newLayer.faceUVs[face.v3];
1813
1814 this.viewerFaces.Add(newViewerFace);
1815 }
1816 }
1817 } // if (nodeIndex == 0)
1818
1819 // append this layer
1820
1821 int coordsLen = this.coords.Count;
1822 newLayer.AddValue2FaceVertexIndices(coordsLen);
1823
1824 this.coords.AddRange(newLayer.coords);
1825
1826 if (this.calcVertexNormals)
1827 {
1828 newLayer.AddValue2FaceNormalIndices(this.normals.Count);
1829 this.normals.AddRange(newLayer.vertexNormals);
1830 }
1831
1832 if (node.percentOfPath < this.pathCutBegin + 0.01f || node.percentOfPath > this.pathCutEnd - 0.01f)
1833 this.faces.AddRange(newLayer.faces);
1834
1835 // fill faces between layers
1836
1837 int numVerts = newLayer.coords.Count;
1838 Face newFace = new Face();
1839
1840 if (nodeIndex > 0)
1841 {
1842 int startVert = coordsLen + 1;
1843 int endVert = this.coords.Count;
1844
1845 if (sides < 5 || this.hasProfileCut || this.hasHollow)
1846 startVert--;
1847
1848 for (int i = startVert; i < endVert; i++)
1849 {
1850 int iNext = i + 1;
1851 if (i == endVert - 1)
1852 iNext = startVert;
1853
1854 int whichVert = i - startVert;
1855
1856 newFace.v1 = i;
1857 newFace.v2 = i - numVerts;
1858 newFace.v3 = iNext - numVerts;
1859 this.faces.Add(newFace);
1860
1861 newFace.v2 = iNext - numVerts;
1862 newFace.v3 = iNext;
1863 this.faces.Add(newFace);
1864
1865 if (this.viewerMode)
1866 {
1867 // add the side faces to the list of viewerFaces here
1868
1869 int primFaceNum = profile.faceNumbers[whichVert];
1870 if (!needEndFaces)
1871 primFaceNum -= 1;
1872
1873 ViewerFace newViewerFace1 = new ViewerFace(primFaceNum);
1874 ViewerFace newViewerFace2 = new ViewerFace(primFaceNum);
1875
1876 float u1 = newLayer.us[whichVert];
1877 float u2 = 1.0f;
1878 if (whichVert < newLayer.us.Count - 1)
1879 u2 = newLayer.us[whichVert + 1];
1880
1881 if (whichVert == cut1Vert || whichVert == cut2Vert)
1882 {
1883 u1 = 0.0f;
1884 u2 = 1.0f;
1885 }
1886 else if (sides < 5)
1887 {
1888 if (whichVert < profile.numOuterVerts)
1889 { // boxes and prisms have one texture face per side of the prim, so the U values have to be scaled
1890 // to reflect the entire texture width
1891 u1 *= sides;
1892 u2 *= sides;
1893 u2 -= (int)u1;
1894 u1 -= (int)u1;
1895 if (u2 < 0.1f)
1896 u2 = 1.0f;
1897 //this.profileOuterFaceNumber = primFaceNum;
1898 }
1899 else if (whichVert > profile.coords.Count - profile.numHollowVerts - 1)
1900 {
1901 u1 *= 2.0f;
1902 u2 *= 2.0f;
1903 //this.profileHollowFaceNumber = primFaceNum;
1904 }
1905 }
1906
1907 newViewerFace1.uv1.U = u1;
1908 newViewerFace1.uv2.U = u1;
1909 newViewerFace1.uv3.U = u2;
1910
1911 newViewerFace1.uv1.V = 1.0f - node.percentOfPath;
1912 newViewerFace1.uv2.V = lastV;
1913 newViewerFace1.uv3.V = lastV;
1914
1915 newViewerFace2.uv1.U = u1;
1916 newViewerFace2.uv2.U = u2;
1917 newViewerFace2.uv3.U = u2;
1918
1919 newViewerFace2.uv1.V = 1.0f - node.percentOfPath;
1920 newViewerFace2.uv2.V = lastV;
1921 newViewerFace2.uv3.V = 1.0f - node.percentOfPath;
1922
1923 newViewerFace1.v1 = this.coords[i];
1924 newViewerFace1.v2 = this.coords[i - numVerts];
1925 newViewerFace1.v3 = this.coords[iNext - numVerts];
1926
1927 newViewerFace2.v1 = this.coords[i];
1928 newViewerFace2.v2 = this.coords[iNext - numVerts];
1929 newViewerFace2.v3 = this.coords[iNext];
1930
1931 newViewerFace1.coordIndex1 = i;
1932 newViewerFace1.coordIndex2 = i - numVerts;
1933 newViewerFace1.coordIndex3 = iNext - numVerts;
1934
1935 newViewerFace2.coordIndex1 = i;
1936 newViewerFace2.coordIndex2 = iNext - numVerts;
1937 newViewerFace2.coordIndex3 = iNext;
1938
1939 // profile cut faces
1940 if (whichVert == cut1Vert)
1941 {
1942 newViewerFace1.n1 = newLayer.cutNormal1;
1943 newViewerFace1.n2 = newViewerFace1.n3 = lastCutNormal1;
1944
1945 newViewerFace2.n1 = newViewerFace2.n3 = newLayer.cutNormal1;
1946 newViewerFace2.n2 = lastCutNormal1;
1947 }
1948 else if (whichVert == cut2Vert)
1949 {
1950 newViewerFace1.n1 = newLayer.cutNormal2;
1951 newViewerFace1.n2 = newViewerFace1.n3 = lastCutNormal2;
1952
1953 newViewerFace2.n1 = newViewerFace2.n3 = newLayer.cutNormal2;
1954 newViewerFace2.n2 = lastCutNormal2;
1955 }
1956
1957 else // outer and hollow faces
1958 {
1959 if ((sides < 5 && whichVert < newLayer.numOuterVerts) || (hollowSides < 5 && whichVert >= newLayer.numOuterVerts))
1960 { // looks terrible when path is twisted... need vertex normals here
1961 newViewerFace1.CalcSurfaceNormal();
1962 newViewerFace2.CalcSurfaceNormal();
1963 }
1964 else
1965 {
1966 newViewerFace1.n1 = this.normals[i];
1967 newViewerFace1.n2 = this.normals[i - numVerts];
1968 newViewerFace1.n3 = this.normals[iNext - numVerts];
1969
1970 newViewerFace2.n1 = this.normals[i];
1971 newViewerFace2.n2 = this.normals[iNext - numVerts];
1972 newViewerFace2.n3 = this.normals[iNext];
1973 }
1974 }
1975
1976 this.viewerFaces.Add(newViewerFace1);
1977 this.viewerFaces.Add(newViewerFace2);
1978
1979 }
1980 }
1981 }
1982
1983 lastCutNormal1 = newLayer.cutNormal1;
1984 lastCutNormal2 = newLayer.cutNormal2;
1985 lastV = 1.0f - node.percentOfPath;
1986
1987 if (needEndFaces && nodeIndex == path.pathNodes.Count - 1 && viewerMode)
1988 {
1989 // add the top faces to the viewerFaces list here
1990 Coord faceNormal = newLayer.faceNormal;
1991 ViewerFace newViewerFace = new ViewerFace();
1992 newViewerFace.primFaceNumber = 0;
1993 int numFaces = newLayer.faces.Count;
1994 List<Face> faces = newLayer.faces;
1995
1996 for (int i = 0; i < numFaces; i++)
1997 {
1998 Face face = faces[i];
1999 newViewerFace.v1 = newLayer.coords[face.v1 - coordsLen];
2000 newViewerFace.v2 = newLayer.coords[face.v2 - coordsLen];
2001 newViewerFace.v3 = newLayer.coords[face.v3 - coordsLen];
2002
2003 newViewerFace.coordIndex1 = face.v1 - coordsLen;
2004 newViewerFace.coordIndex2 = face.v2 - coordsLen;
2005 newViewerFace.coordIndex3 = face.v3 - coordsLen;
2006
2007 newViewerFace.n1 = faceNormal;
2008 newViewerFace.n2 = faceNormal;
2009 newViewerFace.n3 = faceNormal;
2010
2011 newViewerFace.uv1 = newLayer.faceUVs[face.v1 - coordsLen];
2012 newViewerFace.uv2 = newLayer.faceUVs[face.v2 - coordsLen];
2013 newViewerFace.uv3 = newLayer.faceUVs[face.v3 - coordsLen];
2014
2015 this.viewerFaces.Add(newViewerFace);
2016 }
2017 }
2018
2019
2020 } // for (int nodeIndex = 0; nodeIndex < path.pathNodes.Count; nodeIndex++)
2021
2022 }
2023
2024
2025 /// <summary>
2026 /// DEPRICATED - use Extrude(PathType.Linear) instead
2027 /// Extrudes a profile along a straight line path. Used for prim types box, cylinder, and prism.
2028 /// </summary>
2029 ///
2030 public void ExtrudeLinear()
2031 {
2032 this.Extrude(PathType.Linear);
2033 }
2034
2035
2036 /// <summary>
2037 /// DEPRICATED - use Extrude(PathType.Circular) instead
2038 /// Extrude a profile into a circular path prim mesh. Used for prim types torus, tube, and ring.
2039 /// </summary>
2040 ///
2041 public void ExtrudeCircular()
2042 {
2043 this.Extrude(PathType.Circular);
2044 }
2045
2046
2047 private Coord SurfaceNormal(Coord c1, Coord c2, Coord c3)
2048 {
2049 Coord edge1 = new Coord(c2.X - c1.X, c2.Y - c1.Y, c2.Z - c1.Z);
2050 Coord edge2 = new Coord(c3.X - c1.X, c3.Y - c1.Y, c3.Z - c1.Z);
2051
2052 Coord normal = Coord.Cross(edge1, edge2);
2053
2054 normal.Normalize();
2055
2056 return normal;
2057 }
2058
2059 private Coord SurfaceNormal(Face face)
2060 {
2061 return SurfaceNormal(this.coords[face.v1], this.coords[face.v2], this.coords[face.v3]);
2062 }
2063
2064 /// <summary>
2065 /// Calculate the surface normal for a face in the list of faces
2066 /// </summary>
2067 /// <param name="faceIndex"></param>
2068 /// <returns></returns>
2069 public Coord SurfaceNormal(int faceIndex)
2070 {
2071 int numFaces = this.faces.Count;
2072 if (faceIndex < 0 || faceIndex >= numFaces)
2073 throw new Exception("faceIndex out of range");
2074
2075 return SurfaceNormal(this.faces[faceIndex]);
2076 }
2077
2078 /// <summary>
2079 /// Duplicates a PrimMesh object. All object properties are copied by value, including lists.
2080 /// </summary>
2081 /// <returns></returns>
2082 public PrimMesh Copy()
2083 {
2084 PrimMesh copy = new PrimMesh(this.sides, this.profileStart, this.profileEnd, this.hollow, this.hollowSides);
2085 copy.twistBegin = this.twistBegin;
2086 copy.twistEnd = this.twistEnd;
2087 copy.topShearX = this.topShearX;
2088 copy.topShearY = this.topShearY;
2089 copy.pathCutBegin = this.pathCutBegin;
2090 copy.pathCutEnd = this.pathCutEnd;
2091 copy.dimpleBegin = this.dimpleBegin;
2092 copy.dimpleEnd = this.dimpleEnd;
2093 copy.skew = this.skew;
2094 copy.holeSizeX = this.holeSizeX;
2095 copy.holeSizeY = this.holeSizeY;
2096 copy.taperX = this.taperX;
2097 copy.taperY = this.taperY;
2098 copy.radius = this.radius;
2099 copy.revolutions = this.revolutions;
2100 copy.stepsPerRevolution = this.stepsPerRevolution;
2101 copy.calcVertexNormals = this.calcVertexNormals;
2102 copy.normalsProcessed = this.normalsProcessed;
2103 copy.viewerMode = this.viewerMode;
2104 copy.numPrimFaces = this.numPrimFaces;
2105 copy.errorMessage = this.errorMessage;
2106
2107 copy.coords = new List<Coord>(this.coords);
2108 copy.faces = new List<Face>(this.faces);
2109 copy.viewerFaces = new List<ViewerFace>(this.viewerFaces);
2110 copy.normals = new List<Coord>(this.normals);
2111
2112 return copy;
2113 }
2114
2115 /// <summary>
2116 /// Calculate surface normals for all of the faces in the list of faces in this mesh
2117 /// </summary>
2118 public void CalcNormals()
2119 {
2120 if (normalsProcessed)
2121 return;
2122
2123 normalsProcessed = true;
2124
2125 int numFaces = faces.Count;
2126
2127 if (!this.calcVertexNormals)
2128 this.normals = new List<Coord>();
2129
2130 for (int i = 0; i < numFaces; i++)
2131 {
2132 Face face = faces[i];
2133
2134 this.normals.Add(SurfaceNormal(i).Normalize());
2135
2136 int normIndex = normals.Count - 1;
2137 face.n1 = normIndex;
2138 face.n2 = normIndex;
2139 face.n3 = normIndex;
2140
2141 this.faces[i] = face;
2142 }
2143 }
2144
2145 /// <summary>
2146 /// Adds a value to each XYZ vertex coordinate in the mesh
2147 /// </summary>
2148 /// <param name="x"></param>
2149 /// <param name="y"></param>
2150 /// <param name="z"></param>
2151 public void AddPos(float x, float y, float z)
2152 {
2153 int i;
2154 int numVerts = this.coords.Count;
2155 Coord vert;
2156
2157 for (i = 0; i < numVerts; i++)
2158 {
2159 vert = this.coords[i];
2160 vert.X += x;
2161 vert.Y += y;
2162 vert.Z += z;
2163 this.coords[i] = vert;
2164 }
2165
2166 if (this.viewerFaces != null)
2167 {
2168 int numViewerFaces = this.viewerFaces.Count;
2169
2170 for (i = 0; i < numViewerFaces; i++)
2171 {
2172 ViewerFace v = this.viewerFaces[i];
2173 v.AddPos(x, y, z);
2174 this.viewerFaces[i] = v;
2175 }
2176 }
2177 }
2178
2179 /// <summary>
2180 /// Rotates the mesh
2181 /// </summary>
2182 /// <param name="q"></param>
2183 public void AddRot(Quat q)
2184 {
2185 int i;
2186 int numVerts = this.coords.Count;
2187
2188 for (i = 0; i < numVerts; i++)
2189 this.coords[i] *= q;
2190
2191 if (this.normals != null)
2192 {
2193 int numNormals = this.normals.Count;
2194 for (i = 0; i < numNormals; i++)
2195 this.normals[i] *= q;
2196 }
2197
2198 if (this.viewerFaces != null)
2199 {
2200 int numViewerFaces = this.viewerFaces.Count;
2201
2202 for (i = 0; i < numViewerFaces; i++)
2203 {
2204 ViewerFace v = this.viewerFaces[i];
2205 v.v1 *= q;
2206 v.v2 *= q;
2207 v.v3 *= q;
2208
2209 v.n1 *= q;
2210 v.n2 *= q;
2211 v.n3 *= q;
2212 this.viewerFaces[i] = v;
2213 }
2214 }
2215 }
2216
2217#if VERTEX_INDEXER
2218 public VertexIndexer GetVertexIndexer()
2219 {
2220 if (this.viewerMode && this.viewerFaces.Count > 0)
2221 return new VertexIndexer(this);
2222 return null;
2223 }
2224#endif
2225
2226 /// <summary>
2227 /// Scales the mesh
2228 /// </summary>
2229 /// <param name="x"></param>
2230 /// <param name="y"></param>
2231 /// <param name="z"></param>
2232 public void Scale(float x, float y, float z)
2233 {
2234 int i;
2235 int numVerts = this.coords.Count;
2236 //Coord vert;
2237
2238 Coord m = new Coord(x, y, z);
2239 for (i = 0; i < numVerts; i++)
2240 this.coords[i] *= m;
2241
2242 if (this.viewerFaces != null)
2243 {
2244 int numViewerFaces = this.viewerFaces.Count;
2245 for (i = 0; i < numViewerFaces; i++)
2246 {
2247 ViewerFace v = this.viewerFaces[i];
2248 v.v1 *= m;
2249 v.v2 *= m;
2250 v.v3 *= m;
2251 this.viewerFaces[i] = v;
2252 }
2253
2254 }
2255
2256 }
2257
2258 /// <summary>
2259 /// Dumps the mesh to a Blender compatible "Raw" format file
2260 /// </summary>
2261 /// <param name="path"></param>
2262 /// <param name="name"></param>
2263 /// <param name="title"></param>
2264 public void DumpRaw(String path, String name, String title)
2265 {
2266 if (path == null)
2267 return;
2268 String fileName = name + "_" + title + ".raw";
2269 String completePath = System.IO.Path.Combine(path, fileName);
2270 StreamWriter sw = new StreamWriter(completePath);
2271
2272 for (int i = 0; i < this.faces.Count; i++)
2273 {
2274 string s = this.coords[this.faces[i].v1].ToString();
2275 s += " " + this.coords[this.faces[i].v2].ToString();
2276 s += " " + this.coords[this.faces[i].v3].ToString();
2277
2278 sw.WriteLine(s);
2279 }
2280
2281 sw.Close();
2282 }
2283 }
2284}
diff --git a/OpenSim/Region/Physics/UbitMeshing/SculptMap.cs b/OpenSim/Region/Physics/UbitMeshing/SculptMap.cs
new file mode 100644
index 0000000..b3d9cb6
--- /dev/null
+++ b/OpenSim/Region/Physics/UbitMeshing/SculptMap.cs
@@ -0,0 +1,197 @@
1/*
2 * Copyright (c) Contributors
3 * See CONTRIBUTORS.TXT for a full list of copyright holders.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 * * Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * * Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
12 * * Neither the name of the OpenSimulator Project nor the
13 * names of its contributors may be used to endorse or promote products
14 * derived from this software without specific prior written permission.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
17 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
20 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28// to build without references to System.Drawing, comment this out
29#define SYSTEM_DRAWING
30
31using System;
32using System.Collections.Generic;
33using System.Text;
34
35#if SYSTEM_DRAWING
36using System.Drawing;
37using System.Drawing.Imaging;
38
39namespace PrimMesher
40{
41 public class SculptMap
42 {
43 public int width;
44 public int height;
45 public byte[] redBytes;
46 public byte[] greenBytes;
47 public byte[] blueBytes;
48
49 public SculptMap()
50 {
51 }
52
53 public SculptMap(Bitmap bm, int lod)
54 {
55 int bmW = bm.Width;
56 int bmH = bm.Height;
57
58 if (bmW == 0 || bmH == 0)
59 throw new Exception("SculptMap: bitmap has no data");
60
61 int numLodPixels = lod * lod; // (32 * 2)^2 = 64^2 pixels for default sculpt map image
62
63 bool smallMap = bmW * bmH <= numLodPixels;
64 bool needsScaling = false;
65
66 width = bmW;
67 height = bmH;
68 while (width * height > numLodPixels * 4)
69 {
70 width >>= 1;
71 height >>= 1;
72 needsScaling = true;
73 }
74
75 try
76 {
77 if (needsScaling)
78 bm = ScaleImage(bm, width, height);
79 }
80
81 catch (Exception e)
82 {
83 throw new Exception("Exception in ScaleImage(): e: " + e.ToString());
84 }
85
86 if (width * height > numLodPixels)
87 {
88 width >>= 1;
89 height >>= 1;
90 }
91
92 int numBytes = (width + 1) * (height + 1);
93 redBytes = new byte[numBytes];
94 greenBytes = new byte[numBytes];
95 blueBytes = new byte[numBytes];
96
97 int byteNdx = 0;
98
99 try
100 {
101 for (int y = 0; y <= height; y++)
102 {
103 for (int x = 0; x <= width; x++)
104 {
105 Color c;
106
107 if (smallMap)
108 c = bm.GetPixel(x < width ? x : x - 1,
109 y < height ? y : y - 1);
110 else
111 c = bm.GetPixel(x < width ? x * 2 : x * 2 - 1,
112 y < height ? y * 2 : y * 2 - 1);
113
114 redBytes[byteNdx] = c.R;
115 greenBytes[byteNdx] = c.G;
116 blueBytes[byteNdx] = c.B;
117
118 ++byteNdx;
119 }
120 }
121 }
122 catch (Exception e)
123 {
124 throw new Exception("Caught exception processing byte arrays in SculptMap(): e: " + e.ToString());
125 }
126
127 width++;
128 height++;
129 }
130
131 public List<List<Coord>> ToRows(bool mirror)
132 {
133 int numRows = height;
134 int numCols = width;
135
136 List<List<Coord>> rows = new List<List<Coord>>(numRows);
137
138 float pixScale = 1.0f / 255;
139
140 int rowNdx, colNdx;
141 int smNdx = 0;
142
143
144 for (rowNdx = 0; rowNdx < numRows; rowNdx++)
145 {
146 List<Coord> row = new List<Coord>(numCols);
147 for (colNdx = 0; colNdx < numCols; colNdx++)
148 {
149
150 if (mirror)
151 row.Add(new Coord(-((float)redBytes[smNdx] * pixScale - 0.5f), ((float)greenBytes[smNdx] * pixScale - 0.5f), (float)blueBytes[smNdx] * pixScale - 0.5f));
152 else
153 row.Add(new Coord((float)redBytes[smNdx] * pixScale - 0.5f, (float)greenBytes[smNdx] * pixScale - 0.5f, (float)blueBytes[smNdx] * pixScale - 0.5f));
154
155 ++smNdx;
156 }
157 rows.Add(row);
158 }
159 return rows;
160 }
161
162 private Bitmap ScaleImage(Bitmap srcImage, int destWidth, int destHeight)
163 {
164
165 Bitmap scaledImage = new Bitmap(destWidth, destHeight, PixelFormat.Format24bppRgb);
166
167 Color c;
168 float xscale = srcImage.Width / destWidth;
169 float yscale = srcImage.Height / destHeight;
170
171 float sy = 0.5f;
172 for (int y = 0; y < destHeight; y++)
173 {
174 float sx = 0.5f;
175 for (int x = 0; x < destWidth; x++)
176 {
177 try
178 {
179 c = srcImage.GetPixel((int)(sx), (int)(sy));
180 scaledImage.SetPixel(x, y, Color.FromArgb(c.R, c.G, c.B));
181 }
182 catch (IndexOutOfRangeException)
183 {
184 }
185
186 sx += xscale;
187 }
188 sy += yscale;
189 }
190 srcImage.Dispose();
191 return scaledImage;
192 }
193
194 }
195
196 }
197#endif
diff --git a/OpenSim/Region/Physics/UbitMeshing/SculptMesh.cs b/OpenSim/Region/Physics/UbitMeshing/SculptMesh.cs
new file mode 100644
index 0000000..4a7f3ad
--- /dev/null
+++ b/OpenSim/Region/Physics/UbitMeshing/SculptMesh.cs
@@ -0,0 +1,646 @@
1/*
2 * Copyright (c) Contributors
3 * See CONTRIBUTORS.TXT for a full list of copyright holders.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 * * Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * * Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
12 * * Neither the name of the OpenSimulator Project nor the
13 * names of its contributors may be used to endorse or promote products
14 * derived from this software without specific prior written permission.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
17 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
20 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28// to build without references to System.Drawing, comment this out
29#define SYSTEM_DRAWING
30
31using System;
32using System.Collections.Generic;
33using System.Text;
34using System.IO;
35
36#if SYSTEM_DRAWING
37using System.Drawing;
38using System.Drawing.Imaging;
39#endif
40
41namespace PrimMesher
42{
43
44 public class SculptMesh
45 {
46 public List<Coord> coords;
47 public List<Face> faces;
48
49 public List<ViewerFace> viewerFaces;
50 public List<Coord> normals;
51 public List<UVCoord> uvs;
52
53 public enum SculptType { sphere = 1, torus = 2, plane = 3, cylinder = 4 };
54
55#if SYSTEM_DRAWING
56
57 public SculptMesh SculptMeshFromFile(string fileName, SculptType sculptType, int lod, bool viewerMode)
58 {
59 Bitmap bitmap = (Bitmap)Bitmap.FromFile(fileName);
60 SculptMesh sculptMesh = new SculptMesh(bitmap, sculptType, lod, viewerMode);
61 bitmap.Dispose();
62 return sculptMesh;
63 }
64
65
66 public SculptMesh(string fileName, int sculptType, int lod, int viewerMode, int mirror, int invert)
67 {
68 Bitmap bitmap = (Bitmap)Bitmap.FromFile(fileName);
69 _SculptMesh(bitmap, (SculptType)sculptType, lod, viewerMode != 0, mirror != 0, invert != 0);
70 bitmap.Dispose();
71 }
72#endif
73
74 /// <summary>
75 /// ** Experimental ** May disappear from future versions ** not recommeneded for use in applications
76 /// Construct a sculpt mesh from a 2D array of floats
77 /// </summary>
78 /// <param name="zMap"></param>
79 /// <param name="xBegin"></param>
80 /// <param name="xEnd"></param>
81 /// <param name="yBegin"></param>
82 /// <param name="yEnd"></param>
83 /// <param name="viewerMode"></param>
84 public SculptMesh(float[,] zMap, float xBegin, float xEnd, float yBegin, float yEnd, bool viewerMode)
85 {
86 float xStep, yStep;
87 float uStep, vStep;
88
89 int numYElements = zMap.GetLength(0);
90 int numXElements = zMap.GetLength(1);
91
92 try
93 {
94 xStep = (xEnd - xBegin) / (float)(numXElements - 1);
95 yStep = (yEnd - yBegin) / (float)(numYElements - 1);
96
97 uStep = 1.0f / (numXElements - 1);
98 vStep = 1.0f / (numYElements - 1);
99 }
100 catch (DivideByZeroException)
101 {
102 return;
103 }
104
105 coords = new List<Coord>();
106 faces = new List<Face>();
107 normals = new List<Coord>();
108 uvs = new List<UVCoord>();
109
110 viewerFaces = new List<ViewerFace>();
111
112 int p1, p2, p3, p4;
113
114 int x, y;
115 int xStart = 0, yStart = 0;
116
117 for (y = yStart; y < numYElements; y++)
118 {
119 int rowOffset = y * numXElements;
120
121 for (x = xStart; x < numXElements; x++)
122 {
123 /*
124 * p1-----p2
125 * | \ f2 |
126 * | \ |
127 * | f1 \|
128 * p3-----p4
129 */
130
131 p4 = rowOffset + x;
132 p3 = p4 - 1;
133
134 p2 = p4 - numXElements;
135 p1 = p3 - numXElements;
136
137 Coord c = new Coord(xBegin + x * xStep, yBegin + y * yStep, zMap[y, x]);
138 this.coords.Add(c);
139 if (viewerMode)
140 {
141 this.normals.Add(new Coord());
142 this.uvs.Add(new UVCoord(uStep * x, 1.0f - vStep * y));
143 }
144
145 if (y > 0 && x > 0)
146 {
147 Face f1, f2;
148
149 if (viewerMode)
150 {
151 f1 = new Face(p1, p4, p3, p1, p4, p3);
152 f1.uv1 = p1;
153 f1.uv2 = p4;
154 f1.uv3 = p3;
155
156 f2 = new Face(p1, p2, p4, p1, p2, p4);
157 f2.uv1 = p1;
158 f2.uv2 = p2;
159 f2.uv3 = p4;
160 }
161 else
162 {
163 f1 = new Face(p1, p4, p3);
164 f2 = new Face(p1, p2, p4);
165 }
166
167 this.faces.Add(f1);
168 this.faces.Add(f2);
169 }
170 }
171 }
172
173 if (viewerMode)
174 calcVertexNormals(SculptType.plane, numXElements, numYElements);
175 }
176
177#if SYSTEM_DRAWING
178 public SculptMesh(Bitmap sculptBitmap, SculptType sculptType, int lod, bool viewerMode)
179 {
180 _SculptMesh(sculptBitmap, sculptType, lod, viewerMode, false, false);
181 }
182
183 public SculptMesh(Bitmap sculptBitmap, SculptType sculptType, int lod, bool viewerMode, bool mirror, bool invert)
184 {
185 _SculptMesh(sculptBitmap, sculptType, lod, viewerMode, mirror, invert);
186 }
187#endif
188
189 public SculptMesh(List<List<Coord>> rows, SculptType sculptType, bool viewerMode, bool mirror, bool invert)
190 {
191 _SculptMesh(rows, sculptType, viewerMode, mirror, invert);
192 }
193
194#if SYSTEM_DRAWING
195 /// <summary>
196 /// converts a bitmap to a list of lists of coords, while scaling the image.
197 /// the scaling is done in floating point so as to allow for reduced vertex position
198 /// quantization as the position will be averaged between pixel values. this routine will
199 /// likely fail if the bitmap width and height are not powers of 2.
200 /// </summary>
201 /// <param name="bitmap"></param>
202 /// <param name="scale"></param>
203 /// <param name="mirror"></param>
204 /// <returns></returns>
205 private List<List<Coord>> bitmap2Coords(Bitmap bitmap, int scale, bool mirror)
206 {
207 int numRows = bitmap.Height / scale;
208 int numCols = bitmap.Width / scale;
209 List<List<Coord>> rows = new List<List<Coord>>(numRows);
210
211 float pixScale = 1.0f / (scale * scale);
212 pixScale /= 255;
213
214 int imageX, imageY = 0;
215
216 int rowNdx, colNdx;
217
218 for (rowNdx = 0; rowNdx < numRows; rowNdx++)
219 {
220 List<Coord> row = new List<Coord>(numCols);
221 for (colNdx = 0; colNdx < numCols; colNdx++)
222 {
223 imageX = colNdx * scale;
224 int imageYStart = rowNdx * scale;
225 int imageYEnd = imageYStart + scale;
226 int imageXEnd = imageX + scale;
227 float rSum = 0.0f;
228 float gSum = 0.0f;
229 float bSum = 0.0f;
230 for (; imageX < imageXEnd; imageX++)
231 {
232 for (imageY = imageYStart; imageY < imageYEnd; imageY++)
233 {
234 Color c = bitmap.GetPixel(imageX, imageY);
235 if (c.A != 255)
236 {
237 bitmap.SetPixel(imageX, imageY, Color.FromArgb(255, c.R, c.G, c.B));
238 c = bitmap.GetPixel(imageX, imageY);
239 }
240 rSum += c.R;
241 gSum += c.G;
242 bSum += c.B;
243 }
244 }
245 if (mirror)
246 row.Add(new Coord(-(rSum * pixScale - 0.5f), gSum * pixScale - 0.5f, bSum * pixScale - 0.5f));
247 else
248 row.Add(new Coord(rSum * pixScale - 0.5f, gSum * pixScale - 0.5f, bSum * pixScale - 0.5f));
249
250 }
251 rows.Add(row);
252 }
253 return rows;
254 }
255
256 private List<List<Coord>> bitmap2CoordsSampled(Bitmap bitmap, int scale, bool mirror)
257 {
258 int numRows = bitmap.Height / scale;
259 int numCols = bitmap.Width / scale;
260 List<List<Coord>> rows = new List<List<Coord>>(numRows);
261
262 float pixScale = 1.0f / 256.0f;
263
264 int imageX, imageY = 0;
265
266 int rowNdx, colNdx;
267
268 for (rowNdx = 0; rowNdx <= numRows; rowNdx++)
269 {
270 List<Coord> row = new List<Coord>(numCols);
271 imageY = rowNdx * scale;
272 if (rowNdx == numRows) imageY--;
273 for (colNdx = 0; colNdx <= numCols; colNdx++)
274 {
275 imageX = colNdx * scale;
276 if (colNdx == numCols) imageX--;
277
278 Color c = bitmap.GetPixel(imageX, imageY);
279 if (c.A != 255)
280 {
281 bitmap.SetPixel(imageX, imageY, Color.FromArgb(255, c.R, c.G, c.B));
282 c = bitmap.GetPixel(imageX, imageY);
283 }
284
285 if (mirror)
286 row.Add(new Coord(-(c.R * pixScale - 0.5f), c.G * pixScale - 0.5f, c.B * pixScale - 0.5f));
287 else
288 row.Add(new Coord(c.R * pixScale - 0.5f, c.G * pixScale - 0.5f, c.B * pixScale - 0.5f));
289
290 }
291 rows.Add(row);
292 }
293 return rows;
294 }
295
296
297 void _SculptMesh(Bitmap sculptBitmap, SculptType sculptType, int lod, bool viewerMode, bool mirror, bool invert)
298 {
299 _SculptMesh(new SculptMap(sculptBitmap, lod).ToRows(mirror), sculptType, viewerMode, mirror, invert);
300 }
301#endif
302
303 void _SculptMesh(List<List<Coord>> rows, SculptType sculptType, bool viewerMode, bool mirror, bool invert)
304 {
305 coords = new List<Coord>();
306 faces = new List<Face>();
307 normals = new List<Coord>();
308 uvs = new List<UVCoord>();
309
310 sculptType = (SculptType)(((int)sculptType) & 0x07);
311
312 if (mirror)
313 invert = !invert;
314
315 viewerFaces = new List<ViewerFace>();
316
317 int width = rows[0].Count;
318
319 int p1, p2, p3, p4;
320
321 int imageX, imageY;
322
323 if (sculptType != SculptType.plane)
324 {
325 if (rows.Count % 2 == 0)
326 {
327 for (int rowNdx = 0; rowNdx < rows.Count; rowNdx++)
328 rows[rowNdx].Add(rows[rowNdx][0]);
329 }
330 else
331 {
332 int lastIndex = rows[0].Count - 1;
333
334 for (int i = 0; i < rows.Count; i++)
335 rows[i][0] = rows[i][lastIndex];
336 }
337 }
338
339 Coord topPole = rows[0][width / 2];
340 Coord bottomPole = rows[rows.Count - 1][width / 2];
341
342 if (sculptType == SculptType.sphere)
343 {
344 if (rows.Count % 2 == 0)
345 {
346 int count = rows[0].Count;
347 List<Coord> topPoleRow = new List<Coord>(count);
348 List<Coord> bottomPoleRow = new List<Coord>(count);
349
350 for (int i = 0; i < count; i++)
351 {
352 topPoleRow.Add(topPole);
353 bottomPoleRow.Add(bottomPole);
354 }
355 rows.Insert(0, topPoleRow);
356 rows.Add(bottomPoleRow);
357 }
358 else
359 {
360 int count = rows[0].Count;
361
362 List<Coord> topPoleRow = rows[0];
363 List<Coord> bottomPoleRow = rows[rows.Count - 1];
364
365 for (int i = 0; i < count; i++)
366 {
367 topPoleRow[i] = topPole;
368 bottomPoleRow[i] = bottomPole;
369 }
370 }
371 }
372
373 if (sculptType == SculptType.torus)
374 rows.Add(rows[0]);
375
376 int coordsDown = rows.Count;
377 int coordsAcross = rows[0].Count;
378// int lastColumn = coordsAcross - 1;
379
380 float widthUnit = 1.0f / (coordsAcross - 1);
381 float heightUnit = 1.0f / (coordsDown - 1);
382
383 for (imageY = 0; imageY < coordsDown; imageY++)
384 {
385 int rowOffset = imageY * coordsAcross;
386
387 for (imageX = 0; imageX < coordsAcross; imageX++)
388 {
389 /*
390 * p1-----p2
391 * | \ f2 |
392 * | \ |
393 * | f1 \|
394 * p3-----p4
395 */
396
397 p4 = rowOffset + imageX;
398 p3 = p4 - 1;
399
400 p2 = p4 - coordsAcross;
401 p1 = p3 - coordsAcross;
402
403 this.coords.Add(rows[imageY][imageX]);
404 if (viewerMode)
405 {
406 this.normals.Add(new Coord());
407 this.uvs.Add(new UVCoord(widthUnit * imageX, heightUnit * imageY));
408 }
409
410 if (imageY > 0 && imageX > 0)
411 {
412 Face f1, f2;
413
414 if (viewerMode)
415 {
416 if (invert)
417 {
418 f1 = new Face(p1, p4, p3, p1, p4, p3);
419 f1.uv1 = p1;
420 f1.uv2 = p4;
421 f1.uv3 = p3;
422
423 f2 = new Face(p1, p2, p4, p1, p2, p4);
424 f2.uv1 = p1;
425 f2.uv2 = p2;
426 f2.uv3 = p4;
427 }
428 else
429 {
430 f1 = new Face(p1, p3, p4, p1, p3, p4);
431 f1.uv1 = p1;
432 f1.uv2 = p3;
433 f1.uv3 = p4;
434
435 f2 = new Face(p1, p4, p2, p1, p4, p2);
436 f2.uv1 = p1;
437 f2.uv2 = p4;
438 f2.uv3 = p2;
439 }
440 }
441 else
442 {
443 if (invert)
444 {
445 f1 = new Face(p1, p4, p3);
446 f2 = new Face(p1, p2, p4);
447 }
448 else
449 {
450 f1 = new Face(p1, p3, p4);
451 f2 = new Face(p1, p4, p2);
452 }
453 }
454
455 this.faces.Add(f1);
456 this.faces.Add(f2);
457 }
458 }
459 }
460
461 if (viewerMode)
462 calcVertexNormals(sculptType, coordsAcross, coordsDown);
463 }
464
465 /// <summary>
466 /// Duplicates a SculptMesh object. All object properties are copied by value, including lists.
467 /// </summary>
468 /// <returns></returns>
469 public SculptMesh Copy()
470 {
471 return new SculptMesh(this);
472 }
473
474 public SculptMesh(SculptMesh sm)
475 {
476 coords = new List<Coord>(sm.coords);
477 faces = new List<Face>(sm.faces);
478 viewerFaces = new List<ViewerFace>(sm.viewerFaces);
479 normals = new List<Coord>(sm.normals);
480 uvs = new List<UVCoord>(sm.uvs);
481 }
482
483 private void calcVertexNormals(SculptType sculptType, int xSize, int ySize)
484 { // compute vertex normals by summing all the surface normals of all the triangles sharing
485 // each vertex and then normalizing
486 int numFaces = this.faces.Count;
487 for (int i = 0; i < numFaces; i++)
488 {
489 Face face = this.faces[i];
490 Coord surfaceNormal = face.SurfaceNormal(this.coords);
491 this.normals[face.n1] += surfaceNormal;
492 this.normals[face.n2] += surfaceNormal;
493 this.normals[face.n3] += surfaceNormal;
494 }
495
496 int numNormals = this.normals.Count;
497 for (int i = 0; i < numNormals; i++)
498 this.normals[i] = this.normals[i].Normalize();
499
500 if (sculptType != SculptType.plane)
501 { // blend the vertex normals at the cylinder seam
502 for (int y = 0; y < ySize; y++)
503 {
504 int rowOffset = y * xSize;
505
506 this.normals[rowOffset] = this.normals[rowOffset + xSize - 1] = (this.normals[rowOffset] + this.normals[rowOffset + xSize - 1]).Normalize();
507 }
508 }
509
510 foreach (Face face in this.faces)
511 {
512 ViewerFace vf = new ViewerFace(0);
513 vf.v1 = this.coords[face.v1];
514 vf.v2 = this.coords[face.v2];
515 vf.v3 = this.coords[face.v3];
516
517 vf.coordIndex1 = face.v1;
518 vf.coordIndex2 = face.v2;
519 vf.coordIndex3 = face.v3;
520
521 vf.n1 = this.normals[face.n1];
522 vf.n2 = this.normals[face.n2];
523 vf.n3 = this.normals[face.n3];
524
525 vf.uv1 = this.uvs[face.uv1];
526 vf.uv2 = this.uvs[face.uv2];
527 vf.uv3 = this.uvs[face.uv3];
528
529 this.viewerFaces.Add(vf);
530 }
531 }
532
533 /// <summary>
534 /// Adds a value to each XYZ vertex coordinate in the mesh
535 /// </summary>
536 /// <param name="x"></param>
537 /// <param name="y"></param>
538 /// <param name="z"></param>
539 public void AddPos(float x, float y, float z)
540 {
541 int i;
542 int numVerts = this.coords.Count;
543 Coord vert;
544
545 for (i = 0; i < numVerts; i++)
546 {
547 vert = this.coords[i];
548 vert.X += x;
549 vert.Y += y;
550 vert.Z += z;
551 this.coords[i] = vert;
552 }
553
554 if (this.viewerFaces != null)
555 {
556 int numViewerFaces = this.viewerFaces.Count;
557
558 for (i = 0; i < numViewerFaces; i++)
559 {
560 ViewerFace v = this.viewerFaces[i];
561 v.AddPos(x, y, z);
562 this.viewerFaces[i] = v;
563 }
564 }
565 }
566
567 /// <summary>
568 /// Rotates the mesh
569 /// </summary>
570 /// <param name="q"></param>
571 public void AddRot(Quat q)
572 {
573 int i;
574 int numVerts = this.coords.Count;
575
576 for (i = 0; i < numVerts; i++)
577 this.coords[i] *= q;
578
579 int numNormals = this.normals.Count;
580 for (i = 0; i < numNormals; i++)
581 this.normals[i] *= q;
582
583 if (this.viewerFaces != null)
584 {
585 int numViewerFaces = this.viewerFaces.Count;
586
587 for (i = 0; i < numViewerFaces; i++)
588 {
589 ViewerFace v = this.viewerFaces[i];
590 v.v1 *= q;
591 v.v2 *= q;
592 v.v3 *= q;
593
594 v.n1 *= q;
595 v.n2 *= q;
596 v.n3 *= q;
597
598 this.viewerFaces[i] = v;
599 }
600 }
601 }
602
603 public void Scale(float x, float y, float z)
604 {
605 int i;
606 int numVerts = this.coords.Count;
607
608 Coord m = new Coord(x, y, z);
609 for (i = 0; i < numVerts; i++)
610 this.coords[i] *= m;
611
612 if (this.viewerFaces != null)
613 {
614 int numViewerFaces = this.viewerFaces.Count;
615 for (i = 0; i < numViewerFaces; i++)
616 {
617 ViewerFace v = this.viewerFaces[i];
618 v.v1 *= m;
619 v.v2 *= m;
620 v.v3 *= m;
621 this.viewerFaces[i] = v;
622 }
623 }
624 }
625
626 public void DumpRaw(String path, String name, String title)
627 {
628 if (path == null)
629 return;
630 String fileName = name + "_" + title + ".raw";
631 String completePath = System.IO.Path.Combine(path, fileName);
632 StreamWriter sw = new StreamWriter(completePath);
633
634 for (int i = 0; i < this.faces.Count; i++)
635 {
636 string s = this.coords[this.faces[i].v1].ToString();
637 s += " " + this.coords[this.faces[i].v2].ToString();
638 s += " " + this.coords[this.faces[i].v3].ToString();
639
640 sw.WriteLine(s);
641 }
642
643 sw.Close();
644 }
645 }
646}
diff --git a/OpenSim/Region/Physics/UbitOdePlugin/AssemblyInfo.cs b/OpenSim/Region/Physics/UbitOdePlugin/AssemblyInfo.cs
new file mode 100644
index 0000000..d46341b
--- /dev/null
+++ b/OpenSim/Region/Physics/UbitOdePlugin/AssemblyInfo.cs
@@ -0,0 +1,58 @@
1/*
2 * Copyright (c) Contributors, http://opensimulator.org/
3 * See CONTRIBUTORS.TXT for a full list of copyright holders.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 * * Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * * Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
12 * * Neither the name of the OpenSimulator Project nor the
13 * names of its contributors may be used to endorse or promote products
14 * derived from this software without specific prior written permission.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
17 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
20 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28using System.Reflection;
29using System.Runtime.InteropServices;
30
31// Information about this assembly is defined by the following
32// attributes.
33//
34// change them to the information which is associated with the assembly
35// you compile.
36
37[assembly : AssemblyTitle("OdePlugin")]
38[assembly : AssemblyDescription("Ubit Variation")]
39[assembly : AssemblyConfiguration("")]
40[assembly : AssemblyCompany("http://opensimulator.org")]
41[assembly : AssemblyProduct("OdePlugin")]
42[assembly : AssemblyCopyright("Copyright (c) OpenSimulator.org Developers 2007-2009")]
43[assembly : AssemblyTrademark("")]
44[assembly : AssemblyCulture("")]
45
46// This sets the default COM visibility of types in the assembly to invisible.
47// If you need to expose a type to COM, use [ComVisible(true)] on that type.
48
49[assembly : ComVisible(false)]
50
51// The assembly version has following format :
52//
53// Major.Minor.Build.Revision
54//
55// You can specify all values by your own or you can build default build and revision
56// numbers with the '*' character (the default):
57
58[assembly : AssemblyVersion("0.6.5.*")]
diff --git a/OpenSim/Region/Physics/UbitOdePlugin/ODECharacter.cs b/OpenSim/Region/Physics/UbitOdePlugin/ODECharacter.cs
new file mode 100644
index 0000000..6e4e41f
--- /dev/null
+++ b/OpenSim/Region/Physics/UbitOdePlugin/ODECharacter.cs
@@ -0,0 +1,1470 @@
1/*
2 * Copyright (c) Contributors, http://opensimulator.org/
3 * See CONTRIBUTORS.TXT for a full list of copyright holders.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 * * Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * * Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
12 * * Neither the name of the OpenSimulator Project nor the
13 * names of its contributors may be used to endorse or promote products
14 * derived from this software without specific prior written permission.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
17 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
20 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28
29// Revision by Ubit 2011/12
30
31using System;
32using System.Collections.Generic;
33using System.Reflection;
34using OpenMetaverse;
35using OdeAPI;
36using OpenSim.Framework;
37using OpenSim.Region.Physics.Manager;
38using log4net;
39
40namespace OpenSim.Region.Physics.OdePlugin
41{
42 /// <summary>
43 /// Various properties that ODE uses for AMotors but isn't exposed in ODE.NET so we must define them ourselves.
44 /// </summary>
45
46 public enum dParam : int
47 {
48 LowStop = 0,
49 HiStop = 1,
50 Vel = 2,
51 FMax = 3,
52 FudgeFactor = 4,
53 Bounce = 5,
54 CFM = 6,
55 StopERP = 7,
56 StopCFM = 8,
57 LoStop2 = 256,
58 HiStop2 = 257,
59 Vel2 = 258,
60 FMax2 = 259,
61 StopERP2 = 7 + 256,
62 StopCFM2 = 8 + 256,
63 LoStop3 = 512,
64 HiStop3 = 513,
65 Vel3 = 514,
66 FMax3 = 515,
67 StopERP3 = 7 + 512,
68 StopCFM3 = 8 + 512
69 }
70
71 public class OdeCharacter : PhysicsActor
72 {
73 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
74
75 private Vector3 _position;
76 private Vector3 _zeroPosition;
77 private bool _zeroFlag = false;
78 private Vector3 _velocity;
79 private Vector3 _target_velocity;
80 private Vector3 _acceleration;
81 private Vector3 m_rotationalVelocity;
82 private float m_mass = 80f;
83 public float m_density = 60f;
84 private bool m_pidControllerActive = true;
85 public float PID_D = 800.0f;
86 public float PID_P = 900.0f;
87 //private static float POSTURE_SERVO = 10000.0f;
88 public float CAPSULE_RADIUS = 0.37f;
89 public float CAPSULE_LENGTH = 2.140599f;
90 public float walkDivisor = 1.3f;
91 public float runDivisor = 0.8f;
92 private bool flying = false;
93 private bool m_iscolliding = false;
94 private bool m_iscollidingGround = false;
95 private bool m_iscollidingObj = false;
96 private bool m_alwaysRun = false;
97 private int m_requestedUpdateFrequency = 0;
98 public uint m_localID = 0;
99 public bool m_returnCollisions = false;
100 // taints and their non-tainted counterparts
101 public bool m_isPhysical = false; // the current physical status
102 public float MinimumGroundFlightOffset = 3f;
103
104 private float m_buoyancy = 0f;
105
106 private bool m_freemove = false;
107 // private CollisionLocker ode;
108
109 private string m_name = String.Empty;
110 // other filter control
111 int m_colliderfilter = 0;
112 int m_colliderGroundfilter = 0;
113 int m_colliderObjectfilter = 0;
114
115 // Default we're a Character
116 private CollisionCategories m_collisionCategories = (CollisionCategories.Character);
117
118 // Default, Collide with Other Geometries, spaces, bodies and characters.
119 private CollisionCategories m_collisionFlags = (CollisionCategories.Character
120 | CollisionCategories.Geom
121 | CollisionCategories.VolumeDtc
122 );
123 // we do land collisions not ode | CollisionCategories.Land);
124 public IntPtr Body = IntPtr.Zero;
125 private OdeScene _parent_scene;
126 public IntPtr Shell = IntPtr.Zero;
127 public IntPtr Amotor = IntPtr.Zero;
128 public d.Mass ShellMass;
129// public bool collidelock = false;
130
131 public int m_eventsubscription = 0;
132 private int m_cureventsubscription = 0;
133 private CollisionEventUpdate CollisionEventsThisFrame = null;
134 private bool SentEmptyCollisionsEvent;
135
136 // unique UUID of this character object
137 public UUID m_uuid;
138 public bool bad = false;
139
140 float mu;
141
142 public OdeCharacter(String avName, OdeScene parent_scene, Vector3 pos, Vector3 size, float pid_d, float pid_p, float capsule_radius, float density, float walk_divisor, float rundivisor)
143 {
144 m_uuid = UUID.Random();
145
146 if (pos.IsFinite())
147 {
148 if (pos.Z > 99999f)
149 {
150 pos.Z = parent_scene.GetTerrainHeightAtXY(127, 127) + 5;
151 }
152 if (pos.Z < -100f) // shouldn't this be 0 ?
153 {
154 pos.Z = parent_scene.GetTerrainHeightAtXY(127, 127) + 5;
155 }
156 _position = pos;
157 }
158 else
159 {
160 _position = new Vector3(((float)_parent_scene.WorldExtents.X * 0.5f), ((float)_parent_scene.WorldExtents.Y * 0.5f), parent_scene.GetTerrainHeightAtXY(128f, 128f) + 10f);
161 m_log.Warn("[PHYSICS]: Got NaN Position on Character Create");
162 }
163
164 _parent_scene = parent_scene;
165
166 PID_D = pid_d;
167 PID_P = pid_p;
168 CAPSULE_RADIUS = capsule_radius;
169 m_density = density;
170 m_mass = 80f; // sure we have a default
171
172 // force lower density for testing
173 m_density = 3.0f;
174
175
176 mu = parent_scene.AvatarFriction;
177
178 walkDivisor = walk_divisor;
179 runDivisor = rundivisor;
180
181 CAPSULE_LENGTH = size.Z * 1.15f - CAPSULE_RADIUS * 2.0f;
182 //m_log.Info("[SIZE]: " + CAPSULE_LENGTH.ToString());
183
184 m_isPhysical = false; // current status: no ODE information exists
185
186 m_name = avName;
187
188 AddChange(changes.Add, null);
189 }
190
191 public override int PhysicsActorType
192 {
193 get { return (int)ActorTypes.Agent; }
194 set { return; }
195 }
196
197 public override void getContactData(ref ContactData cdata)
198 {
199 cdata.mu = mu;
200 cdata.bounce = 0;
201 cdata.softcolide = false;
202 }
203
204 public override bool Building { get; set; }
205
206 /// <summary>
207 /// If this is set, the avatar will move faster
208 /// </summary>
209 public override bool SetAlwaysRun
210 {
211 get { return m_alwaysRun; }
212 set { m_alwaysRun = value; }
213 }
214
215 public override uint LocalID
216 {
217 set { m_localID = value; }
218 }
219
220 public override bool Grabbed
221 {
222 set { return; }
223 }
224
225 public override bool Selected
226 {
227 set { return; }
228 }
229
230 public override float Buoyancy
231 {
232 get { return m_buoyancy; }
233 set { m_buoyancy = value; }
234 }
235
236 public override bool FloatOnWater
237 {
238 set { return; }
239 }
240
241 public override bool IsPhysical
242 {
243 get { return m_isPhysical; }
244 set { return; }
245 }
246
247 public override bool ThrottleUpdates
248 {
249 get { return false; }
250 set { return; }
251 }
252
253 public override bool Flying
254 {
255 get { return flying; }
256 set
257 {
258 flying = value;
259 // m_log.DebugFormat("[PHYSICS]: Set OdeCharacter Flying to {0}", flying);
260 }
261 }
262
263 /// <summary>
264 /// Returns if the avatar is colliding in general.
265 /// This includes the ground and objects and avatar.
266 /// </summary>
267 public override bool IsColliding
268 {
269 get { return (m_iscolliding || m_iscollidingGround); }
270 set
271 {
272 if (value)
273 {
274 m_colliderfilter += 2;
275 if (m_colliderfilter > 2)
276 m_colliderfilter = 2;
277 }
278 else
279 {
280 m_colliderfilter--;
281 if (m_colliderfilter < 0)
282 m_colliderfilter = 0;
283 }
284
285 if (m_colliderfilter == 0)
286 m_iscolliding = false;
287 else
288 {
289 m_pidControllerActive = true;
290 m_iscolliding = true;
291 }
292 }
293 }
294
295 /// <summary>
296 /// Returns if an avatar is colliding with the ground
297 /// </summary>
298 public override bool CollidingGround
299 {
300 get { return m_iscollidingGround; }
301 set
302 {
303 /* we now control this
304 if (value)
305 {
306 m_colliderGroundfilter += 2;
307 if (m_colliderGroundfilter > 2)
308 m_colliderGroundfilter = 2;
309 }
310 else
311 {
312 m_colliderGroundfilter--;
313 if (m_colliderGroundfilter < 0)
314 m_colliderGroundfilter = 0;
315 }
316
317 if (m_colliderGroundfilter == 0)
318 m_iscollidingGround = false;
319 else
320 m_iscollidingGround = true;
321 */
322 }
323
324 }
325
326 /// <summary>
327 /// Returns if the avatar is colliding with an object
328 /// </summary>
329 public override bool CollidingObj
330 {
331 get { return m_iscollidingObj; }
332 set
333 {
334 // Ubit filter this also
335 if (value)
336 {
337 m_colliderObjectfilter += 2;
338 if (m_colliderObjectfilter > 2)
339 m_colliderObjectfilter = 2;
340 }
341 else
342 {
343 m_colliderObjectfilter--;
344 if (m_colliderObjectfilter < 0)
345 m_colliderObjectfilter = 0;
346 }
347
348 if (m_colliderObjectfilter == 0)
349 m_iscollidingObj = false;
350 else
351 m_iscollidingObj = true;
352
353 // m_iscollidingObj = value;
354
355 if (m_iscollidingObj)
356 m_pidControllerActive = false;
357 else
358 m_pidControllerActive = true;
359 }
360 }
361
362 /// <summary>
363 /// turn the PID controller on or off.
364 /// The PID Controller will turn on all by itself in many situations
365 /// </summary>
366 /// <param name="status"></param>
367 public void SetPidStatus(bool status)
368 {
369 m_pidControllerActive = status;
370 }
371
372 public override bool Stopped
373 {
374 get { return _zeroFlag; }
375 }
376
377 /// <summary>
378 /// This 'puts' an avatar somewhere in the physics space.
379 /// Not really a good choice unless you 'know' it's a good
380 /// spot otherwise you're likely to orbit the avatar.
381 /// </summary>
382 public override Vector3 Position
383 {
384 get { return _position; }
385 set
386 {
387 if (value.IsFinite())
388 {
389 if (value.Z > 9999999f)
390 {
391 value.Z = _parent_scene.GetTerrainHeightAtXY(127, 127) + 5;
392 }
393 if (value.Z < -100f)
394 {
395 value.Z = _parent_scene.GetTerrainHeightAtXY(127, 127) + 5;
396 }
397 AddChange(changes.Position, value);
398 }
399 else
400 {
401 m_log.Warn("[PHYSICS]: Got a NaN Position from Scene on a Character");
402 }
403 }
404 }
405
406 public override Vector3 RotationalVelocity
407 {
408 get { return m_rotationalVelocity; }
409 set { m_rotationalVelocity = value; }
410 }
411
412 /// <summary>
413 /// This property sets the height of the avatar only. We use the height to make sure the avatar stands up straight
414 /// and use it to offset landings properly
415 /// </summary>
416 public override Vector3 Size
417 {
418 get {
419 float d = CAPSULE_RADIUS * 2;
420 return new Vector3(d, d, (CAPSULE_LENGTH +d)/1.15f); }
421 set
422 {
423 if (value.IsFinite())
424 {
425 AddChange(changes.Size, value);
426 }
427 else
428 {
429 m_log.Warn("[PHYSICS]: Got a NaN Size from Scene on a Character");
430 }
431 }
432 }
433
434 /// <summary>
435 /// This creates the Avatar's physical Surrogate at the position supplied
436 /// </summary>
437 /// <param name="npositionX"></param>
438 /// <param name="npositionY"></param>
439 /// <param name="npositionZ"></param>
440
441 //
442 /// <summary>
443 /// Uses the capped cyllinder volume formula to calculate the avatar's mass.
444 /// This may be used in calculations in the scene/scenepresence
445 /// </summary>
446 public override float Mass
447 {
448 get
449 {
450 float AVvolume = (float)(Math.PI * CAPSULE_RADIUS * CAPSULE_RADIUS * (1.3333333333f * CAPSULE_RADIUS + CAPSULE_LENGTH));
451 return m_density * AVvolume;
452 }
453 }
454 public override void link(PhysicsActor obj)
455 {
456
457 }
458
459 public override void delink()
460 {
461
462 }
463
464 public override void LockAngularMotion(Vector3 axis)
465 {
466
467 }
468
469
470 public override Vector3 Force
471 {
472 get { return _target_velocity; }
473 set { return; }
474 }
475
476 public override int VehicleType
477 {
478 get { return 0; }
479 set { return; }
480 }
481
482 public override void VehicleFloatParam(int param, float value)
483 {
484
485 }
486
487 public override void VehicleVectorParam(int param, Vector3 value)
488 {
489
490 }
491
492 public override void VehicleRotationParam(int param, Quaternion rotation)
493 {
494
495 }
496
497 public override void VehicleFlags(int param, bool remove)
498 {
499
500 }
501
502 public override void SetVolumeDetect(int param)
503 {
504
505 }
506
507 public override Vector3 CenterOfMass
508 {
509 get
510 {
511 Vector3 pos = _position;
512 return pos;
513 }
514 }
515
516 public override Vector3 GeometricCenter
517 {
518 get
519 {
520 Vector3 pos = _position;
521 return pos;
522 }
523 }
524
525 public override PrimitiveBaseShape Shape
526 {
527 set { return; }
528 }
529
530 public override Vector3 Velocity
531 {
532 get
533 {
534 return _velocity;
535 }
536 set
537 {
538 if (value.IsFinite())
539 {
540 AddChange(changes.Velocity, value);
541 }
542 else
543 {
544 m_log.Warn("[PHYSICS]: Got a NaN velocity from Scene in a Character");
545 }
546 }
547 }
548
549 public override Vector3 Torque
550 {
551 get { return Vector3.Zero; }
552 set { return; }
553 }
554
555 public override float CollisionScore
556 {
557 get { return 0f; }
558 set { }
559 }
560
561 public override bool Kinematic
562 {
563 get { return false; }
564 set { }
565 }
566
567 public override Quaternion Orientation
568 {
569 get { return Quaternion.Identity; }
570 set
571 {
572 }
573 }
574
575 public override Vector3 Acceleration
576 {
577 get { return _acceleration; }
578 set { }
579 }
580
581 public void SetAcceleration(Vector3 accel)
582 {
583 m_pidControllerActive = true;
584 _acceleration = accel;
585 }
586
587 /// <summary>
588 /// Adds the force supplied to the Target Velocity
589 /// The PID controller takes this target velocity and tries to make it a reality
590 /// </summary>
591 /// <param name="force"></param>
592 public override void AddForce(Vector3 force, bool pushforce)
593 {
594 if (force.IsFinite())
595 {
596 if (pushforce)
597 {
598 AddChange(changes.Force, force * m_density / (_parent_scene.ODE_STEPSIZE * 28f));
599 }
600 else
601 {
602 AddChange(changes.Velocity, force);
603 }
604 }
605 else
606 {
607 m_log.Warn("[PHYSICS]: Got a NaN force applied to a Character");
608 }
609 //m_lastUpdateSent = false;
610 }
611
612 public override void AddAngularForce(Vector3 force, bool pushforce)
613 {
614
615 }
616
617 public override void SetMomentum(Vector3 momentum)
618 {
619 if (momentum.IsFinite())
620 AddChange(changes.Momentum, momentum);
621 }
622
623
624 // WARNING: This MUST NOT be called outside of ProcessTaints, else we can have unsynchronized access
625 // to ODE internals. ProcessTaints is called from within thread-locked Simulate(), so it is the only
626 // place that is safe to call this routine AvatarGeomAndBodyCreation.
627 private void AvatarGeomAndBodyCreation(float npositionX, float npositionY, float npositionZ)
628 {
629 _parent_scene.waitForSpaceUnlock(_parent_scene.ActiveSpace);
630 if (CAPSULE_LENGTH <= 0)
631 {
632 m_log.Warn("[PHYSICS]: The capsule size you specified in opensim.ini is invalid! Setting it to the smallest possible size!");
633 CAPSULE_LENGTH = 0.01f;
634
635 }
636
637 if (CAPSULE_RADIUS <= 0)
638 {
639 m_log.Warn("[PHYSICS]: The capsule size you specified in opensim.ini is invalid! Setting it to the smallest possible size!");
640 CAPSULE_RADIUS = 0.01f;
641
642 }
643 Shell = d.CreateCapsule(_parent_scene.ActiveSpace, CAPSULE_RADIUS, CAPSULE_LENGTH);
644
645 d.GeomSetCategoryBits(Shell, (uint)m_collisionCategories);
646 d.GeomSetCollideBits(Shell, (uint)m_collisionFlags);
647
648 d.MassSetCapsule(out ShellMass, m_density, 3, CAPSULE_RADIUS, CAPSULE_LENGTH);
649
650 m_mass = ShellMass.mass; // update mass
651
652 // rescale PID parameters
653 PID_D = _parent_scene.avPIDD;
654 PID_P = _parent_scene.avPIDP;
655
656 // rescale PID parameters so that this aren't affected by mass
657 // and so don't get unstable for some masses
658 // also scale by ode time step so you don't need to refix them
659
660 PID_D /= 50 * 80; //scale to original mass of around 80 and 50 ODE fps
661 PID_D *= m_mass / _parent_scene.ODE_STEPSIZE;
662 PID_P /= 50 * 80;
663 PID_P *= m_mass / _parent_scene.ODE_STEPSIZE;
664
665 Body = d.BodyCreate(_parent_scene.world);
666
667 _zeroFlag = false;
668 m_pidControllerActive = true;
669 m_freemove = false;
670
671 d.BodySetAutoDisableFlag(Body, false);
672 d.BodySetPosition(Body, npositionX, npositionY, npositionZ);
673
674 _position.X = npositionX;
675 _position.Y = npositionY;
676 _position.Z = npositionZ;
677
678 d.BodySetMass(Body, ref ShellMass);
679 d.GeomSetBody(Shell, Body);
680
681 // The purpose of the AMotor here is to keep the avatar's physical
682 // surrogate from rotating while moving
683 Amotor = d.JointCreateAMotor(_parent_scene.world, IntPtr.Zero);
684 d.JointAttach(Amotor, Body, IntPtr.Zero);
685
686 d.JointSetAMotorMode(Amotor, 0);
687 d.JointSetAMotorNumAxes(Amotor, 3);
688 d.JointSetAMotorAxis(Amotor, 0, 0, 1, 0, 0);
689 d.JointSetAMotorAxis(Amotor, 1, 0, 0, 1, 0);
690 d.JointSetAMotorAxis(Amotor, 2, 0, 0, 0, 1);
691
692 d.JointSetAMotorAngle(Amotor, 0, 0);
693 d.JointSetAMotorAngle(Amotor, 1, 0);
694 d.JointSetAMotorAngle(Amotor, 2, 0);
695
696 d.JointSetAMotorParam(Amotor, (int)dParam.StopCFM, 0f); // make it HARD
697 d.JointSetAMotorParam(Amotor, (int)dParam.StopCFM2, 0f);
698 d.JointSetAMotorParam(Amotor, (int)dParam.StopCFM3, 0f);
699 d.JointSetAMotorParam(Amotor, (int)dParam.StopERP, 0.8f);
700 d.JointSetAMotorParam(Amotor, (int)dParam.StopERP2, 0.8f);
701 d.JointSetAMotorParam(Amotor, (int)dParam.StopERP3, 0.8f);
702
703 // These lowstops and high stops are effectively (no wiggle room)
704 d.JointSetAMotorParam(Amotor, (int)dParam.LowStop, -1e-5f);
705 d.JointSetAMotorParam(Amotor, (int)dParam.HiStop, 1e-5f);
706 d.JointSetAMotorParam(Amotor, (int)dParam.LoStop2, -1e-5f);
707 d.JointSetAMotorParam(Amotor, (int)dParam.HiStop2, 1e-5f);
708 d.JointSetAMotorParam(Amotor, (int)dParam.LoStop3, -1e-5f);
709 d.JointSetAMotorParam(Amotor, (int)dParam.HiStop3, 1e-5f);
710
711 d.JointSetAMotorParam(Amotor, (int)d.JointParam.Vel, 0);
712 d.JointSetAMotorParam(Amotor, (int)d.JointParam.Vel2, 0);
713 d.JointSetAMotorParam(Amotor, (int)d.JointParam.Vel3, 0);
714
715 d.JointSetAMotorParam(Amotor, (int)dParam.FMax, 5e8f);
716 d.JointSetAMotorParam(Amotor, (int)dParam.FMax2, 5e8f);
717 d.JointSetAMotorParam(Amotor, (int)dParam.FMax3, 5e8f);
718 }
719
720 /// <summary>
721 /// Destroys the avatar body and geom
722
723 private void AvatarGeomAndBodyDestroy()
724 {
725 // Kill the Amotor
726 if (Amotor != IntPtr.Zero)
727 {
728 d.JointDestroy(Amotor);
729 Amotor = IntPtr.Zero;
730 }
731
732 if (Body != IntPtr.Zero)
733 {
734 //kill the body
735 d.BodyDestroy(Body);
736 Body = IntPtr.Zero;
737 }
738
739 //kill the Geometry
740 if (Shell != IntPtr.Zero)
741 {
742 _parent_scene.geom_name_map.Remove(Shell);
743 _parent_scene.waitForSpaceUnlock(_parent_scene.ActiveSpace);
744 d.GeomDestroy(Shell);
745 Shell = IntPtr.Zero;
746 }
747 }
748
749 /// <summary>
750 /// Called from Simulate
751 /// This is the avatar's movement control + PID Controller
752 /// </summary>
753 /// <param name="timeStep"></param>
754 public void Move(float timeStep, List<OdeCharacter> defects)
755 {
756 if (Body == IntPtr.Zero)
757 return;
758
759 d.Vector3 dtmp = d.BodyGetPosition(Body);
760 Vector3 localpos = new Vector3(dtmp.X, dtmp.Y, dtmp.Z);
761
762 // the Amotor still lets avatar rotation to drift during colisions
763 // so force it back to identity
764
765 d.Quaternion qtmp;
766 qtmp.W = 1;
767 qtmp.X = 0;
768 qtmp.Y = 0;
769 qtmp.Z = 0;
770 d.BodySetQuaternion(Body, ref qtmp);
771
772 if (m_pidControllerActive == false)
773 {
774 _zeroPosition = localpos;
775 }
776
777 if (!localpos.IsFinite())
778 {
779 m_log.Warn("[PHYSICS]: Avatar Position is non-finite!");
780 defects.Add(this);
781 // _parent_scene.RemoveCharacter(this);
782
783 // destroy avatar capsule and related ODE data
784 AvatarGeomAndBodyDestroy();
785 return;
786 }
787
788 // check outbounds forcing to be in world
789 bool fixbody = false;
790 if (localpos.X < 0.0f)
791 {
792 fixbody = true;
793 localpos.X = 0.1f;
794 }
795 else if (localpos.X > _parent_scene.WorldExtents.X - 0.1f)
796 {
797 fixbody = true;
798 localpos.X = _parent_scene.WorldExtents.X - 0.1f;
799 }
800 if (localpos.Y < 0.0f)
801 {
802 fixbody = true;
803 localpos.Y = 0.1f;
804 }
805 else if (localpos.Y > _parent_scene.WorldExtents.Y - 0.1)
806 {
807 fixbody = true;
808 localpos.Y = _parent_scene.WorldExtents.Y - 0.1f;
809 }
810 if (fixbody)
811 {
812 m_freemove = false;
813 d.BodySetPosition(Body, localpos.X, localpos.Y, localpos.Z);
814 }
815
816 float breakfactor;
817
818 Vector3 vec = Vector3.Zero;
819 dtmp = d.BodyGetLinearVel(Body);
820 Vector3 vel = new Vector3(dtmp.X, dtmp.Y, dtmp.Z);
821 float velLengthSquared = vel.LengthSquared();
822
823 float movementdivisor = 1f;
824 //Ubit change divisions into multiplications below
825 if (!m_alwaysRun)
826 movementdivisor = 1 / walkDivisor;
827 else
828 movementdivisor = 1 / runDivisor;
829
830 //******************************************
831 // colide with land
832 d.AABB aabb;
833 d.GeomGetAABB(Shell, out aabb);
834 float chrminZ = aabb.MinZ;
835
836 Vector3 posch = localpos;
837
838 float ftmp;
839
840 if (flying)
841 {
842 ftmp = timeStep;
843 posch.X += vel.X * ftmp;
844 posch.Y += vel.Y * ftmp;
845 }
846
847 float terrainheight = _parent_scene.GetTerrainHeightAtXY(posch.X, posch.Y);
848 if (chrminZ < terrainheight)
849 {
850 float depth = terrainheight - chrminZ;
851 if (!flying)
852 {
853 vec.Z = -vel.Z * PID_D * 1.5f + depth * PID_P * 50;
854 }
855 else
856 vec.Z = depth * PID_P * 50;
857
858 if (depth < 0.1f)
859 {
860 m_colliderGroundfilter++;
861 if (m_colliderGroundfilter > 2)
862 {
863 m_iscolliding = true;
864 m_colliderfilter = 2;
865
866 if (m_colliderGroundfilter > 10)
867 {
868 m_colliderGroundfilter = 10;
869 m_freemove = false;
870 }
871
872 m_iscollidingGround = true;
873
874 ContactPoint contact = new ContactPoint();
875 contact.PenetrationDepth = depth;
876 contact.Position.X = localpos.X;
877 contact.Position.Y = localpos.Y;
878 contact.Position.Z = chrminZ;
879 contact.SurfaceNormal.X = 0f;
880 contact.SurfaceNormal.Y = 0f;
881 contact.SurfaceNormal.Z = -1f;
882 contact.RelativeSpeed = -vel.Z;
883 AddCollisionEvent(0, contact);
884
885 vec.Z *= 0.5f;
886 }
887 }
888
889 else
890 {
891 m_colliderGroundfilter = 0;
892 m_iscollidingGround = false;
893 }
894 }
895 else
896 {
897 m_colliderGroundfilter = 0;
898 m_iscollidingGround = false;
899 }
900
901 //******************************************
902
903 bool tviszero = (_target_velocity.X == 0.0f && _target_velocity.Y == 0.0f && _target_velocity.Z == 0.0f);
904
905 // if (!tviszero || m_iscolliding || velLengthSquared <0.01)
906 if (!tviszero)
907 m_freemove = false;
908
909 if (!m_freemove)
910 {
911
912 // if velocity is zero, use position control; otherwise, velocity control
913 if (tviszero && m_iscolliding)
914 {
915 // keep track of where we stopped. No more slippin' & slidin'
916 if (!_zeroFlag)
917 {
918 _zeroFlag = true;
919 _zeroPosition = localpos;
920 }
921 if (m_pidControllerActive)
922 {
923 // We only want to deactivate the PID Controller if we think we want to have our surrogate
924 // react to the physics scene by moving it's position.
925 // Avatar to Avatar collisions
926 // Prim to avatar collisions
927
928 vec.X = -vel.X * PID_D + (_zeroPosition.X - localpos.X) * (PID_P * 2);
929 vec.Y = -vel.Y * PID_D + (_zeroPosition.Y - localpos.Y) * (PID_P * 2);
930 if (flying)
931 {
932 vec.Z += -vel.Z * PID_D + (_zeroPosition.Z - localpos.Z) * PID_P;
933 }
934 }
935 //PidStatus = true;
936 }
937 else
938 {
939 m_pidControllerActive = true;
940 _zeroFlag = false;
941
942 if (m_iscolliding)
943 {
944 if (!flying)
945 {
946 if (_target_velocity.Z > 0.0f)
947 {
948 // We're colliding with something and we're not flying but we're moving
949 // This means we're walking or running. JUMPING
950 vec.Z += (_target_velocity.Z - vel.Z) * PID_D * 1.2f;// +(_zeroPosition.Z - localpos.Z) * PID_P;
951 }
952 // We're standing on something
953 vec.X = ((_target_velocity.X * movementdivisor) - vel.X) * (PID_D);
954 vec.Y = ((_target_velocity.Y * movementdivisor) - vel.Y) * (PID_D);
955 }
956 else
957 {
958 // We're flying and colliding with something
959 vec.X = ((_target_velocity.X * movementdivisor) - vel.X) * (PID_D * 0.0625f);
960 vec.Y = ((_target_velocity.Y * movementdivisor) - vel.Y) * (PID_D * 0.0625f);
961 vec.Z += (_target_velocity.Z - vel.Z) * (PID_D);
962 }
963 }
964 else // ie not colliding
965 {
966 if (flying) //(!m_iscolliding && flying)
967 {
968 // we're in mid air suspended
969 vec.X = ((_target_velocity.X * movementdivisor) - vel.X) * (PID_D * 1.667f);
970 vec.Y = ((_target_velocity.Y * movementdivisor) - vel.Y) * (PID_D * 1.667f);
971 vec.Z += (_target_velocity.Z - vel.Z) * (PID_D);
972 }
973
974 else
975 {
976 // we're not colliding and we're not flying so that means we're falling!
977 // m_iscolliding includes collisions with the ground.
978
979 // d.Vector3 pos = d.BodyGetPosition(Body);
980 vec.X = (_target_velocity.X - vel.X) * PID_D * 0.833f;
981 vec.Y = (_target_velocity.Y - vel.Y) * PID_D * 0.833f;
982 }
983 }
984 }
985
986 if (velLengthSquared > 2500.0f) // 50m/s apply breaks
987 {
988 breakfactor = 0.16f * m_mass;
989 vec.X -= breakfactor * vel.X;
990 vec.Y -= breakfactor * vel.Y;
991 vec.Z -= breakfactor * vel.Z;
992 }
993 }
994 else
995 {
996 breakfactor = m_mass;
997 vec.X -= breakfactor * vel.X;
998 vec.Y -= breakfactor * vel.Y;
999 if (flying)
1000 vec.Z -= breakfactor * vel.Z;
1001 else
1002 vec.Z -= .5f* m_mass * vel.Z;
1003 }
1004
1005 if (flying)
1006 {
1007 vec.Z -= _parent_scene.gravityz * m_mass;
1008
1009 //Added for auto fly height. Kitto Flora
1010 float target_altitude = _parent_scene.GetTerrainHeightAtXY(localpos.X, localpos.Y) + MinimumGroundFlightOffset;
1011
1012 if (localpos.Z < target_altitude)
1013 {
1014 vec.Z += (target_altitude - localpos.Z) * PID_P * 5.0f;
1015 }
1016 // end add Kitto Flora
1017 }
1018
1019 if (vec.IsFinite())
1020 {
1021 if (vec.X != 0 || vec.Y !=0 || vec.Z !=0)
1022 d.BodyAddForce(Body, vec.X, vec.Y, vec.Z);
1023 }
1024 else
1025 {
1026 m_log.Warn("[PHYSICS]: Got a NaN force vector in Move()");
1027 m_log.Warn("[PHYSICS]: Avatar Position is non-finite!");
1028 defects.Add(this);
1029 // _parent_scene.RemoveCharacter(this);
1030 // destroy avatar capsule and related ODE data
1031 AvatarGeomAndBodyDestroy();
1032 return;
1033 }
1034
1035 // update our local ideia of position velocity and aceleration
1036 _position = localpos;
1037 if (_zeroFlag)
1038 {
1039 _velocity = Vector3.Zero;
1040 _acceleration = Vector3.Zero;
1041 }
1042 else
1043 {
1044 _acceleration = _velocity; // previus velocity
1045 _velocity = vel;
1046 _acceleration = (vel - _acceleration) / timeStep;
1047 }
1048
1049 }
1050
1051 /// <summary>
1052 /// Updates the reported position and velocity.
1053 /// Used to copy variables from unmanaged space at heartbeat rate and also trigger scene updates acording
1054 /// also outbounds checking
1055 /// copy and outbounds now done in move(..) at ode rate
1056 ///
1057 /// </summary>
1058 public void UpdatePositionAndVelocity()
1059 {
1060 return;
1061
1062// if (Body == IntPtr.Zero)
1063// return;
1064
1065 }
1066
1067 /// <summary>
1068 /// Cleanup the things we use in the scene.
1069 /// </summary>
1070 public void Destroy()
1071 {
1072 AddChange(changes.Remove, null);
1073 }
1074
1075 public override void CrossingFailure()
1076 {
1077 }
1078
1079 public override Vector3 PIDTarget { set { return; } }
1080 public override bool PIDActive { set { return; } }
1081 public override float PIDTau { set { return; } }
1082
1083 public override float PIDHoverHeight { set { return; } }
1084 public override bool PIDHoverActive { set { return; } }
1085 public override PIDHoverType PIDHoverType { set { return; } }
1086 public override float PIDHoverTau { set { return; } }
1087
1088 public override Quaternion APIDTarget { set { return; } }
1089
1090 public override bool APIDActive { set { return; } }
1091
1092 public override float APIDStrength { set { return; } }
1093
1094 public override float APIDDamping { set { return; } }
1095
1096
1097 public override void SubscribeEvents(int ms)
1098 {
1099 m_eventsubscription = ms;
1100 m_cureventsubscription = 0;
1101 if (CollisionEventsThisFrame == null)
1102 CollisionEventsThisFrame = new CollisionEventUpdate();
1103 SentEmptyCollisionsEvent = false;
1104 }
1105
1106 public override void UnSubscribeEvents()
1107 {
1108 if (CollisionEventsThisFrame != null)
1109 {
1110 CollisionEventsThisFrame.Clear();
1111 CollisionEventsThisFrame = null;
1112 }
1113 m_eventsubscription = 0;
1114 }
1115
1116 public void AddCollisionEvent(uint CollidedWith, ContactPoint contact)
1117 {
1118 if (CollisionEventsThisFrame == null)
1119 CollisionEventsThisFrame = new CollisionEventUpdate();
1120 CollisionEventsThisFrame.AddCollider(CollidedWith, contact);
1121 _parent_scene.AddCollisionEventReporting(this);
1122 }
1123
1124 public void SendCollisions()
1125 {
1126 if (CollisionEventsThisFrame == null)
1127 return;
1128
1129 if (m_cureventsubscription < m_eventsubscription)
1130 return;
1131
1132 m_cureventsubscription = 0;
1133
1134 int ncolisions = CollisionEventsThisFrame.m_objCollisionList.Count;
1135
1136 if (!SentEmptyCollisionsEvent || ncolisions > 0)
1137 {
1138 base.SendCollisionUpdate(CollisionEventsThisFrame);
1139
1140 if (ncolisions == 0)
1141 {
1142 SentEmptyCollisionsEvent = true;
1143 _parent_scene.RemoveCollisionEventReporting(this);
1144 }
1145 else
1146 {
1147 SentEmptyCollisionsEvent = false;
1148 CollisionEventsThisFrame.Clear();
1149 }
1150 }
1151 }
1152
1153 internal void AddCollisionFrameTime(int t)
1154 {
1155 // protect it from overflow crashing
1156 if (m_cureventsubscription < 50000)
1157 m_cureventsubscription += t;
1158 }
1159
1160 public override bool SubscribedEvents()
1161 {
1162 if (m_eventsubscription > 0)
1163 return true;
1164 return false;
1165 }
1166
1167 private void changePhysicsStatus(bool NewStatus)
1168 {
1169 if (NewStatus != m_isPhysical)
1170 {
1171 if (NewStatus)
1172 {
1173 // Create avatar capsule and related ODE data
1174 if ((Shell != IntPtr.Zero))
1175 {
1176 // a lost shell ?
1177 m_log.Warn("[PHYSICS]: re-creating the following avatar ODE data, even though it already exists - "
1178 + (Shell != IntPtr.Zero ? "Shell " : "")
1179 + (Body != IntPtr.Zero ? "Body " : "")
1180 + (Amotor != IntPtr.Zero ? "Amotor " : ""));
1181 AvatarGeomAndBodyDestroy();
1182 }
1183
1184 AvatarGeomAndBodyCreation(_position.X, _position.Y, _position.Z);
1185 _parent_scene.geom_name_map[Shell] = m_name;
1186 _parent_scene.actor_name_map[Shell] = (PhysicsActor)this;
1187 _parent_scene.AddCharacter(this);
1188 }
1189 else
1190 {
1191 _parent_scene.RemoveCharacter(this);
1192 // destroy avatar capsule and related ODE data
1193 AvatarGeomAndBodyDestroy();
1194 }
1195 m_freemove = false;
1196 m_isPhysical = NewStatus;
1197 }
1198 }
1199
1200 private void changeAdd()
1201 {
1202 changePhysicsStatus(true);
1203 }
1204
1205 private void changeRemove()
1206 {
1207 changePhysicsStatus(false);
1208 }
1209
1210 private void changeShape(PrimitiveBaseShape arg)
1211 {
1212 }
1213
1214 private void changeSize(Vector3 Size)
1215 {
1216 if (Size.IsFinite())
1217 {
1218 float caplen = Size.Z;
1219
1220 caplen = caplen * 1.15f - CAPSULE_RADIUS * 2.0f;
1221
1222 if (caplen != CAPSULE_LENGTH)
1223 {
1224 if (Shell != IntPtr.Zero && Body != IntPtr.Zero && Amotor != IntPtr.Zero)
1225 {
1226 AvatarGeomAndBodyDestroy();
1227
1228 float prevCapsule = CAPSULE_LENGTH;
1229 CAPSULE_LENGTH = caplen;
1230
1231 AvatarGeomAndBodyCreation(_position.X, _position.Y,
1232 _position.Z + (CAPSULE_LENGTH - prevCapsule) * 0.5f);
1233
1234 Velocity = Vector3.Zero;
1235
1236 _parent_scene.geom_name_map[Shell] = m_name;
1237 _parent_scene.actor_name_map[Shell] = (PhysicsActor)this;
1238 }
1239 else
1240 {
1241 m_log.Warn("[PHYSICS]: trying to change capsule size, but the following ODE data is missing - "
1242 + (Shell == IntPtr.Zero ? "Shell " : "")
1243 + (Body == IntPtr.Zero ? "Body " : "")
1244 + (Amotor == IntPtr.Zero ? "Amotor " : ""));
1245 }
1246 }
1247 m_freemove = false;
1248 m_pidControllerActive = true;
1249 }
1250 else
1251 {
1252 m_log.Warn("[PHYSICS]: Got a NaN Size from Scene on a Character");
1253 }
1254 }
1255
1256 private void changePosition( Vector3 newPos)
1257 {
1258 if (Body != IntPtr.Zero)
1259 d.BodySetPosition(Body, newPos.X, newPos.Y, newPos.Z);
1260 _position = newPos;
1261 m_freemove = false;
1262 m_pidControllerActive = true;
1263 }
1264
1265 private void changeOrientation(Quaternion newOri)
1266 {
1267 }
1268
1269 private void changeVelocity(Vector3 newVel)
1270 {
1271 m_pidControllerActive = true;
1272 m_freemove = false;
1273 _target_velocity = newVel;
1274 }
1275
1276 private void changeSetTorque(Vector3 newTorque)
1277 {
1278 }
1279
1280 private void changeAddForce(Vector3 newForce)
1281 {
1282 }
1283
1284 private void changeAddAngularForce(Vector3 arg)
1285 {
1286 }
1287
1288 private void changeAngularLock(Vector3 arg)
1289 {
1290 }
1291
1292 private void changeFloatOnWater(bool arg)
1293 {
1294 }
1295
1296 private void changeVolumedetetion(bool arg)
1297 {
1298 }
1299
1300 private void changeSelectedStatus(bool arg)
1301 {
1302 }
1303
1304 private void changeDisable(bool arg)
1305 {
1306 }
1307
1308 private void changeBuilding(bool arg)
1309 {
1310 }
1311
1312 private void setFreeMove()
1313 {
1314 m_pidControllerActive = true;
1315 _zeroFlag = false;
1316 _target_velocity = Vector3.Zero;
1317 m_freemove = true;
1318 m_colliderfilter = -2;
1319 m_colliderObjectfilter = -2;
1320 m_colliderGroundfilter = -2;
1321
1322 m_iscolliding = false;
1323 m_iscollidingGround = false;
1324 m_iscollidingObj = false;
1325
1326 CollisionEventsThisFrame.Clear();
1327 }
1328
1329 private void changeForce(Vector3 newForce)
1330 {
1331 setFreeMove();
1332
1333 if (Body != IntPtr.Zero)
1334 {
1335 if (newForce.X != 0f || newForce.Y != 0f || newForce.Z != 0)
1336 d.BodyAddForce(Body, newForce.X, newForce.Y, newForce.Z);
1337 }
1338 }
1339
1340 // for now momentum is actually velocity
1341 private void changeMomentum(Vector3 newmomentum)
1342 {
1343 _velocity = newmomentum;
1344 setFreeMove();
1345
1346 if (Body != IntPtr.Zero)
1347 d.BodySetLinearVel(Body, newmomentum.X, newmomentum.Y, newmomentum.Z);
1348 }
1349
1350 private void donullchange()
1351 {
1352 }
1353
1354 public bool DoAChange(changes what, object arg)
1355 {
1356 if (Shell == IntPtr.Zero && what != changes.Add && what != changes.Remove)
1357 {
1358 return false;
1359 }
1360
1361 // nasty switch
1362 switch (what)
1363 {
1364 case changes.Add:
1365 changeAdd();
1366 break;
1367 case changes.Remove:
1368 changeRemove();
1369 break;
1370
1371 case changes.Position:
1372 changePosition((Vector3)arg);
1373 break;
1374
1375 case changes.Orientation:
1376 changeOrientation((Quaternion)arg);
1377 break;
1378
1379 case changes.PosOffset:
1380 donullchange();
1381 break;
1382
1383 case changes.OriOffset:
1384 donullchange();
1385 break;
1386
1387 case changes.Velocity:
1388 changeVelocity((Vector3)arg);
1389 break;
1390
1391 // case changes.Acceleration:
1392 // changeacceleration((Vector3)arg);
1393 // break;
1394 // case changes.AngVelocity:
1395 // changeangvelocity((Vector3)arg);
1396 // break;
1397
1398 case changes.Force:
1399 changeForce((Vector3)arg);
1400 break;
1401
1402 case changes.Torque:
1403 changeSetTorque((Vector3)arg);
1404 break;
1405
1406 case changes.AddForce:
1407 changeAddForce((Vector3)arg);
1408 break;
1409
1410 case changes.AddAngForce:
1411 changeAddAngularForce((Vector3)arg);
1412 break;
1413
1414 case changes.AngLock:
1415 changeAngularLock((Vector3)arg);
1416 break;
1417
1418 case changes.Size:
1419 changeSize((Vector3)arg);
1420 break;
1421
1422 case changes.Momentum:
1423 changeMomentum((Vector3)arg);
1424 break;
1425/* not in use for now
1426 case changes.Shape:
1427 changeShape((PrimitiveBaseShape)arg);
1428 break;
1429
1430 case changes.CollidesWater:
1431 changeFloatOnWater((bool)arg);
1432 break;
1433
1434 case changes.VolumeDtc:
1435 changeVolumedetetion((bool)arg);
1436 break;
1437
1438 case changes.Physical:
1439 changePhysicsStatus((bool)arg);
1440 break;
1441
1442 case changes.Selected:
1443 changeSelectedStatus((bool)arg);
1444 break;
1445
1446 case changes.disabled:
1447 changeDisable((bool)arg);
1448 break;
1449
1450 case changes.building:
1451 changeBuilding((bool)arg);
1452 break;
1453*/
1454 case changes.Null:
1455 donullchange();
1456 break;
1457
1458 default:
1459 donullchange();
1460 break;
1461 }
1462 return false;
1463 }
1464
1465 public void AddChange(changes what, object arg)
1466 {
1467 _parent_scene.AddChange((PhysicsActor)this, what, arg);
1468 }
1469 }
1470}
diff --git a/OpenSim/Region/Physics/UbitOdePlugin/ODEDynamics.cs b/OpenSim/Region/Physics/UbitOdePlugin/ODEDynamics.cs
new file mode 100644
index 0000000..e27be1e
--- /dev/null
+++ b/OpenSim/Region/Physics/UbitOdePlugin/ODEDynamics.cs
@@ -0,0 +1,1083 @@
1/*
2 * Copyright (c) Contributors, http://opensimulator.org/
3 * See CONTRIBUTORS.TXT for a full list of copyright holders.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 * * Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * * Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
12 * * Neither the name of the OpenSimulator Project nor the
13 * names of its contributors may be used to endorse or promote products
14 * derived from this software without specific prior written permission.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
17 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
20 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28/* Revised Aug, Sept 2009 by Kitto Flora. ODEDynamics.cs replaces
29 * ODEVehicleSettings.cs. It and ODEPrim.cs are re-organised:
30 * ODEPrim.cs contains methods dealing with Prim editing, Prim
31 * characteristics and Kinetic motion.
32 * ODEDynamics.cs contains methods dealing with Prim Physical motion
33 * (dynamics) and the associated settings. Old Linear and angular
34 * motors for dynamic motion have been replace with MoveLinear()
35 * and MoveAngular(); 'Physical' is used only to switch ODE dynamic
36 * simualtion on/off; VEHICAL_TYPE_NONE/VEHICAL_TYPE_<other> is to
37 * switch between 'VEHICLE' parameter use and general dynamics
38 * settings use.
39 */
40
41// Extensive change Ubit 2012
42
43using System;
44using System.Collections.Generic;
45using System.Reflection;
46using System.Runtime.InteropServices;
47using log4net;
48using OpenMetaverse;
49using OdeAPI;
50using OpenSim.Framework;
51using OpenSim.Region.Physics.Manager;
52
53namespace OpenSim.Region.Physics.OdePlugin
54{
55 public class ODEDynamics
56 {
57 public Vehicle Type
58 {
59 get { return m_type; }
60 }
61
62 private OdePrim rootPrim;
63 private OdeScene _pParentScene;
64
65 // Vehicle properties
66 // WARNING this are working copies for internel use
67 // their values may not be the corresponding parameter
68
69 private Quaternion m_referenceFrame = Quaternion.Identity; // Axis modifier
70 private Quaternion m_RollreferenceFrame = Quaternion.Identity; // what hell is this ?
71
72 private Vehicle m_type = Vehicle.TYPE_NONE; // If a 'VEHICLE', and what kind
73
74 private VehicleFlag m_flags = (VehicleFlag) 0; // Boolean settings:
75 // HOVER_TERRAIN_ONLY
76 // HOVER_GLOBAL_HEIGHT
77 // NO_DEFLECTION_UP
78 // HOVER_WATER_ONLY
79 // HOVER_UP_ONLY
80 // LIMIT_MOTOR_UP
81 // LIMIT_ROLL_ONLY
82 private Vector3 m_BlockingEndPoint = Vector3.Zero; // not sl
83
84 // Linear properties
85 private Vector3 m_linearMotorDirection = Vector3.Zero; // velocity requested by LSL, decayed by time
86 private Vector3 m_linearFrictionTimescale = new Vector3(1000, 1000, 1000);
87 private float m_linearMotorDecayTimescale = 120;
88 private float m_linearMotorTimescale = 1000;
89 private Vector3 m_linearMotorOffset = Vector3.Zero;
90
91 //Angular properties
92 private Vector3 m_angularMotorDirection = Vector3.Zero; // angular velocity requested by LSL motor
93 private float m_angularMotorTimescale = 1000; // motor angular velocity ramp up rate
94 private float m_angularMotorDecayTimescale = 120; // motor angular velocity decay rate
95 private Vector3 m_angularFrictionTimescale = new Vector3(1000, 1000, 1000); // body angular velocity decay rate
96
97 //Deflection properties
98 private float m_angularDeflectionEfficiency = 0;
99 private float m_angularDeflectionTimescale = 1000;
100 private float m_linearDeflectionEfficiency = 0;
101 private float m_linearDeflectionTimescale = 1000;
102
103 //Banking properties
104 private float m_bankingEfficiency = 0;
105 private float m_bankingMix = 0;
106 private float m_bankingTimescale = 1000;
107
108 //Hover and Buoyancy properties
109 private float m_VhoverHeight = 0f;
110 private float m_VhoverEfficiency = 0f;
111 private float m_VhoverTimescale = 1000f;
112 private float m_VehicleBuoyancy = 0f; //KF: m_VehicleBuoyancy is set by VEHICLE_BUOYANCY for a vehicle.
113 // Modifies gravity. Slider between -1 (double-gravity) and 1 (full anti-gravity)
114 // KF: So far I have found no good method to combine a script-requested .Z velocity and gravity.
115 // Therefore only m_VehicleBuoyancy=1 (0g) will use the script-requested .Z velocity.
116
117 //Attractor properties
118 private float m_verticalAttractionEfficiency = 1.0f; // damped
119 private float m_verticalAttractionTimescale = 1000f; // Timescale > 300 means no vert attractor.
120
121
122 // auxiliar
123 private float m_lmEfect = 0f; // current linear motor eficiency
124 private float m_lmDecay = 0f; // current linear decay
125
126 private float m_amEfect = 0; // current angular motor eficiency
127 private float m_amDecay = 0f; // current linear decay
128
129 private float m_ffactor = 1.0f;
130
131 private float m_timestep = 0.02f;
132 private float m_invtimestep = 50;
133
134
135 float m_ampwr;
136 float m_amdampX;
137 float m_amdampY;
138 float m_amdampZ;
139
140 public float FrictionFactor
141 {
142 get
143 {
144 return m_ffactor;
145 }
146 }
147
148 public ODEDynamics(OdePrim rootp)
149 {
150 rootPrim = rootp;
151 _pParentScene = rootPrim._parent_scene;
152 m_timestep = _pParentScene.ODE_STEPSIZE;
153 m_invtimestep = 1.0f / m_timestep;
154 }
155
156 public void DoSetVehicle(VehicleData vd)
157 {
158 m_type = vd.m_type;
159 m_flags = vd.m_flags;
160
161
162 // Linear properties
163 m_linearMotorDirection = vd.m_linearMotorDirection;
164
165 m_linearFrictionTimescale = vd.m_linearFrictionTimescale;
166 if (m_linearFrictionTimescale.X < m_timestep) m_linearFrictionTimescale.X = m_timestep;
167 if (m_linearFrictionTimescale.Y < m_timestep) m_linearFrictionTimescale.Y = m_timestep;
168 if (m_linearFrictionTimescale.Z < m_timestep) m_linearFrictionTimescale.Z = m_timestep;
169
170 m_linearMotorDecayTimescale = vd.m_linearMotorDecayTimescale;
171 if (m_linearMotorDecayTimescale < m_timestep) m_linearMotorDecayTimescale = m_timestep;
172 m_linearMotorDecayTimescale += 0.2f;
173 m_linearMotorDecayTimescale *= m_invtimestep;
174
175 m_linearMotorTimescale = vd.m_linearMotorTimescale;
176 if (m_linearMotorTimescale < m_timestep) m_linearMotorTimescale = m_timestep;
177
178 m_linearMotorOffset = vd.m_linearMotorOffset;
179
180 //Angular properties
181 m_angularMotorDirection = vd.m_angularMotorDirection;
182 m_angularMotorTimescale = vd.m_angularMotorTimescale;
183 if (m_angularMotorTimescale < m_timestep) m_angularMotorTimescale = m_timestep;
184
185 m_angularMotorDecayTimescale = vd.m_angularMotorDecayTimescale;
186 if (m_angularMotorDecayTimescale < m_timestep) m_angularMotorDecayTimescale = m_timestep;
187 m_angularMotorDecayTimescale *= m_invtimestep;
188
189 m_angularFrictionTimescale = vd.m_angularFrictionTimescale;
190 if (m_angularFrictionTimescale.X < m_timestep) m_angularFrictionTimescale.X = m_timestep;
191 if (m_angularFrictionTimescale.Y < m_timestep) m_angularFrictionTimescale.Y = m_timestep;
192 if (m_angularFrictionTimescale.Z < m_timestep) m_angularFrictionTimescale.Z = m_timestep;
193
194 //Deflection properties
195 m_angularDeflectionEfficiency = vd.m_angularDeflectionEfficiency;
196 m_angularDeflectionTimescale = vd.m_angularDeflectionTimescale;
197 if (m_angularDeflectionTimescale < m_timestep) m_angularDeflectionTimescale = m_timestep;
198
199 m_linearDeflectionEfficiency = vd.m_linearDeflectionEfficiency;
200 m_linearDeflectionTimescale = vd.m_linearDeflectionTimescale;
201 if (m_linearDeflectionTimescale < m_timestep) m_linearDeflectionTimescale = m_timestep;
202
203 //Banking properties
204 m_bankingEfficiency = vd.m_bankingEfficiency;
205 m_bankingMix = vd.m_bankingMix;
206 m_bankingTimescale = vd.m_bankingTimescale;
207 if (m_bankingTimescale < m_timestep) m_bankingTimescale = m_timestep;
208
209 //Hover and Buoyancy properties
210 m_VhoverHeight = vd.m_VhoverHeight;
211 m_VhoverEfficiency = vd.m_VhoverEfficiency;
212 m_VhoverTimescale = vd.m_VhoverTimescale;
213 if (m_VhoverTimescale < m_timestep) m_VhoverTimescale = m_timestep;
214
215 m_VehicleBuoyancy = vd.m_VehicleBuoyancy;
216
217 //Attractor properties
218 m_verticalAttractionEfficiency = vd.m_verticalAttractionEfficiency;
219 m_verticalAttractionTimescale = vd.m_verticalAttractionTimescale;
220 if (m_verticalAttractionTimescale < m_timestep) m_verticalAttractionTimescale = m_timestep;
221
222 // Axis
223 m_referenceFrame = vd.m_referenceFrame;
224
225 m_lmEfect = 0;
226 m_lmDecay = (1.0f - 1.0f / m_linearMotorDecayTimescale);
227 m_amEfect = 0;
228 m_ffactor = 1.0f;
229 }
230
231 internal void ProcessFloatVehicleParam(Vehicle pParam, float pValue)
232 {
233 float len;
234
235 switch (pParam)
236 {
237 case Vehicle.ANGULAR_DEFLECTION_EFFICIENCY:
238 if (pValue < 0f) pValue = 0f;
239 if (pValue > 1f) pValue = 1f;
240 m_angularDeflectionEfficiency = pValue;
241 break;
242 case Vehicle.ANGULAR_DEFLECTION_TIMESCALE:
243 if (pValue < m_timestep) pValue = m_timestep;
244 m_angularDeflectionTimescale = pValue;
245 break;
246 case Vehicle.ANGULAR_MOTOR_DECAY_TIMESCALE:
247 if (pValue < m_timestep) pValue = m_timestep;
248 else if (pValue > 120) pValue = 120;
249 m_angularMotorDecayTimescale = pValue * m_invtimestep;
250 m_amDecay = 1.0f - 1.0f / m_angularMotorDecayTimescale;
251 break;
252 case Vehicle.ANGULAR_MOTOR_TIMESCALE:
253 if (pValue < m_timestep) pValue = m_timestep;
254 m_angularMotorTimescale = pValue;
255 break;
256 case Vehicle.BANKING_EFFICIENCY:
257 if (pValue < -1f) pValue = -1f;
258 if (pValue > 1f) pValue = 1f;
259 m_bankingEfficiency = pValue;
260 break;
261 case Vehicle.BANKING_MIX:
262 if (pValue < 0f) pValue = 0f;
263 if (pValue > 1f) pValue = 1f;
264 m_bankingMix = pValue;
265 break;
266 case Vehicle.BANKING_TIMESCALE:
267 if (pValue < m_timestep) pValue = m_timestep;
268 m_bankingTimescale = pValue;
269 break;
270 case Vehicle.BUOYANCY:
271 if (pValue < -1f) pValue = -1f;
272 if (pValue > 1f) pValue = 1f;
273 m_VehicleBuoyancy = pValue;
274 break;
275 case Vehicle.HOVER_EFFICIENCY:
276 if (pValue < 0f) pValue = 0f;
277 if (pValue > 1f) pValue = 1f;
278 m_VhoverEfficiency = pValue;
279 break;
280 case Vehicle.HOVER_HEIGHT:
281 m_VhoverHeight = pValue;
282 break;
283 case Vehicle.HOVER_TIMESCALE:
284 if (pValue < m_timestep) pValue = m_timestep;
285 m_VhoverTimescale = pValue;
286 break;
287 case Vehicle.LINEAR_DEFLECTION_EFFICIENCY:
288 if (pValue < 0f) pValue = 0f;
289 if (pValue > 1f) pValue = 1f;
290 m_linearDeflectionEfficiency = pValue;
291 break;
292 case Vehicle.LINEAR_DEFLECTION_TIMESCALE:
293 if (pValue < m_timestep) pValue = m_timestep;
294 m_linearDeflectionTimescale = pValue;
295 break;
296 case Vehicle.LINEAR_MOTOR_DECAY_TIMESCALE:
297 if (pValue < m_timestep) pValue = m_timestep;
298 else if (pValue > 120) pValue = 120;
299 m_linearMotorDecayTimescale = (0.2f +pValue) * m_invtimestep;
300 m_lmDecay = (1.0f - 1.0f / m_linearMotorDecayTimescale);
301 break;
302 case Vehicle.LINEAR_MOTOR_TIMESCALE:
303 if (pValue < m_timestep) pValue = m_timestep;
304 m_linearMotorTimescale = pValue;
305 break;
306 case Vehicle.VERTICAL_ATTRACTION_EFFICIENCY:
307 if (pValue < 0f) pValue = 0f;
308 if (pValue > 1f) pValue = 1f;
309 m_verticalAttractionEfficiency = pValue;
310 break;
311 case Vehicle.VERTICAL_ATTRACTION_TIMESCALE:
312 if (pValue < m_timestep) pValue = m_timestep;
313 m_verticalAttractionTimescale = pValue;
314 break;
315
316 // These are vector properties but the engine lets you use a single float value to
317 // set all of the components to the same value
318 case Vehicle.ANGULAR_FRICTION_TIMESCALE:
319 if (pValue < m_timestep) pValue = m_timestep;
320 m_angularFrictionTimescale = new Vector3(pValue, pValue, pValue);
321 break;
322 case Vehicle.ANGULAR_MOTOR_DIRECTION:
323 m_angularMotorDirection = new Vector3(pValue, pValue, pValue);
324 len = m_angularMotorDirection.Length();
325 if (len > 12.566f)
326 m_angularMotorDirection *= (12.566f / len);
327
328 m_amEfect = 1.0f ; // turn it on
329 m_amDecay = 1.0f - 1.0f / m_angularMotorDecayTimescale;
330
331 if (rootPrim.Body != IntPtr.Zero && !d.BodyIsEnabled(rootPrim.Body)
332 && !rootPrim.m_isSelected && !rootPrim.m_disabled)
333 d.BodyEnable(rootPrim.Body);
334 break;
335 case Vehicle.LINEAR_FRICTION_TIMESCALE:
336 if (pValue < m_timestep) pValue = m_timestep;
337 m_linearFrictionTimescale = new Vector3(pValue, pValue, pValue);
338 break;
339 case Vehicle.LINEAR_MOTOR_DIRECTION:
340 m_linearMotorDirection = new Vector3(pValue, pValue, pValue);
341 len = m_linearMotorDirection.Length();
342 if (len > 100.0f)
343 m_linearMotorDirection *= (100.0f / len);
344
345 m_lmDecay = 1.0f - 1.0f / m_linearMotorDecayTimescale;
346 m_lmEfect = 1.0f; // turn it on
347
348 m_ffactor = 0.01f;
349 if (rootPrim.Body != IntPtr.Zero && !d.BodyIsEnabled(rootPrim.Body)
350 && !rootPrim.m_isSelected && !rootPrim.m_disabled)
351 d.BodyEnable(rootPrim.Body);
352 break;
353 case Vehicle.LINEAR_MOTOR_OFFSET:
354 m_linearMotorOffset = new Vector3(pValue, pValue, pValue);
355 len = m_linearMotorOffset.Length();
356 if (len > 100.0f)
357 m_linearMotorOffset *= (100.0f / len);
358 break;
359 }
360 }//end ProcessFloatVehicleParam
361
362 internal void ProcessVectorVehicleParam(Vehicle pParam, Vector3 pValue)
363 {
364 float len;
365
366 switch (pParam)
367 {
368 case Vehicle.ANGULAR_FRICTION_TIMESCALE:
369 if (pValue.X < m_timestep) pValue.X = m_timestep;
370 if (pValue.Y < m_timestep) pValue.Y = m_timestep;
371 if (pValue.Z < m_timestep) pValue.Z = m_timestep;
372
373 m_angularFrictionTimescale = new Vector3(pValue.X, pValue.Y, pValue.Z);
374 break;
375 case Vehicle.ANGULAR_MOTOR_DIRECTION:
376 m_angularMotorDirection = new Vector3(pValue.X, pValue.Y, pValue.Z);
377 // Limit requested angular speed to 2 rps= 4 pi rads/sec
378 len = m_angularMotorDirection.Length();
379 if (len > 12.566f)
380 m_angularMotorDirection *= (12.566f / len);
381
382 m_amEfect = 1.0f; // turn it on
383 m_amDecay = 1.0f - 1.0f / m_angularMotorDecayTimescale;
384
385 if (rootPrim.Body != IntPtr.Zero && !d.BodyIsEnabled(rootPrim.Body)
386 && !rootPrim.m_isSelected && !rootPrim.m_disabled)
387 d.BodyEnable(rootPrim.Body);
388 break;
389 case Vehicle.LINEAR_FRICTION_TIMESCALE:
390 if (pValue.X < m_timestep) pValue.X = m_timestep;
391 if (pValue.Y < m_timestep) pValue.Y = m_timestep;
392 if (pValue.Z < m_timestep) pValue.Z = m_timestep;
393 m_linearFrictionTimescale = new Vector3(pValue.X, pValue.Y, pValue.Z);
394 break;
395 case Vehicle.LINEAR_MOTOR_DIRECTION:
396 m_linearMotorDirection = new Vector3(pValue.X, pValue.Y, pValue.Z);
397 len = m_linearMotorDirection.Length();
398 if (len > 100.0f)
399 m_linearMotorDirection *= (100.0f / len);
400
401 m_lmEfect = 1.0f; // turn it on
402 m_lmDecay = 1.0f - 1.0f / m_linearMotorDecayTimescale;
403
404 m_ffactor = 0.01f;
405 if (rootPrim.Body != IntPtr.Zero && !d.BodyIsEnabled(rootPrim.Body)
406 && !rootPrim.m_isSelected && !rootPrim.m_disabled)
407 d.BodyEnable(rootPrim.Body);
408 break;
409 case Vehicle.LINEAR_MOTOR_OFFSET:
410 m_linearMotorOffset = new Vector3(pValue.X, pValue.Y, pValue.Z);
411 len = m_linearMotorOffset.Length();
412 if (len > 100.0f)
413 m_linearMotorOffset *= (100.0f / len);
414 break;
415 case Vehicle.BLOCK_EXIT:
416 m_BlockingEndPoint = new Vector3(pValue.X, pValue.Y, pValue.Z);
417 break;
418 }
419 }//end ProcessVectorVehicleParam
420
421 internal void ProcessRotationVehicleParam(Vehicle pParam, Quaternion pValue)
422 {
423 switch (pParam)
424 {
425 case Vehicle.REFERENCE_FRAME:
426 m_referenceFrame = Quaternion.Inverse(pValue);
427 break;
428 case Vehicle.ROLL_FRAME:
429 m_RollreferenceFrame = pValue;
430 break;
431 }
432 }//end ProcessRotationVehicleParam
433
434 internal void ProcessVehicleFlags(int pParam, bool remove)
435 {
436 if (remove)
437 {
438 m_flags &= ~((VehicleFlag)pParam);
439 }
440 else
441 {
442 m_flags |= (VehicleFlag)pParam;
443 }
444 }//end ProcessVehicleFlags
445
446 internal void ProcessTypeChange(Vehicle pType)
447 {
448 m_lmEfect = 0;
449
450 m_amEfect = 0;
451 m_ffactor = 1f;
452
453 m_linearMotorDirection = Vector3.Zero;
454 m_angularMotorDirection = Vector3.Zero;
455
456 m_BlockingEndPoint = Vector3.Zero;
457 m_RollreferenceFrame = Quaternion.Identity;
458 m_linearMotorOffset = Vector3.Zero;
459
460 m_referenceFrame = Quaternion.Identity;
461
462 // Set Defaults For Type
463 m_type = pType;
464 switch (pType)
465 {
466 case Vehicle.TYPE_NONE:
467 m_linearFrictionTimescale = new Vector3(1000, 1000, 1000);
468 m_angularFrictionTimescale = new Vector3(1000, 1000, 1000);
469 m_linearMotorTimescale = 1000;
470 m_linearMotorDecayTimescale = 120 * m_invtimestep;
471 m_angularMotorTimescale = 1000;
472 m_angularMotorDecayTimescale = 1000 * m_invtimestep;
473 m_VhoverHeight = 0;
474 m_VhoverEfficiency = 1;
475 m_VhoverTimescale = 1000;
476 m_VehicleBuoyancy = 0;
477 m_linearDeflectionEfficiency = 0;
478 m_linearDeflectionTimescale = 1000;
479 m_angularDeflectionEfficiency = 0;
480 m_angularDeflectionTimescale = 1000;
481 m_bankingEfficiency = 0;
482 m_bankingMix = 1;
483 m_bankingTimescale = 1000;
484 m_verticalAttractionEfficiency = 0;
485 m_verticalAttractionTimescale = 1000;
486
487 m_flags = (VehicleFlag)0;
488 break;
489
490 case Vehicle.TYPE_SLED:
491 m_linearFrictionTimescale = new Vector3(30, 1, 1000);
492 m_angularFrictionTimescale = new Vector3(1000, 1000, 1000);
493 m_linearMotorTimescale = 1000;
494 m_linearMotorDecayTimescale = 120 * m_invtimestep;
495 m_angularMotorTimescale = 1000;
496 m_angularMotorDecayTimescale = 120 * m_invtimestep;
497 m_VhoverHeight = 0;
498 m_VhoverEfficiency = 1;
499 m_VhoverTimescale = 10;
500 m_VehicleBuoyancy = 0;
501 m_linearDeflectionEfficiency = 1;
502 m_linearDeflectionTimescale = 1;
503 m_angularDeflectionEfficiency = 0;
504 m_angularDeflectionTimescale = 10;
505 m_verticalAttractionEfficiency = 1;
506 m_verticalAttractionTimescale = 1000;
507 m_bankingEfficiency = 0;
508 m_bankingMix = 1;
509 m_bankingTimescale = 10;
510 m_flags &=
511 ~(VehicleFlag.HOVER_WATER_ONLY | VehicleFlag.HOVER_TERRAIN_ONLY |
512 VehicleFlag.HOVER_GLOBAL_HEIGHT | VehicleFlag.HOVER_UP_ONLY);
513 m_flags |= (VehicleFlag.NO_DEFLECTION_UP |
514 VehicleFlag.LIMIT_ROLL_ONLY |
515 VehicleFlag.LIMIT_MOTOR_UP);
516 break;
517
518 case Vehicle.TYPE_CAR:
519 m_linearFrictionTimescale = new Vector3(100, 2, 1000);
520 m_angularFrictionTimescale = new Vector3(1000, 1000, 1000);
521 m_linearMotorTimescale = 1;
522 m_linearMotorDecayTimescale = 60 * m_invtimestep;
523 m_angularMotorTimescale = 1;
524 m_angularMotorDecayTimescale = 0.8f * m_invtimestep;
525 m_VhoverHeight = 0;
526 m_VhoverEfficiency = 0;
527 m_VhoverTimescale = 1000;
528 m_VehicleBuoyancy = 0;
529 m_linearDeflectionEfficiency = 1;
530 m_linearDeflectionTimescale = 2;
531 m_angularDeflectionEfficiency = 0;
532 m_angularDeflectionTimescale = 10;
533 m_verticalAttractionEfficiency = 1f;
534 m_verticalAttractionTimescale = 10f;
535 m_bankingEfficiency = -0.2f;
536 m_bankingMix = 1;
537 m_bankingTimescale = 1;
538 m_flags &= ~(VehicleFlag.HOVER_WATER_ONLY |
539 VehicleFlag.HOVER_TERRAIN_ONLY |
540 VehicleFlag.HOVER_GLOBAL_HEIGHT);
541 m_flags |= (VehicleFlag.NO_DEFLECTION_UP |
542 VehicleFlag.LIMIT_ROLL_ONLY |
543 VehicleFlag.LIMIT_MOTOR_UP |
544 VehicleFlag.HOVER_UP_ONLY);
545 break;
546 case Vehicle.TYPE_BOAT:
547 m_linearFrictionTimescale = new Vector3(10, 3, 2);
548 m_angularFrictionTimescale = new Vector3(10, 10, 10);
549 m_linearMotorTimescale = 5;
550 m_linearMotorDecayTimescale = 60 * m_invtimestep;
551 m_angularMotorTimescale = 4;
552 m_angularMotorDecayTimescale = 4 * m_invtimestep;
553 m_VhoverHeight = 0;
554 m_VhoverEfficiency = 0.5f;
555 m_VhoverTimescale = 2;
556 m_VehicleBuoyancy = 1;
557 m_linearDeflectionEfficiency = 0.5f;
558 m_linearDeflectionTimescale = 3;
559 m_angularDeflectionEfficiency = 0.5f;
560 m_angularDeflectionTimescale = 5;
561 m_verticalAttractionEfficiency = 0.5f;
562 m_verticalAttractionTimescale = 5f;
563 m_bankingEfficiency = -0.3f;
564 m_bankingMix = 0.8f;
565 m_bankingTimescale = 1;
566 m_flags &= ~(VehicleFlag.HOVER_TERRAIN_ONLY |
567 VehicleFlag.HOVER_GLOBAL_HEIGHT |
568 VehicleFlag.HOVER_UP_ONLY); // |
569// VehicleFlag.LIMIT_ROLL_ONLY);
570 m_flags |= (VehicleFlag.NO_DEFLECTION_UP |
571 VehicleFlag.LIMIT_MOTOR_UP |
572 VehicleFlag.HOVER_UP_ONLY | // new sl
573 VehicleFlag.HOVER_WATER_ONLY);
574 break;
575
576 case Vehicle.TYPE_AIRPLANE:
577 m_linearFrictionTimescale = new Vector3(200, 10, 5);
578 m_angularFrictionTimescale = new Vector3(20, 20, 20);
579 m_linearMotorTimescale = 2;
580 m_linearMotorDecayTimescale = 60 * m_invtimestep;
581 m_angularMotorTimescale = 4;
582 m_angularMotorDecayTimescale = 8 * m_invtimestep;
583 m_VhoverHeight = 0;
584 m_VhoverEfficiency = 0.5f;
585 m_VhoverTimescale = 1000;
586 m_VehicleBuoyancy = 0;
587 m_linearDeflectionEfficiency = 0.5f;
588 m_linearDeflectionTimescale = 0.5f;
589 m_angularDeflectionEfficiency = 1;
590 m_angularDeflectionTimescale = 2;
591 m_verticalAttractionEfficiency = 0.9f;
592 m_verticalAttractionTimescale = 2f;
593 m_bankingEfficiency = 1;
594 m_bankingMix = 0.7f;
595 m_bankingTimescale = 2;
596 m_flags &= ~(VehicleFlag.HOVER_WATER_ONLY |
597 VehicleFlag.HOVER_TERRAIN_ONLY |
598 VehicleFlag.HOVER_GLOBAL_HEIGHT |
599 VehicleFlag.HOVER_UP_ONLY |
600 VehicleFlag.NO_DEFLECTION_UP |
601 VehicleFlag.LIMIT_MOTOR_UP);
602 m_flags |= (VehicleFlag.LIMIT_ROLL_ONLY);
603 break;
604
605 case Vehicle.TYPE_BALLOON:
606 m_linearFrictionTimescale = new Vector3(5, 5, 5);
607 m_angularFrictionTimescale = new Vector3(10, 10, 10);
608 m_linearMotorTimescale = 5;
609 m_linearMotorDecayTimescale = 60 * m_invtimestep;
610 m_angularMotorTimescale = 6;
611 m_angularMotorDecayTimescale = 10 * m_invtimestep;
612 m_VhoverHeight = 5;
613 m_VhoverEfficiency = 0.8f;
614 m_VhoverTimescale = 10;
615 m_VehicleBuoyancy = 1;
616 m_linearDeflectionEfficiency = 0;
617 m_linearDeflectionTimescale = 5 * m_invtimestep;
618 m_angularDeflectionEfficiency = 0;
619 m_angularDeflectionTimescale = 5;
620 m_verticalAttractionEfficiency = 1f;
621 m_verticalAttractionTimescale = 1000f;
622 m_bankingEfficiency = 0;
623 m_bankingMix = 0.7f;
624 m_bankingTimescale = 5;
625 m_flags &= ~(VehicleFlag.HOVER_WATER_ONLY |
626 VehicleFlag.HOVER_TERRAIN_ONLY |
627 VehicleFlag.HOVER_UP_ONLY |
628 VehicleFlag.NO_DEFLECTION_UP |
629 VehicleFlag.LIMIT_MOTOR_UP | //);
630 VehicleFlag.LIMIT_ROLL_ONLY | // new sl
631 VehicleFlag.HOVER_GLOBAL_HEIGHT); // new sl
632
633// m_flags |= (VehicleFlag.LIMIT_ROLL_ONLY |
634// VehicleFlag.HOVER_GLOBAL_HEIGHT);
635 break;
636
637 }
638
639 m_lmDecay = (1.0f - 1.0f / m_linearMotorDecayTimescale);
640 m_amDecay = 1.0f - 1.0f / m_angularMotorDecayTimescale;
641
642 }//end SetDefaultsForType
643
644 internal void Stop()
645 {
646 m_lmEfect = 0;
647 m_lmDecay = 0f;
648 m_amEfect = 0;
649 m_amDecay = 0;
650 m_ffactor = 1f;
651 }
652
653 public static Vector3 Xrot(Quaternion rot)
654 {
655 Vector3 vec;
656 rot.Normalize(); // just in case
657 vec.X = 2 * (rot.X * rot.X + rot.W * rot.W) - 1;
658 vec.Y = 2 * (rot.X * rot.Y + rot.Z * rot.W);
659 vec.Z = 2 * (rot.X * rot.Z - rot.Y * rot.W);
660 return vec;
661 }
662
663 public static Vector3 Zrot(Quaternion rot)
664 {
665 Vector3 vec;
666 rot.Normalize(); // just in case
667 vec.X = 2 * (rot.X * rot.Z + rot.Y * rot.W);
668 vec.Y = 2 * (rot.Y * rot.Z - rot.X * rot.W);
669 vec.Z = 2 * (rot.Z * rot.Z + rot.W * rot.W) - 1;
670
671 return vec;
672 }
673
674 private const float pi = (float)Math.PI;
675 private const float halfpi = 0.5f * (float)Math.PI;
676 private const float twopi = 2.0f * pi;
677
678 public static Vector3 ubitRot2Euler(Quaternion rot)
679 {
680 // returns roll in X
681 // pitch in Y
682 // yaw in Z
683 Vector3 vec;
684
685 // assuming rot is normalised
686 // rot.Normalize();
687
688 float zX = rot.X * rot.Z + rot.Y * rot.W;
689
690 if (zX < -0.49999f)
691 {
692 vec.X = 0;
693 vec.Y = -halfpi;
694 vec.Z = (float)(-2d * Math.Atan(rot.X / rot.W));
695 }
696 else if (zX > 0.49999f)
697 {
698 vec.X = 0;
699 vec.Y = halfpi;
700 vec.Z = (float)(2d * Math.Atan(rot.X / rot.W));
701 }
702 else
703 {
704 vec.Y = (float)Math.Asin(2 * zX);
705
706 float sqw = rot.W * rot.W;
707
708 float minuszY = rot.X * rot.W - rot.Y * rot.Z;
709 float zZ = rot.Z * rot.Z + sqw - 0.5f;
710
711 vec.X = (float)Math.Atan2(minuszY, zZ);
712
713 float yX = rot.Z * rot.W - rot.X * rot.Y; //( have negative ?)
714 float yY = rot.X * rot.X + sqw - 0.5f;
715 vec.Z = (float)Math.Atan2(yX, yY);
716 }
717 return vec;
718 }
719
720 public static void GetRollPitch(Quaternion rot, out float roll, out float pitch)
721 {
722 // assuming rot is normalised
723 // rot.Normalize();
724
725 float zX = rot.X * rot.Z + rot.Y * rot.W;
726
727 if (zX < -0.49999f)
728 {
729 roll = 0;
730 pitch = -halfpi;
731 }
732 else if (zX > 0.49999f)
733 {
734 roll = 0;
735 pitch = halfpi;
736 }
737 else
738 {
739 pitch = (float)Math.Asin(2 * zX);
740
741 float minuszY = rot.X * rot.W - rot.Y * rot.Z;
742 float zZ = rot.Z * rot.Z + rot.W * rot.W - 0.5f;
743
744 roll = (float)Math.Atan2(minuszY, zZ);
745 }
746 return ;
747 }
748
749 internal void Step()
750 {
751 IntPtr Body = rootPrim.Body;
752
753 d.Mass dmass;
754 d.BodyGetMass(Body, out dmass);
755
756 d.Quaternion rot = d.BodyGetQuaternion(Body);
757 Quaternion objrotq = new Quaternion(rot.X, rot.Y, rot.Z, rot.W); // rotq = rotation of object
758 Quaternion rotq = objrotq; // rotq = rotation of object
759 rotq *= m_referenceFrame; // rotq is now rotation in vehicle reference frame
760 Quaternion irotq = Quaternion.Inverse(rotq);
761
762 d.Vector3 dvtmp;
763 Vector3 tmpV;
764 Vector3 curVel; // velocity in world
765 Vector3 curAngVel; // angular velocity in world
766 Vector3 force = Vector3.Zero; // actually linear aceleration until mult by mass in world frame
767 Vector3 torque = Vector3.Zero;// actually angular aceleration until mult by Inertia in vehicle frame
768 d.Vector3 dtorque = new d.Vector3();
769
770 dvtmp = d.BodyGetLinearVel(Body);
771 curVel.X = dvtmp.X;
772 curVel.Y = dvtmp.Y;
773 curVel.Z = dvtmp.Z;
774 Vector3 curLocalVel = curVel * irotq; // current velocity in local
775
776 dvtmp = d.BodyGetAngularVel(Body);
777 curAngVel.X = dvtmp.X;
778 curAngVel.Y = dvtmp.Y;
779 curAngVel.Z = dvtmp.Z;
780 Vector3 curLocalAngVel = curAngVel * irotq; // current angular velocity in local
781
782 float ldampZ = 0;
783
784 // linear motor
785 if (m_lmEfect > 0.01 && m_linearMotorTimescale < 1000)
786 {
787 tmpV = m_linearMotorDirection - curLocalVel; // velocity error
788 tmpV *= m_lmEfect / m_linearMotorTimescale; // error to correct in this timestep
789 tmpV *= rotq; // to world
790
791 if ((m_flags & VehicleFlag.LIMIT_MOTOR_UP) != 0)
792 tmpV.Z = 0;
793
794 if (m_linearMotorOffset.X != 0 || m_linearMotorOffset.Y != 0 || m_linearMotorOffset.Z != 0)
795 {
796 // have offset, do it now
797 tmpV *= dmass.mass;
798 d.BodyAddForceAtRelPos(Body, tmpV.X, tmpV.Y, tmpV.Z, m_linearMotorOffset.X, m_linearMotorOffset.Y, m_linearMotorOffset.Z);
799 }
800 else
801 {
802 force.X += tmpV.X;
803 force.Y += tmpV.Y;
804 force.Z += tmpV.Z;
805 }
806
807 m_lmEfect *= m_lmDecay;
808 m_ffactor = 0.01f + 1e-4f * curVel.LengthSquared();
809 }
810 else
811 {
812 m_lmEfect = 0;
813 m_ffactor = 1f;
814 }
815
816 // hover
817 if (m_VhoverTimescale < 300 && rootPrim.prim_geom != IntPtr.Zero)
818 {
819 // d.Vector3 pos = d.BodyGetPosition(Body);
820 d.Vector3 pos = d.GeomGetPosition(rootPrim.prim_geom);
821 pos.Z -= 0.21f; // minor offset that seems to be always there in sl
822
823 float t = _pParentScene.GetTerrainHeightAtXY(pos.X, pos.Y);
824 float perr;
825
826 // default to global but don't go underground
827 perr = m_VhoverHeight - pos.Z;
828
829 if ((m_flags & VehicleFlag.HOVER_GLOBAL_HEIGHT) == 0)
830 {
831 if ((m_flags & VehicleFlag.HOVER_WATER_ONLY) != 0)
832 {
833 perr += _pParentScene.GetWaterLevel();
834 }
835 else if ((m_flags & VehicleFlag.HOVER_TERRAIN_ONLY) != 0)
836 {
837 perr += t;
838 }
839 else
840 {
841 float w = _pParentScene.GetWaterLevel();
842 if (t > w)
843 perr += t;
844 else
845 perr += w;
846 }
847 }
848 else if (t > m_VhoverHeight)
849 perr = t - pos.Z; ;
850
851 if ((m_flags & VehicleFlag.HOVER_UP_ONLY) == 0 || perr > -0.1)
852 {
853 ldampZ = m_VhoverEfficiency * m_invtimestep;
854
855 perr *= (1.0f + ldampZ) / m_VhoverTimescale;
856
857 // force.Z += perr - curVel.Z * tmp;
858 force.Z += perr;
859 ldampZ *= -curVel.Z;
860
861 force.Z += _pParentScene.gravityz * (1f - m_VehicleBuoyancy);
862 }
863 else // no buoyancy
864 force.Z += _pParentScene.gravityz;
865 }
866 else
867 {
868 // default gravity and Buoyancy
869 force.Z += _pParentScene.gravityz * (1f - m_VehicleBuoyancy);
870 }
871
872 // linear deflection
873 if (m_linearDeflectionEfficiency > 0)
874 {
875 float len = curVel.Length();
876 if (len > 0.01) // if moving
877 {
878 Vector3 atAxis;
879 atAxis = Xrot(rotq); // where are we pointing to
880 atAxis *= len; // make it same size as world velocity vector
881
882 tmpV = -atAxis; // oposite direction
883 atAxis -= curVel; // error to one direction
884 len = atAxis.LengthSquared();
885
886 tmpV -= curVel; // error to oposite
887 float lens = tmpV.LengthSquared();
888
889 if (len > 0.01 || lens > 0.01) // do nothing if close enougth
890 {
891 if (len < lens)
892 tmpV = atAxis;
893
894 tmpV *= (m_linearDeflectionEfficiency / m_linearDeflectionTimescale); // error to correct in this timestep
895 force.X += tmpV.X;
896 force.Y += tmpV.Y;
897 if ((m_flags & VehicleFlag.NO_DEFLECTION_UP) == 0)
898 force.Z += tmpV.Z;
899 }
900 }
901 }
902
903 // linear friction/damping
904 if (curLocalVel.X != 0 || curLocalVel.Y != 0 || curLocalVel.Z != 0)
905 {
906 tmpV.X = -curLocalVel.X / m_linearFrictionTimescale.X;
907 tmpV.Y = -curLocalVel.Y / m_linearFrictionTimescale.Y;
908 tmpV.Z = -curLocalVel.Z / m_linearFrictionTimescale.Z;
909 tmpV *= rotq; // to world
910
911 if(ldampZ != 0 && Math.Abs(ldampZ) > Math.Abs(tmpV.Z))
912 tmpV.Z = ldampZ;
913 force.X += tmpV.X;
914 force.Y += tmpV.Y;
915 force.Z += tmpV.Z;
916 }
917
918 // vertical atractor
919 if (m_verticalAttractionTimescale < 300)
920 {
921 float roll;
922 float pitch;
923
924
925
926 float ftmp = m_invtimestep / m_verticalAttractionTimescale / m_verticalAttractionTimescale;
927
928 float ftmp2;
929 ftmp2 = 0.5f * m_verticalAttractionEfficiency * m_invtimestep;
930 m_amdampX = ftmp2;
931
932 m_ampwr = 1.0f - 0.8f * m_verticalAttractionEfficiency;
933
934 GetRollPitch(irotq, out roll, out pitch);
935
936 if (roll > halfpi)
937 roll = pi - roll;
938 else if (roll < -halfpi)
939 roll = -pi - roll;
940
941 float effroll = pitch / halfpi;
942 effroll *= effroll;
943 effroll = 1 - effroll;
944 effroll *= roll;
945
946
947 torque.X += effroll * ftmp;
948
949 if ((m_flags & VehicleFlag.LIMIT_ROLL_ONLY) == 0)
950 {
951 float effpitch = roll / halfpi;
952 effpitch *= effpitch;
953 effpitch = 1 - effpitch;
954 effpitch *= pitch;
955
956 torque.Y += effpitch * ftmp;
957 }
958
959 if (m_bankingEfficiency != 0 && Math.Abs(effroll) > 0.01)
960 {
961
962 float broll = effroll;
963 /*
964 if (broll > halfpi)
965 broll = pi - broll;
966 else if (broll < -halfpi)
967 broll = -pi - broll;
968 */
969 broll *= m_bankingEfficiency;
970 if (m_bankingMix != 0)
971 {
972 float vfact = Math.Abs(curLocalVel.X) / 10.0f;
973 if (vfact > 1.0f) vfact = 1.0f;
974
975 if (curLocalVel.X >= 0)
976 broll *= (1 + (vfact - 1) * m_bankingMix);
977 else
978 broll *= -(1 + (vfact - 1) * m_bankingMix);
979 }
980 // make z rot be in world Z not local as seems to be in sl
981
982 broll = broll / m_bankingTimescale;
983
984
985 tmpV = Zrot(irotq);
986 tmpV *= broll;
987
988 torque.X += tmpV.X;
989 torque.Y += tmpV.Y;
990 torque.Z += tmpV.Z;
991
992 m_amdampZ = Math.Abs(m_bankingEfficiency) / m_bankingTimescale;
993 m_amdampY = m_amdampZ;
994
995 }
996 else
997 {
998 m_amdampZ = 1 / m_angularFrictionTimescale.Z;
999 m_amdampY = m_amdampX;
1000 }
1001 }
1002 else
1003 {
1004 m_ampwr = 1.0f;
1005 m_amdampX = 1 / m_angularFrictionTimescale.X;
1006 m_amdampY = 1 / m_angularFrictionTimescale.Y;
1007 m_amdampZ = 1 / m_angularFrictionTimescale.Z;
1008 }
1009
1010 // angular motor
1011 if (m_amEfect > 0.01 && m_angularMotorTimescale < 1000)
1012 {
1013 tmpV = m_angularMotorDirection - curLocalAngVel; // velocity error
1014 tmpV *= m_amEfect / m_angularMotorTimescale; // error to correct in this timestep
1015 torque.X += tmpV.X * m_ampwr;
1016 torque.Y += tmpV.Y * m_ampwr;
1017 torque.Z += tmpV.Z;
1018
1019 m_amEfect *= m_amDecay;
1020 }
1021 else
1022 m_amEfect = 0;
1023
1024 // angular deflection
1025 if (m_angularDeflectionEfficiency > 0)
1026 {
1027 Vector3 dirv;
1028
1029 if (curLocalVel.X > 0.01f)
1030 dirv = curLocalVel;
1031 else if (curLocalVel.X < -0.01f)
1032 // use oposite
1033 dirv = -curLocalVel;
1034 else
1035 {
1036 // make it fall into small positive x case
1037 dirv.X = 0.01f;
1038 dirv.Y = curLocalVel.Y;
1039 dirv.Z = curLocalVel.Z;
1040 }
1041
1042 float ftmp = m_angularDeflectionEfficiency / m_angularDeflectionTimescale;
1043
1044 if (Math.Abs(dirv.Z) > 0.01)
1045 {
1046 torque.Y += - (float)Math.Atan2(dirv.Z, dirv.X) * ftmp;
1047 }
1048
1049 if (Math.Abs(dirv.Y) > 0.01)
1050 {
1051 torque.Z += (float)Math.Atan2(dirv.Y, dirv.X) * ftmp;
1052 }
1053 }
1054
1055 // angular friction
1056 if (curLocalAngVel.X != 0 || curLocalAngVel.Y != 0 || curLocalAngVel.Z != 0)
1057 {
1058 torque.X -= curLocalAngVel.X * m_amdampX;
1059 torque.Y -= curLocalAngVel.Y * m_amdampY;
1060 torque.Z -= curLocalAngVel.Z * m_amdampZ;
1061 }
1062
1063
1064
1065 if (force.X != 0 || force.Y != 0 || force.Z != 0)
1066 {
1067 force *= dmass.mass;
1068 d.BodyAddForce(Body, force.X, force.Y, force.Z);
1069 }
1070
1071 if (torque.X != 0 || torque.Y != 0 || torque.Z != 0)
1072 {
1073 torque *= m_referenceFrame; // to object frame
1074 dtorque.X = torque.X ;
1075 dtorque.Y = torque.Y;
1076 dtorque.Z = torque.Z;
1077
1078 d.MultiplyM3V3(out dvtmp, ref dmass.I, ref dtorque);
1079 d.BodyAddRelTorque(Body, dvtmp.X, dvtmp.Y, dvtmp.Z); // add torque in object frame
1080 }
1081 }
1082 }
1083}
diff --git a/OpenSim/Region/Physics/UbitOdePlugin/ODEPrim.cs b/OpenSim/Region/Physics/UbitOdePlugin/ODEPrim.cs
new file mode 100644
index 0000000..9b3b51b
--- /dev/null
+++ b/OpenSim/Region/Physics/UbitOdePlugin/ODEPrim.cs
@@ -0,0 +1,4074 @@
1/*
2 * Copyright (c) Contributors, http://opensimulator.org/
3 * See CONTRIBUTORS.TXT for a full list of copyright holders.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 * * Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * * Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
12 * * Neither the name of the OpenSimulator Project nor the
13 * names of its contributors may be used to endorse or promote products
14 * derived from this software without specific prior written permission.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
17 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
20 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28/* Revision 2011/12 by Ubit Umarov
29 *
30 *
31 */
32
33/*
34 * Revised August 26 2009 by Kitto Flora. ODEDynamics.cs replaces
35 * ODEVehicleSettings.cs. It and ODEPrim.cs are re-organised:
36 * ODEPrim.cs contains methods dealing with Prim editing, Prim
37 * characteristics and Kinetic motion.
38 * ODEDynamics.cs contains methods dealing with Prim Physical motion
39 * (dynamics) and the associated settings. Old Linear and angular
40 * motors for dynamic motion have been replace with MoveLinear()
41 * and MoveAngular(); 'Physical' is used only to switch ODE dynamic
42 * simualtion on/off; VEHICAL_TYPE_NONE/VEHICAL_TYPE_<other> is to
43 * switch between 'VEHICLE' parameter use and general dynamics
44 * settings use.
45 */
46
47//#define SPAM
48
49using System;
50using System.Collections.Generic;
51using System.Reflection;
52using System.Runtime.InteropServices;
53using System.Threading;
54using log4net;
55using OpenMetaverse;
56using OdeAPI;
57using OpenSim.Framework;
58using OpenSim.Region.Physics.Manager;
59
60
61namespace OpenSim.Region.Physics.OdePlugin
62{
63 public class OdePrim : PhysicsActor
64 {
65 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
66
67 private bool m_isphysical;
68 private bool m_fakeisphysical;
69 private bool m_isphantom;
70 private bool m_fakeisphantom;
71 internal bool m_isVolumeDetect; // If true, this prim only detects collisions but doesn't collide actively
72 private bool m_fakeisVolumeDetect; // If true, this prim only detects collisions but doesn't collide actively
73
74 protected bool m_building;
75 protected bool m_forcePosOrRotation;
76 private bool m_iscolliding;
77
78 internal bool m_isSelected;
79 private bool m_delaySelect;
80 private bool m_lastdoneSelected;
81 internal bool m_outbounds;
82
83 private Quaternion m_lastorientation = new Quaternion();
84 private Quaternion _orientation;
85
86 private Vector3 _position;
87 private Vector3 _velocity;
88 private Vector3 _torque;
89 private Vector3 m_lastVelocity;
90 private Vector3 m_lastposition;
91 private Vector3 m_rotationalVelocity;
92 private Vector3 _size;
93 private Vector3 _acceleration;
94 private Vector3 m_angularlock = Vector3.One;
95 private IntPtr Amotor = IntPtr.Zero;
96
97 private Vector3 m_force;
98 private Vector3 m_forceacc;
99 private Vector3 m_angularForceacc;
100
101 private float m_invTimeStep = 50.0f;
102 private float m_timeStep = .02f;
103
104
105 private Vector3 m_PIDTarget;
106 private float m_PIDTau;
107 private bool m_usePID;
108
109 // KF: These next 7 params apply to llSetHoverHeight(float height, integer water, float tau),
110 // and are for non-VEHICLES only.
111
112 private float m_PIDHoverHeight;
113 private float m_PIDHoverTau;
114 private bool m_useHoverPID;
115 private PIDHoverType m_PIDHoverType = PIDHoverType.Ground;
116 private float m_targetHoverHeight;
117 private float m_groundHeight;
118 private float m_waterHeight;
119 private float m_buoyancy; //KF: m_buoyancy should be set by llSetBuoyancy() for non-vehicle.
120
121 private int body_autodisable_frames = 5;
122 private int bodydisablecontrol = 0;
123
124
125 // Default we're a Geometry
126 private CollisionCategories m_collisionCategories = (CollisionCategories.Geom);
127 // Default colide nonphysical don't try to colide with anything
128 private const CollisionCategories m_default_collisionFlagsNotPhysical = 0;
129
130 private const CollisionCategories m_default_collisionFlagsPhysical = (CollisionCategories.Geom |
131 CollisionCategories.Character |
132 CollisionCategories.Land |
133 CollisionCategories.VolumeDtc);
134
135// private bool m_collidesLand = true;
136 private bool m_collidesWater;
137 public bool m_returnCollisions;
138
139 private bool m_NoColide; // for now only for internal use for bad meshs
140
141
142 // Default, Collide with Other Geometries, spaces and Bodies
143 private CollisionCategories m_collisionFlags = m_default_collisionFlagsNotPhysical;
144
145 public bool m_disabled;
146
147 public uint m_localID;
148
149 private IMesh m_mesh;
150 private object m_meshlock = new object();
151 private PrimitiveBaseShape _pbs;
152 public OdeScene _parent_scene;
153
154 /// <summary>
155 /// The physics space which contains prim geometry
156 /// </summary>
157 public IntPtr m_targetSpace = IntPtr.Zero;
158
159 public IntPtr prim_geom;
160 public IntPtr _triMeshData;
161
162 private PhysicsActor _parent;
163
164 private List<OdePrim> childrenPrim = new List<OdePrim>();
165
166
167 private bool m_throttleUpdates;
168 private int throttleCounter;
169 public float m_collisionscore;
170 int m_colliderfilter = 0;
171
172 public IntPtr collide_geom; // for objects: geom if single prim space it linkset
173
174 private float m_density = 10.000006836f; // Aluminum g/cm3;
175 private byte m_shapetype;
176 public bool _zeroFlag;
177 private bool m_lastUpdateSent;
178
179 public IntPtr Body = IntPtr.Zero;
180 public String Name { get; private set; }
181 private Vector3 _target_velocity;
182
183 public Vector3 primOOBsize; // prim real dimensions from mesh
184 public Vector3 primOOBoffset; // its centroid out of mesh or rest aabb
185 public float primOOBradiusSQ;
186 public d.Mass primdMass; // prim inertia information on it's own referencial
187 float primMass; // prim own mass
188 float primVolume; // prim own volume;
189 float _mass; // object mass acording to case
190 private bool hasOOBoffsetFromMesh = false; // if true we did compute it form mesh centroid, else from aabb
191
192 public int givefakepos = 0;
193 private Vector3 fakepos;
194 public int givefakeori = 0;
195 private Quaternion fakeori;
196
197 private int m_eventsubscription;
198 private int m_cureventsubscription;
199 private CollisionEventUpdate CollisionEventsThisFrame = null;
200 private bool SentEmptyCollisionsEvent;
201
202 public volatile bool childPrim;
203
204 public ODEDynamics m_vehicle;
205
206 internal int m_material = (int)Material.Wood;
207 private float mu;
208 private float bounce;
209
210 /// <summary>
211 /// Is this prim subject to physics? Even if not, it's still solid for collision purposes.
212 /// </summary>
213 public override bool IsPhysical // this is not reliable for internal use
214 {
215 get { return m_fakeisphysical; }
216 set
217 {
218 m_fakeisphysical = value; // we show imediatly to outside that we changed physical
219 // and also to stop imediatly some updates
220 // but real change will only happen in taintprocessing
221
222 if (!value) // Zero the remembered last velocity
223 m_lastVelocity = Vector3.Zero;
224 AddChange(changes.Physical, value);
225 }
226 }
227
228 public override bool IsVolumeDtc
229 {
230 get { return m_fakeisVolumeDetect; }
231 set
232 {
233 m_fakeisVolumeDetect = value;
234 AddChange(changes.VolumeDtc, value);
235 }
236 }
237
238
239 public override bool Phantom // this is not reliable for internal use
240 {
241 get { return m_fakeisphantom; }
242 set
243 {
244 m_fakeisphantom = value;
245 AddChange(changes.Phantom, value);
246 }
247 }
248
249 public override bool Building // this is not reliable for internal use
250 {
251 get { return m_building; }
252 set
253 {
254 if (value)
255 m_building = true;
256 AddChange(changes.building, value);
257 }
258 }
259
260 public override void getContactData(ref ContactData cdata)
261 {
262 cdata.mu = mu;
263 cdata.bounce = bounce;
264
265 // cdata.softcolide = m_softcolide;
266 cdata.softcolide = false;
267
268 if (m_isphysical)
269 {
270 ODEDynamics veh;
271 if (_parent != null)
272 veh = ((OdePrim)_parent).m_vehicle;
273 else
274 veh = m_vehicle;
275
276 if (veh != null && veh.Type != Vehicle.TYPE_NONE)
277 cdata.mu *= veh.FrictionFactor;
278 }
279 }
280
281 public override int PhysicsActorType
282 {
283 get { return (int)ActorTypes.Prim; }
284 set { return; }
285 }
286
287 public override bool SetAlwaysRun
288 {
289 get { return false; }
290 set { return; }
291 }
292
293 public override uint LocalID
294 {
295 get
296 {
297 return m_localID;
298 }
299 set
300 {
301 //m_log.Info("[PHYSICS]: Setting TrackerID: " + value);
302 m_localID = value;
303 }
304 }
305
306 public override bool Grabbed
307 {
308 set { return; }
309 }
310
311 public override bool Selected
312 {
313 set
314 {
315 if (value)
316 m_isSelected = value; // if true set imediatly to stop moves etc
317 AddChange(changes.Selected, value);
318 }
319 }
320
321 public override bool Flying
322 {
323 // no flying prims for you
324 get { return false; }
325 set { }
326 }
327
328 public override bool IsColliding
329 {
330 get { return m_iscolliding; }
331 set
332 {
333 if (value)
334 {
335 m_colliderfilter += 2;
336 if (m_colliderfilter > 2)
337 m_colliderfilter = 2;
338 }
339 else
340 {
341 m_colliderfilter--;
342 if (m_colliderfilter < 0)
343 m_colliderfilter = 0;
344 }
345
346 if (m_colliderfilter == 0)
347 m_iscolliding = false;
348 else
349 m_iscolliding = true;
350 }
351 }
352
353 public override bool CollidingGround
354 {
355 get { return false; }
356 set { return; }
357 }
358
359 public override bool CollidingObj
360 {
361 get { return false; }
362 set { return; }
363 }
364
365 public override bool ThrottleUpdates
366 {
367 get { return m_throttleUpdates; }
368 set { m_throttleUpdates = value; }
369 }
370
371 public override bool Stopped
372 {
373 get { return _zeroFlag; }
374 }
375
376 public override Vector3 Position
377 {
378 get
379 {
380 if (givefakepos > 0)
381 return fakepos;
382 else
383 return _position;
384 }
385
386 set
387 {
388 fakepos = value;
389 givefakepos++;
390 AddChange(changes.Position, value);
391 }
392 }
393
394 public override Vector3 Size
395 {
396 get { return _size; }
397 set
398 {
399 if (value.IsFinite())
400 {
401 AddChange(changes.Size, value);
402 }
403 else
404 {
405 m_log.WarnFormat("[PHYSICS]: Got NaN Size on object {0}", Name);
406 }
407 }
408 }
409
410 public override float Mass
411 {
412 get { return primMass; }
413 }
414
415 public override Vector3 Force
416 {
417 //get { return Vector3.Zero; }
418 get { return m_force; }
419 set
420 {
421 if (value.IsFinite())
422 {
423 AddChange(changes.Force, value);
424 }
425 else
426 {
427 m_log.WarnFormat("[PHYSICS]: NaN in Force Applied to an Object {0}", Name);
428 }
429 }
430 }
431
432 public override void SetVolumeDetect(int param)
433 {
434 m_fakeisVolumeDetect = (param != 0);
435 AddChange(changes.VolumeDtc, m_fakeisVolumeDetect);
436 }
437
438 public override Vector3 GeometricCenter
439 {
440 // this is not real geometric center but a average of positions relative to root prim acording to
441 // http://wiki.secondlife.com/wiki/llGetGeometricCenter
442 // ignoring tortured prims details since sl also seems to ignore
443 // so no real use in doing it on physics
444 get
445 {
446 return Vector3.Zero;
447 }
448 }
449
450 public override Vector3 CenterOfMass
451 {
452 get
453 {
454 lock (_parent_scene.OdeLock)
455 {
456 d.Vector3 dtmp;
457 if (!childPrim && Body != IntPtr.Zero)
458 {
459 dtmp = d.BodyGetPosition(Body);
460 return new Vector3(dtmp.X, dtmp.Y, dtmp.Z);
461 }
462 else if (prim_geom != IntPtr.Zero)
463 {
464 d.Quaternion dq;
465 d.GeomCopyQuaternion(prim_geom, out dq);
466 Quaternion q;
467 q.X = dq.X;
468 q.Y = dq.Y;
469 q.Z = dq.Z;
470 q.W = dq.W;
471
472 Vector3 Ptot = primOOBoffset * q;
473 dtmp = d.GeomGetPosition(prim_geom);
474 Ptot.X += dtmp.X;
475 Ptot.Y += dtmp.Y;
476 Ptot.Z += dtmp.Z;
477
478 // if(childPrim) we only know about physical linksets
479 return Ptot;
480/*
481 float tmass = _mass;
482 Ptot *= tmass;
483
484 float m;
485
486 foreach (OdePrim prm in childrenPrim)
487 {
488 m = prm._mass;
489 Ptot += prm.CenterOfMass * m;
490 tmass += m;
491 }
492
493 if (tmass == 0)
494 tmass = 0;
495 else
496 tmass = 1.0f / tmass;
497
498 Ptot *= tmass;
499 return Ptot;
500*/
501 }
502 else
503 return _position;
504 }
505 }
506 }
507
508 public override Vector3 OOBsize
509 {
510 get
511 {
512 return primOOBsize;
513 }
514 }
515
516 public override Vector3 OOBoffset
517 {
518 get
519 {
520 return primOOBoffset;
521 }
522 }
523
524 public override float OOBRadiusSQ
525 {
526 get
527 {
528 return primOOBradiusSQ;
529 }
530 }
531
532 public override PrimitiveBaseShape Shape
533 {
534 set
535 {
536/*
537 IMesh mesh = null;
538 if (_parent_scene.needsMeshing(value))
539 {
540 bool convex;
541 if (m_shapetype == 0)
542 convex = false;
543 else
544 convex = true;
545 mesh = _parent_scene.mesher.CreateMesh(Name, _pbs, _size, (int)LevelOfDetail.High, true, convex);
546 }
547
548 if (mesh != null)
549 {
550 lock (m_meshlock)
551 m_mesh = mesh;
552 }
553*/
554 AddChange(changes.Shape, value);
555 }
556 }
557
558 public override byte PhysicsShapeType
559 {
560 get
561 {
562 return m_shapetype;
563 }
564 set
565 {
566 m_shapetype = value;
567 AddChange(changes.Shape, null);
568 }
569 }
570
571
572 public override Vector3 Velocity
573 {
574 get
575 {
576 if (_zeroFlag)
577 return Vector3.Zero;
578 return _velocity;
579 }
580 set
581 {
582 if (value.IsFinite())
583 {
584 AddChange(changes.Velocity, value);
585// _velocity = value;
586
587 }
588 else
589 {
590 m_log.WarnFormat("[PHYSICS]: Got NaN Velocity in Object {0}", Name);
591 }
592
593 }
594 }
595
596 public override Vector3 Torque
597 {
598 get
599 {
600 if (!IsPhysical || Body == IntPtr.Zero)
601 return Vector3.Zero;
602
603 return _torque;
604 }
605
606 set
607 {
608 if (value.IsFinite())
609 {
610 AddChange(changes.Torque, value);
611 }
612 else
613 {
614 m_log.WarnFormat("[PHYSICS]: Got NaN Torque in Object {0}", Name);
615 }
616 }
617 }
618
619 public override float CollisionScore
620 {
621 get { return m_collisionscore; }
622 set { m_collisionscore = value; }
623 }
624
625 public override bool Kinematic
626 {
627 get { return false; }
628 set { }
629 }
630
631 public override Quaternion Orientation
632 {
633 get
634 {
635 if (givefakeori > 0)
636 return fakeori;
637 else
638
639 return _orientation;
640 }
641 set
642 {
643 if (QuaternionIsFinite(value))
644 {
645 fakeori = value;
646 givefakeori++;
647 AddChange(changes.Orientation, value);
648 }
649 else
650 m_log.WarnFormat("[PHYSICS]: Got NaN quaternion Orientation from Scene in Object {0}", Name);
651
652 }
653 }
654
655 public override Vector3 Acceleration
656 {
657 get { return _acceleration; }
658 set { }
659 }
660
661 public override Vector3 RotationalVelocity
662 {
663 get
664 {
665 Vector3 pv = Vector3.Zero;
666 if (_zeroFlag)
667 return pv;
668
669 if (m_rotationalVelocity.ApproxEquals(pv, 0.0001f))
670 return pv;
671
672 return m_rotationalVelocity;
673 }
674 set
675 {
676 if (value.IsFinite())
677 {
678 m_rotationalVelocity = value;
679 if (Body != IntPtr.Zero && !d.BodyIsEnabled(Body))
680 d.BodyEnable(Body);
681 }
682 else
683 {
684 m_log.WarnFormat("[PHYSICS]: Got NaN RotationalVelocity in Object {0}", Name);
685 }
686 }
687 }
688
689
690 public override float Buoyancy
691 {
692 get { return m_buoyancy; }
693 set
694 {
695 m_buoyancy = value;
696 }
697 }
698
699 public override bool FloatOnWater
700 {
701 set
702 {
703 AddChange(changes.CollidesWater, value);
704 }
705 }
706
707 public override Vector3 PIDTarget
708 {
709 set
710 {
711 if (value.IsFinite())
712 {
713 m_PIDTarget = value;
714 }
715 else
716 m_log.WarnFormat("[PHYSICS]: Got NaN PIDTarget from Scene on Object {0}", Name);
717 }
718 }
719
720 public override bool PIDActive { set { m_usePID = value; } }
721 public override float PIDTau
722 {
723 set
724 {
725 if (value <= 0)
726 m_PIDTau = 0;
727 else
728 {
729 float mint = (0.05f > m_timeStep ? 0.05f : m_timeStep);
730 if (value < mint)
731 m_PIDTau = mint;
732 else
733 m_PIDTau = value;
734 }
735 }
736 }
737
738 public override float PIDHoverHeight
739 {
740 set
741 {
742 m_PIDHoverHeight = value;
743 if (value == 0)
744 m_useHoverPID = false;
745 }
746 }
747 public override bool PIDHoverActive { set { m_useHoverPID = value; } }
748 public override PIDHoverType PIDHoverType { set { m_PIDHoverType = value; } }
749 public override float PIDHoverTau
750 {
751 set
752 {
753 if (value <= 0)
754 m_PIDHoverTau = 0;
755 else
756 {
757 float mint = (0.05f > m_timeStep ? 0.05f : m_timeStep);
758 if (value < mint)
759 m_PIDHoverTau = mint;
760 else
761 m_PIDHoverTau = value;
762 }
763 }
764 }
765
766 public override Quaternion APIDTarget { set { return; } }
767
768 public override bool APIDActive { set { return; } }
769
770 public override float APIDStrength { set { return; } }
771
772 public override float APIDDamping { set { return; } }
773
774 public override int VehicleType
775 {
776 // we may need to put a fake on this
777 get
778 {
779 if (m_vehicle == null)
780 return (int)Vehicle.TYPE_NONE;
781 else
782 return (int)m_vehicle.Type;
783 }
784 set
785 {
786 AddChange(changes.VehicleType, value);
787 }
788 }
789
790 public override void VehicleFloatParam(int param, float value)
791 {
792 strVehicleFloatParam fp = new strVehicleFloatParam();
793 fp.param = param;
794 fp.value = value;
795 AddChange(changes.VehicleFloatParam, fp);
796 }
797
798 public override void VehicleVectorParam(int param, Vector3 value)
799 {
800 strVehicleVectorParam fp = new strVehicleVectorParam();
801 fp.param = param;
802 fp.value = value;
803 AddChange(changes.VehicleVectorParam, fp);
804 }
805
806 public override void VehicleRotationParam(int param, Quaternion value)
807 {
808 strVehicleQuatParam fp = new strVehicleQuatParam();
809 fp.param = param;
810 fp.value = value;
811 AddChange(changes.VehicleRotationParam, fp);
812 }
813
814 public override void VehicleFlags(int param, bool value)
815 {
816 strVehicleBoolParam bp = new strVehicleBoolParam();
817 bp.param = param;
818 bp.value = value;
819 AddChange(changes.VehicleFlags, bp);
820 }
821
822 public override void SetVehicle(object vdata)
823 {
824 AddChange(changes.SetVehicle, vdata);
825 }
826 public void SetAcceleration(Vector3 accel)
827 {
828 _acceleration = accel;
829 }
830
831 public override void AddForce(Vector3 force, bool pushforce)
832 {
833 if (force.IsFinite())
834 {
835 if(pushforce)
836 AddChange(changes.AddForce, force);
837 else // a impulse
838 AddChange(changes.AddForce, force * m_invTimeStep);
839 }
840 else
841 {
842 m_log.WarnFormat("[PHYSICS]: Got Invalid linear force vector from Scene in Object {0}", Name);
843 }
844 //m_log.Info("[PHYSICS]: Added Force:" + force.ToString() + " to prim at " + Position.ToString());
845 }
846
847 public override void AddAngularForce(Vector3 force, bool pushforce)
848 {
849 if (force.IsFinite())
850 {
851// if(pushforce) for now applyrotationimpulse seems more happy applied as a force
852 AddChange(changes.AddAngForce, force);
853// else // a impulse
854// AddChange(changes.AddAngForce, force * m_invTimeStep);
855 }
856 else
857 {
858 m_log.WarnFormat("[PHYSICS]: Got Invalid Angular force vector from Scene in Object {0}", Name);
859 }
860 }
861
862 public override void CrossingFailure()
863 {
864 if (m_outbounds)
865 {
866 _position.X = Util.Clip(_position.X, 0.5f, _parent_scene.WorldExtents.X - 0.5f);
867 _position.Y = Util.Clip(_position.Y, 0.5f, _parent_scene.WorldExtents.Y - 0.5f);
868 _position.Z = Util.Clip(_position.Z + 0.2f, -100f, 50000f);
869
870 m_lastposition = _position;
871 _velocity.X = 0;
872 _velocity.Y = 0;
873 _velocity.Z = 0;
874
875 m_lastVelocity = _velocity;
876 if (m_vehicle != null && m_vehicle.Type != Vehicle.TYPE_NONE)
877 m_vehicle.Stop();
878
879 if(Body != IntPtr.Zero)
880 d.BodySetLinearVel(Body, 0, 0, 0); // stop it
881 if (prim_geom != IntPtr.Zero)
882 d.GeomSetPosition(prim_geom, _position.X, _position.Y, _position.Z);
883
884 m_outbounds = false;
885 changeDisable(false);
886 base.RequestPhysicsterseUpdate();
887 }
888 }
889
890 public override void SetMomentum(Vector3 momentum)
891 {
892 }
893
894 public override void SetMaterial(int pMaterial)
895 {
896 m_material = pMaterial;
897 mu = _parent_scene.m_materialContactsData[pMaterial].mu;
898 bounce = _parent_scene.m_materialContactsData[pMaterial].bounce;
899 }
900
901 public void setPrimForRemoval()
902 {
903 AddChange(changes.Remove, null);
904 }
905
906 public override void link(PhysicsActor obj)
907 {
908 AddChange(changes.Link, obj);
909 }
910
911 public override void delink()
912 {
913 AddChange(changes.DeLink, null);
914 }
915
916 public override void LockAngularMotion(Vector3 axis)
917 {
918 // reverse the zero/non zero values for ODE.
919 if (axis.IsFinite())
920 {
921 axis.X = (axis.X > 0) ? 1f : 0f;
922 axis.Y = (axis.Y > 0) ? 1f : 0f;
923 axis.Z = (axis.Z > 0) ? 1f : 0f;
924 m_log.DebugFormat("[axislock]: <{0},{1},{2}>", axis.X, axis.Y, axis.Z);
925 AddChange(changes.AngLock, axis);
926 }
927 else
928 {
929 m_log.WarnFormat("[PHYSICS]: Got NaN locking axis from Scene on Object {0}", Name);
930 }
931 }
932
933 public override void SubscribeEvents(int ms)
934 {
935 m_eventsubscription = ms;
936 m_cureventsubscription = 0;
937 if (CollisionEventsThisFrame == null)
938 CollisionEventsThisFrame = new CollisionEventUpdate();
939 SentEmptyCollisionsEvent = false;
940 }
941
942 public override void UnSubscribeEvents()
943 {
944 if (CollisionEventsThisFrame != null)
945 {
946 CollisionEventsThisFrame.Clear();
947 CollisionEventsThisFrame = null;
948 }
949 m_eventsubscription = 0;
950 }
951
952 public void AddCollisionEvent(uint CollidedWith, ContactPoint contact)
953 {
954 if (CollisionEventsThisFrame == null)
955 CollisionEventsThisFrame = new CollisionEventUpdate();
956 CollisionEventsThisFrame.AddCollider(CollidedWith, contact);
957 }
958
959 public void SendCollisions()
960 {
961 if (CollisionEventsThisFrame == null)
962 return;
963
964 if (m_cureventsubscription < m_eventsubscription)
965 return;
966
967 m_cureventsubscription = 0;
968
969 int ncolisions = CollisionEventsThisFrame.m_objCollisionList.Count;
970
971 if (!SentEmptyCollisionsEvent || ncolisions > 0)
972 {
973 base.SendCollisionUpdate(CollisionEventsThisFrame);
974
975 if (ncolisions == 0)
976 {
977 SentEmptyCollisionsEvent = true;
978 _parent_scene.RemoveCollisionEventReporting(this);
979 }
980 else
981 {
982 SentEmptyCollisionsEvent = false;
983 CollisionEventsThisFrame.Clear();
984 }
985 }
986 }
987
988 internal void AddCollisionFrameTime(int t)
989 {
990 if (m_cureventsubscription < 50000)
991 m_cureventsubscription += t;
992 }
993
994 public override bool SubscribedEvents()
995 {
996 if (m_eventsubscription > 0)
997 return true;
998 return false;
999 }
1000
1001
1002 public OdePrim(String primName, OdeScene parent_scene, Vector3 pos, Vector3 size,
1003 Quaternion rotation, PrimitiveBaseShape pbs, bool pisPhysical,bool pisPhantom,byte _shapeType,uint plocalID)
1004 {
1005 Name = primName;
1006 LocalID = plocalID;
1007
1008 m_vehicle = null;
1009
1010 if (!pos.IsFinite())
1011 {
1012 pos = new Vector3(((float)Constants.RegionSize * 0.5f), ((float)Constants.RegionSize * 0.5f),
1013 parent_scene.GetTerrainHeightAtXY(((float)Constants.RegionSize * 0.5f), ((float)Constants.RegionSize * 0.5f)) + 0.5f);
1014 m_log.WarnFormat("[PHYSICS]: Got nonFinite Object create Position for {0}", Name);
1015 }
1016 _position = pos;
1017 givefakepos = 0;
1018
1019 m_timeStep = parent_scene.ODE_STEPSIZE;
1020 m_invTimeStep = 1f / m_timeStep;
1021
1022 m_density = parent_scene.geomDefaultDensity;
1023 // m_tensor = parent_scene.bodyMotorJointMaxforceTensor;
1024 body_autodisable_frames = parent_scene.bodyFramesAutoDisable;
1025
1026 prim_geom = IntPtr.Zero;
1027 collide_geom = IntPtr.Zero;
1028 Body = IntPtr.Zero;
1029
1030 if (!size.IsFinite())
1031 {
1032 size = new Vector3(0.5f, 0.5f, 0.5f);
1033 m_log.WarnFormat("[PHYSICS]: Got nonFinite Object create Size for {0}", Name);
1034 }
1035
1036 if (size.X <= 0) size.X = 0.01f;
1037 if (size.Y <= 0) size.Y = 0.01f;
1038 if (size.Z <= 0) size.Z = 0.01f;
1039
1040 _size = size;
1041
1042 if (!QuaternionIsFinite(rotation))
1043 {
1044 rotation = Quaternion.Identity;
1045 m_log.WarnFormat("[PHYSICS]: Got nonFinite Object create Rotation for {0}", Name);
1046 }
1047
1048 _orientation = rotation;
1049 givefakeori = 0;
1050
1051 _pbs = pbs;
1052
1053 _parent_scene = parent_scene;
1054 m_targetSpace = IntPtr.Zero;
1055
1056 if (pos.Z < 0)
1057 {
1058 m_isphysical = false;
1059 }
1060 else
1061 {
1062 m_isphysical = pisPhysical;
1063 }
1064 m_fakeisphysical = m_isphysical;
1065
1066 m_isVolumeDetect = false;
1067 m_fakeisVolumeDetect = false;
1068
1069 m_force = Vector3.Zero;
1070
1071 m_iscolliding = false;
1072 m_colliderfilter = 0;
1073 m_NoColide = false;
1074
1075 hasOOBoffsetFromMesh = false;
1076 _triMeshData = IntPtr.Zero;
1077
1078 m_shapetype = _shapeType;
1079
1080 m_lastdoneSelected = false;
1081 m_isSelected = false;
1082 m_delaySelect = false;
1083
1084 m_isphantom = pisPhantom;
1085 m_fakeisphantom = pisPhantom;
1086
1087 mu = parent_scene.m_materialContactsData[(int)Material.Wood].mu;
1088 bounce = parent_scene.m_materialContactsData[(int)Material.Wood].bounce;
1089
1090 CalcPrimBodyData();
1091
1092 m_mesh = null;
1093 if (_parent_scene.needsMeshing(pbs))
1094 {
1095 bool convex;
1096 if (m_shapetype == 0)
1097 convex = false;
1098 else
1099 convex = true;
1100
1101 m_mesh = _parent_scene.mesher.CreateMesh(Name, _pbs, _size, (int)LevelOfDetail.High, true, convex);
1102 }
1103
1104
1105 m_building = true; // control must set this to false when done
1106
1107 AddChange(changes.Add, null);
1108 }
1109
1110 private void resetCollisionAccounting()
1111 {
1112 m_collisionscore = 0;
1113 }
1114
1115 private void UpdateCollisionCatFlags()
1116 {
1117 if(m_isphysical && m_disabled)
1118 {
1119 m_collisionCategories = 0;
1120 m_collisionFlags = 0;
1121 }
1122
1123 else if (m_isSelected)
1124 {
1125 m_collisionCategories = CollisionCategories.Selected;
1126 m_collisionFlags = 0;
1127 }
1128
1129 else if (m_isVolumeDetect)
1130 {
1131 m_collisionCategories = CollisionCategories.VolumeDtc;
1132 if (m_isphysical)
1133 m_collisionFlags = CollisionCategories.Geom | CollisionCategories.Character;
1134 else
1135 m_collisionFlags = 0;
1136 }
1137 else if (m_isphantom)
1138 {
1139 m_collisionCategories = CollisionCategories.Phantom;
1140 if (m_isphysical)
1141 m_collisionFlags = CollisionCategories.Land;
1142 else
1143 m_collisionFlags = 0;
1144 }
1145 else
1146 {
1147 m_collisionCategories = CollisionCategories.Geom;
1148 if (m_isphysical)
1149 m_collisionFlags = m_default_collisionFlagsPhysical;
1150 else
1151 m_collisionFlags = m_default_collisionFlagsNotPhysical;
1152 }
1153 }
1154
1155 private void ApplyCollisionCatFlags()
1156 {
1157 if (prim_geom != IntPtr.Zero)
1158 {
1159 if (!childPrim && childrenPrim.Count > 0)
1160 {
1161 foreach (OdePrim prm in childrenPrim)
1162 {
1163 if (m_isphysical && m_disabled)
1164 {
1165 prm.m_collisionCategories = 0;
1166 prm.m_collisionFlags = 0;
1167 }
1168 else
1169 {
1170 // preserve some
1171 if (prm.m_isSelected)
1172 {
1173 prm.m_collisionCategories = CollisionCategories.Selected;
1174 prm.m_collisionFlags = 0;
1175 }
1176 else if (prm.m_isVolumeDetect)
1177 {
1178 prm.m_collisionCategories = CollisionCategories.VolumeDtc;
1179 if (m_isphysical)
1180 prm.m_collisionFlags = CollisionCategories.Geom | CollisionCategories.Character;
1181 else
1182 prm.m_collisionFlags = 0;
1183 }
1184 else if (prm.m_isphantom)
1185 {
1186 prm.m_collisionCategories = CollisionCategories.Phantom;
1187 if (m_isphysical)
1188 prm.m_collisionFlags = CollisionCategories.Land;
1189 else
1190 prm.m_collisionFlags = 0;
1191 }
1192 else
1193 {
1194 prm.m_collisionCategories = m_collisionCategories;
1195 prm.m_collisionFlags = m_collisionFlags;
1196 }
1197 }
1198
1199 if (prm.prim_geom != IntPtr.Zero)
1200 {
1201 if (prm.m_NoColide)
1202 {
1203 d.GeomSetCategoryBits(prm.prim_geom, 0);
1204 if (m_isphysical)
1205 d.GeomSetCollideBits(prm.prim_geom, (int)CollisionCategories.Land);
1206 else
1207 d.GeomSetCollideBits(prm.prim_geom, 0);
1208 }
1209 else
1210 {
1211 d.GeomSetCategoryBits(prm.prim_geom, (uint)prm.m_collisionCategories);
1212 d.GeomSetCollideBits(prm.prim_geom, (uint)prm.m_collisionFlags);
1213 }
1214 }
1215 }
1216 }
1217
1218 if (m_NoColide)
1219 {
1220 d.GeomSetCategoryBits(prim_geom, 0);
1221 d.GeomSetCollideBits(prim_geom, (uint)CollisionCategories.Land);
1222 if (collide_geom != prim_geom && collide_geom != IntPtr.Zero)
1223 {
1224 d.GeomSetCategoryBits(collide_geom, 0);
1225 d.GeomSetCollideBits(collide_geom, (uint)CollisionCategories.Land);
1226 }
1227 }
1228 else
1229 {
1230 d.GeomSetCategoryBits(prim_geom, (uint)m_collisionCategories);
1231 d.GeomSetCollideBits(prim_geom, (uint)m_collisionFlags);
1232 if (collide_geom != prim_geom && collide_geom != IntPtr.Zero)
1233 {
1234 d.GeomSetCategoryBits(collide_geom, (uint)m_collisionCategories);
1235 d.GeomSetCollideBits(collide_geom, (uint)m_collisionFlags);
1236 }
1237 }
1238 }
1239 }
1240
1241 private void createAMotor(Vector3 axis)
1242 {
1243 if (Body == IntPtr.Zero)
1244 return;
1245
1246 if (Amotor != IntPtr.Zero)
1247 {
1248 d.JointDestroy(Amotor);
1249 Amotor = IntPtr.Zero;
1250 }
1251
1252 int axisnum = 3 - (int)(axis.X + axis.Y + axis.Z);
1253
1254 if (axisnum <= 0)
1255 return;
1256
1257 // stop it
1258 d.BodySetTorque(Body, 0, 0, 0);
1259 d.BodySetAngularVel(Body, 0, 0, 0);
1260
1261 Amotor = d.JointCreateAMotor(_parent_scene.world, IntPtr.Zero);
1262 d.JointAttach(Amotor, Body, IntPtr.Zero);
1263
1264 d.JointSetAMotorMode(Amotor, 0);
1265
1266 d.JointSetAMotorNumAxes(Amotor, axisnum);
1267
1268 // get current orientation to lock
1269
1270 d.Quaternion dcur = d.BodyGetQuaternion(Body);
1271 Quaternion curr; // crap convertion between identical things
1272 curr.X = dcur.X;
1273 curr.Y = dcur.Y;
1274 curr.Z = dcur.Z;
1275 curr.W = dcur.W;
1276 Vector3 ax;
1277
1278 int i = 0;
1279 int j = 0;
1280 if (axis.X == 0)
1281 {
1282 ax = (new Vector3(1, 0, 0)) * curr; // rotate world X to current local X
1283 // ODE should do this with axis relative to body 1 but seems to fail
1284 d.JointSetAMotorAxis(Amotor, 0, 0, ax.X, ax.Y, ax.Z);
1285 d.JointSetAMotorAngle(Amotor, 0, 0);
1286 d.JointSetAMotorParam(Amotor, (int)d.JointParam.LoStop, -0.000001f);
1287 d.JointSetAMotorParam(Amotor, (int)d.JointParam.HiStop, 0.000001f);
1288 d.JointSetAMotorParam(Amotor, (int)d.JointParam.Vel, 0);
1289 d.JointSetAMotorParam(Amotor, (int)d.JointParam.FudgeFactor, 0.0001f);
1290 d.JointSetAMotorParam(Amotor, (int)d.JointParam.Bounce, 0f);
1291 d.JointSetAMotorParam(Amotor, (int)d.JointParam.FMax, 5e8f);
1292 d.JointSetAMotorParam(Amotor, (int)d.JointParam.StopCFM, 0f);
1293 d.JointSetAMotorParam(Amotor, (int)d.JointParam.StopERP, 0.8f);
1294 i++;
1295 j = 256; // move to next axis set
1296 }
1297
1298 if (axis.Y == 0)
1299 {
1300 ax = (new Vector3(0, 1, 0)) * curr;
1301 d.JointSetAMotorAxis(Amotor, i, 0, ax.X, ax.Y, ax.Z);
1302 d.JointSetAMotorAngle(Amotor, i, 0);
1303 d.JointSetAMotorParam(Amotor, j + (int)d.JointParam.LoStop, -0.000001f);
1304 d.JointSetAMotorParam(Amotor, j + (int)d.JointParam.HiStop, 0.000001f);
1305 d.JointSetAMotorParam(Amotor, j + (int)d.JointParam.Vel, 0);
1306 d.JointSetAMotorParam(Amotor, j + (int)d.JointParam.FudgeFactor, 0.0001f);
1307 d.JointSetAMotorParam(Amotor, j + (int)d.JointParam.Bounce, 0f);
1308 d.JointSetAMotorParam(Amotor, j + (int)d.JointParam.FMax, 5e8f);
1309 d.JointSetAMotorParam(Amotor, j + (int)d.JointParam.StopCFM, 0f);
1310 d.JointSetAMotorParam(Amotor, j + (int)d.JointParam.StopERP, 0.8f);
1311 i++;
1312 j += 256;
1313 }
1314
1315 if (axis.Z == 0)
1316 {
1317 ax = (new Vector3(0, 0, 1)) * curr;
1318 d.JointSetAMotorAxis(Amotor, i, 0, ax.X, ax.Y, ax.Z);
1319 d.JointSetAMotorAngle(Amotor, i, 0);
1320 d.JointSetAMotorParam(Amotor, j + (int)d.JointParam.LoStop, -0.000001f);
1321 d.JointSetAMotorParam(Amotor, j + (int)d.JointParam.HiStop, 0.000001f);
1322 d.JointSetAMotorParam(Amotor, j + (int)d.JointParam.Vel, 0);
1323 d.JointSetAMotorParam(Amotor, j + (int)d.JointParam.FudgeFactor, 0.0001f);
1324 d.JointSetAMotorParam(Amotor, j + (int)d.JointParam.Bounce, 0f);
1325 d.JointSetAMotorParam(Amotor, j + (int)d.JointParam.FMax, 5e8f);
1326 d.JointSetAMotorParam(Amotor, j + (int)d.JointParam.StopCFM, 0f);
1327 d.JointSetAMotorParam(Amotor, j + (int)d.JointParam.StopERP, 0.8f);
1328 }
1329 }
1330
1331 private bool setMesh(OdeScene parent_scene)
1332 {
1333 IntPtr vertices, indices;
1334 int vertexCount, indexCount;
1335 int vertexStride, triStride;
1336
1337 if (Body != IntPtr.Zero)
1338 {
1339 if (childPrim)
1340 {
1341 if (_parent != null)
1342 {
1343 OdePrim parent = (OdePrim)_parent;
1344 parent.ChildDelink(this, false);
1345 }
1346 }
1347 else
1348 {
1349 DestroyBody();
1350 }
1351 }
1352
1353 IMesh mesh = null;
1354
1355
1356 lock (m_meshlock)
1357 {
1358 if (m_mesh == null)
1359 {
1360 bool convex;
1361 if (m_shapetype == 0)
1362 convex = false;
1363 else
1364 convex = true;
1365
1366 mesh = _parent_scene.mesher.CreateMesh(Name, _pbs, _size, (int)LevelOfDetail.High, true, convex);
1367 }
1368 else
1369 {
1370 mesh = m_mesh;
1371 }
1372
1373 if (mesh == null)
1374 {
1375 m_log.WarnFormat("[PHYSICS]: CreateMesh Failed on prim {0} at <{1},{2},{3}>.", Name, _position.X, _position.Y, _position.Z);
1376 return false;
1377 }
1378
1379
1380 mesh.getVertexListAsPtrToFloatArray(out vertices, out vertexStride, out vertexCount); // Note, that vertices are fixed in unmanaged heap
1381 mesh.getIndexListAsPtrToIntArray(out indices, out triStride, out indexCount); // Also fixed, needs release after usage
1382
1383 if (vertexCount == 0 || indexCount == 0)
1384 {
1385 m_log.WarnFormat("[PHYSICS]: Got invalid mesh on prim {0} at <{1},{2},{3}>. mesh UUID {4}",
1386 Name, _position.X, _position.Y, _position.Z, _pbs.SculptTexture.ToString());
1387 mesh.releaseSourceMeshData();
1388 return false;
1389 }
1390
1391 primOOBoffset = mesh.GetCentroid();
1392 hasOOBoffsetFromMesh = true;
1393
1394 mesh.releaseSourceMeshData();
1395 m_mesh = null;
1396 }
1397
1398 IntPtr geo = IntPtr.Zero;
1399
1400 try
1401 {
1402 _triMeshData = d.GeomTriMeshDataCreate();
1403
1404 d.GeomTriMeshDataBuildSimple(_triMeshData, vertices, vertexStride, vertexCount, indices, indexCount, triStride);
1405 d.GeomTriMeshDataPreprocess(_triMeshData);
1406
1407 _parent_scene.waitForSpaceUnlock(m_targetSpace);
1408 geo = d.CreateTriMesh(m_targetSpace, _triMeshData, null, null, null);
1409 }
1410
1411 catch (Exception e)
1412 {
1413 m_log.ErrorFormat("[PHYSICS]: SetGeom Mesh failed for {0} exception: {1}", Name, e);
1414 if (_triMeshData != IntPtr.Zero)
1415 {
1416 d.GeomTriMeshDataDestroy(_triMeshData);
1417 _triMeshData = IntPtr.Zero;
1418 }
1419 return false;
1420 }
1421
1422 SetGeom(geo);
1423 return true;
1424 }
1425
1426 private void SetGeom(IntPtr geom)
1427 {
1428 prim_geom = geom;
1429 //Console.WriteLine("SetGeom to " + prim_geom + " for " + Name);
1430 if (prim_geom != IntPtr.Zero)
1431 {
1432 if (m_NoColide)
1433 {
1434 d.GeomSetCategoryBits(prim_geom, 0);
1435 if (m_isphysical)
1436 {
1437 d.GeomSetCollideBits(prim_geom, (uint)CollisionCategories.Land);
1438 }
1439 else
1440 {
1441 d.GeomSetCollideBits(prim_geom, 0);
1442 d.GeomDisable(prim_geom);
1443 }
1444 }
1445 else
1446 {
1447 d.GeomSetCategoryBits(prim_geom, (uint)m_collisionCategories);
1448 d.GeomSetCollideBits(prim_geom, (uint)m_collisionFlags);
1449 }
1450
1451 CalcPrimBodyData();
1452
1453 _parent_scene.geom_name_map[prim_geom] = Name;
1454 _parent_scene.actor_name_map[prim_geom] = this;
1455
1456 }
1457 else
1458 m_log.Warn("Setting bad Geom");
1459 }
1460
1461
1462 /// <summary>
1463 /// Create a geometry for the given mesh in the given target space.
1464 /// </summary>
1465 /// <param name="m_targetSpace"></param>
1466 /// <param name="mesh">If null, then a mesh is used that is based on the profile shape data.</param>
1467 private void CreateGeom()
1468 {
1469 if (_triMeshData != IntPtr.Zero)
1470 {
1471 d.GeomTriMeshDataDestroy(_triMeshData);
1472 _triMeshData = IntPtr.Zero;
1473 }
1474
1475 bool haveMesh = false;
1476 hasOOBoffsetFromMesh = false;
1477 m_NoColide = false;
1478
1479 if (_parent_scene.needsMeshing(_pbs))
1480 {
1481 haveMesh = setMesh(_parent_scene); // this will give a mesh to non trivial known prims
1482 if (!haveMesh)
1483 m_NoColide = true;
1484 }
1485
1486 if (!haveMesh)
1487 {
1488 if (_pbs.ProfileShape == ProfileShape.HalfCircle && _pbs.PathCurve == (byte)Extrusion.Curve1
1489 && _size.X == _size.Y && _size.Y == _size.Z)
1490 { // it's a sphere
1491 _parent_scene.waitForSpaceUnlock(m_targetSpace);
1492 try
1493 {
1494 SetGeom(d.CreateSphere(m_targetSpace, _size.X * 0.5f));
1495 }
1496 catch (Exception e)
1497 {
1498 m_log.WarnFormat("[PHYSICS]: Create sphere failed: {0}", e);
1499 return;
1500 }
1501 }
1502 else
1503 {// do it as a box
1504 _parent_scene.waitForSpaceUnlock(m_targetSpace);
1505 try
1506 {
1507 //Console.WriteLine(" CreateGeom 4");
1508 SetGeom(d.CreateBox(m_targetSpace, _size.X, _size.Y, _size.Z));
1509 }
1510 catch (Exception e)
1511 {
1512 m_log.Warn("[PHYSICS]: Create box failed: {0}", e);
1513 return;
1514 }
1515 }
1516 }
1517 }
1518
1519 /// <summary>
1520 /// Set a new geometry for this prim.
1521 /// </summary>
1522 /// <param name="geom"></param>
1523 private void RemoveGeom()
1524 {
1525 if (prim_geom != IntPtr.Zero)
1526 {
1527 _parent_scene.geom_name_map.Remove(prim_geom);
1528 _parent_scene.actor_name_map.Remove(prim_geom);
1529 try
1530 {
1531 d.GeomDestroy(prim_geom);
1532 if (_triMeshData != IntPtr.Zero)
1533 {
1534 d.GeomTriMeshDataDestroy(_triMeshData);
1535 _triMeshData = IntPtr.Zero;
1536 }
1537 }
1538 // catch (System.AccessViolationException)
1539 catch (Exception e)
1540 {
1541 m_log.ErrorFormat("[PHYSICS]: PrimGeom destruction failed for {0} exception {1}", Name, e);
1542 }
1543
1544 prim_geom = IntPtr.Zero;
1545 collide_geom = IntPtr.Zero;
1546 }
1547 else
1548 {
1549 m_log.ErrorFormat("[PHYSICS]: PrimGeom destruction BAD {0}", Name);
1550 }
1551 Body = IntPtr.Zero;
1552 hasOOBoffsetFromMesh = false;
1553 }
1554/*
1555 private void ChildSetGeom(OdePrim odePrim)
1556 {
1557 // well..
1558 DestroyBody();
1559 MakeBody();
1560 }
1561*/
1562 //sets non physical prim m_targetSpace to right space in spaces grid for static prims
1563 // should only be called for non physical prims unless they are becoming non physical
1564 private void SetInStaticSpace(OdePrim prim)
1565 {
1566 IntPtr targetSpace = _parent_scene.MoveGeomToStaticSpace(prim.prim_geom, prim._position, prim.m_targetSpace);
1567 prim.m_targetSpace = targetSpace;
1568 collide_geom = IntPtr.Zero;
1569 }
1570
1571 public void enableBodySoft()
1572 {
1573 m_disabled = false;
1574 if (!childPrim && !m_isSelected)
1575 {
1576 if (m_isphysical && Body != IntPtr.Zero)
1577 {
1578 UpdateCollisionCatFlags();
1579 ApplyCollisionCatFlags();
1580
1581 d.BodyEnable(Body);
1582 }
1583 }
1584 resetCollisionAccounting();
1585 }
1586
1587 private void disableBodySoft()
1588 {
1589 m_disabled = true;
1590 if (!childPrim)
1591 {
1592 if (m_isphysical && Body != IntPtr.Zero)
1593 {
1594 if (m_isSelected)
1595 m_collisionFlags = CollisionCategories.Selected;
1596 else
1597 m_collisionCategories = 0;
1598 m_collisionFlags = 0;
1599 ApplyCollisionCatFlags();
1600 d.BodyDisable(Body);
1601 }
1602 }
1603 }
1604
1605 private void MakeBody()
1606 {
1607 if (!m_isphysical) // only physical get bodies
1608 return;
1609
1610 if (childPrim) // child prims don't get bodies;
1611 return;
1612
1613 if (m_building)
1614 return;
1615
1616 if (prim_geom == IntPtr.Zero)
1617 {
1618 m_log.Warn("[PHYSICS]: Unable to link the linkset. Root has no geom yet");
1619 return;
1620 }
1621
1622 if (Body != IntPtr.Zero)
1623 {
1624// d.BodyDestroy(Body);
1625// Body = IntPtr.Zero;
1626 // do a more complet destruction
1627 DestroyBody();
1628 m_log.Warn("[PHYSICS]: MakeBody called having a body");
1629 }
1630
1631 if (d.GeomGetBody(prim_geom) != IntPtr.Zero)
1632 {
1633 d.GeomSetBody(prim_geom, IntPtr.Zero);
1634 m_log.Warn("[PHYSICS]: MakeBody root geom already had a body");
1635 }
1636
1637 d.Matrix3 mymat = new d.Matrix3();
1638 d.Quaternion myrot = new d.Quaternion();
1639 d.Mass objdmass = new d.Mass { };
1640
1641 Body = d.BodyCreate(_parent_scene.world);
1642
1643 objdmass = primdMass;
1644
1645 // rotate inertia
1646 myrot.X = _orientation.X;
1647 myrot.Y = _orientation.Y;
1648 myrot.Z = _orientation.Z;
1649 myrot.W = _orientation.W;
1650
1651 d.RfromQ(out mymat, ref myrot);
1652 d.MassRotate(ref objdmass, ref mymat);
1653
1654 // set the body rotation
1655 d.BodySetRotation(Body, ref mymat);
1656
1657 // recompute full object inertia if needed
1658 if (childrenPrim.Count > 0)
1659 {
1660 d.Matrix3 mat = new d.Matrix3();
1661 d.Quaternion quat = new d.Quaternion();
1662 d.Mass tmpdmass = new d.Mass { };
1663 Vector3 rcm;
1664
1665 rcm.X = _position.X;
1666 rcm.Y = _position.Y;
1667 rcm.Z = _position.Z;
1668
1669 lock (childrenPrim)
1670 {
1671 foreach (OdePrim prm in childrenPrim)
1672 {
1673 if (prm.prim_geom == IntPtr.Zero)
1674 {
1675 m_log.Warn("[PHYSICS]: Unable to link one of the linkset elements, skipping it. No geom yet");
1676 continue;
1677 }
1678
1679 tmpdmass = prm.primdMass;
1680
1681 // apply prim current rotation to inertia
1682 quat.X = prm._orientation.X;
1683 quat.Y = prm._orientation.Y;
1684 quat.Z = prm._orientation.Z;
1685 quat.W = prm._orientation.W;
1686 d.RfromQ(out mat, ref quat);
1687 d.MassRotate(ref tmpdmass, ref mat);
1688
1689 Vector3 ppos = prm._position;
1690 ppos.X -= rcm.X;
1691 ppos.Y -= rcm.Y;
1692 ppos.Z -= rcm.Z;
1693 // refer inertia to root prim center of mass position
1694 d.MassTranslate(ref tmpdmass,
1695 ppos.X,
1696 ppos.Y,
1697 ppos.Z);
1698
1699 d.MassAdd(ref objdmass, ref tmpdmass); // add to total object inertia
1700 // fix prim colision cats
1701
1702 if (d.GeomGetBody(prm.prim_geom) != IntPtr.Zero)
1703 {
1704 d.GeomSetBody(prm.prim_geom, IntPtr.Zero);
1705 m_log.Warn("[PHYSICS]: MakeBody child geom already had a body");
1706 }
1707
1708 d.GeomClearOffset(prm.prim_geom);
1709 d.GeomSetBody(prm.prim_geom, Body);
1710 prm.Body = Body;
1711 d.GeomSetOffsetWorldRotation(prm.prim_geom, ref mat); // set relative rotation
1712 }
1713 }
1714 }
1715
1716 d.GeomClearOffset(prim_geom); // make sure we don't have a hidden offset
1717 // associate root geom with body
1718 d.GeomSetBody(prim_geom, Body);
1719
1720 d.BodySetPosition(Body, _position.X + objdmass.c.X, _position.Y + objdmass.c.Y, _position.Z + objdmass.c.Z);
1721 d.GeomSetOffsetWorldPosition(prim_geom, _position.X, _position.Y, _position.Z);
1722
1723 d.MassTranslate(ref objdmass, -objdmass.c.X, -objdmass.c.Y, -objdmass.c.Z); // ode wants inertia at center of body
1724 myrot.X = -myrot.X;
1725 myrot.Y = -myrot.Y;
1726 myrot.Z = -myrot.Z;
1727
1728 d.RfromQ(out mymat, ref myrot);
1729 d.MassRotate(ref objdmass, ref mymat);
1730
1731 d.BodySetMass(Body, ref objdmass);
1732 _mass = objdmass.mass;
1733
1734 // disconnect from world gravity so we can apply buoyancy
1735 d.BodySetGravityMode(Body, false);
1736
1737 d.BodySetAutoDisableFlag(Body, true);
1738 d.BodySetAutoDisableSteps(Body, body_autodisable_frames);
1739// d.BodySetLinearDampingThreshold(Body, 0.01f);
1740// d.BodySetAngularDampingThreshold(Body, 0.001f);
1741 d.BodySetDamping(Body, .002f, .002f);
1742
1743 if (m_targetSpace != IntPtr.Zero)
1744 {
1745 _parent_scene.waitForSpaceUnlock(m_targetSpace);
1746 if (d.SpaceQuery(m_targetSpace, prim_geom))
1747 d.SpaceRemove(m_targetSpace, prim_geom);
1748 }
1749
1750
1751 if (childrenPrim.Count == 0)
1752 {
1753 collide_geom = prim_geom;
1754 m_targetSpace = _parent_scene.ActiveSpace;
1755 d.SpaceAdd(m_targetSpace, prim_geom);
1756 }
1757 else
1758 {
1759 m_targetSpace = d.HashSpaceCreate(_parent_scene.ActiveSpace);
1760 d.HashSpaceSetLevels(m_targetSpace, -2, 8);
1761 d.SpaceSetSublevel(m_targetSpace, 3);
1762 d.SpaceSetCleanup(m_targetSpace, false);
1763 d.SpaceAdd(m_targetSpace, prim_geom);
1764
1765 d.GeomSetCategoryBits(m_targetSpace, (uint)(CollisionCategories.Space |
1766 CollisionCategories.Geom |
1767 CollisionCategories.Phantom |
1768 CollisionCategories.VolumeDtc
1769 ));
1770 d.GeomSetCollideBits(m_targetSpace, 0);
1771 collide_geom = m_targetSpace;
1772 }
1773
1774 if (m_delaySelect)
1775 {
1776 m_isSelected = true;
1777 m_delaySelect = false;
1778 }
1779
1780 lock (childrenPrim)
1781 {
1782 foreach (OdePrim prm in childrenPrim)
1783 {
1784 if (prm.prim_geom == IntPtr.Zero)
1785 continue;
1786
1787 Vector3 ppos = prm._position;
1788 d.GeomSetOffsetWorldPosition(prm.prim_geom, ppos.X, ppos.Y, ppos.Z); // set relative position
1789
1790 if (prm.m_targetSpace != m_targetSpace)
1791 {
1792 if (prm.m_targetSpace != IntPtr.Zero)
1793 {
1794 _parent_scene.waitForSpaceUnlock(prm.m_targetSpace);
1795 if (d.SpaceQuery(prm.m_targetSpace, prm.prim_geom))
1796 d.SpaceRemove(prm.m_targetSpace, prm.prim_geom);
1797 }
1798 prm.m_targetSpace = m_targetSpace;
1799 d.SpaceAdd(m_targetSpace, prm.prim_geom);
1800 }
1801
1802 prm.m_collisionscore = 0;
1803
1804 if(!m_disabled)
1805 prm.m_disabled = false;
1806
1807 _parent_scene.addActivePrim(prm);
1808 }
1809 }
1810
1811 // The body doesn't already have a finite rotation mode set here
1812 if ((!m_angularlock.ApproxEquals(Vector3.One, 0.0f)) && _parent == null)
1813 {
1814 createAMotor(m_angularlock);
1815 }
1816
1817 m_collisionscore = 0;
1818
1819 UpdateCollisionCatFlags();
1820 ApplyCollisionCatFlags();
1821
1822 if (m_isSelected || m_disabled)
1823 {
1824 d.BodyDisable(Body);
1825 }
1826 else
1827 {
1828 d.BodySetAngularVel(Body, m_rotationalVelocity.X, m_rotationalVelocity.Y, m_rotationalVelocity.Z);
1829 d.BodySetLinearVel(Body, _velocity.X, _velocity.Y, _velocity.Z);
1830 }
1831
1832 _parent_scene.addActivePrim(this);
1833 _parent_scene.addActiveGroups(this);
1834 }
1835
1836 private void DestroyBody()
1837 {
1838 if (Body != IntPtr.Zero)
1839 {
1840 _parent_scene.remActivePrim(this);
1841
1842 collide_geom = IntPtr.Zero;
1843
1844 if (m_disabled)
1845 m_collisionCategories = 0;
1846 else if (m_isSelected)
1847 m_collisionCategories = CollisionCategories.Selected;
1848 else if (m_isVolumeDetect)
1849 m_collisionCategories = CollisionCategories.VolumeDtc;
1850 else if (m_isphantom)
1851 m_collisionCategories = CollisionCategories.Phantom;
1852 else
1853 m_collisionCategories = CollisionCategories.Geom;
1854
1855 m_collisionFlags = 0;
1856
1857 if (prim_geom != IntPtr.Zero)
1858 {
1859 if (m_NoColide)
1860 {
1861 d.GeomSetCategoryBits(prim_geom, 0);
1862 d.GeomSetCollideBits(prim_geom, 0);
1863 }
1864 else
1865 {
1866 d.GeomSetCategoryBits(prim_geom, (uint)m_collisionCategories);
1867 d.GeomSetCollideBits(prim_geom, (uint)m_collisionFlags);
1868 }
1869 UpdateDataFromGeom();
1870 d.GeomSetBody(prim_geom, IntPtr.Zero);
1871 SetInStaticSpace(this);
1872 }
1873
1874 if (!childPrim)
1875 {
1876 lock (childrenPrim)
1877 {
1878 foreach (OdePrim prm in childrenPrim)
1879 {
1880 _parent_scene.remActivePrim(prm);
1881
1882 if (prm.m_isSelected)
1883 prm.m_collisionCategories = CollisionCategories.Selected;
1884 else if (prm.m_isVolumeDetect)
1885 prm.m_collisionCategories = CollisionCategories.VolumeDtc;
1886 else if (prm.m_isphantom)
1887 prm.m_collisionCategories = CollisionCategories.Phantom;
1888 else
1889 prm.m_collisionCategories = CollisionCategories.Geom;
1890
1891 prm.m_collisionFlags = 0;
1892
1893 if (prm.prim_geom != IntPtr.Zero)
1894 {
1895 if (prm.m_NoColide)
1896 {
1897 d.GeomSetCategoryBits(prm.prim_geom, 0);
1898 d.GeomSetCollideBits(prm.prim_geom, 0);
1899 }
1900 else
1901 {
1902 d.GeomSetCategoryBits(prm.prim_geom, (uint)prm.m_collisionCategories);
1903 d.GeomSetCollideBits(prm.prim_geom, (uint)prm.m_collisionFlags);
1904 }
1905 prm.UpdateDataFromGeom();
1906 SetInStaticSpace(prm);
1907 }
1908 prm.Body = IntPtr.Zero;
1909 prm._mass = prm.primMass;
1910 prm.m_collisionscore = 0;
1911 }
1912 }
1913 if (Amotor != IntPtr.Zero)
1914 {
1915 d.JointDestroy(Amotor);
1916 Amotor = IntPtr.Zero;
1917 }
1918 _parent_scene.remActiveGroup(this);
1919 d.BodyDestroy(Body);
1920 }
1921 Body = IntPtr.Zero;
1922 }
1923 _mass = primMass;
1924 m_collisionscore = 0;
1925 }
1926
1927 private void FixInertia(Vector3 NewPos,Quaternion newrot)
1928 {
1929 d.Matrix3 mat = new d.Matrix3();
1930 d.Quaternion quat = new d.Quaternion();
1931
1932 d.Mass tmpdmass = new d.Mass { };
1933 d.Mass objdmass = new d.Mass { };
1934
1935 d.BodyGetMass(Body, out tmpdmass);
1936 objdmass = tmpdmass;
1937
1938 d.Vector3 dobjpos;
1939 d.Vector3 thispos;
1940
1941 // get current object position and rotation
1942 dobjpos = d.BodyGetPosition(Body);
1943
1944 // get prim own inertia in its local frame
1945 tmpdmass = primdMass;
1946
1947 // transform to object frame
1948 mat = d.GeomGetOffsetRotation(prim_geom);
1949 d.MassRotate(ref tmpdmass, ref mat);
1950
1951 thispos = d.GeomGetOffsetPosition(prim_geom);
1952 d.MassTranslate(ref tmpdmass,
1953 thispos.X,
1954 thispos.Y,
1955 thispos.Z);
1956
1957 // subtract current prim inertia from object
1958 DMassSubPartFromObj(ref tmpdmass, ref objdmass);
1959
1960 // back prim own inertia
1961 tmpdmass = primdMass;
1962
1963 // update to new position and orientation
1964 _position = NewPos;
1965 d.GeomSetOffsetWorldPosition(prim_geom, NewPos.X, NewPos.Y, NewPos.Z);
1966 _orientation = newrot;
1967 quat.X = newrot.X;
1968 quat.Y = newrot.Y;
1969 quat.Z = newrot.Z;
1970 quat.W = newrot.W;
1971 d.GeomSetOffsetWorldQuaternion(prim_geom, ref quat);
1972
1973 mat = d.GeomGetOffsetRotation(prim_geom);
1974 d.MassRotate(ref tmpdmass, ref mat);
1975
1976 thispos = d.GeomGetOffsetPosition(prim_geom);
1977 d.MassTranslate(ref tmpdmass,
1978 thispos.X,
1979 thispos.Y,
1980 thispos.Z);
1981
1982 d.MassAdd(ref objdmass, ref tmpdmass);
1983
1984 // fix all positions
1985 IntPtr g = d.BodyGetFirstGeom(Body);
1986 while (g != IntPtr.Zero)
1987 {
1988 thispos = d.GeomGetOffsetPosition(g);
1989 thispos.X -= objdmass.c.X;
1990 thispos.Y -= objdmass.c.Y;
1991 thispos.Z -= objdmass.c.Z;
1992 d.GeomSetOffsetPosition(g, thispos.X, thispos.Y, thispos.Z);
1993 g = d.dBodyGetNextGeom(g);
1994 }
1995 d.BodyVectorToWorld(Body,objdmass.c.X, objdmass.c.Y, objdmass.c.Z,out thispos);
1996
1997 d.BodySetPosition(Body, dobjpos.X + thispos.X, dobjpos.Y + thispos.Y, dobjpos.Z + thispos.Z);
1998 d.MassTranslate(ref objdmass, -objdmass.c.X, -objdmass.c.Y, -objdmass.c.Z); // ode wants inertia at center of body
1999 d.BodySetMass(Body, ref objdmass);
2000 _mass = objdmass.mass;
2001 }
2002
2003
2004
2005 private void FixInertia(Vector3 NewPos)
2006 {
2007 d.Matrix3 primmat = new d.Matrix3();
2008 d.Mass tmpdmass = new d.Mass { };
2009 d.Mass objdmass = new d.Mass { };
2010 d.Mass primmass = new d.Mass { };
2011
2012 d.Vector3 dobjpos;
2013 d.Vector3 thispos;
2014
2015 d.BodyGetMass(Body, out objdmass);
2016
2017 // get prim own inertia in its local frame
2018 primmass = primdMass;
2019 // transform to object frame
2020 primmat = d.GeomGetOffsetRotation(prim_geom);
2021 d.MassRotate(ref primmass, ref primmat);
2022
2023 tmpdmass = primmass;
2024
2025 thispos = d.GeomGetOffsetPosition(prim_geom);
2026 d.MassTranslate(ref tmpdmass,
2027 thispos.X,
2028 thispos.Y,
2029 thispos.Z);
2030
2031 // subtract current prim inertia from object
2032 DMassSubPartFromObj(ref tmpdmass, ref objdmass);
2033
2034 // update to new position
2035 _position = NewPos;
2036 d.GeomSetOffsetWorldPosition(prim_geom, NewPos.X, NewPos.Y, NewPos.Z);
2037
2038 thispos = d.GeomGetOffsetPosition(prim_geom);
2039 d.MassTranslate(ref primmass,
2040 thispos.X,
2041 thispos.Y,
2042 thispos.Z);
2043
2044 d.MassAdd(ref objdmass, ref primmass);
2045
2046 // fix all positions
2047 IntPtr g = d.BodyGetFirstGeom(Body);
2048 while (g != IntPtr.Zero)
2049 {
2050 thispos = d.GeomGetOffsetPosition(g);
2051 thispos.X -= objdmass.c.X;
2052 thispos.Y -= objdmass.c.Y;
2053 thispos.Z -= objdmass.c.Z;
2054 d.GeomSetOffsetPosition(g, thispos.X, thispos.Y, thispos.Z);
2055 g = d.dBodyGetNextGeom(g);
2056 }
2057
2058 d.BodyVectorToWorld(Body, objdmass.c.X, objdmass.c.Y, objdmass.c.Z, out thispos);
2059
2060 // get current object position and rotation
2061 dobjpos = d.BodyGetPosition(Body);
2062
2063 d.BodySetPosition(Body, dobjpos.X + thispos.X, dobjpos.Y + thispos.Y, dobjpos.Z + thispos.Z);
2064 d.MassTranslate(ref objdmass, -objdmass.c.X, -objdmass.c.Y, -objdmass.c.Z); // ode wants inertia at center of body
2065 d.BodySetMass(Body, ref objdmass);
2066 _mass = objdmass.mass;
2067 }
2068
2069 private void FixInertia(Quaternion newrot)
2070 {
2071 d.Matrix3 mat = new d.Matrix3();
2072 d.Quaternion quat = new d.Quaternion();
2073
2074 d.Mass tmpdmass = new d.Mass { };
2075 d.Mass objdmass = new d.Mass { };
2076 d.Vector3 dobjpos;
2077 d.Vector3 thispos;
2078
2079 d.BodyGetMass(Body, out objdmass);
2080
2081 // get prim own inertia in its local frame
2082 tmpdmass = primdMass;
2083 mat = d.GeomGetOffsetRotation(prim_geom);
2084 d.MassRotate(ref tmpdmass, ref mat);
2085 // transform to object frame
2086 thispos = d.GeomGetOffsetPosition(prim_geom);
2087 d.MassTranslate(ref tmpdmass,
2088 thispos.X,
2089 thispos.Y,
2090 thispos.Z);
2091
2092 // subtract current prim inertia from object
2093 DMassSubPartFromObj(ref tmpdmass, ref objdmass);
2094
2095 // update to new orientation
2096 _orientation = newrot;
2097 quat.X = newrot.X;
2098 quat.Y = newrot.Y;
2099 quat.Z = newrot.Z;
2100 quat.W = newrot.W;
2101 d.GeomSetOffsetWorldQuaternion(prim_geom, ref quat);
2102
2103 tmpdmass = primdMass;
2104 mat = d.GeomGetOffsetRotation(prim_geom);
2105 d.MassRotate(ref tmpdmass, ref mat);
2106 d.MassTranslate(ref tmpdmass,
2107 thispos.X,
2108 thispos.Y,
2109 thispos.Z);
2110
2111 d.MassAdd(ref objdmass, ref tmpdmass);
2112
2113 // fix all positions
2114 IntPtr g = d.BodyGetFirstGeom(Body);
2115 while (g != IntPtr.Zero)
2116 {
2117 thispos = d.GeomGetOffsetPosition(g);
2118 thispos.X -= objdmass.c.X;
2119 thispos.Y -= objdmass.c.Y;
2120 thispos.Z -= objdmass.c.Z;
2121 d.GeomSetOffsetPosition(g, thispos.X, thispos.Y, thispos.Z);
2122 g = d.dBodyGetNextGeom(g);
2123 }
2124
2125 d.BodyVectorToWorld(Body, objdmass.c.X, objdmass.c.Y, objdmass.c.Z, out thispos);
2126 // get current object position and rotation
2127 dobjpos = d.BodyGetPosition(Body);
2128
2129 d.BodySetPosition(Body, dobjpos.X + thispos.X, dobjpos.Y + thispos.Y, dobjpos.Z + thispos.Z);
2130 d.MassTranslate(ref objdmass, -objdmass.c.X, -objdmass.c.Y, -objdmass.c.Z); // ode wants inertia at center of body
2131 d.BodySetMass(Body, ref objdmass);
2132 _mass = objdmass.mass;
2133 }
2134
2135
2136 #region Mass Calculation
2137
2138 private float CalculatePrimVolume()
2139 {
2140 float volume = _size.X * _size.Y * _size.Z; // default
2141 float tmp;
2142
2143 float hollowAmount = (float)_pbs.ProfileHollow * 2.0e-5f;
2144 float hollowVolume = hollowAmount * hollowAmount;
2145
2146 switch (_pbs.ProfileShape)
2147 {
2148 case ProfileShape.Square:
2149 // default box
2150
2151 if (_pbs.PathCurve == (byte)Extrusion.Straight)
2152 {
2153 if (hollowAmount > 0.0)
2154 {
2155 switch (_pbs.HollowShape)
2156 {
2157 case HollowShape.Square:
2158 case HollowShape.Same:
2159 break;
2160
2161 case HollowShape.Circle:
2162
2163 hollowVolume *= 0.78539816339f;
2164 break;
2165
2166 case HollowShape.Triangle:
2167
2168 hollowVolume *= (0.5f * .5f);
2169 break;
2170
2171 default:
2172 hollowVolume = 0;
2173 break;
2174 }
2175 volume *= (1.0f - hollowVolume);
2176 }
2177 }
2178
2179 else if (_pbs.PathCurve == (byte)Extrusion.Curve1)
2180 {
2181 //a tube
2182
2183 volume *= 0.78539816339e-2f * (float)(200 - _pbs.PathScaleX);
2184 tmp = 1.0f - 2.0e-2f * (float)(200 - _pbs.PathScaleY);
2185 volume -= volume * tmp * tmp;
2186
2187 if (hollowAmount > 0.0)
2188 {
2189 hollowVolume *= hollowAmount;
2190
2191 switch (_pbs.HollowShape)
2192 {
2193 case HollowShape.Square:
2194 case HollowShape.Same:
2195 break;
2196
2197 case HollowShape.Circle:
2198 hollowVolume *= 0.78539816339f;
2199 break;
2200
2201 case HollowShape.Triangle:
2202 hollowVolume *= 0.5f * 0.5f;
2203 break;
2204 default:
2205 hollowVolume = 0;
2206 break;
2207 }
2208 volume *= (1.0f - hollowVolume);
2209 }
2210 }
2211
2212 break;
2213
2214 case ProfileShape.Circle:
2215
2216 if (_pbs.PathCurve == (byte)Extrusion.Straight)
2217 {
2218 volume *= 0.78539816339f; // elipse base
2219
2220 if (hollowAmount > 0.0)
2221 {
2222 switch (_pbs.HollowShape)
2223 {
2224 case HollowShape.Same:
2225 case HollowShape.Circle:
2226 break;
2227
2228 case HollowShape.Square:
2229 hollowVolume *= 0.5f * 2.5984480504799f;
2230 break;
2231
2232 case HollowShape.Triangle:
2233 hollowVolume *= .5f * 1.27323954473516f;
2234 break;
2235
2236 default:
2237 hollowVolume = 0;
2238 break;
2239 }
2240 volume *= (1.0f - hollowVolume);
2241 }
2242 }
2243
2244 else if (_pbs.PathCurve == (byte)Extrusion.Curve1)
2245 {
2246 volume *= 0.61685027506808491367715568749226e-2f * (float)(200 - _pbs.PathScaleX);
2247 tmp = 1.0f - .02f * (float)(200 - _pbs.PathScaleY);
2248 volume *= (1.0f - tmp * tmp);
2249
2250 if (hollowAmount > 0.0)
2251 {
2252
2253 // calculate the hollow volume by it's shape compared to the prim shape
2254 hollowVolume *= hollowAmount;
2255
2256 switch (_pbs.HollowShape)
2257 {
2258 case HollowShape.Same:
2259 case HollowShape.Circle:
2260 break;
2261
2262 case HollowShape.Square:
2263 hollowVolume *= 0.5f * 2.5984480504799f;
2264 break;
2265
2266 case HollowShape.Triangle:
2267 hollowVolume *= .5f * 1.27323954473516f;
2268 break;
2269
2270 default:
2271 hollowVolume = 0;
2272 break;
2273 }
2274 volume *= (1.0f - hollowVolume);
2275 }
2276 }
2277 break;
2278
2279 case ProfileShape.HalfCircle:
2280 if (_pbs.PathCurve == (byte)Extrusion.Curve1)
2281 {
2282 volume *= 0.5236f;
2283
2284 if (hollowAmount > 0.0)
2285 {
2286 hollowVolume *= hollowAmount;
2287
2288 switch (_pbs.HollowShape)
2289 {
2290 case HollowShape.Circle:
2291 case HollowShape.Triangle: // diference in sl is minor and odd
2292 case HollowShape.Same:
2293 break;
2294
2295 case HollowShape.Square:
2296 hollowVolume *= 0.909f;
2297 break;
2298
2299 // case HollowShape.Triangle:
2300 // hollowVolume *= .827f;
2301 // break;
2302 default:
2303 hollowVolume = 0;
2304 break;
2305 }
2306 volume *= (1.0f - hollowVolume);
2307 }
2308
2309 }
2310 break;
2311
2312 case ProfileShape.EquilateralTriangle:
2313
2314 if (_pbs.PathCurve == (byte)Extrusion.Straight)
2315 {
2316 volume *= 0.32475953f;
2317
2318 if (hollowAmount > 0.0)
2319 {
2320
2321 // calculate the hollow volume by it's shape compared to the prim shape
2322 switch (_pbs.HollowShape)
2323 {
2324 case HollowShape.Same:
2325 case HollowShape.Triangle:
2326 hollowVolume *= .25f;
2327 break;
2328
2329 case HollowShape.Square:
2330 hollowVolume *= 0.499849f * 3.07920140172638f;
2331 break;
2332
2333 case HollowShape.Circle:
2334 // Hollow shape is a perfect cyllinder in respect to the cube's scale
2335 // Cyllinder hollow volume calculation
2336
2337 hollowVolume *= 0.1963495f * 3.07920140172638f;
2338 break;
2339
2340 default:
2341 hollowVolume = 0;
2342 break;
2343 }
2344 volume *= (1.0f - hollowVolume);
2345 }
2346 }
2347 else if (_pbs.PathCurve == (byte)Extrusion.Curve1)
2348 {
2349 volume *= 0.32475953f;
2350 volume *= 0.01f * (float)(200 - _pbs.PathScaleX);
2351 tmp = 1.0f - .02f * (float)(200 - _pbs.PathScaleY);
2352 volume *= (1.0f - tmp * tmp);
2353
2354 if (hollowAmount > 0.0)
2355 {
2356
2357 hollowVolume *= hollowAmount;
2358
2359 switch (_pbs.HollowShape)
2360 {
2361 case HollowShape.Same:
2362 case HollowShape.Triangle:
2363 hollowVolume *= .25f;
2364 break;
2365
2366 case HollowShape.Square:
2367 hollowVolume *= 0.499849f * 3.07920140172638f;
2368 break;
2369
2370 case HollowShape.Circle:
2371
2372 hollowVolume *= 0.1963495f * 3.07920140172638f;
2373 break;
2374
2375 default:
2376 hollowVolume = 0;
2377 break;
2378 }
2379 volume *= (1.0f - hollowVolume);
2380 }
2381 }
2382 break;
2383
2384 default:
2385 break;
2386 }
2387
2388 float taperX1;
2389 float taperY1;
2390 float taperX;
2391 float taperY;
2392 float pathBegin;
2393 float pathEnd;
2394 float profileBegin;
2395 float profileEnd;
2396
2397 if (_pbs.PathCurve == (byte)Extrusion.Straight || _pbs.PathCurve == (byte)Extrusion.Flexible)
2398 {
2399 taperX1 = _pbs.PathScaleX * 0.01f;
2400 if (taperX1 > 1.0f)
2401 taperX1 = 2.0f - taperX1;
2402 taperX = 1.0f - taperX1;
2403
2404 taperY1 = _pbs.PathScaleY * 0.01f;
2405 if (taperY1 > 1.0f)
2406 taperY1 = 2.0f - taperY1;
2407 taperY = 1.0f - taperY1;
2408 }
2409 else
2410 {
2411 taperX = _pbs.PathTaperX * 0.01f;
2412 if (taperX < 0.0f)
2413 taperX = -taperX;
2414 taperX1 = 1.0f - taperX;
2415
2416 taperY = _pbs.PathTaperY * 0.01f;
2417 if (taperY < 0.0f)
2418 taperY = -taperY;
2419 taperY1 = 1.0f - taperY;
2420 }
2421
2422 volume *= (taperX1 * taperY1 + 0.5f * (taperX1 * taperY + taperX * taperY1) + 0.3333333333f * taperX * taperY);
2423
2424 pathBegin = (float)_pbs.PathBegin * 2.0e-5f;
2425 pathEnd = 1.0f - (float)_pbs.PathEnd * 2.0e-5f;
2426 volume *= (pathEnd - pathBegin);
2427
2428 // this is crude aproximation
2429 profileBegin = (float)_pbs.ProfileBegin * 2.0e-5f;
2430 profileEnd = 1.0f - (float)_pbs.ProfileEnd * 2.0e-5f;
2431 volume *= (profileEnd - profileBegin);
2432
2433 return volume;
2434 }
2435
2436
2437 private void CalcPrimBodyData()
2438 {
2439 float volume;
2440
2441 if (prim_geom == IntPtr.Zero)
2442 {
2443 // Ubit let's have a initial basic OOB
2444 primOOBsize.X = _size.X;
2445 primOOBsize.Y = _size.Y;
2446 primOOBsize.Z = _size.Z;
2447 primOOBoffset = Vector3.Zero;
2448 }
2449 else
2450 {
2451 d.AABB AABB;
2452 d.GeomGetAABB(prim_geom, out AABB); // get the AABB from engine geom
2453
2454 primOOBsize.X = (AABB.MaxX - AABB.MinX);
2455 primOOBsize.Y = (AABB.MaxY - AABB.MinY);
2456 primOOBsize.Z = (AABB.MaxZ - AABB.MinZ);
2457 if (!hasOOBoffsetFromMesh)
2458 {
2459 primOOBoffset.X = (AABB.MaxX + AABB.MinX) * 0.5f;
2460 primOOBoffset.Y = (AABB.MaxY + AABB.MinY) * 0.5f;
2461 primOOBoffset.Z = (AABB.MaxZ + AABB.MinZ) * 0.5f;
2462 }
2463 }
2464
2465 // also its own inertia and mass
2466 // keep using basic shape mass for now
2467 volume = CalculatePrimVolume();
2468
2469 primVolume = volume;
2470 primMass = m_density * volume;
2471
2472 if (primMass <= 0)
2473 primMass = 0.0001f;//ckrinke: Mass must be greater then zero.
2474 if (primMass > _parent_scene.maximumMassObject)
2475 primMass = _parent_scene.maximumMassObject;
2476
2477 _mass = primMass; // just in case
2478
2479 d.MassSetBoxTotal(out primdMass, primMass, primOOBsize.X, primOOBsize.Y, primOOBsize.Z);
2480
2481 d.MassTranslate(ref primdMass,
2482 primOOBoffset.X,
2483 primOOBoffset.Y,
2484 primOOBoffset.Z);
2485
2486 primOOBsize *= 0.5f; // let obb size be a corner coords
2487 primOOBradiusSQ = primOOBsize.LengthSquared();
2488 }
2489
2490
2491 #endregion
2492
2493
2494 /// <summary>
2495 /// Add a child prim to this parent prim.
2496 /// </summary>
2497 /// <param name="prim">Child prim</param>
2498 // I'm the parent
2499 // prim is the child
2500 public void ParentPrim(OdePrim prim)
2501 {
2502 //Console.WriteLine("ParentPrim " + m_primName);
2503 if (this.m_localID != prim.m_localID)
2504 {
2505 DestroyBody(); // for now we need to rebuil entire object on link change
2506
2507 lock (childrenPrim)
2508 {
2509 // adopt the prim
2510 if (!childrenPrim.Contains(prim))
2511 childrenPrim.Add(prim);
2512
2513 // see if this prim has kids and adopt them also
2514 // should not happen for now
2515 foreach (OdePrim prm in prim.childrenPrim)
2516 {
2517 if (!childrenPrim.Contains(prm))
2518 {
2519 if (prm.Body != IntPtr.Zero)
2520 {
2521 if (prm.prim_geom != IntPtr.Zero)
2522 d.GeomSetBody(prm.prim_geom, IntPtr.Zero);
2523 if (prm.Body != prim.Body)
2524 prm.DestroyBody(); // don't loose bodies around
2525 prm.Body = IntPtr.Zero;
2526 }
2527
2528 childrenPrim.Add(prm);
2529 prm._parent = this;
2530 }
2531 }
2532 }
2533 //Remove old children from the prim
2534 prim.childrenPrim.Clear();
2535
2536 if (prim.Body != IntPtr.Zero)
2537 {
2538 if (prim.prim_geom != IntPtr.Zero)
2539 d.GeomSetBody(prim.prim_geom, IntPtr.Zero);
2540 prim.DestroyBody(); // don't loose bodies around
2541 prim.Body = IntPtr.Zero;
2542 }
2543
2544 prim.childPrim = true;
2545 prim._parent = this;
2546
2547 MakeBody(); // full nasty reconstruction
2548 }
2549 }
2550
2551 private void UpdateChildsfromgeom()
2552 {
2553 if (childrenPrim.Count > 0)
2554 {
2555 foreach (OdePrim prm in childrenPrim)
2556 prm.UpdateDataFromGeom();
2557 }
2558 }
2559
2560 private void UpdateDataFromGeom()
2561 {
2562 if (prim_geom != IntPtr.Zero)
2563 {
2564 d.Quaternion qtmp;
2565 d.GeomCopyQuaternion(prim_geom, out qtmp);
2566 _orientation.X = qtmp.X;
2567 _orientation.Y = qtmp.Y;
2568 _orientation.Z = qtmp.Z;
2569 _orientation.W = qtmp.W;
2570
2571 d.Vector3 lpos = d.GeomGetPosition(prim_geom);
2572 _position.X = lpos.X;
2573 _position.Y = lpos.Y;
2574 _position.Z = lpos.Z;
2575 }
2576 }
2577
2578 private void ChildDelink(OdePrim odePrim, bool remakebodies)
2579 {
2580 // Okay, we have a delinked child.. destroy all body and remake
2581 if (odePrim != this && !childrenPrim.Contains(odePrim))
2582 return;
2583
2584 DestroyBody();
2585
2586 if (odePrim == this) // delinking the root prim
2587 {
2588 OdePrim newroot = null;
2589 lock (childrenPrim)
2590 {
2591 if (childrenPrim.Count > 0)
2592 {
2593 newroot = childrenPrim[0];
2594 childrenPrim.RemoveAt(0);
2595 foreach (OdePrim prm in childrenPrim)
2596 {
2597 newroot.childrenPrim.Add(prm);
2598 }
2599 childrenPrim.Clear();
2600 }
2601 if (newroot != null)
2602 {
2603 newroot.childPrim = false;
2604 newroot._parent = null;
2605 if (remakebodies)
2606 newroot.MakeBody();
2607 }
2608 }
2609 }
2610
2611 else
2612 {
2613 lock (childrenPrim)
2614 {
2615 childrenPrim.Remove(odePrim);
2616 odePrim.childPrim = false;
2617 odePrim._parent = null;
2618 // odePrim.UpdateDataFromGeom();
2619 if (remakebodies)
2620 odePrim.MakeBody();
2621 }
2622 }
2623 if (remakebodies)
2624 MakeBody();
2625 }
2626
2627 protected void ChildRemove(OdePrim odePrim, bool reMakeBody)
2628 {
2629 // Okay, we have a delinked child.. destroy all body and remake
2630 if (odePrim != this && !childrenPrim.Contains(odePrim))
2631 return;
2632
2633 DestroyBody();
2634
2635 if (odePrim == this)
2636 {
2637 OdePrim newroot = null;
2638 lock (childrenPrim)
2639 {
2640 if (childrenPrim.Count > 0)
2641 {
2642 newroot = childrenPrim[0];
2643 childrenPrim.RemoveAt(0);
2644 foreach (OdePrim prm in childrenPrim)
2645 {
2646 newroot.childrenPrim.Add(prm);
2647 }
2648 childrenPrim.Clear();
2649 }
2650 if (newroot != null)
2651 {
2652 newroot.childPrim = false;
2653 newroot._parent = null;
2654 newroot.MakeBody();
2655 }
2656 }
2657 if (reMakeBody)
2658 MakeBody();
2659 return;
2660 }
2661 else
2662 {
2663 lock (childrenPrim)
2664 {
2665 childrenPrim.Remove(odePrim);
2666 odePrim.childPrim = false;
2667 odePrim._parent = null;
2668 if (reMakeBody)
2669 odePrim.MakeBody();
2670 }
2671 }
2672 MakeBody();
2673 }
2674
2675 #region changes
2676
2677 private void changeadd()
2678 {
2679 CreateGeom();
2680
2681 if (prim_geom != IntPtr.Zero)
2682 {
2683 d.GeomSetPosition(prim_geom, _position.X, _position.Y, _position.Z);
2684 d.Quaternion myrot = new d.Quaternion();
2685 myrot.X = _orientation.X;
2686 myrot.Y = _orientation.Y;
2687 myrot.Z = _orientation.Z;
2688 myrot.W = _orientation.W;
2689 d.GeomSetQuaternion(prim_geom, ref myrot);
2690
2691 if (!m_isphysical)
2692 {
2693 SetInStaticSpace(this);
2694 UpdateCollisionCatFlags();
2695 ApplyCollisionCatFlags();
2696 }
2697 else
2698 MakeBody();
2699 }
2700 }
2701
2702 private void changeAngularLock(Vector3 newLock)
2703 {
2704 // do we have a Physical object?
2705 if (Body != IntPtr.Zero)
2706 {
2707 //Check that we have a Parent
2708 //If we have a parent then we're not authorative here
2709 if (_parent == null)
2710 {
2711 if (!newLock.ApproxEquals(Vector3.One, 0f))
2712 {
2713 createAMotor(newLock);
2714 }
2715 else
2716 {
2717 if (Amotor != IntPtr.Zero)
2718 {
2719 d.JointDestroy(Amotor);
2720 Amotor = IntPtr.Zero;
2721 }
2722 }
2723 }
2724 }
2725 // Store this for later in case we get turned into a separate body
2726 m_angularlock = newLock;
2727 }
2728
2729 private void changeLink(OdePrim NewParent)
2730 {
2731 if (_parent == null && NewParent != null)
2732 {
2733 NewParent.ParentPrim(this);
2734 }
2735 else if (_parent != null)
2736 {
2737 if (_parent is OdePrim)
2738 {
2739 if (NewParent != _parent)
2740 {
2741 (_parent as OdePrim).ChildDelink(this, false); // for now...
2742 childPrim = false;
2743
2744 if (NewParent != null)
2745 {
2746 NewParent.ParentPrim(this);
2747 }
2748 }
2749 }
2750 }
2751 _parent = NewParent;
2752 }
2753
2754
2755 private void Stop()
2756 {
2757 if (!childPrim)
2758 {
2759 m_force = Vector3.Zero;
2760 m_forceacc = Vector3.Zero;
2761 m_angularForceacc = Vector3.Zero;
2762 _torque = Vector3.Zero;
2763 _velocity = Vector3.Zero;
2764 _acceleration = Vector3.Zero;
2765 m_rotationalVelocity = Vector3.Zero;
2766 _target_velocity = Vector3.Zero;
2767 if (m_vehicle != null && m_vehicle.Type != Vehicle.TYPE_NONE)
2768 m_vehicle.Stop();
2769 }
2770
2771 if (Body != IntPtr.Zero)
2772 {
2773 d.BodySetForce(Body, 0f, 0f, 0f);
2774 d.BodySetTorque(Body, 0f, 0f, 0f);
2775 d.BodySetLinearVel(Body, 0f, 0f, 0f);
2776 d.BodySetAngularVel(Body, 0f, 0f, 0f);
2777 }
2778 }
2779
2780 private void changePhantomStatus(bool newval)
2781 {
2782 m_isphantom = newval;
2783
2784 UpdateCollisionCatFlags();
2785 ApplyCollisionCatFlags();
2786 }
2787
2788/* not in use
2789 internal void ChildSelectedChange(bool childSelect)
2790 {
2791 if(childPrim)
2792 return;
2793
2794 if (childSelect == m_isSelected)
2795 return;
2796
2797 if (childSelect)
2798 {
2799 DoSelectedStatus(true);
2800 }
2801
2802 else
2803 {
2804 foreach (OdePrim prm in childrenPrim)
2805 {
2806 if (prm.m_isSelected)
2807 return;
2808 }
2809 DoSelectedStatus(false);
2810 }
2811 }
2812*/
2813 private void changeSelectedStatus(bool newval)
2814 {
2815 if (m_lastdoneSelected == newval)
2816 return;
2817
2818 m_lastdoneSelected = newval;
2819 DoSelectedStatus(newval);
2820 }
2821
2822 private void CheckDelaySelect()
2823 {
2824 if (m_delaySelect)
2825 {
2826 DoSelectedStatus(m_isSelected);
2827 }
2828 }
2829
2830 private void DoSelectedStatus(bool newval)
2831 {
2832 m_isSelected = newval;
2833 Stop();
2834
2835 if (newval)
2836 {
2837 if (!childPrim && Body != IntPtr.Zero)
2838 d.BodyDisable(Body);
2839
2840 if (m_delaySelect || m_isphysical)
2841 {
2842 m_collisionCategories = CollisionCategories.Selected;
2843 m_collisionFlags = 0;
2844
2845 if (!childPrim)
2846 {
2847 foreach (OdePrim prm in childrenPrim)
2848 {
2849 prm.m_collisionCategories = m_collisionCategories;
2850 prm.m_collisionFlags = m_collisionFlags;
2851
2852 if (prm.prim_geom != null)
2853 {
2854
2855 if (prm.m_NoColide)
2856 {
2857 d.GeomSetCategoryBits(prm.prim_geom, 0);
2858 d.GeomSetCollideBits(prm.prim_geom, 0);
2859 }
2860 else
2861 {
2862 d.GeomSetCategoryBits(prm.prim_geom, (uint)m_collisionCategories);
2863 d.GeomSetCollideBits(prm.prim_geom, (uint)m_collisionFlags);
2864 }
2865 }
2866 prm.m_delaySelect = false;
2867 }
2868 }
2869// else if (_parent != null)
2870// ((OdePrim)_parent).ChildSelectedChange(true);
2871
2872
2873 if (prim_geom != null)
2874 {
2875 if (m_NoColide)
2876 {
2877 d.GeomSetCategoryBits(prim_geom, 0);
2878 d.GeomSetCollideBits(prim_geom, 0);
2879 if (collide_geom != prim_geom && collide_geom != IntPtr.Zero)
2880 {
2881 d.GeomSetCategoryBits(collide_geom, 0);
2882 d.GeomSetCollideBits(collide_geom, 0);
2883 }
2884
2885 }
2886 else
2887 {
2888 d.GeomSetCategoryBits(prim_geom, (uint)m_collisionCategories);
2889 d.GeomSetCollideBits(prim_geom, (uint)m_collisionFlags);
2890 if (collide_geom != prim_geom && collide_geom != IntPtr.Zero)
2891 {
2892 d.GeomSetCategoryBits(collide_geom, (uint)m_collisionCategories);
2893 d.GeomSetCollideBits(collide_geom, (uint)m_collisionFlags);
2894 }
2895 }
2896 }
2897
2898 m_delaySelect = false;
2899 }
2900 else if(!m_isphysical)
2901 {
2902 m_delaySelect = true;
2903 }
2904 }
2905 else
2906 {
2907 if (!childPrim)
2908 {
2909 if (Body != IntPtr.Zero && !m_disabled)
2910 d.BodyEnable(Body);
2911 }
2912// else if (_parent != null)
2913// ((OdePrim)_parent).ChildSelectedChange(false);
2914
2915 UpdateCollisionCatFlags();
2916 ApplyCollisionCatFlags();
2917
2918 m_delaySelect = false;
2919 }
2920
2921 resetCollisionAccounting();
2922 }
2923
2924 private void changePosition(Vector3 newPos)
2925 {
2926 CheckDelaySelect();
2927 if (m_isphysical)
2928 {
2929 if (childPrim) // inertia is messed, must rebuild
2930 {
2931 if (m_building)
2932 {
2933 _position = newPos;
2934 }
2935
2936 else if (m_forcePosOrRotation && _position != newPos && Body != IntPtr.Zero)
2937 {
2938 FixInertia(newPos);
2939 if (!d.BodyIsEnabled(Body))
2940 d.BodyEnable(Body);
2941 }
2942 }
2943 else
2944 {
2945 if (_position != newPos)
2946 {
2947 d.GeomSetPosition(prim_geom, newPos.X, newPos.Y, newPos.Z);
2948 _position = newPos;
2949 }
2950 if (Body != IntPtr.Zero && !d.BodyIsEnabled(Body))
2951 d.BodyEnable(Body);
2952 }
2953 }
2954 else
2955 {
2956 if (prim_geom != IntPtr.Zero)
2957 {
2958 if (newPos != _position)
2959 {
2960 d.GeomSetPosition(prim_geom, newPos.X, newPos.Y, newPos.Z);
2961 _position = newPos;
2962
2963 m_targetSpace = _parent_scene.MoveGeomToStaticSpace(prim_geom, _position, m_targetSpace);
2964 }
2965 }
2966 }
2967 givefakepos--;
2968 if (givefakepos < 0)
2969 givefakepos = 0;
2970// changeSelectedStatus();
2971 resetCollisionAccounting();
2972 }
2973
2974 private void changeOrientation(Quaternion newOri)
2975 {
2976 CheckDelaySelect();
2977 if (m_isphysical)
2978 {
2979 if (childPrim) // inertia is messed, must rebuild
2980 {
2981 if (m_building)
2982 {
2983 _orientation = newOri;
2984 }
2985/*
2986 else if (m_forcePosOrRotation && _orientation != newOri && Body != IntPtr.Zero)
2987 {
2988 FixInertia(_position, newOri);
2989 if (!d.BodyIsEnabled(Body))
2990 d.BodyEnable(Body);
2991 }
2992*/
2993 }
2994 else
2995 {
2996 if (newOri != _orientation)
2997 {
2998 d.Quaternion myrot = new d.Quaternion();
2999 myrot.X = newOri.X;
3000 myrot.Y = newOri.Y;
3001 myrot.Z = newOri.Z;
3002 myrot.W = newOri.W;
3003 d.GeomSetQuaternion(prim_geom, ref myrot);
3004 _orientation = newOri;
3005 if (Body != IntPtr.Zero && !m_angularlock.ApproxEquals(Vector3.One, 0f))
3006 createAMotor(m_angularlock);
3007 }
3008 if (Body != IntPtr.Zero && !d.BodyIsEnabled(Body))
3009 d.BodyEnable(Body);
3010 }
3011 }
3012 else
3013 {
3014 if (prim_geom != IntPtr.Zero)
3015 {
3016 if (newOri != _orientation)
3017 {
3018 d.Quaternion myrot = new d.Quaternion();
3019 myrot.X = newOri.X;
3020 myrot.Y = newOri.Y;
3021 myrot.Z = newOri.Z;
3022 myrot.W = newOri.W;
3023 d.GeomSetQuaternion(prim_geom, ref myrot);
3024 _orientation = newOri;
3025 }
3026 }
3027 }
3028 givefakeori--;
3029 if (givefakeori < 0)
3030 givefakeori = 0;
3031 resetCollisionAccounting();
3032 }
3033
3034 private void changePositionAndOrientation(Vector3 newPos, Quaternion newOri)
3035 {
3036 CheckDelaySelect();
3037 if (m_isphysical)
3038 {
3039 if (childPrim && m_building) // inertia is messed, must rebuild
3040 {
3041 _position = newPos;
3042 _orientation = newOri;
3043 }
3044 else
3045 {
3046 if (newOri != _orientation)
3047 {
3048 d.Quaternion myrot = new d.Quaternion();
3049 myrot.X = newOri.X;
3050 myrot.Y = newOri.Y;
3051 myrot.Z = newOri.Z;
3052 myrot.W = newOri.W;
3053 d.GeomSetQuaternion(prim_geom, ref myrot);
3054 _orientation = newOri;
3055 if (Body != IntPtr.Zero && !m_angularlock.ApproxEquals(Vector3.One, 0f))
3056 createAMotor(m_angularlock);
3057 }
3058 if (_position != newPos)
3059 {
3060 d.GeomSetPosition(prim_geom, newPos.X, newPos.Y, newPos.Z);
3061 _position = newPos;
3062 }
3063 if (Body != IntPtr.Zero && !d.BodyIsEnabled(Body))
3064 d.BodyEnable(Body);
3065 }
3066 }
3067 else
3068 {
3069 // string primScenAvatarIn = _parent_scene.whichspaceamIin(_position);
3070 // int[] arrayitem = _parent_scene.calculateSpaceArrayItemFromPos(_position);
3071
3072 if (prim_geom != IntPtr.Zero)
3073 {
3074 if (newOri != _orientation)
3075 {
3076 d.Quaternion myrot = new d.Quaternion();
3077 myrot.X = newOri.X;
3078 myrot.Y = newOri.Y;
3079 myrot.Z = newOri.Z;
3080 myrot.W = newOri.W;
3081 d.GeomSetQuaternion(prim_geom, ref myrot);
3082 _orientation = newOri;
3083 }
3084
3085 if (newPos != _position)
3086 {
3087 d.GeomSetPosition(prim_geom, newPos.X, newPos.Y, newPos.Z);
3088 _position = newPos;
3089
3090 m_targetSpace = _parent_scene.MoveGeomToStaticSpace(prim_geom, _position, m_targetSpace);
3091 }
3092 }
3093 }
3094 givefakepos--;
3095 if (givefakepos < 0)
3096 givefakepos = 0;
3097 givefakeori--;
3098 if (givefakeori < 0)
3099 givefakeori = 0;
3100 resetCollisionAccounting();
3101 }
3102
3103
3104 private void changeDisable(bool disable)
3105 {
3106 if (disable)
3107 {
3108 if (!m_disabled)
3109 disableBodySoft();
3110 }
3111 else
3112 {
3113 if (m_disabled)
3114 enableBodySoft();
3115 }
3116 }
3117
3118 private void changePhysicsStatus(bool NewStatus)
3119 {
3120 CheckDelaySelect();
3121
3122 m_isphysical = NewStatus;
3123
3124 if (!childPrim)
3125 {
3126 if (NewStatus)
3127 {
3128 if (Body == IntPtr.Zero)
3129 MakeBody();
3130 }
3131 else
3132 {
3133 if (Body != IntPtr.Zero)
3134 {
3135 DestroyBody();
3136 }
3137 Stop();
3138 }
3139 }
3140
3141 resetCollisionAccounting();
3142 }
3143
3144 private void changeprimsizeshape()
3145 {
3146 CheckDelaySelect();
3147
3148 OdePrim parent = (OdePrim)_parent;
3149
3150 bool chp = childPrim;
3151
3152 if (chp)
3153 {
3154 if (parent != null)
3155 {
3156 parent.DestroyBody();
3157 }
3158 }
3159 else
3160 {
3161 DestroyBody();
3162 }
3163
3164 RemoveGeom();
3165
3166 // we don't need to do space calculation because the client sends a position update also.
3167 if (_size.X <= 0)
3168 _size.X = 0.01f;
3169 if (_size.Y <= 0)
3170 _size.Y = 0.01f;
3171 if (_size.Z <= 0)
3172 _size.Z = 0.01f;
3173 // Construction of new prim
3174
3175 CreateGeom();
3176
3177 if (prim_geom != IntPtr.Zero)
3178 {
3179 d.GeomSetPosition(prim_geom, _position.X, _position.Y, _position.Z);
3180 d.Quaternion myrot = new d.Quaternion();
3181 myrot.X = _orientation.X;
3182 myrot.Y = _orientation.Y;
3183 myrot.Z = _orientation.Z;
3184 myrot.W = _orientation.W;
3185 d.GeomSetQuaternion(prim_geom, ref myrot);
3186 }
3187
3188 if (m_isphysical)
3189 {
3190 if (chp)
3191 {
3192 if (parent != null)
3193 {
3194 parent.MakeBody();
3195 }
3196 }
3197 else
3198 MakeBody();
3199 }
3200
3201 else
3202 {
3203 UpdateCollisionCatFlags();
3204 ApplyCollisionCatFlags();
3205 }
3206
3207 resetCollisionAccounting();
3208 }
3209
3210 private void changeSize(Vector3 newSize)
3211 {
3212 _size = newSize;
3213 changeprimsizeshape();
3214 }
3215
3216 private void changeShape(PrimitiveBaseShape newShape)
3217 {
3218 if(newShape != null)
3219 _pbs = newShape;
3220 changeprimsizeshape();
3221 }
3222
3223 private void changeFloatOnWater(bool newval)
3224 {
3225 m_collidesWater = newval;
3226
3227 UpdateCollisionCatFlags();
3228 ApplyCollisionCatFlags();
3229 }
3230
3231 private void changeSetTorque(Vector3 newtorque)
3232 {
3233 if (!m_isSelected)
3234 {
3235 if (m_isphysical && Body != IntPtr.Zero)
3236 {
3237 if (m_disabled)
3238 enableBodySoft();
3239 else if (!d.BodyIsEnabled(Body))
3240 d.BodyEnable(Body);
3241
3242 }
3243 _torque = newtorque;
3244 }
3245 }
3246
3247 private void changeForce(Vector3 force)
3248 {
3249 m_force = force;
3250 if (Body != IntPtr.Zero && !d.BodyIsEnabled(Body))
3251 d.BodyEnable(Body);
3252 }
3253
3254
3255 private void changeAddForce(Vector3 theforce)
3256 {
3257 m_forceacc += theforce;
3258 if (!m_isSelected)
3259 {
3260 lock (this)
3261 {
3262 //m_log.Info("[PHYSICS]: dequeing forcelist");
3263 if (m_isphysical && Body != IntPtr.Zero)
3264 {
3265 if (m_disabled)
3266 enableBodySoft();
3267 else if (!d.BodyIsEnabled(Body))
3268 d.BodyEnable(Body);
3269 }
3270 }
3271
3272 m_collisionscore = 0;
3273 }
3274 }
3275
3276 // actually angular impulse
3277 private void changeAddAngularImpulse(Vector3 aimpulse)
3278 {
3279 m_angularForceacc += aimpulse * m_invTimeStep;
3280 if (!m_isSelected)
3281 {
3282 lock (this)
3283 {
3284 if (m_isphysical && Body != IntPtr.Zero)
3285 {
3286 if (m_disabled)
3287 enableBodySoft();
3288 else if (!d.BodyIsEnabled(Body))
3289 d.BodyEnable(Body);
3290 }
3291 }
3292 m_collisionscore = 0;
3293 }
3294 }
3295
3296 private void changevelocity(Vector3 newVel)
3297 {
3298 if (!m_isSelected)
3299 {
3300 if (Body != IntPtr.Zero)
3301 {
3302 if (m_disabled)
3303 enableBodySoft();
3304 else if (!d.BodyIsEnabled(Body))
3305 d.BodyEnable(Body);
3306
3307 d.BodySetLinearVel(Body, newVel.X, newVel.Y, newVel.Z);
3308 }
3309 //resetCollisionAccounting();
3310 }
3311 _velocity = newVel;
3312 }
3313
3314 private void changeVolumedetetion(bool newVolDtc)
3315 {
3316 m_isVolumeDetect = newVolDtc;
3317 m_fakeisVolumeDetect = newVolDtc;
3318 UpdateCollisionCatFlags();
3319 ApplyCollisionCatFlags();
3320 }
3321
3322 protected void changeBuilding(bool newbuilding)
3323 {
3324 // Check if we need to do anything
3325 if (newbuilding == m_building)
3326 return;
3327
3328 if ((bool)newbuilding)
3329 {
3330 m_building = true;
3331 if (!childPrim)
3332 DestroyBody();
3333 }
3334 else
3335 {
3336 m_building = false;
3337 CheckDelaySelect();
3338 if (!childPrim)
3339 MakeBody();
3340 }
3341 if (!childPrim && childrenPrim.Count > 0)
3342 {
3343 foreach (OdePrim prm in childrenPrim)
3344 prm.changeBuilding(m_building); // call directly
3345 }
3346 }
3347
3348 public void changeSetVehicle(VehicleData vdata)
3349 {
3350 if (m_vehicle == null)
3351 m_vehicle = new ODEDynamics(this);
3352 m_vehicle.DoSetVehicle(vdata);
3353 }
3354 private void changeVehicleType(int value)
3355 {
3356 if (value == (int)Vehicle.TYPE_NONE)
3357 {
3358 if (m_vehicle != null)
3359 m_vehicle = null;
3360 }
3361 else
3362 {
3363 if (m_vehicle == null)
3364 m_vehicle = new ODEDynamics(this);
3365
3366 m_vehicle.ProcessTypeChange((Vehicle)value);
3367 }
3368 }
3369
3370 private void changeVehicleFloatParam(strVehicleFloatParam fp)
3371 {
3372 if (m_vehicle == null)
3373 return;
3374
3375 m_vehicle.ProcessFloatVehicleParam((Vehicle)fp.param, fp.value);
3376 }
3377
3378 private void changeVehicleVectorParam(strVehicleVectorParam vp)
3379 {
3380 if (m_vehicle == null)
3381 return;
3382 m_vehicle.ProcessVectorVehicleParam((Vehicle)vp.param, vp.value);
3383 }
3384
3385 private void changeVehicleRotationParam(strVehicleQuatParam qp)
3386 {
3387 if (m_vehicle == null)
3388 return;
3389 m_vehicle.ProcessRotationVehicleParam((Vehicle)qp.param, qp.value);
3390 }
3391
3392 private void changeVehicleFlags(strVehicleBoolParam bp)
3393 {
3394 if (m_vehicle == null)
3395 return;
3396 m_vehicle.ProcessVehicleFlags(bp.param, bp.value);
3397 }
3398
3399 #endregion
3400
3401 public void Move()
3402 {
3403 if (!childPrim && m_isphysical && Body != IntPtr.Zero &&
3404 !m_disabled && !m_isSelected && !m_building && !m_outbounds)
3405 {
3406 if (!d.BodyIsEnabled(Body))
3407 {
3408 // let vehicles sleep
3409 if (m_vehicle != null && m_vehicle.Type != Vehicle.TYPE_NONE)
3410 return;
3411
3412 if (++bodydisablecontrol < 20)
3413 return;
3414
3415 bodydisablecontrol = 0;
3416 d.BodyEnable(Body);
3417 }
3418
3419 d.Vector3 lpos = d.GeomGetPosition(prim_geom); // root position that is seem by rest of simulator
3420
3421/* moved down to UpdateMove... where it belongs again
3422
3423 // check outside region
3424
3425 if (lpos.Z < -100 || lpos.Z > 100000f)
3426 {
3427 m_outbounds = true;
3428
3429 lpos.Z = Util.Clip(lpos.Z, -100f, 100000f);
3430 _acceleration.X = 0;
3431 _acceleration.Y = 0;
3432 _acceleration.Z = 0;
3433
3434 _velocity.X = 0;
3435 _velocity.Y = 0;
3436 _velocity.Z = 0;
3437 m_rotationalVelocity.X = 0;
3438 m_rotationalVelocity.Y = 0;
3439 m_rotationalVelocity.Z = 0;
3440
3441 d.BodySetLinearVel(Body, 0, 0, 0); // stop it
3442 d.BodySetAngularVel(Body, 0, 0, 0); // stop it
3443 d.BodySetPosition(Body, lpos.X, lpos.Y, lpos.Z); // put it somewhere
3444 m_lastposition = _position;
3445 m_lastorientation = _orientation;
3446
3447 base.RequestPhysicsterseUpdate();
3448
3449 throttleCounter = 0;
3450 _zeroFlag = true;
3451
3452 disableBodySoft(); // disable it and colisions
3453 base.RaiseOutOfBounds(_position);
3454 return;
3455 }
3456
3457 if (lpos.X < 0f)
3458 {
3459 _position.X = Util.Clip(lpos.X, -2f, -0.1f);
3460 m_outbounds = true;
3461 }
3462 else if (lpos.X > _parent_scene.WorldExtents.X)
3463 {
3464 _position.X = Util.Clip(lpos.X, _parent_scene.WorldExtents.X + 0.1f, _parent_scene.WorldExtents.X + 2f);
3465 m_outbounds = true;
3466 }
3467 if (lpos.Y < 0f)
3468 {
3469 _position.Y = Util.Clip(lpos.Y, -2f, -0.1f);
3470 m_outbounds = true;
3471 }
3472 else if (lpos.Y > _parent_scene.WorldExtents.Y)
3473 {
3474 _position.Y = Util.Clip(lpos.Y, _parent_scene.WorldExtents.Y + 0.1f, _parent_scene.WorldExtents.Y + 2f);
3475 m_outbounds = true;
3476 }
3477
3478 if (m_outbounds)
3479 {
3480 m_lastposition = _position;
3481 m_lastorientation = _orientation;
3482
3483 d.Vector3 dtmp = d.BodyGetAngularVel(Body);
3484 m_rotationalVelocity.X = dtmp.X;
3485 m_rotationalVelocity.Y = dtmp.Y;
3486 m_rotationalVelocity.Z = dtmp.Z;
3487
3488 dtmp = d.BodyGetLinearVel(Body);
3489 _velocity.X = dtmp.X;
3490 _velocity.Y = dtmp.Y;
3491 _velocity.Z = dtmp.Z;
3492
3493 d.BodySetLinearVel(Body, 0, 0, 0); // stop it
3494 d.BodySetAngularVel(Body, 0, 0, 0);
3495 d.GeomSetPosition(prim_geom, _position.X, _position.Y, _position.Z);
3496 disableBodySoft(); // stop collisions
3497 base.RequestPhysicsterseUpdate();
3498 return;
3499 }
3500*/
3501 if (m_vehicle != null && m_vehicle.Type != Vehicle.TYPE_NONE)
3502 {
3503 // 'VEHICLES' are dealt with in ODEDynamics.cs
3504 m_vehicle.Step();
3505 return;
3506 }
3507
3508 float fx = 0;
3509 float fy = 0;
3510 float fz = 0;
3511
3512 float m_mass = _mass;
3513
3514 if (m_usePID && m_PIDTau > 0)
3515 {
3516 // for now position error
3517 _target_velocity =
3518 new Vector3(
3519 (m_PIDTarget.X - lpos.X),
3520 (m_PIDTarget.Y - lpos.Y),
3521 (m_PIDTarget.Z - lpos.Z)
3522 );
3523
3524 if (_target_velocity.ApproxEquals(Vector3.Zero, 0.02f))
3525 {
3526 d.BodySetPosition(Body, m_PIDTarget.X, m_PIDTarget.Y, m_PIDTarget.Z);
3527 d.BodySetLinearVel(Body, 0, 0, 0);
3528 return;
3529 }
3530 else
3531 {
3532 _zeroFlag = false;
3533
3534 float tmp = 1 / m_PIDTau;
3535 _target_velocity *= tmp;
3536
3537 // apply limits
3538 tmp = _target_velocity.Length();
3539 if (tmp > 50.0f)
3540 {
3541 tmp = 50 / tmp;
3542 _target_velocity *= tmp;
3543 }
3544 else if (tmp < 0.05f)
3545 {
3546 tmp = 0.05f / tmp;
3547 _target_velocity *= tmp;
3548 }
3549
3550 d.Vector3 vel = d.BodyGetLinearVel(Body);
3551 fx = (_target_velocity.X - vel.X) * m_invTimeStep;
3552 fy = (_target_velocity.Y - vel.Y) * m_invTimeStep;
3553 fz = (_target_velocity.Z - vel.Z) * m_invTimeStep;
3554// d.BodySetLinearVel(Body, _target_velocity.X, _target_velocity.Y, _target_velocity.Z);
3555 }
3556 } // end if (m_usePID)
3557
3558 // Hover PID Controller needs to be mutually exlusive to MoveTo PID controller
3559 else if (m_useHoverPID && m_PIDHoverTau != 0 && m_PIDHoverHeight != 0)
3560 {
3561
3562 // Non-Vehicles have a limited set of Hover options.
3563 // determine what our target height really is based on HoverType
3564
3565 m_groundHeight = _parent_scene.GetTerrainHeightAtXY(lpos.X, lpos.Y);
3566
3567 switch (m_PIDHoverType)
3568 {
3569 case PIDHoverType.Ground:
3570 m_targetHoverHeight = m_groundHeight + m_PIDHoverHeight;
3571 break;
3572
3573 case PIDHoverType.GroundAndWater:
3574 m_waterHeight = _parent_scene.GetWaterLevel();
3575 if (m_groundHeight > m_waterHeight)
3576 m_targetHoverHeight = m_groundHeight + m_PIDHoverHeight;
3577 else
3578 m_targetHoverHeight = m_waterHeight + m_PIDHoverHeight;
3579 break;
3580 } // end switch (m_PIDHoverType)
3581
3582 // don't go underground unless volumedetector
3583
3584 if (m_targetHoverHeight > m_groundHeight || m_isVolumeDetect)
3585 {
3586 d.Vector3 vel = d.BodyGetLinearVel(Body);
3587
3588 fz = (m_targetHoverHeight - lpos.Z);
3589
3590 // if error is zero, use position control; otherwise, velocity control
3591 if (Math.Abs(fz) < 0.01f)
3592 {
3593 d.BodySetPosition(Body, lpos.X, lpos.Y, m_targetHoverHeight);
3594 d.BodySetLinearVel(Body, vel.X, vel.Y, 0);
3595 }
3596 else
3597 {
3598 _zeroFlag = false;
3599 fz /= m_PIDHoverTau;
3600
3601 float tmp = Math.Abs(fz);
3602 if (tmp > 50)
3603 fz = 50 * Math.Sign(fz);
3604 else if (tmp < 0.1)
3605 fz = 0.1f * Math.Sign(fz);
3606
3607 fz = ((fz - vel.Z) * m_invTimeStep);
3608 }
3609 }
3610 }
3611 else
3612 {
3613 float b = (1.0f - m_buoyancy);
3614 fx = _parent_scene.gravityx * b;
3615 fy = _parent_scene.gravityy * b;
3616 fz = _parent_scene.gravityz * b;
3617 }
3618
3619 fx *= m_mass;
3620 fy *= m_mass;
3621 fz *= m_mass;
3622
3623 // constant force
3624 fx += m_force.X;
3625 fy += m_force.Y;
3626 fz += m_force.Z;
3627
3628 fx += m_forceacc.X;
3629 fy += m_forceacc.Y;
3630 fz += m_forceacc.Z;
3631
3632 m_forceacc = Vector3.Zero;
3633
3634 //m_log.Info("[OBJPID]: X:" + fx.ToString() + " Y:" + fy.ToString() + " Z:" + fz.ToString());
3635 if (fx != 0 || fy != 0 || fz != 0)
3636 {
3637 d.BodyAddForce(Body, fx, fy, fz);
3638 //Console.WriteLine("AddForce " + fx + "," + fy + "," + fz);
3639 }
3640
3641 Vector3 trq;
3642
3643 trq = _torque;
3644 trq += m_angularForceacc;
3645 m_angularForceacc = Vector3.Zero;
3646 if (trq.X != 0 || trq.Y != 0 || trq.Z != 0)
3647 {
3648 d.BodyAddTorque(Body, trq.X, trq.Y, trq.Z);
3649 }
3650 }
3651 else
3652 { // is not physical, or is not a body or is selected
3653 // _zeroPosition = d.BodyGetPosition(Body);
3654 return;
3655 //Console.WriteLine("Nothing " + Name);
3656
3657 }
3658 }
3659
3660 public void UpdatePositionAndVelocity()
3661 {
3662 if (_parent == null && !m_disabled && !m_building && !m_outbounds && Body != IntPtr.Zero)
3663 {
3664 if (d.BodyIsEnabled(Body) || !_zeroFlag)
3665 {
3666 bool lastZeroFlag = _zeroFlag;
3667
3668 d.Vector3 lpos = d.GeomGetPosition(prim_geom);
3669
3670 // check outside region
3671 if (lpos.Z < -100 || lpos.Z > 100000f)
3672 {
3673 m_outbounds = true;
3674
3675 lpos.Z = Util.Clip(lpos.Z, -100f, 100000f);
3676 _acceleration.X = 0;
3677 _acceleration.Y = 0;
3678 _acceleration.Z = 0;
3679
3680 _velocity.X = 0;
3681 _velocity.Y = 0;
3682 _velocity.Z = 0;
3683 m_rotationalVelocity.X = 0;
3684 m_rotationalVelocity.Y = 0;
3685 m_rotationalVelocity.Z = 0;
3686
3687 d.BodySetLinearVel(Body, 0, 0, 0); // stop it
3688 d.BodySetAngularVel(Body, 0, 0, 0); // stop it
3689 d.BodySetPosition(Body, lpos.X, lpos.Y, lpos.Z); // put it somewhere
3690 m_lastposition = _position;
3691 m_lastorientation = _orientation;
3692
3693 base.RequestPhysicsterseUpdate();
3694
3695 throttleCounter = 0;
3696 _zeroFlag = true;
3697
3698 disableBodySoft(); // disable it and colisions
3699 base.RaiseOutOfBounds(_position);
3700 return;
3701 }
3702
3703 if (lpos.X < 0f)
3704 {
3705 _position.X = Util.Clip(lpos.X, -2f, -0.1f);
3706 m_outbounds = true;
3707 }
3708 else if (lpos.X > _parent_scene.WorldExtents.X)
3709 {
3710 _position.X = Util.Clip(lpos.X, _parent_scene.WorldExtents.X + 0.1f, _parent_scene.WorldExtents.X + 2f);
3711 m_outbounds = true;
3712 }
3713 if (lpos.Y < 0f)
3714 {
3715 _position.Y = Util.Clip(lpos.Y, -2f, -0.1f);
3716 m_outbounds = true;
3717 }
3718 else if (lpos.Y > _parent_scene.WorldExtents.Y)
3719 {
3720 _position.Y = Util.Clip(lpos.Y, _parent_scene.WorldExtents.Y + 0.1f, _parent_scene.WorldExtents.Y + 2f);
3721 m_outbounds = true;
3722 }
3723
3724 if (m_outbounds)
3725 {
3726 m_lastposition = _position;
3727 m_lastorientation = _orientation;
3728
3729 d.Vector3 dtmp = d.BodyGetAngularVel(Body);
3730 m_rotationalVelocity.X = dtmp.X;
3731 m_rotationalVelocity.Y = dtmp.Y;
3732 m_rotationalVelocity.Z = dtmp.Z;
3733
3734 dtmp = d.BodyGetLinearVel(Body);
3735 _velocity.X = dtmp.X;
3736 _velocity.Y = dtmp.Y;
3737 _velocity.Z = dtmp.Z;
3738
3739 d.BodySetLinearVel(Body, 0, 0, 0); // stop it
3740 d.BodySetAngularVel(Body, 0, 0, 0);
3741 d.GeomSetPosition(prim_geom, _position.X, _position.Y, _position.Z);
3742 disableBodySoft(); // stop collisions
3743 base.RequestPhysicsterseUpdate();
3744 return;
3745 }
3746
3747 d.Quaternion ori;
3748 d.GeomCopyQuaternion(prim_geom, out ori);
3749
3750 // decide if moving
3751 // use positions since this are integrated quantities
3752 // tolerance values depende a lot on simulation noise...
3753 // use simple math.abs since we dont need to be exact
3754
3755 if (
3756 (Math.Abs(_position.X - lpos.X) < 0.001f)
3757 && (Math.Abs(_position.Y - lpos.Y) < 0.001f)
3758 && (Math.Abs(_position.Z - lpos.Z) < 0.001f)
3759 && (Math.Abs(_orientation.X - ori.X) < 0.0001f)
3760 && (Math.Abs(_orientation.Y - ori.Y) < 0.0001f)
3761 && (Math.Abs(_orientation.Z - ori.Z) < 0.0001f) // ignore W
3762 )
3763 {
3764 _zeroFlag = true;
3765 }
3766 else
3767 _zeroFlag = false;
3768
3769 // update velocities and aceleration
3770 if (!(_zeroFlag && lastZeroFlag))
3771 {
3772 d.Vector3 vel = d.BodyGetLinearVel(Body);
3773
3774 _acceleration = _velocity;
3775
3776 if ((Math.Abs(vel.X) < 0.001f) &&
3777 (Math.Abs(vel.Y) < 0.001f) &&
3778 (Math.Abs(vel.Z) < 0.001f))
3779 {
3780 _velocity = Vector3.Zero;
3781 float t = -m_invTimeStep;
3782 _acceleration = _acceleration * t;
3783 }
3784 else
3785 {
3786 _velocity.X = vel.X;
3787 _velocity.Y = vel.Y;
3788 _velocity.Z = vel.Z;
3789 _acceleration = (_velocity - _acceleration) * m_invTimeStep;
3790 }
3791
3792 if ((Math.Abs(_acceleration.X) < 0.01f) &&
3793 (Math.Abs(_acceleration.Y) < 0.01f) &&
3794 (Math.Abs(_acceleration.Z) < 0.01f))
3795 {
3796 _acceleration = Vector3.Zero;
3797 }
3798
3799 if ((Math.Abs(_orientation.X - ori.X) < 0.0001) &&
3800 (Math.Abs(_orientation.Y - ori.Y) < 0.0001) &&
3801 (Math.Abs(_orientation.Z - ori.Z) < 0.0001)
3802 )
3803 {
3804 m_rotationalVelocity = Vector3.Zero;
3805 }
3806 else
3807 {
3808 vel = d.BodyGetAngularVel(Body);
3809 m_rotationalVelocity.X = vel.X;
3810 m_rotationalVelocity.Y = vel.Y;
3811 m_rotationalVelocity.Z = vel.Z;
3812 }
3813 }
3814
3815 if (_zeroFlag)
3816 {
3817 if (lastZeroFlag)
3818 {
3819 _velocity = Vector3.Zero;
3820 _acceleration = Vector3.Zero;
3821 m_rotationalVelocity = Vector3.Zero;
3822 }
3823
3824 if (!m_lastUpdateSent)
3825 {
3826 base.RequestPhysicsterseUpdate();
3827 if (lastZeroFlag)
3828 m_lastUpdateSent = true;
3829 }
3830 return;
3831 }
3832
3833 _position.X = lpos.X;
3834 _position.Y = lpos.Y;
3835 _position.Z = lpos.Z;
3836
3837 _orientation.X = ori.X;
3838 _orientation.Y = ori.Y;
3839 _orientation.Z = ori.Z;
3840 _orientation.W = ori.W;
3841 base.RequestPhysicsterseUpdate();
3842 m_lastUpdateSent = false;
3843 }
3844 }
3845 }
3846
3847 internal static bool QuaternionIsFinite(Quaternion q)
3848 {
3849 if (Single.IsNaN(q.X) || Single.IsInfinity(q.X))
3850 return false;
3851 if (Single.IsNaN(q.Y) || Single.IsInfinity(q.Y))
3852 return false;
3853 if (Single.IsNaN(q.Z) || Single.IsInfinity(q.Z))
3854 return false;
3855 if (Single.IsNaN(q.W) || Single.IsInfinity(q.W))
3856 return false;
3857 return true;
3858 }
3859
3860 internal static void DMassSubPartFromObj(ref d.Mass part, ref d.Mass theobj)
3861 {
3862 // assumes object center of mass is zero
3863 float smass = part.mass;
3864 theobj.mass -= smass;
3865
3866 smass *= 1.0f / (theobj.mass); ;
3867
3868 theobj.c.X -= part.c.X * smass;
3869 theobj.c.Y -= part.c.Y * smass;
3870 theobj.c.Z -= part.c.Z * smass;
3871
3872 theobj.I.M00 -= part.I.M00;
3873 theobj.I.M01 -= part.I.M01;
3874 theobj.I.M02 -= part.I.M02;
3875 theobj.I.M10 -= part.I.M10;
3876 theobj.I.M11 -= part.I.M11;
3877 theobj.I.M12 -= part.I.M12;
3878 theobj.I.M20 -= part.I.M20;
3879 theobj.I.M21 -= part.I.M21;
3880 theobj.I.M22 -= part.I.M22;
3881 }
3882
3883 private void donullchange()
3884 {
3885 }
3886
3887 public bool DoAChange(changes what, object arg)
3888 {
3889 if (prim_geom == IntPtr.Zero && what != changes.Add && what != changes.Remove)
3890 {
3891 return false;
3892 }
3893
3894 // nasty switch
3895 switch (what)
3896 {
3897 case changes.Add:
3898 changeadd();
3899 break;
3900 case changes.Remove:
3901 //If its being removed, we don't want to rebuild the physical rep at all, so ignore this stuff...
3902 //When we return true, it destroys all of the prims in the linkset anyway
3903 if (_parent != null)
3904 {
3905 OdePrim parent = (OdePrim)_parent;
3906 parent.ChildRemove(this, false);
3907 }
3908 else
3909 ChildRemove(this, false);
3910
3911 m_vehicle = null;
3912 RemoveGeom();
3913 m_targetSpace = IntPtr.Zero;
3914 if (m_eventsubscription > 0)
3915 UnSubscribeEvents();
3916 return true;
3917
3918 case changes.Link:
3919 OdePrim tmp = (OdePrim)arg;
3920 changeLink(tmp);
3921 break;
3922
3923 case changes.DeLink:
3924 changeLink(null);
3925 break;
3926
3927 case changes.Position:
3928 changePosition((Vector3)arg);
3929 break;
3930
3931 case changes.Orientation:
3932 changeOrientation((Quaternion)arg);
3933 break;
3934
3935 case changes.PosOffset:
3936 donullchange();
3937 break;
3938
3939 case changes.OriOffset:
3940 donullchange();
3941 break;
3942
3943 case changes.Velocity:
3944 changevelocity((Vector3)arg);
3945 break;
3946
3947// case changes.Acceleration:
3948// changeacceleration((Vector3)arg);
3949// break;
3950// case changes.AngVelocity:
3951// changeangvelocity((Vector3)arg);
3952// break;
3953
3954 case changes.Force:
3955 changeForce((Vector3)arg);
3956 break;
3957
3958 case changes.Torque:
3959 changeSetTorque((Vector3)arg);
3960 break;
3961
3962 case changes.AddForce:
3963 changeAddForce((Vector3)arg);
3964 break;
3965
3966 case changes.AddAngForce:
3967 changeAddAngularImpulse((Vector3)arg);
3968 break;
3969
3970 case changes.AngLock:
3971 changeAngularLock((Vector3)arg);
3972 break;
3973
3974 case changes.Size:
3975 changeSize((Vector3)arg);
3976 break;
3977
3978 case changes.Shape:
3979 changeShape((PrimitiveBaseShape)arg);
3980 break;
3981
3982 case changes.CollidesWater:
3983 changeFloatOnWater((bool)arg);
3984 break;
3985
3986 case changes.VolumeDtc:
3987 changeVolumedetetion((bool)arg);
3988 break;
3989
3990 case changes.Phantom:
3991 changePhantomStatus((bool)arg);
3992 break;
3993
3994 case changes.Physical:
3995 changePhysicsStatus((bool)arg);
3996 break;
3997
3998 case changes.Selected:
3999 changeSelectedStatus((bool)arg);
4000 break;
4001
4002 case changes.disabled:
4003 changeDisable((bool)arg);
4004 break;
4005
4006 case changes.building:
4007 changeBuilding((bool)arg);
4008 break;
4009
4010 case changes.VehicleType:
4011 changeVehicleType((int)arg);
4012 break;
4013
4014 case changes.VehicleFlags:
4015 changeVehicleFlags((strVehicleBoolParam) arg);
4016 break;
4017
4018 case changes.VehicleFloatParam:
4019 changeVehicleFloatParam((strVehicleFloatParam) arg);
4020 break;
4021
4022 case changes.VehicleVectorParam:
4023 changeVehicleVectorParam((strVehicleVectorParam) arg);
4024 break;
4025
4026 case changes.VehicleRotationParam:
4027 changeVehicleRotationParam((strVehicleQuatParam) arg);
4028 break;
4029
4030 case changes.SetVehicle:
4031 changeSetVehicle((VehicleData) arg);
4032 break;
4033 case changes.Null:
4034 donullchange();
4035 break;
4036
4037 default:
4038 donullchange();
4039 break;
4040 }
4041 return false;
4042 }
4043
4044 public void AddChange(changes what, object arg)
4045 {
4046 _parent_scene.AddChange((PhysicsActor) this, what, arg);
4047 }
4048
4049
4050 private struct strVehicleBoolParam
4051 {
4052 public int param;
4053 public bool value;
4054 }
4055
4056 private struct strVehicleFloatParam
4057 {
4058 public int param;
4059 public float value;
4060 }
4061
4062 private struct strVehicleQuatParam
4063 {
4064 public int param;
4065 public Quaternion value;
4066 }
4067
4068 private struct strVehicleVectorParam
4069 {
4070 public int param;
4071 public Vector3 value;
4072 }
4073 }
4074}
diff --git a/OpenSim/Region/Physics/UbitOdePlugin/ODERayCastRequestManager.cs b/OpenSim/Region/Physics/UbitOdePlugin/ODERayCastRequestManager.cs
new file mode 100644
index 0000000..5122ebf
--- /dev/null
+++ b/OpenSim/Region/Physics/UbitOdePlugin/ODERayCastRequestManager.cs
@@ -0,0 +1,603 @@
1/*
2 * Copyright (c) Contributors, http://opensimulator.org/
3 * See CONTRIBUTORS.TXT for a full list of copyright holders.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 * * Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * * Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
12 * * Neither the name of the OpenSimulator Project nor the
13 * names of its contributors may be used to endorse or promote products
14 * derived from this software without specific prior written permission.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
17 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
20 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28using System;
29using System.Collections.Generic;
30using System.Reflection;
31using System.Runtime.InteropServices;
32using System.Text;
33using OpenSim.Framework;
34using OpenSim.Region.Physics.Manager;
35using OdeAPI;
36using log4net;
37using OpenMetaverse;
38
39namespace OpenSim.Region.Physics.OdePlugin
40{
41 /// <summary>
42 /// Processes raycast requests as ODE is in a state to be able to do them.
43 /// This ensures that it's thread safe and there will be no conflicts.
44 /// Requests get returned by a different thread then they were requested by.
45 /// </summary>
46 public class ODERayCastRequestManager
47 {
48 /// <summary>
49 /// Pending ray requests
50 /// </summary>
51 protected OpenSim.Framework.LocklessQueue<ODERayRequest> m_PendingRequests = new OpenSim.Framework.LocklessQueue<ODERayRequest>();
52
53 /// <summary>
54 /// Scene that created this object.
55 /// </summary>
56 private OdeScene m_scene;
57
58 IntPtr ray; // the ray. we only need one for our lifetime
59
60 private const int ColisionContactGeomsPerTest = 5;
61 private const int DefaultMaxCount = 25;
62 private const int MaxTimePerCallMS = 30;
63
64 /// <summary>
65 /// ODE near callback delegate
66 /// </summary>
67 private d.NearCallback nearCallback;
68 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
69 private List<ContactResult> m_contactResults = new List<ContactResult>();
70 private RayFilterFlags CurrentRayFilter;
71 private int CurrentMaxCount;
72
73 public ODERayCastRequestManager(OdeScene pScene)
74 {
75 m_scene = pScene;
76 nearCallback = near;
77 ray = d.CreateRay(IntPtr.Zero, 1.0f);
78 d.GeomSetCategoryBits(ray,0);
79 }
80
81 /// <summary>
82 /// Queues request for a raycast to all world
83 /// </summary>
84 /// <param name="position">Origin of Ray</param>
85 /// <param name="direction">Ray direction</param>
86 /// <param name="length">Ray length</param>
87 /// <param name="retMethod">Return method to send the results</param>
88 public void QueueRequest(Vector3 position, Vector3 direction, float length, RayCallback retMethod)
89 {
90 ODERayRequest req = new ODERayRequest();
91 req.geom = IntPtr.Zero;
92 req.callbackMethod = retMethod;
93 req.Count = DefaultMaxCount;
94 req.length = length;
95 req.Normal = direction;
96 req.Origin = position;
97 req.filter = RayFilterFlags.AllPrims;
98
99 m_PendingRequests.Enqueue(req);
100 }
101
102 /// <summary>
103 /// Queues request for a raycast to particular part
104 /// </summary>
105 /// <param name="position">Origin of Ray</param>
106 /// <param name="direction">Ray direction</param>
107 /// <param name="length">Ray length</param>
108 /// <param name="retMethod">Return method to send the results</param>
109 public void QueueRequest(IntPtr geom, Vector3 position, Vector3 direction, float length, RayCallback retMethod)
110 {
111 ODERayRequest req = new ODERayRequest();
112 req.geom = geom;
113 req.callbackMethod = retMethod;
114 req.length = length;
115 req.Normal = direction;
116 req.Origin = position;
117 req.Count = DefaultMaxCount;
118 req.filter = RayFilterFlags.AllPrims;
119
120 m_PendingRequests.Enqueue(req);
121 }
122
123 public void QueueRequest(Vector3 position, Vector3 direction, float length, RaycastCallback retMethod)
124 {
125 ODERayRequest req = new ODERayRequest();
126 req.geom = IntPtr.Zero;
127 req.callbackMethod = retMethod;
128 req.Count = DefaultMaxCount;
129 req.length = length;
130 req.Normal = direction;
131 req.Origin = position;
132 req.filter = RayFilterFlags.AllPrims;
133
134 m_PendingRequests.Enqueue(req);
135 }
136
137 public void QueueRequest(IntPtr geom, Vector3 position, Vector3 direction, float length, RaycastCallback retMethod)
138 {
139 ODERayRequest req = new ODERayRequest();
140 req.geom = geom;
141 req.callbackMethod = retMethod;
142 req.length = length;
143 req.Normal = direction;
144 req.Origin = position;
145 req.Count = DefaultMaxCount;
146 req.filter = RayFilterFlags.AllPrims;
147
148 m_PendingRequests.Enqueue(req);
149 }
150
151 /// <summary>
152 /// Queues a raycast
153 /// </summary>
154 /// <param name="position">Origin of Ray</param>
155 /// <param name="direction">Ray normal</param>
156 /// <param name="length">Ray length</param>
157 /// <param name="count"></param>
158 /// <param name="retMethod">Return method to send the results</param>
159 public void QueueRequest(Vector3 position, Vector3 direction, float length, int count, RayCallback retMethod)
160 {
161 ODERayRequest req = new ODERayRequest();
162 req.geom = IntPtr.Zero;
163 req.callbackMethod = retMethod;
164 req.length = length;
165 req.Normal = direction;
166 req.Origin = position;
167 req.Count = count;
168 req.filter = RayFilterFlags.AllPrims;
169
170 m_PendingRequests.Enqueue(req);
171 }
172
173
174 public void QueueRequest(Vector3 position, Vector3 direction, float length, int count,RayFilterFlags filter , RayCallback retMethod)
175 {
176 ODERayRequest req = new ODERayRequest();
177 req.geom = IntPtr.Zero;
178 req.callbackMethod = retMethod;
179 req.length = length;
180 req.Normal = direction;
181 req.Origin = position;
182 req.Count = count;
183 req.filter = filter;
184
185 m_PendingRequests.Enqueue(req);
186 }
187
188 public void QueueRequest(IntPtr geom, Vector3 position, Vector3 direction, float length, int count, RayCallback retMethod)
189 {
190 ODERayRequest req = new ODERayRequest();
191 req.geom = geom;
192 req.callbackMethod = retMethod;
193 req.length = length;
194 req.Normal = direction;
195 req.Origin = position;
196 req.Count = count;
197 req.filter = RayFilterFlags.AllPrims;
198
199 m_PendingRequests.Enqueue(req);
200 }
201
202 public void QueueRequest(Vector3 position, Vector3 direction, float length, int count, RaycastCallback retMethod)
203 {
204 ODERayRequest req = new ODERayRequest();
205 req.geom = IntPtr.Zero;
206 req.callbackMethod = retMethod;
207 req.length = length;
208 req.Normal = direction;
209 req.Origin = position;
210 req.Count = count;
211 req.filter = RayFilterFlags.AllPrims;
212
213 m_PendingRequests.Enqueue(req);
214 }
215
216 public void QueueRequest(IntPtr geom, Vector3 position, Vector3 direction, float length, int count, RaycastCallback retMethod)
217 {
218 ODERayRequest req = new ODERayRequest();
219 req.geom = geom;
220 req.callbackMethod = retMethod;
221 req.length = length;
222 req.Normal = direction;
223 req.Origin = position;
224 req.Count = count;
225 req.filter = RayFilterFlags.AllPrims;
226
227 m_PendingRequests.Enqueue(req);
228 }
229
230 /// <summary>
231 /// Process all queued raycast requests
232 /// </summary>
233 /// <returns>Time in MS the raycasts took to process.</returns>
234 public int ProcessQueuedRequests()
235 {
236
237 if (m_PendingRequests.Count <= 0)
238 return 0;
239
240 if (m_scene.ContactgeomsArray == IntPtr.Zero || ray == IntPtr.Zero)
241 // oops something got wrong or scene isn't ready still
242 {
243 m_PendingRequests.Clear();
244 return 0;
245 }
246
247 int time = Util.EnvironmentTickCount();
248
249 ODERayRequest req;
250 int closestHit;
251 int backfacecull;
252 CollisionCategories catflags;
253
254 while (m_PendingRequests.Dequeue(out req))
255 {
256 if (req.callbackMethod != null)
257 {
258 CurrentRayFilter = req.filter;
259 CurrentMaxCount = req.Count;
260
261 closestHit = ((CurrentRayFilter & RayFilterFlags.ClosestHit) == 0 ? 0 : 1);
262 backfacecull = ((CurrentRayFilter & RayFilterFlags.BackFaceCull) == 0 ? 0 : 1);
263
264 d.GeomRaySetLength(ray, req.length);
265 d.GeomRaySet(ray, req.Origin.X, req.Origin.Y, req.Origin.Z, req.Normal.X, req.Normal.Y, req.Normal.Z);
266 d.GeomRaySetParams(ray, 0, backfacecull);
267 d.GeomRaySetClosestHit(ray, closestHit);
268
269 if (req.callbackMethod is RaycastCallback)
270 // if we only want one get only one per colision pair saving memory
271 CurrentRayFilter |= RayFilterFlags.ClosestHit;
272
273 if (req.geom == IntPtr.Zero)
274 {
275 // translate ray filter to colision flags
276 catflags = 0;
277 if ((CurrentRayFilter & RayFilterFlags.volumedtc) != 0)
278 catflags |= CollisionCategories.VolumeDtc;
279 if ((CurrentRayFilter & RayFilterFlags.phantom) != 0)
280 catflags |= CollisionCategories.Phantom;
281 if ((CurrentRayFilter & RayFilterFlags.agent) != 0)
282 catflags |= CollisionCategories.Character;
283 if ((CurrentRayFilter & RayFilterFlags.PrimsNonPhantom) != 0)
284 catflags |= CollisionCategories.Geom;
285 if ((CurrentRayFilter & RayFilterFlags.land) != 0)
286 catflags |= CollisionCategories.Land;
287 if ((CurrentRayFilter & RayFilterFlags.water) != 0)
288 catflags |= CollisionCategories.Water;
289
290 if (catflags != 0)
291 doSpaceRay(req);
292 }
293 else
294 {
295 // if we select a geom don't use filters
296 d.GeomSetCollideBits(ray, (uint)CollisionCategories.All);
297 doGeomRay(req);
298 }
299 }
300
301 if (Util.EnvironmentTickCountSubtract(time) > MaxTimePerCallMS)
302 break;
303 }
304
305 lock (m_contactResults)
306 m_contactResults.Clear();
307
308 return Util.EnvironmentTickCountSubtract(time);
309 }
310 /// <summary>
311 /// Method that actually initiates the raycast with spaces
312 /// </summary>
313 /// <param name="req"></param>
314 ///
315
316 private const RayFilterFlags FilterActiveSpace = RayFilterFlags.agent | RayFilterFlags.physical | RayFilterFlags.LSLPhanton;
317 private const RayFilterFlags FilterStaticSpace = RayFilterFlags.water | RayFilterFlags.land | RayFilterFlags.nonphysical | RayFilterFlags.LSLPhanton;
318
319 private void doSpaceRay(ODERayRequest req)
320 {
321 // Collide tests
322 if ((CurrentRayFilter & FilterActiveSpace) != 0)
323 d.SpaceCollide2(ray, m_scene.ActiveSpace, IntPtr.Zero, nearCallback);
324 if ((CurrentRayFilter & FilterStaticSpace) != 0 && (m_contactResults.Count < CurrentMaxCount))
325 d.SpaceCollide2(ray, m_scene.StaticSpace, IntPtr.Zero, nearCallback);
326
327 if (req.callbackMethod is RaycastCallback)
328 {
329 // Define default results
330 bool hitYN = false;
331 uint hitConsumerID = 0;
332 float distance = float.MaxValue;
333 Vector3 closestcontact = Vector3.Zero;
334 Vector3 snormal = Vector3.Zero;
335
336 // Find closest contact and object.
337 lock (m_contactResults)
338 {
339 foreach (ContactResult cResult in m_contactResults)
340 {
341 if(cResult.Depth < distance)
342 {
343 closestcontact = cResult.Pos;
344 hitConsumerID = cResult.ConsumerID;
345 distance = cResult.Depth;
346 snormal = cResult.Normal;
347 }
348 }
349 m_contactResults.Clear();
350 }
351
352 if (distance > 0 && distance < float.MaxValue)
353 hitYN = true;
354 ((RaycastCallback)req.callbackMethod)(hitYN, closestcontact, hitConsumerID, distance, snormal);
355 }
356 else
357 {
358 List<ContactResult> cresult = new List<ContactResult>(m_contactResults.Count);
359 lock (m_PendingRequests)
360 {
361 cresult.AddRange(m_contactResults);
362 m_contactResults.Clear();
363 }
364 ((RayCallback)req.callbackMethod)(cresult);
365 }
366 }
367
368 /// <summary>
369 /// Method that actually initiates the raycast with a geom
370 /// </summary>
371 /// <param name="req"></param>
372 private void doGeomRay(ODERayRequest req)
373 {
374 // Collide test
375 d.SpaceCollide2(ray, req.geom, IntPtr.Zero, nearCallback); // still do this to have full AABB pre test
376
377 if (req.callbackMethod is RaycastCallback)
378 {
379 // Define default results
380 bool hitYN = false;
381 uint hitConsumerID = 0;
382 float distance = float.MaxValue;
383 Vector3 closestcontact = Vector3.Zero;
384 Vector3 snormal = Vector3.Zero;
385
386 // Find closest contact and object.
387 lock (m_contactResults)
388 {
389 foreach (ContactResult cResult in m_contactResults)
390 {
391 if(cResult.Depth < distance )
392 {
393 closestcontact = cResult.Pos;
394 hitConsumerID = cResult.ConsumerID;
395 distance = cResult.Depth;
396 snormal = cResult.Normal;
397 }
398 }
399 m_contactResults.Clear();
400 }
401
402 if (distance > 0 && distance < float.MaxValue)
403 hitYN = true;
404
405 ((RaycastCallback)req.callbackMethod)(hitYN, closestcontact, hitConsumerID, distance, snormal);
406 }
407 else
408 {
409 List<ContactResult> cresult = new List<ContactResult>(m_contactResults.Count);
410 lock (m_PendingRequests)
411 {
412 cresult.AddRange(m_contactResults);
413 m_contactResults.Clear();
414 }
415 ((RayCallback)req.callbackMethod)(cresult);
416 }
417 }
418
419 private bool GetCurContactGeom(int index, ref d.ContactGeom newcontactgeom)
420 {
421 IntPtr ContactgeomsArray = m_scene.ContactgeomsArray;
422 if (ContactgeomsArray == IntPtr.Zero || index >= ColisionContactGeomsPerTest)
423 return false;
424
425 IntPtr contactptr = new IntPtr(ContactgeomsArray.ToInt64() + (Int64)(index * d.ContactGeom.unmanagedSizeOf));
426 newcontactgeom = (d.ContactGeom)Marshal.PtrToStructure(contactptr, typeof(d.ContactGeom));
427 return true;
428 }
429
430 // This is the standard Near. g1 is the ray
431 private void near(IntPtr space, IntPtr g1, IntPtr g2)
432 {
433 if (g2 == IntPtr.Zero || g1 == g2)
434 return;
435
436 if (m_contactResults.Count >= CurrentMaxCount)
437 return;
438
439 if (d.GeomIsSpace(g2))
440 {
441 try
442 {
443 d.SpaceCollide2(g1, g2, IntPtr.Zero, nearCallback);
444 }
445 catch (Exception e)
446 {
447 m_log.WarnFormat("[PHYSICS Ray]: Unable to Space collide test an object: {0}", e.Message);
448 }
449 return;
450 }
451
452 int count = 0;
453 try
454 {
455 count = d.CollidePtr(g1, g2, ColisionContactGeomsPerTest, m_scene.ContactgeomsArray, d.ContactGeom.unmanagedSizeOf);
456 }
457 catch (Exception e)
458 {
459 m_log.WarnFormat("[PHYSICS Ray]: Unable to collide test an object: {0}", e.Message);
460 return;
461 }
462
463 if (count == 0)
464 return;
465
466 uint ID = 0;
467 PhysicsActor p2 = null;
468
469 m_scene.actor_name_map.TryGetValue(g2, out p2);
470
471 if (p2 == null)
472 {
473 string name;
474
475 if (!m_scene.geom_name_map.TryGetValue(g2, out name))
476 return;
477
478 if (name == "Terrain")
479 {
480 // land colision
481 if ((CurrentRayFilter & RayFilterFlags.land) == 0)
482 return;
483 }
484 else if (name == "Water")
485 {
486 if ((CurrentRayFilter & RayFilterFlags.water) == 0)
487 return;
488 }
489 else
490 return;
491 }
492 else
493 {
494 if (p2 is OdePrim)
495 {
496 RayFilterFlags thisFlags;
497
498 if (p2.IsPhysical)
499 thisFlags = RayFilterFlags.physical;
500 else
501 thisFlags = RayFilterFlags.nonphysical;
502
503 if (p2.Phantom)
504 thisFlags |= RayFilterFlags.phantom;
505
506 if (p2.IsVolumeDtc)
507 thisFlags |= RayFilterFlags.volumedtc;
508
509 if ((thisFlags & CurrentRayFilter) == 0)
510 return;
511
512 ID = ((OdePrim)p2).m_localID;
513 }
514 else if (p2 is OdeCharacter)
515 {
516 if ((CurrentRayFilter & RayFilterFlags.agent) == 0)
517 return;
518 else
519 ID = ((OdeCharacter)p2).m_localID;
520 }
521 else //??
522 return;
523 }
524
525 d.ContactGeom curcontact = new d.ContactGeom();
526
527 // closestHit for now only works for meshs, so must do it for others
528 if ((CurrentRayFilter & RayFilterFlags.ClosestHit) == 0)
529 {
530 // Loop all contacts, build results.
531 for (int i = 0; i < count; i++)
532 {
533 if (!GetCurContactGeom(i, ref curcontact))
534 break;
535
536 ContactResult collisionresult = new ContactResult();
537 collisionresult.ConsumerID = ID;
538 collisionresult.Pos = new Vector3(curcontact.pos.X, curcontact.pos.Y, curcontact.pos.Z);
539 collisionresult.Depth = curcontact.depth;
540 collisionresult.Normal = new Vector3(curcontact.normal.X, curcontact.normal.Y,
541 curcontact.normal.Z);
542 lock (m_contactResults)
543 {
544 m_contactResults.Add(collisionresult);
545 if (m_contactResults.Count >= CurrentMaxCount)
546 return;
547 }
548 }
549 }
550 else
551 {
552 // keep only closest contact
553 ContactResult collisionresult = new ContactResult();
554 collisionresult.ConsumerID = ID;
555 collisionresult.Depth = float.MaxValue;
556
557 for (int i = 0; i < count; i++)
558 {
559 if (!GetCurContactGeom(i, ref curcontact))
560 break;
561
562 if (curcontact.depth < collisionresult.Depth)
563 {
564 collisionresult.Pos = new Vector3(curcontact.pos.X, curcontact.pos.Y, curcontact.pos.Z);
565 collisionresult.Depth = curcontact.depth;
566 collisionresult.Normal = new Vector3(curcontact.normal.X, curcontact.normal.Y,
567 curcontact.normal.Z);
568 }
569 }
570
571 if (collisionresult.Depth != float.MaxValue)
572 {
573 lock (m_contactResults)
574 m_contactResults.Add(collisionresult);
575 }
576 }
577 }
578
579 /// <summary>
580 /// Dereference the creator scene so that it can be garbage collected if needed.
581 /// </summary>
582 internal void Dispose()
583 {
584 m_scene = null;
585 if (ray != IntPtr.Zero)
586 {
587 d.GeomDestroy(ray);
588 ray = IntPtr.Zero;
589 }
590 }
591 }
592
593 public struct ODERayRequest
594 {
595 public IntPtr geom;
596 public Vector3 Origin;
597 public Vector3 Normal;
598 public int Count;
599 public float length;
600 public object callbackMethod;
601 public RayFilterFlags filter;
602 }
603} \ No newline at end of file
diff --git a/OpenSim/Region/Physics/UbitOdePlugin/OdeApi.cs b/OpenSim/Region/Physics/UbitOdePlugin/OdeApi.cs
new file mode 100644
index 0000000..0e4961b
--- /dev/null
+++ b/OpenSim/Region/Physics/UbitOdePlugin/OdeApi.cs
@@ -0,0 +1,2005 @@
1/*
2 * based on:
3 * Ode.NET - .NET bindings for ODE
4 * Jason Perkins (starkos@industriousone.com)
5 * Licensed under the New BSD
6 * Part of the OpenDynamicsEngine
7Open Dynamics Engine
8Copyright (c) 2001-2007, Russell L. Smith.
9All rights reserved.
10
11Redistribution and use in source and binary forms, with or without
12modification, are permitted provided that the following conditions
13are met:
14
15Redistributions of source code must retain the above copyright notice,
16this list of conditions and the following disclaimer.
17
18Redistributions in binary form must reproduce the above copyright notice,
19this list of conditions and the following disclaimer in the documentation
20and/or other materials provided with the distribution.
21
22Neither the names of ODE's copyright owner nor the names of its
23contributors may be used to endorse or promote products derived from
24this software without specific prior written permission.
25
26THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
27"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
28LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
29FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
30OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
31SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
32TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
33PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
34LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
35NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
36SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
37 *
38 * changes by opensim team;
39 * changes by Aurora team http://www.aurora-sim.org/
40
41 * Revision/fixs by Ubit Umarov
42 */
43
44using System;
45using System.Runtime.InteropServices;
46using System.Security;
47
48namespace OdeAPI
49{
50//#if dDOUBLE
51// don't see much use in double precision with time steps of 20ms and 10 iterations used on opensim
52// at least we save same memory and memory access time, FPU performance on intel usually is similar
53// using dReal = System.Double;
54//#else
55 using dReal = System.Single;
56//#endif
57
58 public static class d
59 {
60 public static dReal Infinity = dReal.MaxValue;
61 public static int NTotalBodies = 0;
62 public static int NTotalGeoms = 0;
63
64 #region Flags and Enumerations
65
66 [Flags]
67 public enum AllocateODEDataFlags : uint
68 {
69 BasicData = 0,
70 CollisionData = 0x00000001,
71 All = ~0u
72 }
73
74 [Flags]
75 public enum IniteODEFlags : uint
76 {
77 dInitFlagManualThreadCleanup = 0x00000001
78 }
79
80 [Flags]
81 public enum ContactFlags : int
82 {
83 Mu2 = 0x001,
84 FDir1 = 0x002,
85 Bounce = 0x004,
86 SoftERP = 0x008,
87 SoftCFM = 0x010,
88 Motion1 = 0x020,
89 Motion2 = 0x040,
90 MotionN = 0x080,
91 Slip1 = 0x100,
92 Slip2 = 0x200,
93 Approx0 = 0x0000,
94 Approx1_1 = 0x1000,
95 Approx1_2 = 0x2000,
96 Approx1 = 0x3000
97 }
98
99 public enum GeomClassID : int
100 {
101 SphereClass,
102 BoxClass,
103 CapsuleClass,
104 CylinderClass,
105 PlaneClass,
106 RayClass,
107 ConvexClass,
108 GeomTransformClass,
109 TriMeshClass,
110 HeightfieldClass,
111 FirstSpaceClass,
112 SimpleSpaceClass = FirstSpaceClass,
113 HashSpaceClass,
114 QuadTreeSpaceClass,
115 LastSpaceClass = QuadTreeSpaceClass,
116 UbitTerrainClass,
117 FirstUserClass,
118 LastUserClass = FirstUserClass + MaxUserClasses - 1,
119 NumClasses,
120 MaxUserClasses = 5
121 }
122
123 public enum JointType : int
124 {
125 None,
126 Ball,
127 Hinge,
128 Slider,
129 Contact,
130 Universal,
131 Hinge2,
132 Fixed,
133 Null,
134 AMotor,
135 LMotor,
136 Plane2D
137 }
138
139 public enum JointParam : int
140 {
141 LoStop,
142 HiStop,
143 Vel,
144 FMax,
145 FudgeFactor,
146 Bounce,
147 CFM,
148 StopERP,
149 StopCFM,
150 SuspensionERP,
151 SuspensionCFM,
152 LoStop2 = 256,
153 HiStop2,
154 Vel2,
155 FMax2,
156 FudgeFactor2,
157 Bounce2,
158 CFM2,
159 StopERP2,
160 StopCFM2,
161 SuspensionERP2,
162 SuspensionCFM2,
163 LoStop3 = 512,
164 HiStop3,
165 Vel3,
166 FMax3,
167 FudgeFactor3,
168 Bounce3,
169 CFM3,
170 StopERP3,
171 StopCFM3,
172 SuspensionERP3,
173 SuspensionCFM3
174 }
175
176 public enum dSweepAndPruneAxis : int
177 {
178 XYZ = ((0)|(1<<2)|(2<<4)),
179 XZY = ((0)|(2<<2)|(1<<4)),
180 YXZ = ((1)|(0<<2)|(2<<4)),
181 YZX = ((1)|(2<<2)|(0<<4)),
182 ZXY = ((2)|(0<<2)|(1<<4)),
183 ZYX = ((2)|(1<<2)|(0<<4))
184 }
185
186 #endregion
187
188 #region Callbacks
189
190 [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
191 public delegate int AABBTestFn(IntPtr o1, IntPtr o2, ref AABB aabb);
192
193 [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
194 public delegate int ColliderFn(IntPtr o1, IntPtr o2, int flags, out ContactGeom contact, int skip);
195
196 [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
197 public delegate void GetAABBFn(IntPtr geom, out AABB aabb);
198
199 [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
200 public delegate ColliderFn GetColliderFnFn(int num);
201
202 [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
203 public delegate void GeomDtorFn(IntPtr o);
204
205 [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
206 public delegate dReal HeightfieldGetHeight(IntPtr p_user_data, int x, int z);
207
208 [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
209 public delegate dReal UbitTerrainGetHeight(IntPtr p_user_data, int x, int z);
210
211 [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
212 public delegate void NearCallback(IntPtr data, IntPtr geom1, IntPtr geom2);
213
214 [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
215 public delegate int TriCallback(IntPtr trimesh, IntPtr refObject, int triangleIndex);
216
217 [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
218 public delegate int TriArrayCallback(IntPtr trimesh, IntPtr refObject, int[] triangleIndex, int triCount);
219
220 [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
221 public delegate int TriRayCallback(IntPtr trimesh, IntPtr ray, int triangleIndex, dReal u, dReal v);
222
223 #endregion
224
225 #region Structs
226
227 [StructLayout(LayoutKind.Sequential)]
228 public struct AABB
229 {
230 public dReal MinX, MaxX;
231 public dReal MinY, MaxY;
232 public dReal MinZ, MaxZ;
233 }
234
235
236 [StructLayout(LayoutKind.Sequential)]
237 public struct Contact
238 {
239 public SurfaceParameters surface;
240 public ContactGeom geom;
241 public Vector3 fdir1;
242 public static readonly int unmanagedSizeOf = Marshal.SizeOf(typeof(Contact));
243 }
244
245
246 [StructLayout(LayoutKind.Sequential)]
247 public struct ContactGeom
248 {
249
250 public Vector3 pos;
251 public Vector3 normal;
252 public dReal depth;
253 public IntPtr g1;
254 public IntPtr g2;
255 public int side1;
256 public int side2;
257 public static readonly int unmanagedSizeOf = Marshal.SizeOf(typeof(ContactGeom));
258 }
259
260 [StructLayout(LayoutKind.Sequential)]
261 public struct GeomClass
262 {
263 public int bytes;
264 public GetColliderFnFn collider;
265 public GetAABBFn aabb;
266 public AABBTestFn aabb_test;
267 public GeomDtorFn dtor;
268 }
269
270
271 [StructLayout(LayoutKind.Sequential)]
272 public struct JointFeedback
273 {
274 public Vector3 f1;
275 public Vector3 t1;
276 public Vector3 f2;
277 public Vector3 t2;
278 }
279
280
281 [StructLayout(LayoutKind.Sequential)]
282 public struct Mass
283 {
284 public dReal mass;
285 public Vector4 c;
286 public Matrix3 I;
287 }
288
289
290 [StructLayout(LayoutKind.Sequential)]
291 public struct Matrix3
292 {
293 public Matrix3(dReal m00, dReal m10, dReal m20, dReal m01, dReal m11, dReal m21, dReal m02, dReal m12, dReal m22)
294 {
295 M00 = m00; M10 = m10; M20 = m20; _m30 = 0.0f;
296 M01 = m01; M11 = m11; M21 = m21; _m31 = 0.0f;
297 M02 = m02; M12 = m12; M22 = m22; _m32 = 0.0f;
298 }
299 public dReal M00, M10, M20;
300 private dReal _m30;
301 public dReal M01, M11, M21;
302 private dReal _m31;
303 public dReal M02, M12, M22;
304 private dReal _m32;
305 }
306
307 [StructLayout(LayoutKind.Sequential)]
308 public struct Matrix4
309 {
310 public Matrix4(dReal m00, dReal m10, dReal m20, dReal m30,
311 dReal m01, dReal m11, dReal m21, dReal m31,
312 dReal m02, dReal m12, dReal m22, dReal m32,
313 dReal m03, dReal m13, dReal m23, dReal m33)
314 {
315 M00 = m00; M10 = m10; M20 = m20; M30 = m30;
316 M01 = m01; M11 = m11; M21 = m21; M31 = m31;
317 M02 = m02; M12 = m12; M22 = m22; M32 = m32;
318 M03 = m03; M13 = m13; M23 = m23; M33 = m33;
319 }
320 public dReal M00, M10, M20, M30;
321 public dReal M01, M11, M21, M31;
322 public dReal M02, M12, M22, M32;
323 public dReal M03, M13, M23, M33;
324 }
325
326 [StructLayout(LayoutKind.Sequential)]
327 public struct Quaternion
328 {
329 public dReal W, X, Y, Z;
330 }
331
332
333 [StructLayout(LayoutKind.Sequential)]
334 public struct SurfaceParameters
335 {
336 public ContactFlags mode;
337 public dReal mu;
338 public dReal mu2;
339 public dReal bounce;
340 public dReal bounce_vel;
341 public dReal soft_erp;
342 public dReal soft_cfm;
343 public dReal motion1;
344 public dReal motion2;
345 public dReal motionN;
346 public dReal slip1;
347 public dReal slip2;
348 }
349
350
351 [StructLayout(LayoutKind.Sequential)]
352 public struct Vector3
353 {
354 public Vector3(dReal x, dReal y, dReal z)
355 {
356 X = x; Y = y; Z = z; _w = 0.0f;
357 }
358 public dReal X, Y, Z;
359 private dReal _w;
360 }
361
362
363 [StructLayout(LayoutKind.Sequential)]
364 public struct Vector4
365 {
366 public Vector4(dReal x, dReal y, dReal z, dReal w)
367 {
368 X = x; Y = y; Z = z; W = w;
369 }
370 public dReal X, Y, Z, W;
371 }
372
373 #endregion
374
375 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dAllocateODEDataForThread"), SuppressUnmanagedCodeSecurity]
376 public static extern int AllocateODEDataForThread(uint ODEInitFlags);
377
378 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dAreConnected"), SuppressUnmanagedCodeSecurity]
379 public static extern bool AreConnected(IntPtr b1, IntPtr b2);
380
381 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dAreConnectedExcluding"), SuppressUnmanagedCodeSecurity]
382 public static extern bool AreConnectedExcluding(IntPtr b1, IntPtr b2, JointType joint_type);
383
384 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodyAddForce"), SuppressUnmanagedCodeSecurity]
385 public static extern void BodyAddForce(IntPtr body, dReal fx, dReal fy, dReal fz);
386
387 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodyAddForceAtPos"), SuppressUnmanagedCodeSecurity]
388 public static extern void BodyAddForceAtPos(IntPtr body, dReal fx, dReal fy, dReal fz, dReal px, dReal py, dReal pz);
389
390 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodyAddForceAtRelPos"), SuppressUnmanagedCodeSecurity]
391 public static extern void BodyAddForceAtRelPos(IntPtr body, dReal fx, dReal fy, dReal fz, dReal px, dReal py, dReal pz);
392
393 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodyAddRelForce"), SuppressUnmanagedCodeSecurity]
394 public static extern void BodyAddRelForce(IntPtr body, dReal fx, dReal fy, dReal fz);
395
396 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodyAddRelForceAtPos"), SuppressUnmanagedCodeSecurity]
397 public static extern void BodyAddRelForceAtPos(IntPtr body, dReal fx, dReal fy, dReal fz, dReal px, dReal py, dReal pz);
398
399 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodyAddRelForceAtRelPos"), SuppressUnmanagedCodeSecurity]
400 public static extern void BodyAddRelForceAtRelPos(IntPtr body, dReal fx, dReal fy, dReal fz, dReal px, dReal py, dReal pz);
401
402 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodyAddRelTorque"), SuppressUnmanagedCodeSecurity]
403 public static extern void BodyAddRelTorque(IntPtr body, dReal fx, dReal fy, dReal fz);
404
405 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodyAddTorque"), SuppressUnmanagedCodeSecurity]
406 public static extern void BodyAddTorque(IntPtr body, dReal fx, dReal fy, dReal fz);
407
408 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodyCopyPosition"), SuppressUnmanagedCodeSecurity]
409 public static extern void BodyCopyPosition(IntPtr body, out Vector3 pos);
410
411 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodyCopyPosition"), SuppressUnmanagedCodeSecurity]
412 public static extern void BodyCopyPosition(IntPtr body, out dReal X);
413
414 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodyCopyQuaternion"), SuppressUnmanagedCodeSecurity]
415 public static extern void BodyCopyQuaternion(IntPtr body, out Quaternion quat);
416
417 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodyCopyQuaternion"), SuppressUnmanagedCodeSecurity]
418 public static extern void BodyCopyQuaternion(IntPtr body, out dReal X);
419
420 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodyCopyRotation"), SuppressUnmanagedCodeSecurity]
421 public static extern void BodyCopyRotation(IntPtr body, out Matrix3 R);
422
423 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodyCopyRotation"), SuppressUnmanagedCodeSecurity]
424 public static extern void BodyCopyRotation(IntPtr body, out dReal M00);
425
426 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodyCreate"), SuppressUnmanagedCodeSecurity]
427 public static extern IntPtr BodyiCreate(IntPtr world);
428 public static IntPtr BodyCreate(IntPtr world)
429 {
430 NTotalBodies++;
431 return BodyiCreate(world);
432 }
433
434 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodyDestroy"), SuppressUnmanagedCodeSecurity]
435 public static extern void BodyiDestroy(IntPtr body);
436 public static void BodyDestroy(IntPtr body)
437 {
438 NTotalBodies--;
439 BodyiDestroy(body);
440 }
441
442 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodyDisable"), SuppressUnmanagedCodeSecurity]
443 public static extern void BodyDisable(IntPtr body);
444
445 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodyEnable"), SuppressUnmanagedCodeSecurity]
446 public static extern void BodyEnable(IntPtr body);
447
448 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodyGetAutoDisableAngularThreshold"), SuppressUnmanagedCodeSecurity]
449 public static extern dReal BodyGetAutoDisableAngularThreshold(IntPtr body);
450
451 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodyGetAutoDisableFlag"), SuppressUnmanagedCodeSecurity]
452 public static extern bool BodyGetAutoDisableFlag(IntPtr body);
453
454 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodyGetAutoDisableDefaults"), SuppressUnmanagedCodeSecurity]
455 public static extern void BodyGetAutoDisableDefaults(IntPtr body);
456
457 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodyGetAutoDisableLinearThreshold"), SuppressUnmanagedCodeSecurity]
458 public static extern dReal BodyGetAutoDisableLinearThreshold(IntPtr body);
459
460 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodyGetAutoDisableSteps"), SuppressUnmanagedCodeSecurity]
461 public static extern int BodyGetAutoDisableSteps(IntPtr body);
462
463 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodyGetAutoDisableTime"), SuppressUnmanagedCodeSecurity]
464 public static extern dReal BodyGetAutoDisableTime(IntPtr body);
465
466 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodyGetAngularVel"), SuppressUnmanagedCodeSecurity]
467 public extern unsafe static Vector3* BodyGetAngularVelUnsafe(IntPtr body);
468 public static Vector3 BodyGetAngularVel(IntPtr body)
469 {
470 unsafe { return *(BodyGetAngularVelUnsafe(body)); }
471 }
472
473 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodyGetData"), SuppressUnmanagedCodeSecurity]
474 public static extern IntPtr BodyGetData(IntPtr body);
475
476 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodyGetFiniteRotationMode"), SuppressUnmanagedCodeSecurity]
477 public static extern int BodyGetFiniteRotationMode(IntPtr body);
478
479 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodyGetFiniteRotationAxis"), SuppressUnmanagedCodeSecurity]
480 public static extern void BodyGetFiniteRotationAxis(IntPtr body, out Vector3 result);
481
482 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodyGetForce"), SuppressUnmanagedCodeSecurity]
483 public extern unsafe static Vector3* BodyGetForceUnsafe(IntPtr body);
484 public static Vector3 BodyGetForce(IntPtr body)
485 {
486 unsafe { return *(BodyGetForceUnsafe(body)); }
487 }
488
489 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodyGetGravityMode"), SuppressUnmanagedCodeSecurity]
490 public static extern bool BodyGetGravityMode(IntPtr body);
491
492 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodyGetGyroscopicMode"), SuppressUnmanagedCodeSecurity]
493 public static extern int BodyGetGyroscopicMode(IntPtr body);
494
495 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodyGetJoint"), SuppressUnmanagedCodeSecurity]
496 public static extern IntPtr BodyGetJoint(IntPtr body, int index);
497
498 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodyGetLinearVel"), SuppressUnmanagedCodeSecurity]
499 public extern unsafe static Vector3* BodyGetLinearVelUnsafe(IntPtr body);
500 public static Vector3 BodyGetLinearVel(IntPtr body)
501 {
502 unsafe { return *(BodyGetLinearVelUnsafe(body)); }
503 }
504
505 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodyGetMass"), SuppressUnmanagedCodeSecurity]
506 public static extern void BodyGetMass(IntPtr body, out Mass mass);
507
508 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodyGetNumJoints"), SuppressUnmanagedCodeSecurity]
509 public static extern int BodyGetNumJoints(IntPtr body);
510
511 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodyGetPointVel"), SuppressUnmanagedCodeSecurity]
512 public static extern void BodyGetPointVel(IntPtr body, dReal px, dReal py, dReal pz, out Vector3 result);
513
514 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodyGetPosition"), SuppressUnmanagedCodeSecurity]
515 public extern unsafe static Vector3* BodyGetPositionUnsafe(IntPtr body);
516 public static Vector3 BodyGetPosition(IntPtr body)
517 {
518 unsafe { return *(BodyGetPositionUnsafe(body)); }
519 }
520
521 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodyGetPosRelPoint"), SuppressUnmanagedCodeSecurity]
522 public static extern void BodyGetPosRelPoint(IntPtr body, dReal px, dReal py, dReal pz, out Vector3 result);
523
524 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodyGetQuaternion"), SuppressUnmanagedCodeSecurity]
525 public extern unsafe static Quaternion* BodyGetQuaternionUnsafe(IntPtr body);
526 public static Quaternion BodyGetQuaternion(IntPtr body)
527 {
528 unsafe { return *(BodyGetQuaternionUnsafe(body)); }
529 }
530
531 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodyGetRelPointPos"), SuppressUnmanagedCodeSecurity]
532 public static extern void BodyGetRelPointPos(IntPtr body, dReal px, dReal py, dReal pz, out Vector3 result);
533
534 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodyGetRelPointVel"), SuppressUnmanagedCodeSecurity]
535 public static extern void BodyGetRelPointVel(IntPtr body, dReal px, dReal py, dReal pz, out Vector3 result);
536
537 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodyGetRotation"), SuppressUnmanagedCodeSecurity]
538 public extern unsafe static Matrix3* BodyGetRotationUnsafe(IntPtr body);
539 public static Matrix3 BodyGetRotation(IntPtr body)
540 {
541 unsafe { return *(BodyGetRotationUnsafe(body)); }
542 }
543
544 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodyGetTorque"), SuppressUnmanagedCodeSecurity]
545 public extern unsafe static Vector3* BodyGetTorqueUnsafe(IntPtr body);
546 public static Vector3 BodyGetTorque(IntPtr body)
547 {
548 unsafe { return *(BodyGetTorqueUnsafe(body)); }
549 }
550
551 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodyGetWorld"), SuppressUnmanagedCodeSecurity]
552 public static extern IntPtr BodyGetWorld(IntPtr body);
553
554 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodyGetFirstGeom"), SuppressUnmanagedCodeSecurity]
555 public static extern IntPtr BodyGetFirstGeom(IntPtr body);
556
557 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodyGetNextGeom"), SuppressUnmanagedCodeSecurity]
558 public static extern IntPtr dBodyGetNextGeom(IntPtr Geom);
559
560
561 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodyIsEnabled"), SuppressUnmanagedCodeSecurity]
562 public static extern bool BodyIsEnabled(IntPtr body);
563
564 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodySetAngularVel"), SuppressUnmanagedCodeSecurity]
565 public static extern void BodySetAngularVel(IntPtr body, dReal x, dReal y, dReal z);
566
567 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodySetAutoDisableAngularThreshold"), SuppressUnmanagedCodeSecurity]
568 public static extern void BodySetAutoDisableAngularThreshold(IntPtr body, dReal angular_threshold);
569
570 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodySetAutoDisableDefaults"), SuppressUnmanagedCodeSecurity]
571 public static extern void BodySetAutoDisableDefaults(IntPtr body);
572
573 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodySetAutoDisableFlag"), SuppressUnmanagedCodeSecurity]
574 public static extern void BodySetAutoDisableFlag(IntPtr body, bool do_auto_disable);
575
576 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodySetAutoDisableLinearThreshold"), SuppressUnmanagedCodeSecurity]
577 public static extern void BodySetAutoDisableLinearThreshold(IntPtr body, dReal linear_threshold);
578
579 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodySetAutoDisableSteps"), SuppressUnmanagedCodeSecurity]
580 public static extern void BodySetAutoDisableSteps(IntPtr body, int steps);
581
582 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodySetAutoDisableTime"), SuppressUnmanagedCodeSecurity]
583 public static extern void BodySetAutoDisableTime(IntPtr body, dReal time);
584
585 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodySetData"), SuppressUnmanagedCodeSecurity]
586 public static extern void BodySetData(IntPtr body, IntPtr data);
587
588 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodySetFiniteRotationMode"), SuppressUnmanagedCodeSecurity]
589 public static extern void BodySetFiniteRotationMode(IntPtr body, int mode);
590
591 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodySetFiniteRotationAxis"), SuppressUnmanagedCodeSecurity]
592 public static extern void BodySetFiniteRotationAxis(IntPtr body, dReal x, dReal y, dReal z);
593
594 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodySetLinearDamping"), SuppressUnmanagedCodeSecurity]
595 public static extern void BodySetLinearDamping(IntPtr body, dReal scale);
596
597 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodySetAngularDamping"), SuppressUnmanagedCodeSecurity]
598 public static extern void BodySetAngularDamping(IntPtr body, dReal scale);
599
600 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodyGetLinearDamping"), SuppressUnmanagedCodeSecurity]
601 public static extern dReal BodyGetLinearDamping(IntPtr body);
602
603 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodyGetAngularDamping"), SuppressUnmanagedCodeSecurity]
604 public static extern dReal BodyGetAngularDamping(IntPtr body);
605
606 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodySetAngularDamping"), SuppressUnmanagedCodeSecurity]
607 public static extern void BodySetDamping(IntPtr body, dReal linear_scale, dReal angular_scale);
608
609 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodySetAngularDampingThreshold"), SuppressUnmanagedCodeSecurity]
610 public static extern void BodySetAngularDampingThreshold(IntPtr body, dReal threshold);
611
612 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodySetLinearDampingThreshold"), SuppressUnmanagedCodeSecurity]
613 public static extern void BodySetLinearDampingThreshold(IntPtr body, dReal threshold);
614
615 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodyGetLinearDampingThreshold"), SuppressUnmanagedCodeSecurity]
616 public static extern dReal BodyGetLinearDampingThreshold(IntPtr body);
617
618 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodyGetAngularDampingThreshold"), SuppressUnmanagedCodeSecurity]
619 public static extern dReal BodyGetAngularDampingThreshold(IntPtr body);
620
621 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodySetForce"), SuppressUnmanagedCodeSecurity]
622 public static extern void BodySetForce(IntPtr body, dReal x, dReal y, dReal z);
623
624 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodySetGravityMode"), SuppressUnmanagedCodeSecurity]
625 public static extern void BodySetGravityMode(IntPtr body, bool mode);
626
627 /// <summary>
628 /// Sets the Gyroscopic term status on the body specified.
629 /// </summary>
630 /// <param name="body">Pointer to body</param>
631 /// <param name="enabled">NonZero enabled, Zero disabled</param>
632 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodySetGyroscopicMode"), SuppressUnmanagedCodeSecurity]
633 public static extern void dBodySetGyroscopicMode(IntPtr body, int enabled);
634
635 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodySetLinearVel"), SuppressUnmanagedCodeSecurity]
636 public static extern void BodySetLinearVel(IntPtr body, dReal x, dReal y, dReal z);
637
638 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodySetMass"), SuppressUnmanagedCodeSecurity]
639 public static extern void BodySetMass(IntPtr body, ref Mass mass);
640
641 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodySetPosition"), SuppressUnmanagedCodeSecurity]
642 public static extern void BodySetPosition(IntPtr body, dReal x, dReal y, dReal z);
643
644 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodySetQuaternion"), SuppressUnmanagedCodeSecurity]
645 public static extern void BodySetQuaternion(IntPtr body, ref Quaternion q);
646
647 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodySetQuaternion"), SuppressUnmanagedCodeSecurity]
648 public static extern void BodySetQuaternion(IntPtr body, ref dReal w);
649
650 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodySetRotation"), SuppressUnmanagedCodeSecurity]
651 public static extern void BodySetRotation(IntPtr body, ref Matrix3 R);
652
653 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodySetRotation"), SuppressUnmanagedCodeSecurity]
654 public static extern void BodySetRotation(IntPtr body, ref dReal M00);
655
656 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodySetTorque"), SuppressUnmanagedCodeSecurity]
657 public static extern void BodySetTorque(IntPtr body, dReal x, dReal y, dReal z);
658
659 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodyVectorFromWorld"), SuppressUnmanagedCodeSecurity]
660 public static extern void BodyVectorFromWorld(IntPtr body, dReal px, dReal py, dReal pz, out Vector3 result);
661
662 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBodyVectorToWorld"), SuppressUnmanagedCodeSecurity]
663 public static extern void BodyVectorToWorld(IntPtr body, dReal px, dReal py, dReal pz, out Vector3 result);
664
665 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBoxBox"), SuppressUnmanagedCodeSecurity]
666 public static extern void BoxBox(ref Vector3 p1, ref Matrix3 R1,
667 ref Vector3 side1, ref Vector3 p2,
668 ref Matrix3 R2, ref Vector3 side2,
669 ref Vector3 normal, out dReal depth, out int return_code,
670 int maxc, out ContactGeom contact, int skip);
671
672 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dBoxTouchesBox"), SuppressUnmanagedCodeSecurity]
673 public static extern void BoxTouchesBox(ref Vector3 _p1, ref Matrix3 R1,
674 ref Vector3 side1, ref Vector3 _p2,
675 ref Matrix3 R2, ref Vector3 side2);
676
677 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dCleanupODEAllDataForThread"), SuppressUnmanagedCodeSecurity]
678 public static extern void CleanupODEAllDataForThread();
679
680 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dClosestLineSegmentPoints"), SuppressUnmanagedCodeSecurity]
681 public static extern void ClosestLineSegmentPoints(ref Vector3 a1, ref Vector3 a2,
682 ref Vector3 b1, ref Vector3 b2,
683 ref Vector3 cp1, ref Vector3 cp2);
684
685 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dCloseODE"), SuppressUnmanagedCodeSecurity]
686 public static extern void CloseODE();
687
688 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dCollide"), SuppressUnmanagedCodeSecurity]
689 public static extern int Collide(IntPtr o1, IntPtr o2, int flags, [In, Out] ContactGeom[] contact, int skip);
690 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dCollide"), SuppressUnmanagedCodeSecurity]
691 public static extern int CollidePtr(IntPtr o1, IntPtr o2, int flags, IntPtr contactgeomarray, int skip);
692
693 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dConnectingJoint"), SuppressUnmanagedCodeSecurity]
694 public static extern IntPtr ConnectingJoint(IntPtr j1, IntPtr j2);
695
696 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dCreateBox"), SuppressUnmanagedCodeSecurity]
697 public static extern IntPtr CreateiBox(IntPtr space, dReal lx, dReal ly, dReal lz);
698 public static IntPtr CreateBox(IntPtr space, dReal lx, dReal ly, dReal lz)
699 {
700 NTotalGeoms++;
701 return CreateiBox(space, lx, ly, lz);
702 }
703
704 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dCreateCapsule"), SuppressUnmanagedCodeSecurity]
705 public static extern IntPtr CreateiCapsule(IntPtr space, dReal radius, dReal length);
706 public static IntPtr CreateCapsule(IntPtr space, dReal radius, dReal length)
707 {
708 NTotalGeoms++;
709 return CreateiCapsule(space, radius, length);
710 }
711
712 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dCreateConvex"), SuppressUnmanagedCodeSecurity]
713 public static extern IntPtr CreateiConvex(IntPtr space, dReal[] planes, int planeCount, dReal[] points, int pointCount, int[] polygons);
714 public static IntPtr CreateConvex(IntPtr space, dReal[] planes, int planeCount, dReal[] points, int pointCount, int[] polygons)
715 {
716 NTotalGeoms++;
717 return CreateiConvex(space, planes, planeCount, points, pointCount, polygons);
718 }
719
720 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dCreateCylinder"), SuppressUnmanagedCodeSecurity]
721 public static extern IntPtr CreateiCylinder(IntPtr space, dReal radius, dReal length);
722 public static IntPtr CreateCylinder(IntPtr space, dReal radius, dReal length)
723 {
724 NTotalGeoms++;
725 return CreateiCylinder(space, radius, length);
726 }
727
728 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dCreateHeightfield"), SuppressUnmanagedCodeSecurity]
729 public static extern IntPtr CreateiHeightfield(IntPtr space, IntPtr data, int bPlaceable);
730 public static IntPtr CreateHeightfield(IntPtr space, IntPtr data, int bPlaceable)
731 {
732 NTotalGeoms++;
733 return CreateiHeightfield(space, data, bPlaceable);
734 }
735
736 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dCreateUbitTerrain"), SuppressUnmanagedCodeSecurity]
737 public static extern IntPtr CreateiUbitTerrain(IntPtr space, IntPtr data, int bPlaceable);
738 public static IntPtr CreateUbitTerrain(IntPtr space, IntPtr data, int bPlaceable)
739 {
740 NTotalGeoms++;
741 return CreateiUbitTerrain(space, data, bPlaceable);
742 }
743
744
745
746
747
748 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dCreateGeom"), SuppressUnmanagedCodeSecurity]
749 public static extern IntPtr CreateiGeom(int classnum);
750 public static IntPtr CreateGeom(int classnum)
751 {
752 NTotalGeoms++;
753 return CreateiGeom(classnum);
754 }
755
756 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dCreateGeomClass"), SuppressUnmanagedCodeSecurity]
757 public static extern int CreateGeomClass(ref GeomClass classptr);
758
759 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dCreateGeomTransform"), SuppressUnmanagedCodeSecurity]
760 public static extern IntPtr CreateGeomTransform(IntPtr space);
761
762 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dCreatePlane"), SuppressUnmanagedCodeSecurity]
763 public static extern IntPtr CreateiPlane(IntPtr space, dReal a, dReal b, dReal c, dReal d);
764 public static IntPtr CreatePlane(IntPtr space, dReal a, dReal b, dReal c, dReal d)
765 {
766 NTotalGeoms++;
767 return CreateiPlane(space, a, b, c, d);
768 }
769
770 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dCreateRay"), SuppressUnmanagedCodeSecurity]
771 public static extern IntPtr CreateiRay(IntPtr space, dReal length);
772 public static IntPtr CreateRay(IntPtr space, dReal length)
773 {
774 NTotalGeoms++;
775 return CreateiRay(space, length);
776 }
777
778 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dCreateSphere"), SuppressUnmanagedCodeSecurity]
779 public static extern IntPtr CreateiSphere(IntPtr space, dReal radius);
780 public static IntPtr CreateSphere(IntPtr space, dReal radius)
781 {
782 NTotalGeoms++;
783 return CreateiSphere(space, radius);
784 }
785
786 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dCreateTriMesh"), SuppressUnmanagedCodeSecurity]
787 public static extern IntPtr CreateiTriMesh(IntPtr space, IntPtr data,
788 TriCallback callback, TriArrayCallback arrayCallback, TriRayCallback rayCallback);
789 public static IntPtr CreateTriMesh(IntPtr space, IntPtr data,
790 TriCallback callback, TriArrayCallback arrayCallback, TriRayCallback rayCallback)
791 {
792 NTotalGeoms++;
793 return CreateiTriMesh(space, data, callback, arrayCallback, rayCallback);
794 }
795 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dDot"), SuppressUnmanagedCodeSecurity]
796 public static extern dReal Dot(ref dReal X0, ref dReal X1, int n);
797
798 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dDQfromW"), SuppressUnmanagedCodeSecurity]
799 public static extern void DQfromW(dReal[] dq, ref Vector3 w, ref Quaternion q);
800
801 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dFactorCholesky"), SuppressUnmanagedCodeSecurity]
802 public static extern int FactorCholesky(ref dReal A00, int n);
803
804 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dFactorLDLT"), SuppressUnmanagedCodeSecurity]
805 public static extern void FactorLDLT(ref dReal A, out dReal d, int n, int nskip);
806
807 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomBoxGetLengths"), SuppressUnmanagedCodeSecurity]
808 public static extern void GeomBoxGetLengths(IntPtr geom, out Vector3 len);
809
810 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomBoxGetLengths"), SuppressUnmanagedCodeSecurity]
811 public static extern void GeomBoxGetLengths(IntPtr geom, out dReal x);
812
813 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomBoxPointDepth"), SuppressUnmanagedCodeSecurity]
814 public static extern dReal GeomBoxPointDepth(IntPtr geom, dReal x, dReal y, dReal z);
815
816 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomBoxSetLengths"), SuppressUnmanagedCodeSecurity]
817 public static extern void GeomBoxSetLengths(IntPtr geom, dReal x, dReal y, dReal z);
818
819 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomCapsuleGetParams"), SuppressUnmanagedCodeSecurity]
820 public static extern void GeomCapsuleGetParams(IntPtr geom, out dReal radius, out dReal length);
821
822 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomCapsulePointDepth"), SuppressUnmanagedCodeSecurity]
823 public static extern dReal GeomCapsulePointDepth(IntPtr geom, dReal x, dReal y, dReal z);
824
825 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomCapsuleSetParams"), SuppressUnmanagedCodeSecurity]
826 public static extern void GeomCapsuleSetParams(IntPtr geom, dReal radius, dReal length);
827
828 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomClearOffset"), SuppressUnmanagedCodeSecurity]
829 public static extern void GeomClearOffset(IntPtr geom);
830
831 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomCopyOffsetPosition"), SuppressUnmanagedCodeSecurity]
832 public static extern IntPtr GeomCopyOffsetPosition(IntPtr geom, ref Vector3 pos);
833
834 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomCopyOffsetPosition"), SuppressUnmanagedCodeSecurity]
835 public static extern IntPtr GeomCopyOffsetPosition(IntPtr geom, ref dReal X);
836
837 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomGetOffsetQuaternion"), SuppressUnmanagedCodeSecurity]
838 public static extern void GeomCopyOffsetQuaternion(IntPtr geom, ref Quaternion Q);
839
840 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomGetOffsetQuaternion"), SuppressUnmanagedCodeSecurity]
841 public static extern void GeomCopyOffsetQuaternion(IntPtr geom, ref dReal X);
842
843 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomCopyOffsetRotation"), SuppressUnmanagedCodeSecurity]
844 public static extern IntPtr GeomCopyOffsetRotation(IntPtr geom, ref Matrix3 R);
845
846 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomCopyOffsetRotation"), SuppressUnmanagedCodeSecurity]
847 public static extern IntPtr GeomCopyOffsetRotation(IntPtr geom, ref dReal M00);
848
849 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomCopyPosition"), SuppressUnmanagedCodeSecurity]
850 public static extern void GeomCopyPosition(IntPtr geom, out Vector3 pos);
851
852 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomCopyPosition"), SuppressUnmanagedCodeSecurity]
853 public static extern void GeomCopyPosition(IntPtr geom, out dReal X);
854
855 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomCopyRotation"), SuppressUnmanagedCodeSecurity]
856 public static extern void GeomCopyRotation(IntPtr geom, out Matrix3 R);
857
858 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomCopyRotation"), SuppressUnmanagedCodeSecurity]
859 public static extern void GeomCopyRotation(IntPtr geom, out dReal M00);
860
861 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomCylinderGetParams"), SuppressUnmanagedCodeSecurity]
862 public static extern void GeomCylinderGetParams(IntPtr geom, out dReal radius, out dReal length);
863
864 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomCylinderSetParams"), SuppressUnmanagedCodeSecurity]
865 public static extern void GeomCylinderSetParams(IntPtr geom, dReal radius, dReal length);
866
867 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomDestroy"), SuppressUnmanagedCodeSecurity]
868 public static extern void GeomiDestroy(IntPtr geom);
869 public static void GeomDestroy(IntPtr geom)
870 {
871 NTotalGeoms--;
872 GeomiDestroy(geom);
873 }
874
875
876 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomDisable"), SuppressUnmanagedCodeSecurity]
877 public static extern void GeomDisable(IntPtr geom);
878
879 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomEnable"), SuppressUnmanagedCodeSecurity]
880 public static extern void GeomEnable(IntPtr geom);
881
882 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomGetAABB"), SuppressUnmanagedCodeSecurity]
883 public static extern void GeomGetAABB(IntPtr geom, out AABB aabb);
884
885 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomGetAABB"), SuppressUnmanagedCodeSecurity]
886 public static extern void GeomGetAABB(IntPtr geom, out dReal minX);
887
888 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomGetBody"), SuppressUnmanagedCodeSecurity]
889 public static extern IntPtr GeomGetBody(IntPtr geom);
890
891 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomGetCategoryBits"), SuppressUnmanagedCodeSecurity]
892 public static extern uint GeomGetCategoryBits(IntPtr geom);
893
894 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomGetClassData"), SuppressUnmanagedCodeSecurity]
895 public static extern IntPtr GeomGetClassData(IntPtr geom);
896
897 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomGetCollideBits"), SuppressUnmanagedCodeSecurity]
898 public static extern uint GeomGetCollideBits(IntPtr geom);
899
900 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomGetClass"), SuppressUnmanagedCodeSecurity]
901 public static extern GeomClassID GeomGetClass(IntPtr geom);
902
903 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomGetData"), SuppressUnmanagedCodeSecurity]
904 public static extern IntPtr GeomGetData(IntPtr geom);
905
906 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomGetOffsetPosition"), SuppressUnmanagedCodeSecurity]
907 public extern unsafe static Vector3* GeomGetOffsetPositionUnsafe(IntPtr geom);
908 public static Vector3 GeomGetOffsetPosition(IntPtr geom)
909 {
910 unsafe { return *(GeomGetOffsetPositionUnsafe(geom)); }
911 }
912
913 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomGetOffsetRotation"), SuppressUnmanagedCodeSecurity]
914 public extern unsafe static Matrix3* GeomGetOffsetRotationUnsafe(IntPtr geom);
915 public static Matrix3 GeomGetOffsetRotation(IntPtr geom)
916 {
917 unsafe { return *(GeomGetOffsetRotationUnsafe(geom)); }
918 }
919
920 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomGetPosition"), SuppressUnmanagedCodeSecurity]
921 public extern unsafe static Vector3* GeomGetPositionUnsafe(IntPtr geom);
922 public static Vector3 GeomGetPosition(IntPtr geom)
923 {
924 unsafe { return *(GeomGetPositionUnsafe(geom)); }
925 }
926
927 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomGetQuaternion"), SuppressUnmanagedCodeSecurity]
928 public static extern void GeomCopyQuaternion(IntPtr geom, out Quaternion q);
929
930 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomGetQuaternion"), SuppressUnmanagedCodeSecurity]
931 public static extern void GeomCopyQuaternion(IntPtr geom, out dReal X);
932
933 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomGetRotation"), SuppressUnmanagedCodeSecurity]
934 public extern unsafe static Matrix3* GeomGetRotationUnsafe(IntPtr geom);
935 public static Matrix3 GeomGetRotation(IntPtr geom)
936 {
937 unsafe { return *(GeomGetRotationUnsafe(geom)); }
938 }
939
940 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomGetSpace"), SuppressUnmanagedCodeSecurity]
941 public static extern IntPtr GeomGetSpace(IntPtr geom);
942
943 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomHeightfieldDataBuildByte"), SuppressUnmanagedCodeSecurity]
944 public static extern void GeomHeightfieldDataBuildByte(IntPtr d, byte[] pHeightData, int bCopyHeightData,
945 dReal width, dReal depth, int widthSamples, int depthSamples,
946 dReal scale, dReal offset, dReal thickness, int bWrap);
947
948 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomHeightfieldDataBuildByte"), SuppressUnmanagedCodeSecurity]
949 public static extern void GeomHeightfieldDataBuildByte(IntPtr d, IntPtr pHeightData, int bCopyHeightData,
950 dReal width, dReal depth, int widthSamples, int depthSamples,
951 dReal scale, dReal offset, dReal thickness, int bWrap);
952
953 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomHeightfieldDataBuildCallback"), SuppressUnmanagedCodeSecurity]
954 public static extern void GeomHeightfieldDataBuildCallback(IntPtr d, IntPtr pUserData, HeightfieldGetHeight pCallback,
955 dReal width, dReal depth, int widthSamples, int depthSamples,
956 dReal scale, dReal offset, dReal thickness, int bWrap);
957
958 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomHeightfieldDataBuildShort"), SuppressUnmanagedCodeSecurity]
959 public static extern void GeomHeightfieldDataBuildShort(IntPtr d, ushort[] pHeightData, int bCopyHeightData,
960 dReal width, dReal depth, int widthSamples, int depthSamples,
961 dReal scale, dReal offset, dReal thickness, int bWrap);
962
963 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomHeightfieldDataBuildShort"), SuppressUnmanagedCodeSecurity]
964 public static extern void GeomHeightfieldDataBuildShort(IntPtr d, short[] pHeightData, int bCopyHeightData,
965 dReal width, dReal depth, int widthSamples, int depthSamples,
966 dReal scale, dReal offset, dReal thickness, int bWrap);
967
968 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomHeightfieldDataBuildShort"), SuppressUnmanagedCodeSecurity]
969 public static extern void GeomHeightfieldDataBuildShort(IntPtr d, IntPtr pHeightData, int bCopyHeightData,
970 dReal width, dReal depth, int widthSamples, int depthSamples,
971 dReal scale, dReal offset, dReal thickness, int bWrap);
972
973 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomHeightfieldDataBuildSingle"), SuppressUnmanagedCodeSecurity]
974 public static extern void GeomHeightfieldDataBuildSingle(IntPtr d, float[] pHeightData, int bCopyHeightData,
975 dReal width, dReal depth, int widthSamples, int depthSamples,
976 dReal scale, dReal offset, dReal thickness, int bWrap);
977
978 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomHeightfieldDataBuildSingle"), SuppressUnmanagedCodeSecurity]
979 public static extern void GeomHeightfieldDataBuildSingle(IntPtr d, IntPtr pHeightData, int bCopyHeightData,
980 dReal width, dReal depth, int widthSamples, int depthSamples,
981 dReal scale, dReal offset, dReal thickness, int bWrap);
982
983
984
985 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomHeightfieldDataBuildDouble"), SuppressUnmanagedCodeSecurity]
986 public static extern void GeomHeightfieldDataBuildDouble(IntPtr d, double[] pHeightData, int bCopyHeightData,
987 dReal width, dReal depth, int widthSamples, int depthSamples,
988 dReal scale, dReal offset, dReal thickness, int bWrap);
989
990 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomHeightfieldDataBuildDouble"), SuppressUnmanagedCodeSecurity]
991 public static extern void GeomHeightfieldDataBuildDouble(IntPtr d, IntPtr pHeightData, int bCopyHeightData,
992 dReal width, dReal depth, int widthSamples, int depthSamples,
993 dReal scale, dReal offset, dReal thickness, int bWrap);
994
995 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomHeightfieldDataCreate"), SuppressUnmanagedCodeSecurity]
996 public static extern IntPtr GeomHeightfieldDataCreate();
997
998 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomHeightfieldDataDestroy"), SuppressUnmanagedCodeSecurity]
999 public static extern void GeomHeightfieldDataDestroy(IntPtr d);
1000
1001 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomHeightfieldDataSetBounds"), SuppressUnmanagedCodeSecurity]
1002 public static extern void GeomHeightfieldDataSetBounds(IntPtr d, dReal minHeight, dReal maxHeight);
1003
1004 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomHeightfieldGetHeightfieldData"), SuppressUnmanagedCodeSecurity]
1005 public static extern IntPtr GeomHeightfieldGetHeightfieldData(IntPtr g);
1006
1007 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomHeightfieldSetHeightfieldData"), SuppressUnmanagedCodeSecurity]
1008 public static extern void GeomHeightfieldSetHeightfieldData(IntPtr g, IntPtr d);
1009
1010
1011 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomUbitTerrainDataBuild"), SuppressUnmanagedCodeSecurity]
1012 public static extern void GeomUbitTerrainDataBuild(IntPtr d, float[] pHeightData, int bCopyHeightData,
1013 dReal sampleSize, int widthSamples, int depthSamples,
1014 dReal offset, dReal thickness, int bWrap);
1015
1016 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomUbitTerrainDataBuild"), SuppressUnmanagedCodeSecurity]
1017 public static extern void GeomUbitTerrainDataBuild(IntPtr d, IntPtr pHeightData, int bCopyHeightData,
1018 dReal sampleSize, int widthSamples, int depthSamples,
1019 dReal thickness, int bWrap);
1020
1021 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomUbitTerrainDataCreate"), SuppressUnmanagedCodeSecurity]
1022 public static extern IntPtr GeomUbitTerrainDataCreate();
1023
1024 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomUbitTerrainDataDestroy"), SuppressUnmanagedCodeSecurity]
1025 public static extern void GeomUbitTerrainDataDestroy(IntPtr d);
1026
1027 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomUbitTerrainDataSetBounds"), SuppressUnmanagedCodeSecurity]
1028 public static extern void GeomUbitTerrainDataSetBounds(IntPtr d, dReal minHeight, dReal maxHeight);
1029
1030 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomUbitTerrainGetHeightfieldData"), SuppressUnmanagedCodeSecurity]
1031 public static extern IntPtr GeomUbitTerrainGetHeightfieldData(IntPtr g);
1032
1033 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomUbitTerrainSetHeightfieldData"), SuppressUnmanagedCodeSecurity]
1034 public static extern void GeomUbitTerrainSetHeightfieldData(IntPtr g, IntPtr d);
1035
1036
1037 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomIsEnabled"), SuppressUnmanagedCodeSecurity]
1038 public static extern bool GeomIsEnabled(IntPtr geom);
1039
1040 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomIsOffset"), SuppressUnmanagedCodeSecurity]
1041 public static extern bool GeomIsOffset(IntPtr geom);
1042
1043 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomIsSpace"), SuppressUnmanagedCodeSecurity]
1044 public static extern bool GeomIsSpace(IntPtr geom);
1045
1046 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomPlaneGetParams"), SuppressUnmanagedCodeSecurity]
1047 public static extern void GeomPlaneGetParams(IntPtr geom, ref Vector4 result);
1048
1049 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomPlaneGetParams"), SuppressUnmanagedCodeSecurity]
1050 public static extern void GeomPlaneGetParams(IntPtr geom, ref dReal A);
1051
1052 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomPlanePointDepth"), SuppressUnmanagedCodeSecurity]
1053 public static extern dReal GeomPlanePointDepth(IntPtr geom, dReal x, dReal y, dReal z);
1054
1055 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomPlaneSetParams"), SuppressUnmanagedCodeSecurity]
1056 public static extern void GeomPlaneSetParams(IntPtr plane, dReal a, dReal b, dReal c, dReal d);
1057
1058 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomRayGet"), SuppressUnmanagedCodeSecurity]
1059 public static extern void GeomRayGet(IntPtr ray, ref Vector3 start, ref Vector3 dir);
1060
1061 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomRayGet"), SuppressUnmanagedCodeSecurity]
1062 public static extern void GeomRayGet(IntPtr ray, ref dReal startX, ref dReal dirX);
1063
1064 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomRayGetClosestHit"), SuppressUnmanagedCodeSecurity]
1065 public static extern int GeomRayGetClosestHit(IntPtr ray);
1066
1067 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomRayGetLength"), SuppressUnmanagedCodeSecurity]
1068 public static extern dReal GeomRayGetLength(IntPtr ray);
1069
1070 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomRayGetParams"), SuppressUnmanagedCodeSecurity]
1071 public static extern dReal GeomRayGetParams(IntPtr g, out int firstContact, out int backfaceCull);
1072
1073 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomRaySet"), SuppressUnmanagedCodeSecurity]
1074 public static extern void GeomRaySet(IntPtr ray, dReal px, dReal py, dReal pz, dReal dx, dReal dy, dReal dz);
1075
1076 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomRaySetClosestHit"), SuppressUnmanagedCodeSecurity]
1077 public static extern void GeomRaySetClosestHit(IntPtr ray, int closestHit);
1078
1079 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomRaySetLength"), SuppressUnmanagedCodeSecurity]
1080 public static extern void GeomRaySetLength(IntPtr ray, dReal length);
1081
1082 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomRaySetParams"), SuppressUnmanagedCodeSecurity]
1083 public static extern void GeomRaySetParams(IntPtr ray, int firstContact, int backfaceCull);
1084
1085 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomSetBody"), SuppressUnmanagedCodeSecurity]
1086 public static extern void GeomSetBody(IntPtr geom, IntPtr body);
1087
1088 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomSetCategoryBits"), SuppressUnmanagedCodeSecurity]
1089 public static extern void GeomSetCategoryBits(IntPtr geom, uint bits);
1090
1091 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomSetCollideBits"), SuppressUnmanagedCodeSecurity]
1092 public static extern void GeomSetCollideBits(IntPtr geom, uint bits);
1093
1094 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomSetConvex"), SuppressUnmanagedCodeSecurity]
1095 public static extern IntPtr GeomSetConvex(IntPtr geom, dReal[] planes, int planeCount, dReal[] points, int pointCount, int[] polygons);
1096
1097 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomSetData"), SuppressUnmanagedCodeSecurity]
1098 public static extern void GeomSetData(IntPtr geom, IntPtr data);
1099
1100 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomSetOffsetPosition"), SuppressUnmanagedCodeSecurity]
1101 public static extern void GeomSetOffsetPosition(IntPtr geom, dReal x, dReal y, dReal z);
1102
1103 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomSetOffsetQuaternion"), SuppressUnmanagedCodeSecurity]
1104 public static extern void GeomSetOffsetQuaternion(IntPtr geom, ref Quaternion Q);
1105
1106 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomSetOffsetQuaternion"), SuppressUnmanagedCodeSecurity]
1107 public static extern void GeomSetOffsetQuaternion(IntPtr geom, ref dReal X);
1108
1109 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomSetOffsetRotation"), SuppressUnmanagedCodeSecurity]
1110 public static extern void GeomSetOffsetRotation(IntPtr geom, ref Matrix3 R);
1111
1112 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomSetOffsetRotation"), SuppressUnmanagedCodeSecurity]
1113 public static extern void GeomSetOffsetRotation(IntPtr geom, ref dReal M00);
1114
1115 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomSetOffsetWorldPosition"), SuppressUnmanagedCodeSecurity]
1116 public static extern void GeomSetOffsetWorldPosition(IntPtr geom, dReal x, dReal y, dReal z);
1117
1118 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomSetOffsetWorldQuaternion"), SuppressUnmanagedCodeSecurity]
1119 public static extern void GeomSetOffsetWorldQuaternion(IntPtr geom, ref Quaternion Q);
1120
1121 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomSetOffsetWorldQuaternion"), SuppressUnmanagedCodeSecurity]
1122 public static extern void GeomSetOffsetWorldQuaternion(IntPtr geom, ref dReal X);
1123
1124 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomSetOffsetWorldRotation"), SuppressUnmanagedCodeSecurity]
1125 public static extern void GeomSetOffsetWorldRotation(IntPtr geom, ref Matrix3 R);
1126
1127 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomSetOffsetWorldRotation"), SuppressUnmanagedCodeSecurity]
1128 public static extern void GeomSetOffsetWorldRotation(IntPtr geom, ref dReal M00);
1129
1130 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomSetPosition"), SuppressUnmanagedCodeSecurity]
1131 public static extern void GeomSetPosition(IntPtr geom, dReal x, dReal y, dReal z);
1132
1133 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomSetQuaternion"), SuppressUnmanagedCodeSecurity]
1134 public static extern void GeomSetQuaternion(IntPtr geom, ref Quaternion quat);
1135
1136 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomSetQuaternion"), SuppressUnmanagedCodeSecurity]
1137 public static extern void GeomSetQuaternion(IntPtr geom, ref dReal w);
1138
1139 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomSetRotation"), SuppressUnmanagedCodeSecurity]
1140 public static extern void GeomSetRotation(IntPtr geom, ref Matrix3 R);
1141
1142 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomSetRotation"), SuppressUnmanagedCodeSecurity]
1143 public static extern void GeomSetRotation(IntPtr geom, ref dReal M00);
1144
1145 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomSphereGetRadius"), SuppressUnmanagedCodeSecurity]
1146 public static extern dReal GeomSphereGetRadius(IntPtr geom);
1147
1148 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomSpherePointDepth"), SuppressUnmanagedCodeSecurity]
1149 public static extern dReal GeomSpherePointDepth(IntPtr geom, dReal x, dReal y, dReal z);
1150
1151 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomSphereSetRadius"), SuppressUnmanagedCodeSecurity]
1152 public static extern void GeomSphereSetRadius(IntPtr geom, dReal radius);
1153
1154 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomTransformGetCleanup"), SuppressUnmanagedCodeSecurity]
1155 public static extern int GeomTransformGetCleanup(IntPtr geom);
1156
1157 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomTransformGetGeom"), SuppressUnmanagedCodeSecurity]
1158 public static extern IntPtr GeomTransformGetGeom(IntPtr geom);
1159
1160 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomTransformGetInfo"), SuppressUnmanagedCodeSecurity]
1161 public static extern int GeomTransformGetInfo(IntPtr geom);
1162
1163 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomTransformSetCleanup"), SuppressUnmanagedCodeSecurity]
1164 public static extern void GeomTransformSetCleanup(IntPtr geom, int mode);
1165
1166 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomTransformSetGeom"), SuppressUnmanagedCodeSecurity]
1167 public static extern void GeomTransformSetGeom(IntPtr geom, IntPtr obj);
1168
1169 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomTransformSetInfo"), SuppressUnmanagedCodeSecurity]
1170 public static extern void GeomTransformSetInfo(IntPtr geom, int info);
1171
1172 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomTriMeshDataBuildDouble"), SuppressUnmanagedCodeSecurity]
1173 public static extern void GeomTriMeshDataBuildDouble(IntPtr d,
1174 double[] vertices, int vertexStride, int vertexCount,
1175 int[] indices, int indexCount, int triStride);
1176
1177 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomTriMeshDataBuildDouble"), SuppressUnmanagedCodeSecurity]
1178 public static extern void GeomTriMeshDataBuildDouble(IntPtr d,
1179 IntPtr vertices, int vertexStride, int vertexCount,
1180 IntPtr indices, int indexCount, int triStride);
1181
1182 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomTriMeshDataBuildDouble1"), SuppressUnmanagedCodeSecurity]
1183 public static extern void GeomTriMeshDataBuildDouble1(IntPtr d,
1184 double[] vertices, int vertexStride, int vertexCount,
1185 int[] indices, int indexCount, int triStride,
1186 double[] normals);
1187
1188 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomTriMeshDataBuildDouble1"), SuppressUnmanagedCodeSecurity]
1189 public static extern void GeomTriMeshDataBuildDouble(IntPtr d,
1190 IntPtr vertices, int vertexStride, int vertexCount,
1191 IntPtr indices, int indexCount, int triStride,
1192 IntPtr normals);
1193
1194 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomTriMeshDataBuildSimple"), SuppressUnmanagedCodeSecurity]
1195 public static extern void GeomTriMeshDataBuildSingle(IntPtr d,
1196 dReal[] vertices, int vertexStride, int vertexCount,
1197 int[] indices, int indexCount, int triStride);
1198
1199 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomTriMeshDataBuildSimple"), SuppressUnmanagedCodeSecurity]
1200 public static extern void GeomTriMeshDataBuildSingle(IntPtr d,
1201 IntPtr vertices, int vertexStride, int vertexCount,
1202 IntPtr indices, int indexCount, int triStride);
1203
1204 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomTriMeshDataBuildSimple1"), SuppressUnmanagedCodeSecurity]
1205 public static extern void GeomTriMeshDataBuildSingle1(IntPtr d,
1206 dReal[] vertices, int vertexStride, int vertexCount,
1207 int[] indices, int indexCount, int triStride,
1208 dReal[] normals);
1209
1210 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomTriMeshDataBuildSimple1"), SuppressUnmanagedCodeSecurity]
1211 public static extern void GeomTriMeshDataBuildSingle1(IntPtr d,
1212 IntPtr vertices, int vertexStride, int vertexCount,
1213 IntPtr indices, int indexCount, int triStride,
1214 IntPtr normals);
1215
1216 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomTriMeshDataBuildSingle"), SuppressUnmanagedCodeSecurity]
1217 public static extern void GeomTriMeshDataBuildSimple(IntPtr d,
1218 float[] vertices, int vertexStride, int vertexCount,
1219 int[] indices, int indexCount, int triStride);
1220
1221 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomTriMeshDataBuildSingle"), SuppressUnmanagedCodeSecurity]
1222 public static extern void GeomTriMeshDataBuildSimple(IntPtr d,
1223 IntPtr vertices, int vertexStride, int vertexCount,
1224 IntPtr indices, int indexCount, int triStride);
1225
1226 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomTriMeshDataBuildSingle1"), SuppressUnmanagedCodeSecurity]
1227 public static extern void GeomTriMeshDataBuildSimple1(IntPtr d,
1228 float[] vertices, int vertexStride, int vertexCount,
1229 int[] indices, int indexCount, int triStride,
1230 float[] normals);
1231
1232 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomTriMeshDataBuildSingle1"), SuppressUnmanagedCodeSecurity]
1233 public static extern void GeomTriMeshDataBuildSimple1(IntPtr d,
1234 IntPtr vertices, int vertexStride, int vertexCount,
1235 IntPtr indices, int indexCount, int triStride,
1236 IntPtr normals);
1237
1238 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomTriMeshClearTCCache"), SuppressUnmanagedCodeSecurity]
1239 public static extern void GeomTriMeshClearTCCache(IntPtr g);
1240
1241 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomTriMeshDataCreate"), SuppressUnmanagedCodeSecurity]
1242 public static extern IntPtr GeomTriMeshDataCreate();
1243
1244 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomTriMeshDataDestroy"), SuppressUnmanagedCodeSecurity]
1245 public static extern void GeomTriMeshDataDestroy(IntPtr d);
1246
1247 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomTriMeshDataGet"), SuppressUnmanagedCodeSecurity]
1248 public static extern IntPtr GeomTriMeshDataGet(IntPtr d, int data_id);
1249
1250 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomTriMeshDataPreprocess"), SuppressUnmanagedCodeSecurity]
1251 public static extern void GeomTriMeshDataPreprocess(IntPtr d);
1252
1253 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomTriMeshDataSet"), SuppressUnmanagedCodeSecurity]
1254 public static extern void GeomTriMeshDataSet(IntPtr d, int data_id, IntPtr in_data);
1255
1256 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomTriMeshDataUpdate"), SuppressUnmanagedCodeSecurity]
1257 public static extern void GeomTriMeshDataUpdate(IntPtr d);
1258
1259 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomTriMeshEnableTC"), SuppressUnmanagedCodeSecurity]
1260 public static extern void GeomTriMeshEnableTC(IntPtr g, int geomClass, bool enable);
1261
1262 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomTriMeshGetArrayCallback"), SuppressUnmanagedCodeSecurity]
1263 public static extern TriArrayCallback GeomTriMeshGetArrayCallback(IntPtr g);
1264
1265 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomTriMeshGetCallback"), SuppressUnmanagedCodeSecurity]
1266 public static extern TriCallback GeomTriMeshGetCallback(IntPtr g);
1267
1268 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomTriMeshGetData"), SuppressUnmanagedCodeSecurity]
1269 public static extern IntPtr GeomTriMeshGetData(IntPtr g);
1270
1271 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomTriMeshGetLastTransform"), SuppressUnmanagedCodeSecurity]
1272 public extern unsafe static Matrix4* GeomTriMeshGetLastTransformUnsafe(IntPtr geom);
1273 public static Matrix4 GeomTriMeshGetLastTransform(IntPtr geom)
1274 {
1275 unsafe { return *(GeomTriMeshGetLastTransformUnsafe(geom)); }
1276 }
1277
1278 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomTriMeshGetPoint"), SuppressUnmanagedCodeSecurity]
1279 public extern static void GeomTriMeshGetPoint(IntPtr g, int index, dReal u, dReal v, ref Vector3 outVec);
1280
1281 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomTriMeshGetRayCallback"), SuppressUnmanagedCodeSecurity]
1282 public static extern TriRayCallback GeomTriMeshGetRayCallback(IntPtr g);
1283
1284 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomTriMeshGetTriangle"), SuppressUnmanagedCodeSecurity]
1285 public extern static void GeomTriMeshGetTriangle(IntPtr g, int index, ref Vector3 v0, ref Vector3 v1, ref Vector3 v2);
1286
1287 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomTriMeshGetTriangleCount"), SuppressUnmanagedCodeSecurity]
1288 public extern static int GeomTriMeshGetTriangleCount(IntPtr g);
1289
1290 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomTriMeshGetTriMeshDataID"), SuppressUnmanagedCodeSecurity]
1291 public static extern IntPtr GeomTriMeshGetTriMeshDataID(IntPtr g);
1292
1293 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomTriMeshIsTCEnabled"), SuppressUnmanagedCodeSecurity]
1294 public static extern bool GeomTriMeshIsTCEnabled(IntPtr g, int geomClass);
1295
1296 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomTriMeshSetArrayCallback"), SuppressUnmanagedCodeSecurity]
1297 public static extern void GeomTriMeshSetArrayCallback(IntPtr g, TriArrayCallback arrayCallback);
1298
1299 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomTriMeshSetCallback"), SuppressUnmanagedCodeSecurity]
1300 public static extern void GeomTriMeshSetCallback(IntPtr g, TriCallback callback);
1301
1302 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomTriMeshSetData"), SuppressUnmanagedCodeSecurity]
1303 public static extern void GeomTriMeshSetData(IntPtr g, IntPtr data);
1304
1305 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomTriMeshSetLastTransform"), SuppressUnmanagedCodeSecurity]
1306 public static extern void GeomTriMeshSetLastTransform(IntPtr g, ref Matrix4 last_trans);
1307
1308 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomTriMeshSetLastTransform"), SuppressUnmanagedCodeSecurity]
1309 public static extern void GeomTriMeshSetLastTransform(IntPtr g, ref dReal M00);
1310
1311 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGeomTriMeshSetRayCallback"), SuppressUnmanagedCodeSecurity]
1312 public static extern void GeomTriMeshSetRayCallback(IntPtr g, TriRayCallback callback);
1313
1314 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dGetConfiguration"), SuppressUnmanagedCodeSecurity]
1315 public static extern string GetConfiguration(string str);
1316
1317 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dHashSpaceCreate"), SuppressUnmanagedCodeSecurity]
1318 public static extern IntPtr HashSpaceCreate(IntPtr space);
1319
1320 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dHashSpaceGetLevels"), SuppressUnmanagedCodeSecurity]
1321 public static extern void HashSpaceGetLevels(IntPtr space, out int minlevel, out int maxlevel);
1322
1323 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dHashSpaceSetLevels"), SuppressUnmanagedCodeSecurity]
1324 public static extern void HashSpaceSetLevels(IntPtr space, int minlevel, int maxlevel);
1325
1326 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dInfiniteAABB"), SuppressUnmanagedCodeSecurity]
1327 public static extern void InfiniteAABB(IntPtr geom, out AABB aabb);
1328
1329 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dInitODE"), SuppressUnmanagedCodeSecurity]
1330 public static extern void InitODE();
1331
1332 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dInitODE2"), SuppressUnmanagedCodeSecurity]
1333 public static extern int InitODE2(uint ODEInitFlags);
1334
1335 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dIsPositiveDefinite"), SuppressUnmanagedCodeSecurity]
1336 public static extern int IsPositiveDefinite(ref dReal A, int n);
1337
1338 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dInvertPDMatrix"), SuppressUnmanagedCodeSecurity]
1339 public static extern int InvertPDMatrix(ref dReal A, out dReal Ainv, int n);
1340
1341 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointAddAMotorTorques"), SuppressUnmanagedCodeSecurity]
1342 public static extern void JointAddAMotorTorques(IntPtr joint, dReal torque1, dReal torque2, dReal torque3);
1343
1344 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointAddHingeTorque"), SuppressUnmanagedCodeSecurity]
1345 public static extern void JointAddHingeTorque(IntPtr joint, dReal torque);
1346
1347 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointAddHinge2Torque"), SuppressUnmanagedCodeSecurity]
1348 public static extern void JointAddHinge2Torques(IntPtr joint, dReal torque1, dReal torque2);
1349
1350 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointAddPRTorque"), SuppressUnmanagedCodeSecurity]
1351 public static extern void JointAddPRTorque(IntPtr joint, dReal torque);
1352
1353 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointAddUniversalTorque"), SuppressUnmanagedCodeSecurity]
1354 public static extern void JointAddUniversalTorques(IntPtr joint, dReal torque1, dReal torque2);
1355
1356 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointAddSliderForce"), SuppressUnmanagedCodeSecurity]
1357 public static extern void JointAddSliderForce(IntPtr joint, dReal force);
1358
1359 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointAttach"), SuppressUnmanagedCodeSecurity]
1360 public static extern void JointAttach(IntPtr joint, IntPtr body1, IntPtr body2);
1361
1362 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointCreateAMotor"), SuppressUnmanagedCodeSecurity]
1363 public static extern IntPtr JointCreateAMotor(IntPtr world, IntPtr group);
1364
1365 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointCreateBall"), SuppressUnmanagedCodeSecurity]
1366 public static extern IntPtr JointCreateBall(IntPtr world, IntPtr group);
1367
1368 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointCreateContact"), SuppressUnmanagedCodeSecurity]
1369 public static extern IntPtr JointCreateContact(IntPtr world, IntPtr group, ref Contact contact);
1370 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointCreateContact"), SuppressUnmanagedCodeSecurity]
1371 public static extern IntPtr JointCreateContactPtr(IntPtr world, IntPtr group, IntPtr contact);
1372
1373 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointCreateFixed"), SuppressUnmanagedCodeSecurity]
1374 public static extern IntPtr JointCreateFixed(IntPtr world, IntPtr group);
1375
1376 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointCreateHinge"), SuppressUnmanagedCodeSecurity]
1377 public static extern IntPtr JointCreateHinge(IntPtr world, IntPtr group);
1378
1379 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointCreateHinge2"), SuppressUnmanagedCodeSecurity]
1380 public static extern IntPtr JointCreateHinge2(IntPtr world, IntPtr group);
1381
1382 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointCreateLMotor"), SuppressUnmanagedCodeSecurity]
1383 public static extern IntPtr JointCreateLMotor(IntPtr world, IntPtr group);
1384
1385 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointCreateNull"), SuppressUnmanagedCodeSecurity]
1386 public static extern IntPtr JointCreateNull(IntPtr world, IntPtr group);
1387
1388 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointCreatePR"), SuppressUnmanagedCodeSecurity]
1389 public static extern IntPtr JointCreatePR(IntPtr world, IntPtr group);
1390
1391 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointCreatePlane2D"), SuppressUnmanagedCodeSecurity]
1392 public static extern IntPtr JointCreatePlane2D(IntPtr world, IntPtr group);
1393
1394 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointCreateSlider"), SuppressUnmanagedCodeSecurity]
1395 public static extern IntPtr JointCreateSlider(IntPtr world, IntPtr group);
1396
1397 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointCreateUniversal"), SuppressUnmanagedCodeSecurity]
1398 public static extern IntPtr JointCreateUniversal(IntPtr world, IntPtr group);
1399
1400 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointDestroy"), SuppressUnmanagedCodeSecurity]
1401 public static extern void JointDestroy(IntPtr j);
1402
1403 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointGetAMotorAngle"), SuppressUnmanagedCodeSecurity]
1404 public static extern dReal JointGetAMotorAngle(IntPtr j, int anum);
1405
1406 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointGetAMotorAngleRate"), SuppressUnmanagedCodeSecurity]
1407 public static extern dReal JointGetAMotorAngleRate(IntPtr j, int anum);
1408
1409 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointGetAMotorAxis"), SuppressUnmanagedCodeSecurity]
1410 public static extern void JointGetAMotorAxis(IntPtr j, int anum, out Vector3 result);
1411
1412 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointGetAMotorAxisRel"), SuppressUnmanagedCodeSecurity]
1413 public static extern int JointGetAMotorAxisRel(IntPtr j, int anum);
1414
1415 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointGetAMotorMode"), SuppressUnmanagedCodeSecurity]
1416 public static extern int JointGetAMotorMode(IntPtr j);
1417
1418 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointGetAMotorNumAxes"), SuppressUnmanagedCodeSecurity]
1419 public static extern int JointGetAMotorNumAxes(IntPtr j);
1420
1421 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointGetAMotorParam"), SuppressUnmanagedCodeSecurity]
1422 public static extern dReal JointGetAMotorParam(IntPtr j, int parameter);
1423
1424 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointGetBallAnchor"), SuppressUnmanagedCodeSecurity]
1425 public static extern void JointGetBallAnchor(IntPtr j, out Vector3 result);
1426
1427 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointGetBallAnchor2"), SuppressUnmanagedCodeSecurity]
1428 public static extern void JointGetBallAnchor2(IntPtr j, out Vector3 result);
1429
1430 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointGetBody"), SuppressUnmanagedCodeSecurity]
1431 public static extern IntPtr JointGetBody(IntPtr j);
1432
1433 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointGetData"), SuppressUnmanagedCodeSecurity]
1434 public static extern IntPtr JointGetData(IntPtr j);
1435
1436 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointGetFeedback"), SuppressUnmanagedCodeSecurity]
1437 public extern unsafe static JointFeedback* JointGetFeedbackUnsafe(IntPtr j);
1438 public static JointFeedback JointGetFeedback(IntPtr j)
1439 {
1440 unsafe { return *(JointGetFeedbackUnsafe(j)); }
1441 }
1442
1443 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointGetHingeAnchor"), SuppressUnmanagedCodeSecurity]
1444 public static extern void JointGetHingeAnchor(IntPtr j, out Vector3 result);
1445
1446 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointGetHingeAngle"), SuppressUnmanagedCodeSecurity]
1447 public static extern dReal JointGetHingeAngle(IntPtr j);
1448
1449 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointGetHingeAngleRate"), SuppressUnmanagedCodeSecurity]
1450 public static extern dReal JointGetHingeAngleRate(IntPtr j);
1451
1452 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointGetHingeAxis"), SuppressUnmanagedCodeSecurity]
1453 public static extern void JointGetHingeAxis(IntPtr j, out Vector3 result);
1454
1455 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointGetHingeParam"), SuppressUnmanagedCodeSecurity]
1456 public static extern dReal JointGetHingeParam(IntPtr j, int parameter);
1457
1458 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointGetHinge2Angle1"), SuppressUnmanagedCodeSecurity]
1459 public static extern dReal JointGetHinge2Angle1(IntPtr j);
1460
1461 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointGetHinge2Angle1Rate"), SuppressUnmanagedCodeSecurity]
1462 public static extern dReal JointGetHinge2Angle1Rate(IntPtr j);
1463
1464 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointGetHinge2Angle2Rate"), SuppressUnmanagedCodeSecurity]
1465 public static extern dReal JointGetHinge2Angle2Rate(IntPtr j);
1466
1467 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointGetHingeAnchor2"), SuppressUnmanagedCodeSecurity]
1468 public static extern void JointGetHingeAnchor2(IntPtr j, out Vector3 result);
1469
1470 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointGetHinge2Anchor"), SuppressUnmanagedCodeSecurity]
1471 public static extern void JointGetHinge2Anchor(IntPtr j, out Vector3 result);
1472
1473 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointGetHinge2Anchor2"), SuppressUnmanagedCodeSecurity]
1474 public static extern void JointGetHinge2Anchor2(IntPtr j, out Vector3 result);
1475
1476 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointGetHinge2Axis1"), SuppressUnmanagedCodeSecurity]
1477 public static extern void JointGetHinge2Axis1(IntPtr j, out Vector3 result);
1478
1479 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointGetHinge2Axis2"), SuppressUnmanagedCodeSecurity]
1480 public static extern void JointGetHinge2Axis2(IntPtr j, out Vector3 result);
1481
1482 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointGetHinge2Param"), SuppressUnmanagedCodeSecurity]
1483 public static extern dReal JointGetHinge2Param(IntPtr j, int parameter);
1484
1485 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointGetLMotorAxis"), SuppressUnmanagedCodeSecurity]
1486 public static extern void JointGetLMotorAxis(IntPtr j, int anum, out Vector3 result);
1487
1488 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointGetLMotorNumAxes"), SuppressUnmanagedCodeSecurity]
1489 public static extern int JointGetLMotorNumAxes(IntPtr j);
1490
1491 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointGetLMotorParam"), SuppressUnmanagedCodeSecurity]
1492 public static extern dReal JointGetLMotorParam(IntPtr j, int parameter);
1493
1494 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointGetPRAnchor"), SuppressUnmanagedCodeSecurity]
1495 public static extern void JointGetPRAnchor(IntPtr j, out Vector3 result);
1496
1497 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointGetPRAxis1"), SuppressUnmanagedCodeSecurity]
1498 public static extern void JointGetPRAxis1(IntPtr j, out Vector3 result);
1499
1500 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointGetPRAxis2"), SuppressUnmanagedCodeSecurity]
1501 public static extern void JointGetPRAxis2(IntPtr j, out Vector3 result);
1502
1503 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointGetPRParam"), SuppressUnmanagedCodeSecurity]
1504 public static extern dReal JointGetPRParam(IntPtr j, int parameter);
1505
1506 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointGetPRPosition"), SuppressUnmanagedCodeSecurity]
1507 public static extern dReal JointGetPRPosition(IntPtr j);
1508
1509 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointGetPRPositionRate"), SuppressUnmanagedCodeSecurity]
1510 public static extern dReal JointGetPRPositionRate(IntPtr j);
1511
1512 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointGetSliderAxis"), SuppressUnmanagedCodeSecurity]
1513 public static extern void JointGetSliderAxis(IntPtr j, out Vector3 result);
1514
1515 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointGetSliderParam"), SuppressUnmanagedCodeSecurity]
1516 public static extern dReal JointGetSliderParam(IntPtr j, int parameter);
1517
1518 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointGetSliderPosition"), SuppressUnmanagedCodeSecurity]
1519 public static extern dReal JointGetSliderPosition(IntPtr j);
1520
1521 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointGetSliderPositionRate"), SuppressUnmanagedCodeSecurity]
1522 public static extern dReal JointGetSliderPositionRate(IntPtr j);
1523
1524 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointGetType"), SuppressUnmanagedCodeSecurity]
1525 public static extern JointType JointGetType(IntPtr j);
1526
1527 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointGetUniversalAnchor"), SuppressUnmanagedCodeSecurity]
1528 public static extern void JointGetUniversalAnchor(IntPtr j, out Vector3 result);
1529
1530 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointGetUniversalAnchor2"), SuppressUnmanagedCodeSecurity]
1531 public static extern void JointGetUniversalAnchor2(IntPtr j, out Vector3 result);
1532
1533 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointGetUniversalAngle1"), SuppressUnmanagedCodeSecurity]
1534 public static extern dReal JointGetUniversalAngle1(IntPtr j);
1535
1536 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointGetUniversalAngle1Rate"), SuppressUnmanagedCodeSecurity]
1537 public static extern dReal JointGetUniversalAngle1Rate(IntPtr j);
1538
1539 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointGetUniversalAngle2"), SuppressUnmanagedCodeSecurity]
1540 public static extern dReal JointGetUniversalAngle2(IntPtr j);
1541
1542 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointGetUniversalAngle2Rate"), SuppressUnmanagedCodeSecurity]
1543 public static extern dReal JointGetUniversalAngle2Rate(IntPtr j);
1544
1545 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointGetUniversalAngles"), SuppressUnmanagedCodeSecurity]
1546 public static extern void JointGetUniversalAngles(IntPtr j, out dReal angle1, out dReal angle2);
1547
1548 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointGetUniversalAxis1"), SuppressUnmanagedCodeSecurity]
1549 public static extern void JointGetUniversalAxis1(IntPtr j, out Vector3 result);
1550
1551 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointGetUniversalAxis2"), SuppressUnmanagedCodeSecurity]
1552 public static extern void JointGetUniversalAxis2(IntPtr j, out Vector3 result);
1553
1554 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointGetUniversalParam"), SuppressUnmanagedCodeSecurity]
1555 public static extern dReal JointGetUniversalParam(IntPtr j, int parameter);
1556
1557 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointGroupCreate"), SuppressUnmanagedCodeSecurity]
1558 public static extern IntPtr JointGroupCreate(int max_size);
1559
1560 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointGroupDestroy"), SuppressUnmanagedCodeSecurity]
1561 public static extern void JointGroupDestroy(IntPtr group);
1562
1563 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointGroupEmpty"), SuppressUnmanagedCodeSecurity]
1564 public static extern void JointGroupEmpty(IntPtr group);
1565
1566 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointSetAMotorAngle"), SuppressUnmanagedCodeSecurity]
1567 public static extern void JointSetAMotorAngle(IntPtr j, int anum, dReal angle);
1568
1569 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointSetAMotorAxis"), SuppressUnmanagedCodeSecurity]
1570 public static extern void JointSetAMotorAxis(IntPtr j, int anum, int rel, dReal x, dReal y, dReal z);
1571
1572 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointSetAMotorMode"), SuppressUnmanagedCodeSecurity]
1573 public static extern void JointSetAMotorMode(IntPtr j, int mode);
1574
1575 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointSetAMotorNumAxes"), SuppressUnmanagedCodeSecurity]
1576 public static extern void JointSetAMotorNumAxes(IntPtr group, int num);
1577
1578 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointSetAMotorParam"), SuppressUnmanagedCodeSecurity]
1579 public static extern void JointSetAMotorParam(IntPtr group, int parameter, dReal value);
1580
1581 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointSetBallAnchor"), SuppressUnmanagedCodeSecurity]
1582 public static extern void JointSetBallAnchor(IntPtr j, dReal x, dReal y, dReal z);
1583
1584 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointSetBallAnchor2"), SuppressUnmanagedCodeSecurity]
1585 public static extern void JointSetBallAnchor2(IntPtr j, dReal x, dReal y, dReal z);
1586
1587 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointSetData"), SuppressUnmanagedCodeSecurity]
1588 public static extern void JointSetData(IntPtr j, IntPtr data);
1589
1590 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointSetFeedback"), SuppressUnmanagedCodeSecurity]
1591 public static extern void JointSetFeedback(IntPtr j, out JointFeedback feedback);
1592
1593 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointSetFixed"), SuppressUnmanagedCodeSecurity]
1594 public static extern void JointSetFixed(IntPtr j);
1595
1596 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointSetHingeAnchor"), SuppressUnmanagedCodeSecurity]
1597 public static extern void JointSetHingeAnchor(IntPtr j, dReal x, dReal y, dReal z);
1598
1599 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointSetHingeAnchorDelta"), SuppressUnmanagedCodeSecurity]
1600 public static extern void JointSetHingeAnchorDelta(IntPtr j, dReal x, dReal y, dReal z, dReal ax, dReal ay, dReal az);
1601
1602 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointSetHingeAxis"), SuppressUnmanagedCodeSecurity]
1603 public static extern void JointSetHingeAxis(IntPtr j, dReal x, dReal y, dReal z);
1604
1605 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointSetHingeParam"), SuppressUnmanagedCodeSecurity]
1606 public static extern void JointSetHingeParam(IntPtr j, int parameter, dReal value);
1607
1608 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointSetHinge2Anchor"), SuppressUnmanagedCodeSecurity]
1609 public static extern void JointSetHinge2Anchor(IntPtr j, dReal x, dReal y, dReal z);
1610
1611 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointSetHinge2Axis1"), SuppressUnmanagedCodeSecurity]
1612 public static extern void JointSetHinge2Axis1(IntPtr j, dReal x, dReal y, dReal z);
1613
1614 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointSetHinge2Axis2"), SuppressUnmanagedCodeSecurity]
1615 public static extern void JointSetHinge2Axis2(IntPtr j, dReal x, dReal y, dReal z);
1616
1617 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointSetHinge2Param"), SuppressUnmanagedCodeSecurity]
1618 public static extern void JointSetHinge2Param(IntPtr j, int parameter, dReal value);
1619
1620 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointSetLMotorAxis"), SuppressUnmanagedCodeSecurity]
1621 public static extern void JointSetLMotorAxis(IntPtr j, int anum, int rel, dReal x, dReal y, dReal z);
1622
1623 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointSetLMotorNumAxes"), SuppressUnmanagedCodeSecurity]
1624 public static extern void JointSetLMotorNumAxes(IntPtr j, int num);
1625
1626 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointSetLMotorParam"), SuppressUnmanagedCodeSecurity]
1627 public static extern void JointSetLMotorParam(IntPtr j, int parameter, dReal value);
1628
1629 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointSetPlane2DAngleParam"), SuppressUnmanagedCodeSecurity]
1630 public static extern void JointSetPlane2DAngleParam(IntPtr j, int parameter, dReal value);
1631
1632 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointSetPlane2DXParam"), SuppressUnmanagedCodeSecurity]
1633 public static extern void JointSetPlane2DXParam(IntPtr j, int parameter, dReal value);
1634
1635 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointSetPlane2DYParam"), SuppressUnmanagedCodeSecurity]
1636 public static extern void JointSetPlane2DYParam(IntPtr j, int parameter, dReal value);
1637
1638 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointSetPRAnchor"), SuppressUnmanagedCodeSecurity]
1639 public static extern void JointSetPRAnchor(IntPtr j, dReal x, dReal y, dReal z);
1640
1641 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointSetPRAxis1"), SuppressUnmanagedCodeSecurity]
1642 public static extern void JointSetPRAxis1(IntPtr j, dReal x, dReal y, dReal z);
1643
1644 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointSetPRAxis2"), SuppressUnmanagedCodeSecurity]
1645 public static extern void JointSetPRAxis2(IntPtr j, dReal x, dReal y, dReal z);
1646
1647 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointSetPRParam"), SuppressUnmanagedCodeSecurity]
1648 public static extern void JointSetPRParam(IntPtr j, int parameter, dReal value);
1649
1650 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointSetSliderAxis"), SuppressUnmanagedCodeSecurity]
1651 public static extern void JointSetSliderAxis(IntPtr j, dReal x, dReal y, dReal z);
1652
1653 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointSetSliderAxisDelta"), SuppressUnmanagedCodeSecurity]
1654 public static extern void JointSetSliderAxisDelta(IntPtr j, dReal x, dReal y, dReal z, dReal ax, dReal ay, dReal az);
1655
1656 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointSetSliderParam"), SuppressUnmanagedCodeSecurity]
1657 public static extern void JointSetSliderParam(IntPtr j, int parameter, dReal value);
1658
1659 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointSetUniversalAnchor"), SuppressUnmanagedCodeSecurity]
1660 public static extern void JointSetUniversalAnchor(IntPtr j, dReal x, dReal y, dReal z);
1661
1662 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointSetUniversalAxis1"), SuppressUnmanagedCodeSecurity]
1663 public static extern void JointSetUniversalAxis1(IntPtr j, dReal x, dReal y, dReal z);
1664
1665 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointSetUniversalAxis2"), SuppressUnmanagedCodeSecurity]
1666 public static extern void JointSetUniversalAxis2(IntPtr j, dReal x, dReal y, dReal z);
1667
1668 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dJointSetUniversalParam"), SuppressUnmanagedCodeSecurity]
1669 public static extern void JointSetUniversalParam(IntPtr j, int parameter, dReal value);
1670
1671 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dLDLTAddTL"), SuppressUnmanagedCodeSecurity]
1672 public static extern void LDLTAddTL(ref dReal L, ref dReal d, ref dReal a, int n, int nskip);
1673
1674 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dMassAdd"), SuppressUnmanagedCodeSecurity]
1675 public static extern void MassAdd(ref Mass a, ref Mass b);
1676
1677 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dMassAdjust"), SuppressUnmanagedCodeSecurity]
1678 public static extern void MassAdjust(ref Mass m, dReal newmass);
1679
1680 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dMassCheck"), SuppressUnmanagedCodeSecurity]
1681 public static extern bool MassCheck(ref Mass m);
1682
1683 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dMassRotate"), SuppressUnmanagedCodeSecurity]
1684 public static extern void MassRotate(ref Mass mass, ref Matrix3 R);
1685
1686 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dMassRotate"), SuppressUnmanagedCodeSecurity]
1687 public static extern void MassRotate(ref Mass mass, ref dReal M00);
1688
1689 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dMassSetBox"), SuppressUnmanagedCodeSecurity]
1690 public static extern void MassSetBox(out Mass mass, dReal density, dReal lx, dReal ly, dReal lz);
1691
1692 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dMassSetBoxTotal"), SuppressUnmanagedCodeSecurity]
1693 public static extern void MassSetBoxTotal(out Mass mass, dReal total_mass, dReal lx, dReal ly, dReal lz);
1694
1695 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dMassSetCapsule"), SuppressUnmanagedCodeSecurity]
1696 public static extern void MassSetCapsule(out Mass mass, dReal density, int direction, dReal radius, dReal length);
1697
1698 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dMassSetCapsuleTotal"), SuppressUnmanagedCodeSecurity]
1699 public static extern void MassSetCapsuleTotal(out Mass mass, dReal total_mass, int direction, dReal radius, dReal length);
1700
1701 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dMassSetCylinder"), SuppressUnmanagedCodeSecurity]
1702 public static extern void MassSetCylinder(out Mass mass, dReal density, int direction, dReal radius, dReal length);
1703
1704 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dMassSetCylinderTotal"), SuppressUnmanagedCodeSecurity]
1705 public static extern void MassSetCylinderTotal(out Mass mass, dReal total_mass, int direction, dReal radius, dReal length);
1706
1707 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dMassSetParameters"), SuppressUnmanagedCodeSecurity]
1708 public static extern void MassSetParameters(out Mass mass, dReal themass,
1709 dReal cgx, dReal cgy, dReal cgz,
1710 dReal i11, dReal i22, dReal i33,
1711 dReal i12, dReal i13, dReal i23);
1712
1713 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dMassSetSphere"), SuppressUnmanagedCodeSecurity]
1714 public static extern void MassSetSphere(out Mass mass, dReal density, dReal radius);
1715
1716 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dMassSetSphereTotal"), SuppressUnmanagedCodeSecurity]
1717 public static extern void dMassSetSphereTotal(out Mass mass, dReal total_mass, dReal radius);
1718
1719 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dMassSetTrimesh"), SuppressUnmanagedCodeSecurity]
1720 public static extern void MassSetTrimesh(out Mass mass, dReal density, IntPtr g);
1721
1722 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dMassSetZero"), SuppressUnmanagedCodeSecurity]
1723 public static extern void MassSetZero(out Mass mass);
1724
1725 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dMassTranslate"), SuppressUnmanagedCodeSecurity]
1726 public static extern void MassTranslate(ref Mass mass, dReal x, dReal y, dReal z);
1727
1728 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dMultiply0"), SuppressUnmanagedCodeSecurity]
1729 public static extern void Multiply0(out dReal A00, ref dReal B00, ref dReal C00, int p, int q, int r);
1730
1731 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dMultiply0"), SuppressUnmanagedCodeSecurity]
1732 private static extern void MultiplyiM3V3(out Vector3 vout, ref Matrix3 matrix, ref Vector3 vect,int p, int q, int r);
1733 public static void MultiplyM3V3(out Vector3 outvector, ref Matrix3 matrix, ref Vector3 invector)
1734 {
1735 MultiplyiM3V3(out outvector, ref matrix, ref invector, 3, 3, 1);
1736 }
1737
1738 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dMultiply1"), SuppressUnmanagedCodeSecurity]
1739 public static extern void Multiply1(out dReal A00, ref dReal B00, ref dReal C00, int p, int q, int r);
1740
1741 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dMultiply2"), SuppressUnmanagedCodeSecurity]
1742 public static extern void Multiply2(out dReal A00, ref dReal B00, ref dReal C00, int p, int q, int r);
1743
1744 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dQFromAxisAndAngle"), SuppressUnmanagedCodeSecurity]
1745 public static extern void QFromAxisAndAngle(out Quaternion q, dReal ax, dReal ay, dReal az, dReal angle);
1746
1747 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dQfromR"), SuppressUnmanagedCodeSecurity]
1748 public static extern void QfromR(out Quaternion q, ref Matrix3 R);
1749
1750 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dQMultiply0"), SuppressUnmanagedCodeSecurity]
1751 public static extern void QMultiply0(out Quaternion qa, ref Quaternion qb, ref Quaternion qc);
1752
1753 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dQMultiply1"), SuppressUnmanagedCodeSecurity]
1754 public static extern void QMultiply1(out Quaternion qa, ref Quaternion qb, ref Quaternion qc);
1755
1756 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dQMultiply2"), SuppressUnmanagedCodeSecurity]
1757 public static extern void QMultiply2(out Quaternion qa, ref Quaternion qb, ref Quaternion qc);
1758
1759 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dQMultiply3"), SuppressUnmanagedCodeSecurity]
1760 public static extern void QMultiply3(out Quaternion qa, ref Quaternion qb, ref Quaternion qc);
1761
1762 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dQSetIdentity"), SuppressUnmanagedCodeSecurity]
1763 public static extern void QSetIdentity(out Quaternion q);
1764
1765 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dQuadTreeSpaceCreate"), SuppressUnmanagedCodeSecurity]
1766 public static extern IntPtr QuadTreeSpaceCreate(IntPtr space, ref Vector3 center, ref Vector3 extents, int depth);
1767
1768 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dQuadTreeSpaceCreate"), SuppressUnmanagedCodeSecurity]
1769 public static extern IntPtr QuadTreeSpaceCreate(IntPtr space, ref dReal centerX, ref dReal extentsX, int depth);
1770
1771 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dRandReal"), SuppressUnmanagedCodeSecurity]
1772 public static extern dReal RandReal();
1773
1774 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dRFrom2Axes"), SuppressUnmanagedCodeSecurity]
1775 public static extern void RFrom2Axes(out Matrix3 R, dReal ax, dReal ay, dReal az, dReal bx, dReal by, dReal bz);
1776
1777 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dRFromAxisAndAngle"), SuppressUnmanagedCodeSecurity]
1778 public static extern void RFromAxisAndAngle(out Matrix3 R, dReal x, dReal y, dReal z, dReal angle);
1779
1780 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dRFromEulerAngles"), SuppressUnmanagedCodeSecurity]
1781 public static extern void RFromEulerAngles(out Matrix3 R, dReal phi, dReal theta, dReal psi);
1782
1783 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dRfromQ"), SuppressUnmanagedCodeSecurity]
1784 public static extern void RfromQ(out Matrix3 R, ref Quaternion q);
1785
1786 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dRFromZAxis"), SuppressUnmanagedCodeSecurity]
1787 public static extern void RFromZAxis(out Matrix3 R, dReal ax, dReal ay, dReal az);
1788
1789 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dRSetIdentity"), SuppressUnmanagedCodeSecurity]
1790 public static extern void RSetIdentity(out Matrix3 R);
1791
1792 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dSetValue"), SuppressUnmanagedCodeSecurity]
1793 public static extern void SetValue(out dReal a, int n);
1794
1795 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dSetZero"), SuppressUnmanagedCodeSecurity]
1796 public static extern void SetZero(out dReal a, int n);
1797
1798 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dSimpleSpaceCreate"), SuppressUnmanagedCodeSecurity]
1799 public static extern IntPtr SimpleSpaceCreate(IntPtr space);
1800
1801 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dSolveCholesky"), SuppressUnmanagedCodeSecurity]
1802 public static extern void SolveCholesky(ref dReal L, out dReal b, int n);
1803
1804 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dSolveL1"), SuppressUnmanagedCodeSecurity]
1805 public static extern void SolveL1(ref dReal L, out dReal b, int n, int nskip);
1806
1807 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dSolveL1T"), SuppressUnmanagedCodeSecurity]
1808 public static extern void SolveL1T(ref dReal L, out dReal b, int n, int nskip);
1809
1810 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dSolveLDLT"), SuppressUnmanagedCodeSecurity]
1811 public static extern void SolveLDLT(ref dReal L, ref dReal d, out dReal b, int n, int nskip);
1812
1813 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dSpaceAdd"), SuppressUnmanagedCodeSecurity]
1814 public static extern void SpaceAdd(IntPtr space, IntPtr geom);
1815
1816 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dSpaceLockQuery"), SuppressUnmanagedCodeSecurity]
1817 public static extern bool SpaceLockQuery(IntPtr space);
1818
1819 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dSpaceClean"), SuppressUnmanagedCodeSecurity]
1820 public static extern void SpaceClean(IntPtr space);
1821
1822 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dSpaceCollide"), SuppressUnmanagedCodeSecurity]
1823 public static extern void SpaceCollide(IntPtr space, IntPtr data, NearCallback callback);
1824
1825 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dSpaceCollide2"), SuppressUnmanagedCodeSecurity]
1826 public static extern void SpaceCollide2(IntPtr space1, IntPtr space2, IntPtr data, NearCallback callback);
1827
1828 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dSpaceDestroy"), SuppressUnmanagedCodeSecurity]
1829 public static extern void SpaceDestroy(IntPtr space);
1830
1831 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dSpaceGetCleanup"), SuppressUnmanagedCodeSecurity]
1832 public static extern bool SpaceGetCleanup(IntPtr space);
1833
1834 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dSpaceGetNumGeoms"), SuppressUnmanagedCodeSecurity]
1835 public static extern int SpaceGetNumGeoms(IntPtr space);
1836
1837 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dSpaceGetGeom"), SuppressUnmanagedCodeSecurity]
1838 public static extern IntPtr SpaceGetGeom(IntPtr space, int i);
1839
1840 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dSpaceGetSublevel"), SuppressUnmanagedCodeSecurity]
1841 public static extern int SpaceGetSublevel(IntPtr space);
1842
1843 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dSpaceQuery"), SuppressUnmanagedCodeSecurity]
1844 public static extern bool SpaceQuery(IntPtr space, IntPtr geom);
1845
1846 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dSpaceRemove"), SuppressUnmanagedCodeSecurity]
1847 public static extern void SpaceRemove(IntPtr space, IntPtr geom);
1848
1849 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dSpaceSetCleanup"), SuppressUnmanagedCodeSecurity]
1850 public static extern void SpaceSetCleanup(IntPtr space, bool mode);
1851
1852 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dSpaceSetSublevel"), SuppressUnmanagedCodeSecurity]
1853 public static extern void SpaceSetSublevel(IntPtr space, int sublevel);
1854
1855 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dSweepAndPruneSpaceCreate"), SuppressUnmanagedCodeSecurity]
1856 public static extern IntPtr SweepAndPruneSpaceCreate(IntPtr space, int AxisOrder);
1857
1858 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dVectorScale"), SuppressUnmanagedCodeSecurity]
1859 public static extern void VectorScale(out dReal a, ref dReal d, int n);
1860
1861 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dWorldCreate"), SuppressUnmanagedCodeSecurity]
1862 public static extern IntPtr WorldCreate();
1863
1864 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dWorldDestroy"), SuppressUnmanagedCodeSecurity]
1865 public static extern void WorldDestroy(IntPtr world);
1866
1867 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dWorldGetAutoDisableAverageSamplesCount"), SuppressUnmanagedCodeSecurity]
1868 public static extern int WorldGetAutoDisableAverageSamplesCount(IntPtr world);
1869
1870 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dWorldGetAutoDisableAngularThreshold"), SuppressUnmanagedCodeSecurity]
1871 public static extern dReal WorldGetAutoDisableAngularThreshold(IntPtr world);
1872
1873 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dWorldGetAutoDisableFlag"), SuppressUnmanagedCodeSecurity]
1874 public static extern bool WorldGetAutoDisableFlag(IntPtr world);
1875
1876 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dWorldGetAutoDisableLinearThreshold"), SuppressUnmanagedCodeSecurity]
1877 public static extern dReal WorldGetAutoDisableLinearThreshold(IntPtr world);
1878
1879 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dWorldGetAutoDisableSteps"), SuppressUnmanagedCodeSecurity]
1880 public static extern int WorldGetAutoDisableSteps(IntPtr world);
1881
1882 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dWorldGetAutoDisableTime"), SuppressUnmanagedCodeSecurity]
1883 public static extern dReal WorldGetAutoDisableTime(IntPtr world);
1884
1885 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dWorldGetAutoEnableDepthSF1"), SuppressUnmanagedCodeSecurity]
1886 public static extern int WorldGetAutoEnableDepthSF1(IntPtr world);
1887
1888 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dWorldGetCFM"), SuppressUnmanagedCodeSecurity]
1889 public static extern dReal WorldGetCFM(IntPtr world);
1890
1891 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dWorldGetERP"), SuppressUnmanagedCodeSecurity]
1892 public static extern dReal WorldGetERP(IntPtr world);
1893
1894 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dWorldGetGravity"), SuppressUnmanagedCodeSecurity]
1895 public static extern void WorldGetGravity(IntPtr world, out Vector3 gravity);
1896
1897 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dWorldGetGravity"), SuppressUnmanagedCodeSecurity]
1898 public static extern void WorldGetGravity(IntPtr world, out dReal X);
1899
1900 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dWorldGetContactMaxCorrectingVel"), SuppressUnmanagedCodeSecurity]
1901 public static extern dReal WorldGetContactMaxCorrectingVel(IntPtr world);
1902
1903 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dWorldGetContactSurfaceLayer"), SuppressUnmanagedCodeSecurity]
1904 public static extern dReal WorldGetContactSurfaceLayer(IntPtr world);
1905
1906 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dWorldGetAngularDamping"), SuppressUnmanagedCodeSecurity]
1907 public static extern dReal WorldGetAngularDamping(IntPtr world);
1908
1909 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dWorldGetAngularDampingThreshold"), SuppressUnmanagedCodeSecurity]
1910 public static extern dReal WorldGetAngularDampingThreshold(IntPtr world);
1911
1912 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dWorldGetLinearDamping"), SuppressUnmanagedCodeSecurity]
1913 public static extern dReal WorldGetLinearDamping(IntPtr world);
1914
1915 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dWorldGetLinearDampingThreshold"), SuppressUnmanagedCodeSecurity]
1916 public static extern dReal WorldGetLinearDampingThreshold(IntPtr world);
1917
1918 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dWorldGetQuickStepNumIterations"), SuppressUnmanagedCodeSecurity]
1919 public static extern int WorldGetQuickStepNumIterations(IntPtr world);
1920
1921 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dWorldGetQuickStepW"), SuppressUnmanagedCodeSecurity]
1922 public static extern dReal WorldGetQuickStepW(IntPtr world);
1923
1924 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dWorldGetMaxAngularSpeed"), SuppressUnmanagedCodeSecurity]
1925 public static extern dReal WorldGetMaxAngularSpeed(IntPtr world);
1926
1927 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dWorldImpulseToForce"), SuppressUnmanagedCodeSecurity]
1928 public static extern void WorldImpulseToForce(IntPtr world, dReal stepsize, dReal ix, dReal iy, dReal iz, out Vector3 force);
1929
1930 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dWorldImpulseToForce"), SuppressUnmanagedCodeSecurity]
1931 public static extern void WorldImpulseToForce(IntPtr world, dReal stepsize, dReal ix, dReal iy, dReal iz, out dReal forceX);
1932
1933 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dWorldQuickStep"), SuppressUnmanagedCodeSecurity]
1934 public static extern void WorldQuickStep(IntPtr world, dReal stepsize);
1935
1936 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dWorldSetAngularDamping"), SuppressUnmanagedCodeSecurity]
1937 public static extern void WorldSetAngularDamping(IntPtr world, dReal scale);
1938
1939 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dWorldSetAngularDampingThreshold"), SuppressUnmanagedCodeSecurity]
1940 public static extern void WorldSetAngularDampingThreshold(IntPtr world, dReal threshold);
1941
1942 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dWorldSetAutoDisableAngularThreshold"), SuppressUnmanagedCodeSecurity]
1943 public static extern void WorldSetAutoDisableAngularThreshold(IntPtr world, dReal angular_threshold);
1944
1945 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dWorldSetAutoDisableAverageSamplesCount"), SuppressUnmanagedCodeSecurity]
1946 public static extern void WorldSetAutoDisableAverageSamplesCount(IntPtr world, int average_samples_count);
1947
1948 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dWorldSetAutoDisableFlag"), SuppressUnmanagedCodeSecurity]
1949 public static extern void WorldSetAutoDisableFlag(IntPtr world, bool do_auto_disable);
1950
1951 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dWorldSetAutoDisableLinearThreshold"), SuppressUnmanagedCodeSecurity]
1952 public static extern void WorldSetAutoDisableLinearThreshold(IntPtr world, dReal linear_threshold);
1953
1954 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dWorldSetAutoDisableSteps"), SuppressUnmanagedCodeSecurity]
1955 public static extern void WorldSetAutoDisableSteps(IntPtr world, int steps);
1956
1957 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dWorldSetAutoDisableTime"), SuppressUnmanagedCodeSecurity]
1958 public static extern void WorldSetAutoDisableTime(IntPtr world, dReal time);
1959
1960 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dWorldSetAutoEnableDepthSF1"), SuppressUnmanagedCodeSecurity]
1961 public static extern void WorldSetAutoEnableDepthSF1(IntPtr world, int autoEnableDepth);
1962
1963 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dWorldSetCFM"), SuppressUnmanagedCodeSecurity]
1964 public static extern void WorldSetCFM(IntPtr world, dReal cfm);
1965
1966 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dWorldSetContactMaxCorrectingVel"), SuppressUnmanagedCodeSecurity]
1967 public static extern void WorldSetContactMaxCorrectingVel(IntPtr world, dReal vel);
1968
1969 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dWorldSetContactSurfaceLayer"), SuppressUnmanagedCodeSecurity]
1970 public static extern void WorldSetContactSurfaceLayer(IntPtr world, dReal depth);
1971
1972 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dWorldSetDamping"), SuppressUnmanagedCodeSecurity]
1973 public static extern void WorldSetDamping(IntPtr world, dReal linear_scale, dReal angular_scale);
1974
1975 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dWorldSetERP"), SuppressUnmanagedCodeSecurity]
1976 public static extern void WorldSetERP(IntPtr world, dReal erp);
1977
1978 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dWorldSetGravity"), SuppressUnmanagedCodeSecurity]
1979 public static extern void WorldSetGravity(IntPtr world, dReal x, dReal y, dReal z);
1980
1981 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dWorldSetLinearDamping"), SuppressUnmanagedCodeSecurity]
1982 public static extern void WorldSetLinearDamping(IntPtr world, dReal scale);
1983
1984 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dWorldSetLinearDampingThreshold"), SuppressUnmanagedCodeSecurity]
1985 public static extern void WorldSetLinearDampingThreshold(IntPtr world, dReal threshold);
1986
1987 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dWorldSetQuickStepNumIterations"), SuppressUnmanagedCodeSecurity]
1988 public static extern void WorldSetQuickStepNumIterations(IntPtr world, int num);
1989
1990 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dWorldSetQuickStepW"), SuppressUnmanagedCodeSecurity]
1991 public static extern void WorldSetQuickStepW(IntPtr world, dReal over_relaxation);
1992
1993 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dWorldSetMaxAngularSpeed"), SuppressUnmanagedCodeSecurity]
1994 public static extern void WorldSetMaxAngularSpeed(IntPtr world, dReal max_speed);
1995
1996 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dWorldStep"), SuppressUnmanagedCodeSecurity]
1997 public static extern void WorldStep(IntPtr world, dReal stepsize);
1998
1999 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dWorldStepFast1"), SuppressUnmanagedCodeSecurity]
2000 public static extern void WorldStepFast1(IntPtr world, dReal stepsize, int maxiterations);
2001
2002 [DllImport("ode", CallingConvention = CallingConvention.Cdecl, EntryPoint = "dWorldExportDIF"), SuppressUnmanagedCodeSecurity]
2003 public static extern void WorldExportDIF(IntPtr world, string filename, bool append, string prefix);
2004 }
2005}
diff --git a/OpenSim/Region/Physics/UbitOdePlugin/OdePlugin.cs b/OpenSim/Region/Physics/UbitOdePlugin/OdePlugin.cs
new file mode 100644
index 0000000..d32188e
--- /dev/null
+++ b/OpenSim/Region/Physics/UbitOdePlugin/OdePlugin.cs
@@ -0,0 +1,90 @@
1/*
2 * Copyright (c) Contributors, http://opensimulator.org/
3 * See CONTRIBUTORS.TXT for a full list of copyright holders.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 * * Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * * Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
12 * * Neither the name of the OpenSimulator Project nor the
13 * names of its contributors may be used to endorse or promote products
14 * derived from this software without specific prior written permission.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
17 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
20 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28using System;
29using System.Collections.Generic;
30using System.Reflection;
31using System.Runtime.InteropServices;
32using System.Threading;
33using System.IO;
34using System.Diagnostics;
35using log4net;
36using Nini.Config;
37using OdeAPI;
38using OpenSim.Framework;
39using OpenSim.Region.Physics.Manager;
40using OpenMetaverse;
41
42namespace OpenSim.Region.Physics.OdePlugin
43{
44 /// <summary>
45 /// ODE plugin
46 /// </summary>
47 public class OdePlugin : IPhysicsPlugin
48 {
49 //private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
50
51 private OdeScene m_scene;
52
53 public bool Init()
54 {
55 if (Util.IsWindows())
56 Util.LoadArchSpecificWindowsDll("ode.dll");
57
58 if (d.InitODE2(0) != 0)
59 {
60 if (d.AllocateODEDataForThread(~0U) == 0)
61 {
62 d.CloseODE();
63 return false;
64 }
65 return true;
66 }
67 return false;
68 }
69
70 public PhysicsScene GetScene(String sceneIdentifier)
71 {
72 if (m_scene == null)
73 {
74
75 m_scene = new OdeScene(sceneIdentifier);
76 }
77 return (m_scene);
78 }
79
80 public string GetName()
81 {
82 return ("UbitODE");
83 }
84
85 public void Dispose()
86 {
87 d.CloseODE();
88 }
89 }
90} \ No newline at end of file
diff --git a/OpenSim/Region/Physics/UbitOdePlugin/OdeScene.cs b/OpenSim/Region/Physics/UbitOdePlugin/OdeScene.cs
new file mode 100644
index 0000000..286c7f0
--- /dev/null
+++ b/OpenSim/Region/Physics/UbitOdePlugin/OdeScene.cs
@@ -0,0 +1,2835 @@
1/*
2 * Copyright (c) Contributors, http://opensimulator.org/
3 * See CONTRIBUTORS.TXT for a full list of copyright holders.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 * * Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * * Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
12 * * Neither the name of the OpenSimulator Project nor the
13 * names of its contributors may be used to endorse or promote products
14 * derived from this software without specific prior written permission.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
17 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
20 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28//#define SPAM
29
30using System;
31using System.Collections.Generic;
32using System.Reflection;
33using System.Runtime.InteropServices;
34using System.Threading;
35using System.IO;
36using System.Diagnostics;
37using log4net;
38using Nini.Config;
39using OdeAPI;
40using OpenSim.Framework;
41using OpenSim.Region.Physics.Manager;
42using OpenMetaverse;
43
44namespace OpenSim.Region.Physics.OdePlugin
45{
46 public enum StatusIndicators : int
47 {
48 Generic = 0,
49 Start = 1,
50 End = 2
51 }
52
53 public struct sCollisionData
54 {
55 public uint ColliderLocalId;
56 public uint CollidedWithLocalId;
57 public int NumberOfCollisions;
58 public int CollisionType;
59 public int StatusIndicator;
60 public int lastframe;
61 }
62
63 // colision flags of things others can colide with
64 // rays, sensors, probes removed since can't be colided with
65 // The top space where things are placed provided further selection
66 // ie physical are in active space nonphysical in static
67 // this should be exclusive as possible
68
69 [Flags]
70 public enum CollisionCategories : uint
71 {
72 Disabled = 0,
73 //by 'things' types
74 Space = 0x01,
75 Geom = 0x02, // aka prim/part
76 Character = 0x04,
77 Land = 0x08,
78 Water = 0x010,
79
80 // by state
81 Phantom = 0x01000,
82 VolumeDtc = 0x02000,
83 Selected = 0x04000,
84 NoShape = 0x08000,
85
86
87 All = 0xffffffff
88 }
89
90 /// <summary>
91 /// Material type for a primitive
92 /// </summary>
93 public enum Material : int
94 {
95 /// <summary></summary>
96 Stone = 0,
97 /// <summary></summary>
98 Metal = 1,
99 /// <summary></summary>
100 Glass = 2,
101 /// <summary></summary>
102 Wood = 3,
103 /// <summary></summary>
104 Flesh = 4,
105 /// <summary></summary>
106 Plastic = 5,
107 /// <summary></summary>
108 Rubber = 6,
109
110 light = 7 // compatibility with old viewers
111 }
112
113 public enum changes : int
114 {
115 Add = 0, // arg null. finishs the prim creation. should be used internally only ( to remove later ?)
116 Remove,
117 Link, // arg AuroraODEPrim new parent prim or null to delink. Makes the prim part of a object with prim parent as root
118 // or removes from a object if arg is null
119 DeLink,
120 Position, // arg Vector3 new position in world coords. Changes prim position. Prim must know if it is root or child
121 Orientation, // arg Quaternion new orientation in world coords. Changes prim position. Prim must know it it is root or child
122 PosOffset, // not in use
123 // arg Vector3 new position in local coords. Changes prim position in object
124 OriOffset, // not in use
125 // arg Vector3 new position in local coords. Changes prim position in object
126 Velocity,
127 AngVelocity,
128 Acceleration,
129 Force,
130 Torque,
131 Momentum,
132
133 AddForce,
134 AddAngForce,
135 AngLock,
136
137 Size,
138 Shape,
139
140 CollidesWater,
141 VolumeDtc,
142
143 Physical,
144 Phantom,
145 Selected,
146 disabled,
147 building,
148
149 VehicleType,
150 VehicleFloatParam,
151 VehicleVectorParam,
152 VehicleRotationParam,
153 VehicleFlags,
154 SetVehicle,
155
156 Null //keep this last used do dim the methods array. does nothing but pulsing the prim
157 }
158
159 public struct ODEchangeitem
160 {
161 public PhysicsActor actor;
162 public OdeCharacter character;
163 public changes what;
164 public Object arg;
165 }
166
167 public class OdeScene : PhysicsScene
168 {
169 private readonly ILog m_log;
170 // private Dictionary<string, sCollisionData> m_storedCollisions = new Dictionary<string, sCollisionData>();
171
172 public bool OdeUbitLib = false;
173// private int threadid = 0;
174 private Random fluidRandomizer = new Random(Environment.TickCount);
175
176 const d.ContactFlags comumContactFlags = d.ContactFlags.SoftERP | d.ContactFlags.SoftCFM |d.ContactFlags.Approx1 | d.ContactFlags.Bounce;
177 const float MaxERP = 0.8f;
178 const float minERP = 0.1f;
179 const float comumContactCFM = 0.0001f;
180
181 float frictionMovementMult = 0.8f;
182
183 float TerrainBounce = 0.1f;
184 float TerrainFriction = 0.3f;
185
186 public float AvatarFriction = 0;// 0.9f * 0.5f;
187
188 private const uint m_regionWidth = Constants.RegionSize;
189 private const uint m_regionHeight = Constants.RegionSize;
190
191 public float ODE_STEPSIZE = 0.020f;
192 public float HalfOdeStep = 0.01f;
193 public int odetimestepMS = 20; // rounded
194 private float metersInSpace = 25.6f;
195 private float m_timeDilation = 1.0f;
196
197 DateTime m_lastframe;
198
199 public float gravityx = 0f;
200 public float gravityy = 0f;
201 public float gravityz = -9.8f;
202
203 private float waterlevel = 0f;
204 private int framecount = 0;
205
206 private IntPtr WaterGeom = IntPtr.Zero;
207 private IntPtr WaterHeightmapData = IntPtr.Zero;
208 private GCHandle WaterMapHandler = new GCHandle();
209
210 public float avPIDD = 2200f; // make it visible
211 public float avPIDP = 900f; // make it visible
212 private float avCapRadius = 0.37f;
213 private float avDensity = 3f;
214 private float avMovementDivisorWalk = 1.3f;
215 private float avMovementDivisorRun = 0.8f;
216 private float minimumGroundFlightOffset = 3f;
217 public float maximumMassObject = 10000.01f;
218
219 public bool meshSculptedPrim = true;
220 public bool forceSimplePrimMeshing = false;
221
222 public float meshSculptLOD = 32;
223 public float MeshSculptphysicalLOD = 32;
224
225 public float geomDefaultDensity = 10.000006836f;
226
227 public int geomContactPointsStartthrottle = 3;
228 public int geomUpdatesPerThrottledUpdate = 15;
229
230 public float bodyPIDD = 35f;
231 public float bodyPIDG = 25;
232
233// public int geomCrossingFailuresBeforeOutofbounds = 6;
234
235 public int bodyFramesAutoDisable = 5;
236
237
238 private d.NearCallback nearCallback;
239
240 private readonly HashSet<OdeCharacter> _characters = new HashSet<OdeCharacter>();
241 private readonly HashSet<OdePrim> _prims = new HashSet<OdePrim>();
242 private readonly HashSet<OdePrim> _activeprims = new HashSet<OdePrim>();
243 private readonly HashSet<OdePrim> _activegroups = new HashSet<OdePrim>();
244
245 public OpenSim.Framework.LocklessQueue<ODEchangeitem> ChangesQueue = new OpenSim.Framework.LocklessQueue<ODEchangeitem>();
246
247 /// <summary>
248 /// A list of actors that should receive collision events.
249 /// </summary>
250 private readonly List<PhysicsActor> _collisionEventPrim = new List<PhysicsActor>();
251 private readonly List<PhysicsActor> _collisionEventPrimRemove = new List<PhysicsActor>();
252
253 private readonly HashSet<OdeCharacter> _badCharacter = new HashSet<OdeCharacter>();
254 public Dictionary<IntPtr, String> geom_name_map = new Dictionary<IntPtr, String>();
255 public Dictionary<IntPtr, PhysicsActor> actor_name_map = new Dictionary<IntPtr, PhysicsActor>();
256
257 private float contactsurfacelayer = 0.002f;
258
259 private int contactsPerCollision = 80;
260 internal IntPtr ContactgeomsArray = IntPtr.Zero;
261 private IntPtr GlobalContactsArray = IntPtr.Zero;
262
263 const int maxContactsbeforedeath = 4000;
264 private volatile int m_global_contactcount = 0;
265
266
267 private readonly IntPtr contactgroup;
268
269 public ContactData[] m_materialContactsData = new ContactData[8];
270
271 private readonly DoubleDictionary<Vector3, IntPtr, IntPtr> RegionTerrain = new DoubleDictionary<Vector3, IntPtr, IntPtr>();
272 private readonly Dictionary<IntPtr, float[]> TerrainHeightFieldHeights = new Dictionary<IntPtr, float[]>();
273 private readonly Dictionary<IntPtr, GCHandle> TerrainHeightFieldHeightsHandlers = new Dictionary<IntPtr, GCHandle>();
274
275 private int m_physicsiterations = 10;
276 private const float m_SkipFramesAtms = 0.40f; // Drop frames gracefully at a 400 ms lag
277 private readonly PhysicsActor PANull = new NullPhysicsActor();
278 private float step_time = 0.0f;
279
280 public IntPtr world;
281
282 private uint obj2LocalID = 0;
283 private OdeCharacter cc1;
284 private OdePrim cp1;
285 private OdeCharacter cc2;
286 private OdePrim cp2;
287
288 // split the spaces acording to contents type
289 // ActiveSpace contains characters and active prims
290 // StaticSpace contains land and other that is mostly static in enviroment
291 // this can contain subspaces, like the grid in staticspace
292 // as now space only contains this 2 top spaces
293
294 public IntPtr TopSpace; // the global space
295 public IntPtr ActiveSpace; // space for active prims
296 public IntPtr StaticSpace; // space for the static things around
297
298 // some speedup variables
299 private int spaceGridMaxX;
300 private int spaceGridMaxY;
301 private float spacesPerMeter;
302
303 // split static geometry collision into a grid as before
304 private IntPtr[,] staticPrimspace;
305
306 public Object OdeLock;
307 private static Object SimulationLock;
308
309 public IMesher mesher;
310
311 private IConfigSource m_config;
312
313 public bool physics_logging = false;
314 public int physics_logging_interval = 0;
315 public bool physics_logging_append_existing_logfile = false;
316
317 private Vector3 m_worldOffset = Vector3.Zero;
318 public Vector2 WorldExtents = new Vector2((int)Constants.RegionSize, (int)Constants.RegionSize);
319 private PhysicsScene m_parentScene = null;
320
321 private ODERayCastRequestManager m_rayCastManager;
322
323
324/* maybe needed if ode uses tls
325 private void checkThread()
326 {
327
328 int th = Thread.CurrentThread.ManagedThreadId;
329 if(th != threadid)
330 {
331 threadid = th;
332 d.AllocateODEDataForThread(~0U);
333 }
334 }
335 */
336 /// <summary>
337 /// Initiailizes the scene
338 /// Sets many properties that ODE requires to be stable
339 /// These settings need to be tweaked 'exactly' right or weird stuff happens.
340 /// </summary>
341 public OdeScene(string sceneIdentifier)
342 {
343 m_log
344 = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType.ToString() + "." + sceneIdentifier);
345
346// checkThread();
347 Name = sceneIdentifier;
348
349 OdeLock = new Object();
350 SimulationLock = new Object();
351
352 nearCallback = near;
353
354 m_rayCastManager = new ODERayCastRequestManager(this);
355 lock (OdeLock)
356 {
357 // Create the world and the first space
358 try
359 {
360 world = d.WorldCreate();
361 TopSpace = d.HashSpaceCreate(IntPtr.Zero);
362
363 // now the major subspaces
364 ActiveSpace = d.HashSpaceCreate(TopSpace);
365 StaticSpace = d.HashSpaceCreate(TopSpace);
366 }
367 catch
368 {
369 // i must RtC#FM
370 }
371
372 d.HashSpaceSetLevels(TopSpace, -2, 8);
373 d.HashSpaceSetLevels(ActiveSpace, -2, 8);
374 d.HashSpaceSetLevels(StaticSpace, -2, 8);
375
376 // demote to second level
377 d.SpaceSetSublevel(ActiveSpace, 1);
378 d.SpaceSetSublevel(StaticSpace, 1);
379
380 d.GeomSetCategoryBits(ActiveSpace, (uint)(CollisionCategories.Space |
381 CollisionCategories.Geom |
382 CollisionCategories.Character |
383 CollisionCategories.Phantom |
384 CollisionCategories.VolumeDtc
385 ));
386 d.GeomSetCollideBits(ActiveSpace, 0);
387 d.GeomSetCategoryBits(StaticSpace, (uint)(CollisionCategories.Space |
388 CollisionCategories.Geom |
389 CollisionCategories.Land |
390 CollisionCategories.Water |
391 CollisionCategories.Phantom |
392 CollisionCategories.VolumeDtc
393 ));
394 d.GeomSetCollideBits(StaticSpace, 0);
395
396 contactgroup = d.JointGroupCreate(0);
397 //contactgroup
398
399 d.WorldSetAutoDisableFlag(world, false);
400 }
401 }
402
403 // Initialize the mesh plugin
404// public override void Initialise(IMesher meshmerizer, IConfigSource config, RegionInfo region )
405 public override void Initialise(IMesher meshmerizer, IConfigSource config)
406 {
407// checkThread();
408 mesher = meshmerizer;
409 m_config = config;
410/*
411 string ode_config = d.GetConfiguration("ODE");
412 if (ode_config != null && ode_config != "")
413 {
414 m_log.WarnFormat("ODE configuration: {0}", ode_config);
415
416 if (ode_config.Contains("ODE_Ubit"))
417 {
418 OdeUbitLib = true;
419 }
420 }
421*/
422 /*
423 if (region != null)
424 {
425 WorldExtents.X = region.RegionSizeX;
426 WorldExtents.Y = region.RegionSizeY;
427 }
428 */
429
430 // Defaults
431
432 int contactsPerCollision = 80;
433
434 if (m_config != null)
435 {
436 IConfig physicsconfig = m_config.Configs["ODEPhysicsSettings"];
437 if (physicsconfig != null)
438 {
439 gravityx = physicsconfig.GetFloat("world_gravityx", gravityx);
440 gravityy = physicsconfig.GetFloat("world_gravityy", gravityy);
441 gravityz = physicsconfig.GetFloat("world_gravityz", gravityz);
442
443 metersInSpace = physicsconfig.GetFloat("meters_in_small_space", metersInSpace);
444
445 contactsurfacelayer = physicsconfig.GetFloat("world_contact_surface_layer", contactsurfacelayer);
446
447 ODE_STEPSIZE = physicsconfig.GetFloat("world_stepsize", ODE_STEPSIZE);
448 m_physicsiterations = physicsconfig.GetInt("world_internal_steps_without_collisions", m_physicsiterations);
449
450 avDensity = physicsconfig.GetFloat("av_density", avDensity);
451 avMovementDivisorWalk = physicsconfig.GetFloat("av_movement_divisor_walk", avMovementDivisorWalk);
452 avMovementDivisorRun = physicsconfig.GetFloat("av_movement_divisor_run", avMovementDivisorRun);
453 avCapRadius = physicsconfig.GetFloat("av_capsule_radius", avCapRadius);
454
455 contactsPerCollision = physicsconfig.GetInt("contacts_per_collision", contactsPerCollision);
456
457 geomContactPointsStartthrottle = physicsconfig.GetInt("geom_contactpoints_start_throttling", 3);
458 geomUpdatesPerThrottledUpdate = physicsconfig.GetInt("geom_updates_before_throttled_update", 15);
459// geomCrossingFailuresBeforeOutofbounds = physicsconfig.GetInt("geom_crossing_failures_before_outofbounds", 5);
460
461 geomDefaultDensity = physicsconfig.GetFloat("geometry_default_density", geomDefaultDensity);
462 bodyFramesAutoDisable = physicsconfig.GetInt("body_frames_auto_disable", bodyFramesAutoDisable);
463/*
464 bodyPIDD = physicsconfig.GetFloat("body_pid_derivative", bodyPIDD);
465 bodyPIDG = physicsconfig.GetFloat("body_pid_gain", bodyPIDG);
466*/
467 forceSimplePrimMeshing = physicsconfig.GetBoolean("force_simple_prim_meshing", forceSimplePrimMeshing);
468 meshSculptedPrim = physicsconfig.GetBoolean("mesh_sculpted_prim", meshSculptedPrim);
469 meshSculptLOD = physicsconfig.GetFloat("mesh_lod", meshSculptLOD);
470 MeshSculptphysicalLOD = physicsconfig.GetFloat("mesh_physical_lod", MeshSculptphysicalLOD);
471/*
472 if (Environment.OSVersion.Platform == PlatformID.Unix)
473 {
474 avPIDD = physicsconfig.GetFloat("av_pid_derivative_linux", avPIDD);
475 avPIDP = physicsconfig.GetFloat("av_pid_proportional_linux", avPIDP);
476 }
477 else
478 {
479
480 avPIDD = physicsconfig.GetFloat("av_pid_derivative_win", avPIDD);
481 avPIDP = physicsconfig.GetFloat("av_pid_proportional_win", avPIDP);
482 }
483*/
484 physics_logging = physicsconfig.GetBoolean("physics_logging", false);
485 physics_logging_interval = physicsconfig.GetInt("physics_logging_interval", 0);
486 physics_logging_append_existing_logfile = physicsconfig.GetBoolean("physics_logging_append_existing_logfile", false);
487
488 minimumGroundFlightOffset = physicsconfig.GetFloat("minimum_ground_flight_offset", minimumGroundFlightOffset);
489 maximumMassObject = physicsconfig.GetFloat("maximum_mass_object", maximumMassObject);
490 }
491 }
492
493 HalfOdeStep = ODE_STEPSIZE * 0.5f;
494 odetimestepMS = (int)(1000.0f * ODE_STEPSIZE +0.5f);
495
496 ContactgeomsArray = Marshal.AllocHGlobal(contactsPerCollision * d.ContactGeom.unmanagedSizeOf);
497 GlobalContactsArray = GlobalContactsArray = Marshal.AllocHGlobal(maxContactsbeforedeath * d.Contact.unmanagedSizeOf);
498
499 m_materialContactsData[(int)Material.Stone].mu = 0.8f;
500 m_materialContactsData[(int)Material.Stone].bounce = 0.4f;
501
502 m_materialContactsData[(int)Material.Metal].mu = 0.3f;
503 m_materialContactsData[(int)Material.Metal].bounce = 0.4f;
504
505 m_materialContactsData[(int)Material.Glass].mu = 0.2f;
506 m_materialContactsData[(int)Material.Glass].bounce = 0.7f;
507
508 m_materialContactsData[(int)Material.Wood].mu = 0.6f;
509 m_materialContactsData[(int)Material.Wood].bounce = 0.5f;
510
511 m_materialContactsData[(int)Material.Flesh].mu = 0.9f;
512 m_materialContactsData[(int)Material.Flesh].bounce = 0.3f;
513
514 m_materialContactsData[(int)Material.Plastic].mu = 0.4f;
515 m_materialContactsData[(int)Material.Plastic].bounce = 0.7f;
516
517 m_materialContactsData[(int)Material.Rubber].mu = 0.9f;
518 m_materialContactsData[(int)Material.Rubber].bounce = 0.95f;
519
520 m_materialContactsData[(int)Material.light].mu = 0.0f;
521 m_materialContactsData[(int)Material.light].bounce = 0.0f;
522
523 // Set the gravity,, don't disable things automatically (we set it explicitly on some things)
524
525 d.WorldSetGravity(world, gravityx, gravityy, gravityz);
526 d.WorldSetContactSurfaceLayer(world, contactsurfacelayer);
527
528 d.WorldSetLinearDamping(world, 0.001f);
529 d.WorldSetAngularDamping(world, 0.001f);
530 d.WorldSetAngularDampingThreshold(world, 0f);
531 d.WorldSetLinearDampingThreshold(world, 0f);
532 d.WorldSetMaxAngularSpeed(world, 100f);
533
534 d.WorldSetCFM(world,1e-6f); // a bit harder than default
535 //d.WorldSetCFM(world, 1e-4f); // a bit harder than default
536 d.WorldSetERP(world, 0.6f); // higher than original
537
538 // Set how many steps we go without running collision testing
539 // This is in addition to the step size.
540 // Essentially Steps * m_physicsiterations
541 d.WorldSetQuickStepNumIterations(world, m_physicsiterations);
542
543 d.WorldSetContactMaxCorrectingVel(world, 60.0f);
544
545 spacesPerMeter = 1 / metersInSpace;
546 spaceGridMaxX = (int)(WorldExtents.X * spacesPerMeter);
547 spaceGridMaxY = (int)(WorldExtents.Y * spacesPerMeter);
548
549 staticPrimspace = new IntPtr[spaceGridMaxX, spaceGridMaxY];
550
551 // create all spaces now
552 int i, j;
553 IntPtr newspace;
554 for (i = 0; i < spaceGridMaxX; i++)
555 for (j = 0; j < spaceGridMaxY; j++)
556 {
557 newspace = d.HashSpaceCreate(StaticSpace);
558 d.GeomSetCategoryBits(newspace, (int)CollisionCategories.Space);
559 waitForSpaceUnlock(newspace);
560 d.SpaceSetSublevel(newspace, 2);
561 d.HashSpaceSetLevels(newspace, -2, 8);
562 d.GeomSetCategoryBits(newspace, (uint)(CollisionCategories.Space |
563 CollisionCategories.Geom |
564 CollisionCategories.Land |
565 CollisionCategories.Water |
566 CollisionCategories.Phantom |
567 CollisionCategories.VolumeDtc
568 ));
569 d.GeomSetCollideBits(newspace, 0);
570
571 staticPrimspace[i, j] = newspace;
572 }
573 // let this now be real maximum values
574 spaceGridMaxX--;
575 spaceGridMaxY--;
576 m_lastframe = DateTime.UtcNow;
577 }
578
579 internal void waitForSpaceUnlock(IntPtr space)
580 {
581 //if (space != IntPtr.Zero)
582 //while (d.SpaceLockQuery(space)) { } // Wait and do nothing
583 }
584
585 #region Collision Detection
586
587 // sets a global contact for a joint for contactgeom , and base contact description)
588
589 private IntPtr CreateContacJoint(ref d.ContactGeom contactGeom, float mu, float bounce, float cfm, float erpscale, float dscale)
590 {
591 if (GlobalContactsArray == IntPtr.Zero || m_global_contactcount >= maxContactsbeforedeath)
592 return IntPtr.Zero;
593
594 float erp = contactGeom.depth;
595 erp *= erpscale;
596 if (erp < minERP)
597 erp = minERP;
598 else if (erp > MaxERP)
599 erp = MaxERP;
600
601 float depth = contactGeom.depth * dscale;
602 if (depth > 0.5f)
603 depth = 0.5f;
604
605 d.Contact newcontact = new d.Contact();
606 newcontact.geom.depth = depth;
607 newcontact.geom.g1 = contactGeom.g1;
608 newcontact.geom.g2 = contactGeom.g2;
609 newcontact.geom.pos = contactGeom.pos;
610 newcontact.geom.normal = contactGeom.normal;
611 newcontact.geom.side1 = contactGeom.side1;
612 newcontact.geom.side2 = contactGeom.side2;
613
614 // this needs bounce also
615 newcontact.surface.mode = comumContactFlags;
616 newcontact.surface.mu = mu;
617 newcontact.surface.bounce = bounce;
618 newcontact.surface.soft_cfm = cfm;
619 newcontact.surface.soft_erp = erp;
620
621 IntPtr contact = new IntPtr(GlobalContactsArray.ToInt64() + (Int64)(m_global_contactcount * d.Contact.unmanagedSizeOf));
622 Marshal.StructureToPtr(newcontact, contact, true);
623 return d.JointCreateContactPtr(world, contactgroup, contact);
624 }
625
626 private bool GetCurContactGeom(int index, ref d.ContactGeom newcontactgeom)
627 {
628 if (ContactgeomsArray == IntPtr.Zero || index >= contactsPerCollision)
629 return false;
630
631 IntPtr contactptr = new IntPtr(ContactgeomsArray.ToInt64() + (Int64)(index * d.ContactGeom.unmanagedSizeOf));
632 newcontactgeom = (d.ContactGeom)Marshal.PtrToStructure(contactptr, typeof(d.ContactGeom));
633 return true;
634 }
635
636 /// <summary>
637 /// This is our near callback. A geometry is near a body
638 /// </summary>
639 /// <param name="space">The space that contains the geoms. Remember, spaces are also geoms</param>
640 /// <param name="g1">a geometry or space</param>
641 /// <param name="g2">another geometry or space</param>
642 ///
643
644 private void near(IntPtr space, IntPtr g1, IntPtr g2)
645 {
646 // no lock here! It's invoked from within Simulate(), which is thread-locked
647
648 if (m_global_contactcount >= maxContactsbeforedeath)
649 return;
650
651 // Test if we're colliding a geom with a space.
652 // If so we have to drill down into the space recursively
653
654 if (g1 == IntPtr.Zero || g2 == IntPtr.Zero)
655 return;
656
657 if (d.GeomIsSpace(g1) || d.GeomIsSpace(g2))
658 {
659 // We'll be calling near recursivly if one
660 // of them is a space to find all of the
661 // contact points in the space
662 try
663 {
664 d.SpaceCollide2(g1, g2, IntPtr.Zero, nearCallback);
665 }
666 catch (AccessViolationException)
667 {
668 m_log.Warn("[PHYSICS]: Unable to collide test a space");
669 return;
670 }
671 //here one should check collisions of geoms inside a space
672 // but on each space we only should have geoms that not colide amoung each other
673 // so we don't dig inside spaces
674 return;
675 }
676
677 // get geom bodies to check if we already a joint contact
678 // guess this shouldn't happen now
679 IntPtr b1 = d.GeomGetBody(g1);
680 IntPtr b2 = d.GeomGetBody(g2);
681
682 // d.GeomClassID id = d.GeomGetClass(g1);
683
684 // Figure out how many contact points we have
685 int count = 0;
686 try
687 {
688 // Colliding Geom To Geom
689 // This portion of the function 'was' blatantly ripped off from BoxStack.cs
690
691 if (g1 == g2)
692 return; // Can't collide with yourself
693
694 if (b1 != IntPtr.Zero && b2 != IntPtr.Zero && d.AreConnectedExcluding(b1, b2, d.JointType.Contact))
695 return;
696
697 count = d.CollidePtr(g1, g2, (contactsPerCollision & 0xffff), ContactgeomsArray, d.ContactGeom.unmanagedSizeOf);
698 }
699 catch (SEHException)
700 {
701 m_log.Error("[PHYSICS]: The Operating system shut down ODE because of corrupt memory. This could be a result of really irregular terrain. If this repeats continuously, restart using Basic Physics and terrain fill your terrain. Restarting the sim.");
702// ode.drelease(world);
703 base.TriggerPhysicsBasedRestart();
704 }
705 catch (Exception e)
706 {
707 m_log.WarnFormat("[PHYSICS]: Unable to collide test an object: {0}", e.Message);
708 return;
709 }
710
711 // id contacts done
712 if (count == 0)
713 return;
714
715 // try get physical actors
716 PhysicsActor p1;
717 PhysicsActor p2;
718
719 if (!actor_name_map.TryGetValue(g1, out p1))
720 {
721 p1 = PANull;
722 }
723
724 if (!actor_name_map.TryGetValue(g2, out p2))
725 {
726 p2 = PANull;
727 }
728
729 // update actors collision score
730 if (p1.CollisionScore >= float.MaxValue - count)
731 p1.CollisionScore = 0;
732 p1.CollisionScore += count;
733
734 if (p2.CollisionScore >= float.MaxValue - count)
735 p2.CollisionScore = 0;
736 p2.CollisionScore += count;
737
738
739 // get first contact
740 d.ContactGeom curContact = new d.ContactGeom();
741 if (!GetCurContactGeom(0, ref curContact))
742 return;
743 // for now it's the one with max depth
744 ContactPoint maxDepthContact = new ContactPoint(
745 new Vector3(curContact.pos.X, curContact.pos.Y, curContact.pos.Z),
746 new Vector3(curContact.normal.X, curContact.normal.Y, curContact.normal.Z),
747 curContact.depth
748 );
749 // do volume detection case
750 if (
751 (p1.IsVolumeDtc || p2.IsVolumeDtc))
752 {
753 collision_accounting_events(p1, p2, maxDepthContact);
754 return;
755 }
756
757 // big messy collision analises
758
759 Vector3 normoverride = Vector3.Zero; //damm c#
760
761 float mu = 0;
762 float bounce = 0;
763 float cfm = 0.0001f;
764 float erpscale = 1.0f;
765 float dscale = 1.0f;
766 bool IgnoreNegSides = false;
767
768 ContactData contactdata1 = new ContactData(0, 0, false);
769 ContactData contactdata2 = new ContactData(0, 0, false);
770
771 String name = null;
772 bool dop1foot = false;
773 bool dop2foot = false;
774 bool ignore = false;
775 bool AvanormOverride = false;
776
777 switch (p1.PhysicsActorType)
778 {
779 case (int)ActorTypes.Agent:
780 {
781 AvanormOverride = true;
782 Vector3 tmp = p2.Position - p1.Position;
783 normoverride = p2.Velocity - p1.Velocity;
784 mu = normoverride.LengthSquared();
785
786 if (mu > 1e-6)
787 {
788 mu = 1.0f / (float)Math.Sqrt(mu);
789 normoverride *= mu;
790 mu = Vector3.Dot(tmp, normoverride);
791 if (mu > 0)
792 normoverride *= -1;
793 }
794 else
795 {
796 tmp.Normalize();
797 normoverride = -tmp;
798 }
799
800 switch (p2.PhysicsActorType)
801 {
802 case (int)ActorTypes.Agent:
803/*
804 p1.getContactData(ref contactdata1);
805 p2.getContactData(ref contactdata2);
806
807 mu = (float)Math.Sqrt(contactdata1.mu * contactdata2.mu);
808
809 if ((Math.Abs(p2.Velocity.X - p1.Velocity.X) > 0.1f || Math.Abs(p2.Velocity.Y - p1.Velocity.Y) > 0.1f))
810 mu *= frictionMovementMult;
811*/
812 p1.CollidingObj = true;
813 p2.CollidingObj = true;
814 break;
815 case (int)ActorTypes.Prim:
816/*
817 p1.getContactData(ref contactdata1);
818 p2.getContactData(ref contactdata2);
819
820
821 mu = (float)Math.Sqrt(contactdata1.mu * contactdata2.mu);
822
823 if ((Math.Abs(p2.Velocity.X - p1.Velocity.X) > 0.1f || Math.Abs(p2.Velocity.Y - p1.Velocity.Y) > 0.1f))
824 mu *= frictionMovementMult;
825 */
826 if (p2.Velocity.LengthSquared() > 0.0f)
827 p2.CollidingObj = true;
828
829 dop1foot = true;
830 break;
831 default:
832 ignore = true; // avatar to terrain and water ignored
833 break;
834 }
835 break;
836 }
837
838 case (int)ActorTypes.Prim:
839 switch (p2.PhysicsActorType)
840 {
841 case (int)ActorTypes.Agent:
842 // p1.getContactData(ref contactdata1);
843 // p2.getContactData(ref contactdata2);
844
845 AvanormOverride = true;
846
847 Vector3 tmp = p2.Position - p1.Position;
848 normoverride = p2.Velocity - p1.Velocity;
849 mu = normoverride.LengthSquared();
850 if (mu > 1e-6)
851 {
852 mu = 1.0f / (float)Math.Sqrt(mu);
853 normoverride *= mu;
854 mu = Vector3.Dot(tmp, normoverride);
855 if (mu > 0)
856 normoverride *= -1;
857 }
858 else
859 {
860 tmp.Normalize();
861 normoverride = -tmp;
862 }
863
864 bounce = 0;
865 mu = 0;
866 cfm = 0.0001f;
867 /*
868 mu = (float)Math.Sqrt(contactdata1.mu * contactdata2.mu);
869
870 if ((Math.Abs(p2.Velocity.X - p1.Velocity.X) > 0.1f || Math.Abs(p2.Velocity.Y - p1.Velocity.Y) > 0.1f))
871 mu *= frictionMovementMult;
872 */
873 dop2foot = true;
874 if (p1.Velocity.LengthSquared() > 0.0f)
875 p1.CollidingObj = true;
876 break;
877 case (int)ActorTypes.Prim:
878 if ((p1.Velocity - p2.Velocity).LengthSquared() > 0.0f)
879 {
880 p1.CollidingObj = true;
881 p2.CollidingObj = true;
882 }
883 p1.getContactData(ref contactdata1);
884 p2.getContactData(ref contactdata2);
885 bounce = contactdata1.bounce * contactdata2.bounce;
886 mu = (float)Math.Sqrt(contactdata1.mu * contactdata2.mu);
887
888 cfm = p1.Mass;
889 if (cfm > p2.Mass)
890 cfm = p2.Mass;
891 dscale = 10 / cfm;
892 dscale = (float)Math.Sqrt(dscale);
893 if (dscale > 1.0f)
894 dscale = 1.0f;
895 erpscale = cfm * 0.01f;
896 cfm = 0.0001f / cfm;
897 if (cfm > 0.01f)
898 cfm = 0.01f;
899
900 if ((Math.Abs(p2.Velocity.X - p1.Velocity.X) > 0.1f || Math.Abs(p2.Velocity.Y - p1.Velocity.Y) > 0.1f))
901 mu *= frictionMovementMult;
902
903 break;
904 default:
905 if (geom_name_map.TryGetValue(g2, out name))
906 {
907 if (name == "Terrain")
908 {
909 p1.getContactData(ref contactdata1);
910 bounce = contactdata1.bounce * TerrainBounce;
911 mu = (float)Math.Sqrt(contactdata1.mu * TerrainFriction);
912 if (Math.Abs(p1.Velocity.X) > 0.1f || Math.Abs(p1.Velocity.Y) > 0.1f)
913 mu *= frictionMovementMult;
914 p1.CollidingGround = true;
915
916 cfm = p1.Mass;
917 dscale = 10 / cfm;
918 dscale = (float)Math.Sqrt(dscale);
919 if (dscale > 1.0f)
920 dscale = 1.0f;
921 erpscale = cfm * 0.01f;
922 cfm = 0.0001f / cfm;
923 if (cfm > 0.01f)
924 cfm = 0.01f;
925
926 if (d.GeomGetClass(g1) == d.GeomClassID.TriMeshClass)
927 {
928 if (curContact.side1 > 0)
929 IgnoreNegSides = true;
930 }
931
932 }
933 else if (name == "Water")
934 {
935 ignore = true;
936 }
937 }
938 else
939 ignore = true;
940 break;
941 }
942 break;
943
944 default:
945 if (geom_name_map.TryGetValue(g1, out name))
946 {
947 if (name == "Terrain")
948 {
949 if (p2.PhysicsActorType == (int)ActorTypes.Prim)
950 {
951 p2.CollidingGround = true;
952 p2.getContactData(ref contactdata2);
953 bounce = contactdata2.bounce * TerrainBounce;
954 mu = (float)Math.Sqrt(contactdata2.mu * TerrainFriction);
955
956 cfm = p2.Mass;
957 dscale = 10 / cfm;
958 dscale = (float)Math.Sqrt(dscale);
959
960 if (dscale > 1.0f)
961 dscale = 1.0f;
962
963 erpscale = cfm * 0.01f;
964 cfm = 0.0001f / cfm;
965 if (cfm > 0.01f)
966 cfm = 0.01f;
967
968 if (curContact.side1 > 0) // should be 2 ?
969 IgnoreNegSides = true;
970
971 if (Math.Abs(p2.Velocity.X) > 0.1f || Math.Abs(p2.Velocity.Y) > 0.1f)
972 mu *= frictionMovementMult;
973 }
974 else
975 ignore = true;
976
977 }
978 else if (name == "Water" &&
979 (p2.PhysicsActorType == (int)ActorTypes.Prim || p2.PhysicsActorType == (int)ActorTypes.Agent))
980 {
981 ignore = true;
982 }
983 }
984 else
985 ignore = true;
986 break;
987 }
988
989 if (ignore)
990 return;
991
992 IntPtr Joint;
993
994 int i = 0;
995 while(true)
996 {
997
998 if (IgnoreNegSides && curContact.side1 < 0)
999 {
1000 if (++i >= count)
1001 break;
1002
1003 if (!GetCurContactGeom(i, ref curContact))
1004 break;
1005 }
1006 else
1007
1008 {
1009
1010 if (AvanormOverride)
1011 {
1012 if (curContact.depth > 0.3f)
1013 {
1014 if (dop1foot && (p1.Position.Z - curContact.pos.Z) > (p1.Size.Z - avCapRadius) * 0.5f)
1015 p1.IsColliding = true;
1016 if (dop2foot && (p2.Position.Z - curContact.pos.Z) > (p2.Size.Z - avCapRadius) * 0.5f)
1017 p2.IsColliding = true;
1018 curContact.normal.X = normoverride.X;
1019 curContact.normal.Y = normoverride.Y;
1020 curContact.normal.Z = normoverride.Z;
1021 }
1022
1023 else
1024 {
1025 if (dop1foot)
1026 {
1027 float sz = p1.Size.Z;
1028 Vector3 vtmp = p1.Position;
1029 float ppos = curContact.pos.Z - vtmp.Z + (sz - avCapRadius) * 0.5f;
1030 if (ppos > 0f)
1031 {
1032 if (!p1.Flying)
1033 {
1034 d.AABB aabb;
1035 d.GeomGetAABB(g2, out aabb);
1036 float tmp = vtmp.Z - sz * .25f;
1037
1038 if (aabb.MaxZ < tmp)
1039 {
1040 vtmp.X = curContact.pos.X - vtmp.X;
1041 vtmp.Y = curContact.pos.Y - vtmp.Y;
1042 vtmp.Z = -0.2f;
1043 vtmp.Normalize();
1044 curContact.normal.X = vtmp.X;
1045 curContact.normal.Y = vtmp.Y;
1046 curContact.normal.Z = vtmp.Z;
1047 }
1048 }
1049 }
1050 else
1051 p1.IsColliding = true;
1052
1053 }
1054
1055 if (dop2foot)
1056 {
1057 float sz = p2.Size.Z;
1058 Vector3 vtmp = p2.Position;
1059 float ppos = curContact.pos.Z - vtmp.Z + (sz - avCapRadius) * 0.5f;
1060 if (ppos > 0f)
1061 {
1062 if (!p2.Flying)
1063 {
1064 d.AABB aabb;
1065 d.GeomGetAABB(g1, out aabb);
1066 float tmp = vtmp.Z - sz * .25f;
1067
1068 if (aabb.MaxZ < tmp)
1069 {
1070 vtmp.X = curContact.pos.X - vtmp.X;
1071 vtmp.Y = curContact.pos.Y - vtmp.Y;
1072 vtmp.Z = -0.2f;
1073 vtmp.Normalize();
1074 curContact.normal.X = vtmp.X;
1075 curContact.normal.Y = vtmp.Y;
1076 curContact.normal.Z = vtmp.Z;
1077 }
1078 }
1079 }
1080 else
1081 p2.IsColliding = true;
1082
1083 }
1084 }
1085 }
1086
1087 Joint = CreateContacJoint(ref curContact, mu, bounce, cfm, erpscale, dscale);
1088 d.JointAttach(Joint, b1, b2);
1089
1090 if (++m_global_contactcount >= maxContactsbeforedeath)
1091 break;
1092
1093 if (++i >= count)
1094 break;
1095
1096 if (!GetCurContactGeom(i, ref curContact))
1097 break;
1098
1099 if (curContact.depth > maxDepthContact.PenetrationDepth)
1100 {
1101 maxDepthContact.Position.X = curContact.pos.X;
1102 maxDepthContact.Position.Y = curContact.pos.Y;
1103 maxDepthContact.Position.Z = curContact.pos.Z;
1104 maxDepthContact.SurfaceNormal.X = curContact.normal.X;
1105 maxDepthContact.SurfaceNormal.Y = curContact.normal.Y;
1106 maxDepthContact.SurfaceNormal.Z = curContact.normal.Z;
1107 maxDepthContact.PenetrationDepth = curContact.depth;
1108 }
1109 }
1110 }
1111
1112 collision_accounting_events(p1, p2, maxDepthContact);
1113
1114/*
1115 if (notskipedcount > geomContactPointsStartthrottle)
1116 {
1117 // If there are more then 3 contact points, it's likely
1118 // that we've got a pile of objects, so ...
1119 // We don't want to send out hundreds of terse updates over and over again
1120 // so lets throttle them and send them again after it's somewhat sorted out.
1121 this needs checking so out for now
1122 if (b1 != IntPtr.Zero)
1123 p1.ThrottleUpdates = true;
1124 if (b2 != IntPtr.Zero)
1125 p2.ThrottleUpdates = true;
1126
1127 }
1128 */
1129 }
1130
1131 private void collision_accounting_events(PhysicsActor p1, PhysicsActor p2, ContactPoint contact)
1132 {
1133 obj2LocalID = 0;
1134 bool p1events = p1.SubscribedEvents();
1135 bool p2events = p2.SubscribedEvents();
1136
1137 if (p1.IsVolumeDtc)
1138 p2events = false;
1139 if (p2.IsVolumeDtc)
1140 p1events = false;
1141
1142 if (!(p2events || p1events))
1143 return;
1144
1145 if (p1events)
1146 AddCollisionEventReporting(p1);
1147
1148 if (p2events)
1149 AddCollisionEventReporting(p2);
1150
1151 Vector3 vel = Vector3.Zero;
1152 if (p2 != null && p2.IsPhysical)
1153 vel = p2.Velocity;
1154
1155 if (p1 != null && p1.IsPhysical)
1156 vel -= p1.Velocity;
1157
1158 contact.RelativeSpeed = Vector3.Dot(vel, contact.SurfaceNormal);
1159
1160 switch ((ActorTypes)p1.PhysicsActorType)
1161 {
1162 case ActorTypes.Agent:
1163 cc1 = (OdeCharacter)p1;
1164 switch ((ActorTypes)p2.PhysicsActorType)
1165 {
1166 case ActorTypes.Agent:
1167 cc2 = (OdeCharacter)p2;
1168 obj2LocalID = cc2.m_localID;
1169 if (p2events)
1170 cc2.AddCollisionEvent(cc1.m_localID, contact);
1171 break;
1172
1173 case ActorTypes.Prim:
1174 if (p2 is OdePrim)
1175 {
1176 cp2 = (OdePrim)p2;
1177 obj2LocalID = cp2.m_localID;
1178 if (p2events)
1179 cp2.AddCollisionEvent(cc1.m_localID, contact);
1180 }
1181 break;
1182
1183 case ActorTypes.Ground:
1184 case ActorTypes.Unknown:
1185 default:
1186 obj2LocalID = 0;
1187 break;
1188 }
1189 if (p1events)
1190 {
1191 contact.SurfaceNormal = -contact.SurfaceNormal;
1192 cc1.AddCollisionEvent(obj2LocalID, contact);
1193 }
1194 break;
1195
1196 case ActorTypes.Prim:
1197
1198 if (p1 is OdePrim)
1199 {
1200 cp1 = (OdePrim)p1;
1201
1202 // obj1LocalID = cp2.m_localID;
1203 switch ((ActorTypes)p2.PhysicsActorType)
1204 {
1205 case ActorTypes.Agent:
1206 if (p2 is OdeCharacter)
1207 {
1208 cc2 = (OdeCharacter)p2;
1209 obj2LocalID = cc2.m_localID;
1210 if (p2events)
1211 cc2.AddCollisionEvent(cp1.m_localID, contact);
1212 }
1213 break;
1214 case ActorTypes.Prim:
1215
1216 if (p2 is OdePrim)
1217 {
1218 cp2 = (OdePrim)p2;
1219 obj2LocalID = cp2.m_localID;
1220 if (p2events)
1221 cp2.AddCollisionEvent(cp1.m_localID, contact);
1222 }
1223 break;
1224
1225 case ActorTypes.Ground:
1226 case ActorTypes.Unknown:
1227 default:
1228 obj2LocalID = 0;
1229 break;
1230 }
1231 if (p1events)
1232 {
1233 contact.SurfaceNormal = -contact.SurfaceNormal;
1234 cp1.AddCollisionEvent(obj2LocalID, contact);
1235 }
1236 }
1237 break;
1238 case ActorTypes.Ground:
1239 case ActorTypes.Unknown:
1240 default:
1241 switch ((ActorTypes)p2.PhysicsActorType)
1242 {
1243 case ActorTypes.Agent:
1244 if (p2 is OdeCharacter)
1245 {
1246 cc2 = (OdeCharacter)p2;
1247 obj2LocalID = cc2.m_localID;
1248 if (p2events)
1249 cc2.AddCollisionEvent(0, contact);
1250 }
1251 break;
1252 case ActorTypes.Prim:
1253 if (p2 is OdePrim)
1254 {
1255 cp2 = (OdePrim)p2;
1256 obj2LocalID = cp2.m_localID;
1257 if (p2events)
1258 cp2.AddCollisionEvent(0, contact);
1259 }
1260 break;
1261 }
1262 break;
1263 }
1264 }
1265
1266 /// <summary>
1267 /// This is our collision testing routine in ODE
1268 /// </summary>
1269 /// <param name="timeStep"></param>
1270 private void collision_optimized()
1271 {
1272 lock (_characters)
1273 {
1274 try
1275 {
1276 foreach (OdeCharacter chr in _characters)
1277 {
1278 if (chr == null || chr.Shell == IntPtr.Zero || chr.Body == IntPtr.Zero)
1279 continue;
1280
1281 chr.IsColliding = false;
1282 // chr.CollidingGround = false; not done here
1283 chr.CollidingObj = false;
1284 // do colisions with static space
1285 d.SpaceCollide2(StaticSpace, chr.Shell, IntPtr.Zero, nearCallback);
1286 }
1287 }
1288 catch (AccessViolationException)
1289 {
1290 m_log.Warn("[PHYSICS]: Unable to collide Character to static space");
1291 }
1292
1293 }
1294
1295 lock (_activeprims)
1296 {
1297 foreach (OdePrim aprim in _activeprims)
1298 {
1299 aprim.CollisionScore = 0;
1300 aprim.IsColliding = false;
1301 }
1302 }
1303
1304 // collide active prims with static enviroment
1305 lock (_activegroups)
1306 {
1307 try
1308 {
1309 foreach (OdePrim prm in _activegroups)
1310 {
1311 if (d.BodyIsEnabled(prm.Body) && !prm.m_outbounds)
1312 d.SpaceCollide2(StaticSpace, prm.collide_geom, IntPtr.Zero, nearCallback);
1313 }
1314 }
1315 catch (AccessViolationException)
1316 {
1317 m_log.Warn("[PHYSICS]: Unable to collide Active prim to static space");
1318 }
1319 }
1320 // finally colide active things amoung them
1321 try
1322 {
1323 d.SpaceCollide(ActiveSpace, IntPtr.Zero, nearCallback);
1324 }
1325 catch (AccessViolationException)
1326 {
1327 m_log.Warn("[PHYSICS]: Unable to collide in Active space");
1328 }
1329// _perloopContact.Clear();
1330 }
1331
1332 #endregion
1333 /// <summary>
1334 /// Add actor to the list that should receive collision events in the simulate loop.
1335 /// </summary>
1336 /// <param name="obj"></param>
1337 public void AddCollisionEventReporting(PhysicsActor obj)
1338 {
1339 if (!_collisionEventPrim.Contains(obj))
1340 _collisionEventPrim.Add(obj);
1341 }
1342
1343 /// <summary>
1344 /// Remove actor from the list that should receive collision events in the simulate loop.
1345 /// </summary>
1346 /// <param name="obj"></param>
1347 public void RemoveCollisionEventReporting(PhysicsActor obj)
1348 {
1349 if (_collisionEventPrim.Contains(obj) && !_collisionEventPrimRemove.Contains(obj))
1350 _collisionEventPrimRemove.Add(obj);
1351 }
1352
1353
1354 #region Add/Remove Entities
1355
1356 public override PhysicsActor AddAvatar(string avName, Vector3 position, Vector3 size, bool isFlying)
1357 {
1358 Vector3 pos;
1359 pos.X = position.X;
1360 pos.Y = position.Y;
1361 pos.Z = position.Z;
1362 OdeCharacter newAv = new OdeCharacter(avName, this, pos, size, avPIDD, avPIDP, avCapRadius, avDensity, avMovementDivisorWalk, avMovementDivisorRun);
1363 newAv.Flying = isFlying;
1364 newAv.MinimumGroundFlightOffset = minimumGroundFlightOffset;
1365
1366 return newAv;
1367 }
1368
1369 public void AddCharacter(OdeCharacter chr)
1370 {
1371 lock (_characters)
1372 {
1373 if (!_characters.Contains(chr))
1374 {
1375 _characters.Add(chr);
1376 if (chr.bad)
1377 m_log.DebugFormat("[PHYSICS] Added BAD actor {0} to characters list", chr.m_uuid);
1378 }
1379 }
1380 }
1381
1382 public void RemoveCharacter(OdeCharacter chr)
1383 {
1384 lock (_characters)
1385 {
1386 if (_characters.Contains(chr))
1387 {
1388 _characters.Remove(chr);
1389 }
1390 }
1391 }
1392
1393 public void BadCharacter(OdeCharacter chr)
1394 {
1395 lock (_badCharacter)
1396 {
1397 if (!_badCharacter.Contains(chr))
1398 _badCharacter.Add(chr);
1399 }
1400 }
1401
1402 public override void RemoveAvatar(PhysicsActor actor)
1403 {
1404 //m_log.Debug("[PHYSICS]:ODELOCK");
1405 ((OdeCharacter) actor).Destroy();
1406 }
1407
1408 private PhysicsActor AddPrim(String name, Vector3 position, Vector3 size, Quaternion rotation,
1409 PrimitiveBaseShape pbs, bool isphysical, uint localID)
1410 {
1411 Vector3 pos = position;
1412 Vector3 siz = size;
1413 Quaternion rot = rotation;
1414
1415 OdePrim newPrim;
1416 lock (OdeLock)
1417 {
1418 newPrim = new OdePrim(name, this, pos, siz, rot, pbs, isphysical,false,0,localID);
1419
1420 lock (_prims)
1421 _prims.Add(newPrim);
1422 }
1423 return newPrim;
1424 }
1425
1426 private PhysicsActor AddPrim(String name, Vector3 position, Vector3 size, Quaternion rotation,
1427 PrimitiveBaseShape pbs, bool isphysical, bool isPhantom, uint localID)
1428 {
1429 Vector3 pos = position;
1430 Vector3 siz = size;
1431 Quaternion rot = rotation;
1432
1433 OdePrim newPrim;
1434 lock (OdeLock)
1435 {
1436 newPrim = new OdePrim(name, this, pos, siz, rot, pbs, isphysical, isPhantom, 0, localID);
1437
1438 lock (_prims)
1439 _prims.Add(newPrim);
1440 }
1441 return newPrim;
1442 }
1443
1444 private PhysicsActor AddPrim(String name, Vector3 position, Vector3 size, Quaternion rotation,
1445 PrimitiveBaseShape pbs, bool isphysical, bool isPhantom, byte shapeType, uint localID)
1446 {
1447 Vector3 pos = position;
1448 Vector3 siz = size;
1449 Quaternion rot = rotation;
1450
1451 OdePrim newPrim;
1452 lock (OdeLock)
1453 {
1454 newPrim = new OdePrim(name, this, pos, siz, rot, pbs, isphysical, isPhantom, shapeType, localID);
1455
1456 lock (_prims)
1457 _prims.Add(newPrim);
1458 }
1459 return newPrim;
1460 }
1461
1462 public void addActivePrim(OdePrim activatePrim)
1463 {
1464 // adds active prim..
1465 lock (_activeprims)
1466 {
1467 if (!_activeprims.Contains(activatePrim))
1468 _activeprims.Add(activatePrim);
1469 }
1470 }
1471
1472 public void addActiveGroups(OdePrim activatePrim)
1473 {
1474 lock (_activegroups)
1475 {
1476 if (!_activegroups.Contains(activatePrim))
1477 _activegroups.Add(activatePrim);
1478 }
1479 }
1480
1481 public override PhysicsActor AddPrimShape(string primName, PrimitiveBaseShape pbs, Vector3 position,
1482 Vector3 size, Quaternion rotation, bool isPhysical, bool isPhantom, uint localid)
1483 {
1484 return AddPrim(primName, position, size, rotation, pbs, isPhysical, isPhantom, localid);
1485 }
1486
1487
1488 public override PhysicsActor AddPrimShape(string primName, PrimitiveBaseShape pbs, Vector3 position,
1489 Vector3 size, Quaternion rotation, bool isPhysical, uint localid)
1490 {
1491#if SPAM
1492 m_log.DebugFormat("[PHYSICS]: Adding physics actor to {0}", primName);
1493#endif
1494
1495 return AddPrim(primName, position, size, rotation, pbs, isPhysical, localid);
1496 }
1497
1498 public override PhysicsActor AddPrimShape(string primName, PrimitiveBaseShape pbs, Vector3 position,
1499 Vector3 size, Quaternion rotation, bool isPhysical, bool isPhantom, byte shapeType, uint localid)
1500 {
1501#if SPAM
1502 m_log.DebugFormat("[PHYSICS]: Adding physics actor to {0}", primName);
1503#endif
1504
1505 return AddPrim(primName, position, size, rotation, pbs, isPhysical,isPhantom, shapeType, localid);
1506 }
1507
1508 public override float TimeDilation
1509 {
1510 get { return m_timeDilation; }
1511 }
1512
1513 public override bool SupportsNINJAJoints
1514 {
1515 get { return false; }
1516 }
1517
1518
1519 public void remActivePrim(OdePrim deactivatePrim)
1520 {
1521 lock (_activeprims)
1522 {
1523 _activeprims.Remove(deactivatePrim);
1524 }
1525 }
1526 public void remActiveGroup(OdePrim deactivatePrim)
1527 {
1528 lock (_activegroups)
1529 {
1530 _activegroups.Remove(deactivatePrim);
1531 }
1532 }
1533
1534 public override void RemovePrim(PhysicsActor prim)
1535 {
1536 // As with all ODE physics operations, we don't remove the prim immediately but signal that it should be
1537 // removed in the next physics simulate pass.
1538 if (prim is OdePrim)
1539 {
1540// lock (OdeLock)
1541 {
1542
1543 OdePrim p = (OdePrim)prim;
1544 p.setPrimForRemoval();
1545 }
1546 }
1547 }
1548 /// <summary>
1549 /// This is called from within simulate but outside the locked portion
1550 /// We need to do our own locking here
1551 /// (Note: As of 20110801 this no longer appears to be true - this is being called within lock (odeLock) in
1552 /// Simulate() -- justincc).
1553 ///
1554 /// Essentially, we need to remove the prim from our space segment, whatever segment it's in.
1555 ///
1556 /// If there are no more prim in the segment, we need to empty (spacedestroy)the segment and reclaim memory
1557 /// that the space was using.
1558 /// </summary>
1559 /// <param name="prim"></param>
1560 public void RemovePrimThreadLocked(OdePrim prim)
1561 {
1562 //Console.WriteLine("RemovePrimThreadLocked " + prim.m_primName);
1563 lock (prim)
1564 {
1565 RemoveCollisionEventReporting(prim);
1566 lock (_prims)
1567 _prims.Remove(prim);
1568 }
1569
1570 }
1571 #endregion
1572
1573 #region Space Separation Calculation
1574
1575 /// <summary>
1576 /// Called when a static prim moves or becomes static
1577 /// Places the prim in a space one the static sub-spaces grid
1578 /// </summary>
1579 /// <param name="geom">the pointer to the geom that moved</param>
1580 /// <param name="pos">the position that the geom moved to</param>
1581 /// <param name="currentspace">a pointer to the space it was in before it was moved.</param>
1582 /// <returns>a pointer to the new space it's in</returns>
1583 public IntPtr MoveGeomToStaticSpace(IntPtr geom, Vector3 pos, IntPtr currentspace)
1584 {
1585 // moves a prim into another static sub-space or from another space into a static sub-space
1586
1587 // Called ODEPrim so
1588 // it's already in locked space.
1589
1590 if (geom == IntPtr.Zero) // shouldn't happen
1591 return IntPtr.Zero;
1592
1593 // get the static sub-space for current position
1594 IntPtr newspace = calculateSpaceForGeom(pos);
1595
1596 if (newspace == currentspace) // if we are there all done
1597 return newspace;
1598
1599 // else remove it from its current space
1600 if (currentspace != IntPtr.Zero && d.SpaceQuery(currentspace, geom))
1601 {
1602 if (d.GeomIsSpace(currentspace))
1603 {
1604 waitForSpaceUnlock(currentspace);
1605 d.SpaceRemove(currentspace, geom);
1606
1607 if (d.SpaceGetSublevel(currentspace) > 2 && d.SpaceGetNumGeoms(currentspace) == 0)
1608 {
1609 d.SpaceDestroy(currentspace);
1610 }
1611 }
1612 else
1613 {
1614 m_log.Info("[Physics]: Invalid or empty Space passed to 'MoveGeomToStaticSpace':" + currentspace +
1615 " Geom:" + geom);
1616 }
1617 }
1618 else // odd currentspace is null or doesn't contain the geom? lets try the geom ideia of current space
1619 {
1620 currentspace = d.GeomGetSpace(geom);
1621 if (currentspace != IntPtr.Zero)
1622 {
1623 if (d.GeomIsSpace(currentspace))
1624 {
1625 waitForSpaceUnlock(currentspace);
1626 d.SpaceRemove(currentspace, geom);
1627
1628 if (d.SpaceGetSublevel(currentspace) > 2 && d.SpaceGetNumGeoms(currentspace) == 0)
1629 {
1630 d.SpaceDestroy(currentspace);
1631 }
1632
1633 }
1634 }
1635 }
1636
1637 // put the geom in the newspace
1638 waitForSpaceUnlock(newspace);
1639 d.SpaceAdd(newspace, geom);
1640
1641 // let caller know this newspace
1642 return newspace;
1643 }
1644
1645 /// <summary>
1646 /// Calculates the space the prim should be in by its position
1647 /// </summary>
1648 /// <param name="pos"></param>
1649 /// <returns>a pointer to the space. This could be a new space or reused space.</returns>
1650 public IntPtr calculateSpaceForGeom(Vector3 pos)
1651 {
1652 int x, y;
1653 x = (int)(pos.X * spacesPerMeter);
1654 if (x < 0)
1655 x = 0;
1656 else if (x > spaceGridMaxX)
1657 x = spaceGridMaxX;
1658
1659 y = (int)(pos.Y * spacesPerMeter);
1660 if (y < 0)
1661 y = 0;
1662 else if (y >spaceGridMaxY)
1663 y = spaceGridMaxY;
1664
1665 IntPtr tmpSpace = staticPrimspace[x, y];
1666 return tmpSpace;
1667 }
1668
1669 #endregion
1670
1671 /// <summary>
1672 /// Routine to figure out if we need to mesh this prim with our mesher
1673 /// </summary>
1674 /// <param name="pbs"></param>
1675 /// <returns></returns>
1676 public bool needsMeshing(PrimitiveBaseShape pbs)
1677 {
1678 // check sculpts or meshs
1679 if (pbs.SculptEntry)
1680 {
1681 if (meshSculptedPrim)
1682 return true;
1683
1684 if (pbs.SculptType == (byte)SculptType.Mesh) // always do meshs
1685 return true;
1686
1687 return false;
1688 }
1689
1690 if (forceSimplePrimMeshing)
1691 return true;
1692
1693 // if it's a standard box or sphere with no cuts, hollows, twist or top shear, return false since ODE can use an internal representation for the prim
1694
1695 if ((pbs.ProfileShape == ProfileShape.Square && pbs.PathCurve == (byte)Extrusion.Straight)
1696 || (pbs.ProfileShape == ProfileShape.HalfCircle && pbs.PathCurve == (byte)Extrusion.Curve1
1697 && pbs.Scale.X == pbs.Scale.Y && pbs.Scale.Y == pbs.Scale.Z))
1698 {
1699
1700 if (pbs.ProfileBegin == 0 && pbs.ProfileEnd == 0
1701 && pbs.ProfileHollow == 0
1702 && pbs.PathTwist == 0 && pbs.PathTwistBegin == 0
1703 && pbs.PathBegin == 0 && pbs.PathEnd == 0
1704 && pbs.PathTaperX == 0 && pbs.PathTaperY == 0
1705 && pbs.PathScaleX == 100 && pbs.PathScaleY == 100
1706 && pbs.PathShearX == 0 && pbs.PathShearY == 0)
1707 {
1708#if SPAM
1709 m_log.Warn("NonMesh");
1710#endif
1711 return false;
1712 }
1713 }
1714
1715 // following code doesn't give meshs to boxes and spheres ever
1716 // and it's odd.. so for now just return true if asked to force meshs
1717 // hopefully mesher will fail if doesn't suport so things still get basic boxes
1718
1719 int iPropertiesNotSupportedDefault = 0;
1720
1721 if (pbs.ProfileHollow != 0)
1722 iPropertiesNotSupportedDefault++;
1723
1724 if ((pbs.PathBegin != 0) || pbs.PathEnd != 0)
1725 iPropertiesNotSupportedDefault++;
1726
1727 if ((pbs.PathTwistBegin != 0) || (pbs.PathTwist != 0))
1728 iPropertiesNotSupportedDefault++;
1729
1730 if ((pbs.ProfileBegin != 0) || pbs.ProfileEnd != 0)
1731 iPropertiesNotSupportedDefault++;
1732
1733 if ((pbs.PathScaleX != 100) || (pbs.PathScaleY != 100))
1734 iPropertiesNotSupportedDefault++;
1735
1736 if ((pbs.PathShearX != 0) || (pbs.PathShearY != 0))
1737 iPropertiesNotSupportedDefault++;
1738
1739 if (pbs.ProfileShape == ProfileShape.Circle && pbs.PathCurve == (byte)Extrusion.Straight)
1740 iPropertiesNotSupportedDefault++;
1741
1742 if (pbs.ProfileShape == ProfileShape.HalfCircle && pbs.PathCurve == (byte)Extrusion.Curve1 && (pbs.Scale.X != pbs.Scale.Y || pbs.Scale.Y != pbs.Scale.Z || pbs.Scale.Z != pbs.Scale.X))
1743 iPropertiesNotSupportedDefault++;
1744
1745 if (pbs.ProfileShape == ProfileShape.HalfCircle && pbs.PathCurve == (byte) Extrusion.Curve1)
1746 iPropertiesNotSupportedDefault++;
1747
1748 // test for torus
1749 if ((pbs.ProfileCurve & 0x07) == (byte)ProfileShape.Square)
1750 {
1751 if (pbs.PathCurve == (byte)Extrusion.Curve1)
1752 {
1753 iPropertiesNotSupportedDefault++;
1754 }
1755 }
1756 else if ((pbs.ProfileCurve & 0x07) == (byte)ProfileShape.Circle)
1757 {
1758 if (pbs.PathCurve == (byte)Extrusion.Straight)
1759 {
1760 iPropertiesNotSupportedDefault++;
1761 }
1762
1763 // ProfileCurve seems to combine hole shape and profile curve so we need to only compare against the lower 3 bits
1764 else if (pbs.PathCurve == (byte)Extrusion.Curve1)
1765 {
1766 iPropertiesNotSupportedDefault++;
1767 }
1768 }
1769 else if ((pbs.ProfileCurve & 0x07) == (byte)ProfileShape.HalfCircle)
1770 {
1771 if (pbs.PathCurve == (byte)Extrusion.Curve1 || pbs.PathCurve == (byte)Extrusion.Curve2)
1772 {
1773 iPropertiesNotSupportedDefault++;
1774 }
1775 }
1776 else if ((pbs.ProfileCurve & 0x07) == (byte)ProfileShape.EquilateralTriangle)
1777 {
1778 if (pbs.PathCurve == (byte)Extrusion.Straight)
1779 {
1780 iPropertiesNotSupportedDefault++;
1781 }
1782 else if (pbs.PathCurve == (byte)Extrusion.Curve1)
1783 {
1784 iPropertiesNotSupportedDefault++;
1785 }
1786 }
1787
1788 if (iPropertiesNotSupportedDefault == 0)
1789 {
1790#if SPAM
1791 m_log.Warn("NonMesh");
1792#endif
1793 return false;
1794 }
1795#if SPAM
1796 m_log.Debug("Mesh");
1797#endif
1798 return true;
1799 }
1800
1801 /// <summary>
1802 /// Called to queue a change to a actor
1803 /// to use in place of old taint mechanism so changes do have a time sequence
1804 /// </summary>
1805
1806 public void AddChange(PhysicsActor actor, changes what, Object arg)
1807 {
1808 ODEchangeitem item = new ODEchangeitem();
1809 item.actor = actor;
1810 item.what = what;
1811 item.arg = arg;
1812 ChangesQueue.Enqueue(item);
1813 }
1814
1815 /// <summary>
1816 /// Called after our prim properties are set Scale, position etc.
1817 /// We use this event queue like method to keep changes to the physical scene occuring in the threadlocked mutex
1818 /// This assures us that we have no race conditions
1819 /// </summary>
1820 /// <param name="prim"></param>
1821 public override void AddPhysicsActorTaint(PhysicsActor prim)
1822 {
1823 }
1824
1825 /// <summary>
1826 /// This is our main simulate loop
1827 /// It's thread locked by a Mutex in the scene.
1828 /// It holds Collisions, it instructs ODE to step through the physical reactions
1829 /// It moves the objects around in memory
1830 /// It calls the methods that report back to the object owners.. (scenepresence, SceneObjectGroup)
1831 /// </summary>
1832 /// <param name="timeStep"></param>
1833 /// <returns></returns>
1834 public override float Simulate(float timeStep)
1835 {
1836
1837 DateTime now = DateTime.UtcNow;
1838 TimeSpan SinceLastFrame = now - m_lastframe;
1839 m_lastframe = now;
1840 timeStep = (float)SinceLastFrame.TotalSeconds;
1841
1842 // acumulate time so we can reduce error
1843 step_time += timeStep;
1844
1845 if (step_time < HalfOdeStep)
1846 return 0;
1847
1848 if (framecount < 0)
1849 framecount = 0;
1850
1851 framecount++;
1852
1853 int curphysiteractions;
1854
1855 // if in trouble reduce step resolution
1856 if (step_time >= m_SkipFramesAtms)
1857 curphysiteractions = m_physicsiterations / 2;
1858 else
1859 curphysiteractions = m_physicsiterations;
1860
1861 int nodeframes = 0;
1862
1863// checkThread();
1864
1865 lock (SimulationLock)
1866 lock(OdeLock)
1867 {
1868 // adjust number of iterations per step
1869 try
1870 {
1871 d.WorldSetQuickStepNumIterations(world, curphysiteractions);
1872 }
1873 catch (StackOverflowException)
1874 {
1875 m_log.Error("[PHYSICS]: The operating system wasn't able to allocate enough memory for the simulation. Restarting the sim.");
1876// ode.drelease(world);
1877 base.TriggerPhysicsBasedRestart();
1878 }
1879
1880 while (step_time > HalfOdeStep && nodeframes < 10) //limit number of steps so we don't say here for ever
1881 {
1882 try
1883 {
1884 // clear pointer/counter to contacts to pass into joints
1885 m_global_contactcount = 0;
1886
1887 ODEchangeitem item;
1888
1889 if(ChangesQueue.Count >0)
1890 {
1891 int ttmpstart = Util.EnvironmentTickCount();
1892 int ttmp;
1893
1894 while(ChangesQueue.Dequeue(out item))
1895 {
1896 if (item.actor != null)
1897 {
1898 try
1899 {
1900 if (item.actor is OdeCharacter)
1901 ((OdeCharacter)item.actor).DoAChange(item.what, item.arg);
1902 else if (((OdePrim)item.actor).DoAChange(item.what, item.arg))
1903 RemovePrimThreadLocked((OdePrim)item.actor);
1904 }
1905 catch
1906 {
1907 m_log.Warn("[PHYSICS]: doChange failed for a actor");
1908 };
1909 }
1910 ttmp = Util.EnvironmentTickCountSubtract(ttmpstart);
1911 if (ttmp > 20)
1912 break;
1913 }
1914 }
1915
1916 // Move characters
1917 lock (_characters)
1918 {
1919 List<OdeCharacter> defects = new List<OdeCharacter>();
1920 foreach (OdeCharacter actor in _characters)
1921 {
1922 if (actor != null)
1923 actor.Move(ODE_STEPSIZE, defects);
1924 }
1925 if (defects.Count != 0)
1926 {
1927 foreach (OdeCharacter defect in defects)
1928 {
1929 RemoveCharacter(defect);
1930 }
1931 }
1932 }
1933
1934 // Move other active objects
1935 lock (_activegroups)
1936 {
1937 foreach (OdePrim aprim in _activegroups)
1938 {
1939 aprim.Move();
1940 }
1941 }
1942
1943 //if ((framecount % m_randomizeWater) == 0)
1944 // randomizeWater(waterlevel);
1945
1946 m_rayCastManager.ProcessQueuedRequests();
1947
1948 collision_optimized();
1949
1950 foreach (PhysicsActor obj in _collisionEventPrim)
1951 {
1952 if (obj == null)
1953 continue;
1954
1955 switch ((ActorTypes)obj.PhysicsActorType)
1956 {
1957 case ActorTypes.Agent:
1958 OdeCharacter cobj = (OdeCharacter)obj;
1959 cobj.AddCollisionFrameTime((int)(odetimestepMS));
1960 cobj.SendCollisions();
1961 break;
1962
1963 case ActorTypes.Prim:
1964 OdePrim pobj = (OdePrim)obj;
1965 if (pobj.Body == IntPtr.Zero || (d.BodyIsEnabled(pobj.Body) && !pobj.m_outbounds))
1966 {
1967 pobj.AddCollisionFrameTime((int)(odetimestepMS));
1968 pobj.SendCollisions();
1969 }
1970 break;
1971 }
1972 }
1973
1974 foreach (PhysicsActor obj in _collisionEventPrimRemove)
1975 _collisionEventPrim.Remove(obj);
1976
1977 _collisionEventPrimRemove.Clear();
1978
1979 // do a ode simulation step
1980 d.WorldQuickStep(world, ODE_STEPSIZE);
1981 d.JointGroupEmpty(contactgroup);
1982
1983 // update managed ideia of physical data and do updates to core
1984 /*
1985 lock (_characters)
1986 {
1987 foreach (OdeCharacter actor in _characters)
1988 {
1989 if (actor != null)
1990 {
1991 if (actor.bad)
1992 m_log.WarnFormat("[PHYSICS]: BAD Actor {0} in _characters list was not removed?", actor.m_uuid);
1993
1994 actor.UpdatePositionAndVelocity();
1995 }
1996 }
1997 }
1998 */
1999
2000 lock (_activegroups)
2001 {
2002 {
2003 foreach (OdePrim actor in _activegroups)
2004 {
2005 if (actor.IsPhysical)
2006 {
2007 actor.UpdatePositionAndVelocity();
2008 }
2009 }
2010 }
2011 }
2012 }
2013 catch (Exception e)
2014 {
2015 m_log.ErrorFormat("[PHYSICS]: {0}, {1}, {2}", e.Message, e.TargetSite, e);
2016// ode.dunlock(world);
2017 }
2018
2019
2020 step_time -= ODE_STEPSIZE;
2021 nodeframes++;
2022 }
2023
2024 lock (_badCharacter)
2025 {
2026 if (_badCharacter.Count > 0)
2027 {
2028 foreach (OdeCharacter chr in _badCharacter)
2029 {
2030 RemoveCharacter(chr);
2031 }
2032
2033 _badCharacter.Clear();
2034 }
2035 }
2036
2037 int nactivegeoms = d.SpaceGetNumGeoms(ActiveSpace);
2038 int nstaticgeoms = d.SpaceGetNumGeoms(StaticSpace);
2039 int ntopgeoms = d.SpaceGetNumGeoms(TopSpace);
2040 int nbodies = d.NTotalBodies;
2041 int ngeoms = d.NTotalGeoms;
2042
2043 // Finished with all sim stepping. If requested, dump world state to file for debugging.
2044 // TODO: This call to the export function is already inside lock (OdeLock) - but is an extra lock needed?
2045 // TODO: This overwrites all dump files in-place. Should this be a growing logfile, or separate snapshots?
2046 if (physics_logging && (physics_logging_interval > 0) && (framecount % physics_logging_interval == 0))
2047 {
2048 string fname = "state-" + world.ToString() + ".DIF"; // give each physics world a separate filename
2049 string prefix = "world" + world.ToString(); // prefix for variable names in exported .DIF file
2050
2051 if (physics_logging_append_existing_logfile)
2052 {
2053 string header = "-------------- START OF PHYSICS FRAME " + framecount.ToString() + " --------------";
2054 TextWriter fwriter = File.AppendText(fname);
2055 fwriter.WriteLine(header);
2056 fwriter.Close();
2057 }
2058
2059 d.WorldExportDIF(world, fname, physics_logging_append_existing_logfile, prefix);
2060 }
2061
2062 // think time dilation as to do with dinamic step size that we dont' have
2063 // even so tell something to world
2064 if (nodeframes < 10) // we did the requested loops
2065 m_timeDilation = 1.0f;
2066 else if (step_time > 0)
2067 {
2068 m_timeDilation = timeStep / step_time;
2069 if (m_timeDilation > 1)
2070 m_timeDilation = 1;
2071 if (step_time > m_SkipFramesAtms)
2072 step_time = 0;
2073 }
2074 }
2075
2076// return nodeframes * ODE_STEPSIZE; // return real simulated time
2077 return 1000 * nodeframes; // return steps for now * 1000 to keep core happy
2078 }
2079
2080 /// <summary>
2081 public override void GetResults()
2082 {
2083 }
2084
2085 public override bool IsThreaded
2086 {
2087 // for now we won't be multithreaded
2088 get { return (false); }
2089 }
2090
2091 public float GetTerrainHeightAtXY(float x, float y)
2092 {
2093
2094
2095 int offsetX = ((int)(x / (int)Constants.RegionSize)) * (int)Constants.RegionSize;
2096 int offsetY = ((int)(y / (int)Constants.RegionSize)) * (int)Constants.RegionSize;
2097
2098
2099 IntPtr heightFieldGeom = IntPtr.Zero;
2100
2101 // get region map
2102 if (!RegionTerrain.TryGetValue(new Vector3(offsetX, offsetY, 0), out heightFieldGeom))
2103 return 0f;
2104
2105 if (heightFieldGeom == IntPtr.Zero)
2106 return 0f;
2107
2108 if (!TerrainHeightFieldHeights.ContainsKey(heightFieldGeom))
2109 return 0f;
2110
2111 // TerrainHeightField for ODE as offset 1m
2112 x += 1f - offsetX;
2113 y += 1f - offsetY;
2114
2115 // make position fit into array
2116 if (x < 0)
2117 x = 0;
2118 if (y < 0)
2119 y = 0;
2120
2121 // integer indexs
2122 int ix;
2123 int iy;
2124 // interpolators offset
2125 float dx;
2126 float dy;
2127
2128 int regsize = (int)Constants.RegionSize + 3; // map size see setterrain number of samples
2129
2130 if (OdeUbitLib)
2131 {
2132 if (x < regsize - 1)
2133 {
2134 ix = (int)x;
2135 dx = x - (float)ix;
2136 }
2137 else // out world use external height
2138 {
2139 ix = regsize - 2;
2140 dx = 0;
2141 }
2142 if (y < regsize - 1)
2143 {
2144 iy = (int)y;
2145 dy = y - (float)iy;
2146 }
2147 else
2148 {
2149 iy = regsize - 2;
2150 dy = 0;
2151 }
2152 }
2153
2154 else
2155 {
2156 // we still have square fixed size regions
2157 // also flip x and y because of how map is done for ODE fliped axis
2158 // so ix,iy,dx and dy are inter exchanged
2159 if (x < regsize - 1)
2160 {
2161 iy = (int)x;
2162 dy = x - (float)iy;
2163 }
2164 else // out world use external height
2165 {
2166 iy = regsize - 2;
2167 dy = 0;
2168 }
2169 if (y < regsize - 1)
2170 {
2171 ix = (int)y;
2172 dx = y - (float)ix;
2173 }
2174 else
2175 {
2176 ix = regsize - 2;
2177 dx = 0;
2178 }
2179 }
2180
2181 float h0;
2182 float h1;
2183 float h2;
2184
2185 iy *= regsize;
2186 iy += ix; // all indexes have iy + ix
2187
2188 float[] heights = TerrainHeightFieldHeights[heightFieldGeom];
2189 /*
2190 if ((dx + dy) <= 1.0f)
2191 {
2192 h0 = ((float)heights[iy]); // 0,0 vertice
2193 h1 = (((float)heights[iy + 1]) - h0) * dx; // 1,0 vertice minus 0,0
2194 h2 = (((float)heights[iy + regsize]) - h0) * dy; // 0,1 vertice minus 0,0
2195 }
2196 else
2197 {
2198 h0 = ((float)heights[iy + regsize + 1]); // 1,1 vertice
2199 h1 = (((float)heights[iy + 1]) - h0) * (1 - dy); // 1,1 vertice minus 1,0
2200 h2 = (((float)heights[iy + regsize]) - h0) * (1 - dx); // 1,1 vertice minus 0,1
2201 }
2202 */
2203 h0 = ((float)heights[iy]); // 0,0 vertice
2204
2205 if ((dy > dx))
2206 {
2207 iy += regsize;
2208 h2 = (float)heights[iy]; // 0,1 vertice
2209 h1 = (h2 - h0) * dy; // 0,1 vertice minus 0,0
2210 h2 = ((float)heights[iy + 1] - h2) * dx; // 1,1 vertice minus 0,1
2211 }
2212 else
2213 {
2214 iy++;
2215 h2 = (float)heights[iy]; // vertice 1,0
2216 h1 = (h2 - h0) * dx; // 1,0 vertice minus 0,0
2217 h2 = (((float)heights[iy + regsize]) - h2) * dy; // 1,1 vertice minus 1,0
2218 }
2219
2220 return h0 + h1 + h2;
2221 }
2222
2223
2224 public override void SetTerrain(float[] heightMap)
2225 {
2226 if (m_worldOffset != Vector3.Zero && m_parentScene != null)
2227 {
2228 if (m_parentScene is OdeScene)
2229 {
2230 ((OdeScene)m_parentScene).SetTerrain(heightMap, m_worldOffset);
2231 }
2232 }
2233 else
2234 {
2235 SetTerrain(heightMap, m_worldOffset);
2236 }
2237 }
2238
2239 public override void CombineTerrain(float[] heightMap, Vector3 pOffset)
2240 {
2241 SetTerrain(heightMap, pOffset);
2242 }
2243
2244 public void SetTerrain(float[] heightMap, Vector3 pOffset)
2245 {
2246 if (OdeUbitLib)
2247 UbitSetTerrain(heightMap, pOffset);
2248 else
2249 OriSetTerrain(heightMap, pOffset);
2250 }
2251
2252 public void OriSetTerrain(float[] heightMap, Vector3 pOffset)
2253 {
2254 // assumes 1m size grid and constante size square regions
2255 // needs to know about sims around in future
2256
2257 float[] _heightmap;
2258
2259 uint heightmapWidth = Constants.RegionSize + 2;
2260 uint heightmapHeight = Constants.RegionSize + 2;
2261
2262 uint heightmapWidthSamples = heightmapWidth + 1;
2263 uint heightmapHeightSamples = heightmapHeight + 1;
2264
2265 _heightmap = new float[heightmapWidthSamples * heightmapHeightSamples];
2266
2267 const float scale = 1.0f;
2268 const float offset = 0.0f;
2269 const float thickness = 10f;
2270 const int wrap = 0;
2271
2272 uint regionsize = Constants.RegionSize;
2273
2274 float hfmin = float.MaxValue;
2275 float hfmax = float.MinValue;
2276 float val;
2277 uint xx;
2278 uint yy;
2279
2280 uint maxXXYY = regionsize - 1;
2281 // flipping map adding one margin all around so things don't fall in edges
2282
2283 uint xt = 0;
2284 xx = 0;
2285
2286 for (uint x = 0; x < heightmapWidthSamples; x++)
2287 {
2288 if (x > 1 && xx < maxXXYY)
2289 xx++;
2290 yy = 0;
2291 for (uint y = 0; y < heightmapHeightSamples; y++)
2292 {
2293 if (y > 1 && y < maxXXYY)
2294 yy += regionsize;
2295
2296 val = heightMap[yy + xx];
2297 if (val < 0.0f)
2298 val = 0.0f; // no neg terrain as in chode
2299 _heightmap[xt + y] = val;
2300
2301 if (hfmin > val)
2302 hfmin = val;
2303 if (hfmax < val)
2304 hfmax = val;
2305 }
2306 xt += heightmapHeightSamples;
2307 }
2308 lock (OdeLock)
2309 {
2310 IntPtr GroundGeom = IntPtr.Zero;
2311 if (RegionTerrain.TryGetValue(pOffset, out GroundGeom))
2312 {
2313 RegionTerrain.Remove(pOffset);
2314 if (GroundGeom != IntPtr.Zero)
2315 {
2316 d.GeomDestroy(GroundGeom);
2317
2318 if (TerrainHeightFieldHeights.ContainsKey(GroundGeom))
2319 {
2320 TerrainHeightFieldHeightsHandlers[GroundGeom].Free();
2321 TerrainHeightFieldHeightsHandlers.Remove(GroundGeom);
2322 TerrainHeightFieldHeights.Remove(GroundGeom);
2323 }
2324 }
2325 }
2326 IntPtr HeightmapData = d.GeomHeightfieldDataCreate();
2327
2328 GCHandle _heightmaphandler = GCHandle.Alloc(_heightmap, GCHandleType.Pinned);
2329
2330 d.GeomHeightfieldDataBuildSingle(HeightmapData, _heightmaphandler.AddrOfPinnedObject(), 0, heightmapWidth , heightmapHeight,
2331 (int)heightmapWidthSamples, (int)heightmapHeightSamples, scale,
2332 offset, thickness, wrap);
2333
2334 d.GeomHeightfieldDataSetBounds(HeightmapData, hfmin - 1, hfmax + 1);
2335 GroundGeom = d.CreateHeightfield(StaticSpace, HeightmapData, 1);
2336 if (GroundGeom != IntPtr.Zero)
2337 {
2338 d.GeomSetCategoryBits(GroundGeom, (uint)(CollisionCategories.Land));
2339 d.GeomSetCollideBits(GroundGeom, 0);
2340
2341 }
2342 geom_name_map[GroundGeom] = "Terrain";
2343
2344 d.Matrix3 R = new d.Matrix3();
2345
2346 Quaternion q1 = Quaternion.CreateFromAxisAngle(new Vector3(1, 0, 0), 1.5707f);
2347 Quaternion q2 = Quaternion.CreateFromAxisAngle(new Vector3(0, 1, 0), 1.5707f);
2348
2349
2350 q1 = q1 * q2;
2351
2352 Vector3 v3;
2353 float angle;
2354 q1.GetAxisAngle(out v3, out angle);
2355
2356 d.RFromAxisAndAngle(out R, v3.X, v3.Y, v3.Z, angle);
2357 d.GeomSetRotation(GroundGeom, ref R);
2358 d.GeomSetPosition(GroundGeom, pOffset.X + (float)Constants.RegionSize * 0.5f, pOffset.Y + (float)Constants.RegionSize * 0.5f, 0);
2359 RegionTerrain.Add(pOffset, GroundGeom, GroundGeom);
2360// TerrainHeightFieldHeights.Add(GroundGeom, ODElandMap);
2361 TerrainHeightFieldHeights.Add(GroundGeom, _heightmap);
2362 TerrainHeightFieldHeightsHandlers.Add(GroundGeom, _heightmaphandler);
2363
2364 }
2365 }
2366
2367 public void UbitSetTerrain(float[] heightMap, Vector3 pOffset)
2368 {
2369 // assumes 1m size grid and constante size square regions
2370 // needs to know about sims around in future
2371
2372 float[] _heightmap;
2373
2374 uint heightmapWidth = Constants.RegionSize + 2;
2375 uint heightmapHeight = Constants.RegionSize + 2;
2376
2377 uint heightmapWidthSamples = heightmapWidth + 1;
2378 uint heightmapHeightSamples = heightmapHeight + 1;
2379
2380 _heightmap = new float[heightmapWidthSamples * heightmapHeightSamples];
2381
2382
2383 uint regionsize = Constants.RegionSize;
2384
2385 float hfmin = float.MaxValue;
2386// float hfmax = float.MinValue;
2387 float val;
2388
2389
2390 uint maxXXYY = regionsize - 1;
2391 // adding one margin all around so things don't fall in edges
2392
2393 uint xx;
2394 uint yy = 0;
2395 uint yt = 0;
2396
2397 for (uint y = 0; y < heightmapHeightSamples; y++)
2398 {
2399 if (y > 1 && y < maxXXYY)
2400 yy += regionsize;
2401 xx = 0;
2402 for (uint x = 0; x < heightmapWidthSamples; x++)
2403 {
2404 if (x > 1 && x < maxXXYY)
2405 xx++;
2406
2407 val = heightMap[yy + xx];
2408 if (val < 0.0f)
2409 val = 0.0f; // no neg terrain as in chode
2410 _heightmap[yt + x] = val;
2411
2412 if (hfmin > val)
2413 hfmin = val;
2414// if (hfmax < val)
2415// hfmax = val;
2416 }
2417 yt += heightmapWidthSamples;
2418 }
2419 lock (OdeLock)
2420 {
2421 IntPtr GroundGeom = IntPtr.Zero;
2422 if (RegionTerrain.TryGetValue(pOffset, out GroundGeom))
2423 {
2424 RegionTerrain.Remove(pOffset);
2425 if (GroundGeom != IntPtr.Zero)
2426 {
2427 d.GeomDestroy(GroundGeom);
2428
2429 if (TerrainHeightFieldHeights.ContainsKey(GroundGeom))
2430 {
2431 if (TerrainHeightFieldHeightsHandlers[GroundGeom].IsAllocated)
2432 TerrainHeightFieldHeightsHandlers[GroundGeom].Free();
2433 TerrainHeightFieldHeightsHandlers.Remove(GroundGeom);
2434 TerrainHeightFieldHeights.Remove(GroundGeom);
2435 }
2436 }
2437 }
2438 IntPtr HeightmapData = d.GeomHeightfieldDataCreate();
2439
2440 const int wrap = 0;
2441 float thickness = hfmin;
2442 if (thickness < 0)
2443 thickness = 1;
2444
2445 GCHandle _heightmaphandler = GCHandle.Alloc(_heightmap, GCHandleType.Pinned);
2446
2447 d.GeomUbitTerrainDataBuild(HeightmapData, _heightmaphandler.AddrOfPinnedObject(), 0, 1.0f,
2448 (int)heightmapWidthSamples, (int)heightmapHeightSamples,
2449 thickness, wrap);
2450
2451// d.GeomUbitTerrainDataSetBounds(HeightmapData, hfmin - 1, hfmax + 1);
2452 GroundGeom = d.CreateUbitTerrain(StaticSpace, HeightmapData, 1);
2453 if (GroundGeom != IntPtr.Zero)
2454 {
2455 d.GeomSetCategoryBits(GroundGeom, (uint)(CollisionCategories.Land));
2456 d.GeomSetCollideBits(GroundGeom, 0);
2457
2458 }
2459 geom_name_map[GroundGeom] = "Terrain";
2460
2461 d.GeomSetPosition(GroundGeom, pOffset.X + (float)Constants.RegionSize * 0.5f, pOffset.Y + (float)Constants.RegionSize * 0.5f, 0);
2462 RegionTerrain.Add(pOffset, GroundGeom, GroundGeom);
2463 // TerrainHeightFieldHeights.Add(GroundGeom, ODElandMap);
2464 TerrainHeightFieldHeights.Add(GroundGeom, _heightmap);
2465 TerrainHeightFieldHeightsHandlers.Add(GroundGeom, _heightmaphandler);
2466 }
2467 }
2468
2469
2470 public override void DeleteTerrain()
2471 {
2472 }
2473
2474 public float GetWaterLevel()
2475 {
2476 return waterlevel;
2477 }
2478
2479 public override bool SupportsCombining()
2480 {
2481 return true;
2482 }
2483/*
2484 public override void UnCombine(PhysicsScene pScene)
2485 {
2486 IntPtr localGround = IntPtr.Zero;
2487// float[] localHeightfield;
2488 bool proceed = false;
2489 List<IntPtr> geomDestroyList = new List<IntPtr>();
2490
2491 lock (OdeLock)
2492 {
2493 if (RegionTerrain.TryGetValue(Vector3.Zero, out localGround))
2494 {
2495 foreach (IntPtr geom in TerrainHeightFieldHeights.Keys)
2496 {
2497 if (geom == localGround)
2498 {
2499// localHeightfield = TerrainHeightFieldHeights[geom];
2500 proceed = true;
2501 }
2502 else
2503 {
2504 geomDestroyList.Add(geom);
2505 }
2506 }
2507
2508 if (proceed)
2509 {
2510 m_worldOffset = Vector3.Zero;
2511 WorldExtents = new Vector2((int)Constants.RegionSize, (int)Constants.RegionSize);
2512 m_parentScene = null;
2513
2514 foreach (IntPtr g in geomDestroyList)
2515 {
2516 // removingHeightField needs to be done or the garbage collector will
2517 // collect the terrain data before we tell ODE to destroy it causing
2518 // memory corruption
2519 if (TerrainHeightFieldHeights.ContainsKey(g))
2520 {
2521// float[] removingHeightField = TerrainHeightFieldHeights[g];
2522 TerrainHeightFieldHeights.Remove(g);
2523
2524 if (RegionTerrain.ContainsKey(g))
2525 {
2526 RegionTerrain.Remove(g);
2527 }
2528
2529 d.GeomDestroy(g);
2530 //removingHeightField = new float[0];
2531 }
2532 }
2533
2534 }
2535 else
2536 {
2537 m_log.Warn("[PHYSICS]: Couldn't proceed with UnCombine. Region has inconsistant data.");
2538 }
2539 }
2540 }
2541 }
2542*/
2543 public override void SetWaterLevel(float baseheight)
2544 {
2545 waterlevel = baseheight;
2546 randomizeWater(waterlevel);
2547 }
2548
2549 public void randomizeWater(float baseheight)
2550 {
2551 const uint heightmapWidth = Constants.RegionSize + 2;
2552 const uint heightmapHeight = Constants.RegionSize + 2;
2553 const uint heightmapWidthSamples = heightmapWidth + 1;
2554 const uint heightmapHeightSamples = heightmapHeight + 1;
2555
2556 const float scale = 1.0f;
2557 const float offset = 0.0f;
2558 const int wrap = 0;
2559
2560 float[] _watermap = new float[heightmapWidthSamples * heightmapWidthSamples];
2561
2562 float maxheigh = float.MinValue;
2563 float minheigh = float.MaxValue;
2564 float val;
2565 for (int i = 0; i < (heightmapWidthSamples * heightmapHeightSamples); i++)
2566 {
2567
2568 val = (baseheight - 0.1f) + ((float)fluidRandomizer.Next(1, 9) / 10f);
2569 _watermap[i] = val;
2570 if (maxheigh < val)
2571 maxheigh = val;
2572 if (minheigh > val)
2573 minheigh = val;
2574 }
2575
2576 float thickness = minheigh;
2577
2578 lock (OdeLock)
2579 {
2580 if (WaterGeom != IntPtr.Zero)
2581 {
2582 d.GeomDestroy(WaterGeom);
2583 d.GeomHeightfieldDataDestroy(WaterHeightmapData);
2584 WaterGeom = IntPtr.Zero;
2585 WaterHeightmapData = IntPtr.Zero;
2586 if(WaterMapHandler.IsAllocated)
2587 WaterMapHandler.Free();
2588 }
2589
2590 WaterHeightmapData = d.GeomHeightfieldDataCreate();
2591
2592 WaterMapHandler = GCHandle.Alloc(_watermap, GCHandleType.Pinned);
2593
2594 d.GeomHeightfieldDataBuildSingle(WaterHeightmapData, WaterMapHandler.AddrOfPinnedObject(), 0, heightmapWidth, heightmapHeight,
2595 (int)heightmapWidthSamples, (int)heightmapHeightSamples, scale,
2596 offset, thickness, wrap);
2597 d.GeomHeightfieldDataSetBounds(WaterHeightmapData, minheigh, maxheigh);
2598 WaterGeom = d.CreateHeightfield(StaticSpace, WaterHeightmapData, 1);
2599 if (WaterGeom != IntPtr.Zero)
2600 {
2601 d.GeomSetCategoryBits(WaterGeom, (uint)(CollisionCategories.Water));
2602 d.GeomSetCollideBits(WaterGeom, 0);
2603
2604 geom_name_map[WaterGeom] = "Water";
2605
2606 d.Matrix3 R = new d.Matrix3();
2607
2608 Quaternion q1 = Quaternion.CreateFromAxisAngle(new Vector3(1, 0, 0), 1.5707f);
2609 Quaternion q2 = Quaternion.CreateFromAxisAngle(new Vector3(0, 1, 0), 1.5707f);
2610
2611 q1 = q1 * q2;
2612 Vector3 v3;
2613 float angle;
2614 q1.GetAxisAngle(out v3, out angle);
2615
2616 d.RFromAxisAndAngle(out R, v3.X, v3.Y, v3.Z, angle);
2617 d.GeomSetRotation(WaterGeom, ref R);
2618 d.GeomSetPosition(WaterGeom, (float)Constants.RegionSize * 0.5f, (float)Constants.RegionSize * 0.5f, 0);
2619 }
2620 }
2621 }
2622
2623 public override void Dispose()
2624 {
2625 m_rayCastManager.Dispose();
2626 m_rayCastManager = null;
2627
2628 lock (OdeLock)
2629 {
2630 lock (_prims)
2631 {
2632 foreach (OdePrim prm in _prims)
2633 {
2634 RemovePrim(prm);
2635 }
2636 }
2637
2638 if (TerrainHeightFieldHeightsHandlers.Count > 0)
2639 {
2640 foreach (GCHandle gch in TerrainHeightFieldHeightsHandlers.Values)
2641 {
2642 if (gch.IsAllocated)
2643 gch.Free();
2644 }
2645 }
2646
2647 if (WaterGeom != IntPtr.Zero)
2648 {
2649 d.GeomDestroy(WaterGeom);
2650 WaterGeom = IntPtr.Zero;
2651 if (WaterHeightmapData != IntPtr.Zero)
2652 d.GeomHeightfieldDataDestroy(WaterHeightmapData);
2653 WaterHeightmapData = IntPtr.Zero;
2654
2655 if (WaterMapHandler.IsAllocated)
2656 WaterMapHandler.Free();
2657 }
2658
2659
2660 if (ContactgeomsArray != IntPtr.Zero)
2661 Marshal.FreeHGlobal(ContactgeomsArray);
2662 if (GlobalContactsArray != IntPtr.Zero)
2663 Marshal.FreeHGlobal(GlobalContactsArray);
2664
2665
2666 d.WorldDestroy(world);
2667 //d.CloseODE();
2668 }
2669 }
2670
2671 public override Dictionary<uint, float> GetTopColliders()
2672 {
2673 Dictionary<uint, float> returncolliders = new Dictionary<uint, float>();
2674 int cnt = 0;
2675 lock (_prims)
2676 {
2677 foreach (OdePrim prm in _prims)
2678 {
2679 if (prm.CollisionScore > 0)
2680 {
2681 returncolliders.Add(prm.m_localID, prm.CollisionScore);
2682 cnt++;
2683 prm.CollisionScore = 0f;
2684 if (cnt > 25)
2685 {
2686 break;
2687 }
2688 }
2689 }
2690 }
2691 return returncolliders;
2692 }
2693
2694 public override bool SupportsRayCast()
2695 {
2696 return true;
2697 }
2698
2699 public override void RaycastWorld(Vector3 position, Vector3 direction, float length, RaycastCallback retMethod)
2700 {
2701 if (retMethod != null)
2702 {
2703 m_rayCastManager.QueueRequest(position, direction, length, retMethod);
2704 }
2705 }
2706
2707 public override void RaycastWorld(Vector3 position, Vector3 direction, float length, int Count, RayCallback retMethod)
2708 {
2709 if (retMethod != null)
2710 {
2711 m_rayCastManager.QueueRequest(position, direction, length, Count, retMethod);
2712 }
2713 }
2714
2715 // don't like this
2716 public override List<ContactResult> RaycastWorld(Vector3 position, Vector3 direction, float length, int Count)
2717 {
2718 ContactResult[] ourResults = null;
2719 RayCallback retMethod = delegate(List<ContactResult> results)
2720 {
2721 ourResults = new ContactResult[results.Count];
2722 results.CopyTo(ourResults, 0);
2723 };
2724 int waitTime = 0;
2725 m_rayCastManager.QueueRequest(position, direction, length, Count, retMethod);
2726 while (ourResults == null && waitTime < 1000)
2727 {
2728 Thread.Sleep(1);
2729 waitTime++;
2730 }
2731 if (ourResults == null)
2732 return new List<ContactResult>();
2733 return new List<ContactResult>(ourResults);
2734 }
2735
2736 public override bool SuportsRaycastWorldFiltered()
2737 {
2738 return true;
2739 }
2740
2741 public override object RaycastWorld(Vector3 position, Vector3 direction, float length, int Count, RayFilterFlags filter)
2742 {
2743 object SyncObject = new object();
2744 List<ContactResult> ourresults = new List<ContactResult>();
2745
2746 RayCallback retMethod = delegate(List<ContactResult> results)
2747 {
2748 lock (SyncObject)
2749 {
2750 ourresults = results;
2751 Monitor.PulseAll(SyncObject);
2752 }
2753 };
2754
2755 lock (SyncObject)
2756 {
2757 m_rayCastManager.QueueRequest(position, direction, length, Count,filter, retMethod);
2758 if (!Monitor.Wait(SyncObject, 500))
2759 return null;
2760 else
2761 return ourresults;
2762 }
2763 }
2764
2765 public override void RaycastActor(PhysicsActor actor, Vector3 position, Vector3 direction, float length, RaycastCallback retMethod)
2766 {
2767 if (retMethod != null && actor !=null)
2768 {
2769 IntPtr geom;
2770 if (actor is OdePrim)
2771 geom = ((OdePrim)actor).prim_geom;
2772 else if (actor is OdeCharacter)
2773 geom = ((OdePrim)actor).prim_geom;
2774 else
2775 return;
2776 if (geom == IntPtr.Zero)
2777 return;
2778 m_rayCastManager.QueueRequest(geom, position, direction, length, retMethod);
2779 }
2780 }
2781
2782 public override void RaycastActor(PhysicsActor actor, Vector3 position, Vector3 direction, float length, int Count, RayCallback retMethod)
2783 {
2784 if (retMethod != null && actor != null)
2785 {
2786 IntPtr geom;
2787 if (actor is OdePrim)
2788 geom = ((OdePrim)actor).prim_geom;
2789 else if (actor is OdeCharacter)
2790 geom = ((OdePrim)actor).prim_geom;
2791 else
2792 return;
2793 if (geom == IntPtr.Zero)
2794 return;
2795
2796 m_rayCastManager.QueueRequest(geom,position, direction, length, Count, retMethod);
2797 }
2798 }
2799
2800 // don't like this
2801 public override List<ContactResult> RaycastActor(PhysicsActor actor, Vector3 position, Vector3 direction, float length, int Count)
2802 {
2803 if (actor != null)
2804 {
2805 IntPtr geom;
2806 if (actor is OdePrim)
2807 geom = ((OdePrim)actor).prim_geom;
2808 else if (actor is OdeCharacter)
2809 geom = ((OdePrim)actor).prim_geom;
2810 else
2811 return new List<ContactResult>();
2812 if (geom == IntPtr.Zero)
2813 return new List<ContactResult>();
2814
2815 ContactResult[] ourResults = null;
2816 RayCallback retMethod = delegate(List<ContactResult> results)
2817 {
2818 ourResults = new ContactResult[results.Count];
2819 results.CopyTo(ourResults, 0);
2820 };
2821 int waitTime = 0;
2822 m_rayCastManager.QueueRequest(geom,position, direction, length, Count, retMethod);
2823 while (ourResults == null && waitTime < 1000)
2824 {
2825 Thread.Sleep(1);
2826 waitTime++;
2827 }
2828 if (ourResults == null)
2829 return new List<ContactResult>();
2830 return new List<ContactResult>(ourResults);
2831 }
2832 return new List<ContactResult>();
2833 }
2834 }
2835}
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/AsyncCommandManager.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/AsyncCommandManager.cs
index 993d10f..3cbdde5 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/AsyncCommandManager.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/AsyncCommandManager.cs
@@ -301,6 +301,26 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
301 return null; 301 return null;
302 } 302 }
303 303
304 public static void StateChange(IScriptEngine engine, uint localID, UUID itemID)
305 {
306 // Remove a specific script
307
308 // Remove dataserver events
309 m_Dataserver[engine].RemoveEvents(localID, itemID);
310
311 IWorldComm comms = engine.World.RequestModuleInterface<IWorldComm>();
312 if (comms != null)
313 comms.DeleteListener(itemID);
314
315 IXMLRPC xmlrpc = engine.World.RequestModuleInterface<IXMLRPC>();
316 xmlrpc.DeleteChannels(itemID);
317 xmlrpc.CancelSRDRequests(itemID);
318
319 // Remove Sensors
320 m_SensorRepeat[engine].UnSetSenseRepeaterEvents(localID, itemID);
321
322 }
323
304 public static Object[] GetSerializationData(IScriptEngine engine, UUID itemID) 324 public static Object[] GetSerializationData(IScriptEngine engine, UUID itemID)
305 { 325 {
306 List<Object> data = new List<Object>(); 326 List<Object> data = new List<Object>();
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/CM_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/CM_Api.cs
new file mode 100644
index 0000000..b5fa6de
--- /dev/null
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/CM_Api.cs
@@ -0,0 +1,116 @@
1/*
2 * Copyright (c) Contributors, http://opensimulator.org/
3 * See CONTRIBUTORS.TXT for a full list of copyright holders.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 * * Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * * Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
12 * * Neither the name of the OpenSimulator Project nor the
13 * names of its contributors may be used to endorse or promote products
14 * derived from this software without specific prior written permission.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
17 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
20 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28using System;
29using System.Reflection;
30using System.Collections;
31using System.Collections.Generic;
32using System.Runtime.Remoting.Lifetime;
33using OpenMetaverse;
34using Nini.Config;
35using OpenSim;
36using OpenSim.Framework;
37using OpenSim.Region.CoreModules.World.LightShare;
38using OpenSim.Region.Framework.Interfaces;
39using OpenSim.Region.Framework.Scenes;
40using OpenSim.Region.ScriptEngine.Shared;
41using OpenSim.Region.ScriptEngine.Shared.Api.Plugins;
42using OpenSim.Region.ScriptEngine.Shared.ScriptBase;
43using OpenSim.Region.ScriptEngine.Interfaces;
44using OpenSim.Region.ScriptEngine.Shared.Api.Interfaces;
45using OpenSim.Services.Interfaces;
46
47using LSL_Float = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLFloat;
48using LSL_Integer = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLInteger;
49using LSL_Key = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLString;
50using LSL_List = OpenSim.Region.ScriptEngine.Shared.LSL_Types.list;
51using LSL_Rotation = OpenSim.Region.ScriptEngine.Shared.LSL_Types.Quaternion;
52using LSL_String = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLString;
53using LSL_Vector = OpenSim.Region.ScriptEngine.Shared.LSL_Types.Vector3;
54
55namespace OpenSim.Region.ScriptEngine.Shared.Api
56{
57 [Serializable]
58 public class CM_Api : MarshalByRefObject, ICM_Api, IScriptApi
59 {
60 internal IScriptEngine m_ScriptEngine;
61 internal SceneObjectPart m_host;
62 internal TaskInventoryItem m_item;
63 internal bool m_CMFunctionsEnabled = false;
64
65 public void Initialize(IScriptEngine ScriptEngine, SceneObjectPart host, TaskInventoryItem item)
66 {
67 m_ScriptEngine = ScriptEngine;
68 m_host = host;
69 m_item = item;
70
71 if (m_ScriptEngine.Config.GetBoolean("AllowCareminsterFunctions", false))
72 m_CMFunctionsEnabled = true;
73 }
74
75 public override Object InitializeLifetimeService()
76 {
77 ILease lease = (ILease)base.InitializeLifetimeService();
78
79 if (lease.CurrentState == LeaseState.Initial)
80 {
81 lease.InitialLeaseTime = TimeSpan.FromMinutes(0);
82 // lease.RenewOnCallTime = TimeSpan.FromSeconds(10.0);
83 // lease.SponsorshipTimeout = TimeSpan.FromMinutes(1.0);
84 }
85 return lease;
86 }
87
88 public Scene World
89 {
90 get { return m_ScriptEngine.World; }
91 }
92
93 public string cmDetectedCountry(int number)
94 {
95 m_host.AddScriptLPS(1);
96 DetectParams detectedParams = m_ScriptEngine.GetDetectParams(m_item.ItemID, number);
97 if (detectedParams == null)
98 return String.Empty;
99 return detectedParams.Country;
100 }
101
102 public string cmGetAgentCountry(LSL_Key key)
103 {
104 if (!World.Permissions.IsGod(m_host.OwnerID))
105 return String.Empty;
106
107 UUID uuid;
108
109 if (!UUID.TryParse(key, out uuid))
110 return String.Empty;
111
112 UserAccount account = World.UserAccountService.GetUserAccount(World.RegionInfo.ScopeID, uuid);
113 return account.UserCountry;
114 }
115 }
116}
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index a8679e2..41de257 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -28,10 +28,12 @@
28using System; 28using System;
29using System.Collections; 29using System.Collections;
30using System.Collections.Generic; 30using System.Collections.Generic;
31using System.Diagnostics; //for [DebuggerNonUserCode]
31using System.Runtime.Remoting.Lifetime; 32using System.Runtime.Remoting.Lifetime;
32using System.Text; 33using System.Text;
33using System.Threading; 34using System.Threading;
34using System.Text.RegularExpressions; 35using System.Text.RegularExpressions;
36using System.Timers;
35using Nini.Config; 37using Nini.Config;
36using log4net; 38using log4net;
37using OpenMetaverse; 39using OpenMetaverse;
@@ -44,6 +46,7 @@ using OpenSim.Region.CoreModules.World.Land;
44using OpenSim.Region.CoreModules.World.Terrain; 46using OpenSim.Region.CoreModules.World.Terrain;
45using OpenSim.Region.Framework.Interfaces; 47using OpenSim.Region.Framework.Interfaces;
46using OpenSim.Region.Framework.Scenes; 48using OpenSim.Region.Framework.Scenes;
49using OpenSim.Region.Framework.Scenes.Serialization;
47using OpenSim.Region.Framework.Scenes.Animation; 50using OpenSim.Region.Framework.Scenes.Animation;
48using OpenSim.Region.Physics.Manager; 51using OpenSim.Region.Physics.Manager;
49using OpenSim.Region.ScriptEngine.Shared; 52using OpenSim.Region.ScriptEngine.Shared;
@@ -65,6 +68,7 @@ using LSL_Rotation = OpenSim.Region.ScriptEngine.Shared.LSL_Types.Quaternion;
65using LSL_String = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLString; 68using LSL_String = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLString;
66using LSL_Vector = OpenSim.Region.ScriptEngine.Shared.LSL_Types.Vector3; 69using LSL_Vector = OpenSim.Region.ScriptEngine.Shared.LSL_Types.Vector3;
67using System.Reflection; 70using System.Reflection;
71using Timer = System.Timers.Timer;
68 72
69namespace OpenSim.Region.ScriptEngine.Shared.Api 73namespace OpenSim.Region.ScriptEngine.Shared.Api
70{ 74{
@@ -103,15 +107,48 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
103 protected int m_notecardLineReadCharsMax = 255; 107 protected int m_notecardLineReadCharsMax = 255;
104 protected int m_scriptConsoleChannel = 0; 108 protected int m_scriptConsoleChannel = 0;
105 protected bool m_scriptConsoleChannelEnabled = false; 109 protected bool m_scriptConsoleChannelEnabled = false;
110 protected bool m_debuggerSafe = false;
106 protected IUrlModule m_UrlModule = null; 111 protected IUrlModule m_UrlModule = null;
107 protected Dictionary<UUID, UserInfoCacheEntry> m_userInfoCache = new Dictionary<UUID, UserInfoCacheEntry>(); 112 protected Dictionary<UUID, UserInfoCacheEntry> m_userInfoCache =
108 protected int EMAIL_PAUSE_TIME = 20; // documented delay value for smtp. 113 new Dictionary<UUID, UserInfoCacheEntry>();
114 protected int EMAIL_PAUSE_TIME = 20; // documented delay value for smtp.
115
116 protected Timer m_ShoutSayTimer;
117 protected int m_SayShoutCount = 0;
118
119 private Dictionary<string, string> MovementAnimationsForLSL =
120 new Dictionary<string, string> {
121 {"FLY", "Flying"},
122 {"FLYSLOW", "FlyingSlow"},
123 {"HOVER_UP", "Hovering Up"},
124 {"HOVER_DOWN", "Hovering Down"},
125 {"HOVER", "Hovering"},
126 {"LAND", "Landing"},
127 {"FALLDOWN", "Falling Down"},
128 {"PREJUMP", "PreJumping"},
129 {"JUMP", "Jumping"},
130 {"STANDUP", "Standing Up"},
131 {"SOFT_LAND", "Soft Landing"},
132 {"STAND", "Standing"},
133 {"CROUCHWALK", "CrouchWalking"},
134 {"RUN", "Running"},
135 {"WALK", "Walking"},
136 {"CROUCH", "Crouching"},
137 {"TURNLEFT", "Turning Left"},
138 {"TURNRIGHT", "Turning Right"}
139 };
109 140
110 public void Initialize(IScriptEngine ScriptEngine, SceneObjectPart host, TaskInventoryItem item) 141 public void Initialize(IScriptEngine ScriptEngine, SceneObjectPart host, TaskInventoryItem item)
111 { 142 {
143 m_ShoutSayTimer = new Timer(1000);
144 m_ShoutSayTimer.Elapsed += SayShoutTimerElapsed;
145 m_ShoutSayTimer.AutoReset = true;
146 m_ShoutSayTimer.Start();
147
112 m_ScriptEngine = ScriptEngine; 148 m_ScriptEngine = ScriptEngine;
113 m_host = host; 149 m_host = host;
114 m_item = item; 150 m_item = item;
151 m_debuggerSafe = m_ScriptEngine.Config.GetBoolean("DebuggerSafe", false);
115 152
116 LoadLimits(); // read script limits from config. 153 LoadLimits(); // read script limits from config.
117 154
@@ -171,6 +208,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
171 get { return m_ScriptEngine.World; } 208 get { return m_ScriptEngine.World; }
172 } 209 }
173 210
211 [DebuggerNonUserCode]
174 public void state(string newState) 212 public void state(string newState)
175 { 213 {
176 m_ScriptEngine.SetState(m_item.ItemID, newState); 214 m_ScriptEngine.SetState(m_item.ItemID, newState);
@@ -180,6 +218,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
180 /// Reset the named script. The script must be present 218 /// Reset the named script. The script must be present
181 /// in the same prim. 219 /// in the same prim.
182 /// </summary> 220 /// </summary>
221 [DebuggerNonUserCode]
183 public void llResetScript() 222 public void llResetScript()
184 { 223 {
185 m_host.AddScriptLPS(1); 224 m_host.AddScriptLPS(1);
@@ -236,9 +275,62 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
236 } 275 }
237 } 276 }
238 277
278 public List<ScenePresence> GetLinkAvatars(int linkType)
279 {
280 List<ScenePresence> ret = new List<ScenePresence>();
281 if (m_host == null || m_host.ParentGroup == null || m_host.ParentGroup.IsDeleted)
282 return ret;
283
284 List<ScenePresence> avs = m_host.ParentGroup.GetLinkedAvatars();
285
286 switch (linkType)
287 {
288 case ScriptBaseClass.LINK_SET:
289 return avs;
290
291 case ScriptBaseClass.LINK_ROOT:
292 return ret;
293
294 case ScriptBaseClass.LINK_ALL_OTHERS:
295 return avs;
296
297 case ScriptBaseClass.LINK_ALL_CHILDREN:
298 return avs;
299
300 case ScriptBaseClass.LINK_THIS:
301 return ret;
302
303 default:
304 if (linkType < 0)
305 return ret;
306
307 int partCount = m_host.ParentGroup.GetPartCount();
308
309 if (linkType <= partCount)
310 {
311 return ret;
312 }
313 else
314 {
315 linkType = linkType - partCount;
316 if (linkType > avs.Count)
317 {
318 return ret;
319 }
320 else
321 {
322 ret.Add(avs[linkType-1]);
323 return ret;
324 }
325 }
326 }
327 }
328
239 public List<SceneObjectPart> GetLinkParts(int linkType) 329 public List<SceneObjectPart> GetLinkParts(int linkType)
240 { 330 {
241 List<SceneObjectPart> ret = new List<SceneObjectPart>(); 331 List<SceneObjectPart> ret = new List<SceneObjectPart>();
332 if (m_host == null || m_host.ParentGroup == null || m_host.ParentGroup.IsDeleted)
333 return ret;
242 ret.Add(m_host); 334 ret.Add(m_host);
243 335
244 switch (linkType) 336 switch (linkType)
@@ -432,31 +524,48 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
432 524
433 //Now we start getting into quaternions which means sin/cos, matrices and vectors. ckrinke 525 //Now we start getting into quaternions which means sin/cos, matrices and vectors. ckrinke
434 526
435 /// <summary> 527 // Utility function for llRot2Euler
436 /// Convert an LSL rotation to a Euler vector. 528
437 /// </summary> 529 // normalize an angle between -PI and PI (-180 to +180 degrees)
438 /// <remarks> 530 protected double NormalizeAngle(double angle)
439 /// Using algorithm based off http://www.euclideanspace.com/maths/geometry/rotations/conversions/quaternionToEuler/quat_2_euler_paper_ver2-1.pdf
440 /// to avoid issues with singularity and rounding with Y rotation of +/- PI/2
441 /// </remarks>
442 /// <param name="r"></param>
443 /// <returns></returns>
444 public LSL_Vector llRot2Euler(LSL_Rotation r)
445 { 531 {
446 m_host.AddScriptLPS(1); 532 if (angle > -Math.PI && angle < Math.PI)
533 return angle;
534
535 int numPis = (int)(Math.PI / angle);
536 double remainder = angle - Math.PI * numPis;
537 if (numPis % 2 == 1)
538 return Math.PI - angle;
539 return remainder;
540 }
447 541
448 LSL_Vector v = new LSL_Vector(0.0, 0.0, 1.0) * r; // Z axis unit vector unaffected by Z rotation component of r. 542 public LSL_Vector llRot2Euler(LSL_Rotation q1)
449 double m = LSL_Vector.Mag(v); // Just in case v isn't normalized, need magnitude for Asin() operation later. 543 {
450 if (m == 0.0) return new LSL_Vector(); 544 m_host.AddScriptLPS(1);
451 double x = Math.Atan2(-v.y, v.z); 545 LSL_Vector eul = new LSL_Vector();
452 double sin = v.x / m;
453 if (sin < -0.999999 || sin > 0.999999) x = 0.0; // Force X rotation to 0 at the singularities.
454 double y = Math.Asin(sin);
455 // Rotate X axis unit vector by r and unwind the X and Y rotations leaving only the Z rotation
456 v = new LSL_Vector(1.0, 0.0, 0.0) * ((r * new LSL_Rotation(Math.Sin(-x / 2.0), 0.0, 0.0, Math.Cos(-x / 2.0))) * new LSL_Rotation(0.0, Math.Sin(-y / 2.0), 0.0, Math.Cos(-y / 2.0)));
457 double z = Math.Atan2(v.y, v.x);
458 546
459 return new LSL_Vector(x, y, z); 547 double sqw = q1.s*q1.s;
548 double sqx = q1.x*q1.x;
549 double sqy = q1.z*q1.z;
550 double sqz = q1.y*q1.y;
551 double unit = sqx + sqy + sqz + sqw; // if normalised is one, otherwise is correction factor
552 double test = q1.x*q1.z + q1.y*q1.s;
553 if (test > 0.4999*unit) { // singularity at north pole
554 eul.z = 2 * Math.Atan2(q1.x,q1.s);
555 eul.y = Math.PI/2;
556 eul.x = 0;
557 return eul;
558 }
559 if (test < -0.4999*unit) { // singularity at south pole
560 eul.z = -2 * Math.Atan2(q1.x,q1.s);
561 eul.y = -Math.PI/2;
562 eul.x = 0;
563 return eul;
564 }
565 eul.z = Math.Atan2(2*q1.z*q1.s-2*q1.x*q1.y , sqx - sqy - sqz + sqw);
566 eul.y = Math.Asin(2*test/unit);
567 eul.x = Math.Atan2(2*q1.x*q1.s-2*q1.z*q1.y , -sqx + sqy - sqz + sqw);
568 return eul;
460 } 569 }
461 570
462 /* From wiki: 571 /* From wiki:
@@ -658,77 +767,76 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
658 { 767 {
659 //A and B should both be normalized 768 //A and B should both be normalized
660 m_host.AddScriptLPS(1); 769 m_host.AddScriptLPS(1);
661 LSL_Rotation rotBetween; 770 /* This method is more accurate than the SL one, and thus causes problems
662 // Check for zero vectors. If either is zero, return zero rotation. Otherwise, 771 for scripts that deal with the SL inaccuracy around 180-degrees -.- .._.
663 // continue calculation. 772
664 if (a == new LSL_Vector(0.0f, 0.0f, 0.0f) || b == new LSL_Vector(0.0f, 0.0f, 0.0f)) 773 double dotProduct = LSL_Vector.Dot(a, b);
774 LSL_Vector crossProduct = LSL_Vector.Cross(a, b);
775 double magProduct = LSL_Vector.Mag(a) * LSL_Vector.Mag(b);
776 double angle = Math.Acos(dotProduct / magProduct);
777 LSL_Vector axis = LSL_Vector.Norm(crossProduct);
778 double s = Math.Sin(angle / 2);
779
780 double x = axis.x * s;
781 double y = axis.y * s;
782 double z = axis.z * s;
783 double w = Math.Cos(angle / 2);
784
785 if (Double.IsNaN(x) || Double.IsNaN(y) || Double.IsNaN(z) || Double.IsNaN(w))
786 return new LSL_Rotation(0.0f, 0.0f, 0.0f, 1.0f);
787
788 return new LSL_Rotation((float)x, (float)y, (float)z, (float)w);
789 */
790
791 // This method mimics the 180 errors found in SL
792 // See www.euclideanspace.com... angleBetween
793 LSL_Vector vec_a = a;
794 LSL_Vector vec_b = b;
795
796 // Eliminate zero length
797 LSL_Float vec_a_mag = LSL_Vector.Mag(vec_a);
798 LSL_Float vec_b_mag = LSL_Vector.Mag(vec_b);
799 if (vec_a_mag < 0.00001 ||
800 vec_b_mag < 0.00001)
665 { 801 {
666 rotBetween = new LSL_Rotation(0.0f, 0.0f, 0.0f, 1.0f); 802 return new LSL_Rotation(0.0f, 0.0f, 0.0f, 1.0f);
667 } 803 }
668 else 804
805 // Normalize
806 vec_a = llVecNorm(vec_a);
807 vec_b = llVecNorm(vec_b);
808
809 // Calculate axis and rotation angle
810 LSL_Vector axis = vec_a % vec_b;
811 LSL_Float cos_theta = vec_a * vec_b;
812
813 // Check if parallel
814 if (cos_theta > 0.99999)
669 { 815 {
670 a = LSL_Vector.Norm(a); 816 return new LSL_Rotation(0.0f, 0.0f, 0.0f, 1.0f);
671 b = LSL_Vector.Norm(b); 817 }
672 double dotProduct = LSL_Vector.Dot(a, b); 818
673 // There are two degenerate cases possible. These are for vectors 180 or 819 // Check if anti-parallel
674 // 0 degrees apart. These have to be detected and handled individually. 820 else if (cos_theta < -0.99999)
675 // 821 {
676 // Check for vectors 180 degrees apart. 822 LSL_Vector orthog_axis = new LSL_Vector(1.0, 0.0, 0.0) - (vec_a.x / (vec_a * vec_a) * vec_a);
677 // A dot product of -1 would mean the angle between vectors is 180 degrees. 823 if (LSL_Vector.Mag(orthog_axis) < 0.000001) orthog_axis = new LSL_Vector(0.0, 0.0, 1.0);
678 if (dotProduct < -0.9999999f) 824 return new LSL_Rotation((float)orthog_axis.x, (float)orthog_axis.y, (float)orthog_axis.z, 0.0);
679 { 825 }
680 // First assume X axis is orthogonal to the vectors. 826 else // other rotation
681 LSL_Vector orthoVector = new LSL_Vector(1.0f, 0.0f, 0.0f); 827 {
682 orthoVector = orthoVector - a * (a.x / LSL_Vector.Dot(a, a)); 828 LSL_Float theta = (LSL_Float)Math.Acos(cos_theta) * 0.5f;
683 // Check for near zero vector. A very small non-zero number here will create 829 axis = llVecNorm(axis);
684 // a rotation in an undesired direction. 830 double x, y, z, s, t;
685 if (LSL_Vector.Mag(orthoVector) > 0.0001) 831 s = Math.Cos(theta);
686 { 832 t = Math.Sin(theta);
687 rotBetween = new LSL_Rotation(orthoVector.x, orthoVector.y, orthoVector.z, 0.0f); 833 x = axis.x * t;
688 } 834 y = axis.y * t;
689 // If the magnitude of the vector was near zero, then assume the X axis is not 835 z = axis.z * t;
690 // orthogonal and use the Z axis instead. 836 return new LSL_Rotation(x,y,z,s);
691 else
692 {
693 // Set 180 z rotation.
694 rotBetween = new LSL_Rotation(0.0f, 0.0f, 1.0f, 0.0f);
695 }
696 }
697 // Check for parallel vectors.
698 // A dot product of 1 would mean the angle between vectors is 0 degrees.
699 else if (dotProduct > 0.9999999f)
700 {
701 // Set zero rotation.
702 rotBetween = new LSL_Rotation(0.0f, 0.0f, 0.0f, 1.0f);
703 }
704 else
705 {
706 // All special checks have been performed so get the axis of rotation.
707 LSL_Vector crossProduct = LSL_Vector.Cross(a, b);
708 // Quarternion s value is the length of the unit vector + dot product.
709 double qs = 1.0 + dotProduct;
710 rotBetween = new LSL_Rotation(crossProduct.x, crossProduct.y, crossProduct.z, qs);
711 // Normalize the rotation.
712 double mag = LSL_Rotation.Mag(rotBetween);
713 // We shouldn't have to worry about a divide by zero here. The qs value will be
714 // non-zero because we already know if we're here, then the dotProduct is not -1 so
715 // qs will not be zero. Also, we've already handled the input vectors being zero so the
716 // crossProduct vector should also not be zero.
717 rotBetween.x = rotBetween.x / mag;
718 rotBetween.y = rotBetween.y / mag;
719 rotBetween.z = rotBetween.z / mag;
720 rotBetween.s = rotBetween.s / mag;
721 // Check for undefined values and set zero rotation if any found. This code might not actually be required
722 // any longer since zero vectors are checked for at the top.
723 if (Double.IsNaN(rotBetween.x) || Double.IsNaN(rotBetween.y) || Double.IsNaN(rotBetween.z) || Double.IsNaN(rotBetween.s))
724 {
725 rotBetween = new LSL_Rotation(0.0f, 0.0f, 0.0f, 1.0f);
726 }
727 }
728 } 837 }
729 return rotBetween;
730 } 838 }
731 839
732 public void llWhisper(int channelID, string text) 840 public void llWhisper(int channelID, string text)
733 { 841 {
734 m_host.AddScriptLPS(1); 842 m_host.AddScriptLPS(1);
@@ -748,6 +856,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
748 { 856 {
749 m_host.AddScriptLPS(1); 857 m_host.AddScriptLPS(1);
750 858
859 if (channelID == 0)
860 m_SayShoutCount++;
861
862 if (m_SayShoutCount >= 11)
863 ScriptSleep(2000);
864
751 if (m_scriptConsoleChannelEnabled && (channelID == m_scriptConsoleChannel)) 865 if (m_scriptConsoleChannelEnabled && (channelID == m_scriptConsoleChannel))
752 { 866 {
753 Console.WriteLine(text); 867 Console.WriteLine(text);
@@ -770,6 +884,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
770 { 884 {
771 m_host.AddScriptLPS(1); 885 m_host.AddScriptLPS(1);
772 886
887 if (channelID == 0)
888 m_SayShoutCount++;
889
890 if (m_SayShoutCount >= 11)
891 ScriptSleep(2000);
892
773 if (text.Length > 1023) 893 if (text.Length > 1023)
774 text = text.Substring(0, 1023); 894 text = text.Substring(0, 1023);
775 895
@@ -1072,10 +1192,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
1072 return detectedParams.TouchUV; 1192 return detectedParams.TouchUV;
1073 } 1193 }
1074 1194
1195 [DebuggerNonUserCode]
1075 public virtual void llDie() 1196 public virtual void llDie()
1076 { 1197 {
1077 m_host.AddScriptLPS(1); 1198 m_host.AddScriptLPS(1);
1078 throw new SelfDeleteException(); 1199 if (!m_host.ParentGroup.IsAttachment) throw new SelfDeleteException();
1079 } 1200 }
1080 1201
1081 public LSL_Float llGround(LSL_Vector offset) 1202 public LSL_Float llGround(LSL_Vector offset)
@@ -1148,6 +1269,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
1148 1269
1149 public void llSetStatus(int status, int value) 1270 public void llSetStatus(int status, int value)
1150 { 1271 {
1272 if (m_host == null || m_host.ParentGroup == null || m_host.ParentGroup.IsDeleted)
1273 return;
1151 m_host.AddScriptLPS(1); 1274 m_host.AddScriptLPS(1);
1152 1275
1153 int statusrotationaxis = 0; 1276 int statusrotationaxis = 0;
@@ -1171,6 +1294,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
1171 if (!allow) 1294 if (!allow)
1172 return; 1295 return;
1173 1296
1297 if (m_host.ParentGroup.RootPart.PhysActor != null &&
1298 m_host.ParentGroup.RootPart.PhysActor.IsPhysical)
1299 return;
1300
1174 m_host.ScriptSetPhysicsStatus(true); 1301 m_host.ScriptSetPhysicsStatus(true);
1175 } 1302 }
1176 else 1303 else
@@ -1379,6 +1506,48 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
1379 { 1506 {
1380 m_host.AddScriptLPS(1); 1507 m_host.AddScriptLPS(1);
1381 1508
1509 SetColor(m_host, color, face);
1510 }
1511
1512 protected void SetColor(SceneObjectPart part, LSL_Vector color, int face)
1513 {
1514 if (part == null || part.ParentGroup == null || part.ParentGroup.IsDeleted)
1515 return;
1516
1517 Primitive.TextureEntry tex = part.Shape.Textures;
1518 Color4 texcolor;
1519 if (face >= 0 && face < GetNumberOfSides(part))
1520 {
1521 texcolor = tex.CreateFace((uint)face).RGBA;
1522 texcolor.R = Util.Clip((float)color.x, 0.0f, 1.0f);
1523 texcolor.G = Util.Clip((float)color.y, 0.0f, 1.0f);
1524 texcolor.B = Util.Clip((float)color.z, 0.0f, 1.0f);
1525 tex.FaceTextures[face].RGBA = texcolor;
1526 part.UpdateTextureEntry(tex.GetBytes());
1527 return;
1528 }
1529 else if (face == ScriptBaseClass.ALL_SIDES)
1530 {
1531 for (uint i = 0; i < GetNumberOfSides(part); i++)
1532 {
1533 if (tex.FaceTextures[i] != null)
1534 {
1535 texcolor = tex.FaceTextures[i].RGBA;
1536 texcolor.R = Util.Clip((float)color.x, 0.0f, 1.0f);
1537 texcolor.G = Util.Clip((float)color.y, 0.0f, 1.0f);
1538 texcolor.B = Util.Clip((float)color.z, 0.0f, 1.0f);
1539 tex.FaceTextures[i].RGBA = texcolor;
1540 }
1541 texcolor = tex.DefaultTexture.RGBA;
1542 texcolor.R = Util.Clip((float)color.x, 0.0f, 1.0f);
1543 texcolor.G = Util.Clip((float)color.y, 0.0f, 1.0f);
1544 texcolor.B = Util.Clip((float)color.z, 0.0f, 1.0f);
1545 tex.DefaultTexture.RGBA = texcolor;
1546 }
1547 part.UpdateTextureEntry(tex.GetBytes());
1548 return;
1549 }
1550
1382 if (face == ScriptBaseClass.ALL_SIDES) 1551 if (face == ScriptBaseClass.ALL_SIDES)
1383 face = SceneObjectPart.ALL_SIDES; 1552 face = SceneObjectPart.ALL_SIDES;
1384 1553
@@ -1387,6 +1556,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
1387 1556
1388 public void SetTexGen(SceneObjectPart part, int face,int style) 1557 public void SetTexGen(SceneObjectPart part, int face,int style)
1389 { 1558 {
1559 if (part == null || part.ParentGroup == null || part.ParentGroup.IsDeleted)
1560 return;
1561
1390 Primitive.TextureEntry tex = part.Shape.Textures; 1562 Primitive.TextureEntry tex = part.Shape.Textures;
1391 MappingType textype; 1563 MappingType textype;
1392 textype = MappingType.Default; 1564 textype = MappingType.Default;
@@ -1417,6 +1589,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
1417 1589
1418 public void SetGlow(SceneObjectPart part, int face, float glow) 1590 public void SetGlow(SceneObjectPart part, int face, float glow)
1419 { 1591 {
1592 if (part == null || part.ParentGroup == null || part.ParentGroup.IsDeleted)
1593 return;
1594
1420 Primitive.TextureEntry tex = part.Shape.Textures; 1595 Primitive.TextureEntry tex = part.Shape.Textures;
1421 if (face >= 0 && face < GetNumberOfSides(part)) 1596 if (face >= 0 && face < GetNumberOfSides(part))
1422 { 1597 {
@@ -1442,6 +1617,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
1442 1617
1443 public void SetShiny(SceneObjectPart part, int face, int shiny, Bumpiness bump) 1618 public void SetShiny(SceneObjectPart part, int face, int shiny, Bumpiness bump)
1444 { 1619 {
1620 if (part == null || part.ParentGroup == null || part.ParentGroup.IsDeleted)
1621 return;
1445 1622
1446 Shininess sval = new Shininess(); 1623 Shininess sval = new Shininess();
1447 1624
@@ -1492,6 +1669,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
1492 1669
1493 public void SetFullBright(SceneObjectPart part, int face, bool bright) 1670 public void SetFullBright(SceneObjectPart part, int face, bool bright)
1494 { 1671 {
1672 if (part == null || part.ParentGroup == null || part.ParentGroup.IsDeleted)
1673 return;
1674
1495 Primitive.TextureEntry tex = part.Shape.Textures; 1675 Primitive.TextureEntry tex = part.Shape.Textures;
1496 if (face >= 0 && face < GetNumberOfSides(part)) 1676 if (face >= 0 && face < GetNumberOfSides(part))
1497 { 1677 {
@@ -1552,13 +1732,26 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
1552 m_host.AddScriptLPS(1); 1732 m_host.AddScriptLPS(1);
1553 1733
1554 List<SceneObjectPart> parts = GetLinkParts(linknumber); 1734 List<SceneObjectPart> parts = GetLinkParts(linknumber);
1555 1735 if (parts.Count > 0)
1556 foreach (SceneObjectPart part in parts) 1736 {
1557 SetAlpha(part, alpha, face); 1737 try
1738 {
1739 parts[0].ParentGroup.areUpdatesSuspended = true;
1740 foreach (SceneObjectPart part in parts)
1741 SetAlpha(part, alpha, face);
1742 }
1743 finally
1744 {
1745 parts[0].ParentGroup.areUpdatesSuspended = false;
1746 }
1747 }
1558 } 1748 }
1559 1749
1560 protected void SetAlpha(SceneObjectPart part, double alpha, int face) 1750 protected void SetAlpha(SceneObjectPart part, double alpha, int face)
1561 { 1751 {
1752 if (part == null || part.ParentGroup == null || part.ParentGroup.IsDeleted)
1753 return;
1754
1562 Primitive.TextureEntry tex = part.Shape.Textures; 1755 Primitive.TextureEntry tex = part.Shape.Textures;
1563 Color4 texcolor; 1756 Color4 texcolor;
1564 if (face >= 0 && face < GetNumberOfSides(part)) 1757 if (face >= 0 && face < GetNumberOfSides(part))
@@ -1611,7 +1804,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
1611 protected void SetFlexi(SceneObjectPart part, bool flexi, int softness, float gravity, float friction, 1804 protected void SetFlexi(SceneObjectPart part, bool flexi, int softness, float gravity, float friction,
1612 float wind, float tension, LSL_Vector Force) 1805 float wind, float tension, LSL_Vector Force)
1613 { 1806 {
1614 if (part == null) 1807 if (part == null || part.ParentGroup == null || part.ParentGroup.IsDeleted)
1615 return; 1808 return;
1616 1809
1617 if (flexi) 1810 if (flexi)
@@ -1645,7 +1838,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
1645 /// <param name="falloff"></param> 1838 /// <param name="falloff"></param>
1646 protected void SetPointLight(SceneObjectPart part, bool light, LSL_Vector color, float intensity, float radius, float falloff) 1839 protected void SetPointLight(SceneObjectPart part, bool light, LSL_Vector color, float intensity, float radius, float falloff)
1647 { 1840 {
1648 if (part == null) 1841 if (part == null || part.ParentGroup == null || part.ParentGroup.IsDeleted)
1649 return; 1842 return;
1650 1843
1651 if (light) 1844 if (light)
@@ -1724,15 +1917,27 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
1724 m_host.AddScriptLPS(1); 1917 m_host.AddScriptLPS(1);
1725 1918
1726 List<SceneObjectPart> parts = GetLinkParts(linknumber); 1919 List<SceneObjectPart> parts = GetLinkParts(linknumber);
1727 1920 if (parts.Count > 0)
1728 foreach (SceneObjectPart part in parts) 1921 {
1729 SetTexture(part, texture, face); 1922 try
1730 1923 {
1924 parts[0].ParentGroup.areUpdatesSuspended = true;
1925 foreach (SceneObjectPart part in parts)
1926 SetTexture(part, texture, face);
1927 }
1928 finally
1929 {
1930 parts[0].ParentGroup.areUpdatesSuspended = false;
1931 }
1932 }
1731 ScriptSleep(200); 1933 ScriptSleep(200);
1732 } 1934 }
1733 1935
1734 protected void SetTexture(SceneObjectPart part, string texture, int face) 1936 protected void SetTexture(SceneObjectPart part, string texture, int face)
1735 { 1937 {
1938 if (part == null || part.ParentGroup == null || part.ParentGroup.IsDeleted)
1939 return;
1940
1736 UUID textureID = new UUID(); 1941 UUID textureID = new UUID();
1737 1942
1738 textureID = InventoryKey(texture, (int)AssetType.Texture); 1943 textureID = InventoryKey(texture, (int)AssetType.Texture);
@@ -1777,6 +1982,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
1777 1982
1778 protected void ScaleTexture(SceneObjectPart part, double u, double v, int face) 1983 protected void ScaleTexture(SceneObjectPart part, double u, double v, int face)
1779 { 1984 {
1985 if (part == null || part.ParentGroup == null || part.ParentGroup.IsDeleted)
1986 return;
1987
1780 Primitive.TextureEntry tex = part.Shape.Textures; 1988 Primitive.TextureEntry tex = part.Shape.Textures;
1781 if (face >= 0 && face < GetNumberOfSides(part)) 1989 if (face >= 0 && face < GetNumberOfSides(part))
1782 { 1990 {
@@ -1813,6 +2021,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
1813 2021
1814 protected void OffsetTexture(SceneObjectPart part, double u, double v, int face) 2022 protected void OffsetTexture(SceneObjectPart part, double u, double v, int face)
1815 { 2023 {
2024 if (part == null || part.ParentGroup == null || part.ParentGroup.IsDeleted)
2025 return;
2026
1816 Primitive.TextureEntry tex = part.Shape.Textures; 2027 Primitive.TextureEntry tex = part.Shape.Textures;
1817 if (face >= 0 && face < GetNumberOfSides(part)) 2028 if (face >= 0 && face < GetNumberOfSides(part))
1818 { 2029 {
@@ -1849,6 +2060,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
1849 2060
1850 protected void RotateTexture(SceneObjectPart part, double rotation, int face) 2061 protected void RotateTexture(SceneObjectPart part, double rotation, int face)
1851 { 2062 {
2063 if (part == null || part.ParentGroup == null || part.ParentGroup.IsDeleted)
2064 return;
2065
1852 Primitive.TextureEntry tex = part.Shape.Textures; 2066 Primitive.TextureEntry tex = part.Shape.Textures;
1853 if (face >= 0 && face < GetNumberOfSides(part)) 2067 if (face >= 0 && face < GetNumberOfSides(part))
1854 { 2068 {
@@ -1953,26 +2167,76 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
1953 return real_vec; 2167 return real_vec;
1954 } 2168 }
1955 2169
2170 public LSL_Integer llSetRegionPos(LSL_Vector pos)
2171 {
2172 return new LSL_Integer(SetRegionPos(m_host, pos));
2173 }
2174
2175 protected int SetRegionPos(SceneObjectPart part, LSL_Vector targetPos)
2176 {
2177 if (part == null || part.ParentGroup == null || part.ParentGroup.IsDeleted)
2178 return 0;
2179
2180 SceneObjectGroup grp = part.ParentGroup;
2181
2182 if (grp.IsAttachment)
2183 return 0;
2184
2185 if (grp.RootPart.PhysActor != null && grp.RootPart.PhysActor.IsPhysical)
2186 return 0;
2187
2188 if (targetPos.x < -10.0f || targetPos.x >= (float)Constants.RegionSize || targetPos.y < -10.0f || targetPos.y >= (float)Constants.RegionSize || targetPos.z < 0 || targetPos.z >= 4096.0f)
2189 return 0;
2190
2191 float constrainedX = (float)targetPos.x;
2192 float constrainedY = (float)targetPos.y;
2193
2194 if (constrainedX < 0.0f)
2195 constrainedX = 0.0f;
2196 if (constrainedY < 0.0f)
2197 constrainedY = 0.0f;
2198 if (constrainedX >= (float)Constants.RegionSize)
2199 constrainedX = (float)Constants.RegionSize - 0.1f;
2200 if (constrainedY >= (float)Constants.RegionSize)
2201 constrainedY = (float)Constants.RegionSize -0.1f;
2202
2203 float ground = World.GetGroundHeight(constrainedX, constrainedY);
2204
2205 if (targetPos.z < ground)
2206 targetPos.z = ground;
2207
2208 Vector3 dest = new Vector3((float)targetPos.x, (float)targetPos.y, (float)targetPos.z);
2209
2210 if (!World.Permissions.CanObjectEntry(grp.UUID, false, dest))
2211 return 0;
2212
2213 grp.UpdateGroupPosition(dest);
2214
2215 return 1;
2216 }
2217
1956 protected void SetPos(SceneObjectPart part, LSL_Vector targetPos) 2218 protected void SetPos(SceneObjectPart part, LSL_Vector targetPos)
1957 { 2219 {
1958 // Capped movemment if distance > 10m (http://wiki.secondlife.com/wiki/LlSetPos) 2220 if (part == null || part.ParentGroup == null || part.ParentGroup.IsDeleted)
2221 return;
2222
1959 LSL_Vector currentPos = GetPartLocalPos(part); 2223 LSL_Vector currentPos = GetPartLocalPos(part);
2224 LSL_Vector toPos = GetSetPosTarget(part, targetPos, currentPos);
1960 2225
1961 float ground = World.GetGroundHeight((float)targetPos.x, (float)targetPos.y);
1962 bool disable_underground_movement = m_ScriptEngine.Config.GetBoolean("DisableUndergroundMovement", true);
1963 2226
1964 if (part.ParentGroup.RootPart == part) 2227 if (part.ParentGroup.RootPart == part)
1965 { 2228 {
1966 if ((targetPos.z < ground) && disable_underground_movement && m_host.ParentGroup.AttachmentPoint == 0)
1967 targetPos.z = ground;
1968 SceneObjectGroup parent = part.ParentGroup; 2229 SceneObjectGroup parent = part.ParentGroup;
1969 LSL_Vector real_vec = SetPosAdjust(currentPos, targetPos); 2230 Vector3 dest = new Vector3((float)toPos.x, (float)toPos.y, (float)toPos.z);
1970 parent.UpdateGroupPosition(new Vector3((float)real_vec.x, (float)real_vec.y, (float)real_vec.z)); 2231 if (!World.Permissions.CanObjectEntry(parent.UUID, false, dest))
2232 return;
2233 Util.FireAndForget(delegate(object x) {
2234 parent.UpdateGroupPosition(dest);
2235 });
1971 } 2236 }
1972 else 2237 else
1973 { 2238 {
1974 LSL_Vector rel_vec = SetPosAdjust(currentPos, targetPos); 2239 part.OffsetPosition = new Vector3((float)toPos.x, (float)toPos.y, (float)toPos.z);
1975 part.OffsetPosition = new Vector3((float)rel_vec.x, (float)rel_vec.y, (float)rel_vec.z);
1976 SceneObjectGroup parent = part.ParentGroup; 2240 SceneObjectGroup parent = part.ParentGroup;
1977 parent.HasGroupChanged = true; 2241 parent.HasGroupChanged = true;
1978 parent.ScheduleGroupForTerseUpdate(); 2242 parent.ScheduleGroupForTerseUpdate();
@@ -2005,17 +2269,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2005 else 2269 else
2006 { 2270 {
2007 if (part.ParentGroup.IsAttachment) 2271 if (part.ParentGroup.IsAttachment)
2008 {
2009 pos = part.AttachedPos; 2272 pos = part.AttachedPos;
2010 }
2011 else 2273 else
2012 {
2013 pos = part.AbsolutePosition; 2274 pos = part.AbsolutePosition;
2014 }
2015 } 2275 }
2016 2276
2017// m_log.DebugFormat("[LSL API]: Returning {0} in GetPartLocalPos()", pos);
2018
2019 return new LSL_Vector(pos.X, pos.Y, pos.Z); 2277 return new LSL_Vector(pos.X, pos.Y, pos.Z);
2020 } 2278 }
2021 2279
@@ -2024,9 +2282,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2024 m_host.AddScriptLPS(1); 2282 m_host.AddScriptLPS(1);
2025 2283
2026 // try to let this work as in SL... 2284 // try to let this work as in SL...
2027 if (m_host.ParentID == 0) 2285 if (m_host.LinkNum < 2)
2028 { 2286 {
2029 // special case: If we are root, rotate complete SOG to new rotation 2287 // Special case: If we are root, rotate complete SOG to new
2288 // rotation.
2289 // We are root if the link number is 0 (single prim) or 1
2290 // (root prim). ParentID may be nonzero in attachments and
2291 // using it would cause attachments and HUDs to rotate
2292 // to the wrong positions.
2030 SetRot(m_host, Rot2Quaternion(rot)); 2293 SetRot(m_host, Rot2Quaternion(rot));
2031 } 2294 }
2032 else 2295 else
@@ -2051,6 +2314,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2051 2314
2052 protected void SetRot(SceneObjectPart part, Quaternion rot) 2315 protected void SetRot(SceneObjectPart part, Quaternion rot)
2053 { 2316 {
2317 if (part == null || part.ParentGroup == null || part.ParentGroup.IsDeleted)
2318 return;
2319
2054 part.UpdateRotation(rot); 2320 part.UpdateRotation(rot);
2055 // Update rotation does not move the object in the physics scene if it's a linkset. 2321 // Update rotation does not move the object in the physics scene if it's a linkset.
2056 2322
@@ -2066,7 +2332,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2066 // scene 2332 // scene
2067 PhysicsActor pa = part.PhysActor; 2333 PhysicsActor pa = part.PhysActor;
2068 2334
2069 if (pa != null && !pa.IsPhysical) 2335 if (pa != null && !pa.IsPhysical && part == part.ParentGroup.RootPart)
2070 { 2336 {
2071 part.ParentGroup.ResetChildPrimPhysicsPositions(); 2337 part.ParentGroup.ResetChildPrimPhysicsPositions();
2072 } 2338 }
@@ -2205,13 +2471,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2205 public void llApplyRotationalImpulse(LSL_Vector force, int local) 2471 public void llApplyRotationalImpulse(LSL_Vector force, int local)
2206 { 2472 {
2207 m_host.AddScriptLPS(1); 2473 m_host.AddScriptLPS(1);
2208 m_host.ApplyAngularImpulse(new Vector3((float)force.x, (float)force.y, (float)force.z), local != 0); 2474 m_host.ParentGroup.RootPart.ApplyAngularImpulse(new Vector3((float)force.x, (float)force.y, (float)force.z), local != 0);
2209 } 2475 }
2210 2476
2211 public void llSetTorque(LSL_Vector torque, int local) 2477 public void llSetTorque(LSL_Vector torque, int local)
2212 { 2478 {
2213 m_host.AddScriptLPS(1); 2479 m_host.AddScriptLPS(1);
2214 m_host.SetAngularImpulse(new Vector3((float)torque.x, (float)torque.y, (float)torque.z), local != 0); 2480 m_host.ParentGroup.RootPart.SetAngularImpulse(new Vector3((float)torque.x, (float)torque.y, (float)torque.z), local != 0);
2215 } 2481 }
2216 2482
2217 public LSL_Vector llGetTorque() 2483 public LSL_Vector llGetTorque()
@@ -2232,16 +2498,17 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2232 { 2498 {
2233 m_host.AddScriptLPS(1); 2499 m_host.AddScriptLPS(1);
2234 2500
2235 Vector3 vel; 2501 Vector3 vel = Vector3.Zero;
2236 2502
2237 if (m_host.ParentGroup.IsAttachment) 2503 if (m_host.ParentGroup.IsAttachment)
2238 { 2504 {
2239 ScenePresence avatar = m_host.ParentGroup.Scene.GetScenePresence(m_host.ParentGroup.AttachedAvatar); 2505 ScenePresence avatar = m_host.ParentGroup.Scene.GetScenePresence(m_host.ParentGroup.AttachedAvatar);
2240 vel = avatar.Velocity; 2506 if (avatar != null)
2507 vel = avatar.Velocity;
2241 } 2508 }
2242 else 2509 else
2243 { 2510 {
2244 vel = m_host.Velocity; 2511 vel = m_host.ParentGroup.RootPart.Velocity;
2245 } 2512 }
2246 2513
2247 return new LSL_Vector(vel.X, vel.Y, vel.Z); 2514 return new LSL_Vector(vel.X, vel.Y, vel.Z);
@@ -2790,8 +3057,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2790 3057
2791 if (pa != null && pa.IsPhysical && llvel != Vector3.Zero) 3058 if (pa != null && pa.IsPhysical && llvel != Vector3.Zero)
2792 { 3059 {
2793 //Recoil. 3060 // recoil
2794 llApplyImpulse(new LSL_Vector(llvel.X * groupmass, llvel.Y * groupmass, llvel.Z * groupmass), 0); 3061 llvel *= -groupmass;
3062 llApplyImpulse(new LSL_Vector(llvel.X, llvel.Y,llvel.Z), 0);
2795 } 3063 }
2796 // Variable script delay? (see (http://wiki.secondlife.com/wiki/LSL_Delay) 3064 // Variable script delay? (see (http://wiki.secondlife.com/wiki/LSL_Delay)
2797 return; 3065 return;
@@ -2813,35 +3081,39 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2813 public void llLookAt(LSL_Vector target, double strength, double damping) 3081 public void llLookAt(LSL_Vector target, double strength, double damping)
2814 { 3082 {
2815 m_host.AddScriptLPS(1); 3083 m_host.AddScriptLPS(1);
2816 // Determine where we are looking from
2817 LSL_Vector from = llGetPos();
2818 3084
2819 // Work out the normalised vector from the source to the target 3085 // Get the normalized vector to the target
2820 LSL_Vector delta = llVecNorm(target - from); 3086 LSL_Vector d1 = llVecNorm(target - llGetPos());
2821 LSL_Vector angle = new LSL_Vector(0,0,0);
2822 3087
2823 // Calculate the yaw 3088 // Get the bearing (yaw)
2824 // subtracting PI_BY_TWO is required to compensate for the odd SL co-ordinate system 3089 LSL_Vector a1 = new LSL_Vector(0,0,0);
2825 angle.x = llAtan2(delta.z, delta.y) - ScriptBaseClass.PI_BY_TWO; 3090 a1.z = llAtan2(d1.y, d1.x);
2826 3091
2827 // Calculate pitch 3092 // Get the elevation (pitch)
2828 angle.y = llAtan2(delta.x, llSqrt((delta.y * delta.y) + (delta.z * delta.z))); 3093 LSL_Vector a2 = new LSL_Vector(0,0,0);
3094 a2.y= -llAtan2(d1.z, llSqrt((d1.x * d1.x) + (d1.y * d1.y)));
2829 3095
2830 // we need to convert from a vector describing 3096 LSL_Rotation r1 = llEuler2Rot(a1);
2831 // the angles of rotation in radians into rotation value 3097 LSL_Rotation r2 = llEuler2Rot(a2);
2832 LSL_Rotation rot = llEuler2Rot(angle); 3098 LSL_Rotation r3 = new LSL_Rotation(0.000000, 0.707107, 0.000000, 0.707107);
2833
2834 // Per discussion with Melanie, for non-physical objects llLookAt appears to simply
2835 // set the rotation of the object, copy that behavior
2836 PhysicsActor pa = m_host.PhysActor;
2837 3099
2838 if (strength == 0 || pa == null || !pa.IsPhysical) 3100 if (m_host.PhysActor == null || !m_host.PhysActor.IsPhysical)
2839 { 3101 {
2840 llSetRot(rot); 3102 // Do nothing if either value is 0 (this has been checked in SL)
3103 if (strength <= 0.0 || damping <= 0.0)
3104 return;
3105
3106 llSetRot(r3 * r2 * r1);
2841 } 3107 }
2842 else 3108 else
2843 { 3109 {
2844 m_host.StartLookAt(Rot2Quaternion(rot), (float)strength, (float)damping); 3110 if (strength == 0)
3111 {
3112 llSetRot(r3 * r2 * r1);
3113 return;
3114 }
3115
3116 m_host.StartLookAt(Rot2Quaternion(r3 * r2 * r1), (float)strength, (float)damping);
2845 } 3117 }
2846 } 3118 }
2847 3119
@@ -2887,17 +3159,24 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2887 } 3159 }
2888 else 3160 else
2889 { 3161 {
2890 if (m_host.IsRoot) 3162 // new SL always returns object mass
2891 { 3163// if (m_host.IsRoot)
3164// {
2892 return m_host.ParentGroup.GetMass(); 3165 return m_host.ParentGroup.GetMass();
2893 } 3166// }
2894 else 3167// else
2895 { 3168// {
2896 return m_host.GetMass(); 3169// return m_host.GetMass();
2897 } 3170// }
2898 } 3171 }
2899 } 3172 }
2900 3173
3174
3175 public LSL_Float llGetMassMKS()
3176 {
3177 return 100f * llGetMass();
3178 }
3179
2901 public void llCollisionFilter(string name, string id, int accept) 3180 public void llCollisionFilter(string name, string id, int accept)
2902 { 3181 {
2903 m_host.AddScriptLPS(1); 3182 m_host.AddScriptLPS(1);
@@ -2972,7 +3251,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2972 IAttachmentsModule attachmentsModule = m_ScriptEngine.World.AttachmentsModule; 3251 IAttachmentsModule attachmentsModule = m_ScriptEngine.World.AttachmentsModule;
2973 3252
2974 if (attachmentsModule != null) 3253 if (attachmentsModule != null)
2975 return attachmentsModule.AttachObject(presence, grp, (uint)attachmentPoint, false); 3254 return attachmentsModule.AttachObject(presence, grp, (uint)attachmentPoint, false, true);
2976 else 3255 else
2977 return false; 3256 return false;
2978 } 3257 }
@@ -3005,9 +3284,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3005 { 3284 {
3006 m_host.AddScriptLPS(1); 3285 m_host.AddScriptLPS(1);
3007 3286
3008// if (m_host.ParentGroup.RootPart.AttachmentPoint == 0)
3009// return;
3010
3011 if (m_item.PermsGranter != m_host.OwnerID) 3287 if (m_item.PermsGranter != m_host.OwnerID)
3012 return; 3288 return;
3013 3289
@@ -3050,6 +3326,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3050 3326
3051 public void llInstantMessage(string user, string message) 3327 public void llInstantMessage(string user, string message)
3052 { 3328 {
3329 UUID result;
3330 if (!UUID.TryParse(user, out result))
3331 {
3332 ShoutError("An invalid key was passed to llInstantMessage");
3333 ScriptSleep(2000);
3334 return;
3335 }
3336
3337
3053 m_host.AddScriptLPS(1); 3338 m_host.AddScriptLPS(1);
3054 3339
3055 // We may be able to use ClientView.SendInstantMessage here, but we need a client instance. 3340 // We may be able to use ClientView.SendInstantMessage here, but we need a client instance.
@@ -3064,14 +3349,34 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3064 UUID friendTransactionID = UUID.Random(); 3349 UUID friendTransactionID = UUID.Random();
3065 3350
3066 //m_pendingFriendRequests.Add(friendTransactionID, fromAgentID); 3351 //m_pendingFriendRequests.Add(friendTransactionID, fromAgentID);
3067 3352
3068 GridInstantMessage msg = new GridInstantMessage(); 3353 GridInstantMessage msg = new GridInstantMessage();
3069 msg.fromAgentID = new Guid(m_host.UUID.ToString()); // fromAgentID.Guid; 3354 msg.fromAgentID = new Guid(m_host.UUID.ToString()); // fromAgentID.Guid;
3070 msg.toAgentID = new Guid(user); // toAgentID.Guid; 3355 msg.toAgentID = new Guid(user); // toAgentID.Guid;
3071 msg.imSessionID = new Guid(friendTransactionID.ToString()); // This is the item we're mucking with here 3356 msg.imSessionID = new Guid(friendTransactionID.ToString()); // This is the item we're mucking with here
3072// m_log.Debug("[Scripting IM]: From:" + msg.fromAgentID.ToString() + " To: " + msg.toAgentID.ToString() + " Session:" + msg.imSessionID.ToString() + " Message:" + message); 3357// m_log.Debug("[Scripting IM]: From:" + msg.fromAgentID.ToString() + " To: " + msg.toAgentID.ToString() + " Session:" + msg.imSessionID.ToString() + " Message:" + message);
3073// m_log.Debug("[Scripting IM]: Filling Session: " + msg.imSessionID.ToString()); 3358// m_log.Debug("[Scripting IM]: Filling Session: " + msg.imSessionID.ToString());
3074 msg.timestamp = (uint)Util.UnixTimeSinceEpoch();// timestamp; 3359// DateTime dt = DateTime.UtcNow;
3360//
3361// // Ticks from UtcNow, but make it look like local. Evil, huh?
3362// dt = DateTime.SpecifyKind(dt, DateTimeKind.Local);
3363//
3364// try
3365// {
3366// // Convert that to the PST timezone
3367// TimeZoneInfo timeZoneInfo = TimeZoneInfo.FindSystemTimeZoneById("America/Los_Angeles");
3368// dt = TimeZoneInfo.ConvertTime(dt, timeZoneInfo);
3369// }
3370// catch
3371// {
3372// // No logging here, as it could be VERY spammy
3373// }
3374//
3375// // And make it look local again to fool the unix time util
3376// dt = DateTime.SpecifyKind(dt, DateTimeKind.Utc);
3377
3378 msg.timestamp = (uint)Util.UnixTimeSinceEpoch();
3379
3075 //if (client != null) 3380 //if (client != null)
3076 //{ 3381 //{
3077 msg.fromAgentName = m_host.Name;//client.FirstName + " " + client.LastName;// fromAgentName; 3382 msg.fromAgentName = m_host.Name;//client.FirstName + " " + client.LastName;// fromAgentName;
@@ -3085,12 +3390,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3085 msg.message = message.Substring(0, 1024); 3390 msg.message = message.Substring(0, 1024);
3086 else 3391 else
3087 msg.message = message; 3392 msg.message = message;
3088 msg.dialog = (byte)19; // messgage from script ??? // dialog; 3393 msg.dialog = (byte)19; // MessageFromObject
3089 msg.fromGroup = false;// fromGroup; 3394 msg.fromGroup = false;// fromGroup;
3090 msg.offline = (byte)0; //offline; 3395 msg.offline = (byte)0; //offline;
3091 msg.ParentEstateID = 0; //ParentEstateID; 3396 msg.ParentEstateID = World.RegionInfo.EstateSettings.EstateID;
3092 msg.Position = new Vector3(m_host.AbsolutePosition); 3397 msg.Position = new Vector3(m_host.AbsolutePosition);
3093 msg.RegionID = World.RegionInfo.RegionID.Guid;//RegionID.Guid; 3398 msg.RegionID = World.RegionInfo.RegionID.Guid;
3094 msg.binaryBucket 3399 msg.binaryBucket
3095 = Util.StringToBytes256( 3400 = Util.StringToBytes256(
3096 "{0}/{1}/{2}/{3}", 3401 "{0}/{1}/{2}/{3}",
@@ -3118,7 +3423,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3118 } 3423 }
3119 3424
3120 emailModule.SendEmail(m_host.UUID, address, subject, message); 3425 emailModule.SendEmail(m_host.UUID, address, subject, message);
3121 llSleep(EMAIL_PAUSE_TIME); 3426 ScriptSleep(EMAIL_PAUSE_TIME * 1000);
3122 } 3427 }
3123 3428
3124 public void llGetNextEmail(string address, string subject) 3429 public void llGetNextEmail(string address, string subject)
@@ -3362,15 +3667,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3362 int implicitPerms = ScriptBaseClass.PERMISSION_TAKE_CONTROLS | 3667 int implicitPerms = ScriptBaseClass.PERMISSION_TAKE_CONTROLS |
3363 ScriptBaseClass.PERMISSION_TRIGGER_ANIMATION | 3668 ScriptBaseClass.PERMISSION_TRIGGER_ANIMATION |
3364 ScriptBaseClass.PERMISSION_CONTROL_CAMERA | 3669 ScriptBaseClass.PERMISSION_CONTROL_CAMERA |
3670 ScriptBaseClass.PERMISSION_TRACK_CAMERA |
3365 ScriptBaseClass.PERMISSION_ATTACH; 3671 ScriptBaseClass.PERMISSION_ATTACH;
3366 3672
3367 if ((perm & (~implicitPerms)) == 0) // Requested only implicit perms 3673 if ((perm & (~implicitPerms)) == 0) // Requested only implicit perms
3368 { 3674 {
3369 lock (m_host.TaskInventory) 3675 m_host.TaskInventory.LockItemsForWrite(true);
3370 { 3676 m_host.TaskInventory[m_item.ItemID].PermsGranter = agentID;
3371 m_host.TaskInventory[m_item.ItemID].PermsGranter = agentID; 3677 m_host.TaskInventory[m_item.ItemID].PermsMask = perm;
3372 m_host.TaskInventory[m_item.ItemID].PermsMask = perm; 3678 m_host.TaskInventory.LockItemsForWrite(false);
3373 }
3374 3679
3375 m_ScriptEngine.PostScriptEvent(m_item.ItemID, new EventParams( 3680 m_ScriptEngine.PostScriptEvent(m_item.ItemID, new EventParams(
3376 "run_time_permissions", new Object[] { 3681 "run_time_permissions", new Object[] {
@@ -3380,28 +3685,44 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3380 return; 3685 return;
3381 } 3686 }
3382 } 3687 }
3383 else if (m_host.SitTargetAvatar == agentID) // Sitting avatar 3688 else
3384 { 3689 {
3385 // When agent is sitting, certain permissions are implicit if requested from sitting agent 3690 bool sitting = false;
3386 int implicitPerms = ScriptBaseClass.PERMISSION_TRIGGER_ANIMATION | 3691 if (m_host.SitTargetAvatar == agentID)
3387 ScriptBaseClass.PERMISSION_CONTROL_CAMERA | 3692 {
3388 ScriptBaseClass.PERMISSION_TRACK_CAMERA | 3693 sitting = true;
3389 ScriptBaseClass.PERMISSION_TAKE_CONTROLS; 3694 }
3695 else
3696 {
3697 foreach (SceneObjectPart p in m_host.ParentGroup.Parts)
3698 {
3699 if (p.SitTargetAvatar == agentID)
3700 sitting = true;
3701 }
3702 }
3390 3703
3391 if ((perm & (~implicitPerms)) == 0) // Requested only implicit perms 3704 if (sitting)
3392 { 3705 {
3393 lock (m_host.TaskInventory) 3706 // When agent is sitting, certain permissions are implicit if requested from sitting agent
3707 int implicitPerms = ScriptBaseClass.PERMISSION_TRIGGER_ANIMATION |
3708 ScriptBaseClass.PERMISSION_CONTROL_CAMERA |
3709 ScriptBaseClass.PERMISSION_TRACK_CAMERA |
3710 ScriptBaseClass.PERMISSION_TAKE_CONTROLS;
3711
3712 if ((perm & (~implicitPerms)) == 0) // Requested only implicit perms
3394 { 3713 {
3714 m_host.TaskInventory.LockItemsForWrite(true);
3395 m_host.TaskInventory[m_item.ItemID].PermsGranter = agentID; 3715 m_host.TaskInventory[m_item.ItemID].PermsGranter = agentID;
3396 m_host.TaskInventory[m_item.ItemID].PermsMask = perm; 3716 m_host.TaskInventory[m_item.ItemID].PermsMask = perm;
3397 } 3717 m_host.TaskInventory.LockItemsForWrite(false);
3398 3718
3399 m_ScriptEngine.PostScriptEvent(m_item.ItemID, new EventParams( 3719 m_ScriptEngine.PostScriptEvent(m_item.ItemID, new EventParams(
3400 "run_time_permissions", new Object[] { 3720 "run_time_permissions", new Object[] {
3401 new LSL_Integer(perm) }, 3721 new LSL_Integer(perm) },
3402 new DetectParams[0])); 3722 new DetectParams[0]));
3403 3723
3404 return; 3724 return;
3725 }
3405 } 3726 }
3406 } 3727 }
3407 3728
@@ -3438,11 +3759,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3438 3759
3439 if (!m_waitingForScriptAnswer) 3760 if (!m_waitingForScriptAnswer)
3440 { 3761 {
3441 lock (m_host.TaskInventory) 3762 m_host.TaskInventory.LockItemsForWrite(true);
3442 { 3763 m_host.TaskInventory[m_item.ItemID].PermsGranter = agentID;
3443 m_host.TaskInventory[m_item.ItemID].PermsGranter = agentID; 3764 m_host.TaskInventory[m_item.ItemID].PermsMask = 0;
3444 m_host.TaskInventory[m_item.ItemID].PermsMask = 0; 3765 m_host.TaskInventory.LockItemsForWrite(false);
3445 }
3446 3766
3447 presence.ControllingClient.OnScriptAnswer += handleScriptAnswer; 3767 presence.ControllingClient.OnScriptAnswer += handleScriptAnswer;
3448 m_waitingForScriptAnswer=true; 3768 m_waitingForScriptAnswer=true;
@@ -3471,14 +3791,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3471 if ((answer & ScriptBaseClass.PERMISSION_TAKE_CONTROLS) == 0) 3791 if ((answer & ScriptBaseClass.PERMISSION_TAKE_CONTROLS) == 0)
3472 llReleaseControls(); 3792 llReleaseControls();
3473 3793
3474 lock (m_host.TaskInventory) 3794 m_host.TaskInventory.LockItemsForWrite(true);
3475 { 3795 m_host.TaskInventory[m_item.ItemID].PermsMask = answer;
3476 m_host.TaskInventory[m_item.ItemID].PermsMask = answer; 3796 m_host.TaskInventory.LockItemsForWrite(false);
3477 } 3797
3478 3798 m_ScriptEngine.PostScriptEvent(m_item.ItemID, new EventParams(
3479 m_ScriptEngine.PostScriptEvent( 3799 "run_time_permissions", new Object[] {
3480 m_item.ItemID, 3800 new LSL_Integer(answer) },
3481 new EventParams("run_time_permissions", new Object[] { new LSL_Integer(answer) }, new DetectParams[0])); 3801 new DetectParams[0]));
3482 } 3802 }
3483 3803
3484 public LSL_String llGetPermissionsKey() 3804 public LSL_String llGetPermissionsKey()
@@ -3517,14 +3837,25 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3517 public void llSetLinkColor(int linknumber, LSL_Vector color, int face) 3837 public void llSetLinkColor(int linknumber, LSL_Vector color, int face)
3518 { 3838 {
3519 List<SceneObjectPart> parts = GetLinkParts(linknumber); 3839 List<SceneObjectPart> parts = GetLinkParts(linknumber);
3520 3840 if (parts.Count > 0)
3521 foreach (SceneObjectPart part in parts) 3841 {
3522 part.SetFaceColor(new Vector3((float)color.x, (float)color.y, (float)color.z), face); 3842 try
3843 {
3844 parts[0].ParentGroup.areUpdatesSuspended = true;
3845 foreach (SceneObjectPart part in parts)
3846 part.SetFaceColor(new Vector3((float)color.x, (float)color.y, (float)color.z), face);
3847 }
3848 finally
3849 {
3850 parts[0].ParentGroup.areUpdatesSuspended = false;
3851 }
3852 }
3523 } 3853 }
3524 3854
3525 public void llCreateLink(string target, int parent) 3855 public void llCreateLink(string target, int parent)
3526 { 3856 {
3527 m_host.AddScriptLPS(1); 3857 m_host.AddScriptLPS(1);
3858
3528 UUID targetID; 3859 UUID targetID;
3529 3860
3530 if (!UUID.TryParse(target, out targetID)) 3861 if (!UUID.TryParse(target, out targetID))
@@ -3630,10 +3961,22 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3630 // Restructuring Multiple Prims. 3961 // Restructuring Multiple Prims.
3631 List<SceneObjectPart> parts = new List<SceneObjectPart>(parentPrim.Parts); 3962 List<SceneObjectPart> parts = new List<SceneObjectPart>(parentPrim.Parts);
3632 parts.Remove(parentPrim.RootPart); 3963 parts.Remove(parentPrim.RootPart);
3633 foreach (SceneObjectPart part in parts) 3964 if (parts.Count > 0)
3634 { 3965 {
3635 parentPrim.DelinkFromGroup(part.LocalId, true); 3966 try
3967 {
3968 parts[0].ParentGroup.areUpdatesSuspended = true;
3969 foreach (SceneObjectPart part in parts)
3970 {
3971 parentPrim.DelinkFromGroup(part.LocalId, true);
3972 }
3973 }
3974 finally
3975 {
3976 parts[0].ParentGroup.areUpdatesSuspended = false;
3977 }
3636 } 3978 }
3979
3637 parentPrim.HasGroupChanged = true; 3980 parentPrim.HasGroupChanged = true;
3638 parentPrim.ScheduleGroupForFullUpdate(); 3981 parentPrim.ScheduleGroupForFullUpdate();
3639 parentPrim.TriggerScriptChangedEvent(Changed.LINK); 3982 parentPrim.TriggerScriptChangedEvent(Changed.LINK);
@@ -3642,12 +3985,22 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3642 { 3985 {
3643 SceneObjectPart newRoot = parts[0]; 3986 SceneObjectPart newRoot = parts[0];
3644 parts.Remove(newRoot); 3987 parts.Remove(newRoot);
3645 foreach (SceneObjectPart part in parts) 3988
3989 try
3646 { 3990 {
3647 // Required for linking 3991 parts[0].ParentGroup.areUpdatesSuspended = true;
3648 part.ClearUpdateSchedule(); 3992 foreach (SceneObjectPart part in parts)
3649 newRoot.ParentGroup.LinkToGroup(part.ParentGroup); 3993 {
3994 part.ClearUpdateSchedule();
3995 newRoot.ParentGroup.LinkToGroup(part.ParentGroup);
3996 }
3650 } 3997 }
3998 finally
3999 {
4000 parts[0].ParentGroup.areUpdatesSuspended = false;
4001 }
4002
4003
3651 newRoot.ParentGroup.HasGroupChanged = true; 4004 newRoot.ParentGroup.HasGroupChanged = true;
3652 newRoot.ParentGroup.ScheduleGroupForFullUpdate(); 4005 newRoot.ParentGroup.ScheduleGroupForFullUpdate();
3653 } 4006 }
@@ -3667,6 +4020,16 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3667 public void llBreakAllLinks() 4020 public void llBreakAllLinks()
3668 { 4021 {
3669 m_host.AddScriptLPS(1); 4022 m_host.AddScriptLPS(1);
4023
4024 TaskInventoryItem item = m_item;
4025
4026 if ((item.PermsMask & ScriptBaseClass.PERMISSION_CHANGE_LINKS) == 0
4027 && !m_automaticLinkPermission)
4028 {
4029 ShoutError("Script trying to link but PERMISSION_CHANGE_LINKS permission not set!");
4030 return;
4031 }
4032
3670 SceneObjectGroup parentPrim = m_host.ParentGroup; 4033 SceneObjectGroup parentPrim = m_host.ParentGroup;
3671 if (parentPrim.AttachmentPoint != 0) 4034 if (parentPrim.AttachmentPoint != 0)
3672 return; // Fail silently if attached 4035 return; // Fail silently if attached
@@ -3686,25 +4049,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3686 public LSL_String llGetLinkKey(int linknum) 4049 public LSL_String llGetLinkKey(int linknum)
3687 { 4050 {
3688 m_host.AddScriptLPS(1); 4051 m_host.AddScriptLPS(1);
3689 List<UUID> keytable = new List<UUID>();
3690 // parse for sitting avatare-uuids
3691 World.ForEachRootScenePresence(delegate(ScenePresence presence)
3692 {
3693 if (presence.ParentID != 0 && m_host.ParentGroup.ContainsPart(presence.ParentID))
3694 keytable.Add(presence.UUID);
3695 });
3696
3697 int totalprims = m_host.ParentGroup.PrimCount + keytable.Count;
3698 if (linknum > m_host.ParentGroup.PrimCount && linknum <= totalprims)
3699 {
3700 return keytable[totalprims - linknum].ToString();
3701 }
3702
3703 if (linknum == 1 && m_host.ParentGroup.PrimCount == 1 && keytable.Count == 1)
3704 {
3705 return m_host.UUID.ToString();
3706 }
3707
3708 SceneObjectPart part = m_host.ParentGroup.GetLinkNumPart(linknum); 4052 SceneObjectPart part = m_host.ParentGroup.GetLinkNumPart(linknum);
3709 if (part != null) 4053 if (part != null)
3710 { 4054 {
@@ -3712,6 +4056,19 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3712 } 4056 }
3713 else 4057 else
3714 { 4058 {
4059 if (linknum > m_host.ParentGroup.PrimCount || (linknum == 1 && m_host.ParentGroup.PrimCount == 1))
4060 {
4061 linknum -= (m_host.ParentGroup.PrimCount) + 1;
4062
4063 if (linknum < 0)
4064 return UUID.Zero.ToString();
4065
4066 List<ScenePresence> avatars = GetLinkAvatars(ScriptBaseClass.LINK_SET);
4067 if (avatars.Count > linknum)
4068 {
4069 return avatars[linknum].UUID.ToString();
4070 }
4071 }
3715 return UUID.Zero.ToString(); 4072 return UUID.Zero.ToString();
3716 } 4073 }
3717 } 4074 }
@@ -3811,17 +4168,16 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3811 m_host.AddScriptLPS(1); 4168 m_host.AddScriptLPS(1);
3812 int count = 0; 4169 int count = 0;
3813 4170
3814 lock (m_host.TaskInventory) 4171 m_host.TaskInventory.LockItemsForRead(true);
4172 foreach (KeyValuePair<UUID, TaskInventoryItem> inv in m_host.TaskInventory)
3815 { 4173 {
3816 foreach (KeyValuePair<UUID, TaskInventoryItem> inv in m_host.TaskInventory) 4174 if (inv.Value.Type == type || type == -1)
3817 { 4175 {
3818 if (inv.Value.Type == type || type == -1) 4176 count = count + 1;
3819 {
3820 count = count + 1;
3821 }
3822 } 4177 }
3823 } 4178 }
3824 4179
4180 m_host.TaskInventory.LockItemsForRead(false);
3825 return count; 4181 return count;
3826 } 4182 }
3827 4183
@@ -3830,16 +4186,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3830 m_host.AddScriptLPS(1); 4186 m_host.AddScriptLPS(1);
3831 ArrayList keys = new ArrayList(); 4187 ArrayList keys = new ArrayList();
3832 4188
3833 lock (m_host.TaskInventory) 4189 m_host.TaskInventory.LockItemsForRead(true);
4190 foreach (KeyValuePair<UUID, TaskInventoryItem> inv in m_host.TaskInventory)
3834 { 4191 {
3835 foreach (KeyValuePair<UUID, TaskInventoryItem> inv in m_host.TaskInventory) 4192 if (inv.Value.Type == type || type == -1)
3836 { 4193 {
3837 if (inv.Value.Type == type || type == -1) 4194 keys.Add(inv.Value.Name);
3838 {
3839 keys.Add(inv.Value.Name);
3840 }
3841 } 4195 }
3842 } 4196 }
4197 m_host.TaskInventory.LockItemsForRead(false);
3843 4198
3844 if (keys.Count == 0) 4199 if (keys.Count == 0)
3845 { 4200 {
@@ -3876,25 +4231,25 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3876 } 4231 }
3877 4232
3878 // move the first object found with this inventory name 4233 // move the first object found with this inventory name
3879 lock (m_host.TaskInventory) 4234 m_host.TaskInventory.LockItemsForRead(true);
4235 foreach (KeyValuePair<UUID, TaskInventoryItem> inv in m_host.TaskInventory)
3880 { 4236 {
3881 foreach (KeyValuePair<UUID, TaskInventoryItem> inv in m_host.TaskInventory) 4237 if (inv.Value.Name == inventory)
3882 { 4238 {
3883 if (inv.Value.Name == inventory) 4239 found = true;
3884 { 4240 objId = inv.Key;
3885 found = true; 4241 assetType = inv.Value.Type;
3886 objId = inv.Key; 4242 objName = inv.Value.Name;
3887 assetType = inv.Value.Type; 4243 break;
3888 objName = inv.Value.Name;
3889 break;
3890 }
3891 } 4244 }
3892 } 4245 }
4246 m_host.TaskInventory.LockItemsForRead(false);
3893 4247
3894 if (!found) 4248 if (!found)
3895 { 4249 {
3896 llSay(0, String.Format("Could not find object '{0}'", inventory)); 4250 llSay(0, String.Format("Could not find object '{0}'", inventory));
3897 throw new Exception(String.Format("The inventory object '{0}' could not be found", inventory)); 4251 return;
4252// throw new Exception(String.Format("The inventory object '{0}' could not be found", inventory));
3898 } 4253 }
3899 4254
3900 // check if destination is an object 4255 // check if destination is an object
@@ -3920,48 +4275,68 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3920 return; 4275 return;
3921 } 4276 }
3922 } 4277 }
4278
3923 // destination is an avatar 4279 // destination is an avatar
3924 InventoryItemBase agentItem = World.MoveTaskInventoryItem(destId, UUID.Zero, m_host, objId); 4280 InventoryItemBase agentItem = World.MoveTaskInventoryItem(destId, UUID.Zero, m_host, objId);
3925 4281
3926 if (agentItem == null) 4282 if (agentItem == null)
3927 return; 4283 return;
3928 4284
3929 byte[] bucket = new byte[17]; 4285 byte[] bucket = new byte[1];
3930 bucket[0] = (byte)assetType; 4286 bucket[0] = (byte)assetType;
3931 byte[] objBytes = agentItem.ID.GetBytes(); 4287 //byte[] objBytes = agentItem.ID.GetBytes();
3932 Array.Copy(objBytes, 0, bucket, 1, 16); 4288 //Array.Copy(objBytes, 0, bucket, 1, 16);
3933 4289
3934 GridInstantMessage msg = new GridInstantMessage(World, 4290 GridInstantMessage msg = new GridInstantMessage(World,
3935 m_host.UUID, m_host.Name+", an object owned by "+ 4291 m_host.OwnerID, m_host.Name, destId,
3936 resolveName(m_host.OwnerID)+",", destId,
3937 (byte)InstantMessageDialog.TaskInventoryOffered, 4292 (byte)InstantMessageDialog.TaskInventoryOffered,
3938 false, objName+"\n"+m_host.Name+" is located at "+ 4293 false, objName+". "+m_host.Name+" is located at "+
3939 World.RegionInfo.RegionName+" "+ 4294 World.RegionInfo.RegionName+" "+
3940 m_host.AbsolutePosition.ToString(), 4295 m_host.AbsolutePosition.ToString(),
3941 agentItem.ID, true, m_host.AbsolutePosition, 4296 agentItem.ID, true, m_host.AbsolutePosition,
3942 bucket); 4297 bucket);
3943 if (m_TransferModule != null) 4298
3944 m_TransferModule.SendInstantMessage(msg, delegate(bool success) {}); 4299 ScenePresence sp;
4300
4301 if (World.TryGetScenePresence(destId, out sp))
4302 {
4303 sp.ControllingClient.SendInstantMessage(msg);
4304 }
4305 else
4306 {
4307 if (m_TransferModule != null)
4308 m_TransferModule.SendInstantMessage(msg, delegate(bool success) {});
4309 }
4310
4311 //This delay should only occur when giving inventory to avatars.
3945 ScriptSleep(3000); 4312 ScriptSleep(3000);
3946 } 4313 }
3947 } 4314 }
3948 4315
4316 [DebuggerNonUserCode]
3949 public void llRemoveInventory(string name) 4317 public void llRemoveInventory(string name)
3950 { 4318 {
3951 m_host.AddScriptLPS(1); 4319 m_host.AddScriptLPS(1);
3952 4320
3953 lock (m_host.TaskInventory) 4321 List<TaskInventoryItem> inv;
4322 try
3954 { 4323 {
3955 foreach (TaskInventoryItem item in m_host.TaskInventory.Values) 4324 m_host.TaskInventory.LockItemsForRead(true);
4325 inv = new List<TaskInventoryItem>(m_host.TaskInventory.Values);
4326 }
4327 finally
4328 {
4329 m_host.TaskInventory.LockItemsForRead(false);
4330 }
4331 foreach (TaskInventoryItem item in inv)
4332 {
4333 if (item.Name == name)
3956 { 4334 {
3957 if (item.Name == name) 4335 if (item.ItemID == m_item.ItemID)
3958 { 4336 throw new ScriptDeleteException();
3959 if (item.ItemID == m_item.ItemID) 4337 else
3960 throw new ScriptDeleteException(); 4338 m_host.Inventory.RemoveInventoryItem(item.ItemID);
3961 else 4339 return;
3962 m_host.Inventory.RemoveInventoryItem(item.ItemID);
3963 return;
3964 }
3965 } 4340 }
3966 } 4341 }
3967 } 4342 }
@@ -3996,115 +4371,122 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3996 { 4371 {
3997 m_host.AddScriptLPS(1); 4372 m_host.AddScriptLPS(1);
3998 4373
3999 UUID uuid = (UUID)id; 4374 UUID uuid;
4000 PresenceInfo pinfo = null; 4375 if (UUID.TryParse(id, out uuid))
4001 UserAccount account;
4002
4003 UserInfoCacheEntry ce;
4004 if (!m_userInfoCache.TryGetValue(uuid, out ce))
4005 { 4376 {
4006 account = World.UserAccountService.GetUserAccount(World.RegionInfo.ScopeID, uuid); 4377 PresenceInfo pinfo = null;
4007 if (account == null) 4378 UserAccount account;
4379
4380 UserInfoCacheEntry ce;
4381 if (!m_userInfoCache.TryGetValue(uuid, out ce))
4008 { 4382 {
4009 m_userInfoCache[uuid] = null; // Cache negative 4383 account = World.UserAccountService.GetUserAccount(World.RegionInfo.ScopeID, uuid);
4010 return UUID.Zero.ToString(); 4384 if (account == null)
4011 } 4385 {
4386 m_userInfoCache[uuid] = null; // Cache negative
4387 return UUID.Zero.ToString();
4388 }
4012 4389
4013 4390
4014 PresenceInfo[] pinfos = World.PresenceService.GetAgents(new string[] { uuid.ToString() }); 4391 PresenceInfo[] pinfos = World.PresenceService.GetAgents(new string[] { uuid.ToString() });
4015 if (pinfos != null && pinfos.Length > 0) 4392 if (pinfos != null && pinfos.Length > 0)
4016 {
4017 foreach (PresenceInfo p in pinfos)
4018 { 4393 {
4019 if (p.RegionID != UUID.Zero) 4394 foreach (PresenceInfo p in pinfos)
4020 { 4395 {
4021 pinfo = p; 4396 if (p.RegionID != UUID.Zero)
4397 {
4398 pinfo = p;
4399 }
4022 } 4400 }
4023 } 4401 }
4024 }
4025 4402
4026 ce = new UserInfoCacheEntry(); 4403 ce = new UserInfoCacheEntry();
4027 ce.time = Util.EnvironmentTickCount(); 4404 ce.time = Util.EnvironmentTickCount();
4028 ce.account = account; 4405 ce.account = account;
4029 ce.pinfo = pinfo; 4406 ce.pinfo = pinfo;
4030 } 4407 m_userInfoCache[uuid] = ce;
4031 else 4408 }
4032 { 4409 else
4033 if (ce == null) 4410 {
4034 return UUID.Zero.ToString(); 4411 if (ce == null)
4412 return UUID.Zero.ToString();
4035 4413
4036 account = ce.account; 4414 account = ce.account;
4037 pinfo = ce.pinfo; 4415 pinfo = ce.pinfo;
4038 } 4416 }
4039 4417
4040 if (Util.EnvironmentTickCount() < ce.time || (Util.EnvironmentTickCount() - ce.time) >= 20000) 4418 if (Util.EnvironmentTickCount() < ce.time || (Util.EnvironmentTickCount() - ce.time) >= 20000)
4041 {
4042 PresenceInfo[] pinfos = World.PresenceService.GetAgents(new string[] { uuid.ToString() });
4043 if (pinfos != null && pinfos.Length > 0)
4044 { 4419 {
4045 foreach (PresenceInfo p in pinfos) 4420 PresenceInfo[] pinfos = World.PresenceService.GetAgents(new string[] { uuid.ToString() });
4421 if (pinfos != null && pinfos.Length > 0)
4046 { 4422 {
4047 if (p.RegionID != UUID.Zero) 4423 foreach (PresenceInfo p in pinfos)
4048 { 4424 {
4049 pinfo = p; 4425 if (p.RegionID != UUID.Zero)
4426 {
4427 pinfo = p;
4428 }
4050 } 4429 }
4051 } 4430 }
4052 } 4431 else
4053 else 4432 pinfo = null;
4054 pinfo = null;
4055 4433
4056 ce.time = Util.EnvironmentTickCount(); 4434 ce.time = Util.EnvironmentTickCount();
4057 ce.pinfo = pinfo; 4435 ce.pinfo = pinfo;
4058 } 4436 }
4059 4437
4060 string reply = String.Empty; 4438 string reply = String.Empty;
4061 4439
4062 switch (data) 4440 switch (data)
4063 { 4441 {
4064 case 1: // DATA_ONLINE (0|1) 4442 case 1: // DATA_ONLINE (0|1)
4065 if (pinfo != null && pinfo.RegionID != UUID.Zero) 4443 if (pinfo != null && pinfo.RegionID != UUID.Zero)
4066 reply = "1"; 4444 reply = "1";
4067 else 4445 else
4068 reply = "0"; 4446 reply = "0";
4069 break; 4447 break;
4070 case 2: // DATA_NAME (First Last) 4448 case 2: // DATA_NAME (First Last)
4071 reply = account.FirstName + " " + account.LastName; 4449 reply = account.FirstName + " " + account.LastName;
4072 break; 4450 break;
4073 case 3: // DATA_BORN (YYYY-MM-DD) 4451 case 3: // DATA_BORN (YYYY-MM-DD)
4074 DateTime born = new DateTime(1970, 1, 1, 0, 0, 0, 0); 4452 DateTime born = new DateTime(1970, 1, 1, 0, 0, 0, 0);
4075 born = born.AddSeconds(account.Created); 4453 born = born.AddSeconds(account.Created);
4076 reply = born.ToString("yyyy-MM-dd"); 4454 reply = born.ToString("yyyy-MM-dd");
4077 break; 4455 break;
4078 case 4: // DATA_RATING (0,0,0,0,0,0) 4456 case 4: // DATA_RATING (0,0,0,0,0,0)
4079 reply = "0,0,0,0,0,0"; 4457 reply = "0,0,0,0,0,0";
4080 break; 4458 break;
4081 case 7: // DATA_USERLEVEL (integer) 4459 case 8: // DATA_PAYINFO (0|1|2|3)
4082 reply = account.UserLevel.ToString(); 4460 reply = "0";
4083 break; 4461 break;
4084 case 8: // DATA_PAYINFO (0|1|2|3) 4462 default:
4085 reply = "0"; 4463 return UUID.Zero.ToString(); // Raise no event
4086 break; 4464 }
4087 default:
4088 return UUID.Zero.ToString(); // Raise no event
4089 }
4090 4465
4091 UUID rq = UUID.Random(); 4466 UUID rq = UUID.Random();
4092 4467
4093 UUID tid = AsyncCommands. 4468 UUID tid = AsyncCommands.
4094 DataserverPlugin.RegisterRequest(m_host.LocalId, 4469 DataserverPlugin.RegisterRequest(m_host.LocalId,
4095 m_item.ItemID, rq.ToString()); 4470 m_item.ItemID, rq.ToString());
4096 4471
4097 AsyncCommands. 4472 AsyncCommands.
4098 DataserverPlugin.DataserverReply(rq.ToString(), reply); 4473 DataserverPlugin.DataserverReply(rq.ToString(), reply);
4099 4474
4100 ScriptSleep(100); 4475 ScriptSleep(100);
4101 return tid.ToString(); 4476 return tid.ToString();
4477 }
4478 else
4479 {
4480 ShoutError("Invalid UUID passed to llRequestAgentData.");
4481 }
4482 return "";
4102 } 4483 }
4103 4484
4104 public LSL_String llRequestInventoryData(string name) 4485 public LSL_String llRequestInventoryData(string name)
4105 { 4486 {
4106 m_host.AddScriptLPS(1); 4487 m_host.AddScriptLPS(1);
4107 4488
4489 //Clone is thread safe
4108 TaskInventoryDictionary itemDictionary = (TaskInventoryDictionary)m_host.TaskInventory.Clone(); 4490 TaskInventoryDictionary itemDictionary = (TaskInventoryDictionary)m_host.TaskInventory.Clone();
4109 4491
4110 foreach (TaskInventoryItem item in itemDictionary.Values) 4492 foreach (TaskInventoryItem item in itemDictionary.Values)
@@ -4156,13 +4538,26 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
4156 if (UUID.TryParse(agent, out agentId)) 4538 if (UUID.TryParse(agent, out agentId))
4157 { 4539 {
4158 ScenePresence presence = World.GetScenePresence(agentId); 4540 ScenePresence presence = World.GetScenePresence(agentId);
4159 if (presence != null) 4541 if (presence != null && presence.PresenceType != PresenceType.Npc)
4160 { 4542 {
4543 // agent must not be a god
4544 if (presence.UserLevel >= 200) return;
4545
4161 // agent must be over the owners land 4546 // agent must be over the owners land
4162 if (m_host.OwnerID == World.LandChannel.GetLandObject( 4547 if (m_host.OwnerID == World.LandChannel.GetLandObject(
4163 presence.AbsolutePosition.X, presence.AbsolutePosition.Y).LandData.OwnerID) 4548 presence.AbsolutePosition.X, presence.AbsolutePosition.Y).LandData.OwnerID)
4164 { 4549 {
4165 World.TeleportClientHome(agentId, presence.ControllingClient); 4550 if (!World.TeleportClientHome(agentId, presence.ControllingClient))
4551 {
4552 // They can't be teleported home for some reason
4553 GridRegion regionInfo = World.GridService.GetRegionByUUID(UUID.Zero, new UUID("2b02daac-e298-42fa-9a75-f488d37896e6"));
4554 if (regionInfo != null)
4555 {
4556 World.RequestTeleportLocation(
4557 presence.ControllingClient, regionInfo.RegionHandle, new Vector3(128, 128, 23), Vector3.Zero,
4558 (uint)(Constants.TeleportFlags.SetLastToTarget | Constants.TeleportFlags.ViaHome));
4559 }
4560 }
4166 } 4561 }
4167 } 4562 }
4168 } 4563 }
@@ -4274,7 +4669,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
4274 UUID av = new UUID(); 4669 UUID av = new UUID();
4275 if (!UUID.TryParse(agent,out av)) 4670 if (!UUID.TryParse(agent,out av))
4276 { 4671 {
4277 LSLError("First parameter to llDialog needs to be a key"); 4672 //LSLError("First parameter to llDialog needs to be a key");
4278 return; 4673 return;
4279 } 4674 }
4280 4675
@@ -4306,25 +4701,32 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
4306 public void llCollisionSound(string impact_sound, double impact_volume) 4701 public void llCollisionSound(string impact_sound, double impact_volume)
4307 { 4702 {
4308 m_host.AddScriptLPS(1); 4703 m_host.AddScriptLPS(1);
4309 4704
4705 if(impact_sound == "")
4706 {
4707 m_host.CollisionSoundVolume = (float)impact_volume;
4708 m_host.CollisionSound = m_host.invalidCollisionSoundUUID;
4709 m_host.CollisionSoundType = 0;
4710 return;
4711 }
4310 // TODO: Parameter check logic required. 4712 // TODO: Parameter check logic required.
4311 UUID soundId = UUID.Zero; 4713 UUID soundId = UUID.Zero;
4312 if (!UUID.TryParse(impact_sound, out soundId)) 4714 if (!UUID.TryParse(impact_sound, out soundId))
4313 { 4715 {
4314 lock (m_host.TaskInventory) 4716 m_host.TaskInventory.LockItemsForRead(true);
4717 foreach (TaskInventoryItem item in m_host.TaskInventory.Values)
4315 { 4718 {
4316 foreach (TaskInventoryItem item in m_host.TaskInventory.Values) 4719 if (item.Type == (int)AssetType.Sound && item.Name == impact_sound)
4317 { 4720 {
4318 if (item.Type == (int)AssetType.Sound && item.Name == impact_sound) 4721 soundId = item.AssetID;
4319 { 4722 break;
4320 soundId = item.AssetID;
4321 break;
4322 }
4323 } 4723 }
4324 } 4724 }
4725 m_host.TaskInventory.LockItemsForRead(false);
4325 } 4726 }
4326 m_host.CollisionSound = soundId;
4327 m_host.CollisionSoundVolume = (float)impact_volume; 4727 m_host.CollisionSoundVolume = (float)impact_volume;
4728 m_host.CollisionSound = soundId;
4729 m_host.CollisionSoundType = 1;
4328 } 4730 }
4329 4731
4330 public LSL_String llGetAnimation(string id) 4732 public LSL_String llGetAnimation(string id)
@@ -4338,14 +4740,18 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
4338 4740
4339 if (m_host.RegionHandle == presence.RegionHandle) 4741 if (m_host.RegionHandle == presence.RegionHandle)
4340 { 4742 {
4341 Dictionary<UUID, string> animationstateNames = DefaultAvatarAnimations.AnimStateNames;
4342
4343 if (presence != null) 4743 if (presence != null)
4344 { 4744 {
4345 AnimationSet currentAnims = presence.Animator.Animations; 4745 if (presence.SitGround)
4346 string currentAnimationState = String.Empty; 4746 return "Sitting on Ground";
4347 if (animationstateNames.TryGetValue(currentAnims.DefaultAnimation.AnimID, out currentAnimationState)) 4747 if (presence.ParentID != 0 || presence.ParentUUID != UUID.Zero)
4348 return currentAnimationState; 4748 return "Sitting";
4749
4750 string movementAnimation = presence.Animator.CurrentMovementAnimation;
4751 string lslMovementAnimation;
4752
4753 if (MovementAnimationsForLSL.TryGetValue(movementAnimation, out lslMovementAnimation))
4754 return lslMovementAnimation;
4349 } 4755 }
4350 } 4756 }
4351 4757
@@ -4361,6 +4767,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
4361 UUID partItemID; 4767 UUID partItemID;
4362 foreach (SceneObjectPart part in parts) 4768 foreach (SceneObjectPart part in parts)
4363 { 4769 {
4770 //Clone is thread safe
4364 TaskInventoryDictionary itemsDictionary = (TaskInventoryDictionary)part.TaskInventory.Clone(); 4771 TaskInventoryDictionary itemsDictionary = (TaskInventoryDictionary)part.TaskInventory.Clone();
4365 4772
4366 foreach (TaskInventoryItem item in itemsDictionary.Values) 4773 foreach (TaskInventoryItem item in itemsDictionary.Values)
@@ -4494,7 +4901,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
4494 { 4901 {
4495 float distance = (PusheePos - m_host.AbsolutePosition).Length(); 4902 float distance = (PusheePos - m_host.AbsolutePosition).Length();
4496 float distance_term = distance * distance * distance; // Script Energy 4903 float distance_term = distance * distance * distance; // Script Energy
4497 float pusher_mass = m_host.GetMass(); 4904 // use total object mass and not part
4905 float pusher_mass = m_host.ParentGroup.GetMass();
4498 4906
4499 float PUSH_ATTENUATION_DISTANCE = 17f; 4907 float PUSH_ATTENUATION_DISTANCE = 17f;
4500 float PUSH_ATTENUATION_SCALE = 5f; 4908 float PUSH_ATTENUATION_SCALE = 5f;
@@ -4733,23 +5141,24 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
4733 { 5141 {
4734 m_host.AddScriptLPS(1); 5142 m_host.AddScriptLPS(1);
4735 5143
4736 lock (m_host.TaskInventory) 5144 m_host.TaskInventory.LockItemsForRead(true);
5145 foreach (KeyValuePair<UUID, TaskInventoryItem> inv in m_host.TaskInventory)
4737 { 5146 {
4738 foreach (KeyValuePair<UUID, TaskInventoryItem> inv in m_host.TaskInventory) 5147 if (inv.Value.Name == name)
4739 { 5148 {
4740 if (inv.Value.Name == name) 5149 if ((inv.Value.CurrentPermissions & (uint)(PermissionMask.Copy | PermissionMask.Transfer | PermissionMask.Modify)) == (uint)(PermissionMask.Copy | PermissionMask.Transfer | PermissionMask.Modify))
4741 { 5150 {
4742 if ((inv.Value.CurrentPermissions & (uint)(PermissionMask.Copy | PermissionMask.Transfer | PermissionMask.Modify)) == (uint)(PermissionMask.Copy | PermissionMask.Transfer | PermissionMask.Modify)) 5151 m_host.TaskInventory.LockItemsForRead(false);
4743 { 5152 return inv.Value.AssetID.ToString();
4744 return inv.Value.AssetID.ToString(); 5153 }
4745 } 5154 else
4746 else 5155 {
4747 { 5156 m_host.TaskInventory.LockItemsForRead(false);
4748 return UUID.Zero.ToString(); 5157 return UUID.Zero.ToString();
4749 }
4750 } 5158 }
4751 } 5159 }
4752 } 5160 }
5161 m_host.TaskInventory.LockItemsForRead(false);
4753 5162
4754 return UUID.Zero.ToString(); 5163 return UUID.Zero.ToString();
4755 } 5164 }
@@ -4883,7 +5292,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
4883 public LSL_Vector llGetCenterOfMass() 5292 public LSL_Vector llGetCenterOfMass()
4884 { 5293 {
4885 m_host.AddScriptLPS(1); 5294 m_host.AddScriptLPS(1);
4886 Vector3 center = m_host.GetGeometricCenter(); 5295 Vector3 center = m_host.GetCenterOfMass();
4887 return new LSL_Vector(center.X,center.Y,center.Z); 5296 return new LSL_Vector(center.X,center.Y,center.Z);
4888 } 5297 }
4889 5298
@@ -4902,14 +5311,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
4902 { 5311 {
4903 m_host.AddScriptLPS(1); 5312 m_host.AddScriptLPS(1);
4904 5313
4905 if (src == null) 5314 return src.Length;
4906 {
4907 return 0;
4908 }
4909 else
4910 {
4911 return src.Length;
4912 }
4913 } 5315 }
4914 5316
4915 public LSL_Integer llList2Integer(LSL_List src, int index) 5317 public LSL_Integer llList2Integer(LSL_List src, int index)
@@ -4955,7 +5357,20 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
4955 else if (src.Data[index] is LSL_Float) 5357 else if (src.Data[index] is LSL_Float)
4956 return Convert.ToDouble(((LSL_Float) src.Data[index]).value); 5358 return Convert.ToDouble(((LSL_Float) src.Data[index]).value);
4957 else if (src.Data[index] is LSL_String) 5359 else if (src.Data[index] is LSL_String)
4958 return Convert.ToDouble(((LSL_String) src.Data[index]).m_string); 5360 {
5361 string str = ((LSL_String) src.Data[index]).m_string;
5362 Match m = Regex.Match(str, "^\\s*(-?\\+?[,0-9]+\\.?[0-9]*)");
5363 if (m != Match.Empty)
5364 {
5365 str = m.Value;
5366 double d = 0.0;
5367 if (!Double.TryParse(str, out d))
5368 return 0.0;
5369
5370 return d;
5371 }
5372 return 0.0;
5373 }
4959 return Convert.ToDouble(src.Data[index]); 5374 return Convert.ToDouble(src.Data[index]);
4960 } 5375 }
4961 catch (FormatException) 5376 catch (FormatException)
@@ -5228,7 +5643,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
5228 } 5643 }
5229 } 5644 }
5230 } 5645 }
5231 else { 5646 else
5647 {
5232 object[] array = new object[src.Length]; 5648 object[] array = new object[src.Length];
5233 Array.Copy(src.Data, 0, array, 0, src.Length); 5649 Array.Copy(src.Data, 0, array, 0, src.Length);
5234 result = new LSL_List(array); 5650 result = new LSL_List(array);
@@ -5335,7 +5751,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
5335 public LSL_Integer llGetRegionAgentCount() 5751 public LSL_Integer llGetRegionAgentCount()
5336 { 5752 {
5337 m_host.AddScriptLPS(1); 5753 m_host.AddScriptLPS(1);
5338 return new LSL_Integer(World.GetRootAgentCount()); 5754
5755 int count = 0;
5756 World.ForEachRootScenePresence(delegate(ScenePresence sp) {
5757 count++;
5758 });
5759
5760 return new LSL_Integer(count);
5339 } 5761 }
5340 5762
5341 public LSL_Vector llGetRegionCorner() 5763 public LSL_Vector llGetRegionCorner()
@@ -5615,6 +6037,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
5615 flags |= ScriptBaseClass.AGENT_SITTING; 6037 flags |= ScriptBaseClass.AGENT_SITTING;
5616 } 6038 }
5617 6039
6040 if (agent.Appearance.VisualParams[(int)AvatarAppearance.VPElement.SHAPE_MALE] > 0)
6041 {
6042 flags |= ScriptBaseClass.AGENT_MALE;
6043 }
6044
5618 return flags; 6045 return flags;
5619 } 6046 }
5620 6047
@@ -5761,10 +6188,20 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
5761 m_host.AddScriptLPS(1); 6188 m_host.AddScriptLPS(1);
5762 6189
5763 List<SceneObjectPart> parts = GetLinkParts(linknumber); 6190 List<SceneObjectPart> parts = GetLinkParts(linknumber);
5764 6191 if (parts.Count > 0)
5765 foreach (var part in parts)
5766 { 6192 {
5767 SetTextureAnim(part, mode, face, sizex, sizey, start, length, rate); 6193 try
6194 {
6195 parts[0].ParentGroup.areUpdatesSuspended = true;
6196 foreach (var part in parts)
6197 {
6198 SetTextureAnim(part, mode, face, sizex, sizey, start, length, rate);
6199 }
6200 }
6201 finally
6202 {
6203 parts[0].ParentGroup.areUpdatesSuspended = false;
6204 }
5768 } 6205 }
5769 } 6206 }
5770 6207
@@ -5816,13 +6253,20 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
5816 6253
5817 if (m_host.OwnerID == land.LandData.OwnerID) 6254 if (m_host.OwnerID == land.LandData.OwnerID)
5818 { 6255 {
5819 World.TeleportClientHome(agentID, presence.ControllingClient); 6256 Vector3 pos = World.GetNearestAllowedPosition(presence, land);
6257 presence.TeleportWithMomentum(pos, null);
6258 presence.ControllingClient.SendAlertMessage("You have been ejected from this land");
5820 } 6259 }
5821 } 6260 }
5822 } 6261 }
5823 ScriptSleep(5000); 6262 ScriptSleep(5000);
5824 } 6263 }
5825 6264
6265 public LSL_List llParseString2List(string str, LSL_List separators, LSL_List in_spacers)
6266 {
6267 return ParseString2List(str, separators, in_spacers, false);
6268 }
6269
5826 public LSL_Integer llOverMyLand(string id) 6270 public LSL_Integer llOverMyLand(string id)
5827 { 6271 {
5828 m_host.AddScriptLPS(1); 6272 m_host.AddScriptLPS(1);
@@ -5887,8 +6331,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
5887 UUID agentId = new UUID(); 6331 UUID agentId = new UUID();
5888 if (!UUID.TryParse(agent, out agentId)) 6332 if (!UUID.TryParse(agent, out agentId))
5889 return new LSL_Integer(0); 6333 return new LSL_Integer(0);
6334 if (agentId == m_host.GroupID)
6335 return new LSL_Integer(1);
5890 ScenePresence presence = World.GetScenePresence(agentId); 6336 ScenePresence presence = World.GetScenePresence(agentId);
5891 if (presence == null || presence.IsChildAgent) // Return flase for child agents 6337 if (presence == null || presence.IsChildAgent) // Return false for child agents
5892 return new LSL_Integer(0); 6338 return new LSL_Integer(0);
5893 IClientAPI client = presence.ControllingClient; 6339 IClientAPI client = presence.ControllingClient;
5894 if (m_host.GroupID == client.ActiveGroupId) 6340 if (m_host.GroupID == client.ActiveGroupId)
@@ -6023,7 +6469,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
6023 return m_host.ParentGroup.AttachmentPoint; 6469 return m_host.ParentGroup.AttachmentPoint;
6024 } 6470 }
6025 6471
6026 public LSL_Integer llGetFreeMemory() 6472 public virtual LSL_Integer llGetFreeMemory()
6027 { 6473 {
6028 m_host.AddScriptLPS(1); 6474 m_host.AddScriptLPS(1);
6029 // Make scripts designed for LSO happy 6475 // Make scripts designed for LSO happy
@@ -6140,7 +6586,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
6140 SetParticleSystem(m_host, rules); 6586 SetParticleSystem(m_host, rules);
6141 } 6587 }
6142 6588
6143 private void SetParticleSystem(SceneObjectPart part, LSL_List rules) { 6589 private void SetParticleSystem(SceneObjectPart part, LSL_List rules)
6590 {
6144 6591
6145 6592
6146 if (rules.Length == 0) 6593 if (rules.Length == 0)
@@ -6334,14 +6781,16 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
6334 6781
6335 protected UUID GetTaskInventoryItem(string name) 6782 protected UUID GetTaskInventoryItem(string name)
6336 { 6783 {
6337 lock (m_host.TaskInventory) 6784 m_host.TaskInventory.LockItemsForRead(true);
6785 foreach (KeyValuePair<UUID, TaskInventoryItem> inv in m_host.TaskInventory)
6338 { 6786 {
6339 foreach (KeyValuePair<UUID, TaskInventoryItem> inv in m_host.TaskInventory) 6787 if (inv.Value.Name == name)
6340 { 6788 {
6341 if (inv.Value.Name == name) 6789 m_host.TaskInventory.LockItemsForRead(false);
6342 return inv.Key; 6790 return inv.Key;
6343 } 6791 }
6344 } 6792 }
6793 m_host.TaskInventory.LockItemsForRead(false);
6345 6794
6346 return UUID.Zero; 6795 return UUID.Zero;
6347 } 6796 }
@@ -6379,16 +6828,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
6379 if (folderID == UUID.Zero) 6828 if (folderID == UUID.Zero)
6380 return; 6829 return;
6381 6830
6382 byte[] bucket = new byte[17]; 6831 byte[] bucket = new byte[1];
6383 bucket[0] = (byte)AssetType.Folder; 6832 bucket[0] = (byte)AssetType.Folder;
6384 byte[] objBytes = folderID.GetBytes(); 6833 //byte[] objBytes = folderID.GetBytes();
6385 Array.Copy(objBytes, 0, bucket, 1, 16); 6834 //Array.Copy(objBytes, 0, bucket, 1, 16);
6386 6835
6387 GridInstantMessage msg = new GridInstantMessage(World, 6836 GridInstantMessage msg = new GridInstantMessage(World,
6388 m_host.UUID, m_host.Name+", an object owned by "+ 6837 m_host.OwnerID, m_host.Name, destID,
6389 resolveName(m_host.OwnerID)+",", destID, 6838 (byte)InstantMessageDialog.TaskInventoryOffered,
6390 (byte)InstantMessageDialog.InventoryOffered, 6839 false, category+". "+m_host.Name+" is located at "+
6391 false, category+"\n"+m_host.Name+" is located at "+
6392 World.RegionInfo.RegionName+" "+ 6840 World.RegionInfo.RegionName+" "+
6393 m_host.AbsolutePosition.ToString(), 6841 m_host.AbsolutePosition.ToString(),
6394 folderID, true, m_host.AbsolutePosition, 6842 folderID, true, m_host.AbsolutePosition,
@@ -6469,7 +6917,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
6469 { 6917 {
6470 // LSL quaternions can normalize to 0, normal Quaternions can't. 6918 // LSL quaternions can normalize to 0, normal Quaternions can't.
6471 if (rot.s == 0 && rot.x == 0 && rot.y == 0 && rot.z == 0) 6919 if (rot.s == 0 && rot.x == 0 && rot.y == 0 && rot.z == 0)
6472 rot.z = 1; // ZERO_ROTATION = 0,0,0,1 6920 rot.s = 1; // ZERO_ROTATION = 0,0,0,1
6473 6921
6474 part.SitTargetPosition = new Vector3((float)offset.x, (float)offset.y, (float)offset.z); 6922 part.SitTargetPosition = new Vector3((float)offset.x, (float)offset.y, (float)offset.z);
6475 part.SitTargetOrientation = Rot2Quaternion(rot); 6923 part.SitTargetOrientation = Rot2Quaternion(rot);
@@ -6626,13 +7074,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
6626 UUID av = new UUID(); 7074 UUID av = new UUID();
6627 if (!UUID.TryParse(avatar,out av)) 7075 if (!UUID.TryParse(avatar,out av))
6628 { 7076 {
6629 LSLError("First parameter to llDialog needs to be a key"); 7077 //LSLError("First parameter to llDialog needs to be a key");
6630 return; 7078 return;
6631 } 7079 }
6632 if (buttons.Length < 1) 7080 if (buttons.Length < 1)
6633 { 7081 {
6634 LSLError("No less than 1 button can be shown"); 7082 buttons.Add("OK");
6635 return;
6636 } 7083 }
6637 if (buttons.Length > 12) 7084 if (buttons.Length > 12)
6638 { 7085 {
@@ -6649,7 +7096,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
6649 } 7096 }
6650 if (buttons.Data[i].ToString().Length > 24) 7097 if (buttons.Data[i].ToString().Length > 24)
6651 { 7098 {
6652 LSLError("button label cannot be longer than 24 characters"); 7099 llWhisper(ScriptBaseClass.DEBUG_CHANNEL, "button label cannot be longer than 24 characters");
6653 return; 7100 return;
6654 } 7101 }
6655 buts[i] = buttons.Data[i].ToString(); 7102 buts[i] = buttons.Data[i].ToString();
@@ -6708,22 +7155,23 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
6708 } 7155 }
6709 7156
6710 // copy the first script found with this inventory name 7157 // copy the first script found with this inventory name
6711 lock (m_host.TaskInventory) 7158 TaskInventoryItem scriptItem = null;
7159 m_host.TaskInventory.LockItemsForRead(true);
7160 foreach (KeyValuePair<UUID, TaskInventoryItem> inv in m_host.TaskInventory)
6712 { 7161 {
6713 foreach (KeyValuePair<UUID, TaskInventoryItem> inv in m_host.TaskInventory) 7162 if (inv.Value.Name == name)
6714 { 7163 {
6715 if (inv.Value.Name == name) 7164 // make sure the object is a script
7165 if (10 == inv.Value.Type)
6716 { 7166 {
6717 // make sure the object is a script 7167 found = true;
6718 if (10 == inv.Value.Type) 7168 srcId = inv.Key;
6719 { 7169 scriptItem = inv.Value;
6720 found = true; 7170 break;
6721 srcId = inv.Key;
6722 break;
6723 }
6724 } 7171 }
6725 } 7172 }
6726 } 7173 }
7174 m_host.TaskInventory.LockItemsForRead(false);
6727 7175
6728 if (!found) 7176 if (!found)
6729 { 7177 {
@@ -6731,9 +7179,18 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
6731 return; 7179 return;
6732 } 7180 }
6733 7181
6734 // the rest of the permission checks are done in RezScript, so check the pin there as well 7182 SceneObjectPart dest = World.GetSceneObjectPart(destId);
6735 World.RezScriptFromPrim(srcId, m_host, destId, pin, running, start_param); 7183 if (dest != null)
7184 {
7185 if ((scriptItem.BasePermissions & (uint)PermissionMask.Transfer) != 0 || dest.ParentGroup.RootPart.OwnerID == m_host.ParentGroup.RootPart.OwnerID)
7186 {
7187 // the rest of the permission checks are done in RezScript, so check the pin there as well
7188 World.RezScriptFromPrim(srcId, m_host, destId, pin, running, start_param);
6736 7189
7190 if ((scriptItem.BasePermissions & (uint)PermissionMask.Copy) == 0)
7191 m_host.Inventory.RemoveInventoryItem(srcId);
7192 }
7193 }
6737 // this will cause the delay even if the script pin or permissions were wrong - seems ok 7194 // this will cause the delay even if the script pin or permissions were wrong - seems ok
6738 ScriptSleep(3000); 7195 ScriptSleep(3000);
6739 } 7196 }
@@ -6796,19 +7253,21 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
6796 public LSL_String llMD5String(string src, int nonce) 7253 public LSL_String llMD5String(string src, int nonce)
6797 { 7254 {
6798 m_host.AddScriptLPS(1); 7255 m_host.AddScriptLPS(1);
6799 return Util.Md5Hash(String.Format("{0}:{1}", src, nonce.ToString())); 7256 return Util.Md5Hash(String.Format("{0}:{1}", src, nonce.ToString()), Encoding.UTF8);
6800 } 7257 }
6801 7258
6802 public LSL_String llSHA1String(string src) 7259 public LSL_String llSHA1String(string src)
6803 { 7260 {
6804 m_host.AddScriptLPS(1); 7261 m_host.AddScriptLPS(1);
6805 return Util.SHA1Hash(src).ToLower(); 7262 return Util.SHA1Hash(src, Encoding.UTF8).ToLower();
6806 } 7263 }
6807 7264
6808 protected ObjectShapePacket.ObjectDataBlock SetPrimitiveBlockShapeParams(SceneObjectPart part, int holeshape, LSL_Vector cut, float hollow, LSL_Vector twist, byte profileshape, byte pathcurve) 7265 protected ObjectShapePacket.ObjectDataBlock SetPrimitiveBlockShapeParams(SceneObjectPart part, int holeshape, LSL_Vector cut, float hollow, LSL_Vector twist, byte profileshape, byte pathcurve)
6809 { 7266 {
6810 float tempFloat; // Use in float expressions below to avoid byte cast precision issues. 7267 float tempFloat; // Use in float expressions below to avoid byte cast precision issues.
6811 ObjectShapePacket.ObjectDataBlock shapeBlock = new ObjectShapePacket.ObjectDataBlock(); 7268 ObjectShapePacket.ObjectDataBlock shapeBlock = new ObjectShapePacket.ObjectDataBlock();
7269 if (part == null || part.ParentGroup == null || part.ParentGroup.IsDeleted)
7270 return shapeBlock;
6812 7271
6813 if (holeshape != (int)ScriptBaseClass.PRIM_HOLE_DEFAULT && 7272 if (holeshape != (int)ScriptBaseClass.PRIM_HOLE_DEFAULT &&
6814 holeshape != (int)ScriptBaseClass.PRIM_HOLE_CIRCLE && 7273 holeshape != (int)ScriptBaseClass.PRIM_HOLE_CIRCLE &&
@@ -6913,6 +7372,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
6913 // Prim type box, cylinder and prism. 7372 // Prim type box, cylinder and prism.
6914 protected void SetPrimitiveShapeParams(SceneObjectPart part, int holeshape, LSL_Vector cut, float hollow, LSL_Vector twist, LSL_Vector taper_b, LSL_Vector topshear, byte profileshape, byte pathcurve) 7373 protected void SetPrimitiveShapeParams(SceneObjectPart part, int holeshape, LSL_Vector cut, float hollow, LSL_Vector twist, LSL_Vector taper_b, LSL_Vector topshear, byte profileshape, byte pathcurve)
6915 { 7374 {
7375 if (part == null || part.ParentGroup == null || part.ParentGroup.IsDeleted)
7376 return;
7377
6916 float tempFloat; // Use in float expressions below to avoid byte cast precision issues. 7378 float tempFloat; // Use in float expressions below to avoid byte cast precision issues.
6917 ObjectShapePacket.ObjectDataBlock shapeBlock; 7379 ObjectShapePacket.ObjectDataBlock shapeBlock;
6918 7380
@@ -6966,6 +7428,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
6966 // Prim type sphere. 7428 // Prim type sphere.
6967 protected void SetPrimitiveShapeParams(SceneObjectPart part, int holeshape, LSL_Vector cut, float hollow, LSL_Vector twist, LSL_Vector dimple, byte profileshape, byte pathcurve) 7429 protected void SetPrimitiveShapeParams(SceneObjectPart part, int holeshape, LSL_Vector cut, float hollow, LSL_Vector twist, LSL_Vector dimple, byte profileshape, byte pathcurve)
6968 { 7430 {
7431 if (part == null || part.ParentGroup == null || part.ParentGroup.IsDeleted)
7432 return;
7433
6969 ObjectShapePacket.ObjectDataBlock shapeBlock; 7434 ObjectShapePacket.ObjectDataBlock shapeBlock;
6970 7435
6971 shapeBlock = SetPrimitiveBlockShapeParams(part, holeshape, cut, hollow, twist, profileshape, pathcurve); 7436 shapeBlock = SetPrimitiveBlockShapeParams(part, holeshape, cut, hollow, twist, profileshape, pathcurve);
@@ -7007,6 +7472,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
7007 // Prim type torus, tube and ring. 7472 // Prim type torus, tube and ring.
7008 protected void SetPrimitiveShapeParams(SceneObjectPart part, int holeshape, LSL_Vector cut, float hollow, LSL_Vector twist, LSL_Vector holesize, LSL_Vector topshear, LSL_Vector profilecut, LSL_Vector taper_a, float revolutions, float radiusoffset, float skew, byte profileshape, byte pathcurve) 7473 protected void SetPrimitiveShapeParams(SceneObjectPart part, int holeshape, LSL_Vector cut, float hollow, LSL_Vector twist, LSL_Vector holesize, LSL_Vector topshear, LSL_Vector profilecut, LSL_Vector taper_a, float revolutions, float radiusoffset, float skew, byte profileshape, byte pathcurve)
7009 { 7474 {
7475 if (part == null || part.ParentGroup == null || part.ParentGroup.IsDeleted)
7476 return;
7477
7010 float tempFloat; // Use in float expressions below to avoid byte cast precision issues. 7478 float tempFloat; // Use in float expressions below to avoid byte cast precision issues.
7011 ObjectShapePacket.ObjectDataBlock shapeBlock; 7479 ObjectShapePacket.ObjectDataBlock shapeBlock;
7012 7480
@@ -7142,6 +7610,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
7142 // Prim type sculpt. 7610 // Prim type sculpt.
7143 protected void SetPrimitiveShapeParams(SceneObjectPart part, string map, int type, byte pathcurve) 7611 protected void SetPrimitiveShapeParams(SceneObjectPart part, string map, int type, byte pathcurve)
7144 { 7612 {
7613 if (part == null || part.ParentGroup == null || part.ParentGroup.IsDeleted)
7614 return;
7615
7145 ObjectShapePacket.ObjectDataBlock shapeBlock = new ObjectShapePacket.ObjectDataBlock(); 7616 ObjectShapePacket.ObjectDataBlock shapeBlock = new ObjectShapePacket.ObjectDataBlock();
7146 UUID sculptId; 7617 UUID sculptId;
7147 7618
@@ -7166,7 +7637,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
7166 type != (ScriptBaseClass.PRIM_SCULPT_TYPE_TORUS | flag)) 7637 type != (ScriptBaseClass.PRIM_SCULPT_TYPE_TORUS | flag))
7167 { 7638 {
7168 // default 7639 // default
7169 type = (int)ScriptBaseClass.PRIM_SCULPT_TYPE_SPHERE; 7640 type = type | (int)ScriptBaseClass.PRIM_SCULPT_TYPE_SPHERE;
7170 } 7641 }
7171 7642
7172 part.Shape.SetSculptProperties((byte)type, sculptId); 7643 part.Shape.SetSculptProperties((byte)type, sculptId);
@@ -7182,34 +7653,311 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
7182 ScriptSleep(200); 7653 ScriptSleep(200);
7183 } 7654 }
7184 7655
7185 public void llSetLinkPrimitiveParams(int linknumber, LSL_List rules) 7656 public void llSetLinkPrimitiveParamsFast(int linknumber, LSL_List rules)
7186 { 7657 {
7187 m_host.AddScriptLPS(1); 7658 m_host.AddScriptLPS(1);
7188 7659
7189 setLinkPrimParams(linknumber, rules); 7660 setLinkPrimParams(linknumber, rules);
7661 }
7662
7663 private void setLinkPrimParams(int linknumber, LSL_List rules)
7664 {
7665 List<SceneObjectPart> parts = GetLinkParts(linknumber);
7666 List<ScenePresence> avatars = GetLinkAvatars(linknumber);
7667 if (parts.Count>0)
7668 {
7669 try
7670 {
7671 parts[0].ParentGroup.areUpdatesSuspended = true;
7672 foreach (SceneObjectPart part in parts)
7673 SetPrimParams(part, rules);
7674 }
7675 finally
7676 {
7677 parts[0].ParentGroup.areUpdatesSuspended = false;
7678 }
7679 }
7680 if (avatars.Count > 0)
7681 {
7682 foreach (ScenePresence avatar in avatars)
7683 SetPrimParams(avatar, rules);
7684 }
7685 }
7686
7687 private void SetPhysicsMaterial(SceneObjectPart part, int material_bits,
7688 float material_density, float material_friction,
7689 float material_restitution, float material_gravity_modifier)
7690 {
7691 ExtraPhysicsData physdata = new ExtraPhysicsData();
7692 physdata.PhysShapeType = (PhysShapeType)part.PhysicsShapeType;
7693 physdata.Density = part.Density;
7694 physdata.Friction = part.Friction;
7695 physdata.Bounce = part.Bounciness;
7696 physdata.GravitationModifier = part.GravityModifier;
7190 7697
7698 if ((material_bits & (int)ScriptBaseClass.DENSITY) != 0)
7699 physdata.Density = material_density;
7700 if ((material_bits & (int)ScriptBaseClass.FRICTION) != 0)
7701 physdata.Friction = material_friction;
7702 if ((material_bits & (int)ScriptBaseClass.RESTITUTION) != 0)
7703 physdata.Bounce = material_restitution;
7704 if ((material_bits & (int)ScriptBaseClass.GRAVITY_MULTIPLIER) != 0)
7705 physdata.GravitationModifier = material_gravity_modifier;
7706
7707 part.UpdateExtraPhysics(physdata);
7708 }
7709
7710 public void llSetPhysicsMaterial(int material_bits,
7711 float material_gravity_modifier, float material_restitution,
7712 float material_friction, float material_density)
7713 {
7714 SetPhysicsMaterial(m_host, material_bits, material_density, material_friction, material_restitution, material_gravity_modifier);
7715 }
7716
7717 public void llSetLinkPrimitiveParams(int linknumber, LSL_List rules)
7718 {
7719 llSetLinkPrimitiveParamsFast(linknumber, rules);
7191 ScriptSleep(200); 7720 ScriptSleep(200);
7192 } 7721 }
7193 7722
7194 public void llSetLinkPrimitiveParamsFast(int linknumber, LSL_List rules) 7723 // vector up using libomv (c&p from sop )
7724 // vector up rotated by r
7725 private Vector3 Zrot(Quaternion r)
7195 { 7726 {
7196 m_host.AddScriptLPS(1); 7727 double x, y, z, m;
7197 7728
7198 setLinkPrimParams(linknumber, rules); 7729 m = r.X * r.X + r.Y * r.Y + r.Z * r.Z + r.W * r.W;
7730 if (Math.Abs(1.0 - m) > 0.000001)
7731 {
7732 m = 1.0 / Math.Sqrt(m);
7733 r.X *= (float)m;
7734 r.Y *= (float)m;
7735 r.Z *= (float)m;
7736 r.W *= (float)m;
7737 }
7738
7739 x = 2 * (r.X * r.Z + r.Y * r.W);
7740 y = 2 * (-r.X * r.W + r.Y * r.Z);
7741 z = -r.X * r.X - r.Y * r.Y + r.Z * r.Z + r.W * r.W;
7742
7743 return new Vector3((float)x, (float)y, (float)z);
7199 } 7744 }
7200 7745
7201 protected void setLinkPrimParams(int linknumber, LSL_List rules) 7746 protected void SetPrimParams(ScenePresence av, LSL_List rules)
7202 { 7747 {
7203 List<SceneObjectPart> parts = GetLinkParts(linknumber); 7748 //This is a special version of SetPrimParams to deal with avatars which are sat on the linkset.
7204 7749
7205 foreach (SceneObjectPart part in parts) 7750 int idx = 0;
7206 SetPrimParams(part, rules); 7751 SceneObjectPart sitpart = World.GetSceneObjectPart(av.ParentID); // betting this will be used
7752
7753 bool positionChanged = false;
7754 Vector3 finalPos = Vector3.Zero;
7755
7756 try
7757 {
7758 while (idx < rules.Length)
7759 {
7760 int code = rules.GetLSLIntegerItem(idx++);
7761
7762 int remain = rules.Length - idx;
7763
7764 switch (code)
7765 {
7766 // a avatar is a child
7767 case (int)ScriptBaseClass.PRIM_POSITION:
7768 case (int)ScriptBaseClass.PRIM_POS_LOCAL:
7769 {
7770 if (remain < 1)
7771 return;
7772 LSL_Vector v;
7773 v = rules.GetVector3Item(idx++);
7774
7775 if (sitpart == null)
7776 break;
7777
7778 Vector3 pos = new Vector3((float)v.x, (float)v.y, (float)v.z); // requested absolute position
7779
7780 if (sitpart != sitpart.ParentGroup.RootPart)
7781 {
7782 pos -= sitpart.OffsetPosition; // remove sit part offset
7783 Quaternion rot = sitpart.RotationOffset;
7784 pos *= Quaternion.Conjugate(rot); // removed sit part rotation
7785 }
7786 Vector3 sitOffset = (Zrot(av.Rotation)) * (av.Appearance.AvatarHeight * 0.02638f * 2.0f);
7787 pos += sitOffset;
7788
7789 finalPos = pos;
7790 positionChanged = true;
7791 }
7792 break;
7793
7794 case (int)ScriptBaseClass.PRIM_ROTATION:
7795 {
7796 if (remain < 1)
7797 return;
7798
7799 if (sitpart == null)
7800 break;
7801
7802 LSL_Rotation r = rules.GetQuaternionItem(idx++);
7803 Quaternion rot = new Quaternion((float)r.x, (float)r.y, (float)r.z, (float)r.s); // requested world rotation
7804
7805// need to replicate SL bug
7806 SceneObjectGroup sitgrp = sitpart.ParentGroup;
7807 if (sitgrp != null && sitgrp.RootPart != sitpart)
7808 {
7809 rot = sitgrp.RootPart.RotationOffset * rot;
7810 }
7811
7812 Quaternion srot = sitpart.RotationOffset;
7813 rot = Quaternion.Conjugate(srot) * rot; // removed sit part offset rotation
7814 av.Rotation = rot;
7815 av.SendAvatarDataToAllAgents();
7816 }
7817 break;
7818
7819 case (int)ScriptBaseClass.PRIM_ROT_LOCAL:
7820 {
7821 if (remain < 1)
7822 return;
7823
7824 if (sitpart == null)
7825 break;
7826
7827 LSL_Rotation r = rules.GetQuaternionItem(idx++);
7828 Quaternion rot = new Quaternion((float)r.x, (float)r.y, (float)r.z, (float)r.s); // requested offset rotation
7829 if (sitpart != sitpart.ParentGroup.RootPart)
7830 {
7831 Quaternion srot = sitpart.RotationOffset;
7832 rot = Quaternion.Conjugate(srot) * rot; // remove sit part offset rotation
7833 }
7834 av.Rotation = rot;
7835 av.SendAvatarDataToAllAgents();
7836 }
7837 break;
7838
7839 // parse rest doing nothing but number of parameters error check
7840 case (int)ScriptBaseClass.PRIM_SIZE:
7841 case (int)ScriptBaseClass.PRIM_MATERIAL:
7842 case (int)ScriptBaseClass.PRIM_PHANTOM:
7843 case (int)ScriptBaseClass.PRIM_PHYSICS:
7844 case (int)ScriptBaseClass.PRIM_PHYSICS_SHAPE_TYPE:
7845 case (int)ScriptBaseClass.PRIM_TEMP_ON_REZ:
7846 case (int)ScriptBaseClass.PRIM_NAME:
7847 case (int)ScriptBaseClass.PRIM_DESC:
7848 if (remain < 1)
7849 return;
7850 idx++;
7851 break;
7852
7853 case (int)ScriptBaseClass.PRIM_GLOW:
7854 case (int)ScriptBaseClass.PRIM_FULLBRIGHT:
7855 case (int)ScriptBaseClass.PRIM_TEXGEN:
7856 if (remain < 2)
7857 return;
7858 idx += 2;
7859 break;
7860
7861 case (int)ScriptBaseClass.PRIM_TYPE:
7862 if (remain < 3)
7863 return;
7864 code = (int)rules.GetLSLIntegerItem(idx++);
7865 remain = rules.Length - idx;
7866 switch (code)
7867 {
7868 case (int)ScriptBaseClass.PRIM_TYPE_BOX:
7869 case (int)ScriptBaseClass.PRIM_TYPE_CYLINDER:
7870 case (int)ScriptBaseClass.PRIM_TYPE_PRISM:
7871 if (remain < 6)
7872 return;
7873 idx += 6;
7874 break;
7875
7876 case (int)ScriptBaseClass.PRIM_TYPE_SPHERE:
7877 if (remain < 5)
7878 return;
7879 idx += 5;
7880 break;
7881
7882 case (int)ScriptBaseClass.PRIM_TYPE_TORUS:
7883 case (int)ScriptBaseClass.PRIM_TYPE_TUBE:
7884 case (int)ScriptBaseClass.PRIM_TYPE_RING:
7885 if (remain < 11)
7886 return;
7887 idx += 11;
7888 break;
7889
7890 case (int)ScriptBaseClass.PRIM_TYPE_SCULPT:
7891 if (remain < 2)
7892 return;
7893 idx += 2;
7894 break;
7895 }
7896 break;
7897
7898 case (int)ScriptBaseClass.PRIM_COLOR:
7899 case (int)ScriptBaseClass.PRIM_TEXT:
7900 case (int)ScriptBaseClass.PRIM_BUMP_SHINY:
7901 case (int)ScriptBaseClass.PRIM_OMEGA:
7902 if (remain < 3)
7903 return;
7904 idx += 3;
7905 break;
7906
7907 case (int)ScriptBaseClass.PRIM_TEXTURE:
7908 case (int)ScriptBaseClass.PRIM_POINT_LIGHT:
7909 case (int)ScriptBaseClass.PRIM_PHYSICS_MATERIAL:
7910 if (remain < 5)
7911 return;
7912 idx += 5;
7913 break;
7914
7915 case (int)ScriptBaseClass.PRIM_FLEXIBLE:
7916 if (remain < 7)
7917 return;
7918
7919 idx += 7;
7920 break;
7921
7922 case (int)ScriptBaseClass.PRIM_LINK_TARGET:
7923 if (remain < 3) // setting to 3 on the basis that parsing any usage of PRIM_LINK_TARGET that has nothing following it is pointless.
7924 return;
7925
7926 if (positionChanged)
7927 {
7928 positionChanged = false;
7929 av.OffsetPosition = finalPos;
7930 av.SendAvatarDataToAllAgents();
7931 }
7932
7933 LSL_Integer new_linknumber = rules.GetLSLIntegerItem(idx++);
7934 LSL_List new_rules = rules.GetSublist(idx, -1);
7935 setLinkPrimParams((int)new_linknumber, new_rules);
7936 return;
7937 }
7938 }
7939 }
7940
7941 finally
7942 {
7943 if (positionChanged)
7944 {
7945 av.OffsetPosition = finalPos;
7946 av.SendAvatarDataToAllAgents();
7947 positionChanged = false;
7948 }
7949 }
7207 } 7950 }
7208 7951
7209 protected void SetPrimParams(SceneObjectPart part, LSL_List rules) 7952 protected void SetPrimParams(SceneObjectPart part, LSL_List rules)
7210 { 7953 {
7954 if (part == null || part.ParentGroup == null || part.ParentGroup.IsDeleted)
7955 return;
7956
7211 int idx = 0; 7957 int idx = 0;
7212 7958
7959 SceneObjectGroup parentgrp = part.ParentGroup;
7960
7213 bool positionChanged = false; 7961 bool positionChanged = false;
7214 LSL_Vector currentPosition = GetPartLocalPos(part); 7962 LSL_Vector currentPosition = GetPartLocalPos(part);
7215 7963
@@ -7232,8 +7980,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
7232 return; 7980 return;
7233 7981
7234 v=rules.GetVector3Item(idx++); 7982 v=rules.GetVector3Item(idx++);
7235 positionChanged = true;
7236 currentPosition = GetSetPosTarget(part, v, currentPosition); 7983 currentPosition = GetSetPosTarget(part, v, currentPosition);
7984 positionChanged = true;
7237 7985
7238 break; 7986 break;
7239 case (int)ScriptBaseClass.PRIM_SIZE: 7987 case (int)ScriptBaseClass.PRIM_SIZE:
@@ -7249,8 +7997,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
7249 return; 7997 return;
7250 7998
7251 LSL_Rotation q = rules.GetQuaternionItem(idx++); 7999 LSL_Rotation q = rules.GetQuaternionItem(idx++);
8000 SceneObjectPart rootPart = parentgrp.RootPart;
7252 // try to let this work as in SL... 8001 // try to let this work as in SL...
7253 if (part.ParentID == 0) 8002 if (rootPart == part)
7254 { 8003 {
7255 // special case: If we are root, rotate complete SOG to new rotation 8004 // special case: If we are root, rotate complete SOG to new rotation
7256 SetRot(part, Rot2Quaternion(q)); 8005 SetRot(part, Rot2Quaternion(q));
@@ -7258,7 +8007,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
7258 else 8007 else
7259 { 8008 {
7260 // we are a child. The rotation values will be set to the one of root modified by rot, as in SL. Don't ask. 8009 // we are a child. The rotation values will be set to the one of root modified by rot, as in SL. Don't ask.
7261 SceneObjectPart rootPart = part.ParentGroup.RootPart; 8010 // sounds like sl bug that we need to replicate
7262 SetRot(part, rootPart.RotationOffset * Rot2Quaternion(q)); 8011 SetRot(part, rootPart.RotationOffset * Rot2Quaternion(q));
7263 } 8012 }
7264 8013
@@ -7511,7 +8260,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
7511 return; 8260 return;
7512 8261
7513 string ph = rules.Data[idx++].ToString(); 8262 string ph = rules.Data[idx++].ToString();
7514 m_host.ParentGroup.ScriptSetPhantomStatus(ph.Equals("1")); 8263 parentgrp.ScriptSetPhantomStatus(ph.Equals("1"));
7515 8264
7516 break; 8265 break;
7517 8266
@@ -7529,12 +8278,42 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
7529 part.ScriptSetPhysicsStatus(physics); 8278 part.ScriptSetPhysicsStatus(physics);
7530 break; 8279 break;
7531 8280
8281 case (int)ScriptBaseClass.PRIM_PHYSICS_SHAPE_TYPE:
8282 if (remain < 1)
8283 return;
8284
8285 int shape_type = rules.GetLSLIntegerItem(idx++);
8286
8287 ExtraPhysicsData physdata = new ExtraPhysicsData();
8288 physdata.Density = part.Density;
8289 physdata.Bounce = part.Bounciness;
8290 physdata.GravitationModifier = part.GravityModifier;
8291 physdata.PhysShapeType = (PhysShapeType)shape_type;
8292
8293 part.UpdateExtraPhysics(physdata);
8294
8295 break;
8296
8297 case (int)ScriptBaseClass.PRIM_PHYSICS_MATERIAL:
8298 if (remain < 5)
8299 return;
8300
8301 int material_bits = rules.GetLSLIntegerItem(idx++);
8302 float material_density = (float)rules.GetLSLFloatItem(idx++);
8303 float material_friction = (float)rules.GetLSLFloatItem(idx++);
8304 float material_restitution = (float)rules.GetLSLFloatItem(idx++);
8305 float material_gravity_modifier = (float)rules.GetLSLFloatItem(idx++);
8306
8307 SetPhysicsMaterial(part, material_bits, material_density, material_friction, material_restitution, material_gravity_modifier);
8308
8309 break;
8310
7532 case (int)ScriptBaseClass.PRIM_TEMP_ON_REZ: 8311 case (int)ScriptBaseClass.PRIM_TEMP_ON_REZ:
7533 if (remain < 1) 8312 if (remain < 1)
7534 return; 8313 return;
7535 string temp = rules.Data[idx++].ToString(); 8314 string temp = rules.Data[idx++].ToString();
7536 8315
7537 m_host.ParentGroup.ScriptSetTemporaryStatus(temp.Equals("1")); 8316 parentgrp.ScriptSetTemporaryStatus(temp.Equals("1"));
7538 8317
7539 break; 8318 break;
7540 8319
@@ -7584,13 +8363,37 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
7584 LSL_Float gain = rules.GetLSLFloatItem(idx++); 8363 LSL_Float gain = rules.GetLSLFloatItem(idx++);
7585 TargetOmega(part, axis, (double)spinrate, (double)gain); 8364 TargetOmega(part, axis, (double)spinrate, (double)gain);
7586 break; 8365 break;
8366
7587 case (int)ScriptBaseClass.PRIM_LINK_TARGET: 8367 case (int)ScriptBaseClass.PRIM_LINK_TARGET:
7588 if (remain < 3) // setting to 3 on the basis that parsing any usage of PRIM_LINK_TARGET that has nothing following it is pointless. 8368 if (remain < 3) // setting to 3 on the basis that parsing any usage of PRIM_LINK_TARGET that has nothing following it is pointless.
7589 return; 8369 return;
8370
8371 // do a pending position change before jumping to other part/avatar
8372 if (positionChanged)
8373 {
8374 positionChanged = false;
8375 if (parentgrp == null)
8376 return;
8377
8378 if (parentgrp.RootPart == part)
8379 {
8380
8381 Util.FireAndForget(delegate(object x)
8382 {
8383 parentgrp.UpdateGroupPosition(new Vector3((float)currentPosition.x, (float)currentPosition.y, (float)currentPosition.z));
8384 });
8385 }
8386 else
8387 {
8388 part.OffsetPosition = new Vector3((float)currentPosition.x, (float)currentPosition.y, (float)currentPosition.z);
8389 parentgrp.HasGroupChanged = true;
8390 parentgrp.ScheduleGroupForTerseUpdate();
8391 }
8392 }
8393
7590 LSL_Integer new_linknumber = rules.GetLSLIntegerItem(idx++); 8394 LSL_Integer new_linknumber = rules.GetLSLIntegerItem(idx++);
7591 LSL_List new_rules = rules.GetSublist(idx, -1); 8395 LSL_List new_rules = rules.GetSublist(idx, -1);
7592 setLinkPrimParams((int)new_linknumber, new_rules); 8396 setLinkPrimParams((int)new_linknumber, new_rules);
7593
7594 return; 8397 return;
7595 } 8398 }
7596 } 8399 }
@@ -7602,7 +8405,9 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
7602 if (part.ParentGroup.RootPart == part) 8405 if (part.ParentGroup.RootPart == part)
7603 { 8406 {
7604 SceneObjectGroup parent = part.ParentGroup; 8407 SceneObjectGroup parent = part.ParentGroup;
7605 parent.UpdateGroupPosition(new Vector3((float)currentPosition.x, (float)currentPosition.y, (float)currentPosition.z)); 8408 Util.FireAndForget(delegate(object x) {
8409 parent.UpdateGroupPosition(new Vector3((float)currentPosition.x, (float)currentPosition.y, (float)currentPosition.z));
8410 });
7606 } 8411 }
7607 else 8412 else
7608 { 8413 {
@@ -7773,13 +8578,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
7773 public LSL_Integer llGetNumberOfPrims() 8578 public LSL_Integer llGetNumberOfPrims()
7774 { 8579 {
7775 m_host.AddScriptLPS(1); 8580 m_host.AddScriptLPS(1);
7776 int avatarCount = 0; 8581 int avatarCount = m_host.ParentGroup.GetLinkedAvatars().Count;
7777 World.ForEachRootScenePresence(delegate(ScenePresence presence) 8582
7778 {
7779 if (presence.ParentID != 0 && m_host.ParentGroup.ContainsPart(presence.ParentID))
7780 avatarCount++;
7781 });
7782
7783 return m_host.ParentGroup.PrimCount + avatarCount; 8583 return m_host.ParentGroup.PrimCount + avatarCount;
7784 } 8584 }
7785 8585
@@ -7795,55 +8595,98 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
7795 m_host.AddScriptLPS(1); 8595 m_host.AddScriptLPS(1);
7796 UUID objID = UUID.Zero; 8596 UUID objID = UUID.Zero;
7797 LSL_List result = new LSL_List(); 8597 LSL_List result = new LSL_List();
8598
8599 // If the ID is not valid, return null result
7798 if (!UUID.TryParse(obj, out objID)) 8600 if (!UUID.TryParse(obj, out objID))
7799 { 8601 {
7800 result.Add(new LSL_Vector()); 8602 result.Add(new LSL_Vector());
7801 result.Add(new LSL_Vector()); 8603 result.Add(new LSL_Vector());
7802 return result; 8604 return result;
7803 } 8605 }
8606
8607 // Check if this is an attached prim. If so, replace
8608 // the UUID with the avatar UUID and report it's bounding box
8609 SceneObjectPart part = World.GetSceneObjectPart(objID);
8610 if (part != null && part.ParentGroup.IsAttachment)
8611 objID = part.ParentGroup.AttachedAvatar;
8612
8613 // Find out if this is an avatar ID. If so, return it's box
7804 ScenePresence presence = World.GetScenePresence(objID); 8614 ScenePresence presence = World.GetScenePresence(objID);
7805 if (presence != null) 8615 if (presence != null)
7806 { 8616 {
7807 if (presence.ParentID == 0) // not sat on an object 8617 // As per LSL Wiki, there is no difference between sitting
8618 // and standing avatar since server 1.36
8619 LSL_Vector lower;
8620 LSL_Vector upper;
8621 if (presence.Animator.Animations.DefaultAnimation.AnimID
8622 == DefaultAvatarAnimations.AnimsUUID["SIT_GROUND_CONSTRAINED"])
7808 { 8623 {
7809 LSL_Vector lower; 8624 // This is for ground sitting avatars
7810 LSL_Vector upper; 8625 float height = presence.Appearance.AvatarHeight / 2.66666667f;
7811 if (presence.Animator.Animations.DefaultAnimation.AnimID 8626 lower = new LSL_Vector(-0.3375f, -0.45f, height * -1.0f);
7812 == DefaultAvatarAnimations.AnimsUUID["SIT_GROUND_CONSTRAINED"]) 8627 upper = new LSL_Vector(0.3375f, 0.45f, 0.0f);
7813 {
7814 // This is for ground sitting avatars
7815 float height = presence.Appearance.AvatarHeight / 2.66666667f;
7816 lower = new LSL_Vector(-0.3375f, -0.45f, height * -1.0f);
7817 upper = new LSL_Vector(0.3375f, 0.45f, 0.0f);
7818 }
7819 else
7820 {
7821 // This is for standing/flying avatars
7822 float height = presence.Appearance.AvatarHeight / 2.0f;
7823 lower = new LSL_Vector(-0.225f, -0.3f, height * -1.0f);
7824 upper = new LSL_Vector(0.225f, 0.3f, height + 0.05f);
7825 }
7826 result.Add(lower);
7827 result.Add(upper);
7828 return result;
7829 } 8628 }
7830 else 8629 else
7831 { 8630 {
7832 // sitting on an object so we need the bounding box of that 8631 // This is for standing/flying avatars
7833 // which should include the avatar so set the UUID to the 8632 float height = presence.Appearance.AvatarHeight / 2.0f;
7834 // UUID of the object the avatar is sat on and allow it to fall through 8633 lower = new LSL_Vector(-0.225f, -0.3f, height * -1.0f);
7835 // to processing an object 8634 upper = new LSL_Vector(0.225f, 0.3f, height + 0.05f);
7836 SceneObjectPart p = World.GetSceneObjectPart(presence.ParentID);
7837 objID = p.UUID;
7838 } 8635 }
8636
8637 // Adjust to the documented error offsets (see LSL Wiki)
8638 lower += new LSL_Vector(0.05f, 0.05f, 0.05f);
8639 upper -= new LSL_Vector(0.05f, 0.05f, 0.05f);
8640
8641 if (lower.x > upper.x)
8642 lower.x = upper.x;
8643 if (lower.y > upper.y)
8644 lower.y = upper.y;
8645 if (lower.z > upper.z)
8646 lower.z = upper.z;
8647
8648 result.Add(lower);
8649 result.Add(upper);
8650 return result;
7839 } 8651 }
7840 SceneObjectPart part = World.GetSceneObjectPart(objID); 8652
8653 part = World.GetSceneObjectPart(objID);
7841 // Currently only works for single prims without a sitting avatar 8654 // Currently only works for single prims without a sitting avatar
7842 if (part != null) 8655 if (part != null)
7843 { 8656 {
7844 Vector3 halfSize = part.Scale / 2.0f; 8657 float minX;
7845 LSL_Vector lower = new LSL_Vector(halfSize.X * -1.0f, halfSize.Y * -1.0f, halfSize.Z * -1.0f); 8658 float maxX;
7846 LSL_Vector upper = new LSL_Vector(halfSize.X, halfSize.Y, halfSize.Z); 8659 float minY;
8660 float maxY;
8661 float minZ;
8662 float maxZ;
8663
8664 // This BBox is in sim coordinates, with the offset being
8665 // a contained point.
8666 Vector3[] offsets = Scene.GetCombinedBoundingBox(new List<SceneObjectGroup> { part.ParentGroup },
8667 out minX, out maxX, out minY, out maxY, out minZ, out maxZ);
8668
8669 minX -= offsets[0].X;
8670 maxX -= offsets[0].X;
8671 minY -= offsets[0].Y;
8672 maxY -= offsets[0].Y;
8673 minZ -= offsets[0].Z;
8674 maxZ -= offsets[0].Z;
8675
8676 LSL_Vector lower;
8677 LSL_Vector upper;
8678
8679 // Adjust to the documented error offsets (see LSL Wiki)
8680 lower = new LSL_Vector(minX + 0.05f, minY + 0.05f, minZ + 0.05f);
8681 upper = new LSL_Vector(maxX - 0.05f, maxY - 0.05f, maxZ - 0.05f);
8682
8683 if (lower.x > upper.x)
8684 lower.x = upper.x;
8685 if (lower.y > upper.y)
8686 lower.y = upper.y;
8687 if (lower.z > upper.z)
8688 lower.z = upper.z;
8689
7847 result.Add(lower); 8690 result.Add(lower);
7848 result.Add(upper); 8691 result.Add(upper);
7849 return result; 8692 return result;
@@ -7857,7 +8700,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
7857 8700
7858 public LSL_Vector llGetGeometricCenter() 8701 public LSL_Vector llGetGeometricCenter()
7859 { 8702 {
7860 return new LSL_Vector(m_host.GetGeometricCenter().X, m_host.GetGeometricCenter().Y, m_host.GetGeometricCenter().Z); 8703 Vector3 tmp = m_host.GetGeometricCenter();
8704 return new LSL_Vector(tmp.X, tmp.Y, tmp.Z);
7861 } 8705 }
7862 8706
7863 public LSL_List llGetPrimitiveParams(LSL_List rules) 8707 public LSL_List llGetPrimitiveParams(LSL_List rules)
@@ -7870,16 +8714,291 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
7870 { 8714 {
7871 m_host.AddScriptLPS(1); 8715 m_host.AddScriptLPS(1);
7872 8716
8717 // acording to SL wiki this must indicate a single link number or link_root or link_this.
8718 // keep other options as before
8719
7873 List<SceneObjectPart> parts = GetLinkParts(linknumber); 8720 List<SceneObjectPart> parts = GetLinkParts(linknumber);
8721 List<ScenePresence> avatars = GetLinkAvatars(linknumber);
7874 8722
7875 LSL_List res = new LSL_List(); 8723 LSL_List res = new LSL_List();
7876 8724
7877 foreach (var part in parts) 8725 if (parts.Count > 0)
7878 { 8726 {
7879 LSL_List partRes = GetLinkPrimitiveParams(part, rules); 8727 foreach (var part in parts)
7880 res += partRes; 8728 {
8729 LSL_List partRes = GetLinkPrimitiveParams(part, rules);
8730 res += partRes;
8731 }
8732 }
8733 if (avatars.Count > 0)
8734 {
8735 foreach (ScenePresence avatar in avatars)
8736 {
8737 LSL_List avaRes = GetLinkPrimitiveParams(avatar, rules);
8738 res += avaRes;
8739 }
7881 } 8740 }
8741 return res;
8742 }
8743
8744 public LSL_List GetLinkPrimitiveParams(ScenePresence avatar, LSL_List rules)
8745 {
8746 // avatars case
8747 // replies as SL wiki
8748
8749 LSL_List res = new LSL_List();
8750// SceneObjectPart sitPart = avatar.ParentPart; // most likelly it will be needed
8751 SceneObjectPart sitPart = World.GetSceneObjectPart(avatar.ParentID); // maybe better do this expensive search for it in case it's gone??
8752
8753 int idx = 0;
8754 while (idx < rules.Length)
8755 {
8756 int code = (int)rules.GetLSLIntegerItem(idx++);
8757 int remain = rules.Length - idx;
8758
8759 switch (code)
8760 {
8761 case (int)ScriptBaseClass.PRIM_MATERIAL:
8762 res.Add(new LSL_Integer((int)SOPMaterialData.SopMaterial.Flesh));
8763 break;
8764
8765 case (int)ScriptBaseClass.PRIM_PHYSICS:
8766 res.Add(new LSL_Integer(0));
8767 break;
8768
8769 case (int)ScriptBaseClass.PRIM_TEMP_ON_REZ:
8770 res.Add(new LSL_Integer(0));
8771 break;
8772
8773 case (int)ScriptBaseClass.PRIM_PHANTOM:
8774 res.Add(new LSL_Integer(0));
8775 break;
8776
8777 case (int)ScriptBaseClass.PRIM_POSITION:
8778
8779 Vector3 pos = avatar.OffsetPosition;
8780
8781 Vector3 sitOffset = (Zrot(avatar.Rotation)) * (avatar.Appearance.AvatarHeight * 0.02638f *2.0f);
8782 pos -= sitOffset;
8783
8784 if( sitPart != null)
8785 pos = sitPart.GetWorldPosition() + pos * sitPart.GetWorldRotation();
8786
8787 res.Add(new LSL_Vector(pos.X,pos.Y,pos.Z));
8788 break;
8789
8790 case (int)ScriptBaseClass.PRIM_SIZE:
8791 // as in llGetAgentSize above
8792 res.Add(new LSL_Vector(0.45f, 0.6f, avatar.Appearance.AvatarHeight));
8793 break;
8794
8795 case (int)ScriptBaseClass.PRIM_ROTATION:
8796 Quaternion rot = avatar.Rotation;
8797 if (sitPart != null)
8798 {
8799 rot = sitPart.GetWorldRotation() * rot; // apply sit part world rotation
8800 }
8801
8802 res.Add(new LSL_Rotation (rot.X, rot.Y, rot.Z, rot.W));
8803 break;
8804
8805 case (int)ScriptBaseClass.PRIM_TYPE:
8806 res.Add(new LSL_Integer(ScriptBaseClass.PRIM_TYPE_BOX));
8807 res.Add(new LSL_Integer(ScriptBaseClass.PRIM_HOLE_DEFAULT));
8808 res.Add(new LSL_Vector(0f,1.0f,0f));
8809 res.Add(new LSL_Float(0.0f));
8810 res.Add(new LSL_Vector(0, 0, 0));
8811 res.Add(new LSL_Vector(1.0f,1.0f,0f));
8812 res.Add(new LSL_Vector(0, 0, 0));
8813 break;
8814
8815 case (int)ScriptBaseClass.PRIM_TEXTURE:
8816 if (remain < 1)
8817 return res;
8818
8819 int face = (int)rules.GetLSLIntegerItem(idx++);
8820 if (face == ScriptBaseClass.ALL_SIDES)
8821 {
8822 for (face = 0; face < 21; face++)
8823 {
8824 res.Add(new LSL_String(""));
8825 res.Add(new LSL_Vector(0,0,0));
8826 res.Add(new LSL_Vector(0,0,0));
8827 res.Add(new LSL_Float(0.0));
8828 }
8829 }
8830 else
8831 {
8832 if (face >= 0 && face < 21)
8833 {
8834 res.Add(new LSL_String(""));
8835 res.Add(new LSL_Vector(0,0,0));
8836 res.Add(new LSL_Vector(0,0,0));
8837 res.Add(new LSL_Float(0.0));
8838 }
8839 }
8840 break;
8841
8842 case (int)ScriptBaseClass.PRIM_COLOR:
8843 if (remain < 1)
8844 return res;
8845
8846 face = (int)rules.GetLSLIntegerItem(idx++);
8847
8848 if (face == ScriptBaseClass.ALL_SIDES)
8849 {
8850 for (face = 0; face < 21; face++)
8851 {
8852 res.Add(new LSL_Vector(0,0,0));
8853 res.Add(new LSL_Float(0));
8854 }
8855 }
8856 else
8857 {
8858 res.Add(new LSL_Vector(0,0,0));
8859 res.Add(new LSL_Float(0));
8860 }
8861 break;
8862
8863 case (int)ScriptBaseClass.PRIM_BUMP_SHINY:
8864 if (remain < 1)
8865 return res;
8866 face = (int)rules.GetLSLIntegerItem(idx++);
8867
8868 if (face == ScriptBaseClass.ALL_SIDES)
8869 {
8870 for (face = 0; face < 21; face++)
8871 {
8872 res.Add(new LSL_Integer(ScriptBaseClass.PRIM_SHINY_NONE));
8873 res.Add(new LSL_Integer(ScriptBaseClass.PRIM_BUMP_NONE));
8874 }
8875 }
8876 else
8877 {
8878 res.Add(new LSL_Integer(ScriptBaseClass.PRIM_SHINY_NONE));
8879 res.Add(new LSL_Integer(ScriptBaseClass.PRIM_BUMP_NONE));
8880 }
8881 break;
8882
8883 case (int)ScriptBaseClass.PRIM_FULLBRIGHT:
8884 if (remain < 1)
8885 return res;
8886 face = (int)rules.GetLSLIntegerItem(idx++);
8887
8888 if (face == ScriptBaseClass.ALL_SIDES)
8889 {
8890 for (face = 0; face < 21; face++)
8891 {
8892 res.Add(new LSL_Integer(ScriptBaseClass.FALSE));
8893 }
8894 }
8895 else
8896 {
8897 res.Add(new LSL_Integer(ScriptBaseClass.FALSE));
8898 }
8899 break;
7882 8900
8901 case (int)ScriptBaseClass.PRIM_FLEXIBLE:
8902 res.Add(new LSL_Integer(0));
8903 res.Add(new LSL_Integer(0));// softness
8904 res.Add(new LSL_Float(0.0f)); // gravity
8905 res.Add(new LSL_Float(0.0f)); // friction
8906 res.Add(new LSL_Float(0.0f)); // wind
8907 res.Add(new LSL_Float(0.0f)); // tension
8908 res.Add(new LSL_Vector(0f,0f,0f));
8909 break;
8910
8911 case (int)ScriptBaseClass.PRIM_TEXGEN:
8912 // (PRIM_TEXGEN_DEFAULT, PRIM_TEXGEN_PLANAR)
8913 if (remain < 1)
8914 return res;
8915 face = (int)rules.GetLSLIntegerItem(idx++);
8916
8917 if (face == ScriptBaseClass.ALL_SIDES)
8918 {
8919 for (face = 0; face < 21; face++)
8920 {
8921 res.Add(new LSL_Integer(ScriptBaseClass.PRIM_TEXGEN_DEFAULT));
8922 }
8923 }
8924 else
8925 {
8926 res.Add(new LSL_Integer(ScriptBaseClass.PRIM_TEXGEN_DEFAULT));
8927 }
8928 break;
8929
8930 case (int)ScriptBaseClass.PRIM_POINT_LIGHT:
8931 res.Add(new LSL_Integer(0));
8932 res.Add(new LSL_Vector(0f,0f,0f));
8933 res.Add(new LSL_Float(0f)); // intensity
8934 res.Add(new LSL_Float(0f)); // radius
8935 res.Add(new LSL_Float(0f)); // falloff
8936 break;
8937
8938 case (int)ScriptBaseClass.PRIM_GLOW:
8939 if (remain < 1)
8940 return res;
8941 face = (int)rules.GetLSLIntegerItem(idx++);
8942
8943 if (face == ScriptBaseClass.ALL_SIDES)
8944 {
8945 for (face = 0; face < 21; face++)
8946 {
8947 res.Add(new LSL_Float(0f));
8948 }
8949 }
8950 else
8951 {
8952 res.Add(new LSL_Float(0f));
8953 }
8954 break;
8955
8956 case (int)ScriptBaseClass.PRIM_TEXT:
8957 res.Add(new LSL_String(""));
8958 res.Add(new LSL_Vector(0f,0f,0f));
8959 res.Add(new LSL_Float(1.0f));
8960 break;
8961
8962 case (int)ScriptBaseClass.PRIM_NAME:
8963 res.Add(new LSL_String(avatar.Name));
8964 break;
8965
8966 case (int)ScriptBaseClass.PRIM_DESC:
8967 res.Add(new LSL_String(""));
8968 break;
8969
8970 case (int)ScriptBaseClass.PRIM_ROT_LOCAL:
8971 Quaternion lrot = avatar.Rotation;
8972
8973 if (sitPart != null && sitPart != sitPart.ParentGroup.RootPart)
8974 {
8975 lrot = sitPart.RotationOffset * lrot; // apply sit part rotation offset
8976 }
8977 res.Add(new LSL_Rotation(lrot.X, lrot.Y, lrot.Z, lrot.W));
8978 break;
8979
8980 case (int)ScriptBaseClass.PRIM_POS_LOCAL:
8981 Vector3 lpos = avatar.OffsetPosition; // pos relative to sit part
8982 Vector3 lsitOffset = (Zrot(avatar.Rotation)) * (avatar.Appearance.AvatarHeight * 0.02638f * 2.0f);
8983 lpos -= lsitOffset;
8984
8985 if (sitPart != null && sitPart != sitPart.ParentGroup.RootPart)
8986 {
8987 lpos = sitPart.OffsetPosition + (lpos * sitPart.RotationOffset); // make it relative to root prim
8988 }
8989 res.Add(new LSL_Vector(lpos.X,lpos.Y,lpos.Z));
8990 break;
8991
8992 case (int)ScriptBaseClass.PRIM_LINK_TARGET:
8993 if (remain < 3) // setting to 3 on the basis that parsing any usage of PRIM_LINK_TARGET that has nothing following it is pointless.
8994 return res;
8995 LSL_Integer new_linknumber = rules.GetLSLIntegerItem(idx++);
8996 LSL_List new_rules = rules.GetSublist(idx, -1);
8997
8998 res += llGetLinkPrimitiveParams((int)new_linknumber, new_rules);
8999 return res;
9000 }
9001 }
7883 return res; 9002 return res;
7884 } 9003 }
7885 9004
@@ -7923,13 +9042,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
7923 LSL_Vector v = new LSL_Vector(part.AbsolutePosition.X, 9042 LSL_Vector v = new LSL_Vector(part.AbsolutePosition.X,
7924 part.AbsolutePosition.Y, 9043 part.AbsolutePosition.Y,
7925 part.AbsolutePosition.Z); 9044 part.AbsolutePosition.Z);
7926 // For some reason, the part.AbsolutePosition.* values do not change if the
7927 // linkset is rotated; they always reflect the child prim's world position
7928 // as though the linkset is unrotated. This is incompatible behavior with SL's
7929 // implementation, so will break scripts imported from there (not to mention it
7930 // makes it more difficult to determine a child prim's actual inworld position).
7931 if (part.ParentID != 0)
7932 v = ((v - llGetRootPosition()) * llGetRootRotation()) + llGetRootPosition();
7933 res.Add(v); 9045 res.Add(v);
7934 break; 9046 break;
7935 9047
@@ -8100,56 +9212,92 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
8100 case (int)ScriptBaseClass.PRIM_BUMP_SHINY: 9212 case (int)ScriptBaseClass.PRIM_BUMP_SHINY:
8101 if (remain < 1) 9213 if (remain < 1)
8102 return res; 9214 return res;
8103 9215 face = (int)rules.GetLSLIntegerItem(idx++);
8104 face=(int)rules.GetLSLIntegerItem(idx++);
8105 9216
8106 tex = part.Shape.Textures; 9217 tex = part.Shape.Textures;
9218 int shiny;
8107 if (face == ScriptBaseClass.ALL_SIDES) 9219 if (face == ScriptBaseClass.ALL_SIDES)
8108 { 9220 {
8109 for (face = 0; face < GetNumberOfSides(part); face++) 9221 for (face = 0; face < GetNumberOfSides(part); face++)
8110 { 9222 {
8111 Primitive.TextureEntryFace texface = tex.GetFace((uint)face); 9223 Shininess shinyness = tex.GetFace((uint)face).Shiny;
8112 // Convert Shininess to PRIM_SHINY_* 9224 if (shinyness == Shininess.High)
8113 res.Add(new LSL_Integer((uint)texface.Shiny >> 6)); 9225 {
8114 // PRIM_BUMP_* 9226 shiny = ScriptBaseClass.PRIM_SHINY_HIGH;
8115 res.Add(new LSL_Integer((int)texface.Bump)); 9227 }
9228 else if (shinyness == Shininess.Medium)
9229 {
9230 shiny = ScriptBaseClass.PRIM_SHINY_MEDIUM;
9231 }
9232 else if (shinyness == Shininess.Low)
9233 {
9234 shiny = ScriptBaseClass.PRIM_SHINY_LOW;
9235 }
9236 else
9237 {
9238 shiny = ScriptBaseClass.PRIM_SHINY_NONE;
9239 }
9240 res.Add(new LSL_Integer(shiny));
9241 res.Add(new LSL_Integer((int)tex.GetFace((uint)face).Bump));
8116 } 9242 }
8117 } 9243 }
8118 else 9244 else
8119 { 9245 {
8120 if (face >= 0 && face < GetNumberOfSides(part)) 9246 Shininess shinyness = tex.GetFace((uint)face).Shiny;
9247 if (shinyness == Shininess.High)
8121 { 9248 {
8122 Primitive.TextureEntryFace texface = tex.GetFace((uint)face); 9249 shiny = ScriptBaseClass.PRIM_SHINY_HIGH;
8123 // Convert Shininess to PRIM_SHINY_* 9250 }
8124 res.Add(new LSL_Integer((uint)texface.Shiny >> 6)); 9251 else if (shinyness == Shininess.Medium)
8125 // PRIM_BUMP_* 9252 {
8126 res.Add(new LSL_Integer((int)texface.Bump)); 9253 shiny = ScriptBaseClass.PRIM_SHINY_MEDIUM;
9254 }
9255 else if (shinyness == Shininess.Low)
9256 {
9257 shiny = ScriptBaseClass.PRIM_SHINY_LOW;
8127 } 9258 }
9259 else
9260 {
9261 shiny = ScriptBaseClass.PRIM_SHINY_NONE;
9262 }
9263 res.Add(new LSL_Integer(shiny));
9264 res.Add(new LSL_Integer((int)tex.GetFace((uint)face).Bump));
8128 } 9265 }
8129 break; 9266 break;
8130 9267
8131 case (int)ScriptBaseClass.PRIM_FULLBRIGHT: 9268 case (int)ScriptBaseClass.PRIM_FULLBRIGHT:
8132 if (remain < 1) 9269 if (remain < 1)
8133 return res; 9270 return res;
8134 9271 face = (int)rules.GetLSLIntegerItem(idx++);
8135 face=(int)rules.GetLSLIntegerItem(idx++);
8136 9272
8137 tex = part.Shape.Textures; 9273 tex = part.Shape.Textures;
9274 int fullbright;
8138 if (face == ScriptBaseClass.ALL_SIDES) 9275 if (face == ScriptBaseClass.ALL_SIDES)
8139 { 9276 {
8140 for (face = 0; face < GetNumberOfSides(part); face++) 9277 for (face = 0; face < GetNumberOfSides(part); face++)
8141 { 9278 {
8142 Primitive.TextureEntryFace texface = tex.GetFace((uint)face); 9279 if (tex.GetFace((uint)face).Fullbright == true)
8143 res.Add(new LSL_Integer(texface.Fullbright ? 1 : 0)); 9280 {
9281 fullbright = ScriptBaseClass.TRUE;
9282 }
9283 else
9284 {
9285 fullbright = ScriptBaseClass.FALSE;
9286 }
9287 res.Add(new LSL_Integer(fullbright));
8144 } 9288 }
8145 } 9289 }
8146 else 9290 else
8147 { 9291 {
8148 if (face >= 0 && face < GetNumberOfSides(part)) 9292 if (tex.GetFace((uint)face).Fullbright == true)
8149 { 9293 {
8150 Primitive.TextureEntryFace texface = tex.GetFace((uint)face); 9294 fullbright = ScriptBaseClass.TRUE;
8151 res.Add(new LSL_Integer(texface.Fullbright ? 1 : 0)); 9295 }
9296 else
9297 {
9298 fullbright = ScriptBaseClass.FALSE;
8152 } 9299 }
9300 res.Add(new LSL_Integer(fullbright));
8153 } 9301 }
8154 break; 9302 break;
8155 9303
@@ -8171,27 +9319,35 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
8171 break; 9319 break;
8172 9320
8173 case (int)ScriptBaseClass.PRIM_TEXGEN: 9321 case (int)ScriptBaseClass.PRIM_TEXGEN:
9322 // (PRIM_TEXGEN_DEFAULT, PRIM_TEXGEN_PLANAR)
8174 if (remain < 1) 9323 if (remain < 1)
8175 return res; 9324 return res;
8176 9325 face = (int)rules.GetLSLIntegerItem(idx++);
8177 face=(int)rules.GetLSLIntegerItem(idx++);
8178 9326
8179 tex = part.Shape.Textures; 9327 tex = part.Shape.Textures;
8180 if (face == ScriptBaseClass.ALL_SIDES) 9328 if (face == ScriptBaseClass.ALL_SIDES)
8181 { 9329 {
8182 for (face = 0; face < GetNumberOfSides(part); face++) 9330 for (face = 0; face < GetNumberOfSides(part); face++)
8183 { 9331 {
8184 MappingType texgen = tex.GetFace((uint)face).TexMapType; 9332 if (tex.GetFace((uint)face).TexMapType == MappingType.Planar)
8185 // Convert MappingType to PRIM_TEXGEN_DEFAULT, PRIM_TEXGEN_PLANAR etc. 9333 {
8186 res.Add(new LSL_Integer((uint)texgen >> 1)); 9334 res.Add(new LSL_Integer(ScriptBaseClass.PRIM_TEXGEN_PLANAR));
9335 }
9336 else
9337 {
9338 res.Add(new LSL_Integer(ScriptBaseClass.PRIM_TEXGEN_DEFAULT));
9339 }
8187 } 9340 }
8188 } 9341 }
8189 else 9342 else
8190 { 9343 {
8191 if (face >= 0 && face < GetNumberOfSides(part)) 9344 if (tex.GetFace((uint)face).TexMapType == MappingType.Planar)
9345 {
9346 res.Add(new LSL_Integer(ScriptBaseClass.PRIM_TEXGEN_PLANAR));
9347 }
9348 else
8192 { 9349 {
8193 MappingType texgen = tex.GetFace((uint)face).TexMapType; 9350 res.Add(new LSL_Integer(ScriptBaseClass.PRIM_TEXGEN_DEFAULT));
8194 res.Add(new LSL_Integer((uint)texgen >> 1));
8195 } 9351 }
8196 } 9352 }
8197 break; 9353 break;
@@ -8214,25 +9370,22 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
8214 case (int)ScriptBaseClass.PRIM_GLOW: 9370 case (int)ScriptBaseClass.PRIM_GLOW:
8215 if (remain < 1) 9371 if (remain < 1)
8216 return res; 9372 return res;
8217 9373 face = (int)rules.GetLSLIntegerItem(idx++);
8218 face=(int)rules.GetLSLIntegerItem(idx++);
8219 9374
8220 tex = part.Shape.Textures; 9375 tex = part.Shape.Textures;
9376 float primglow;
8221 if (face == ScriptBaseClass.ALL_SIDES) 9377 if (face == ScriptBaseClass.ALL_SIDES)
8222 { 9378 {
8223 for (face = 0; face < GetNumberOfSides(part); face++) 9379 for (face = 0; face < GetNumberOfSides(part); face++)
8224 { 9380 {
8225 Primitive.TextureEntryFace texface = tex.GetFace((uint)face); 9381 primglow = tex.GetFace((uint)face).Glow;
8226 res.Add(new LSL_Float(texface.Glow)); 9382 res.Add(new LSL_Float(primglow));
8227 } 9383 }
8228 } 9384 }
8229 else 9385 else
8230 { 9386 {
8231 if (face >= 0 && face < GetNumberOfSides(part)) 9387 primglow = tex.GetFace((uint)face).Glow;
8232 { 9388 res.Add(new LSL_Float(primglow));
8233 Primitive.TextureEntryFace texface = tex.GetFace((uint)face);
8234 res.Add(new LSL_Float(texface.Glow));
8235 }
8236 } 9389 }
8237 break; 9390 break;
8238 9391
@@ -8244,18 +9397,31 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
8244 textColor.B)); 9397 textColor.B));
8245 res.Add(new LSL_Float(textColor.A)); 9398 res.Add(new LSL_Float(textColor.A));
8246 break; 9399 break;
9400
8247 case (int)ScriptBaseClass.PRIM_NAME: 9401 case (int)ScriptBaseClass.PRIM_NAME:
8248 res.Add(new LSL_String(part.Name)); 9402 res.Add(new LSL_String(part.Name));
8249 break; 9403 break;
9404
8250 case (int)ScriptBaseClass.PRIM_DESC: 9405 case (int)ScriptBaseClass.PRIM_DESC:
8251 res.Add(new LSL_String(part.Description)); 9406 res.Add(new LSL_String(part.Description));
8252 break; 9407 break;
9408
8253 case (int)ScriptBaseClass.PRIM_ROT_LOCAL: 9409 case (int)ScriptBaseClass.PRIM_ROT_LOCAL:
8254 res.Add(new LSL_Rotation(part.RotationOffset.X, part.RotationOffset.Y, part.RotationOffset.Z, part.RotationOffset.W)); 9410 res.Add(new LSL_Rotation(part.RotationOffset.X, part.RotationOffset.Y, part.RotationOffset.Z, part.RotationOffset.W));
8255 break; 9411 break;
9412
8256 case (int)ScriptBaseClass.PRIM_POS_LOCAL: 9413 case (int)ScriptBaseClass.PRIM_POS_LOCAL:
8257 res.Add(new LSL_Vector(GetPartLocalPos(part))); 9414 res.Add(new LSL_Vector(GetPartLocalPos(part)));
8258 break; 9415 break;
9416
9417 case (int)ScriptBaseClass.PRIM_LINK_TARGET:
9418 if (remain < 3) // setting to 3 on the basis that parsing any usage of PRIM_LINK_TARGET that has nothing following it is pointless.
9419 return res;
9420 LSL_Integer new_linknumber = rules.GetLSLIntegerItem(idx++);
9421 LSL_List new_rules = rules.GetSublist(idx, -1);
9422 LSL_List tres = llGetLinkPrimitiveParams((int)new_linknumber, new_rules);
9423 res += tres;
9424 return res;
8259 } 9425 }
8260 } 9426 }
8261 return res; 9427 return res;
@@ -8848,8 +10014,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
8848 // The function returns an ordered list 10014 // The function returns an ordered list
8849 // representing the tokens found in the supplied 10015 // representing the tokens found in the supplied
8850 // sources string. If two successive tokenizers 10016 // sources string. If two successive tokenizers
8851 // are encountered, then a NULL entry is added 10017 // are encountered, then a null-string entry is
8852 // to the list. 10018 // added to the list.
8853 // 10019 //
8854 // It is a precondition that the source and 10020 // It is a precondition that the source and
8855 // toekizer lisst are non-null. If they are null, 10021 // toekizer lisst are non-null. If they are null,
@@ -8857,7 +10023,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
8857 // while their lengths are being determined. 10023 // while their lengths are being determined.
8858 // 10024 //
8859 // A small amount of working memoryis required 10025 // A small amount of working memoryis required
8860 // of approximately 8*#tokenizers. 10026 // of approximately 8*#tokenizers + 8*srcstrlen.
8861 // 10027 //
8862 // There are many ways in which this function 10028 // There are many ways in which this function
8863 // can be implemented, this implementation is 10029 // can be implemented, this implementation is
@@ -8873,155 +10039,124 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
8873 // and eliminates redundant tokenizers as soon 10039 // and eliminates redundant tokenizers as soon
8874 // as is possible. 10040 // as is possible.
8875 // 10041 //
8876 // The implementation tries to avoid any copying 10042 // The implementation tries to minimize temporary
8877 // of arrays or other objects. 10043 // garbage generation.
8878 // </remarks> 10044 // </remarks>
8879 10045
8880 private LSL_List ParseString(string src, LSL_List separators, LSL_List spacers, bool keepNulls) 10046 public LSL_List llParseStringKeepNulls(string src, LSL_List separators, LSL_List spacers)
8881 { 10047 {
8882 int beginning = 0; 10048 return ParseString2List(src, separators, spacers, true);
8883 int srclen = src.Length; 10049 }
8884 int seplen = separators.Length;
8885 object[] separray = separators.Data;
8886 int spclen = spacers.Length;
8887 object[] spcarray = spacers.Data;
8888 int mlen = seplen+spclen;
8889
8890 int[] offset = new int[mlen+1];
8891 bool[] active = new bool[mlen];
8892
8893 int best;
8894 int j;
8895
8896 // Initial capacity reduces resize cost
8897 10050
8898 LSL_List tokens = new LSL_List(); 10051 private LSL_List ParseString2List(string src, LSL_List separators, LSL_List spacers, bool keepNulls)
10052 {
10053 int srclen = src.Length;
10054 int seplen = separators.Length;
10055 object[] separray = separators.Data;
10056 int spclen = spacers.Length;
10057 object[] spcarray = spacers.Data;
10058 int dellen = 0;
10059 string[] delarray = new string[seplen+spclen];
8899 10060
8900 // All entries are initially valid 10061 int outlen = 0;
10062 string[] outarray = new string[srclen*2+1];
8901 10063
8902 for (int i = 0; i < mlen; i++) 10064 int i, j;
8903 active[i] = true; 10065 string d;
8904 10066
8905 offset[mlen] = srclen; 10067 m_host.AddScriptLPS(1);
8906 10068
8907 while (beginning < srclen) 10069 /*
10070 * Convert separator and spacer lists to C# strings.
10071 * Also filter out null strings so we don't hang.
10072 */
10073 for (i = 0; i < seplen; i ++)
8908 { 10074 {
10075 d = separray[i].ToString();
10076 if (d.Length > 0)
10077 {
10078 delarray[dellen++] = d;
10079 }
10080 }
10081 seplen = dellen;
8909 10082
8910 best = mlen; // as bad as it gets 10083 for (i = 0; i < spclen; i ++)
10084 {
10085 d = spcarray[i].ToString();
10086 if (d.Length > 0)
10087 {
10088 delarray[dellen++] = d;
10089 }
10090 }
8911 10091
8912 // Scan for separators 10092 /*
10093 * Scan through source string from beginning to end.
10094 */
10095 for (i = 0;;)
10096 {
8913 10097
8914 for (j = 0; j < seplen; j++) 10098 /*
10099 * Find earliest delimeter in src starting at i (if any).
10100 */
10101 int earliestDel = -1;
10102 int earliestSrc = srclen;
10103 string earliestStr = null;
10104 for (j = 0; j < dellen; j ++)
8915 { 10105 {
8916 if (separray[j].ToString() == String.Empty) 10106 d = delarray[j];
8917 active[j] = false; 10107 if (d != null)
8918
8919 if (active[j])
8920 { 10108 {
8921 // scan all of the markers 10109 int index = src.IndexOf(d, i);
8922 if ((offset[j] = src.IndexOf(separray[j].ToString(), beginning)) == -1) 10110 if (index < 0)
8923 { 10111 {
8924 // not present at all 10112 delarray[j] = null; // delim nowhere in src, don't check it anymore
8925 active[j] = false;
8926 } 10113 }
8927 else 10114 else if (index < earliestSrc)
8928 { 10115 {
8929 // present and correct 10116 earliestSrc = index; // where delimeter starts in source string
8930 if (offset[j] < offset[best]) 10117 earliestDel = j; // where delimeter is in delarray[]
8931 { 10118 earliestStr = d; // the delimeter string from delarray[]
8932 // closest so far 10119 if (index == i) break; // can't do any better than found at beg of string
8933 best = j;
8934 if (offset[best] == beginning)
8935 break;
8936 }
8937 } 10120 }
8938 } 10121 }
8939 } 10122 }
8940 10123
8941 // Scan for spacers 10124 /*
8942 10125 * Output source string starting at i through start of earliest delimeter.
8943 if (offset[best] != beginning) 10126 */
10127 if (keepNulls || (earliestSrc > i))
8944 { 10128 {
8945 for (j = seplen; (j < mlen) && (offset[best] > beginning); j++) 10129 outarray[outlen++] = src.Substring(i, earliestSrc - i);
8946 {
8947 if (spcarray[j-seplen].ToString() == String.Empty)
8948 active[j] = false;
8949
8950 if (active[j])
8951 {
8952 // scan all of the markers
8953 if ((offset[j] = src.IndexOf(spcarray[j-seplen].ToString(), beginning)) == -1)
8954 {
8955 // not present at all
8956 active[j] = false;
8957 }
8958 else
8959 {
8960 // present and correct
8961 if (offset[j] < offset[best])
8962 {
8963 // closest so far
8964 best = j;
8965 }
8966 }
8967 }
8968 }
8969 } 10130 }
8970 10131
8971 // This is the normal exit from the scanning loop 10132 /*
10133 * If no delimeter found at or after i, we're done scanning.
10134 */
10135 if (earliestDel < 0) break;
8972 10136
8973 if (best == mlen) 10137 /*
10138 * If delimeter was a spacer, output the spacer.
10139 */
10140 if (earliestDel >= seplen)
8974 { 10141 {
8975 // no markers were found on this pass 10142 outarray[outlen++] = earliestStr;
8976 // so we're pretty much done
8977 if ((keepNulls) || ((!keepNulls) && (srclen - beginning) > 0))
8978 tokens.Add(new LSL_String(src.Substring(beginning, srclen - beginning)));
8979 break;
8980 } 10143 }
8981 10144
8982 // Otherwise we just add the newly delimited token 10145 /*
8983 // and recalculate where the search should continue. 10146 * Look at rest of src string following delimeter.
8984 if ((keepNulls) || ((!keepNulls) && (offset[best] - beginning) > 0)) 10147 */
8985 tokens.Add(new LSL_String(src.Substring(beginning,offset[best]-beginning))); 10148 i = earliestSrc + earliestStr.Length;
8986
8987 if (best < seplen)
8988 {
8989 beginning = offset[best] + (separray[best].ToString()).Length;
8990 }
8991 else
8992 {
8993 beginning = offset[best] + (spcarray[best - seplen].ToString()).Length;
8994 string str = spcarray[best - seplen].ToString();
8995 if ((keepNulls) || ((!keepNulls) && (str.Length > 0)))
8996 tokens.Add(new LSL_String(str));
8997 }
8998 } 10149 }
8999 10150
9000 // This an awkward an not very intuitive boundary case. If the 10151 /*
9001 // last substring is a tokenizer, then there is an implied trailing 10152 * Make up an exact-sized output array suitable for an LSL_List object.
9002 // null list entry. Hopefully the single comparison will not be too 10153 */
9003 // arduous. Alternatively the 'break' could be replced with a return 10154 object[] outlist = new object[outlen];
9004 // but that's shabby programming. 10155 for (i = 0; i < outlen; i ++)
9005
9006 if ((beginning == srclen) && (keepNulls))
9007 { 10156 {
9008 if (srclen != 0) 10157 outlist[i] = new LSL_String(outarray[i]);
9009 tokens.Add(new LSL_String(""));
9010 } 10158 }
9011 10159 return new LSL_List(outlist);
9012 return tokens;
9013 }
9014
9015 public LSL_List llParseString2List(string src, LSL_List separators, LSL_List spacers)
9016 {
9017 m_host.AddScriptLPS(1);
9018 return this.ParseString(src, separators, spacers, false);
9019 }
9020
9021 public LSL_List llParseStringKeepNulls(string src, LSL_List separators, LSL_List spacers)
9022 {
9023 m_host.AddScriptLPS(1);
9024 return this.ParseString(src, separators, spacers, true);
9025 } 10160 }
9026 10161
9027 public LSL_Integer llGetObjectPermMask(int mask) 10162 public LSL_Integer llGetObjectPermMask(int mask)
@@ -9098,28 +10233,28 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
9098 { 10233 {
9099 m_host.AddScriptLPS(1); 10234 m_host.AddScriptLPS(1);
9100 10235
9101 lock (m_host.TaskInventory) 10236 m_host.TaskInventory.LockItemsForRead(true);
10237 foreach (KeyValuePair<UUID, TaskInventoryItem> inv in m_host.TaskInventory)
9102 { 10238 {
9103 foreach (KeyValuePair<UUID, TaskInventoryItem> inv in m_host.TaskInventory) 10239 if (inv.Value.Name == item)
9104 { 10240 {
9105 if (inv.Value.Name == item) 10241 m_host.TaskInventory.LockItemsForRead(false);
10242 switch (mask)
9106 { 10243 {
9107 switch (mask) 10244 case 0:
9108 { 10245 return (int)inv.Value.BasePermissions;
9109 case 0: 10246 case 1:
9110 return (int)inv.Value.BasePermissions; 10247 return (int)inv.Value.CurrentPermissions;
9111 case 1: 10248 case 2:
9112 return (int)inv.Value.CurrentPermissions; 10249 return (int)inv.Value.GroupPermissions;
9113 case 2: 10250 case 3:
9114 return (int)inv.Value.GroupPermissions; 10251 return (int)inv.Value.EveryonePermissions;
9115 case 3: 10252 case 4:
9116 return (int)inv.Value.EveryonePermissions; 10253 return (int)inv.Value.NextPermissions;
9117 case 4:
9118 return (int)inv.Value.NextPermissions;
9119 }
9120 } 10254 }
9121 } 10255 }
9122 } 10256 }
10257 m_host.TaskInventory.LockItemsForRead(false);
9123 10258
9124 return -1; 10259 return -1;
9125 } 10260 }
@@ -9166,16 +10301,16 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
9166 { 10301 {
9167 m_host.AddScriptLPS(1); 10302 m_host.AddScriptLPS(1);
9168 10303
9169 lock (m_host.TaskInventory) 10304 m_host.TaskInventory.LockItemsForRead(true);
10305 foreach (KeyValuePair<UUID, TaskInventoryItem> inv in m_host.TaskInventory)
9170 { 10306 {
9171 foreach (KeyValuePair<UUID, TaskInventoryItem> inv in m_host.TaskInventory) 10307 if (inv.Value.Name == item)
9172 { 10308 {
9173 if (inv.Value.Name == item) 10309 m_host.TaskInventory.LockItemsForRead(false);
9174 { 10310 return inv.Value.CreatorID.ToString();
9175 return inv.Value.CreatorID.ToString();
9176 }
9177 } 10311 }
9178 } 10312 }
10313 m_host.TaskInventory.LockItemsForRead(false);
9179 10314
9180 llSay(0, "No item name '" + item + "'"); 10315 llSay(0, "No item name '" + item + "'");
9181 10316
@@ -9317,9 +10452,16 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
9317 { 10452 {
9318 try 10453 try
9319 { 10454 {
10455 /*
9320 SceneObjectPart obj = World.GetSceneObjectPart(World.Entities[key].LocalId); 10456 SceneObjectPart obj = World.GetSceneObjectPart(World.Entities[key].LocalId);
9321 if (obj != null) 10457 if (obj != null)
9322 return (double)obj.GetMass(); 10458 return (double)obj.GetMass();
10459 */
10460 // return total object mass
10461 SceneObjectGroup obj = World.GetGroupByPrim(World.Entities[key].LocalId);
10462 if (obj != null)
10463 return obj.GetMass();
10464
9323 // the object is null so the key is for an avatar 10465 // the object is null so the key is for an avatar
9324 ScenePresence avatar = World.GetScenePresence(key); 10466 ScenePresence avatar = World.GetScenePresence(key);
9325 if (avatar != null) 10467 if (avatar != null)
@@ -9339,7 +10481,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
9339 } 10481 }
9340 10482
9341 /// <summary> 10483 /// <summary>
9342 /// illListReplaceList removes the sub-list defined by the inclusive indices 10484 /// llListReplaceList removes the sub-list defined by the inclusive indices
9343 /// start and end and inserts the src list in its place. The inclusive 10485 /// start and end and inserts the src list in its place. The inclusive
9344 /// nature of the indices means that at least one element must be deleted 10486 /// nature of the indices means that at least one element must be deleted
9345 /// if the indices are within the bounds of the existing list. I.e. 2,2 10487 /// if the indices are within the bounds of the existing list. I.e. 2,2
@@ -9396,16 +10538,19 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
9396 // based upon end. Note that if end exceeds the upper 10538 // based upon end. Note that if end exceeds the upper
9397 // bound in this case, the entire destination list 10539 // bound in this case, the entire destination list
9398 // is removed. 10540 // is removed.
9399 else 10541 else if (start == 0)
9400 { 10542 {
9401 if (end + 1 < dest.Length) 10543 if (end + 1 < dest.Length)
9402 {
9403 return src + dest.GetSublist(end + 1, -1); 10544 return src + dest.GetSublist(end + 1, -1);
9404 }
9405 else 10545 else
9406 {
9407 return src; 10546 return src;
9408 } 10547 }
10548 else // Start < 0
10549 {
10550 if (end + 1 < dest.Length)
10551 return dest.GetSublist(end + 1, -1);
10552 else
10553 return new LSL_List();
9409 } 10554 }
9410 } 10555 }
9411 // Finally, if start > end, we strip away a prefix and 10556 // Finally, if start > end, we strip away a prefix and
@@ -9456,17 +10601,17 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
9456 int width = 0; 10601 int width = 0;
9457 int height = 0; 10602 int height = 0;
9458 10603
9459 ParcelMediaCommandEnum? commandToSend = null; 10604 uint commandToSend = 0;
9460 float time = 0.0f; // default is from start 10605 float time = 0.0f; // default is from start
9461 10606
9462 ScenePresence presence = null; 10607 ScenePresence presence = null;
9463 10608
9464 for (int i = 0; i < commandList.Data.Length; i++) 10609 for (int i = 0; i < commandList.Data.Length; i++)
9465 { 10610 {
9466 ParcelMediaCommandEnum command = (ParcelMediaCommandEnum)commandList.Data[i]; 10611 uint command = (uint)(commandList.GetLSLIntegerItem(i));
9467 switch (command) 10612 switch (command)
9468 { 10613 {
9469 case ParcelMediaCommandEnum.Agent: 10614 case (uint)ParcelMediaCommandEnum.Agent:
9470 // we send only to one agent 10615 // we send only to one agent
9471 if ((i + 1) < commandList.Length) 10616 if ((i + 1) < commandList.Length)
9472 { 10617 {
@@ -9483,25 +10628,25 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
9483 } 10628 }
9484 break; 10629 break;
9485 10630
9486 case ParcelMediaCommandEnum.Loop: 10631 case (uint)ParcelMediaCommandEnum.Loop:
9487 loop = 1; 10632 loop = 1;
9488 commandToSend = command; 10633 commandToSend = command;
9489 update = true; //need to send the media update packet to set looping 10634 update = true; //need to send the media update packet to set looping
9490 break; 10635 break;
9491 10636
9492 case ParcelMediaCommandEnum.Play: 10637 case (uint)ParcelMediaCommandEnum.Play:
9493 loop = 0; 10638 loop = 0;
9494 commandToSend = command; 10639 commandToSend = command;
9495 update = true; //need to send the media update packet to make sure it doesn't loop 10640 update = true; //need to send the media update packet to make sure it doesn't loop
9496 break; 10641 break;
9497 10642
9498 case ParcelMediaCommandEnum.Pause: 10643 case (uint)ParcelMediaCommandEnum.Pause:
9499 case ParcelMediaCommandEnum.Stop: 10644 case (uint)ParcelMediaCommandEnum.Stop:
9500 case ParcelMediaCommandEnum.Unload: 10645 case (uint)ParcelMediaCommandEnum.Unload:
9501 commandToSend = command; 10646 commandToSend = command;
9502 break; 10647 break;
9503 10648
9504 case ParcelMediaCommandEnum.Url: 10649 case (uint)ParcelMediaCommandEnum.Url:
9505 if ((i + 1) < commandList.Length) 10650 if ((i + 1) < commandList.Length)
9506 { 10651 {
9507 if (commandList.Data[i + 1] is LSL_String) 10652 if (commandList.Data[i + 1] is LSL_String)
@@ -9514,7 +10659,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
9514 } 10659 }
9515 break; 10660 break;
9516 10661
9517 case ParcelMediaCommandEnum.Texture: 10662 case (uint)ParcelMediaCommandEnum.Texture:
9518 if ((i + 1) < commandList.Length) 10663 if ((i + 1) < commandList.Length)
9519 { 10664 {
9520 if (commandList.Data[i + 1] is LSL_String) 10665 if (commandList.Data[i + 1] is LSL_String)
@@ -9527,7 +10672,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
9527 } 10672 }
9528 break; 10673 break;
9529 10674
9530 case ParcelMediaCommandEnum.Time: 10675 case (uint)ParcelMediaCommandEnum.Time:
9531 if ((i + 1) < commandList.Length) 10676 if ((i + 1) < commandList.Length)
9532 { 10677 {
9533 if (commandList.Data[i + 1] is LSL_Float) 10678 if (commandList.Data[i + 1] is LSL_Float)
@@ -9539,7 +10684,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
9539 } 10684 }
9540 break; 10685 break;
9541 10686
9542 case ParcelMediaCommandEnum.AutoAlign: 10687 case (uint)ParcelMediaCommandEnum.AutoAlign:
9543 if ((i + 1) < commandList.Length) 10688 if ((i + 1) < commandList.Length)
9544 { 10689 {
9545 if (commandList.Data[i + 1] is LSL_Integer) 10690 if (commandList.Data[i + 1] is LSL_Integer)
@@ -9553,7 +10698,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
9553 } 10698 }
9554 break; 10699 break;
9555 10700
9556 case ParcelMediaCommandEnum.Type: 10701 case (uint)ParcelMediaCommandEnum.Type:
9557 if ((i + 1) < commandList.Length) 10702 if ((i + 1) < commandList.Length)
9558 { 10703 {
9559 if (commandList.Data[i + 1] is LSL_String) 10704 if (commandList.Data[i + 1] is LSL_String)
@@ -9566,7 +10711,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
9566 } 10711 }
9567 break; 10712 break;
9568 10713
9569 case ParcelMediaCommandEnum.Desc: 10714 case (uint)ParcelMediaCommandEnum.Desc:
9570 if ((i + 1) < commandList.Length) 10715 if ((i + 1) < commandList.Length)
9571 { 10716 {
9572 if (commandList.Data[i + 1] is LSL_String) 10717 if (commandList.Data[i + 1] is LSL_String)
@@ -9579,7 +10724,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
9579 } 10724 }
9580 break; 10725 break;
9581 10726
9582 case ParcelMediaCommandEnum.Size: 10727 case (uint)ParcelMediaCommandEnum.Size:
9583 if ((i + 2) < commandList.Length) 10728 if ((i + 2) < commandList.Length)
9584 { 10729 {
9585 if (commandList.Data[i + 1] is LSL_Integer) 10730 if (commandList.Data[i + 1] is LSL_Integer)
@@ -9649,7 +10794,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
9649 } 10794 }
9650 } 10795 }
9651 10796
9652 if (commandToSend != null) 10797 if (commandToSend != 0)
9653 { 10798 {
9654 // the commandList contained a start/stop/... command, too 10799 // the commandList contained a start/stop/... command, too
9655 if (presence == null) 10800 if (presence == null)
@@ -9686,7 +10831,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
9686 10831
9687 if (aList.Data[i] != null) 10832 if (aList.Data[i] != null)
9688 { 10833 {
9689 switch ((ParcelMediaCommandEnum) aList.Data[i]) 10834 switch ((ParcelMediaCommandEnum) Convert.ToInt32(aList.Data[i].ToString()))
9690 { 10835 {
9691 case ParcelMediaCommandEnum.Url: 10836 case ParcelMediaCommandEnum.Url:
9692 list.Add(new LSL_String(World.GetLandData(m_host.AbsolutePosition.X, m_host.AbsolutePosition.Y).MediaURL)); 10837 list.Add(new LSL_String(World.GetLandData(m_host.AbsolutePosition.X, m_host.AbsolutePosition.Y).MediaURL));
@@ -9729,16 +10874,16 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
9729 { 10874 {
9730 m_host.AddScriptLPS(1); 10875 m_host.AddScriptLPS(1);
9731 10876
9732 lock (m_host.TaskInventory) 10877 m_host.TaskInventory.LockItemsForRead(true);
10878 foreach (KeyValuePair<UUID, TaskInventoryItem> inv in m_host.TaskInventory)
9733 { 10879 {
9734 foreach (KeyValuePair<UUID, TaskInventoryItem> inv in m_host.TaskInventory) 10880 if (inv.Value.Name == name)
9735 { 10881 {
9736 if (inv.Value.Name == name) 10882 m_host.TaskInventory.LockItemsForRead(false);
9737 { 10883 return inv.Value.Type;
9738 return inv.Value.Type;
9739 }
9740 } 10884 }
9741 } 10885 }
10886 m_host.TaskInventory.LockItemsForRead(false);
9742 10887
9743 return -1; 10888 return -1;
9744 } 10889 }
@@ -9749,15 +10894,19 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
9749 10894
9750 if (quick_pay_buttons.Data.Length < 4) 10895 if (quick_pay_buttons.Data.Length < 4)
9751 { 10896 {
9752 LSLError("List must have at least 4 elements"); 10897 int x;
9753 return; 10898 for (x=quick_pay_buttons.Data.Length; x<= 4; x++)
10899 {
10900 quick_pay_buttons.Add(ScriptBaseClass.PAY_HIDE);
10901 }
9754 } 10902 }
9755 m_host.ParentGroup.RootPart.PayPrice[0]=price; 10903 int[] nPrice = new int[5];
9756 10904 nPrice[0] = price;
9757 m_host.ParentGroup.RootPart.PayPrice[1]=(LSL_Integer)quick_pay_buttons.Data[0]; 10905 nPrice[1] = quick_pay_buttons.GetLSLIntegerItem(0);
9758 m_host.ParentGroup.RootPart.PayPrice[2]=(LSL_Integer)quick_pay_buttons.Data[1]; 10906 nPrice[2] = quick_pay_buttons.GetLSLIntegerItem(1);
9759 m_host.ParentGroup.RootPart.PayPrice[3]=(LSL_Integer)quick_pay_buttons.Data[2]; 10907 nPrice[3] = quick_pay_buttons.GetLSLIntegerItem(2);
9760 m_host.ParentGroup.RootPart.PayPrice[4]=(LSL_Integer)quick_pay_buttons.Data[3]; 10908 nPrice[4] = quick_pay_buttons.GetLSLIntegerItem(3);
10909 m_host.ParentGroup.RootPart.PayPrice = nPrice;
9761 m_host.ParentGroup.HasGroupChanged = true; 10910 m_host.ParentGroup.HasGroupChanged = true;
9762 } 10911 }
9763 10912
@@ -9774,7 +10923,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
9774 return new LSL_Vector(); 10923 return new LSL_Vector();
9775 } 10924 }
9776 10925
9777 ScenePresence presence = World.GetScenePresence(m_host.OwnerID); 10926// ScenePresence presence = World.GetScenePresence(m_host.OwnerID);
10927 ScenePresence presence = World.GetScenePresence(m_item.PermsGranter);
9778 if (presence != null) 10928 if (presence != null)
9779 { 10929 {
9780 LSL_Vector pos = new LSL_Vector(presence.CameraPosition.X, presence.CameraPosition.Y, presence.CameraPosition.Z); 10930 LSL_Vector pos = new LSL_Vector(presence.CameraPosition.X, presence.CameraPosition.Y, presence.CameraPosition.Z);
@@ -9796,7 +10946,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
9796 return new LSL_Rotation(); 10946 return new LSL_Rotation();
9797 } 10947 }
9798 10948
9799 ScenePresence presence = World.GetScenePresence(m_host.OwnerID); 10949// ScenePresence presence = World.GetScenePresence(m_host.OwnerID);
10950 ScenePresence presence = World.GetScenePresence(m_item.PermsGranter);
9800 if (presence != null) 10951 if (presence != null)
9801 { 10952 {
9802 return new LSL_Rotation(presence.CameraRotation.X, presence.CameraRotation.Y, presence.CameraRotation.Z, presence.CameraRotation.W); 10953 return new LSL_Rotation(presence.CameraRotation.X, presence.CameraRotation.Y, presence.CameraRotation.Z, presence.CameraRotation.W);
@@ -9856,8 +11007,19 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
9856 { 11007 {
9857 m_host.AddScriptLPS(1); 11008 m_host.AddScriptLPS(1);
9858 DetectParams detectedParams = m_ScriptEngine.GetDetectParams(m_item.ItemID, 0); 11009 DetectParams detectedParams = m_ScriptEngine.GetDetectParams(m_item.ItemID, 0);
9859 if (detectedParams == null) return; // only works on the first detected avatar 11010 if (detectedParams == null)
9860 11011 {
11012 if (m_host.ParentGroup.IsAttachment == true)
11013 {
11014 detectedParams = new DetectParams();
11015 detectedParams.Key = m_host.OwnerID;
11016 }
11017 else
11018 {
11019 return;
11020 }
11021 }
11022
9861 ScenePresence avatar = World.GetScenePresence(detectedParams.Key); 11023 ScenePresence avatar = World.GetScenePresence(detectedParams.Key);
9862 if (avatar != null) 11024 if (avatar != null)
9863 { 11025 {
@@ -9865,6 +11027,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
9865 new Vector3((float)pos.x, (float)pos.y, (float)pos.z), 11027 new Vector3((float)pos.x, (float)pos.y, (float)pos.z),
9866 new Vector3((float)lookAt.x, (float)lookAt.y, (float)lookAt.z)); 11028 new Vector3((float)lookAt.x, (float)lookAt.y, (float)lookAt.z));
9867 } 11029 }
11030
9868 ScriptSleep(1000); 11031 ScriptSleep(1000);
9869 } 11032 }
9870 11033
@@ -9988,12 +11151,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
9988 11151
9989 SortedDictionary<int, float> parameters = new SortedDictionary<int, float>(); 11152 SortedDictionary<int, float> parameters = new SortedDictionary<int, float>();
9990 object[] data = rules.Data; 11153 object[] data = rules.Data;
9991 for (int i = 0; i < data.Length; ++i) { 11154 for (int i = 0; i < data.Length; ++i)
11155 {
9992 int type = Convert.ToInt32(data[i++].ToString()); 11156 int type = Convert.ToInt32(data[i++].ToString());
9993 if (i >= data.Length) break; // odd number of entries => ignore the last 11157 if (i >= data.Length) break; // odd number of entries => ignore the last
9994 11158
9995 // some special cases: Vector parameters are split into 3 float parameters (with type+1, type+2, type+3) 11159 // some special cases: Vector parameters are split into 3 float parameters (with type+1, type+2, type+3)
9996 switch (type) { 11160 switch (type)
11161 {
9997 case ScriptBaseClass.CAMERA_FOCUS: 11162 case ScriptBaseClass.CAMERA_FOCUS:
9998 case ScriptBaseClass.CAMERA_FOCUS_OFFSET: 11163 case ScriptBaseClass.CAMERA_FOCUS_OFFSET:
9999 case ScriptBaseClass.CAMERA_POSITION: 11164 case ScriptBaseClass.CAMERA_POSITION:
@@ -10099,19 +11264,65 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
10099 public LSL_String llXorBase64StringsCorrect(string str1, string str2) 11264 public LSL_String llXorBase64StringsCorrect(string str1, string str2)
10100 { 11265 {
10101 m_host.AddScriptLPS(1); 11266 m_host.AddScriptLPS(1);
10102 string ret = String.Empty; 11267
10103 string src1 = llBase64ToString(str1); 11268 if (str1 == String.Empty)
10104 string src2 = llBase64ToString(str2); 11269 return String.Empty;
10105 int c = 0; 11270 if (str2 == String.Empty)
10106 for (int i = 0; i < src1.Length; i++) 11271 return str1;
11272
11273 int len = str2.Length;
11274 if ((len % 4) != 0) // LL is EVIL!!!!
10107 { 11275 {
10108 ret += (char) (src1[i] ^ src2[c]); 11276 while (str2.EndsWith("="))
11277 str2 = str2.Substring(0, str2.Length - 1);
11278
11279 len = str2.Length;
11280 int mod = len % 4;
11281
11282 if (mod == 1)
11283 str2 = str2.Substring(0, str2.Length - 1);
11284 else if (mod == 2)
11285 str2 += "==";
11286 else if (mod == 3)
11287 str2 += "=";
11288 }
10109 11289
10110 c++; 11290 byte[] data1;
10111 if (c >= src2.Length) 11291 byte[] data2;
10112 c = 0; 11292 try
11293 {
11294 data1 = Convert.FromBase64String(str1);
11295 data2 = Convert.FromBase64String(str2);
11296 }
11297 catch (Exception)
11298 {
11299 return new LSL_String(String.Empty);
10113 } 11300 }
10114 return llStringToBase64(ret); 11301
11302 byte[] d2 = new Byte[data1.Length];
11303 int pos = 0;
11304
11305 if (data1.Length <= data2.Length)
11306 {
11307 Array.Copy(data2, 0, d2, 0, data1.Length);
11308 }
11309 else
11310 {
11311 while (pos < data1.Length)
11312 {
11313 len = data1.Length - pos;
11314 if (len > data2.Length)
11315 len = data2.Length;
11316
11317 Array.Copy(data2, 0, d2, pos, len);
11318 pos += len;
11319 }
11320 }
11321
11322 for (pos = 0 ; pos < data1.Length ; pos++ )
11323 data1[pos] ^= d2[pos];
11324
11325 return Convert.ToBase64String(data1);
10115 } 11326 }
10116 11327
10117 public LSL_String llHTTPRequest(string url, LSL_List parameters, string body) 11328 public LSL_String llHTTPRequest(string url, LSL_List parameters, string body)
@@ -10168,12 +11379,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
10168 Regex r = new Regex(authregex); 11379 Regex r = new Regex(authregex);
10169 int[] gnums = r.GetGroupNumbers(); 11380 int[] gnums = r.GetGroupNumbers();
10170 Match m = r.Match(url); 11381 Match m = r.Match(url);
10171 if (m.Success) { 11382 if (m.Success)
10172 for (int i = 1; i < gnums.Length; i++) { 11383 {
11384 for (int i = 1; i < gnums.Length; i++)
11385 {
10173 //System.Text.RegularExpressions.Group g = m.Groups[gnums[i]]; 11386 //System.Text.RegularExpressions.Group g = m.Groups[gnums[i]];
10174 //CaptureCollection cc = g.Captures; 11387 //CaptureCollection cc = g.Captures;
10175 } 11388 }
10176 if (m.Groups.Count == 5) { 11389 if (m.Groups.Count == 5)
11390 {
10177 httpHeaders["Authorization"] = String.Format("Basic {0}", Convert.ToBase64String(System.Text.ASCIIEncoding.ASCII.GetBytes(m.Groups[2].ToString() + ":" + m.Groups[3].ToString()))); 11391 httpHeaders["Authorization"] = String.Format("Basic {0}", Convert.ToBase64String(System.Text.ASCIIEncoding.ASCII.GetBytes(m.Groups[2].ToString() + ":" + m.Groups[3].ToString())));
10178 url = m.Groups[1].ToString() + m.Groups[4].ToString(); 11392 url = m.Groups[1].ToString() + m.Groups[4].ToString();
10179 } 11393 }
@@ -10376,6 +11590,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
10376 11590
10377 LSL_List ret = new LSL_List(); 11591 LSL_List ret = new LSL_List();
10378 UUID key = new UUID(); 11592 UUID key = new UUID();
11593
11594
10379 if (UUID.TryParse(id, out key)) 11595 if (UUID.TryParse(id, out key))
10380 { 11596 {
10381 ScenePresence av = World.GetScenePresence(key); 11597 ScenePresence av = World.GetScenePresence(key);
@@ -10393,13 +11609,33 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
10393 ret.Add(new LSL_String("")); 11609 ret.Add(new LSL_String(""));
10394 break; 11610 break;
10395 case ScriptBaseClass.OBJECT_POS: 11611 case ScriptBaseClass.OBJECT_POS:
10396 ret.Add(new LSL_Vector((double)av.AbsolutePosition.X, (double)av.AbsolutePosition.Y, (double)av.AbsolutePosition.Z)); 11612 Vector3 avpos;
11613
11614 if (av.ParentID != 0 && av.ParentPart != null)
11615 {
11616 avpos = av.OffsetPosition;
11617
11618 Vector3 sitOffset = (Zrot(av.Rotation)) * (av.Appearance.AvatarHeight * 0.02638f *2.0f);
11619 avpos -= sitOffset;
11620
11621 avpos = av.ParentPart.GetWorldPosition() + avpos * av.ParentPart.GetWorldRotation();
11622 }
11623 else
11624 avpos = av.AbsolutePosition;
11625
11626 ret.Add(new LSL_Vector((double)avpos.X, (double)avpos.Y, (double)avpos.Z));
10397 break; 11627 break;
10398 case ScriptBaseClass.OBJECT_ROT: 11628 case ScriptBaseClass.OBJECT_ROT:
10399 ret.Add(new LSL_Rotation((double)av.Rotation.X, (double)av.Rotation.Y, (double)av.Rotation.Z, (double)av.Rotation.W)); 11629 Quaternion avrot = av.Rotation;
11630 if (av.ParentID != 0 && av.ParentPart != null)
11631 {
11632 avrot = av.ParentPart.GetWorldRotation() * avrot;
11633 }
11634 ret.Add(new LSL_Rotation((double)avrot.X, (double)avrot.Y, (double)avrot.Z, (double)avrot.W));
10400 break; 11635 break;
10401 case ScriptBaseClass.OBJECT_VELOCITY: 11636 case ScriptBaseClass.OBJECT_VELOCITY:
10402 ret.Add(new LSL_Vector(av.Velocity.X, av.Velocity.Y, av.Velocity.Z)); 11637 Vector3 avvel = av.Velocity;
11638 ret.Add(new LSL_Vector((double)avvel.X, (double)avvel.Y, (double)avvel.Z));
10403 break; 11639 break;
10404 case ScriptBaseClass.OBJECT_OWNER: 11640 case ScriptBaseClass.OBJECT_OWNER:
10405 ret.Add(new LSL_String(id)); 11641 ret.Add(new LSL_String(id));
@@ -10455,17 +11691,23 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
10455 case ScriptBaseClass.OBJECT_NAME: 11691 case ScriptBaseClass.OBJECT_NAME:
10456 ret.Add(new LSL_String(obj.Name)); 11692 ret.Add(new LSL_String(obj.Name));
10457 break; 11693 break;
10458 case ScriptBaseClass.OBJECT_DESC: 11694 case ScriptBaseClass.OBJECT_DESC:
10459 ret.Add(new LSL_String(obj.Description)); 11695 ret.Add(new LSL_String(obj.Description));
10460 break; 11696 break;
10461 case ScriptBaseClass.OBJECT_POS: 11697 case ScriptBaseClass.OBJECT_POS:
10462 ret.Add(new LSL_Vector(obj.AbsolutePosition.X, obj.AbsolutePosition.Y, obj.AbsolutePosition.Z)); 11698 Vector3 opos = obj.AbsolutePosition;
11699 ret.Add(new LSL_Vector(opos.X, opos.Y, opos.Z));
10463 break; 11700 break;
10464 case ScriptBaseClass.OBJECT_ROT: 11701 case ScriptBaseClass.OBJECT_ROT:
10465 ret.Add(new LSL_Rotation(obj.RotationOffset.X, obj.RotationOffset.Y, obj.RotationOffset.Z, obj.RotationOffset.W)); 11702// Quaternion orot = obj.RotationOffset;
11703// ret.Add(new LSL_Rotation(orot.X, orot.Y, orot.Z, orot.W));
11704
11705 LSL_Rotation objrot = GetPartRot(obj);
11706 ret.Add(objrot);
10466 break; 11707 break;
10467 case ScriptBaseClass.OBJECT_VELOCITY: 11708 case ScriptBaseClass.OBJECT_VELOCITY:
10468 ret.Add(new LSL_Vector(obj.Velocity.X, obj.Velocity.Y, obj.Velocity.Z)); 11709 Vector3 ovel = obj.Velocity;
11710 ret.Add(new LSL_Vector(ovel.X, ovel.Y, ovel.Z));
10469 break; 11711 break;
10470 case ScriptBaseClass.OBJECT_OWNER: 11712 case ScriptBaseClass.OBJECT_OWNER:
10471 ret.Add(new LSL_String(obj.OwnerID.ToString())); 11713 ret.Add(new LSL_String(obj.OwnerID.ToString()));
@@ -10499,9 +11741,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
10499 // The value returned in SL for normal prims is prim count 11741 // The value returned in SL for normal prims is prim count
10500 ret.Add(new LSL_Integer(obj.ParentGroup.PrimCount)); 11742 ret.Add(new LSL_Integer(obj.ParentGroup.PrimCount));
10501 break; 11743 break;
10502 // The following 3 costs I have intentionaly coded to return zero. They are part of 11744
10503 // "Land Impact" calculations. These calculations are probably not applicable 11745 // costs below may need to be diferent for root parts, need to check
10504 // to OpenSim and are not yet complete in SL
10505 case ScriptBaseClass.OBJECT_SERVER_COST: 11746 case ScriptBaseClass.OBJECT_SERVER_COST:
10506 // The linden calculation is here 11747 // The linden calculation is here
10507 // http://wiki.secondlife.com/wiki/Mesh/Mesh_Server_Weight 11748 // http://wiki.secondlife.com/wiki/Mesh/Mesh_Server_Weight
@@ -10509,16 +11750,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
10509 ret.Add(new LSL_Float(0)); 11750 ret.Add(new LSL_Float(0));
10510 break; 11751 break;
10511 case ScriptBaseClass.OBJECT_STREAMING_COST: 11752 case ScriptBaseClass.OBJECT_STREAMING_COST:
10512 // The linden calculation is here 11753 // The value returned in SL for normal prims is prim count * 0.06
10513 // http://wiki.secondlife.com/wiki/Mesh/Mesh_Streaming_Cost 11754 ret.Add(new LSL_Float(obj.StreamingCost));
10514 // The value returned in SL for normal prims looks like the prim count * 0.06
10515 ret.Add(new LSL_Float(0));
10516 break; 11755 break;
10517 case ScriptBaseClass.OBJECT_PHYSICS_COST: 11756 case ScriptBaseClass.OBJECT_PHYSICS_COST:
10518 // The linden calculation is here 11757 // The value returned in SL for normal prims is prim count
10519 // http://wiki.secondlife.com/wiki/Mesh/Mesh_physics 11758 ret.Add(new LSL_Float(obj.PhysicsCost));
10520 // The value returned in SL for normal prims looks like the prim count
10521 ret.Add(new LSL_Float(0));
10522 break; 11759 break;
10523 default: 11760 default:
10524 // Invalid or unhandled constant. 11761 // Invalid or unhandled constant.
@@ -10536,15 +11773,19 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
10536 11773
10537 internal UUID ScriptByName(string name) 11774 internal UUID ScriptByName(string name)
10538 { 11775 {
10539 lock (m_host.TaskInventory) 11776 m_host.TaskInventory.LockItemsForRead(true);
11777
11778 foreach (TaskInventoryItem item in m_host.TaskInventory.Values)
10540 { 11779 {
10541 foreach (TaskInventoryItem item in m_host.TaskInventory.Values) 11780 if (item.Type == 10 && item.Name == name)
10542 { 11781 {
10543 if (item.Type == 10 && item.Name == name) 11782 m_host.TaskInventory.LockItemsForRead(false);
10544 return item.ItemID; 11783 return item.ItemID;
10545 } 11784 }
10546 } 11785 }
10547 11786
11787 m_host.TaskInventory.LockItemsForRead(false);
11788
10548 return UUID.Zero; 11789 return UUID.Zero;
10549 } 11790 }
10550 11791
@@ -10585,6 +11826,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
10585 { 11826 {
10586 m_host.AddScriptLPS(1); 11827 m_host.AddScriptLPS(1);
10587 11828
11829 //Clone is thread safe
10588 TaskInventoryDictionary itemsDictionary = (TaskInventoryDictionary)m_host.TaskInventory.Clone(); 11830 TaskInventoryDictionary itemsDictionary = (TaskInventoryDictionary)m_host.TaskInventory.Clone();
10589 11831
10590 UUID assetID = UUID.Zero; 11832 UUID assetID = UUID.Zero;
@@ -10647,6 +11889,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
10647 { 11889 {
10648 m_host.AddScriptLPS(1); 11890 m_host.AddScriptLPS(1);
10649 11891
11892 //Clone is thread safe
10650 TaskInventoryDictionary itemsDictionary = (TaskInventoryDictionary)m_host.TaskInventory.Clone(); 11893 TaskInventoryDictionary itemsDictionary = (TaskInventoryDictionary)m_host.TaskInventory.Clone();
10651 11894
10652 UUID assetID = UUID.Zero; 11895 UUID assetID = UUID.Zero;
@@ -10727,15 +11970,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
10727 return GetLinkPrimitiveParams(obj, rules); 11970 return GetLinkPrimitiveParams(obj, rules);
10728 } 11971 }
10729 11972
10730 public void print(string str) 11973 public LSL_Integer llGetLinkNumberOfSides(LSL_Integer link)
10731 { 11974 {
10732 // yes, this is a real LSL function. See: http://wiki.secondlife.com/wiki/Print 11975 List<SceneObjectPart> parts = GetLinkParts(link);
10733 IOSSL_Api ossl = (IOSSL_Api)m_ScriptEngine.GetApi(m_item.ItemID, "OSSL"); 11976 if (parts.Count < 1)
10734 if (ossl != null) 11977 return 0;
10735 { 11978
10736 ossl.CheckThreatLevel(ThreatLevel.High, "print"); 11979 return GetNumberOfSides(parts[0]);
10737 m_log.Info("LSL print():" + str);
10738 }
10739 } 11980 }
10740 11981
10741 private string Name2Username(string name) 11982 private string Name2Username(string name)
@@ -10781,6 +12022,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
10781 return rq.ToString(); 12022 return rq.ToString();
10782 } 12023 }
10783 12024
12025 private void SayShoutTimerElapsed(Object sender, ElapsedEventArgs args)
12026 {
12027 m_SayShoutCount = 0;
12028 }
12029
10784 private struct Tri 12030 private struct Tri
10785 { 12031 {
10786 public Vector3 p1; 12032 public Vector3 p1;
@@ -11055,6 +12301,27 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
11055 12301
11056 return contacts[0]; 12302 return contacts[0];
11057 } 12303 }
12304/*
12305 // not done:
12306 private ContactResult[] testRay2NonPhysicalPhantom(Vector3 rayStart, Vector3 raydir, float raylenght)
12307 {
12308 ContactResult[] contacts = null;
12309 World.ForEachSOG(delegate(SceneObjectGroup group)
12310 {
12311 if (m_host.ParentGroup == group)
12312 return;
12313
12314 if (group.IsAttachment)
12315 return;
12316
12317 if(group.RootPart.PhysActor != null)
12318 return;
12319
12320 contacts = group.RayCastGroupPartsOBBNonPhysicalPhantom(rayStart, raydir, raylenght);
12321 });
12322 return contacts;
12323 }
12324*/
11058 12325
11059 public LSL_List llCastRay(LSL_Vector start, LSL_Vector end, LSL_List options) 12326 public LSL_List llCastRay(LSL_Vector start, LSL_Vector end, LSL_List options)
11060 { 12327 {
@@ -11096,32 +12363,96 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
11096 bool checkPhysical = !((rejectTypes & ScriptBaseClass.RC_REJECT_PHYSICAL) == ScriptBaseClass.RC_REJECT_PHYSICAL); 12363 bool checkPhysical = !((rejectTypes & ScriptBaseClass.RC_REJECT_PHYSICAL) == ScriptBaseClass.RC_REJECT_PHYSICAL);
11097 12364
11098 12365
11099 if (checkTerrain) 12366 if (World.SuportsRayCastFiltered())
11100 { 12367 {
11101 ContactResult? groundContact = GroundIntersection(rayStart, rayEnd); 12368 if (dist == 0)
11102 if (groundContact != null) 12369 return list;
11103 results.Add((ContactResult)groundContact);
11104 }
11105 12370
11106 if (checkAgents) 12371 RayFilterFlags rayfilter = RayFilterFlags.ClosestAndBackCull;
11107 { 12372 if (checkTerrain)
11108 ContactResult[] agentHits = AvatarIntersection(rayStart, rayEnd); 12373 rayfilter |= RayFilterFlags.land;
11109 foreach (ContactResult r in agentHits) 12374// if (checkAgents)
11110 results.Add(r); 12375// rayfilter |= RayFilterFlags.agent;
11111 } 12376 if (checkPhysical)
12377 rayfilter |= RayFilterFlags.physical;
12378 if (checkNonPhysical)
12379 rayfilter |= RayFilterFlags.nonphysical;
12380 if (detectPhantom)
12381 rayfilter |= RayFilterFlags.LSLPhanton;
12382
12383 Vector3 direction = dir * ( 1/dist);
12384
12385 if(rayfilter == 0)
12386 {
12387 list.Add(new LSL_Integer(0));
12388 return list;
12389 }
12390
12391 // get some more contacts to sort ???
12392 int physcount = 4 * count;
12393 if (physcount > 20)
12394 physcount = 20;
12395
12396 object physresults;
12397 physresults = World.RayCastFiltered(rayStart, direction, dist, physcount, rayfilter);
12398
12399 if (physresults == null)
12400 {
12401 list.Add(new LSL_Integer(-3)); // timeout error
12402 return list;
12403 }
12404
12405 results = (List<ContactResult>)physresults;
11112 12406
11113 if (checkPhysical || checkNonPhysical || detectPhantom) 12407 // for now physics doesn't detect sitted avatars so do it outside physics
12408 if (checkAgents)
12409 {
12410 ContactResult[] agentHits = AvatarIntersection(rayStart, rayEnd);
12411 foreach (ContactResult r in agentHits)
12412 results.Add(r);
12413 }
12414
12415 // TODO: Replace this with a better solution. ObjectIntersection can only
12416 // detect nonphysical phantoms. They are detected by virtue of being
12417 // nonphysical (e.g. no PhysActor) so will not conflict with detecting
12418 // physicsl phantoms as done by the physics scene
12419 // We don't want anything else but phantoms here.
12420 if (detectPhantom)
12421 {
12422 ContactResult[] objectHits = ObjectIntersection(rayStart, rayEnd, false, false, true);
12423 foreach (ContactResult r in objectHits)
12424 results.Add(r);
12425 }
12426 }
12427 else
11114 { 12428 {
11115 ContactResult[] objectHits = ObjectIntersection(rayStart, rayEnd, checkPhysical, checkNonPhysical, detectPhantom); 12429 if (checkTerrain)
11116 foreach (ContactResult r in objectHits) 12430 {
11117 results.Add(r); 12431 ContactResult? groundContact = GroundIntersection(rayStart, rayEnd);
12432 if (groundContact != null)
12433 results.Add((ContactResult)groundContact);
12434 }
12435
12436 if (checkAgents)
12437 {
12438 ContactResult[] agentHits = AvatarIntersection(rayStart, rayEnd);
12439 foreach (ContactResult r in agentHits)
12440 results.Add(r);
12441 }
12442
12443 if (checkPhysical || checkNonPhysical || detectPhantom)
12444 {
12445 ContactResult[] objectHits = ObjectIntersection(rayStart, rayEnd, checkPhysical, checkNonPhysical, detectPhantom);
12446 foreach (ContactResult r in objectHits)
12447 results.Add(r);
12448 }
11118 } 12449 }
11119 12450
11120 results.Sort(delegate(ContactResult a, ContactResult b) 12451 results.Sort(delegate(ContactResult a, ContactResult b)
11121 { 12452 {
11122 return a.Depth.CompareTo(b.Depth); 12453 return a.Depth.CompareTo(b.Depth);
11123 }); 12454 });
11124 12455
11125 int values = 0; 12456 int values = 0;
11126 SceneObjectGroup thisgrp = m_host.ParentGroup; 12457 SceneObjectGroup thisgrp = m_host.ParentGroup;
11127 12458
@@ -11214,7 +12545,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
11214 case ScriptBaseClass.ESTATE_ACCESS_ALLOWED_AGENT_ADD: 12545 case ScriptBaseClass.ESTATE_ACCESS_ALLOWED_AGENT_ADD:
11215 if (!isAccount) return 0; 12546 if (!isAccount) return 0;
11216 if (estate.HasAccess(id)) return 1; 12547 if (estate.HasAccess(id)) return 1;
11217 if (estate.IsBanned(id)) 12548 if (estate.IsBanned(id, World.GetUserFlags(id)))
11218 estate.RemoveBan(id); 12549 estate.RemoveBan(id);
11219 estate.AddEstateUser(id); 12550 estate.AddEstateUser(id);
11220 break; 12551 break;
@@ -11233,14 +12564,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
11233 break; 12564 break;
11234 case ScriptBaseClass.ESTATE_ACCESS_BANNED_AGENT_ADD: 12565 case ScriptBaseClass.ESTATE_ACCESS_BANNED_AGENT_ADD:
11235 if (!isAccount) return 0; 12566 if (!isAccount) return 0;
11236 if (estate.IsBanned(id)) return 1; 12567 if (estate.IsBanned(id, World.GetUserFlags(id))) return 1;
11237 EstateBan ban = new EstateBan(); 12568 EstateBan ban = new EstateBan();
11238 ban.EstateID = estate.EstateID; 12569 ban.EstateID = estate.EstateID;
11239 ban.BannedUserID = id; 12570 ban.BannedUserID = id;
11240 estate.AddBan(ban); 12571 estate.AddBan(ban);
11241 break; 12572 break;
11242 case ScriptBaseClass.ESTATE_ACCESS_BANNED_AGENT_REMOVE: 12573 case ScriptBaseClass.ESTATE_ACCESS_BANNED_AGENT_REMOVE:
11243 if (!isAccount || !estate.IsBanned(id)) return 0; 12574 if (!isAccount || !estate.IsBanned(id, World.GetUserFlags(id))) return 0;
11244 estate.RemoveBan(id); 12575 estate.RemoveBan(id);
11245 break; 12576 break;
11246 default: return 0; 12577 default: return 0;
@@ -11269,7 +12600,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
11269 return 16384; 12600 return 16384;
11270 } 12601 }
11271 12602
11272 public LSL_Integer llGetUsedMemory() 12603 public virtual LSL_Integer llGetUsedMemory()
11273 { 12604 {
11274 m_host.AddScriptLPS(1); 12605 m_host.AddScriptLPS(1);
11275 // The value returned for LSO scripts in SL 12606 // The value returned for LSO scripts in SL
@@ -11297,7 +12628,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
11297 public void llSetSoundQueueing(int queue) 12628 public void llSetSoundQueueing(int queue)
11298 { 12629 {
11299 m_host.AddScriptLPS(1); 12630 m_host.AddScriptLPS(1);
11300 NotImplemented("llSetSoundQueueing");
11301 } 12631 }
11302 12632
11303 public void llCollisionSprite(string impact_sprite) 12633 public void llCollisionSprite(string impact_sprite)
@@ -11309,10 +12639,270 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
11309 public void llGodLikeRezObject(string inventory, LSL_Vector pos) 12639 public void llGodLikeRezObject(string inventory, LSL_Vector pos)
11310 { 12640 {
11311 m_host.AddScriptLPS(1); 12641 m_host.AddScriptLPS(1);
11312 NotImplemented("llGodLikeRezObject"); 12642
12643 if (!World.Permissions.IsGod(m_host.OwnerID))
12644 NotImplemented("llGodLikeRezObject");
12645
12646 AssetBase rezAsset = World.AssetService.Get(inventory);
12647 if (rezAsset == null)
12648 {
12649 llSay(0, "Asset not found");
12650 return;
12651 }
12652
12653 SceneObjectGroup group = null;
12654
12655 try
12656 {
12657 string xmlData = Utils.BytesToString(rezAsset.Data);
12658 group = SceneObjectSerializer.FromOriginalXmlFormat(xmlData);
12659 }
12660 catch
12661 {
12662 llSay(0, "Asset not found");
12663 return;
12664 }
12665
12666 if (group == null)
12667 {
12668 llSay(0, "Asset not found");
12669 return;
12670 }
12671
12672 group.RootPart.AttachPoint = group.RootPart.Shape.State;
12673 group.RootPart.AttachOffset = group.AbsolutePosition;
12674
12675 group.ResetIDs();
12676
12677 Vector3 llpos = new Vector3((float)pos.x, (float)pos.y, (float)pos.z);
12678 World.AddNewSceneObject(group, true, llpos, Quaternion.Identity, Vector3.Zero);
12679 group.CreateScriptInstances(0, true, World.DefaultScriptEngine, 3);
12680 group.ScheduleGroupForFullUpdate();
12681
12682 // objects rezzed with this method are die_at_edge by default.
12683 group.RootPart.SetDieAtEdge(true);
12684
12685 group.ResumeScripts();
12686
12687 m_ScriptEngine.PostObjectEvent(m_host.LocalId, new EventParams(
12688 "object_rez", new Object[] {
12689 new LSL_String(
12690 group.RootPart.UUID.ToString()) },
12691 new DetectParams[0]));
12692 }
12693
12694 public LSL_String llTransferLindenDollars(string destination, int amount)
12695 {
12696 UUID txn = UUID.Random();
12697
12698 Util.FireAndForget(delegate(object x)
12699 {
12700 int replycode = 0;
12701 string replydata = destination + "," + amount.ToString();
12702
12703 try
12704 {
12705 TaskInventoryItem item = m_item;
12706 if (item == null)
12707 {
12708 replydata = "SERVICE_ERROR";
12709 return;
12710 }
12711
12712 m_host.AddScriptLPS(1);
12713
12714 if (item.PermsGranter == UUID.Zero)
12715 {
12716 replydata = "MISSING_PERMISSION_DEBIT";
12717 return;
12718 }
12719
12720 if ((item.PermsMask & ScriptBaseClass.PERMISSION_DEBIT) == 0)
12721 {
12722 replydata = "MISSING_PERMISSION_DEBIT";
12723 return;
12724 }
12725
12726 UUID toID = new UUID();
12727
12728 if (!UUID.TryParse(destination, out toID))
12729 {
12730 replydata = "INVALID_AGENT";
12731 return;
12732 }
12733
12734 IMoneyModule money = World.RequestModuleInterface<IMoneyModule>();
12735
12736 if (money == null)
12737 {
12738 replydata = "TRANSFERS_DISABLED";
12739 return;
12740 }
12741
12742 bool result = money.ObjectGiveMoney(
12743 m_host.ParentGroup.RootPart.UUID, m_host.ParentGroup.RootPart.OwnerID, toID, amount);
12744
12745 if (result)
12746 {
12747 replycode = 1;
12748 return;
12749 }
12750
12751 replydata = "LINDENDOLLAR_INSUFFICIENTFUNDS";
12752 }
12753 finally
12754 {
12755 m_ScriptEngine.PostScriptEvent(m_item.ItemID, new EventParams(
12756 "transaction_result", new Object[] {
12757 new LSL_String(txn.ToString()),
12758 new LSL_Integer(replycode),
12759 new LSL_String(replydata) },
12760 new DetectParams[0]));
12761 }
12762 });
12763
12764 return txn.ToString();
11313 } 12765 }
11314 12766
11315 #endregion 12767 #endregion
12768
12769 public void llSetKeyframedMotion(LSL_List frames, LSL_List options)
12770 {
12771 SceneObjectGroup group = m_host.ParentGroup;
12772
12773 if (group.RootPart.PhysActor != null && group.RootPart.PhysActor.IsPhysical)
12774 return;
12775 if (group.IsAttachment)
12776 return;
12777
12778 if (frames.Data.Length > 0) // We are getting a new motion
12779 {
12780 if (group.RootPart.KeyframeMotion != null)
12781 group.RootPart.KeyframeMotion.Stop();
12782 group.RootPart.KeyframeMotion = null;
12783
12784 int idx = 0;
12785
12786 KeyframeMotion.PlayMode mode = KeyframeMotion.PlayMode.Forward;
12787 KeyframeMotion.DataFormat data = KeyframeMotion.DataFormat.Translation | KeyframeMotion.DataFormat.Rotation;
12788
12789 while (idx < options.Data.Length)
12790 {
12791 int option = (int)options.GetLSLIntegerItem(idx++);
12792 int remain = options.Data.Length - idx;
12793
12794 switch (option)
12795 {
12796 case ScriptBaseClass.KFM_MODE:
12797 if (remain < 1)
12798 break;
12799 int modeval = (int)options.GetLSLIntegerItem(idx++);
12800 switch(modeval)
12801 {
12802 case ScriptBaseClass.KFM_FORWARD:
12803 mode = KeyframeMotion.PlayMode.Forward;
12804 break;
12805 case ScriptBaseClass.KFM_REVERSE:
12806 mode = KeyframeMotion.PlayMode.Reverse;
12807 break;
12808 case ScriptBaseClass.KFM_LOOP:
12809 mode = KeyframeMotion.PlayMode.Loop;
12810 break;
12811 case ScriptBaseClass.KFM_PING_PONG:
12812 mode = KeyframeMotion.PlayMode.PingPong;
12813 break;
12814 }
12815 break;
12816 case ScriptBaseClass.KFM_DATA:
12817 if (remain < 1)
12818 break;
12819 int dataval = (int)options.GetLSLIntegerItem(idx++);
12820 data = (KeyframeMotion.DataFormat)dataval;
12821 break;
12822 }
12823 }
12824
12825 group.RootPart.KeyframeMotion = new KeyframeMotion(group, mode, data);
12826
12827 idx = 0;
12828
12829 int elemLength = 2;
12830 if (data == (KeyframeMotion.DataFormat.Translation | KeyframeMotion.DataFormat.Rotation))
12831 elemLength = 3;
12832
12833 List<KeyframeMotion.Keyframe> keyframes = new List<KeyframeMotion.Keyframe>();
12834 while (idx < frames.Data.Length)
12835 {
12836 int remain = frames.Data.Length - idx;
12837
12838 if (remain < elemLength)
12839 break;
12840
12841 KeyframeMotion.Keyframe frame = new KeyframeMotion.Keyframe();
12842 frame.Position = null;
12843 frame.Rotation = null;
12844
12845 if ((data & KeyframeMotion.DataFormat.Translation) != 0)
12846 {
12847 LSL_Types.Vector3 tempv = frames.GetVector3Item(idx++);
12848 frame.Position = new Vector3((float)tempv.x, (float)tempv.y, (float)tempv.z);
12849 }
12850 if ((data & KeyframeMotion.DataFormat.Rotation) != 0)
12851 {
12852 LSL_Types.Quaternion tempq = frames.GetQuaternionItem(idx++);
12853 frame.Rotation = new Quaternion((float)tempq.x, (float)tempq.y, (float)tempq.z, (float)tempq.s);
12854 }
12855
12856 float tempf = (float)frames.GetLSLFloatItem(idx++);
12857 frame.TimeMS = (int)(tempf * 1000.0f);
12858
12859 keyframes.Add(frame);
12860 }
12861
12862 group.RootPart.KeyframeMotion.SetKeyframes(keyframes.ToArray());
12863 group.RootPart.KeyframeMotion.Start();
12864 }
12865 else
12866 {
12867 if (group.RootPart.KeyframeMotion == null)
12868 return;
12869
12870 if (options.Data.Length == 0)
12871 {
12872 group.RootPart.KeyframeMotion.Stop();
12873 return;
12874 }
12875
12876 int code = (int)options.GetLSLIntegerItem(0);
12877
12878 int idx = 0;
12879
12880 while (idx < options.Data.Length)
12881 {
12882 int option = (int)options.GetLSLIntegerItem(idx++);
12883 int remain = options.Data.Length - idx;
12884
12885 switch (option)
12886 {
12887 case ScriptBaseClass.KFM_COMMAND:
12888 int cmd = (int)options.GetLSLIntegerItem(idx++);
12889 switch (cmd)
12890 {
12891 case ScriptBaseClass.KFM_CMD_PLAY:
12892 group.RootPart.KeyframeMotion.Start();
12893 break;
12894 case ScriptBaseClass.KFM_CMD_STOP:
12895 group.RootPart.KeyframeMotion.Stop();
12896 break;
12897 case ScriptBaseClass.KFM_CMD_PAUSE:
12898 group.RootPart.KeyframeMotion.Pause();
12899 break;
12900 }
12901 break;
12902 }
12903 }
12904 }
12905 }
11316 } 12906 }
11317 12907
11318 public class NotecardCache 12908 public class NotecardCache
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
index 7fa25f5..795376b 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs
@@ -138,6 +138,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
138 internal ThreatLevel m_MaxThreatLevel = ThreatLevel.VeryLow; 138 internal ThreatLevel m_MaxThreatLevel = ThreatLevel.VeryLow;
139 internal float m_ScriptDelayFactor = 1.0f; 139 internal float m_ScriptDelayFactor = 1.0f;
140 internal float m_ScriptDistanceFactor = 1.0f; 140 internal float m_ScriptDistanceFactor = 1.0f;
141 internal bool m_debuggerSafe = false;
141 internal Dictionary<string, FunctionPerms > m_FunctionPerms = new Dictionary<string, FunctionPerms >(); 142 internal Dictionary<string, FunctionPerms > m_FunctionPerms = new Dictionary<string, FunctionPerms >();
142 143
143 public void Initialize(IScriptEngine ScriptEngine, SceneObjectPart host, TaskInventoryItem item) 144 public void Initialize(IScriptEngine ScriptEngine, SceneObjectPart host, TaskInventoryItem item)
@@ -145,6 +146,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
145 m_ScriptEngine = ScriptEngine; 146 m_ScriptEngine = ScriptEngine;
146 m_host = host; 147 m_host = host;
147 m_item = item; 148 m_item = item;
149 m_debuggerSafe = m_ScriptEngine.Config.GetBoolean("DebuggerSafe", false);
148 150
149 if (m_ScriptEngine.Config.GetBoolean("AllowOSFunctions", false)) 151 if (m_ScriptEngine.Config.GetBoolean("AllowOSFunctions", false))
150 m_OSFunctionsEnabled = true; 152 m_OSFunctionsEnabled = true;
@@ -206,7 +208,14 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
206 208
207 internal void OSSLError(string msg) 209 internal void OSSLError(string msg)
208 { 210 {
209 throw new Exception("OSSL Runtime Error: " + msg); 211 if (m_debuggerSafe)
212 {
213 OSSLShoutError(msg);
214 }
215 else
216 {
217 throw new Exception("OSSL Runtime Error: " + msg);
218 }
210 } 219 }
211 220
212 /// <summary> 221 /// <summary>
@@ -920,18 +929,17 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
920 if (target != null) 929 if (target != null)
921 { 930 {
922 UUID animID=UUID.Zero; 931 UUID animID=UUID.Zero;
923 lock (m_host.TaskInventory) 932 m_host.TaskInventory.LockItemsForRead(true);
933 foreach (KeyValuePair<UUID, TaskInventoryItem> inv in m_host.TaskInventory)
924 { 934 {
925 foreach (KeyValuePair<UUID, TaskInventoryItem> inv in m_host.TaskInventory) 935 if (inv.Value.Name == animation)
926 { 936 {
927 if (inv.Value.Name == animation) 937 if (inv.Value.Type == (int)AssetType.Animation)
928 { 938 animID = inv.Value.AssetID;
929 if (inv.Value.Type == (int)AssetType.Animation) 939 continue;
930 animID = inv.Value.AssetID;
931 continue;
932 }
933 } 940 }
934 } 941 }
942 m_host.TaskInventory.LockItemsForRead(false);
935 if (animID == UUID.Zero) 943 if (animID == UUID.Zero)
936 target.Animator.AddAnimation(animation, m_host.UUID); 944 target.Animator.AddAnimation(animation, m_host.UUID);
937 else 945 else
@@ -972,6 +980,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
972 else 980 else
973 animID = UUID.Zero; 981 animID = UUID.Zero;
974 } 982 }
983 m_host.TaskInventory.LockItemsForRead(false);
975 984
976 if (animID == UUID.Zero) 985 if (animID == UUID.Zero)
977 target.Animator.RemoveAnimation(animation); 986 target.Animator.RemoveAnimation(animation);
@@ -1792,6 +1801,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
1792 1801
1793 if (!UUID.TryParse(notecardNameOrUuid, out assetID)) 1802 if (!UUID.TryParse(notecardNameOrUuid, out assetID))
1794 { 1803 {
1804 m_host.TaskInventory.LockItemsForRead(true);
1795 foreach (TaskInventoryItem item in m_host.TaskInventory.Values) 1805 foreach (TaskInventoryItem item in m_host.TaskInventory.Values)
1796 { 1806 {
1797 if (item.Type == 7 && item.Name == notecardNameOrUuid) 1807 if (item.Type == 7 && item.Name == notecardNameOrUuid)
@@ -1799,6 +1809,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
1799 assetID = item.AssetID; 1809 assetID = item.AssetID;
1800 } 1810 }
1801 } 1811 }
1812 m_host.TaskInventory.LockItemsForRead(false);
1802 } 1813 }
1803 1814
1804 if (assetID == UUID.Zero) 1815 if (assetID == UUID.Zero)
@@ -2271,7 +2282,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2271 CheckThreatLevel(ThreatLevel.High, "osNpcCreate"); 2282 CheckThreatLevel(ThreatLevel.High, "osNpcCreate");
2272 m_host.AddScriptLPS(1); 2283 m_host.AddScriptLPS(1);
2273 2284
2274 return NpcCreate(firstname, lastname, position, notecard, false, false); 2285 return NpcCreate(firstname, lastname, position, notecard, true, false);
2275 } 2286 }
2276 2287
2277 public LSL_Key osNpcCreate(string firstname, string lastname, LSL_Vector position, string notecard, int options) 2288 public LSL_Key osNpcCreate(string firstname, string lastname, LSL_Vector position, string notecard, int options)
@@ -2282,24 +2293,39 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2282 return NpcCreate( 2293 return NpcCreate(
2283 firstname, lastname, position, notecard, 2294 firstname, lastname, position, notecard,
2284 (options & ScriptBaseClass.OS_NPC_NOT_OWNED) == 0, 2295 (options & ScriptBaseClass.OS_NPC_NOT_OWNED) == 0,
2285 (options & ScriptBaseClass.OS_NPC_SENSE_AS_AGENT) != 0); 2296 false);
2297// (options & ScriptBaseClass.OS_NPC_SENSE_AS_AGENT) != 0);
2286 } 2298 }
2287 2299
2288 private LSL_Key NpcCreate( 2300 private LSL_Key NpcCreate(
2289 string firstname, string lastname, LSL_Vector position, string notecard, bool owned, bool senseAsAgent) 2301 string firstname, string lastname, LSL_Vector position, string notecard, bool owned, bool senseAsAgent)
2290 { 2302 {
2303 if (!owned)
2304 OSSLError("Unowned NPCs are unsupported");
2305
2306 string groupTitle = String.Empty;
2307
2308 if (!World.Permissions.CanRezObject(1, m_host.OwnerID, new Vector3((float)position.x, (float)position.y, (float)position.z)))
2309 return new LSL_Key(UUID.Zero.ToString());
2310
2311 if (firstname != String.Empty || lastname != String.Empty)
2312 {
2313 if (firstname != "Shown outfit:")
2314 groupTitle = "- NPC -";
2315 }
2316
2291 INPCModule module = World.RequestModuleInterface<INPCModule>(); 2317 INPCModule module = World.RequestModuleInterface<INPCModule>();
2292 if (module != null) 2318 if (module != null)
2293 { 2319 {
2294 AvatarAppearance appearance = null; 2320 AvatarAppearance appearance = null;
2295 2321
2296 UUID id; 2322// UUID id;
2297 if (UUID.TryParse(notecard, out id)) 2323// if (UUID.TryParse(notecard, out id))
2298 { 2324// {
2299 ScenePresence clonePresence = World.GetScenePresence(id); 2325// ScenePresence clonePresence = World.GetScenePresence(id);
2300 if (clonePresence != null) 2326// if (clonePresence != null)
2301 appearance = clonePresence.Appearance; 2327// appearance = clonePresence.Appearance;
2302 } 2328// }
2303 2329
2304 if (appearance == null) 2330 if (appearance == null)
2305 { 2331 {
@@ -2327,6 +2353,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2327 World, 2353 World,
2328 appearance); 2354 appearance);
2329 2355
2356 ScenePresence sp;
2357 if (World.TryGetScenePresence(x, out sp))
2358 {
2359 sp.Grouptitle = groupTitle;
2360 sp.SendAvatarDataToAllAgents();
2361 }
2330 return new LSL_Key(x.ToString()); 2362 return new LSL_Key(x.ToString());
2331 } 2363 }
2332 2364
@@ -2618,16 +2650,32 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2618 CheckThreatLevel(ThreatLevel.High, "osNpcRemove"); 2650 CheckThreatLevel(ThreatLevel.High, "osNpcRemove");
2619 m_host.AddScriptLPS(1); 2651 m_host.AddScriptLPS(1);
2620 2652
2621 INPCModule module = World.RequestModuleInterface<INPCModule>(); 2653 ManualResetEvent ev = new ManualResetEvent(false);
2622 if (module != null)
2623 {
2624 UUID npcId = new UUID(npc.m_string);
2625 2654
2626 if (!module.CheckPermissions(npcId, m_host.OwnerID)) 2655 Util.FireAndForget(delegate(object x) {
2627 return; 2656 try
2657 {
2658 INPCModule module = World.RequestModuleInterface<INPCModule>();
2659 if (module != null)
2660 {
2661 UUID npcId = new UUID(npc.m_string);
2628 2662
2629 module.DeleteNPC(npcId, World); 2663 ILandObject l = World.LandChannel.GetLandObject(m_host.GroupPosition.X, m_host.GroupPosition.Y);
2630 } 2664 if (l == null || m_host.OwnerID != l.LandData.OwnerID)
2665 {
2666 if (!module.CheckPermissions(npcId, m_host.OwnerID))
2667 return;
2668 }
2669
2670 module.DeleteNPC(npcId, World);
2671 }
2672 }
2673 finally
2674 {
2675 ev.Set();
2676 }
2677 });
2678 ev.WaitOne();
2631 } 2679 }
2632 2680
2633 public void osNpcPlayAnimation(LSL_Key npc, string animation) 2681 public void osNpcPlayAnimation(LSL_Key npc, string animation)
@@ -3161,4 +3209,4 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
3161 ((LSL_Api)m_LSL_Api).DetachFromAvatar(); 3209 ((LSL_Api)m_LSL_Api).DetachFromAvatar();
3162 } 3210 }
3163 } 3211 }
3164} \ No newline at end of file 3212}
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs
index 3844753..19f3ce1 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs
@@ -319,7 +319,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Plugins
319 float dy; 319 float dy;
320 float dz; 320 float dz;
321 321
322 Quaternion q = SensePoint.GetWorldRotation(); 322// Quaternion q = SensePoint.RotationOffset;
323 Quaternion q = SensePoint.GetWorldRotation(); // non-attached prim Sensor *always* uses World rotation!
323 if (SensePoint.ParentGroup.IsAttachment) 324 if (SensePoint.ParentGroup.IsAttachment)
324 { 325 {
325 // In attachments, rotate the sensor cone with the 326 // In attachments, rotate the sensor cone with the
@@ -333,7 +334,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Plugins
333 // Position of a sensor in a child prim attached to an avatar 334 // Position of a sensor in a child prim attached to an avatar
334 // will be still wrong. 335 // will be still wrong.
335 ScenePresence avatar = m_CmdManager.m_ScriptEngine.World.GetScenePresence(SensePoint.ParentGroup.AttachedAvatar); 336 ScenePresence avatar = m_CmdManager.m_ScriptEngine.World.GetScenePresence(SensePoint.ParentGroup.AttachedAvatar);
336 q = avatar.Rotation * q; 337 fromRegionPos = avatar.AbsolutePosition;
338 q = avatar.Rotation;
337 } 339 }
338 340
339 LSL_Types.Quaternion r = new LSL_Types.Quaternion(q.X, q.Y, q.Z, q.W); 341 LSL_Types.Quaternion r = new LSL_Types.Quaternion(q.X, q.Y, q.Z, q.W);
@@ -463,7 +465,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Plugins
463 // Position of a sensor in a child prim attached to an avatar 465 // Position of a sensor in a child prim attached to an avatar
464 // will be still wrong. 466 // will be still wrong.
465 ScenePresence avatar = m_CmdManager.m_ScriptEngine.World.GetScenePresence(SensePoint.ParentGroup.AttachedAvatar); 467 ScenePresence avatar = m_CmdManager.m_ScriptEngine.World.GetScenePresence(SensePoint.ParentGroup.AttachedAvatar);
466 q = avatar.Rotation * q; 468 if (avatar == null)
469 return sensedEntities;
470 fromRegionPos = avatar.AbsolutePosition;
471 q = avatar.Rotation;
467 } 472 }
468 473
469 LSL_Types.Quaternion r = new LSL_Types.Quaternion(q.X, q.Y, q.Z, q.W); 474 LSL_Types.Quaternion r = new LSL_Types.Quaternion(q.X, q.Y, q.Z, q.W);
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/Timer.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/Timer.cs
index bc63030..9ee6946 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/Timer.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/Timer.cs
@@ -118,25 +118,27 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Plugins
118 if (Timers.Count == 0) 118 if (Timers.Count == 0)
119 return; 119 return;
120 120
121 Dictionary<string, TimerClass>.ValueCollection tvals;
121 lock (TimerListLock) 122 lock (TimerListLock)
122 { 123 {
123 // Go through all timers 124 // Go through all timers
124 Dictionary<string, TimerClass>.ValueCollection tvals = Timers.Values; 125 tvals = Timers.Values;
125 foreach (TimerClass ts in tvals) 126 }
127
128 foreach (TimerClass ts in tvals)
129 {
130 // Time has passed?
131 if (ts.next < DateTime.Now.Ticks)
126 { 132 {
127 // Time has passed? 133 //m_log.Debug("Time has passed: Now: " + DateTime.Now.Ticks + ", Passed: " + ts.next);
128 if (ts.next < DateTime.Now.Ticks) 134 // Add it to queue
129 { 135 m_CmdManager.m_ScriptEngine.PostScriptEvent(ts.itemID,
130 //m_log.Debug("Time has passed: Now: " + DateTime.Now.Ticks + ", Passed: " + ts.next); 136 new EventParams("timer", new Object[0],
131 // Add it to queue 137 new DetectParams[0]));
132 m_CmdManager.m_ScriptEngine.PostScriptEvent(ts.itemID, 138 // set next interval
133 new EventParams("timer", new Object[0], 139
134 new DetectParams[0])); 140 //ts.next = DateTime.Now.ToUniversalTime().AddSeconds(ts.interval);
135 // set next interval 141 ts.next = DateTime.Now.Ticks + ts.interval;
136
137 //ts.next = DateTime.Now.ToUniversalTime().AddSeconds(ts.interval);
138 ts.next = DateTime.Now.Ticks + ts.interval;
139 }
140 } 142 }
141 } 143 }
142 } 144 }
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Interface/ICM_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Interface/ICM_Api.cs
new file mode 100644
index 0000000..ab215f3
--- /dev/null
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Interface/ICM_Api.cs
@@ -0,0 +1,46 @@
1/*
2 * Copyright (c) Contributors, http://opensimulator.org/
3 * See CONTRIBUTORS.TXT for a full list of copyright holders.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 * * Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * * Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
12 * * Neither the name of the OpenSimulator Project nor the
13 * names of its contributors may be used to endorse or promote products
14 * derived from this software without specific prior written permission.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
17 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
20 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28using System.Collections;
29using OpenSim.Region.ScriptEngine.Interfaces;
30
31using key = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLString;
32using rotation = OpenSim.Region.ScriptEngine.Shared.LSL_Types.Quaternion;
33using vector = OpenSim.Region.ScriptEngine.Shared.LSL_Types.Vector3;
34using LSL_List = OpenSim.Region.ScriptEngine.Shared.LSL_Types.list;
35using LSL_String = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLString;
36using LSL_Integer = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLInteger;
37using LSL_Float = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLFloat;
38
39namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
40{
41 public interface ICM_Api
42 {
43 string cmDetectedCountry(int num);
44 string cmGetAgentCountry(key key);
45 }
46}
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Interface/ILSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Interface/ILSL_Api.cs
index d39b204..749fc97 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Interface/ILSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Interface/ILSL_Api.cs
@@ -126,6 +126,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
126 LSL_Float llGetEnergy(); 126 LSL_Float llGetEnergy();
127 LSL_Vector llGetForce(); 127 LSL_Vector llGetForce();
128 LSL_Integer llGetFreeMemory(); 128 LSL_Integer llGetFreeMemory();
129 LSL_Integer llGetUsedMemory();
129 LSL_Integer llGetFreeURLs(); 130 LSL_Integer llGetFreeURLs();
130 LSL_Vector llGetGeometricCenter(); 131 LSL_Vector llGetGeometricCenter();
131 LSL_Float llGetGMTclock(); 132 LSL_Float llGetGMTclock();
@@ -149,6 +150,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
149 LSL_Vector llGetLocalPos(); 150 LSL_Vector llGetLocalPos();
150 LSL_Rotation llGetLocalRot(); 151 LSL_Rotation llGetLocalRot();
151 LSL_Float llGetMass(); 152 LSL_Float llGetMass();
153 LSL_Float llGetMassMKS();
152 LSL_Integer llGetMemoryLimit(); 154 LSL_Integer llGetMemoryLimit();
153 void llGetNextEmail(string address, string subject); 155 void llGetNextEmail(string address, string subject);
154 LSL_String llGetNotecardLine(string name, int line); 156 LSL_String llGetNotecardLine(string name, int line);
@@ -202,12 +204,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
202 LSL_String llGetTimestamp(); 204 LSL_String llGetTimestamp();
203 LSL_Vector llGetTorque(); 205 LSL_Vector llGetTorque();
204 LSL_Integer llGetUnixTime(); 206 LSL_Integer llGetUnixTime();
205 LSL_Integer llGetUsedMemory();
206 LSL_Vector llGetVel(); 207 LSL_Vector llGetVel();
207 LSL_Float llGetWallclock(); 208 LSL_Float llGetWallclock();
208 void llGiveInventory(string destination, string inventory); 209 void llGiveInventory(string destination, string inventory);
209 void llGiveInventoryList(string destination, string category, LSL_List inventory); 210 void llGiveInventoryList(string destination, string category, LSL_List inventory);
210 LSL_Integer llGiveMoney(string destination, int amount); 211 LSL_Integer llGiveMoney(string destination, int amount);
212 LSL_String llTransferLindenDollars(string destination, int amount);
211 void llGodLikeRezObject(string inventory, LSL_Vector pos); 213 void llGodLikeRezObject(string inventory, LSL_Vector pos);
212 LSL_Float llGround(LSL_Vector offset); 214 LSL_Float llGround(LSL_Vector offset);
213 LSL_Vector llGroundContour(LSL_Vector offset); 215 LSL_Vector llGroundContour(LSL_Vector offset);
@@ -355,6 +357,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
355 void llSetParcelMusicURL(string url); 357 void llSetParcelMusicURL(string url);
356 void llSetPayPrice(int price, LSL_List quick_pay_buttons); 358 void llSetPayPrice(int price, LSL_List quick_pay_buttons);
357 void llSetPos(LSL_Vector pos); 359 void llSetPos(LSL_Vector pos);
360 LSL_Integer llSetRegionPos(LSL_Vector pos);
358 LSL_Integer llSetPrimMediaParams(LSL_Integer face, LSL_List rules); 361 LSL_Integer llSetPrimMediaParams(LSL_Integer face, LSL_List rules);
359 void llSetPrimitiveParams(LSL_List rules); 362 void llSetPrimitiveParams(LSL_List rules);
360 void llSetLinkPrimitiveParamsFast(int linknum, LSL_List rules); 363 void llSetLinkPrimitiveParamsFast(int linknum, LSL_List rules);
@@ -421,9 +424,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
421 LSL_Vector llWind(LSL_Vector offset); 424 LSL_Vector llWind(LSL_Vector offset);
422 LSL_String llXorBase64Strings(string str1, string str2); 425 LSL_String llXorBase64Strings(string str1, string str2);
423 LSL_String llXorBase64StringsCorrect(string str1, string str2); 426 LSL_String llXorBase64StringsCorrect(string str1, string str2);
424 void print(string str); 427 LSL_Integer llGetLinkNumberOfSides(LSL_Integer link);
428 void llSetPhysicsMaterial(int material_bits, float material_gravity_modifier, float material_restitution, float material_friction, float material_density);
425 429
426 void SetPrimitiveParamsEx(LSL_Key prim, LSL_List rules); 430 void SetPrimitiveParamsEx(LSL_Key prim, LSL_List rules);
427 LSL_List GetLinkPrimitiveParamsEx(LSL_Key prim, LSL_List rules); 431 LSL_List GetLinkPrimitiveParamsEx(LSL_Key prim, LSL_List rules);
432 void llSetKeyframedMotion(LSL_List frames, LSL_List options);
428 } 433 }
429} 434}
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Interface/IOSSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Interface/IOSSL_Api.cs
index e92518d..7382495 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Interface/IOSSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Interface/IOSSL_Api.cs
@@ -85,7 +85,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Interfaces
85 // Avatar Info Commands 85 // Avatar Info Commands
86 string osGetAgentIP(string agent); 86 string osGetAgentIP(string agent);
87 LSL_List osGetAgents(); 87 LSL_List osGetAgents();
88 88
89 // Teleport commands 89 // Teleport commands
90 void osTeleportAgent(string agent, string regionName, LSL_Types.Vector3 position, LSL_Types.Vector3 lookat); 90 void osTeleportAgent(string agent, string regionName, LSL_Types.Vector3 position, LSL_Types.Vector3 lookat);
91 void osTeleportAgent(string agent, int regionX, int regionY, LSL_Types.Vector3 position, LSL_Types.Vector3 lookat); 91 void osTeleportAgent(string agent, int regionX, int regionY, LSL_Types.Vector3 position, LSL_Types.Vector3 lookat);
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/CM_Stub.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/CM_Stub.cs
new file mode 100644
index 0000000..4132dfa
--- /dev/null
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/CM_Stub.cs
@@ -0,0 +1,71 @@
1/*
2 * Copyright (c) Contributors, http://opensimulator.org/
3 * See CONTRIBUTORS.TXT for a full list of copyright holders.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 * * Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * * Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
12 * * Neither the name of the OpenSimulator Project nor the
13 * names of its contributors may be used to endorse or promote products
14 * derived from this software without specific prior written permission.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
17 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19 * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
20 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28using System;
29using System.Runtime.Remoting.Lifetime;
30using System.Threading;
31using System.Reflection;
32using System.Collections;
33using System.Collections.Generic;
34using OpenSim.Framework;
35using OpenSim.Region.Framework.Interfaces;
36using OpenSim.Region.ScriptEngine.Interfaces;
37using OpenSim.Region.ScriptEngine.Shared.Api.Interfaces;
38using integer = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLInteger;
39using vector = OpenSim.Region.ScriptEngine.Shared.LSL_Types.Vector3;
40using rotation = OpenSim.Region.ScriptEngine.Shared.LSL_Types.Quaternion;
41using key = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLString;
42using LSL_List = OpenSim.Region.ScriptEngine.Shared.LSL_Types.list;
43using LSL_String = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLString;
44using LSL_Float = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLFloat;
45using LSL_Integer = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLInteger;
46
47namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
48{
49 public partial class ScriptBaseClass : MarshalByRefObject
50 {
51 public ICM_Api m_CM_Functions;
52
53 public void ApiTypeCM(IScriptApi api)
54 {
55 if (!(api is ICM_Api))
56 return;
57
58 m_CM_Functions = (ICM_Api)api;
59 }
60
61 public string cmDetectedCountry(int num)
62 {
63 return m_CM_Functions.cmDetectedCountry(num);
64 }
65
66 public string cmGetAgentCountry(key key)
67 {
68 return m_CM_Functions.cmGetAgentCountry(key);
69 }
70 }
71}
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/Executor.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/Executor.cs
index 9615315..943d7a2 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/Executor.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/Executor.cs
@@ -27,6 +27,7 @@
27 27
28using System; 28using System;
29using System.Collections.Generic; 29using System.Collections.Generic;
30using System.Diagnostics; //for [DebuggerNonUserCode]
30using System.Reflection; 31using System.Reflection;
31using System.Runtime.Remoting.Lifetime; 32using System.Runtime.Remoting.Lifetime;
32using OpenSim.Region.ScriptEngine.Shared; 33using OpenSim.Region.ScriptEngine.Shared;
@@ -132,6 +133,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
132 return (eventFlags); 133 return (eventFlags);
133 } 134 }
134 135
136 [DebuggerNonUserCode]
135 public void ExecuteEvent(string state, string FunctionName, object[] args) 137 public void ExecuteEvent(string state, string FunctionName, object[] args)
136 { 138 {
137 // IMPORTANT: Types and MemberInfo-derived objects require a LOT of memory. 139 // IMPORTANT: Types and MemberInfo-derived objects require a LOT of memory.
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs
index b6c21e6..5c6ad8a 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Constants.cs
@@ -94,6 +94,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
94 public const int AGENT_CROUCHING = 1024; 94 public const int AGENT_CROUCHING = 1024;
95 public const int AGENT_BUSY = 2048; 95 public const int AGENT_BUSY = 2048;
96 public const int AGENT_ALWAYS_RUN = 4096; 96 public const int AGENT_ALWAYS_RUN = 4096;
97 public const int AGENT_MALE = 8192;
97 98
98 //Particle Systems 99 //Particle Systems
99 public const int PSYS_PART_INTERP_COLOR_MASK = 1; 100 public const int PSYS_PART_INTERP_COLOR_MASK = 1;
@@ -282,6 +283,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
282 public const int CHANGED_REGION_START = 1024; //LL Changed the constant from CHANGED_REGION_RESTART 283 public const int CHANGED_REGION_START = 1024; //LL Changed the constant from CHANGED_REGION_RESTART
283 public const int CHANGED_MEDIA = 2048; 284 public const int CHANGED_MEDIA = 2048;
284 public const int CHANGED_ANIMATION = 16384; 285 public const int CHANGED_ANIMATION = 16384;
286 public const int CHANGED_POSITION = 32768;
285 public const int TYPE_INVALID = 0; 287 public const int TYPE_INVALID = 0;
286 public const int TYPE_INTEGER = 1; 288 public const int TYPE_INTEGER = 1;
287 public const int TYPE_FLOAT = 2; 289 public const int TYPE_FLOAT = 2;
@@ -586,6 +588,17 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
586 public const int PRIM_MEDIA_PERM_OWNER = 1; 588 public const int PRIM_MEDIA_PERM_OWNER = 1;
587 public const int PRIM_MEDIA_PERM_GROUP = 2; 589 public const int PRIM_MEDIA_PERM_GROUP = 2;
588 public const int PRIM_MEDIA_PERM_ANYONE = 4; 590 public const int PRIM_MEDIA_PERM_ANYONE = 4;
591
592 public const int PRIM_PHYSICS_SHAPE_TYPE = 30;
593 public const int PRIM_PHYSICS_SHAPE_PRIM = 0;
594 public const int PRIM_PHYSICS_SHAPE_CONVEX = 2;
595 public const int PRIM_PHYSICS_SHAPE_NONE = 1;
596
597 public const int PRIM_PHYSICS_MATERIAL = 31;
598 public const int DENSITY = 1;
599 public const int FRICTION = 2;
600 public const int RESTITUTION = 4;
601 public const int GRAVITY_MULTIPLIER = 8;
589 602
590 // extra constants for llSetPrimMediaParams 603 // extra constants for llSetPrimMediaParams
591 public static readonly LSLInteger LSL_STATUS_OK = new LSLInteger(0); 604 public static readonly LSLInteger LSL_STATUS_OK = new LSLInteger(0);
@@ -659,5 +672,18 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
659 public static readonly LSLInteger RCERR_UNKNOWN = -1; 672 public static readonly LSLInteger RCERR_UNKNOWN = -1;
660 public static readonly LSLInteger RCERR_SIM_PERF_LOW = -2; 673 public static readonly LSLInteger RCERR_SIM_PERF_LOW = -2;
661 public static readonly LSLInteger RCERR_CAST_TIME_EXCEEDED = 3; 674 public static readonly LSLInteger RCERR_CAST_TIME_EXCEEDED = 3;
675
676 public const int KFM_MODE = 1;
677 public const int KFM_LOOP = 1;
678 public const int KFM_REVERSE = 3;
679 public const int KFM_FORWARD = 0;
680 public const int KFM_PING_PONG = 2;
681 public const int KFM_DATA = 2;
682 public const int KFM_TRANSLATION = 2;
683 public const int KFM_ROTATION = 1;
684 public const int KFM_COMMAND = 0;
685 public const int KFM_CMD_PLAY = 0;
686 public const int KFM_CMD_STOP = 1;
687 public const int KFM_CMD_PAUSE = 2;
662 } 688 }
663} 689}
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Stub.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Stub.cs
index 06f5617..976969a 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Stub.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LSL_Stub.cs
@@ -26,6 +26,7 @@
26 */ 26 */
27 27
28using System; 28using System;
29using System.Diagnostics; //for [DebuggerNonUserCode]
29using System.Runtime.Remoting.Lifetime; 30using System.Runtime.Remoting.Lifetime;
30using System.Threading; 31using System.Threading;
31using System.Reflection; 32using System.Reflection;
@@ -164,6 +165,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
164 m_LSL_Functions.llBreakLink(linknum); 165 m_LSL_Functions.llBreakLink(linknum);
165 } 166 }
166 167
168 public LSL_List llCastRay(LSL_Vector start, LSL_Vector end, LSL_List options)
169 {
170 return m_LSL_Functions.llCastRay(start, end, options);
171 }
172
167 public LSL_Integer llCeil(double f) 173 public LSL_Integer llCeil(double f)
168 { 174 {
169 return m_LSL_Functions.llCeil(f); 175 return m_LSL_Functions.llCeil(f);
@@ -314,6 +320,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
314 m_LSL_Functions.llDialog(avatar, message, buttons, chat_channel); 320 m_LSL_Functions.llDialog(avatar, message, buttons, chat_channel);
315 } 321 }
316 322
323 [DebuggerNonUserCode]
317 public void llDie() 324 public void llDie()
318 { 325 {
319 m_LSL_Functions.llDie(); 326 m_LSL_Functions.llDie();
@@ -474,6 +481,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
474 return m_LSL_Functions.llGetFreeMemory(); 481 return m_LSL_Functions.llGetFreeMemory();
475 } 482 }
476 483
484 public LSL_Integer llGetUsedMemory()
485 {
486 return m_LSL_Functions.llGetUsedMemory();
487 }
488
477 public LSL_Integer llGetFreeURLs() 489 public LSL_Integer llGetFreeURLs()
478 { 490 {
479 return m_LSL_Functions.llGetFreeURLs(); 491 return m_LSL_Functions.llGetFreeURLs();
@@ -579,6 +591,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
579 return m_LSL_Functions.llGetMass(); 591 return m_LSL_Functions.llGetMass();
580 } 592 }
581 593
594 public LSL_Float llGetMassMKS()
595 {
596 return m_LSL_Functions.llGetMassMKS();
597 }
598
582 public LSL_Integer llGetMemoryLimit() 599 public LSL_Integer llGetMemoryLimit()
583 { 600 {
584 return m_LSL_Functions.llGetMemoryLimit(); 601 return m_LSL_Functions.llGetMemoryLimit();
@@ -844,11 +861,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
844 return m_LSL_Functions.llGetUnixTime(); 861 return m_LSL_Functions.llGetUnixTime();
845 } 862 }
846 863
847 public LSL_Integer llGetUsedMemory()
848 {
849 return m_LSL_Functions.llGetUsedMemory();
850 }
851
852 public LSL_Vector llGetVel() 864 public LSL_Vector llGetVel()
853 { 865 {
854 return m_LSL_Functions.llGetVel(); 866 return m_LSL_Functions.llGetVel();
@@ -874,6 +886,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
874 return m_LSL_Functions.llGiveMoney(destination, amount); 886 return m_LSL_Functions.llGiveMoney(destination, amount);
875 } 887 }
876 888
889 public LSL_String llTransferLindenDollars(string destination, int amount)
890 {
891 return m_LSL_Functions.llTransferLindenDollars(destination, amount);
892 }
893
877 public void llGodLikeRezObject(string inventory, LSL_Vector pos) 894 public void llGodLikeRezObject(string inventory, LSL_Vector pos)
878 { 895 {
879 m_LSL_Functions.llGodLikeRezObject(inventory, pos); 896 m_LSL_Functions.llGodLikeRezObject(inventory, pos);
@@ -1598,6 +1615,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
1598 m_LSL_Functions.llSetPos(pos); 1615 m_LSL_Functions.llSetPos(pos);
1599 } 1616 }
1600 1617
1618 public LSL_Integer llSetRegionPos(LSL_Vector pos)
1619 {
1620 return m_LSL_Functions.llSetRegionPos(pos);
1621 }
1622
1601 public void llSetPrimitiveParams(LSL_List rules) 1623 public void llSetPrimitiveParams(LSL_List rules)
1602 { 1624 {
1603 m_LSL_Functions.llSetPrimitiveParams(rules); 1625 m_LSL_Functions.llSetPrimitiveParams(rules);
@@ -1958,9 +1980,19 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
1958 return m_LSL_Functions.llClearLinkMedia(link, face); 1980 return m_LSL_Functions.llClearLinkMedia(link, face);
1959 } 1981 }
1960 1982
1961 public void print(string str) 1983 public LSL_Integer llGetLinkNumberOfSides(LSL_Integer link)
1984 {
1985 return m_LSL_Functions.llGetLinkNumberOfSides(link);
1986 }
1987
1988 public void llSetKeyframedMotion(LSL_List frames, LSL_List options)
1989 {
1990 m_LSL_Functions.llSetKeyframedMotion(frames, options);
1991 }
1992
1993 public void llSetPhysicsMaterial(int material_bits, float material_gravity_modifier, float material_restitution, float material_friction, float material_density)
1962 { 1994 {
1963 m_LSL_Functions.print(str); 1995 m_LSL_Functions.llSetPhysicsMaterial(material_bits, material_gravity_modifier, material_restitution, material_friction, material_density);
1964 } 1996 }
1965 } 1997 }
1966} 1998}
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LS_Stub.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LS_Stub.cs
index 143b497..2e27f16 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LS_Stub.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/LS_Stub.cs
@@ -72,9 +72,30 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
72 { 72 {
73 return m_LS_Functions.lsSetWindlightSceneTargeted(rules, target); 73 return m_LS_Functions.lsSetWindlightSceneTargeted(rules, target);
74 } 74 }
75
75 public void lsClearWindlightScene() 76 public void lsClearWindlightScene()
76 { 77 {
77 m_LS_Functions.lsClearWindlightScene(); 78 m_LS_Functions.lsClearWindlightScene();
78 } 79 }
80
81 public LSL_List cmGetWindlightScene(LSL_List rules)
82 {
83 return m_LS_Functions.lsGetWindlightScene(rules);
84 }
85
86 public int cmSetWindlightScene(LSL_List rules)
87 {
88 return m_LS_Functions.lsSetWindlightScene(rules);
89 }
90
91 public int cmSetWindlightSceneTargeted(LSL_List rules, key target)
92 {
93 return m_LS_Functions.lsSetWindlightSceneTargeted(rules, target);
94 }
95
96 public void cmClearWindlightScene()
97 {
98 m_LS_Functions.lsClearWindlightScene();
99 }
79 } 100 }
80} 101}
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/ScriptBase.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/ScriptBase.cs
index edbbc2a..b138da3 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/ScriptBase.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Runtime/ScriptBase.cs
@@ -33,6 +33,7 @@ using System.Threading;
33using System.Reflection; 33using System.Reflection;
34using System.Collections; 34using System.Collections;
35using System.Collections.Generic; 35using System.Collections.Generic;
36using System.Diagnostics; //for [DebuggerNonUserCode]
36using OpenSim.Region.ScriptEngine.Interfaces; 37using OpenSim.Region.ScriptEngine.Interfaces;
37using OpenSim.Region.ScriptEngine.Shared; 38using OpenSim.Region.ScriptEngine.Shared;
38using OpenSim.Region.ScriptEngine.Shared.Api.Runtime; 39using OpenSim.Region.ScriptEngine.Shared.Api.Runtime;
@@ -90,6 +91,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
90 return (int)m_Executor.GetStateEventFlags(state); 91 return (int)m_Executor.GetStateEventFlags(state);
91 } 92 }
92 93
94 [DebuggerNonUserCode]
93 public void ExecuteEvent(string state, string FunctionName, object[] args) 95 public void ExecuteEvent(string state, string FunctionName, object[] args)
94 { 96 {
95 m_Executor.ExecuteEvent(state, FunctionName, args); 97 m_Executor.ExecuteEvent(state, FunctionName, args);
diff --git a/OpenSim/Region/ScriptEngine/Shared/Helpers.cs b/OpenSim/Region/ScriptEngine/Shared/Helpers.cs
index 8cebb4a..7e7e278 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Helpers.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Helpers.cs
@@ -35,6 +35,7 @@ using OpenMetaverse;
35using OpenSim.Framework; 35using OpenSim.Framework;
36using OpenSim.Region.CoreModules; 36using OpenSim.Region.CoreModules;
37using OpenSim.Region.Framework.Scenes; 37using OpenSim.Region.Framework.Scenes;
38using OpenSim.Services.Interfaces;
38 39
39namespace OpenSim.Region.ScriptEngine.Shared 40namespace OpenSim.Region.ScriptEngine.Shared
40{ 41{
@@ -95,6 +96,7 @@ namespace OpenSim.Region.ScriptEngine.Shared
95 Type = 0; 96 Type = 0;
96 Velocity = new LSL_Types.Vector3(); 97 Velocity = new LSL_Types.Vector3();
97 initializeSurfaceTouch(); 98 initializeSurfaceTouch();
99 Country = String.Empty;
98 } 100 }
99 101
100 public UUID Key; 102 public UUID Key;
@@ -126,6 +128,8 @@ namespace OpenSim.Region.ScriptEngine.Shared
126 private int touchFace; 128 private int touchFace;
127 public int TouchFace { get { return touchFace; } } 129 public int TouchFace { get { return touchFace; } }
128 130
131 public string Country;
132
129 // This can be done in two places including the constructor 133 // This can be done in two places including the constructor
130 // so be carefull what gets added here 134 // so be carefull what gets added here
131 private void initializeSurfaceTouch() 135 private void initializeSurfaceTouch()
@@ -173,6 +177,10 @@ namespace OpenSim.Region.ScriptEngine.Shared
173 return; 177 return;
174 178
175 Name = presence.Firstname + " " + presence.Lastname; 179 Name = presence.Firstname + " " + presence.Lastname;
180 UserAccount account = scene.UserAccountService.GetUserAccount(scene.RegionInfo.ScopeID, Key);
181 if (account != null)
182 Country = account.UserCountry;
183
176 Owner = Key; 184 Owner = Key;
177 Position = new LSL_Types.Vector3( 185 Position = new LSL_Types.Vector3(
178 presence.AbsolutePosition.X, 186 presence.AbsolutePosition.X,
diff --git a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs
index 306090e..3797683 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs
@@ -27,6 +27,7 @@
27 27
28using System; 28using System;
29using System.IO; 29using System.IO;
30using System.Diagnostics; //for [DebuggerNonUserCode]
30using System.Runtime.Remoting; 31using System.Runtime.Remoting;
31using System.Runtime.Remoting.Lifetime; 32using System.Runtime.Remoting.Lifetime;
32using System.Threading; 33using System.Threading;
@@ -221,13 +222,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
221 222
222 if (part != null) 223 if (part != null)
223 { 224 {
224 lock (part.TaskInventory) 225 part.TaskInventory.LockItemsForRead(true);
226 if (part.TaskInventory.ContainsKey(ItemID))
225 { 227 {
226 if (part.TaskInventory.ContainsKey(ItemID)) 228 ScriptTask = part.TaskInventory[ItemID];
227 {
228 ScriptTask = part.TaskInventory[ItemID];
229 }
230 } 229 }
230 part.TaskInventory.LockItemsForRead(false);
231 } 231 }
232 232
233 ApiManager am = new ApiManager(); 233 ApiManager am = new ApiManager();
@@ -426,14 +426,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
426 { 426 {
427 int permsMask; 427 int permsMask;
428 UUID permsGranter; 428 UUID permsGranter;
429 lock (part.TaskInventory) 429 part.TaskInventory.LockItemsForRead(true);
430 if (!part.TaskInventory.ContainsKey(ItemID))
430 { 431 {
431 if (!part.TaskInventory.ContainsKey(ItemID)) 432 part.TaskInventory.LockItemsForRead(false);
432 return; 433 return;
433
434 permsGranter = part.TaskInventory[ItemID].PermsGranter;
435 permsMask = part.TaskInventory[ItemID].PermsMask;
436 } 434 }
435 permsGranter = part.TaskInventory[ItemID].PermsGranter;
436 permsMask = part.TaskInventory[ItemID].PermsMask;
437 part.TaskInventory.LockItemsForRead(false);
437 438
438 if ((permsMask & ScriptBaseClass.PERMISSION_TAKE_CONTROLS) != 0) 439 if ((permsMask & ScriptBaseClass.PERMISSION_TAKE_CONTROLS) != 0)
439 { 440 {
@@ -561,6 +562,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
561 return true; 562 return true;
562 } 563 }
563 564
565 [DebuggerNonUserCode] //Prevents the debugger from farting in this function
564 public void SetState(string state) 566 public void SetState(string state)
565 { 567 {
566 if (state == State) 568 if (state == State)
@@ -572,7 +574,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
572 new DetectParams[0])); 574 new DetectParams[0]));
573 PostEvent(new EventParams("state_entry", new Object[0], 575 PostEvent(new EventParams("state_entry", new Object[0],
574 new DetectParams[0])); 576 new DetectParams[0]));
575 577
576 throw new EventAbortException(); 578 throw new EventAbortException();
577 } 579 }
578 580
@@ -662,45 +664,45 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
662 /// <returns></returns> 664 /// <returns></returns>
663 public object EventProcessor() 665 public object EventProcessor()
664 { 666 {
667 EventParams data = null;
665 // We check here as the thread stopping this instance from running may itself hold the m_Script lock. 668 // We check here as the thread stopping this instance from running may itself hold the m_Script lock.
666 if (!Running) 669 if (!Running)
667 return 0; 670 return 0;
668 671
669 lock (m_Script)
670 {
671// m_log.DebugFormat("[XEngine]: EventProcessor() invoked for {0}.{1}", PrimName, ScriptName); 672// m_log.DebugFormat("[XEngine]: EventProcessor() invoked for {0}.{1}", PrimName, ScriptName);
672 673
673 if (Suspended) 674 if (Suspended)
674 return 0; 675 return 0;
675
676 EventParams data = null;
677 676
678 lock (EventQueue) 677 lock (EventQueue)
678 {
679 data = (EventParams) EventQueue.Dequeue();
680 if (data == null) // Shouldn't happen
679 { 681 {
680 data = (EventParams)EventQueue.Dequeue(); 682 if (EventQueue.Count > 0 && Running && !ShuttingDown)
681 if (data == null) // Shouldn't happen
682 { 683 {
683 if (EventQueue.Count > 0 && Running && !ShuttingDown) 684 m_CurrentWorkItem = Engine.QueueEventHandler(this);
684 {
685 m_CurrentWorkItem = Engine.QueueEventHandler(this);
686 }
687 else
688 {
689 m_CurrentWorkItem = null;
690 }
691 return 0;
692 } 685 }
693 686 else
694 if (data.EventName == "timer")
695 m_TimerQueued = false;
696 if (data.EventName == "control")
697 { 687 {
698 if (m_ControlEventsInQueue > 0) 688 m_CurrentWorkItem = null;
699 m_ControlEventsInQueue--;
700 } 689 }
701 if (data.EventName == "collision") 690 return 0;
702 m_CollisionInQueue = false;
703 } 691 }
692
693 if (data.EventName == "timer")
694 m_TimerQueued = false;
695 if (data.EventName == "control")
696 {
697 if (m_ControlEventsInQueue > 0)
698 m_ControlEventsInQueue--;
699 }
700 if (data.EventName == "collision")
701 m_CollisionInQueue = false;
702 }
703
704 lock(m_Script)
705 {
704 706
705// m_log.DebugFormat("[XEngine]: Processing event {0} for {1}", data.EventName, this); 707// m_log.DebugFormat("[XEngine]: Processing event {0} for {1}", data.EventName, this);
706 708
@@ -855,6 +857,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
855 SceneObjectPart part = Engine.World.GetSceneObjectPart(LocalID); 857 SceneObjectPart part = Engine.World.GetSceneObjectPart(LocalID);
856 part.Inventory.GetInventoryItem(ItemID).PermsMask = 0; 858 part.Inventory.GetInventoryItem(ItemID).PermsMask = 0;
857 part.Inventory.GetInventoryItem(ItemID).PermsGranter = UUID.Zero; 859 part.Inventory.GetInventoryItem(ItemID).PermsGranter = UUID.Zero;
860 part.CollisionSound = UUID.Zero;
858 AsyncCommandManager.RemoveScript(Engine, LocalID, ItemID); 861 AsyncCommandManager.RemoveScript(Engine, LocalID, ItemID);
859 EventQueue.Clear(); 862 EventQueue.Clear();
860 m_Script.ResetVars(); 863 m_Script.ResetVars();
@@ -869,6 +872,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
869 new Object[0], new DetectParams[0])); 872 new Object[0], new DetectParams[0]));
870 } 873 }
871 874
875 [DebuggerNonUserCode] //Stops the VS debugger from farting in this function
872 public void ApiResetScript() 876 public void ApiResetScript()
873 { 877 {
874 // bool running = Running; 878 // bool running = Running;
@@ -880,6 +884,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
880 SceneObjectPart part = Engine.World.GetSceneObjectPart(LocalID); 884 SceneObjectPart part = Engine.World.GetSceneObjectPart(LocalID);
881 part.Inventory.GetInventoryItem(ItemID).PermsMask = 0; 885 part.Inventory.GetInventoryItem(ItemID).PermsMask = 0;
882 part.Inventory.GetInventoryItem(ItemID).PermsGranter = UUID.Zero; 886 part.Inventory.GetInventoryItem(ItemID).PermsGranter = UUID.Zero;
887 part.CollisionSound = UUID.Zero;
883 AsyncCommandManager.RemoveScript(Engine, LocalID, ItemID); 888 AsyncCommandManager.RemoveScript(Engine, LocalID, ItemID);
884 889
885 EventQueue.Clear(); 890 EventQueue.Clear();
@@ -900,10 +905,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance
900 905
901 public Dictionary<string, object> GetVars() 906 public Dictionary<string, object> GetVars()
902 { 907 {
903 if (m_Script != null) 908 return m_Script.GetVars();
904 return m_Script.GetVars();
905 else
906 return new Dictionary<string, object>();
907 } 909 }
908 910
909 public void SetVars(Dictionary<string, object> vars) 911 public void SetVars(Dictionary<string, object> vars)
diff --git a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs
index d848b2a..8adf4c5 100644
--- a/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/LSL_Types.cs
@@ -83,19 +83,19 @@ namespace OpenSim.Region.ScriptEngine.Shared
83 83
84 public override string ToString() 84 public override string ToString()
85 { 85 {
86 string s=String.Format("<{0:0.000000},{1:0.000000},{2:0.000000}>", x, y, z); 86 string s=String.Format("<{0:0.000000}, {1:0.000000}, {2:0.000000}>", x, y, z);
87 return s; 87 return s;
88 } 88 }
89 89
90 public static explicit operator LSLString(Vector3 vec) 90 public static explicit operator LSLString(Vector3 vec)
91 { 91 {
92 string s=String.Format("<{0:0.000000},{1:0.000000},{2:0.000000}>", vec.x, vec.y, vec.z); 92 string s=String.Format("<{0:0.000000}, {1:0.000000}, {2:0.000000}>", vec.x, vec.y, vec.z);
93 return new LSLString(s); 93 return new LSLString(s);
94 } 94 }
95 95
96 public static explicit operator string(Vector3 vec) 96 public static explicit operator string(Vector3 vec)
97 { 97 {
98 string s=String.Format("<{0:0.000000},{1:0.000000},{2:0.000000}>", vec.x, vec.y, vec.z); 98 string s=String.Format("<{0:0.000000}, {1:0.000000}, {2:0.000000}>", vec.x, vec.y, vec.z);
99 return s; 99 return s;
100 } 100 }
101 101
@@ -342,19 +342,19 @@ namespace OpenSim.Region.ScriptEngine.Shared
342 342
343 public override string ToString() 343 public override string ToString()
344 { 344 {
345 string st=String.Format(Culture.FormatProvider, "<{0:0.000000},{1:0.000000},{2:0.000000},{3:0.000000}>", x, y, z, s); 345 string st=String.Format(Culture.FormatProvider, "<{0:0.000000}, {1:0.000000}, {2:0.000000}, {3:0.000000}>", x, y, z, s);
346 return st; 346 return st;
347 } 347 }
348 348
349 public static explicit operator string(Quaternion r) 349 public static explicit operator string(Quaternion r)
350 { 350 {
351 string s=String.Format("<{0:0.000000},{1:0.000000},{2:0.000000},{3:0.000000}>", r.x, r.y, r.z, r.s); 351 string s=String.Format("<{0:0.000000}, {1:0.000000}, {2:0.000000}, {3:0.000000}>", r.x, r.y, r.z, r.s);
352 return s; 352 return s;
353 } 353 }
354 354
355 public static explicit operator LSLString(Quaternion r) 355 public static explicit operator LSLString(Quaternion r)
356 { 356 {
357 string s=String.Format("<{0:0.000000},{1:0.000000},{2:0.000000},{3:0.000000}>", r.x, r.y, r.z, r.s); 357 string s=String.Format("<{0:0.000000}, {1:0.000000}, {2:0.000000}, {3:0.000000}>", r.x, r.y, r.z, r.s);
358 return new LSLString(s); 358 return new LSLString(s);
359 } 359 }
360 360
@@ -459,6 +459,8 @@ namespace OpenSim.Region.ScriptEngine.Shared
459 size += 64; 459 size += 64;
460 else if (o is int) 460 else if (o is int)
461 size += 4; 461 size += 4;
462 else if (o is uint)
463 size += 4;
462 else if (o is string) 464 else if (o is string)
463 size += ((string)o).Length; 465 size += ((string)o).Length;
464 else if (o is float) 466 else if (o is float)
@@ -613,24 +615,16 @@ namespace OpenSim.Region.ScriptEngine.Shared
613 615
614 public static bool operator ==(list a, list b) 616 public static bool operator ==(list a, list b)
615 { 617 {
616 int la = -1; 618 int la = a.Length;
617 int lb = -1; 619 int lb = b.Length;
618 try { la = a.Length; }
619 catch (NullReferenceException) { }
620 try { lb = b.Length; }
621 catch (NullReferenceException) { }
622 620
623 return la == lb; 621 return la == lb;
624 } 622 }
625 623
626 public static bool operator !=(list a, list b) 624 public static bool operator !=(list a, list b)
627 { 625 {
628 int la = -1; 626 int la = a.Length;
629 int lb = -1; 627 int lb = b.Length;
630 try { la = a.Length; }
631 catch (NullReferenceException) { }
632 try {lb = b.Length;}
633 catch (NullReferenceException) { }
634 628
635 return la != lb; 629 return la != lb;
636 } 630 }
@@ -864,7 +858,7 @@ namespace OpenSim.Region.ScriptEngine.Shared
864 ret = Math.Sign(Quaternion.Mag(l) - Quaternion.Mag(r)); 858 ret = Math.Sign(Quaternion.Mag(l) - Quaternion.Mag(r));
865 } 859 }
866 860
867 if (ascending == 0) 861 if (ascending != 1)
868 { 862 {
869 ret = 0 - ret; 863 ret = 0 - ret;
870 } 864 }
@@ -897,6 +891,9 @@ namespace OpenSim.Region.ScriptEngine.Shared
897 stride = 1; 891 stride = 1;
898 } 892 }
899 893
894 if ((Data.Length % stride) != 0)
895 return new list(ret);
896
900 // we can optimize here in the case where stride == 1 and the list 897 // we can optimize here in the case where stride == 1 and the list
901 // consists of homogeneous types 898 // consists of homogeneous types
902 899
@@ -916,7 +913,7 @@ namespace OpenSim.Region.ScriptEngine.Shared
916 if (homogeneous) 913 if (homogeneous)
917 { 914 {
918 Array.Sort(ret, new HomogeneousComparer()); 915 Array.Sort(ret, new HomogeneousComparer());
919 if (ascending == 0) 916 if (ascending != 1)
920 { 917 {
921 Array.Reverse(ret); 918 Array.Reverse(ret);
922 } 919 }
@@ -1064,7 +1061,7 @@ namespace OpenSim.Region.ScriptEngine.Shared
1064 { 1061 {
1065 list ret = new list(); 1062 list ret = new list();
1066 double entry; 1063 double entry;
1067 for (int i = 0; i < src.Data.Length - 1; i++) 1064 for (int i = 0; i < src.Data.Length; i++)
1068 { 1065 {
1069 if (double.TryParse(src.Data[i].ToString(), NumberStyles.Float, Culture.NumberFormatInfo, out entry)) 1066 if (double.TryParse(src.Data[i].ToString(), NumberStyles.Float, Culture.NumberFormatInfo, out entry))
1070 { 1067 {
diff --git a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs
index 06ed9d6..b1583b2 100644
--- a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs
+++ b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs
@@ -28,6 +28,7 @@
28using System; 28using System;
29using System.Collections; 29using System.Collections;
30using System.Collections.Generic; 30using System.Collections.Generic;
31using System.Diagnostics; //for [DebuggerNonUserCode]
31using System.Globalization; 32using System.Globalization;
32using System.IO; 33using System.IO;
33using System.Reflection; 34using System.Reflection;
@@ -120,6 +121,8 @@ namespace OpenSim.Region.ScriptEngine.XEngine
120 private Dictionary<UUID, IScriptInstance> m_Scripts = 121 private Dictionary<UUID, IScriptInstance> m_Scripts =
121 new Dictionary<UUID, IScriptInstance>(); 122 new Dictionary<UUID, IScriptInstance>();
122 123
124 private OpenMetaverse.ReaderWriterLockSlim m_scriptsLock = new OpenMetaverse.ReaderWriterLockSlim();
125
123 // Maps the asset ID to the assembly 126 // Maps the asset ID to the assembly
124 127
125 private Dictionary<UUID, string> m_Assemblies = 128 private Dictionary<UUID, string> m_Assemblies =
@@ -142,6 +145,71 @@ namespace OpenSim.Region.ScriptEngine.XEngine
142 IWorkItemResult m_CurrentCompile = null; 145 IWorkItemResult m_CurrentCompile = null;
143 private Dictionary<UUID, int> m_CompileDict = new Dictionary<UUID, int>(); 146 private Dictionary<UUID, int> m_CompileDict = new Dictionary<UUID, int>();
144 147
148 private void lockScriptsForRead(bool locked)
149 {
150 if (locked)
151 {
152 if (m_scriptsLock.RecursiveReadCount > 0)
153 {
154 m_log.Error("[XEngine.m_Scripts] Recursive read lock requested. This should not happen and means something needs to be fixed. For now though, it's safe to continue.");
155 m_scriptsLock.ExitReadLock();
156 }
157 if (m_scriptsLock.RecursiveWriteCount > 0)
158 {
159 m_log.Error("[XEngine.m_Scripts] Recursive write lock requested. This should not happen and means something needs to be fixed.");
160 m_scriptsLock.ExitWriteLock();
161 }
162
163 while (!m_scriptsLock.TryEnterReadLock(60000))
164 {
165 m_log.Error("[XEngine.m_Scripts] Thread lock detected while trying to aquire READ lock of m_scripts in XEngine. I'm going to try to solve the thread lock automatically to preserve region stability, but this needs to be fixed.");
166 if (m_scriptsLock.IsWriteLockHeld)
167 {
168 m_scriptsLock = new OpenMetaverse.ReaderWriterLockSlim();
169 }
170 }
171 }
172 else
173 {
174 if (m_scriptsLock.RecursiveReadCount > 0)
175 {
176 m_scriptsLock.ExitReadLock();
177 }
178 }
179 }
180 private void lockScriptsForWrite(bool locked)
181 {
182 if (locked)
183 {
184 if (m_scriptsLock.RecursiveReadCount > 0)
185 {
186 m_log.Error("[XEngine.m_Scripts] Recursive read lock requested. This should not happen and means something needs to be fixed. For now though, it's safe to continue.");
187 m_scriptsLock.ExitReadLock();
188 }
189 if (m_scriptsLock.RecursiveWriteCount > 0)
190 {
191 m_log.Error("[XEngine.m_Scripts] Recursive write lock requested. This should not happen and means something needs to be fixed.");
192 m_scriptsLock.ExitWriteLock();
193 }
194
195 while (!m_scriptsLock.TryEnterWriteLock(60000))
196 {
197 m_log.Error("[XEngine.m_Scripts] Thread lock detected while trying to aquire WRITE lock of m_scripts in XEngine. I'm going to try to solve the thread lock automatically to preserve region stability, but this needs to be fixed.");
198 if (m_scriptsLock.IsWriteLockHeld)
199 {
200 m_scriptsLock = new OpenMetaverse.ReaderWriterLockSlim();
201 }
202 }
203 }
204 else
205 {
206 if (m_scriptsLock.RecursiveWriteCount > 0)
207 {
208 m_scriptsLock.ExitWriteLock();
209 }
210 }
211 }
212
145 public string ScriptEngineName 213 public string ScriptEngineName
146 { 214 {
147 get { return "XEngine"; } 215 get { return "XEngine"; }
@@ -567,44 +635,37 @@ namespace OpenSim.Region.ScriptEngine.XEngine
567 { 635 {
568 if (!m_Enabled) 636 if (!m_Enabled)
569 return; 637 return;
570 638 lockScriptsForRead(true);
571 lock (m_Scripts) 639 foreach (IScriptInstance instance in m_Scripts.Values)
572 { 640 {
573 m_log.InfoFormat( 641 // Force a final state save
574 "[XEngine]: Shutting down {0} scripts in {1}", m_Scripts.Count, m_Scene.RegionInfo.RegionName); 642 //
575 643 if (m_Assemblies.ContainsKey(instance.AssetID))
576 foreach (IScriptInstance instance in m_Scripts.Values)
577 { 644 {
578 // Force a final state save 645 string assembly = m_Assemblies[instance.AssetID];
579 // 646 instance.SaveState(assembly);
580 if (m_Assemblies.ContainsKey(instance.AssetID)) 647 }
581 {
582 string assembly = m_Assemblies[instance.AssetID];
583 instance.SaveState(assembly);
584 }
585 648
586 // Clear the event queue and abort the instance thread 649 // Clear the event queue and abort the instance thread
587 // 650 //
588 instance.ClearQueue(); 651 instance.ClearQueue();
589 instance.Stop(0); 652 instance.Stop(0);
590 653
591 // Release events, timer, etc 654 // Release events, timer, etc
592 // 655 //
593 instance.DestroyScriptInstance(); 656 instance.DestroyScriptInstance();
594 657
595 // Unload scripts and app domains. 658 // Unload scripts and app domains
596 // Must be done explicitly because they have infinite 659 // Must be done explicitly because they have infinite
597 // lifetime. 660 // lifetime
598 // However, don't bother to do this if the simulator is shutting 661 //
599 // down since it takes a long time with many scripts. 662 if (!m_SimulatorShuttingDown)
600 if (!m_SimulatorShuttingDown) 663 {
664 m_DomainScripts[instance.AppDomain].Remove(instance.ItemID);
665 if (m_DomainScripts[instance.AppDomain].Count == 0)
601 { 666 {
602 m_DomainScripts[instance.AppDomain].Remove(instance.ItemID); 667 m_DomainScripts.Remove(instance.AppDomain);
603 if (m_DomainScripts[instance.AppDomain].Count == 0) 668 UnloadAppDomain(instance.AppDomain);
604 {
605 m_DomainScripts.Remove(instance.AppDomain);
606 UnloadAppDomain(instance.AppDomain);
607 }
608 } 669 }
609 } 670 }
610 671
@@ -613,6 +674,14 @@ namespace OpenSim.Region.ScriptEngine.XEngine
613 m_Assemblies.Clear(); 674 m_Assemblies.Clear();
614 m_DomainScripts.Clear(); 675 m_DomainScripts.Clear();
615 } 676 }
677 lockScriptsForRead(false);
678 lockScriptsForWrite(true);
679 m_Scripts.Clear();
680 lockScriptsForWrite(false);
681 m_PrimObjects.Clear();
682 m_Assemblies.Clear();
683 m_DomainScripts.Clear();
684
616 lock (m_ScriptEngines) 685 lock (m_ScriptEngines)
617 { 686 {
618 m_ScriptEngines.Remove(this); 687 m_ScriptEngines.Remove(this);
@@ -677,22 +746,20 @@ namespace OpenSim.Region.ScriptEngine.XEngine
677 746
678 List<IScriptInstance> instances = new List<IScriptInstance>(); 747 List<IScriptInstance> instances = new List<IScriptInstance>();
679 748
680 lock (m_Scripts) 749 lockScriptsForRead(true);
681 { 750 foreach (IScriptInstance instance in m_Scripts.Values)
682 foreach (IScriptInstance instance in m_Scripts.Values)
683 instances.Add(instance); 751 instances.Add(instance);
684 } 752 lockScriptsForRead(false);
685 753
686 foreach (IScriptInstance i in instances) 754 foreach (IScriptInstance i in instances)
687 { 755 {
688 string assembly = String.Empty; 756 string assembly = String.Empty;
689 757
690 lock (m_Scripts) 758
691 {
692 if (!m_Assemblies.ContainsKey(i.AssetID)) 759 if (!m_Assemblies.ContainsKey(i.AssetID))
693 continue; 760 continue;
694 assembly = m_Assemblies[i.AssetID]; 761 assembly = m_Assemblies[i.AssetID];
695 } 762
696 763
697 i.SaveState(assembly); 764 i.SaveState(assembly);
698 } 765 }
@@ -1048,96 +1115,99 @@ namespace OpenSim.Region.ScriptEngine.XEngine
1048 } 1115 }
1049 1116
1050 ScriptInstance instance = null; 1117 ScriptInstance instance = null;
1051 lock (m_Scripts) 1118 // Create the object record
1119 lockScriptsForRead(true);
1120 if ((!m_Scripts.ContainsKey(itemID)) ||
1121 (m_Scripts[itemID].AssetID != assetID))
1052 { 1122 {
1053 // Create the object record 1123 lockScriptsForRead(false);
1054 if ((!m_Scripts.ContainsKey(itemID)) ||
1055 (m_Scripts[itemID].AssetID != assetID))
1056 {
1057 UUID appDomain = assetID;
1058 1124
1059 if (part.ParentGroup.IsAttachment) 1125 UUID appDomain = assetID;
1060 appDomain = part.ParentGroup.RootPart.UUID;
1061 1126
1062 if (!m_AppDomains.ContainsKey(appDomain)) 1127 if (part.ParentGroup.IsAttachment)
1063 { 1128 appDomain = part.ParentGroup.RootPart.UUID;
1064 try
1065 {
1066 AppDomainSetup appSetup = new AppDomainSetup();
1067 appSetup.PrivateBinPath = Path.Combine(
1068 m_ScriptEnginesPath,
1069 m_Scene.RegionInfo.RegionID.ToString());
1070 1129
1071 Evidence baseEvidence = AppDomain.CurrentDomain.Evidence; 1130 if (!m_AppDomains.ContainsKey(appDomain))
1072 Evidence evidence = new Evidence(baseEvidence); 1131 {
1132 try
1133 {
1134 AppDomainSetup appSetup = new AppDomainSetup();
1135 appSetup.PrivateBinPath = Path.Combine(
1136 m_ScriptEnginesPath,
1137 m_Scene.RegionInfo.RegionID.ToString());
1073 1138
1074 AppDomain sandbox; 1139 Evidence baseEvidence = AppDomain.CurrentDomain.Evidence;
1075 if (m_AppDomainLoading) 1140 Evidence evidence = new Evidence(baseEvidence);
1076 {
1077 sandbox = AppDomain.CreateDomain(
1078 m_Scene.RegionInfo.RegionID.ToString(),
1079 evidence, appSetup);
1080 sandbox.AssemblyResolve +=
1081 new ResolveEventHandler(
1082 AssemblyResolver.OnAssemblyResolve);
1083 }
1084 else
1085 {
1086 sandbox = AppDomain.CurrentDomain;
1087 }
1088
1089 //PolicyLevel sandboxPolicy = PolicyLevel.CreateAppDomainLevel();
1090 //AllMembershipCondition sandboxMembershipCondition = new AllMembershipCondition();
1091 //PermissionSet sandboxPermissionSet = sandboxPolicy.GetNamedPermissionSet("Internet");
1092 //PolicyStatement sandboxPolicyStatement = new PolicyStatement(sandboxPermissionSet);
1093 //CodeGroup sandboxCodeGroup = new UnionCodeGroup(sandboxMembershipCondition, sandboxPolicyStatement);
1094 //sandboxPolicy.RootCodeGroup = sandboxCodeGroup;
1095 //sandbox.SetAppDomainPolicy(sandboxPolicy);
1096
1097 m_AppDomains[appDomain] = sandbox;
1098 1141
1099 m_DomainScripts[appDomain] = new List<UUID>(); 1142 AppDomain sandbox;
1143 if (m_AppDomainLoading)
1144 {
1145 sandbox = AppDomain.CreateDomain(
1146 m_Scene.RegionInfo.RegionID.ToString(),
1147 evidence, appSetup);
1148 m_AppDomains[appDomain].AssemblyResolve +=
1149 new ResolveEventHandler(
1150 AssemblyResolver.OnAssemblyResolve);
1100 } 1151 }
1101 catch (Exception e) 1152 else
1102 { 1153 {
1103 m_log.ErrorFormat("[XEngine] Exception creating app domain:\n {0}", e.ToString()); 1154 sandbox = AppDomain.CurrentDomain;
1104 m_ScriptErrorMessage += "Exception creating app domain:\n";
1105 m_ScriptFailCount++;
1106 lock (m_AddingAssemblies)
1107 {
1108 m_AddingAssemblies[assembly]--;
1109 }
1110 return false;
1111 } 1155 }
1112 }
1113 m_DomainScripts[appDomain].Add(itemID);
1114
1115 instance = new ScriptInstance(this, part,
1116 itemID, assetID, assembly,
1117 m_AppDomains[appDomain],
1118 part.ParentGroup.RootPart.Name,
1119 item.Name, startParam, postOnRez,
1120 stateSource, m_MaxScriptQueue);
1121
1122// if (DebugLevel >= 1)
1123 m_log.DebugFormat(
1124 "[XEngine] Loaded script {0}.{1}, item UUID {2}, prim UUID {3} @ {4}.{5}",
1125 part.ParentGroup.RootPart.Name, item.Name, itemID, part.UUID,
1126 part.ParentGroup.RootPart.AbsolutePosition, part.ParentGroup.Scene.RegionInfo.RegionName);
1127 1156
1128 if (presence != null) 1157 //PolicyLevel sandboxPolicy = PolicyLevel.CreateAppDomainLevel();
1158 //AllMembershipCondition sandboxMembershipCondition = new AllMembershipCondition();
1159 //PermissionSet sandboxPermissionSet = sandboxPolicy.GetNamedPermissionSet("Internet");
1160 //PolicyStatement sandboxPolicyStatement = new PolicyStatement(sandboxPermissionSet);
1161 //CodeGroup sandboxCodeGroup = new UnionCodeGroup(sandboxMembershipCondition, sandboxPolicyStatement);
1162 //sandboxPolicy.RootCodeGroup = sandboxCodeGroup;
1163 //sandbox.SetAppDomainPolicy(sandboxPolicy);
1164
1165 m_AppDomains[appDomain] = sandbox;
1166
1167 m_DomainScripts[appDomain] = new List<UUID>();
1168 }
1169 catch (Exception e)
1129 { 1170 {
1130 ShowScriptSaveResponse(item.OwnerID, 1171 m_log.ErrorFormat("[XEngine] Exception creating app domain:\n {0}", e.ToString());
1131 assetID, "Compile successful", true); 1172 m_ScriptErrorMessage += "Exception creating app domain:\n";
1173 m_ScriptFailCount++;
1174 lock (m_AddingAssemblies)
1175 {
1176 m_AddingAssemblies[assembly]--;
1177 }
1178 return false;
1132 } 1179 }
1180 }
1181 m_DomainScripts[appDomain].Add(itemID);
1182
1183 instance = new ScriptInstance(this, part,
1184 itemID, assetID, assembly,
1185 m_AppDomains[appDomain],
1186 part.ParentGroup.RootPart.Name,
1187 item.Name, startParam, postOnRez,
1188 stateSource, m_MaxScriptQueue);
1189
1190 m_log.DebugFormat(
1191 "[XEngine] Loaded script {0}.{1}, script UUID {2}, prim UUID {3} @ {4}.{5}",
1192 part.ParentGroup.RootPart.Name, item.Name, assetID, part.UUID,
1193 part.ParentGroup.RootPart.AbsolutePosition, part.ParentGroup.Scene.RegionInfo.RegionName);
1133 1194
1134 instance.AppDomain = appDomain; 1195 if (presence != null)
1135 instance.LineMap = linemap; 1196 {
1136 1197 ShowScriptSaveResponse(item.OwnerID,
1137 m_Scripts[itemID] = instance; 1198 assetID, "Compile successful", true);
1138 } 1199 }
1139 }
1140 1200
1201 instance.AppDomain = appDomain;
1202 instance.LineMap = linemap;
1203 lockScriptsForWrite(true);
1204 m_Scripts[itemID] = instance;
1205 lockScriptsForWrite(false);
1206 }
1207 else
1208 {
1209 lockScriptsForRead(false);
1210 }
1141 lock (m_PrimObjects) 1211 lock (m_PrimObjects)
1142 { 1212 {
1143 if (!m_PrimObjects.ContainsKey(localID)) 1213 if (!m_PrimObjects.ContainsKey(localID))
@@ -1155,9 +1225,9 @@ namespace OpenSim.Region.ScriptEngine.XEngine
1155 m_AddingAssemblies[assembly]--; 1225 m_AddingAssemblies[assembly]--;
1156 } 1226 }
1157 1227
1158 if (instance != null) 1228 if (instance!=null)
1159 instance.Init(); 1229 instance.Init();
1160 1230
1161 return true; 1231 return true;
1162 } 1232 }
1163 1233
@@ -1170,18 +1240,28 @@ namespace OpenSim.Region.ScriptEngine.XEngine
1170 m_CompileDict.Remove(itemID); 1240 m_CompileDict.Remove(itemID);
1171 } 1241 }
1172 1242
1173 IScriptInstance instance = null; 1243 lockScriptsForRead(true);
1174 1244 // Do we even have it?
1175 lock (m_Scripts) 1245 if (!m_Scripts.ContainsKey(itemID))
1176 { 1246 {
1177 // Do we even have it? 1247 // Do we even have it?
1178 if (!m_Scripts.ContainsKey(itemID)) 1248 if (!m_Scripts.ContainsKey(itemID))
1179 return; 1249 return;
1180 1250
1181 instance = m_Scripts[itemID]; 1251 lockScriptsForRead(false);
1252 lockScriptsForWrite(true);
1182 m_Scripts.Remove(itemID); 1253 m_Scripts.Remove(itemID);
1254 lockScriptsForWrite(false);
1255
1256 return;
1183 } 1257 }
1258
1184 1259
1260 IScriptInstance instance=m_Scripts[itemID];
1261 lockScriptsForRead(false);
1262 lockScriptsForWrite(true);
1263 m_Scripts.Remove(itemID);
1264 lockScriptsForWrite(false);
1185 instance.ClearQueue(); 1265 instance.ClearQueue();
1186 1266
1187 // Give the script some time to finish processing its last event. Simply aborting the script thread can 1267 // Give the script some time to finish processing its last event. Simply aborting the script thread can
@@ -1220,8 +1300,13 @@ namespace OpenSim.Region.ScriptEngine.XEngine
1220 1300
1221 ObjectRemoved handlerObjectRemoved = OnObjectRemoved; 1301 ObjectRemoved handlerObjectRemoved = OnObjectRemoved;
1222 if (handlerObjectRemoved != null) 1302 if (handlerObjectRemoved != null)
1223 handlerObjectRemoved(instance.ObjectID); 1303 {
1304 SceneObjectPart part = m_Scene.GetSceneObjectPart(localID);
1305 handlerObjectRemoved(part.UUID);
1306 }
1224 1307
1308 CleanAssemblies();
1309
1225 ScriptRemoved handlerScriptRemoved = OnScriptRemoved; 1310 ScriptRemoved handlerScriptRemoved = OnScriptRemoved;
1226 if (handlerScriptRemoved != null) 1311 if (handlerScriptRemoved != null)
1227 handlerScriptRemoved(itemID); 1312 handlerScriptRemoved(itemID);
@@ -1482,12 +1567,14 @@ namespace OpenSim.Region.ScriptEngine.XEngine
1482 private IScriptInstance GetInstance(UUID itemID) 1567 private IScriptInstance GetInstance(UUID itemID)
1483 { 1568 {
1484 IScriptInstance instance; 1569 IScriptInstance instance;
1485 lock (m_Scripts) 1570 lockScriptsForRead(true);
1571 if (!m_Scripts.ContainsKey(itemID))
1486 { 1572 {
1487 if (!m_Scripts.ContainsKey(itemID)) 1573 lockScriptsForRead(false);
1488 return null; 1574 return null;
1489 instance = m_Scripts[itemID];
1490 } 1575 }
1576 instance = m_Scripts[itemID];
1577 lockScriptsForRead(false);
1491 return instance; 1578 return instance;
1492 } 1579 }
1493 1580
@@ -1518,6 +1605,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine
1518 return false; 1605 return false;
1519 } 1606 }
1520 1607
1608 [DebuggerNonUserCode]
1521 public void ApiResetScript(UUID itemID) 1609 public void ApiResetScript(UUID itemID)
1522 { 1610 {
1523 IScriptInstance instance = GetInstance(itemID); 1611 IScriptInstance instance = GetInstance(itemID);
@@ -1569,6 +1657,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine
1569 return UUID.Zero; 1657 return UUID.Zero;
1570 } 1658 }
1571 1659
1660 [DebuggerNonUserCode]
1572 public void SetState(UUID itemID, string newState) 1661 public void SetState(UUID itemID, string newState)
1573 { 1662 {
1574 IScriptInstance instance = GetInstance(itemID); 1663 IScriptInstance instance = GetInstance(itemID);
@@ -1591,11 +1680,10 @@ namespace OpenSim.Region.ScriptEngine.XEngine
1591 1680
1592 List<IScriptInstance> instances = new List<IScriptInstance>(); 1681 List<IScriptInstance> instances = new List<IScriptInstance>();
1593 1682
1594 lock (m_Scripts) 1683 lockScriptsForRead(true);
1595 { 1684 foreach (IScriptInstance instance in m_Scripts.Values)
1596 foreach (IScriptInstance instance in m_Scripts.Values)
1597 instances.Add(instance); 1685 instances.Add(instance);
1598 } 1686 lockScriptsForRead(false);
1599 1687
1600 foreach (IScriptInstance i in instances) 1688 foreach (IScriptInstance i in instances)
1601 { 1689 {
@@ -2050,5 +2138,17 @@ namespace OpenSim.Region.ScriptEngine.XEngine
2050// else 2138// else
2051// m_log.DebugFormat("[XEngine]: Could not find script with ID {0} to resume", itemID); 2139// m_log.DebugFormat("[XEngine]: Could not find script with ID {0} to resume", itemID);
2052 } 2140 }
2141
2142 public bool HasScript(UUID itemID, out bool running)
2143 {
2144 running = true;
2145
2146 IScriptInstance instance = GetInstance(itemID);
2147 if (instance == null)
2148 return false;
2149
2150 running = instance.Running;
2151 return true;
2152 }
2053 } 2153 }
2054} 2154}
diff --git a/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs b/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs
index 012b14e..d772c39 100644
--- a/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs
+++ b/OpenSim/Server/Handlers/Simulation/AgentHandlers.cs
@@ -100,6 +100,11 @@ namespace OpenSim.Server.Handlers.Simulation
100 DoAgentDelete(request, responsedata, agentID, action, regionID); 100 DoAgentDelete(request, responsedata, agentID, action, regionID);
101 return responsedata; 101 return responsedata;
102 } 102 }
103 else if (method.Equals("DELETECHILD"))
104 {
105 DoChildAgentDelete(request, responsedata, agentID, action, regionID);
106 return responsedata;
107 }
103 else if (method.Equals("QUERYACCESS")) 108 else if (method.Equals("QUERYACCESS"))
104 { 109 {
105 DoQueryAccess(request, responsedata, agentID, regionID); 110 DoQueryAccess(request, responsedata, agentID, regionID);
@@ -208,6 +213,24 @@ namespace OpenSim.Server.Handlers.Simulation
208 } 213 }
209 } 214 }
210 215
216 protected void DoChildAgentDelete(Hashtable request, Hashtable responsedata, UUID id, string action, UUID regionID)
217 {
218 m_log.Debug(" >>> DoChildAgentDelete action:" + action + "; RegionID:" + regionID);
219
220 GridRegion destination = new GridRegion();
221 destination.RegionID = regionID;
222
223 if (action.Equals("release"))
224 ReleaseAgent(regionID, id);
225 else
226 m_SimulationService.CloseChildAgent(destination, id);
227
228 responsedata["int_response_code"] = HttpStatusCode.OK;
229 responsedata["str_response_string"] = "OpenSim agent " + id.ToString();
230
231 m_log.Debug("[AGENT HANDLER]: Child Agent Released/Deleted.");
232 }
233
211 protected void DoAgentDelete(Hashtable request, Hashtable responsedata, UUID id, string action, UUID regionID) 234 protected void DoAgentDelete(Hashtable request, Hashtable responsedata, UUID id, string action, UUID regionID)
212 { 235 {
213 m_log.Debug(" >>> DoDelete action:" + action + "; RegionID:" + regionID); 236 m_log.Debug(" >>> DoDelete action:" + action + "; RegionID:" + regionID);
diff --git a/OpenSim/Services/AssetService/AssetService.cs b/OpenSim/Services/AssetService/AssetService.cs
index 137a9b0..1427e84 100644
--- a/OpenSim/Services/AssetService/AssetService.cs
+++ b/OpenSim/Services/AssetService/AssetService.cs
@@ -173,7 +173,10 @@ namespace OpenSim.Services.AssetService
173 { 173 {
174// m_log.DebugFormat( 174// m_log.DebugFormat(
175// "[ASSET SERVICE]: Storing asset {0} {1}, bytes {2}", asset.Name, asset.FullID, asset.Data.Length); 175// "[ASSET SERVICE]: Storing asset {0} {1}, bytes {2}", asset.Name, asset.FullID, asset.Data.Length);
176 m_Database.StoreAsset(asset); 176 if (!m_Database.StoreAsset(asset))
177 {
178 return UUID.Zero.ToString();
179 }
177 } 180 }
178// else 181// else
179// { 182// {
diff --git a/OpenSim/Services/AuthenticationService/AuthenticationServiceBase.cs b/OpenSim/Services/AuthenticationService/AuthenticationServiceBase.cs
index 229f557..e42f9a0 100644
--- a/OpenSim/Services/AuthenticationService/AuthenticationServiceBase.cs
+++ b/OpenSim/Services/AuthenticationService/AuthenticationServiceBase.cs
@@ -30,10 +30,11 @@ using OpenMetaverse;
30using log4net; 30using log4net;
31using Nini.Config; 31using Nini.Config;
32using System.Reflection; 32using System.Reflection;
33using OpenSim.Server.Base;
34using OpenSim.Services.Interfaces;
33using OpenSim.Data; 35using OpenSim.Data;
34using OpenSim.Framework; 36using OpenSim.Framework;
35using OpenSim.Services.Base; 37using OpenSim.Services.Base;
36using OpenSim.Services.Interfaces;
37 38
38namespace OpenSim.Services.AuthenticationService 39namespace OpenSim.Services.AuthenticationService
39{ 40{
@@ -50,6 +51,12 @@ namespace OpenSim.Services.AuthenticationService
50 MethodBase.GetCurrentMethod().DeclaringType); 51 MethodBase.GetCurrentMethod().DeclaringType);
51 52
52 protected IAuthenticationData m_Database; 53 protected IAuthenticationData m_Database;
54 protected IUserAccountService m_UserAccountService = null;
55
56 public AuthenticationServiceBase(IConfigSource config, IUserAccountService acct) : this(config)
57 {
58 m_UserAccountService = acct;
59 }
53 60
54 public AuthenticationServiceBase(IConfigSource config) : base(config) 61 public AuthenticationServiceBase(IConfigSource config) : base(config)
55 { 62 {
diff --git a/OpenSim/Services/AuthenticationService/PasswordAuthenticationService.cs b/OpenSim/Services/AuthenticationService/PasswordAuthenticationService.cs
index 5f1bde1..769c3c2 100644
--- a/OpenSim/Services/AuthenticationService/PasswordAuthenticationService.cs
+++ b/OpenSim/Services/AuthenticationService/PasswordAuthenticationService.cs
@@ -51,6 +51,12 @@ namespace OpenSim.Services.AuthenticationService
51 LogManager.GetLogger( 51 LogManager.GetLogger(
52 MethodBase.GetCurrentMethod().DeclaringType); 52 MethodBase.GetCurrentMethod().DeclaringType);
53 53
54 public PasswordAuthenticationService(IConfigSource config, IUserAccountService userService) :
55 base(config, userService)
56 {
57 m_log.Debug("[AUTH SERVICE]: Started with User Account access");
58 }
59
54 public PasswordAuthenticationService(IConfigSource config) : 60 public PasswordAuthenticationService(IConfigSource config) :
55 base(config) 61 base(config)
56 { 62 {
@@ -58,42 +64,81 @@ namespace OpenSim.Services.AuthenticationService
58 64
59 public string Authenticate(UUID principalID, string password, int lifetime) 65 public string Authenticate(UUID principalID, string password, int lifetime)
60 { 66 {
67 m_log.DebugFormat("[AUTH SERVICE]: Authenticating for {0}, user account service present: {1}", principalID, m_UserAccountService != null);
61 AuthenticationData data = m_Database.Get(principalID); 68 AuthenticationData data = m_Database.Get(principalID);
69 UserAccount user = null;
70 if (m_UserAccountService != null)
71 user = m_UserAccountService.GetUserAccount(UUID.Zero, principalID);
62 72
63 if (data == null) 73 if (data == null || data.Data == null)
64 { 74 {
65 m_log.DebugFormat("[AUTH SERVICE]: PrincipalID {0} not found", principalID); 75 m_log.DebugFormat("[AUTH SERVICE]: PrincipalID {0} or its data not found", principalID);
66 return String.Empty; 76 return String.Empty;
67 } 77 }
68 else if (data.Data == null) 78
79 if (!data.Data.ContainsKey("passwordHash") ||
80 !data.Data.ContainsKey("passwordSalt"))
69 { 81 {
70 m_log.DebugFormat("[AUTH SERVICE]: PrincipalID {0} data not found", principalID);
71 return String.Empty; 82 return String.Empty;
72 } 83 }
73 else if (!data.Data.ContainsKey("passwordHash") || !data.Data.ContainsKey("passwordSalt")) 84
85 string hashed = Util.Md5Hash(password + ":" +
86 data.Data["passwordSalt"].ToString());
87
88 m_log.DebugFormat("[PASS AUTH]: got {0}; hashed = {1}; stored = {2}", password, hashed, data.Data["passwordHash"].ToString());
89
90 if (data.Data["passwordHash"].ToString() == hashed)
91 {
92 return GetToken(principalID, lifetime);
93 }
94
95 if (user == null)
74 { 96 {
75 m_log.DebugFormat( 97 m_log.DebugFormat("[PASS AUTH]: No user record for {0}", principalID);
76 "[AUTH SERVICE]: PrincipalID {0} data didn't contain either passwordHash or passwordSalt", principalID);
77 return String.Empty; 98 return String.Empty;
78 } 99 }
79 else 100
101 int impersonateFlag = 1 << 6;
102
103 if ((user.UserFlags & impersonateFlag) == 0)
104 return String.Empty;
105
106 m_log.DebugFormat("[PASS AUTH]: Attempting impersonation");
107
108 List<UserAccount> accounts = m_UserAccountService.GetUserAccountsWhere(UUID.Zero, "UserLevel >= 200");
109 if (accounts == null || accounts.Count == 0)
110 return String.Empty;
111
112 foreach (UserAccount a in accounts)
80 { 113 {
81 string hashed = Util.Md5Hash(password + ":" + data.Data["passwordSalt"].ToString()); 114 data = m_Database.Get(a.PrincipalID);
115 if (data == null || data.Data == null ||
116 !data.Data.ContainsKey("passwordHash") ||
117 !data.Data.ContainsKey("passwordSalt"))
118 {
119 continue;
120 }
121
122// m_log.DebugFormat("[PASS AUTH]: Trying {0}", data.PrincipalID);
82 123
83 m_log.DebugFormat("[PASS AUTH]: got {0}; hashed = {1}; stored = {2}", password, hashed, data.Data["passwordHash"].ToString()); 124 hashed = Util.Md5Hash(password + ":" +
125 data.Data["passwordSalt"].ToString());
84 126
85 if (data.Data["passwordHash"].ToString() == hashed) 127 if (data.Data["passwordHash"].ToString() == hashed)
86 { 128 {
129 m_log.DebugFormat("[PASS AUTH]: {0} {1} impersonating {2}, proceeding with login", a.FirstName, a.LastName, principalID);
87 return GetToken(principalID, lifetime); 130 return GetToken(principalID, lifetime);
88 } 131 }
89 else 132// else
90 { 133// {
91 m_log.DebugFormat( 134// m_log.DebugFormat(
92 "[AUTH SERVICE]: Salted hash {0} of given password did not match salted hash of {1} for PrincipalID {2}. Authentication failure.", 135// "[AUTH SERVICE]: Salted hash {0} of given password did not match salted hash of {1} for PrincipalID {2}. Authentication failure.",
93 hashed, data.Data["passwordHash"], principalID); 136// hashed, data.Data["passwordHash"], data.PrincipalID);
94 return String.Empty; 137// }
95 }
96 } 138 }
139
140 m_log.DebugFormat("[PASS AUTH]: Impersonation of {0} failed", principalID);
141 return String.Empty;
97 } 142 }
98 } 143 }
99} \ No newline at end of file 144}
diff --git a/OpenSim/Services/AuthenticationService/WebkeyAuthenticationService.cs b/OpenSim/Services/AuthenticationService/WebkeyAuthenticationService.cs
index 2344c0e..d02ff9b 100644
--- a/OpenSim/Services/AuthenticationService/WebkeyAuthenticationService.cs
+++ b/OpenSim/Services/AuthenticationService/WebkeyAuthenticationService.cs
@@ -49,6 +49,11 @@ namespace OpenSim.Services.AuthenticationService
49 private static readonly ILog m_log = 49 private static readonly ILog m_log =
50 LogManager.GetLogger( 50 LogManager.GetLogger(
51 MethodBase.GetCurrentMethod().DeclaringType); 51 MethodBase.GetCurrentMethod().DeclaringType);
52
53 public WebkeyAuthenticationService(IConfigSource config, IUserAccountService userService) :
54 base(config, userService)
55 {
56 }
52 57
53 public WebkeyAuthenticationService(IConfigSource config) : 58 public WebkeyAuthenticationService(IConfigSource config) :
54 base(config) 59 base(config)
diff --git a/OpenSim/Services/Connectors/Asset/AssetServicesConnector.cs b/OpenSim/Services/Connectors/Asset/AssetServicesConnector.cs
index e4c3eaf..2882906 100644
--- a/OpenSim/Services/Connectors/Asset/AssetServicesConnector.cs
+++ b/OpenSim/Services/Connectors/Asset/AssetServicesConnector.cs
@@ -30,6 +30,7 @@ using System;
30using System.Collections.Generic; 30using System.Collections.Generic;
31using System.IO; 31using System.IO;
32using System.Reflection; 32using System.Reflection;
33using System.Timers;
33using Nini.Config; 34using Nini.Config;
34using OpenSim.Framework; 35using OpenSim.Framework;
35using OpenSim.Framework.Console; 36using OpenSim.Framework.Console;
@@ -47,13 +48,15 @@ namespace OpenSim.Services.Connectors
47 48
48 private string m_ServerURI = String.Empty; 49 private string m_ServerURI = String.Empty;
49 private IImprovedAssetCache m_Cache = null; 50 private IImprovedAssetCache m_Cache = null;
50 51 private int m_retryCounter;
52 private Dictionary<int, List<AssetBase>> m_retryQueue = new Dictionary<int, List<AssetBase>>();
53 private Timer m_retryTimer;
51 private delegate void AssetRetrievedEx(AssetBase asset); 54 private delegate void AssetRetrievedEx(AssetBase asset);
52 55
53 // Keeps track of concurrent requests for the same asset, so that it's only loaded once. 56 // Keeps track of concurrent requests for the same asset, so that it's only loaded once.
54 // Maps: Asset ID -> Handlers which will be called when the asset has been loaded 57 // Maps: Asset ID -> Handlers which will be called when the asset has been loaded
55 private Dictionary<string, AssetRetrievedEx> m_AssetHandlers = new Dictionary<string, AssetRetrievedEx>(); 58 private Dictionary<string, AssetRetrievedEx> m_AssetHandlers = new Dictionary<string, AssetRetrievedEx>();
56 59 private Dictionary<string, string> m_UriMap = new Dictionary<string, string>();
57 60
58 public AssetServicesConnector() 61 public AssetServicesConnector()
59 { 62 {
@@ -81,13 +84,91 @@ namespace OpenSim.Services.Connectors
81 string serviceURI = assetConfig.GetString("AssetServerURI", 84 string serviceURI = assetConfig.GetString("AssetServerURI",
82 String.Empty); 85 String.Empty);
83 86
87 m_ServerURI = serviceURI;
88
84 if (serviceURI == String.Empty) 89 if (serviceURI == String.Empty)
85 { 90 {
86 m_log.Error("[ASSET CONNECTOR]: No Server URI named in section AssetService"); 91 m_log.Error("[ASSET CONNECTOR]: No Server URI named in section AssetService");
87 throw new Exception("Asset connector init error"); 92 throw new Exception("Asset connector init error");
88 } 93 }
89 94
90 m_ServerURI = serviceURI; 95
96 m_retryTimer = new Timer();
97 m_retryTimer.Elapsed += new ElapsedEventHandler(retryCheck);
98 m_retryTimer.Interval = 60000;
99
100 Uri serverUri = new Uri(m_ServerURI);
101
102 string groupHost = serverUri.Host;
103
104 for (int i = 0 ; i < 256 ; i++)
105 {
106 string prefix = i.ToString("x2");
107 groupHost = assetConfig.GetString("AssetServerHost_"+prefix, groupHost);
108
109 m_UriMap[prefix] = groupHost;
110 //m_log.DebugFormat("[ASSET]: Using {0} for prefix {1}", groupHost, prefix);
111 }
112 }
113
114 private string MapServer(string id)
115 {
116 UriBuilder serverUri = new UriBuilder(m_ServerURI);
117
118 string prefix = id.Substring(0, 2).ToLower();
119
120 string host = m_UriMap[prefix];
121
122 serverUri.Host = host;
123
124 // m_log.DebugFormat("[ASSET]: Using {0} for host name for prefix {1}", host, prefix);
125
126 return serverUri.Uri.AbsoluteUri;
127 }
128
129 protected void retryCheck(object source, ElapsedEventArgs e)
130 {
131 m_retryCounter++;
132 if (m_retryCounter > 60) m_retryCounter -= 60;
133 List<int> keys = new List<int>();
134 foreach (int a in m_retryQueue.Keys)
135 {
136 keys.Add(a);
137 }
138 foreach (int a in keys)
139 {
140 //We exponentially fall back on frequency until we reach one attempt per hour
141 //The net result is that we end up in the queue for roughly 24 hours..
142 //24 hours worth of assets could be a lot, so the hope is that the region admin
143 //will have gotten the asset connector back online quickly!
144
145 int timefactor = a ^ 2;
146 if (timefactor > 60)
147 {
148 timefactor = 60;
149 }
150
151 //First, find out if we care about this timefactor
152 if (timefactor % a == 0)
153 {
154 //Yes, we do!
155 List<AssetBase> retrylist = m_retryQueue[a];
156 m_retryQueue.Remove(a);
157
158 foreach(AssetBase ass in retrylist)
159 {
160 Store(ass); //Store my ass. This function will put it back in the dictionary if it fails
161 }
162 }
163 }
164
165 if (m_retryQueue.Count == 0)
166 {
167 //It might only be one tick per minute, but I have
168 //repented and abandoned my wasteful ways
169 m_retryCounter = 0;
170 m_retryTimer.Stop();
171 }
91 } 172 }
92 173
93 protected void SetCache(IImprovedAssetCache cache) 174 protected void SetCache(IImprovedAssetCache cache)
@@ -97,15 +178,13 @@ namespace OpenSim.Services.Connectors
97 178
98 public AssetBase Get(string id) 179 public AssetBase Get(string id)
99 { 180 {
100// m_log.DebugFormat("[ASSET SERVICE CONNECTOR]: Synchronous get request for {0}", id); 181 string uri = MapServer(id) + "/assets/" + id;
101
102 string uri = m_ServerURI + "/assets/" + id;
103 182
104 AssetBase asset = null; 183 AssetBase asset = null;
105 if (m_Cache != null) 184 if (m_Cache != null)
106 asset = m_Cache.Get(id); 185 asset = m_Cache.Get(id);
107 186
108 if (asset == null) 187 if (asset == null || asset.Data == null || asset.Data.Length == 0)
109 { 188 {
110 asset = SynchronousRestObjectRequester. 189 asset = SynchronousRestObjectRequester.
111 MakeRequest<int, AssetBase>("GET", uri, 0); 190 MakeRequest<int, AssetBase>("GET", uri, 0);
@@ -136,7 +215,7 @@ namespace OpenSim.Services.Connectors
136 return fullAsset.Metadata; 215 return fullAsset.Metadata;
137 } 216 }
138 217
139 string uri = m_ServerURI + "/assets/" + id + "/metadata"; 218 string uri = MapServer(id) + "/assets/" + id + "/metadata";
140 219
141 AssetMetadata asset = SynchronousRestObjectRequester. 220 AssetMetadata asset = SynchronousRestObjectRequester.
142 MakeRequest<int, AssetMetadata>("GET", uri, 0); 221 MakeRequest<int, AssetMetadata>("GET", uri, 0);
@@ -153,7 +232,7 @@ namespace OpenSim.Services.Connectors
153 return fullAsset.Data; 232 return fullAsset.Data;
154 } 233 }
155 234
156 RestClient rc = new RestClient(m_ServerURI); 235 RestClient rc = new RestClient(MapServer(id));
157 rc.AddResourcePath("assets"); 236 rc.AddResourcePath("assets");
158 rc.AddResourcePath(id); 237 rc.AddResourcePath(id);
159 rc.AddResourcePath("data"); 238 rc.AddResourcePath("data");
@@ -178,15 +257,13 @@ namespace OpenSim.Services.Connectors
178 257
179 public bool Get(string id, Object sender, AssetRetrieved handler) 258 public bool Get(string id, Object sender, AssetRetrieved handler)
180 { 259 {
181// m_log.DebugFormat("[ASSET SERVICE CONNECTOR]: Potentially asynchronous get request for {0}", id); 260 string uri = MapServer(id) + "/assets/" + id;
182
183 string uri = m_ServerURI + "/assets/" + id;
184 261
185 AssetBase asset = null; 262 AssetBase asset = null;
186 if (m_Cache != null) 263 if (m_Cache != null)
187 asset = m_Cache.Get(id); 264 asset = m_Cache.Get(id);
188 265
189 if (asset == null) 266 if (asset == null || asset.Data == null || asset.Data.Length == 0)
190 { 267 {
191 lock (m_AssetHandlers) 268 lock (m_AssetHandlers)
192 { 269 {
@@ -246,38 +323,95 @@ namespace OpenSim.Services.Connectors
246 323
247 public string Store(AssetBase asset) 324 public string Store(AssetBase asset)
248 { 325 {
249 if (asset.Temporary || asset.Local) 326 // Have to assign the asset ID here. This isn't likely to
327 // trigger since current callers don't pass emtpy IDs
328 // We need the asset ID to route the request to the proper
329 // cluster member, so we can't have the server assign one.
330 if (asset.ID == string.Empty)
250 { 331 {
251 if (m_Cache != null) 332 if (asset.FullID == UUID.Zero)
252 m_Cache.Cache(asset); 333 {
334 asset.FullID = UUID.Random();
335 }
336 asset.ID = asset.FullID.ToString();
337 }
338 else if (asset.FullID == UUID.Zero)
339 {
340 UUID uuid = UUID.Zero;
341 if (UUID.TryParse(asset.ID, out uuid))
342 {
343 asset.FullID = uuid;
344 }
345 else
346 {
347 asset.FullID = UUID.Random();
348 }
349 }
253 350
351 if (m_Cache != null)
352 m_Cache.Cache(asset);
353 if (asset.Temporary || asset.Local)
354 {
254 return asset.ID; 355 return asset.ID;
255 } 356 }
256 357
257 string uri = m_ServerURI + "/assets/"; 358 string uri = MapServer(asset.FullID.ToString()) + "/assets/";
258 359
259 string newID = string.Empty; 360 string newID = string.Empty;
260 try 361 try
261 { 362 {
262 newID = SynchronousRestObjectRequester. 363 newID = SynchronousRestObjectRequester.
263 MakeRequest<AssetBase, string>("POST", uri, asset); 364 MakeRequest<AssetBase, string>("POST", uri, asset, 25);
365 if (newID == null || newID == "")
366 {
367 newID = UUID.Zero.ToString();
368 }
264 } 369 }
265 catch (Exception e) 370 catch (Exception e)
266 { 371 {
267 m_log.WarnFormat("[ASSET CONNECTOR]: Unable to send asset {0} to asset server. Reason: {1}", asset.ID, e.Message); 372 newID = UUID.Zero.ToString();
268 } 373 }
269 374
270 if (newID != String.Empty) 375 if (newID == UUID.Zero.ToString())
271 { 376 {
272 // Placing this here, so that this work with old asset servers that don't send any reply back 377 //The asset upload failed, put it in a queue for later
273 // SynchronousRestObjectRequester returns somethins that is not an empty string 378 asset.UploadAttempts++;
274 if (newID != null) 379 if (asset.UploadAttempts > 30)
275 asset.ID = newID; 380 {
381 //By this stage we've been in the queue for a good few hours;
382 //We're going to drop the asset.
383 m_log.ErrorFormat("[Assets] Dropping asset {0} - Upload has been in the queue for too long.", asset.ID.ToString());
384 }
385 else
386 {
387 if (!m_retryQueue.ContainsKey(asset.UploadAttempts))
388 {
389 m_retryQueue.Add(asset.UploadAttempts, new List<AssetBase>());
390 }
391 List<AssetBase> m_queue = m_retryQueue[asset.UploadAttempts];
392 m_queue.Add(asset);
393 m_log.WarnFormat("[Assets] Upload failed: {0} - Requeuing asset for another run.", asset.ID.ToString());
394 m_retryTimer.Start();
395 }
396 }
397 else
398 {
399 if (asset.UploadAttempts > 0)
400 {
401 m_log.InfoFormat("[Assets] Upload of {0} succeeded after {1} failed attempts", asset.ID.ToString(), asset.UploadAttempts.ToString());
402 }
403 if (newID != String.Empty)
404 {
405 // Placing this here, so that this work with old asset servers that don't send any reply back
406 // SynchronousRestObjectRequester returns somethins that is not an empty string
407 if (newID != null)
408 asset.ID = newID;
276 409
277 if (m_Cache != null) 410 if (m_Cache != null)
278 m_Cache.Cache(asset); 411 m_Cache.Cache(asset);
412 }
279 } 413 }
280 return newID; 414 return asset.ID;
281 } 415 }
282 416
283 public bool UpdateContent(string id, byte[] data) 417 public bool UpdateContent(string id, byte[] data)
@@ -298,7 +432,7 @@ namespace OpenSim.Services.Connectors
298 } 432 }
299 asset.Data = data; 433 asset.Data = data;
300 434
301 string uri = m_ServerURI + "/assets/" + id; 435 string uri = MapServer(id) + "/assets/" + id;
302 436
303 if (SynchronousRestObjectRequester. 437 if (SynchronousRestObjectRequester.
304 MakeRequest<AssetBase, bool>("POST", uri, asset)) 438 MakeRequest<AssetBase, bool>("POST", uri, asset))
@@ -313,7 +447,7 @@ namespace OpenSim.Services.Connectors
313 447
314 public bool Delete(string id) 448 public bool Delete(string id)
315 { 449 {
316 string uri = m_ServerURI + "/assets/" + id; 450 string uri = MapServer(id) + "/assets/" + id;
317 451
318 if (SynchronousRestObjectRequester. 452 if (SynchronousRestObjectRequester.
319 MakeRequest<int, bool>("DELETE", uri, 0)) 453 MakeRequest<int, bool>("DELETE", uri, 0))
@@ -326,4 +460,4 @@ namespace OpenSim.Services.Connectors
326 return false; 460 return false;
327 } 461 }
328 } 462 }
329} \ No newline at end of file 463}
diff --git a/OpenSim/Services/Connectors/Grid/GridServicesConnector.cs b/OpenSim/Services/Connectors/Grid/GridServicesConnector.cs
index 34ed0d7..f982cc1 100644
--- a/OpenSim/Services/Connectors/Grid/GridServicesConnector.cs
+++ b/OpenSim/Services/Connectors/Grid/GridServicesConnector.cs
@@ -48,6 +48,9 @@ namespace OpenSim.Services.Connectors
48 48
49 private string m_ServerURI = String.Empty; 49 private string m_ServerURI = String.Empty;
50 50
51 private ExpiringCache<ulong, GridRegion> m_regionCache =
52 new ExpiringCache<ulong, GridRegion>();
53
51 public GridServicesConnector() 54 public GridServicesConnector()
52 { 55 {
53 } 56 }
@@ -272,6 +275,11 @@ namespace OpenSim.Services.Connectors
272 275
273 public GridRegion GetRegionByPosition(UUID scopeID, int x, int y) 276 public GridRegion GetRegionByPosition(UUID scopeID, int x, int y)
274 { 277 {
278 ulong regionHandle = Util.UIntsToLong((uint)x, (uint)y);
279
280 if (m_regionCache.Contains(regionHandle))
281 return (GridRegion)m_regionCache[regionHandle];
282
275 Dictionary<string, object> sendData = new Dictionary<string, object>(); 283 Dictionary<string, object> sendData = new Dictionary<string, object>();
276 284
277 sendData["SCOPEID"] = scopeID.ToString(); 285 sendData["SCOPEID"] = scopeID.ToString();
@@ -313,6 +321,8 @@ namespace OpenSim.Services.Connectors
313 else 321 else
314 m_log.DebugFormat("[GRID CONNECTOR]: GetRegionByPosition received null reply"); 322 m_log.DebugFormat("[GRID CONNECTOR]: GetRegionByPosition received null reply");
315 323
324 m_regionCache.Add(regionHandle, rinfo, TimeSpan.FromSeconds(600));
325
316 return rinfo; 326 return rinfo;
317 } 327 }
318 328
diff --git a/OpenSim/Services/Connectors/Hypergrid/GatekeeperServiceConnector.cs b/OpenSim/Services/Connectors/Hypergrid/GatekeeperServiceConnector.cs
index 19dffc3..4cd933c 100644
--- a/OpenSim/Services/Connectors/Hypergrid/GatekeeperServiceConnector.cs
+++ b/OpenSim/Services/Connectors/Hypergrid/GatekeeperServiceConnector.cs
@@ -158,6 +158,7 @@ namespace OpenSim.Services.Connectors.Hypergrid
158 try 158 try
159 { 159 {
160 WebClient c = new WebClient(); 160 WebClient c = new WebClient();
161 //m_log.Debug("JPEG: " + imageURL);
161 string name = regionID.ToString(); 162 string name = regionID.ToString();
162 filename = Path.Combine(storagePath, name + ".jpg"); 163 filename = Path.Combine(storagePath, name + ".jpg");
163 m_log.DebugFormat("[GATEKEEPER SERVICE CONNECTOR]: Map image at {0}, cached at {1}", imageURL, filename); 164 m_log.DebugFormat("[GATEKEEPER SERVICE CONNECTOR]: Map image at {0}, cached at {1}", imageURL, filename);
@@ -186,11 +187,10 @@ namespace OpenSim.Services.Connectors.Hypergrid
186 187
187 ass.Data = imageData; 188 ass.Data = imageData;
188 189
189 mapTile = ass.FullID;
190
191 // finally
192 m_AssetService.Store(ass); 190 m_AssetService.Store(ass);
193 191
192 // finally
193 mapTile = ass.FullID;
194 } 194 }
195 catch // LEGIT: Catching problems caused by OpenJPEG p/invoke 195 catch // LEGIT: Catching problems caused by OpenJPEG p/invoke
196 { 196 {
diff --git a/OpenSim/Services/Connectors/Hypergrid/UserAgentServiceConnector.cs b/OpenSim/Services/Connectors/Hypergrid/UserAgentServiceConnector.cs
index 2f263ae..c542c29 100644
--- a/OpenSim/Services/Connectors/Hypergrid/UserAgentServiceConnector.cs
+++ b/OpenSim/Services/Connectors/Hypergrid/UserAgentServiceConnector.cs
@@ -98,8 +98,6 @@ namespace OpenSim.Services.Connectors.Hypergrid
98 throw new Exception("UserAgent connector init error"); 98 throw new Exception("UserAgent connector init error");
99 } 99 }
100 m_ServerURL = serviceURI; 100 m_ServerURL = serviceURI;
101 if (!m_ServerURL.EndsWith("/"))
102 m_ServerURL += "/";
103 101
104 m_log.DebugFormat("[USER AGENT CONNECTOR]: UserAgentServiceConnector started for {0}", m_ServerURL); 102 m_log.DebugFormat("[USER AGENT CONNECTOR]: UserAgentServiceConnector started for {0}", m_ServerURL);
105 } 103 }
diff --git a/OpenSim/Services/Connectors/Land/LandServicesConnector.cs b/OpenSim/Services/Connectors/Land/LandServicesConnector.cs
index 30a73a4..833e22a 100644
--- a/OpenSim/Services/Connectors/Land/LandServicesConnector.cs
+++ b/OpenSim/Services/Connectors/Land/LandServicesConnector.cs
@@ -130,4 +130,4 @@ namespace OpenSim.Services.Connectors
130 return landData; 130 return landData;
131 } 131 }
132 } 132 }
133} \ No newline at end of file 133}
diff --git a/OpenSim/Services/Connectors/Presence/PresenceServicesConnector.cs b/OpenSim/Services/Connectors/Presence/PresenceServicesConnector.cs
index f7d8c53..378aab6 100644
--- a/OpenSim/Services/Connectors/Presence/PresenceServicesConnector.cs
+++ b/OpenSim/Services/Connectors/Presence/PresenceServicesConnector.cs
@@ -304,6 +304,17 @@ namespace OpenSim.Services.Connectors
304 { 304 {
305 pinfo = new PresenceInfo((Dictionary<string, object>)replyData["result"]); 305 pinfo = new PresenceInfo((Dictionary<string, object>)replyData["result"]);
306 } 306 }
307 else
308 {
309 if (replyData["result"].ToString() == "null")
310 return null;
311
312 m_log.DebugFormat("[PRESENCE CONNECTOR]: Invalid reply (result not dictionary) received from presence server when querying for sessionID {0}", sessionID.ToString());
313 }
314 }
315 else
316 {
317 m_log.DebugFormat("[PRESENCE CONNECTOR]: Invalid reply received from presence server when querying for sessionID {0}", sessionID.ToString());
307 } 318 }
308 319
309 return pinfo; 320 return pinfo;
diff --git a/OpenSim/Services/Connectors/SimianGrid/SimianGridServiceConnector.cs b/OpenSim/Services/Connectors/SimianGrid/SimianGridServiceConnector.cs
index 67a65ff..0e4d794 100644
--- a/OpenSim/Services/Connectors/SimianGrid/SimianGridServiceConnector.cs
+++ b/OpenSim/Services/Connectors/SimianGrid/SimianGridServiceConnector.cs
@@ -28,6 +28,8 @@
28using System; 28using System;
29using System.Collections.Generic; 29using System.Collections.Generic;
30using System.Collections.Specialized; 30using System.Collections.Specialized;
31using System.Drawing;
32using System.Drawing.Imaging;
31using System.IO; 33using System.IO;
32using System.Net; 34using System.Net;
33using System.Reflection; 35using System.Reflection;
@@ -100,6 +102,15 @@ namespace OpenSim.Services.Connectors.SimianGrid
100 102
101 public string RegisterRegion(UUID scopeID, GridRegion regionInfo) 103 public string RegisterRegion(UUID scopeID, GridRegion regionInfo)
102 { 104 {
105 IPEndPoint ext = regionInfo.ExternalEndPoint;
106 if (ext == null) return "Region registration for " + regionInfo.RegionName + " failed: Could not resolve EndPoint";
107 // Generate and upload our map tile in PNG format to the SimianGrid AddMapTile service
108// Scene scene;
109// if (m_scenes.TryGetValue(regionInfo.RegionID, out scene))
110// UploadMapTile(scene);
111// else
112// m_log.Warn("Registering region " + regionInfo.RegionName + " (" + regionInfo.RegionID + ") that we are not tracking");
113
103 Vector3d minPosition = new Vector3d(regionInfo.RegionLocX, regionInfo.RegionLocY, 0.0); 114 Vector3d minPosition = new Vector3d(regionInfo.RegionLocX, regionInfo.RegionLocY, 0.0);
104 Vector3d maxPosition = minPosition + new Vector3d(Constants.RegionSize, Constants.RegionSize, 4096.0); 115 Vector3d maxPosition = minPosition + new Vector3d(Constants.RegionSize, Constants.RegionSize, 4096.0);
105 116
@@ -108,7 +119,7 @@ namespace OpenSim.Services.Connectors.SimianGrid
108 { "ServerURI", OSD.FromString(regionInfo.ServerURI) }, 119 { "ServerURI", OSD.FromString(regionInfo.ServerURI) },
109 { "InternalAddress", OSD.FromString(regionInfo.InternalEndPoint.Address.ToString()) }, 120 { "InternalAddress", OSD.FromString(regionInfo.InternalEndPoint.Address.ToString()) },
110 { "InternalPort", OSD.FromInteger(regionInfo.InternalEndPoint.Port) }, 121 { "InternalPort", OSD.FromInteger(regionInfo.InternalEndPoint.Port) },
111 { "ExternalAddress", OSD.FromString(regionInfo.ExternalEndPoint.Address.ToString()) }, 122 { "ExternalAddress", OSD.FromString(ext.Address.ToString()) },
112 { "ExternalPort", OSD.FromInteger(regionInfo.ExternalEndPoint.Port) }, 123 { "ExternalPort", OSD.FromInteger(regionInfo.ExternalEndPoint.Port) },
113 { "MapTexture", OSD.FromUUID(regionInfo.TerrainImage) }, 124 { "MapTexture", OSD.FromUUID(regionInfo.TerrainImage) },
114 { "Access", OSD.FromInteger(regionInfo.Access) }, 125 { "Access", OSD.FromInteger(regionInfo.Access) },
@@ -399,6 +410,83 @@ namespace OpenSim.Services.Connectors.SimianGrid
399 410
400 #endregion IGridService 411 #endregion IGridService
401 412
413 private void UploadMapTile(IScene scene)
414 {
415 string errorMessage = null;
416
417 // Create a PNG map tile and upload it to the AddMapTile API
418 byte[] pngData = Utils.EmptyBytes;
419 IMapImageGenerator tileGenerator = scene.RequestModuleInterface<IMapImageGenerator>();
420 if (tileGenerator == null)
421 {
422 m_log.Warn("[SIMIAN GRID CONNECTOR]: Cannot upload PNG map tile without an IMapImageGenerator");
423 return;
424 }
425
426 using (Image mapTile = tileGenerator.CreateMapTile())
427 {
428 using (MemoryStream stream = new MemoryStream())
429 {
430 mapTile.Save(stream, ImageFormat.Png);
431 pngData = stream.ToArray();
432 }
433 }
434
435 List<MultipartForm.Element> postParameters = new List<MultipartForm.Element>()
436 {
437 new MultipartForm.Parameter("X", scene.RegionInfo.RegionLocX.ToString()),
438 new MultipartForm.Parameter("Y", scene.RegionInfo.RegionLocY.ToString()),
439 new MultipartForm.File("Tile", "tile.png", "image/png", pngData)
440 };
441
442 // Make the remote storage request
443 try
444 {
445 HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(m_ServerURI);
446
447 HttpWebResponse response = MultipartForm.Post(request, postParameters);
448 using (Stream responseStream = response.GetResponseStream())
449 {
450 string responseStr = null;
451
452 try
453 {
454 responseStr = responseStream.GetStreamString();
455 OSD responseOSD = OSDParser.Deserialize(responseStr);
456 if (responseOSD.Type == OSDType.Map)
457 {
458 OSDMap responseMap = (OSDMap)responseOSD;
459 if (responseMap["Success"].AsBoolean())
460 m_log.Info("[SIMIAN GRID CONNECTOR]: Uploaded " + pngData.Length + " byte PNG map tile to AddMapTile");
461 else
462 errorMessage = "Upload failed: " + responseMap["Message"].AsString();
463 }
464 else
465 {
466 errorMessage = "Response format was invalid:\n" + responseStr;
467 }
468 }
469 catch (Exception ex)
470 {
471 if (!String.IsNullOrEmpty(responseStr))
472 errorMessage = "Failed to parse the response:\n" + responseStr;
473 else
474 errorMessage = "Failed to retrieve the response: " + ex.Message;
475 }
476 }
477 }
478 catch (WebException ex)
479 {
480 errorMessage = ex.Message;
481 }
482
483 if (!String.IsNullOrEmpty(errorMessage))
484 {
485 m_log.WarnFormat("[SIMIAN GRID CONNECTOR]: Failed to store {0} byte PNG map tile for {1}: {2}",
486 pngData.Length, scene.RegionInfo.RegionName, errorMessage.Replace('\n', ' '));
487 }
488 }
489
402 private GridRegion GetNearestRegion(Vector3d position, bool onlyEnabled) 490 private GridRegion GetNearestRegion(Vector3d position, bool onlyEnabled)
403 { 491 {
404 NameValueCollection requestArgs = new NameValueCollection 492 NameValueCollection requestArgs = new NameValueCollection
diff --git a/OpenSim/Services/Connectors/SimianGrid/SimianUserAccountServiceConnector.cs b/OpenSim/Services/Connectors/SimianGrid/SimianUserAccountServiceConnector.cs
index 4350749..f38ebe8 100644
--- a/OpenSim/Services/Connectors/SimianGrid/SimianUserAccountServiceConnector.cs
+++ b/OpenSim/Services/Connectors/SimianGrid/SimianUserAccountServiceConnector.cs
@@ -191,6 +191,11 @@ namespace OpenSim.Services.Connectors.SimianGrid
191 return accounts; 191 return accounts;
192 } 192 }
193 193
194 public List<UserAccount> GetUserAccountsWhere(UUID scopeID, string query)
195 {
196 return null;
197 }
198
194 public bool StoreUserAccount(UserAccount data) 199 public bool StoreUserAccount(UserAccount data)
195 { 200 {
196// m_log.InfoFormat("[SIMIAN ACCOUNT CONNECTOR]: Storing user account for " + data.Name); 201// m_log.InfoFormat("[SIMIAN ACCOUNT CONNECTOR]: Storing user account for " + data.Name);
diff --git a/OpenSim/Services/Connectors/Simulation/SimulationDataService.cs b/OpenSim/Services/Connectors/Simulation/SimulationDataService.cs
index c9cbbfa..6db830b 100644
--- a/OpenSim/Services/Connectors/Simulation/SimulationDataService.cs
+++ b/OpenSim/Services/Connectors/Simulation/SimulationDataService.cs
@@ -164,5 +164,9 @@ namespace OpenSim.Services.Connectors
164 m_database.RemoveRegionEnvironmentSettings(regionUUID); 164 m_database.RemoveRegionEnvironmentSettings(regionUUID);
165 } 165 }
166 166
167 public UUID[] GetObjectIDs(UUID regionID)
168 {
169 return m_database.GetObjectIDs(regionID);
170 }
167 } 171 }
168} 172}
diff --git a/OpenSim/Services/Connectors/Simulation/SimulationServiceConnector.cs b/OpenSim/Services/Connectors/Simulation/SimulationServiceConnector.cs
index 95c4f87..cd93386 100644
--- a/OpenSim/Services/Connectors/Simulation/SimulationServiceConnector.cs
+++ b/OpenSim/Services/Connectors/Simulation/SimulationServiceConnector.cs
@@ -359,6 +359,10 @@ namespace OpenSim.Services.Connectors.Simulation
359 return false; 359 return false;
360 } 360 }
361 361
362 OSDMap resp = (OSDMap)result["_Result"];
363 success = resp["success"].AsBoolean();
364 reason = resp["reason"].AsString();
365
362 return success; 366 return success;
363 } 367 }
364 catch (Exception e) 368 catch (Exception e)
@@ -387,9 +391,7 @@ namespace OpenSim.Services.Connectors.Simulation
387 return true; 391 return true;
388 } 392 }
389 393
390 /// <summary> 394 private bool CloseAgent(GridRegion destination, UUID id, bool ChildOnly)
391 /// </summary>
392 public bool CloseAgent(GridRegion destination, UUID id)
393 { 395 {
394// m_log.DebugFormat("[REMOTE SIMULATION CONNECTOR]: CloseAgent start"); 396// m_log.DebugFormat("[REMOTE SIMULATION CONNECTOR]: CloseAgent start");
395 397
@@ -407,6 +409,16 @@ namespace OpenSim.Services.Connectors.Simulation
407 return true; 409 return true;
408 } 410 }
409 411
412 public bool CloseChildAgent(GridRegion destination, UUID id)
413 {
414 return CloseAgent(destination, id, true);
415 }
416
417 public bool CloseAgent(GridRegion destination, UUID id)
418 {
419 return CloseAgent(destination, id, false);
420 }
421
410 #endregion Agents 422 #endregion Agents
411 423
412 #region Objects 424 #region Objects
@@ -444,11 +456,14 @@ namespace OpenSim.Services.Connectors.Simulation
444 args["destination_name"] = OSD.FromString(destination.RegionName); 456 args["destination_name"] = OSD.FromString(destination.RegionName);
445 args["destination_uuid"] = OSD.FromString(destination.RegionID.ToString()); 457 args["destination_uuid"] = OSD.FromString(destination.RegionID.ToString());
446 458
447 WebUtil.PostToService(uri, args, 40000); 459 OSDMap response = WebUtil.PostToService(uri, args, 40000);
460 if (response["Success"] == "False")
461 return false;
448 } 462 }
449 catch (Exception e) 463 catch (Exception e)
450 { 464 {
451 m_log.WarnFormat("[REMOTE SIMULATION CONNECTOR] CreateObject failed with exception; {0}",e.ToString()); 465 m_log.WarnFormat("[REMOTE SIMULATION CONNECTOR] CreateObject failed with exception; {0}",e.ToString());
466 return false;
452 } 467 }
453 468
454 return true; 469 return true;
diff --git a/OpenSim/Services/Connectors/UserAccounts/UserAccountServicesConnector.cs b/OpenSim/Services/Connectors/UserAccounts/UserAccountServicesConnector.cs
index 6d5ce28..5731e2f 100644
--- a/OpenSim/Services/Connectors/UserAccounts/UserAccountServicesConnector.cs
+++ b/OpenSim/Services/Connectors/UserAccounts/UserAccountServicesConnector.cs
@@ -187,6 +187,11 @@ namespace OpenSim.Services.Connectors
187 return accounts; 187 return accounts;
188 } 188 }
189 189
190 public List<UserAccount> GetUserAccountsWhere(UUID scopeID, string where)
191 {
192 return null; // Not implemented for regions
193 }
194
190 public virtual bool StoreUserAccount(UserAccount data) 195 public virtual bool StoreUserAccount(UserAccount data)
191 { 196 {
192 Dictionary<string, object> sendData = new Dictionary<string, object>(); 197 Dictionary<string, object> sendData = new Dictionary<string, object>();
diff --git a/OpenSim/Services/HypergridService/UserAccountCache.cs b/OpenSim/Services/HypergridService/UserAccountCache.cs
index 65f9dd5..e0a3e61 100644
--- a/OpenSim/Services/HypergridService/UserAccountCache.cs
+++ b/OpenSim/Services/HypergridService/UserAccountCache.cs
@@ -90,6 +90,11 @@ namespace OpenSim.Services.HypergridService
90 return null; 90 return null;
91 } 91 }
92 92
93 public List<UserAccount> GetUserAccountsWhere(UUID scopeID, string query)
94 {
95 return null;
96 }
97
93 public List<UserAccount> GetUserAccounts(UUID scopeID, string query) 98 public List<UserAccount> GetUserAccounts(UUID scopeID, string query)
94 { 99 {
95 return null; 100 return null;
diff --git a/OpenSim/Services/HypergridService/UserAgentService.cs b/OpenSim/Services/HypergridService/UserAgentService.cs
index 49c7f89..a49993c 100644
--- a/OpenSim/Services/HypergridService/UserAgentService.cs
+++ b/OpenSim/Services/HypergridService/UserAgentService.cs
@@ -313,13 +313,11 @@ namespace OpenSim.Services.HypergridService
313 313
314 if (m_TravelingAgents.ContainsKey(sessionID)) 314 if (m_TravelingAgents.ContainsKey(sessionID))
315 { 315 {
316 bool result = m_TravelingAgents[sessionID].ClientIPAddress == reportedIP || 316 m_log.DebugFormat("[USER AGENT SERVICE]: Comparing with login IP {0} and MyIP {1}",
317 m_TravelingAgents[sessionID].MyIpAddress == reportedIP; // NATed 317 m_TravelingAgents[sessionID].ClientIPAddress, m_TravelingAgents[sessionID].MyIpAddress);
318
319 m_log.DebugFormat("[USER AGENT SERVICE]: Comparing {0} with login IP {1} and MyIP {1}; result is {3}",
320 reportedIP, m_TravelingAgents[sessionID].ClientIPAddress, m_TravelingAgents[sessionID].MyIpAddress, result);
321 318
322 return result; 319 return m_TravelingAgents[sessionID].ClientIPAddress == reportedIP ||
320 m_TravelingAgents[sessionID].MyIpAddress == reportedIP; // NATed
323 } 321 }
324 322
325 return false; 323 return false;
diff --git a/OpenSim/Services/Interfaces/IAttachmentsService.cs b/OpenSim/Services/Interfaces/IAttachmentsService.cs
new file mode 100644
index 0000000..bdde369
--- /dev/null
+++ b/OpenSim/Services/Interfaces/IAttachmentsService.cs
@@ -0,0 +1,17 @@
1////////////////////////////////////////////////////////////////
2//
3// (c) 2009, 2010 Careminster Limited and Melanie Thielker
4//
5// All rights reserved
6//
7using System;
8using Nini.Config;
9
10namespace OpenSim.Services.Interfaces
11{
12 public interface IAttachmentsService
13 {
14 string Get(string id);
15 void Store(string id, string data);
16 }
17}
diff --git a/OpenSim/Services/Interfaces/IAvatarService.cs b/OpenSim/Services/Interfaces/IAvatarService.cs
index cda7113..8412c35 100644
--- a/OpenSim/Services/Interfaces/IAvatarService.cs
+++ b/OpenSim/Services/Interfaces/IAvatarService.cs
@@ -162,10 +162,16 @@ namespace OpenSim.Services.Interfaces
162 } 162 }
163 163
164 // Visual Params 164 // Visual Params
165 string[] vps = new string[AvatarAppearance.VISUALPARAM_COUNT]; 165 // string[] vps = new string[AvatarAppearance.VISUALPARAM_COUNT];
166 // byte[] binary = appearance.VisualParams;
167
168 // for (int i = 0 ; i < AvatarAppearance.VISUALPARAM_COUNT ; i++)
169
170
166 byte[] binary = appearance.VisualParams; 171 byte[] binary = appearance.VisualParams;
172 string[] vps = new string[binary.Length];
167 173
168 for (int i = 0 ; i < AvatarAppearance.VISUALPARAM_COUNT ; i++) 174 for (int i = 0; i < binary.Length; i++)
169 { 175 {
170 vps[i] = binary[i].ToString(); 176 vps[i] = binary[i].ToString();
171 } 177 }
@@ -265,10 +271,14 @@ namespace OpenSim.Services.Interfaces
265 if (Data.ContainsKey("VisualParams")) 271 if (Data.ContainsKey("VisualParams"))
266 { 272 {
267 string[] vps = Data["VisualParams"].Split(new char[] {','}); 273 string[] vps = Data["VisualParams"].Split(new char[] {','});
268 byte[] binary = new byte[AvatarAppearance.VISUALPARAM_COUNT]; 274 // byte[] binary = new byte[AvatarAppearance.VISUALPARAM_COUNT];
275
276 // for (int i = 0 ; i < vps.Length && i < binary.Length ; i++)
277 byte[] binary = new byte[vps.Length];
278
279 for (int i = 0; i < vps.Length; i++)
269 280
270 for (int i = 0 ; i < vps.Length && i < binary.Length ; i++) 281 binary[i] = (byte)Convert.ToInt32(vps[i]);
271 binary[i] = (byte)Convert.ToInt32(vps[i]);
272 282
273 appearance.VisualParams = binary; 283 appearance.VisualParams = binary;
274 } 284 }
diff --git a/OpenSim/Services/Interfaces/IGridService.cs b/OpenSim/Services/Interfaces/IGridService.cs
index d809996..cdcb961 100644
--- a/OpenSim/Services/Interfaces/IGridService.cs
+++ b/OpenSim/Services/Interfaces/IGridService.cs
@@ -324,9 +324,13 @@ namespace OpenSim.Services.Interfaces
324 } 324 }
325 catch (SocketException e) 325 catch (SocketException e)
326 { 326 {
327 throw new Exception( 327 /*throw new Exception(
328 "Unable to resolve local hostname " + m_externalHostName + " innerException of type '" + 328 "Unable to resolve local hostname " + m_externalHostName + " innerException of type '" +
329 e + "' attached to this exception", e); 329 e + "' attached to this exception", e);*/
330 // Don't throw a fatal exception here, instead, return Null and handle it in the caller.
331 // Reason is, on systems such as OSgrid it has occured that known hostnames stop
332 // resolving and thus make surrounding regions crash out with this exception.
333 return null;
330 } 334 }
331 335
332 return new IPEndPoint(ia, m_internalEndPoint.Port); 336 return new IPEndPoint(ia, m_internalEndPoint.Port);
@@ -385,6 +389,12 @@ namespace OpenSim.Services.Interfaces
385 if (kvp.ContainsKey("regionName")) 389 if (kvp.ContainsKey("regionName"))
386 RegionName = (string)kvp["regionName"]; 390 RegionName = (string)kvp["regionName"];
387 391
392 if (kvp.ContainsKey("access"))
393 {
394 byte access = Convert.ToByte((string)kvp["access"]);
395 Maturity = (int)Util.ConvertAccessLevelToMaturity(access);
396 }
397
388 if (kvp.ContainsKey("serverIP")) 398 if (kvp.ContainsKey("serverIP"))
389 { 399 {
390 //int port = 0; 400 //int port = 0;
diff --git a/OpenSim/Services/Interfaces/ISimulationService.cs b/OpenSim/Services/Interfaces/ISimulationService.cs
index 4e52532..d9f242b 100644
--- a/OpenSim/Services/Interfaces/ISimulationService.cs
+++ b/OpenSim/Services/Interfaces/ISimulationService.cs
@@ -90,6 +90,14 @@ namespace OpenSim.Services.Interfaces
90 bool ReleaseAgent(UUID originRegion, UUID id, string uri); 90 bool ReleaseAgent(UUID originRegion, UUID id, string uri);
91 91
92 /// <summary> 92 /// <summary>
93 /// Close child agent.
94 /// </summary>
95 /// <param name="regionHandle"></param>
96 /// <param name="id"></param>
97 /// <returns></returns>
98 bool CloseChildAgent(GridRegion destination, UUID id);
99
100 /// <summary>
93 /// Close agent. 101 /// Close agent.
94 /// </summary> 102 /// </summary>
95 /// <param name="regionHandle"></param> 103 /// <param name="regionHandle"></param>
diff --git a/OpenSim/Services/Interfaces/IUserAccountService.cs b/OpenSim/Services/Interfaces/IUserAccountService.cs
index 1b85980..6d5d2a0 100644
--- a/OpenSim/Services/Interfaces/IUserAccountService.cs
+++ b/OpenSim/Services/Interfaces/IUserAccountService.cs
@@ -91,6 +91,7 @@ namespace OpenSim.Services.Interfaces
91 public int UserLevel; 91 public int UserLevel;
92 public int UserFlags; 92 public int UserFlags;
93 public string UserTitle; 93 public string UserTitle;
94 public string UserCountry;
94 public Boolean LocalToGrid = true; 95 public Boolean LocalToGrid = true;
95 96
96 public Dictionary<string, object> ServiceURLs; 97 public Dictionary<string, object> ServiceURLs;
@@ -120,6 +121,8 @@ namespace OpenSim.Services.Interfaces
120 UserFlags = Convert.ToInt32(kvp["UserFlags"].ToString()); 121 UserFlags = Convert.ToInt32(kvp["UserFlags"].ToString());
121 if (kvp.ContainsKey("UserTitle")) 122 if (kvp.ContainsKey("UserTitle"))
122 UserTitle = kvp["UserTitle"].ToString(); 123 UserTitle = kvp["UserTitle"].ToString();
124 if (kvp.ContainsKey("UserCountry"))
125 UserCountry = kvp["UserCountry"].ToString();
123 if (kvp.ContainsKey("LocalToGrid")) 126 if (kvp.ContainsKey("LocalToGrid"))
124 Boolean.TryParse(kvp["LocalToGrid"].ToString(), out LocalToGrid); 127 Boolean.TryParse(kvp["LocalToGrid"].ToString(), out LocalToGrid);
125 128
@@ -155,6 +158,7 @@ namespace OpenSim.Services.Interfaces
155 result["UserLevel"] = UserLevel.ToString(); 158 result["UserLevel"] = UserLevel.ToString();
156 result["UserFlags"] = UserFlags.ToString(); 159 result["UserFlags"] = UserFlags.ToString();
157 result["UserTitle"] = UserTitle; 160 result["UserTitle"] = UserTitle;
161 result["UserCountry"] = UserCountry;
158 result["LocalToGrid"] = LocalToGrid.ToString(); 162 result["LocalToGrid"] = LocalToGrid.ToString();
159 163
160 string str = string.Empty; 164 string str = string.Empty;
@@ -182,6 +186,7 @@ namespace OpenSim.Services.Interfaces
182 /// <param name="query"></param> 186 /// <param name="query"></param>
183 /// <returns></returns> 187 /// <returns></returns>
184 List<UserAccount> GetUserAccounts(UUID scopeID, string query); 188 List<UserAccount> GetUserAccounts(UUID scopeID, string query);
189 List<UserAccount> GetUserAccountsWhere(UUID scopeID, string where);
185 190
186 /// <summary> 191 /// <summary>
187 /// Store the data given, wich replaces the stored data, therefore must be complete. 192 /// Store the data given, wich replaces the stored data, therefore must be complete.
diff --git a/OpenSim/Services/LLLoginService/LLLoginResponse.cs b/OpenSim/Services/LLLoginService/LLLoginResponse.cs
index 9ec744f..a4b3cbd 100644
--- a/OpenSim/Services/LLLoginService/LLLoginResponse.cs
+++ b/OpenSim/Services/LLLoginService/LLLoginResponse.cs
@@ -55,6 +55,7 @@ namespace OpenSim.Services.LLLoginService
55 public static LLFailedLoginResponse InventoryProblem; 55 public static LLFailedLoginResponse InventoryProblem;
56 public static LLFailedLoginResponse DeadRegionProblem; 56 public static LLFailedLoginResponse DeadRegionProblem;
57 public static LLFailedLoginResponse LoginBlockedProblem; 57 public static LLFailedLoginResponse LoginBlockedProblem;
58 public static LLFailedLoginResponse UnverifiedAccountProblem;
58 public static LLFailedLoginResponse AlreadyLoggedInProblem; 59 public static LLFailedLoginResponse AlreadyLoggedInProblem;
59 public static LLFailedLoginResponse InternalError; 60 public static LLFailedLoginResponse InternalError;
60 61
@@ -75,6 +76,10 @@ namespace OpenSim.Services.LLLoginService
75 LoginBlockedProblem = new LLFailedLoginResponse("presence", 76 LoginBlockedProblem = new LLFailedLoginResponse("presence",
76 "Logins are currently restricted. Please try again later.", 77 "Logins are currently restricted. Please try again later.",
77 "false"); 78 "false");
79 UnverifiedAccountProblem = new LLFailedLoginResponse("presence",
80 "Your account has not yet been verified. Please check " +
81 "your email and click the provided link.",
82 "false");
78 AlreadyLoggedInProblem = new LLFailedLoginResponse("presence", 83 AlreadyLoggedInProblem = new LLFailedLoginResponse("presence",
79 "You appear to be already logged in. " + 84 "You appear to be already logged in. " +
80 "If this is not the case please wait for your session to timeout. " + 85 "If this is not the case please wait for your session to timeout. " +
@@ -375,6 +380,7 @@ namespace OpenSim.Services.LLLoginService
375 private void FillOutRegionData(GridRegion destination) 380 private void FillOutRegionData(GridRegion destination)
376 { 381 {
377 IPEndPoint endPoint = destination.ExternalEndPoint; 382 IPEndPoint endPoint = destination.ExternalEndPoint;
383 if (endPoint == null) return;
378 SimAddress = endPoint.Address.ToString(); 384 SimAddress = endPoint.Address.ToString();
379 SimPort = (uint)endPoint.Port; 385 SimPort = (uint)endPoint.Port;
380 RegionX = (uint)destination.RegionLocX; 386 RegionX = (uint)destination.RegionLocX;
diff --git a/OpenSim/Services/LLLoginService/LLLoginService.cs b/OpenSim/Services/LLLoginService/LLLoginService.cs
index 9acba11..06e05a9 100644
--- a/OpenSim/Services/LLLoginService/LLLoginService.cs
+++ b/OpenSim/Services/LLLoginService/LLLoginService.cs
@@ -140,7 +140,8 @@ namespace OpenSim.Services.LLLoginService
140 Object[] args = new Object[] { config }; 140 Object[] args = new Object[] { config };
141 m_UserAccountService = ServerUtils.LoadPlugin<IUserAccountService>(accountService, args); 141 m_UserAccountService = ServerUtils.LoadPlugin<IUserAccountService>(accountService, args);
142 m_GridUserService = ServerUtils.LoadPlugin<IGridUserService>(gridUserService, args); 142 m_GridUserService = ServerUtils.LoadPlugin<IGridUserService>(gridUserService, args);
143 m_AuthenticationService = ServerUtils.LoadPlugin<IAuthenticationService>(authService, args); 143 Object[] authArgs = new Object[] { config, m_UserAccountService };
144 m_AuthenticationService = ServerUtils.LoadPlugin<IAuthenticationService>(authService, authArgs);
144 m_InventoryService = ServerUtils.LoadPlugin<IInventoryService>(invService, args); 145 m_InventoryService = ServerUtils.LoadPlugin<IInventoryService>(invService, args);
145 146
146 if (gridService != string.Empty) 147 if (gridService != string.Empty)
@@ -284,6 +285,12 @@ namespace OpenSim.Services.LLLoginService
284 return LLFailedLoginResponse.UserProblem; 285 return LLFailedLoginResponse.UserProblem;
285 } 286 }
286 287
288 if (account.UserLevel < 0)
289 {
290 m_log.InfoFormat("[LLOGIN SERVICE]: Login failed, reason: Unverified account");
291 return LLFailedLoginResponse.UnverifiedAccountProblem;
292 }
293
287 if (account.UserLevel < m_MinLoginLevel) 294 if (account.UserLevel < m_MinLoginLevel)
288 { 295 {
289 m_log.InfoFormat("[LLOGIN SERVICE]: Login failed, reason: login is blocked for user level {0}", account.UserLevel); 296 m_log.InfoFormat("[LLOGIN SERVICE]: Login failed, reason: login is blocked for user level {0}", account.UserLevel);
diff --git a/OpenSim/Services/UserAccountService/UserAccountService.cs b/OpenSim/Services/UserAccountService/UserAccountService.cs
index a281b3b..95c2935 100644
--- a/OpenSim/Services/UserAccountService/UserAccountService.cs
+++ b/OpenSim/Services/UserAccountService/UserAccountService.cs
@@ -170,6 +170,10 @@ namespace OpenSim.Services.UserAccountService
170 Int32.TryParse(d.Data["UserLevel"], out u.UserLevel); 170 Int32.TryParse(d.Data["UserLevel"], out u.UserLevel);
171 if (d.Data.ContainsKey("UserFlags") && d.Data["UserFlags"] != null) 171 if (d.Data.ContainsKey("UserFlags") && d.Data["UserFlags"] != null)
172 Int32.TryParse(d.Data["UserFlags"], out u.UserFlags); 172 Int32.TryParse(d.Data["UserFlags"], out u.UserFlags);
173 if (d.Data.ContainsKey("UserCountry") && d.Data["UserCountry"] != null)
174 u.UserCountry = d.Data["UserCountry"].ToString();
175 else
176 u.UserTitle = string.Empty;
173 177
174 if (d.Data.ContainsKey("ServiceURLs") && d.Data["ServiceURLs"] != null) 178 if (d.Data.ContainsKey("ServiceURLs") && d.Data["ServiceURLs"] != null)
175 { 179 {
@@ -291,7 +295,22 @@ namespace OpenSim.Services.UserAccountService
291 295
292 public List<UserAccount> GetUserAccounts(UUID scopeID, string query) 296 public List<UserAccount> GetUserAccounts(UUID scopeID, string query)
293 { 297 {
294 UserAccountData[] d = m_Database.GetUsers(scopeID, query); 298 UserAccountData[] d = m_Database.GetUsers(scopeID, query.Trim());
299
300 if (d == null)
301 return new List<UserAccount>();
302
303 List<UserAccount> ret = new List<UserAccount>();
304
305 foreach (UserAccountData data in d)
306 ret.Add(MakeUserAccount(data));
307
308 return ret;
309 }
310
311 public List<UserAccount> GetUserAccountsWhere(UUID scopeID, string where)
312 {
313 UserAccountData[] d = m_Database.GetUsersWhere(scopeID, where);
295 314
296 if (d == null) 315 if (d == null)
297 return new List<UserAccount>(); 316 return new List<UserAccount>();
diff --git a/OpenSim/Tests/Common/Mock/MockAssetDataPlugin.cs b/OpenSim/Tests/Common/Mock/MockAssetDataPlugin.cs
index 4a15cf2..5bab62c 100644
--- a/OpenSim/Tests/Common/Mock/MockAssetDataPlugin.cs
+++ b/OpenSim/Tests/Common/Mock/MockAssetDataPlugin.cs
@@ -54,9 +54,10 @@ namespace OpenSim.Tests.Common.Mock
54 return assets.Find(x=>x.FullID == uuid); 54 return assets.Find(x=>x.FullID == uuid);
55 } 55 }
56 56
57 public void StoreAsset(AssetBase asset) 57 public bool StoreAsset(AssetBase asset)
58 { 58 {
59 assets.Add(asset); 59 assets.Add(asset);
60 return true;
60 } 61 }
61 62
62 public List<AssetMetadata> FetchAssetMetadataSet(int start, int count) { return new List<AssetMetadata>(count); } 63 public List<AssetMetadata> FetchAssetMetadataSet(int start, int count) { return new List<AssetMetadata>(count); }
diff --git a/OpenSim/Tests/Common/Mock/MockRegionDataPlugin.cs b/OpenSim/Tests/Common/Mock/MockRegionDataPlugin.cs
index 1845eb9..3f99a39 100644
--- a/OpenSim/Tests/Common/Mock/MockRegionDataPlugin.cs
+++ b/OpenSim/Tests/Common/Mock/MockRegionDataPlugin.cs
@@ -127,6 +127,11 @@ namespace OpenSim.Data.Null
127 { 127 {
128 m_store.RemoveRegionEnvironmentSettings(regionUUID); 128 m_store.RemoveRegionEnvironmentSettings(regionUUID);
129 } 129 }
130
131 public UUID[] GetObjectIDs(UUID regionID)
132 {
133 return new UUID[0];
134 }
130 } 135 }
131 136
132 /// <summary> 137 /// <summary>
@@ -318,5 +323,10 @@ namespace OpenSim.Data.Null
318 public void Shutdown() 323 public void Shutdown()
319 { 324 {
320 } 325 }
326
327 public UUID[] GetObjectIDs(UUID regionID)
328 {
329 return new UUID[0];
330 }
321 } 331 }
322} 332}
diff --git a/OpenSim/Tests/Common/Mock/TestClient.cs b/OpenSim/Tests/Common/Mock/TestClient.cs
index 376465c..fb70904 100644
--- a/OpenSim/Tests/Common/Mock/TestClient.cs
+++ b/OpenSim/Tests/Common/Mock/TestClient.cs
@@ -69,7 +69,7 @@ namespace OpenSim.Tests.Common.Mock
69 public event MoneyTransferRequest OnMoneyTransferRequest; 69 public event MoneyTransferRequest OnMoneyTransferRequest;
70 public event ParcelBuy OnParcelBuy; 70 public event ParcelBuy OnParcelBuy;
71 public event Action<IClientAPI> OnConnectionClosed; 71 public event Action<IClientAPI> OnConnectionClosed;
72 72 public event MoveItemsAndLeaveCopy OnMoveItemsAndLeaveCopy;
73 public event ImprovedInstantMessage OnInstantMessage; 73 public event ImprovedInstantMessage OnInstantMessage;
74 public event ChatMessage OnChatFromClient; 74 public event ChatMessage OnChatFromClient;
75 public event TextureRequest OnRequestTexture; 75 public event TextureRequest OnRequestTexture;
@@ -86,6 +86,7 @@ namespace OpenSim.Tests.Common.Mock
86 public event ObjectDrop OnObjectDrop; 86 public event ObjectDrop OnObjectDrop;
87 public event StartAnim OnStartAnim; 87 public event StartAnim OnStartAnim;
88 public event StopAnim OnStopAnim; 88 public event StopAnim OnStopAnim;
89 public event ChangeAnim OnChangeAnim;
89 public event LinkObjects OnLinkObjects; 90 public event LinkObjects OnLinkObjects;
90 public event DelinkObjects OnDelinkObjects; 91 public event DelinkObjects OnDelinkObjects;
91 public event RequestMapBlocks OnRequestMapBlocks; 92 public event RequestMapBlocks OnRequestMapBlocks;
@@ -133,6 +134,7 @@ namespace OpenSim.Tests.Common.Mock
133 public event GenericCall7 OnObjectMaterial; 134 public event GenericCall7 OnObjectMaterial;
134 public event UpdatePrimFlags OnUpdatePrimFlags; 135 public event UpdatePrimFlags OnUpdatePrimFlags;
135 public event UpdatePrimTexture OnUpdatePrimTexture; 136 public event UpdatePrimTexture OnUpdatePrimTexture;
137 public event ClientChangeObject onClientChangeObject;
136 public event UpdateVector OnUpdatePrimGroupPosition; 138 public event UpdateVector OnUpdatePrimGroupPosition;
137 public event UpdateVector OnUpdatePrimSinglePosition; 139 public event UpdateVector OnUpdatePrimSinglePosition;
138 public event UpdatePrimRotation OnUpdatePrimGroupRotation; 140 public event UpdatePrimRotation OnUpdatePrimGroupRotation;
@@ -274,7 +276,7 @@ namespace OpenSim.Tests.Common.Mock
274 public event ClassifiedInfoRequest OnClassifiedInfoRequest; 276 public event ClassifiedInfoRequest OnClassifiedInfoRequest;
275 public event ClassifiedInfoUpdate OnClassifiedInfoUpdate; 277 public event ClassifiedInfoUpdate OnClassifiedInfoUpdate;
276 public event ClassifiedDelete OnClassifiedDelete; 278 public event ClassifiedDelete OnClassifiedDelete;
277 public event ClassifiedDelete OnClassifiedGodDelete; 279 public event ClassifiedGodDelete OnClassifiedGodDelete;
278 280
279 public event EventNotificationAddRequest OnEventNotificationAddRequest; 281 public event EventNotificationAddRequest OnEventNotificationAddRequest;
280 public event EventNotificationRemoveRequest OnEventNotificationRemoveRequest; 282 public event EventNotificationRemoveRequest OnEventNotificationRemoveRequest;
@@ -313,6 +315,7 @@ namespace OpenSim.Tests.Common.Mock
313 public event GroupVoteHistoryRequest OnGroupVoteHistoryRequest; 315 public event GroupVoteHistoryRequest OnGroupVoteHistoryRequest;
314 public event SimWideDeletesDelegate OnSimWideDeletes; 316 public event SimWideDeletesDelegate OnSimWideDeletes;
315 public event SendPostcard OnSendPostcard; 317 public event SendPostcard OnSendPostcard;
318 public event ChangeInventoryItemFlags OnChangeInventoryItemFlags;
316 public event MuteListEntryUpdate OnUpdateMuteListEntry; 319 public event MuteListEntryUpdate OnUpdateMuteListEntry;
317 public event MuteListEntryRemove OnRemoveMuteListEntry; 320 public event MuteListEntryRemove OnRemoveMuteListEntry;
318 public event GodlikeMessage onGodlikeMessage; 321 public event GodlikeMessage onGodlikeMessage;
@@ -932,6 +935,11 @@ namespace OpenSim.Tests.Common.Mock
932 Close(); 935 Close();
933 } 936 }
934 937
938 public void Close(bool c)
939 {
940 Close();
941 }
942
935 public void Close() 943 public void Close()
936 { 944 {
937 // Fire the callback for this connection closing 945 // Fire the callback for this connection closing
@@ -1280,5 +1288,9 @@ namespace OpenSim.Tests.Common.Mock
1280 public void SendPlacesReply(UUID queryID, UUID transactionID, PlacesReplyData[] data) 1288 public void SendPlacesReply(UUID queryID, UUID transactionID, PlacesReplyData[] data)
1281 { 1289 {
1282 } 1290 }
1291
1292 public void SendPartPhysicsProprieties(ISceneEntity entity)
1293 {
1294 }
1283 } 1295 }
1284} 1296}
diff --git a/ThirdParty/SmartThreadPool/SmartThreadPool.cs b/ThirdParty/SmartThreadPool/SmartThreadPool.cs
index bd52f62..8c9d38b 100644
--- a/ThirdParty/SmartThreadPool/SmartThreadPool.cs
+++ b/ThirdParty/SmartThreadPool/SmartThreadPool.cs
@@ -535,17 +535,10 @@ namespace Amib.Threading
535 // Process until shutdown. 535 // Process until shutdown.
536 while(!_shutdown) 536 while(!_shutdown)
537 { 537 {
538 // Update the last time this thread was seen alive. 538
539 // It's good for debugging.
540 _workerThreads[Thread.CurrentThread] = DateTime.Now;
541
542 // Wait for a work item, shutdown, or timeout 539 // Wait for a work item, shutdown, or timeout
543 WorkItem workItem = Dequeue(); 540 WorkItem workItem = Dequeue();
544 541
545 // Update the last time this thread was seen alive.
546 // It's good for debugging.
547 _workerThreads[Thread.CurrentThread] = DateTime.Now;
548
549 // On timeout or shut down. 542 // On timeout or shut down.
550 if (null == workItem) 543 if (null == workItem)
551 { 544 {
@@ -554,6 +547,10 @@ namespace Amib.Threading
554 { 547 {
555 lock(_workerThreads.SyncRoot) 548 lock(_workerThreads.SyncRoot)
556 { 549 {
550 // Update the last time this thread was seen alive.
551 // It's good for debugging.
552 _workerThreads[Thread.CurrentThread] = DateTime.Now;
553
557 if (_workerThreads.Count > _stpStartInfo.MinWorkerThreads) 554 if (_workerThreads.Count > _stpStartInfo.MinWorkerThreads)
558 { 555 {
559 // Inform that the thread is quiting and then quit. 556 // Inform that the thread is quiting and then quit.
diff --git a/bin/MsgPack.dll b/bin/MsgPack.dll
new file mode 100755
index 0000000..90e6b7b
--- /dev/null
+++ b/bin/MsgPack.dll
Binary files differ
diff --git a/bin/OpenMetaverse.Rendering.Meshmerizer.dll b/bin/OpenMetaverse.Rendering.Meshmerizer.dll
index e0a3aa5..43c7557 100755
--- a/bin/OpenMetaverse.Rendering.Meshmerizer.dll
+++ b/bin/OpenMetaverse.Rendering.Meshmerizer.dll
Binary files differ
diff --git a/bin/OpenMetaverse.StructuredData.XML b/bin/OpenMetaverse.StructuredData.XML
index 897a330..d6c31df 100644
--- a/bin/OpenMetaverse.StructuredData.XML
+++ b/bin/OpenMetaverse.StructuredData.XML
@@ -1,333 +1,377 @@
1<?xml version="1.0"?> 1<?xml version="1.0"?>
2<doc> 2<doc>
3 <assembly> 3 <assembly>
4 <name>OpenMetaverse.StructuredData</name> 4 <name>/home/root/libomv-0.9.1-source/bin/OpenMetaverse.StructuredData</name>
5 </assembly> 5 </assembly>
6 <members> 6 <members>
7 <member name="T:OpenMetaverse.StructuredData.OSDParser"> 7 <member name="T:OpenMetaverse.StructuredData.OSDType">
8 <summary> 8 <summary>
9
10 </summary> 9 </summary>
10 </member>
11 <member name="F:OpenMetaverse.StructuredData.OSDType.Unknown">
11 <summary> 12 <summary>
12
13 </summary> 13 </summary>
14 </member>
15 <member name="F:OpenMetaverse.StructuredData.OSDType.Boolean">
14 <summary> 16 <summary>
15
16 </summary> 17 </summary>
17 </member> 18 </member>
18 <member name="M:OpenMetaverse.StructuredData.OSDParser.DeserializeLLSDBinary(System.Byte[])"> 19 <member name="F:OpenMetaverse.StructuredData.OSDType.Integer">
19 <summary> 20 <summary>
20 Deserializes binary LLSD
21 </summary> 21 </summary>
22 <param name="binaryData">Serialized data</param>
23 <returns>OSD containting deserialized data</returns>
24 </member> 22 </member>
25 <member name="M:OpenMetaverse.StructuredData.OSDParser.DeserializeLLSDBinary(System.IO.Stream)"> 23 <member name="F:OpenMetaverse.StructuredData.OSDType.Real">
26 <summary> 24 <summary>
27 Deserializes binary LLSD
28 </summary> 25 </summary>
29 <param name="stream">Stream to read the data from</param>
30 <returns>OSD containting deserialized data</returns>
31 </member> 26 </member>
32 <member name="M:OpenMetaverse.StructuredData.OSDParser.SerializeLLSDBinary(OpenMetaverse.StructuredData.OSD)"> 27 <member name="F:OpenMetaverse.StructuredData.OSDType.String">
33 <summary> 28 <summary>
34
35 </summary> 29 </summary>
36 <param name="osd"></param>
37 <returns></returns>
38 </member> 30 </member>
39 <member name="M:OpenMetaverse.StructuredData.OSDParser.SerializeLLSDBinaryStream(OpenMetaverse.StructuredData.OSD)"> 31 <member name="F:OpenMetaverse.StructuredData.OSDType.UUID">
40 <summary> 32 <summary>
41
42 </summary> 33 </summary>
43 <param name="data"></param>
44 <returns></returns>
45 </member> 34 </member>
46 <member name="M:OpenMetaverse.StructuredData.OSDParser.SkipWhiteSpace(System.IO.Stream)"> 35 <member name="F:OpenMetaverse.StructuredData.OSDType.Date">
47 <summary> 36 <summary>
48
49 </summary> 37 </summary>
50 <param name="stream"></param>
51 </member> 38 </member>
52 <member name="M:OpenMetaverse.StructuredData.OSDParser.FindByte(System.IO.Stream,System.Byte)"> 39 <member name="F:OpenMetaverse.StructuredData.OSDType.URI">
53 <summary> 40 <summary>
54
55 </summary> 41 </summary>
56 <param name="stream"></param>
57 <param name="toFind"></param>
58 <returns></returns>
59 </member> 42 </member>
60 <member name="M:OpenMetaverse.StructuredData.OSDParser.FindString(System.IO.Stream,System.String)"> 43 <member name="F:OpenMetaverse.StructuredData.OSDType.Binary">
61 <summary> 44 <summary>
62
63 </summary> 45 </summary>
64 <param name="stream"></param>
65 <param name="toFind"></param>
66 <returns></returns>
67 </member> 46 </member>
68 <member name="M:OpenMetaverse.StructuredData.OSDParser.ConsumeBytes(System.IO.Stream,System.Int32)"> 47 <member name="F:OpenMetaverse.StructuredData.OSDType.Map">
69 <summary> 48 <summary>
70
71 </summary> 49 </summary>
72 <param name="stream"></param>
73 <param name="consumeBytes"></param>
74 <returns></returns>
75 </member> 50 </member>
76 <member name="M:OpenMetaverse.StructuredData.OSDParser.NetworkToHostInt(System.Byte[])"> 51 <member name="F:OpenMetaverse.StructuredData.OSDType.Array">
77 <summary> 52 <summary>
78
79 </summary> 53 </summary>
80 <param name="binaryNetEnd"></param>
81 <returns></returns>
82 </member> 54 </member>
83 <member name="M:OpenMetaverse.StructuredData.OSDParser.NetworkToHostDouble(System.Byte[])"> 55 <member name="T:OpenMetaverse.StructuredData.OSDException">
84 <summary> 56 <summary>
85
86 </summary> 57 </summary>
87 <param name="binaryNetEnd"></param>
88 <returns></returns>
89 </member> 58 </member>
90 <member name="M:OpenMetaverse.StructuredData.OSDParser.HostToNetworkIntBytes(System.Int32)"> 59 <member name="T:OpenMetaverse.StructuredData.OSD">
91 <summary> 60 <summary>
92
93 </summary> 61 </summary>
94 <param name="intHostEnd"></param>
95 <returns></returns>
96 </member> 62 </member>
97 <member name="M:OpenMetaverse.StructuredData.OSDParser.DeserializeLLSDXml(System.Byte[])"> 63 <member name="M:OpenMetaverse.StructuredData.OSD.SerializeMembers(System.Object)">
98 <summary> 64 <summary>
99 65 Uses reflection to create an SDMap from all of the SD
66 serializable types in an object
100 </summary> 67 </summary>
101 <param name="xmlData"></param> 68 <param name="obj">Class or struct containing serializable types</param>
102 <returns></returns> 69 <returns>An SDMap holding the serialized values from the
70 container object</returns>
103 </member> 71 </member>
104 <member name="M:OpenMetaverse.StructuredData.OSDParser.DeserializeLLSDXml(System.String)"> 72 <member name="M:OpenMetaverse.StructuredData.OSD.DeserializeMembers(System.Object@,OpenMetaverse.StructuredData.OSDMap)">
105 <summary> 73 <summary>
106 74 Uses reflection to deserialize member variables in an object from
75 an SDMap
107 </summary> 76 </summary>
108 <param name="xmlData"></param> 77 <param name="obj">Reference to an object to fill with deserialized
109 <returns></returns> 78 values</param>
79 <param name="serialized">Serialized values to put in the target
80 object</param>
110 </member> 81 </member>
111 <member name="M:OpenMetaverse.StructuredData.OSDParser.DeserializeLLSDXml(System.Xml.XmlTextReader)"> 82 <member name="T:OpenMetaverse.StructuredData.OSDBoolean">
112 <summary> 83 <summary>
113
114 </summary> 84 </summary>
115 <param name="xmlData"></param>
116 <returns></returns>
117 </member> 85 </member>
118 <member name="M:OpenMetaverse.StructuredData.OSDParser.SerializeLLSDXmlBytes(OpenMetaverse.StructuredData.OSD)"> 86 <member name="T:OpenMetaverse.StructuredData.OSDInteger">
119 <summary> 87 <summary>
120
121 </summary> 88 </summary>
122 <param name="data"></param>
123 <returns></returns>
124 </member> 89 </member>
125 <member name="M:OpenMetaverse.StructuredData.OSDParser.SerializeLLSDXmlString(OpenMetaverse.StructuredData.OSD)"> 90 <member name="T:OpenMetaverse.StructuredData.OSDReal">
126 <summary> 91 <summary>
127
128 </summary> 92 </summary>
129 <param name="data"></param>
130 <returns></returns>
131 </member> 93 </member>
132 <member name="M:OpenMetaverse.StructuredData.OSDParser.SerializeLLSDXmlElement(System.Xml.XmlTextWriter,OpenMetaverse.StructuredData.OSD)"> 94 <member name="T:OpenMetaverse.StructuredData.OSDString">
133 <summary> 95 <summary>
134
135 </summary> 96 </summary>
136 <param name="writer"></param>
137 <param name="data"></param>
138 </member> 97 </member>
139 <member name="M:OpenMetaverse.StructuredData.OSDParser.TryValidateLLSDXml(System.Xml.XmlTextReader,System.String@)"> 98 <member name="T:OpenMetaverse.StructuredData.OSDUUID">
140 <summary> 99 <summary>
141
142 </summary> 100 </summary>
143 <param name="xmlData"></param>
144 <param name="error"></param>
145 <returns></returns>
146 </member> 101 </member>
147 <member name="M:OpenMetaverse.StructuredData.OSDParser.ParseLLSDXmlElement(System.Xml.XmlTextReader)"> 102 <member name="T:OpenMetaverse.StructuredData.OSDDate">
148 <summary> 103 <summary>
149
150 </summary> 104 </summary>
151 <param name="reader"></param>
152 <returns></returns>
153 </member> 105 </member>
154 <member name="M:OpenMetaverse.StructuredData.OSDParser.DeserializeLLSDNotationElement(System.IO.StringReader)"> 106 <member name="T:OpenMetaverse.StructuredData.OSDUri">
155 <summary> 107 <summary>
156
157 </summary> 108 </summary>
158 <param name="reader"></param>
159 <returns></returns>
160 </member> 109 </member>
161 <member name="M:OpenMetaverse.StructuredData.OSDParser.PeekAndSkipWhitespace(System.IO.StringReader)"> 110 <member name="T:OpenMetaverse.StructuredData.OSDBinary">
162 <summary> 111 <summary>
163
164 </summary> 112 </summary>
165 <param name="reader"></param>
166 <returns></returns>
167 </member> 113 </member>
168 <member name="M:OpenMetaverse.StructuredData.OSDParser.ReadAndSkipWhitespace(System.IO.StringReader)"> 114 <member name="T:OpenMetaverse.StructuredData.OSDMap">
169 <summary> 115 <summary>
170
171 </summary> 116 </summary>
172 <param name="reader"></param>
173 <returns></returns>
174 </member> 117 </member>
175 <member name="M:OpenMetaverse.StructuredData.OSDParser.GetLengthInBrackets(System.IO.StringReader)"> 118 <member name="T:OpenMetaverse.StructuredData.OSDArray">
176 <summary> 119 <summary>
177
178 </summary> 120 </summary>
179 <param name="reader"></param>
180 <returns></returns>
181 </member> 121 </member>
182 <member name="M:OpenMetaverse.StructuredData.OSDParser.GetStringDelimitedBy(System.IO.StringReader,System.Char)"> 122 <member name="T:OpenMetaverse.StructuredData.OSDParser">
123 <summary>
124 </summary>
125 <summary>
126 </summary>
183 <summary> 127 <summary>
184
185 </summary> 128 </summary>
186 <param name="reader"></param>
187 <param name="delimiter"></param>
188 <returns></returns>
189 </member> 129 </member>
190 <member name="M:OpenMetaverse.StructuredData.OSDParser.BufferCharactersEqual(System.IO.StringReader,System.Char[],System.Int32)"> 130 <member name="M:OpenMetaverse.StructuredData.OSDParser.DeserializeLLSDBinary(System.Byte[])">
191 <summary> 131 <summary>
192 132 Deserializes binary LLSD
193 </summary> 133 </summary>
194 <param name="reader"></param> 134 <param name="binaryData">Serialized data</param>
195 <param name="buffer"></param> 135 <returns>OSD containting deserialized data</returns>
196 <param name="offset"></param>
197 <returns></returns>
198 </member> 136 </member>
199 <member name="M:OpenMetaverse.StructuredData.OSDParser.UnescapeCharacter(System.String,System.Char)"> 137 <member name="M:OpenMetaverse.StructuredData.OSDParser.DeserializeLLSDBinary(System.IO.Stream)">
200 <summary> 138 <summary>
201 139 Deserializes binary LLSD
202 </summary> 140 </summary>
203 <param name="s"></param> 141 <param name="stream">Stream to read the data from</param>
204 <param name="c"></param> 142 <returns>OSD containting deserialized data</returns>
205 <returns></returns>
206 </member> 143 </member>
207 <member name="M:OpenMetaverse.StructuredData.OSDParser.EscapeCharacter(System.String,System.Char)"> 144 <member name="M:OpenMetaverse.StructuredData.OSDParser.SerializeLLSDBinary(OpenMetaverse.StructuredData.OSD)">
208 <summary> 145 <summary>
209 146 Serializes OSD to binary format. It does no prepend header
210 </summary> 147 </summary>
211 <param name="s"></param> 148 <param name="osd">OSD to serialize</param>
212 <param name="c"></param> 149 <returns>Serialized data</returns>
213 <returns></returns>
214 </member> 150 </member>
215 <member name="T:OpenMetaverse.StructuredData.OSDType"> 151 <member name="M:OpenMetaverse.StructuredData.OSDParser.SerializeLLSDBinary(OpenMetaverse.StructuredData.OSD,System.Boolean)">
216 <summary> 152 <summary>
217 153 Serializes OSD to binary format
218 </summary> 154 </summary>
155 <param name="osd">OSD to serialize</param>
156 <param name="prependHeader">
157 </param>
158 <returns>Serialized data</returns>
219 </member> 159 </member>
220 <member name="F:OpenMetaverse.StructuredData.OSDType.Unknown"> 160 <member name="M:OpenMetaverse.StructuredData.OSDParser.SerializeLLSDBinaryStream(OpenMetaverse.StructuredData.OSD)">
221 <summary></summary> 161 <summary>
162 Serializes OSD to binary format. It does no prepend header
163 </summary>
164 <param name="data">OSD to serialize</param>
165 <returns>Serialized data</returns>
222 </member> 166 </member>
223 <member name="F:OpenMetaverse.StructuredData.OSDType.Boolean"> 167 <member name="M:OpenMetaverse.StructuredData.OSDParser.SerializeLLSDBinaryStream(OpenMetaverse.StructuredData.OSD,System.Boolean)">
224 <summary></summary> 168 <summary>
169 Serializes OSD to binary format
170 </summary>
171 <param name="data">OSD to serialize</param>
172 <param name="prependHeader">
173 </param>
174 <returns>Serialized data</returns>
225 </member> 175 </member>
226 <member name="F:OpenMetaverse.StructuredData.OSDType.Integer"> 176 <member name="M:OpenMetaverse.StructuredData.OSDParser.SkipWhiteSpace(System.IO.Stream)">
227 <summary></summary> 177 <summary>
178 </summary>
179 <param name="stream">
180 </param>
228 </member> 181 </member>
229 <member name="F:OpenMetaverse.StructuredData.OSDType.Real"> 182 <member name="M:OpenMetaverse.StructuredData.OSDParser.FindByte(System.IO.Stream,System.Byte)">
230 <summary></summary> 183 <summary>
184 </summary>
185 <param name="stream">
186 </param>
187 <param name="toFind">
188 </param>
189 <returns>
190 </returns>
231 </member> 191 </member>
232 <member name="F:OpenMetaverse.StructuredData.OSDType.String"> 192 <member name="M:OpenMetaverse.StructuredData.OSDParser.FindString(System.IO.Stream,System.String)">
233 <summary></summary> 193 <summary>
194 </summary>
195 <param name="stream">
196 </param>
197 <param name="toFind">
198 </param>
199 <returns>
200 </returns>
234 </member> 201 </member>
235 <member name="F:OpenMetaverse.StructuredData.OSDType.UUID"> 202 <member name="M:OpenMetaverse.StructuredData.OSDParser.ConsumeBytes(System.IO.Stream,System.Int32)">
236 <summary></summary> 203 <summary>
204 </summary>
205 <param name="stream">
206 </param>
207 <param name="consumeBytes">
208 </param>
209 <returns>
210 </returns>
237 </member> 211 </member>
238 <member name="F:OpenMetaverse.StructuredData.OSDType.Date"> 212 <member name="M:OpenMetaverse.StructuredData.OSDParser.NetworkToHostInt(System.Byte[])">
239 <summary></summary> 213 <summary>
214 </summary>
215 <param name="binaryNetEnd">
216 </param>
217 <returns>
218 </returns>
240 </member> 219 </member>
241 <member name="F:OpenMetaverse.StructuredData.OSDType.URI"> 220 <member name="M:OpenMetaverse.StructuredData.OSDParser.NetworkToHostDouble(System.Byte[])">
242 <summary></summary> 221 <summary>
222 </summary>
223 <param name="binaryNetEnd">
224 </param>
225 <returns>
226 </returns>
243 </member> 227 </member>
244 <member name="F:OpenMetaverse.StructuredData.OSDType.Binary"> 228 <member name="M:OpenMetaverse.StructuredData.OSDParser.HostToNetworkIntBytes(System.Int32)">
245 <summary></summary> 229 <summary>
230 </summary>
231 <param name="intHostEnd">
232 </param>
233 <returns>
234 </returns>
246 </member> 235 </member>
247 <member name="F:OpenMetaverse.StructuredData.OSDType.Map"> 236 <member name="M:OpenMetaverse.StructuredData.OSDParser.DeserializeLLSDNotationElement(System.IO.StringReader)">
248 <summary></summary> 237 <summary>
238 </summary>
239 <param name="reader">
240 </param>
241 <returns>
242 </returns>
249 </member> 243 </member>
250 <member name="F:OpenMetaverse.StructuredData.OSDType.Array"> 244 <member name="M:OpenMetaverse.StructuredData.OSDParser.PeekAndSkipWhitespace(System.IO.StringReader)">
251 <summary></summary> 245 <summary>
246 </summary>
247 <param name="reader">
248 </param>
249 <returns>
250 </returns>
252 </member> 251 </member>
253 <member name="T:OpenMetaverse.StructuredData.OSDException"> 252 <member name="M:OpenMetaverse.StructuredData.OSDParser.ReadAndSkipWhitespace(System.IO.StringReader)">
254 <summary> 253 <summary>
255
256 </summary> 254 </summary>
255 <param name="reader">
256 </param>
257 <returns>
258 </returns>
257 </member> 259 </member>
258 <member name="T:OpenMetaverse.StructuredData.OSD"> 260 <member name="M:OpenMetaverse.StructuredData.OSDParser.GetLengthInBrackets(System.IO.StringReader)">
259 <summary> 261 <summary>
260
261 </summary> 262 </summary>
263 <param name="reader">
264 </param>
265 <returns>
266 </returns>
262 </member> 267 </member>
263 <member name="M:OpenMetaverse.StructuredData.OSD.SerializeMembers(System.Object)"> 268 <member name="M:OpenMetaverse.StructuredData.OSDParser.GetStringDelimitedBy(System.IO.StringReader,System.Char)">
264 <summary> 269 <summary>
265 Uses reflection to create an SDMap from all of the SD
266 serializable types in an object
267 </summary> 270 </summary>
268 <param name="obj">Class or struct containing serializable types</param> 271 <param name="reader">
269 <returns>An SDMap holding the serialized values from the 272 </param>
270 container object</returns> 273 <param name="delimiter">
274 </param>
275 <returns>
276 </returns>
271 </member> 277 </member>
272 <member name="M:OpenMetaverse.StructuredData.OSD.DeserializeMembers(System.Object@,OpenMetaverse.StructuredData.OSDMap)"> 278 <member name="M:OpenMetaverse.StructuredData.OSDParser.BufferCharactersEqual(System.IO.StringReader,System.Char[],System.Int32)">
273 <summary> 279 <summary>
274 Uses reflection to deserialize member variables in an object from
275 an SDMap
276 </summary> 280 </summary>
277 <param name="obj">Reference to an object to fill with deserialized 281 <param name="reader">
278 values</param> 282 </param>
279 <param name="serialized">Serialized values to put in the target 283 <param name="buffer">
280 object</param> 284 </param>
285 <param name="offset">
286 </param>
287 <returns>
288 </returns>
281 </member> 289 </member>
282 <member name="T:OpenMetaverse.StructuredData.OSDBoolean"> 290 <member name="M:OpenMetaverse.StructuredData.OSDParser.UnescapeCharacter(System.String,System.Char)">
283 <summary> 291 <summary>
284
285 </summary> 292 </summary>
293 <param name="s">
294 </param>
295 <param name="c">
296 </param>
297 <returns>
298 </returns>
286 </member> 299 </member>
287 <member name="T:OpenMetaverse.StructuredData.OSDInteger"> 300 <member name="M:OpenMetaverse.StructuredData.OSDParser.EscapeCharacter(System.String,System.Char)">
288 <summary> 301 <summary>
289
290 </summary> 302 </summary>
303 <param name="s">
304 </param>
305 <param name="c">
306 </param>
307 <returns>
308 </returns>
291 </member> 309 </member>
292 <member name="T:OpenMetaverse.StructuredData.OSDReal"> 310 <member name="M:OpenMetaverse.StructuredData.OSDParser.DeserializeLLSDXml(System.Byte[])">
293 <summary> 311 <summary>
294
295 </summary> 312 </summary>
313 <param name="xmlData">
314 </param>
315 <returns>
316 </returns>
296 </member> 317 </member>
297 <member name="T:OpenMetaverse.StructuredData.OSDString"> 318 <member name="M:OpenMetaverse.StructuredData.OSDParser.DeserializeLLSDXml(System.String)">
298 <summary> 319 <summary>
299
300 </summary> 320 </summary>
321 <param name="xmlData">
322 </param>
323 <returns>
324 </returns>
301 </member> 325 </member>
302 <member name="T:OpenMetaverse.StructuredData.OSDUUID"> 326 <member name="M:OpenMetaverse.StructuredData.OSDParser.DeserializeLLSDXml(System.Xml.XmlTextReader)">
303 <summary> 327 <summary>
304
305 </summary> 328 </summary>
329 <param name="xmlData">
330 </param>
331 <returns>
332 </returns>
306 </member> 333 </member>
307 <member name="T:OpenMetaverse.StructuredData.OSDDate"> 334 <member name="M:OpenMetaverse.StructuredData.OSDParser.SerializeLLSDXmlBytes(OpenMetaverse.StructuredData.OSD)">
308 <summary> 335 <summary>
309
310 </summary> 336 </summary>
337 <param name="data">
338 </param>
339 <returns>
340 </returns>
311 </member> 341 </member>
312 <member name="T:OpenMetaverse.StructuredData.OSDUri"> 342 <member name="M:OpenMetaverse.StructuredData.OSDParser.SerializeLLSDXmlString(OpenMetaverse.StructuredData.OSD)">
313 <summary> 343 <summary>
314
315 </summary> 344 </summary>
345 <param name="data">
346 </param>
347 <returns>
348 </returns>
316 </member> 349 </member>
317 <member name="T:OpenMetaverse.StructuredData.OSDBinary"> 350 <member name="M:OpenMetaverse.StructuredData.OSDParser.SerializeLLSDXmlElement(System.Xml.XmlTextWriter,OpenMetaverse.StructuredData.OSD)">
318 <summary> 351 <summary>
319
320 </summary> 352 </summary>
353 <param name="writer">
354 </param>
355 <param name="data">
356 </param>
321 </member> 357 </member>
322 <member name="T:OpenMetaverse.StructuredData.OSDMap"> 358 <member name="M:OpenMetaverse.StructuredData.OSDParser.TryValidateLLSDXml(System.Xml.XmlTextReader,System.String@)">
323 <summary> 359 <summary>
324
325 </summary> 360 </summary>
361 <param name="xmlData">
362 </param>
363 <param name="error">
364 </param>
365 <returns>
366 </returns>
326 </member> 367 </member>
327 <member name="T:OpenMetaverse.StructuredData.OSDArray"> 368 <member name="M:OpenMetaverse.StructuredData.OSDParser.ParseLLSDXmlElement(System.Xml.XmlTextReader)">
328 <summary> 369 <summary>
329
330 </summary> 370 </summary>
371 <param name="reader">
372 </param>
373 <returns>
374 </returns>
331 </member> 375 </member>
332 </members> 376 </members>
333</doc> 377</doc>
diff --git a/bin/OpenMetaverse.StructuredData.dll b/bin/OpenMetaverse.StructuredData.dll
index aa05418..bf76863 100755
--- a/bin/OpenMetaverse.StructuredData.dll
+++ b/bin/OpenMetaverse.StructuredData.dll
Binary files differ
diff --git a/bin/OpenMetaverse.XML b/bin/OpenMetaverse.XML
index 6e57fed..81cc005 100644
--- a/bin/OpenMetaverse.XML
+++ b/bin/OpenMetaverse.XML
@@ -1,5574 +1,1829 @@
1<?xml version="1.0"?> 1<?xml version="1.0"?>
2<doc> 2<doc>
3 <assembly> 3 <assembly>
4 <name>OpenMetaverse</name> 4 <name>/home/root/libomv-0.9.1-source/bin/OpenMetaverse</name>
5 </assembly> 5 </assembly>
6 <members> 6 <members>
7 <member name="F:OpenMetaverse.Http.EventQueueClient.REQUEST_TIMEOUT"> 7 <member name="T:OpenMetaverse.ScriptPermission">
8 <summary>=</summary>
9 </member>
10 <member name="F:OpenMetaverse.Http.EventQueueClient._errorCount">
11 <summary>Number of times we've received an unknown CAPS exception in series.</summary>
12 </member>
13 <member name="F:OpenMetaverse.Http.EventQueueClient._random">
14 <summary>For exponential backoff on error.</summary>
15 </member>
16 <member name="M:OpenMetaverse.Packets.PacketDecoder.AddCallback(System.String,OpenMetaverse.Packets.PacketDecoder.CustomPacketDecoder)">
17 <summary>
18 Add a custom decoder callback
19 </summary>
20 <param name="key">The key of the field to decode</param>
21 <param name="customPacketHandler">The custom decode handler</param>
22 </member>
23 <member name="M:OpenMetaverse.Packets.PacketDecoder.RemoveCustomHandler(System.String,OpenMetaverse.Packets.PacketDecoder.CustomPacketDecoder)">
24 <summary>
25 Remove a custom decoder callback
26 </summary>
27 <param name="key">The key of the field to decode</param>
28 <param name="customPacketHandler">The custom decode handler</param>
29 </member>
30 <member name="M:OpenMetaverse.Packets.PacketDecoder.PacketToString(OpenMetaverse.Packets.Packet)">
31 <summary>
32 Creates a formatted string containing the values of a Packet
33 </summary>
34 <param name="packet">The Packet</param>
35 <returns>A formatted string of values of the nested items in the Packet object</returns>
36 </member>
37 <member name="M:OpenMetaverse.Packets.PacketDecoder.MessageToString(System.Object,System.Int32)">
38 <summary>
39 Decode an IMessage object into a beautifully formatted string
40 </summary>
41 <param name="message">The IMessage object</param>
42 <param name="recurseLevel">Recursion level (used for indenting)</param>
43 <returns>A formatted string containing the names and values of the source object</returns>
44 </member>
45 <member name="T:OpenMetaverse.Packets.PacketDecoder.CustomPacketDecoder">
46 <summary>
47 A custom decoder callback
48 </summary>
49 <param name="fieldName">The key of the object</param>
50 <param name="fieldData">the data to decode</param>
51 <returns>A string represending the fieldData</returns>
52 </member>
53 <member name="T:OpenMetaverse.DirectoryManager">
54 <summary>
55 Access to the data server which allows searching for land, events, people, etc
56 </summary>
57 </member>
58 <member name="F:OpenMetaverse.DirectoryManager.m_EventInfoReply">
59 <summary>The event subscribers. null if no subcribers</summary>
60 </member>
61 <member name="M:OpenMetaverse.DirectoryManager.OnEventInfo(OpenMetaverse.EventInfoReplyEventArgs)">
62 <summary>Raises the EventInfoReply event</summary>
63 <param name="e">An EventInfoReplyEventArgs object containing the
64 data returned from the data server</param>
65 </member>
66 <member name="F:OpenMetaverse.DirectoryManager.m_EventDetailLock">
67 <summary>Thread sync lock object</summary>
68 </member>
69 <member name="F:OpenMetaverse.DirectoryManager.m_DirEvents">
70 <summary>The event subscribers. null if no subcribers</summary>
71 </member>
72 <member name="M:OpenMetaverse.DirectoryManager.OnDirEvents(OpenMetaverse.DirEventsReplyEventArgs)">
73 <summary>Raises the DirEventsReply event</summary>
74 <param name="e">An DirEventsReplyEventArgs object containing the
75 data returned from the data server</param>
76 </member>
77 <member name="F:OpenMetaverse.DirectoryManager.m_DirEventsLock">
78 <summary>Thread sync lock object</summary>
79 </member>
80 <member name="F:OpenMetaverse.DirectoryManager.m_Places">
81 <summary>The event subscribers. null if no subcribers</summary>
82 </member>
83 <member name="M:OpenMetaverse.DirectoryManager.OnPlaces(OpenMetaverse.PlacesReplyEventArgs)">
84 <summary>Raises the PlacesReply event</summary>
85 <param name="e">A PlacesReplyEventArgs object containing the
86 data returned from the data server</param>
87 </member>
88 <member name="F:OpenMetaverse.DirectoryManager.m_PlacesLock">
89 <summary>Thread sync lock object</summary>
90 </member>
91 <member name="F:OpenMetaverse.DirectoryManager.m_DirPlaces">
92 <summary>The event subscribers. null if no subcribers</summary>
93 </member>
94 <member name="M:OpenMetaverse.DirectoryManager.OnDirPlaces(OpenMetaverse.DirPlacesReplyEventArgs)">
95 <summary>Raises the DirPlacesReply event</summary>
96 <param name="e">A DirPlacesReplyEventArgs object containing the
97 data returned from the data server</param>
98 </member>
99 <member name="F:OpenMetaverse.DirectoryManager.m_DirPlacesLock">
100 <summary>Thread sync lock object</summary>
101 </member>
102 <member name="F:OpenMetaverse.DirectoryManager.m_DirClassifieds">
103 <summary>The event subscribers. null if no subcribers</summary>
104 </member>
105 <member name="M:OpenMetaverse.DirectoryManager.OnDirClassifieds(OpenMetaverse.DirClassifiedsReplyEventArgs)">
106 <summary>Raises the DirClassifiedsReply event</summary>
107 <param name="e">A DirClassifiedsReplyEventArgs object containing the
108 data returned from the data server</param>
109 </member>
110 <member name="F:OpenMetaverse.DirectoryManager.m_DirClassifiedsLock">
111 <summary>Thread sync lock object</summary>
112 </member>
113 <member name="F:OpenMetaverse.DirectoryManager.m_DirGroups">
114 <summary>The event subscribers. null if no subcribers</summary>
115 </member>
116 <member name="M:OpenMetaverse.DirectoryManager.OnDirGroups(OpenMetaverse.DirGroupsReplyEventArgs)">
117 <summary>Raises the DirGroupsReply event</summary>
118 <param name="e">A DirGroupsReplyEventArgs object containing the
119 data returned from the data server</param>
120 </member>
121 <member name="F:OpenMetaverse.DirectoryManager.m_DirGroupsLock">
122 <summary>Thread sync lock object</summary>
123 </member>
124 <member name="F:OpenMetaverse.DirectoryManager.m_DirPeople">
125 <summary>The event subscribers. null if no subcribers</summary>
126 </member>
127 <member name="M:OpenMetaverse.DirectoryManager.OnDirPeople(OpenMetaverse.DirPeopleReplyEventArgs)">
128 <summary>Raises the DirPeopleReply event</summary>
129 <param name="e">A DirPeopleReplyEventArgs object containing the
130 data returned from the data server</param>
131 </member>
132 <member name="F:OpenMetaverse.DirectoryManager.m_DirPeopleLock">
133 <summary>Thread sync lock object</summary>
134 </member>
135 <member name="F:OpenMetaverse.DirectoryManager.m_DirLandReply">
136 <summary>The event subscribers. null if no subcribers</summary>
137 </member>
138 <member name="M:OpenMetaverse.DirectoryManager.OnDirLand(OpenMetaverse.DirLandReplyEventArgs)">
139 <summary>Raises the DirLandReply event</summary>
140 <param name="e">A DirLandReplyEventArgs object containing the
141 data returned from the data server</param>
142 </member>
143 <member name="F:OpenMetaverse.DirectoryManager.m_DirLandLock">
144 <summary>Thread sync lock object</summary>
145 </member>
146 <member name="M:OpenMetaverse.DirectoryManager.#ctor(OpenMetaverse.GridClient)">
147 <summary>
148 Constructs a new instance of the DirectoryManager class
149 </summary>
150 <param name="client">An instance of GridClient</param>
151 </member>
152 <member name="M:OpenMetaverse.DirectoryManager.StartClassifiedSearch(System.String)">
153 <summary>
154 Query the data server for a list of classified ads containing the specified string.
155 Defaults to searching for classified placed in any category, and includes PG, Adult and Mature
156 results.
157
158 Responses are sent 16 per response packet, there is no way to know how many results a query reply will contain however assuming
159 the reply packets arrived ordered, a response with less than 16 entries would indicate all results have been received
160
161 The <see cref="!:OnClassifiedReply"/> event is raised when a response is received from the simulator
162 </summary>
163 <param name="searchText">A string containing a list of keywords to search for</param>
164 <returns>A UUID to correlate the results when the <see cref="!:OnClassifiedReply"/> event is raised</returns>
165 </member>
166 <member name="M:OpenMetaverse.DirectoryManager.StartClassifiedSearch(System.String,OpenMetaverse.DirectoryManager.ClassifiedCategories,OpenMetaverse.DirectoryManager.ClassifiedQueryFlags)">
167 <summary>
168 Query the data server for a list of classified ads which contain specified keywords (Overload)
169
170 The <see cref="!:OnClassifiedReply"/> event is raised when a response is received from the simulator
171 </summary>
172 <param name="searchText">A string containing a list of keywords to search for</param>
173 <param name="category">The category to search</param>
174 <param name="queryFlags">A set of flags which can be ORed to modify query options
175 such as classified maturity rating.</param>
176 <returns>A UUID to correlate the results when the <see cref="!:OnClassifiedReply"/> event is raised</returns>
177 <example>
178 Search classified ads containing the key words "foo" and "bar" in the "Any" category that are either PG or Mature
179 <code>
180 UUID searchID = StartClassifiedSearch("foo bar", ClassifiedCategories.Any, ClassifiedQueryFlags.PG | ClassifiedQueryFlags.Mature);
181 </code>
182 </example>
183 <remarks>
184 Responses are sent 16 at a time, there is no way to know how many results a query reply will contain however assuming
185 the reply packets arrived ordered, a response with less than 16 entries would indicate all results have been received
186 </remarks>
187 </member>
188 <member name="M:OpenMetaverse.DirectoryManager.StartDirPlacesSearch(System.String,System.Int32)">
189 <summary> 8 <summary>
190 Starts search for places (Overloaded) 9 Permission request flags, asked when a script wants to control an Avatar
191
192 The <see cref="!:OnDirPlacesReply"/> event is raised when a response is received from the simulator
193 </summary> 10 </summary>
194 <param name="searchText">Search text</param>
195 <param name="queryStart">Each request is limited to 100 places
196 being returned. To get the first 100 result entries of a request use 0,
197 from 100-199 use 1, 200-299 use 2, etc.</param>
198 <returns>A UUID to correlate the results when the <see cref="!:OnDirPlacesReply"/> event is raised</returns>
199 </member> 11 </member>
200 <member name="M:OpenMetaverse.DirectoryManager.StartDirPlacesSearch(System.String,OpenMetaverse.DirectoryManager.DirFindFlags,OpenMetaverse.ParcelCategory,System.Int32)"> 12 <member name="F:OpenMetaverse.ScriptPermission.None">
201 <summary> 13 <summary>Placeholder for empty values, shouldn't ever see this</summary>
202 Queries the dataserver for parcels of land which are flagged to be shown in search
203
204 The <see cref="!:OnDirPlacesReply"/> event is raised when a response is received from the simulator
205 </summary>
206 <param name="searchText">A string containing a list of keywords to search for separated by a space character</param>
207 <param name="queryFlags">A set of flags which can be ORed to modify query options
208 such as classified maturity rating.</param>
209 <param name="category">The category to search</param>
210 <param name="queryStart">Each request is limited to 100 places
211 being returned. To get the first 100 result entries of a request use 0,
212 from 100-199 use 1, 200-299 use 2, etc.</param>
213 <returns>A UUID to correlate the results when the <see cref="!:OnDirPlacesReply"/> event is raised</returns>
214 <example>
215 Search places containing the key words "foo" and "bar" in the "Any" category that are either PG or Adult
216 <code>
217 UUID searchID = StartDirPlacesSearch("foo bar", DirFindFlags.DwellSort | DirFindFlags.IncludePG | DirFindFlags.IncludeAdult, ParcelCategory.Any, 0);
218 </code>
219 </example>
220 <remarks>
221 Additional information on the results can be obtained by using the ParcelManager.InfoRequest method
222 </remarks>
223 </member> 14 </member>
224 <member name="M:OpenMetaverse.DirectoryManager.StartLandSearch(OpenMetaverse.DirectoryManager.SearchTypeFlags)"> 15 <member name="F:OpenMetaverse.ScriptPermission.Debit">
225 <summary> 16 <summary>Script wants ability to take money from you</summary>
226 Starts a search for land sales using the directory
227
228 The <see cref="!:OnDirLandReply"/> event is raised when a response is received from the simulator
229 </summary>
230 <param name="typeFlags">What type of land to search for. Auction,
231 estate, mainland, "first land", etc</param>
232 <remarks>The OnDirLandReply event handler must be registered before
233 calling this function. There is no way to determine how many
234 results will be returned, or how many times the callback will be
235 fired other than you won't get more than 100 total parcels from
236 each query.</remarks>
237 </member> 17 </member>
238 <member name="M:OpenMetaverse.DirectoryManager.StartLandSearch(OpenMetaverse.DirectoryManager.SearchTypeFlags,System.Int32,System.Int32,System.Int32)"> 18 <member name="F:OpenMetaverse.ScriptPermission.TakeControls">
239 <summary> 19 <summary>Script wants to take camera controls for you</summary>
240 Starts a search for land sales using the directory
241
242 The <seealso cref="!:OnDirLandReply"/> event is raised when a response is received from the simulator
243 </summary>
244 <param name="typeFlags">What type of land to search for. Auction,
245 estate, mainland, "first land", etc</param>
246 <param name="priceLimit">Maximum price to search for</param>
247 <param name="areaLimit">Maximum area to search for</param>
248 <param name="queryStart">Each request is limited to 100 parcels
249 being returned. To get the first 100 parcels of a request use 0,
250 from 100-199 use 1, 200-299 use 2, etc.</param>
251 <remarks>The OnDirLandReply event handler must be registered before
252 calling this function. There is no way to determine how many
253 results will be returned, or how many times the callback will be
254 fired other than you won't get more than 100 total parcels from
255 each query.</remarks>
256 </member> 20 </member>
257 <member name="M:OpenMetaverse.DirectoryManager.StartLandSearch(OpenMetaverse.DirectoryManager.DirFindFlags,OpenMetaverse.DirectoryManager.SearchTypeFlags,System.Int32,System.Int32,System.Int32)"> 21 <member name="F:OpenMetaverse.ScriptPermission.RemapControls">
258 <summary> 22 <summary>Script wants to remap avatars controls</summary>
259 Send a request to the data server for land sales listings
260 </summary>
261
262 <param name="findFlags">Flags sent to specify query options
263
264 Available flags:
265 Specify the parcel rating with one or more of the following:
266 IncludePG IncludeMature IncludeAdult
267
268 Specify the field to pre sort the results with ONLY ONE of the following:
269 PerMeterSort NameSort AreaSort PricesSort
270
271 Specify the order the results are returned in, if not specified the results are pre sorted in a Descending Order
272 SortAsc
273
274 Specify additional filters to limit the results with one or both of the following:
275 LimitByPrice LimitByArea
276
277 Flags can be combined by separating them with the | (pipe) character
278
279 Additional details can be found in <see cref="T:OpenMetaverse.DirectoryManager.DirFindFlags"/>
280 </param>
281 <param name="typeFlags">What type of land to search for. Auction,
282 Estate or Mainland</param>
283 <param name="priceLimit">Maximum price to search for when the
284 DirFindFlags.LimitByPrice flag is specified in findFlags</param>
285 <param name="areaLimit">Maximum area to search for when the
286 DirFindFlags.LimitByArea flag is specified in findFlags</param>
287 <param name="queryStart">Each request is limited to 100 parcels
288 being returned. To get the first 100 parcels of a request use 0,
289 from 100-199 use 100, 200-299 use 200, etc.</param>
290 <remarks><para>The <seealso cref="!:OnDirLandReply"/> event will be raised with the response from the simulator
291
292 There is no way to determine how many results will be returned, or how many times the callback will be
293 fired other than you won't get more than 100 total parcels from
294 each reply.</para>
295
296 <para>Any land set for sale to either anybody or specific to the connected agent will be included in the
297 results if the land is included in the query</para></remarks>
298 <example>
299 <code>
300 // request all mainland, any maturity rating that is larger than 512 sq.m
301 StartLandSearch(DirFindFlags.SortAsc | DirFindFlags.PerMeterSort | DirFindFlags.LimitByArea | DirFindFlags.IncludePG | DirFindFlags.IncludeMature | DirFindFlags.IncludeAdult, SearchTypeFlags.Mainland, 0, 512, 0);
302 </code></example>
303 </member> 23 </member>
304 <member name="M:OpenMetaverse.DirectoryManager.StartGroupSearch(System.String,System.Int32)"> 24 <member name="F:OpenMetaverse.ScriptPermission.TriggerAnimation">
305 <summary> 25 <summary>Script wants to trigger avatar animations</summary>
306 Search for Groups 26 <remarks>This function is not implemented on the grid</remarks>
307 </summary>
308 <param name="searchText">The name or portion of the name of the group you wish to search for</param>
309 <param name="queryStart">Start from the match number</param>
310 <returns></returns>
311 </member> 27 </member>
312 <member name="M:OpenMetaverse.DirectoryManager.StartGroupSearch(System.String,System.Int32,OpenMetaverse.DirectoryManager.DirFindFlags)"> 28 <member name="F:OpenMetaverse.ScriptPermission.Attach">
313 <summary> 29 <summary>Script wants to attach or detach the prim or primset to your avatar</summary>
314 Search for Groups
315 </summary>
316 <param name="searchText">The name or portion of the name of the group you wish to search for</param>
317 <param name="queryStart">Start from the match number</param>
318 <param name="flags">Search flags</param>
319 <returns></returns>
320 </member> 30 </member>
321 <member name="M:OpenMetaverse.DirectoryManager.StartPeopleSearch(System.String,System.Int32)"> 31 <member name="F:OpenMetaverse.ScriptPermission.ReleaseOwnership">
322 <summary> 32 <summary>Script wants permission to release ownership</summary>
323 Search the People directory for other avatars 33 <remarks>This function is not implemented on the grid
324 </summary> 34 The concept of "public" objects does not exist anymore.</remarks>
325 <param name="searchText">The name or portion of the name of the avatar you wish to search for</param>
326 <param name="queryStart"></param>
327 <returns></returns>
328 </member> 35 </member>
329 <member name="M:OpenMetaverse.DirectoryManager.StartPlacesSearch"> 36 <member name="F:OpenMetaverse.ScriptPermission.ChangeLinks">
330 <summary> 37 <summary>Script wants ability to link/delink with other prims</summary>
331 Search Places for parcels of land you personally own
332 </summary>
333 </member> 38 </member>
334 <member name="M:OpenMetaverse.DirectoryManager.StartPlacesSearch(OpenMetaverse.UUID)"> 39 <member name="F:OpenMetaverse.ScriptPermission.ChangeJoints">
335 <summary> 40 <summary>Script wants permission to change joints</summary>
336 Searches Places for land owned by the specified group 41 <remarks>This function is not implemented on the grid</remarks>
337 </summary>
338 <param name="groupID">ID of the group you want to recieve land list for (You must be a member of the group)</param>
339 <returns>Transaction (Query) ID which can be associated with results from your request.</returns>
340 </member> 42 </member>
341 <member name="M:OpenMetaverse.DirectoryManager.StartPlacesSearch(System.String)"> 43 <member name="F:OpenMetaverse.ScriptPermission.ChangePermissions">
342 <summary> 44 <summary>Script wants permissions to change permissions</summary>
343 Search the Places directory for parcels that are listed in search and contain the specified keywords 45 <remarks>This function is not implemented on the grid</remarks>
344 </summary>
345 <param name="searchText">A string containing the keywords to search for</param>
346 <returns>Transaction (Query) ID which can be associated with results from your request.</returns>
347 </member> 46 </member>
348 <member name="M:OpenMetaverse.DirectoryManager.StartPlacesSearch(OpenMetaverse.DirectoryManager.DirFindFlags,OpenMetaverse.ParcelCategory,System.String,System.String,OpenMetaverse.UUID,OpenMetaverse.UUID)"> 47 <member name="F:OpenMetaverse.ScriptPermission.TrackCamera">
349 <summary> 48 <summary>Script wants to track avatars camera position and rotation </summary>
350 Search Places - All Options
351 </summary>
352 <param name="findFlags">One of the Values from the DirFindFlags struct, ie: AgentOwned, GroupOwned, etc.</param>
353 <param name="searchCategory">One of the values from the SearchCategory Struct, ie: Any, Linden, Newcomer</param>
354 <param name="searchText">A string containing a list of keywords to search for separated by a space character</param>
355 <param name="simulatorName">String Simulator Name to search in</param>
356 <param name="groupID">LLUID of group you want to recieve results for</param>
357 <param name="transactionID">Transaction (Query) ID which can be associated with results from your request.</param>
358 <returns>Transaction (Query) ID which can be associated with results from your request.</returns>
359 </member> 49 </member>
360 <member name="M:OpenMetaverse.DirectoryManager.StartEventsSearch(System.String,System.UInt32)"> 50 <member name="F:OpenMetaverse.ScriptPermission.ControlCamera">
361 <summary> 51 <summary>Script wants to control your camera</summary>
362 Search All Events with specifid searchText in all categories, includes PG, Mature and Adult
363 </summary>
364 <param name="searchText">A string containing a list of keywords to search for separated by a space character</param>
365 <param name="queryStart">Each request is limited to 100 entries
366 being returned. To get the first group of entries of a request use 0,
367 from 100-199 use 100, 200-299 use 200, etc.</param>
368 <returns>UUID of query to correlate results in callback.</returns>
369 </member> 52 </member>
370 <member name="M:OpenMetaverse.DirectoryManager.StartEventsSearch(System.String,OpenMetaverse.DirectoryManager.DirFindFlags,System.String,System.UInt32,OpenMetaverse.DirectoryManager.EventCategories)"> 53 <member name="T:OpenMetaverse.InstantMessageDialog">
371 <summary> 54 <summary>
372 Search Events 55 Special commands used in Instant Messages
373 </summary> 56 </summary>
374 <param name="searchText">A string containing a list of keywords to search for separated by a space character</param>
375 <param name="queryFlags">One or more of the following flags: DateEvents, IncludePG, IncludeMature, IncludeAdult
376 from the <see cref="T:OpenMetaverse.DirectoryManager.DirFindFlags"/> Enum
377
378 Multiple flags can be combined by separating the flags with the | (pipe) character</param>
379 <param name="eventDay">"u" for in-progress and upcoming events, -or- number of days since/until event is scheduled
380 For example "0" = Today, "1" = tomorrow, "2" = following day, "-1" = yesterday, etc.</param>
381 <param name="queryStart">Each request is limited to 100 entries
382 being returned. To get the first group of entries of a request use 0,
383 from 100-199 use 100, 200-299 use 200, etc.</param>
384 <param name="category">EventCategory event is listed under.</param>
385 <returns>UUID of query to correlate results in callback.</returns>
386 </member>
387 <member name="M:OpenMetaverse.DirectoryManager.EventInfoRequest(System.UInt32)">
388 <summary>Requests Event Details</summary>
389 <param name="eventID">ID of Event returned from the <see cref="M:OpenMetaverse.DirectoryManager.StartEventsSearch(System.String,System.UInt32)"/> method</param>
390 </member>
391 <member name="M:OpenMetaverse.DirectoryManager.DirClassifiedReplyHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
392 <summary>Process an incoming packet and raise the appropriate events</summary>
393 <param name="sender">The sender</param>
394 <param name="e">The EventArgs object containing the packet data</param>
395 </member>
396 <member name="M:OpenMetaverse.DirectoryManager.DirLandReplyHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
397 <summary>Process an incoming packet and raise the appropriate events</summary>
398 <param name="sender">The sender</param>
399 <param name="e">The EventArgs object containing the packet data</param>
400 </member> 57 </member>
401 <member name="M:OpenMetaverse.DirectoryManager.DirLandReplyEventHandler(System.String,OpenMetaverse.Interfaces.IMessage,OpenMetaverse.Simulator)"> 58 <member name="F:OpenMetaverse.InstantMessageDialog.MessageFromAgent">
402 <summary>Process an incoming <see cref="T:OpenMetaverse.Messages.Linden.DirLandReplyMessage"/> event message</summary> 59 <summary>Indicates a regular IM from another agent</summary>
403 <param name="capsKey">The Unique Capabilities Key</param>
404 <param name="message">The <see cref="T:OpenMetaverse.Messages.Linden.DirLandReplyMessage"/> event message containing the data</param>
405 <param name="simulator">The simulator the message originated from</param>
406 </member> 60 </member>
407 <member name="M:OpenMetaverse.DirectoryManager.DirPeopleReplyHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)"> 61 <member name="F:OpenMetaverse.InstantMessageDialog.MessageBox">
408 <summary>Process an incoming packet and raise the appropriate events</summary> 62 <summary>Simple notification box with an OK button</summary>
409 <param name="sender">The sender</param>
410 <param name="e">The EventArgs object containing the packet data</param>
411 </member> 63 </member>
412 <member name="M:OpenMetaverse.DirectoryManager.DirGroupsReplyHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)"> 64 <member name="F:OpenMetaverse.InstantMessageDialog.GroupInvitation">
413 <summary>Process an incoming packet and raise the appropriate events</summary> 65 <summary>You've been invited to join a group.</summary>
414 <param name="sender">The sender</param>
415 <param name="e">The EventArgs object containing the packet data</param>
416 </member> 66 </member>
417 <member name="M:OpenMetaverse.DirectoryManager.PlacesReplyEventHandler(System.String,OpenMetaverse.Interfaces.IMessage,OpenMetaverse.Simulator)"> 67 <member name="F:OpenMetaverse.InstantMessageDialog.InventoryOffered">
418 <summary>Process an incoming <see cref="T:OpenMetaverse.Messages.Linden.PlacesReplyMessage"/> event message</summary> 68 <summary>Inventory offer</summary>
419 <param name="capsKey">The Unique Capabilities Key</param>
420 <param name="message">The <see cref="T:OpenMetaverse.Messages.Linden.PlacesReplyMessage"/> event message containing the data</param>
421 <param name="simulator">The simulator the message originated from</param>
422 </member> 69 </member>
423 <member name="M:OpenMetaverse.DirectoryManager.PlacesReplyHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)"> 70 <member name="F:OpenMetaverse.InstantMessageDialog.InventoryAccepted">
424 <summary>Process an incoming packet and raise the appropriate events</summary> 71 <summary>Accepted inventory offer</summary>
425 <param name="sender">The sender</param>
426 <param name="e">The EventArgs object containing the packet data</param>
427 </member> 72 </member>
428 <member name="M:OpenMetaverse.DirectoryManager.EventsReplyHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)"> 73 <member name="F:OpenMetaverse.InstantMessageDialog.InventoryDeclined">
429 <summary>Process an incoming packet and raise the appropriate events</summary> 74 <summary>Declined inventory offer</summary>
430 <param name="sender">The sender</param>
431 <param name="e">The EventArgs object containing the packet data</param>
432 </member> 75 </member>
433 <member name="M:OpenMetaverse.DirectoryManager.EventInfoReplyHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)"> 76 <member name="F:OpenMetaverse.InstantMessageDialog.GroupVote">
434 <summary>Process an incoming packet and raise the appropriate events</summary> 77 <summary>Group vote</summary>
435 <param name="sender">The sender</param>
436 <param name="e">The EventArgs object containing the packet data</param>
437 </member> 78 </member>
438 <member name="M:OpenMetaverse.DirectoryManager.DirPlacesReplyHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)"> 79 <member name="F:OpenMetaverse.InstantMessageDialog.TaskInventoryOffered">
439 <summary>Process an incoming packet and raise the appropriate events</summary> 80 <summary>An object is offering its inventory</summary>
440 <param name="sender">The sender</param>
441 <param name="e">The EventArgs object containing the packet data</param>
442 </member> 81 </member>
443 <member name="E:OpenMetaverse.DirectoryManager.EventInfoReply"> 82 <member name="F:OpenMetaverse.InstantMessageDialog.TaskInventoryAccepted">
444 <summary>Raised when the data server responds to a <see cref="M:OpenMetaverse.DirectoryManager.EventInfoRequest(System.UInt32)"/> request.</summary> 83 <summary>Accept an inventory offer from an object</summary>
445 </member> 84 </member>
446 <member name="E:OpenMetaverse.DirectoryManager.DirEventsReply"> 85 <member name="F:OpenMetaverse.InstantMessageDialog.TaskInventoryDeclined">
447 <summary>Raised when the data server responds to a <see cref="M:OpenMetaverse.DirectoryManager.StartEventsSearch(System.String,System.UInt32)"/> request.</summary> 86 <summary>Decline an inventory offer from an object</summary>
448 </member> 87 </member>
449 <member name="E:OpenMetaverse.DirectoryManager.PlacesReply"> 88 <member name="F:OpenMetaverse.InstantMessageDialog.NewUserDefault">
450 <summary>Raised when the data server responds to a <see cref="M:OpenMetaverse.DirectoryManager.StartPlacesSearch"/> request.</summary> 89 <summary>Unknown</summary>
451 </member> 90 </member>
452 <member name="E:OpenMetaverse.DirectoryManager.DirPlacesReply"> 91 <member name="F:OpenMetaverse.InstantMessageDialog.SessionAdd">
453 <summary>Raised when the data server responds to a <see cref="M:OpenMetaverse.DirectoryManager.StartDirPlacesSearch(System.String,System.Int32)"/> request.</summary> 92 <summary>Start a session, or add users to a session</summary>
454 </member> 93 </member>
455 <member name="E:OpenMetaverse.DirectoryManager.DirClassifiedsReply"> 94 <member name="F:OpenMetaverse.InstantMessageDialog.SessionOfflineAdd">
456 <summary>Raised when the data server responds to a <see cref="M:OpenMetaverse.DirectoryManager.StartClassifiedSearch(System.String,OpenMetaverse.DirectoryManager.ClassifiedCategories,System.Boolean)"/> request.</summary> 95 <summary>Start a session, but don't prune offline users</summary>
457 </member> 96 </member>
458 <member name="E:OpenMetaverse.DirectoryManager.DirGroupsReply"> 97 <member name="F:OpenMetaverse.InstantMessageDialog.SessionGroupStart">
459 <summary>Raised when the data server responds to a <see cref="M:OpenMetaverse.DirectoryManager.StartGroupSearch(System.String,System.Int32)"/> request.</summary> 98 <summary>Start a session with your group</summary>
460 </member> 99 </member>
461 <member name="E:OpenMetaverse.DirectoryManager.DirPeopleReply"> 100 <member name="F:OpenMetaverse.InstantMessageDialog.SessionCardlessStart">
462 <summary>Raised when the data server responds to a <see cref="M:OpenMetaverse.DirectoryManager.StartPeopleSearch(System.String,System.Int32)"/> request.</summary> 101 <summary>Start a session without a calling card (finder or objects)</summary>
463 </member> 102 </member>
464 <member name="E:OpenMetaverse.DirectoryManager.DirLandReply"> 103 <member name="F:OpenMetaverse.InstantMessageDialog.SessionSend">
465 <summary>Raised when the data server responds to a <see cref="M:OpenMetaverse.DirectoryManager.StartLandSearch(OpenMetaverse.DirectoryManager.SearchTypeFlags)"/> request.</summary> 104 <summary>Send a message to a session</summary>
466 </member> 105 </member>
467 <member name="T:OpenMetaverse.DirectoryManager.ClassifiedCategories"> 106 <member name="F:OpenMetaverse.InstantMessageDialog.SessionDrop">
468 <summary>Classified Ad categories</summary> 107 <summary>Leave a session</summary>
469 </member> 108 </member>
470 <member name="F:OpenMetaverse.DirectoryManager.ClassifiedCategories.Any"> 109 <member name="F:OpenMetaverse.InstantMessageDialog.MessageFromObject">
471 <summary>Classified is listed in the Any category</summary> 110 <summary>Indicates that the IM is from an object</summary>
472 </member> 111 </member>
473 <member name="F:OpenMetaverse.DirectoryManager.ClassifiedCategories.Shopping"> 112 <member name="F:OpenMetaverse.InstantMessageDialog.BusyAutoResponse">
474 <summary>Classified is shopping related</summary> 113 <summary>Sent an IM to a busy user, this is the auto response</summary>
475 </member> 114 </member>
476 <member name="F:OpenMetaverse.DirectoryManager.ClassifiedCategories.LandRental"> 115 <member name="F:OpenMetaverse.InstantMessageDialog.ConsoleAndChatHistory">
477 <summary>Classified is </summary> 116 <summary>Shows the message in the console and chat history</summary>
478 </member> 117 </member>
479 <member name="F:OpenMetaverse.DirectoryManager.ClassifiedCategories.PropertyRental"> 118 <member name="F:OpenMetaverse.InstantMessageDialog.RequestTeleport">
480 <summary></summary> 119 <summary>Send a teleport lure</summary>
481 </member> 120 </member>
482 <member name="F:OpenMetaverse.DirectoryManager.ClassifiedCategories.SpecialAttraction"> 121 <member name="F:OpenMetaverse.InstantMessageDialog.AcceptTeleport">
483 <summary></summary> 122 <summary>Response sent to the agent which inititiated a teleport invitation</summary>
484 </member> 123 </member>
485 <member name="F:OpenMetaverse.DirectoryManager.ClassifiedCategories.NewProducts"> 124 <member name="F:OpenMetaverse.InstantMessageDialog.DenyTeleport">
486 <summary></summary> 125 <summary>Response sent to the agent which inititiated a teleport invitation</summary>
487 </member> 126 </member>
488 <member name="F:OpenMetaverse.DirectoryManager.ClassifiedCategories.Employment"> 127 <member name="F:OpenMetaverse.InstantMessageDialog.GodLikeRequestTeleport">
489 <summary></summary> 128 <summary>Only useful if you have Linden permissions</summary>
490 </member> 129 </member>
491 <member name="F:OpenMetaverse.DirectoryManager.ClassifiedCategories.Wanted"> 130 <member name="F:OpenMetaverse.InstantMessageDialog.CurrentlyUnused">
492 <summary></summary> 131 <summary>A placeholder type for future expansion, currently not
132 used</summary>
493 </member> 133 </member>
494 <member name="F:OpenMetaverse.DirectoryManager.ClassifiedCategories.Service"> 134 <member name="F:OpenMetaverse.InstantMessageDialog.GotoUrl">
495 <summary></summary> 135 <summary>IM to tell the user to go to an URL</summary>
496 </member> 136 </member>
497 <member name="F:OpenMetaverse.DirectoryManager.ClassifiedCategories.Personal"> 137 <member name="F:OpenMetaverse.InstantMessageDialog.Session911Start">
498 <summary></summary> 138 <summary>IM for help</summary>
499 </member> 139 </member>
500 <member name="T:OpenMetaverse.DirectoryManager.EventCategories"> 140 <member name="F:OpenMetaverse.InstantMessageDialog.Lure911">
501 <summary>Event Categories</summary> 141 <summary>IM sent automatically on call for help, sends a lure
142 to each Helper reached</summary>
502 </member> 143 </member>
503 <member name="F:OpenMetaverse.DirectoryManager.EventCategories.All"> 144 <member name="F:OpenMetaverse.InstantMessageDialog.FromTaskAsAlert">
504 <summary></summary> 145 <summary>Like an IM but won't go to email</summary>
505 </member> 146 </member>
506 <member name="F:OpenMetaverse.DirectoryManager.EventCategories.Discussion"> 147 <member name="F:OpenMetaverse.InstantMessageDialog.GroupNotice">
507 <summary></summary> 148 <summary>IM from a group officer to all group members</summary>
508 </member> 149 </member>
509 <member name="F:OpenMetaverse.DirectoryManager.EventCategories.Sports"> 150 <member name="F:OpenMetaverse.InstantMessageDialog.GroupNoticeInventoryAccepted">
510 <summary></summary> 151 <summary>Unknown</summary>
511 </member> 152 </member>
512 <member name="F:OpenMetaverse.DirectoryManager.EventCategories.LiveMusic"> 153 <member name="F:OpenMetaverse.InstantMessageDialog.GroupNoticeInventoryDeclined">
513 <summary></summary> 154 <summary>Unknown</summary>
514 </member> 155 </member>
515 <member name="F:OpenMetaverse.DirectoryManager.EventCategories.Commercial"> 156 <member name="F:OpenMetaverse.InstantMessageDialog.GroupInvitationAccept">
516 <summary></summary> 157 <summary>Accept a group invitation</summary>
517 </member> 158 </member>
518 <member name="F:OpenMetaverse.DirectoryManager.EventCategories.Nightlife"> 159 <member name="F:OpenMetaverse.InstantMessageDialog.GroupInvitationDecline">
519 <summary></summary> 160 <summary>Decline a group invitation</summary>
520 </member> 161 </member>
521 <member name="F:OpenMetaverse.DirectoryManager.EventCategories.Games"> 162 <member name="F:OpenMetaverse.InstantMessageDialog.GroupNoticeRequested">
522 <summary></summary> 163 <summary>Unknown</summary>
523 </member> 164 </member>
524 <member name="F:OpenMetaverse.DirectoryManager.EventCategories.Pageants"> 165 <member name="F:OpenMetaverse.InstantMessageDialog.FriendshipOffered">
525 <summary></summary> 166 <summary>An avatar is offering you friendship</summary>
526 </member> 167 </member>
527 <member name="F:OpenMetaverse.DirectoryManager.EventCategories.Education"> 168 <member name="F:OpenMetaverse.InstantMessageDialog.FriendshipAccepted">
528 <summary></summary> 169 <summary>An avatar has accepted your friendship offer</summary>
529 </member> 170 </member>
530 <member name="F:OpenMetaverse.DirectoryManager.EventCategories.Arts"> 171 <member name="F:OpenMetaverse.InstantMessageDialog.FriendshipDeclined">
531 <summary></summary> 172 <summary>An avatar has declined your friendship offer</summary>
532 </member> 173 </member>
533 <member name="F:OpenMetaverse.DirectoryManager.EventCategories.Charity"> 174 <member name="F:OpenMetaverse.InstantMessageDialog.StartTyping">
534 <summary></summary> 175 <summary>Indicates that a user has started typing</summary>
535 </member> 176 </member>
536 <member name="F:OpenMetaverse.DirectoryManager.EventCategories.Miscellaneous"> 177 <member name="F:OpenMetaverse.InstantMessageDialog.StopTyping">
537 <summary></summary> 178 <summary>Indicates that a user has stopped typing</summary>
538 </member> 179 </member>
539 <member name="T:OpenMetaverse.DirectoryManager.DirFindFlags"> 180 <member name="T:OpenMetaverse.InstantMessageOnline">
540 <summary> 181 <summary>
541 Query Flags used in many of the DirectoryManager methods to specify which query to execute and how to return the results. 182 Flag in Instant Messages, whether the IM should be delivered to
542 183 offline avatars as well
543 Flags can be combined using the | (pipe) character, not all flags are available in all queries
544 </summary> 184 </summary>
545 </member> 185 </member>
546 <member name="F:OpenMetaverse.DirectoryManager.DirFindFlags.People"> 186 <member name="F:OpenMetaverse.InstantMessageOnline.Online">
547 <summary>Query the People database</summary> 187 <summary>Only deliver to online avatars</summary>
548 </member>
549 <member name="F:OpenMetaverse.DirectoryManager.DirFindFlags.Online">
550 <summary></summary>
551 </member>
552 <member name="F:OpenMetaverse.DirectoryManager.DirFindFlags.Events">
553 <summary></summary>
554 </member>
555 <member name="F:OpenMetaverse.DirectoryManager.DirFindFlags.Groups">
556 <summary>Query the Groups database</summary>
557 </member>
558 <member name="F:OpenMetaverse.DirectoryManager.DirFindFlags.DateEvents">
559 <summary>Query the Events database</summary>
560 </member>
561 <member name="F:OpenMetaverse.DirectoryManager.DirFindFlags.AgentOwned">
562 <summary>Query the land holdings database for land owned by the currently connected agent</summary>
563 </member>
564 <member name="F:OpenMetaverse.DirectoryManager.DirFindFlags.ForSale">
565 <summary></summary>
566 </member>
567 <member name="F:OpenMetaverse.DirectoryManager.DirFindFlags.GroupOwned">
568 <summary>Query the land holdings database for land which is owned by a Group</summary>
569 </member>
570 <member name="F:OpenMetaverse.DirectoryManager.DirFindFlags.DwellSort">
571 <summary>Specifies the query should pre sort the results based upon traffic
572 when searching the Places database</summary>
573 </member>
574 <member name="F:OpenMetaverse.DirectoryManager.DirFindFlags.PgSimsOnly">
575 <summary></summary>
576 </member>
577 <member name="F:OpenMetaverse.DirectoryManager.DirFindFlags.PicturesOnly">
578 <summary></summary>
579 </member>
580 <member name="F:OpenMetaverse.DirectoryManager.DirFindFlags.PgEventsOnly">
581 <summary></summary>
582 </member>
583 <member name="F:OpenMetaverse.DirectoryManager.DirFindFlags.MatureSimsOnly">
584 <summary></summary>
585 </member>
586 <member name="F:OpenMetaverse.DirectoryManager.DirFindFlags.SortAsc">
587 <summary>Specifies the query should pre sort the results in an ascending order when searching the land sales database.
588 This flag is only used when searching the land sales database</summary>
589 </member>
590 <member name="F:OpenMetaverse.DirectoryManager.DirFindFlags.PricesSort">
591 <summary>Specifies the query should pre sort the results using the SalePrice field when searching the land sales database.
592 This flag is only used when searching the land sales database</summary>
593 </member>
594 <member name="F:OpenMetaverse.DirectoryManager.DirFindFlags.PerMeterSort">
595 <summary>Specifies the query should pre sort the results by calculating the average price/sq.m (SalePrice / Area) when searching the land sales database.
596 This flag is only used when searching the land sales database</summary>
597 </member> 188 </member>
598 <member name="F:OpenMetaverse.DirectoryManager.DirFindFlags.AreaSort"> 189 <member name="F:OpenMetaverse.InstantMessageOnline.Offline">
599 <summary>Specifies the query should pre sort the results using the ParcelSize field when searching the land sales database. 190 <summary>If the avatar is offline the message will be held until
600 This flag is only used when searching the land sales database</summary> 191 they login next, and possibly forwarded to their e-mail account</summary>
601 </member> 192 </member>
602 <member name="F:OpenMetaverse.DirectoryManager.DirFindFlags.NameSort"> 193 <member name="T:OpenMetaverse.ChatType">
603 <summary>Specifies the query should pre sort the results using the Name field when searching the land sales database. 194 <summary>
604 This flag is only used when searching the land sales database</summary> 195 Conversion type to denote Chat Packet types in an easier-to-understand format
196 </summary>
605 </member> 197 </member>
606 <member name="F:OpenMetaverse.DirectoryManager.DirFindFlags.LimitByPrice"> 198 <member name="F:OpenMetaverse.ChatType.Whisper">
607 <summary>When set, only parcels less than the specified Price will be included when searching the land sales database. 199 <summary>Whisper (5m radius)</summary>
608 This flag is only used when searching the land sales database</summary>
609 </member> 200 </member>
610 <member name="F:OpenMetaverse.DirectoryManager.DirFindFlags.LimitByArea"> 201 <member name="F:OpenMetaverse.ChatType.Normal">
611 <summary>When set, only parcels greater than the specified Size will be included when searching the land sales database. 202 <summary>Normal chat (10/20m radius), what the official viewer typically sends</summary>
612 This flag is only used when searching the land sales database</summary>
613 </member> 203 </member>
614 <member name="F:OpenMetaverse.DirectoryManager.DirFindFlags.FilterMature"> 204 <member name="F:OpenMetaverse.ChatType.Shout">
615 <summary></summary> 205 <summary>Shouting! (100m radius)</summary>
616 </member> 206 </member>
617 <member name="F:OpenMetaverse.DirectoryManager.DirFindFlags.PGOnly"> 207 <member name="F:OpenMetaverse.ChatType.StartTyping">
618 <summary></summary> 208 <summary>Event message when an Avatar has begun to type</summary>
619 </member> 209 </member>
620 <member name="F:OpenMetaverse.DirectoryManager.DirFindFlags.IncludePG"> 210 <member name="F:OpenMetaverse.ChatType.StopTyping">
621 <summary>Include PG land in results. This flag is used when searching both the Groups, Events and Land sales databases</summary> 211 <summary>Event message when an Avatar has stopped typing</summary>
622 </member> 212 </member>
623 <member name="F:OpenMetaverse.DirectoryManager.DirFindFlags.IncludeMature"> 213 <member name="F:OpenMetaverse.ChatType.Debug">
624 <summary>Include Mature land in results. This flag is used when searching both the Groups, Events and Land sales databases</summary> 214 <summary>Send the message to the debug channel</summary>
625 </member> 215 </member>
626 <member name="F:OpenMetaverse.DirectoryManager.DirFindFlags.IncludeAdult"> 216 <member name="F:OpenMetaverse.ChatType.OwnerSay">
627 <summary>Include Adult land in results. This flag is used when searching both the Groups, Events and Land sales databases</summary> 217 <summary>Event message when an object uses llOwnerSay</summary>
628 </member> 218 </member>
629 <member name="F:OpenMetaverse.DirectoryManager.DirFindFlags.AdultOnly"> 219 <member name="F:OpenMetaverse.ChatType.RegionSay">
630 <summary></summary> 220 <summary>Special value to support llRegionSay, never sent to the client</summary>
631 </member> 221 </member>
632 <member name="T:OpenMetaverse.DirectoryManager.SearchTypeFlags"> 222 <member name="T:OpenMetaverse.ChatSourceType">
633 <summary> 223 <summary>
634 Land types to search dataserver for 224 Identifies the source of a chat message
635 </summary> 225 </summary>
636 </member> 226 </member>
637 <member name="F:OpenMetaverse.DirectoryManager.SearchTypeFlags.Any"> 227 <member name="F:OpenMetaverse.ChatSourceType.System">
638 <summary>Search Auction, Mainland and Estate</summary> 228 <summary>Chat from the grid or simulator</summary>
639 </member>
640 <member name="F:OpenMetaverse.DirectoryManager.SearchTypeFlags.Auction">
641 <summary>Land which is currently up for auction</summary>
642 </member> 229 </member>
643 <member name="F:OpenMetaverse.DirectoryManager.SearchTypeFlags.Mainland"> 230 <member name="F:OpenMetaverse.ChatSourceType.Agent">
644 <summary>Parcels which are on the mainland (Linden owned) continents</summary> 231 <summary>Chat from another avatar</summary>
645 </member> 232 </member>
646 <member name="F:OpenMetaverse.DirectoryManager.SearchTypeFlags.Estate"> 233 <member name="F:OpenMetaverse.ChatSourceType.Object">
647 <summary>Parcels which are on privately owned simulators</summary> 234 <summary>Chat from an object</summary>
648 </member> 235 </member>
649 <member name="T:OpenMetaverse.DirectoryManager.EventFlags"> 236 <member name="T:OpenMetaverse.ChatAudibleLevel">
650 <summary> 237 <summary>
651 The content rating of the event
652 </summary> 238 </summary>
653 </member> 239 </member>
654 <member name="F:OpenMetaverse.DirectoryManager.EventFlags.PG"> 240 <member name="F:OpenMetaverse.ChatAudibleLevel.Not">
655 <summary>Event is PG</summary>
656 </member>
657 <member name="F:OpenMetaverse.DirectoryManager.EventFlags.Mature">
658 <summary>Event is Mature</summary>
659 </member>
660 <member name="F:OpenMetaverse.DirectoryManager.EventFlags.Adult">
661 <summary>Event is Adult</summary>
662 </member>
663 <member name="T:OpenMetaverse.DirectoryManager.ClassifiedFlags">
664 <summary> 241 <summary>
665 Classified Ad Options
666 </summary> 242 </summary>
667 <remarks>There appear to be two formats the flags are packed in.
668 This set of flags is for the newer style</remarks>
669 </member>
670 <member name="F:OpenMetaverse.DirectoryManager.ClassifiedFlags.None">
671 <summary></summary>
672 </member>
673 <member name="F:OpenMetaverse.DirectoryManager.ClassifiedFlags.Mature">
674 <summary></summary>
675 </member>
676 <member name="F:OpenMetaverse.DirectoryManager.ClassifiedFlags.Enabled">
677 <summary></summary>
678 </member>
679 <member name="F:OpenMetaverse.DirectoryManager.ClassifiedFlags.UpdateTime">
680 <summary></summary>
681 </member> 243 </member>
682 <member name="F:OpenMetaverse.DirectoryManager.ClassifiedFlags.AutoRenew"> 244 <member name="F:OpenMetaverse.ChatAudibleLevel.Barely">
683 <summary></summary>
684 </member>
685 <member name="T:OpenMetaverse.DirectoryManager.ClassifiedQueryFlags">
686 <summary> 245 <summary>
687 Classified ad query options
688 </summary> 246 </summary>
689 </member> 247 </member>
690 <member name="F:OpenMetaverse.DirectoryManager.ClassifiedQueryFlags.All"> 248 <member name="F:OpenMetaverse.ChatAudibleLevel.Fully">
691 <summary>Include all ads in results</summary>
692 </member>
693 <member name="F:OpenMetaverse.DirectoryManager.ClassifiedQueryFlags.PG">
694 <summary>Include PG ads in results</summary>
695 </member>
696 <member name="F:OpenMetaverse.DirectoryManager.ClassifiedQueryFlags.Mature">
697 <summary>Include Mature ads in results</summary>
698 </member>
699 <member name="F:OpenMetaverse.DirectoryManager.ClassifiedQueryFlags.Adult">
700 <summary>Include Adult ads in results</summary>
701 </member>
702 <member name="T:OpenMetaverse.DirectoryManager.PlacesFlags">
703 <summary> 249 <summary>
704 The For Sale flag in PlacesReplyData
705 </summary> 250 </summary>
706 </member> 251 </member>
707 <member name="F:OpenMetaverse.DirectoryManager.PlacesFlags.NotForSale"> 252 <member name="T:OpenMetaverse.EffectType">
708 <summary>Parcel is not listed for sale</summary>
709 </member>
710 <member name="F:OpenMetaverse.DirectoryManager.PlacesFlags.ForSale">
711 <summary>Parcel is For Sale</summary>
712 </member>
713 <member name="T:OpenMetaverse.DirectoryManager.Classified">
714 <summary> 253 <summary>
715 A classified ad on the grid 254 Effect type used in ViewerEffect packets
716 </summary> 255 </summary>
717 </member> 256 </member>
718 <member name="F:OpenMetaverse.DirectoryManager.Classified.ID"> 257 <member name="F:OpenMetaverse.EffectType.Text">
719 <summary>UUID for this ad, useful for looking up detailed
720 information about it</summary>
721 </member>
722 <member name="F:OpenMetaverse.DirectoryManager.Classified.Name">
723 <summary>The title of this classified ad</summary>
724 </member>
725 <member name="F:OpenMetaverse.DirectoryManager.Classified.Flags">
726 <summary>Flags that show certain options applied to the classified</summary>
727 </member>
728 <member name="F:OpenMetaverse.DirectoryManager.Classified.CreationDate">
729 <summary>Creation date of the ad</summary>
730 </member>
731 <member name="F:OpenMetaverse.DirectoryManager.Classified.ExpirationDate">
732 <summary>Expiration date of the ad</summary>
733 </member>
734 <member name="F:OpenMetaverse.DirectoryManager.Classified.Price">
735 <summary>Price that was paid for this ad</summary>
736 </member>
737 <member name="M:OpenMetaverse.DirectoryManager.Classified.ToString">
738 <summary>Print the struct data as a string</summary>
739 <returns>A string containing the field name, and field value</returns>
740 </member>
741 <member name="T:OpenMetaverse.DirectoryManager.DirectoryParcel">
742 <summary> 258 <summary>
743 A parcel retrieved from the dataserver such as results from the
744 "For-Sale" listings or "Places" Search
745 </summary> 259 </summary>
746 </member> 260 </member>
747 <member name="F:OpenMetaverse.DirectoryManager.DirectoryParcel.ID"> 261 <member name="F:OpenMetaverse.EffectType.Icon">
748 <summary>The unique dataserver parcel ID</summary>
749 <remarks>This id is used to obtain additional information from the entry
750 by using the <see cref="!:ParcelManager.InfoRequest"/> method</remarks>
751 </member>
752 <member name="F:OpenMetaverse.DirectoryManager.DirectoryParcel.Name">
753 <summary>A string containing the name of the parcel</summary>
754 </member>
755 <member name="F:OpenMetaverse.DirectoryManager.DirectoryParcel.ActualArea">
756 <summary>The size of the parcel</summary>
757 <remarks>This field is not returned for Places searches</remarks>
758 </member>
759 <member name="F:OpenMetaverse.DirectoryManager.DirectoryParcel.SalePrice">
760 <summary>The price of the parcel</summary>
761 <remarks>This field is not returned for Places searches</remarks>
762 </member>
763 <member name="F:OpenMetaverse.DirectoryManager.DirectoryParcel.Auction">
764 <summary>If True, this parcel is flagged to be auctioned</summary>
765 </member>
766 <member name="F:OpenMetaverse.DirectoryManager.DirectoryParcel.ForSale">
767 <summary>If true, this parcel is currently set for sale</summary>
768 </member>
769 <member name="F:OpenMetaverse.DirectoryManager.DirectoryParcel.Dwell">
770 <summary>Parcel traffic</summary>
771 </member>
772 <member name="M:OpenMetaverse.DirectoryManager.DirectoryParcel.ToString">
773 <summary>Print the struct data as a string</summary>
774 <returns>A string containing the field name, and field value</returns>
775 </member>
776 <member name="T:OpenMetaverse.DirectoryManager.AgentSearchData">
777 <summary> 262 <summary>
778 An Avatar returned from the dataserver
779 </summary> 263 </summary>
780 </member> 264 </member>
781 <member name="F:OpenMetaverse.DirectoryManager.AgentSearchData.Online"> 265 <member name="F:OpenMetaverse.EffectType.Connector">
782 <summary>Online status of agent</summary>
783 <remarks>This field appears to be obsolete and always returns false</remarks>
784 </member>
785 <member name="F:OpenMetaverse.DirectoryManager.AgentSearchData.FirstName">
786 <summary>The agents first name</summary>
787 </member>
788 <member name="F:OpenMetaverse.DirectoryManager.AgentSearchData.LastName">
789 <summary>The agents last name</summary>
790 </member>
791 <member name="F:OpenMetaverse.DirectoryManager.AgentSearchData.AgentID">
792 <summary>The agents <see cref="T:OpenMetaverse.UUID"/></summary>
793 </member>
794 <member name="M:OpenMetaverse.DirectoryManager.AgentSearchData.ToString">
795 <summary>Print the struct data as a string</summary>
796 <returns>A string containing the field name, and field value</returns>
797 </member>
798 <member name="T:OpenMetaverse.DirectoryManager.GroupSearchData">
799 <summary> 266 <summary>
800 Response to a "Groups" Search
801 </summary> 267 </summary>
802 </member> 268 </member>
803 <member name="F:OpenMetaverse.DirectoryManager.GroupSearchData.GroupID"> 269 <member name="F:OpenMetaverse.EffectType.FlexibleObject">
804 <summary>The Group ID</summary>
805 </member>
806 <member name="F:OpenMetaverse.DirectoryManager.GroupSearchData.GroupName">
807 <summary>The name of the group</summary>
808 </member>
809 <member name="F:OpenMetaverse.DirectoryManager.GroupSearchData.Members">
810 <summary>The current number of members</summary>
811 </member>
812 <member name="M:OpenMetaverse.DirectoryManager.GroupSearchData.ToString">
813 <summary>Print the struct data as a string</summary>
814 <returns>A string containing the field name, and field value</returns>
815 </member>
816 <member name="T:OpenMetaverse.DirectoryManager.PlacesSearchData">
817 <summary> 270 <summary>
818 Parcel information returned from a <see cref="M:OpenMetaverse.DirectoryManager.StartPlacesSearch"/> request
819 <para>
820 Represents one of the following:
821 A parcel of land on the grid that has its Show In Search flag set
822 A parcel of land owned by the agent making the request
823 A parcel of land owned by a group the agent making the request is a member of
824 </para>
825 <para>
826 In a request for Group Land, the First record will contain an empty record
827 </para>
828 Note: This is not the same as searching the land for sale data source
829 </summary> 271 </summary>
830 </member> 272 </member>
831 <member name="F:OpenMetaverse.DirectoryManager.PlacesSearchData.OwnerID"> 273 <member name="F:OpenMetaverse.EffectType.AnimalControls">
832 <summary>The ID of the Agent of Group that owns the parcel</summary>
833 </member>
834 <member name="F:OpenMetaverse.DirectoryManager.PlacesSearchData.Name">
835 <summary>The name</summary>
836 </member>
837 <member name="F:OpenMetaverse.DirectoryManager.PlacesSearchData.Desc">
838 <summary>The description</summary>
839 </member>
840 <member name="F:OpenMetaverse.DirectoryManager.PlacesSearchData.ActualArea">
841 <summary>The Size of the parcel</summary>
842 </member>
843 <member name="F:OpenMetaverse.DirectoryManager.PlacesSearchData.BillableArea">
844 <summary>The billable Size of the parcel, for mainland
845 parcels this will match the ActualArea field. For Group owned land this will be 10 percent smaller
846 than the ActualArea. For Estate land this will always be 0</summary>
847 </member>
848 <member name="F:OpenMetaverse.DirectoryManager.PlacesSearchData.Flags">
849 <summary>Indicates the ForSale status of the parcel</summary>
850 </member>
851 <member name="F:OpenMetaverse.DirectoryManager.PlacesSearchData.GlobalX">
852 <summary>The Gridwide X position</summary>
853 </member>
854 <member name="F:OpenMetaverse.DirectoryManager.PlacesSearchData.GlobalY">
855 <summary>The Gridwide Y position</summary>
856 </member>
857 <member name="F:OpenMetaverse.DirectoryManager.PlacesSearchData.GlobalZ">
858 <summary>The Z position of the parcel, or 0 if no landing point set</summary>
859 </member>
860 <member name="F:OpenMetaverse.DirectoryManager.PlacesSearchData.SimName">
861 <summary>The name of the Region the parcel is located in</summary>
862 </member>
863 <member name="F:OpenMetaverse.DirectoryManager.PlacesSearchData.SnapshotID">
864 <summary>The Asset ID of the parcels Snapshot texture</summary>
865 </member>
866 <member name="F:OpenMetaverse.DirectoryManager.PlacesSearchData.Dwell">
867 <summary>The calculated visitor traffic</summary>
868 </member>
869 <member name="F:OpenMetaverse.DirectoryManager.PlacesSearchData.SKU">
870 <summary>The billing product SKU</summary>
871 <remarks>Known values are:
872 <list type="table">
873 <item><term>023</term><description>Mainland / Full Region</description></item>
874 <item><term>024</term><description>Estate / Full Region</description></item>
875 <item><term>027</term><description>Estate / Openspace</description></item>
876 <item><term>029</term><description>Estate / Homestead</description></item>
877 <item><term>129</term><description>Mainland / Homestead (Linden Owned)</description></item>
878 </list>
879 </remarks>
880 </member>
881 <member name="F:OpenMetaverse.DirectoryManager.PlacesSearchData.Price">
882 <summary>No longer used, will always be 0</summary>
883 </member>
884 <member name="M:OpenMetaverse.DirectoryManager.PlacesSearchData.ToSLurl">
885 <summary>Get a SL URL for the parcel</summary>
886 <returns>A string, containing a standard SLURL</returns>
887 </member>
888 <member name="M:OpenMetaverse.DirectoryManager.PlacesSearchData.ToString">
889 <summary>Print the struct data as a string</summary>
890 <returns>A string containing the field name, and field value</returns>
891 </member>
892 <member name="T:OpenMetaverse.DirectoryManager.EventsSearchData">
893 <summary> 274 <summary>
894 An "Event" Listing summary
895 </summary> 275 </summary>
896 </member> 276 </member>
897 <member name="F:OpenMetaverse.DirectoryManager.EventsSearchData.Owner"> 277 <member name="F:OpenMetaverse.EffectType.AnimationObject">
898 <summary>The ID of the event creator</summary>
899 </member>
900 <member name="F:OpenMetaverse.DirectoryManager.EventsSearchData.Name">
901 <summary>The name of the event</summary>
902 </member>
903 <member name="F:OpenMetaverse.DirectoryManager.EventsSearchData.ID">
904 <summary>The events ID</summary>
905 </member>
906 <member name="F:OpenMetaverse.DirectoryManager.EventsSearchData.Date">
907 <summary>A string containing the short date/time the event will begin</summary>
908 </member>
909 <member name="F:OpenMetaverse.DirectoryManager.EventsSearchData.Time">
910 <summary>The event start time in Unixtime (seconds since epoch)</summary>
911 </member>
912 <member name="F:OpenMetaverse.DirectoryManager.EventsSearchData.Flags">
913 <summary>The events maturity rating</summary>
914 </member>
915 <member name="M:OpenMetaverse.DirectoryManager.EventsSearchData.ToString">
916 <summary>Print the struct data as a string</summary>
917 <returns>A string containing the field name, and field value</returns>
918 </member>
919 <member name="T:OpenMetaverse.DirectoryManager.EventInfo">
920 <summary> 278 <summary>
921 The details of an "Event"
922 </summary> 279 </summary>
923 </member> 280 </member>
924 <member name="F:OpenMetaverse.DirectoryManager.EventInfo.ID"> 281 <member name="F:OpenMetaverse.EffectType.Cloth">
925 <summary>The events ID</summary>
926 </member>
927 <member name="F:OpenMetaverse.DirectoryManager.EventInfo.Creator">
928 <summary>The ID of the event creator</summary>
929 </member>
930 <member name="F:OpenMetaverse.DirectoryManager.EventInfo.Name">
931 <summary>The name of the event</summary>
932 </member>
933 <member name="F:OpenMetaverse.DirectoryManager.EventInfo.Category">
934 <summary>The category</summary>
935 </member>
936 <member name="F:OpenMetaverse.DirectoryManager.EventInfo.Desc">
937 <summary>The events description</summary>
938 </member>
939 <member name="F:OpenMetaverse.DirectoryManager.EventInfo.Date">
940 <summary>The short date/time the event will begin</summary>
941 </member>
942 <member name="F:OpenMetaverse.DirectoryManager.EventInfo.DateUTC">
943 <summary>The event start time in Unixtime (seconds since epoch) UTC adjusted</summary>
944 </member>
945 <member name="F:OpenMetaverse.DirectoryManager.EventInfo.Duration">
946 <summary>The length of the event in minutes</summary>
947 </member>
948 <member name="F:OpenMetaverse.DirectoryManager.EventInfo.Cover">
949 <summary>0 if no cover charge applies</summary>
950 </member>
951 <member name="F:OpenMetaverse.DirectoryManager.EventInfo.Amount">
952 <summary>The cover charge amount in L$ if applicable</summary>
953 </member>
954 <member name="F:OpenMetaverse.DirectoryManager.EventInfo.SimName">
955 <summary>The name of the region where the event is being held</summary>
956 </member>
957 <member name="F:OpenMetaverse.DirectoryManager.EventInfo.GlobalPos">
958 <summary>The gridwide location of the event</summary>
959 </member>
960 <member name="F:OpenMetaverse.DirectoryManager.EventInfo.Flags">
961 <summary>The maturity rating</summary>
962 </member>
963 <member name="M:OpenMetaverse.DirectoryManager.EventInfo.ToSLurl">
964 <summary>Get a SL URL for the parcel where the event is hosted</summary>
965 <returns>A string, containing a standard SLURL</returns>
966 </member>
967 <member name="M:OpenMetaverse.DirectoryManager.EventInfo.ToString">
968 <summary>Print the struct data as a string</summary>
969 <returns>A string containing the field name, and field value</returns>
970 </member>
971 <member name="T:OpenMetaverse.EventInfoReplyEventArgs">
972 <summary>Contains the Event data returned from the data server from an EventInfoRequest</summary>
973 </member>
974 <member name="M:OpenMetaverse.EventInfoReplyEventArgs.#ctor(OpenMetaverse.DirectoryManager.EventInfo)">
975 <summary>Construct a new instance of the EventInfoReplyEventArgs class</summary>
976 <param name="matchedEvent">A single EventInfo object containing the details of an event</param>
977 </member>
978 <member name="P:OpenMetaverse.EventInfoReplyEventArgs.MatchedEvent">
979 <summary> 282 <summary>
980 A single EventInfo object containing the details of an event
981 </summary> 283 </summary>
982 </member> 284 </member>
983 <member name="T:OpenMetaverse.DirEventsReplyEventArgs"> 285 <member name="F:OpenMetaverse.EffectType.Beam">
984 <summary>Contains the "Event" detail data returned from the data server</summary> 286 <summary>Project a beam from a source to a destination, such as
985 </member> 287 the one used when editing an object</summary>
986 <member name="M:OpenMetaverse.DirEventsReplyEventArgs.#ctor(OpenMetaverse.UUID,System.Collections.Generic.List{OpenMetaverse.DirectoryManager.EventsSearchData})">
987 <summary>Construct a new instance of the DirEventsReplyEventArgs class</summary>
988 <param name="queryID">The ID of the query returned by the data server.
989 This will correlate to the ID returned by the <see cref="!:StartEventsSearch"/> method</param>
990 <param name="matchedEvents">A list containing the "Events" returned by the search query</param>
991 </member>
992 <member name="P:OpenMetaverse.DirEventsReplyEventArgs.QueryID">
993 <summary>The ID returned by <see cref="M:OpenMetaverse.DirectoryManager.StartEventsSearch(System.String,System.UInt32)"/></summary>
994 </member>
995 <member name="P:OpenMetaverse.DirEventsReplyEventArgs.MatchedEvents">
996 <summary>A list of "Events" returned by the data server</summary>
997 </member>
998 <member name="T:OpenMetaverse.PlacesReplyEventArgs">
999 <summary>Contains the "Event" list data returned from the data server</summary>
1000 </member>
1001 <member name="M:OpenMetaverse.PlacesReplyEventArgs.#ctor(OpenMetaverse.UUID,System.Collections.Generic.List{OpenMetaverse.DirectoryManager.PlacesSearchData})">
1002 <summary>Construct a new instance of PlacesReplyEventArgs class</summary>
1003 <param name="queryID">The ID of the query returned by the data server.
1004 This will correlate to the ID returned by the <see cref="!:StartPlacesSearch"/> method</param>
1005 <param name="matchedPlaces">A list containing the "Places" returned by the data server query</param>
1006 </member>
1007 <member name="P:OpenMetaverse.PlacesReplyEventArgs.QueryID">
1008 <summary>The ID returned by <see cref="M:OpenMetaverse.DirectoryManager.StartPlacesSearch"/></summary>
1009 </member>
1010 <member name="P:OpenMetaverse.PlacesReplyEventArgs.MatchedPlaces">
1011 <summary>A list of "Places" returned by the data server</summary>
1012 </member>
1013 <member name="T:OpenMetaverse.DirPlacesReplyEventArgs">
1014 <summary>Contains the places data returned from the data server</summary>
1015 </member>
1016 <member name="M:OpenMetaverse.DirPlacesReplyEventArgs.#ctor(OpenMetaverse.UUID,System.Collections.Generic.List{OpenMetaverse.DirectoryManager.DirectoryParcel})">
1017 <summary>Construct a new instance of the DirPlacesReplyEventArgs class</summary>
1018 <param name="queryID">The ID of the query returned by the data server.
1019 This will correlate to the ID returned by the <see cref="!:StartDirPlacesSearch"/> method</param>
1020 <param name="matchedParcels">A list containing land data returned by the data server</param>
1021 </member>
1022 <member name="P:OpenMetaverse.DirPlacesReplyEventArgs.QueryID">
1023 <summary>The ID returned by <see cref="M:OpenMetaverse.DirectoryManager.StartDirPlacesSearch(System.String,System.Int32)"/></summary>
1024 </member>
1025 <member name="P:OpenMetaverse.DirPlacesReplyEventArgs.MatchedParcels">
1026 <summary>A list containing Places data returned by the data server</summary>
1027 </member>
1028 <member name="T:OpenMetaverse.DirClassifiedsReplyEventArgs">
1029 <summary>Contains the classified data returned from the data server</summary>
1030 </member>
1031 <member name="M:OpenMetaverse.DirClassifiedsReplyEventArgs.#ctor(System.Collections.Generic.List{OpenMetaverse.DirectoryManager.Classified})">
1032 <summary>Construct a new instance of the DirClassifiedsReplyEventArgs class</summary>
1033 <param name="classifieds">A list of classified ad data returned from the data server</param>
1034 </member>
1035 <member name="P:OpenMetaverse.DirClassifiedsReplyEventArgs.Classifieds">
1036 <summary>A list containing Classified Ads returned by the data server</summary>
1037 </member>
1038 <member name="T:OpenMetaverse.DirGroupsReplyEventArgs">
1039 <summary>Contains the group data returned from the data server</summary>
1040 </member>
1041 <member name="M:OpenMetaverse.DirGroupsReplyEventArgs.#ctor(OpenMetaverse.UUID,System.Collections.Generic.List{OpenMetaverse.DirectoryManager.GroupSearchData})">
1042 <summary>Construct a new instance of the DirGroupsReplyEventArgs class</summary>
1043 <param name="queryID">The ID of the query returned by the data server.
1044 This will correlate to the ID returned by the <see cref="!:StartGroupSearch"/> method</param>
1045 <param name="matchedGroups">A list of groups data returned by the data server</param>
1046 </member>
1047 <member name="P:OpenMetaverse.DirGroupsReplyEventArgs.QueryID">
1048 <summary>The ID returned by <see cref="M:OpenMetaverse.DirectoryManager.StartGroupSearch(System.String,System.Int32)"/></summary>
1049 </member>
1050 <member name="P:OpenMetaverse.DirGroupsReplyEventArgs.MatchedGroups">
1051 <summary>A list containing Groups data returned by the data server</summary>
1052 </member>
1053 <member name="T:OpenMetaverse.DirPeopleReplyEventArgs">
1054 <summary>Contains the people data returned from the data server</summary>
1055 </member>
1056 <member name="M:OpenMetaverse.DirPeopleReplyEventArgs.#ctor(OpenMetaverse.UUID,System.Collections.Generic.List{OpenMetaverse.DirectoryManager.AgentSearchData})">
1057 <summary>Construct a new instance of the DirPeopleReplyEventArgs class</summary>
1058 <param name="queryID">The ID of the query returned by the data server.
1059 This will correlate to the ID returned by the <see cref="!:StartPeopleSearch"/> method</param>
1060 <param name="matchedPeople">A list of people data returned by the data server</param>
1061 </member>
1062 <member name="P:OpenMetaverse.DirPeopleReplyEventArgs.QueryID">
1063 <summary>The ID returned by <see cref="M:OpenMetaverse.DirectoryManager.StartPeopleSearch(System.String,System.Int32)"/></summary>
1064 </member>
1065 <member name="P:OpenMetaverse.DirPeopleReplyEventArgs.MatchedPeople">
1066 <summary>A list containing People data returned by the data server</summary>
1067 </member>
1068 <member name="T:OpenMetaverse.DirLandReplyEventArgs">
1069 <summary>Contains the land sales data returned from the data server</summary>
1070 </member>
1071 <member name="M:OpenMetaverse.DirLandReplyEventArgs.#ctor(System.Collections.Generic.List{OpenMetaverse.DirectoryManager.DirectoryParcel})">
1072 <summary>Construct a new instance of the DirLandReplyEventArgs class</summary>
1073 <param name="dirParcels">A list of parcels for sale returned by the data server</param>
1074 </member>
1075 <member name="P:OpenMetaverse.DirLandReplyEventArgs.DirParcels">
1076 <summary>A list containing land forsale data returned by the data server</summary>
1077 </member> 288 </member>
1078 <member name="T:OpenMetaverse.Messages.Linden.TeleportFinishMessage"> 289 <member name="F:OpenMetaverse.EffectType.Glow">
1079 <summary> 290 <summary>
1080 Sent to the client to indicate a teleport request has completed
1081 </summary> 291 </summary>
1082 </member> 292 </member>
1083 <member name="T:OpenMetaverse.Interfaces.IMessage"> 293 <member name="F:OpenMetaverse.EffectType.Point">
1084 <summary> 294 <summary>
1085 Interface requirements for Messaging system
1086 </summary> 295 </summary>
1087 </member> 296 </member>
1088 <member name="F:OpenMetaverse.Messages.Linden.TeleportFinishMessage.AgentID"> 297 <member name="F:OpenMetaverse.EffectType.Trail">
1089 <summary>The <see cref="T:OpenMetaverse.UUID"/> of the agent</summary>
1090 </member>
1091 <member name="F:OpenMetaverse.Messages.Linden.TeleportFinishMessage.LocationID">
1092 <summary></summary>
1093 </member>
1094 <member name="F:OpenMetaverse.Messages.Linden.TeleportFinishMessage.RegionHandle">
1095 <summary>The simulators handle the agent teleported to</summary>
1096 </member>
1097 <member name="F:OpenMetaverse.Messages.Linden.TeleportFinishMessage.SeedCapability">
1098 <summary>A Uri which contains a list of Capabilities the simulator supports</summary>
1099 </member>
1100 <member name="F:OpenMetaverse.Messages.Linden.TeleportFinishMessage.SimAccess">
1101 <summary>Indicates the level of access required
1102 to access the simulator, or the content rating, or the simulators
1103 map status</summary>
1104 </member>
1105 <member name="F:OpenMetaverse.Messages.Linden.TeleportFinishMessage.IP">
1106 <summary>The IP Address of the simulator</summary>
1107 </member>
1108 <member name="F:OpenMetaverse.Messages.Linden.TeleportFinishMessage.Port">
1109 <summary>The UDP Port the simulator will listen for UDP traffic on</summary>
1110 </member>
1111 <member name="F:OpenMetaverse.Messages.Linden.TeleportFinishMessage.Flags">
1112 <summary>Status flags indicating the state of the Agent upon arrival, Flying, etc.</summary>
1113 </member>
1114 <member name="M:OpenMetaverse.Messages.Linden.TeleportFinishMessage.Serialize">
1115 <summary> 298 <summary>
1116 Serialize the object
1117 </summary> 299 </summary>
1118 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the objects data</returns>
1119 </member> 300 </member>
1120 <member name="M:OpenMetaverse.Messages.Linden.TeleportFinishMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)"> 301 <member name="F:OpenMetaverse.EffectType.Sphere">
302 <summary>Create a swirl of particles around an object</summary>
303 </member>
304 <member name="F:OpenMetaverse.EffectType.Spiral">
1121 <summary> 305 <summary>
1122 Deserialize the message
1123 </summary> 306 </summary>
1124 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the data</param>
1125 </member> 307 </member>
1126 <member name="T:OpenMetaverse.Messages.Linden.EstablishAgentCommunicationMessage"> 308 <member name="F:OpenMetaverse.EffectType.Edit">
1127 <summary> 309 <summary>
1128 Sent to the viewer when a neighboring simulator is requesting the agent make a connection to it.
1129 </summary> 310 </summary>
1130 </member> 311 </member>
1131 <member name="M:OpenMetaverse.Messages.Linden.EstablishAgentCommunicationMessage.Serialize"> 312 <member name="F:OpenMetaverse.EffectType.LookAt">
313 <summary>Cause an avatar to look at an object</summary>
314 </member>
315 <member name="F:OpenMetaverse.EffectType.PointAt">
316 <summary>Cause an avatar to point at an object</summary>
317 </member>
318 <member name="T:OpenMetaverse.LookAtType">
1132 <summary> 319 <summary>
1133 Serialize the object 320 The action an avatar is doing when looking at something, used in
321 ViewerEffect packets for the LookAt effect
1134 </summary> 322 </summary>
1135 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the objects data</returns>
1136 </member> 323 </member>
1137 <member name="M:OpenMetaverse.Messages.Linden.EstablishAgentCommunicationMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)"> 324 <member name="F:OpenMetaverse.LookAtType.None">
1138 <summary> 325 <summary>
1139 Deserialize the message
1140 </summary> 326 </summary>
1141 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the data</param>
1142 </member> 327 </member>
1143 <member name="M:OpenMetaverse.Messages.Linden.CrossedRegionMessage.Serialize"> 328 <member name="F:OpenMetaverse.LookAtType.Idle">
1144 <summary> 329 <summary>
1145 Serialize the object
1146 </summary> 330 </summary>
1147 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the objects data</returns>
1148 </member> 331 </member>
1149 <member name="M:OpenMetaverse.Messages.Linden.CrossedRegionMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)"> 332 <member name="F:OpenMetaverse.LookAtType.AutoListen">
1150 <summary> 333 <summary>
1151 Deserialize the message
1152 </summary> 334 </summary>
1153 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the data</param>
1154 </member> 335 </member>
1155 <member name="M:OpenMetaverse.Messages.Linden.EnableSimulatorMessage.Serialize"> 336 <member name="F:OpenMetaverse.LookAtType.FreeLook">
1156 <summary> 337 <summary>
1157 Serialize the object
1158 </summary> 338 </summary>
1159 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the objects data</returns>
1160 </member> 339 </member>
1161 <member name="M:OpenMetaverse.Messages.Linden.EnableSimulatorMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)"> 340 <member name="F:OpenMetaverse.LookAtType.Respond">
1162 <summary> 341 <summary>
1163 Deserialize the message
1164 </summary> 342 </summary>
1165 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the data</param>
1166 </member> 343 </member>
1167 <member name="T:OpenMetaverse.Messages.Linden.TeleportFailedMessage"> 344 <member name="F:OpenMetaverse.LookAtType.Hover">
1168 <summary> 345 <summary>
1169 A message sent to the client which indicates a teleport request has failed
1170 and contains some information on why it failed
1171 </summary> 346 </summary>
1172 </member> 347 </member>
1173 <member name="F:OpenMetaverse.Messages.Linden.TeleportFailedMessage.ExtraParams"> 348 <member name="F:OpenMetaverse.LookAtType.Conversation">
1174 <summary></summary> 349 <summary>Deprecated</summary>
1175 </member>
1176 <member name="F:OpenMetaverse.Messages.Linden.TeleportFailedMessage.MessageKey">
1177 <summary>A string key of the reason the teleport failed e.g. CouldntTPCloser
1178 Which could be used to look up a value in a dictionary or enum</summary>
1179 </member>
1180 <member name="F:OpenMetaverse.Messages.Linden.TeleportFailedMessage.AgentID">
1181 <summary>The <see cref="T:OpenMetaverse.UUID"/> of the Agent</summary>
1182 </member>
1183 <member name="F:OpenMetaverse.Messages.Linden.TeleportFailedMessage.Reason">
1184 <summary>A string human readable message containing the reason </summary>
1185 <remarks>An example: Could not teleport closer to destination</remarks>
1186 </member> 350 </member>
1187 <member name="M:OpenMetaverse.Messages.Linden.TeleportFailedMessage.Serialize"> 351 <member name="F:OpenMetaverse.LookAtType.Select">
1188 <summary> 352 <summary>
1189 Serialize the object
1190 </summary> 353 </summary>
1191 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the objects data</returns>
1192 </member> 354 </member>
1193 <member name="M:OpenMetaverse.Messages.Linden.TeleportFailedMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)"> 355 <member name="F:OpenMetaverse.LookAtType.Focus">
1194 <summary> 356 <summary>
1195 Deserialize the message
1196 </summary> 357 </summary>
1197 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the data</param>
1198 </member> 358 </member>
1199 <member name="M:OpenMetaverse.Messages.Linden.LandStatReplyMessage.Serialize"> 359 <member name="F:OpenMetaverse.LookAtType.Mouselook">
1200 <summary> 360 <summary>
1201 Serialize the object
1202 </summary> 361 </summary>
1203 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the objects data</returns>
1204 </member> 362 </member>
1205 <member name="M:OpenMetaverse.Messages.Linden.LandStatReplyMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)"> 363 <member name="F:OpenMetaverse.LookAtType.Clear">
1206 <summary> 364 <summary>
1207 Deserialize the message
1208 </summary> 365 </summary>
1209 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the data</param>
1210 </member> 366 </member>
1211 <member name="T:OpenMetaverse.Messages.Linden.ParcelObjectOwnersReplyMessage"> 367 <member name="T:OpenMetaverse.PointAtType">
1212 <summary> 368 <summary>
1213 Contains a list of prim owner information for a specific parcel in a simulator 369 The action an avatar is doing when pointing at something, used in
370 ViewerEffect packets for the PointAt effect
1214 </summary> 371 </summary>
1215 <remarks>
1216 A Simulator will always return at least 1 entry
1217 If agent does not have proper permission the OwnerID will be UUID.Zero
1218 If agent does not have proper permission OR there are no primitives on parcel
1219 the DataBlocksExtended map will not be sent from the simulator
1220 </remarks>
1221 </member>
1222 <member name="F:OpenMetaverse.Messages.Linden.ParcelObjectOwnersReplyMessage.PrimOwnersBlock">
1223 <summary>An Array of <see cref="T:OpenMetaverse.Messages.Linden.ParcelObjectOwnersReplyMessage.PrimOwner"/> objects</summary>
1224 </member> 372 </member>
1225 <member name="M:OpenMetaverse.Messages.Linden.ParcelObjectOwnersReplyMessage.Serialize"> 373 <member name="F:OpenMetaverse.PointAtType.None">
1226 <summary> 374 <summary>
1227 Serialize the object
1228 </summary> 375 </summary>
1229 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the objects data</returns>
1230 </member> 376 </member>
1231 <member name="M:OpenMetaverse.Messages.Linden.ParcelObjectOwnersReplyMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)"> 377 <member name="F:OpenMetaverse.PointAtType.Select">
1232 <summary> 378 <summary>
1233 Deserialize the message
1234 </summary> 379 </summary>
1235 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the data</param>
1236 </member> 380 </member>
1237 <member name="T:OpenMetaverse.Messages.Linden.ParcelObjectOwnersReplyMessage.PrimOwner"> 381 <member name="F:OpenMetaverse.PointAtType.Grab">
1238 <summary> 382 <summary>
1239 Prim ownership information for a specified owner on a single parcel
1240 </summary> 383 </summary>
1241 </member> 384 </member>
1242 <member name="F:OpenMetaverse.Messages.Linden.ParcelObjectOwnersReplyMessage.PrimOwner.OwnerID"> 385 <member name="F:OpenMetaverse.PointAtType.Clear">
1243 <summary>The <see cref="T:OpenMetaverse.UUID"/> of the prim owner,
1244 UUID.Zero if agent has no permission to view prim owner information</summary>
1245 </member>
1246 <member name="F:OpenMetaverse.Messages.Linden.ParcelObjectOwnersReplyMessage.PrimOwner.Count">
1247 <summary>The total number of prims</summary>
1248 </member>
1249 <member name="F:OpenMetaverse.Messages.Linden.ParcelObjectOwnersReplyMessage.PrimOwner.IsGroupOwned">
1250 <summary>True if the OwnerID is a <see cref="T:OpenMetaverse.Group"/></summary>
1251 </member>
1252 <member name="F:OpenMetaverse.Messages.Linden.ParcelObjectOwnersReplyMessage.PrimOwner.OnlineStatus">
1253 <summary>True if the owner is online
1254 <remarks>This is no longer used by the LL Simulators</remarks></summary>
1255 </member>
1256 <member name="F:OpenMetaverse.Messages.Linden.ParcelObjectOwnersReplyMessage.PrimOwner.TimeStamp">
1257 <summary>The date the most recent prim was rezzed</summary>
1258 </member>
1259 <member name="T:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage">
1260 <summary> 386 <summary>
1261 The details of a single parcel in a region, also contains some regionwide globals
1262 </summary> 387 </summary>
1263 </member> 388 </member>
1264 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.LocalID"> 389 <member name="T:OpenMetaverse.MoneyTransactionType">
1265 <summary>Simulator-local ID of this parcel</summary>
1266 </member>
1267 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.AABBMax">
1268 <summary>Maximum corner of the axis-aligned bounding box for this
1269 parcel</summary>
1270 </member>
1271 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.AABBMin">
1272 <summary>Minimum corner of the axis-aligned bounding box for this
1273 parcel</summary>
1274 </member>
1275 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.Area">
1276 <summary>Total parcel land area</summary>
1277 </member>
1278 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.AuctionID">
1279 <summary></summary>
1280 </member>
1281 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.AuthBuyerID">
1282 <summary>Key of authorized buyer</summary>
1283 </member>
1284 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.Bitmap">
1285 <summary>Bitmap describing land layout in 4x4m squares across the
1286 entire region</summary>
1287 </member>
1288 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.Category">
1289 <summary></summary>
1290 </member>
1291 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.ClaimDate">
1292 <summary>Date land was claimed</summary>
1293 </member>
1294 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.ClaimPrice">
1295 <summary>Appears to always be zero</summary>
1296 </member>
1297 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.Desc">
1298 <summary>Parcel Description</summary>
1299 </member>
1300 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.ParcelFlags">
1301 <summary></summary>
1302 </member>
1303 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.GroupID">
1304 <summary></summary>
1305 </member>
1306 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.GroupPrims">
1307 <summary>Total number of primitives owned by the parcel group on
1308 this parcel</summary>
1309 </member>
1310 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.IsGroupOwned">
1311 <summary>Whether the land is deeded to a group or not</summary>
1312 </member>
1313 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.LandingType">
1314 <summary></summary>
1315 </member>
1316 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.MaxPrims">
1317 <summary>Maximum number of primitives this parcel supports</summary>
1318 </member>
1319 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.MediaID">
1320 <summary>The Asset UUID of the Texture which when applied to a
1321 primitive will display the media</summary>
1322 </member>
1323 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.MediaURL">
1324 <summary>A URL which points to any Quicktime supported media type</summary>
1325 </member>
1326 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.MediaAutoScale">
1327 <summary>A byte, if 0x1 viewer should auto scale media to fit object</summary>
1328 </member>
1329 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.MusicURL">
1330 <summary>URL For Music Stream</summary>
1331 </member>
1332 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.Name">
1333 <summary>Parcel Name</summary>
1334 </member>
1335 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.OtherCleanTime">
1336 <summary>Autoreturn value in minutes for others' objects</summary>
1337 </member>
1338 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.OtherCount">
1339 <summary></summary>
1340 </member>
1341 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.OtherPrims">
1342 <summary>Total number of other primitives on this parcel</summary>
1343 </member>
1344 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.OwnerID">
1345 <summary>UUID of the owner of this parcel</summary>
1346 </member>
1347 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.OwnerPrims">
1348 <summary>Total number of primitives owned by the parcel owner on
1349 this parcel</summary>
1350 </member>
1351 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.ParcelPrimBonus">
1352 <summary></summary>
1353 </member>
1354 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.PassHours">
1355 <summary>How long is pass valid for</summary>
1356 </member>
1357 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.PassPrice">
1358 <summary>Price for a temporary pass</summary>
1359 </member>
1360 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.PublicCount">
1361 <summary></summary>
1362 </member>
1363 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.RegionDenyAnonymous">
1364 <summary></summary>
1365 </member>
1366 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.RegionDenyIdentified">
1367 <summary></summary>
1368 </member>
1369 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.RegionDenyTransacted">
1370 <summary></summary>
1371 </member>
1372 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.RegionDenyAgeUnverified">
1373 <summary>True if the region denies access to age unverified users</summary>
1374 </member>
1375 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.RegionPushOverride">
1376 <summary></summary>
1377 </member>
1378 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.RentPrice">
1379 <summary>This field is no longer used</summary>
1380 </member>
1381 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.RequestResult">
1382 The result of a request for parcel properties
1383 </member>
1384 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.SalePrice">
1385 <summary>Sale price of the parcel, only useful if ForSale is set</summary>
1386 <remarks>The SalePrice will remain the same after an ownership
1387 transfer (sale), so it can be used to see the purchase price after
1388 a sale if the new owner has not changed it</remarks>
1389 </member>
1390 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.SelectedPrims">
1391 <summary> 390 <summary>
1392 Number of primitives your avatar is currently 391 Money transaction types
1393 selecting and sitting on in this parcel
1394 </summary> 392 </summary>
1395 </member> 393 </member>
1396 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.SelfCount"> 394 <member name="F:OpenMetaverse.MoneyTransactionType.None">
1397 <summary></summary>
1398 </member>
1399 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.SequenceID">
1400 <summary> 395 <summary>
1401 A number which increments by 1, starting at 0 for each ParcelProperties request.
1402 Can be overriden by specifying the sequenceID with the ParcelPropertiesRequest being sent.
1403 a Negative number indicates the action in <seealso cref="T:OpenMetaverse.ParcelPropertiesStatus"/> has occurred.
1404 </summary> 396 </summary>
1405 </member> 397 </member>
1406 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.SimWideMaxPrims"> 398 <member name="F:OpenMetaverse.MoneyTransactionType.FailSimulatorTimeout">
1407 <summary>Maximum primitives across the entire simulator</summary>
1408 </member>
1409 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.SimWideTotalPrims">
1410 <summary>Total primitives across the entire simulator</summary>
1411 </member>
1412 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.SnapSelection">
1413 <summary></summary>
1414 </member>
1415 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.SnapshotID">
1416 <summary>Key of parcel snapshot</summary>
1417 </member>
1418 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.Status">
1419 <summary>Parcel ownership status</summary>
1420 </member>
1421 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.TotalPrims">
1422 <summary>Total number of primitives on this parcel</summary>
1423 </member>
1424 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.UserLocation">
1425 <summary></summary>
1426 </member>
1427 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.UserLookAt">
1428 <summary></summary>
1429 </member>
1430 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.MediaDesc">
1431 <summary>A description of the media</summary>
1432 </member>
1433 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.MediaHeight">
1434 <summary>An Integer which represents the height of the media</summary>
1435 </member>
1436 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.MediaWidth">
1437 <summary>An integer which represents the width of the media</summary>
1438 </member>
1439 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.MediaLoop">
1440 <summary>A boolean, if true the viewer should loop the media</summary>
1441 </member>
1442 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.MediaType">
1443 <summary>A string which contains the mime type of the media</summary>
1444 </member>
1445 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.ObscureMedia">
1446 <summary>true to obscure (hide) media url</summary>
1447 </member>
1448 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.ObscureMusic">
1449 <summary>true to obscure (hide) music url</summary>
1450 </member>
1451 <member name="M:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.Serialize">
1452 <summary> 399 <summary>
1453 Serialize the object
1454 </summary> 400 </summary>
1455 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the objects data</returns>
1456 </member> 401 </member>
1457 <member name="M:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)"> 402 <member name="F:OpenMetaverse.MoneyTransactionType.FailDataserverTimeout">
1458 <summary> 403 <summary>
1459 Deserialize the message
1460 </summary> 404 </summary>
1461 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the data</param>
1462 </member>
1463 <member name="T:OpenMetaverse.Messages.Linden.ParcelPropertiesUpdateMessage">
1464 <summary>A message sent from the viewer to the simulator to updated a specific parcels settings</summary>
1465 </member>
1466 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesUpdateMessage.AuthBuyerID">
1467 <summary>The <seealso cref="T:OpenMetaverse.UUID"/> of the agent authorized to purchase this
1468 parcel of land or a NULL <seealso cref="T:OpenMetaverse.UUID"/> if the sale is authorized to anyone</summary>
1469 </member>
1470 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesUpdateMessage.MediaAutoScale">
1471 <summary>true to enable auto scaling of the parcel media</summary>
1472 </member>
1473 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesUpdateMessage.Category">
1474 <summary>The category of this parcel used when search is enabled to restrict
1475 search results</summary>
1476 </member>
1477 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesUpdateMessage.Desc">
1478 <summary>A string containing the description to set</summary>
1479 </member>
1480 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesUpdateMessage.GroupID">
1481 <summary>The <seealso cref="T:OpenMetaverse.UUID"/> of the <seealso cref="T:OpenMetaverse.Group"/> which allows for additional
1482 powers and restrictions.</summary>
1483 </member>
1484 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesUpdateMessage.Landing">
1485 <summary>The <seealso cref="T:OpenMetaverse.LandingType"/> which specifies how avatars which teleport
1486 to this parcel are handled</summary>
1487 </member>
1488 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesUpdateMessage.LocalID">
1489 <summary>The LocalID of the parcel to update settings on</summary>
1490 </member>
1491 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesUpdateMessage.MediaDesc">
1492 <summary>A string containing the description of the media which can be played
1493 to visitors</summary>
1494 </member>
1495 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesUpdateMessage.MediaHeight">
1496 <summary></summary>
1497 </member>
1498 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesUpdateMessage.MediaLoop">
1499 <summary></summary>
1500 </member>
1501 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesUpdateMessage.MediaID">
1502 <summary></summary>
1503 </member>
1504 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesUpdateMessage.MediaType">
1505 <summary></summary>
1506 </member>
1507 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesUpdateMessage.MediaURL">
1508 <summary></summary>
1509 </member>
1510 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesUpdateMessage.MediaWidth">
1511 <summary></summary>
1512 </member>
1513 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesUpdateMessage.MusicURL">
1514 <summary></summary>
1515 </member>
1516 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesUpdateMessage.Name">
1517 <summary></summary>
1518 </member>
1519 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesUpdateMessage.ObscureMedia">
1520 <summary></summary>
1521 </member> 405 </member>
1522 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesUpdateMessage.ObscureMusic"> 406 <member name="F:OpenMetaverse.MoneyTransactionType.ObjectClaim">
1523 <summary></summary>
1524 </member>
1525 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesUpdateMessage.ParcelFlags">
1526 <summary></summary>
1527 </member>
1528 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesUpdateMessage.PassHours">
1529 <summary></summary>
1530 </member>
1531 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesUpdateMessage.PassPrice">
1532 <summary></summary>
1533 </member>
1534 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesUpdateMessage.SalePrice">
1535 <summary></summary>
1536 </member>
1537 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesUpdateMessage.SnapshotID">
1538 <summary></summary>
1539 </member>
1540 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesUpdateMessage.UserLocation">
1541 <summary></summary>
1542 </member>
1543 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesUpdateMessage.UserLookAt">
1544 <summary></summary>
1545 </member>
1546 <member name="M:OpenMetaverse.Messages.Linden.ParcelPropertiesUpdateMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
1547 <summary> 407 <summary>
1548 Deserialize the message
1549 </summary> 408 </summary>
1550 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the data</param>
1551 </member> 409 </member>
1552 <member name="M:OpenMetaverse.Messages.Linden.ParcelPropertiesUpdateMessage.Serialize"> 410 <member name="F:OpenMetaverse.MoneyTransactionType.LandClaim">
1553 <summary> 411 <summary>
1554 Serialize the object
1555 </summary> 412 </summary>
1556 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the objects data</returns>
1557 </member>
1558 <member name="T:OpenMetaverse.Messages.Linden.RemoteParcelRequestBlock">
1559 <summary>Base class used for the RemoteParcelRequest message</summary>
1560 </member> 413 </member>
1561 <member name="T:OpenMetaverse.Messages.Linden.RemoteParcelRequestRequest"> 414 <member name="F:OpenMetaverse.MoneyTransactionType.GroupCreate">
1562 <summary> 415 <summary>
1563 A message sent from the viewer to the simulator to request information
1564 on a remote parcel
1565 </summary> 416 </summary>
1566 </member> 417 </member>
1567 <member name="F:OpenMetaverse.Messages.Linden.RemoteParcelRequestRequest.Location"> 418 <member name="F:OpenMetaverse.MoneyTransactionType.ObjectPublicClaim">
1568 <summary>Local sim position of the parcel we are looking up</summary>
1569 </member>
1570 <member name="F:OpenMetaverse.Messages.Linden.RemoteParcelRequestRequest.RegionHandle">
1571 <summary>Region handle of the parcel we are looking up</summary>
1572 </member>
1573 <member name="F:OpenMetaverse.Messages.Linden.RemoteParcelRequestRequest.RegionID">
1574 <summary>Region <see cref="T:OpenMetaverse.UUID"/> of the parcel we are looking up</summary>
1575 </member>
1576 <member name="M:OpenMetaverse.Messages.Linden.RemoteParcelRequestRequest.Serialize">
1577 <summary> 419 <summary>
1578 Serialize the object
1579 </summary> 420 </summary>
1580 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the objects data</returns>
1581 </member> 421 </member>
1582 <member name="M:OpenMetaverse.Messages.Linden.RemoteParcelRequestRequest.Deserialize(OpenMetaverse.StructuredData.OSDMap)"> 422 <member name="F:OpenMetaverse.MoneyTransactionType.GroupJoin">
1583 <summary> 423 <summary>
1584 Deserialize the message
1585 </summary> 424 </summary>
1586 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the data</param>
1587 </member> 425 </member>
1588 <member name="T:OpenMetaverse.Messages.Linden.RemoteParcelRequestReply"> 426 <member name="F:OpenMetaverse.MoneyTransactionType.TeleportCharge">
1589 <summary> 427 <summary>
1590 A message sent from the simulator to the viewer in response to a <see cref="T:OpenMetaverse.Messages.Linden.RemoteParcelRequestRequest"/>
1591 which will contain parcel information
1592 </summary> 428 </summary>
1593 </member> 429 </member>
1594 <member name="F:OpenMetaverse.Messages.Linden.RemoteParcelRequestReply.ParcelID"> 430 <member name="F:OpenMetaverse.MoneyTransactionType.UploadCharge">
1595 <summary>The grid-wide unique parcel ID</summary>
1596 </member>
1597 <member name="M:OpenMetaverse.Messages.Linden.RemoteParcelRequestReply.Serialize">
1598 <summary> 431 <summary>
1599 Serialize the object
1600 </summary> 432 </summary>
1601 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the objects data</returns>
1602 </member> 433 </member>
1603 <member name="M:OpenMetaverse.Messages.Linden.RemoteParcelRequestReply.Deserialize(OpenMetaverse.StructuredData.OSDMap)"> 434 <member name="F:OpenMetaverse.MoneyTransactionType.LandAuction">
1604 <summary> 435 <summary>
1605 Deserialize the message
1606 </summary> 436 </summary>
1607 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the data</param>
1608 </member> 437 </member>
1609 <member name="T:OpenMetaverse.Messages.Linden.RemoteParcelRequestMessage"> 438 <member name="F:OpenMetaverse.MoneyTransactionType.ClassifiedCharge">
1610 <summary> 439 <summary>
1611 A message containing a request for a remote parcel from a viewer, or a response
1612 from the simulator to that request
1613 </summary> 440 </summary>
1614 </member> 441 </member>
1615 <member name="F:OpenMetaverse.Messages.Linden.RemoteParcelRequestMessage.Request"> 442 <member name="F:OpenMetaverse.MoneyTransactionType.ObjectTax">
1616 <summary>The request or response details block</summary>
1617 </member>
1618 <member name="M:OpenMetaverse.Messages.Linden.RemoteParcelRequestMessage.Serialize">
1619 <summary> 443 <summary>
1620 Serialize the object
1621 </summary> 444 </summary>
1622 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the objects data</returns>
1623 </member> 445 </member>
1624 <member name="M:OpenMetaverse.Messages.Linden.RemoteParcelRequestMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)"> 446 <member name="F:OpenMetaverse.MoneyTransactionType.LandTax">
1625 <summary> 447 <summary>
1626 Deserialize the message
1627 </summary> 448 </summary>
1628 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the data</param>
1629 </member> 449 </member>
1630 <member name="M:OpenMetaverse.Messages.Linden.NewFileAgentInventoryMessage.Serialize"> 450 <member name="F:OpenMetaverse.MoneyTransactionType.LightTax">
1631 <summary> 451 <summary>
1632 Serialize the object
1633 </summary> 452 </summary>
1634 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the objects data</returns>
1635 </member> 453 </member>
1636 <member name="M:OpenMetaverse.Messages.Linden.NewFileAgentInventoryMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)"> 454 <member name="F:OpenMetaverse.MoneyTransactionType.ParcelDirFee">
1637 <summary> 455 <summary>
1638 Deserialize the message
1639 </summary> 456 </summary>
1640 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the data</param>
1641 </member> 457 </member>
1642 <member name="M:OpenMetaverse.Messages.Linden.NewFileAgentInventoryVariablePriceMessage.Serialize"> 458 <member name="F:OpenMetaverse.MoneyTransactionType.GroupTax">
1643 <summary> 459 <summary>
1644 Serialize the object
1645 </summary> 460 </summary>
1646 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the objects data</returns>
1647 </member> 461 </member>
1648 <member name="M:OpenMetaverse.Messages.Linden.NewFileAgentInventoryVariablePriceMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)"> 462 <member name="F:OpenMetaverse.MoneyTransactionType.ClassifiedRenew">
1649 <summary> 463 <summary>
1650 Deserialize the message
1651 </summary> 464 </summary>
1652 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the data</param>
1653 </member> 465 </member>
1654 <member name="T:OpenMetaverse.Messages.Linden.AgentGroupDataUpdateMessage"> 466 <member name="F:OpenMetaverse.MoneyTransactionType.GiveInventory">
1655 <summary> 467 <summary>
1656 A message sent from the simulator to an agent which contains
1657 the groups the agent is in
1658 </summary> 468 </summary>
1659 </member> 469 </member>
1660 <member name="F:OpenMetaverse.Messages.Linden.AgentGroupDataUpdateMessage.AgentID"> 470 <member name="F:OpenMetaverse.MoneyTransactionType.ObjectSale">
1661 <summary>The Agent receiving the message</summary>
1662 </member>
1663 <member name="F:OpenMetaverse.Messages.Linden.AgentGroupDataUpdateMessage.GroupDataBlock">
1664 <summary>An array containing <seealso cref="T:OpenMetaverse.Messages.Linden.AgentGroupDataUpdateMessage.GroupData"/> information
1665 for each <see cref="T:OpenMetaverse.Group"/> the agent is a member of</summary>
1666 </member>
1667 <member name="F:OpenMetaverse.Messages.Linden.AgentGroupDataUpdateMessage.NewGroupDataBlock">
1668 <summary>An array containing <seealso cref="T:OpenMetaverse.Messages.Linden.AgentGroupDataUpdateMessage.NewGroupData"/> information
1669 for each <see cref="T:OpenMetaverse.Group"/> the agent is a member of</summary>
1670 </member>
1671 <member name="M:OpenMetaverse.Messages.Linden.AgentGroupDataUpdateMessage.Serialize">
1672 <summary> 471 <summary>
1673 Serialize the object
1674 </summary> 472 </summary>
1675 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the objects data</returns>
1676 </member> 473 </member>
1677 <member name="M:OpenMetaverse.Messages.Linden.AgentGroupDataUpdateMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)"> 474 <member name="F:OpenMetaverse.MoneyTransactionType.Gift">
1678 <summary> 475 <summary>
1679 Deserialize the message
1680 </summary> 476 </summary>
1681 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the data</param>
1682 </member>
1683 <member name="T:OpenMetaverse.Messages.Linden.AgentGroupDataUpdateMessage.GroupData">
1684 <summary>Group Details specific to the agent</summary>
1685 </member>
1686 <member name="F:OpenMetaverse.Messages.Linden.AgentGroupDataUpdateMessage.GroupData.AcceptNotices">
1687 <summary>true of the agent accepts group notices</summary>
1688 </member>
1689 <member name="F:OpenMetaverse.Messages.Linden.AgentGroupDataUpdateMessage.GroupData.Contribution">
1690 <summary>The agents tier contribution to the group</summary>
1691 </member>
1692 <member name="F:OpenMetaverse.Messages.Linden.AgentGroupDataUpdateMessage.GroupData.GroupID">
1693 <summary>The Groups <seealso cref="T:OpenMetaverse.UUID"/></summary>
1694 </member>
1695 <member name="F:OpenMetaverse.Messages.Linden.AgentGroupDataUpdateMessage.GroupData.GroupInsigniaID">
1696 <summary>The <seealso cref="T:OpenMetaverse.UUID"/> of the groups insignia</summary>
1697 </member>
1698 <member name="F:OpenMetaverse.Messages.Linden.AgentGroupDataUpdateMessage.GroupData.GroupName">
1699 <summary>The name of the group</summary>
1700 </member> 477 </member>
1701 <member name="F:OpenMetaverse.Messages.Linden.AgentGroupDataUpdateMessage.GroupData.GroupPowers"> 478 <member name="F:OpenMetaverse.MoneyTransactionType.LandSale">
1702 <summary>The aggregate permissions the agent has in the group for all roles the agent
1703 is assigned</summary>
1704 </member>
1705 <member name="T:OpenMetaverse.Messages.Linden.AgentGroupDataUpdateMessage.NewGroupData">
1706 <summary>An optional block containing additional agent specific information</summary>
1707 </member>
1708 <member name="F:OpenMetaverse.Messages.Linden.AgentGroupDataUpdateMessage.NewGroupData.ListInProfile">
1709 <summary>true of the agent allows this group to be
1710 listed in their profile</summary>
1711 </member>
1712 <member name="T:OpenMetaverse.Messages.Linden.UpdateAgentLanguageMessage">
1713 <summary> 479 <summary>
1714 A message sent from the viewer to the simulator which
1715 specifies the language and permissions for others to detect
1716 the language specified
1717 </summary> 480 </summary>
1718 </member> 481 </member>
1719 <member name="F:OpenMetaverse.Messages.Linden.UpdateAgentLanguageMessage.Language"> 482 <member name="F:OpenMetaverse.MoneyTransactionType.ReferBonus">
1720 <summary>A string containng the default language
1721 to use for the agent</summary>
1722 </member>
1723 <member name="F:OpenMetaverse.Messages.Linden.UpdateAgentLanguageMessage.LanguagePublic">
1724 <summary>true of others are allowed to
1725 know the language setting</summary>
1726 </member>
1727 <member name="M:OpenMetaverse.Messages.Linden.UpdateAgentLanguageMessage.Serialize">
1728 <summary> 483 <summary>
1729 Serialize the object
1730 </summary> 484 </summary>
1731 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the objects data</returns>
1732 </member> 485 </member>
1733 <member name="M:OpenMetaverse.Messages.Linden.UpdateAgentLanguageMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)"> 486 <member name="F:OpenMetaverse.MoneyTransactionType.InventorySale">
1734 <summary> 487 <summary>
1735 Deserialize the message
1736 </summary> 488 </summary>
1737 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the data</param>
1738 </member> 489 </member>
1739 <member name="T:OpenMetaverse.Messages.Linden.AgentDropGroupMessage"> 490 <member name="F:OpenMetaverse.MoneyTransactionType.RefundPurchase">
1740 <summary> 491 <summary>
1741 An EventQueue message sent from the simulator to an agent when the agent
1742 leaves a group
1743 </summary> 492 </summary>
1744 </member> 493 </member>
1745 <member name="F:OpenMetaverse.Messages.Linden.AgentDropGroupMessage.AgentDataBlock"> 494 <member name="F:OpenMetaverse.MoneyTransactionType.LandPassSale">
1746 <summary> 495 <summary>
1747 An Array containing the AgentID and GroupID
1748 </summary> 496 </summary>
1749 </member> 497 </member>
1750 <member name="M:OpenMetaverse.Messages.Linden.AgentDropGroupMessage.Serialize"> 498 <member name="F:OpenMetaverse.MoneyTransactionType.DwellBonus">
1751 <summary> 499 <summary>
1752 Serialize the object
1753 </summary> 500 </summary>
1754 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the objects data</returns>
1755 </member> 501 </member>
1756 <member name="M:OpenMetaverse.Messages.Linden.AgentDropGroupMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)"> 502 <member name="F:OpenMetaverse.MoneyTransactionType.PayObject">
1757 <summary> 503 <summary>
1758 Deserialize the message
1759 </summary> 504 </summary>
1760 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the data</param>
1761 </member>
1762 <member name="T:OpenMetaverse.Messages.Linden.AgentDropGroupMessage.AgentData">
1763 <summary>An object containing the Agents UUID, and the Groups UUID</summary>
1764 </member>
1765 <member name="F:OpenMetaverse.Messages.Linden.AgentDropGroupMessage.AgentData.AgentID">
1766 <summary>The ID of the Agent leaving the group</summary>
1767 </member>
1768 <member name="F:OpenMetaverse.Messages.Linden.AgentDropGroupMessage.AgentData.GroupID">
1769 <summary>The GroupID the Agent is leaving</summary>
1770 </member>
1771 <member name="T:OpenMetaverse.Messages.Linden.AssetUploaderBlock">
1772 <summary>Base class for Asset uploads/results via Capabilities</summary>
1773 </member> 505 </member>
1774 <member name="F:OpenMetaverse.Messages.Linden.AssetUploaderBlock.State"> 506 <member name="F:OpenMetaverse.MoneyTransactionType.ObjectPays">
1775 <summary> 507 <summary>
1776 The request state
1777 </summary> 508 </summary>
1778 </member> 509 </member>
1779 <member name="M:OpenMetaverse.Messages.Linden.AssetUploaderBlock.Serialize"> 510 <member name="F:OpenMetaverse.MoneyTransactionType.GroupLandDeed">
1780 <summary> 511 <summary>
1781 Serialize the object
1782 </summary> 512 </summary>
1783 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the objects data</returns>
1784 </member> 513 </member>
1785 <member name="M:OpenMetaverse.Messages.Linden.AssetUploaderBlock.Deserialize(OpenMetaverse.StructuredData.OSDMap)"> 514 <member name="F:OpenMetaverse.MoneyTransactionType.GroupObjectDeed">
1786 <summary> 515 <summary>
1787 Deserialize the message
1788 </summary> 516 </summary>
1789 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the data</param>
1790 </member> 517 </member>
1791 <member name="T:OpenMetaverse.Messages.Linden.UploaderRequestUpload"> 518 <member name="F:OpenMetaverse.MoneyTransactionType.GroupLiability">
1792 <summary> 519 <summary>
1793 A message sent from the viewer to the simulator to request a temporary upload capability
1794 which allows an asset to be uploaded
1795 </summary> 520 </summary>
1796 </member> 521 </member>
1797 <member name="F:OpenMetaverse.Messages.Linden.UploaderRequestUpload.Url"> 522 <member name="F:OpenMetaverse.MoneyTransactionType.GroupDividend">
1798 <summary>The Capability URL sent by the simulator to upload the baked texture to</summary>
1799 </member>
1800 <member name="T:OpenMetaverse.Messages.Linden.UploaderRequestComplete">
1801 <summary> 523 <summary>
1802 A message sent from the simulator that will inform the agent the upload is complete,
1803 and the UUID of the uploaded asset
1804 </summary> 524 </summary>
1805 </member> 525 </member>
1806 <member name="F:OpenMetaverse.Messages.Linden.UploaderRequestComplete.AssetID"> 526 <member name="F:OpenMetaverse.MoneyTransactionType.GroupMembershipDues">
1807 <summary>The uploaded texture asset ID</summary>
1808 </member>
1809 <member name="T:OpenMetaverse.Messages.Linden.UploadBakedTextureMessage">
1810 <summary> 527 <summary>
1811 A message sent from the viewer to the simulator to request a temporary
1812 capability URI which is used to upload an agents baked appearance textures
1813 </summary> 528 </summary>
1814 </member> 529 </member>
1815 <member name="F:OpenMetaverse.Messages.Linden.UploadBakedTextureMessage.Request"> 530 <member name="F:OpenMetaverse.MoneyTransactionType.ObjectRelease">
1816 <summary>Object containing request or response</summary>
1817 </member>
1818 <member name="M:OpenMetaverse.Messages.Linden.UploadBakedTextureMessage.Serialize">
1819 <summary> 531 <summary>
1820 Serialize the object
1821 </summary> 532 </summary>
1822 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the objects data</returns>
1823 </member> 533 </member>
1824 <member name="M:OpenMetaverse.Messages.Linden.UploadBakedTextureMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)"> 534 <member name="F:OpenMetaverse.MoneyTransactionType.LandRelease">
1825 <summary> 535 <summary>
1826 Deserialize the message
1827 </summary> 536 </summary>
1828 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the data</param>
1829 </member> 537 </member>
1830 <member name="T:OpenMetaverse.Messages.Linden.RequiredVoiceVersionMessage"> 538 <member name="F:OpenMetaverse.MoneyTransactionType.ObjectDelete">
1831 <summary> 539 <summary>
1832 A message sent from the simulator which indicates the minimum version required for
1833 using voice chat
1834 </summary> 540 </summary>
1835 </member> 541 </member>
1836 <member name="F:OpenMetaverse.Messages.Linden.RequiredVoiceVersionMessage.MajorVersion"> 542 <member name="F:OpenMetaverse.MoneyTransactionType.ObjectPublicDecay">
1837 <summary>Major Version Required</summary>
1838 </member>
1839 <member name="F:OpenMetaverse.Messages.Linden.RequiredVoiceVersionMessage.MinorVersion">
1840 <summary>Minor version required</summary>
1841 </member>
1842 <member name="F:OpenMetaverse.Messages.Linden.RequiredVoiceVersionMessage.RegionName">
1843 <summary>The name of the region sending the version requrements</summary>
1844 </member>
1845 <member name="M:OpenMetaverse.Messages.Linden.RequiredVoiceVersionMessage.Serialize">
1846 <summary> 543 <summary>
1847 Serialize the object
1848 </summary> 544 </summary>
1849 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the objects data</returns>
1850 </member> 545 </member>
1851 <member name="M:OpenMetaverse.Messages.Linden.RequiredVoiceVersionMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)"> 546 <member name="F:OpenMetaverse.MoneyTransactionType.ObjectPublicDelete">
1852 <summary> 547 <summary>
1853 Deserialize the message
1854 </summary> 548 </summary>
1855 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the data</param>
1856 </member> 549 </member>
1857 <member name="T:OpenMetaverse.Messages.Linden.ParcelVoiceInfoRequestMessage"> 550 <member name="F:OpenMetaverse.MoneyTransactionType.LindenAdjustment">
1858 <summary> 551 <summary>
1859 A message sent from the simulator to the viewer containing the
1860 voice server URI
1861 </summary> 552 </summary>
1862 </member> 553 </member>
1863 <member name="F:OpenMetaverse.Messages.Linden.ParcelVoiceInfoRequestMessage.ParcelID"> 554 <member name="F:OpenMetaverse.MoneyTransactionType.LindenGrant">
1864 <summary>The Parcel ID which the voice server URI applies</summary>
1865 </member>
1866 <member name="F:OpenMetaverse.Messages.Linden.ParcelVoiceInfoRequestMessage.RegionName">
1867 <summary>The name of the region</summary>
1868 </member>
1869 <member name="F:OpenMetaverse.Messages.Linden.ParcelVoiceInfoRequestMessage.SipChannelUri">
1870 <summary>A uri containing the server/channel information
1871 which the viewer can utilize to participate in voice conversations</summary>
1872 </member>
1873 <member name="M:OpenMetaverse.Messages.Linden.ParcelVoiceInfoRequestMessage.Serialize">
1874 <summary> 555 <summary>
1875 Serialize the object
1876 </summary> 556 </summary>
1877 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the objects data</returns>
1878 </member> 557 </member>
1879 <member name="M:OpenMetaverse.Messages.Linden.ParcelVoiceInfoRequestMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)"> 558 <member name="F:OpenMetaverse.MoneyTransactionType.LindenPenalty">
1880 <summary> 559 <summary>
1881 Deserialize the message
1882 </summary> 560 </summary>
1883 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the data</param>
1884 </member> 561 </member>
1885 <member name="T:OpenMetaverse.Messages.Linden.ProvisionVoiceAccountRequestMessage"> 562 <member name="F:OpenMetaverse.MoneyTransactionType.EventFee">
1886 <summary> 563 <summary>
1887
1888 </summary> 564 </summary>
1889 </member> 565 </member>
1890 <member name="F:OpenMetaverse.Messages.Linden.ProvisionVoiceAccountRequestMessage.Password"> 566 <member name="F:OpenMetaverse.MoneyTransactionType.EventPrize">
1891 <summary></summary>
1892 </member>
1893 <member name="F:OpenMetaverse.Messages.Linden.ProvisionVoiceAccountRequestMessage.Username">
1894 <summary></summary>
1895 </member>
1896 <member name="M:OpenMetaverse.Messages.Linden.ProvisionVoiceAccountRequestMessage.Serialize">
1897 <summary> 567 <summary>
1898 Serialize the object
1899 </summary> 568 </summary>
1900 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the objects data</returns>
1901 </member> 569 </member>
1902 <member name="M:OpenMetaverse.Messages.Linden.ProvisionVoiceAccountRequestMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)"> 570 <member name="F:OpenMetaverse.MoneyTransactionType.StipendBasic">
1903 <summary> 571 <summary>
1904 Deserialize the message
1905 </summary> 572 </summary>
1906 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the data</param>
1907 </member> 573 </member>
1908 <member name="T:OpenMetaverse.Messages.Linden.UploadScriptTaskMessage"> 574 <member name="F:OpenMetaverse.MoneyTransactionType.StipendDeveloper">
1909 <summary> 575 <summary>
1910 A message sent by the viewer to the simulator to request a temporary
1911 capability for a script contained with in a Tasks inventory to be updated
1912 </summary> 576 </summary>
1913 </member> 577 </member>
1914 <member name="F:OpenMetaverse.Messages.Linden.UploadScriptTaskMessage.Request"> 578 <member name="F:OpenMetaverse.MoneyTransactionType.StipendAlways">
1915 <summary>Object containing request or response</summary>
1916 </member>
1917 <member name="M:OpenMetaverse.Messages.Linden.UploadScriptTaskMessage.Serialize">
1918 <summary> 579 <summary>
1919 Serialize the object
1920 </summary> 580 </summary>
1921 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the objects data</returns>
1922 </member> 581 </member>
1923 <member name="M:OpenMetaverse.Messages.Linden.UploadScriptTaskMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)"> 582 <member name="F:OpenMetaverse.MoneyTransactionType.StipendDaily">
1924 <summary> 583 <summary>
1925 Deserialize the message
1926 </summary> 584 </summary>
1927 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the data</param>
1928 </member> 585 </member>
1929 <member name="T:OpenMetaverse.Messages.Linden.ScriptRunningReplyMessage"> 586 <member name="F:OpenMetaverse.MoneyTransactionType.StipendRating">
1930 <summary> 587 <summary>
1931 A message sent from the simulator to the viewer to indicate
1932 a Tasks scripts status.
1933 </summary> 588 </summary>
1934 </member> 589 </member>
1935 <member name="F:OpenMetaverse.Messages.Linden.ScriptRunningReplyMessage.ItemID"> 590 <member name="F:OpenMetaverse.MoneyTransactionType.StipendDelta">
1936 <summary>The Asset ID of the script</summary>
1937 </member>
1938 <member name="F:OpenMetaverse.Messages.Linden.ScriptRunningReplyMessage.Mono">
1939 <summary>True of the script is compiled/ran using the mono interpreter, false indicates it
1940 uses the older less efficient lsl2 interprter</summary>
1941 </member>
1942 <member name="F:OpenMetaverse.Messages.Linden.ScriptRunningReplyMessage.ObjectID">
1943 <summary>The Task containing the scripts <seealso cref="T:OpenMetaverse.UUID"/></summary>
1944 </member>
1945 <member name="F:OpenMetaverse.Messages.Linden.ScriptRunningReplyMessage.Running">
1946 <summary>true of the script is in a running state</summary>
1947 </member>
1948 <member name="M:OpenMetaverse.Messages.Linden.ScriptRunningReplyMessage.Serialize">
1949 <summary> 591 <summary>
1950 Serialize the object
1951 </summary> 592 </summary>
1952 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the objects data</returns>
1953 </member> 593 </member>
1954 <member name="M:OpenMetaverse.Messages.Linden.ScriptRunningReplyMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)"> 594 <member name="T:OpenMetaverse.TransactionFlags">
1955 <summary> 595 <summary>
1956 Deserialize the message
1957 </summary> 596 </summary>
1958 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the data</param>
1959 </member> 597 </member>
1960 <member name="T:OpenMetaverse.Messages.Linden.UpdateGestureAgentInventoryMessage"> 598 <member name="F:OpenMetaverse.TransactionFlags.None">
1961 <summary> 599 <summary>
1962 A message containing the request/response used for updating a gesture
1963 contained with an agents inventory
1964 </summary> 600 </summary>
1965 </member> 601 </member>
1966 <member name="F:OpenMetaverse.Messages.Linden.UpdateGestureAgentInventoryMessage.Request"> 602 <member name="F:OpenMetaverse.TransactionFlags.SourceGroup">
1967 <summary>Object containing request or response</summary>
1968 </member>
1969 <member name="M:OpenMetaverse.Messages.Linden.UpdateGestureAgentInventoryMessage.Serialize">
1970 <summary> 603 <summary>
1971 Serialize the object
1972 </summary> 604 </summary>
1973 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the objects data</returns>
1974 </member> 605 </member>
1975 <member name="M:OpenMetaverse.Messages.Linden.UpdateGestureAgentInventoryMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)"> 606 <member name="F:OpenMetaverse.TransactionFlags.DestGroup">
1976 <summary> 607 <summary>
1977 Deserialize the message
1978 </summary> 608 </summary>
1979 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the data</param>
1980 </member> 609 </member>
1981 <member name="T:OpenMetaverse.Messages.Linden.UpdateNotecardTaskInventoryMessage"> 610 <member name="F:OpenMetaverse.TransactionFlags.OwnerGroup">
1982 <summary> 611 <summary>
1983 A message request/response which is used to update a notecard contained within
1984 a tasks inventory
1985 </summary> 612 </summary>
1986 </member> 613 </member>
1987 <member name="F:OpenMetaverse.Messages.Linden.UpdateNotecardTaskInventoryMessage.TaskID"> 614 <member name="F:OpenMetaverse.TransactionFlags.SimultaneousContribution">
1988 <summary>The <seealso cref="T:OpenMetaverse.UUID"/> of the Task containing the notecard asset to update</summary>
1989 </member>
1990 <member name="F:OpenMetaverse.Messages.Linden.UpdateNotecardTaskInventoryMessage.ItemID">
1991 <summary>The notecard assets <seealso cref="T:OpenMetaverse.UUID"/> contained in the tasks inventory</summary>
1992 </member>
1993 <member name="M:OpenMetaverse.Messages.Linden.UpdateNotecardTaskInventoryMessage.Serialize">
1994 <summary> 615 <summary>
1995 Serialize the object
1996 </summary> 616 </summary>
1997 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the objects data</returns>
1998 </member> 617 </member>
1999 <member name="M:OpenMetaverse.Messages.Linden.UpdateNotecardTaskInventoryMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)"> 618 <member name="F:OpenMetaverse.TransactionFlags.ContributionRemoval">
2000 <summary> 619 <summary>
2001 Deserialize the message
2002 </summary> 620 </summary>
2003 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the data</param>
2004 </member> 621 </member>
2005 <member name="T:OpenMetaverse.Messages.Linden.UpdateAgentInventoryRequestMessage"> 622 <member name="T:OpenMetaverse.MeanCollisionType">
2006 <summary> 623 <summary>
2007 A reusable class containing a message sent from the viewer to the simulator to request a temporary uploader capability
2008 which is used to update an asset in an agents inventory
2009 </summary> 624 </summary>
2010 </member> 625 </member>
2011 <member name="F:OpenMetaverse.Messages.Linden.UpdateAgentInventoryRequestMessage.ItemID"> 626 <member name="F:OpenMetaverse.MeanCollisionType.None">
2012 <summary> 627 <summary>
2013 The Notecard AssetID to replace
2014 </summary> 628 </summary>
2015 </member> 629 </member>
2016 <member name="M:OpenMetaverse.Messages.Linden.UpdateAgentInventoryRequestMessage.Serialize"> 630 <member name="F:OpenMetaverse.MeanCollisionType.Bump">
2017 <summary> 631 <summary>
2018 Serialize the object
2019 </summary> 632 </summary>
2020 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the objects data</returns>
2021 </member> 633 </member>
2022 <member name="M:OpenMetaverse.Messages.Linden.UpdateAgentInventoryRequestMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)"> 634 <member name="F:OpenMetaverse.MeanCollisionType.LLPushObject">
2023 <summary> 635 <summary>
2024 Deserialize the message
2025 </summary> 636 </summary>
2026 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the data</param>
2027 </member> 637 </member>
2028 <member name="T:OpenMetaverse.Messages.Linden.UpdateNotecardAgentInventoryMessage"> 638 <member name="F:OpenMetaverse.MeanCollisionType.SelectedObjectCollide">
2029 <summary> 639 <summary>
2030 A message containing the request/response used for updating a notecard
2031 contained with an agents inventory
2032 </summary> 640 </summary>
2033 </member> 641 </member>
2034 <member name="F:OpenMetaverse.Messages.Linden.UpdateNotecardAgentInventoryMessage.Request"> 642 <member name="F:OpenMetaverse.MeanCollisionType.ScriptedObjectCollide">
2035 <summary>Object containing request or response</summary>
2036 </member>
2037 <member name="M:OpenMetaverse.Messages.Linden.UpdateNotecardAgentInventoryMessage.Serialize">
2038 <summary> 643 <summary>
2039 Serialize the object
2040 </summary> 644 </summary>
2041 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the objects data</returns>
2042 </member> 645 </member>
2043 <member name="M:OpenMetaverse.Messages.Linden.UpdateNotecardAgentInventoryMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)"> 646 <member name="F:OpenMetaverse.MeanCollisionType.PhysicalObjectCollide">
2044 <summary> 647 <summary>
2045 Deserialize the message
2046 </summary> 648 </summary>
2047 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the data</param>
2048 </member> 649 </member>
2049 <member name="M:OpenMetaverse.Messages.Linden.CopyInventoryFromNotecardMessage.Serialize"> 650 <member name="T:OpenMetaverse.ScriptControlChange">
2050 <summary> 651 <summary>
2051 Serialize the object 652 Flags sent when a script takes or releases a control
2052 </summary> 653 </summary>
2053 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the objects data</returns> 654 <remarks>NOTE: (need to verify) These might be a subset of the ControlFlags enum in Movement,</remarks>
2054 </member> 655 </member>
2055 <member name="M:OpenMetaverse.Messages.Linden.CopyInventoryFromNotecardMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)"> 656 <member name="F:OpenMetaverse.ScriptControlChange.None">
2056 <summary> 657 <summary>No Flags set</summary>
2057 Deserialize the message
2058 </summary>
2059 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the data</param>
2060 </member> 658 </member>
2061 <member name="T:OpenMetaverse.Messages.Linden.UploaderScriptRequestError"> 659 <member name="F:OpenMetaverse.ScriptControlChange.Forward">
2062 <summary> 660 <summary>Forward (W or up Arrow)</summary>
2063 A message sent from the simulator to the viewer which indicates
2064 an error occurred while attempting to update a script in an agents or tasks
2065 inventory
2066 </summary>
2067 </member> 661 </member>
2068 <member name="F:OpenMetaverse.Messages.Linden.UploaderScriptRequestError.Compiled"> 662 <member name="F:OpenMetaverse.ScriptControlChange.Back">
2069 <summary>true of the script was successfully compiled by the simulator</summary> 663 <summary>Back (S or down arrow)</summary>
2070 </member> 664 </member>
2071 <member name="F:OpenMetaverse.Messages.Linden.UploaderScriptRequestError.Error"> 665 <member name="F:OpenMetaverse.ScriptControlChange.Left">
2072 <summary>A string containing the error which occured while trying 666 <summary>Move left (shift+A or left arrow)</summary>
2073 to update the script</summary>
2074 </member> 667 </member>
2075 <member name="F:OpenMetaverse.Messages.Linden.UploaderScriptRequestError.AssetID"> 668 <member name="F:OpenMetaverse.ScriptControlChange.Right">
2076 <summary>A new AssetID assigned to the script</summary> 669 <summary>Move right (shift+D or right arrow)</summary>
2077 </member> 670 </member>
2078 <member name="T:OpenMetaverse.Messages.Linden.UpdateScriptTaskUpdateMessage"> 671 <member name="F:OpenMetaverse.ScriptControlChange.Up">
2079 <summary> 672 <summary>Up (E or PgUp)</summary>
2080 A message sent from the viewer to the simulator
2081 requesting the update of an existing script contained
2082 within a tasks inventory
2083 </summary>
2084 </member> 673 </member>
2085 <member name="F:OpenMetaverse.Messages.Linden.UpdateScriptTaskUpdateMessage.ScriptRunning"> 674 <member name="F:OpenMetaverse.ScriptControlChange.Down">
2086 <summary>if true, set the script mode to running</summary> 675 <summary>Down (C or PgDown)</summary>
2087 </member> 676 </member>
2088 <member name="F:OpenMetaverse.Messages.Linden.UpdateScriptTaskUpdateMessage.ItemID"> 677 <member name="F:OpenMetaverse.ScriptControlChange.RotateLeft">
2089 <summary>The scripts InventoryItem ItemID to update</summary> 678 <summary>Rotate left (A or left arrow)</summary>
2090 </member> 679 </member>
2091 <member name="F:OpenMetaverse.Messages.Linden.UpdateScriptTaskUpdateMessage.Target"> 680 <member name="F:OpenMetaverse.ScriptControlChange.RotateRight">
2092 <summary>A lowercase string containing either "mono" or "lsl2" which 681 <summary>Rotate right (D or right arrow)</summary>
2093 specifies the script is compiled and ran on the mono runtime, or the older
2094 lsl runtime</summary>
2095 </member> 682 </member>
2096 <member name="F:OpenMetaverse.Messages.Linden.UpdateScriptTaskUpdateMessage.TaskID"> 683 <member name="F:OpenMetaverse.ScriptControlChange.LeftButton">
2097 <summary>The tasks <see cref="T:OpenMetaverse.UUID"/> which contains the script to update</summary> 684 <summary>Left Mouse Button</summary>
2098 </member> 685 </member>
2099 <member name="M:OpenMetaverse.Messages.Linden.UpdateScriptTaskUpdateMessage.Serialize"> 686 <member name="F:OpenMetaverse.ScriptControlChange.MouseLookLeftButton">
687 <summary>Left Mouse button in MouseLook</summary>
688 </member>
689 <member name="T:OpenMetaverse.AgentFlags">
2100 <summary> 690 <summary>
2101 Serialize the object 691 Currently only used to hide your group title
2102 </summary> 692 </summary>
2103 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the objects data</returns>
2104 </member> 693 </member>
2105 <member name="M:OpenMetaverse.Messages.Linden.UpdateScriptTaskUpdateMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)"> 694 <member name="F:OpenMetaverse.AgentFlags.None">
695 <summary>No flags set</summary>
696 </member>
697 <member name="F:OpenMetaverse.AgentFlags.HideTitle">
698 <summary>Hide your group title</summary>
699 </member>
700 <member name="T:OpenMetaverse.AgentState">
2106 <summary> 701 <summary>
2107 Deserialize the message 702 Action state of the avatar, which can currently be typing and
703 editing
2108 </summary> 704 </summary>
2109 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the data</param>
2110 </member> 705 </member>
2111 <member name="T:OpenMetaverse.Messages.Linden.UpdateScriptTaskMessage"> 706 <member name="F:OpenMetaverse.AgentState.None">
2112 <summary> 707 <summary>
2113 A message containing either the request or response used in updating a script inside
2114 a tasks inventory
2115 </summary> 708 </summary>
2116 </member> 709 </member>
2117 <member name="F:OpenMetaverse.Messages.Linden.UpdateScriptTaskMessage.Request"> 710 <member name="F:OpenMetaverse.AgentState.Typing">
2118 <summary>Object containing request or response</summary>
2119 </member>
2120 <member name="M:OpenMetaverse.Messages.Linden.UpdateScriptTaskMessage.Serialize">
2121 <summary> 711 <summary>
2122 Serialize the object
2123 </summary> 712 </summary>
2124 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the objects data</returns>
2125 </member> 713 </member>
2126 <member name="M:OpenMetaverse.Messages.Linden.UpdateScriptTaskMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)"> 714 <member name="F:OpenMetaverse.AgentState.Editing">
2127 <summary> 715 <summary>
2128 Deserialize the message
2129 </summary> 716 </summary>
2130 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the data</param>
2131 </member> 717 </member>
2132 <member name="T:OpenMetaverse.Messages.Linden.UploaderRequestScriptComplete"> 718 <member name="T:OpenMetaverse.TeleportStatus">
2133 <summary> 719 <summary>
2134 Response from the simulator to notify the viewer the upload is completed, and 720 Current teleport status
2135 the UUID of the script asset and its compiled status
2136 </summary> 721 </summary>
2137 </member> 722 </member>
2138 <member name="F:OpenMetaverse.Messages.Linden.UploaderRequestScriptComplete.AssetID"> 723 <member name="F:OpenMetaverse.TeleportStatus.None">
2139 <summary>The uploaded texture asset ID</summary> 724 <summary>Unknown status</summary>
2140 </member> 725 </member>
2141 <member name="F:OpenMetaverse.Messages.Linden.UploaderRequestScriptComplete.Compiled"> 726 <member name="F:OpenMetaverse.TeleportStatus.Start">
2142 <summary>true of the script was compiled successfully</summary> 727 <summary>Teleport initialized</summary>
2143 </member> 728 </member>
2144 <member name="T:OpenMetaverse.Messages.Linden.UpdateScriptAgentRequestMessage"> 729 <member name="F:OpenMetaverse.TeleportStatus.Progress">
2145 <summary> 730 <summary>Teleport in progress</summary>
2146 A message sent from a viewer to the simulator requesting a temporary uploader capability
2147 used to update a script contained in an agents inventory
2148 </summary>
2149 </member> 731 </member>
2150 <member name="F:OpenMetaverse.Messages.Linden.UpdateScriptAgentRequestMessage.ItemID"> 732 <member name="F:OpenMetaverse.TeleportStatus.Failed">
2151 <summary>The existing asset if of the script in the agents inventory to replace</summary> 733 <summary>Teleport failed</summary>
2152 </member> 734 </member>
2153 <member name="F:OpenMetaverse.Messages.Linden.UpdateScriptAgentRequestMessage.Target"> 735 <member name="F:OpenMetaverse.TeleportStatus.Finished">
2154 <summary>The language of the script</summary> 736 <summary>Teleport completed</summary>
2155 <remarks>Defaults to lsl version 2, "mono" might be another possible option</remarks>
2156 </member> 737 </member>
2157 <member name="M:OpenMetaverse.Messages.Linden.UpdateScriptAgentRequestMessage.Serialize"> 738 <member name="F:OpenMetaverse.TeleportStatus.Cancelled">
2158 <summary> 739 <summary>Teleport cancelled</summary>
2159 Serialize the object
2160 </summary>
2161 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the objects data</returns>
2162 </member> 740 </member>
2163 <member name="M:OpenMetaverse.Messages.Linden.UpdateScriptAgentRequestMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)"> 741 <member name="T:OpenMetaverse.TeleportFlags">
2164 <summary> 742 <summary>
2165 Deserialize the message
2166 </summary> 743 </summary>
2167 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the data</param>
2168 </member> 744 </member>
2169 <member name="T:OpenMetaverse.Messages.Linden.UpdateScriptAgentMessage"> 745 <member name="F:OpenMetaverse.TeleportFlags.Default">
2170 <summary> 746 <summary>No flags set, or teleport failed</summary>
2171 A message containing either the request or response used in updating a script inside
2172 an agents inventory
2173 </summary>
2174 </member> 747 </member>
2175 <member name="F:OpenMetaverse.Messages.Linden.UpdateScriptAgentMessage.Request"> 748 <member name="F:OpenMetaverse.TeleportFlags.SetHomeToTarget">
2176 <summary>Object containing request or response</summary> 749 <summary>Set when newbie leaves help island for first time</summary>
2177 </member> 750 </member>
2178 <member name="M:OpenMetaverse.Messages.Linden.UpdateScriptAgentMessage.Serialize"> 751 <member name="F:OpenMetaverse.TeleportFlags.SetLastToTarget">
2179 <summary> 752 <summary>
2180 Serialize the object
2181 </summary> 753 </summary>
2182 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the objects data</returns>
2183 </member> 754 </member>
2184 <member name="M:OpenMetaverse.Messages.Linden.UpdateScriptAgentMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)"> 755 <member name="F:OpenMetaverse.TeleportFlags.ViaLure">
2185 <summary> 756 <summary>Via Lure</summary>
2186 Deserialize the message
2187 </summary>
2188 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the data</param>
2189 </member> 757 </member>
2190 <member name="M:OpenMetaverse.Messages.Linden.SendPostcardMessage.Serialize"> 758 <member name="F:OpenMetaverse.TeleportFlags.ViaLandmark">
2191 <summary> 759 <summary>Via Landmark</summary>
2192 Serialize the object
2193 </summary>
2194 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the objects data</returns>
2195 </member> 760 </member>
2196 <member name="M:OpenMetaverse.Messages.Linden.SendPostcardMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)"> 761 <member name="F:OpenMetaverse.TeleportFlags.ViaLocation">
2197 <summary> 762 <summary>Via Location</summary>
2198 Deserialize the message
2199 </summary>
2200 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the data</param>
2201 </member> 763 </member>
2202 <member name="T:OpenMetaverse.Messages.Linden.MapLayerMessageBase"> 764 <member name="F:OpenMetaverse.TeleportFlags.ViaHome">
2203 <summary>Base class for Map Layers via Capabilities</summary> 765 <summary>Via Home</summary>
2204 </member> 766 </member>
2205 <member name="F:OpenMetaverse.Messages.Linden.MapLayerMessageBase.Flags"> 767 <member name="F:OpenMetaverse.TeleportFlags.ViaTelehub">
2206 <summary></summary> 768 <summary>Via Telehub</summary>
2207 </member> 769 </member>
2208 <member name="M:OpenMetaverse.Messages.Linden.MapLayerMessageBase.Serialize"> 770 <member name="F:OpenMetaverse.TeleportFlags.ViaLogin">
2209 <summary> 771 <summary>Via Login</summary>
2210 Serialize the object
2211 </summary>
2212 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the objects data</returns>
2213 </member> 772 </member>
2214 <member name="M:OpenMetaverse.Messages.Linden.MapLayerMessageBase.Deserialize(OpenMetaverse.StructuredData.OSDMap)"> 773 <member name="F:OpenMetaverse.TeleportFlags.ViaGodlikeLure">
2215 <summary> 774 <summary>Linden Summoned</summary>
2216 Deserialize the message
2217 </summary>
2218 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the data</param>
2219 </member> 775 </member>
2220 <member name="T:OpenMetaverse.Messages.Linden.MapLayerRequestVariant"> 776 <member name="F:OpenMetaverse.TeleportFlags.Godlike">
2221 <summary> 777 <summary>Linden Forced me</summary>
2222 Sent by an agent to the capabilities server to request map layers
2223 </summary>
2224 </member> 778 </member>
2225 <member name="T:OpenMetaverse.Messages.Linden.MapLayerReplyVariant"> 779 <member name="F:OpenMetaverse.TeleportFlags.NineOneOne">
2226 <summary> 780 <summary>
2227 A message sent from the simulator to the viewer which contains an array of map images and their grid coordinates
2228 </summary> 781 </summary>
2229 </member> 782 </member>
2230 <member name="F:OpenMetaverse.Messages.Linden.MapLayerReplyVariant.LayerDataBlocks"> 783 <member name="F:OpenMetaverse.TeleportFlags.DisableCancel">
2231 <summary>An array containing LayerData items</summary> 784 <summary>Agent Teleported Home via Script</summary>
2232 </member> 785 </member>
2233 <member name="M:OpenMetaverse.Messages.Linden.MapLayerReplyVariant.Serialize"> 786 <member name="F:OpenMetaverse.TeleportFlags.ViaRegionID">
2234 <summary> 787 <summary>
2235 Serialize the object
2236 </summary> 788 </summary>
2237 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the objects data</returns>
2238 </member> 789 </member>
2239 <member name="M:OpenMetaverse.Messages.Linden.MapLayerReplyVariant.Deserialize(OpenMetaverse.StructuredData.OSDMap)"> 790 <member name="F:OpenMetaverse.TeleportFlags.IsFlying">
2240 <summary> 791 <summary>
2241 Deserialize the message
2242 </summary> 792 </summary>
2243 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the data</param>
2244 </member> 793 </member>
2245 <member name="T:OpenMetaverse.Messages.Linden.MapLayerReplyVariant.LayerData"> 794 <member name="F:OpenMetaverse.TeleportFlags.ResetHome">
2246 <summary> 795 <summary>
2247 An object containing map location details
2248 </summary> 796 </summary>
2249 </member> 797 </member>
2250 <member name="F:OpenMetaverse.Messages.Linden.MapLayerReplyVariant.LayerData.ImageID"> 798 <member name="F:OpenMetaverse.TeleportFlags.ForceRedirect">
2251 <summary>The Asset ID of the regions tile overlay</summary> 799 <summary>forced to new location for example when avatar is banned or ejected</summary>
2252 </member>
2253 <member name="F:OpenMetaverse.Messages.Linden.MapLayerReplyVariant.LayerData.Bottom">
2254 <summary>The grid location of the southern border of the map tile</summary>
2255 </member>
2256 <member name="F:OpenMetaverse.Messages.Linden.MapLayerReplyVariant.LayerData.Left">
2257 <summary>The grid location of the western border of the map tile</summary>
2258 </member> 800 </member>
2259 <member name="F:OpenMetaverse.Messages.Linden.MapLayerReplyVariant.LayerData.Right"> 801 <member name="F:OpenMetaverse.TeleportFlags.FinishedViaLure">
2260 <summary>The grid location of the eastern border of the map tile</summary> 802 <summary>Teleport Finished via a Lure</summary>
2261 </member> 803 </member>
2262 <member name="F:OpenMetaverse.Messages.Linden.MapLayerReplyVariant.LayerData.Top"> 804 <member name="F:OpenMetaverse.TeleportFlags.FinishedViaNewSim">
2263 <summary>The grid location of the northern border of the map tile</summary> 805 <summary>Finished, Sim Changed</summary>
2264 </member> 806 </member>
2265 <member name="F:OpenMetaverse.Messages.Linden.MapLayerMessage.Request"> 807 <member name="F:OpenMetaverse.TeleportFlags.FinishedViaSameSim">
2266 <summary>Object containing request or response</summary> 808 <summary>Finished, Same Sim</summary>
2267 </member> 809 </member>
2268 <member name="M:OpenMetaverse.Messages.Linden.MapLayerMessage.Serialize"> 810 <member name="T:OpenMetaverse.TeleportLureFlags">
2269 <summary> 811 <summary>
2270 Serialize the object
2271 </summary> 812 </summary>
2272 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the objects data</returns>
2273 </member> 813 </member>
2274 <member name="M:OpenMetaverse.Messages.Linden.MapLayerMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)"> 814 <member name="F:OpenMetaverse.TeleportLureFlags.NormalLure">
2275 <summary> 815 <summary>
2276 Deserialize the message
2277 </summary> 816 </summary>
2278 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the data</param>
2279 </member> 817 </member>
2280 <member name="T:OpenMetaverse.Messages.Linden.ProductInfoRequestMessage"> 818 <member name="F:OpenMetaverse.TeleportLureFlags.GodlikeLure">
2281 <summary> 819 <summary>
2282 New as of 1.23 RC1, no details yet.
2283 </summary> 820 </summary>
2284 </member> 821 </member>
2285 <member name="M:OpenMetaverse.Messages.Linden.ProductInfoRequestMessage.Serialize"> 822 <member name="F:OpenMetaverse.TeleportLureFlags.GodlikePursuit">
2286 <summary> 823 <summary>
2287 Serialize the object
2288 </summary> 824 </summary>
2289 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the objects data</returns>
2290 </member> 825 </member>
2291 <member name="M:OpenMetaverse.Messages.Linden.ProductInfoRequestMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)"> 826 <member name="T:OpenMetaverse.ScriptSensorTypeFlags">
2292 <summary> 827 <summary>
2293 Deserialize the message
2294 </summary> 828 </summary>
2295 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the data</param>
2296 </member> 829 </member>
2297 <member name="M:OpenMetaverse.Messages.Linden.SearchStatRequestMessage.Serialize"> 830 <member name="F:OpenMetaverse.ScriptSensorTypeFlags.Agent">
2298 <summary> 831 <summary>
2299 Serialize the object
2300 </summary> 832 </summary>
2301 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the objects data</returns>
2302 </member> 833 </member>
2303 <member name="M:OpenMetaverse.Messages.Linden.SearchStatRequestMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)"> 834 <member name="F:OpenMetaverse.ScriptSensorTypeFlags.Active">
2304 <summary> 835 <summary>
2305 Deserialize the message
2306 </summary> 836 </summary>
2307 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the data</param>
2308 </member>
2309 <member name="F:OpenMetaverse.Messages.Linden.ChatSessionRequestBlock.Method">
2310 <summary>A string containing the method used</summary>
2311 </member> 837 </member>
2312 <member name="T:OpenMetaverse.Messages.Linden.ChatSessionRequestStartConference"> 838 <member name="F:OpenMetaverse.ScriptSensorTypeFlags.Passive">
2313 <summary>
2314 A request sent from an agent to the Simulator to begin a new conference.
2315 Contains a list of Agents which will be included in the conference
2316 </summary>
2317 </member>
2318 <member name="F:OpenMetaverse.Messages.Linden.ChatSessionRequestStartConference.AgentsBlock">
2319 <summary>An array containing the <see cref="T:OpenMetaverse.UUID"/> of the agents invited to this conference</summary>
2320 </member>
2321 <member name="F:OpenMetaverse.Messages.Linden.ChatSessionRequestStartConference.SessionID">
2322 <summary>The conferences Session ID</summary>
2323 </member>
2324 <member name="M:OpenMetaverse.Messages.Linden.ChatSessionRequestStartConference.Serialize">
2325 <summary> 839 <summary>
2326 Serialize the object
2327 </summary> 840 </summary>
2328 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the objects data</returns>
2329 </member> 841 </member>
2330 <member name="M:OpenMetaverse.Messages.Linden.ChatSessionRequestStartConference.Deserialize(OpenMetaverse.StructuredData.OSDMap)"> 842 <member name="F:OpenMetaverse.ScriptSensorTypeFlags.Scripted">
2331 <summary> 843 <summary>
2332 Deserialize the message
2333 </summary> 844 </summary>
2334 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the data</param>
2335 </member> 845 </member>
2336 <member name="T:OpenMetaverse.Messages.Linden.ChatSessionRequestMuteUpdate"> 846 <member name="T:OpenMetaverse.MuteType">
2337 <summary> 847 <summary>
2338 A moderation request sent from a conference moderator 848 Type of mute entry
2339 Contains an agent and an optional action to take
2340 </summary>
2341 </member>
2342 <member name="F:OpenMetaverse.Messages.Linden.ChatSessionRequestMuteUpdate.SessionID">
2343 <summary>The Session ID</summary>
2344 </member>
2345 <member name="F:OpenMetaverse.Messages.Linden.ChatSessionRequestMuteUpdate.AgentID">
2346 <summary></summary>
2347 </member>
2348 <member name="F:OpenMetaverse.Messages.Linden.ChatSessionRequestMuteUpdate.RequestKey">
2349 <summary>A list containing Key/Value pairs, known valid values:
2350 key: text value: true/false - allow/disallow specified agents ability to use text in session
2351 key: voice value: true/false - allow/disallow specified agents ability to use voice in session
2352 </summary> 849 </summary>
2353 <remarks>"text" or "voice"</remarks>
2354 </member> 850 </member>
2355 <member name="F:OpenMetaverse.Messages.Linden.ChatSessionRequestMuteUpdate.RequestValue"> 851 <member name="F:OpenMetaverse.MuteType.ByName">
2356 <summary></summary> 852 <summary>Object muted by name</summary>
2357 </member> 853 </member>
2358 <member name="M:OpenMetaverse.Messages.Linden.ChatSessionRequestMuteUpdate.Serialize"> 854 <member name="F:OpenMetaverse.MuteType.Resident">
2359 <summary> 855 <summary>Muted residet</summary>
2360 Serialize the object
2361 </summary>
2362 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the objects data</returns>
2363 </member> 856 </member>
2364 <member name="M:OpenMetaverse.Messages.Linden.ChatSessionRequestMuteUpdate.Deserialize(OpenMetaverse.StructuredData.OSDMap)"> 857 <member name="F:OpenMetaverse.MuteType.Object">
2365 <summary> 858 <summary>Object muted by UUID</summary>
2366 Deserialize the message
2367 </summary>
2368 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the data</param>
2369 </member> 859 </member>
2370 <member name="T:OpenMetaverse.Messages.Linden.ChatSessionAcceptInvitation"> 860 <member name="F:OpenMetaverse.MuteType.Group">
2371 <summary> 861 <summary>Muted group</summary>
2372 A message sent from the agent to the simulator which tells the
2373 simulator we've accepted a conference invitation
2374 </summary>
2375 </member> 862 </member>
2376 <member name="F:OpenMetaverse.Messages.Linden.ChatSessionAcceptInvitation.SessionID"> 863 <member name="F:OpenMetaverse.MuteType.External">
2377 <summary>The conference SessionID</summary> 864 <summary>Muted external entry</summary>
2378 </member> 865 </member>
2379 <member name="M:OpenMetaverse.Messages.Linden.ChatSessionAcceptInvitation.Serialize"> 866 <member name="T:OpenMetaverse.MuteFlags">
2380 <summary> 867 <summary>
2381 Serialize the object 868 Flags of mute entry
2382 </summary> 869 </summary>
2383 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the objects data</returns>
2384 </member> 870 </member>
2385 <member name="M:OpenMetaverse.Messages.Linden.ChatSessionAcceptInvitation.Deserialize(OpenMetaverse.StructuredData.OSDMap)"> 871 <member name="F:OpenMetaverse.MuteFlags.Default">
2386 <summary> 872 <summary>No exceptions</summary>
2387 Deserialize the message
2388 </summary>
2389 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the data</param>
2390 </member> 873 </member>
2391 <member name="M:OpenMetaverse.Messages.Linden.ChatSessionRequestMessage.Serialize"> 874 <member name="F:OpenMetaverse.MuteFlags.TextChat">
2392 <summary> 875 <summary>Don't mute text chat</summary>
2393 Serialize the object
2394 </summary>
2395 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the objects data</returns>
2396 </member> 876 </member>
2397 <member name="M:OpenMetaverse.Messages.Linden.ChatSessionRequestMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)"> 877 <member name="F:OpenMetaverse.MuteFlags.VoiceChat">
2398 <summary> 878 <summary>Don't mute voice chat</summary>
2399 Deserialize the message
2400 </summary>
2401 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the data</param>
2402 </member> 879 </member>
2403 <member name="M:OpenMetaverse.Messages.Linden.ChatterboxSessionEventReplyMessage.Serialize"> 880 <member name="F:OpenMetaverse.MuteFlags.Particles">
2404 <summary> 881 <summary>Don't mute particles</summary>
2405 Serialize the object
2406 </summary>
2407 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the objects data</returns>
2408 </member> 882 </member>
2409 <member name="M:OpenMetaverse.Messages.Linden.ChatterboxSessionEventReplyMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)"> 883 <member name="F:OpenMetaverse.MuteFlags.ObjectSounds">
2410 <summary> 884 <summary>Don't mute sounds</summary>
2411 Deserialize the message
2412 </summary>
2413 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the data</param>
2414 </member> 885 </member>
2415 <member name="M:OpenMetaverse.Messages.Linden.ChatterBoxSessionStartReplyMessage.Serialize"> 886 <member name="F:OpenMetaverse.MuteFlags.All">
2416 <summary> 887 <summary>Don't mute</summary>
2417 Serialize the object
2418 </summary>
2419 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the objects data</returns>
2420 </member> 888 </member>
2421 <member name="M:OpenMetaverse.Messages.Linden.ChatterBoxSessionStartReplyMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)"> 889 <member name="T:OpenMetaverse.InstantMessage">
2422 <summary> 890 <summary>
2423 Deserialize the message 891 Instant Message
2424 </summary> 892 </summary>
2425 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the data</param>
2426 </member> 893 </member>
2427 <member name="F:OpenMetaverse.Messages.Linden.ChatterBoxInvitationMessage.FromAgentID"> 894 <member name="F:OpenMetaverse.InstantMessage.FromAgentID">
2428 <summary>Key of sender</summary> 895 <summary>Key of sender</summary>
2429 </member> 896 </member>
2430 <member name="F:OpenMetaverse.Messages.Linden.ChatterBoxInvitationMessage.FromAgentName"> 897 <member name="F:OpenMetaverse.InstantMessage.FromAgentName">
2431 <summary>Name of sender</summary> 898 <summary>Name of sender</summary>
2432 </member> 899 </member>
2433 <member name="F:OpenMetaverse.Messages.Linden.ChatterBoxInvitationMessage.ToAgentID"> 900 <member name="F:OpenMetaverse.InstantMessage.ToAgentID">
2434 <summary>Key of destination avatar</summary> 901 <summary>Key of destination avatar</summary>
2435 </member> 902 </member>
2436 <member name="F:OpenMetaverse.Messages.Linden.ChatterBoxInvitationMessage.ParentEstateID"> 903 <member name="F:OpenMetaverse.InstantMessage.ParentEstateID">
2437 <summary>ID of originating estate</summary> 904 <summary>ID of originating estate</summary>
2438 </member> 905 </member>
2439 <member name="F:OpenMetaverse.Messages.Linden.ChatterBoxInvitationMessage.RegionID"> 906 <member name="F:OpenMetaverse.InstantMessage.RegionID">
2440 <summary>Key of originating region</summary> 907 <summary>Key of originating region</summary>
2441 </member> 908 </member>
2442 <member name="F:OpenMetaverse.Messages.Linden.ChatterBoxInvitationMessage.Position"> 909 <member name="F:OpenMetaverse.InstantMessage.Position">
2443 <summary>Coordinates in originating region</summary> 910 <summary>Coordinates in originating region</summary>
2444 </member> 911 </member>
2445 <member name="F:OpenMetaverse.Messages.Linden.ChatterBoxInvitationMessage.Dialog"> 912 <member name="F:OpenMetaverse.InstantMessage.Dialog">
2446 <summary>Instant message type</summary> 913 <summary>Instant message type</summary>
2447 </member> 914 </member>
2448 <member name="F:OpenMetaverse.Messages.Linden.ChatterBoxInvitationMessage.GroupIM"> 915 <member name="F:OpenMetaverse.InstantMessage.GroupIM">
2449 <summary>Group IM session toggle</summary> 916 <summary>Group IM session toggle</summary>
2450 </member> 917 </member>
2451 <member name="F:OpenMetaverse.Messages.Linden.ChatterBoxInvitationMessage.IMSessionID"> 918 <member name="F:OpenMetaverse.InstantMessage.IMSessionID">
2452 <summary>Key of IM session, for Group Messages, the groups UUID</summary> 919 <summary>Key of IM session, for Group Messages, the groups UUID</summary>
2453 </member> 920 </member>
2454 <member name="F:OpenMetaverse.Messages.Linden.ChatterBoxInvitationMessage.Timestamp"> 921 <member name="F:OpenMetaverse.InstantMessage.Timestamp">
2455 <summary>Timestamp of the instant message</summary> 922 <summary>Timestamp of the instant message</summary>
2456 </member> 923 </member>
2457 <member name="F:OpenMetaverse.Messages.Linden.ChatterBoxInvitationMessage.Message"> 924 <member name="F:OpenMetaverse.InstantMessage.Message">
2458 <summary>Instant message text</summary> 925 <summary>Instant message text</summary>
2459 </member> 926 </member>
2460 <member name="F:OpenMetaverse.Messages.Linden.ChatterBoxInvitationMessage.Offline"> 927 <member name="F:OpenMetaverse.InstantMessage.Offline">
2461 <summary>Whether this message is held for offline avatars</summary> 928 <summary>Whether this message is held for offline avatars</summary>
2462 </member> 929 </member>
2463 <member name="F:OpenMetaverse.Messages.Linden.ChatterBoxInvitationMessage.BinaryBucket"> 930 <member name="F:OpenMetaverse.InstantMessage.BinaryBucket">
2464 <summary>Context specific packed data</summary> 931 <summary>Context specific packed data</summary>
2465 </member> 932 </member>
2466 <member name="F:OpenMetaverse.Messages.Linden.ChatterBoxInvitationMessage.Voice"> 933 <member name="M:OpenMetaverse.InstantMessage.ToString">
2467 <summary>Is this invitation for voice group/conference chat</summary> 934 <summary>Print the struct data as a string</summary>
2468 </member> 935 <returns>A string containing the field name, and field value</returns>
2469 <member name="M:OpenMetaverse.Messages.Linden.ChatterBoxInvitationMessage.Serialize">
2470 <summary>
2471 Serialize the object
2472 </summary>
2473 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the objects data</returns>
2474 </member>
2475 <member name="M:OpenMetaverse.Messages.Linden.ChatterBoxInvitationMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
2476 <summary>
2477 Deserialize the message
2478 </summary>
2479 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the data</param>
2480 </member>
2481 <member name="T:OpenMetaverse.Messages.Linden.ChatterBoxSessionAgentListUpdatesMessage">
2482 <summary>
2483 Sent from the simulator to the viewer.
2484
2485 When an agent initially joins a session the AgentUpdatesBlock object will contain a list of session members including
2486 a boolean indicating they can use voice chat in this session, a boolean indicating they are allowed to moderate
2487 this session, and lastly a string which indicates another agent is entering the session with the Transition set to "ENTER"
2488
2489 During the session lifetime updates on individuals are sent. During the update the booleans sent during the initial join are
2490 excluded with the exception of the Transition field. This indicates a new user entering or exiting the session with
2491 the string "ENTER" or "LEAVE" respectively.
2492 </summary>
2493 </member>
2494 <member name="M:OpenMetaverse.Messages.Linden.ChatterBoxSessionAgentListUpdatesMessage.Serialize">
2495 <summary>
2496 Serialize the object
2497 </summary>
2498 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the objects data</returns>
2499 </member>
2500 <member name="M:OpenMetaverse.Messages.Linden.ChatterBoxSessionAgentListUpdatesMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
2501 <summary>
2502 Deserialize the message
2503 </summary>
2504 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the data</param>
2505 </member>
2506 <member name="T:OpenMetaverse.Messages.Linden.ForceCloseChatterBoxSessionMessage">
2507 <summary>
2508 An EventQueue message sent when the agent is forcibly removed from a chatterbox session
2509 </summary>
2510 </member>
2511 <member name="F:OpenMetaverse.Messages.Linden.ForceCloseChatterBoxSessionMessage.Reason">
2512 <summary>
2513 A string containing the reason the agent was removed
2514 </summary>
2515 </member>
2516 <member name="F:OpenMetaverse.Messages.Linden.ForceCloseChatterBoxSessionMessage.SessionID">
2517 <summary>
2518 The ChatterBoxSession's SessionID
2519 </summary>
2520 </member>
2521 <member name="M:OpenMetaverse.Messages.Linden.ForceCloseChatterBoxSessionMessage.Serialize">
2522 <summary>
2523 Serialize the object
2524 </summary>
2525 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the objects data</returns>
2526 </member>
2527 <member name="M:OpenMetaverse.Messages.Linden.ForceCloseChatterBoxSessionMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
2528 <summary>
2529 Deserialize the message
2530 </summary>
2531 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the data</param>
2532 </member>
2533 <member name="M:OpenMetaverse.Messages.Linden.EventQueueAck.Serialize">
2534 <summary>
2535 Serialize the object
2536 </summary>
2537 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the objects data</returns>
2538 </member>
2539 <member name="M:OpenMetaverse.Messages.Linden.EventQueueAck.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
2540 <summary>
2541 Deserialize the message
2542 </summary>
2543 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the data</param>
2544 </member>
2545 <member name="M:OpenMetaverse.Messages.Linden.EventQueueEvent.Serialize">
2546 <summary>
2547 Serialize the object
2548 </summary>
2549 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the objects data</returns>
2550 </member>
2551 <member name="M:OpenMetaverse.Messages.Linden.EventQueueEvent.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
2552 <summary>
2553 Deserialize the message
2554 </summary>
2555 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the data</param>
2556 </member>
2557 <member name="M:OpenMetaverse.Messages.Linden.EventQueueGetMessage.Serialize">
2558 <summary>
2559 Serialize the object
2560 </summary>
2561 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the objects data</returns>
2562 </member>
2563 <member name="M:OpenMetaverse.Messages.Linden.EventQueueGetMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
2564 <summary>
2565 Deserialize the message
2566 </summary>
2567 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the data</param>
2568 </member>
2569 <member name="M:OpenMetaverse.Messages.Linden.ViewerStatsMessage.Serialize">
2570 <summary>
2571 Serialize the object
2572 </summary>
2573 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the objects data</returns>
2574 </member>
2575 <member name="M:OpenMetaverse.Messages.Linden.ViewerStatsMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
2576 <summary>
2577 Deserialize the message
2578 </summary>
2579 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the data</param>
2580 </member>
2581 <member name="T:OpenMetaverse.Messages.Linden.PlacesReplyMessage">
2582 <summary>
2583
2584 </summary>
2585 </member>
2586 <member name="M:OpenMetaverse.Messages.Linden.PlacesReplyMessage.Serialize">
2587 <summary>
2588 Serialize the object
2589 </summary>
2590 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the objects data</returns>
2591 </member>
2592 <member name="M:OpenMetaverse.Messages.Linden.PlacesReplyMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
2593 <summary>
2594 Deserialize the message
2595 </summary>
2596 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the data</param>
2597 </member>
2598 <member name="M:OpenMetaverse.Messages.Linden.UpdateAgentInformationMessage.Serialize">
2599 <summary>
2600 Serialize the object
2601 </summary>
2602 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the objects data</returns>
2603 </member>
2604 <member name="M:OpenMetaverse.Messages.Linden.UpdateAgentInformationMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
2605 <summary>
2606 Deserialize the message
2607 </summary>
2608 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the data</param>
2609 </member>
2610 <member name="M:OpenMetaverse.Messages.Linden.DirLandReplyMessage.Serialize">
2611 <summary>
2612 Serialize the object
2613 </summary>
2614 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the objects data</returns>
2615 </member>
2616 <member name="M:OpenMetaverse.Messages.Linden.DirLandReplyMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
2617 <summary>
2618 Deserialize the message
2619 </summary>
2620 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the data</param>
2621 </member>
2622 <member name="T:OpenMetaverse.Messages.Linden.ObjectMediaNavigateMessage">
2623 <summary>
2624 A message sent from the viewer to the simulator which
2625 specifies that the user has changed current URL
2626 of the specific media on a prim face
2627 </summary>
2628 </member>
2629 <member name="F:OpenMetaverse.Messages.Linden.ObjectMediaNavigateMessage.URL">
2630 <summary>
2631 New URL
2632 </summary>
2633 </member>
2634 <member name="F:OpenMetaverse.Messages.Linden.ObjectMediaNavigateMessage.PrimID">
2635 <summary>
2636 Prim UUID where navigation occured
2637 </summary>
2638 </member>
2639 <member name="F:OpenMetaverse.Messages.Linden.ObjectMediaNavigateMessage.Face">
2640 <summary>
2641 Face index
2642 </summary>
2643 </member>
2644 <member name="M:OpenMetaverse.Messages.Linden.ObjectMediaNavigateMessage.Serialize">
2645 <summary>
2646 Serialize the object
2647 </summary>
2648 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the objects data</returns>
2649 </member>
2650 <member name="M:OpenMetaverse.Messages.Linden.ObjectMediaNavigateMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
2651 <summary>
2652 Deserialize the message
2653 </summary>
2654 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the data</param>
2655 </member>
2656 <member name="T:OpenMetaverse.Messages.Linden.ObjectMediaBlock">
2657 <summary>Base class used for the ObjectMedia message</summary>
2658 </member>
2659 <member name="T:OpenMetaverse.Messages.Linden.ObjectMediaRequest">
2660 <summary>
2661 Message used to retrive prim media data
2662 </summary>
2663 </member>
2664 <member name="F:OpenMetaverse.Messages.Linden.ObjectMediaRequest.PrimID">
2665 <summary>
2666 Prim UUID
2667 </summary>
2668 </member>
2669 <member name="F:OpenMetaverse.Messages.Linden.ObjectMediaRequest.Verb">
2670 <summary>
2671 Requested operation, either GET or UPDATE
2672 </summary>
2673 </member>
2674 <member name="M:OpenMetaverse.Messages.Linden.ObjectMediaRequest.Serialize">
2675 <summary>
2676 Serialize object
2677 </summary>
2678 <returns>Serialized object as OSDMap</returns>
2679 </member>
2680 <member name="M:OpenMetaverse.Messages.Linden.ObjectMediaRequest.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
2681 <summary>
2682 Deserialize the message
2683 </summary>
2684 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the data</param>
2685 </member>
2686 <member name="T:OpenMetaverse.Messages.Linden.ObjectMediaResponse">
2687 <summary>
2688 Message used to update prim media data
2689 </summary>
2690 </member>
2691 <member name="F:OpenMetaverse.Messages.Linden.ObjectMediaResponse.PrimID">
2692 <summary>
2693 Prim UUID
2694 </summary>
2695 </member>
2696 <member name="F:OpenMetaverse.Messages.Linden.ObjectMediaResponse.FaceMedia">
2697 <summary>
2698 Array of media entries indexed by face number
2699 </summary>
2700 </member>
2701 <member name="F:OpenMetaverse.Messages.Linden.ObjectMediaResponse.Version">
2702 <summary>
2703 Media version string
2704 </summary>
2705 </member>
2706 <member name="M:OpenMetaverse.Messages.Linden.ObjectMediaResponse.Serialize">
2707 <summary>
2708 Serialize object
2709 </summary>
2710 <returns>Serialized object as OSDMap</returns>
2711 </member>
2712 <member name="M:OpenMetaverse.Messages.Linden.ObjectMediaResponse.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
2713 <summary>
2714 Deserialize the message
2715 </summary>
2716 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the data</param>
2717 </member>
2718 <member name="T:OpenMetaverse.Messages.Linden.ObjectMediaUpdate">
2719 <summary>
2720 Message used to update prim media data
2721 </summary>
2722 </member>
2723 <member name="F:OpenMetaverse.Messages.Linden.ObjectMediaUpdate.PrimID">
2724 <summary>
2725 Prim UUID
2726 </summary>
2727 </member>
2728 <member name="F:OpenMetaverse.Messages.Linden.ObjectMediaUpdate.FaceMedia">
2729 <summary>
2730 Array of media entries indexed by face number
2731 </summary>
2732 </member>
2733 <member name="F:OpenMetaverse.Messages.Linden.ObjectMediaUpdate.Verb">
2734 <summary>
2735 Requested operation, either GET or UPDATE
2736 </summary>
2737 </member>
2738 <member name="M:OpenMetaverse.Messages.Linden.ObjectMediaUpdate.Serialize">
2739 <summary>
2740 Serialize object
2741 </summary>
2742 <returns>Serialized object as OSDMap</returns>
2743 </member>
2744 <member name="M:OpenMetaverse.Messages.Linden.ObjectMediaUpdate.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
2745 <summary>
2746 Deserialize the message
2747 </summary>
2748 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the data</param>
2749 </member>
2750 <member name="T:OpenMetaverse.Messages.Linden.ObjectMediaMessage">
2751 <summary>
2752 Message for setting or getting per face MediaEntry
2753 </summary>
2754 </member>
2755 <member name="F:OpenMetaverse.Messages.Linden.ObjectMediaMessage.Request">
2756 <summary>The request or response details block</summary>
2757 </member>
2758 <member name="M:OpenMetaverse.Messages.Linden.ObjectMediaMessage.Serialize">
2759 <summary>
2760 Serialize the object
2761 </summary>
2762 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the objects data</returns>
2763 </member>
2764 <member name="M:OpenMetaverse.Messages.Linden.ObjectMediaMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
2765 <summary>
2766 Deserialize the message
2767 </summary>
2768 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the data</param>
2769 </member>
2770 <member name="T:OpenMetaverse.Messages.Linden.ObjectResourcesDetail">
2771 <summary>Details about object resource usage</summary>
2772 </member>
2773 <member name="F:OpenMetaverse.Messages.Linden.ObjectResourcesDetail.ID">
2774 <summary>Object UUID</summary>
2775 </member>
2776 <member name="F:OpenMetaverse.Messages.Linden.ObjectResourcesDetail.Name">
2777 <summary>Object name</summary>
2778 </member>
2779 <member name="F:OpenMetaverse.Messages.Linden.ObjectResourcesDetail.GroupOwned">
2780 <summary>Indicates if object is group owned</summary>
2781 </member>
2782 <member name="F:OpenMetaverse.Messages.Linden.ObjectResourcesDetail.Location">
2783 <summary>Locatio of the object</summary>
2784 </member>
2785 <member name="F:OpenMetaverse.Messages.Linden.ObjectResourcesDetail.OwnerID">
2786 <summary>Object owner</summary>
2787 </member>
2788 <member name="F:OpenMetaverse.Messages.Linden.ObjectResourcesDetail.Resources">
2789 <summary>Resource usage, keys are resource names, values are resource usage for that specific resource</summary>
2790 </member>
2791 <member name="M:OpenMetaverse.Messages.Linden.ObjectResourcesDetail.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
2792 <summary>
2793 Deserializes object from OSD
2794 </summary>
2795 <param name="obj">An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the data</param>
2796 </member>
2797 <member name="M:OpenMetaverse.Messages.Linden.ObjectResourcesDetail.FromOSD(OpenMetaverse.StructuredData.OSD)">
2798 <summary>
2799 Makes an instance based on deserialized data
2800 </summary>
2801 <param name="osd"><see cref="T:OpenMetaverse.StructuredData.OSD"/> serialized data</param>
2802 <returns>Instance containg deserialized data</returns>
2803 </member>
2804 <member name="T:OpenMetaverse.Messages.Linden.ParcelResourcesDetail">
2805 <summary>Details about parcel resource usage</summary>
2806 </member>
2807 <member name="F:OpenMetaverse.Messages.Linden.ParcelResourcesDetail.ID">
2808 <summary>Parcel UUID</summary>
2809 </member>
2810 <member name="F:OpenMetaverse.Messages.Linden.ParcelResourcesDetail.LocalID">
2811 <summary>Parcel local ID</summary>
2812 </member>
2813 <member name="F:OpenMetaverse.Messages.Linden.ParcelResourcesDetail.Name">
2814 <summary>Parcel name</summary>
2815 </member>
2816 <member name="F:OpenMetaverse.Messages.Linden.ParcelResourcesDetail.GroupOwned">
2817 <summary>Indicates if parcel is group owned</summary>
2818 </member>
2819 <member name="F:OpenMetaverse.Messages.Linden.ParcelResourcesDetail.OwnerID">
2820 <summary>Parcel owner</summary>
2821 </member>
2822 <member name="F:OpenMetaverse.Messages.Linden.ParcelResourcesDetail.Objects">
2823 <summary>Array of <see cref="T:OpenMetaverse.Messages.Linden.ObjectResourcesDetail"/> containing per object resource usage</summary>
2824 </member>
2825 <member name="M:OpenMetaverse.Messages.Linden.ParcelResourcesDetail.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
2826 <summary>
2827 Deserializes object from OSD
2828 </summary>
2829 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the data</param>
2830 </member>
2831 <member name="M:OpenMetaverse.Messages.Linden.ParcelResourcesDetail.FromOSD(OpenMetaverse.StructuredData.OSD)">
2832 <summary>
2833 Makes an instance based on deserialized data
2834 </summary>
2835 <param name="osd"><see cref="T:OpenMetaverse.StructuredData.OSD"/> serialized data</param>
2836 <returns>Instance containg deserialized data</returns>
2837 </member>
2838 <member name="T:OpenMetaverse.Messages.Linden.BaseResourcesInfo">
2839 <summary>Resource usage base class, both agent and parcel resource
2840 usage contains summary information</summary>
2841 </member>
2842 <member name="F:OpenMetaverse.Messages.Linden.BaseResourcesInfo.SummaryAvailable">
2843 <summary>Summary of available resources, keys are resource names,
2844 values are resource usage for that specific resource</summary>
2845 </member>
2846 <member name="F:OpenMetaverse.Messages.Linden.BaseResourcesInfo.SummaryUsed">
2847 <summary>Summary resource usage, keys are resource names,
2848 values are resource usage for that specific resource</summary>
2849 </member>
2850 <member name="M:OpenMetaverse.Messages.Linden.BaseResourcesInfo.Serialize">
2851 <summary>
2852 Serializes object
2853 </summary>
2854 <returns><see cref="T:OpenMetaverse.StructuredData.OSDMap"/> serialized data</returns>
2855 </member>
2856 <member name="M:OpenMetaverse.Messages.Linden.BaseResourcesInfo.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
2857 <summary>
2858 Deserializes object from OSD
2859 </summary>
2860 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the data</param>
2861 </member>
2862 <member name="T:OpenMetaverse.Messages.Linden.AttachmentResourcesMessage">
2863 <summary>Agent resource usage</summary>
2864 </member>
2865 <member name="F:OpenMetaverse.Messages.Linden.AttachmentResourcesMessage.Attachments">
2866 <summary>Per attachment point object resource usage</summary>
2867 </member>
2868 <member name="M:OpenMetaverse.Messages.Linden.AttachmentResourcesMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
2869 <summary>
2870 Deserializes object from OSD
2871 </summary>
2872 <param name="osd">An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the data</param>
2873 </member>
2874 <member name="M:OpenMetaverse.Messages.Linden.AttachmentResourcesMessage.FromOSD(OpenMetaverse.StructuredData.OSD)">
2875 <summary>
2876 Makes an instance based on deserialized data
2877 </summary>
2878 <param name="osd"><see cref="T:OpenMetaverse.StructuredData.OSD"/> serialized data</param>
2879 <returns>Instance containg deserialized data</returns>
2880 </member>
2881 <member name="M:OpenMetaverse.Messages.Linden.AttachmentResourcesMessage.GetMessageHandler(OpenMetaverse.StructuredData.OSDMap)">
2882 <summary>
2883 Detects which class handles deserialization of this message
2884 </summary>
2885 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the data</param>
2886 <returns>Object capable of decoding this message</returns>
2887 </member>
2888 <member name="T:OpenMetaverse.Messages.Linden.LandResourcesRequest">
2889 <summary>Request message for parcel resource usage</summary>
2890 </member>
2891 <member name="F:OpenMetaverse.Messages.Linden.LandResourcesRequest.ParcelID">
2892 <summary>UUID of the parel to request resource usage info</summary>
2893 </member>
2894 <member name="M:OpenMetaverse.Messages.Linden.LandResourcesRequest.Serialize">
2895 <summary>
2896 Serializes object
2897 </summary>
2898 <returns><see cref="T:OpenMetaverse.StructuredData.OSDMap"/> serialized data</returns>
2899 </member>
2900 <member name="M:OpenMetaverse.Messages.Linden.LandResourcesRequest.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
2901 <summary>
2902 Deserializes object from OSD
2903 </summary>
2904 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the data</param>
2905 </member>
2906 <member name="T:OpenMetaverse.Messages.Linden.LandResourcesMessage">
2907 <summary>Response message for parcel resource usage</summary>
2908 </member>
2909 <member name="F:OpenMetaverse.Messages.Linden.LandResourcesMessage.ScriptResourceDetails">
2910 <summary>URL where parcel resource usage details can be retrieved</summary>
2911 </member>
2912 <member name="F:OpenMetaverse.Messages.Linden.LandResourcesMessage.ScriptResourceSummary">
2913 <summary>URL where parcel resource usage summary can be retrieved</summary>
2914 </member>
2915 <member name="M:OpenMetaverse.Messages.Linden.LandResourcesMessage.Serialize">
2916 <summary>
2917 Serializes object
2918 </summary>
2919 <returns><see cref="T:OpenMetaverse.StructuredData.OSDMap"/> serialized data</returns>
2920 </member>
2921 <member name="M:OpenMetaverse.Messages.Linden.LandResourcesMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
2922 <summary>
2923 Deserializes object from OSD
2924 </summary>
2925 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the data</param>
2926 </member>
2927 <member name="M:OpenMetaverse.Messages.Linden.LandResourcesMessage.GetMessageHandler(OpenMetaverse.StructuredData.OSDMap)">
2928 <summary>
2929 Detects which class handles deserialization of this message
2930 </summary>
2931 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the data</param>
2932 <returns>Object capable of decoding this message</returns>
2933 </member>
2934 <member name="T:OpenMetaverse.Messages.Linden.LandResourcesInfo">
2935 <summary>Parcel resource usage</summary>
2936 </member>
2937 <member name="F:OpenMetaverse.Messages.Linden.LandResourcesInfo.Parcels">
2938 <summary>Array of <see cref="T:OpenMetaverse.Messages.Linden.ParcelResourcesDetail"/> containing per percal resource usage</summary>
2939 </member>
2940 <member name="M:OpenMetaverse.Messages.Linden.LandResourcesInfo.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
2941 <summary>
2942 Deserializes object from OSD
2943 </summary>
2944 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> containing the data</param>
2945 </member>
2946 <member name="T:OpenMetaverse.Assets.GestureStepType">
2947 <summary>
2948 Type of gesture step
2949 </summary>
2950 </member>
2951 <member name="T:OpenMetaverse.Assets.GestureStep">
2952 <summary>
2953 Base class for gesture steps
2954 </summary>
2955 </member>
2956 <member name="P:OpenMetaverse.Assets.GestureStep.GestureStepType">
2957 <summary>
2958 Retururns what kind of gesture step this is
2959 </summary>
2960 </member>
2961 <member name="T:OpenMetaverse.Assets.GestureStepAnimation">
2962 <summary>
2963 Describes animation step of a gesture
2964 </summary>
2965 </member>
2966 <member name="F:OpenMetaverse.Assets.GestureStepAnimation.AnimationStart">
2967 <summary>
2968 If true, this step represents start of animation, otherwise animation stop
2969 </summary>
2970 </member>
2971 <member name="F:OpenMetaverse.Assets.GestureStepAnimation.ID">
2972 <summary>
2973 Animation asset <see cref="T:OpenMetaverse.UUID"/>
2974 </summary>
2975 </member>
2976 <member name="F:OpenMetaverse.Assets.GestureStepAnimation.Name">
2977 <summary>
2978 Animation inventory name
2979 </summary>
2980 </member>
2981 <member name="P:OpenMetaverse.Assets.GestureStepAnimation.GestureStepType">
2982 <summary>
2983 Returns what kind of gesture step this is
2984 </summary>
2985 </member>
2986 <member name="T:OpenMetaverse.Assets.GestureStepSound">
2987 <summary>
2988 Describes sound step of a gesture
2989 </summary>
2990 </member>
2991 <member name="F:OpenMetaverse.Assets.GestureStepSound.ID">
2992 <summary>
2993 Sound asset <see cref="T:OpenMetaverse.UUID"/>
2994 </summary>
2995 </member>
2996 <member name="F:OpenMetaverse.Assets.GestureStepSound.Name">
2997 <summary>
2998 Sound inventory name
2999 </summary>
3000 </member>
3001 <member name="P:OpenMetaverse.Assets.GestureStepSound.GestureStepType">
3002 <summary>
3003 Returns what kind of gesture step this is
3004 </summary>
3005 </member>
3006 <member name="T:OpenMetaverse.Assets.GestureStepChat">
3007 <summary>
3008 Describes sound step of a gesture
3009 </summary>
3010 </member>
3011 <member name="F:OpenMetaverse.Assets.GestureStepChat.Text">
3012 <summary>
3013 Text to output in chat
3014 </summary>
3015 </member>
3016 <member name="P:OpenMetaverse.Assets.GestureStepChat.GestureStepType">
3017 <summary>
3018 Returns what kind of gesture step this is
3019 </summary>
3020 </member>
3021 <member name="T:OpenMetaverse.Assets.GestureStepWait">
3022 <summary>
3023 Describes sound step of a gesture
3024 </summary>
3025 </member>
3026 <member name="F:OpenMetaverse.Assets.GestureStepWait.WaitForAnimation">
3027 <summary>
3028 If true in this step we wait for all animations to finish
3029 </summary>
3030 </member>
3031 <member name="F:OpenMetaverse.Assets.GestureStepWait.WaitForTime">
3032 <summary>
3033 If true gesture player should wait for the specified amount of time
3034 </summary>
3035 </member>
3036 <member name="F:OpenMetaverse.Assets.GestureStepWait.WaitTime">
3037 <summary>
3038 Time in seconds to wait if WaitForAnimation is false
3039 </summary>
3040 </member>
3041 <member name="P:OpenMetaverse.Assets.GestureStepWait.GestureStepType">
3042 <summary>
3043 Returns what kind of gesture step this is
3044 </summary>
3045 </member>
3046 <member name="T:OpenMetaverse.Assets.GestureStepEOF">
3047 <summary>
3048 Describes the final step of a gesture
3049 </summary>
3050 </member>
3051 <member name="P:OpenMetaverse.Assets.GestureStepEOF.GestureStepType">
3052 <summary>
3053 Returns what kind of gesture step this is
3054 </summary>
3055 </member>
3056 <member name="T:OpenMetaverse.Assets.AssetGesture">
3057 <summary>
3058 Represents a sequence of animations, sounds, and chat actions
3059 </summary>
3060 </member>
3061 <member name="T:OpenMetaverse.Assets.Asset">
3062 <summary>
3063 Base class for all Asset types
3064 </summary>
3065 </member>
3066 <member name="F:OpenMetaverse.Assets.Asset.AssetData">
3067 <summary>A byte array containing the raw asset data</summary>
3068 </member>
3069 <member name="F:OpenMetaverse.Assets.Asset.Temporary">
3070 <summary>True if the asset it only stored on the server temporarily</summary>
3071 </member>
3072 <member name="F:OpenMetaverse.Assets.Asset._AssetID">
3073 <summary>A unique ID</summary>
3074 </member>
3075 <member name="M:OpenMetaverse.Assets.Asset.#ctor">
3076 <summary>
3077 Construct a new Asset object
3078 </summary>
3079 </member>
3080 <member name="M:OpenMetaverse.Assets.Asset.#ctor(OpenMetaverse.UUID,System.Byte[])">
3081 <summary>
3082 Construct a new Asset object
3083 </summary>
3084 <param name="assetID">A unique <see cref="T:OpenMetaverse.UUID"/> specific to this asset</param>
3085 <param name="assetData">A byte array containing the raw asset data</param>
3086 </member>
3087 <member name="M:OpenMetaverse.Assets.Asset.Encode">
3088 <summary>
3089 Regenerates the <code>AssetData</code> byte array from the properties
3090 of the derived class.
3091 </summary>
3092 </member>
3093 <member name="M:OpenMetaverse.Assets.Asset.Decode">
3094 <summary>
3095 Decodes the AssetData, placing it in appropriate properties of the derived
3096 class.
3097 </summary>
3098 <returns>True if the asset decoding succeeded, otherwise false</returns>
3099 </member>
3100 <member name="P:OpenMetaverse.Assets.Asset.AssetID">
3101 <summary>The assets unique ID</summary>
3102 </member>
3103 <member name="P:OpenMetaverse.Assets.Asset.AssetType">
3104 <summary>
3105 The "type" of asset, Notecard, Animation, etc
3106 </summary>
3107 </member>
3108 <member name="F:OpenMetaverse.Assets.AssetGesture.TriggerKey">
3109 <summary>
3110 Keyboard key that triggers the gestyre
3111 </summary>
3112 </member>
3113 <member name="F:OpenMetaverse.Assets.AssetGesture.TriggerKeyMask">
3114 <summary>
3115 Modifier to the trigger key
3116 </summary>
3117 </member>
3118 <member name="F:OpenMetaverse.Assets.AssetGesture.Trigger">
3119 <summary>
3120 String that triggers playing of the gesture sequence
3121 </summary>
3122 </member>
3123 <member name="F:OpenMetaverse.Assets.AssetGesture.ReplaceWith">
3124 <summary>
3125 Text that replaces trigger in chat once gesture is triggered
3126 </summary>
3127 </member>
3128 <member name="F:OpenMetaverse.Assets.AssetGesture.Sequence">
3129 <summary>
3130 Sequence of gesture steps
3131 </summary>
3132 </member>
3133 <member name="M:OpenMetaverse.Assets.AssetGesture.#ctor">
3134 <summary>
3135 Constructs guesture asset
3136 </summary>
3137 </member>
3138 <member name="M:OpenMetaverse.Assets.AssetGesture.#ctor(OpenMetaverse.UUID,System.Byte[])">
3139 <summary>
3140 Constructs guesture asset
3141 </summary>
3142 <param name="assetID">A unique <see cref="T:OpenMetaverse.UUID"/> specific to this asset</param>
3143 <param name="assetData">A byte array containing the raw asset data</param>
3144 </member>
3145 <member name="M:OpenMetaverse.Assets.AssetGesture.Encode">
3146 <summary>
3147 Encodes gesture asset suitable for uplaod
3148 </summary>
3149 </member>
3150 <member name="M:OpenMetaverse.Assets.AssetGesture.Decode">
3151 <summary>
3152 Decodes gesture assset into play sequence
3153 </summary>
3154 <returns>true if the asset data was decoded successfully</returns>
3155 </member>
3156 <member name="P:OpenMetaverse.Assets.AssetGesture.AssetType">
3157 <summary>
3158 Returns asset type
3159 </summary>
3160 </member>
3161 <member name="T:OpenMetaverse.Assets.AssetsArchiver">
3162 <summary>
3163 Archives assets
3164 </summary>
3165 </member>
3166 <member name="F:OpenMetaverse.Assets.AssetsArchiver.m_assets">
3167 <summary>
3168 Archive assets
3169 </summary>
3170 </member>
3171 <member name="M:OpenMetaverse.Assets.AssetsArchiver.Archive(OpenMetaverse.Assets.TarArchiveWriter)">
3172 <summary>
3173 Archive the assets given to this archiver to the given archive.
3174 </summary>
3175 <param name="archive"></param>
3176 </member>
3177 <member name="M:OpenMetaverse.Assets.AssetsArchiver.WriteMetadata(OpenMetaverse.Assets.TarArchiveWriter)">
3178 <summary>
3179 Write an assets metadata file to the given archive
3180 </summary>
3181 <param name="archive"></param>
3182 </member>
3183 <member name="M:OpenMetaverse.Assets.AssetsArchiver.WriteData(OpenMetaverse.Assets.TarArchiveWriter)">
3184 <summary>
3185 Write asset data files to the given archive
3186 </summary>
3187 <param name="archive"></param>
3188 </member>
3189 <member name="T:OpenMetaverse.Assets.ArchiveConstants">
3190 <summary>
3191 Constants for the archiving module
3192 </summary>
3193 </member>
3194 <member name="F:OpenMetaverse.Assets.ArchiveConstants.CONTROL_FILE_PATH">
3195 <summary>
3196 The location of the archive control file
3197 </summary>
3198 </member>
3199 <member name="F:OpenMetaverse.Assets.ArchiveConstants.ASSETS_PATH">
3200 <summary>
3201 Path for the assets held in an archive
3202 </summary>
3203 </member>
3204 <member name="F:OpenMetaverse.Assets.ArchiveConstants.OBJECTS_PATH">
3205 <summary>
3206 Path for the prims file
3207 </summary>
3208 </member>
3209 <member name="F:OpenMetaverse.Assets.ArchiveConstants.TERRAINS_PATH">
3210 <summary>
3211 Path for terrains. Technically these may be assets, but I think it's quite nice to split them out.
3212 </summary>
3213 </member>
3214 <member name="F:OpenMetaverse.Assets.ArchiveConstants.SETTINGS_PATH">
3215 <summary>
3216 Path for region settings.
3217 </summary>
3218 </member>
3219 <member name="F:OpenMetaverse.Assets.ArchiveConstants.ASSET_EXTENSION_SEPARATOR">
3220 <summary>
3221 The character the separates the uuid from extension information in an archived asset filename
3222 </summary>
3223 </member>
3224 <member name="F:OpenMetaverse.Assets.ArchiveConstants.ASSET_TYPE_TO_EXTENSION">
3225 <summary>
3226 Extensions used for asset types in the archive
3227 </summary>
3228 </member>
3229 <member name="T:OpenMetaverse.Caps">
3230 <summary>
3231 Capabilities is the name of the bi-directional HTTP REST protocol
3232 used to communicate non real-time transactions such as teleporting or
3233 group messaging
3234 </summary>
3235 </member>
3236 <member name="F:OpenMetaverse.Caps.Simulator">
3237 <summary>Reference to the simulator this system is connected to</summary>
3238 </member>
3239 <member name="M:OpenMetaverse.Caps.#ctor(OpenMetaverse.Simulator,System.String)">
3240 <summary>
3241 Default constructor
3242 </summary>
3243 <param name="simulator"></param>
3244 <param name="seedcaps"></param>
3245 </member>
3246 <member name="M:OpenMetaverse.Caps.CapabilityURI(System.String)">
3247 <summary>
3248 Request the URI of a named capability
3249 </summary>
3250 <param name="capability">Name of the capability to request</param>
3251 <returns>The URI of the requested capability, or String.Empty if
3252 the capability does not exist</returns>
3253 </member>
3254 <member name="M:OpenMetaverse.Caps.EventQueueEventHandler(System.String,OpenMetaverse.StructuredData.OSDMap)">
3255 <summary>
3256 Process any incoming events, check to see if we have a message created for the event,
3257 </summary>
3258 <param name="eventName"></param>
3259 <param name="body"></param>
3260 </member>
3261 <member name="P:OpenMetaverse.Caps.SeedCapsURI">
3262 <summary>Capabilities URI this system was initialized with</summary>
3263 </member>
3264 <member name="P:OpenMetaverse.Caps.IsEventQueueRunning">
3265 <summary>Whether the capabilities event queue is connected and
3266 listening for incoming events</summary>
3267 </member>
3268 <member name="T:OpenMetaverse.Caps.EventQueueCallback">
3269 <summary>
3270 Triggered when an event is received via the EventQueueGet
3271 capability
3272 </summary>
3273 <param name="capsKey">Event name</param>
3274 <param name="message">Decoded event data</param>
3275 <param name="simulator">The simulator that generated the event</param>
3276 </member>
3277 <member name="T:OpenMetaverse.AgentThrottle">
3278 <summary>
3279 Throttles the network traffic for various different traffic types.
3280 Access this class through GridClient.Throttle
3281 </summary>
3282 </member>
3283 <member name="M:OpenMetaverse.AgentThrottle.#ctor(OpenMetaverse.GridClient)">
3284 <summary>
3285 Default constructor, uses a default high total of 1500 KBps (1536000)
3286 </summary>
3287 </member>
3288 <member name="M:OpenMetaverse.AgentThrottle.#ctor(System.Byte[],System.Int32)">
3289 <summary>
3290 Constructor that decodes an existing AgentThrottle packet in to
3291 individual values
3292 </summary>
3293 <param name="data">Reference to the throttle data in an AgentThrottle
3294 packet</param>
3295 <param name="pos">Offset position to start reading at in the
3296 throttle data</param>
3297 <remarks>This is generally not needed in clients as the server will
3298 never send a throttle packet to the client</remarks>
3299 </member>
3300 <member name="M:OpenMetaverse.AgentThrottle.Set">
3301 <summary>
3302 Send an AgentThrottle packet to the current server using the
3303 current values
3304 </summary>
3305 </member>
3306 <member name="M:OpenMetaverse.AgentThrottle.Set(OpenMetaverse.Simulator)">
3307 <summary>
3308 Send an AgentThrottle packet to the specified server using the
3309 current values
3310 </summary>
3311 </member>
3312 <member name="M:OpenMetaverse.AgentThrottle.ToBytes">
3313 <summary>
3314 Convert the current throttle values to a byte array that can be put
3315 in an AgentThrottle packet
3316 </summary>
3317 <returns>Byte array containing all the throttle values</returns>
3318 </member>
3319 <member name="P:OpenMetaverse.AgentThrottle.Resend">
3320 <summary>Maximum bits per second for resending unacknowledged packets</summary>
3321 </member>
3322 <member name="P:OpenMetaverse.AgentThrottle.Land">
3323 <summary>Maximum bits per second for LayerData terrain</summary>
3324 </member>
3325 <member name="P:OpenMetaverse.AgentThrottle.Wind">
3326 <summary>Maximum bits per second for LayerData wind data</summary>
3327 </member>
3328 <member name="P:OpenMetaverse.AgentThrottle.Cloud">
3329 <summary>Maximum bits per second for LayerData clouds</summary>
3330 </member>
3331 <member name="P:OpenMetaverse.AgentThrottle.Task">
3332 <summary>Unknown, includes object data</summary>
3333 </member>
3334 <member name="P:OpenMetaverse.AgentThrottle.Texture">
3335 <summary>Maximum bits per second for textures</summary>
3336 </member>
3337 <member name="P:OpenMetaverse.AgentThrottle.Asset">
3338 <summary>Maximum bits per second for downloaded assets</summary>
3339 </member>
3340 <member name="P:OpenMetaverse.AgentThrottle.Total">
3341 <summary>Maximum bits per second the entire connection, divided up
3342 between invidiual streams using default multipliers</summary>
3343 </member>
3344 <member name="T:OpenMetaverse.Primitive">
3345 <summary>
3346 Particle system specific enumerators, flags and methods.
3347 </summary>
3348 </member>
3349 <member name="F:OpenMetaverse.Primitive.ID">
3350 <summary></summary>
3351 </member>
3352 <member name="F:OpenMetaverse.Primitive.GroupID">
3353 <summary></summary>
3354 </member>
3355 <member name="F:OpenMetaverse.Primitive.LocalID">
3356 <summary></summary>
3357 </member>
3358 <member name="F:OpenMetaverse.Primitive.ParentID">
3359 <summary></summary>
3360 </member>
3361 <member name="F:OpenMetaverse.Primitive.RegionHandle">
3362 <summary></summary>
3363 </member>
3364 <member name="F:OpenMetaverse.Primitive.Flags">
3365 <summary></summary>
3366 </member>
3367 <member name="F:OpenMetaverse.Primitive.TreeSpecies">
3368 <summary>Foliage type for this primitive. Only applicable if this
3369 primitive is foliage</summary>
3370 </member>
3371 <member name="F:OpenMetaverse.Primitive.ScratchPad">
3372 <summary>Unknown</summary>
3373 </member>
3374 <member name="F:OpenMetaverse.Primitive.Position">
3375 <summary></summary>
3376 </member>
3377 <member name="F:OpenMetaverse.Primitive.Scale">
3378 <summary></summary>
3379 </member>
3380 <member name="F:OpenMetaverse.Primitive.Rotation">
3381 <summary></summary>
3382 </member>
3383 <member name="F:OpenMetaverse.Primitive.Velocity">
3384 <summary></summary>
3385 </member>
3386 <member name="F:OpenMetaverse.Primitive.AngularVelocity">
3387 <summary></summary>
3388 </member>
3389 <member name="F:OpenMetaverse.Primitive.Acceleration">
3390 <summary></summary>
3391 </member>
3392 <member name="F:OpenMetaverse.Primitive.CollisionPlane">
3393 <summary></summary>
3394 </member>
3395 <member name="F:OpenMetaverse.Primitive.Flexible">
3396 <summary></summary>
3397 </member>
3398 <member name="F:OpenMetaverse.Primitive.Light">
3399 <summary></summary>
3400 </member>
3401 <member name="F:OpenMetaverse.Primitive.Sculpt">
3402 <summary></summary>
3403 </member>
3404 <member name="F:OpenMetaverse.Primitive.ClickAction">
3405 <summary></summary>
3406 </member>
3407 <member name="F:OpenMetaverse.Primitive.Sound">
3408 <summary></summary>
3409 </member>
3410 <member name="F:OpenMetaverse.Primitive.OwnerID">
3411 <summary>Identifies the owner if audio or a particle system is
3412 active</summary>
3413 </member>
3414 <member name="F:OpenMetaverse.Primitive.SoundFlags">
3415 <summary></summary>
3416 </member>
3417 <member name="F:OpenMetaverse.Primitive.SoundGain">
3418 <summary></summary>
3419 </member>
3420 <member name="F:OpenMetaverse.Primitive.SoundRadius">
3421 <summary></summary>
3422 </member>
3423 <member name="F:OpenMetaverse.Primitive.Text">
3424 <summary></summary>
3425 </member>
3426 <member name="F:OpenMetaverse.Primitive.TextColor">
3427 <summary></summary>
3428 </member>
3429 <member name="F:OpenMetaverse.Primitive.MediaURL">
3430 <summary></summary>
3431 </member>
3432 <member name="F:OpenMetaverse.Primitive.Joint">
3433 <summary></summary>
3434 </member>
3435 <member name="F:OpenMetaverse.Primitive.JointPivot">
3436 <summary></summary>
3437 </member>
3438 <member name="F:OpenMetaverse.Primitive.JointAxisOrAnchor">
3439 <summary></summary>
3440 </member>
3441 <member name="F:OpenMetaverse.Primitive.NameValues">
3442 <summary></summary>
3443 </member>
3444 <member name="F:OpenMetaverse.Primitive.PrimData">
3445 <summary></summary>
3446 </member>
3447 <member name="F:OpenMetaverse.Primitive.Properties">
3448 <summary></summary>
3449 </member>
3450 <member name="M:OpenMetaverse.Primitive.#ctor">
3451 <summary>
3452 Default constructor
3453 </summary>
3454 </member>
3455 <member name="M:OpenMetaverse.Primitive.PackPathTwist(System.Single)">
3456 <summary>
3457 Packs PathTwist, PathTwistBegin, PathRadiusOffset, and PathSkew
3458 parameters in to signed eight bit values
3459 </summary>
3460 <param name="pathTwist">Floating point parameter to pack</param>
3461 <returns>Signed eight bit value containing the packed parameter</returns>
3462 </member>
3463 <member name="M:OpenMetaverse.Primitive.UnpackPathTwist(System.SByte)">
3464 <summary>
3465 Unpacks PathTwist, PathTwistBegin, PathRadiusOffset, and PathSkew
3466 parameters from signed eight bit integers to floating point values
3467 </summary>
3468 <param name="pathTwist">Signed eight bit value to unpack</param>
3469 <returns>Unpacked floating point value</returns>
3470 </member>
3471 <member name="F:OpenMetaverse.Primitive.ParticleSys">
3472 <summary></summary>
3473 </member>
3474 <member name="F:OpenMetaverse.Primitive.MediaVersion">
3475 <summary>
3476 Current version of the media data for the prim
3477 </summary>
3478 </member>
3479 <member name="F:OpenMetaverse.Primitive.FaceMedia">
3480 <summary>
3481 Array of media entries indexed by face number
3482 </summary>
3483 </member>
3484 <member name="F:OpenMetaverse.Primitive.Textures">
3485 <summary></summary>
3486 </member>
3487 <member name="F:OpenMetaverse.Primitive.TextureAnim">
3488 <summary></summary>
3489 </member>
3490 <member name="P:OpenMetaverse.Primitive.Type">
3491 <summary>Uses basic heuristics to estimate the primitive shape</summary>
3492 </member>
3493 <member name="T:OpenMetaverse.Primitive.ConstructionData">
3494 <summary>
3495 Parameters used to construct a visual representation of a primitive
3496 </summary>
3497 </member>
3498 <member name="F:OpenMetaverse.Primitive.ConstructionData.profileCurve">
3499 <summary></summary>
3500 </member>
3501 <member name="F:OpenMetaverse.Primitive.ConstructionData.PathCurve">
3502 <summary></summary>
3503 </member>
3504 <member name="F:OpenMetaverse.Primitive.ConstructionData.PathEnd">
3505 <summary></summary>
3506 </member>
3507 <member name="F:OpenMetaverse.Primitive.ConstructionData.PathRadiusOffset">
3508 <summary></summary>
3509 </member>
3510 <member name="F:OpenMetaverse.Primitive.ConstructionData.PathSkew">
3511 <summary></summary>
3512 </member>
3513 <member name="F:OpenMetaverse.Primitive.ConstructionData.PathScaleX">
3514 <summary></summary>
3515 </member>
3516 <member name="F:OpenMetaverse.Primitive.ConstructionData.PathScaleY">
3517 <summary></summary>
3518 </member>
3519 <member name="F:OpenMetaverse.Primitive.ConstructionData.PathShearX">
3520 <summary></summary>
3521 </member>
3522 <member name="F:OpenMetaverse.Primitive.ConstructionData.PathShearY">
3523 <summary></summary>
3524 </member>
3525 <member name="F:OpenMetaverse.Primitive.ConstructionData.PathTaperX">
3526 <summary></summary>
3527 </member>
3528 <member name="F:OpenMetaverse.Primitive.ConstructionData.PathTaperY">
3529 <summary></summary>
3530 </member>
3531 <member name="F:OpenMetaverse.Primitive.ConstructionData.PathBegin">
3532 <summary></summary>
3533 </member>
3534 <member name="F:OpenMetaverse.Primitive.ConstructionData.PathTwist">
3535 <summary></summary>
3536 </member>
3537 <member name="F:OpenMetaverse.Primitive.ConstructionData.PathTwistBegin">
3538 <summary></summary>
3539 </member>
3540 <member name="F:OpenMetaverse.Primitive.ConstructionData.PathRevolutions">
3541 <summary></summary>
3542 </member>
3543 <member name="F:OpenMetaverse.Primitive.ConstructionData.ProfileBegin">
3544 <summary></summary>
3545 </member>
3546 <member name="F:OpenMetaverse.Primitive.ConstructionData.ProfileEnd">
3547 <summary></summary>
3548 </member>
3549 <member name="F:OpenMetaverse.Primitive.ConstructionData.ProfileHollow">
3550 <summary></summary>
3551 </member>
3552 <member name="F:OpenMetaverse.Primitive.ConstructionData.Material">
3553 <summary></summary>
3554 </member>
3555 <member name="F:OpenMetaverse.Primitive.ConstructionData.State">
3556 <summary></summary>
3557 </member>
3558 <member name="F:OpenMetaverse.Primitive.ConstructionData.PCode">
3559 <summary></summary>
3560 </member>
3561 <member name="P:OpenMetaverse.Primitive.ConstructionData.AttachmentPoint">
3562 <summary>Attachment point to an avatar</summary>
3563 </member> 936 </member>
3564 <member name="P:OpenMetaverse.Primitive.ConstructionData.ProfileCurve"> 937 <member name="T:OpenMetaverse.MuteEntry">
3565 <summary></summary> 938 <summary>Represents muted object or resident</summary>
3566 </member> 939 </member>
3567 <member name="P:OpenMetaverse.Primitive.ConstructionData.ProfileHole"> 940 <member name="F:OpenMetaverse.MuteEntry.Type">
3568 <summary></summary> 941 <summary>Type of the mute entry</summary>
3569 </member> 942 </member>
3570 <member name="P:OpenMetaverse.Primitive.ConstructionData.PathBeginScale"> 943 <member name="F:OpenMetaverse.MuteEntry.ID">
3571 <summary></summary> 944 <summary>UUID of the mute etnry</summary>
3572 </member> 945 </member>
3573 <member name="P:OpenMetaverse.Primitive.ConstructionData.PathEndScale"> 946 <member name="F:OpenMetaverse.MuteEntry.Name">
3574 <summary></summary> 947 <summary>Mute entry name</summary>
3575 </member> 948 </member>
3576 <member name="T:OpenMetaverse.Primitive.FlexibleData"> 949 <member name="F:OpenMetaverse.MuteEntry.Flags">
3577 <summary> 950 <summary>Mute flags</summary>
3578 Information on the flexible properties of a primitive
3579 </summary>
3580 </member> 951 </member>
3581 <member name="F:OpenMetaverse.Primitive.FlexibleData.Softness"> 952 <member name="T:OpenMetaverse.TransactionInfo">
3582 <summary></summary> 953 <summary>Transaction detail sent with MoneyBalanceReply message</summary>
3583 </member> 954 </member>
3584 <member name="F:OpenMetaverse.Primitive.FlexibleData.Gravity"> 955 <member name="F:OpenMetaverse.TransactionInfo.TransactionType">
3585 <summary></summary> 956 <summary>Type of the transaction</summary>
3586 </member> 957 </member>
3587 <member name="F:OpenMetaverse.Primitive.FlexibleData.Drag"> 958 <member name="F:OpenMetaverse.TransactionInfo.SourceID">
3588 <summary></summary> 959 <summary>UUID of the transaction source</summary>
3589 </member> 960 </member>
3590 <member name="F:OpenMetaverse.Primitive.FlexibleData.Wind"> 961 <member name="F:OpenMetaverse.TransactionInfo.IsSourceGroup">
3591 <summary></summary> 962 <summary>Is the transaction source a group</summary>
3592 </member> 963 </member>
3593 <member name="F:OpenMetaverse.Primitive.FlexibleData.Tension"> 964 <member name="F:OpenMetaverse.TransactionInfo.DestID">
3594 <summary></summary> 965 <summary>UUID of the transaction destination</summary>
3595 </member> 966 </member>
3596 <member name="F:OpenMetaverse.Primitive.FlexibleData.Force"> 967 <member name="F:OpenMetaverse.TransactionInfo.IsDestGroup">
3597 <summary></summary> 968 <summary>Is transaction destination a group</summary>
3598 </member> 969 </member>
3599 <member name="M:OpenMetaverse.Primitive.FlexibleData.#ctor"> 970 <member name="F:OpenMetaverse.TransactionInfo.Amount">
3600 <summary> 971 <summary>Transaction amount</summary>
3601 Default constructor
3602 </summary>
3603 </member> 972 </member>
3604 <member name="M:OpenMetaverse.Primitive.FlexibleData.#ctor(System.Byte[],System.Int32)"> 973 <member name="F:OpenMetaverse.TransactionInfo.ItemDescription">
3605 <summary> 974 <summary>Transaction description</summary>
3606
3607 </summary>
3608 <param name="data"></param>
3609 <param name="pos"></param>
3610 </member>
3611 <member name="M:OpenMetaverse.Primitive.FlexibleData.GetBytes">
3612 <summary>
3613
3614 </summary>
3615 <returns></returns>
3616 </member>
3617 <member name="M:OpenMetaverse.Primitive.FlexibleData.GetOSD">
3618 <summary>
3619
3620 </summary>
3621 <returns></returns>
3622 </member>
3623 <member name="T:OpenMetaverse.Primitive.LightData">
3624 <summary>
3625 Information on the light properties of a primitive
3626 </summary>
3627 </member>
3628 <member name="F:OpenMetaverse.Primitive.LightData.Color">
3629 <summary></summary>
3630 </member>
3631 <member name="F:OpenMetaverse.Primitive.LightData.Intensity">
3632 <summary></summary>
3633 </member>
3634 <member name="F:OpenMetaverse.Primitive.LightData.Radius">
3635 <summary></summary>
3636 </member>
3637 <member name="F:OpenMetaverse.Primitive.LightData.Cutoff">
3638 <summary></summary>
3639 </member>
3640 <member name="F:OpenMetaverse.Primitive.LightData.Falloff">
3641 <summary></summary>
3642 </member> 975 </member>
3643 <member name="M:OpenMetaverse.Primitive.LightData.#ctor"> 976 <member name="T:OpenMetaverse.AgentManager">
3644 <summary>
3645 Default constructor
3646 </summary>
3647 </member>
3648 <member name="M:OpenMetaverse.Primitive.LightData.#ctor(System.Byte[],System.Int32)">
3649 <summary>
3650
3651 </summary>
3652 <param name="data"></param>
3653 <param name="pos"></param>
3654 </member>
3655 <member name="M:OpenMetaverse.Primitive.LightData.GetBytes">
3656 <summary>
3657
3658 </summary>
3659 <returns></returns>
3660 </member>
3661 <member name="M:OpenMetaverse.Primitive.LightData.ToString">
3662 <summary>
3663
3664 </summary>
3665 <returns></returns>
3666 </member>
3667 <member name="T:OpenMetaverse.Primitive.SculptData">
3668 <summary>
3669 Information on the sculpt properties of a sculpted primitive
3670 </summary>
3671 </member>
3672 <member name="M:OpenMetaverse.Primitive.SculptData.#ctor">
3673 <summary> 977 <summary>
3674 Default constructor 978 Manager class for our own avatar
3675 </summary> 979 </summary>
3676 </member> 980 </member>
3677 <member name="M:OpenMetaverse.Primitive.SculptData.#ctor(System.Byte[],System.Int32)"> 981 <member name="M:OpenMetaverse.AgentManager.#ctor(OpenMetaverse.GridClient)">
3678 <summary> 982 <summary>
3679 983 Constructor, setup callbacks for packets related to our avatar
3680 </summary> 984 </summary>
3681 <param name="data"></param> 985 <param name="client">A reference to the <seealso cref="T:OpenMetaverse.GridClient" /> Class</param>
3682 <param name="pos"></param>
3683 </member> 986 </member>
3684 <member name="P:OpenMetaverse.Primitive.SculptData.Invert"> 987 <member name="T:OpenMetaverse.AgentManager.AgentMovement">
3685 <summary> 988 <summary>
3686 Render inside out (inverts the normals). 989 Agent movement and camera control
990 Agent movement is controlled by setting specific <seealso cref="T:AgentManager.ControlFlags" />
991 After the control flags are set, An AgentUpdate is required to update the simulator of the specified flags
992 This is most easily accomplished by setting one or more of the AgentMovement properties
993 Movement of an avatar is always based on a compass direction, for example AtPos will move the
994 agent from West to East or forward on the X Axis, AtNeg will of course move agent from
995 East to West or backward on the X Axis, LeftPos will be South to North or forward on the Y Axis
996 The Z axis is Up, finer grained control of movements can be done using the Nudge properties
3687 </summary> 997 </summary>
3688 </member> 998 </member>
3689 <member name="P:OpenMetaverse.Primitive.SculptData.Mirror"> 999 <member name="M:OpenMetaverse.AgentManager.AgentMovement.#ctor(OpenMetaverse.GridClient)">
3690 <summary> 1000 <summary>Default constructor</summary>
3691 Render an X axis mirror of the sculpty.
3692 </summary>
3693 </member> 1001 </member>
3694 <member name="T:OpenMetaverse.Primitive.ObjectProperties"> 1002 <member name="T:OpenMetaverse.AgentManager.AgentMovement.AgentCamera">
3695 <summary> 1003 <summary>
3696 Extended properties to describe an object 1004 Camera controls for the agent, mostly a thin wrapper around
1005 CoordinateFrame. This class is only responsible for state
1006 tracking and math, it does not send any packets
3697 </summary> 1007 </summary>
3698 </member> 1008 </member>
3699 <member name="F:OpenMetaverse.Primitive.ObjectProperties.ObjectID"> 1009 <member name="M:OpenMetaverse.AgentManager.AgentMovement.AgentCamera.#ctor">
3700 <summary></summary>
3701 </member>
3702 <member name="F:OpenMetaverse.Primitive.ObjectProperties.CreatorID">
3703 <summary></summary>
3704 </member>
3705 <member name="F:OpenMetaverse.Primitive.ObjectProperties.OwnerID">
3706 <summary></summary>
3707 </member>
3708 <member name="F:OpenMetaverse.Primitive.ObjectProperties.GroupID">
3709 <summary></summary>
3710 </member>
3711 <member name="F:OpenMetaverse.Primitive.ObjectProperties.CreationDate">
3712 <summary></summary>
3713 </member>
3714 <member name="F:OpenMetaverse.Primitive.ObjectProperties.Permissions">
3715 <summary></summary>
3716 </member>
3717 <member name="F:OpenMetaverse.Primitive.ObjectProperties.OwnershipCost">
3718 <summary></summary>
3719 </member>
3720 <member name="F:OpenMetaverse.Primitive.ObjectProperties.SaleType">
3721 <summary></summary>
3722 </member>
3723 <member name="F:OpenMetaverse.Primitive.ObjectProperties.SalePrice">
3724 <summary></summary>
3725 </member>
3726 <member name="F:OpenMetaverse.Primitive.ObjectProperties.AggregatePerms">
3727 <summary></summary>
3728 </member>
3729 <member name="F:OpenMetaverse.Primitive.ObjectProperties.AggregatePermTextures">
3730 <summary></summary>
3731 </member>
3732 <member name="F:OpenMetaverse.Primitive.ObjectProperties.AggregatePermTexturesOwner">
3733 <summary></summary>
3734 </member>
3735 <member name="F:OpenMetaverse.Primitive.ObjectProperties.Category">
3736 <summary></summary>
3737 </member>
3738 <member name="F:OpenMetaverse.Primitive.ObjectProperties.InventorySerial">
3739 <summary></summary>
3740 </member>
3741 <member name="F:OpenMetaverse.Primitive.ObjectProperties.ItemID">
3742 <summary></summary>
3743 </member>
3744 <member name="F:OpenMetaverse.Primitive.ObjectProperties.FolderID">
3745 <summary></summary>
3746 </member>
3747 <member name="F:OpenMetaverse.Primitive.ObjectProperties.FromTaskID">
3748 <summary></summary>
3749 </member>
3750 <member name="F:OpenMetaverse.Primitive.ObjectProperties.LastOwnerID">
3751 <summary></summary>
3752 </member>
3753 <member name="F:OpenMetaverse.Primitive.ObjectProperties.Name">
3754 <summary></summary>
3755 </member>
3756 <member name="F:OpenMetaverse.Primitive.ObjectProperties.Description">
3757 <summary></summary>
3758 </member>
3759 <member name="F:OpenMetaverse.Primitive.ObjectProperties.TouchName">
3760 <summary></summary>
3761 </member>
3762 <member name="F:OpenMetaverse.Primitive.ObjectProperties.SitName">
3763 <summary></summary>
3764 </member>
3765 <member name="F:OpenMetaverse.Primitive.ObjectProperties.TextureIDs">
3766 <summary></summary>
3767 </member>
3768 <member name="M:OpenMetaverse.Primitive.ObjectProperties.#ctor">
3769 <summary> 1010 <summary>
3770 Default constructor 1011 Default constructor
3771 </summary> 1012 </summary>
3772 </member> 1013 </member>
3773 <member name="M:OpenMetaverse.Primitive.ObjectProperties.SetFamilyProperties(OpenMetaverse.Primitive.ObjectProperties)"> 1014 <member name="F:OpenMetaverse.AgentManager.AgentMovement.AgentCamera.Far">
3774 <summary>
3775 Set the properties that are set in an ObjectPropertiesFamily packet
3776 </summary>
3777 <param name="props"><seealso cref="T:OpenMetaverse.Primitive.ObjectProperties"/> that has
3778 been partially filled by an ObjectPropertiesFamily packet</param>
3779 </member>
3780 <member name="T:OpenMetaverse.Primitive.ParticleSystem">
3781 <summary>
3782 Complete structure for the particle system
3783 </summary>
3784 </member>
3785 <member name="F:OpenMetaverse.Primitive.ParticleSystem.PartFlags">
3786 <summary>Particle Flags</summary>
3787 <remarks>There appears to be more data packed in to this area
3788 for many particle systems. It doesn't appear to be flag values
3789 and serialization breaks unless there is a flag for every
3790 possible bit so it is left as an unsigned integer</remarks>
3791 </member>
3792 <member name="F:OpenMetaverse.Primitive.ParticleSystem.Pattern">
3793 <summary><seealso cref="T:SourcePattern"/> pattern of particles</summary>
3794 </member>
3795 <member name="F:OpenMetaverse.Primitive.ParticleSystem.MaxAge">
3796 <summary>A <see langword="float"/> representing the maximimum age (in seconds) particle will be displayed</summary>
3797 <remarks>Maximum value is 30 seconds</remarks>
3798 </member>
3799 <member name="F:OpenMetaverse.Primitive.ParticleSystem.StartAge">
3800 <summary>A <see langword="float"/> representing the number of seconds,
3801 from when the particle source comes into view,
3802 or the particle system's creation, that the object will emits particles;
3803 after this time period no more particles are emitted</summary>
3804 </member>
3805 <member name="F:OpenMetaverse.Primitive.ParticleSystem.InnerAngle">
3806 <summary>A <see langword="float"/> in radians that specifies where particles will not be created</summary>
3807 </member>
3808 <member name="F:OpenMetaverse.Primitive.ParticleSystem.OuterAngle">
3809 <summary>A <see langword="float"/> in radians that specifies where particles will be created</summary>
3810 </member>
3811 <member name="F:OpenMetaverse.Primitive.ParticleSystem.BurstRate">
3812 <summary>A <see langword="float"/> representing the number of seconds between burts.</summary>
3813 </member>
3814 <member name="F:OpenMetaverse.Primitive.ParticleSystem.BurstRadius">
3815 <summary>A <see langword="float"/> representing the number of meters
3816 around the center of the source where particles will be created.</summary>
3817 </member>
3818 <member name="F:OpenMetaverse.Primitive.ParticleSystem.BurstSpeedMin">
3819 <summary>A <see langword="float"/> representing in seconds, the minimum speed between bursts of new particles
3820 being emitted</summary>
3821 </member>
3822 <member name="F:OpenMetaverse.Primitive.ParticleSystem.BurstSpeedMax">
3823 <summary>A <see langword="float"/> representing in seconds the maximum speed of new particles being emitted.</summary>
3824 </member>
3825 <member name="F:OpenMetaverse.Primitive.ParticleSystem.BurstPartCount">
3826 <summary>A <see langword="byte"/> representing the maximum number of particles emitted per burst</summary>
3827 </member>
3828 <member name="F:OpenMetaverse.Primitive.ParticleSystem.AngularVelocity">
3829 <summary>A <see cref="T:Vector3"/> which represents the velocity (speed) from the source which particles are emitted</summary>
3830 </member>
3831 <member name="F:OpenMetaverse.Primitive.ParticleSystem.PartAcceleration">
3832 <summary>A <see cref="T:Vector3"/> which represents the Acceleration from the source which particles are emitted</summary>
3833 </member>
3834 <member name="F:OpenMetaverse.Primitive.ParticleSystem.Texture">
3835 <summary>The <see cref="T:UUID"/> Key of the texture displayed on the particle</summary>
3836 </member>
3837 <member name="F:OpenMetaverse.Primitive.ParticleSystem.Target">
3838 <summary>The <see cref="T:UUID"/> Key of the specified target object or avatar particles will follow</summary>
3839 </member>
3840 <member name="F:OpenMetaverse.Primitive.ParticleSystem.PartDataFlags">
3841 <summary>Flags of particle from <seealso cref="T:ParticleDataFlags"/></summary>
3842 </member>
3843 <member name="F:OpenMetaverse.Primitive.ParticleSystem.PartMaxAge">
3844 <summary>Max Age particle system will emit particles for</summary>
3845 </member>
3846 <member name="F:OpenMetaverse.Primitive.ParticleSystem.PartStartColor">
3847 <summary>The <see cref="T:Color4"/> the particle has at the beginning of its lifecycle</summary>
3848 </member>
3849 <member name="F:OpenMetaverse.Primitive.ParticleSystem.PartEndColor">
3850 <summary>The <see cref="T:Color4"/> the particle has at the ending of its lifecycle</summary>
3851 </member>
3852 <member name="F:OpenMetaverse.Primitive.ParticleSystem.PartStartScaleX">
3853 <summary>A <see langword="float"/> that represents the starting X size of the particle</summary>
3854 <remarks>Minimum value is 0, maximum value is 4</remarks>
3855 </member>
3856 <member name="F:OpenMetaverse.Primitive.ParticleSystem.PartStartScaleY">
3857 <summary>A <see langword="float"/> that represents the starting Y size of the particle</summary>
3858 <remarks>Minimum value is 0, maximum value is 4</remarks>
3859 </member>
3860 <member name="F:OpenMetaverse.Primitive.ParticleSystem.PartEndScaleX">
3861 <summary>A <see langword="float"/> that represents the ending X size of the particle</summary>
3862 <remarks>Minimum value is 0, maximum value is 4</remarks>
3863 </member>
3864 <member name="F:OpenMetaverse.Primitive.ParticleSystem.PartEndScaleY">
3865 <summary>A <see langword="float"/> that represents the ending Y size of the particle</summary>
3866 <remarks>Minimum value is 0, maximum value is 4</remarks>
3867 </member>
3868 <member name="M:OpenMetaverse.Primitive.ParticleSystem.#ctor(System.Byte[],System.Int32)">
3869 <summary>
3870 Decodes a byte[] array into a ParticleSystem Object
3871 </summary>
3872 <param name="data">ParticleSystem object</param>
3873 <param name="pos">Start position for BitPacker</param>
3874 </member>
3875 <member name="M:OpenMetaverse.Primitive.ParticleSystem.GetBytes">
3876 <summary>
3877 Generate byte[] array from particle data
3878 </summary>
3879 <returns>Byte array</returns>
3880 </member>
3881 <member name="T:OpenMetaverse.Primitive.ParticleSystem.SourcePattern">
3882 <summary>
3883 Particle source pattern
3884 </summary>
3885 </member>
3886 <member name="F:OpenMetaverse.Primitive.ParticleSystem.SourcePattern.None">
3887 <summary>None</summary>
3888 </member>
3889 <member name="F:OpenMetaverse.Primitive.ParticleSystem.SourcePattern.Drop">
3890 <summary>Drop particles from source position with no force</summary>
3891 </member>
3892 <member name="F:OpenMetaverse.Primitive.ParticleSystem.SourcePattern.Explode">
3893 <summary>"Explode" particles in all directions</summary>
3894 </member>
3895 <member name="F:OpenMetaverse.Primitive.ParticleSystem.SourcePattern.Angle">
3896 <summary>Particles shoot across a 2D area</summary>
3897 </member>
3898 <member name="F:OpenMetaverse.Primitive.ParticleSystem.SourcePattern.AngleCone">
3899 <summary>Particles shoot across a 3D Cone</summary>
3900 </member>
3901 <member name="F:OpenMetaverse.Primitive.ParticleSystem.SourcePattern.AngleConeEmpty">
3902 <summary>Inverse of AngleCone (shoot particles everywhere except the 3D cone defined</summary>
3903 </member>
3904 <member name="T:OpenMetaverse.Primitive.ParticleSystem.ParticleDataFlags">
3905 <summary>
3906 Particle Data Flags
3907 </summary>
3908 </member>
3909 <member name="F:OpenMetaverse.Primitive.ParticleSystem.ParticleDataFlags.None">
3910 <summary>None</summary>
3911 </member>
3912 <member name="F:OpenMetaverse.Primitive.ParticleSystem.ParticleDataFlags.InterpColor">
3913 <summary>Interpolate color and alpha from start to end</summary>
3914 </member>
3915 <member name="F:OpenMetaverse.Primitive.ParticleSystem.ParticleDataFlags.InterpScale">
3916 <summary>Interpolate scale from start to end</summary>
3917 </member>
3918 <member name="F:OpenMetaverse.Primitive.ParticleSystem.ParticleDataFlags.Bounce">
3919 <summary>Bounce particles off particle sources Z height</summary>
3920 </member>
3921 <member name="F:OpenMetaverse.Primitive.ParticleSystem.ParticleDataFlags.Wind">
3922 <summary>velocity of particles is dampened toward the simulators wind</summary>
3923 </member>
3924 <member name="F:OpenMetaverse.Primitive.ParticleSystem.ParticleDataFlags.FollowSrc">
3925 <summary>Particles follow the source</summary>
3926 </member>
3927 <member name="F:OpenMetaverse.Primitive.ParticleSystem.ParticleDataFlags.FollowVelocity">
3928 <summary>Particles point towards the direction of source's velocity</summary>
3929 </member>
3930 <member name="F:OpenMetaverse.Primitive.ParticleSystem.ParticleDataFlags.TargetPos">
3931 <summary>Target of the particles</summary>
3932 </member>
3933 <member name="F:OpenMetaverse.Primitive.ParticleSystem.ParticleDataFlags.TargetLinear">
3934 <summary>Particles are sent in a straight line</summary>
3935 </member>
3936 <member name="F:OpenMetaverse.Primitive.ParticleSystem.ParticleDataFlags.Emissive">
3937 <summary>Particles emit a glow</summary>
3938 </member>
3939 <member name="F:OpenMetaverse.Primitive.ParticleSystem.ParticleDataFlags.Beam">
3940 <summary>used for point/grab/touch</summary>
3941 </member>
3942 <member name="T:OpenMetaverse.Primitive.ParticleSystem.ParticleFlags">
3943 <summary>
3944 Particle Flags Enum
3945 </summary>
3946 </member>
3947 <member name="F:OpenMetaverse.Primitive.ParticleSystem.ParticleFlags.None">
3948 <summary>None</summary>
3949 </member>
3950 <member name="F:OpenMetaverse.Primitive.ParticleSystem.ParticleFlags.ObjectRelative">
3951 <summary>Acceleration and velocity for particles are
3952 relative to the object rotation</summary>
3953 </member>
3954 <member name="F:OpenMetaverse.Primitive.ParticleSystem.ParticleFlags.UseNewAngle">
3955 <summary>Particles use new 'correct' angle parameters</summary>
3956 </member>
3957 <member name="T:OpenMetaverse.Primitive.TextureAnimMode">
3958 <summary> 1015 <summary>
3959 Texture animation mode
3960 </summary> 1016 </summary>
3961 </member> 1017 </member>
3962 <member name="F:OpenMetaverse.Primitive.TextureAnimMode.ANIM_OFF"> 1018 <member name="F:OpenMetaverse.AgentManager.AgentMovement.AgentCamera.Frame">
3963 <summary>Disable texture animation</summary> 1019 <summary>The camera is a local frame of reference inside of
3964 </member> 1020 the larger grid space. This is where the math happens</summary>
3965 <member name="F:OpenMetaverse.Primitive.TextureAnimMode.ANIM_ON">
3966 <summary>Enable texture animation</summary>
3967 </member>
3968 <member name="F:OpenMetaverse.Primitive.TextureAnimMode.LOOP">
3969 <summary>Loop when animating textures</summary>
3970 </member>
3971 <member name="F:OpenMetaverse.Primitive.TextureAnimMode.REVERSE">
3972 <summary>Animate in reverse direction</summary>
3973 </member>
3974 <member name="F:OpenMetaverse.Primitive.TextureAnimMode.PING_PONG">
3975 <summary>Animate forward then reverse</summary>
3976 </member>
3977 <member name="F:OpenMetaverse.Primitive.TextureAnimMode.SMOOTH">
3978 <summary>Slide texture smoothly instead of frame-stepping</summary>
3979 </member>
3980 <member name="F:OpenMetaverse.Primitive.TextureAnimMode.ROTATE">
3981 <summary>Rotate texture instead of using frames</summary>
3982 </member>
3983 <member name="F:OpenMetaverse.Primitive.TextureAnimMode.SCALE">
3984 <summary>Scale texture instead of using frames</summary>
3985 </member> 1021 </member>
3986 <member name="T:OpenMetaverse.Primitive.TextureEntryFace"> 1022 <member name="P:OpenMetaverse.AgentManager.AgentMovement.AgentCamera.Position">
3987 <summary> 1023 <summary>
3988 A single textured face. Don't instantiate this class yourself, use the
3989 methods in TextureEntry
3990 </summary> 1024 </summary>
3991 </member> 1025 </member>
3992 <member name="M:OpenMetaverse.Primitive.TextureEntryFace.#ctor(OpenMetaverse.Primitive.TextureEntryFace)"> 1026 <member name="P:OpenMetaverse.AgentManager.AgentMovement.AgentCamera.AtAxis">
3993 <summary> 1027 <summary>
3994 Contains the definition for individual faces
3995 </summary> 1028 </summary>
3996 <param name="defaultTexture"></param>
3997 </member> 1029 </member>
3998 <member name="M:OpenMetaverse.Primitive.TextureEntryFace.ToString"> 1030 <member name="P:OpenMetaverse.AgentManager.AgentMovement.AgentCamera.LeftAxis">
3999 <summary> 1031 <summary>
4000
4001 </summary> 1032 </summary>
4002 <returns></returns>
4003 </member>
4004 <member name="P:OpenMetaverse.Primitive.TextureEntryFace.material">
4005 <summary></summary>
4006 </member>
4007 <member name="P:OpenMetaverse.Primitive.TextureEntryFace.media">
4008 <summary></summary>
4009 </member>
4010 <member name="P:OpenMetaverse.Primitive.TextureEntryFace.RGBA">
4011 <summary></summary>
4012 </member>
4013 <member name="P:OpenMetaverse.Primitive.TextureEntryFace.RepeatU">
4014 <summary></summary>
4015 </member>
4016 <member name="P:OpenMetaverse.Primitive.TextureEntryFace.RepeatV">
4017 <summary></summary>
4018 </member>
4019 <member name="P:OpenMetaverse.Primitive.TextureEntryFace.OffsetU">
4020 <summary></summary>
4021 </member>
4022 <member name="P:OpenMetaverse.Primitive.TextureEntryFace.OffsetV">
4023 <summary></summary>
4024 </member> 1033 </member>
4025 <member name="P:OpenMetaverse.Primitive.TextureEntryFace.Rotation"> 1034 <member name="P:OpenMetaverse.AgentManager.AgentMovement.AgentCamera.UpAxis">
4026 <summary></summary>
4027 </member>
4028 <member name="P:OpenMetaverse.Primitive.TextureEntryFace.Glow">
4029 <summary></summary>
4030 </member>
4031 <member name="P:OpenMetaverse.Primitive.TextureEntryFace.Bump">
4032 <summary></summary>
4033 </member>
4034 <member name="P:OpenMetaverse.Primitive.TextureEntryFace.MediaFlags">
4035 <summary>In the future this will specify whether a webpage is
4036 attached to this face</summary>
4037 </member>
4038 <member name="P:OpenMetaverse.Primitive.TextureEntryFace.TextureID">
4039 <summary></summary>
4040 </member>
4041 <member name="T:OpenMetaverse.Primitive.TextureEntry">
4042 <summary> 1035 <summary>
4043 Represents all of the texturable faces for an object
4044 </summary> 1036 </summary>
4045 <remarks>Grid objects have infinite faces, with each face
4046 using the properties of the default face unless set otherwise. So if
4047 you have a TextureEntry with a default texture uuid of X, and face 18
4048 has a texture UUID of Y, every face would be textured with X except for
4049 face 18 that uses Y. In practice however, primitives utilize a maximum
4050 of nine faces</remarks>
4051 </member>
4052 <member name="F:OpenMetaverse.Primitive.TextureEntry.DefaultTexture">
4053 <summary></summary>
4054 </member> 1037 </member>
4055 <member name="F:OpenMetaverse.Primitive.TextureEntry.FaceTextures"> 1038 <member name="F:OpenMetaverse.AgentManager.AgentMovement.Camera">
4056 <summary></summary> 1039 <summary>Agent camera controls</summary>
4057 </member> 1040 </member>
4058 <member name="M:OpenMetaverse.Primitive.TextureEntry.#ctor(OpenMetaverse.UUID)"> 1041 <member name="F:OpenMetaverse.AgentManager.AgentMovement.Flags">
4059 <summary> 1042 <summary>Currently only used for hiding your group title</summary>
4060 Constructor that takes a default texture UUID
4061 </summary>
4062 <param name="defaultTextureID">Texture UUID to use as the default texture</param>
4063 </member> 1043 </member>
4064 <member name="M:OpenMetaverse.Primitive.TextureEntry.#ctor(OpenMetaverse.Primitive.TextureEntryFace)"> 1044 <member name="F:OpenMetaverse.AgentManager.AgentMovement.State">
4065 <summary> 1045 <summary>Action state of the avatar, which can currently be
4066 Constructor that takes a <code>TextureEntryFace</code> for the 1046 typing and editing</summary>
4067 default face
4068 </summary>
4069 <param name="defaultFace">Face to use as the default face</param>
4070 </member> 1047 </member>
4071 <member name="M:OpenMetaverse.Primitive.TextureEntry.#ctor(System.Byte[],System.Int32,System.Int32)"> 1048 <member name="F:OpenMetaverse.AgentManager.AgentMovement.BodyRotation">
4072 <summary> 1049 <summary>
4073 Constructor that creates the TextureEntry class from a byte array
4074 </summary> 1050 </summary>
4075 <param name="data">Byte array containing the TextureEntry field</param>
4076 <param name="pos">Starting position of the TextureEntry field in
4077 the byte array</param>
4078 <param name="length">Length of the TextureEntry field, in bytes</param>
4079 </member> 1051 </member>
4080 <member name="M:OpenMetaverse.Primitive.TextureEntry.CreateFace(System.UInt32)"> 1052 <member name="F:OpenMetaverse.AgentManager.AgentMovement.HeadRotation">
4081 <summary> 1053 <summary>
4082 This will either create a new face if a custom face for the given
4083 index is not defined, or return the custom face for that index if
4084 it already exists
4085 </summary> 1054 </summary>
4086 <param name="index">The index number of the face to create or
4087 retrieve</param>
4088 <returns>A TextureEntryFace containing all the properties for that
4089 face</returns>
4090 </member> 1055 </member>
4091 <member name="M:OpenMetaverse.Primitive.TextureEntry.GetFace(System.UInt32)"> 1056 <member name="F:OpenMetaverse.AgentManager.AgentMovement.LastBodyRotation">
4092 <summary> 1057 <summary>
4093
4094 </summary> 1058 </summary>
4095 <param name="index"></param>
4096 <returns></returns>
4097 </member> 1059 </member>
4098 <member name="M:OpenMetaverse.Primitive.TextureEntry.GetOSD"> 1060 <member name="F:OpenMetaverse.AgentManager.AgentMovement.LastHeadRotation">
4099 <summary> 1061 <summary>
4100
4101 </summary> 1062 </summary>
4102 <returns></returns>
4103 </member> 1063 </member>
4104 <member name="M:OpenMetaverse.Primitive.TextureEntry.GetBytes"> 1064 <member name="F:OpenMetaverse.AgentManager.AgentMovement.LastCameraCenter">
4105 <summary> 1065 <summary>
4106
4107 </summary> 1066 </summary>
4108 <returns></returns>
4109 </member> 1067 </member>
4110 <member name="M:OpenMetaverse.Primitive.TextureEntry.ToString"> 1068 <member name="F:OpenMetaverse.AgentManager.AgentMovement.LastCameraXAxis">
4111 <summary> 1069 <summary>
4112
4113 </summary> 1070 </summary>
4114 <returns></returns>
4115 </member> 1071 </member>
4116 <member name="T:OpenMetaverse.Primitive.TextureAnimation"> 1072 <member name="F:OpenMetaverse.AgentManager.AgentMovement.LastCameraYAxis">
4117 <summary> 1073 <summary>
4118 Controls the texture animation of a particular prim
4119 </summary> 1074 </summary>
4120 </member> 1075 </member>
4121 <member name="F:OpenMetaverse.Primitive.TextureAnimation.Flags"> 1076 <member name="F:OpenMetaverse.AgentManager.AgentMovement.LastCameraZAxis">
4122 <summary></summary>
4123 </member>
4124 <member name="F:OpenMetaverse.Primitive.TextureAnimation.Face">
4125 <summary></summary>
4126 </member>
4127 <member name="F:OpenMetaverse.Primitive.TextureAnimation.SizeX">
4128 <summary></summary>
4129 </member>
4130 <member name="F:OpenMetaverse.Primitive.TextureAnimation.SizeY">
4131 <summary></summary>
4132 </member>
4133 <member name="F:OpenMetaverse.Primitive.TextureAnimation.Start">
4134 <summary></summary>
4135 </member>
4136 <member name="F:OpenMetaverse.Primitive.TextureAnimation.Length">
4137 <summary></summary>
4138 </member>
4139 <member name="F:OpenMetaverse.Primitive.TextureAnimation.Rate">
4140 <summary></summary>
4141 </member>
4142 <member name="M:OpenMetaverse.Primitive.TextureAnimation.#ctor(System.Byte[],System.Int32)">
4143 <summary> 1077 <summary>
4144
4145 </summary> 1078 </summary>
4146 <param name="data"></param>
4147 <param name="pos"></param>
4148 </member> 1079 </member>
4149 <member name="M:OpenMetaverse.Primitive.TextureAnimation.GetBytes"> 1080 <member name="F:OpenMetaverse.AgentManager.AgentMovement.LastFar">
4150 <summary> 1081 <summary>
4151
4152 </summary> 1082 </summary>
4153 <returns></returns>
4154 </member> 1083 </member>
4155 <member name="T:OpenMetaverse.Imaging.OpenJPEG"> 1084 <member name="F:OpenMetaverse.AgentManager.AgentMovement.updateTimer">
4156 <summary> 1085 <summary>Timer for sending AgentUpdate packets</summary>
4157 A Wrapper around openjpeg to encode and decode images to and from byte arrays
4158 </summary>
4159 </member> 1086 </member>
4160 <member name="F:OpenMetaverse.Imaging.OpenJPEG.TGA_HEADER_SIZE"> 1087 <member name="P:OpenMetaverse.AgentManager.AgentMovement.AtPos">
4161 <summary>TGA Header size</summary> 1088 <summary>Move agent positive along the X axis</summary>
4162 </member> 1089 </member>
4163 <member name="F:OpenMetaverse.Imaging.OpenJPEG.OpenJPEGLock"> 1090 <member name="P:OpenMetaverse.AgentManager.AgentMovement.AtNeg">
4164 <summary>OpenJPEG is not threadsafe, so this object is used to lock 1091 <summary>Move agent negative along the X axis</summary>
4165 during calls into unmanaged code</summary>
4166 </member> 1092 </member>
4167 <member name="M:OpenMetaverse.Imaging.OpenJPEG.Encode(OpenMetaverse.Imaging.ManagedImage,System.Boolean)"> 1093 <member name="P:OpenMetaverse.AgentManager.AgentMovement.LeftPos">
4168 <summary> 1094 <summary>Move agent positive along the Y axis</summary>
4169 Encode a <seealso cref="T:OpenMetaverse.Imaging.ManagedImage"/> object into a byte array
4170 </summary>
4171 <param name="image">The <seealso cref="T:OpenMetaverse.Imaging.ManagedImage"/> object to encode</param>
4172 <param name="lossless">true to enable lossless conversion, only useful for small images ie: sculptmaps</param>
4173 <returns>A byte array containing the encoded Image object</returns>
4174 </member> 1095 </member>
4175 <member name="M:OpenMetaverse.Imaging.OpenJPEG.Encode(OpenMetaverse.Imaging.ManagedImage)"> 1096 <member name="P:OpenMetaverse.AgentManager.AgentMovement.LeftNeg">
4176 <summary> 1097 <summary>Move agent negative along the Y axis</summary>
4177 Encode a <seealso cref="T:OpenMetaverse.Imaging.ManagedImage"/> object into a byte array
4178 </summary>
4179 <param name="image">The <seealso cref="T:OpenMetaverse.Imaging.ManagedImage"/> object to encode</param>
4180 <returns>a byte array of the encoded image</returns>
4181 </member> 1098 </member>
4182 <member name="M:OpenMetaverse.Imaging.OpenJPEG.DecodeToImage(System.Byte[],OpenMetaverse.Imaging.ManagedImage@,System.Drawing.Image@)"> 1099 <member name="P:OpenMetaverse.AgentManager.AgentMovement.UpPos">
4183 <summary> 1100 <summary>Move agent positive along the Z axis</summary>
4184 Decode JPEG2000 data to an <seealso cref="T:System.Drawing.Image"/> and
4185 <seealso cref="T:OpenMetaverse.Imaging.ManagedImage"/>
4186 </summary>
4187 <param name="encoded">JPEG2000 encoded data</param>
4188 <param name="managedImage">ManagedImage object to decode to</param>
4189 <param name="image">Image object to decode to</param>
4190 <returns>True if the decode succeeds, otherwise false</returns>
4191 </member> 1101 </member>
4192 <member name="M:OpenMetaverse.Imaging.OpenJPEG.DecodeToImage(System.Byte[],OpenMetaverse.Imaging.ManagedImage@)"> 1102 <member name="P:OpenMetaverse.AgentManager.AgentMovement.UpNeg">
4193 <summary> 1103 <summary>Move agent negative along the Z axis</summary>
4194
4195 </summary>
4196 <param name="encoded"></param>
4197 <param name="managedImage"></param>
4198 <returns></returns>
4199 </member> 1104 </member>
4200 <member name="M:OpenMetaverse.Imaging.OpenJPEG.DecodeLayerBoundaries(System.Byte[],OpenMetaverse.Imaging.OpenJPEG.J2KLayerInfo[]@,System.Int32@)"> 1105 <member name="P:OpenMetaverse.AgentManager.AgentMovement.PitchPos">
4201 <summary> 1106 <summary>
4202
4203 </summary> 1107 </summary>
4204 <param name="encoded"></param>
4205 <param name="layerInfo"></param>
4206 <param name="components"></param>
4207 <returns></returns>
4208 </member> 1108 </member>
4209 <member name="M:OpenMetaverse.Imaging.OpenJPEG.EncodeFromImage(System.Drawing.Bitmap,System.Boolean)"> 1109 <member name="P:OpenMetaverse.AgentManager.AgentMovement.PitchNeg">
4210 <summary> 1110 <summary>
4211 Encode a <seealso cref="T:System.Drawing.Bitmap"/> object into a byte array
4212 </summary> 1111 </summary>
4213 <param name="bitmap">The source <seealso cref="T:System.Drawing.Bitmap"/> object to encode</param>
4214 <param name="lossless">true to enable lossless decoding</param>
4215 <returns>A byte array containing the source Bitmap object</returns>
4216 </member> 1112 </member>
4217 <member name="T:OpenMetaverse.Imaging.OpenJPEG.J2KLayerInfo"> 1113 <member name="P:OpenMetaverse.AgentManager.AgentMovement.YawPos">
4218 <summary> 1114 <summary>
4219 Defines the beginning and ending file positions of a layer in an
4220 LRCP-progression JPEG2000 file
4221 </summary> 1115 </summary>
4222 </member> 1116 </member>
4223 <member name="T:OpenMetaverse.Imaging.OpenJPEG.MarshalledImage"> 1117 <member name="P:OpenMetaverse.AgentManager.AgentMovement.YawNeg">
4224 <summary> 1118 <summary>
4225 This structure is used to marshal both encoded and decoded images.
4226 MUST MATCH THE STRUCT IN dotnet.h!
4227 </summary> 1119 </summary>
4228 </member> 1120 </member>
4229 <member name="T:OpenMetaverse.Imaging.OpenJPEG.MarshalledPacket"> 1121 <member name="P:OpenMetaverse.AgentManager.AgentMovement.FastAt">
4230 <summary> 1122 <summary>
4231 Information about a single packet in a JPEG2000 stream
4232 </summary> 1123 </summary>
4233 </member> 1124 </member>
4234 <member name="F:OpenMetaverse.Imaging.OpenJPEG.MarshalledPacket.start_pos"> 1125 <member name="P:OpenMetaverse.AgentManager.AgentMovement.FastLeft">
4235 <summary>Packet start position</summary>
4236 </member>
4237 <member name="F:OpenMetaverse.Imaging.OpenJPEG.MarshalledPacket.end_ph_pos">
4238 <summary>Packet header end position</summary>
4239 </member>
4240 <member name="F:OpenMetaverse.Imaging.OpenJPEG.MarshalledPacket.end_pos">
4241 <summary>Packet end position</summary>
4242 </member>
4243 <member name="T:OpenMetaverse.Assets.AssetBodypart">
4244 <summary> 1126 <summary>
4245 Represents an <seealso cref="T:OpenMetaverse.Assets.AssetWearable"/> that represents an avatars body ie: Hair, Etc.
4246 </summary> 1127 </summary>
4247 </member> 1128 </member>
4248 <member name="T:OpenMetaverse.Assets.AssetWearable"> 1129 <member name="P:OpenMetaverse.AgentManager.AgentMovement.FastUp">
4249 <summary> 1130 <summary>
4250 Represents a Wearable Asset, Clothing, Hair, Skin, Etc
4251 </summary> 1131 </summary>
4252 </member> 1132 </member>
4253 <member name="F:OpenMetaverse.Assets.AssetWearable.Name"> 1133 <member name="P:OpenMetaverse.AgentManager.AgentMovement.Fly">
4254 <summary>A string containing the name of the asset</summary> 1134 <summary>Causes simulator to make agent fly</summary>
4255 </member>
4256 <member name="F:OpenMetaverse.Assets.AssetWearable.Description">
4257 <summary>A string containing a short description of the asset</summary>
4258 </member>
4259 <member name="F:OpenMetaverse.Assets.AssetWearable.WearableType">
4260 <summary>The Assets WearableType</summary>
4261 </member>
4262 <member name="F:OpenMetaverse.Assets.AssetWearable.ForSale">
4263 <summary>The For-Sale status of the object</summary>
4264 </member>
4265 <member name="F:OpenMetaverse.Assets.AssetWearable.SalePrice">
4266 <summary>An Integer representing the purchase price of the asset</summary>
4267 </member> 1135 </member>
4268 <member name="F:OpenMetaverse.Assets.AssetWearable.Creator"> 1136 <member name="P:OpenMetaverse.AgentManager.AgentMovement.Stop">
4269 <summary>The <seealso cref="T:OpenMetaverse.UUID"/> of the assets creator</summary> 1137 <summary>Stop movement</summary>
4270 </member> 1138 </member>
4271 <member name="F:OpenMetaverse.Assets.AssetWearable.Owner"> 1139 <member name="P:OpenMetaverse.AgentManager.AgentMovement.FinishAnim">
4272 <summary>The <seealso cref="T:OpenMetaverse.UUID"/> of the assets current owner</summary> 1140 <summary>Finish animation</summary>
4273 </member> 1141 </member>
4274 <member name="F:OpenMetaverse.Assets.AssetWearable.LastOwner"> 1142 <member name="P:OpenMetaverse.AgentManager.AgentMovement.StandUp">
4275 <summary>The <seealso cref="T:OpenMetaverse.UUID"/> of the assets prior owner</summary> 1143 <summary>Stand up from a sit</summary>
4276 </member> 1144 </member>
4277 <member name="F:OpenMetaverse.Assets.AssetWearable.Group"> 1145 <member name="P:OpenMetaverse.AgentManager.AgentMovement.SitOnGround">
4278 <summary>The <seealso cref="T:OpenMetaverse.UUID"/> of the Group this asset is set to</summary> 1146 <summary>Tells simulator to sit agent on ground</summary>
4279 </member> 1147 </member>
4280 <member name="F:OpenMetaverse.Assets.AssetWearable.GroupOwned"> 1148 <member name="P:OpenMetaverse.AgentManager.AgentMovement.Mouselook">
4281 <summary>True if the asset is owned by a <seealso cref="F:OpenMetaverse.Assets.AssetWearable.Group"/></summary> 1149 <summary>Place agent into mouselook mode</summary>
4282 </member> 1150 </member>
4283 <member name="F:OpenMetaverse.Assets.AssetWearable.Permissions"> 1151 <member name="P:OpenMetaverse.AgentManager.AgentMovement.NudgeAtPos">
4284 <summary>The Permissions mask of the asset</summary> 1152 <summary>Nudge agent positive along the X axis</summary>
4285 </member> 1153 </member>
4286 <member name="F:OpenMetaverse.Assets.AssetWearable.Params"> 1154 <member name="P:OpenMetaverse.AgentManager.AgentMovement.NudgeAtNeg">
4287 <summary>A Dictionary containing Key/Value pairs of the objects parameters</summary> 1155 <summary>Nudge agent negative along the X axis</summary>
4288 </member> 1156 </member>
4289 <member name="F:OpenMetaverse.Assets.AssetWearable.Textures"> 1157 <member name="P:OpenMetaverse.AgentManager.AgentMovement.NudgeLeftPos">
4290 <summary>A Dictionary containing Key/Value pairs where the Key is the textures Index and the Value is the Textures <seealso cref="T:OpenMetaverse.UUID"/></summary> 1158 <summary>Nudge agent positive along the Y axis</summary>
4291 </member> 1159 </member>
4292 <member name="M:OpenMetaverse.Assets.AssetWearable.#ctor"> 1160 <member name="P:OpenMetaverse.AgentManager.AgentMovement.NudgeLeftNeg">
4293 <summary>Initializes a new instance of an AssetWearable object</summary> 1161 <summary>Nudge agent negative along the Y axis</summary>
4294 </member> 1162 </member>
4295 <member name="M:OpenMetaverse.Assets.AssetWearable.#ctor(OpenMetaverse.UUID,System.Byte[])"> 1163 <member name="P:OpenMetaverse.AgentManager.AgentMovement.NudgeUpPos">
4296 <summary>Initializes a new instance of an AssetWearable object with parameters</summary> 1164 <summary>Nudge agent positive along the Z axis</summary>
4297 <param name="assetID">A unique <see cref="T:OpenMetaverse.UUID"/> specific to this asset</param>
4298 <param name="assetData">A byte array containing the raw asset data</param>
4299 </member> 1165 </member>
4300 <member name="M:OpenMetaverse.Assets.AssetWearable.Decode"> 1166 <member name="P:OpenMetaverse.AgentManager.AgentMovement.NudgeUpNeg">
4301 <summary> 1167 <summary>Nudge agent negative along the Z axis</summary>
4302 Decode an assets byte encoded data to a string
4303 </summary>
4304 <returns>true if the asset data was decoded successfully</returns>
4305 </member> 1168 </member>
4306 <member name="M:OpenMetaverse.Assets.AssetWearable.Encode"> 1169 <member name="P:OpenMetaverse.AgentManager.AgentMovement.TurnLeft">
4307 <summary> 1170 <summary>
4308 Encode the assets string represantion into a format consumable by the asset server
4309 </summary> 1171 </summary>
4310 </member> 1172 </member>
4311 <member name="M:OpenMetaverse.Assets.AssetBodypart.#ctor"> 1173 <member name="P:OpenMetaverse.AgentManager.AgentMovement.TurnRight">
4312 <summary>Initializes a new instance of an AssetBodyPart object</summary>
4313 </member>
4314 <member name="M:OpenMetaverse.Assets.AssetBodypart.#ctor(OpenMetaverse.UUID,System.Byte[])">
4315 <summary>Initializes a new instance of an AssetBodyPart object with parameters</summary>
4316 <param name="assetID">A unique <see cref="T:OpenMetaverse.UUID"/> specific to this asset</param>
4317 <param name="assetData">A byte array containing the raw asset data</param>
4318 </member>
4319 <member name="P:OpenMetaverse.Assets.AssetBodypart.AssetType">
4320 <summary>Override the base classes AssetType</summary>
4321 </member>
4322 <member name="T:OpenMetaverse.FieldType">
4323 <summary> 1174 <summary>
4324
4325 </summary> 1175 </summary>
4326 </member> 1176 </member>
4327 <member name="F:OpenMetaverse.FieldType.U8"> 1177 <member name="P:OpenMetaverse.AgentManager.AgentMovement.Away">
4328 <summary></summary> 1178 <summary>Tell simulator to mark agent as away</summary>
4329 </member>
4330 <member name="F:OpenMetaverse.FieldType.U16">
4331 <summary></summary>
4332 </member>
4333 <member name="F:OpenMetaverse.FieldType.U32">
4334 <summary></summary>
4335 </member>
4336 <member name="F:OpenMetaverse.FieldType.U64">
4337 <summary></summary>
4338 </member>
4339 <member name="F:OpenMetaverse.FieldType.S8">
4340 <summary></summary>
4341 </member>
4342 <member name="F:OpenMetaverse.FieldType.S16">
4343 <summary></summary>
4344 </member>
4345 <member name="F:OpenMetaverse.FieldType.S32">
4346 <summary></summary>
4347 </member>
4348 <member name="F:OpenMetaverse.FieldType.F32">
4349 <summary></summary>
4350 </member>
4351 <member name="F:OpenMetaverse.FieldType.F64">
4352 <summary></summary>
4353 </member>
4354 <member name="F:OpenMetaverse.FieldType.UUID">
4355 <summary></summary>
4356 </member>
4357 <member name="F:OpenMetaverse.FieldType.BOOL">
4358 <summary></summary>
4359 </member>
4360 <member name="F:OpenMetaverse.FieldType.Vector3">
4361 <summary></summary>
4362 </member>
4363 <member name="F:OpenMetaverse.FieldType.Vector3d">
4364 <summary></summary>
4365 </member>
4366 <member name="F:OpenMetaverse.FieldType.Vector4">
4367 <summary></summary>
4368 </member>
4369 <member name="F:OpenMetaverse.FieldType.Quaternion">
4370 <summary></summary>
4371 </member>
4372 <member name="F:OpenMetaverse.FieldType.IPADDR">
4373 <summary></summary>
4374 </member>
4375 <member name="F:OpenMetaverse.FieldType.IPPORT">
4376 <summary></summary>
4377 </member>
4378 <member name="F:OpenMetaverse.FieldType.Variable">
4379 <summary></summary>
4380 </member>
4381 <member name="F:OpenMetaverse.FieldType.Fixed">
4382 <summary></summary>
4383 </member>
4384 <member name="F:OpenMetaverse.FieldType.Single">
4385 <summary></summary>
4386 </member>
4387 <member name="F:OpenMetaverse.FieldType.Multiple">
4388 <summary></summary>
4389 </member> 1179 </member>
4390 <member name="T:OpenMetaverse.MapField"> 1180 <member name="P:OpenMetaverse.AgentManager.AgentMovement.LButtonDown">
4391 <summary> 1181 <summary>
4392
4393 </summary> 1182 </summary>
4394 </member> 1183 </member>
4395 <member name="F:OpenMetaverse.MapField.KeywordPosition"> 1184 <member name="P:OpenMetaverse.AgentManager.AgentMovement.LButtonUp">
4396 <summary></summary>
4397 </member>
4398 <member name="F:OpenMetaverse.MapField.Name">
4399 <summary></summary>
4400 </member>
4401 <member name="F:OpenMetaverse.MapField.Type">
4402 <summary></summary>
4403 </member>
4404 <member name="F:OpenMetaverse.MapField.Count">
4405 <summary></summary>
4406 </member>
4407 <member name="M:OpenMetaverse.MapField.CompareTo(System.Object)">
4408 <summary> 1185 <summary>
4409
4410 </summary> 1186 </summary>
4411 <param name="obj"></param>
4412 <returns></returns>
4413 </member> 1187 </member>
4414 <member name="T:OpenMetaverse.MapBlock"> 1188 <member name="P:OpenMetaverse.AgentManager.AgentMovement.MLButtonDown">
4415 <summary> 1189 <summary>
4416
4417 </summary> 1190 </summary>
4418 </member> 1191 </member>
4419 <member name="F:OpenMetaverse.MapBlock.KeywordPosition"> 1192 <member name="P:OpenMetaverse.AgentManager.AgentMovement.MLButtonUp">
4420 <summary></summary>
4421 </member>
4422 <member name="F:OpenMetaverse.MapBlock.Name">
4423 <summary></summary>
4424 </member>
4425 <member name="F:OpenMetaverse.MapBlock.Count">
4426 <summary></summary>
4427 </member>
4428 <member name="F:OpenMetaverse.MapBlock.Fields">
4429 <summary></summary>
4430 </member>
4431 <member name="M:OpenMetaverse.MapBlock.CompareTo(System.Object)">
4432 <summary> 1193 <summary>
4433
4434 </summary> 1194 </summary>
4435 <param name="obj"></param>
4436 <returns></returns>
4437 </member> 1195 </member>
4438 <member name="T:OpenMetaverse.MapPacket"> 1196 <member name="P:OpenMetaverse.AgentManager.AgentMovement.AlwaysRun">
4439 <summary> 1197 <summary>
4440 1198 Returns "always run" value, or changes it by sending a SetAlwaysRunPacket
4441 </summary> 1199 </summary>
4442 </member> 1200 </member>
4443 <member name="F:OpenMetaverse.MapPacket.ID"> 1201 <member name="P:OpenMetaverse.AgentManager.AgentMovement.AgentControls">
4444 <summary></summary> 1202 <summary>The current value of the agent control flags</summary>
4445 </member>
4446 <member name="F:OpenMetaverse.MapPacket.Name">
4447 <summary></summary>
4448 </member>
4449 <member name="F:OpenMetaverse.MapPacket.Frequency">
4450 <summary></summary>
4451 </member> 1203 </member>
4452 <member name="F:OpenMetaverse.MapPacket.Trusted"> 1204 <member name="P:OpenMetaverse.AgentManager.AgentMovement.UpdateInterval">
4453 <summary></summary> 1205 <summary>Gets or sets the interval in milliseconds at which
1206 AgentUpdate packets are sent to the current simulator. Setting
1207 this to a non-zero value will also enable the packet sending if
1208 it was previously off, and setting it to zero will disable</summary>
4454 </member> 1209 </member>
4455 <member name="F:OpenMetaverse.MapPacket.Encoded"> 1210 <member name="P:OpenMetaverse.AgentManager.AgentMovement.UpdateEnabled">
4456 <summary></summary> 1211 <summary>Gets or sets whether AgentUpdate packets are sent to
1212 the current simulator</summary>
4457 </member> 1213 </member>
4458 <member name="F:OpenMetaverse.MapPacket.Blocks"> 1214 <member name="P:OpenMetaverse.AgentManager.AgentMovement.AutoResetControls">
4459 <summary></summary> 1215 <summary>Reset movement controls every time we send an update</summary>
4460 </member> 1216 </member>
4461 <member name="T:OpenMetaverse.ProtocolManager"> 1217 <member name="M:OpenMetaverse.AgentManager.AgentMovement.UpdateFromHeading(System.Double,System.Boolean)">
4462 <summary> 1218 <summary>
4463 1219 Send an AgentUpdate with the camera set at the current agent
1220 position and pointing towards the heading specified
4464 </summary> 1221 </summary>
1222 <param name="heading">Camera rotation in radians</param>
1223 <param name="reliable">Whether to send the AgentUpdate reliable
1224 or not</param>
4465 </member> 1225 </member>
4466 <member name="F:OpenMetaverse.ProtocolManager.TypeSizes"> 1226 <member name="M:OpenMetaverse.AgentManager.AgentMovement.TurnToward(OpenMetaverse.Vector3)">
4467 <summary></summary>
4468 </member>
4469 <member name="F:OpenMetaverse.ProtocolManager.KeywordPositions">
4470 <summary></summary>
4471 </member>
4472 <member name="F:OpenMetaverse.ProtocolManager.LowMaps">
4473 <summary></summary>
4474 </member>
4475 <member name="F:OpenMetaverse.ProtocolManager.MediumMaps">
4476 <summary></summary>
4477 </member>
4478 <member name="F:OpenMetaverse.ProtocolManager.HighMaps">
4479 <summary></summary>
4480 </member>
4481 <member name="M:OpenMetaverse.ProtocolManager.#ctor(System.String,OpenMetaverse.GridClient)">
4482 <summary> 1227 <summary>
4483 1228 Rotates the avatar body and camera toward a target position.
1229 This will also anchor the camera position on the avatar
4484 </summary> 1230 </summary>
4485 <param name="mapFile"></param> 1231 <param name="target">Region coordinates to turn toward</param>
4486 <param name="client"></param>
4487 </member> 1232 </member>
4488 <member name="M:OpenMetaverse.ProtocolManager.Command(System.String)"> 1233 <member name="M:OpenMetaverse.AgentManager.AgentMovement.SendUpdate">
4489 <summary> 1234 <summary>
4490 1235 Send new AgentUpdate packet to update our current camera
1236 position and rotation
4491 </summary> 1237 </summary>
4492 <param name="command"></param>
4493 <returns></returns>
4494 </member> 1238 </member>
4495 <member name="M:OpenMetaverse.ProtocolManager.Command(System.Byte[])"> 1239 <member name="M:OpenMetaverse.AgentManager.AgentMovement.SendUpdate(System.Boolean)">
4496 <summary> 1240 <summary>
4497 1241 Send new AgentUpdate packet to update our current camera
1242 position and rotation
4498 </summary> 1243 </summary>
4499 <param name="data"></param> 1244 <param name="reliable">Whether to require server acknowledgement
4500 <returns></returns> 1245 of this packet</param>
4501 </member> 1246 </member>
4502 <member name="M:OpenMetaverse.ProtocolManager.Command(System.UInt16,OpenMetaverse.PacketFrequency)"> 1247 <member name="M:OpenMetaverse.AgentManager.AgentMovement.SendUpdate(System.Boolean,OpenMetaverse.Simulator)">
4503 <summary> 1248 <summary>
4504 1249 Send new AgentUpdate packet to update our current camera
1250 position and rotation
4505 </summary> 1251 </summary>
4506 <param name="command"></param> 1252 <param name="reliable">Whether to require server acknowledgement
4507 <param name="frequency"></param> 1253 of this packet</param>
4508 <returns></returns> 1254 <param name="simulator">Simulator to send the update to</param>
4509 </member> 1255 </member>
4510 <member name="M:OpenMetaverse.ProtocolManager.PrintMap"> 1256 <member name="M:OpenMetaverse.AgentManager.AgentMovement.SendManualUpdate(OpenMetaverse.AgentManager.ControlFlags,OpenMetaverse.Vector3,OpenMetaverse.Vector3,OpenMetaverse.Vector3,OpenMetaverse.Vector3,OpenMetaverse.Quaternion,OpenMetaverse.Quaternion,System.Single,OpenMetaverse.AgentFlags,OpenMetaverse.AgentState,System.Boolean)">
4511 <summary> 1257 <summary>
4512 1258 Builds an AgentUpdate packet entirely from parameters. This
1259 will not touch the state of Self.Movement or
1260 Self.Movement.Camera in any way
4513 </summary> 1261 </summary>
1262 <param name="controlFlags">
1263 </param>
1264 <param name="position">
1265 </param>
1266 <param name="forwardAxis">
1267 </param>
1268 <param name="leftAxis">
1269 </param>
1270 <param name="upAxis">
1271 </param>
1272 <param name="bodyRotation">
1273 </param>
1274 <param name="headRotation">
1275 </param>
1276 <param name="farClip">
1277 </param>
1278 <param name="reliable">
1279 </param>
1280 <param name="flags">
1281 </param>
1282 <param name="state">
1283 </param>
4514 </member> 1284 </member>
4515 <member name="M:OpenMetaverse.ProtocolManager.PrintOneMap(OpenMetaverse.MapPacket[],System.String)"> 1285 <member name="T:OpenMetaverse.AgentManager.ControlFlags">
4516 <summary> 1286 <summary>
4517 1287 Used to specify movement actions for your agent
4518 </summary> 1288 </summary>
4519 <param name="map"></param>
4520 <param name="frequency"></param>
4521 </member> 1289 </member>
4522 <member name="M:OpenMetaverse.ProtocolManager.DecodeMapFile(System.String,System.String)"> 1290 <member name="F:OpenMetaverse.AgentManager.ControlFlags.NONE">
4523 <summary> 1291 <summary>Empty flag</summary>
4524
4525 </summary>
4526 <param name="mapFile"></param>
4527 <param name="outputFile"></param>
4528 </member> 1292 </member>
4529 <member name="M:OpenMetaverse.ProtocolManager.LoadMapFile(System.String)"> 1293 <member name="F:OpenMetaverse.AgentManager.ControlFlags.AGENT_CONTROL_AT_POS">
4530 <summary> 1294 <summary>Move Forward (SL Keybinding: W/Up Arrow)</summary>
4531
4532 </summary>
4533 <param name="mapFile"></param>
4534 </member> 1295 </member>
4535 <member name="T:OpenMetaverse.ScriptPermission"> 1296 <member name="F:OpenMetaverse.AgentManager.ControlFlags.AGENT_CONTROL_AT_NEG">
4536 <summary> 1297 <summary>Move Backward (SL Keybinding: S/Down Arrow)</summary>
4537 Permission request flags, asked when a script wants to control an Avatar
4538 </summary>
4539 </member> 1298 </member>
4540 <member name="F:OpenMetaverse.ScriptPermission.None"> 1299 <member name="F:OpenMetaverse.AgentManager.ControlFlags.AGENT_CONTROL_LEFT_POS">
4541 <summary>Placeholder for empty values, shouldn't ever see this</summary> 1300 <summary>Move Left (SL Keybinding: Shift-(A/Left Arrow))</summary>
4542 </member> 1301 </member>
4543 <member name="F:OpenMetaverse.ScriptPermission.Debit"> 1302 <member name="F:OpenMetaverse.AgentManager.ControlFlags.AGENT_CONTROL_LEFT_NEG">
4544 <summary>Script wants ability to take money from you</summary> 1303 <summary>Move Right (SL Keybinding: Shift-(D/Right Arrow))</summary>
4545 </member> 1304 </member>
4546 <member name="F:OpenMetaverse.ScriptPermission.TakeControls"> 1305 <member name="F:OpenMetaverse.AgentManager.ControlFlags.AGENT_CONTROL_UP_POS">
4547 <summary>Script wants to take camera controls for you</summary> 1306 <summary>Not Flying: Jump/Flying: Move Up (SL Keybinding: E)</summary>
4548 </member> 1307 </member>
4549 <member name="F:OpenMetaverse.ScriptPermission.RemapControls"> 1308 <member name="F:OpenMetaverse.AgentManager.ControlFlags.AGENT_CONTROL_UP_NEG">
4550 <summary>Script wants to remap avatars controls</summary> 1309 <summary>Not Flying: Croutch/Flying: Move Down (SL Keybinding: C)</summary>
4551 </member> 1310 </member>
4552 <member name="F:OpenMetaverse.ScriptPermission.TriggerAnimation"> 1311 <member name="F:OpenMetaverse.AgentManager.ControlFlags.AGENT_CONTROL_PITCH_POS">
4553 <summary>Script wants to trigger avatar animations</summary> 1312 <summary>Unused</summary>
4554 <remarks>This function is not implemented on the grid</remarks>
4555 </member> 1313 </member>
4556 <member name="F:OpenMetaverse.ScriptPermission.Attach"> 1314 <member name="F:OpenMetaverse.AgentManager.ControlFlags.AGENT_CONTROL_PITCH_NEG">
4557 <summary>Script wants to attach or detach the prim or primset to your avatar</summary> 1315 <summary>Unused</summary>
4558 </member> 1316 </member>
4559 <member name="F:OpenMetaverse.ScriptPermission.ReleaseOwnership"> 1317 <member name="F:OpenMetaverse.AgentManager.ControlFlags.AGENT_CONTROL_YAW_POS">
4560 <summary>Script wants permission to release ownership</summary> 1318 <summary>Unused</summary>
4561 <remarks>This function is not implemented on the grid
4562 The concept of "public" objects does not exist anymore.</remarks>
4563 </member> 1319 </member>
4564 <member name="F:OpenMetaverse.ScriptPermission.ChangeLinks"> 1320 <member name="F:OpenMetaverse.AgentManager.ControlFlags.AGENT_CONTROL_YAW_NEG">
4565 <summary>Script wants ability to link/delink with other prims</summary> 1321 <summary>Unused</summary>
4566 </member> 1322 </member>
4567 <member name="F:OpenMetaverse.ScriptPermission.ChangeJoints"> 1323 <member name="F:OpenMetaverse.AgentManager.ControlFlags.AGENT_CONTROL_FAST_AT">
4568 <summary>Script wants permission to change joints</summary> 1324 <summary>ORed with AGENT_CONTROL_AT_* if the keyboard is being used</summary>
4569 <remarks>This function is not implemented on the grid</remarks>
4570 </member> 1325 </member>
4571 <member name="F:OpenMetaverse.ScriptPermission.ChangePermissions"> 1326 <member name="F:OpenMetaverse.AgentManager.ControlFlags.AGENT_CONTROL_FAST_LEFT">
4572 <summary>Script wants permissions to change permissions</summary> 1327 <summary>ORed with AGENT_CONTROL_LEFT_* if the keyboard is being used</summary>
4573 <remarks>This function is not implemented on the grid</remarks>
4574 </member> 1328 </member>
4575 <member name="F:OpenMetaverse.ScriptPermission.TrackCamera"> 1329 <member name="F:OpenMetaverse.AgentManager.ControlFlags.AGENT_CONTROL_FAST_UP">
4576 <summary>Script wants to track avatars camera position and rotation </summary> 1330 <summary>ORed with AGENT_CONTROL_UP_* if the keyboard is being used</summary>
4577 </member> 1331 </member>
4578 <member name="F:OpenMetaverse.ScriptPermission.ControlCamera"> 1332 <member name="F:OpenMetaverse.AgentManager.ControlFlags.AGENT_CONTROL_FLY">
4579 <summary>Script wants to control your camera</summary> 1333 <summary>Fly</summary>
4580 </member> 1334 </member>
4581 <member name="T:OpenMetaverse.InstantMessageDialog"> 1335 <member name="F:OpenMetaverse.AgentManager.ControlFlags.AGENT_CONTROL_STOP">
4582 <summary> 1336 <summary>
4583 Special commands used in Instant Messages
4584 </summary> 1337 </summary>
4585 </member> 1338 </member>
4586 <member name="F:OpenMetaverse.InstantMessageDialog.MessageFromAgent"> 1339 <member name="F:OpenMetaverse.AgentManager.ControlFlags.AGENT_CONTROL_FINISH_ANIM">
4587 <summary>Indicates a regular IM from another agent</summary> 1340 <summary>Finish our current animation</summary>
4588 </member>
4589 <member name="F:OpenMetaverse.InstantMessageDialog.MessageBox">
4590 <summary>Simple notification box with an OK button</summary>
4591 </member>
4592 <member name="F:OpenMetaverse.InstantMessageDialog.GroupInvitation">
4593 <summary>You've been invited to join a group.</summary>
4594 </member>
4595 <member name="F:OpenMetaverse.InstantMessageDialog.InventoryOffered">
4596 <summary>Inventory offer</summary>
4597 </member>
4598 <member name="F:OpenMetaverse.InstantMessageDialog.InventoryAccepted">
4599 <summary>Accepted inventory offer</summary>
4600 </member>
4601 <member name="F:OpenMetaverse.InstantMessageDialog.InventoryDeclined">
4602 <summary>Declined inventory offer</summary>
4603 </member>
4604 <member name="F:OpenMetaverse.InstantMessageDialog.GroupVote">
4605 <summary>Group vote</summary>
4606 </member>
4607 <member name="F:OpenMetaverse.InstantMessageDialog.TaskInventoryOffered">
4608 <summary>An object is offering its inventory</summary>
4609 </member>
4610 <member name="F:OpenMetaverse.InstantMessageDialog.TaskInventoryAccepted">
4611 <summary>Accept an inventory offer from an object</summary>
4612 </member>
4613 <member name="F:OpenMetaverse.InstantMessageDialog.TaskInventoryDeclined">
4614 <summary>Decline an inventory offer from an object</summary>
4615 </member>
4616 <member name="F:OpenMetaverse.InstantMessageDialog.NewUserDefault">
4617 <summary>Unknown</summary>
4618 </member>
4619 <member name="F:OpenMetaverse.InstantMessageDialog.SessionAdd">
4620 <summary>Start a session, or add users to a session</summary>
4621 </member>
4622 <member name="F:OpenMetaverse.InstantMessageDialog.SessionOfflineAdd">
4623 <summary>Start a session, but don't prune offline users</summary>
4624 </member>
4625 <member name="F:OpenMetaverse.InstantMessageDialog.SessionGroupStart">
4626 <summary>Start a session with your group</summary>
4627 </member>
4628 <member name="F:OpenMetaverse.InstantMessageDialog.SessionCardlessStart">
4629 <summary>Start a session without a calling card (finder or objects)</summary>
4630 </member>
4631 <member name="F:OpenMetaverse.InstantMessageDialog.SessionSend">
4632 <summary>Send a message to a session</summary>
4633 </member>
4634 <member name="F:OpenMetaverse.InstantMessageDialog.SessionDrop">
4635 <summary>Leave a session</summary>
4636 </member>
4637 <member name="F:OpenMetaverse.InstantMessageDialog.MessageFromObject">
4638 <summary>Indicates that the IM is from an object</summary>
4639 </member>
4640 <member name="F:OpenMetaverse.InstantMessageDialog.BusyAutoResponse">
4641 <summary>Sent an IM to a busy user, this is the auto response</summary>
4642 </member>
4643 <member name="F:OpenMetaverse.InstantMessageDialog.ConsoleAndChatHistory">
4644 <summary>Shows the message in the console and chat history</summary>
4645 </member>
4646 <member name="F:OpenMetaverse.InstantMessageDialog.RequestTeleport">
4647 <summary>Send a teleport lure</summary>
4648 </member>
4649 <member name="F:OpenMetaverse.InstantMessageDialog.AcceptTeleport">
4650 <summary>Response sent to the agent which inititiated a teleport invitation</summary>
4651 </member>
4652 <member name="F:OpenMetaverse.InstantMessageDialog.DenyTeleport">
4653 <summary>Response sent to the agent which inititiated a teleport invitation</summary>
4654 </member>
4655 <member name="F:OpenMetaverse.InstantMessageDialog.GodLikeRequestTeleport">
4656 <summary>Only useful if you have Linden permissions</summary>
4657 </member>
4658 <member name="F:OpenMetaverse.InstantMessageDialog.CurrentlyUnused">
4659 <summary>A placeholder type for future expansion, currently not
4660 used</summary>
4661 </member>
4662 <member name="F:OpenMetaverse.InstantMessageDialog.GotoUrl">
4663 <summary>IM to tell the user to go to an URL</summary>
4664 </member>
4665 <member name="F:OpenMetaverse.InstantMessageDialog.Session911Start">
4666 <summary>IM for help</summary>
4667 </member>
4668 <member name="F:OpenMetaverse.InstantMessageDialog.Lure911">
4669 <summary>IM sent automatically on call for help, sends a lure
4670 to each Helper reached</summary>
4671 </member>
4672 <member name="F:OpenMetaverse.InstantMessageDialog.FromTaskAsAlert">
4673 <summary>Like an IM but won't go to email</summary>
4674 </member>
4675 <member name="F:OpenMetaverse.InstantMessageDialog.GroupNotice">
4676 <summary>IM from a group officer to all group members</summary>
4677 </member>
4678 <member name="F:OpenMetaverse.InstantMessageDialog.GroupNoticeInventoryAccepted">
4679 <summary>Unknown</summary>
4680 </member>
4681 <member name="F:OpenMetaverse.InstantMessageDialog.GroupNoticeInventoryDeclined">
4682 <summary>Unknown</summary>
4683 </member>
4684 <member name="F:OpenMetaverse.InstantMessageDialog.GroupInvitationAccept">
4685 <summary>Accept a group invitation</summary>
4686 </member>
4687 <member name="F:OpenMetaverse.InstantMessageDialog.GroupInvitationDecline">
4688 <summary>Decline a group invitation</summary>
4689 </member> 1341 </member>
4690 <member name="F:OpenMetaverse.InstantMessageDialog.GroupNoticeRequested"> 1342 <member name="F:OpenMetaverse.AgentManager.ControlFlags.AGENT_CONTROL_STAND_UP">
4691 <summary>Unknown</summary> 1343 <summary>Stand up from the ground or a prim seat</summary>
4692 </member> 1344 </member>
4693 <member name="F:OpenMetaverse.InstantMessageDialog.FriendshipOffered"> 1345 <member name="F:OpenMetaverse.AgentManager.ControlFlags.AGENT_CONTROL_SIT_ON_GROUND">
4694 <summary>An avatar is offering you friendship</summary> 1346 <summary>Sit on the ground at our current location</summary>
4695 </member> 1347 </member>
4696 <member name="F:OpenMetaverse.InstantMessageDialog.FriendshipAccepted"> 1348 <member name="F:OpenMetaverse.AgentManager.ControlFlags.AGENT_CONTROL_MOUSELOOK">
4697 <summary>An avatar has accepted your friendship offer</summary> 1349 <summary>Whether mouselook is currently enabled</summary>
4698 </member> 1350 </member>
4699 <member name="F:OpenMetaverse.InstantMessageDialog.FriendshipDeclined"> 1351 <member name="F:OpenMetaverse.AgentManager.ControlFlags.AGENT_CONTROL_NUDGE_AT_POS">
4700 <summary>An avatar has declined your friendship offer</summary> 1352 <summary>Legacy, used if a key was pressed for less than a certain amount of time</summary>
4701 </member> 1353 </member>
4702 <member name="F:OpenMetaverse.InstantMessageDialog.StartTyping"> 1354 <member name="F:OpenMetaverse.AgentManager.ControlFlags.AGENT_CONTROL_NUDGE_AT_NEG">
4703 <summary>Indicates that a user has started typing</summary> 1355 <summary>Legacy, used if a key was pressed for less than a certain amount of time</summary>
4704 </member> 1356 </member>
4705 <member name="F:OpenMetaverse.InstantMessageDialog.StopTyping"> 1357 <member name="F:OpenMetaverse.AgentManager.ControlFlags.AGENT_CONTROL_NUDGE_LEFT_POS">
4706 <summary>Indicates that a user has stopped typing</summary> 1358 <summary>Legacy, used if a key was pressed for less than a certain amount of time</summary>
4707 </member> 1359 </member>
4708 <member name="T:OpenMetaverse.InstantMessageOnline"> 1360 <member name="F:OpenMetaverse.AgentManager.ControlFlags.AGENT_CONTROL_NUDGE_LEFT_NEG">
4709 <summary> 1361 <summary>Legacy, used if a key was pressed for less than a certain amount of time</summary>
4710 Flag in Instant Messages, whether the IM should be delivered to
4711 offline avatars as well
4712 </summary>
4713 </member> 1362 </member>
4714 <member name="F:OpenMetaverse.InstantMessageOnline.Online"> 1363 <member name="F:OpenMetaverse.AgentManager.ControlFlags.AGENT_CONTROL_NUDGE_UP_POS">
4715 <summary>Only deliver to online avatars</summary> 1364 <summary>Legacy, used if a key was pressed for less than a certain amount of time</summary>
4716 </member> 1365 </member>
4717 <member name="F:OpenMetaverse.InstantMessageOnline.Offline"> 1366 <member name="F:OpenMetaverse.AgentManager.ControlFlags.AGENT_CONTROL_NUDGE_UP_NEG">
4718 <summary>If the avatar is offline the message will be held until 1367 <summary>Legacy, used if a key was pressed for less than a certain amount of time</summary>
4719 they login next, and possibly forwarded to their e-mail account</summary>
4720 </member> 1368 </member>
4721 <member name="T:OpenMetaverse.ChatType"> 1369 <member name="F:OpenMetaverse.AgentManager.ControlFlags.AGENT_CONTROL_TURN_LEFT">
4722 <summary> 1370 <summary>
4723 Conversion type to denote Chat Packet types in an easier-to-understand format
4724 </summary> 1371 </summary>
4725 </member> 1372 </member>
4726 <member name="F:OpenMetaverse.ChatType.Whisper"> 1373 <member name="F:OpenMetaverse.AgentManager.ControlFlags.AGENT_CONTROL_TURN_RIGHT">
4727 <summary>Whisper (5m radius)</summary>
4728 </member>
4729 <member name="F:OpenMetaverse.ChatType.Normal">
4730 <summary>Normal chat (10/20m radius), what the official viewer typically sends</summary>
4731 </member>
4732 <member name="F:OpenMetaverse.ChatType.Shout">
4733 <summary>Shouting! (100m radius)</summary>
4734 </member>
4735 <member name="F:OpenMetaverse.ChatType.StartTyping">
4736 <summary>Event message when an Avatar has begun to type</summary>
4737 </member>
4738 <member name="F:OpenMetaverse.ChatType.StopTyping">
4739 <summary>Event message when an Avatar has stopped typing</summary>
4740 </member>
4741 <member name="F:OpenMetaverse.ChatType.Debug">
4742 <summary>Send the message to the debug channel</summary>
4743 </member>
4744 <member name="F:OpenMetaverse.ChatType.OwnerSay">
4745 <summary>Event message when an object uses llOwnerSay</summary>
4746 </member>
4747 <member name="F:OpenMetaverse.ChatType.RegionSay">
4748 <summary>Special value to support llRegionSay, never sent to the client</summary>
4749 </member>
4750 <member name="T:OpenMetaverse.ChatSourceType">
4751 <summary> 1374 <summary>
4752 Identifies the source of a chat message
4753 </summary> 1375 </summary>
4754 </member> 1376 </member>
4755 <member name="F:OpenMetaverse.ChatSourceType.System"> 1377 <member name="F:OpenMetaverse.AgentManager.ControlFlags.AGENT_CONTROL_AWAY">
4756 <summary>Chat from the grid or simulator</summary> 1378 <summary>Set when the avatar is idled or set to away. Note that the away animation is
4757 </member> 1379 activated separately from setting this flag</summary>
4758 <member name="F:OpenMetaverse.ChatSourceType.Agent">
4759 <summary>Chat from another avatar</summary>
4760 </member>
4761 <member name="F:OpenMetaverse.ChatSourceType.Object">
4762 <summary>Chat from an object</summary>
4763 </member> 1380 </member>
4764 <member name="T:OpenMetaverse.ChatAudibleLevel"> 1381 <member name="F:OpenMetaverse.AgentManager.ControlFlags.AGENT_CONTROL_LBUTTON_DOWN">
4765 <summary> 1382 <summary>
4766
4767 </summary> 1383 </summary>
4768 </member> 1384 </member>
4769 <member name="F:OpenMetaverse.ChatAudibleLevel.Not"> 1385 <member name="F:OpenMetaverse.AgentManager.ControlFlags.AGENT_CONTROL_LBUTTON_UP">
4770 <summary></summary>
4771 </member>
4772 <member name="F:OpenMetaverse.ChatAudibleLevel.Barely">
4773 <summary></summary>
4774 </member>
4775 <member name="F:OpenMetaverse.ChatAudibleLevel.Fully">
4776 <summary></summary>
4777 </member>
4778 <member name="T:OpenMetaverse.EffectType">
4779 <summary> 1386 <summary>
4780 Effect type used in ViewerEffect packets
4781 </summary> 1387 </summary>
4782 </member> 1388 </member>
4783 <member name="F:OpenMetaverse.EffectType.Text"> 1389 <member name="F:OpenMetaverse.AgentManager.ControlFlags.AGENT_CONTROL_ML_LBUTTON_DOWN">
4784 <summary></summary>
4785 </member>
4786 <member name="F:OpenMetaverse.EffectType.Icon">
4787 <summary></summary>
4788 </member>
4789 <member name="F:OpenMetaverse.EffectType.Connector">
4790 <summary></summary>
4791 </member>
4792 <member name="F:OpenMetaverse.EffectType.FlexibleObject">
4793 <summary></summary>
4794 </member>
4795 <member name="F:OpenMetaverse.EffectType.AnimalControls">
4796 <summary></summary>
4797 </member>
4798 <member name="F:OpenMetaverse.EffectType.AnimationObject">
4799 <summary></summary>
4800 </member>
4801 <member name="F:OpenMetaverse.EffectType.Cloth">
4802 <summary></summary>
4803 </member>
4804 <member name="F:OpenMetaverse.EffectType.Beam">
4805 <summary>Project a beam from a source to a destination, such as
4806 the one used when editing an object</summary>
4807 </member>
4808 <member name="F:OpenMetaverse.EffectType.Glow">
4809 <summary></summary>
4810 </member>
4811 <member name="F:OpenMetaverse.EffectType.Point">
4812 <summary></summary>
4813 </member>
4814 <member name="F:OpenMetaverse.EffectType.Trail">
4815 <summary></summary>
4816 </member>
4817 <member name="F:OpenMetaverse.EffectType.Sphere">
4818 <summary>Create a swirl of particles around an object</summary>
4819 </member>
4820 <member name="F:OpenMetaverse.EffectType.Spiral">
4821 <summary></summary>
4822 </member>
4823 <member name="F:OpenMetaverse.EffectType.Edit">
4824 <summary></summary>
4825 </member>
4826 <member name="F:OpenMetaverse.EffectType.LookAt">
4827 <summary>Cause an avatar to look at an object</summary>
4828 </member>
4829 <member name="F:OpenMetaverse.EffectType.PointAt">
4830 <summary>Cause an avatar to point at an object</summary>
4831 </member>
4832 <member name="T:OpenMetaverse.LookAtType">
4833 <summary> 1390 <summary>
4834 The action an avatar is doing when looking at something, used in
4835 ViewerEffect packets for the LookAt effect
4836 </summary> 1391 </summary>
4837 </member> 1392 </member>
4838 <member name="F:OpenMetaverse.LookAtType.None"> 1393 <member name="F:OpenMetaverse.AgentManager.ControlFlags.AGENT_CONTROL_ML_LBUTTON_UP">
4839 <summary></summary>
4840 </member>
4841 <member name="F:OpenMetaverse.LookAtType.Idle">
4842 <summary></summary>
4843 </member>
4844 <member name="F:OpenMetaverse.LookAtType.AutoListen">
4845 <summary></summary>
4846 </member>
4847 <member name="F:OpenMetaverse.LookAtType.FreeLook">
4848 <summary></summary>
4849 </member>
4850 <member name="F:OpenMetaverse.LookAtType.Respond">
4851 <summary></summary>
4852 </member>
4853 <member name="F:OpenMetaverse.LookAtType.Hover">
4854 <summary></summary>
4855 </member>
4856 <member name="F:OpenMetaverse.LookAtType.Conversation">
4857 <summary>Deprecated</summary>
4858 </member>
4859 <member name="F:OpenMetaverse.LookAtType.Select">
4860 <summary></summary>
4861 </member>
4862 <member name="F:OpenMetaverse.LookAtType.Focus">
4863 <summary></summary>
4864 </member>
4865 <member name="F:OpenMetaverse.LookAtType.Mouselook">
4866 <summary></summary>
4867 </member>
4868 <member name="F:OpenMetaverse.LookAtType.Clear">
4869 <summary></summary>
4870 </member>
4871 <member name="T:OpenMetaverse.PointAtType">
4872 <summary> 1394 <summary>
4873 The action an avatar is doing when pointing at something, used in
4874 ViewerEffect packets for the PointAt effect
4875 </summary> 1395 </summary>
4876 </member> 1396 </member>
4877 <member name="F:OpenMetaverse.PointAtType.None"> 1397 <member name="T:OpenMetaverse.AgentManager.AttachmentResourcesCallback">
4878 <summary></summary>
4879 </member>
4880 <member name="F:OpenMetaverse.PointAtType.Select">
4881 <summary></summary>
4882 </member>
4883 <member name="F:OpenMetaverse.PointAtType.Grab">
4884 <summary></summary>
4885 </member>
4886 <member name="F:OpenMetaverse.PointAtType.Clear">
4887 <summary></summary>
4888 </member>
4889 <member name="T:OpenMetaverse.MoneyTransactionType">
4890 <summary> 1398 <summary>
4891 Money transaction types 1399 Called once attachment resource usage information has been collected
4892 </summary> 1400 </summary>
1401 <param name="success">Indicates if operation was successfull</param>
1402 <param name="info">Attachment resource usage information</param>
4893 </member> 1403 </member>
4894 <member name="F:OpenMetaverse.MoneyTransactionType.None"> 1404 <member name="F:OpenMetaverse.AgentManager.m_Chat">
4895 <summary></summary> 1405 <summary>The event subscribers. null if no subcribers</summary>
4896 </member>
4897 <member name="F:OpenMetaverse.MoneyTransactionType.FailSimulatorTimeout">
4898 <summary></summary>
4899 </member>
4900 <member name="F:OpenMetaverse.MoneyTransactionType.FailDataserverTimeout">
4901 <summary></summary>
4902 </member>
4903 <member name="F:OpenMetaverse.MoneyTransactionType.ObjectClaim">
4904 <summary></summary>
4905 </member>
4906 <member name="F:OpenMetaverse.MoneyTransactionType.LandClaim">
4907 <summary></summary>
4908 </member>
4909 <member name="F:OpenMetaverse.MoneyTransactionType.GroupCreate">
4910 <summary></summary>
4911 </member>
4912 <member name="F:OpenMetaverse.MoneyTransactionType.ObjectPublicClaim">
4913 <summary></summary>
4914 </member>
4915 <member name="F:OpenMetaverse.MoneyTransactionType.GroupJoin">
4916 <summary></summary>
4917 </member>
4918 <member name="F:OpenMetaverse.MoneyTransactionType.TeleportCharge">
4919 <summary></summary>
4920 </member>
4921 <member name="F:OpenMetaverse.MoneyTransactionType.UploadCharge">
4922 <summary></summary>
4923 </member>
4924 <member name="F:OpenMetaverse.MoneyTransactionType.LandAuction">
4925 <summary></summary>
4926 </member>
4927 <member name="F:OpenMetaverse.MoneyTransactionType.ClassifiedCharge">
4928 <summary></summary>
4929 </member>
4930 <member name="F:OpenMetaverse.MoneyTransactionType.ObjectTax">
4931 <summary></summary>
4932 </member>
4933 <member name="F:OpenMetaverse.MoneyTransactionType.LandTax">
4934 <summary></summary>
4935 </member>
4936 <member name="F:OpenMetaverse.MoneyTransactionType.LightTax">
4937 <summary></summary>
4938 </member>
4939 <member name="F:OpenMetaverse.MoneyTransactionType.ParcelDirFee">
4940 <summary></summary>
4941 </member>
4942 <member name="F:OpenMetaverse.MoneyTransactionType.GroupTax">
4943 <summary></summary>
4944 </member>
4945 <member name="F:OpenMetaverse.MoneyTransactionType.ClassifiedRenew">
4946 <summary></summary>
4947 </member>
4948 <member name="F:OpenMetaverse.MoneyTransactionType.GiveInventory">
4949 <summary></summary>
4950 </member>
4951 <member name="F:OpenMetaverse.MoneyTransactionType.ObjectSale">
4952 <summary></summary>
4953 </member>
4954 <member name="F:OpenMetaverse.MoneyTransactionType.Gift">
4955 <summary></summary>
4956 </member>
4957 <member name="F:OpenMetaverse.MoneyTransactionType.LandSale">
4958 <summary></summary>
4959 </member>
4960 <member name="F:OpenMetaverse.MoneyTransactionType.ReferBonus">
4961 <summary></summary>
4962 </member>
4963 <member name="F:OpenMetaverse.MoneyTransactionType.InventorySale">
4964 <summary></summary>
4965 </member>
4966 <member name="F:OpenMetaverse.MoneyTransactionType.RefundPurchase">
4967 <summary></summary>
4968 </member>
4969 <member name="F:OpenMetaverse.MoneyTransactionType.LandPassSale">
4970 <summary></summary>
4971 </member>
4972 <member name="F:OpenMetaverse.MoneyTransactionType.DwellBonus">
4973 <summary></summary>
4974 </member>
4975 <member name="F:OpenMetaverse.MoneyTransactionType.PayObject">
4976 <summary></summary>
4977 </member>
4978 <member name="F:OpenMetaverse.MoneyTransactionType.ObjectPays">
4979 <summary></summary>
4980 </member>
4981 <member name="F:OpenMetaverse.MoneyTransactionType.GroupLandDeed">
4982 <summary></summary>
4983 </member>
4984 <member name="F:OpenMetaverse.MoneyTransactionType.GroupObjectDeed">
4985 <summary></summary>
4986 </member>
4987 <member name="F:OpenMetaverse.MoneyTransactionType.GroupLiability">
4988 <summary></summary>
4989 </member>
4990 <member name="F:OpenMetaverse.MoneyTransactionType.GroupDividend">
4991 <summary></summary>
4992 </member>
4993 <member name="F:OpenMetaverse.MoneyTransactionType.GroupMembershipDues">
4994 <summary></summary>
4995 </member>
4996 <member name="F:OpenMetaverse.MoneyTransactionType.ObjectRelease">
4997 <summary></summary>
4998 </member>
4999 <member name="F:OpenMetaverse.MoneyTransactionType.LandRelease">
5000 <summary></summary>
5001 </member>
5002 <member name="F:OpenMetaverse.MoneyTransactionType.ObjectDelete">
5003 <summary></summary>
5004 </member>
5005 <member name="F:OpenMetaverse.MoneyTransactionType.ObjectPublicDecay">
5006 <summary></summary>
5007 </member>
5008 <member name="F:OpenMetaverse.MoneyTransactionType.ObjectPublicDelete">
5009 <summary></summary>
5010 </member>
5011 <member name="F:OpenMetaverse.MoneyTransactionType.LindenAdjustment">
5012 <summary></summary>
5013 </member>
5014 <member name="F:OpenMetaverse.MoneyTransactionType.LindenGrant">
5015 <summary></summary>
5016 </member> 1406 </member>
5017 <member name="F:OpenMetaverse.MoneyTransactionType.LindenPenalty"> 1407 <member name="F:OpenMetaverse.AgentManager.m_ChatLock">
5018 <summary></summary> 1408 <summary>Thread sync lock object</summary>
5019 </member> 1409 </member>
5020 <member name="F:OpenMetaverse.MoneyTransactionType.EventFee"> 1410 <member name="F:OpenMetaverse.AgentManager.m_ScriptDialog">
5021 <summary></summary> 1411 <summary>The event subscribers. null if no subcribers</summary>
5022 </member> 1412 </member>
5023 <member name="F:OpenMetaverse.MoneyTransactionType.EventPrize"> 1413 <member name="F:OpenMetaverse.AgentManager.m_ScriptDialogLock">
5024 <summary></summary> 1414 <summary>Thread sync lock object</summary>
5025 </member> 1415 </member>
5026 <member name="F:OpenMetaverse.MoneyTransactionType.StipendBasic"> 1416 <member name="F:OpenMetaverse.AgentManager.m_ScriptQuestion">
5027 <summary></summary> 1417 <summary>The event subscribers. null if no subcribers</summary>
5028 </member> 1418 </member>
5029 <member name="F:OpenMetaverse.MoneyTransactionType.StipendDeveloper"> 1419 <member name="F:OpenMetaverse.AgentManager.m_ScriptQuestionLock">
5030 <summary></summary> 1420 <summary>Thread sync lock object</summary>
5031 </member> 1421 </member>
5032 <member name="F:OpenMetaverse.MoneyTransactionType.StipendAlways"> 1422 <member name="F:OpenMetaverse.AgentManager.m_LoadURL">
5033 <summary></summary> 1423 <summary>The event subscribers. null if no subcribers</summary>
5034 </member> 1424 </member>
5035 <member name="F:OpenMetaverse.MoneyTransactionType.StipendDaily"> 1425 <member name="F:OpenMetaverse.AgentManager.m_LoadUrlLock">
5036 <summary></summary> 1426 <summary>Thread sync lock object</summary>
5037 </member> 1427 </member>
5038 <member name="F:OpenMetaverse.MoneyTransactionType.StipendRating"> 1428 <member name="F:OpenMetaverse.AgentManager.m_Balance">
5039 <summary></summary> 1429 <summary>The event subscribers. null if no subcribers</summary>
5040 </member> 1430 </member>
5041 <member name="F:OpenMetaverse.MoneyTransactionType.StipendDelta"> 1431 <member name="F:OpenMetaverse.AgentManager.m_BalanceLock">
5042 <summary></summary> 1432 <summary>Thread sync lock object</summary>
5043 </member> 1433 </member>
5044 <member name="T:OpenMetaverse.TransactionFlags"> 1434 <member name="F:OpenMetaverse.AgentManager.m_MoneyBalance">
5045 <summary> 1435 <summary>The event subscribers. null if no subcribers</summary>
5046
5047 </summary>
5048 </member> 1436 </member>
5049 <member name="F:OpenMetaverse.TransactionFlags.None"> 1437 <member name="F:OpenMetaverse.AgentManager.m_MoneyBalanceReplyLock">
5050 <summary></summary> 1438 <summary>Thread sync lock object</summary>
5051 </member> 1439 </member>
5052 <member name="F:OpenMetaverse.TransactionFlags.SourceGroup"> 1440 <member name="F:OpenMetaverse.AgentManager.m_InstantMessage">
5053 <summary></summary> 1441 <summary>The event subscribers. null if no subcribers</summary>
5054 </member> 1442 </member>
5055 <member name="F:OpenMetaverse.TransactionFlags.DestGroup"> 1443 <member name="F:OpenMetaverse.AgentManager.m_InstantMessageLock">
5056 <summary></summary> 1444 <summary>Thread sync lock object</summary>
5057 </member> 1445 </member>
5058 <member name="F:OpenMetaverse.TransactionFlags.OwnerGroup"> 1446 <member name="F:OpenMetaverse.AgentManager.m_Teleport">
5059 <summary></summary> 1447 <summary>The event subscribers. null if no subcribers</summary>
5060 </member> 1448 </member>
5061 <member name="F:OpenMetaverse.TransactionFlags.SimultaneousContribution"> 1449 <member name="F:OpenMetaverse.AgentManager.m_TeleportLock">
5062 <summary></summary> 1450 <summary>Thread sync lock object</summary>
5063 </member> 1451 </member>
5064 <member name="F:OpenMetaverse.TransactionFlags.ContributionRemoval"> 1452 <member name="F:OpenMetaverse.AgentManager.m_AgentData">
5065 <summary></summary> 1453 <summary>The event subscribers. null if no subcribers</summary>
5066 </member> 1454 </member>
5067 <member name="T:OpenMetaverse.MeanCollisionType"> 1455 <member name="F:OpenMetaverse.AgentManager.m_AgentDataLock">
5068 <summary> 1456 <summary>Thread sync lock object</summary>
5069
5070 </summary>
5071 </member> 1457 </member>
5072 <member name="F:OpenMetaverse.MeanCollisionType.None"> 1458 <member name="F:OpenMetaverse.AgentManager.m_AnimationsChanged">
5073 <summary></summary> 1459 <summary>The event subscribers. null if no subcribers</summary>
5074 </member> 1460 </member>
5075 <member name="F:OpenMetaverse.MeanCollisionType.Bump"> 1461 <member name="F:OpenMetaverse.AgentManager.m_AnimationsChangedLock">
5076 <summary></summary> 1462 <summary>Thread sync lock object</summary>
5077 </member> 1463 </member>
5078 <member name="F:OpenMetaverse.MeanCollisionType.LLPushObject"> 1464 <member name="F:OpenMetaverse.AgentManager.m_MeanCollision">
5079 <summary></summary> 1465 <summary>The event subscribers. null if no subcribers</summary>
5080 </member> 1466 </member>
5081 <member name="F:OpenMetaverse.MeanCollisionType.SelectedObjectCollide"> 1467 <member name="F:OpenMetaverse.AgentManager.m_MeanCollisionLock">
5082 <summary></summary> 1468 <summary>Thread sync lock object</summary>
5083 </member> 1469 </member>
5084 <member name="F:OpenMetaverse.MeanCollisionType.ScriptedObjectCollide"> 1470 <member name="F:OpenMetaverse.AgentManager.m_RegionCrossed">
5085 <summary></summary> 1471 <summary>The event subscribers. null if no subcribers</summary>
5086 </member> 1472 </member>
5087 <member name="F:OpenMetaverse.MeanCollisionType.PhysicalObjectCollide"> 1473 <member name="F:OpenMetaverse.AgentManager.m_RegionCrossedLock">
5088 <summary></summary> 1474 <summary>Thread sync lock object</summary>
5089 </member> 1475 </member>
5090 <member name="T:OpenMetaverse.ScriptControlChange"> 1476 <member name="F:OpenMetaverse.AgentManager.m_GroupChatJoined">
5091 <summary> 1477 <summary>The event subscribers. null if no subcribers</summary>
5092 Flags sent when a script takes or releases a control
5093 </summary>
5094 <remarks>NOTE: (need to verify) These might be a subset of the ControlFlags enum in Movement,</remarks>
5095 </member> 1478 </member>
5096 <member name="F:OpenMetaverse.ScriptControlChange.None"> 1479 <member name="F:OpenMetaverse.AgentManager.m_GroupChatJoinedLock">
5097 <summary>No Flags set</summary> 1480 <summary>Thread sync lock object</summary>
5098 </member> 1481 </member>
5099 <member name="F:OpenMetaverse.ScriptControlChange.Forward"> 1482 <member name="F:OpenMetaverse.AgentManager.m_AlertMessage">
5100 <summary>Forward (W or up Arrow)</summary> 1483 <summary>The event subscribers. null if no subcribers</summary>
5101 </member> 1484 </member>
5102 <member name="F:OpenMetaverse.ScriptControlChange.Back"> 1485 <member name="F:OpenMetaverse.AgentManager.m_AlertMessageLock">
5103 <summary>Back (S or down arrow)</summary> 1486 <summary>Thread sync lock object</summary>
5104 </member> 1487 </member>
5105 <member name="F:OpenMetaverse.ScriptControlChange.Left"> 1488 <member name="F:OpenMetaverse.AgentManager.m_ScriptControl">
5106 <summary>Move left (shift+A or left arrow)</summary> 1489 <summary>The event subscribers. null if no subcribers</summary>
5107 </member> 1490 </member>
5108 <member name="F:OpenMetaverse.ScriptControlChange.Right"> 1491 <member name="F:OpenMetaverse.AgentManager.m_ScriptControlLock">
5109 <summary>Move right (shift+D or right arrow)</summary> 1492 <summary>Thread sync lock object</summary>
5110 </member> 1493 </member>
5111 <member name="F:OpenMetaverse.ScriptControlChange.Up"> 1494 <member name="F:OpenMetaverse.AgentManager.m_CameraConstraint">
5112 <summary>Up (E or PgUp)</summary> 1495 <summary>The event subscribers. null if no subcribers</summary>
5113 </member> 1496 </member>
5114 <member name="F:OpenMetaverse.ScriptControlChange.Down"> 1497 <member name="F:OpenMetaverse.AgentManager.m_CameraConstraintLock">
5115 <summary>Down (C or PgDown)</summary> 1498 <summary>Thread sync lock object</summary>
5116 </member> 1499 </member>
5117 <member name="F:OpenMetaverse.ScriptControlChange.RotateLeft"> 1500 <member name="F:OpenMetaverse.AgentManager.m_ScriptSensorReply">
5118 <summary>Rotate left (A or left arrow)</summary> 1501 <summary>The event subscribers. null if no subcribers</summary>
5119 </member> 1502 </member>
5120 <member name="F:OpenMetaverse.ScriptControlChange.RotateRight"> 1503 <member name="F:OpenMetaverse.AgentManager.m_ScriptSensorReplyLock">
5121 <summary>Rotate right (D or right arrow)</summary> 1504 <summary>Thread sync lock object</summary>
5122 </member> 1505 </member>
5123 <member name="F:OpenMetaverse.ScriptControlChange.LeftButton"> 1506 <member name="F:OpenMetaverse.AgentManager.m_AvatarSitResponse">
5124 <summary>Left Mouse Button</summary> 1507 <summary>The event subscribers. null if no subcribers</summary>
5125 </member> 1508 </member>
5126 <member name="F:OpenMetaverse.ScriptControlChange.MouseLookLeftButton"> 1509 <member name="F:OpenMetaverse.AgentManager.m_AvatarSitResponseLock">
5127 <summary>Left Mouse button in MouseLook</summary> 1510 <summary>Thread sync lock object</summary>
5128 </member> 1511 </member>
5129 <member name="T:OpenMetaverse.AgentFlags"> 1512 <member name="F:OpenMetaverse.AgentManager.m_ChatSessionMemberAdded">
5130 <summary> 1513 <summary>The event subscribers. null if no subcribers</summary>
5131 Currently only used to hide your group title
5132 </summary>
5133 </member> 1514 </member>
5134 <member name="F:OpenMetaverse.AgentFlags.None"> 1515 <member name="F:OpenMetaverse.AgentManager.m_ChatSessionMemberAddedLock">
5135 <summary>No flags set</summary> 1516 <summary>Thread sync lock object</summary>
5136 </member> 1517 </member>
5137 <member name="F:OpenMetaverse.AgentFlags.HideTitle"> 1518 <member name="F:OpenMetaverse.AgentManager.m_ChatSessionMemberLeft">
5138 <summary>Hide your group title</summary> 1519 <summary>The event subscribers. null if no subcribers</summary>
5139 </member> 1520 </member>
5140 <member name="T:OpenMetaverse.AgentState"> 1521 <member name="F:OpenMetaverse.AgentManager.m_ChatSessionMemberLeftLock">
5141 <summary> 1522 <summary>Thread sync lock object</summary>
5142 Action state of the avatar, which can currently be typing and
5143 editing
5144 </summary>
5145 </member> 1523 </member>
5146 <member name="F:OpenMetaverse.AgentState.None"> 1524 <member name="F:OpenMetaverse.AgentManager.m_SetDisplayNameReply">
5147 <summary></summary> 1525 <summary>The event subscribers, null of no subscribers</summary>
5148 </member> 1526 </member>
5149 <member name="F:OpenMetaverse.AgentState.Typing"> 1527 <member name="F:OpenMetaverse.AgentManager.m_SetDisplayNameReplyLock">
5150 <summary></summary> 1528 <summary>Thread sync lock object</summary>
5151 </member> 1529 </member>
5152 <member name="F:OpenMetaverse.AgentState.Editing"> 1530 <member name="F:OpenMetaverse.AgentManager.m_MuteListUpdated">
5153 <summary></summary> 1531 <summary>The event subscribers. null if no subcribers</summary>
5154 </member> 1532 </member>
5155 <member name="T:OpenMetaverse.TeleportStatus"> 1533 <member name="F:OpenMetaverse.AgentManager.m_MuteListUpdatedLock">
5156 <summary> 1534 <summary>Thread sync lock object</summary>
5157 Current teleport status
5158 </summary>
5159 </member> 1535 </member>
5160 <member name="F:OpenMetaverse.TeleportStatus.None"> 1536 <member name="F:OpenMetaverse.AgentManager.Client">
5161 <summary>Unknown status</summary> 1537 <summary>Reference to the GridClient instance</summary>
5162 </member> 1538 </member>
5163 <member name="F:OpenMetaverse.TeleportStatus.Start"> 1539 <member name="F:OpenMetaverse.AgentManager.Movement">
5164 <summary>Teleport initialized</summary> 1540 <summary>Used for movement and camera tracking</summary>
5165 </member> 1541 </member>
5166 <member name="F:OpenMetaverse.TeleportStatus.Progress"> 1542 <member name="F:OpenMetaverse.AgentManager.SignaledAnimations">
5167 <summary>Teleport in progress</summary> 1543 <summary>Currently playing animations for the agent. Can be used to
1544 check the current movement status such as walking, hovering, aiming,
1545 etc. by checking against system animations found in the Animations class</summary>
5168 </member> 1546 </member>
5169 <member name="F:OpenMetaverse.TeleportStatus.Failed"> 1547 <member name="F:OpenMetaverse.AgentManager.GroupChatSessions">
5170 <summary>Teleport failed</summary> 1548 <summary>Dictionary containing current Group Chat sessions and members</summary>
5171 </member> 1549 </member>
5172 <member name="F:OpenMetaverse.TeleportStatus.Finished"> 1550 <member name="F:OpenMetaverse.AgentManager.MuteList">
5173 <summary>Teleport completed</summary> 1551 <summary>Dictionary containing mute list keyead on mute name and key</summary>
5174 </member> 1552 </member>
5175 <member name="F:OpenMetaverse.TeleportStatus.Cancelled"> 1553 <member name="E:OpenMetaverse.AgentManager.ChatFromSimulator">
5176 <summary>Teleport cancelled</summary> 1554 <summary>Raised when a scripted object or agent within range sends a public message</summary>
5177 </member> 1555 </member>
5178 <member name="T:OpenMetaverse.TeleportFlags"> 1556 <member name="E:OpenMetaverse.AgentManager.ScriptDialog">
5179 <summary> 1557 <summary>Raised when a scripted object sends a dialog box containing possible
5180 1558 options an agent can respond to</summary>
5181 </summary>
5182 </member> 1559 </member>
5183 <member name="F:OpenMetaverse.TeleportFlags.Default"> 1560 <member name="E:OpenMetaverse.AgentManager.ScriptQuestion">
5184 <summary>No flags set, or teleport failed</summary> 1561 <summary>Raised when an object requests a change in the permissions an agent has permitted</summary>
5185 </member> 1562 </member>
5186 <member name="F:OpenMetaverse.TeleportFlags.SetHomeToTarget"> 1563 <member name="E:OpenMetaverse.AgentManager.LoadURL">
5187 <summary>Set when newbie leaves help island for first time</summary> 1564 <summary>Raised when a script requests an agent open the specified URL</summary>
5188 </member> 1565 </member>
5189 <member name="F:OpenMetaverse.TeleportFlags.SetLastToTarget"> 1566 <member name="E:OpenMetaverse.AgentManager.MoneyBalance">
5190 <summary></summary> 1567 <summary>Raised when an agents currency balance is updated</summary>
5191 </member> 1568 </member>
5192 <member name="F:OpenMetaverse.TeleportFlags.ViaLure"> 1569 <member name="E:OpenMetaverse.AgentManager.MoneyBalanceReply">
5193 <summary>Via Lure</summary> 1570 <summary>Raised when a transaction occurs involving currency such as a land purchase</summary>
5194 </member> 1571 </member>
5195 <member name="F:OpenMetaverse.TeleportFlags.ViaLandmark"> 1572 <member name="E:OpenMetaverse.AgentManager.IM">
5196 <summary>Via Landmark</summary> 1573 <summary>Raised when an ImprovedInstantMessage packet is recieved from the simulator, this is used for everything from
1574 private messaging to friendship offers. The Dialog field defines what type of message has arrived</summary>
5197 </member> 1575 </member>
5198 <member name="F:OpenMetaverse.TeleportFlags.ViaLocation"> 1576 <member name="E:OpenMetaverse.AgentManager.TeleportProgress">
5199 <summary>Via Location</summary> 1577 <summary>Raised when an agent has requested a teleport to another location, or when responding to a lure. Raised multiple times
1578 for each teleport indicating the progress of the request</summary>
5200 </member> 1579 </member>
5201 <member name="F:OpenMetaverse.TeleportFlags.ViaHome"> 1580 <member name="E:OpenMetaverse.AgentManager.AgentDataReply">
5202 <summary>Via Home</summary> 1581 <summary>Raised when a simulator sends agent specific information for our avatar.</summary>
5203 </member> 1582 </member>
5204 <member name="F:OpenMetaverse.TeleportFlags.ViaTelehub"> 1583 <member name="E:OpenMetaverse.AgentManager.AnimationsChanged">
5205 <summary>Via Telehub</summary> 1584 <summary>Raised when our agents animation playlist changes</summary>
5206 </member> 1585 </member>
5207 <member name="F:OpenMetaverse.TeleportFlags.ViaLogin"> 1586 <member name="E:OpenMetaverse.AgentManager.MeanCollision">
5208 <summary>Via Login</summary> 1587 <summary>Raised when an object or avatar forcefully collides with our agent</summary>
5209 </member> 1588 </member>
5210 <member name="F:OpenMetaverse.TeleportFlags.ViaGodlikeLure"> 1589 <member name="E:OpenMetaverse.AgentManager.RegionCrossed">
5211 <summary>Linden Summoned</summary> 1590 <summary>Raised when our agent crosses a region border into another region</summary>
5212 </member> 1591 </member>
5213 <member name="F:OpenMetaverse.TeleportFlags.Godlike"> 1592 <member name="E:OpenMetaverse.AgentManager.GroupChatJoined">
5214 <summary>Linden Forced me</summary> 1593 <summary>Raised when our agent succeeds or fails to join a group chat session</summary>
5215 </member> 1594 </member>
5216 <member name="F:OpenMetaverse.TeleportFlags.NineOneOne"> 1595 <member name="E:OpenMetaverse.AgentManager.AlertMessage">
5217 <summary></summary> 1596 <summary>Raised when a simulator sends an urgent message usually indication the recent failure of
1597 another action we have attempted to take such as an attempt to enter a parcel where we are denied access</summary>
5218 </member> 1598 </member>
5219 <member name="F:OpenMetaverse.TeleportFlags.DisableCancel"> 1599 <member name="E:OpenMetaverse.AgentManager.ScriptControlChange">
5220 <summary>Agent Teleported Home via Script</summary> 1600 <summary>Raised when a script attempts to take or release specified controls for our agent</summary>
5221 </member> 1601 </member>
5222 <member name="F:OpenMetaverse.TeleportFlags.ViaRegionID"> 1602 <member name="E:OpenMetaverse.AgentManager.CameraConstraint">
5223 <summary></summary> 1603 <summary>Raised when the simulator detects our agent is trying to view something
1604 beyond its limits</summary>
5224 </member> 1605 </member>
5225 <member name="F:OpenMetaverse.TeleportFlags.IsFlying"> 1606 <member name="E:OpenMetaverse.AgentManager.ScriptSensorReply">
5226 <summary></summary> 1607 <summary>Raised when a script sensor reply is received from a simulator</summary>
5227 </member> 1608 </member>
5228 <member name="F:OpenMetaverse.TeleportFlags.ResetHome"> 1609 <member name="E:OpenMetaverse.AgentManager.AvatarSitResponse">
5229 <summary></summary> 1610 <summary>Raised in response to a <see cref="M:OpenMetaverse.AgentManager.RequestSit(OpenMetaverse.UUID,OpenMetaverse.Vector3)" /> request</summary>
5230 </member> 1611 </member>
5231 <member name="F:OpenMetaverse.TeleportFlags.ForceRedirect"> 1612 <member name="E:OpenMetaverse.AgentManager.ChatSessionMemberAdded">
5232 <summary>forced to new location for example when avatar is banned or ejected</summary> 1613 <summary>Raised when an avatar enters a group chat session we are participating in</summary>
5233 </member> 1614 </member>
5234 <member name="F:OpenMetaverse.TeleportFlags.FinishedViaLure"> 1615 <member name="E:OpenMetaverse.AgentManager.ChatSessionMemberLeft">
5235 <summary>Teleport Finished via a Lure</summary> 1616 <summary>Raised when an agent exits a group chat session we are participating in</summary>
5236 </member> 1617 </member>
5237 <member name="F:OpenMetaverse.TeleportFlags.FinishedViaNewSim"> 1618 <member name="E:OpenMetaverse.AgentManager.SetDisplayNameReply">
5238 <summary>Finished, Sim Changed</summary> 1619 <summary>Raised when the simulator sends us data containing
1620 the details of display name change</summary>
5239 </member> 1621 </member>
5240 <member name="F:OpenMetaverse.TeleportFlags.FinishedViaSameSim"> 1622 <member name="E:OpenMetaverse.AgentManager.MuteListUpdated">
5241 <summary>Finished, Same Sim</summary> 1623 <summary>Raised when a scripted object or agent within range sends a public message</summary>
5242 </member> 1624 </member>
5243 <member name="T:OpenMetaverse.TeleportLureFlags"> 1625 <member name="P:OpenMetaverse.AgentManager.AgentID">
5244 <summary> 1626 <summary>Your (client) avatars <see cref="T:OpenMetaverse.UUID" /></summary>
5245 1627 <remarks>"client", "agent", and "avatar" all represent the same thing</remarks>
5246 </summary>
5247 </member> 1628 </member>
5248 <member name="F:OpenMetaverse.TeleportLureFlags.NormalLure"> 1629 <member name="P:OpenMetaverse.AgentManager.SessionID">
5249 <summary></summary> 1630 <summary>Temporary <seealso cref="T:OpenMetaverse.UUID" /> assigned to this session, used for
1631 verifying our identity in packets</summary>
5250 </member> 1632 </member>
5251 <member name="F:OpenMetaverse.TeleportLureFlags.GodlikeLure"> 1633 <member name="P:OpenMetaverse.AgentManager.SecureSessionID">
5252 <summary></summary> 1634 <summary>Shared secret <seealso cref="T:OpenMetaverse.UUID" /> that is never sent over the wire</summary>
5253 </member> 1635 </member>
5254 <member name="F:OpenMetaverse.TeleportLureFlags.GodlikePursuit"> 1636 <member name="P:OpenMetaverse.AgentManager.LocalID">
5255 <summary></summary> 1637 <summary>Your (client) avatar ID, local to the current region/sim</summary>
5256 </member> 1638 </member>
5257 <member name="T:OpenMetaverse.ScriptSensorTypeFlags"> 1639 <member name="P:OpenMetaverse.AgentManager.StartLocation">
5258 <summary> 1640 <summary>Where the avatar started at login. Can be "last", "home"
5259 1641 or a login <seealso cref="T:OpenMetaverse.URI" /></summary>
5260 </summary>
5261 </member> 1642 </member>
5262 <member name="F:OpenMetaverse.ScriptSensorTypeFlags.Agent"> 1643 <member name="P:OpenMetaverse.AgentManager.AgentAccess">
5263 <summary></summary> 1644 <summary>The access level of this agent, usually M or PG</summary>
5264 </member> 1645 </member>
5265 <member name="F:OpenMetaverse.ScriptSensorTypeFlags.Active"> 1646 <member name="P:OpenMetaverse.AgentManager.CollisionPlane">
5266 <summary></summary> 1647 <summary>The CollisionPlane of Agent</summary>
5267 </member> 1648 </member>
5268 <member name="F:OpenMetaverse.ScriptSensorTypeFlags.Passive"> 1649 <member name="P:OpenMetaverse.AgentManager.Velocity">
5269 <summary></summary> 1650 <summary>An <seealso cref="T:OpenMetaverse.Vector3" /> representing the velocity of our agent</summary>
5270 </member> 1651 </member>
5271 <member name="F:OpenMetaverse.ScriptSensorTypeFlags.Scripted"> 1652 <member name="P:OpenMetaverse.AgentManager.Acceleration">
5272 <summary></summary> 1653 <summary>An <seealso cref="T:OpenMetaverse.Vector3" /> representing the acceleration of our agent</summary>
5273 </member> 1654 </member>
5274 <member name="T:OpenMetaverse.InstantMessage"> 1655 <member name="P:OpenMetaverse.AgentManager.AngularVelocity">
5275 <summary> 1656 <summary>A <seealso cref="T:OpenMetaverse.Vector3" /> which specifies the angular speed, and axis about which an Avatar is rotating.</summary>
5276 Instant Message
5277 </summary>
5278 </member> 1657 </member>
5279 <member name="F:OpenMetaverse.InstantMessage.FromAgentID"> 1658 <member name="P:OpenMetaverse.AgentManager.HomePosition">
5280 <summary>Key of sender</summary> 1659 <summary>Position avatar client will goto when login to 'home' or during
1660 teleport request to 'home' region.</summary>
5281 </member> 1661 </member>
5282 <member name="F:OpenMetaverse.InstantMessage.FromAgentName"> 1662 <member name="P:OpenMetaverse.AgentManager.HomeLookAt">
5283 <summary>Name of sender</summary> 1663 <summary>LookAt point saved/restored with HomePosition</summary>
5284 </member> 1664 </member>
5285 <member name="F:OpenMetaverse.InstantMessage.ToAgentID"> 1665 <member name="P:OpenMetaverse.AgentManager.FirstName">
5286 <summary>Key of destination avatar</summary> 1666 <summary>Avatar First Name (i.e. Philip)</summary>
5287 </member> 1667 </member>
5288 <member name="F:OpenMetaverse.InstantMessage.ParentEstateID"> 1668 <member name="P:OpenMetaverse.AgentManager.LastName">
5289 <summary>ID of originating estate</summary> 1669 <summary>Avatar Last Name (i.e. Linden)</summary>
5290 </member> 1670 </member>
5291 <member name="F:OpenMetaverse.InstantMessage.RegionID"> 1671 <member name="P:OpenMetaverse.AgentManager.Name">
5292 <summary>Key of originating region</summary> 1672 <summary>Avatar Full Name (i.e. Philip Linden)</summary>
5293 </member> 1673 </member>
5294 <member name="F:OpenMetaverse.InstantMessage.Position"> 1674 <member name="P:OpenMetaverse.AgentManager.Health">
5295 <summary>Coordinates in originating region</summary> 1675 <summary>Gets the health of the agent</summary>
5296 </member> 1676 </member>
5297 <member name="F:OpenMetaverse.InstantMessage.Dialog"> 1677 <member name="P:OpenMetaverse.AgentManager.Balance">
5298 <summary>Instant message type</summary> 1678 <summary>Gets the current balance of the agent</summary>
5299 </member> 1679 </member>
5300 <member name="F:OpenMetaverse.InstantMessage.GroupIM"> 1680 <member name="P:OpenMetaverse.AgentManager.SittingOn">
5301 <summary>Group IM session toggle</summary> 1681 <summary>Gets the local ID of the prim the agent is sitting on,
1682 zero if the avatar is not currently sitting</summary>
5302 </member> 1683 </member>
5303 <member name="F:OpenMetaverse.InstantMessage.IMSessionID"> 1684 <member name="P:OpenMetaverse.AgentManager.ActiveGroup">
5304 <summary>Key of IM session, for Group Messages, the groups UUID</summary> 1685 <summary>Gets the <seealso cref="T:OpenMetaverse.UUID" /> of the agents active group.</summary>
5305 </member> 1686 </member>
5306 <member name="F:OpenMetaverse.InstantMessage.Timestamp"> 1687 <member name="P:OpenMetaverse.AgentManager.ActiveGroupPowers">
5307 <summary>Timestamp of the instant message</summary> 1688 <summary>Gets the Agents powers in the currently active group</summary>
5308 </member> 1689 </member>
5309 <member name="F:OpenMetaverse.InstantMessage.Message"> 1690 <member name="P:OpenMetaverse.AgentManager.TeleportMessage">
5310 <summary>Instant message text</summary> 1691 <summary>Current status message for teleporting</summary>
5311 </member> 1692 </member>
5312 <member name="F:OpenMetaverse.InstantMessage.Offline"> 1693 <member name="P:OpenMetaverse.AgentManager.RelativePosition">
5313 <summary>Whether this message is held for offline avatars</summary> 1694 <summary>Current position of the agent as a relative offset from
1695 the simulator, or the parent object if we are sitting on something</summary>
5314 </member> 1696 </member>
5315 <member name="F:OpenMetaverse.InstantMessage.BinaryBucket"> 1697 <member name="P:OpenMetaverse.AgentManager.RelativeRotation">
5316 <summary>Context specific packed data</summary> 1698 <summary>Current rotation of the agent as a relative rotation from
1699 the simulator, or the parent object if we are sitting on something</summary>
5317 </member> 1700 </member>
5318 <member name="M:OpenMetaverse.InstantMessage.ToString"> 1701 <member name="P:OpenMetaverse.AgentManager.SimPosition">
5319 <summary>Print the struct data as a string</summary> 1702 <summary>Current position of the agent in the simulator</summary>
5320 <returns>A string containing the field name, and field value</returns>
5321 </member> 1703 </member>
5322 <member name="T:OpenMetaverse.AgentManager"> 1704 <member name="P:OpenMetaverse.AgentManager.SimRotation">
5323 <summary> 1705 <summary>
5324 Manager class for our own avatar 1706 A <seealso cref="T:OpenMetaverse.Quaternion" /> representing the agents current rotation
5325 </summary> 1707 </summary>
5326 </member> 1708 </member>
5327 <member name="F:OpenMetaverse.AgentManager.m_Chat"> 1709 <member name="P:OpenMetaverse.AgentManager.GlobalPosition">
5328 <summary>The event subscribers. null if no subcribers</summary> 1710 <summary>Returns the global grid position of the avatar</summary>
5329 </member> 1711 </member>
5330 <member name="M:OpenMetaverse.AgentManager.OnChat(OpenMetaverse.ChatEventArgs)"> 1712 <member name="M:OpenMetaverse.AgentManager.OnChat(OpenMetaverse.ChatEventArgs)">
5331 <summary>Raises the ChatFromSimulator event</summary> 1713 <summary>Raises the ChatFromSimulator event</summary>
5332 <param name="e">A ChatEventArgs object containing the 1714 <param name="e">A ChatEventArgs object containing the
5333 data returned from the data server</param> 1715 data returned from the data server</param>
5334 </member> 1716 </member>
5335 <member name="F:OpenMetaverse.AgentManager.m_ChatLock">
5336 <summary>Thread sync lock object</summary>
5337 </member>
5338 <member name="F:OpenMetaverse.AgentManager.m_ScriptDialog">
5339 <summary>The event subscribers. null if no subcribers</summary>
5340 </member>
5341 <member name="M:OpenMetaverse.AgentManager.OnScriptDialog(OpenMetaverse.ScriptDialogEventArgs)"> 1717 <member name="M:OpenMetaverse.AgentManager.OnScriptDialog(OpenMetaverse.ScriptDialogEventArgs)">
5342 <summary>Raises the ScriptDialog event</summary> 1718 <summary>Raises the ScriptDialog event</summary>
5343 <param name="e">A SctriptDialogEventArgs object containing the 1719 <param name="e">A SctriptDialogEventArgs object containing the
5344 data returned from the data server</param> 1720 data returned from the data server</param>
5345 </member> 1721 </member>
5346 <member name="F:OpenMetaverse.AgentManager.m_ScriptDialogLock">
5347 <summary>Thread sync lock object</summary>
5348 </member>
5349 <member name="F:OpenMetaverse.AgentManager.m_ScriptQuestion">
5350 <summary>The event subscribers. null if no subcribers</summary>
5351 </member>
5352 <member name="M:OpenMetaverse.AgentManager.OnScriptQuestion(OpenMetaverse.ScriptQuestionEventArgs)"> 1722 <member name="M:OpenMetaverse.AgentManager.OnScriptQuestion(OpenMetaverse.ScriptQuestionEventArgs)">
5353 <summary>Raises the ScriptQuestion event</summary> 1723 <summary>Raises the ScriptQuestion event</summary>
5354 <param name="e">A ScriptQuestionEventArgs object containing the 1724 <param name="e">A ScriptQuestionEventArgs object containing the
5355 data returned from the data server</param> 1725 data returned from the data server</param>
5356 </member> 1726 </member>
5357 <member name="F:OpenMetaverse.AgentManager.m_ScriptQuestionLock">
5358 <summary>Thread sync lock object</summary>
5359 </member>
5360 <member name="F:OpenMetaverse.AgentManager.m_LoadURL">
5361 <summary>The event subscribers. null if no subcribers</summary>
5362 </member>
5363 <member name="M:OpenMetaverse.AgentManager.OnLoadURL(OpenMetaverse.LoadUrlEventArgs)"> 1727 <member name="M:OpenMetaverse.AgentManager.OnLoadURL(OpenMetaverse.LoadUrlEventArgs)">
5364 <summary>Raises the LoadURL event</summary> 1728 <summary>Raises the LoadURL event</summary>
5365 <param name="e">A LoadUrlEventArgs object containing the 1729 <param name="e">A LoadUrlEventArgs object containing the
5366 data returned from the data server</param> 1730 data returned from the data server</param>
5367 </member> 1731 </member>
5368 <member name="F:OpenMetaverse.AgentManager.m_LoadUrlLock">
5369 <summary>Thread sync lock object</summary>
5370 </member>
5371 <member name="F:OpenMetaverse.AgentManager.m_Balance">
5372 <summary>The event subscribers. null if no subcribers</summary>
5373 </member>
5374 <member name="M:OpenMetaverse.AgentManager.OnBalance(OpenMetaverse.BalanceEventArgs)"> 1732 <member name="M:OpenMetaverse.AgentManager.OnBalance(OpenMetaverse.BalanceEventArgs)">
5375 <summary>Raises the MoneyBalance event</summary> 1733 <summary>Raises the MoneyBalance event</summary>
5376 <param name="e">A BalanceEventArgs object containing the 1734 <param name="e">A BalanceEventArgs object containing the
5377 data returned from the data server</param> 1735 data returned from the data server</param>
5378 </member> 1736 </member>
5379 <member name="F:OpenMetaverse.AgentManager.m_BalanceLock">
5380 <summary>Thread sync lock object</summary>
5381 </member>
5382 <member name="F:OpenMetaverse.AgentManager.m_MoneyBalance">
5383 <summary>The event subscribers. null if no subcribers</summary>
5384 </member>
5385 <member name="M:OpenMetaverse.AgentManager.OnMoneyBalanceReply(OpenMetaverse.MoneyBalanceReplyEventArgs)"> 1737 <member name="M:OpenMetaverse.AgentManager.OnMoneyBalanceReply(OpenMetaverse.MoneyBalanceReplyEventArgs)">
5386 <summary>Raises the MoneyBalanceReply event</summary> 1738 <summary>Raises the MoneyBalanceReply event</summary>
5387 <param name="e">A MoneyBalanceReplyEventArgs object containing the 1739 <param name="e">A MoneyBalanceReplyEventArgs object containing the
5388 data returned from the data server</param> 1740 data returned from the data server</param>
5389 </member> 1741 </member>
5390 <member name="F:OpenMetaverse.AgentManager.m_MoneyBalanceReplyLock">
5391 <summary>Thread sync lock object</summary>
5392 </member>
5393 <member name="F:OpenMetaverse.AgentManager.m_InstantMessage">
5394 <summary>The event subscribers. null if no subcribers</summary>
5395 </member>
5396 <member name="M:OpenMetaverse.AgentManager.OnInstantMessage(OpenMetaverse.InstantMessageEventArgs)"> 1742 <member name="M:OpenMetaverse.AgentManager.OnInstantMessage(OpenMetaverse.InstantMessageEventArgs)">
5397 <summary>Raises the IM event</summary> 1743 <summary>Raises the IM event</summary>
5398 <param name="e">A InstantMessageEventArgs object containing the 1744 <param name="e">A InstantMessageEventArgs object containing the
5399 data returned from the data server</param> 1745 data returned from the data server</param>
5400 </member> 1746 </member>
5401 <member name="F:OpenMetaverse.AgentManager.m_InstantMessageLock">
5402 <summary>Thread sync lock object</summary>
5403 </member>
5404 <member name="F:OpenMetaverse.AgentManager.m_Teleport">
5405 <summary>The event subscribers. null if no subcribers</summary>
5406 </member>
5407 <member name="M:OpenMetaverse.AgentManager.OnTeleport(OpenMetaverse.TeleportEventArgs)"> 1747 <member name="M:OpenMetaverse.AgentManager.OnTeleport(OpenMetaverse.TeleportEventArgs)">
5408 <summary>Raises the TeleportProgress event</summary> 1748 <summary>Raises the TeleportProgress event</summary>
5409 <param name="e">A TeleportEventArgs object containing the 1749 <param name="e">A TeleportEventArgs object containing the
5410 data returned from the data server</param> 1750 data returned from the data server</param>
5411 </member> 1751 </member>
5412 <member name="F:OpenMetaverse.AgentManager.m_TeleportLock">
5413 <summary>Thread sync lock object</summary>
5414 </member>
5415 <member name="F:OpenMetaverse.AgentManager.m_AgentData">
5416 <summary>The event subscribers. null if no subcribers</summary>
5417 </member>
5418 <member name="M:OpenMetaverse.AgentManager.OnAgentData(OpenMetaverse.AgentDataReplyEventArgs)"> 1752 <member name="M:OpenMetaverse.AgentManager.OnAgentData(OpenMetaverse.AgentDataReplyEventArgs)">
5419 <summary>Raises the AgentDataReply event</summary> 1753 <summary>Raises the AgentDataReply event</summary>
5420 <param name="e">A AgentDataReplyEventArgs object containing the 1754 <param name="e">A AgentDataReplyEventArgs object containing the
5421 data returned from the data server</param> 1755 data returned from the data server</param>
5422 </member> 1756 </member>
5423 <member name="F:OpenMetaverse.AgentManager.m_AgentDataLock">
5424 <summary>Thread sync lock object</summary>
5425 </member>
5426 <member name="F:OpenMetaverse.AgentManager.m_AnimationsChanged">
5427 <summary>The event subscribers. null if no subcribers</summary>
5428 </member>
5429 <member name="M:OpenMetaverse.AgentManager.OnAnimationsChanged(OpenMetaverse.AnimationsChangedEventArgs)"> 1757 <member name="M:OpenMetaverse.AgentManager.OnAnimationsChanged(OpenMetaverse.AnimationsChangedEventArgs)">
5430 <summary>Raises the AnimationsChanged event</summary> 1758 <summary>Raises the AnimationsChanged event</summary>
5431 <param name="e">A AnimationsChangedEventArgs object containing the 1759 <param name="e">A AnimationsChangedEventArgs object containing the
5432 data returned from the data server</param> 1760 data returned from the data server</param>
5433 </member> 1761 </member>
5434 <member name="F:OpenMetaverse.AgentManager.m_AnimationsChangedLock">
5435 <summary>Thread sync lock object</summary>
5436 </member>
5437 <member name="F:OpenMetaverse.AgentManager.m_MeanCollision">
5438 <summary>The event subscribers. null if no subcribers</summary>
5439 </member>
5440 <member name="M:OpenMetaverse.AgentManager.OnMeanCollision(OpenMetaverse.MeanCollisionEventArgs)"> 1762 <member name="M:OpenMetaverse.AgentManager.OnMeanCollision(OpenMetaverse.MeanCollisionEventArgs)">
5441 <summary>Raises the MeanCollision event</summary> 1763 <summary>Raises the MeanCollision event</summary>
5442 <param name="e">A MeanCollisionEventArgs object containing the 1764 <param name="e">A MeanCollisionEventArgs object containing the
5443 data returned from the data server</param> 1765 data returned from the data server</param>
5444 </member> 1766 </member>
5445 <member name="F:OpenMetaverse.AgentManager.m_MeanCollisionLock">
5446 <summary>Thread sync lock object</summary>
5447 </member>
5448 <member name="F:OpenMetaverse.AgentManager.m_RegionCrossed">
5449 <summary>The event subscribers. null if no subcribers</summary>
5450 </member>
5451 <member name="M:OpenMetaverse.AgentManager.OnRegionCrossed(OpenMetaverse.RegionCrossedEventArgs)"> 1767 <member name="M:OpenMetaverse.AgentManager.OnRegionCrossed(OpenMetaverse.RegionCrossedEventArgs)">
5452 <summary>Raises the RegionCrossed event</summary> 1768 <summary>Raises the RegionCrossed event</summary>
5453 <param name="e">A RegionCrossedEventArgs object containing the 1769 <param name="e">A RegionCrossedEventArgs object containing the
5454 data returned from the data server</param> 1770 data returned from the data server</param>
5455 </member> 1771 </member>
5456 <member name="F:OpenMetaverse.AgentManager.m_RegionCrossedLock">
5457 <summary>Thread sync lock object</summary>
5458 </member>
5459 <member name="F:OpenMetaverse.AgentManager.m_GroupChatJoined">
5460 <summary>The event subscribers. null if no subcribers</summary>
5461 </member>
5462 <member name="M:OpenMetaverse.AgentManager.OnGroupChatJoined(OpenMetaverse.GroupChatJoinedEventArgs)"> 1772 <member name="M:OpenMetaverse.AgentManager.OnGroupChatJoined(OpenMetaverse.GroupChatJoinedEventArgs)">
5463 <summary>Raises the GroupChatJoined event</summary> 1773 <summary>Raises the GroupChatJoined event</summary>
5464 <param name="e">A GroupChatJoinedEventArgs object containing the 1774 <param name="e">A GroupChatJoinedEventArgs object containing the
5465 data returned from the data server</param> 1775 data returned from the data server</param>
5466 </member> 1776 </member>
5467 <member name="F:OpenMetaverse.AgentManager.m_GroupChatJoinedLock">
5468 <summary>Thread sync lock object</summary>
5469 </member>
5470 <member name="F:OpenMetaverse.AgentManager.m_AlertMessage">
5471 <summary>The event subscribers. null if no subcribers</summary>
5472 </member>
5473 <member name="M:OpenMetaverse.AgentManager.OnAlertMessage(OpenMetaverse.AlertMessageEventArgs)"> 1777 <member name="M:OpenMetaverse.AgentManager.OnAlertMessage(OpenMetaverse.AlertMessageEventArgs)">
5474 <summary>Raises the AlertMessage event</summary> 1778 <summary>Raises the AlertMessage event</summary>
5475 <param name="e">A AlertMessageEventArgs object containing the 1779 <param name="e">A AlertMessageEventArgs object containing the
5476 data returned from the data server</param> 1780 data returned from the data server</param>
5477 </member> 1781 </member>
5478 <member name="F:OpenMetaverse.AgentManager.m_AlertMessageLock">
5479 <summary>Thread sync lock object</summary>
5480 </member>
5481 <member name="F:OpenMetaverse.AgentManager.m_ScriptControl">
5482 <summary>The event subscribers. null if no subcribers</summary>
5483 </member>
5484 <member name="M:OpenMetaverse.AgentManager.OnScriptControlChange(OpenMetaverse.ScriptControlEventArgs)"> 1782 <member name="M:OpenMetaverse.AgentManager.OnScriptControlChange(OpenMetaverse.ScriptControlEventArgs)">
5485 <summary>Raises the ScriptControlChange event</summary> 1783 <summary>Raises the ScriptControlChange event</summary>
5486 <param name="e">A ScriptControlEventArgs object containing the 1784 <param name="e">A ScriptControlEventArgs object containing the
5487 data returned from the data server</param> 1785 data returned from the data server</param>
5488 </member> 1786 </member>
5489 <member name="F:OpenMetaverse.AgentManager.m_ScriptControlLock">
5490 <summary>Thread sync lock object</summary>
5491 </member>
5492 <member name="F:OpenMetaverse.AgentManager.m_CameraConstraint">
5493 <summary>The event subscribers. null if no subcribers</summary>
5494 </member>
5495 <member name="M:OpenMetaverse.AgentManager.OnCameraConstraint(OpenMetaverse.CameraConstraintEventArgs)"> 1787 <member name="M:OpenMetaverse.AgentManager.OnCameraConstraint(OpenMetaverse.CameraConstraintEventArgs)">
5496 <summary>Raises the CameraConstraint event</summary> 1788 <summary>Raises the CameraConstraint event</summary>
5497 <param name="e">A CameraConstraintEventArgs object containing the 1789 <param name="e">A CameraConstraintEventArgs object containing the
5498 data returned from the data server</param> 1790 data returned from the data server</param>
5499 </member> 1791 </member>
5500 <member name="F:OpenMetaverse.AgentManager.m_CameraConstraintLock">
5501 <summary>Thread sync lock object</summary>
5502 </member>
5503 <member name="F:OpenMetaverse.AgentManager.m_ScriptSensorReply">
5504 <summary>The event subscribers. null if no subcribers</summary>
5505 </member>
5506 <member name="M:OpenMetaverse.AgentManager.OnScriptSensorReply(OpenMetaverse.ScriptSensorReplyEventArgs)"> 1792 <member name="M:OpenMetaverse.AgentManager.OnScriptSensorReply(OpenMetaverse.ScriptSensorReplyEventArgs)">
5507 <summary>Raises the ScriptSensorReply event</summary> 1793 <summary>Raises the ScriptSensorReply event</summary>
5508 <param name="e">A ScriptSensorReplyEventArgs object containing the 1794 <param name="e">A ScriptSensorReplyEventArgs object containing the
5509 data returned from the data server</param> 1795 data returned from the data server</param>
5510 </member> 1796 </member>
5511 <member name="F:OpenMetaverse.AgentManager.m_ScriptSensorReplyLock">
5512 <summary>Thread sync lock object</summary>
5513 </member>
5514 <member name="F:OpenMetaverse.AgentManager.m_AvatarSitResponse">
5515 <summary>The event subscribers. null if no subcribers</summary>
5516 </member>
5517 <member name="M:OpenMetaverse.AgentManager.OnAvatarSitResponse(OpenMetaverse.AvatarSitResponseEventArgs)"> 1797 <member name="M:OpenMetaverse.AgentManager.OnAvatarSitResponse(OpenMetaverse.AvatarSitResponseEventArgs)">
5518 <summary>Raises the AvatarSitResponse event</summary> 1798 <summary>Raises the AvatarSitResponse event</summary>
5519 <param name="e">A AvatarSitResponseEventArgs object containing the 1799 <param name="e">A AvatarSitResponseEventArgs object containing the
5520 data returned from the data server</param> 1800 data returned from the data server</param>
5521 </member> 1801 </member>
5522 <member name="F:OpenMetaverse.AgentManager.m_AvatarSitResponseLock">
5523 <summary>Thread sync lock object</summary>
5524 </member>
5525 <member name="F:OpenMetaverse.AgentManager.m_ChatSessionMemberAdded">
5526 <summary>The event subscribers. null if no subcribers</summary>
5527 </member>
5528 <member name="M:OpenMetaverse.AgentManager.OnChatSessionMemberAdded(OpenMetaverse.ChatSessionMemberAddedEventArgs)"> 1802 <member name="M:OpenMetaverse.AgentManager.OnChatSessionMemberAdded(OpenMetaverse.ChatSessionMemberAddedEventArgs)">
5529 <summary>Raises the ChatSessionMemberAdded event</summary> 1803 <summary>Raises the ChatSessionMemberAdded event</summary>
5530 <param name="e">A ChatSessionMemberAddedEventArgs object containing the 1804 <param name="e">A ChatSessionMemberAddedEventArgs object containing the
5531 data returned from the data server</param> 1805 data returned from the data server</param>
5532 </member> 1806 </member>
5533 <member name="F:OpenMetaverse.AgentManager.m_ChatSessionMemberAddedLock">
5534 <summary>Thread sync lock object</summary>
5535 </member>
5536 <member name="F:OpenMetaverse.AgentManager.m_ChatSessionMemberLeft">
5537 <summary>The event subscribers. null if no subcribers</summary>
5538 </member>
5539 <member name="M:OpenMetaverse.AgentManager.OnChatSessionMemberLeft(OpenMetaverse.ChatSessionMemberLeftEventArgs)"> 1807 <member name="M:OpenMetaverse.AgentManager.OnChatSessionMemberLeft(OpenMetaverse.ChatSessionMemberLeftEventArgs)">
5540 <summary>Raises the ChatSessionMemberLeft event</summary> 1808 <summary>Raises the ChatSessionMemberLeft event</summary>
5541 <param name="e">A ChatSessionMemberLeftEventArgs object containing the 1809 <param name="e">A ChatSessionMemberLeftEventArgs object containing the
5542 data returned from the data server</param> 1810 data returned from the data server</param>
5543 </member> 1811 </member>
5544 <member name="F:OpenMetaverse.AgentManager.m_ChatSessionMemberLeftLock"> 1812 <member name="M:OpenMetaverse.AgentManager.OnSetDisplayNameReply(OpenMetaverse.SetDisplayNameReplyEventArgs)">
5545 <summary>Thread sync lock object</summary> 1813 <summary>Raises the SetDisplayNameReply Event</summary>
5546 </member> 1814 <param name="e">A SetDisplayNameReplyEventArgs object containing
5547 <member name="F:OpenMetaverse.AgentManager.Client"> 1815 the data sent from the simulator</param>
5548 <summary>Reference to the GridClient instance</summary>
5549 </member>
5550 <member name="F:OpenMetaverse.AgentManager.Movement">
5551 <summary>Used for movement and camera tracking</summary>
5552 </member> 1816 </member>
5553 <member name="F:OpenMetaverse.AgentManager.SignaledAnimations"> 1817 <member name="M:OpenMetaverse.AgentManager.OnMuteListUpdated(System.EventArgs)">
5554 <summary>Currently playing animations for the agent. Can be used to 1818 <summary>Raises the MuteListUpdated event</summary>
5555 check the current movement status such as walking, hovering, aiming, 1819 <param name="e">A EventArgs object containing the
5556 etc. by checking against system animations found in the Animations class</summary> 1820 data returned from the data server</param>
5557 </member>
5558 <member name="F:OpenMetaverse.AgentManager.GroupChatSessions">
5559 <summary>Dictionary containing current Group Chat sessions and members</summary>
5560 </member>
5561 <member name="M:OpenMetaverse.AgentManager.#ctor(OpenMetaverse.GridClient)">
5562 <summary>
5563 Constructor, setup callbacks for packets related to our avatar
5564 </summary>
5565 <param name="client">A reference to the <seealso cref="T:OpenMetaverse.GridClient"/> Class</param>
5566 </member> 1821 </member>
5567 <member name="M:OpenMetaverse.AgentManager.Chat(System.String,System.Int32,OpenMetaverse.ChatType)"> 1822 <member name="M:OpenMetaverse.AgentManager.Chat(System.String,System.Int32,OpenMetaverse.ChatType)">
5568 <summary> 1823 <summary>
5569 Send a text message from the Agent to the Simulator 1824 Send a text message from the Agent to the Simulator
5570 </summary> 1825 </summary>
5571 <param name="message">A <see cref="T:System.String"/> containing the message</param> 1826 <param name="message">A <see cref="T:System.String" /> containing the message</param>
5572 <param name="channel">The channel to send the message on, 0 is the public channel. Channels above 0 1827 <param name="channel">The channel to send the message on, 0 is the public channel. Channels above 0
5573 can be used however only scripts listening on the specified channel will see the message</param> 1828 can be used however only scripts listening on the specified channel will see the message</param>
5574 <param name="type">Denotes the type of message being sent, shout, whisper, etc.</param> 1829 <param name="type">Denotes the type of message being sent, shout, whisper, etc.</param>
@@ -5582,15 +1837,15 @@
5582 <summary> 1837 <summary>
5583 Send an Instant Message to another Avatar 1838 Send an Instant Message to another Avatar
5584 </summary> 1839 </summary>
5585 <param name="target">The recipients <see cref="T:OpenMetaverse.UUID"/></param> 1840 <param name="target">The recipients <see cref="T:OpenMetaverse.UUID" /></param>
5586 <param name="message">A <see cref="T:System.String"/> containing the message to send</param> 1841 <param name="message">A <see cref="T:System.String" /> containing the message to send</param>
5587 </member> 1842 </member>
5588 <member name="M:OpenMetaverse.AgentManager.InstantMessage(OpenMetaverse.UUID,System.String,OpenMetaverse.UUID)"> 1843 <member name="M:OpenMetaverse.AgentManager.InstantMessage(OpenMetaverse.UUID,System.String,OpenMetaverse.UUID)">
5589 <summary> 1844 <summary>
5590 Send an Instant Message to an existing group chat or conference chat 1845 Send an Instant Message to an existing group chat or conference chat
5591 </summary> 1846 </summary>
5592 <param name="target">The recipients <see cref="T:OpenMetaverse.UUID"/></param> 1847 <param name="target">The recipients <see cref="T:OpenMetaverse.UUID" /></param>
5593 <param name="message">A <see cref="T:System.String"/> containing the message to send</param> 1848 <param name="message">A <see cref="T:System.String" /> containing the message to send</param>
5594 <param name="imSessionID">IM session ID (to differentiate between IM windows)</param> 1849 <param name="imSessionID">IM session ID (to differentiate between IM windows)</param>
5595 </member> 1850 </member>
5596 <member name="M:OpenMetaverse.AgentManager.InstantMessage(System.String,OpenMetaverse.UUID,System.String,OpenMetaverse.UUID,OpenMetaverse.UUID[])"> 1851 <member name="M:OpenMetaverse.AgentManager.InstantMessage(System.String,OpenMetaverse.UUID,System.String,OpenMetaverse.UUID,OpenMetaverse.UUID[])">
@@ -5622,7 +1877,8 @@
5622 <summary> 1877 <summary>
5623 Send an Instant Message to a group 1878 Send an Instant Message to a group
5624 </summary> 1879 </summary>
5625 <param name="groupID"><seealso cref="T:OpenMetaverse.UUID"/> of the group to send message to</param> 1880 <param name="groupID">
1881 <seealso cref="T:OpenMetaverse.UUID" /> of the group to send message to</param>
5626 <param name="message">Text Message being sent.</param> 1882 <param name="message">Text Message being sent.</param>
5627 </member> 1883 </member>
5628 <member name="M:OpenMetaverse.AgentManager.InstantMessageGroup(System.String,OpenMetaverse.UUID,System.String)"> 1884 <member name="M:OpenMetaverse.AgentManager.InstantMessageGroup(System.String,OpenMetaverse.UUID,System.String)">
@@ -5630,84 +1886,96 @@
5630 Send an Instant Message to a group the agent is a member of 1886 Send an Instant Message to a group the agent is a member of
5631 </summary> 1887 </summary>
5632 <param name="fromName">The name this IM will show up as being from</param> 1888 <param name="fromName">The name this IM will show up as being from</param>
5633 <param name="groupID"><seealso cref="T:OpenMetaverse.UUID"/> of the group to send message to</param> 1889 <param name="groupID">
1890 <seealso cref="T:OpenMetaverse.UUID" /> of the group to send message to</param>
5634 <param name="message">Text message being sent</param> 1891 <param name="message">Text message being sent</param>
5635 </member> 1892 </member>
5636 <member name="M:OpenMetaverse.AgentManager.RequestJoinGroupChat(OpenMetaverse.UUID)"> 1893 <member name="M:OpenMetaverse.AgentManager.RequestJoinGroupChat(OpenMetaverse.UUID)">
5637 <summary> 1894 <summary>
5638 Send a request to join a group chat session 1895 Send a request to join a group chat session
5639 </summary> 1896 </summary>
5640 <param name="groupID"><seealso cref="T:OpenMetaverse.UUID"/> of Group to leave</param> 1897 <param name="groupID">
1898 <seealso cref="T:OpenMetaverse.UUID" /> of Group to leave</param>
5641 </member> 1899 </member>
5642 <member name="M:OpenMetaverse.AgentManager.RequestLeaveGroupChat(OpenMetaverse.UUID)"> 1900 <member name="M:OpenMetaverse.AgentManager.RequestLeaveGroupChat(OpenMetaverse.UUID)">
5643 <summary> 1901 <summary>
5644 Exit a group chat session. This will stop further Group chat messages 1902 Exit a group chat session. This will stop further Group chat messages
5645 from being sent until session is rejoined. 1903 from being sent until session is rejoined.
5646 </summary> 1904 </summary>
5647 <param name="groupID"><seealso cref="T:OpenMetaverse.UUID"/> of Group chat session to leave</param> 1905 <param name="groupID">
1906 <seealso cref="T:OpenMetaverse.UUID" /> of Group chat session to leave</param>
5648 </member> 1907 </member>
5649 <member name="M:OpenMetaverse.AgentManager.ReplyToScriptDialog(System.Int32,System.Int32,System.String,OpenMetaverse.UUID)"> 1908 <member name="M:OpenMetaverse.AgentManager.ReplyToScriptDialog(System.Int32,System.Int32,System.String,OpenMetaverse.UUID)">
5650 <summary> 1909 <summary>
5651 Reply to script dialog questions. 1910 Reply to script dialog questions.
5652 </summary> 1911 </summary>
5653 <param name="channel">Channel initial request came on</param> 1912 <param name="channel">Channel initial request came on</param>
5654 <param name="buttonIndex">Index of button you're "clicking"</param> 1913 <param name="buttonIndex">Index of button you're "clicking"</param>
5655 <param name="buttonlabel">Label of button you're "clicking"</param> 1914 <param name="buttonlabel">Label of button you're "clicking"</param>
5656 <param name="objectID"><seealso cref="T:OpenMetaverse.UUID"/> of Object that sent the dialog request</param> 1915 <param name="objectID">
5657 <seealso cref="M:OpenMetaverse.AgentManager.OnScriptDialog(OpenMetaverse.ScriptDialogEventArgs)"/> 1916 <seealso cref="T:OpenMetaverse.UUID" /> of Object that sent the dialog request</param>
1917 <seealso cref="M:OpenMetaverse.AgentManager.OnScriptDialog(OpenMetaverse.ScriptDialogEventArgs)" />
5658 </member> 1918 </member>
5659 <member name="M:OpenMetaverse.AgentManager.ChatterBoxAcceptInvite(OpenMetaverse.UUID)"> 1919 <member name="M:OpenMetaverse.AgentManager.ChatterBoxAcceptInvite(OpenMetaverse.UUID)">
5660 <summary> 1920 <summary>
5661 Accept invite for to a chatterbox session 1921 Accept invite for to a chatterbox session
5662 </summary> 1922 </summary>
5663 <param name="session_id"><seealso cref="T:OpenMetaverse.UUID"/> of session to accept invite to</param> 1923 <param name="session_id">
1924 <seealso cref="T:OpenMetaverse.UUID" /> of session to accept invite to</param>
5664 </member> 1925 </member>
5665 <member name="M:OpenMetaverse.AgentManager.StartIMConference(System.Collections.Generic.List{OpenMetaverse.UUID},OpenMetaverse.UUID)"> 1926 <member name="M:OpenMetaverse.AgentManager.StartIMConference(System.Collections.Generic.List{OpenMetaverse.UUID},OpenMetaverse.UUID)">
5666 <summary> 1927 <summary>
5667 Start a friends conference 1928 Start a friends conference
5668 </summary> 1929 </summary>
5669 <param name="participants"><seealso cref="T:OpenMetaverse.UUID"/> List of UUIDs to start a conference with</param> 1930 <param name="participants">
5670 <param name="tmp_session_id">the temportary session ID returned in the <see cref="!:OnJoinedGroupChat"/> callback&gt;</param> 1931 <seealso cref="T:OpenMetaverse.UUID" /> List of UUIDs to start a conference with</param>
1932 <param name="tmp_session_id">the temportary session ID returned in the <see cref="!:OnJoinedGroupChat" /> callback&gt;</param>
5671 </member> 1933 </member>
5672 <member name="M:OpenMetaverse.AgentManager.PointAtEffect(OpenMetaverse.UUID,OpenMetaverse.UUID,OpenMetaverse.Vector3d,OpenMetaverse.PointAtType,OpenMetaverse.UUID)"> 1934 <member name="M:OpenMetaverse.AgentManager.PointAtEffect(OpenMetaverse.UUID,OpenMetaverse.UUID,OpenMetaverse.Vector3d,OpenMetaverse.PointAtType,OpenMetaverse.UUID)">
5673 <summary> 1935 <summary>
5674 Start a particle stream between an agent and an object 1936 Start a particle stream between an agent and an object
5675 </summary> 1937 </summary>
5676 <param name="sourceAvatar"><seealso cref="T:OpenMetaverse.UUID"/> Key of the source agent</param> 1938 <param name="sourceAvatar">
5677 <param name="targetObject"><seealso cref="T:OpenMetaverse.UUID"/> Key of the target object</param> 1939 <seealso cref="T:OpenMetaverse.UUID" /> Key of the source agent</param>
5678 <param name="globalOffset"></param> 1940 <param name="targetObject">
5679 <param name="type">The type from the <seealso cref="T:PointAtType"/> enum</param> 1941 <seealso cref="T:OpenMetaverse.UUID" /> Key of the target object</param>
5680 <param name="effectID">A unique <seealso cref="T:OpenMetaverse.UUID"/> for this effect</param> 1942 <param name="globalOffset">
1943 </param>
1944 <param name="type">The type from the <seealso cref="T:PointAtType" /> enum</param>
1945 <param name="effectID">A unique <seealso cref="T:OpenMetaverse.UUID" /> for this effect</param>
5681 </member> 1946 </member>
5682 <member name="M:OpenMetaverse.AgentManager.LookAtEffect(OpenMetaverse.UUID,OpenMetaverse.UUID,OpenMetaverse.Vector3d,OpenMetaverse.LookAtType,OpenMetaverse.UUID)"> 1947 <member name="M:OpenMetaverse.AgentManager.LookAtEffect(OpenMetaverse.UUID,OpenMetaverse.UUID,OpenMetaverse.Vector3d,OpenMetaverse.LookAtType,OpenMetaverse.UUID)">
5683 <summary> 1948 <summary>
5684 Start a particle stream between an agent and an object 1949 Start a particle stream between an agent and an object
5685 </summary> 1950 </summary>
5686 <param name="sourceAvatar"><seealso cref="T:OpenMetaverse.UUID"/> Key of the source agent</param> 1951 <param name="sourceAvatar">
5687 <param name="targetObject"><seealso cref="T:OpenMetaverse.UUID"/> Key of the target object</param> 1952 <seealso cref="T:OpenMetaverse.UUID" /> Key of the source agent</param>
5688 <param name="globalOffset">A <seealso cref="T:OpenMetaverse.Vector3d"/> representing the beams offset from the source</param> 1953 <param name="targetObject">
5689 <param name="type">A <seealso cref="T:PointAtType"/> which sets the avatars lookat animation</param> 1954 <seealso cref="T:OpenMetaverse.UUID" /> Key of the target object</param>
5690 <param name="effectID"><seealso cref="T:OpenMetaverse.UUID"/> of the Effect</param> 1955 <param name="globalOffset">A <seealso cref="T:OpenMetaverse.Vector3d" /> representing the beams offset from the source</param>
1956 <param name="type">A <seealso cref="T:PointAtType" /> which sets the avatars lookat animation</param>
1957 <param name="effectID">
1958 <seealso cref="T:OpenMetaverse.UUID" /> of the Effect</param>
5691 </member> 1959 </member>
5692 <member name="M:OpenMetaverse.AgentManager.BeamEffect(OpenMetaverse.UUID,OpenMetaverse.UUID,OpenMetaverse.Vector3d,OpenMetaverse.Color4,System.Single,OpenMetaverse.UUID)"> 1960 <member name="M:OpenMetaverse.AgentManager.BeamEffect(OpenMetaverse.UUID,OpenMetaverse.UUID,OpenMetaverse.Vector3d,OpenMetaverse.Color4,System.Single,OpenMetaverse.UUID)">
5693 <summary> 1961 <summary>
5694 Create a particle beam between an avatar and an primitive 1962 Create a particle beam between an avatar and an primitive
5695 </summary> 1963 </summary>
5696 <param name="sourceAvatar">The ID of source avatar</param> 1964 <param name="sourceAvatar">The ID of source avatar</param>
5697 <param name="targetObject">The ID of the target primitive</param> 1965 <param name="targetObject">The ID of the target primitive</param>
5698 <param name="globalOffset">global offset</param> 1966 <param name="globalOffset">global offset</param>
5699 <param name="color">A <see cref="T:OpenMetaverse.Color4"/> object containing the combined red, green, blue and alpha 1967 <param name="color">A <see cref="T:OpenMetaverse.Color4" /> object containing the combined red, green, blue and alpha
5700 color values of particle beam</param> 1968 color values of particle beam</param>
5701 <param name="duration">a float representing the duration the parcicle beam will last</param> 1969 <param name="duration">a float representing the duration the parcicle beam will last</param>
5702 <param name="effectID">A Unique ID for the beam</param> 1970 <param name="effectID">A Unique ID for the beam</param>
5703 <seealso cref="T:OpenMetaverse.Packets.ViewerEffectPacket"/> 1971 <seealso cref="T:OpenMetaverse.Packets.ViewerEffectPacket" />
5704 </member> 1972 </member>
5705 <member name="M:OpenMetaverse.AgentManager.SphereEffect(OpenMetaverse.Vector3d,OpenMetaverse.Color4,System.Single,OpenMetaverse.UUID)"> 1973 <member name="M:OpenMetaverse.AgentManager.SphereEffect(OpenMetaverse.Vector3d,OpenMetaverse.Color4,System.Single,OpenMetaverse.UUID)">
5706 <summary> 1974 <summary>
5707 Create a particle swirl around a target position using a <seealso cref="T:OpenMetaverse.Packets.ViewerEffectPacket"/> packet 1975 Create a particle swirl around a target position using a <seealso cref="T:OpenMetaverse.Packets.ViewerEffectPacket" /> packet
5708 </summary> 1976 </summary>
5709 <param name="globalOffset">global offset</param> 1977 <param name="globalOffset">global offset</param>
5710 <param name="color">A <see cref="T:OpenMetaverse.Color4"/> object containing the combined red, green, blue and alpha 1978 <param name="color">A <see cref="T:OpenMetaverse.Color4" /> object containing the combined red, green, blue and alpha
5711 color values of particle beam</param> 1979 color values of particle beam</param>
5712 <param name="duration">a float representing the duration the parcicle beam will last</param> 1980 <param name="duration">a float representing the duration the parcicle beam will last</param>
5713 <param name="effectID">A Unique ID for the beam</param> 1981 <param name="effectID">A Unique ID for the beam</param>
@@ -5716,12 +1984,13 @@
5716 <summary> 1984 <summary>
5717 Sends a request to sit on the specified object 1985 Sends a request to sit on the specified object
5718 </summary> 1986 </summary>
5719 <param name="targetID"><seealso cref="T:OpenMetaverse.UUID"/> of the object to sit on</param> 1987 <param name="targetID">
1988 <seealso cref="T:OpenMetaverse.UUID" /> of the object to sit on</param>
5720 <param name="offset">Sit at offset</param> 1989 <param name="offset">Sit at offset</param>
5721 </member> 1990 </member>
5722 <member name="M:OpenMetaverse.AgentManager.Sit"> 1991 <member name="M:OpenMetaverse.AgentManager.Sit">
5723 <summary> 1992 <summary>
5724 Follows a call to <seealso cref="M:OpenMetaverse.AgentManager.RequestSit(OpenMetaverse.UUID,OpenMetaverse.Vector3)"/> to actually sit on the object 1993 Follows a call to <seealso cref="M:OpenMetaverse.AgentManager.RequestSit(OpenMetaverse.UUID,OpenMetaverse.Vector3)" /> to actually sit on the object
5725 </summary> 1994 </summary>
5726 </member> 1995 </member>
5727 <member name="M:OpenMetaverse.AgentManager.Stand"> 1996 <member name="M:OpenMetaverse.AgentManager.Stand">
@@ -5788,14 +2057,15 @@
5788 Grabs an object 2057 Grabs an object
5789 </summary> 2058 </summary>
5790 <param name="objectLocalID">an unsigned integer of the objects ID within the simulator</param> 2059 <param name="objectLocalID">an unsigned integer of the objects ID within the simulator</param>
5791 <seealso cref="F:OpenMetaverse.Simulator.ObjectsPrimitives"/> 2060 <seealso cref="F:OpenMetaverse.Simulator.ObjectsPrimitives" />
5792 </member> 2061 </member>
5793 <member name="M:OpenMetaverse.AgentManager.Grab(System.UInt32,OpenMetaverse.Vector3,OpenMetaverse.Vector3,OpenMetaverse.Vector3,System.Int32,OpenMetaverse.Vector3,OpenMetaverse.Vector3,OpenMetaverse.Vector3)"> 2062 <member name="M:OpenMetaverse.AgentManager.Grab(System.UInt32,OpenMetaverse.Vector3,OpenMetaverse.Vector3,OpenMetaverse.Vector3,System.Int32,OpenMetaverse.Vector3,OpenMetaverse.Vector3,OpenMetaverse.Vector3)">
5794 <summary> 2063 <summary>
5795 Overload: Grab a simulated object 2064 Overload: Grab a simulated object
5796 </summary> 2065 </summary>
5797 <param name="objectLocalID">an unsigned integer of the objects ID within the simulator</param> 2066 <param name="objectLocalID">an unsigned integer of the objects ID within the simulator</param>
5798 <param name="grabOffset"></param> 2067 <param name="grabOffset">
2068 </param>
5799 <param name="uvCoord">The texture coordinates to grab</param> 2069 <param name="uvCoord">The texture coordinates to grab</param>
5800 <param name="stCoord">The surface coordinates to grab</param> 2070 <param name="stCoord">The surface coordinates to grab</param>
5801 <param name="faceIndex">The face of the position to grab</param> 2071 <param name="faceIndex">The face of the position to grab</param>
@@ -5808,16 +2078,19 @@
5808 <summary> 2078 <summary>
5809 Drag an object 2079 Drag an object
5810 </summary> 2080 </summary>
5811 <param name="objectID"><seealso cref="T:OpenMetaverse.UUID"/> of the object to drag</param> 2081 <param name="objectID">
2082 <seealso cref="T:OpenMetaverse.UUID" /> of the object to drag</param>
5812 <param name="grabPosition">Drag target in region coordinates</param> 2083 <param name="grabPosition">Drag target in region coordinates</param>
5813 </member> 2084 </member>
5814 <member name="M:OpenMetaverse.AgentManager.GrabUpdate(OpenMetaverse.UUID,OpenMetaverse.Vector3,OpenMetaverse.Vector3,OpenMetaverse.Vector3,OpenMetaverse.Vector3,System.Int32,OpenMetaverse.Vector3,OpenMetaverse.Vector3,OpenMetaverse.Vector3)"> 2085 <member name="M:OpenMetaverse.AgentManager.GrabUpdate(OpenMetaverse.UUID,OpenMetaverse.Vector3,OpenMetaverse.Vector3,OpenMetaverse.Vector3,OpenMetaverse.Vector3,System.Int32,OpenMetaverse.Vector3,OpenMetaverse.Vector3,OpenMetaverse.Vector3)">
5815 <summary> 2086 <summary>
5816 Overload: Drag an object 2087 Overload: Drag an object
5817 </summary> 2088 </summary>
5818 <param name="objectID"><seealso cref="T:OpenMetaverse.UUID"/> of the object to drag</param> 2089 <param name="objectID">
2090 <seealso cref="T:OpenMetaverse.UUID" /> of the object to drag</param>
5819 <param name="grabPosition">Drag target in region coordinates</param> 2091 <param name="grabPosition">Drag target in region coordinates</param>
5820 <param name="grabOffset"></param> 2092 <param name="grabOffset">
2093 </param>
5821 <param name="uvCoord">The texture coordinates to grab</param> 2094 <param name="uvCoord">The texture coordinates to grab</param>
5822 <param name="stCoord">The surface coordinates to grab</param> 2095 <param name="stCoord">The surface coordinates to grab</param>
5823 <param name="faceIndex">The face of the position to grab</param> 2096 <param name="faceIndex">The face of the position to grab</param>
@@ -5831,9 +2104,9 @@
5831 Release a grabbed object 2104 Release a grabbed object
5832 </summary> 2105 </summary>
5833 <param name="objectLocalID">The Objects Simulator Local ID</param> 2106 <param name="objectLocalID">The Objects Simulator Local ID</param>
5834 <seealso cref="F:OpenMetaverse.Simulator.ObjectsPrimitives"/> 2107 <seealso cref="F:OpenMetaverse.Simulator.ObjectsPrimitives" />
5835 <seealso cref="M:OpenMetaverse.AgentManager.Grab(System.UInt32)"/> 2108 <seealso cref="M:OpenMetaverse.AgentManager.Grab(System.UInt32,OpenMetaverse.Vector3,OpenMetaverse.Vector3,OpenMetaverse.Vector3,System.Int32,OpenMetaverse.Vector3,OpenMetaverse.Vector3,OpenMetaverse.Vector3)" />
5836 <seealso cref="M:OpenMetaverse.AgentManager.GrabUpdate(OpenMetaverse.UUID,OpenMetaverse.Vector3)"/> 2109 <seealso cref="M:OpenMetaverse.AgentManager.GrabUpdate(OpenMetaverse.UUID,OpenMetaverse.Vector3,OpenMetaverse.Vector3,OpenMetaverse.Vector3,OpenMetaverse.Vector3,System.Int32,OpenMetaverse.Vector3,OpenMetaverse.Vector3,OpenMetaverse.Vector3)" />
5837 </member> 2110 </member>
5838 <member name="M:OpenMetaverse.AgentManager.DeGrab(System.UInt32,OpenMetaverse.Vector3,OpenMetaverse.Vector3,System.Int32,OpenMetaverse.Vector3,OpenMetaverse.Vector3,OpenMetaverse.Vector3)"> 2111 <member name="M:OpenMetaverse.AgentManager.DeGrab(System.UInt32,OpenMetaverse.Vector3,OpenMetaverse.Vector3,System.Int32,OpenMetaverse.Vector3,OpenMetaverse.Vector3,OpenMetaverse.Vector3)">
5839 <summary> 2112 <summary>
@@ -5853,7 +2126,7 @@
5853 Touches an object 2126 Touches an object
5854 </summary> 2127 </summary>
5855 <param name="objectLocalID">an unsigned integer of the objects ID within the simulator</param> 2128 <param name="objectLocalID">an unsigned integer of the objects ID within the simulator</param>
5856 <seealso cref="F:OpenMetaverse.Simulator.ObjectsPrimitives"/> 2129 <seealso cref="F:OpenMetaverse.Simulator.ObjectsPrimitives" />
5857 </member> 2130 </member>
5858 <member name="M:OpenMetaverse.AgentManager.RequestBalance"> 2131 <member name="M:OpenMetaverse.AgentManager.RequestBalance">
5859 <summary> 2132 <summary>
@@ -5880,7 +2153,7 @@
5880 <summary> 2153 <summary>
5881 Give L$ to an object 2154 Give L$ to an object
5882 </summary> 2155 </summary>
5883 <param name="target">object <seealso cref="T:OpenMetaverse.UUID"/> to give money to</param> 2156 <param name="target">object <seealso cref="T:OpenMetaverse.UUID" /> to give money to</param>
5884 <param name="amount">amount of L$ to give</param> 2157 <param name="amount">amount of L$ to give</param>
5885 <param name="objectName">name of object</param> 2158 <param name="objectName">name of object</param>
5886 </member> 2159 </member>
@@ -5888,14 +2161,14 @@
5888 <summary> 2161 <summary>
5889 Give L$ to a group 2162 Give L$ to a group
5890 </summary> 2163 </summary>
5891 <param name="target">group <seealso cref="T:OpenMetaverse.UUID"/> to give money to</param> 2164 <param name="target">group <seealso cref="T:OpenMetaverse.UUID" /> to give money to</param>
5892 <param name="amount">amount of L$ to give</param> 2165 <param name="amount">amount of L$ to give</param>
5893 </member> 2166 </member>
5894 <member name="M:OpenMetaverse.AgentManager.GiveGroupMoney(OpenMetaverse.UUID,System.Int32,System.String)"> 2167 <member name="M:OpenMetaverse.AgentManager.GiveGroupMoney(OpenMetaverse.UUID,System.Int32,System.String)">
5895 <summary> 2168 <summary>
5896 Give L$ to a group 2169 Give L$ to a group
5897 </summary> 2170 </summary>
5898 <param name="target">group <seealso cref="T:OpenMetaverse.UUID"/> to give money to</param> 2171 <param name="target">group <seealso cref="T:OpenMetaverse.UUID" /> to give money to</param>
5899 <param name="amount">amount of L$ to give</param> 2172 <param name="amount">amount of L$ to give</param>
5900 <param name="description">description of transaction</param> 2173 <param name="description">description of transaction</param>
5901 </member> 2174 </member>
@@ -5925,33 +2198,33 @@
5925 <summary> 2198 <summary>
5926 Plays a gesture 2199 Plays a gesture
5927 </summary> 2200 </summary>
5928 <param name="gestureID">Asset <seealso cref="T:OpenMetaverse.UUID"/> of the gesture</param> 2201 <param name="gestureID">Asset <seealso cref="T:OpenMetaverse.UUID" /> of the gesture</param>
5929 </member> 2202 </member>
5930 <member name="M:OpenMetaverse.AgentManager.ActivateGesture(OpenMetaverse.UUID,OpenMetaverse.UUID)"> 2203 <member name="M:OpenMetaverse.AgentManager.ActivateGesture(OpenMetaverse.UUID,OpenMetaverse.UUID)">
5931 <summary> 2204 <summary>
5932 Mark gesture active 2205 Mark gesture active
5933 </summary> 2206 </summary>
5934 <param name="invID">Inventory <seealso cref="T:OpenMetaverse.UUID"/> of the gesture</param> 2207 <param name="invID">Inventory <seealso cref="T:OpenMetaverse.UUID" /> of the gesture</param>
5935 <param name="assetID">Asset <seealso cref="T:OpenMetaverse.UUID"/> of the gesture</param> 2208 <param name="assetID">Asset <seealso cref="T:OpenMetaverse.UUID" /> of the gesture</param>
5936 </member> 2209 </member>
5937 <member name="M:OpenMetaverse.AgentManager.DeactivateGesture(OpenMetaverse.UUID)"> 2210 <member name="M:OpenMetaverse.AgentManager.DeactivateGesture(OpenMetaverse.UUID)">
5938 <summary> 2211 <summary>
5939 Mark gesture inactive 2212 Mark gesture inactive
5940 </summary> 2213 </summary>
5941 <param name="invID">Inventory <seealso cref="T:OpenMetaverse.UUID"/> of the gesture</param> 2214 <param name="invID">Inventory <seealso cref="T:OpenMetaverse.UUID" /> of the gesture</param>
5942 </member> 2215 </member>
5943 <member name="M:OpenMetaverse.AgentManager.AnimationStart(OpenMetaverse.UUID,System.Boolean)"> 2216 <member name="M:OpenMetaverse.AgentManager.AnimationStart(OpenMetaverse.UUID,System.Boolean)">
5944 <summary> 2217 <summary>
5945 Send an AgentAnimation packet that toggles a single animation on 2218 Send an AgentAnimation packet that toggles a single animation on
5946 </summary> 2219 </summary>
5947 <param name="animation">The <seealso cref="T:OpenMetaverse.UUID"/> of the animation to start playing</param> 2220 <param name="animation">The <seealso cref="T:OpenMetaverse.UUID" /> of the animation to start playing</param>
5948 <param name="reliable">Whether to ensure delivery of this packet or not</param> 2221 <param name="reliable">Whether to ensure delivery of this packet or not</param>
5949 </member> 2222 </member>
5950 <member name="M:OpenMetaverse.AgentManager.AnimationStop(OpenMetaverse.UUID,System.Boolean)"> 2223 <member name="M:OpenMetaverse.AgentManager.AnimationStop(OpenMetaverse.UUID,System.Boolean)">
5951 <summary> 2224 <summary>
5952 Send an AgentAnimation packet that toggles a single animation off 2225 Send an AgentAnimation packet that toggles a single animation off
5953 </summary> 2226 </summary>
5954 <param name="animation">The <seealso cref="T:OpenMetaverse.UUID"/> of a 2227 <param name="animation">The <seealso cref="T:OpenMetaverse.UUID" /> of a
5955 currently playing animation to stop playing</param> 2228 currently playing animation to stop playing</param>
5956 <param name="reliable">Whether to ensure delivery of this packet or not</param> 2229 <param name="reliable">Whether to ensure delivery of this packet or not</param>
5957 </member> 2230 </member>
@@ -5959,7 +2232,7 @@
5959 <summary> 2232 <summary>
5960 Send an AgentAnimation packet that will toggle animations on or off 2233 Send an AgentAnimation packet that will toggle animations on or off
5961 </summary> 2234 </summary>
5962 <param name="animations">A list of animation <seealso cref="T:OpenMetaverse.UUID"/>s, and whether to 2235 <param name="animations">A list of animation <seealso cref="T:OpenMetaverse.UUID" />s, and whether to
5963 turn that animation on or off</param> 2236 turn that animation on or off</param>
5964 <param name="reliable">Whether to ensure delivery of this packet or not</param> 2237 <param name="reliable">Whether to ensure delivery of this packet or not</param>
5965 </member> 2238 </member>
@@ -5973,7 +2246,8 @@
5973 <summary> 2246 <summary>
5974 Teleport agent to a landmark 2247 Teleport agent to a landmark
5975 </summary> 2248 </summary>
5976 <param name="landmark"><seealso cref="T:OpenMetaverse.UUID"/> of the landmark to teleport agent to</param> 2249 <param name="landmark">
2250 <seealso cref="T:OpenMetaverse.UUID" /> of the landmark to teleport agent to</param>
5977 <returns>true on success, false on failure</returns> 2251 <returns>true on success, false on failure</returns>
5978 </member> 2252 </member>
5979 <member name="M:OpenMetaverse.AgentManager.Teleport(System.String,OpenMetaverse.Vector3)"> 2253 <member name="M:OpenMetaverse.AgentManager.Teleport(System.String,OpenMetaverse.Vector3)">
@@ -6002,7 +2276,8 @@
6002 Teleport agent to another region 2276 Teleport agent to another region
6003 </summary> 2277 </summary>
6004 <param name="regionHandle">handle of region to teleport agent to</param> 2278 <param name="regionHandle">handle of region to teleport agent to</param>
6005 <param name="position"><seealso cref="T:OpenMetaverse.Vector3"/> position in destination sim to teleport to</param> 2279 <param name="position">
2280 <seealso cref="T:OpenMetaverse.Vector3" /> position in destination sim to teleport to</param>
6006 <returns>true on success, false on failure</returns> 2281 <returns>true on success, false on failure</returns>
6007 <remarks>This call is blocking</remarks> 2282 <remarks>This call is blocking</remarks>
6008 </member> 2283 </member>
@@ -6011,8 +2286,10 @@
6011 Teleport agent to another region 2286 Teleport agent to another region
6012 </summary> 2287 </summary>
6013 <param name="regionHandle">handle of region to teleport agent to</param> 2288 <param name="regionHandle">handle of region to teleport agent to</param>
6014 <param name="position"><seealso cref="T:OpenMetaverse.Vector3"/> position in destination sim to teleport to</param> 2289 <param name="position">
6015 <param name="lookAt"><seealso cref="T:OpenMetaverse.Vector3"/> direction in destination sim agent will look at</param> 2290 <seealso cref="T:OpenMetaverse.Vector3" /> position in destination sim to teleport to</param>
2291 <param name="lookAt">
2292 <seealso cref="T:OpenMetaverse.Vector3" /> direction in destination sim agent will look at</param>
6016 <returns>true on success, false on failure</returns> 2293 <returns>true on success, false on failure</returns>
6017 <remarks>This call is blocking</remarks> 2294 <remarks>This call is blocking</remarks>
6018 </member> 2295 </member>
@@ -6021,56 +2298,62 @@
6021 Request teleport to a another simulator 2298 Request teleport to a another simulator
6022 </summary> 2299 </summary>
6023 <param name="regionHandle">handle of region to teleport agent to</param> 2300 <param name="regionHandle">handle of region to teleport agent to</param>
6024 <param name="position"><seealso cref="T:OpenMetaverse.Vector3"/> position in destination sim to teleport to</param> 2301 <param name="position">
2302 <seealso cref="T:OpenMetaverse.Vector3" /> position in destination sim to teleport to</param>
6025 </member> 2303 </member>
6026 <member name="M:OpenMetaverse.AgentManager.RequestTeleport(System.UInt64,OpenMetaverse.Vector3,OpenMetaverse.Vector3)"> 2304 <member name="M:OpenMetaverse.AgentManager.RequestTeleport(System.UInt64,OpenMetaverse.Vector3,OpenMetaverse.Vector3)">
6027 <summary> 2305 <summary>
6028 Request teleport to a another simulator 2306 Request teleport to a another simulator
6029 </summary> 2307 </summary>
6030 <param name="regionHandle">handle of region to teleport agent to</param> 2308 <param name="regionHandle">handle of region to teleport agent to</param>
6031 <param name="position"><seealso cref="T:OpenMetaverse.Vector3"/> position in destination sim to teleport to</param> 2309 <param name="position">
6032 <param name="lookAt"><seealso cref="T:OpenMetaverse.Vector3"/> direction in destination sim agent will look at</param> 2310 <seealso cref="T:OpenMetaverse.Vector3" /> position in destination sim to teleport to</param>
2311 <param name="lookAt">
2312 <seealso cref="T:OpenMetaverse.Vector3" /> direction in destination sim agent will look at</param>
6033 </member> 2313 </member>
6034 <member name="M:OpenMetaverse.AgentManager.RequestTeleport(OpenMetaverse.UUID)"> 2314 <member name="M:OpenMetaverse.AgentManager.RequestTeleport(OpenMetaverse.UUID)">
6035 <summary> 2315 <summary>
6036 Teleport agent to a landmark 2316 Teleport agent to a landmark
6037 </summary> 2317 </summary>
6038 <param name="landmark"><seealso cref="T:OpenMetaverse.UUID"/> of the landmark to teleport agent to</param> 2318 <param name="landmark">
2319 <seealso cref="T:OpenMetaverse.UUID" /> of the landmark to teleport agent to</param>
6039 </member> 2320 </member>
6040 <member name="M:OpenMetaverse.AgentManager.SendTeleportLure(OpenMetaverse.UUID)"> 2321 <member name="M:OpenMetaverse.AgentManager.SendTeleportLure(OpenMetaverse.UUID)">
6041 <summary> 2322 <summary>
6042 Send a teleport lure to another avatar with default "Join me in ..." invitation message 2323 Send a teleport lure to another avatar with default "Join me in ..." invitation message
6043 </summary> 2324 </summary>
6044 <param name="targetID">target avatars <seealso cref="T:OpenMetaverse.UUID"/> to lure</param> 2325 <param name="targetID">target avatars <seealso cref="T:OpenMetaverse.UUID" /> to lure</param>
6045 </member> 2326 </member>
6046 <member name="M:OpenMetaverse.AgentManager.SendTeleportLure(OpenMetaverse.UUID,System.String)"> 2327 <member name="M:OpenMetaverse.AgentManager.SendTeleportLure(OpenMetaverse.UUID,System.String)">
6047 <summary> 2328 <summary>
6048 Send a teleport lure to another avatar with custom invitation message 2329 Send a teleport lure to another avatar with custom invitation message
6049 </summary> 2330 </summary>
6050 <param name="targetID">target avatars <seealso cref="T:OpenMetaverse.UUID"/> to lure</param> 2331 <param name="targetID">target avatars <seealso cref="T:OpenMetaverse.UUID" /> to lure</param>
6051 <param name="message">custom message to send with invitation</param> 2332 <param name="message">custom message to send with invitation</param>
6052 </member> 2333 </member>
6053 <member name="M:OpenMetaverse.AgentManager.TeleportLureRespond(OpenMetaverse.UUID,OpenMetaverse.UUID,System.Boolean)"> 2334 <member name="M:OpenMetaverse.AgentManager.TeleportLureRespond(OpenMetaverse.UUID,OpenMetaverse.UUID,System.Boolean)">
6054 <summary> 2335 <summary>
6055 Respond to a teleport lure by either accepting it and initiating 2336 Respond to a teleport lure by either accepting it and initiating
6056 the teleport, or denying it 2337 the teleport, or denying it
6057 </summary> 2338 </summary>
6058 <param name="requesterID"><seealso cref="T:OpenMetaverse.UUID"/> of the avatar sending the lure</param> 2339 <param name="requesterID">
6059 <param name="sessionID">IM session <seealso cref="T:OpenMetaverse.UUID"/> of the incoming lure request</param> 2340 <seealso cref="T:OpenMetaverse.UUID" /> of the avatar sending the lure</param>
2341 <param name="sessionID">IM session <seealso cref="T:OpenMetaverse.UUID" /> of the incoming lure request</param>
6060 <param name="accept">true to accept the lure, false to decline it</param> 2342 <param name="accept">true to accept the lure, false to decline it</param>
6061 </member> 2343 </member>
6062 <member name="M:OpenMetaverse.AgentManager.UpdateProfile(OpenMetaverse.Avatar.AvatarProperties)"> 2344 <member name="M:OpenMetaverse.AgentManager.UpdateProfile(OpenMetaverse.Avatar.AvatarProperties)">
6063 <summary> 2345 <summary>
6064 Update agent profile 2346 Update agent profile
6065 </summary> 2347 </summary>
6066 <param name="profile"><seealso cref="T:OpenMetaverse.Avatar.AvatarProperties"/> struct containing updated 2348 <param name="profile">
2349 <seealso cref="T:OpenMetaverse.Avatar.AvatarProperties" /> struct containing updated
6067 profile information</param> 2350 profile information</param>
6068 </member> 2351 </member>
6069 <member name="M:OpenMetaverse.AgentManager.UpdateInterests(OpenMetaverse.Avatar.Interests)"> 2352 <member name="M:OpenMetaverse.AgentManager.UpdateInterests(OpenMetaverse.Avatar.Interests)">
6070 <summary> 2353 <summary>
6071 Update agents profile interests 2354 Update agents profile interests
6072 </summary> 2355 </summary>
6073 <param name="interests">selection of interests from <seealso cref="T:OpenMetaverse.Avatar.Interests"/> struct</param> 2356 <param name="interests">selection of interests from <seealso cref="T:OpenMetaverse.Avatar.Interests" /> struct</param>
6074 </member> 2357 </member>
6075 <member name="M:OpenMetaverse.AgentManager.SetHeightWidth(System.UInt16,System.UInt16)"> 2358 <member name="M:OpenMetaverse.AgentManager.SetHeightWidth(System.UInt16,System.UInt16)">
6076 <summary> 2359 <summary>
@@ -6085,11 +2368,35 @@
6085 Request the list of muted objects and avatars for this agent 2368 Request the list of muted objects and avatars for this agent
6086 </summary> 2369 </summary>
6087 </member> 2370 </member>
2371 <member name="M:OpenMetaverse.AgentManager.UpdateMuteListEntry(OpenMetaverse.MuteType,OpenMetaverse.UUID,System.String)">
2372 <summary>
2373 Mute an object, resident, etc.
2374 </summary>
2375 <param name="type">Mute type</param>
2376 <param name="id">Mute UUID</param>
2377 <param name="name">Mute name</param>
2378 </member>
2379 <member name="M:OpenMetaverse.AgentManager.UpdateMuteListEntry(OpenMetaverse.MuteType,OpenMetaverse.UUID,System.String,OpenMetaverse.MuteFlags)">
2380 <summary>
2381 Mute an object, resident, etc.
2382 </summary>
2383 <param name="type">Mute type</param>
2384 <param name="id">Mute UUID</param>
2385 <param name="name">Mute name</param>
2386 <param name="flags">Mute flags</param>
2387 </member>
2388 <member name="M:OpenMetaverse.AgentManager.RemoveMuteListEntry(OpenMetaverse.UUID,System.String)">
2389 <summary>
2390 Unmute an object, resident, etc.
2391 </summary>
2392 <param name="id">Mute UUID</param>
2393 <param name="name">Mute name</param>
2394 </member>
6088 <member name="M:OpenMetaverse.AgentManager.SetHome"> 2395 <member name="M:OpenMetaverse.AgentManager.SetHome">
6089 <summary> 2396 <summary>
6090 Sets home location to agents current position 2397 Sets home location to agents current position
6091 </summary> 2398 </summary>
6092 <remarks>will fire an AlertMessage (<seealso cref="E:OpenMetaverse.AgentManager.OnAlertMessage"/>) with 2399 <remarks>will fire an AlertMessage (<seealso cref="E:OpenMetaverse.AgentManager.OnAlertMessage" />) with
6093 success or failure message</remarks> 2400 success or failure message</remarks>
6094 </member> 2401 </member>
6095 <member name="M:OpenMetaverse.AgentManager.CompleteAgentMovement(OpenMetaverse.Simulator)"> 2402 <member name="M:OpenMetaverse.AgentManager.CompleteAgentMovement(OpenMetaverse.Simulator)">
@@ -6097,16 +2404,21 @@
6097 Move an agent in to a simulator. This packet is the last packet 2404 Move an agent in to a simulator. This packet is the last packet
6098 needed to complete the transition in to a new simulator 2405 needed to complete the transition in to a new simulator
6099 </summary> 2406 </summary>
6100 <param name="simulator"><seealso cref="T:OpenMetaverse.Simulator"/> Object</param> 2407 <param name="simulator">
2408 <seealso cref="T:OpenMetaverse.Simulator" /> Object</param>
6101 </member> 2409 </member>
6102 <member name="M:OpenMetaverse.AgentManager.ScriptQuestionReply(OpenMetaverse.Simulator,OpenMetaverse.UUID,OpenMetaverse.UUID,OpenMetaverse.ScriptPermission)"> 2410 <member name="M:OpenMetaverse.AgentManager.ScriptQuestionReply(OpenMetaverse.Simulator,OpenMetaverse.UUID,OpenMetaverse.UUID,OpenMetaverse.ScriptPermission)">
6103 <summary> 2411 <summary>
6104 Reply to script permissions request 2412 Reply to script permissions request
6105 </summary> 2413 </summary>
6106 <param name="simulator"><seealso cref="T:OpenMetaverse.Simulator"/> Object</param> 2414 <param name="simulator">
6107 <param name="itemID"><seealso cref="T:OpenMetaverse.UUID"/> of the itemID requesting permissions</param> 2415 <seealso cref="T:OpenMetaverse.Simulator" /> Object</param>
6108 <param name="taskID"><seealso cref="T:OpenMetaverse.UUID"/> of the taskID requesting permissions</param> 2416 <param name="itemID">
6109 <param name="permissions"><seealso cref="T:OpenMetaverse.ScriptPermission"/> list of permissions to allow</param> 2417 <seealso cref="T:OpenMetaverse.UUID" /> of the itemID requesting permissions</param>
2418 <param name="taskID">
2419 <seealso cref="T:OpenMetaverse.UUID" /> of the taskID requesting permissions</param>
2420 <param name="permissions">
2421 <seealso cref="T:OpenMetaverse.ScriptPermission" /> list of permissions to allow</param>
6110 </member> 2422 </member>
6111 <member name="M:OpenMetaverse.AgentManager.GroupInviteRespond(OpenMetaverse.UUID,OpenMetaverse.UUID,System.Boolean)"> 2423 <member name="M:OpenMetaverse.AgentManager.GroupInviteRespond(OpenMetaverse.UUID,OpenMetaverse.UUID,System.Boolean)">
6112 <summary> 2424 <summary>
@@ -6183,6 +2495,20 @@
6183 </summary> 2495 </summary>
6184 <param name="callback">Called when the requested information is collected</param> 2496 <param name="callback">Called when the requested information is collected</param>
6185 </member> 2497 </member>
2498 <member name="M:OpenMetaverse.AgentManager.SetDisplayName(System.String,System.String)">
2499 <summary>
2500 Initates request to set a new display name
2501 </summary>
2502 <param name="oldName">Previous display name</param>
2503 <param name="newName">Desired new display name</param>
2504 </member>
2505 <member name="M:OpenMetaverse.AgentManager.UpdateAgentLanguage(System.String,System.Boolean)">
2506 <summary>
2507 Tells the sim what UI language is used, and if it's ok to share that with scripts
2508 </summary>
2509 <param name="language">Two letter language code</param>
2510 <param name="isPublic">Share language info with scripts</param>
2511 </member>
6186 <member name="M:OpenMetaverse.AgentManager.InstantMessageHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)"> 2512 <member name="M:OpenMetaverse.AgentManager.InstantMessageHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
6187 <summary> 2513 <summary>
6188 Take an incoming ImprovedInstantMessage packet, auto-parse, and if 2514 Take an incoming ImprovedInstantMessage packet, auto-parse, and if
@@ -6193,8 +2519,8 @@
6193 </member> 2519 </member>
6194 <member name="M:OpenMetaverse.AgentManager.ChatHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)"> 2520 <member name="M:OpenMetaverse.AgentManager.ChatHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
6195 <summary> 2521 <summary>
6196 Take an incoming Chat packet, auto-parse, and if OnChat is defined call 2522 Take an incoming Chat packet, auto-parse, and if OnChat is defined call
6197 that with the appropriate arguments. 2523 that with the appropriate arguments.
6198 </summary> 2524 </summary>
6199 <param name="sender">The sender</param> 2525 <param name="sender">The sender</param>
6200 <param name="e">The EventArgs object containing the packet data</param> 2526 <param name="e">The EventArgs object containing the packet data</param>
@@ -6250,6 +2576,14 @@
6250 <param name="sender">The sender</param> 2576 <param name="sender">The sender</param>
6251 <param name="e">The EventArgs object containing the packet data</param> 2577 <param name="e">The EventArgs object containing the packet data</param>
6252 </member> 2578 </member>
2579 <member name="M:OpenMetaverse.AgentManager.SetDisplayNameReplyEventHandler(System.String,OpenMetaverse.Interfaces.IMessage,OpenMetaverse.Simulator)">
2580 <summary>
2581 EQ Message fired with the result of SetDisplayName request
2582 </summary>
2583 <param name="capsKey">The message key</param>
2584 <param name="message">the IMessage object containing the deserialized data sent from the simulator</param>
2585 <param name="simulator">The <see cref="T:OpenMetaverse.Simulator" /> which originated the packet</param>
2586 </member>
6253 <member name="M:OpenMetaverse.AgentManager.TeleportFailedEventHandler(System.String,OpenMetaverse.Interfaces.IMessage,OpenMetaverse.Simulator)"> 2587 <member name="M:OpenMetaverse.AgentManager.TeleportFailedEventHandler(System.String,OpenMetaverse.Interfaces.IMessage,OpenMetaverse.Simulator)">
6254 <summary> 2588 <summary>
6255 Process TeleportFailed message sent via EventQueue, informs agent its last teleport has failed and why. 2589 Process TeleportFailed message sent via EventQueue, informs agent its last teleport has failed and why.
@@ -6288,7 +2622,7 @@
6288 </summary> 2622 </summary>
6289 <param name="capsKey">The message key</param> 2623 <param name="capsKey">The message key</param>
6290 <param name="message">the IMessage object containing the deserialized data sent from the simulator</param> 2624 <param name="message">the IMessage object containing the deserialized data sent from the simulator</param>
6291 <param name="simulator">The <see cref="T:OpenMetaverse.Simulator"/> which originated the packet</param> 2625 <param name="simulator">The <see cref="T:OpenMetaverse.Simulator" /> which originated the packet</param>
6292 </member> 2626 </member>
6293 <member name="M:OpenMetaverse.AgentManager.CrossedRegionHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)"> 2627 <member name="M:OpenMetaverse.AgentManager.CrossedRegionHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
6294 <summary>Process an incoming packet and raise the appropriate events</summary> 2628 <summary>Process an incoming packet and raise the appropriate events</summary>
@@ -6302,23 +2636,28 @@
6302 </summary> 2636 </summary>
6303 <param name="capsKey">The capability Key</param> 2637 <param name="capsKey">The capability Key</param>
6304 <param name="message">IMessage object containing decoded data from OSD</param> 2638 <param name="message">IMessage object containing decoded data from OSD</param>
6305 <param name="simulator"></param> 2639 <param name="simulator">
2640 </param>
6306 </member> 2641 </member>
6307 <member name="M:OpenMetaverse.AgentManager.ChatterBoxSessionStartReplyEventHandler(System.String,OpenMetaverse.Interfaces.IMessage,OpenMetaverse.Simulator)"> 2642 <member name="M:OpenMetaverse.AgentManager.ChatterBoxSessionStartReplyEventHandler(System.String,OpenMetaverse.Interfaces.IMessage,OpenMetaverse.Simulator)">
6308 <summary> 2643 <summary>
6309 Response from request to join a group chat 2644 Response from request to join a group chat
6310 </summary> 2645 </summary>
6311 <param name="capsKey"></param> 2646 <param name="capsKey">
2647 </param>
6312 <param name="message">IMessage object containing decoded data from OSD</param> 2648 <param name="message">IMessage object containing decoded data from OSD</param>
6313 <param name="simulator"></param> 2649 <param name="simulator">
2650 </param>
6314 </member> 2651 </member>
6315 <member name="M:OpenMetaverse.AgentManager.ChatterBoxSessionAgentListUpdatesEventHandler(System.String,OpenMetaverse.Interfaces.IMessage,OpenMetaverse.Simulator)"> 2652 <member name="M:OpenMetaverse.AgentManager.ChatterBoxSessionAgentListUpdatesEventHandler(System.String,OpenMetaverse.Interfaces.IMessage,OpenMetaverse.Simulator)">
6316 <summary> 2653 <summary>
6317 Someone joined or left group chat 2654 Someone joined or left group chat
6318 </summary> 2655 </summary>
6319 <param name="capsKey"></param> 2656 <param name="capsKey">
2657 </param>
6320 <param name="message">IMessage object containing decoded data from OSD</param> 2658 <param name="message">IMessage object containing decoded data from OSD</param>
6321 <param name="simulator"></param> 2659 <param name="simulator">
2660 </param>
6322 </member> 2661 </member>
6323 <member name="M:OpenMetaverse.AgentManager.ChatterBoxInvitationEventHandler(System.String,OpenMetaverse.Interfaces.IMessage,OpenMetaverse.Simulator)"> 2662 <member name="M:OpenMetaverse.AgentManager.ChatterBoxInvitationEventHandler(System.String,OpenMetaverse.Interfaces.IMessage,OpenMetaverse.Simulator)">
6324 <summary> 2663 <summary>
@@ -6332,8 +2671,8 @@
6332 <summary> 2671 <summary>
6333 Moderate a chat session 2672 Moderate a chat session
6334 </summary> 2673 </summary>
6335 <param name="sessionID">the <see cref="T:OpenMetaverse.UUID"/> of the session to moderate, for group chats this will be the groups UUID</param> 2674 <param name="sessionID">the <see cref="T:OpenMetaverse.UUID" /> of the session to moderate, for group chats this will be the groups UUID</param>
6336 <param name="memberID">the <see cref="T:OpenMetaverse.UUID"/> of the avatar to moderate</param> 2675 <param name="memberID">the <see cref="T:OpenMetaverse.UUID" /> of the avatar to moderate</param>
6337 <param name="key">Either "voice" to moderate users voice, or "text" to moderate users text session</param> 2676 <param name="key">Either "voice" to moderate users voice, or "text" to moderate users text session</param>
6338 <param name="moderate">true to moderate (silence user), false to allow avatar to speak</param> 2677 <param name="moderate">true to moderate (silence user), false to allow avatar to speak</param>
6339 </member> 2678 </member>
@@ -6357,535 +2696,8 @@
6357 <param name="sender">The sender</param> 2696 <param name="sender">The sender</param>
6358 <param name="e">The EventArgs object containing the packet data</param> 2697 <param name="e">The EventArgs object containing the packet data</param>
6359 </member> 2698 </member>
6360 <member name="E:OpenMetaverse.AgentManager.ChatFromSimulator">
6361 <summary>Raised when a scripted object or agent within range sends a public message</summary>
6362 </member>
6363 <member name="E:OpenMetaverse.AgentManager.ScriptDialog">
6364 <summary>Raised when a scripted object sends a dialog box containing possible
6365 options an agent can respond to</summary>
6366 </member>
6367 <member name="E:OpenMetaverse.AgentManager.ScriptQuestion">
6368 <summary>Raised when an object requests a change in the permissions an agent has permitted</summary>
6369 </member>
6370 <member name="E:OpenMetaverse.AgentManager.LoadURL">
6371 <summary>Raised when a script requests an agent open the specified URL</summary>
6372 </member>
6373 <member name="E:OpenMetaverse.AgentManager.MoneyBalance">
6374 <summary>Raised when an agents currency balance is updated</summary>
6375 </member>
6376 <member name="E:OpenMetaverse.AgentManager.MoneyBalanceReply">
6377 <summary>Raised when a transaction occurs involving currency such as a land purchase</summary>
6378 </member>
6379 <member name="E:OpenMetaverse.AgentManager.IM">
6380 <summary>Raised when an ImprovedInstantMessage packet is recieved from the simulator, this is used for everything from
6381 private messaging to friendship offers. The Dialog field defines what type of message has arrived</summary>
6382 </member>
6383 <member name="E:OpenMetaverse.AgentManager.TeleportProgress">
6384 <summary>Raised when an agent has requested a teleport to another location, or when responding to a lure. Raised multiple times
6385 for each teleport indicating the progress of the request</summary>
6386 </member>
6387 <member name="E:OpenMetaverse.AgentManager.AgentDataReply">
6388 <summary>Raised when a simulator sends agent specific information for our avatar.</summary>
6389 </member>
6390 <member name="E:OpenMetaverse.AgentManager.AnimationsChanged">
6391 <summary>Raised when our agents animation playlist changes</summary>
6392 </member>
6393 <member name="E:OpenMetaverse.AgentManager.MeanCollision">
6394 <summary>Raised when an object or avatar forcefully collides with our agent</summary>
6395 </member>
6396 <member name="E:OpenMetaverse.AgentManager.RegionCrossed">
6397 <summary>Raised when our agent crosses a region border into another region</summary>
6398 </member>
6399 <member name="E:OpenMetaverse.AgentManager.GroupChatJoined">
6400 <summary>Raised when our agent succeeds or fails to join a group chat session</summary>
6401 </member>
6402 <member name="E:OpenMetaverse.AgentManager.AlertMessage">
6403 <summary>Raised when a simulator sends an urgent message usually indication the recent failure of
6404 another action we have attempted to take such as an attempt to enter a parcel where we are denied access</summary>
6405 </member>
6406 <member name="E:OpenMetaverse.AgentManager.ScriptControlChange">
6407 <summary>Raised when a script attempts to take or release specified controls for our agent</summary>
6408 </member>
6409 <member name="E:OpenMetaverse.AgentManager.CameraConstraint">
6410 <summary>Raised when the simulator detects our agent is trying to view something
6411 beyond its limits</summary>
6412 </member>
6413 <member name="E:OpenMetaverse.AgentManager.ScriptSensorReply">
6414 <summary>Raised when a script sensor reply is received from a simulator</summary>
6415 </member>
6416 <member name="E:OpenMetaverse.AgentManager.AvatarSitResponse">
6417 <summary>Raised in response to a <see cref="M:OpenMetaverse.AgentManager.RequestSit(OpenMetaverse.UUID,OpenMetaverse.Vector3)"/> request</summary>
6418 </member>
6419 <member name="E:OpenMetaverse.AgentManager.ChatSessionMemberAdded">
6420 <summary>Raised when an avatar enters a group chat session we are participating in</summary>
6421 </member>
6422 <member name="E:OpenMetaverse.AgentManager.ChatSessionMemberLeft">
6423 <summary>Raised when an agent exits a group chat session we are participating in</summary>
6424 </member>
6425 <member name="P:OpenMetaverse.AgentManager.AgentID">
6426 <summary>Your (client) avatars <see cref="T:OpenMetaverse.UUID"/></summary>
6427 <remarks>"client", "agent", and "avatar" all represent the same thing</remarks>
6428 </member>
6429 <member name="P:OpenMetaverse.AgentManager.SessionID">
6430 <summary>Temporary <seealso cref="T:OpenMetaverse.UUID"/> assigned to this session, used for
6431 verifying our identity in packets</summary>
6432 </member>
6433 <member name="P:OpenMetaverse.AgentManager.SecureSessionID">
6434 <summary>Shared secret <seealso cref="T:OpenMetaverse.UUID"/> that is never sent over the wire</summary>
6435 </member>
6436 <member name="P:OpenMetaverse.AgentManager.LocalID">
6437 <summary>Your (client) avatar ID, local to the current region/sim</summary>
6438 </member>
6439 <member name="P:OpenMetaverse.AgentManager.StartLocation">
6440 <summary>Where the avatar started at login. Can be "last", "home"
6441 or a login <seealso cref="T:OpenMetaverse.URI"/></summary>
6442 </member>
6443 <member name="P:OpenMetaverse.AgentManager.AgentAccess">
6444 <summary>The access level of this agent, usually M or PG</summary>
6445 </member>
6446 <member name="P:OpenMetaverse.AgentManager.CollisionPlane">
6447 <summary>The CollisionPlane of Agent</summary>
6448 </member>
6449 <member name="P:OpenMetaverse.AgentManager.Velocity">
6450 <summary>An <seealso cref="T:OpenMetaverse.Vector3"/> representing the velocity of our agent</summary>
6451 </member>
6452 <member name="P:OpenMetaverse.AgentManager.Acceleration">
6453 <summary>An <seealso cref="T:OpenMetaverse.Vector3"/> representing the acceleration of our agent</summary>
6454 </member>
6455 <member name="P:OpenMetaverse.AgentManager.AngularVelocity">
6456 <summary>A <seealso cref="T:OpenMetaverse.Vector3"/> which specifies the angular speed, and axis about which an Avatar is rotating.</summary>
6457 </member>
6458 <member name="P:OpenMetaverse.AgentManager.HomePosition">
6459 <summary>Position avatar client will goto when login to 'home' or during
6460 teleport request to 'home' region.</summary>
6461 </member>
6462 <member name="P:OpenMetaverse.AgentManager.HomeLookAt">
6463 <summary>LookAt point saved/restored with HomePosition</summary>
6464 </member>
6465 <member name="P:OpenMetaverse.AgentManager.FirstName">
6466 <summary>Avatar First Name (i.e. Philip)</summary>
6467 </member>
6468 <member name="P:OpenMetaverse.AgentManager.LastName">
6469 <summary>Avatar Last Name (i.e. Linden)</summary>
6470 </member>
6471 <member name="P:OpenMetaverse.AgentManager.Name">
6472 <summary>Avatar Full Name (i.e. Philip Linden)</summary>
6473 </member>
6474 <member name="P:OpenMetaverse.AgentManager.Health">
6475 <summary>Gets the health of the agent</summary>
6476 </member>
6477 <member name="P:OpenMetaverse.AgentManager.Balance">
6478 <summary>Gets the current balance of the agent</summary>
6479 </member>
6480 <member name="P:OpenMetaverse.AgentManager.SittingOn">
6481 <summary>Gets the local ID of the prim the agent is sitting on,
6482 zero if the avatar is not currently sitting</summary>
6483 </member>
6484 <member name="P:OpenMetaverse.AgentManager.ActiveGroup">
6485 <summary>Gets the <seealso cref="T:OpenMetaverse.UUID"/> of the agents active group.</summary>
6486 </member>
6487 <member name="P:OpenMetaverse.AgentManager.ActiveGroupPowers">
6488 <summary>Gets the Agents powers in the currently active group</summary>
6489 </member>
6490 <member name="P:OpenMetaverse.AgentManager.TeleportMessage">
6491 <summary>Current status message for teleporting</summary>
6492 </member>
6493 <member name="P:OpenMetaverse.AgentManager.RelativePosition">
6494 <summary>Current position of the agent as a relative offset from
6495 the simulator, or the parent object if we are sitting on something</summary>
6496 </member>
6497 <member name="P:OpenMetaverse.AgentManager.RelativeRotation">
6498 <summary>Current rotation of the agent as a relative rotation from
6499 the simulator, or the parent object if we are sitting on something</summary>
6500 </member>
6501 <member name="P:OpenMetaverse.AgentManager.SimPosition">
6502 <summary>Current position of the agent in the simulator</summary>
6503 </member>
6504 <member name="P:OpenMetaverse.AgentManager.SimRotation">
6505 <summary>
6506 A <seealso cref="T:OpenMetaverse.Quaternion"/> representing the agents current rotation
6507 </summary>
6508 </member>
6509 <member name="P:OpenMetaverse.AgentManager.GlobalPosition">
6510 <summary>Returns the global grid position of the avatar</summary>
6511 </member>
6512 <member name="T:OpenMetaverse.AgentManager.AttachmentResourcesCallback">
6513 <summary>
6514 Called once attachment resource usage information has been collected
6515 </summary>
6516 <param name="success">Indicates if operation was successfull</param>
6517 <param name="info">Attachment resource usage information</param>
6518 </member>
6519 <member name="T:OpenMetaverse.AgentManager.ControlFlags">
6520 <summary>
6521 Used to specify movement actions for your agent
6522 </summary>
6523 </member>
6524 <member name="F:OpenMetaverse.AgentManager.ControlFlags.NONE">
6525 <summary>Empty flag</summary>
6526 </member>
6527 <member name="F:OpenMetaverse.AgentManager.ControlFlags.AGENT_CONTROL_AT_POS">
6528 <summary>Move Forward (SL Keybinding: W/Up Arrow)</summary>
6529 </member>
6530 <member name="F:OpenMetaverse.AgentManager.ControlFlags.AGENT_CONTROL_AT_NEG">
6531 <summary>Move Backward (SL Keybinding: S/Down Arrow)</summary>
6532 </member>
6533 <member name="F:OpenMetaverse.AgentManager.ControlFlags.AGENT_CONTROL_LEFT_POS">
6534 <summary>Move Left (SL Keybinding: Shift-(A/Left Arrow))</summary>
6535 </member>
6536 <member name="F:OpenMetaverse.AgentManager.ControlFlags.AGENT_CONTROL_LEFT_NEG">
6537 <summary>Move Right (SL Keybinding: Shift-(D/Right Arrow))</summary>
6538 </member>
6539 <member name="F:OpenMetaverse.AgentManager.ControlFlags.AGENT_CONTROL_UP_POS">
6540 <summary>Not Flying: Jump/Flying: Move Up (SL Keybinding: E)</summary>
6541 </member>
6542 <member name="F:OpenMetaverse.AgentManager.ControlFlags.AGENT_CONTROL_UP_NEG">
6543 <summary>Not Flying: Croutch/Flying: Move Down (SL Keybinding: C)</summary>
6544 </member>
6545 <member name="F:OpenMetaverse.AgentManager.ControlFlags.AGENT_CONTROL_PITCH_POS">
6546 <summary>Unused</summary>
6547 </member>
6548 <member name="F:OpenMetaverse.AgentManager.ControlFlags.AGENT_CONTROL_PITCH_NEG">
6549 <summary>Unused</summary>
6550 </member>
6551 <member name="F:OpenMetaverse.AgentManager.ControlFlags.AGENT_CONTROL_YAW_POS">
6552 <summary>Unused</summary>
6553 </member>
6554 <member name="F:OpenMetaverse.AgentManager.ControlFlags.AGENT_CONTROL_YAW_NEG">
6555 <summary>Unused</summary>
6556 </member>
6557 <member name="F:OpenMetaverse.AgentManager.ControlFlags.AGENT_CONTROL_FAST_AT">
6558 <summary>ORed with AGENT_CONTROL_AT_* if the keyboard is being used</summary>
6559 </member>
6560 <member name="F:OpenMetaverse.AgentManager.ControlFlags.AGENT_CONTROL_FAST_LEFT">
6561 <summary>ORed with AGENT_CONTROL_LEFT_* if the keyboard is being used</summary>
6562 </member>
6563 <member name="F:OpenMetaverse.AgentManager.ControlFlags.AGENT_CONTROL_FAST_UP">
6564 <summary>ORed with AGENT_CONTROL_UP_* if the keyboard is being used</summary>
6565 </member>
6566 <member name="F:OpenMetaverse.AgentManager.ControlFlags.AGENT_CONTROL_FLY">
6567 <summary>Fly</summary>
6568 </member>
6569 <member name="F:OpenMetaverse.AgentManager.ControlFlags.AGENT_CONTROL_STOP">
6570 <summary></summary>
6571 </member>
6572 <member name="F:OpenMetaverse.AgentManager.ControlFlags.AGENT_CONTROL_FINISH_ANIM">
6573 <summary>Finish our current animation</summary>
6574 </member>
6575 <member name="F:OpenMetaverse.AgentManager.ControlFlags.AGENT_CONTROL_STAND_UP">
6576 <summary>Stand up from the ground or a prim seat</summary>
6577 </member>
6578 <member name="F:OpenMetaverse.AgentManager.ControlFlags.AGENT_CONTROL_SIT_ON_GROUND">
6579 <summary>Sit on the ground at our current location</summary>
6580 </member>
6581 <member name="F:OpenMetaverse.AgentManager.ControlFlags.AGENT_CONTROL_MOUSELOOK">
6582 <summary>Whether mouselook is currently enabled</summary>
6583 </member>
6584 <member name="F:OpenMetaverse.AgentManager.ControlFlags.AGENT_CONTROL_NUDGE_AT_POS">
6585 <summary>Legacy, used if a key was pressed for less than a certain amount of time</summary>
6586 </member>
6587 <member name="F:OpenMetaverse.AgentManager.ControlFlags.AGENT_CONTROL_NUDGE_AT_NEG">
6588 <summary>Legacy, used if a key was pressed for less than a certain amount of time</summary>
6589 </member>
6590 <member name="F:OpenMetaverse.AgentManager.ControlFlags.AGENT_CONTROL_NUDGE_LEFT_POS">
6591 <summary>Legacy, used if a key was pressed for less than a certain amount of time</summary>
6592 </member>
6593 <member name="F:OpenMetaverse.AgentManager.ControlFlags.AGENT_CONTROL_NUDGE_LEFT_NEG">
6594 <summary>Legacy, used if a key was pressed for less than a certain amount of time</summary>
6595 </member>
6596 <member name="F:OpenMetaverse.AgentManager.ControlFlags.AGENT_CONTROL_NUDGE_UP_POS">
6597 <summary>Legacy, used if a key was pressed for less than a certain amount of time</summary>
6598 </member>
6599 <member name="F:OpenMetaverse.AgentManager.ControlFlags.AGENT_CONTROL_NUDGE_UP_NEG">
6600 <summary>Legacy, used if a key was pressed for less than a certain amount of time</summary>
6601 </member>
6602 <member name="F:OpenMetaverse.AgentManager.ControlFlags.AGENT_CONTROL_TURN_LEFT">
6603 <summary></summary>
6604 </member>
6605 <member name="F:OpenMetaverse.AgentManager.ControlFlags.AGENT_CONTROL_TURN_RIGHT">
6606 <summary></summary>
6607 </member>
6608 <member name="F:OpenMetaverse.AgentManager.ControlFlags.AGENT_CONTROL_AWAY">
6609 <summary>Set when the avatar is idled or set to away. Note that the away animation is
6610 activated separately from setting this flag</summary>
6611 </member>
6612 <member name="F:OpenMetaverse.AgentManager.ControlFlags.AGENT_CONTROL_LBUTTON_DOWN">
6613 <summary></summary>
6614 </member>
6615 <member name="F:OpenMetaverse.AgentManager.ControlFlags.AGENT_CONTROL_LBUTTON_UP">
6616 <summary></summary>
6617 </member>
6618 <member name="F:OpenMetaverse.AgentManager.ControlFlags.AGENT_CONTROL_ML_LBUTTON_DOWN">
6619 <summary></summary>
6620 </member>
6621 <member name="F:OpenMetaverse.AgentManager.ControlFlags.AGENT_CONTROL_ML_LBUTTON_UP">
6622 <summary></summary>
6623 </member>
6624 <member name="T:OpenMetaverse.AgentManager.AgentMovement">
6625 <summary>
6626 Agent movement and camera control
6627
6628 Agent movement is controlled by setting specific <seealso cref="T:AgentManager.ControlFlags"/>
6629 After the control flags are set, An AgentUpdate is required to update the simulator of the specified flags
6630 This is most easily accomplished by setting one or more of the AgentMovement properties
6631
6632 Movement of an avatar is always based on a compass direction, for example AtPos will move the
6633 agent from West to East or forward on the X Axis, AtNeg will of course move agent from
6634 East to West or backward on the X Axis, LeftPos will be South to North or forward on the Y Axis
6635 The Z axis is Up, finer grained control of movements can be done using the Nudge properties
6636 </summary>
6637 </member>
6638 <member name="F:OpenMetaverse.AgentManager.AgentMovement.Camera">
6639 <summary>Agent camera controls</summary>
6640 </member>
6641 <member name="F:OpenMetaverse.AgentManager.AgentMovement.Flags">
6642 <summary>Currently only used for hiding your group title</summary>
6643 </member>
6644 <member name="F:OpenMetaverse.AgentManager.AgentMovement.State">
6645 <summary>Action state of the avatar, which can currently be
6646 typing and editing</summary>
6647 </member>
6648 <member name="F:OpenMetaverse.AgentManager.AgentMovement.BodyRotation">
6649 <summary></summary>
6650 </member>
6651 <member name="F:OpenMetaverse.AgentManager.AgentMovement.HeadRotation">
6652 <summary></summary>
6653 </member>
6654 <member name="F:OpenMetaverse.AgentManager.AgentMovement.LastBodyRotation">
6655 <summary></summary>
6656 </member>
6657 <member name="F:OpenMetaverse.AgentManager.AgentMovement.LastHeadRotation">
6658 <summary></summary>
6659 </member>
6660 <member name="F:OpenMetaverse.AgentManager.AgentMovement.LastCameraCenter">
6661 <summary></summary>
6662 </member>
6663 <member name="F:OpenMetaverse.AgentManager.AgentMovement.LastCameraXAxis">
6664 <summary></summary>
6665 </member>
6666 <member name="F:OpenMetaverse.AgentManager.AgentMovement.LastCameraYAxis">
6667 <summary></summary>
6668 </member>
6669 <member name="F:OpenMetaverse.AgentManager.AgentMovement.LastCameraZAxis">
6670 <summary></summary>
6671 </member>
6672 <member name="F:OpenMetaverse.AgentManager.AgentMovement.LastFar">
6673 <summary></summary>
6674 </member>
6675 <member name="F:OpenMetaverse.AgentManager.AgentMovement.updateTimer">
6676 <summary>Timer for sending AgentUpdate packets</summary>
6677 </member>
6678 <member name="M:OpenMetaverse.AgentManager.AgentMovement.#ctor(OpenMetaverse.GridClient)">
6679 <summary>Default constructor</summary>
6680 </member>
6681 <member name="M:OpenMetaverse.AgentManager.AgentMovement.UpdateFromHeading(System.Double,System.Boolean)">
6682 <summary>
6683 Send an AgentUpdate with the camera set at the current agent
6684 position and pointing towards the heading specified
6685 </summary>
6686 <param name="heading">Camera rotation in radians</param>
6687 <param name="reliable">Whether to send the AgentUpdate reliable
6688 or not</param>
6689 </member>
6690 <member name="M:OpenMetaverse.AgentManager.AgentMovement.TurnToward(OpenMetaverse.Vector3)">
6691 <summary>
6692 Rotates the avatar body and camera toward a target position.
6693 This will also anchor the camera position on the avatar
6694 </summary>
6695 <param name="target">Region coordinates to turn toward</param>
6696 </member>
6697 <member name="M:OpenMetaverse.AgentManager.AgentMovement.SendUpdate">
6698 <summary>
6699 Send new AgentUpdate packet to update our current camera
6700 position and rotation
6701 </summary>
6702 </member>
6703 <member name="M:OpenMetaverse.AgentManager.AgentMovement.SendUpdate(System.Boolean)">
6704 <summary>
6705 Send new AgentUpdate packet to update our current camera
6706 position and rotation
6707 </summary>
6708 <param name="reliable">Whether to require server acknowledgement
6709 of this packet</param>
6710 </member>
6711 <member name="M:OpenMetaverse.AgentManager.AgentMovement.SendUpdate(System.Boolean,OpenMetaverse.Simulator)">
6712 <summary>
6713 Send new AgentUpdate packet to update our current camera
6714 position and rotation
6715 </summary>
6716 <param name="reliable">Whether to require server acknowledgement
6717 of this packet</param>
6718 <param name="simulator">Simulator to send the update to</param>
6719 </member>
6720 <member name="M:OpenMetaverse.AgentManager.AgentMovement.SendManualUpdate(OpenMetaverse.AgentManager.ControlFlags,OpenMetaverse.Vector3,OpenMetaverse.Vector3,OpenMetaverse.Vector3,OpenMetaverse.Vector3,OpenMetaverse.Quaternion,OpenMetaverse.Quaternion,System.Single,OpenMetaverse.AgentFlags,OpenMetaverse.AgentState,System.Boolean)">
6721 <summary>
6722 Builds an AgentUpdate packet entirely from parameters. This
6723 will not touch the state of Self.Movement or
6724 Self.Movement.Camera in any way
6725 </summary>
6726 <param name="controlFlags"></param>
6727 <param name="position"></param>
6728 <param name="forwardAxis"></param>
6729 <param name="leftAxis"></param>
6730 <param name="upAxis"></param>
6731 <param name="bodyRotation"></param>
6732 <param name="headRotation"></param>
6733 <param name="farClip"></param>
6734 <param name="reliable"></param>
6735 <param name="flags"></param>
6736 <param name="state"></param>
6737 </member>
6738 <member name="P:OpenMetaverse.AgentManager.AgentMovement.AtPos">
6739 <summary>Move agent positive along the X axis</summary>
6740 </member>
6741 <member name="P:OpenMetaverse.AgentManager.AgentMovement.AtNeg">
6742 <summary>Move agent negative along the X axis</summary>
6743 </member>
6744 <member name="P:OpenMetaverse.AgentManager.AgentMovement.LeftPos">
6745 <summary>Move agent positive along the Y axis</summary>
6746 </member>
6747 <member name="P:OpenMetaverse.AgentManager.AgentMovement.LeftNeg">
6748 <summary>Move agent negative along the Y axis</summary>
6749 </member>
6750 <member name="P:OpenMetaverse.AgentManager.AgentMovement.UpPos">
6751 <summary>Move agent positive along the Z axis</summary>
6752 </member>
6753 <member name="P:OpenMetaverse.AgentManager.AgentMovement.UpNeg">
6754 <summary>Move agent negative along the Z axis</summary>
6755 </member>
6756 <member name="P:OpenMetaverse.AgentManager.AgentMovement.PitchPos">
6757 <summary></summary>
6758 </member>
6759 <member name="P:OpenMetaverse.AgentManager.AgentMovement.PitchNeg">
6760 <summary></summary>
6761 </member>
6762 <member name="P:OpenMetaverse.AgentManager.AgentMovement.YawPos">
6763 <summary></summary>
6764 </member>
6765 <member name="P:OpenMetaverse.AgentManager.AgentMovement.YawNeg">
6766 <summary></summary>
6767 </member>
6768 <member name="P:OpenMetaverse.AgentManager.AgentMovement.FastAt">
6769 <summary></summary>
6770 </member>
6771 <member name="P:OpenMetaverse.AgentManager.AgentMovement.FastLeft">
6772 <summary></summary>
6773 </member>
6774 <member name="P:OpenMetaverse.AgentManager.AgentMovement.FastUp">
6775 <summary></summary>
6776 </member>
6777 <member name="P:OpenMetaverse.AgentManager.AgentMovement.Fly">
6778 <summary>Causes simulator to make agent fly</summary>
6779 </member>
6780 <member name="P:OpenMetaverse.AgentManager.AgentMovement.Stop">
6781 <summary>Stop movement</summary>
6782 </member>
6783 <member name="P:OpenMetaverse.AgentManager.AgentMovement.FinishAnim">
6784 <summary>Finish animation</summary>
6785 </member>
6786 <member name="P:OpenMetaverse.AgentManager.AgentMovement.StandUp">
6787 <summary>Stand up from a sit</summary>
6788 </member>
6789 <member name="P:OpenMetaverse.AgentManager.AgentMovement.SitOnGround">
6790 <summary>Tells simulator to sit agent on ground</summary>
6791 </member>
6792 <member name="P:OpenMetaverse.AgentManager.AgentMovement.Mouselook">
6793 <summary>Place agent into mouselook mode</summary>
6794 </member>
6795 <member name="P:OpenMetaverse.AgentManager.AgentMovement.NudgeAtPos">
6796 <summary>Nudge agent positive along the X axis</summary>
6797 </member>
6798 <member name="P:OpenMetaverse.AgentManager.AgentMovement.NudgeAtNeg">
6799 <summary>Nudge agent negative along the X axis</summary>
6800 </member>
6801 <member name="P:OpenMetaverse.AgentManager.AgentMovement.NudgeLeftPos">
6802 <summary>Nudge agent positive along the Y axis</summary>
6803 </member>
6804 <member name="P:OpenMetaverse.AgentManager.AgentMovement.NudgeLeftNeg">
6805 <summary>Nudge agent negative along the Y axis</summary>
6806 </member>
6807 <member name="P:OpenMetaverse.AgentManager.AgentMovement.NudgeUpPos">
6808 <summary>Nudge agent positive along the Z axis</summary>
6809 </member>
6810 <member name="P:OpenMetaverse.AgentManager.AgentMovement.NudgeUpNeg">
6811 <summary>Nudge agent negative along the Z axis</summary>
6812 </member>
6813 <member name="P:OpenMetaverse.AgentManager.AgentMovement.TurnLeft">
6814 <summary></summary>
6815 </member>
6816 <member name="P:OpenMetaverse.AgentManager.AgentMovement.TurnRight">
6817 <summary></summary>
6818 </member>
6819 <member name="P:OpenMetaverse.AgentManager.AgentMovement.Away">
6820 <summary>Tell simulator to mark agent as away</summary>
6821 </member>
6822 <member name="P:OpenMetaverse.AgentManager.AgentMovement.LButtonDown">
6823 <summary></summary>
6824 </member>
6825 <member name="P:OpenMetaverse.AgentManager.AgentMovement.LButtonUp">
6826 <summary></summary>
6827 </member>
6828 <member name="P:OpenMetaverse.AgentManager.AgentMovement.MLButtonDown">
6829 <summary></summary>
6830 </member>
6831 <member name="P:OpenMetaverse.AgentManager.AgentMovement.MLButtonUp">
6832 <summary></summary>
6833 </member>
6834 <member name="P:OpenMetaverse.AgentManager.AgentMovement.AlwaysRun">
6835 <summary>
6836 Returns "always run" value, or changes it by sending a SetAlwaysRunPacket
6837 </summary>
6838 </member>
6839 <member name="P:OpenMetaverse.AgentManager.AgentMovement.AgentControls">
6840 <summary>The current value of the agent control flags</summary>
6841 </member>
6842 <member name="P:OpenMetaverse.AgentManager.AgentMovement.UpdateInterval">
6843 <summary>Gets or sets the interval in milliseconds at which
6844 AgentUpdate packets are sent to the current simulator. Setting
6845 this to a non-zero value will also enable the packet sending if
6846 it was previously off, and setting it to zero will disable</summary>
6847 </member>
6848 <member name="P:OpenMetaverse.AgentManager.AgentMovement.UpdateEnabled">
6849 <summary>Gets or sets whether AgentUpdate packets are sent to
6850 the current simulator</summary>
6851 </member>
6852 <member name="P:OpenMetaverse.AgentManager.AgentMovement.AutoResetControls">
6853 <summary>Reset movement controls every time we send an update</summary>
6854 </member>
6855 <member name="T:OpenMetaverse.AgentManager.AgentMovement.AgentCamera">
6856 <summary>
6857 Camera controls for the agent, mostly a thin wrapper around
6858 CoordinateFrame. This class is only responsible for state
6859 tracking and math, it does not send any packets
6860 </summary>
6861 </member>
6862 <member name="F:OpenMetaverse.AgentManager.AgentMovement.AgentCamera.Far">
6863 <summary></summary>
6864 </member>
6865 <member name="F:OpenMetaverse.AgentManager.AgentMovement.AgentCamera.Frame">
6866 <summary>The camera is a local frame of reference inside of
6867 the larger grid space. This is where the math happens</summary>
6868 </member>
6869 <member name="M:OpenMetaverse.AgentManager.AgentMovement.AgentCamera.#ctor">
6870 <summary>
6871 Default constructor
6872 </summary>
6873 </member>
6874 <member name="P:OpenMetaverse.AgentManager.AgentMovement.AgentCamera.Position">
6875 <summary></summary>
6876 </member>
6877 <member name="P:OpenMetaverse.AgentManager.AgentMovement.AgentCamera.AtAxis">
6878 <summary></summary>
6879 </member>
6880 <member name="P:OpenMetaverse.AgentManager.AgentMovement.AgentCamera.LeftAxis">
6881 <summary></summary>
6882 </member>
6883 <member name="P:OpenMetaverse.AgentManager.AgentMovement.AgentCamera.UpAxis">
6884 <summary></summary>
6885 </member>
6886 <member name="T:OpenMetaverse.ChatEventArgs"> 2699 <member name="T:OpenMetaverse.ChatEventArgs">
6887 <summary> 2700 <summary>
6888
6889 </summary> 2701 </summary>
6890 </member> 2702 </member>
6891 <member name="M:OpenMetaverse.ChatEventArgs.#ctor(OpenMetaverse.Simulator,System.String,OpenMetaverse.ChatAudibleLevel,OpenMetaverse.ChatType,OpenMetaverse.ChatSourceType,System.String,OpenMetaverse.UUID,OpenMetaverse.UUID,OpenMetaverse.Vector3)"> 2703 <member name="M:OpenMetaverse.ChatEventArgs.#ctor(OpenMetaverse.Simulator,System.String,OpenMetaverse.ChatAudibleLevel,OpenMetaverse.ChatType,OpenMetaverse.ChatSourceType,System.String,OpenMetaverse.UUID,OpenMetaverse.UUID,OpenMetaverse.Vector3)">
@@ -6932,7 +2744,7 @@
6932 <member name="T:OpenMetaverse.ScriptDialogEventArgs"> 2744 <member name="T:OpenMetaverse.ScriptDialogEventArgs">
6933 <summary>Contains the data sent when a primitive opens a dialog with this agent</summary> 2745 <summary>Contains the data sent when a primitive opens a dialog with this agent</summary>
6934 </member> 2746 </member>
6935 <member name="M:OpenMetaverse.ScriptDialogEventArgs.#ctor(System.String,System.String,OpenMetaverse.UUID,OpenMetaverse.UUID,System.String,System.String,System.Int32,System.Collections.Generic.List{System.String})"> 2747 <member name="M:OpenMetaverse.ScriptDialogEventArgs.#ctor(System.String,System.String,OpenMetaverse.UUID,OpenMetaverse.UUID,System.String,System.String,System.Int32,System.Collections.Generic.List{System.String},OpenMetaverse.UUID)">
6936 <summary> 2748 <summary>
6937 Construct a new instance of the ScriptDialogEventArgs 2749 Construct a new instance of the ScriptDialogEventArgs
6938 </summary> 2750 </summary>
@@ -6944,6 +2756,7 @@
6944 <param name="lastName">The last name of the senders owner</param> 2756 <param name="lastName">The last name of the senders owner</param>
6945 <param name="chatChannel">The communication channel the dialog was sent on</param> 2757 <param name="chatChannel">The communication channel the dialog was sent on</param>
6946 <param name="buttons">The string labels containing the options presented in this dialog</param> 2758 <param name="buttons">The string labels containing the options presented in this dialog</param>
2759 <param name="ownerID">UUID of the scritped object owner</param>
6947 </member> 2760 </member>
6948 <member name="P:OpenMetaverse.ScriptDialogEventArgs.Message"> 2761 <member name="P:OpenMetaverse.ScriptDialogEventArgs.Message">
6949 <summary>Get the dialog message</summary> 2762 <summary>Get the dialog message</summary>
@@ -6970,6 +2783,9 @@
6970 <member name="P:OpenMetaverse.ScriptDialogEventArgs.ButtonLabels"> 2783 <member name="P:OpenMetaverse.ScriptDialogEventArgs.ButtonLabels">
6971 <summary>Get the string labels containing the options presented in this dialog</summary> 2784 <summary>Get the string labels containing the options presented in this dialog</summary>
6972 </member> 2785 </member>
2786 <member name="P:OpenMetaverse.ScriptDialogEventArgs.OwnerID">
2787 <summary>UUID of the scritped object owner</summary>
2788 </member>
6973 <member name="T:OpenMetaverse.ScriptQuestionEventArgs"> 2789 <member name="T:OpenMetaverse.ScriptQuestionEventArgs">
6974 <summary>Contains the data sent when a primitive requests debit or other permissions 2790 <summary>Contains the data sent when a primitive requests debit or other permissions
6975 requesting a YES or NO answer</summary> 2791 requesting a YES or NO answer</summary>
@@ -7004,7 +2820,7 @@
7004 <summary>Get the permissions being requested</summary> 2820 <summary>Get the permissions being requested</summary>
7005 </member> 2821 </member>
7006 <member name="T:OpenMetaverse.LoadUrlEventArgs"> 2822 <member name="T:OpenMetaverse.LoadUrlEventArgs">
7007 <summary>Contains the data sent when a primitive sends a request 2823 <summary>Contains the data sent when a primitive sends a request
7008 to an agent to open the specified URL</summary> 2824 to an agent to open the specified URL</summary>
7009 </member> 2825 </member>
7010 <member name="M:OpenMetaverse.LoadUrlEventArgs.#ctor(System.String,OpenMetaverse.UUID,OpenMetaverse.UUID,System.Boolean,System.String,System.String)"> 2826 <member name="M:OpenMetaverse.LoadUrlEventArgs.#ctor(System.String,OpenMetaverse.UUID,OpenMetaverse.UUID,System.Boolean,System.String,System.String)">
@@ -7067,10 +2883,10 @@
7067 </summary> 2883 </summary>
7068 </member> 2884 </member>
7069 <member name="T:OpenMetaverse.MoneyBalanceReplyEventArgs"> 2885 <member name="T:OpenMetaverse.MoneyBalanceReplyEventArgs">
7070 <summary>Contains the transaction summary when an item is purchased, 2886 <summary>Contains the transaction summary when an item is purchased,
7071 money is given, or land is purchased</summary> 2887 money is given, or land is purchased</summary>
7072 </member> 2888 </member>
7073 <member name="M:OpenMetaverse.MoneyBalanceReplyEventArgs.#ctor(OpenMetaverse.UUID,System.Boolean,System.Int32,System.Int32,System.Int32,System.String)"> 2889 <member name="M:OpenMetaverse.MoneyBalanceReplyEventArgs.#ctor(OpenMetaverse.UUID,System.Boolean,System.Int32,System.Int32,System.Int32,System.String,OpenMetaverse.TransactionInfo)">
7074 <summary> 2890 <summary>
7075 Construct a new instance of the MoneyBalanceReplyEventArgs object 2891 Construct a new instance of the MoneyBalanceReplyEventArgs object
7076 </summary> 2892 </summary>
@@ -7099,6 +2915,9 @@
7099 <member name="P:OpenMetaverse.MoneyBalanceReplyEventArgs.Description"> 2915 <member name="P:OpenMetaverse.MoneyBalanceReplyEventArgs.Description">
7100 <summary>Get the description of the transaction</summary> 2916 <summary>Get the description of the transaction</summary>
7101 </member> 2917 </member>
2918 <member name="P:OpenMetaverse.MoneyBalanceReplyEventArgs.TransactionInfo">
2919 <summary>Detailed transaction information</summary>
2920 </member>
7102 <member name="T:OpenMetaverse.AgentDataReplyEventArgs"> 2921 <member name="T:OpenMetaverse.AgentDataReplyEventArgs">
7103 <summary>Data sent from the simulator containing information about your agent and active group information</summary> 2922 <summary>Data sent from the simulator containing information about your agent and active group information</summary>
7104 </member> 2923 </member>
@@ -7312,7 +3131,7 @@
7312 <summary>Get the velocity of the primitive sending the sensor</summary> 3131 <summary>Get the velocity of the primitive sending the sensor</summary>
7313 </member> 3132 </member>
7314 <member name="T:OpenMetaverse.AvatarSitResponseEventArgs"> 3133 <member name="T:OpenMetaverse.AvatarSitResponseEventArgs">
7315 <summary>Contains the response data returned from the simulator in response to a <see cref="!:RequestSit"/></summary> 3134 <summary>Contains the response data returned from the simulator in response to a <see cref="!:RequestSit" /></summary>
7316 </member> 3135 </member>
7317 <member name="M:OpenMetaverse.AvatarSitResponseEventArgs.#ctor(OpenMetaverse.UUID,System.Boolean,OpenMetaverse.Vector3,OpenMetaverse.Vector3,System.Boolean,OpenMetaverse.Vector3,OpenMetaverse.Quaternion)"> 3136 <member name="M:OpenMetaverse.AvatarSitResponseEventArgs.#ctor(OpenMetaverse.UUID,System.Boolean,OpenMetaverse.Vector3,OpenMetaverse.Vector3,System.Boolean,OpenMetaverse.Vector3,OpenMetaverse.Quaternion)">
7318 <summary>Construct a new instance of the AvatarSitResponseEventArgs object</summary> 3137 <summary>Construct a new instance of the AvatarSitResponseEventArgs object</summary>
@@ -7370,2431 +3189,5516 @@
7370 <member name="P:OpenMetaverse.ChatSessionMemberLeftEventArgs.AgentID"> 3189 <member name="P:OpenMetaverse.ChatSessionMemberLeftEventArgs.AgentID">
7371 <summary>Get the ID of the agent that left</summary> 3190 <summary>Get the ID of the agent that left</summary>
7372 </member> 3191 </member>
7373 <member name="M:OpenMetaverse.Messages.MessageUtils.DecodeEvent(System.String,OpenMetaverse.StructuredData.OSDMap)"> 3192 <member name="T:OpenMetaverse.SetDisplayNameReplyEventArgs">
3193 <summary>Event arguments with the result of setting display name operation</summary>
3194 </member>
3195 <member name="M:OpenMetaverse.SetDisplayNameReplyEventArgs.#ctor(System.Int32,System.String,OpenMetaverse.AgentDisplayName)">
3196 <summary>Default constructor</summary>
3197 </member>
3198 <member name="P:OpenMetaverse.SetDisplayNameReplyEventArgs.Status">
3199 <summary>Status code, 200 indicates settign display name was successful</summary>
3200 </member>
3201 <member name="P:OpenMetaverse.SetDisplayNameReplyEventArgs.Reason">
3202 <summary>Textual description of the status</summary>
3203 </member>
3204 <member name="P:OpenMetaverse.SetDisplayNameReplyEventArgs.DisplayName">
3205 <summary>Details of the newly set display name</summary>
3206 </member>
3207 <member name="T:OpenMetaverse.AgentThrottle">
7374 <summary> 3208 <summary>
7375 Return a decoded capabilities message as a strongly typed object 3209 Throttles the network traffic for various different traffic types.
3210 Access this class through GridClient.Throttle
7376 </summary> 3211 </summary>
7377 <param name="eventName">A string containing the name of the capabilities message key</param>
7378 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap"/> to decode</param>
7379 <returns>A strongly typed object containing the decoded information from the capabilities message, or null
7380 if no existing Message object exists for the specified event</returns>
7381 </member> 3212 </member>
7382 <member name="T:OpenMetaverse.Assets.AssetNotecard"> 3213 <member name="M:OpenMetaverse.AgentThrottle.#ctor(OpenMetaverse.GridClient)">
7383 <summary> 3214 <summary>
7384 Represents a string of characters encoded with specific formatting properties 3215 Default constructor, uses a default high total of 1500 KBps (1536000)
7385 </summary> 3216 </summary>
7386 </member> 3217 </member>
7387 <member name="F:OpenMetaverse.Assets.AssetNotecard.BodyText"> 3218 <member name="M:OpenMetaverse.AgentThrottle.#ctor(System.Byte[],System.Int32)">
7388 <summary>A text string containing main text of the notecard</summary> 3219 <summary>
3220 Constructor that decodes an existing AgentThrottle packet in to
3221 individual values
3222 </summary>
3223 <param name="data">Reference to the throttle data in an AgentThrottle
3224 packet</param>
3225 <param name="pos">Offset position to start reading at in the
3226 throttle data</param>
3227 <remarks>This is generally not needed in clients as the server will
3228 never send a throttle packet to the client</remarks>
7389 </member> 3229 </member>
7390 <member name="F:OpenMetaverse.Assets.AssetNotecard.EmbeddedItems"> 3230 <member name="P:OpenMetaverse.AgentThrottle.Resend">
7391 <summary>List of <see cref="T:OpenMetaverse.InventoryItem"/>s embedded on the notecard</summary> 3231 <summary>Maximum bits per second for resending unacknowledged packets</summary>
7392 </member> 3232 </member>
7393 <member name="M:OpenMetaverse.Assets.AssetNotecard.#ctor"> 3233 <member name="P:OpenMetaverse.AgentThrottle.Land">
7394 <summary>Construct an Asset of type Notecard</summary> 3234 <summary>Maximum bits per second for LayerData terrain</summary>
7395 </member> 3235 </member>
7396 <member name="M:OpenMetaverse.Assets.AssetNotecard.#ctor(OpenMetaverse.UUID,System.Byte[])"> 3236 <member name="P:OpenMetaverse.AgentThrottle.Wind">
3237 <summary>Maximum bits per second for LayerData wind data</summary>
3238 </member>
3239 <member name="P:OpenMetaverse.AgentThrottle.Cloud">
3240 <summary>Maximum bits per second for LayerData clouds</summary>
3241 </member>
3242 <member name="P:OpenMetaverse.AgentThrottle.Task">
3243 <summary>Unknown, includes object data</summary>
3244 </member>
3245 <member name="P:OpenMetaverse.AgentThrottle.Texture">
3246 <summary>Maximum bits per second for textures</summary>
3247 </member>
3248 <member name="P:OpenMetaverse.AgentThrottle.Asset">
3249 <summary>Maximum bits per second for downloaded assets</summary>
3250 </member>
3251 <member name="P:OpenMetaverse.AgentThrottle.Total">
3252 <summary>Maximum bits per second the entire connection, divided up
3253 between invidiual streams using default multipliers</summary>
3254 </member>
3255 <member name="M:OpenMetaverse.AgentThrottle.Set">
7397 <summary> 3256 <summary>
7398 Construct an Asset object of type Notecard 3257 Send an AgentThrottle packet to the current server using the
3258 current values
7399 </summary> 3259 </summary>
7400 <param name="assetID">A unique <see cref="T:OpenMetaverse.UUID"/> specific to this asset</param>
7401 <param name="assetData">A byte array containing the raw asset data</param>
7402 </member> 3260 </member>
7403 <member name="M:OpenMetaverse.Assets.AssetNotecard.Encode"> 3261 <member name="M:OpenMetaverse.AgentThrottle.Set(OpenMetaverse.Simulator)">
7404 <summary> 3262 <summary>
7405 Encode the raw contents of a string with the specific Linden Text properties 3263 Send an AgentThrottle packet to the specified server using the
3264 current values
7406 </summary> 3265 </summary>
7407 </member> 3266 </member>
7408 <member name="M:OpenMetaverse.Assets.AssetNotecard.Decode"> 3267 <member name="M:OpenMetaverse.AgentThrottle.ToBytes">
7409 <summary> 3268 <summary>
7410 Decode the raw asset data including the Linden Text properties 3269 Convert the current throttle values to a byte array that can be put
3270 in an AgentThrottle packet
7411 </summary> 3271 </summary>
7412 <returns>true if the AssetData was successfully decoded</returns> 3272 <returns>Byte array containing all the throttle values</returns>
7413 </member> 3273 </member>
7414 <member name="P:OpenMetaverse.Assets.AssetNotecard.AssetType"> 3274 <member name="T:OpenMetaverse.Animations">
7415 <summary>Override the base classes AssetType</summary> 3275 <summary>
3276 Static pre-defined animations available to all agents
3277 </summary>
7416 </member> 3278 </member>
7417 <member name="T:OpenMetaverse.Settings"> 3279 <member name="F:OpenMetaverse.Animations.AFRAID">
3280 <summary>Agent with afraid expression on face</summary>
3281 </member>
3282 <member name="F:OpenMetaverse.Animations.AIM_BAZOOKA_R">
3283 <summary>Agent aiming a bazooka (right handed)</summary>
3284 </member>
3285 <member name="F:OpenMetaverse.Animations.AIM_BOW_L">
3286 <summary>Agent aiming a bow (left handed)</summary>
3287 </member>
3288 <member name="F:OpenMetaverse.Animations.AIM_HANDGUN_R">
3289 <summary>Agent aiming a hand gun (right handed)</summary>
3290 </member>
3291 <member name="F:OpenMetaverse.Animations.AIM_RIFLE_R">
3292 <summary>Agent aiming a rifle (right handed)</summary>
3293 </member>
3294 <member name="F:OpenMetaverse.Animations.ANGRY">
3295 <summary>Agent with angry expression on face</summary>
3296 </member>
3297 <member name="F:OpenMetaverse.Animations.AWAY">
3298 <summary>Agent hunched over (away)</summary>
3299 </member>
3300 <member name="F:OpenMetaverse.Animations.BACKFLIP">
3301 <summary>Agent doing a backflip</summary>
3302 </member>
3303 <member name="F:OpenMetaverse.Animations.BELLY_LAUGH">
3304 <summary>Agent laughing while holding belly</summary>
3305 </member>
3306 <member name="F:OpenMetaverse.Animations.BLOW_KISS">
3307 <summary>Agent blowing a kiss</summary>
3308 </member>
3309 <member name="F:OpenMetaverse.Animations.BORED">
3310 <summary>Agent with bored expression on face</summary>
3311 </member>
3312 <member name="F:OpenMetaverse.Animations.BOW">
3313 <summary>Agent bowing to audience</summary>
3314 </member>
3315 <member name="F:OpenMetaverse.Animations.BRUSH">
3316 <summary>Agent brushing himself/herself off</summary>
3317 </member>
3318 <member name="F:OpenMetaverse.Animations.BUSY">
3319 <summary>Agent in busy mode</summary>
3320 </member>
3321 <member name="F:OpenMetaverse.Animations.CLAP">
3322 <summary>Agent clapping hands</summary>
3323 </member>
3324 <member name="F:OpenMetaverse.Animations.COURTBOW">
3325 <summary>Agent doing a curtsey bow</summary>
3326 </member>
3327 <member name="F:OpenMetaverse.Animations.CROUCH">
3328 <summary>Agent crouching</summary>
3329 </member>
3330 <member name="F:OpenMetaverse.Animations.CROUCHWALK">
3331 <summary>Agent crouching while walking</summary>
3332 </member>
3333 <member name="F:OpenMetaverse.Animations.CRY">
3334 <summary>Agent crying</summary>
3335 </member>
3336 <member name="F:OpenMetaverse.Animations.CUSTOMIZE">
3337 <summary>Agent unanimated with arms out (e.g. setting appearance)</summary>
3338 </member>
3339 <member name="F:OpenMetaverse.Animations.CUSTOMIZE_DONE">
3340 <summary>Agent re-animated after set appearance finished</summary>
3341 </member>
3342 <member name="F:OpenMetaverse.Animations.DANCE1">
3343 <summary>Agent dancing</summary>
3344 </member>
3345 <member name="F:OpenMetaverse.Animations.DANCE2">
3346 <summary>Agent dancing</summary>
3347 </member>
3348 <member name="F:OpenMetaverse.Animations.DANCE3">
3349 <summary>Agent dancing</summary>
3350 </member>
3351 <member name="F:OpenMetaverse.Animations.DANCE4">
3352 <summary>Agent dancing</summary>
3353 </member>
3354 <member name="F:OpenMetaverse.Animations.DANCE5">
3355 <summary>Agent dancing</summary>
3356 </member>
3357 <member name="F:OpenMetaverse.Animations.DANCE6">
3358 <summary>Agent dancing</summary>
3359 </member>
3360 <member name="F:OpenMetaverse.Animations.DANCE7">
3361 <summary>Agent dancing</summary>
3362 </member>
3363 <member name="F:OpenMetaverse.Animations.DANCE8">
3364 <summary>Agent dancing</summary>
3365 </member>
3366 <member name="F:OpenMetaverse.Animations.DEAD">
3367 <summary>Agent on ground unanimated</summary>
3368 </member>
3369 <member name="F:OpenMetaverse.Animations.DRINK">
3370 <summary>Agent boozing it up</summary>
3371 </member>
3372 <member name="F:OpenMetaverse.Animations.EMBARRASSED">
3373 <summary>Agent with embarassed expression on face</summary>
3374 </member>
3375 <member name="F:OpenMetaverse.Animations.EXPRESS_AFRAID">
3376 <summary>Agent with afraid expression on face</summary>
3377 </member>
3378 <member name="F:OpenMetaverse.Animations.EXPRESS_ANGER">
3379 <summary>Agent with angry expression on face</summary>
3380 </member>
3381 <member name="F:OpenMetaverse.Animations.EXPRESS_BORED">
3382 <summary>Agent with bored expression on face</summary>
3383 </member>
3384 <member name="F:OpenMetaverse.Animations.EXPRESS_CRY">
3385 <summary>Agent crying</summary>
3386 </member>
3387 <member name="F:OpenMetaverse.Animations.EXPRESS_DISDAIN">
3388 <summary>Agent showing disdain (dislike) for something</summary>
3389 </member>
3390 <member name="F:OpenMetaverse.Animations.EXPRESS_EMBARRASSED">
3391 <summary>Agent with embarassed expression on face</summary>
3392 </member>
3393 <member name="F:OpenMetaverse.Animations.EXPRESS_FROWN">
3394 <summary>Agent with frowning expression on face</summary>
3395 </member>
3396 <member name="F:OpenMetaverse.Animations.EXPRESS_KISS">
3397 <summary>Agent with kissy face</summary>
3398 </member>
3399 <member name="F:OpenMetaverse.Animations.EXPRESS_LAUGH">
3400 <summary>Agent expressing laughgter</summary>
3401 </member>
3402 <member name="F:OpenMetaverse.Animations.EXPRESS_OPEN_MOUTH">
3403 <summary>Agent with open mouth</summary>
3404 </member>
3405 <member name="F:OpenMetaverse.Animations.EXPRESS_REPULSED">
3406 <summary>Agent with repulsed expression on face</summary>
3407 </member>
3408 <member name="F:OpenMetaverse.Animations.EXPRESS_SAD">
3409 <summary>Agent expressing sadness</summary>
3410 </member>
3411 <member name="F:OpenMetaverse.Animations.EXPRESS_SHRUG">
3412 <summary>Agent shrugging shoulders</summary>
3413 </member>
3414 <member name="F:OpenMetaverse.Animations.EXPRESS_SMILE">
3415 <summary>Agent with a smile</summary>
3416 </member>
3417 <member name="F:OpenMetaverse.Animations.EXPRESS_SURPRISE">
3418 <summary>Agent expressing surprise</summary>
3419 </member>
3420 <member name="F:OpenMetaverse.Animations.EXPRESS_TONGUE_OUT">
3421 <summary>Agent sticking tongue out</summary>
3422 </member>
3423 <member name="F:OpenMetaverse.Animations.EXPRESS_TOOTHSMILE">
3424 <summary>Agent with big toothy smile</summary>
3425 </member>
3426 <member name="F:OpenMetaverse.Animations.EXPRESS_WINK">
3427 <summary>Agent winking</summary>
3428 </member>
3429 <member name="F:OpenMetaverse.Animations.EXPRESS_WORRY">
3430 <summary>Agent expressing worry</summary>
3431 </member>
3432 <member name="F:OpenMetaverse.Animations.FALLDOWN">
3433 <summary>Agent falling down</summary>
3434 </member>
3435 <member name="F:OpenMetaverse.Animations.FEMALE_WALK">
3436 <summary>Agent walking (feminine version)</summary>
3437 </member>
3438 <member name="F:OpenMetaverse.Animations.FINGER_WAG">
3439 <summary>Agent wagging finger (disapproval)</summary>
3440 </member>
3441 <member name="F:OpenMetaverse.Animations.FIST_PUMP">
3442 <summary>I'm not sure I want to know</summary>
3443 </member>
3444 <member name="F:OpenMetaverse.Animations.FLY">
3445 <summary>Agent in superman position</summary>
3446 </member>
3447 <member name="F:OpenMetaverse.Animations.FLYSLOW">
3448 <summary>Agent in superman position</summary>
3449 </member>
3450 <member name="F:OpenMetaverse.Animations.HELLO">
3451 <summary>Agent greeting another</summary>
3452 </member>
3453 <member name="F:OpenMetaverse.Animations.HOLD_BAZOOKA_R">
3454 <summary>Agent holding bazooka (right handed)</summary>
3455 </member>
3456 <member name="F:OpenMetaverse.Animations.HOLD_BOW_L">
3457 <summary>Agent holding a bow (left handed)</summary>
3458 </member>
3459 <member name="F:OpenMetaverse.Animations.HOLD_HANDGUN_R">
3460 <summary>Agent holding a handgun (right handed)</summary>
3461 </member>
3462 <member name="F:OpenMetaverse.Animations.HOLD_RIFLE_R">
3463 <summary>Agent holding a rifle (right handed)</summary>
3464 </member>
3465 <member name="F:OpenMetaverse.Animations.HOLD_THROW_R">
3466 <summary>Agent throwing an object (right handed)</summary>
3467 </member>
3468 <member name="F:OpenMetaverse.Animations.HOVER">
3469 <summary>Agent in static hover</summary>
3470 </member>
3471 <member name="F:OpenMetaverse.Animations.HOVER_DOWN">
3472 <summary>Agent hovering downward</summary>
3473 </member>
3474 <member name="F:OpenMetaverse.Animations.HOVER_UP">
3475 <summary>Agent hovering upward</summary>
3476 </member>
3477 <member name="F:OpenMetaverse.Animations.IMPATIENT">
3478 <summary>Agent being impatient</summary>
3479 </member>
3480 <member name="F:OpenMetaverse.Animations.JUMP">
3481 <summary>Agent jumping</summary>
3482 </member>
3483 <member name="F:OpenMetaverse.Animations.JUMP_FOR_JOY">
3484 <summary>Agent jumping with fervor</summary>
3485 </member>
3486 <member name="F:OpenMetaverse.Animations.KISS_MY_BUTT">
3487 <summary>Agent point to lips then rear end</summary>
3488 </member>
3489 <member name="F:OpenMetaverse.Animations.LAND">
3490 <summary>Agent landing from jump, finished flight, etc</summary>
3491 </member>
3492 <member name="F:OpenMetaverse.Animations.LAUGH_SHORT">
3493 <summary>Agent laughing</summary>
3494 </member>
3495 <member name="F:OpenMetaverse.Animations.MEDIUM_LAND">
3496 <summary>Agent landing from jump, finished flight, etc</summary>
3497 </member>
3498 <member name="F:OpenMetaverse.Animations.MOTORCYCLE_SIT">
3499 <summary>Agent sitting on a motorcycle</summary>
3500 </member>
3501 <member name="F:OpenMetaverse.Animations.MUSCLE_BEACH">
7418 <summary> 3502 <summary>
7419 Class for controlling various system settings.
7420 </summary> 3503 </summary>
7421 <remarks>Some values are readonly because they affect things that
7422 happen when the GridClient object is initialized, so changing them at
7423 runtime won't do any good. Non-readonly values may affect things that
7424 happen at login or dynamically</remarks>
7425 </member> 3504 </member>
7426 <member name="F:OpenMetaverse.Settings.AGNI_LOGIN_SERVER"> 3505 <member name="F:OpenMetaverse.Animations.NO">
7427 <summary>Main grid login server</summary> 3506 <summary>Agent moving head side to side</summary>
7428 </member> 3507 </member>
7429 <member name="F:OpenMetaverse.Settings.ADITI_LOGIN_SERVER"> 3508 <member name="F:OpenMetaverse.Animations.NO_UNHAPPY">
7430 <summary>Beta grid login server</summary> 3509 <summary>Agent moving head side to side with unhappy expression</summary>
7431 </member> 3510 </member>
7432 <member name="F:OpenMetaverse.Settings.ENABLE_INVENTORY_STORE"> 3511 <member name="F:OpenMetaverse.Animations.NYAH_NYAH">
3512 <summary>Agent taunting another</summary>
3513 </member>
3514 <member name="F:OpenMetaverse.Animations.ONETWO_PUNCH">
7433 <summary> 3515 <summary>
7434 InventoryManager requests inventory information on login,
7435 GridClient initializes an Inventory store for main inventory.
7436 </summary> 3516 </summary>
7437 </member> 3517 </member>
7438 <member name="F:OpenMetaverse.Settings.ENABLE_LIBRARY_STORE"> 3518 <member name="F:OpenMetaverse.Animations.PEACE">
3519 <summary>Agent giving peace sign</summary>
3520 </member>
3521 <member name="F:OpenMetaverse.Animations.POINT_ME">
3522 <summary>Agent pointing at self</summary>
3523 </member>
3524 <member name="F:OpenMetaverse.Animations.POINT_YOU">
3525 <summary>Agent pointing at another</summary>
3526 </member>
3527 <member name="F:OpenMetaverse.Animations.PRE_JUMP">
3528 <summary>Agent preparing for jump (bending knees)</summary>
3529 </member>
3530 <member name="F:OpenMetaverse.Animations.PUNCH_LEFT">
3531 <summary>Agent punching with left hand</summary>
3532 </member>
3533 <member name="F:OpenMetaverse.Animations.PUNCH_RIGHT">
3534 <summary>Agent punching with right hand</summary>
3535 </member>
3536 <member name="F:OpenMetaverse.Animations.REPULSED">
3537 <summary>Agent acting repulsed</summary>
3538 </member>
3539 <member name="F:OpenMetaverse.Animations.ROUNDHOUSE_KICK">
3540 <summary>Agent trying to be Chuck Norris</summary>
3541 </member>
3542 <member name="F:OpenMetaverse.Animations.RPS_COUNTDOWN">
3543 <summary>Rocks, Paper, Scissors 1, 2, 3</summary>
3544 </member>
3545 <member name="F:OpenMetaverse.Animations.RPS_PAPER">
3546 <summary>Agent with hand flat over other hand</summary>
3547 </member>
3548 <member name="F:OpenMetaverse.Animations.RPS_ROCK">
3549 <summary>Agent with fist over other hand</summary>
3550 </member>
3551 <member name="F:OpenMetaverse.Animations.RPS_SCISSORS">
3552 <summary>Agent with two fingers spread over other hand</summary>
3553 </member>
3554 <member name="F:OpenMetaverse.Animations.RUN">
3555 <summary>Agent running</summary>
3556 </member>
3557 <member name="F:OpenMetaverse.Animations.SAD">
3558 <summary>Agent appearing sad</summary>
3559 </member>
3560 <member name="F:OpenMetaverse.Animations.SALUTE">
3561 <summary>Agent saluting</summary>
3562 </member>
3563 <member name="F:OpenMetaverse.Animations.SHOOT_BOW_L">
3564 <summary>Agent shooting bow (left handed)</summary>
3565 </member>
3566 <member name="F:OpenMetaverse.Animations.SHOUT">
3567 <summary>Agent cupping mouth as if shouting</summary>
3568 </member>
3569 <member name="F:OpenMetaverse.Animations.SHRUG">
3570 <summary>Agent shrugging shoulders</summary>
3571 </member>
3572 <member name="F:OpenMetaverse.Animations.SIT">
3573 <summary>Agent in sit position</summary>
3574 </member>
3575 <member name="F:OpenMetaverse.Animations.SIT_FEMALE">
3576 <summary>Agent in sit position (feminine)</summary>
3577 </member>
3578 <member name="F:OpenMetaverse.Animations.SIT_GENERIC">
3579 <summary>Agent in sit position (generic)</summary>
3580 </member>
3581 <member name="F:OpenMetaverse.Animations.SIT_GROUND">
3582 <summary>Agent sitting on ground</summary>
3583 </member>
3584 <member name="F:OpenMetaverse.Animations.SIT_GROUND_staticRAINED">
3585 <summary>Agent sitting on ground</summary>
3586 </member>
3587 <member name="F:OpenMetaverse.Animations.SIT_TO_STAND">
7439 <summary> 3588 <summary>
7440 InventoryManager requests library information on login,
7441 GridClient initializes an Inventory store for the library.
7442 </summary> 3589 </summary>
7443 </member> 3590 </member>
7444 <member name="F:OpenMetaverse.Settings.PING_INTERVAL"> 3591 <member name="F:OpenMetaverse.Animations.SLEEP">
7445 <summary>Number of milliseconds between sending pings to each sim</summary> 3592 <summary>Agent sleeping on side</summary>
7446 </member> 3593 </member>
7447 <member name="F:OpenMetaverse.Settings.DEFAULT_AGENT_UPDATE_INTERVAL"> 3594 <member name="F:OpenMetaverse.Animations.SMOKE_IDLE">
7448 <summary>Number of milliseconds between sending camera updates</summary> 3595 <summary>Agent smoking</summary>
7449 </member> 3596 </member>
7450 <member name="F:OpenMetaverse.Settings.INTERPOLATION_INTERVAL"> 3597 <member name="F:OpenMetaverse.Animations.SMOKE_INHALE">
7451 <summary>Number of milliseconds between updating the current 3598 <summary>Agent inhaling smoke</summary>
7452 positions of moving, non-accelerating and non-colliding objects</summary>
7453 </member> 3599 </member>
7454 <member name="F:OpenMetaverse.Settings.NETWORK_TICK_INTERVAL"> 3600 <member name="F:OpenMetaverse.Animations.SMOKE_THROW_DOWN">
7455 <summary>Millisecond interval between ticks, where all ACKs are 3601 <summary>
7456 sent out and the age of unACKed packets is checked</summary> 3602 </summary>
7457 </member> 3603 </member>
7458 <member name="F:OpenMetaverse.Settings.PACKET_INBOX_SIZE"> 3604 <member name="F:OpenMetaverse.Animations.SNAPSHOT">
7459 <summary>The initial size of the packet inbox, where packets are 3605 <summary>Agent taking a picture</summary>
7460 stored before processing</summary>
7461 </member> 3606 </member>
7462 <member name="F:OpenMetaverse.Settings.MAX_PACKET_SIZE"> 3607 <member name="F:OpenMetaverse.Animations.STAND">
7463 <summary>Maximum size of packet that we want to send over the wire</summary> 3608 <summary>Agent standing</summary>
7464 </member> 3609 </member>
7465 <member name="F:OpenMetaverse.Settings.MAX_SEQUENCE"> 3610 <member name="F:OpenMetaverse.Animations.STANDUP">
7466 <summary>The maximum value of a packet sequence number before it 3611 <summary>Agent standing up</summary>
7467 rolls over back to one</summary>
7468 </member> 3612 </member>
7469 <member name="F:OpenMetaverse.Settings.PACKET_ARCHIVE_SIZE"> 3613 <member name="F:OpenMetaverse.Animations.STAND_1">
7470 <summary>The maximum size of the sequence number archive, used to 3614 <summary>Agent standing</summary>
7471 check for resent and/or duplicate packets</summary>
7472 </member> 3615 </member>
7473 <member name="F:OpenMetaverse.Settings.RESOURCE_DIR"> 3616 <member name="F:OpenMetaverse.Animations.STAND_2">
7474 <summary>The relative directory where external resources are kept</summary> 3617 <summary>Agent standing</summary>
7475 </member> 3618 </member>
7476 <member name="F:OpenMetaverse.Settings.LOGIN_SERVER"> 3619 <member name="F:OpenMetaverse.Animations.STAND_3">
7477 <summary>Login server to connect to</summary> 3620 <summary>Agent standing</summary>
7478 </member> 3621 </member>
7479 <member name="F:OpenMetaverse.Settings.BIND_ADDR"> 3622 <member name="F:OpenMetaverse.Animations.STAND_4">
7480 <summary>IP Address the client will bind to</summary> 3623 <summary>Agent standing</summary>
7481 </member> 3624 </member>
7482 <member name="F:OpenMetaverse.Settings.USE_LLSD_LOGIN"> 3625 <member name="F:OpenMetaverse.Animations.STRETCH">
7483 <summary>Use XML-RPC Login or LLSD Login, default is XML-RPC Login</summary> 3626 <summary>Agent stretching</summary>
7484 </member> 3627 </member>
7485 <member name="F:OpenMetaverse.Settings.TRANSFER_TIMEOUT"> 3628 <member name="F:OpenMetaverse.Animations.STRIDE">
7486 <summary>Number of milliseconds before an asset transfer will time 3629 <summary>Agent in stride (fast walk)</summary>
7487 out</summary>
7488 </member> 3630 </member>
7489 <member name="F:OpenMetaverse.Settings.TELEPORT_TIMEOUT"> 3631 <member name="F:OpenMetaverse.Animations.SURF">
7490 <summary>Number of milliseconds before a teleport attempt will time 3632 <summary>Agent surfing</summary>
7491 out</summary>
7492 </member> 3633 </member>
7493 <member name="F:OpenMetaverse.Settings.LOGOUT_TIMEOUT"> 3634 <member name="F:OpenMetaverse.Animations.SURPRISE">
7494 <summary>Number of milliseconds before NetworkManager.Logout() will 3635 <summary>Agent acting surprised</summary>
7495 time out</summary>
7496 </member> 3636 </member>
7497 <member name="F:OpenMetaverse.Settings.CAPS_TIMEOUT"> 3637 <member name="F:OpenMetaverse.Animations.SWORD_STRIKE">
7498 <summary>Number of milliseconds before a CAPS call will time out</summary> 3638 <summary>Agent striking with a sword</summary>
7499 <remarks>Setting this too low will cause web requests time out and
7500 possibly retry repeatedly</remarks>
7501 </member> 3639 </member>
7502 <member name="F:OpenMetaverse.Settings.LOGIN_TIMEOUT"> 3640 <member name="F:OpenMetaverse.Animations.TALK">
7503 <summary>Number of milliseconds for xml-rpc to timeout</summary> 3641 <summary>Agent talking (lips moving)</summary>
7504 </member> 3642 </member>
7505 <member name="F:OpenMetaverse.Settings.RESEND_TIMEOUT"> 3643 <member name="F:OpenMetaverse.Animations.TANTRUM">
7506 <summary>Milliseconds before a packet is assumed lost and resent</summary> 3644 <summary>Agent throwing a tantrum</summary>
7507 </member> 3645 </member>
7508 <member name="F:OpenMetaverse.Settings.SIMULATOR_TIMEOUT"> 3646 <member name="F:OpenMetaverse.Animations.THROW_R">
7509 <summary>Milliseconds without receiving a packet before the 3647 <summary>Agent throwing an object (right handed)</summary>
7510 connection to a simulator is assumed lost</summary>
7511 </member> 3648 </member>
7512 <member name="F:OpenMetaverse.Settings.MAP_REQUEST_TIMEOUT"> 3649 <member name="F:OpenMetaverse.Animations.TRYON_SHIRT">
7513 <summary>Milliseconds to wait for a simulator info request through 3650 <summary>Agent trying on a shirt</summary>
7514 the grid interface</summary>
7515 </member> 3651 </member>
7516 <member name="F:OpenMetaverse.Settings.MAX_PENDING_ACKS"> 3652 <member name="F:OpenMetaverse.Animations.TURNLEFT">
7517 <summary>Maximum number of queued ACKs to be sent before SendAcks() 3653 <summary>Agent turning to the left</summary>
7518 is forced</summary>
7519 </member> 3654 </member>
7520 <member name="F:OpenMetaverse.Settings.STATS_QUEUE_SIZE"> 3655 <member name="F:OpenMetaverse.Animations.TURNRIGHT">
7521 <summary>Network stats queue length (seconds)</summary> 3656 <summary>Agent turning to the right</summary>
7522 </member> 3657 </member>
7523 <member name="F:OpenMetaverse.Settings.STORE_LAND_PATCHES"> 3658 <member name="F:OpenMetaverse.Animations.TYPE">
7524 <summary>Enable/disable storing terrain heightmaps in the 3659 <summary>Agent typing</summary>
7525 TerrainManager</summary>
7526 </member> 3660 </member>
7527 <member name="F:OpenMetaverse.Settings.SEND_AGENT_UPDATES"> 3661 <member name="F:OpenMetaverse.Animations.WALK">
7528 <summary>Enable/disable sending periodic camera updates</summary> 3662 <summary>Agent walking</summary>
7529 </member> 3663 </member>
7530 <member name="F:OpenMetaverse.Settings.SEND_AGENT_APPEARANCE"> 3664 <member name="F:OpenMetaverse.Animations.WHISPER">
7531 <summary>Enable/disable automatically setting agent appearance at 3665 <summary>Agent whispering</summary>
7532 login and after sim crossing</summary>
7533 </member> 3666 </member>
7534 <member name="F:OpenMetaverse.Settings.SEND_AGENT_THROTTLE"> 3667 <member name="F:OpenMetaverse.Animations.WHISTLE">
7535 <summary>Enable/disable automatically setting the bandwidth throttle 3668 <summary>Agent whispering with fingers in mouth</summary>
7536 after connecting to each simulator</summary>
7537 <remarks>The default throttle uses the equivalent of the maximum
7538 bandwidth setting in the official client. If you do not set a
7539 throttle your connection will by default be throttled well below
7540 the minimum values and you may experience connection problems</remarks>
7541 </member> 3669 </member>
7542 <member name="F:OpenMetaverse.Settings.SEND_PINGS"> 3670 <member name="F:OpenMetaverse.Animations.WINK">
7543 <summary>Enable/disable the sending of pings to monitor lag and 3671 <summary>Agent winking</summary>
7544 packet loss</summary>
7545 </member> 3672 </member>
7546 <member name="F:OpenMetaverse.Settings.MULTIPLE_SIMS"> 3673 <member name="F:OpenMetaverse.Animations.WINK_HOLLYWOOD">
7547 <summary>Should we connect to multiple sims? This will allow 3674 <summary>Agent winking</summary>
7548 viewing in to neighboring simulators and sim crossings
7549 (Experimental)</summary>
7550 </member> 3675 </member>
7551 <member name="F:OpenMetaverse.Settings.ALWAYS_DECODE_OBJECTS"> 3676 <member name="F:OpenMetaverse.Animations.WORRY">
7552 <summary>If true, all object update packets will be decoded in to 3677 <summary>Agent worried</summary>
7553 native objects. If false, only updates for our own agent will be
7554 decoded. Registering an event handler will force objects for that
7555 type to always be decoded. If this is disabled the object tracking
7556 will have missing or partial prim and avatar information</summary>
7557 </member> 3678 </member>
7558 <member name="F:OpenMetaverse.Settings.ALWAYS_REQUEST_OBJECTS"> 3679 <member name="F:OpenMetaverse.Animations.YES">
7559 <summary>If true, when a cached object check is received from the 3680 <summary>Agent nodding yes</summary>
7560 server the full object info will automatically be requested</summary>
7561 </member> 3681 </member>
7562 <member name="F:OpenMetaverse.Settings.ENABLE_CAPS"> 3682 <member name="F:OpenMetaverse.Animations.YES_HAPPY">
7563 <summary>Whether to establish connections to HTTP capabilities 3683 <summary>Agent nodding yes with happy face</summary>
7564 servers for simulators</summary>
7565 </member> 3684 </member>
7566 <member name="F:OpenMetaverse.Settings.ENABLE_SIMSTATS"> 3685 <member name="F:OpenMetaverse.Animations.YOGA_FLOAT">
7567 <summary>Whether to decode sim stats</summary> 3686 <summary>Agent floating with legs and arms crossed</summary>
7568 </member> 3687 </member>
7569 <member name="F:OpenMetaverse.Settings.LOG_ALL_CAPS_ERRORS"> 3688 <member name="M:OpenMetaverse.Animations.ToDictionary">
7570 <summary>The capabilities servers are currently designed to 3689 <summary>
7571 periodically return a 502 error which signals for the client to 3690 A dictionary containing all pre-defined animations
7572 re-establish a connection. Set this to true to log those 502 errors</summary> 3691 </summary>
3692 <returns>A dictionary containing the pre-defined animations,
3693 where the key is the animations ID, and the value is a string
3694 containing a name to identify the purpose of the animation</returns>
7573 </member> 3695 </member>
7574 <member name="F:OpenMetaverse.Settings.FETCH_MISSING_INVENTORY"> 3696 <member name="T:OpenMetaverse.AvatarTextureIndex">
7575 <summary>If true, any reference received for a folder or item 3697 <summary>
7576 the library is not aware of will automatically be fetched</summary> 3698 Index of TextureEntry slots for avatar appearances
3699 </summary>
7577 </member> 3700 </member>
7578 <member name="F:OpenMetaverse.Settings.DISABLE_AGENT_UPDATE_DUPLICATE_CHECK"> 3701 <member name="T:OpenMetaverse.BakeType">
7579 <summary>If true, and <code>SEND_AGENT_UPDATES</code> is true, 3702 <summary>
7580 AgentUpdate packets will continuously be sent out to give the bot 3703 Bake layers for avatar appearance
7581 smoother movement and autopiloting</summary> 3704 </summary>
7582 </member> 3705 </member>
7583 <member name="F:OpenMetaverse.Settings.AVATAR_TRACKING"> 3706 <member name="M:OpenMetaverse.AppearanceManager.#ctor(OpenMetaverse.GridClient)">
7584 <summary>If true, currently visible avatars will be stored 3707 <summary>
7585 in dictionaries inside <code>Simulator.ObjectAvatars</code>. 3708 Default constructor
7586 If false, a new Avatar or Primitive object will be created 3709 </summary>
7587 each time an object update packet is received</summary> 3710 <param name="client">A reference to our agent</param>
7588 </member> 3711 </member>
7589 <member name="F:OpenMetaverse.Settings.OBJECT_TRACKING"> 3712 <member name="T:OpenMetaverse.AppearanceManager.WearableData">
7590 <summary>If true, currently visible avatars will be stored 3713 <summary>
7591 in dictionaries inside <code>Simulator.ObjectPrimitives</code>. 3714 Contains information about a wearable inventory item
7592 If false, a new Avatar or Primitive object will be created 3715 </summary>
7593 each time an object update packet is received</summary>
7594 </member> 3716 </member>
7595 <member name="F:OpenMetaverse.Settings.USE_INTERPOLATION_TIMER"> 3717 <member name="F:OpenMetaverse.AppearanceManager.WearableData.ItemID">
7596 <summary>If true, position and velocity will periodically be 3718 <summary>Inventory ItemID of the wearable</summary>
7597 interpolated (extrapolated, technically) for objects and
7598 avatars that are being tracked by the library. This is
7599 necessary to increase the accuracy of speed and position
7600 estimates for simulated objects</summary>
7601 </member> 3719 </member>
7602 <member name="F:OpenMetaverse.Settings.TRACK_UTILIZATION"> 3720 <member name="F:OpenMetaverse.AppearanceManager.WearableData.AssetID">
3721 <summary>AssetID of the wearable asset</summary>
3722 </member>
3723 <member name="F:OpenMetaverse.AppearanceManager.WearableData.WearableType">
3724 <summary>WearableType of the wearable</summary>
3725 </member>
3726 <member name="F:OpenMetaverse.AppearanceManager.WearableData.AssetType">
3727 <summary>AssetType of the wearable</summary>
3728 </member>
3729 <member name="F:OpenMetaverse.AppearanceManager.WearableData.Asset">
3730 <summary>Asset data for the wearable</summary>
3731 </member>
3732 <member name="T:OpenMetaverse.AppearanceManager.ColorParamInfo">
7603 <summary> 3733 <summary>
7604 If true, utilization statistics will be tracked. There is a minor penalty 3734 Data collected from visual params for each wearable
7605 in CPU time for enabling this option. 3735 needed for the calculation of the color
7606 </summary> 3736 </summary>
7607 </member> 3737 </member>
7608 <member name="F:OpenMetaverse.Settings.PARCEL_TRACKING"> 3738 <member name="T:OpenMetaverse.AppearanceManager.TextureData">
7609 <summary>If true, parcel details will be stored in the 3739 <summary>
7610 <code>Simulator.Parcels</code> dictionary as they are received</summary> 3740 Holds a texture assetID and the data needed to bake this layer into
3741 an outfit texture. Used to keep track of currently worn textures
3742 and baking data
3743 </summary>
7611 </member> 3744 </member>
7612 <member name="F:OpenMetaverse.Settings.ALWAYS_REQUEST_PARCEL_ACL"> 3745 <member name="F:OpenMetaverse.AppearanceManager.TextureData.TextureID">
3746 <summary>A texture AssetID</summary>
3747 </member>
3748 <member name="F:OpenMetaverse.AppearanceManager.TextureData.Texture">
3749 <summary>Asset data for the texture</summary>
3750 </member>
3751 <member name="F:OpenMetaverse.AppearanceManager.TextureData.AlphaMasks">
3752 <summary>Collection of alpha masks that needs applying</summary>
3753 </member>
3754 <member name="F:OpenMetaverse.AppearanceManager.TextureData.Color">
3755 <summary>Tint that should be applied to the texture</summary>
3756 </member>
3757 <member name="F:OpenMetaverse.AppearanceManager.TextureData.TextureIndex">
3758 <summary>Where on avatar does this texture belong</summary>
3759 </member>
3760 <member name="F:OpenMetaverse.AppearanceManager.MAX_CONCURRENT_DOWNLOADS">
3761 <summary>Maximum number of concurrent downloads for wearable assets and textures</summary>
3762 </member>
3763 <member name="F:OpenMetaverse.AppearanceManager.MAX_CONCURRENT_UPLOADS">
3764 <summary>Maximum number of concurrent uploads for baked textures</summary>
3765 </member>
3766 <member name="F:OpenMetaverse.AppearanceManager.INVENTORY_TIMEOUT">
3767 <summary>Timeout for fetching inventory listings</summary>
3768 </member>
3769 <member name="F:OpenMetaverse.AppearanceManager.WEARABLE_TIMEOUT">
3770 <summary>Timeout for fetching a single wearable, or receiving a single packet response</summary>
3771 </member>
3772 <member name="F:OpenMetaverse.AppearanceManager.TEXTURE_TIMEOUT">
3773 <summary>Timeout for fetching a single texture</summary>
3774 </member>
3775 <member name="F:OpenMetaverse.AppearanceManager.UPLOAD_TIMEOUT">
3776 <summary>Timeout for uploading a single baked texture</summary>
3777 </member>
3778 <member name="F:OpenMetaverse.AppearanceManager.UPLOAD_RETRIES">
3779 <summary>Number of times to retry bake upload</summary>
3780 </member>
3781 <member name="F:OpenMetaverse.AppearanceManager.REBAKE_DELAY">
3782 <summary>When changing outfit, kick off rebake after
3783 20 seconds has passed since the last change</summary>
3784 </member>
3785 <member name="F:OpenMetaverse.AppearanceManager.WEARABLE_COUNT">
3786 <summary>Total number of wearables for each avatar</summary>
3787 </member>
3788 <member name="F:OpenMetaverse.AppearanceManager.BAKED_TEXTURE_COUNT">
3789 <summary>Total number of baked textures on each avatar</summary>
3790 </member>
3791 <member name="F:OpenMetaverse.AppearanceManager.WEARABLES_PER_LAYER">
3792 <summary>Total number of wearables per bake layer</summary>
3793 </member>
3794 <member name="F:OpenMetaverse.AppearanceManager.BakeIndexToTextureIndex">
3795 <summary>Mapping between BakeType and AvatarTextureIndex</summary>
3796 </member>
3797 <member name="F:OpenMetaverse.AppearanceManager.WEARABLE_BAKE_MAP">
3798 <summary>Map of what wearables are included in each bake</summary>
3799 </member>
3800 <member name="F:OpenMetaverse.AppearanceManager.BAKED_TEXTURE_HASH">
3801 <summary>Magic values to finalize the cache check hashes for each
3802 bake</summary>
3803 </member>
3804 <member name="F:OpenMetaverse.AppearanceManager.DEFAULT_AVATAR_TEXTURE">
3805 <summary>Default avatar texture, used to detect when a custom
3806 texture is not set for a face</summary>
3807 </member>
3808 <member name="F:OpenMetaverse.AppearanceManager.m_AgentWearablesReply">
3809 <summary>The event subscribers. null if no subcribers</summary>
3810 </member>
3811 <member name="F:OpenMetaverse.AppearanceManager.m_AgentWearablesLock">
3812 <summary>Thread sync lock object</summary>
3813 </member>
3814 <member name="F:OpenMetaverse.AppearanceManager.m_AgentCachedBakesReply">
3815 <summary>The event subscribers. null if no subcribers</summary>
3816 </member>
3817 <member name="F:OpenMetaverse.AppearanceManager.m_AgentCachedBakesLock">
3818 <summary>Thread sync lock object</summary>
3819 </member>
3820 <member name="F:OpenMetaverse.AppearanceManager.m_AppearanceSet">
3821 <summary>The event subscribers. null if no subcribers</summary>
3822 </member>
3823 <member name="F:OpenMetaverse.AppearanceManager.m_AppearanceSetLock">
3824 <summary>Thread sync lock object</summary>
3825 </member>
3826 <member name="F:OpenMetaverse.AppearanceManager.m_RebakeAvatarReply">
3827 <summary>The event subscribers. null if no subcribers</summary>
3828 </member>
3829 <member name="F:OpenMetaverse.AppearanceManager.m_RebakeAvatarLock">
3830 <summary>Thread sync lock object</summary>
3831 </member>
3832 <member name="F:OpenMetaverse.AppearanceManager.MyVisualParameters">
3833 <summary>Visual parameters last sent to the sim</summary>
3834 </member>
3835 <member name="F:OpenMetaverse.AppearanceManager.MyTextures">
3836 <summary>Textures about this client sent to the sim</summary>
3837 </member>
3838 <member name="F:OpenMetaverse.AppearanceManager.Wearables">
3839 <summary>A cache of wearables currently being worn</summary>
3840 </member>
3841 <member name="F:OpenMetaverse.AppearanceManager.Textures">
3842 <summary>A cache of textures currently being worn</summary>
3843 </member>
3844 <member name="F:OpenMetaverse.AppearanceManager.CacheCheckSerialNum">
3845 <summary>Incrementing serial number for AgentCachedTexture packets</summary>
3846 </member>
3847 <member name="F:OpenMetaverse.AppearanceManager.SetAppearanceSerialNum">
3848 <summary>Incrementing serial number for AgentSetAppearance packets</summary>
3849 </member>
3850 <member name="F:OpenMetaverse.AppearanceManager.AppearanceThreadRunning">
3851 <summary>Indicates whether or not the appearance thread is currently
3852 running, to prevent multiple appearance threads from running
3853 simultaneously</summary>
3854 </member>
3855 <member name="F:OpenMetaverse.AppearanceManager.Client">
3856 <summary>Reference to our agent</summary>
3857 </member>
3858 <member name="F:OpenMetaverse.AppearanceManager.RebakeScheduleTimer">
7613 <summary> 3859 <summary>
7614 If true, an incoming parcel properties reply will automatically send 3860 Timer used for delaying rebake on changing outfit
7615 a request for the parcel access list
7616 </summary> 3861 </summary>
7617 </member> 3862 </member>
7618 <member name="F:OpenMetaverse.Settings.ALWAYS_REQUEST_PARCEL_DWELL"> 3863 <member name="F:OpenMetaverse.AppearanceManager.AppearanceThread">
7619 <summary> 3864 <summary>
7620 if true, an incoming parcel properties reply will automatically send 3865 Main appearance thread
7621 a request for the traffic count.
7622 </summary> 3866 </summary>
7623 </member> 3867 </member>
7624 <member name="F:OpenMetaverse.Settings.USE_ASSET_CACHE"> 3868 <member name="E:OpenMetaverse.AppearanceManager.AgentWearablesReply">
3869 <summary>Triggered when an AgentWearablesUpdate packet is received,
3870 telling us what our avatar is currently wearing
3871 <see cref="M:OpenMetaverse.AppearanceManager.RequestAgentWearables" /> request.</summary>
3872 </member>
3873 <member name="E:OpenMetaverse.AppearanceManager.CachedBakesReply">
3874 <summary>Raised when an AgentCachedTextureResponse packet is
3875 received, giving a list of cached bakes that were found on the
3876 simulator
3877 <seealso cref="M:OpenMetaverse.AppearanceManager.RequestCachedBakes" /> request.</summary>
3878 </member>
3879 <member name="E:OpenMetaverse.AppearanceManager.AppearanceSet">
7625 <summary> 3880 <summary>
7626 If true, images, and other assets downloaded from the server 3881 Raised when appearance data is sent to the simulator, also indicates
7627 will be cached in a local directory 3882 the main appearance thread is finished.
3883 </summary>
3884 <seealso cref="M:OpenMetaverse.AppearanceManager.RequestAgentSetAppearance" /> request.</member>
3885 <member name="E:OpenMetaverse.AppearanceManager.RebakeAvatarRequested">
3886 <summary>
3887 Triggered when the simulator requests the agent rebake its appearance.
7628 </summary> 3888 </summary>
3889 <seealso cref="!:RebakeAvatarRequest" />
7629 </member> 3890 </member>
7630 <member name="F:OpenMetaverse.Settings.ASSET_CACHE_DIR"> 3891 <member name="P:OpenMetaverse.AppearanceManager.ManagerBusy">
7631 <summary>Path to store cached texture data</summary> 3892 <summary>
3893 Returns true if AppearanceManager is busy and trying to set or change appearance will fail
3894 </summary>
7632 </member> 3895 </member>
7633 <member name="F:OpenMetaverse.Settings.ASSET_CACHE_MAX_SIZE"> 3896 <member name="M:OpenMetaverse.AppearanceManager.OnAgentWearables(OpenMetaverse.AgentWearablesReplyEventArgs)">
7634 <summary>Maximum size cached files are allowed to take on disk (bytes)</summary> 3897 <summary>Raises the AgentWearablesReply event</summary>
3898 <param name="e">An AgentWearablesReplyEventArgs object containing the
3899 data returned from the data server</param>
7635 </member> 3900 </member>
7636 <member name="F:OpenMetaverse.Settings.DEFAULT_EFFECT_COLOR"> 3901 <member name="M:OpenMetaverse.AppearanceManager.OnAgentCachedBakes(OpenMetaverse.AgentCachedBakesReplyEventArgs)">
7637 <summary>Default color used for viewer particle effects</summary> 3902 <summary>Raises the CachedBakesReply event</summary>
3903 <param name="e">An AgentCachedBakesReplyEventArgs object containing the
3904 data returned from the data server AgentCachedTextureResponse</param>
7638 </member> 3905 </member>
7639 <member name="F:OpenMetaverse.Settings.MAX_RESEND_COUNT"> 3906 <member name="M:OpenMetaverse.AppearanceManager.OnAppearanceSet(OpenMetaverse.AppearanceSetEventArgs)">
7640 <summary>Maximum number of times to resend a failed packet</summary> 3907 <summary>Raises the AppearanceSet event</summary>
3908 <param name="e">An AppearanceSetEventArgs object indicating if the operatin was successfull</param>
7641 </member> 3909 </member>
7642 <member name="F:OpenMetaverse.Settings.THROTTLE_OUTGOING_PACKETS"> 3910 <member name="M:OpenMetaverse.AppearanceManager.OnRebakeAvatar(OpenMetaverse.RebakeAvatarTexturesEventArgs)">
7643 <summary>Throttle outgoing packet rate</summary> 3911 <summary>Raises the RebakeAvatarRequested event</summary>
3912 <param name="e">An RebakeAvatarTexturesEventArgs object containing the
3913 data returned from the data server</param>
7644 </member> 3914 </member>
7645 <member name="F:OpenMetaverse.Settings.CLIENT_IDENTIFICATION_TAG"> 3915 <member name="M:OpenMetaverse.AppearanceManager.SetPreviousAppearance">
7646 <summary>UUID of a texture used by some viewers to indentify type of client used</summary> 3916 <summary>
3917 Obsolete method for setting appearance. This function no longer does anything.
3918 Use RequestSetAppearance() to manually start the appearance thread
3919 </summary>
7647 </member> 3920 </member>
7648 <member name="F:OpenMetaverse.Settings.USE_HTTP_TEXTURES"> 3921 <member name="M:OpenMetaverse.AppearanceManager.SetPreviousAppearance(System.Boolean)">
7649 <summary> 3922 <summary>
7650 Download textures using GetTexture capability when available 3923 Obsolete method for setting appearance. This function no longer does anything.
3924 Use RequestSetAppearance() to manually start the appearance thread
7651 </summary> 3925 </summary>
3926 <param name="allowBake">Unused parameter</param>
7652 </member> 3927 </member>
7653 <member name="F:OpenMetaverse.Settings.MAX_CONCURRENT_TEXTURE_DOWNLOADS"> 3928 <member name="M:OpenMetaverse.AppearanceManager.RequestSetAppearance">
7654 <summary>The maximum number of concurrent texture downloads allowed</summary> 3929 <summary>
7655 <remarks>Increasing this number will not necessarily increase texture retrieval times due to 3930 Starts the appearance setting thread
7656 simulator throttles</remarks> 3931 </summary>
7657 </member> 3932 </member>
7658 <member name="F:OpenMetaverse.Settings.PIPELINE_REFRESH_INTERVAL"> 3933 <member name="M:OpenMetaverse.AppearanceManager.RequestSetAppearance(System.Boolean)">
7659 <summary> 3934 <summary>
7660 The Refresh timer inteval is used to set the delay between checks for stalled texture downloads 3935 Starts the appearance setting thread
7661 </summary> 3936 </summary>
7662 <remarks>This is a static variable which applies to all instances</remarks> 3937 <param name="forceRebake">True to force rebaking, otherwise false</param>
7663 </member> 3938 </member>
7664 <member name="F:OpenMetaverse.Settings.PIPELINE_REQUEST_TIMEOUT"> 3939 <member name="M:OpenMetaverse.AppearanceManager.RequestAgentWearables">
7665 <summary> 3940 <summary>
7666 Textures taking longer than this value will be flagged as timed out and removed from the pipeline 3941 Ask the server what textures our agent is currently wearing
7667 </summary> 3942 </summary>
7668 </member> 3943 </member>
7669 <member name="F:OpenMetaverse.Settings.LOG_LEVEL"> 3944 <member name="M:OpenMetaverse.AppearanceManager.RequestCachedBakes">
7670 <summary> 3945 <summary>
7671 Get or set the minimum log level to output to the console by default 3946 Build hashes out of the texture assetIDs for each baking layer to
7672 3947 ask the simulator whether it has cached copies of each baked texture
7673 If the library is not compiled with DEBUG defined and this level is set to DEBUG
7674 You will get no output on the console. This behavior can be overriden by creating
7675 a logger configuration file for log4net
7676 </summary> 3948 </summary>
7677 </member> 3949 </member>
7678 <member name="F:OpenMetaverse.Settings.LOG_NAMES"> 3950 <member name="M:OpenMetaverse.AppearanceManager.GetWearableAsset(OpenMetaverse.WearableType)">
7679 <summary>Attach avatar names to log messages</summary> 3951 <summary>
3952 Returns the AssetID of the asset that is currently being worn in a
3953 given WearableType slot
3954 </summary>
3955 <param name="type">WearableType slot to get the AssetID for</param>
3956 <returns>The UUID of the asset being worn in the given slot, or
3957 UUID.Zero if no wearable is attached to the given slot or wearables
3958 have not been downloaded yet</returns>
7680 </member> 3959 </member>
7681 <member name="F:OpenMetaverse.Settings.LOG_RESENDS"> 3960 <member name="M:OpenMetaverse.AppearanceManager.AddToOutfit(OpenMetaverse.InventoryItem)">
7682 <summary>Log packet retransmission info</summary> 3961 <summary>
3962 Add a wearable to the current outfit and set appearance
3963 </summary>
3964 <param name="wearableItem">Wearable to be added to the outfit</param>
7683 </member> 3965 </member>
7684 <member name="M:OpenMetaverse.Settings.#ctor(OpenMetaverse.GridClient)"> 3966 <member name="M:OpenMetaverse.AppearanceManager.AddToOutfit(System.Collections.Generic.List{OpenMetaverse.InventoryItem})">
7685 <summary>Constructor</summary> 3967 <summary>
7686 <param name="client">Reference to a GridClient object</param> 3968 Add a list of wearables to the current outfit and set appearance
3969 </summary>
3970 <param name="wearableItems">List of wearable inventory items to
3971 be added to the outfit</param>
7687 </member> 3972 </member>
7688 <member name="M:OpenMetaverse.Settings.EconomyDataHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)"> 3973 <member name="M:OpenMetaverse.AppearanceManager.RemoveFromOutfit(OpenMetaverse.InventoryItem)">
7689 <summary>Process an incoming packet and raise the appropriate events</summary> 3974 <summary>
7690 <param name="sender">The sender</param> 3975 Remove a wearable from the current outfit and set appearance
7691 <param name="e">The EventArgs object containing the packet data</param> 3976 </summary>
3977 <param name="wearableItem">Wearable to be removed from the outfit</param>
7692 </member> 3978 </member>
7693 <member name="P:OpenMetaverse.Settings.UPLOAD_COST"> 3979 <member name="M:OpenMetaverse.AppearanceManager.RemoveFromOutfit(System.Collections.Generic.List{OpenMetaverse.InventoryItem})">
7694 <summary>Cost of uploading an asset</summary> 3980 <summary>
7695 <remarks>Read-only since this value is dynamically fetched at login</remarks> 3981 Removes a list of wearables from the current outfit and set appearance
3982 </summary>
3983 <param name="wearableItems">List of wearable inventory items to
3984 be removed from the outfit</param>
7696 </member> 3985 </member>
7697 <member name="T:OpenMetaverse.NetworkManager"> 3986 <member name="M:OpenMetaverse.AppearanceManager.ReplaceOutfit(System.Collections.Generic.List{OpenMetaverse.InventoryItem})">
7698 <summary> 3987 <summary>
7699 NetworkManager is responsible for managing the network layer of 3988 Replace the current outfit with a list of wearables and set appearance
7700 OpenMetaverse. It tracks all the server connections, serializes
7701 outgoing traffic and deserializes incoming traffic, and provides
7702 instances of delegates for network-related events.
7703 </summary> 3989 </summary>
3990 <param name="wearableItems">List of wearable inventory items that
3991 define a new outfit</param>
3992 </member>
3993 <member name="M:OpenMetaverse.AppearanceManager.ReplaceOutfit(System.Collections.Generic.List{OpenMetaverse.InventoryItem},System.Boolean)">
7704 <summary> 3994 <summary>
7705 Login Routines 3995 Replace the current outfit with a list of wearables and set appearance
7706 </summary> 3996 </summary>
3997 <param name="wearableItems">List of wearable inventory items that
3998 define a new outfit</param>
3999 <param name="safe">Check if we have all body parts, set this to false only
4000 if you know what you're doing</param>
7707 </member> 4001 </member>
7708 <member name="F:OpenMetaverse.NetworkManager.m_PacketSent"> 4002 <member name="M:OpenMetaverse.AppearanceManager.IsItemWorn(OpenMetaverse.InventoryItem)">
7709 <summary>The event subscribers, null of no subscribers</summary> 4003 <summary>
4004 Checks if an inventory item is currently being worn
4005 </summary>
4006 <param name="item">The inventory item to check against the agent
4007 wearables</param>
4008 <returns>The WearableType slot that the item is being worn in,
4009 or WearbleType.Invalid if it is not currently being worn</returns>
7710 </member> 4010 </member>
7711 <member name="M:OpenMetaverse.NetworkManager.OnPacketSent(OpenMetaverse.PacketSentEventArgs)"> 4011 <member name="M:OpenMetaverse.AppearanceManager.GetWearables">
7712 <summary>Raises the PacketSent Event</summary> 4012 <summary>
7713 <param name="e">A PacketSentEventArgs object containing 4013 Returns a copy of the agents currently worn wearables
7714 the data sent from the simulator</param> 4014 </summary>
4015 <returns>A copy of the agents currently worn wearables</returns>
4016 <remarks>Avoid calling this function multiple times as it will make
4017 a copy of all of the wearable data each time</remarks>
7715 </member> 4018 </member>
7716 <member name="F:OpenMetaverse.NetworkManager.m_PacketSentLock"> 4019 <member name="M:OpenMetaverse.AppearanceManager.WearOutfit(System.Collections.Generic.List{OpenMetaverse.InventoryBase},System.Boolean)">
7717 <summary>Thread sync lock object</summary> 4020 <summary>
4021 Calls either <seealso cref="M:OpenMetaverse.AppearanceManager.ReplaceOutfit(System.Collections.Generic.List{OpenMetaverse.InventoryWearable})" /> or
4022 <seealso cref="M:OpenMetaverse.AppearanceManager.AddToOutfit(System.Collections.Generic.List{OpenMetaverse.InventoryItem})" /> depending on the value of
4023 replaceItems
4024 </summary>
4025 <param name="wearables">List of wearable inventory items to add
4026 to the outfit or become a new outfit</param>
4027 <param name="replaceItems">True to replace existing items with the
4028 new list of items, false to add these items to the existing outfit</param>
7718 </member> 4029 </member>
7719 <member name="F:OpenMetaverse.NetworkManager.m_LoggedOut"> 4030 <member name="M:OpenMetaverse.AppearanceManager.AddAttachments(System.Collections.Generic.List{OpenMetaverse.InventoryItem},System.Boolean)">
7720 <summary>The event subscribers, null of no subscribers</summary> 4031 <summary>
4032 Adds a list of attachments to our agent
4033 </summary>
4034 <param name="attachments">A List containing the attachments to add</param>
4035 <param name="removeExistingFirst">If true, tells simulator to remove existing attachment
4036 first</param>
7721 </member> 4037 </member>
7722 <member name="M:OpenMetaverse.NetworkManager.OnLoggedOut(OpenMetaverse.LoggedOutEventArgs)"> 4038 <member name="M:OpenMetaverse.AppearanceManager.Attach(OpenMetaverse.InventoryItem,OpenMetaverse.AttachmentPoint)">
7723 <summary>Raises the LoggedOut Event</summary> 4039 <summary>
7724 <param name="e">A LoggedOutEventArgs object containing 4040 Attach an item to our agent at a specific attach point
7725 the data sent from the simulator</param> 4041 </summary>
4042 <param name="item">A <seealso cref="T:OpenMetaverse.InventoryItem" /> to attach</param>
4043 <param name="attachPoint">the <seealso cref="T:OpenMetaverse.AttachmentPoint" /> on the avatar
4044 to attach the item to</param>
7726 </member> 4045 </member>
7727 <member name="F:OpenMetaverse.NetworkManager.m_LoggedOutLock"> 4046 <member name="M:OpenMetaverse.AppearanceManager.Attach(OpenMetaverse.UUID,OpenMetaverse.UUID,System.String,System.String,OpenMetaverse.Permissions,System.UInt32,OpenMetaverse.AttachmentPoint)">
7728 <summary>Thread sync lock object</summary> 4047 <summary>
4048 Attach an item to our agent specifying attachment details
4049 </summary>
4050 <param name="itemID">The <seealso cref="T:OpenMetaverse.UUID" /> of the item to attach</param>
4051 <param name="ownerID">The <seealso cref="T:OpenMetaverse.UUID" /> attachments owner</param>
4052 <param name="name">The name of the attachment</param>
4053 <param name="description">The description of the attahment</param>
4054 <param name="perms">The <seealso cref="T:OpenMetaverse.Permissions" /> to apply when attached</param>
4055 <param name="itemFlags">The <seealso cref="T:OpenMetaverse.InventoryItemFlags" /> of the attachment</param>
4056 <param name="attachPoint">The <seealso cref="T:OpenMetaverse.AttachmentPoint" /> on the agent
4057 to attach the item to</param>
7729 </member> 4058 </member>
7730 <member name="F:OpenMetaverse.NetworkManager.m_SimConnecting"> 4059 <member name="M:OpenMetaverse.AppearanceManager.Detach(OpenMetaverse.InventoryItem)">
7731 <summary>The event subscribers, null of no subscribers</summary> 4060 <summary>
4061 Detach an item from our agent using an <seealso cref="T:OpenMetaverse.InventoryItem" /> object
4062 </summary>
4063 <param name="item">An <seealso cref="T:OpenMetaverse.InventoryItem" /> object</param>
7732 </member> 4064 </member>
7733 <member name="M:OpenMetaverse.NetworkManager.OnSimConnecting(OpenMetaverse.SimConnectingEventArgs)"> 4065 <member name="M:OpenMetaverse.AppearanceManager.Detach(OpenMetaverse.UUID)">
7734 <summary>Raises the SimConnecting Event</summary> 4066 <summary>
7735 <param name="e">A SimConnectingEventArgs object containing 4067 Detach an item from our agent
7736 the data sent from the simulator</param> 4068 </summary>
4069 <param name="itemID">The inventory itemID of the item to detach</param>
7737 </member> 4070 </member>
7738 <member name="F:OpenMetaverse.NetworkManager.m_SimConnectingLock"> 4071 <member name="M:OpenMetaverse.AppearanceManager.SendAgentIsNowWearing">
7739 <summary>Thread sync lock object</summary> 4072 <summary>
4073 Inform the sim which wearables are part of our current outfit
4074 </summary>
7740 </member> 4075 </member>
7741 <member name="F:OpenMetaverse.NetworkManager.m_SimConnected"> 4076 <member name="M:OpenMetaverse.AppearanceManager.ReplaceOutfit(System.Collections.Generic.List{OpenMetaverse.InventoryWearable})">
7742 <summary>The event subscribers, null of no subscribers</summary> 4077 <summary>
4078 Replaces the Wearables collection with a list of new wearable items
4079 </summary>
4080 <param name="wearableItems">Wearable items to replace the Wearables collection with</param>
7743 </member> 4081 </member>
7744 <member name="M:OpenMetaverse.NetworkManager.OnSimConnected(OpenMetaverse.SimConnectedEventArgs)"> 4082 <member name="M:OpenMetaverse.AppearanceManager.GetColorFromParams(System.Collections.Generic.List{OpenMetaverse.AppearanceManager.ColorParamInfo})">
7745 <summary>Raises the SimConnected Event</summary> 4083 <summary>
7746 <param name="e">A SimConnectedEventArgs object containing 4084 Calculates base color/tint for a specific wearable
7747 the data sent from the simulator</param> 4085 based on its params
4086 </summary>
4087 <param name="param">All the color info gathered from wearable's VisualParams
4088 passed as list of ColorParamInfo tuples</param>
4089 <returns>Base color/tint for the wearable</returns>
7748 </member> 4090 </member>
7749 <member name="F:OpenMetaverse.NetworkManager.m_SimConnectedLock"> 4091 <member name="M:OpenMetaverse.AppearanceManager.GetAgentWearables">
7750 <summary>Thread sync lock object</summary> 4092 <summary>
4093 Blocking method to populate the Wearables dictionary
4094 </summary>
4095 <returns>True on success, otherwise false</returns>
7751 </member> 4096 </member>
7752 <member name="F:OpenMetaverse.NetworkManager.m_SimDisconnected"> 4097 <member name="M:OpenMetaverse.AppearanceManager.GetCachedBakes">
7753 <summary>The event subscribers, null of no subscribers</summary> 4098 <summary>
4099 Blocking method to populate the Textures array with cached bakes
4100 </summary>
4101 <returns>True on success, otherwise false</returns>
7754 </member> 4102 </member>
7755 <member name="M:OpenMetaverse.NetworkManager.OnSimDisconnected(OpenMetaverse.SimDisconnectedEventArgs)"> 4103 <member name="M:OpenMetaverse.AppearanceManager.DecodeWearableParams(OpenMetaverse.AppearanceManager.WearableData)">
7756 <summary>Raises the SimDisconnected Event</summary> 4104 <summary>
7757 <param name="e">A SimDisconnectedEventArgs object containing 4105 Populates textures and visual params from a decoded asset
7758 the data sent from the simulator</param> 4106 </summary>
4107 <param name="wearable">Wearable to decode</param>
7759 </member> 4108 </member>
7760 <member name="F:OpenMetaverse.NetworkManager.m_SimDisconnectedLock"> 4109 <member name="M:OpenMetaverse.AppearanceManager.DownloadWearables">
7761 <summary>Thread sync lock object</summary> 4110 <summary>
4111 Blocking method to download and parse currently worn wearable assets
4112 </summary>
4113 <returns>True on success, otherwise false</returns>
7762 </member> 4114 </member>
7763 <member name="F:OpenMetaverse.NetworkManager.m_Disconnected"> 4115 <member name="M:OpenMetaverse.AppearanceManager.GetTextureDownloadList(OpenMetaverse.BakeType)">
7764 <summary>The event subscribers, null of no subscribers</summary> 4116 <summary>
4117 Get a list of all of the textures that need to be downloaded for a
4118 single bake layer
4119 </summary>
4120 <param name="bakeType">Bake layer to get texture AssetIDs for</param>
4121 <returns>A list of texture AssetIDs to download</returns>
7765 </member> 4122 </member>
7766 <member name="M:OpenMetaverse.NetworkManager.OnDisconnected(OpenMetaverse.DisconnectedEventArgs)"> 4123 <member name="M:OpenMetaverse.AppearanceManager.AddTextureDownload(OpenMetaverse.AvatarTextureIndex,System.Collections.Generic.List{OpenMetaverse.UUID})">
7767 <summary>Raises the Disconnected Event</summary> 4124 <summary>
7768 <param name="e">A DisconnectedEventArgs object containing 4125 Helper method to lookup the TextureID for a single layer and add it
7769 the data sent from the simulator</param> 4126 to a list if it is not already present
4127 </summary>
4128 <param name="index">
4129 </param>
4130 <param name="textures">
4131 </param>
7770 </member> 4132 </member>
7771 <member name="F:OpenMetaverse.NetworkManager.m_DisconnectedLock"> 4133 <member name="M:OpenMetaverse.AppearanceManager.DownloadTextures(System.Collections.Generic.List{OpenMetaverse.BakeType})">
4134 <summary>
4135 Blocking method to download all of the textures needed for baking
4136 the given bake layers
4137 </summary>
4138 <param name="bakeLayers">A list of layers that need baking</param>
4139 <remarks>No return value is given because the baking will happen
4140 whether or not all textures are successfully downloaded</remarks>
4141 </member>
4142 <member name="M:OpenMetaverse.AppearanceManager.CreateBakes">
4143 <summary>
4144 Blocking method to create and upload baked textures for all of the
4145 missing bakes
4146 </summary>
4147 <returns>True on success, otherwise false</returns>
4148 </member>
4149 <member name="M:OpenMetaverse.AppearanceManager.CreateBake(OpenMetaverse.BakeType)">
4150 <summary>
4151 Blocking method to create and upload a baked texture for a single
4152 bake layer
4153 </summary>
4154 <param name="bakeType">Layer to bake</param>
4155 <returns>True on success, otherwise false</returns>
4156 </member>
4157 <member name="M:OpenMetaverse.AppearanceManager.UploadBake(System.Byte[])">
4158 <summary>
4159 Blocking method to upload a baked texture
4160 </summary>
4161 <param name="textureData">Five channel JPEG2000 texture data to upload</param>
4162 <returns>UUID of the newly created asset on success, otherwise UUID.Zero</returns>
4163 </member>
4164 <member name="M:OpenMetaverse.AppearanceManager.MakeParamValues">
4165 <summary>
4166 Creates a dictionary of visual param values from the downloaded wearables
4167 </summary>
4168 <returns>A dictionary of visual param indices mapping to visual param
4169 values for our agent that can be fed to the Baker class</returns>
4170 </member>
4171 <member name="M:OpenMetaverse.AppearanceManager.RequestAgentSetAppearance">
4172 <summary>
4173 Create an AgentSetAppearance packet from Wearables data and the
4174 Textures array and send it
4175 </summary>
4176 </member>
4177 <member name="M:OpenMetaverse.AppearanceManager.WearableTypeToAssetType(OpenMetaverse.WearableType)">
4178 <summary>
4179 Converts a WearableType to a bodypart or clothing WearableType
4180 </summary>
4181 <param name="type">A WearableType</param>
4182 <returns>AssetType.Bodypart or AssetType.Clothing or AssetType.Unknown</returns>
4183 </member>
4184 <member name="M:OpenMetaverse.AppearanceManager.BakeTypeToAgentTextureIndex(OpenMetaverse.BakeType)">
4185 <summary>
4186 Converts a BakeType to the corresponding baked texture slot in AvatarTextureIndex
4187 </summary>
4188 <param name="index">A BakeType</param>
4189 <returns>The AvatarTextureIndex slot that holds the given BakeType</returns>
4190 </member>
4191 <member name="M:OpenMetaverse.AppearanceManager.MorphLayerForBakeType(OpenMetaverse.BakeType)">
4192 <summary>
4193 Gives the layer number that is used for morph mask
4194 </summary>
4195 <param name="bakeType">&gt;A BakeType</param>
4196 <returns>Which layer number as defined in BakeTypeToTextures is used for morph mask</returns>
4197 </member>
4198 <member name="M:OpenMetaverse.AppearanceManager.BakeTypeToTextures(OpenMetaverse.BakeType)">
4199 <summary>
4200 Converts a BakeType to a list of the texture slots that make up that bake
4201 </summary>
4202 <param name="bakeType">A BakeType</param>
4203 <returns>A list of texture slots that are inputs for the given bake</returns>
4204 </member>
4205 <member name="T:OpenMetaverse.AgentWearablesReplyEventArgs">
4206 <summary>Contains the Event data returned from the data server from an AgentWearablesRequest</summary>
4207 </member>
4208 <member name="M:OpenMetaverse.AgentWearablesReplyEventArgs.#ctor">
4209 <summary>Construct a new instance of the AgentWearablesReplyEventArgs class</summary>
4210 </member>
4211 <member name="T:OpenMetaverse.AgentCachedBakesReplyEventArgs">
4212 <summary>Contains the Event data returned from the data server from an AgentCachedTextureResponse</summary>
4213 </member>
4214 <member name="M:OpenMetaverse.AgentCachedBakesReplyEventArgs.#ctor">
4215 <summary>Construct a new instance of the AgentCachedBakesReplyEventArgs class</summary>
4216 </member>
4217 <member name="T:OpenMetaverse.AppearanceSetEventArgs">
4218 <summary>Contains the Event data returned from an AppearanceSetRequest</summary>
4219 </member>
4220 <member name="M:OpenMetaverse.AppearanceSetEventArgs.#ctor(System.Boolean)">
4221 <summary>
4222 Triggered when appearance data is sent to the sim and
4223 the main appearance thread is done.</summary>
4224 <param name="success">Indicates whether appearance setting was successful</param>
4225 </member>
4226 <member name="P:OpenMetaverse.AppearanceSetEventArgs.Success">
4227 <summary>Indicates whether appearance setting was successful</summary>
4228 </member>
4229 <member name="T:OpenMetaverse.RebakeAvatarTexturesEventArgs">
4230 <summary>Contains the Event data returned from the data server from an RebakeAvatarTextures</summary>
4231 </member>
4232 <member name="M:OpenMetaverse.RebakeAvatarTexturesEventArgs.#ctor(OpenMetaverse.UUID)">
4233 <summary>
4234 Triggered when the simulator sends a request for this agent to rebake
4235 its appearance
4236 </summary>
4237 <param name="textureID">The ID of the Texture Layer to bake</param>
4238 </member>
4239 <member name="P:OpenMetaverse.RebakeAvatarTexturesEventArgs.TextureID">
4240 <summary>The ID of the Texture Layer to bake</summary>
4241 </member>
4242 <member name="T:OpenMetaverse.AssetCache">
4243 <summary>
4244 Class that handles the local asset cache
4245 </summary>
4246 </member>
4247 <member name="M:OpenMetaverse.AssetCache.#ctor(OpenMetaverse.GridClient)">
4248 <summary>
4249 Default constructor
4250 </summary>
4251 <param name="client">A reference to the GridClient object</param>
4252 </member>
4253 <member name="T:OpenMetaverse.AssetCache.SortFilesByAccesTimeHelper">
4254 <summary>
4255 Helper class for sorting files by their last accessed time
4256 </summary>
4257 </member>
4258 <member name="P:OpenMetaverse.AssetCache.AutoPruneEnabled">
4259 <summary>
4260 Allows setting weather to periodicale prune the cache if it grows too big
4261 Default is enabled, when caching is enabled
4262 </summary>
4263 </member>
4264 <member name="P:OpenMetaverse.AssetCache.AutoPruneInterval">
4265 <summary>
4266 How long (in ms) between cache checks (default is 5 min.)
4267 </summary>
4268 </member>
4269 <member name="M:OpenMetaverse.AssetCache.DestroyTimer">
4270 <summary>
4271 Disposes cleanup timer
4272 </summary>
4273 </member>
4274 <member name="M:OpenMetaverse.AssetCache.SetupTimer">
4275 <summary>
4276 Only create timer when needed
4277 </summary>
4278 </member>
4279 <member name="M:OpenMetaverse.AssetCache.GetCachedAssetBytes(OpenMetaverse.UUID)">
4280 <summary>
4281 Return bytes read from the local asset cache, null if it does not exist
4282 </summary>
4283 <param name="assetID">UUID of the asset we want to get</param>
4284 <returns>Raw bytes of the asset, or null on failure</returns>
4285 </member>
4286 <member name="M:OpenMetaverse.AssetCache.GetCachedImage(OpenMetaverse.UUID)">
4287 <summary>
4288 Returns ImageDownload object of the
4289 image from the local image cache, null if it does not exist
4290 </summary>
4291 <param name="imageID">UUID of the image we want to get</param>
4292 <returns>ImageDownload object containing the image, or null on failure</returns>
4293 </member>
4294 <member name="M:OpenMetaverse.AssetCache.FileName(OpenMetaverse.UUID)">
4295 <summary>
4296 Constructs a file name of the cached asset
4297 </summary>
4298 <param name="assetID">UUID of the asset</param>
4299 <returns>String with the file name of the cahced asset</returns>
4300 </member>
4301 <member name="M:OpenMetaverse.AssetCache.StaticFileName(OpenMetaverse.UUID)">
4302 <summary>
4303 Constructs a file name of the static cached asset
4304 </summary>
4305 <param name="assetID">UUID of the asset</param>
4306 <returns>String with the file name of the static cached asset</returns>
4307 </member>
4308 <member name="M:OpenMetaverse.AssetCache.SaveAssetToCache(OpenMetaverse.UUID,System.Byte[])">
4309 <summary>
4310 Saves an asset to the local cache
4311 </summary>
4312 <param name="assetID">UUID of the asset</param>
4313 <param name="assetData">Raw bytes the asset consists of</param>
4314 <returns>Weather the operation was successfull</returns>
4315 </member>
4316 <member name="M:OpenMetaverse.AssetCache.AssetFileName(OpenMetaverse.UUID)">
4317 <summary>
4318 Get the file name of the asset stored with gived UUID
4319 </summary>
4320 <param name="assetID">UUID of the asset</param>
4321 <returns>Null if we don't have that UUID cached on disk, file name if found in the cache folder</returns>
4322 </member>
4323 <member name="M:OpenMetaverse.AssetCache.HasAsset(OpenMetaverse.UUID)">
4324 <summary>
4325 Checks if the asset exists in the local cache
4326 </summary>
4327 <param name="assetID">UUID of the asset</param>
4328 <returns>True is the asset is stored in the cache, otherwise false</returns>
4329 </member>
4330 <member name="M:OpenMetaverse.AssetCache.Clear">
4331 <summary>
4332 Wipes out entire cache
4333 </summary>
4334 </member>
4335 <member name="M:OpenMetaverse.AssetCache.Prune">
4336 <summary>
4337 Brings cache size to the 90% of the max size
4338 </summary>
4339 </member>
4340 <member name="M:OpenMetaverse.AssetCache.BeginPrune">
4341 <summary>
4342 Asynchronously brings cache size to the 90% of the max size
4343 </summary>
4344 </member>
4345 <member name="M:OpenMetaverse.AssetCache.GetFileSize(System.IO.FileInfo[])">
4346 <summary>
4347 Adds up file sizes passes in a FileInfo array
4348 </summary>
4349 </member>
4350 <member name="M:OpenMetaverse.AssetCache.Operational">
4351 <summary>
4352 Checks whether caching is enabled
4353 </summary>
4354 </member>
4355 <member name="M:OpenMetaverse.AssetCache.cleanerTimer_Elapsed(System.Object,System.Timers.ElapsedEventArgs)">
4356 <summary>
4357 Periodically prune the cache
4358 </summary>
4359 </member>
4360 <member name="M:OpenMetaverse.AssetCache.NiceFileSize(System.Int64)">
4361 <summary>
4362 Nicely formats file sizes
4363 </summary>
4364 <param name="byteCount">Byte size we want to output</param>
4365 <returns>String with humanly readable file size</returns>
4366 </member>
4367 <member name="T:OpenMetaverse.StatusCode">
4368 <summary>
4369 </summary>
4370 </member>
4371 <member name="F:OpenMetaverse.StatusCode.OK">
4372 <summary>OK</summary>
4373 </member>
4374 <member name="F:OpenMetaverse.StatusCode.Done">
4375 <summary>Transfer completed</summary>
4376 </member>
4377 <member name="F:OpenMetaverse.StatusCode.Skip">
4378 <summary>
4379 </summary>
4380 </member>
4381 <member name="F:OpenMetaverse.StatusCode.Abort">
4382 <summary>
4383 </summary>
4384 </member>
4385 <member name="F:OpenMetaverse.StatusCode.Error">
4386 <summary>Unknown error occurred</summary>
4387 </member>
4388 <member name="F:OpenMetaverse.StatusCode.UnknownSource">
4389 <summary>Equivalent to a 404 error</summary>
4390 </member>
4391 <member name="F:OpenMetaverse.StatusCode.InsufficientPermissions">
4392 <summary>Client does not have permission for that resource</summary>
4393 </member>
4394 <member name="F:OpenMetaverse.StatusCode.Unknown">
4395 <summary>Unknown status</summary>
4396 </member>
4397 <member name="T:OpenMetaverse.ChannelType">
4398 <summary>
4399 </summary>
4400 </member>
4401 <member name="F:OpenMetaverse.ChannelType.Unknown">
4402 <summary>
4403 </summary>
4404 </member>
4405 <member name="F:OpenMetaverse.ChannelType.Misc">
4406 <summary>Unknown</summary>
4407 </member>
4408 <member name="F:OpenMetaverse.ChannelType.Asset">
4409 <summary>Virtually all asset transfers use this channel</summary>
4410 </member>
4411 <member name="T:OpenMetaverse.SourceType">
4412 <summary>
4413 </summary>
4414 </member>
4415 <member name="F:OpenMetaverse.SourceType.Unknown">
4416 <summary>
4417 </summary>
4418 </member>
4419 <member name="F:OpenMetaverse.SourceType.Asset">
4420 <summary>Asset from the asset server</summary>
4421 </member>
4422 <member name="F:OpenMetaverse.SourceType.SimInventoryItem">
4423 <summary>Inventory item</summary>
4424 </member>
4425 <member name="F:OpenMetaverse.SourceType.SimEstate">
4426 <summary>Estate asset, such as an estate covenant</summary>
4427 </member>
4428 <member name="T:OpenMetaverse.TargetType">
4429 <summary>
4430 </summary>
4431 </member>
4432 <member name="F:OpenMetaverse.TargetType.Unknown">
4433 <summary>
4434 </summary>
4435 </member>
4436 <member name="F:OpenMetaverse.TargetType.File">
4437 <summary>
4438 </summary>
4439 </member>
4440 <member name="F:OpenMetaverse.TargetType.VFile">
4441 <summary>
4442 </summary>
4443 </member>
4444 <member name="T:OpenMetaverse.ImageType">
4445 <summary>
4446 </summary>
4447 </member>
4448 <member name="F:OpenMetaverse.ImageType.Normal">
4449 <summary>
4450 </summary>
4451 </member>
4452 <member name="F:OpenMetaverse.ImageType.Baked">
4453 <summary>
4454 </summary>
4455 </member>
4456 <member name="T:OpenMetaverse.ImageCodec">
4457 <summary>
4458 Image file format
4459 </summary>
4460 </member>
4461 <member name="T:OpenMetaverse.Transfer">
4462 <summary>
4463 </summary>
4464 </member>
4465 <member name="P:OpenMetaverse.Transfer.TimeSinceLastPacket">
4466 <summary>Number of milliseconds passed since the last transfer
4467 packet was received</summary>
4468 </member>
4469 <member name="T:OpenMetaverse.AssetDownload">
4470 <summary>
4471 </summary>
4472 </member>
4473 <member name="T:OpenMetaverse.XferDownload">
4474 <summary>
4475 </summary>
4476 </member>
4477 <member name="T:OpenMetaverse.ImageDownload">
4478 <summary>
4479 </summary>
4480 </member>
4481 <member name="T:OpenMetaverse.AssetUpload">
4482 <summary>
4483 </summary>
4484 </member>
4485 <member name="T:OpenMetaverse.ImageRequest">
4486 <summary>
4487 </summary>
4488 </member>
4489 <member name="M:OpenMetaverse.ImageRequest.#ctor(OpenMetaverse.UUID,OpenMetaverse.ImageType,System.Single,System.Int32)">
4490 <summary>
4491 </summary>
4492 <param name="imageid">
4493 </param>
4494 <param name="type">
4495 </param>
4496 <param name="priority">
4497 </param>
4498 <param name="discardLevel">
4499 </param>
4500 </member>
4501 <member name="T:OpenMetaverse.AssetManager">
4502 <summary>
4503 </summary>
4504 </member>
4505 <member name="M:OpenMetaverse.AssetManager.#ctor(OpenMetaverse.GridClient)">
4506 <summary>
4507 Default constructor
4508 </summary>
4509 <param name="client">A reference to the GridClient object</param>
4510 </member>
4511 <member name="T:OpenMetaverse.AssetManager.AssetReceivedCallback">
4512 <summary>
4513 Callback used for various asset download requests
4514 </summary>
4515 <param name="transfer">Transfer information</param>
4516 <param name="asset">Downloaded asset, null on fail</param>
4517 </member>
4518 <member name="T:OpenMetaverse.AssetManager.BakedTextureUploadedCallback">
4519 <summary>
4520 Callback used upon competition of baked texture upload
4521 </summary>
4522 <param name="newAssetID">Asset UUID of the newly uploaded baked texture</param>
4523 </member>
4524 <member name="T:OpenMetaverse.AssetManager.MeshDownloadCallback">
4525 <summary>
4526 A callback that fires upon the completition of the RequestMesh call
4527 </summary>
4528 <param name="success">Was the download successfull</param>
4529 <param name="assetMesh">Resulting mesh or null on problems</param>
4530 </member>
4531 <member name="F:OpenMetaverse.AssetManager.TRANSFER_HEADER_TIMEOUT">
4532 <summary>Number of milliseconds to wait for a transfer header packet if out of order data was received</summary>
4533 </member>
4534 <member name="F:OpenMetaverse.AssetManager.m_XferReceivedEvent">
4535 <summary>The event subscribers. null if no subcribers</summary>
4536 </member>
4537 <member name="F:OpenMetaverse.AssetManager.m_XferReceivedLock">
7772 <summary>Thread sync lock object</summary> 4538 <summary>Thread sync lock object</summary>
7773 </member> 4539 </member>
7774 <member name="F:OpenMetaverse.NetworkManager.m_SimChanged"> 4540 <member name="F:OpenMetaverse.AssetManager.m_AssetUploadedEvent">
7775 <summary>The event subscribers, null of no subscribers</summary> 4541 <summary>The event subscribers. null if no subcribers</summary>
7776 </member> 4542 </member>
7777 <member name="M:OpenMetaverse.NetworkManager.OnSimChanged(OpenMetaverse.SimChangedEventArgs)"> 4543 <member name="F:OpenMetaverse.AssetManager.m_AssetUploadedLock">
7778 <summary>Raises the SimChanged Event</summary> 4544 <summary>Thread sync lock object</summary>
7779 <param name="e">A SimChangedEventArgs object containing
7780 the data sent from the simulator</param>
7781 </member> 4545 </member>
7782 <member name="F:OpenMetaverse.NetworkManager.m_SimChangedLock"> 4546 <member name="F:OpenMetaverse.AssetManager.m_UploadProgressEvent">
4547 <summary>The event subscribers. null if no subcribers</summary>
4548 </member>
4549 <member name="F:OpenMetaverse.AssetManager.m_UploadProgressLock">
7783 <summary>Thread sync lock object</summary> 4550 <summary>Thread sync lock object</summary>
7784 </member> 4551 </member>
7785 <member name="F:OpenMetaverse.NetworkManager.m_EventQueueRunning"> 4552 <member name="F:OpenMetaverse.AssetManager.m_InitiateDownloadEvent">
7786 <summary>The event subscribers, null of no subscribers</summary> 4553 <summary>The event subscribers. null if no subcribers</summary>
7787 </member> 4554 </member>
7788 <member name="M:OpenMetaverse.NetworkManager.OnEventQueueRunning(OpenMetaverse.EventQueueRunningEventArgs)"> 4555 <member name="F:OpenMetaverse.AssetManager.m_InitiateDownloadLock">
7789 <summary>Raises the EventQueueRunning Event</summary> 4556 <summary>Thread sync lock object</summary>
7790 <param name="e">A EventQueueRunningEventArgs object containing
7791 the data sent from the simulator</param>
7792 </member> 4557 </member>
7793 <member name="F:OpenMetaverse.NetworkManager.m_EventQueueRunningLock"> 4558 <member name="F:OpenMetaverse.AssetManager.m_ImageReceiveProgressEvent">
4559 <summary>The event subscribers. null if no subcribers</summary>
4560 </member>
4561 <member name="F:OpenMetaverse.AssetManager.m_ImageReceiveProgressLock">
7794 <summary>Thread sync lock object</summary> 4562 <summary>Thread sync lock object</summary>
7795 </member> 4563 </member>
7796 <member name="F:OpenMetaverse.NetworkManager.Simulators"> 4564 <member name="F:OpenMetaverse.AssetManager.Cache">
7797 <summary>All of the simulators we are currently connected to</summary> 4565 <summary>Texture download cache</summary>
7798 </member> 4566 </member>
7799 <member name="F:OpenMetaverse.NetworkManager.CapsEvents"> 4567 <member name="E:OpenMetaverse.AssetManager.XferReceived">
7800 <summary>Handlers for incoming capability events</summary> 4568 <summary>Raised when the simulator responds sends </summary>
7801 </member> 4569 </member>
7802 <member name="F:OpenMetaverse.NetworkManager.PacketEvents"> 4570 <member name="E:OpenMetaverse.AssetManager.AssetUploaded">
7803 <summary>Handlers for incoming packets</summary> 4571 <summary>Raised during upload completes</summary>
7804 </member> 4572 </member>
7805 <member name="F:OpenMetaverse.NetworkManager.PacketInbox"> 4573 <member name="E:OpenMetaverse.AssetManager.UploadProgress">
7806 <summary>Incoming packets that are awaiting handling</summary> 4574 <summary>Raised during upload with progres update</summary>
7807 </member> 4575 </member>
7808 <member name="F:OpenMetaverse.NetworkManager.PacketOutbox"> 4576 <member name="E:OpenMetaverse.AssetManager.InitiateDownload">
7809 <summary>Outgoing packets that are awaiting handling</summary> 4577 <summary>Fired when the simulator sends an InitiateDownloadPacket, used to download terrain .raw files</summary>
7810 </member> 4578 </member>
7811 <member name="M:OpenMetaverse.NetworkManager.#ctor(OpenMetaverse.GridClient)"> 4579 <member name="E:OpenMetaverse.AssetManager.ImageReceiveProgress">
4580 <summary>Fired when a texture is in the process of being downloaded by the TexturePipeline class</summary>
4581 </member>
4582 <member name="M:OpenMetaverse.AssetManager.OnXferReceived(OpenMetaverse.XferReceivedEventArgs)">
4583 <summary>Raises the XferReceived event</summary>
4584 <param name="e">A XferReceivedEventArgs object containing the
4585 data returned from the simulator</param>
4586 </member>
4587 <member name="M:OpenMetaverse.AssetManager.OnAssetUploaded(OpenMetaverse.AssetUploadEventArgs)">
4588 <summary>Raises the AssetUploaded event</summary>
4589 <param name="e">A AssetUploadedEventArgs object containing the
4590 data returned from the simulator</param>
4591 </member>
4592 <member name="M:OpenMetaverse.AssetManager.OnUploadProgress(OpenMetaverse.AssetUploadEventArgs)">
4593 <summary>Raises the UploadProgress event</summary>
4594 <param name="e">A UploadProgressEventArgs object containing the
4595 data returned from the simulator</param>
4596 </member>
4597 <member name="M:OpenMetaverse.AssetManager.OnInitiateDownload(OpenMetaverse.InitiateDownloadEventArgs)">
4598 <summary>Raises the InitiateDownload event</summary>
4599 <param name="e">A InitiateDownloadEventArgs object containing the
4600 data returned from the simulator</param>
4601 </member>
4602 <member name="M:OpenMetaverse.AssetManager.OnImageReceiveProgress(OpenMetaverse.ImageReceiveProgressEventArgs)">
4603 <summary>Raises the ImageReceiveProgress event</summary>
4604 <param name="e">A ImageReceiveProgressEventArgs object containing the
4605 data returned from the simulator</param>
4606 </member>
4607 <member name="M:OpenMetaverse.AssetManager.RequestAsset(OpenMetaverse.UUID,OpenMetaverse.AssetType,System.Boolean,OpenMetaverse.AssetManager.AssetReceivedCallback)">
7812 <summary> 4608 <summary>
7813 Default constructor 4609 Request an asset download
7814 </summary> 4610 </summary>
7815 <param name="client">Reference to the GridClient object</param> 4611 <param name="assetID">Asset UUID</param>
4612 <param name="type">Asset type, must be correct for the transfer to succeed</param>
4613 <param name="priority">Whether to give this transfer an elevated priority</param>
4614 <param name="callback">The callback to fire when the simulator responds with the asset data</param>
7816 </member> 4615 </member>
7817 <member name="M:OpenMetaverse.NetworkManager.RegisterCallback(OpenMetaverse.Packets.PacketType,System.EventHandler{OpenMetaverse.PacketReceivedEventArgs})"> 4616 <member name="M:OpenMetaverse.AssetManager.RequestAsset(OpenMetaverse.UUID,OpenMetaverse.AssetType,System.Boolean,OpenMetaverse.SourceType,OpenMetaverse.AssetManager.AssetReceivedCallback)">
7818 <summary> 4617 <summary>
7819 Register an event handler for a packet. This is a low level event 4618 Request an asset download
7820 interface and should only be used if you are doing something not
7821 supported in the library
7822 </summary> 4619 </summary>
7823 <param name="type">Packet type to trigger events for</param> 4620 <param name="assetID">Asset UUID</param>
7824 <param name="callback">Callback to fire when a packet of this type 4621 <param name="type">Asset type, must be correct for the transfer to succeed</param>
7825 is received</param> 4622 <param name="priority">Whether to give this transfer an elevated priority</param>
4623 <param name="sourceType">Source location of the requested asset</param>
4624 <param name="callback">The callback to fire when the simulator responds with the asset data</param>
7826 </member> 4625 </member>
7827 <member name="M:OpenMetaverse.NetworkManager.RegisterCallback(OpenMetaverse.Packets.PacketType,System.EventHandler{OpenMetaverse.PacketReceivedEventArgs},System.Boolean)"> 4626 <member name="M:OpenMetaverse.AssetManager.RequestAsset(OpenMetaverse.UUID,OpenMetaverse.AssetType,System.Boolean,OpenMetaverse.SourceType,OpenMetaverse.UUID,OpenMetaverse.AssetManager.AssetReceivedCallback)">
7828 <summary> 4627 <summary>
7829 Register an event handler for a packet. This is a low level event 4628 Request an asset download
7830 interface and should only be used if you are doing something not
7831 supported in the library
7832 </summary> 4629 </summary>
7833 <param name="type">Packet type to trigger events for</param> 4630 <param name="assetID">Asset UUID</param>
7834 <param name="callback">Callback to fire when a packet of this type 4631 <param name="type">Asset type, must be correct for the transfer to succeed</param>
7835 is received</param> 4632 <param name="priority">Whether to give this transfer an elevated priority</param>
7836 <param name="isAsync">True if the callback should be ran 4633 <param name="sourceType">Source location of the requested asset</param>
7837 asynchronously. Only set this to false (synchronous for callbacks 4634 <param name="transactionID">UUID of the transaction</param>
7838 that will always complete quickly)</param> 4635 <param name="callback">The callback to fire when the simulator responds with the asset data</param>
7839 <remarks>If any callback for a packet type is marked as
7840 asynchronous, all callbacks for that packet type will be fired
7841 asynchronously</remarks>
7842 </member> 4636 </member>
7843 <member name="M:OpenMetaverse.NetworkManager.UnregisterCallback(OpenMetaverse.Packets.PacketType,System.EventHandler{OpenMetaverse.PacketReceivedEventArgs})"> 4637 <member name="M:OpenMetaverse.AssetManager.RequestAssetXfer(System.String,System.Boolean,System.Boolean,OpenMetaverse.UUID,OpenMetaverse.AssetType,System.Boolean)">
7844 <summary> 4638 <summary>
7845 Unregister an event handler for a packet. This is a low level event 4639 Request an asset download through the almost deprecated Xfer system
7846 interface and should only be used if you are doing something not
7847 supported in the library
7848 </summary> 4640 </summary>
7849 <param name="type">Packet type this callback is registered with</param> 4641 <param name="filename">Filename of the asset to request</param>
7850 <param name="callback">Callback to stop firing events for</param> 4642 <param name="deleteOnCompletion">Whether or not to delete the asset
4643 off the server after it is retrieved</param>
4644 <param name="useBigPackets">Use large transfer packets or not</param>
4645 <param name="vFileID">UUID of the file to request, if filename is
4646 left empty</param>
4647 <param name="vFileType">Asset type of <code>vFileID</code>, or
4648 <code>AssetType.Unknown</code> if filename is not empty</param>
4649 <param name="fromCache">Sets the FilePath in the request to Cache
4650 (4) if true, otherwise Unknown (0) is used</param>
4651 <returns>
4652 </returns>
7851 </member> 4653 </member>
7852 <member name="M:OpenMetaverse.NetworkManager.RegisterEventCallback(System.String,OpenMetaverse.Caps.EventQueueCallback)"> 4654 <member name="M:OpenMetaverse.AssetManager.RequestInventoryAsset(OpenMetaverse.UUID,OpenMetaverse.UUID,OpenMetaverse.UUID,OpenMetaverse.UUID,OpenMetaverse.AssetType,System.Boolean,OpenMetaverse.AssetManager.AssetReceivedCallback)">
7853 <summary> 4655 <summary>
7854 Register a CAPS event handler. This is a low level event interface
7855 and should only be used if you are doing something not supported in
7856 the library
7857 </summary> 4656 </summary>
7858 <param name="capsEvent">Name of the CAPS event to register a handler for</param> 4657 <param name="assetID">Use UUID.Zero if you do not have the
7859 <param name="callback">Callback to fire when a CAPS event is received</param> 4658 asset ID but have all the necessary permissions</param>
4659 <param name="itemID">The item ID of this asset in the inventory</param>
4660 <param name="taskID">Use UUID.Zero if you are not requesting an
4661 asset from an object inventory</param>
4662 <param name="ownerID">The owner of this asset</param>
4663 <param name="type">Asset type</param>
4664 <param name="priority">Whether to prioritize this asset download or not</param>
4665 <param name="callback">
4666 </param>
7860 </member> 4667 </member>
7861 <member name="M:OpenMetaverse.NetworkManager.UnregisterEventCallback(System.String,OpenMetaverse.Caps.EventQueueCallback)"> 4668 <member name="M:OpenMetaverse.AssetManager.SetPendingAssetUploadData(OpenMetaverse.AssetUpload)">
7862 <summary> 4669 <summary>
7863 Unregister a CAPS event handler. This is a low level event interface 4670 Used to force asset data into the PendingUpload property, ie: for raw terrain uploads
7864 and should only be used if you are doing something not supported in
7865 the library
7866 </summary> 4671 </summary>
7867 <param name="capsEvent">Name of the CAPS event this callback is 4672 <param name="assetData">An AssetUpload object containing the data to upload to the simulator</param>
7868 registered with</param>
7869 <param name="callback">Callback to stop firing events for</param>
7870 </member> 4673 </member>
7871 <member name="M:OpenMetaverse.NetworkManager.SendPacket(OpenMetaverse.Packets.Packet)"> 4674 <member name="M:OpenMetaverse.AssetManager.RequestUpload(OpenMetaverse.Assets.Asset,System.Boolean)">
7872 <summary> 4675 <summary>
7873 Send a packet to the simulator the avatar is currently occupying 4676 Request an asset be uploaded to the simulator
7874 </summary> 4677 </summary>
7875 <param name="packet">Packet to send</param> 4678 <param name="asset">The <seealso cref="T:OpenMetaverse.Assets.Asset" /> Object containing the asset data</param>
4679 <param name="storeLocal">If True, the asset once uploaded will be stored on the simulator
4680 in which the client was connected in addition to being stored on the asset server</param>
4681 <returns>The <seealso cref="T:OpenMetaverse.UUID" /> of the transfer, can be used to correlate the upload with
4682 events being fired</returns>
7876 </member> 4683 </member>
7877 <member name="M:OpenMetaverse.NetworkManager.SendPacket(OpenMetaverse.Packets.Packet,OpenMetaverse.Simulator)"> 4684 <member name="M:OpenMetaverse.AssetManager.RequestUpload(OpenMetaverse.AssetType,System.Byte[],System.Boolean)">
7878 <summary> 4685 <summary>
7879 Send a packet to a specified simulator 4686 Request an asset be uploaded to the simulator
7880 </summary> 4687 </summary>
7881 <param name="packet">Packet to send</param> 4688 <param name="type">The <seealso cref="T:OpenMetaverse.AssetType" /> of the asset being uploaded</param>
7882 <param name="simulator">Simulator to send the packet to</param> 4689 <param name="data">A byte array containing the encoded asset data</param>
4690 <param name="storeLocal">If True, the asset once uploaded will be stored on the simulator
4691 in which the client was connected in addition to being stored on the asset server</param>
4692 <returns>The <seealso cref="T:OpenMetaverse.UUID" /> of the transfer, can be used to correlate the upload with
4693 events being fired</returns>
7883 </member> 4694 </member>
7884 <member name="M:OpenMetaverse.NetworkManager.Connect(System.Net.IPAddress,System.UInt16,System.UInt64,System.Boolean,System.String)"> 4695 <member name="M:OpenMetaverse.AssetManager.RequestUpload(OpenMetaverse.UUID@,OpenMetaverse.AssetType,System.Byte[],System.Boolean)">
7885 <summary> 4696 <summary>
7886 Connect to a simulator 4697 Request an asset be uploaded to the simulator
7887 </summary> 4698 </summary>
7888 <param name="ip">IP address to connect to</param> 4699 <param name="assetID">
7889 <param name="port">Port to connect to</param> 4700 </param>
7890 <param name="handle">Handle for this simulator, to identify its 4701 <param name="type">Asset type to upload this data as</param>
7891 location in the grid</param> 4702 <param name="data">A byte array containing the encoded asset data</param>
7892 <param name="setDefault">Whether to set CurrentSim to this new 4703 <param name="storeLocal">If True, the asset once uploaded will be stored on the simulator
7893 connection, use this if the avatar is moving in to this simulator</param> 4704 in which the client was connected in addition to being stored on the asset server</param>
7894 <param name="seedcaps">URL of the capabilities server to use for 4705 <returns>The <seealso cref="T:OpenMetaverse.UUID" /> of the transfer, can be used to correlate the upload with
7895 this sim connection</param> 4706 events being fired</returns>
7896 <returns>A Simulator object on success, otherwise null</returns>
7897 </member> 4707 </member>
7898 <member name="M:OpenMetaverse.NetworkManager.Connect(System.Net.IPEndPoint,System.UInt64,System.Boolean,System.String)"> 4708 <member name="M:OpenMetaverse.AssetManager.RequestUpload(OpenMetaverse.UUID@,OpenMetaverse.AssetType,System.Byte[],System.Boolean,OpenMetaverse.UUID)">
7899 <summary> 4709 <summary>
7900 Connect to a simulator 4710 Initiate an asset upload
7901 </summary> 4711 </summary>
7902 <param name="endPoint">IP address and port to connect to</param> 4712 <param name="assetID">The ID this asset will have if the
7903 <param name="handle">Handle for this simulator, to identify its 4713 upload succeeds</param>
7904 location in the grid</param> 4714 <param name="type">Asset type to upload this data as</param>
7905 <param name="setDefault">Whether to set CurrentSim to this new 4715 <param name="data">Raw asset data to upload</param>
7906 connection, use this if the avatar is moving in to this simulator</param> 4716 <param name="storeLocal">Whether to store this asset on the local
7907 <param name="seedcaps">URL of the capabilities server to use for 4717 simulator or the grid-wide asset server</param>
7908 this sim connection</param> 4718 <param name="transactionID">The tranaction id for the upload <see cref="!:RequestCreateItem" /></param>
7909 <returns>A Simulator object on success, otherwise null</returns> 4719 <returns>The transaction ID of this transfer</returns>
7910 </member> 4720 </member>
7911 <member name="M:OpenMetaverse.NetworkManager.Logout"> 4721 <member name="M:OpenMetaverse.AssetManager.RequestImage(OpenMetaverse.UUID,OpenMetaverse.ImageType,System.Single,System.Int32,System.UInt32,OpenMetaverse.TextureDownloadCallback,System.Boolean)">
7912 <summary> 4722 <summary>
7913 Initiate a blocking logout request. This will return when the logout 4723 Request a texture asset from the simulator using the <see cref="T:OpenMetaverse.TexturePipeline" /> system to
7914 handshake has completed or when <code>Settings.LOGOUT_TIMEOUT</code> 4724 manage the requests and re-assemble the image from the packets received from the simulator
7915 has expired and the network layer is manually shut down
7916 </summary> 4725 </summary>
4726 <param name="textureID">The <see cref="T:OpenMetaverse.UUID" /> of the texture asset to download</param>
4727 <param name="imageType">The <see cref="T:OpenMetaverse.ImageType" /> of the texture asset.
4728 Use <see cref="F:OpenMetaverse.ImageType.Normal" /> for most textures, or <see cref="F:OpenMetaverse.ImageType.Baked" /> for baked layer texture assets</param>
4729 <param name="priority">A float indicating the requested priority for the transfer. Higher priority values tell the simulator
4730 to prioritize the request before lower valued requests. An image already being transferred using the <see cref="T:OpenMetaverse.TexturePipeline" /> can have
4731 its priority changed by resending the request with the new priority value</param>
4732 <param name="discardLevel">Number of quality layers to discard.
4733 This controls the end marker of the data sent. Sending with value -1 combined with priority of 0 cancels an in-progress
4734 transfer.</param>
4735 <remarks>A bug exists in the Linden Simulator where a -1 will occasionally be sent with a non-zero priority
4736 indicating an off-by-one error.</remarks>
4737 <param name="packetStart">The packet number to begin the request at. A value of 0 begins the request
4738 from the start of the asset texture</param>
4739 <param name="callback">The <see cref="T:OpenMetaverse.TextureDownloadCallback" /> callback to fire when the image is retrieved. The callback
4740 will contain the result of the request and the texture asset data</param>
4741 <param name="progress">If true, the callback will be fired for each chunk of the downloaded image.
4742 The callback asset parameter will contain all previously received chunks of the texture asset starting
4743 from the beginning of the request</param>
4744 <example>
4745 Request an image and fire a callback when the request is complete
4746 <code>
4747 Client.Assets.RequestImage(UUID.Parse("c307629f-e3a1-4487-5e88-0d96ac9d4965"), ImageType.Normal, TextureDownloader_OnDownloadFinished);
4748 private void TextureDownloader_OnDownloadFinished(TextureRequestState state, AssetTexture asset)
4749 {
4750 if(state == TextureRequestState.Finished)
4751 {
4752 Console.WriteLine("Texture {0} ({1} bytes) has been successfully downloaded",
4753 asset.AssetID,
4754 asset.AssetData.Length);
4755 }
4756 }
4757 </code>
4758 Request an image and use an inline anonymous method to handle the downloaded texture data
4759 <code>
4760 Client.Assets.RequestImage(UUID.Parse("c307629f-e3a1-4487-5e88-0d96ac9d4965"), ImageType.Normal, delegate(TextureRequestState state, AssetTexture asset)
4761 {
4762 if(state == TextureRequestState.Finished)
4763 {
4764 Console.WriteLine("Texture {0} ({1} bytes) has been successfully downloaded",
4765 asset.AssetID,
4766 asset.AssetData.Length);
4767 }
4768 }
4769 );
4770 </code>
4771 Request a texture, decode the texture to a bitmap image and apply it to a imagebox
4772 <code>
4773 Client.Assets.RequestImage(UUID.Parse("c307629f-e3a1-4487-5e88-0d96ac9d4965"), ImageType.Normal, TextureDownloader_OnDownloadFinished);
4774 private void TextureDownloader_OnDownloadFinished(TextureRequestState state, AssetTexture asset)
4775 {
4776 if(state == TextureRequestState.Finished)
4777 {
4778 ManagedImage imgData;
4779 Image bitmap;
4780 if (state == TextureRequestState.Finished)
4781 {
4782 OpenJPEG.DecodeToImage(assetTexture.AssetData, out imgData, out bitmap);
4783 picInsignia.Image = bitmap;
4784 }
4785 }
4786 }
4787 </code></example>
7917 </member> 4788 </member>
7918 <member name="M:OpenMetaverse.NetworkManager.RequestLogout"> 4789 <member name="M:OpenMetaverse.AssetManager.RequestImage(OpenMetaverse.UUID,OpenMetaverse.TextureDownloadCallback)">
7919 <summary> 4790 <summary>
7920 Initiate the logout process. Check if logout succeeded with the 4791 Overload: Request a texture asset from the simulator using the <see cref="T:OpenMetaverse.TexturePipeline" /> system to
7921 <code>OnLogoutReply</code> event, and if this does not fire the 4792 manage the requests and re-assemble the image from the packets received from the simulator
7922 <code>Shutdown()</code> function needs to be manually called
7923 </summary> 4793 </summary>
4794 <param name="textureID">The <see cref="T:OpenMetaverse.UUID" /> of the texture asset to download</param>
4795 <param name="callback">The <see cref="T:OpenMetaverse.TextureDownloadCallback" /> callback to fire when the image is retrieved. The callback
4796 will contain the result of the request and the texture asset data</param>
7924 </member> 4797 </member>
7925 <member name="M:OpenMetaverse.NetworkManager.DisconnectSim(OpenMetaverse.Simulator,System.Boolean)"> 4798 <member name="M:OpenMetaverse.AssetManager.RequestImage(OpenMetaverse.UUID,OpenMetaverse.ImageType,OpenMetaverse.TextureDownloadCallback)">
7926 <summary> 4799 <summary>
7927 Close a connection to the given simulator 4800 Overload: Request a texture asset from the simulator using the <see cref="T:OpenMetaverse.TexturePipeline" /> system to
4801 manage the requests and re-assemble the image from the packets received from the simulator
7928 </summary> 4802 </summary>
7929 <param name="simulator"></param> 4803 <param name="textureID">The <see cref="T:OpenMetaverse.UUID" /> of the texture asset to download</param>
7930 <param name="sendCloseCircuit"></param> 4804 <param name="imageType">The <see cref="T:OpenMetaverse.ImageType" /> of the texture asset.
4805 Use <see cref="F:OpenMetaverse.ImageType.Normal" /> for most textures, or <see cref="F:OpenMetaverse.ImageType.Baked" /> for baked layer texture assets</param>
4806 <param name="callback">The <see cref="T:OpenMetaverse.TextureDownloadCallback" /> callback to fire when the image is retrieved. The callback
4807 will contain the result of the request and the texture asset data</param>
7931 </member> 4808 </member>
7932 <member name="M:OpenMetaverse.NetworkManager.Shutdown(OpenMetaverse.NetworkManager.DisconnectType)"> 4809 <member name="M:OpenMetaverse.AssetManager.RequestImage(OpenMetaverse.UUID,OpenMetaverse.ImageType,OpenMetaverse.TextureDownloadCallback,System.Boolean)">
7933 <summary> 4810 <summary>
7934 Shutdown will disconnect all the sims except for the current sim 4811 Overload: Request a texture asset from the simulator using the <see cref="T:OpenMetaverse.TexturePipeline" /> system to
7935 first, and then kill the connection to CurrentSim. This should only 4812 manage the requests and re-assemble the image from the packets received from the simulator
7936 be called if the logout process times out on <code>RequestLogout</code>
7937 </summary> 4813 </summary>
7938 <param name="type">Type of shutdown</param> 4814 <param name="textureID">The <see cref="T:OpenMetaverse.UUID" /> of the texture asset to download</param>
4815 <param name="imageType">The <see cref="T:OpenMetaverse.ImageType" /> of the texture asset.
4816 Use <see cref="F:OpenMetaverse.ImageType.Normal" /> for most textures, or <see cref="F:OpenMetaverse.ImageType.Baked" /> for baked layer texture assets</param>
4817 <param name="callback">The <see cref="T:OpenMetaverse.TextureDownloadCallback" /> callback to fire when the image is retrieved. The callback
4818 will contain the result of the request and the texture asset data</param>
4819 <param name="progress">If true, the callback will be fired for each chunk of the downloaded image.
4820 The callback asset parameter will contain all previously received chunks of the texture asset starting
4821 from the beginning of the request</param>
7939 </member> 4822 </member>
7940 <member name="M:OpenMetaverse.NetworkManager.Shutdown(OpenMetaverse.NetworkManager.DisconnectType,System.String)"> 4823 <member name="M:OpenMetaverse.AssetManager.RequestImageCancel(OpenMetaverse.UUID)">
7941 <summary> 4824 <summary>
7942 Shutdown will disconnect all the sims except for the current sim 4825 Cancel a texture request
7943 first, and then kill the connection to CurrentSim. This should only
7944 be called if the logout process times out on <code>RequestLogout</code>
7945 </summary> 4826 </summary>
7946 <param name="type">Type of shutdown</param> 4827 <param name="textureID">The texture assets <see cref="T:OpenMetaverse.UUID" /></param>
7947 <param name="message">Shutdown message</param>
7948 </member> 4828 </member>
7949 <member name="M:OpenMetaverse.NetworkManager.FindSimulator(System.Net.IPEndPoint)"> 4829 <member name="M:OpenMetaverse.AssetManager.RequestMesh(OpenMetaverse.UUID,OpenMetaverse.AssetManager.MeshDownloadCallback)">
7950 <summary> 4830 <summary>
7951 Searches through the list of currently connected simulators to find 4831 Requests download of a mesh asset
7952 one attached to the given IPEndPoint
7953 </summary> 4832 </summary>
7954 <param name="endPoint">IPEndPoint of the Simulator to search for</param> 4833 <param name="meshID">UUID of the mesh asset</param>
7955 <returns>A Simulator reference on success, otherwise null</returns> 4834 <param name="callback">Callback when the request completes</param>
7956 </member> 4835 </member>
7957 <member name="M:OpenMetaverse.NetworkManager.RaiseConnectedEvent(OpenMetaverse.Simulator)"> 4836 <member name="M:OpenMetaverse.AssetManager.FireImageProgressEvent(OpenMetaverse.UUID,System.Int32,System.Int32)">
7958 <summary> 4837 <summary>
7959 Fire an event when an event queue connects for capabilities 4838 Lets TexturePipeline class fire the progress event
7960 </summary> 4839 </summary>
7961 <param name="simulator">Simulator the event queue is attached to</param> 4840 <param name="texureID">The texture ID currently being downloaded</param>
4841 <param name="transferredBytes">the number of bytes transferred</param>
4842 <param name="totalBytes">the total number of bytes expected</param>
7962 </member> 4843 </member>
7963 <member name="M:OpenMetaverse.NetworkManager.LogoutReplyHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)"> 4844 <member name="M:OpenMetaverse.AssetManager.TransferInfoHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
7964 <summary>Process an incoming packet and raise the appropriate events</summary> 4845 <summary>Process an incoming packet and raise the appropriate events</summary>
7965 <param name="sender">The sender</param> 4846 <param name="sender">The sender</param>
7966 <param name="e">The EventArgs object containing the packet data</param> 4847 <param name="e">The EventArgs object containing the packet data</param>
7967 </member> 4848 </member>
7968 <member name="M:OpenMetaverse.NetworkManager.StartPingCheckHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)"> 4849 <member name="M:OpenMetaverse.AssetManager.TransferPacketHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
7969 <summary>Process an incoming packet and raise the appropriate events</summary> 4850 <summary>Process an incoming packet and raise the appropriate events</summary>
7970 <param name="sender">The sender</param> 4851 <param name="sender">The sender</param>
7971 <param name="e">The EventArgs object containing the packet data</param> 4852 <param name="e">The EventArgs object containing the packet data</param>
7972 </member> 4853 </member>
7973 <member name="M:OpenMetaverse.NetworkManager.CompletePingCheckHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)"> 4854 <member name="M:OpenMetaverse.AssetManager.InitiateDownloadPacketHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
7974 <summary>Process an incoming packet and raise the appropriate events</summary> 4855 <summary>Process an incoming packet and raise the appropriate events</summary>
7975 <param name="sender">The sender</param> 4856 <param name="sender">The sender</param>
7976 <param name="e">The EventArgs object containing the packet data</param> 4857 <param name="e">The EventArgs object containing the packet data</param>
7977 </member> 4858 </member>
7978 <member name="M:OpenMetaverse.NetworkManager.SimStatsHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)"> 4859 <member name="M:OpenMetaverse.AssetManager.RequestXferHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
7979 <summary>Process an incoming packet and raise the appropriate events</summary> 4860 <summary>Process an incoming packet and raise the appropriate events</summary>
7980 <param name="sender">The sender</param> 4861 <param name="sender">The sender</param>
7981 <param name="e">The EventArgs object containing the packet data</param> 4862 <param name="e">The EventArgs object containing the packet data</param>
7982 </member> 4863 </member>
7983 <member name="M:OpenMetaverse.NetworkManager.RegionHandshakeHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)"> 4864 <member name="M:OpenMetaverse.AssetManager.ConfirmXferPacketHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
7984 <summary>Process an incoming packet and raise the appropriate events</summary> 4865 <summary>Process an incoming packet and raise the appropriate events</summary>
7985 <param name="sender">The sender</param> 4866 <param name="sender">The sender</param>
7986 <param name="e">The EventArgs object containing the packet data</param> 4867 <param name="e">The EventArgs object containing the packet data</param>
7987 </member> 4868 </member>
7988 <member name="M:OpenMetaverse.NetworkManager.DisableSimulatorHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)"> 4869 <member name="M:OpenMetaverse.AssetManager.AssetUploadCompleteHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
7989 <summary>Process an incoming packet and raise the appropriate events</summary> 4870 <summary>Process an incoming packet and raise the appropriate events</summary>
7990 <param name="sender">The sender</param> 4871 <param name="sender">The sender</param>
7991 <param name="e">The EventArgs object containing the packet data</param> 4872 <param name="e">The EventArgs object containing the packet data</param>
7992 </member> 4873 </member>
7993 <member name="M:OpenMetaverse.NetworkManager.KickUserHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)"> 4874 <member name="M:OpenMetaverse.AssetManager.SendXferPacketHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
7994 <summary>Process an incoming packet and raise the appropriate events</summary> 4875 <summary>Process an incoming packet and raise the appropriate events</summary>
7995 <param name="sender">The sender</param> 4876 <param name="sender">The sender</param>
7996 <param name="e">The EventArgs object containing the packet data</param> 4877 <param name="e">The EventArgs object containing the packet data</param>
7997 </member> 4878 </member>
7998 <member name="F:OpenMetaverse.NetworkManager.m_LoginProgress"> 4879 <member name="M:OpenMetaverse.AssetManager.AbortXferHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
7999 <summary>The event subscribers, null of no subscribers</summary> 4880 <summary>Process an incoming packet and raise the appropriate events</summary>
4881 <param name="sender">The sender</param>
4882 <param name="e">The EventArgs object containing the packet data</param>
8000 </member> 4883 </member>
8001 <member name="M:OpenMetaverse.NetworkManager.OnLoginProgress(OpenMetaverse.LoginProgressEventArgs)"> 4884 <member name="P:OpenMetaverse.XferReceivedEventArgs.Xfer">
8002 <summary>Raises the LoginProgress Event</summary> 4885 <summary>Xfer data</summary>
8003 <param name="e">A LoginProgressEventArgs object containing
8004 the data sent from the simulator</param>
8005 </member> 4886 </member>
8006 <member name="F:OpenMetaverse.NetworkManager.m_LoginProgressLock"> 4887 <member name="P:OpenMetaverse.AssetUploadEventArgs.Upload">
8007 <summary>Thread sync lock object</summary> 4888 <summary>Upload data</summary>
8008 </member> 4889 </member>
8009 <member name="F:OpenMetaverse.NetworkManager.LoginSeedCapability"> 4890 <member name="P:OpenMetaverse.InitiateDownloadEventArgs.SimFileName">
8010 <summary>Seed CAPS URL returned from the login server</summary> 4891 <summary>Filename used on the simulator</summary>
8011 </member> 4892 </member>
8012 <member name="F:OpenMetaverse.NetworkManager.UDPBlacklist"> 4893 <member name="P:OpenMetaverse.InitiateDownloadEventArgs.ViewerFileName">
8013 <summary>A list of packets obtained during the login process which 4894 <summary>Filename used by the client</summary>
8014 networkmanager will log but not process</summary>
8015 </member> 4895 </member>
8016 <member name="M:OpenMetaverse.NetworkManager.DefaultLoginParams(System.String,System.String,System.String,System.String,System.String)"> 4896 <member name="P:OpenMetaverse.ImageReceiveProgressEventArgs.ImageID">
4897 <summary>UUID of the image that is in progress</summary>
4898 </member>
4899 <member name="P:OpenMetaverse.ImageReceiveProgressEventArgs.Received">
4900 <summary>Number of bytes received so far</summary>
4901 </member>
4902 <member name="P:OpenMetaverse.ImageReceiveProgressEventArgs.Total">
4903 <summary>Image size in bytes</summary>
4904 </member>
4905 <member name="T:OpenMetaverse.ProfileFlags">
8017 <summary> 4906 <summary>
8018 Generate sane default values for a login request 4907 Avatar profile flags
8019 </summary> 4908 </summary>
8020 <param name="firstName">Account first name</param>
8021 <param name="lastName">Account last name</param>
8022 <param name="password">Account password</param>
8023 <param name="userAgent">Client application name</param>
8024 <param name="userVersion">Client application version</param>
8025 <returns>A populated <seealso cref="T:OpenMetaverse.LoginParams"/> struct containing
8026 sane defaults</returns>
8027 </member> 4909 </member>
8028 <member name="M:OpenMetaverse.NetworkManager.Login(System.String,System.String,System.String,System.String,System.String)"> 4910 <member name="T:OpenMetaverse.Avatar">
8029 <summary> 4911 <summary>
8030 Simplified login that takes the most common and required fields 4912 Represents an avatar (other than your own)
8031 </summary> 4913 </summary>
8032 <param name="firstName">Account first name</param>
8033 <param name="lastName">Account last name</param>
8034 <param name="password">Account password</param>
8035 <param name="userAgent">Client application name</param>
8036 <param name="userVersion">Client application version</param>
8037 <returns>Whether the login was successful or not. On failure the
8038 LoginErrorKey string will contain the error code and LoginMessage
8039 will contain a description of the error</returns>
8040 </member> 4914 </member>
8041 <member name="M:OpenMetaverse.NetworkManager.Login(System.String,System.String,System.String,System.String,System.String,System.String)"> 4915 <member name="M:OpenMetaverse.Avatar.#ctor">
8042 <summary> 4916 <summary>
8043 Simplified login that takes the most common fields along with a 4917 Default constructor
8044 starting location URI, and can accept an MD5 string instead of a
8045 plaintext password
8046 </summary> 4918 </summary>
8047 <param name="firstName">Account first name</param>
8048 <param name="lastName">Account last name</param>
8049 <param name="password">Account password or MD5 hash of the password
8050 such as $1$1682a1e45e9f957dcdf0bb56eb43319c</param>
8051 <param name="userAgent">Client application name</param>
8052 <param name="start">Starting location URI that can be built with
8053 StartLocation()</param>
8054 <param name="userVersion">Client application version</param>
8055 <returns>Whether the login was successful or not. On failure the
8056 LoginErrorKey string will contain the error code and LoginMessage
8057 will contain a description of the error</returns>
8058 </member> 4919 </member>
8059 <member name="M:OpenMetaverse.NetworkManager.Login(OpenMetaverse.LoginParams)"> 4920 <member name="T:OpenMetaverse.Avatar.Statistics">
8060 <summary> 4921 <summary>
8061 Login that takes a struct of all the values that will be passed to 4922 Positive and negative ratings
8062 the login server
8063 </summary> 4923 </summary>
8064 <param name="loginParams">The values that will be passed to the login
8065 server, all fields must be set even if they are String.Empty</param>
8066 <returns>Whether the login was successful or not. On failure the
8067 LoginErrorKey string will contain the error code and LoginMessage
8068 will contain a description of the error</returns>
8069 </member> 4924 </member>
8070 <member name="M:OpenMetaverse.NetworkManager.StartLocation(System.String,System.Int32,System.Int32,System.Int32)"> 4925 <member name="F:OpenMetaverse.Avatar.Statistics.BehaviorPositive">
4926 <summary>Positive ratings for Behavior</summary>
4927 </member>
4928 <member name="F:OpenMetaverse.Avatar.Statistics.BehaviorNegative">
4929 <summary>Negative ratings for Behavior</summary>
4930 </member>
4931 <member name="F:OpenMetaverse.Avatar.Statistics.AppearancePositive">
4932 <summary>Positive ratings for Appearance</summary>
4933 </member>
4934 <member name="F:OpenMetaverse.Avatar.Statistics.AppearanceNegative">
4935 <summary>Negative ratings for Appearance</summary>
4936 </member>
4937 <member name="F:OpenMetaverse.Avatar.Statistics.BuildingPositive">
4938 <summary>Positive ratings for Building</summary>
4939 </member>
4940 <member name="F:OpenMetaverse.Avatar.Statistics.BuildingNegative">
4941 <summary>Negative ratings for Building</summary>
4942 </member>
4943 <member name="F:OpenMetaverse.Avatar.Statistics.GivenPositive">
4944 <summary>Positive ratings given by this avatar</summary>
4945 </member>
4946 <member name="F:OpenMetaverse.Avatar.Statistics.GivenNegative">
4947 <summary>Negative ratings given by this avatar</summary>
4948 </member>
4949 <member name="T:OpenMetaverse.Avatar.AvatarProperties">
8071 <summary> 4950 <summary>
8072 Build a start location URI for passing to the Login function 4951 Avatar properties including about text, profile URL, image IDs and
4952 publishing settings
8073 </summary> 4953 </summary>
8074 <param name="sim">Name of the simulator to start in</param>
8075 <param name="x">X coordinate to start at</param>
8076 <param name="y">Y coordinate to start at</param>
8077 <param name="z">Z coordinate to start at</param>
8078 <returns>String with a URI that can be used to login to a specified
8079 location</returns>
8080 </member> 4954 </member>
8081 <member name="M:OpenMetaverse.NetworkManager.LoginReplyXmlRpcHandler(Nwc.XmlRpc.XmlRpcResponse,OpenMetaverse.LoginParams)"> 4955 <member name="F:OpenMetaverse.Avatar.AvatarProperties.FirstLifeText">
4956 <summary>First Life about text</summary>
4957 </member>
4958 <member name="F:OpenMetaverse.Avatar.AvatarProperties.FirstLifeImage">
4959 <summary>First Life image ID</summary>
4960 </member>
4961 <member name="F:OpenMetaverse.Avatar.AvatarProperties.Partner">
8082 <summary> 4962 <summary>
8083 Handles response from XML-RPC login replies
8084 </summary> 4963 </summary>
8085 </member> 4964 </member>
8086 <member name="M:OpenMetaverse.NetworkManager.LoginReplyLLSDHandler(OpenMetaverse.Http.CapsClient,OpenMetaverse.StructuredData.OSD,System.Exception)"> 4965 <member name="F:OpenMetaverse.Avatar.AvatarProperties.AboutText">
8087 <summary> 4966 <summary>
8088 Handle response from LLSD login replies
8089 </summary> 4967 </summary>
8090 <param name="client"></param>
8091 <param name="result"></param>
8092 <param name="error"></param>
8093 </member> 4968 </member>
8094 <member name="M:OpenMetaverse.NetworkManager.GetPlatform"> 4969 <member name="F:OpenMetaverse.Avatar.AvatarProperties.BornOn">
8095 <summary> 4970 <summary>
8096 Get current OS
8097 </summary> 4971 </summary>
8098 <returns>Either "Win" or "Linux"</returns>
8099 </member> 4972 </member>
8100 <member name="M:OpenMetaverse.NetworkManager.GetMAC"> 4973 <member name="F:OpenMetaverse.Avatar.AvatarProperties.CharterMember">
8101 <summary> 4974 <summary>
8102 Get clients default Mac Address
8103 </summary> 4975 </summary>
8104 <returns>A string containing the first found Mac Address</returns>
8105 </member> 4976 </member>
8106 <member name="E:OpenMetaverse.NetworkManager.PacketSent"> 4977 <member name="F:OpenMetaverse.Avatar.AvatarProperties.ProfileImage">
4978 <summary>Profile image ID</summary>
4979 </member>
4980 <member name="F:OpenMetaverse.Avatar.AvatarProperties.Flags">
4981 <summary>Flags of the profile</summary>
4982 </member>
4983 <member name="F:OpenMetaverse.Avatar.AvatarProperties.ProfileURL">
4984 <summary>Web URL for this profile</summary>
4985 </member>
4986 <member name="P:OpenMetaverse.Avatar.AvatarProperties.AllowPublish">
4987 <summary>Should this profile be published on the web</summary>
4988 </member>
4989 <member name="P:OpenMetaverse.Avatar.AvatarProperties.Online">
4990 <summary>Avatar Online Status</summary>
4991 </member>
4992 <member name="P:OpenMetaverse.Avatar.AvatarProperties.MaturePublish">
4993 <summary>Is this a mature profile</summary>
4994 </member>
4995 <member name="P:OpenMetaverse.Avatar.AvatarProperties.Identified">
4996 <summary>
4997 </summary>
4998 </member>
4999 <member name="P:OpenMetaverse.Avatar.AvatarProperties.Transacted">
5000 <summary>
5001 </summary>
5002 </member>
5003 <member name="T:OpenMetaverse.Avatar.Interests">
5004 <summary>
5005 Avatar interests including spoken languages, skills, and "want to"
5006 choices
5007 </summary>
5008 </member>
5009 <member name="F:OpenMetaverse.Avatar.Interests.LanguagesText">
5010 <summary>Languages profile field</summary>
5011 </member>
5012 <member name="F:OpenMetaverse.Avatar.Interests.SkillsMask">
5013 <summary>
5014 </summary>
5015 </member>
5016 <member name="F:OpenMetaverse.Avatar.Interests.SkillsText">
5017 <summary>
5018 </summary>
5019 </member>
5020 <member name="F:OpenMetaverse.Avatar.Interests.WantToMask">
5021 <summary>
5022 </summary>
5023 </member>
5024 <member name="F:OpenMetaverse.Avatar.Interests.WantToText">
5025 <summary>
5026 </summary>
5027 </member>
5028 <member name="F:OpenMetaverse.Avatar.Groups">
5029 <summary>Groups that this avatar is a member of</summary>
5030 </member>
5031 <member name="F:OpenMetaverse.Avatar.ProfileStatistics">
5032 <summary>Positive and negative ratings</summary>
5033 </member>
5034 <member name="F:OpenMetaverse.Avatar.ProfileProperties">
5035 <summary>Avatar properties including about text, profile URL, image IDs and
5036 publishing settings</summary>
5037 </member>
5038 <member name="F:OpenMetaverse.Avatar.ProfileInterests">
5039 <summary>Avatar interests including spoken languages, skills, and "want to"
5040 choices</summary>
5041 </member>
5042 <member name="F:OpenMetaverse.Avatar.ControlFlags">
5043 <summary>Movement control flags for avatars. Typically not set or used by
5044 clients. To move your avatar, use Client.Self.Movement instead</summary>
5045 </member>
5046 <member name="F:OpenMetaverse.Avatar.VisualParameters">
5047 <summary>
5048 Contains the visual parameters describing the deformation of the avatar
5049 </summary>
5050 </member>
5051 <member name="P:OpenMetaverse.Avatar.FirstName">
5052 <summary>First name</summary>
5053 </member>
5054 <member name="P:OpenMetaverse.Avatar.LastName">
5055 <summary>Last name</summary>
5056 </member>
5057 <member name="P:OpenMetaverse.Avatar.Name">
5058 <summary>Full name</summary>
5059 </member>
5060 <member name="P:OpenMetaverse.Avatar.GroupName">
5061 <summary>Active group</summary>
5062 </member>
5063 <member name="T:OpenMetaverse.AgentDisplayName">
5064 <summary> Information about agents display name </summary>
5065 </member>
5066 <member name="F:OpenMetaverse.AgentDisplayName.ID">
5067 <summary> Agent UUID </summary>
5068 </member>
5069 <member name="F:OpenMetaverse.AgentDisplayName.UserName">
5070 <summary> Username </summary>
5071 </member>
5072 <member name="F:OpenMetaverse.AgentDisplayName.DisplayName">
5073 <summary> Display name </summary>
5074 </member>
5075 <member name="F:OpenMetaverse.AgentDisplayName.LegacyFirstName">
5076 <summary> First name (legacy) </summary>
5077 </member>
5078 <member name="F:OpenMetaverse.AgentDisplayName.LegacyLastName">
5079 <summary> Last name (legacy) </summary>
5080 </member>
5081 <member name="F:OpenMetaverse.AgentDisplayName.IsDefaultDisplayName">
5082 <summary> Is display name default display name </summary>
5083 </member>
5084 <member name="F:OpenMetaverse.AgentDisplayName.NextUpdate">
5085 <summary> Cache display name until </summary>
5086 </member>
5087 <member name="P:OpenMetaverse.AgentDisplayName.LegacyFullName">
5088 <summary> Full name (legacy) </summary>
5089 </member>
5090 <member name="M:OpenMetaverse.AgentDisplayName.FromOSD(OpenMetaverse.StructuredData.OSD)">
5091 <summary>
5092 Creates AgentDisplayName object from OSD
5093 </summary>
5094 <param name="data">Incoming OSD data</param>
5095 <returns>AgentDisplayName object</returns>
5096 </member>
5097 <member name="M:OpenMetaverse.AgentDisplayName.GetOSD">
5098 <summary>
5099 Return object as OSD map
5100 </summary>
5101 <returns>OSD containing agent's display name data</returns>
5102 </member>
5103 <member name="T:OpenMetaverse.AvatarGroup">
5104 <summary>
5105 Holds group information for Avatars such as those you might find in a profile
5106 </summary>
5107 </member>
5108 <member name="F:OpenMetaverse.AvatarGroup.AcceptNotices">
5109 <summary>true of Avatar accepts group notices</summary>
5110 </member>
5111 <member name="F:OpenMetaverse.AvatarGroup.GroupID">
5112 <summary>Groups Key</summary>
5113 </member>
5114 <member name="F:OpenMetaverse.AvatarGroup.GroupInsigniaID">
5115 <summary>Texture Key for groups insignia</summary>
5116 </member>
5117 <member name="F:OpenMetaverse.AvatarGroup.GroupName">
5118 <summary>Name of the group</summary>
5119 </member>
5120 <member name="F:OpenMetaverse.AvatarGroup.GroupPowers">
5121 <summary>Powers avatar has in the group</summary>
5122 </member>
5123 <member name="F:OpenMetaverse.AvatarGroup.GroupTitle">
5124 <summary>Avatars Currently selected title</summary>
5125 </member>
5126 <member name="F:OpenMetaverse.AvatarGroup.ListInProfile">
5127 <summary>true of Avatar has chosen to list this in their profile</summary>
5128 </member>
5129 <member name="T:OpenMetaverse.Animation">
5130 <summary>
5131 Contains an animation currently being played by an agent
5132 </summary>
5133 </member>
5134 <member name="F:OpenMetaverse.Animation.AnimationID">
5135 <summary>The ID of the animation asset</summary>
5136 </member>
5137 <member name="F:OpenMetaverse.Animation.AnimationSequence">
5138 <summary>A number to indicate start order of currently playing animations</summary>
5139 <remarks>On Linden Grids this number is unique per region, with OpenSim it is per client</remarks>
5140 </member>
5141 <member name="F:OpenMetaverse.Animation.AnimationSourceObjectID">
5142 <summary>
5143 </summary>
5144 </member>
5145 <member name="T:OpenMetaverse.ProfilePick">
5146 <summary>
5147 Holds group information on an individual profile pick
5148 </summary>
5149 </member>
5150 <member name="T:OpenMetaverse.AvatarManager">
5151 <summary>
5152 Retrieve friend status notifications, and retrieve avatar names and
5153 profiles
5154 </summary>
5155 </member>
5156 <member name="M:OpenMetaverse.AvatarManager.#ctor(OpenMetaverse.GridClient)">
5157 <summary>
5158 Represents other avatars
5159 </summary>
5160 <param name="client">
5161 </param>
5162 </member>
5163 <member name="T:OpenMetaverse.AvatarManager.DisplayNamesCallback">
5164 <summary>
5165 Callback giving results when fetching display names
5166 </summary>
5167 <param name="success">If the request was successful</param>
5168 <param name="names">Array of display names</param>
5169 <param name="badIDs">Array of UUIDs that could not be fetched</param>
5170 </member>
5171 <member name="F:OpenMetaverse.AvatarManager.m_AvatarAnimation">
5172 <summary>The event subscribers, null of no subscribers</summary>
5173 </member>
5174 <member name="F:OpenMetaverse.AvatarManager.m_AvatarAnimationLock">
5175 <summary>Thread sync lock object</summary>
5176 </member>
5177 <member name="F:OpenMetaverse.AvatarManager.m_AvatarAppearance">
5178 <summary>The event subscribers, null of no subscribers</summary>
5179 </member>
5180 <member name="F:OpenMetaverse.AvatarManager.m_AvatarAppearanceLock">
5181 <summary>Thread sync lock object</summary>
5182 </member>
5183 <member name="F:OpenMetaverse.AvatarManager.m_UUIDNameReply">
5184 <summary>The event subscribers, null of no subscribers</summary>
5185 </member>
5186 <member name="F:OpenMetaverse.AvatarManager.m_UUIDNameReplyLock">
5187 <summary>Thread sync lock object</summary>
5188 </member>
5189 <member name="F:OpenMetaverse.AvatarManager.m_AvatarInterestsReply">
5190 <summary>The event subscribers, null of no subscribers</summary>
5191 </member>
5192 <member name="F:OpenMetaverse.AvatarManager.m_AvatarInterestsReplyLock">
5193 <summary>Thread sync lock object</summary>
5194 </member>
5195 <member name="F:OpenMetaverse.AvatarManager.m_AvatarPropertiesReply">
5196 <summary>The event subscribers, null of no subscribers</summary>
5197 </member>
5198 <member name="F:OpenMetaverse.AvatarManager.m_AvatarPropertiesReplyLock">
5199 <summary>Thread sync lock object</summary>
5200 </member>
5201 <member name="F:OpenMetaverse.AvatarManager.m_AvatarGroupsReply">
5202 <summary>The event subscribers, null of no subscribers</summary>
5203 </member>
5204 <member name="F:OpenMetaverse.AvatarManager.m_AvatarGroupsReplyLock">
5205 <summary>Thread sync lock object</summary>
5206 </member>
5207 <member name="F:OpenMetaverse.AvatarManager.m_AvatarPickerReply">
5208 <summary>The event subscribers, null of no subscribers</summary>
5209 </member>
5210 <member name="F:OpenMetaverse.AvatarManager.m_AvatarPickerReplyLock">
5211 <summary>Thread sync lock object</summary>
5212 </member>
5213 <member name="F:OpenMetaverse.AvatarManager.m_ViewerEffectPointAt">
5214 <summary>The event subscribers, null of no subscribers</summary>
5215 </member>
5216 <member name="F:OpenMetaverse.AvatarManager.m_ViewerEffectPointAtLock">
5217 <summary>Thread sync lock object</summary>
5218 </member>
5219 <member name="F:OpenMetaverse.AvatarManager.m_ViewerEffectLookAt">
5220 <summary>The event subscribers, null of no subscribers</summary>
5221 </member>
5222 <member name="F:OpenMetaverse.AvatarManager.m_ViewerEffectLookAtLock">
5223 <summary>Thread sync lock object</summary>
5224 </member>
5225 <member name="F:OpenMetaverse.AvatarManager.m_ViewerEffect">
5226 <summary>The event subscribers, null of no subscribers</summary>
5227 </member>
5228 <member name="F:OpenMetaverse.AvatarManager.m_ViewerEffectLock">
5229 <summary>Thread sync lock object</summary>
5230 </member>
5231 <member name="F:OpenMetaverse.AvatarManager.m_AvatarPicksReply">
5232 <summary>The event subscribers, null of no subscribers</summary>
5233 </member>
5234 <member name="F:OpenMetaverse.AvatarManager.m_AvatarPicksReplyLock">
5235 <summary>Thread sync lock object</summary>
5236 </member>
5237 <member name="F:OpenMetaverse.AvatarManager.m_PickInfoReply">
5238 <summary>The event subscribers, null of no subscribers</summary>
5239 </member>
5240 <member name="F:OpenMetaverse.AvatarManager.m_PickInfoReplyLock">
5241 <summary>Thread sync lock object</summary>
5242 </member>
5243 <member name="F:OpenMetaverse.AvatarManager.m_AvatarClassifiedReply">
5244 <summary>The event subscribers, null of no subscribers</summary>
5245 </member>
5246 <member name="F:OpenMetaverse.AvatarManager.m_AvatarClassifiedReplyLock">
5247 <summary>Thread sync lock object</summary>
5248 </member>
5249 <member name="F:OpenMetaverse.AvatarManager.m_ClassifiedInfoReply">
5250 <summary>The event subscribers, null of no subscribers</summary>
5251 </member>
5252 <member name="F:OpenMetaverse.AvatarManager.m_ClassifiedInfoReplyLock">
5253 <summary>Thread sync lock object</summary>
5254 </member>
5255 <member name="F:OpenMetaverse.AvatarManager.m_DisplayNameUpdate">
5256 <summary>The event subscribers, null of no subscribers</summary>
5257 </member>
5258 <member name="F:OpenMetaverse.AvatarManager.m_DisplayNameUpdateLock">
5259 <summary>Thread sync lock object</summary>
5260 </member>
5261 <member name="E:OpenMetaverse.AvatarManager.AvatarAnimation">
8107 <summary>Raised when the simulator sends us data containing 5262 <summary>Raised when the simulator sends us data containing
8108 ...</summary> 5263 an agents animation playlist</summary>
8109 </member> 5264 </member>
8110 <member name="E:OpenMetaverse.NetworkManager.LoggedOut"> 5265 <member name="E:OpenMetaverse.AvatarManager.AvatarAppearance">
8111 <summary>Raised when the simulator sends us data containing 5266 <summary>Raised when the simulator sends us data containing
8112 ...</summary> 5267 the appearance information for an agent</summary>
8113 </member> 5268 </member>
8114 <member name="E:OpenMetaverse.NetworkManager.SimConnecting"> 5269 <member name="E:OpenMetaverse.AvatarManager.UUIDNameReply">
8115 <summary>Raised when the simulator sends us data containing 5270 <summary>Raised when the simulator sends us data containing
8116 ...</summary> 5271 agent names/id values</summary>
8117 </member> 5272 </member>
8118 <member name="E:OpenMetaverse.NetworkManager.SimConnected"> 5273 <member name="E:OpenMetaverse.AvatarManager.AvatarInterestsReply">
8119 <summary>Raised when the simulator sends us data containing 5274 <summary>Raised when the simulator sends us data containing
8120 ...</summary> 5275 the interests listed in an agents profile</summary>
8121 </member> 5276 </member>
8122 <member name="E:OpenMetaverse.NetworkManager.SimDisconnected"> 5277 <member name="E:OpenMetaverse.AvatarManager.AvatarPropertiesReply">
8123 <summary>Raised when the simulator sends us data containing 5278 <summary>Raised when the simulator sends us data containing
8124 ...</summary> 5279 profile property information for an agent</summary>
8125 </member> 5280 </member>
8126 <member name="E:OpenMetaverse.NetworkManager.Disconnected"> 5281 <member name="E:OpenMetaverse.AvatarManager.AvatarGroupsReply">
8127 <summary>Raised when the simulator sends us data containing 5282 <summary>Raised when the simulator sends us data containing
8128 ...</summary> 5283 the group membership an agent is a member of</summary>
8129 </member> 5284 </member>
8130 <member name="E:OpenMetaverse.NetworkManager.SimChanged"> 5285 <member name="E:OpenMetaverse.AvatarManager.AvatarPickerReply">
8131 <summary>Raised when the simulator sends us data containing 5286 <summary>Raised when the simulator sends us data containing
8132 ...</summary> 5287 name/id pair</summary>
8133 </member> 5288 </member>
8134 <member name="E:OpenMetaverse.NetworkManager.EventQueueRunning"> 5289 <member name="E:OpenMetaverse.AvatarManager.ViewerEffectPointAt">
8135 <summary>Raised when the simulator sends us data containing 5290 <summary>Raised when the simulator sends us data containing
8136 ...</summary> 5291 the objects and effect when an agent is pointing at</summary>
8137 </member> 5292 </member>
8138 <member name="P:OpenMetaverse.NetworkManager.CircuitCode"> 5293 <member name="E:OpenMetaverse.AvatarManager.ViewerEffectLookAt">
8139 <summary>Unique identifier associated with our connections to 5294 <summary>Raised when the simulator sends us data containing
8140 simulators</summary> 5295 the objects and effect when an agent is looking at</summary>
8141 </member> 5296 </member>
8142 <member name="P:OpenMetaverse.NetworkManager.CurrentSim"> 5297 <member name="E:OpenMetaverse.AvatarManager.ViewerEffect">
8143 <summary>The simulator that the logged in avatar is currently 5298 <summary>Raised when the simulator sends us data containing
8144 occupying</summary> 5299 an agents viewer effect information</summary>
8145 </member> 5300 </member>
8146 <member name="P:OpenMetaverse.NetworkManager.Connected"> 5301 <member name="E:OpenMetaverse.AvatarManager.AvatarPicksReply">
8147 <summary>Shows whether the network layer is logged in to the 5302 <summary>Raised when the simulator sends us data containing
8148 grid or not</summary> 5303 the top picks from an agents profile</summary>
8149 </member> 5304 </member>
8150 <member name="P:OpenMetaverse.NetworkManager.InboxCount"> 5305 <member name="E:OpenMetaverse.AvatarManager.PickInfoReply">
8151 <summary>Number of packets in the incoming queue</summary> 5306 <summary>Raised when the simulator sends us data containing
5307 the Pick details</summary>
8152 </member> 5308 </member>
8153 <member name="P:OpenMetaverse.NetworkManager.OutboxCount"> 5309 <member name="E:OpenMetaverse.AvatarManager.AvatarClassifiedReply">
8154 <summary>Number of packets in the outgoing queue</summary> 5310 <summary>Raised when the simulator sends us data containing
5311 the classified ads an agent has placed</summary>
8155 </member> 5312 </member>
8156 <member name="E:OpenMetaverse.NetworkManager.LoginProgress"> 5313 <member name="E:OpenMetaverse.AvatarManager.ClassifiedInfoReply">
8157 <summary>Raised when the simulator sends us data containing 5314 <summary>Raised when the simulator sends us data containing
8158 ...</summary> 5315 the details of a classified ad</summary>
8159 </member> 5316 </member>
8160 <member name="E:OpenMetaverse.NetworkManager.OnLoginResponse"> 5317 <member name="E:OpenMetaverse.AvatarManager.DisplayNameUpdate">
8161 <summary>Called when a reply is received from the login server, the 5318 <summary>Raised when the simulator sends us data containing
8162 login sequence will block until this event returns</summary> 5319 the details of display name change</summary>
8163 </member> 5320 </member>
8164 <member name="P:OpenMetaverse.NetworkManager.LoginStatusCode"> 5321 <member name="M:OpenMetaverse.AvatarManager.OnAvatarAnimation(OpenMetaverse.AvatarAnimationEventArgs)">
8165 <summary>Current state of logging in</summary> 5322 <summary>Raises the AvatarAnimation Event</summary>
5323 <param name="e">An AvatarAnimationEventArgs object containing
5324 the data sent from the simulator</param>
8166 </member> 5325 </member>
8167 <member name="P:OpenMetaverse.NetworkManager.LoginErrorKey"> 5326 <member name="M:OpenMetaverse.AvatarManager.OnAvatarAppearance(OpenMetaverse.AvatarAppearanceEventArgs)">
8168 <summary>Upon login failure, contains a short string key for the 5327 <summary>Raises the AvatarAppearance Event</summary>
8169 type of login error that occurred</summary> 5328 <param name="e">A AvatarAppearanceEventArgs object containing
5329 the data sent from the simulator</param>
8170 </member> 5330 </member>
8171 <member name="P:OpenMetaverse.NetworkManager.RawLoginReply"> 5331 <member name="M:OpenMetaverse.AvatarManager.OnUUIDNameReply(OpenMetaverse.UUIDNameReplyEventArgs)">
8172 <summary>The raw XML-RPC reply from the login server, exactly as it 5332 <summary>Raises the UUIDNameReply Event</summary>
8173 was received (minus the HTTP header)</summary> 5333 <param name="e">A UUIDNameReplyEventArgs object containing
5334 the data sent from the simulator</param>
8174 </member> 5335 </member>
8175 <member name="P:OpenMetaverse.NetworkManager.LoginMessage"> 5336 <member name="M:OpenMetaverse.AvatarManager.OnAvatarInterestsReply(OpenMetaverse.AvatarInterestsReplyEventArgs)">
8176 <summary>During login this contains a descriptive version of 5337 <summary>Raises the AvatarInterestsReply Event</summary>
8177 LoginStatusCode. After a successful login this will contain the 5338 <param name="e">A AvatarInterestsReplyEventArgs object containing
8178 message of the day, and after a failed login a descriptive error 5339 the data sent from the simulator</param>
8179 message will be returned</summary>
8180 </member> 5340 </member>
8181 <member name="T:OpenMetaverse.NetworkManager.DisconnectType"> 5341 <member name="M:OpenMetaverse.AvatarManager.OnAvatarPropertiesReply(OpenMetaverse.AvatarPropertiesReplyEventArgs)">
5342 <summary>Raises the AvatarPropertiesReply Event</summary>
5343 <param name="e">A AvatarPropertiesReplyEventArgs object containing
5344 the data sent from the simulator</param>
5345 </member>
5346 <member name="M:OpenMetaverse.AvatarManager.OnAvatarGroupsReply(OpenMetaverse.AvatarGroupsReplyEventArgs)">
5347 <summary>Raises the AvatarGroupsReply Event</summary>
5348 <param name="e">A AvatarGroupsReplyEventArgs object containing
5349 the data sent from the simulator</param>
5350 </member>
5351 <member name="M:OpenMetaverse.AvatarManager.OnAvatarPickerReply(OpenMetaverse.AvatarPickerReplyEventArgs)">
5352 <summary>Raises the AvatarPickerReply Event</summary>
5353 <param name="e">A AvatarPickerReplyEventArgs object containing
5354 the data sent from the simulator</param>
5355 </member>
5356 <member name="M:OpenMetaverse.AvatarManager.OnViewerEffectPointAt(OpenMetaverse.ViewerEffectPointAtEventArgs)">
5357 <summary>Raises the ViewerEffectPointAt Event</summary>
5358 <param name="e">A ViewerEffectPointAtEventArgs object containing
5359 the data sent from the simulator</param>
5360 </member>
5361 <member name="M:OpenMetaverse.AvatarManager.OnViewerEffectLookAt(OpenMetaverse.ViewerEffectLookAtEventArgs)">
5362 <summary>Raises the ViewerEffectLookAt Event</summary>
5363 <param name="e">A ViewerEffectLookAtEventArgs object containing
5364 the data sent from the simulator</param>
5365 </member>
5366 <member name="M:OpenMetaverse.AvatarManager.OnViewerEffect(OpenMetaverse.ViewerEffectEventArgs)">
5367 <summary>Raises the ViewerEffect Event</summary>
5368 <param name="e">A ViewerEffectEventArgs object containing
5369 the data sent from the simulator</param>
5370 </member>
5371 <member name="M:OpenMetaverse.AvatarManager.OnAvatarPicksReply(OpenMetaverse.AvatarPicksReplyEventArgs)">
5372 <summary>Raises the AvatarPicksReply Event</summary>
5373 <param name="e">A AvatarPicksReplyEventArgs object containing
5374 the data sent from the simulator</param>
5375 </member>
5376 <member name="M:OpenMetaverse.AvatarManager.OnPickInfoReply(OpenMetaverse.PickInfoReplyEventArgs)">
5377 <summary>Raises the PickInfoReply Event</summary>
5378 <param name="e">A PickInfoReplyEventArgs object containing
5379 the data sent from the simulator</param>
5380 </member>
5381 <member name="M:OpenMetaverse.AvatarManager.OnAvatarClassifiedReply(OpenMetaverse.AvatarClassifiedReplyEventArgs)">
5382 <summary>Raises the AvatarClassifiedReply Event</summary>
5383 <param name="e">A AvatarClassifiedReplyEventArgs object containing
5384 the data sent from the simulator</param>
5385 </member>
5386 <member name="M:OpenMetaverse.AvatarManager.OnClassifiedInfoReply(OpenMetaverse.ClassifiedInfoReplyEventArgs)">
5387 <summary>Raises the ClassifiedInfoReply Event</summary>
5388 <param name="e">A ClassifiedInfoReplyEventArgs object containing
5389 the data sent from the simulator</param>
5390 </member>
5391 <member name="M:OpenMetaverse.AvatarManager.OnDisplayNameUpdate(OpenMetaverse.DisplayNameUpdateEventArgs)">
5392 <summary>Raises the DisplayNameUpdate Event</summary>
5393 <param name="e">A DisplayNameUpdateEventArgs object containing
5394 the data sent from the simulator</param>
5395 </member>
5396 <member name="M:OpenMetaverse.AvatarManager.RequestTrackAgent(OpenMetaverse.UUID)">
5397 <summary>Tracks the specified avatar on your map</summary>
5398 <param name="preyID">Avatar ID to track</param>
5399 </member>
5400 <member name="M:OpenMetaverse.AvatarManager.RequestAvatarName(OpenMetaverse.UUID)">
8182 <summary> 5401 <summary>
8183 Explains why a simulator or the grid disconnected from us 5402 Request a single avatar name
8184 </summary> 5403 </summary>
5404 <param name="id">The avatar key to retrieve a name for</param>
8185 </member> 5405 </member>
8186 <member name="F:OpenMetaverse.NetworkManager.DisconnectType.ClientInitiated"> 5406 <member name="M:OpenMetaverse.AvatarManager.RequestAvatarNames(System.Collections.Generic.List{OpenMetaverse.UUID})">
8187 <summary>The client requested the logout or simulator disconnect</summary> 5407 <summary>
5408 Request a list of avatar names
5409 </summary>
5410 <param name="ids">The avatar keys to retrieve names for</param>
8188 </member> 5411 </member>
8189 <member name="F:OpenMetaverse.NetworkManager.DisconnectType.ServerInitiated"> 5412 <member name="M:OpenMetaverse.AvatarManager.DisplayNamesAvailable">
8190 <summary>The server notified us that it is disconnecting</summary> 5413 <summary>
5414 Check if Display Names functionality is available
5415 </summary>
5416 <returns>True if Display name functionality is available</returns>
8191 </member> 5417 </member>
8192 <member name="F:OpenMetaverse.NetworkManager.DisconnectType.NetworkTimeout"> 5418 <member name="M:OpenMetaverse.AvatarManager.GetDisplayNames(System.Collections.Generic.List{OpenMetaverse.UUID},OpenMetaverse.AvatarManager.DisplayNamesCallback)">
8193 <summary>Either a socket was closed or network traffic timed out</summary> 5419 <summary>
5420 Request retrieval of display names (max 90 names per request)
5421 </summary>
5422 <param name="ids">List of UUIDs to lookup</param>
5423 <param name="callback">Callback to report result of the operation</param>
8194 </member> 5424 </member>
8195 <member name="F:OpenMetaverse.NetworkManager.DisconnectType.SimShutdown"> 5425 <member name="M:OpenMetaverse.AvatarManager.RequestAvatarProperties(OpenMetaverse.UUID)">
8196 <summary>The last active simulator shut down</summary> 5426 <summary>
5427 Start a request for Avatar Properties
5428 </summary>
5429 <param name="avatarid">
5430 </param>
8197 </member> 5431 </member>
8198 <member name="T:OpenMetaverse.NetworkManager.IncomingPacket"> 5432 <member name="M:OpenMetaverse.AvatarManager.RequestAvatarNameSearch(System.String,OpenMetaverse.UUID)">
8199 <summary> 5433 <summary>
8200 Holds a simulator reference and a decoded packet, these structs are put in 5434 Search for an avatar (first name, last name)
8201 the packet inbox for event handling
8202 </summary> 5435 </summary>
5436 <param name="name">The name to search for</param>
5437 <param name="queryID">An ID to associate with this query</param>
8203 </member> 5438 </member>
8204 <member name="F:OpenMetaverse.NetworkManager.IncomingPacket.Simulator"> 5439 <member name="M:OpenMetaverse.AvatarManager.RequestAvatarPicks(OpenMetaverse.UUID)">
8205 <summary>Reference to the simulator that this packet came from</summary> 5440 <summary>
5441 Start a request for Avatar Picks
5442 </summary>
5443 <param name="avatarid">UUID of the avatar</param>
8206 </member> 5444 </member>
8207 <member name="F:OpenMetaverse.NetworkManager.IncomingPacket.Packet"> 5445 <member name="M:OpenMetaverse.AvatarManager.RequestAvatarClassified(OpenMetaverse.UUID)">
8208 <summary>Packet that needs to be processed</summary> 5446 <summary>
5447 Start a request for Avatar Classifieds
5448 </summary>
5449 <param name="avatarid">UUID of the avatar</param>
8209 </member> 5450 </member>
8210 <member name="T:OpenMetaverse.NetworkManager.OutgoingPacket"> 5451 <member name="M:OpenMetaverse.AvatarManager.RequestPickInfo(OpenMetaverse.UUID,OpenMetaverse.UUID)">
8211 <summary> 5452 <summary>
8212 Holds a simulator reference and a serialized packet, these structs are put in 5453 Start a request for details of a specific profile pick
8213 the packet outbox for sending
8214 </summary> 5454 </summary>
5455 <param name="avatarid">UUID of the avatar</param>
5456 <param name="pickid">UUID of the profile pick</param>
8215 </member> 5457 </member>
8216 <member name="F:OpenMetaverse.NetworkManager.OutgoingPacket.Simulator"> 5458 <member name="M:OpenMetaverse.AvatarManager.RequestClassifiedInfo(OpenMetaverse.UUID,OpenMetaverse.UUID)">
8217 <summary>Reference to the simulator this packet is destined for</summary> 5459 <summary>
5460 Start a request for details of a specific profile classified
5461 </summary>
5462 <param name="avatarid">UUID of the avatar</param>
5463 <param name="classifiedid">UUID of the profile classified</param>
8218 </member> 5464 </member>
8219 <member name="F:OpenMetaverse.NetworkManager.OutgoingPacket.Buffer"> 5465 <member name="M:OpenMetaverse.AvatarManager.UUIDNameReplyHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
8220 <summary>Packet that needs to be sent</summary> 5466 <summary>Process an incoming packet and raise the appropriate events</summary>
5467 <param name="sender">The sender</param>
5468 <param name="e">The EventArgs object containing the packet data</param>
8221 </member> 5469 </member>
8222 <member name="F:OpenMetaverse.NetworkManager.OutgoingPacket.SequenceNumber"> 5470 <member name="M:OpenMetaverse.AvatarManager.AvatarAnimationHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
8223 <summary>Sequence number of the wrapped packet</summary> 5471 <summary>Process an incoming packet and raise the appropriate events</summary>
5472 <param name="sender">The sender</param>
5473 <param name="e">The EventArgs object containing the packet data</param>
8224 </member> 5474 </member>
8225 <member name="F:OpenMetaverse.NetworkManager.OutgoingPacket.ResendCount"> 5475 <member name="M:OpenMetaverse.AvatarManager.AvatarAppearanceHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
8226 <summary>Number of times this packet has been resent</summary> 5476 <summary>Process an incoming packet and raise the appropriate events</summary>
5477 <param name="sender">The sender</param>
5478 <param name="e">The EventArgs object containing the packet data</param>
8227 </member> 5479 </member>
8228 <member name="F:OpenMetaverse.NetworkManager.OutgoingPacket.TickCount"> 5480 <member name="M:OpenMetaverse.AvatarManager.AvatarPropertiesHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
8229 <summary>Environment.TickCount when this packet was last sent over the wire</summary> 5481 <summary>Process an incoming packet and raise the appropriate events</summary>
5482 <param name="sender">The sender</param>
5483 <param name="e">The EventArgs object containing the packet data</param>
8230 </member> 5484 </member>
8231 <member name="T:OpenMetaverse.NetworkManager.LoginResponseCallback"> 5485 <member name="M:OpenMetaverse.AvatarManager.AvatarInterestsHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
5486 <summary>Process an incoming packet and raise the appropriate events</summary>
5487 <param name="sender">The sender</param>
5488 <param name="e">The EventArgs object containing the packet data</param>
5489 </member>
5490 <member name="M:OpenMetaverse.AvatarManager.DisplayNameUpdateMessageHandler(System.String,OpenMetaverse.Interfaces.IMessage,OpenMetaverse.Simulator)">
8232 <summary> 5491 <summary>
8233 5492 EQ Message fired when someone nearby changes their display name
8234 </summary> 5493 </summary>
8235 <param name="loginSuccess"></param> 5494 <param name="capsKey">The message key</param>
8236 <param name="redirect"></param> 5495 <param name="message">the IMessage object containing the deserialized data sent from the simulator</param>
8237 <param name="replyData"></param> 5496 <param name="simulator">The <see cref="T:OpenMetaverse.Simulator" /> which originated the packet</param>
8238 <param name="message"></param>
8239 <param name="reason"></param>
8240 </member> 5497 </member>
8241 <member name="T:OpenMetaverse.ObjectReturnType"> 5498 <member name="M:OpenMetaverse.AvatarManager.AvatarGroupsReplyMessageHandler(System.String,OpenMetaverse.Interfaces.IMessage,OpenMetaverse.Simulator)">
8242 <summary> 5499 <summary>
8243 Type of return to use when returning objects from a parcel 5500 Crossed region handler for message that comes across the EventQueue. Sent to an agent
5501 when the agent crosses a sim border into a new region.
8244 </summary> 5502 </summary>
5503 <param name="capsKey">The message key</param>
5504 <param name="message">the IMessage object containing the deserialized data sent from the simulator</param>
5505 <param name="simulator">The <see cref="T:OpenMetaverse.Simulator" /> which originated the packet</param>
8245 </member> 5506 </member>
8246 <member name="F:OpenMetaverse.ObjectReturnType.None"> 5507 <member name="M:OpenMetaverse.AvatarManager.AvatarGroupsReplyHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
8247 <summary></summary> 5508 <summary>Process an incoming packet and raise the appropriate events</summary>
5509 <param name="sender">The sender</param>
5510 <param name="e">The EventArgs object containing the packet data</param>
8248 </member> 5511 </member>
8249 <member name="F:OpenMetaverse.ObjectReturnType.Owner"> 5512 <member name="M:OpenMetaverse.AvatarManager.AvatarPickerReplyHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
8250 <summary>Return objects owned by parcel owner</summary> 5513 <summary>Process an incoming packet and raise the appropriate events</summary>
5514 <param name="sender">The sender</param>
5515 <param name="e">The EventArgs object containing the packet data</param>
8251 </member> 5516 </member>
8252 <member name="F:OpenMetaverse.ObjectReturnType.Group"> 5517 <member name="M:OpenMetaverse.AvatarManager.ViewerEffectHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
8253 <summary>Return objects set to group</summary> 5518 <summary>Process an incoming packet and raise the appropriate events</summary>
5519 <param name="sender">The sender</param>
5520 <param name="e">The EventArgs object containing the packet data</param>
8254 </member> 5521 </member>
8255 <member name="F:OpenMetaverse.ObjectReturnType.Other"> 5522 <member name="M:OpenMetaverse.AvatarManager.AvatarPicksReplyHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
8256 <summary>Return objects not owned by parcel owner or set to group</summary> 5523 <summary>Process an incoming packet and raise the appropriate events</summary>
5524 <param name="sender">The sender</param>
5525 <param name="e">The EventArgs object containing the packet data</param>
8257 </member> 5526 </member>
8258 <member name="F:OpenMetaverse.ObjectReturnType.List"> 5527 <member name="M:OpenMetaverse.AvatarManager.PickInfoReplyHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
8259 <summary>Return a specific list of objects on parcel</summary> 5528 <summary>Process an incoming packet and raise the appropriate events</summary>
5529 <param name="sender">The sender</param>
5530 <param name="e">The EventArgs object containing the packet data</param>
8260 </member> 5531 </member>
8261 <member name="F:OpenMetaverse.ObjectReturnType.Sell"> 5532 <member name="M:OpenMetaverse.AvatarManager.AvatarClassifiedReplyHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
8262 <summary>Return objects that are marked for-sale</summary> 5533 <summary>Process an incoming packet and raise the appropriate events</summary>
5534 <param name="sender">The sender</param>
5535 <param name="e">The EventArgs object containing the packet data</param>
8263 </member> 5536 </member>
8264 <member name="T:OpenMetaverse.ParcelAccessFlags"> 5537 <member name="M:OpenMetaverse.AvatarManager.ClassifiedInfoReplyHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
5538 <summary>Process an incoming packet and raise the appropriate events</summary>
5539 <param name="sender">The sender</param>
5540 <param name="e">The EventArgs object containing the packet data</param>
5541 </member>
5542 <member name="T:OpenMetaverse.AvatarAnimationEventArgs">
5543 <summary>Provides data for the <see cref="E:OpenMetaverse.AvatarManager.AvatarAnimation" /> event</summary>
5544 <remarks>The <see cref="E:OpenMetaverse.AvatarManager.AvatarAnimation" /> event occurs when the simulator sends
5545 the animation playlist for an agent</remarks>
5546 <example>
5547 The following code example uses the <see cref="P:OpenMetaverse.AvatarAnimationEventArgs.AvatarID" /> and <see cref="P:OpenMetaverse.AvatarAnimationEventArgs.Animations" />
5548 properties to display the animation playlist of an avatar on the <see cref="T:System.Console" /> window.
5549 <code>
5550 // subscribe to the event
5551 Client.Avatars.AvatarAnimation += Avatars_AvatarAnimation;
5552 private void Avatars_AvatarAnimation(object sender, AvatarAnimationEventArgs e)
5553 {
5554 // create a dictionary of "known" animations from the Animations class using System.Reflection
5555 Dictionary&lt;UUID, string&gt; systemAnimations = new Dictionary&lt;UUID, string&gt;();
5556 Type type = typeof(Animations);
5557 System.Reflection.FieldInfo[] fields = type.GetFields(System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.Static);
5558 foreach (System.Reflection.FieldInfo field in fields)
5559 {
5560 systemAnimations.Add((UUID)field.GetValue(type), field.Name);
5561 }
5562 // find out which animations being played are known animations and which are assets
5563 foreach (Animation animation in e.Animations)
5564 {
5565 if (systemAnimations.ContainsKey(animation.AnimationID))
5566 {
5567 Console.WriteLine("{0} is playing {1} ({2}) sequence {3}", e.AvatarID,
5568 systemAnimations[animation.AnimationID], animation.AnimationSequence);
5569 }
5570 else
5571 {
5572 Console.WriteLine("{0} is playing {1} (Asset) sequence {2}", e.AvatarID,
5573 animation.AnimationID, animation.AnimationSequence);
5574 }
5575 }
5576 }
5577 </code></example>
5578 </member>
5579 <member name="M:OpenMetaverse.AvatarAnimationEventArgs.#ctor(OpenMetaverse.UUID,System.Collections.Generic.List{OpenMetaverse.Animation})">
8265 <summary> 5580 <summary>
8266 Blacklist/Whitelist flags used in parcels Access List 5581 Construct a new instance of the AvatarAnimationEventArgs class
8267 </summary> 5582 </summary>
5583 <param name="avatarID">The ID of the agent</param>
5584 <param name="anims">The list of animations to start</param>
8268 </member> 5585 </member>
8269 <member name="F:OpenMetaverse.ParcelAccessFlags.NoAccess"> 5586 <member name="P:OpenMetaverse.AvatarAnimationEventArgs.AvatarID">
8270 <summary>Agent is denied access</summary> 5587 <summary>Get the ID of the agent</summary>
8271 </member> 5588 </member>
8272 <member name="F:OpenMetaverse.ParcelAccessFlags.Access"> 5589 <member name="P:OpenMetaverse.AvatarAnimationEventArgs.Animations">
8273 <summary>Agent is granted access</summary> 5590 <summary>Get the list of animations to start</summary>
8274 </member> 5591 </member>
8275 <member name="T:OpenMetaverse.ParcelResult"> 5592 <member name="T:OpenMetaverse.AvatarAppearanceEventArgs">
5593 <summary>Provides data for the <see cref="E:OpenMetaverse.AvatarManager.AvatarAppearance" /> event</summary>
5594 <remarks>The <see cref="E:OpenMetaverse.AvatarManager.AvatarAppearance" /> event occurs when the simulator sends
5595 the appearance data for an avatar</remarks>
5596 <example>
5597 The following code example uses the <see cref="P:OpenMetaverse.AvatarAppearanceEventArgs.AvatarID" /> and <see cref="P:OpenMetaverse.AvatarAppearanceEventArgs.VisualParams" />
5598 properties to display the selected shape of an avatar on the <see cref="T:System.Console" /> window.
5599 <code>
5600 // subscribe to the event
5601 Client.Avatars.AvatarAppearance += Avatars_AvatarAppearance;
5602 // handle the data when the event is raised
5603 void Avatars_AvatarAppearance(object sender, AvatarAppearanceEventArgs e)
5604 {
5605 Console.WriteLine("The Agent {0} is using a {1} shape.", e.AvatarID, (e.VisualParams[31] &gt; 0) : "male" ? "female")
5606 }
5607 </code></example>
5608 </member>
5609 <member name="M:OpenMetaverse.AvatarAppearanceEventArgs.#ctor(OpenMetaverse.Simulator,OpenMetaverse.UUID,System.Boolean,OpenMetaverse.Primitive.TextureEntryFace,OpenMetaverse.Primitive.TextureEntryFace[],System.Collections.Generic.List{System.Byte})">
8276 <summary> 5610 <summary>
8277 The result of a request for parcel properties 5611 Construct a new instance of the AvatarAppearanceEventArgs class
8278 </summary> 5612 </summary>
5613 <param name="sim">The simulator request was from</param>
5614 <param name="avatarID">The ID of the agent</param>
5615 <param name="isTrial">true of the agent is a trial account</param>
5616 <param name="defaultTexture">The default agent texture</param>
5617 <param name="faceTextures">The agents appearance layer textures</param>
5618 <param name="visualParams">The <see cref="T:OpenMetaverse.VisualParams" /> for the agent</param>
8279 </member> 5619 </member>
8280 <member name="F:OpenMetaverse.ParcelResult.NoData"> 5620 <member name="P:OpenMetaverse.AvatarAppearanceEventArgs.Simulator">
8281 <summary>No matches were found for the request</summary> 5621 <summary>Get the Simulator this request is from of the agent</summary>
8282 </member> 5622 </member>
8283 <member name="F:OpenMetaverse.ParcelResult.Single"> 5623 <member name="P:OpenMetaverse.AvatarAppearanceEventArgs.AvatarID">
8284 <summary>Request matched a single parcel</summary> 5624 <summary>Get the ID of the agent</summary>
8285 </member> 5625 </member>
8286 <member name="F:OpenMetaverse.ParcelResult.Multiple"> 5626 <member name="P:OpenMetaverse.AvatarAppearanceEventArgs.IsTrial">
8287 <summary>Request matched multiple parcels</summary> 5627 <summary>true if the agent is a trial account</summary>
8288 </member> 5628 </member>
8289 <member name="T:OpenMetaverse.AccessList"> 5629 <member name="P:OpenMetaverse.AvatarAppearanceEventArgs.DefaultTexture">
5630 <summary>Get the default agent texture</summary>
5631 </member>
5632 <member name="P:OpenMetaverse.AvatarAppearanceEventArgs.FaceTextures">
5633 <summary>Get the agents appearance layer textures</summary>
5634 </member>
5635 <member name="P:OpenMetaverse.AvatarAppearanceEventArgs.VisualParams">
5636 <summary>Get the <see cref="T:OpenMetaverse.VisualParams" /> for the agent</summary>
5637 </member>
5638 <member name="T:OpenMetaverse.AvatarInterestsReplyEventArgs">
5639 <summary>Represents the interests from the profile of an agent</summary>
5640 </member>
5641 <member name="P:OpenMetaverse.AvatarInterestsReplyEventArgs.AvatarID">
5642 <summary>Get the ID of the agent</summary>
5643 </member>
5644 <member name="T:OpenMetaverse.AvatarPropertiesReplyEventArgs">
5645 <summary>The properties of an agent</summary>
5646 </member>
5647 <member name="P:OpenMetaverse.AvatarPropertiesReplyEventArgs.AvatarID">
5648 <summary>Get the ID of the agent</summary>
5649 </member>
5650 <member name="P:OpenMetaverse.AvatarGroupsReplyEventArgs.AvatarID">
5651 <summary>Get the ID of the agent</summary>
5652 </member>
5653 <member name="P:OpenMetaverse.AvatarPicksReplyEventArgs.AvatarID">
5654 <summary>Get the ID of the agent</summary>
5655 </member>
5656 <member name="P:OpenMetaverse.AvatarClassifiedReplyEventArgs.AvatarID">
5657 <summary>Get the ID of the avatar</summary>
5658 </member>
5659 <member name="T:OpenMetaverse.DisplayNameUpdateEventArgs">
8290 <summary> 5660 <summary>
8291 Flags used in the ParcelAccessListRequest packet to specify whether 5661 Event args class for display name notification messages
8292 we want the access list (whitelist), ban list (blacklist), or both
8293 </summary> 5662 </summary>
8294 </member> 5663 </member>
8295 <member name="F:OpenMetaverse.AccessList.Access"> 5664 <member name="T:OpenMetaverse.BinBVHAnimationReader">
8296 <summary>Request the access list</summary> 5665 <summary>
5666 Reads in a byte array of an Animation Asset created by the SecondLife(tm) client.
5667 </summary>
8297 </member> 5668 </member>
8298 <member name="F:OpenMetaverse.AccessList.Ban"> 5669 <member name="M:OpenMetaverse.BinBVHAnimationReader.#ctor(System.Byte[])">
8299 <summary>Request the ban list</summary> 5670 <summary>
5671 Searialize an animation asset into it's joints/keyframes/meta data
5672 </summary>
5673 <param name="animationdata">
5674 </param>
8300 </member> 5675 </member>
8301 <member name="F:OpenMetaverse.AccessList.Both"> 5676 <member name="F:OpenMetaverse.BinBVHAnimationReader.rotationkeys">
8302 <summary>Request both White and Black lists</summary> 5677 <summary>
5678 Rotation Keyframe count (used internally)
5679 </summary>
8303 </member> 5680 </member>
8304 <member name="T:OpenMetaverse.ParcelPropertiesStatus"> 5681 <member name="F:OpenMetaverse.BinBVHAnimationReader.positionkeys">
8305 <summary> 5682 <summary>
8306 Sequence ID in ParcelPropertiesReply packets (sent when avatar 5683 Position Keyframe count (used internally)
8307 tries to cross a parcel border)
8308 </summary> 5684 </summary>
8309 </member> 5685 </member>
8310 <member name="F:OpenMetaverse.ParcelPropertiesStatus.ParcelSelected"> 5686 <member name="F:OpenMetaverse.BinBVHAnimationReader.Priority">
8311 <summary>Parcel is currently selected</summary> 5687 <summary>
5688 Animation Priority
5689 </summary>
8312 </member> 5690 </member>
8313 <member name="F:OpenMetaverse.ParcelPropertiesStatus.CollisionNotInGroup"> 5691 <member name="F:OpenMetaverse.BinBVHAnimationReader.Length">
8314 <summary>Parcel restricted to a group the avatar is not a 5692 <summary>
8315 member of</summary> 5693 The animation length in seconds.
5694 </summary>
8316 </member> 5695 </member>
8317 <member name="F:OpenMetaverse.ParcelPropertiesStatus.CollisionBanned"> 5696 <member name="F:OpenMetaverse.BinBVHAnimationReader.ExpressionName">
8318 <summary>Avatar is banned from the parcel</summary> 5697 <summary>
5698 Expression set in the client. Null if [None] is selected
5699 </summary>
8319 </member> 5700 </member>
8320 <member name="F:OpenMetaverse.ParcelPropertiesStatus.CollisionNotOnAccessList"> 5701 <member name="F:OpenMetaverse.BinBVHAnimationReader.InPoint">
8321 <summary>Parcel is restricted to an access list that the 5702 <summary>
8322 avatar is not on</summary> 5703 The time in seconds to start the animation
5704 </summary>
8323 </member> 5705 </member>
8324 <member name="F:OpenMetaverse.ParcelPropertiesStatus.HoveredOverParcel"> 5706 <member name="F:OpenMetaverse.BinBVHAnimationReader.OutPoint">
8325 <summary>Response to hovering over a parcel</summary> 5707 <summary>
5708 The time in seconds to end the animation
5709 </summary>
8326 </member> 5710 </member>
8327 <member name="T:OpenMetaverse.TerraformAction"> 5711 <member name="F:OpenMetaverse.BinBVHAnimationReader.Loop">
8328 <summary> 5712 <summary>
8329 The tool to use when modifying terrain levels 5713 Loop the animation
8330 </summary> 5714 </summary>
8331 </member> 5715 </member>
8332 <member name="F:OpenMetaverse.TerraformAction.Level"> 5716 <member name="F:OpenMetaverse.BinBVHAnimationReader.EaseInTime">
8333 <summary>Level the terrain</summary> 5717 <summary>
5718 Meta data. Ease in Seconds.
5719 </summary>
8334 </member> 5720 </member>
8335 <member name="F:OpenMetaverse.TerraformAction.Raise"> 5721 <member name="F:OpenMetaverse.BinBVHAnimationReader.EaseOutTime">
8336 <summary>Raise the terrain</summary> 5722 <summary>
5723 Meta data. Ease out seconds.
5724 </summary>
8337 </member> 5725 </member>
8338 <member name="F:OpenMetaverse.TerraformAction.Lower"> 5726 <member name="F:OpenMetaverse.BinBVHAnimationReader.HandPose">
8339 <summary>Lower the terrain</summary> 5727 <summary>
5728 Meta Data for the Hand Pose
5729 </summary>
8340 </member> 5730 </member>
8341 <member name="F:OpenMetaverse.TerraformAction.Smooth"> 5731 <member name="F:OpenMetaverse.BinBVHAnimationReader.JointCount">
8342 <summary>Smooth the terrain</summary> 5732 <summary>
5733 Number of joints defined in the animation
5734 </summary>
8343 </member> 5735 </member>
8344 <member name="F:OpenMetaverse.TerraformAction.Noise"> 5736 <member name="F:OpenMetaverse.BinBVHAnimationReader.joints">
8345 <summary>Add random noise to the terrain</summary> 5737 <summary>
5738 Contains an array of joints
5739 </summary>
8346 </member> 5740 </member>
8347 <member name="F:OpenMetaverse.TerraformAction.Revert"> 5741 <member name="M:OpenMetaverse.BinBVHAnimationReader.ReadBytesUntilNull(System.Byte[],System.Int32@)">
8348 <summary>Revert terrain to simulator default</summary> 5742 <summary>
5743 Variable length strings seem to be null terminated in the animation asset.. but..
5744 use with caution, home grown.
5745 advances the index.
5746 </summary>
5747 <param name="data">The animation asset byte array</param>
5748 <param name="i">The offset to start reading</param>
5749 <returns>a string</returns>
8349 </member> 5750 </member>
8350 <member name="T:OpenMetaverse.TerraformBrushSize"> 5751 <member name="M:OpenMetaverse.BinBVHAnimationReader.readJoint(System.Byte[],System.Int32@)">
8351 <summary> 5752 <summary>
8352 The tool size to use when changing terrain levels 5753 Read in a Joint from an animation asset byte array
5754 Variable length Joint fields, yay!
5755 Advances the index
8353 </summary> 5756 </summary>
5757 <param name="data">animation asset byte array</param>
5758 <param name="i">Byte Offset of the start of the joint</param>
5759 <returns>The Joint data serialized into the binBVHJoint structure</returns>
8354 </member> 5760 </member>
8355 <member name="F:OpenMetaverse.TerraformBrushSize.Small"> 5761 <member name="M:OpenMetaverse.BinBVHAnimationReader.readKeys(System.Byte[],System.Int32@,System.Int32,System.Single,System.Single)">
8356 <summary>Small</summary> 5762 <summary>
5763 Read Keyframes of a certain type
5764 advance i
5765 </summary>
5766 <param name="data">Animation Byte array</param>
5767 <param name="i">Offset in the Byte Array. Will be advanced</param>
5768 <param name="keycount">Number of Keyframes</param>
5769 <param name="min">Scaling Min to pass to the Uint16ToFloat method</param>
5770 <param name="max">Scaling Max to pass to the Uint16ToFloat method</param>
5771 <returns>
5772 </returns>
8357 </member> 5773 </member>
8358 <member name="F:OpenMetaverse.TerraformBrushSize.Medium"> 5774 <member name="T:OpenMetaverse.binBVHJoint">
8359 <summary>Medium</summary> 5775 <summary>
5776 A Joint and it's associated meta data and keyframes
5777 </summary>
8360 </member> 5778 </member>
8361 <member name="F:OpenMetaverse.TerraformBrushSize.Large"> 5779 <member name="F:OpenMetaverse.binBVHJoint.Name">
8362 <summary>Large</summary> 5780 <summary>
5781 Name of the Joint. Matches the avatar_skeleton.xml in client distros
5782 </summary>
8363 </member> 5783 </member>
8364 <member name="T:OpenMetaverse.AccessDeniedReason"> 5784 <member name="F:OpenMetaverse.binBVHJoint.Priority">
8365 <summary> 5785 <summary>
8366 Reasons agent is denied access to a parcel on the simulator 5786 Joint Animation Override? Was the same as the Priority in testing..
8367 </summary> 5787 </summary>
8368 </member> 5788 </member>
8369 <member name="F:OpenMetaverse.AccessDeniedReason.NotDenied"> 5789 <member name="F:OpenMetaverse.binBVHJoint.rotationkeys">
8370 <summary>Agent is not denied, access is granted</summary> 5790 <summary>
5791 Array of Rotation Keyframes in order from earliest to latest
5792 </summary>
8371 </member> 5793 </member>
8372 <member name="F:OpenMetaverse.AccessDeniedReason.NotInGroup"> 5794 <member name="F:OpenMetaverse.binBVHJoint.positionkeys">
8373 <summary>Agent is not a member of the group set for the parcel, or which owns the parcel</summary> 5795 <summary>
5796 Array of Position Keyframes in order from earliest to latest
5797 This seems to only be for the Pelvis?
5798 </summary>
8374 </member> 5799 </member>
8375 <member name="F:OpenMetaverse.AccessDeniedReason.NotOnAllowList"> 5800 <member name="F:OpenMetaverse.binBVHJoint.Tag">
8376 <summary>Agent is not on the parcels specific allow list</summary> 5801 <summary>
5802 Custom application data that can be attached to a joint
5803 </summary>
8377 </member> 5804 </member>
8378 <member name="F:OpenMetaverse.AccessDeniedReason.BannedFromParcel"> 5805 <member name="T:OpenMetaverse.binBVHJointKey">
8379 <summary>Agent is on the parcels ban list</summary> 5806 <summary>
5807 A Joint Keyframe. This is either a position or a rotation.
5808 </summary>
8380 </member> 5809 </member>
8381 <member name="F:OpenMetaverse.AccessDeniedReason.NoAccess"> 5810 <member name="F:OpenMetaverse.binBVHJointKey.key_element">
8382 <summary>Unknown</summary> 5811 <summary>
5812 Either a Vector3 position or a Vector3 Euler rotation
5813 </summary>
8383 </member> 5814 </member>
8384 <member name="F:OpenMetaverse.AccessDeniedReason.NotAgeVerified"> 5815 <member name="T:OpenMetaverse.HandPose">
8385 <summary>Agent is not age verified and parcel settings deny access to non age verified avatars</summary> 5816 <summary>
5817 Poses set in the animation metadata for the hands.
5818 </summary>
8386 </member> 5819 </member>
8387 <member name="T:OpenMetaverse.ParcelOverlayType"> 5820 <member name="T:OpenMetaverse.BitPack">
8388 <summary> 5821 <summary>
8389 Parcel overlay type. This is used primarily for highlighting and 5822 Wrapper around a byte array that allows bit to be packed and unpacked
8390 coloring which is why it is a single integer instead of a set of 5823 one at a time or by a variable amount. Useful for very tightly packed
8391 flags 5824 data like LayerData packets
8392 </summary> 5825 </summary>
8393 <remarks>These values seem to be poorly thought out. The first three
8394 bits represent a single value, not flags. For example Auction (0x05) is
8395 not a combination of OwnedByOther (0x01) and ForSale(0x04). However,
8396 the BorderWest and BorderSouth values are bit flags that get attached
8397 to the value stored in the first three bits. Bits four, five, and six
8398 are unused</remarks>
8399 </member> 5826 </member>
8400 <member name="F:OpenMetaverse.ParcelOverlayType.Public"> 5827 <member name="M:OpenMetaverse.BitPack.#ctor(System.Byte[],System.Int32)">
8401 <summary>Public land</summary> 5828 <summary>
5829 Default constructor, initialize the bit packer / bit unpacker
5830 with a byte array and starting position
5831 </summary>
5832 <param name="data">Byte array to pack bits in to or unpack from</param>
5833 <param name="pos">Starting position in the byte array</param>
8402 </member> 5834 </member>
8403 <member name="F:OpenMetaverse.ParcelOverlayType.OwnedByOther"> 5835 <member name="F:OpenMetaverse.BitPack.Data">
8404 <summary>Land is owned by another avatar</summary> 5836 <summary>
5837 </summary>
8405 </member> 5838 </member>
8406 <member name="F:OpenMetaverse.ParcelOverlayType.OwnedByGroup"> 5839 <member name="P:OpenMetaverse.BitPack.BytePos">
8407 <summary>Land is owned by a group</summary> 5840 <summary>
5841 </summary>
8408 </member> 5842 </member>
8409 <member name="F:OpenMetaverse.ParcelOverlayType.OwnedBySelf"> 5843 <member name="P:OpenMetaverse.BitPack.BitPos">
8410 <summary>Land is owned by the current avatar</summary> 5844 <summary>
5845 </summary>
8411 </member> 5846 </member>
8412 <member name="F:OpenMetaverse.ParcelOverlayType.ForSale"> 5847 <member name="M:OpenMetaverse.BitPack.PackFloat(System.Single)">
8413 <summary>Land is for sale</summary> 5848 <summary>
5849 Pack a floating point value in to the data
5850 </summary>
5851 <param name="data">Floating point value to pack</param>
8414 </member> 5852 </member>
8415 <member name="F:OpenMetaverse.ParcelOverlayType.Auction"> 5853 <member name="M:OpenMetaverse.BitPack.PackBits(System.Int32,System.Int32)">
8416 <summary>Land is being auctioned</summary> 5854 <summary>
5855 Pack part or all of an integer in to the data
5856 </summary>
5857 <param name="data">Integer containing the data to pack</param>
5858 <param name="totalCount">Number of bits of the integer to pack</param>
8417 </member> 5859 </member>
8418 <member name="F:OpenMetaverse.ParcelOverlayType.BorderWest"> 5860 <member name="M:OpenMetaverse.BitPack.PackBits(System.UInt32,System.Int32)">
8419 <summary>To the west of this area is a parcel border</summary> 5861 <summary>
5862 Pack part or all of an unsigned integer in to the data
5863 </summary>
5864 <param name="data">Unsigned integer containing the data to pack</param>
5865 <param name="totalCount">Number of bits of the integer to pack</param>
8420 </member> 5866 </member>
8421 <member name="F:OpenMetaverse.ParcelOverlayType.BorderSouth"> 5867 <member name="M:OpenMetaverse.BitPack.PackBit(System.Boolean)">
8422 <summary>To the south of this area is a parcel border</summary> 5868 <summary>
5869 Pack a single bit in to the data
5870 </summary>
5871 <param name="bit">Bit to pack</param>
8423 </member> 5872 </member>
8424 <member name="T:OpenMetaverse.ParcelFlags"> 5873 <member name="M:OpenMetaverse.BitPack.PackFixed(System.Single,System.Boolean,System.Int32,System.Int32)">
8425 <summary> 5874 <summary>
8426 Various parcel properties
8427 </summary> 5875 </summary>
5876 <param name="data">
5877 </param>
5878 <param name="isSigned">
5879 </param>
5880 <param name="intBits">
5881 </param>
5882 <param name="fracBits">
5883 </param>
8428 </member> 5884 </member>
8429 <member name="F:OpenMetaverse.ParcelFlags.None"> 5885 <member name="M:OpenMetaverse.BitPack.PackUUID(OpenMetaverse.UUID)">
8430 <summary>No flags set</summary> 5886 <summary>
5887 </summary>
5888 <param name="data">
5889 </param>
8431 </member> 5890 </member>
8432 <member name="F:OpenMetaverse.ParcelFlags.AllowFly"> 5891 <member name="M:OpenMetaverse.BitPack.PackColor(OpenMetaverse.Color4)">
8433 <summary>Allow avatars to fly (a client-side only restriction)</summary> 5892 <summary>
5893 </summary>
5894 <param name="data">
5895 </param>
8434 </member> 5896 </member>
8435 <member name="F:OpenMetaverse.ParcelFlags.AllowOtherScripts"> 5897 <member name="M:OpenMetaverse.BitPack.UnpackFloat">
8436 <summary>Allow foreign scripts to run</summary> 5898 <summary>
5899 Unpacking a floating point value from the data
5900 </summary>
5901 <returns>Unpacked floating point value</returns>
8437 </member> 5902 </member>
8438 <member name="F:OpenMetaverse.ParcelFlags.ForSale"> 5903 <member name="M:OpenMetaverse.BitPack.UnpackBits(System.Int32)">
8439 <summary>This parcel is for sale</summary> 5904 <summary>
5905 Unpack a variable number of bits from the data in to integer format
5906 </summary>
5907 <param name="totalCount">Number of bits to unpack</param>
5908 <returns>An integer containing the unpacked bits</returns>
5909 <remarks>This function is only useful up to 32 bits</remarks>
8440 </member> 5910 </member>
8441 <member name="F:OpenMetaverse.ParcelFlags.AllowLandmark"> 5911 <member name="M:OpenMetaverse.BitPack.UnpackUBits(System.Int32)">
8442 <summary>Allow avatars to create a landmark on this parcel</summary> 5912 <summary>
5913 Unpack a variable number of bits from the data in to unsigned
5914 integer format
5915 </summary>
5916 <param name="totalCount">Number of bits to unpack</param>
5917 <returns>An unsigned integer containing the unpacked bits</returns>
5918 <remarks>This function is only useful up to 32 bits</remarks>
8443 </member> 5919 </member>
8444 <member name="F:OpenMetaverse.ParcelFlags.AllowTerraform"> 5920 <member name="M:OpenMetaverse.BitPack.UnpackShort">
8445 <summary>Allows all avatars to edit the terrain on this parcel</summary> 5921 <summary>
5922 Unpack a 16-bit signed integer
5923 </summary>
5924 <returns>16-bit signed integer</returns>
8446 </member> 5925 </member>
8447 <member name="F:OpenMetaverse.ParcelFlags.AllowDamage"> 5926 <member name="M:OpenMetaverse.BitPack.UnpackUShort">
8448 <summary>Avatars have health and can take damage on this parcel. 5927 <summary>
8449 If set, avatars can be killed and sent home here</summary> 5928 Unpack a 16-bit unsigned integer
5929 </summary>
5930 <returns>16-bit unsigned integer</returns>
8450 </member> 5931 </member>
8451 <member name="F:OpenMetaverse.ParcelFlags.CreateObjects"> 5932 <member name="M:OpenMetaverse.BitPack.UnpackInt">
8452 <summary>Foreign avatars can create objects here</summary> 5933 <summary>
5934 Unpack a 32-bit signed integer
5935 </summary>
5936 <returns>32-bit signed integer</returns>
8453 </member> 5937 </member>
8454 <member name="F:OpenMetaverse.ParcelFlags.ForSaleObjects"> 5938 <member name="M:OpenMetaverse.BitPack.UnpackUInt">
8455 <summary>All objects on this parcel can be purchased</summary> 5939 <summary>
5940 Unpack a 32-bit unsigned integer
5941 </summary>
5942 <returns>32-bit unsigned integer</returns>
8456 </member> 5943 </member>
8457 <member name="F:OpenMetaverse.ParcelFlags.UseAccessGroup"> 5944 <member name="T:OpenMetaverse.Caps">
8458 <summary>Access is restricted to a group</summary> 5945 <summary>
5946 Capabilities is the name of the bi-directional HTTP REST protocol
5947 used to communicate non real-time transactions such as teleporting or
5948 group messaging
5949 </summary>
8459 </member> 5950 </member>
8460 <member name="F:OpenMetaverse.ParcelFlags.UseAccessList"> 5951 <member name="M:OpenMetaverse.Caps.#ctor(OpenMetaverse.Simulator,System.String)">
8461 <summary>Access is restricted to a whitelist</summary> 5952 <summary>
5953 Default constructor
5954 </summary>
5955 <param name="simulator">
5956 </param>
5957 <param name="seedcaps">
5958 </param>
8462 </member> 5959 </member>
8463 <member name="F:OpenMetaverse.ParcelFlags.UseBanList"> 5960 <member name="T:OpenMetaverse.Caps.EventQueueCallback">
8464 <summary>Ban blacklist is enabled</summary> 5961 <summary>
5962 Triggered when an event is received via the EventQueueGet
5963 capability
5964 </summary>
5965 <param name="capsKey">Event name</param>
5966 <param name="message">Decoded event data</param>
5967 <param name="simulator">The simulator that generated the event</param>
8465 </member> 5968 </member>
8466 <member name="F:OpenMetaverse.ParcelFlags.UsePassList"> 5969 <member name="F:OpenMetaverse.Caps.Simulator">
8467 <summary>Unknown</summary> 5970 <summary>Reference to the simulator this system is connected to</summary>
8468 </member> 5971 </member>
8469 <member name="F:OpenMetaverse.ParcelFlags.ShowDirectory"> 5972 <member name="P:OpenMetaverse.Caps.SeedCapsURI">
8470 <summary>List this parcel in the search directory</summary> 5973 <summary>Capabilities URI this system was initialized with</summary>
8471 </member> 5974 </member>
8472 <member name="F:OpenMetaverse.ParcelFlags.AllowDeedToGroup"> 5975 <member name="P:OpenMetaverse.Caps.IsEventQueueRunning">
8473 <summary>Allow personally owned parcels to be deeded to group</summary> 5976 <summary>Whether the capabilities event queue is connected and
5977 listening for incoming events</summary>
8474 </member> 5978 </member>
8475 <member name="F:OpenMetaverse.ParcelFlags.ContributeWithDeed"> 5979 <member name="M:OpenMetaverse.Caps.CapabilityURI(System.String)">
8476 <summary>If Deeded, owner contributes required tier to group parcel is deeded to</summary> 5980 <summary>
5981 Request the URI of a named capability
5982 </summary>
5983 <param name="capability">Name of the capability to request</param>
5984 <returns>The URI of the requested capability, or String.Empty if
5985 the capability does not exist</returns>
8477 </member> 5986 </member>
8478 <member name="F:OpenMetaverse.ParcelFlags.SoundLocal"> 5987 <member name="M:OpenMetaverse.Caps.EventQueueEventHandler(System.String,OpenMetaverse.StructuredData.OSDMap)">
8479 <summary>Restrict sounds originating on this parcel to the 5988 <summary>
8480 parcel boundaries</summary> 5989 Process any incoming events, check to see if we have a message created for the event,
5990 </summary>
5991 <param name="eventName">
5992 </param>
5993 <param name="body">
5994 </param>
8481 </member> 5995 </member>
8482 <member name="F:OpenMetaverse.ParcelFlags.SellParcelObjects"> 5996 <member name="M:OpenMetaverse.Packets.Packet.BuildPacket(System.String,OpenMetaverse.StructuredData.OSDMap)">
8483 <summary>Objects on this parcel are sold when the land is 5997 <summary>
8484 purchsaed</summary> 5998 Attempts to convert an LLSD structure to a known Packet type
5999 </summary>
6000 <param name="capsEventName">Event name, this must match an actual
6001 packet name for a Packet to be successfully built</param>
6002 <param name="body">LLSD to convert to a Packet</param>
6003 <returns>A Packet on success, otherwise null</returns>
8485 </member> 6004 </member>
8486 <member name="F:OpenMetaverse.ParcelFlags.AllowPublish"> 6005 <member name="P:OpenMetaverse.CoordinateFrame.Origin">
8487 <summary>Allow this parcel to be published on the web</summary> 6006 <summary>Origin position of this coordinate frame</summary>
8488 </member> 6007 </member>
8489 <member name="F:OpenMetaverse.ParcelFlags.MaturePublish"> 6008 <member name="P:OpenMetaverse.CoordinateFrame.XAxis">
8490 <summary>The information for this parcel is mature content</summary> 6009 <summary>X axis of this coordinate frame, or Forward/At in grid terms</summary>
8491 </member> 6010 </member>
8492 <member name="F:OpenMetaverse.ParcelFlags.UrlWebPage"> 6011 <member name="P:OpenMetaverse.CoordinateFrame.YAxis">
8493 <summary>The media URL is an HTML page</summary> 6012 <summary>Y axis of this coordinate frame, or Left in grid terms</summary>
8494 </member> 6013 </member>
8495 <member name="F:OpenMetaverse.ParcelFlags.UrlRawHtml"> 6014 <member name="P:OpenMetaverse.CoordinateFrame.ZAxis">
8496 <summary>The media URL is a raw HTML string</summary> 6015 <summary>Z axis of this coordinate frame, or Up in grid terms</summary>
8497 </member> 6016 </member>
8498 <member name="F:OpenMetaverse.ParcelFlags.RestrictPushObject"> 6017 <member name="M:OpenMetaverse.CoordinateFrame.LookDirection(OpenMetaverse.Vector3,OpenMetaverse.Vector3)">
8499 <summary>Restrict foreign object pushes</summary> 6018 <summary>
6019 </summary>
6020 <param name="at">Looking direction, must be a normalized vector</param>
6021 <param name="upDirection">Up direction, must be a normalized vector</param>
8500 </member> 6022 </member>
8501 <member name="F:OpenMetaverse.ParcelFlags.DenyAnonymous"> 6023 <member name="M:OpenMetaverse.CoordinateFrame.LookDirection(System.Double)">
8502 <summary>Ban all non identified/transacted avatars</summary> 6024 <summary>
6025 Align the coordinate frame X and Y axis with a given rotation
6026 around the Z axis in radians
6027 </summary>
6028 <param name="heading">Absolute rotation around the Z axis in
6029 radians</param>
8503 </member> 6030 </member>
8504 <member name="F:OpenMetaverse.ParcelFlags.AllowGroupScripts"> 6031 <member name="T:OpenMetaverse.DirectoryManager">
8505 <summary>Allow group-owned scripts to run</summary> 6032 <summary>
6033 Access to the data server which allows searching for land, events, people, etc
6034 </summary>
8506 </member> 6035 </member>
8507 <member name="F:OpenMetaverse.ParcelFlags.CreateGroupObjects"> 6036 <member name="M:OpenMetaverse.DirectoryManager.#ctor(OpenMetaverse.GridClient)">
8508 <summary>Allow object creation by group members or group 6037 <summary>
8509 objects</summary> 6038 Constructs a new instance of the DirectoryManager class
6039 </summary>
6040 <param name="client">An instance of GridClient</param>
8510 </member> 6041 </member>
8511 <member name="F:OpenMetaverse.ParcelFlags.AllowAPrimitiveEntry"> 6042 <member name="T:OpenMetaverse.DirectoryManager.ClassifiedCategories">
8512 <summary>Allow all objects to enter this parcel</summary> 6043 <summary>Classified Ad categories</summary>
8513 </member> 6044 </member>
8514 <member name="F:OpenMetaverse.ParcelFlags.AllowGroupObjectEntry"> 6045 <member name="F:OpenMetaverse.DirectoryManager.ClassifiedCategories.Any">
8515 <summary>Only allow group and owner objects to enter this parcel</summary> 6046 <summary>Classified is listed in the Any category</summary>
8516 </member> 6047 </member>
8517 <member name="F:OpenMetaverse.ParcelFlags.AllowVoiceChat"> 6048 <member name="F:OpenMetaverse.DirectoryManager.ClassifiedCategories.Shopping">
8518 <summary>Voice Enabled on this parcel</summary> 6049 <summary>Classified is shopping related</summary>
8519 </member> 6050 </member>
8520 <member name="F:OpenMetaverse.ParcelFlags.UseEstateVoiceChan"> 6051 <member name="F:OpenMetaverse.DirectoryManager.ClassifiedCategories.LandRental">
8521 <summary>Use Estate Voice channel for Voice on this parcel</summary> 6052 <summary>Classified is </summary>
8522 </member> 6053 </member>
8523 <member name="F:OpenMetaverse.ParcelFlags.DenyAgeUnverified"> 6054 <member name="F:OpenMetaverse.DirectoryManager.ClassifiedCategories.PropertyRental">
8524 <summary>Deny Age Unverified Users</summary> 6055 <summary>
6056 </summary>
8525 </member> 6057 </member>
8526 <member name="T:OpenMetaverse.ParcelStatus"> 6058 <member name="F:OpenMetaverse.DirectoryManager.ClassifiedCategories.SpecialAttraction">
8527 <summary> 6059 <summary>
8528 Parcel ownership status
8529 </summary> 6060 </summary>
8530 </member> 6061 </member>
8531 <member name="F:OpenMetaverse.ParcelStatus.None"> 6062 <member name="F:OpenMetaverse.DirectoryManager.ClassifiedCategories.NewProducts">
8532 <summary>Placeholder</summary> 6063 <summary>
6064 </summary>
8533 </member> 6065 </member>
8534 <member name="F:OpenMetaverse.ParcelStatus.Leased"> 6066 <member name="F:OpenMetaverse.DirectoryManager.ClassifiedCategories.Employment">
8535 <summary>Parcel is leased (owned) by an avatar or group</summary> 6067 <summary>
6068 </summary>
8536 </member> 6069 </member>
8537 <member name="F:OpenMetaverse.ParcelStatus.LeasePending"> 6070 <member name="F:OpenMetaverse.DirectoryManager.ClassifiedCategories.Wanted">
8538 <summary>Parcel is in process of being leased (purchased) by an avatar or group</summary> 6071 <summary>
6072 </summary>
8539 </member> 6073 </member>
8540 <member name="F:OpenMetaverse.ParcelStatus.Abandoned"> 6074 <member name="F:OpenMetaverse.DirectoryManager.ClassifiedCategories.Service">
8541 <summary>Parcel has been abandoned back to Governor Linden</summary> 6075 <summary>
6076 </summary>
8542 </member> 6077 </member>
8543 <member name="T:OpenMetaverse.ParcelCategory"> 6078 <member name="F:OpenMetaverse.DirectoryManager.ClassifiedCategories.Personal">
8544 <summary> 6079 <summary>
8545 Category parcel is listed in under search
8546 </summary> 6080 </summary>
8547 </member> 6081 </member>
8548 <member name="F:OpenMetaverse.ParcelCategory.None"> 6082 <member name="T:OpenMetaverse.DirectoryManager.EventCategories">
8549 <summary>No assigned category</summary> 6083 <summary>Event Categories</summary>
8550 </member> 6084 </member>
8551 <member name="F:OpenMetaverse.ParcelCategory.Linden"> 6085 <member name="F:OpenMetaverse.DirectoryManager.EventCategories.All">
8552 <summary>Linden Infohub or public area</summary> 6086 <summary>
6087 </summary>
8553 </member> 6088 </member>
8554 <member name="F:OpenMetaverse.ParcelCategory.Adult"> 6089 <member name="F:OpenMetaverse.DirectoryManager.EventCategories.Discussion">
8555 <summary>Adult themed area</summary> 6090 <summary>
6091 </summary>
8556 </member> 6092 </member>
8557 <member name="F:OpenMetaverse.ParcelCategory.Arts"> 6093 <member name="F:OpenMetaverse.DirectoryManager.EventCategories.Sports">
8558 <summary>Arts and Culture</summary> 6094 <summary>
6095 </summary>
8559 </member> 6096 </member>
8560 <member name="F:OpenMetaverse.ParcelCategory.Business"> 6097 <member name="F:OpenMetaverse.DirectoryManager.EventCategories.LiveMusic">
8561 <summary>Business</summary> 6098 <summary>
6099 </summary>
8562 </member> 6100 </member>
8563 <member name="F:OpenMetaverse.ParcelCategory.Educational"> 6101 <member name="F:OpenMetaverse.DirectoryManager.EventCategories.Commercial">
8564 <summary>Educational</summary> 6102 <summary>
6103 </summary>
8565 </member> 6104 </member>
8566 <member name="F:OpenMetaverse.ParcelCategory.Gaming"> 6105 <member name="F:OpenMetaverse.DirectoryManager.EventCategories.Nightlife">
8567 <summary>Gaming</summary> 6106 <summary>
6107 </summary>
8568 </member> 6108 </member>
8569 <member name="F:OpenMetaverse.ParcelCategory.Hangout"> 6109 <member name="F:OpenMetaverse.DirectoryManager.EventCategories.Games">
8570 <summary>Hangout or Club</summary> 6110 <summary>
6111 </summary>
8571 </member> 6112 </member>
8572 <member name="F:OpenMetaverse.ParcelCategory.Newcomer"> 6113 <member name="F:OpenMetaverse.DirectoryManager.EventCategories.Pageants">
8573 <summary>Newcomer friendly</summary> 6114 <summary>
6115 </summary>
8574 </member> 6116 </member>
8575 <member name="F:OpenMetaverse.ParcelCategory.Park"> 6117 <member name="F:OpenMetaverse.DirectoryManager.EventCategories.Education">
8576 <summary>Parks and Nature</summary> 6118 <summary>
6119 </summary>
8577 </member> 6120 </member>
8578 <member name="F:OpenMetaverse.ParcelCategory.Residential"> 6121 <member name="F:OpenMetaverse.DirectoryManager.EventCategories.Arts">
8579 <summary>Residential</summary> 6122 <summary>
6123 </summary>
8580 </member> 6124 </member>
8581 <member name="F:OpenMetaverse.ParcelCategory.Shopping"> 6125 <member name="F:OpenMetaverse.DirectoryManager.EventCategories.Charity">
8582 <summary>Shopping</summary> 6126 <summary>
6127 </summary>
8583 </member> 6128 </member>
8584 <member name="F:OpenMetaverse.ParcelCategory.Stage"> 6129 <member name="F:OpenMetaverse.DirectoryManager.EventCategories.Miscellaneous">
8585 <summary>Not Used?</summary> 6130 <summary>
6131 </summary>
8586 </member> 6132 </member>
8587 <member name="F:OpenMetaverse.ParcelCategory.Other"> 6133 <member name="T:OpenMetaverse.DirectoryManager.DirFindFlags">
8588 <summary>Other</summary> 6134 <summary>
6135 Query Flags used in many of the DirectoryManager methods to specify which query to execute and how to return the results.
6136 Flags can be combined using the | (pipe) character, not all flags are available in all queries
6137 </summary>
8589 </member> 6138 </member>
8590 <member name="F:OpenMetaverse.ParcelCategory.Any"> 6139 <member name="F:OpenMetaverse.DirectoryManager.DirFindFlags.People">
8591 <summary>Not an actual category, only used for queries</summary> 6140 <summary>Query the People database</summary>
8592 </member> 6141 </member>
8593 <member name="T:OpenMetaverse.LandingType"> 6142 <member name="F:OpenMetaverse.DirectoryManager.DirFindFlags.Online">
8594 <summary> 6143 <summary>
8595 Type of teleport landing for a parcel
8596 </summary> 6144 </summary>
8597 </member> 6145 </member>
8598 <member name="F:OpenMetaverse.LandingType.None"> 6146 <member name="F:OpenMetaverse.DirectoryManager.DirFindFlags.Events">
8599 <summary>Unset, simulator default</summary> 6147 <summary>
6148 </summary>
8600 </member> 6149 </member>
8601 <member name="F:OpenMetaverse.LandingType.LandingPoint"> 6150 <member name="F:OpenMetaverse.DirectoryManager.DirFindFlags.Groups">
8602 <summary>Specific landing point set for this parcel</summary> 6151 <summary>Query the Groups database</summary>
8603 </member> 6152 </member>
8604 <member name="F:OpenMetaverse.LandingType.Direct"> 6153 <member name="F:OpenMetaverse.DirectoryManager.DirFindFlags.DateEvents">
8605 <summary>No landing point set, direct teleports enabled for 6154 <summary>Query the Events database</summary>
8606 this parcel</summary>
8607 </member> 6155 </member>
8608 <member name="T:OpenMetaverse.ParcelMediaCommand"> 6156 <member name="F:OpenMetaverse.DirectoryManager.DirFindFlags.AgentOwned">
6157 <summary>Query the land holdings database for land owned by the currently connected agent</summary>
6158 </member>
6159 <member name="F:OpenMetaverse.DirectoryManager.DirFindFlags.ForSale">
8609 <summary> 6160 <summary>
8610 Parcel Media Command used in ParcelMediaCommandMessage
8611 </summary> 6161 </summary>
8612 </member> 6162 </member>
8613 <member name="F:OpenMetaverse.ParcelMediaCommand.Stop"> 6163 <member name="F:OpenMetaverse.DirectoryManager.DirFindFlags.GroupOwned">
8614 <summary>Stop the media stream and go back to the first frame</summary> 6164 <summary>Query the land holdings database for land which is owned by a Group</summary>
8615 </member> 6165 </member>
8616 <member name="F:OpenMetaverse.ParcelMediaCommand.Pause"> 6166 <member name="F:OpenMetaverse.DirectoryManager.DirFindFlags.DwellSort">
8617 <summary>Pause the media stream (stop playing but stay on current frame)</summary> 6167 <summary>Specifies the query should pre sort the results based upon traffic
6168 when searching the Places database</summary>
8618 </member> 6169 </member>
8619 <member name="F:OpenMetaverse.ParcelMediaCommand.Play"> 6170 <member name="F:OpenMetaverse.DirectoryManager.DirFindFlags.PgSimsOnly">
8620 <summary>Start the current media stream playing and stop when the end is reached</summary> 6171 <summary>
6172 </summary>
8621 </member> 6173 </member>
8622 <member name="F:OpenMetaverse.ParcelMediaCommand.Loop"> 6174 <member name="F:OpenMetaverse.DirectoryManager.DirFindFlags.PicturesOnly">
8623 <summary>Start the current media stream playing, 6175 <summary>
8624 loop to the beginning when the end is reached and continue to play</summary> 6176 </summary>
8625 </member> 6177 </member>
8626 <member name="F:OpenMetaverse.ParcelMediaCommand.Texture"> 6178 <member name="F:OpenMetaverse.DirectoryManager.DirFindFlags.PgEventsOnly">
8627 <summary>Specifies the texture to replace with video</summary> 6179 <summary>
8628 <remarks>If passing the key of a texture, it must be explicitly typecast as a key, 6180 </summary>
8629 not just passed within double quotes.</remarks>
8630 </member> 6181 </member>
8631 <member name="F:OpenMetaverse.ParcelMediaCommand.URL"> 6182 <member name="F:OpenMetaverse.DirectoryManager.DirFindFlags.MatureSimsOnly">
8632 <summary>Specifies the movie URL (254 characters max)</summary> 6183 <summary>
6184 </summary>
8633 </member> 6185 </member>
8634 <member name="F:OpenMetaverse.ParcelMediaCommand.Time"> 6186 <member name="F:OpenMetaverse.DirectoryManager.DirFindFlags.SortAsc">
8635 <summary>Specifies the time index at which to begin playing</summary> 6187 <summary>Specifies the query should pre sort the results in an ascending order when searching the land sales database.
6188 This flag is only used when searching the land sales database</summary>
8636 </member> 6189 </member>
8637 <member name="F:OpenMetaverse.ParcelMediaCommand.Agent"> 6190 <member name="F:OpenMetaverse.DirectoryManager.DirFindFlags.PricesSort">
8638 <summary>Specifies a single agent to apply the media command to</summary> 6191 <summary>Specifies the query should pre sort the results using the SalePrice field when searching the land sales database.
6192 This flag is only used when searching the land sales database</summary>
8639 </member> 6193 </member>
8640 <member name="F:OpenMetaverse.ParcelMediaCommand.Unload"> 6194 <member name="F:OpenMetaverse.DirectoryManager.DirFindFlags.PerMeterSort">
8641 <summary>Unloads the stream. While the stop command sets the texture to the first frame of the movie, 6195 <summary>Specifies the query should pre sort the results by calculating the average price/sq.m (SalePrice / Area) when searching the land sales database.
8642 unload resets it to the real texture that the movie was replacing.</summary> 6196 This flag is only used when searching the land sales database</summary>
8643 </member> 6197 </member>
8644 <member name="F:OpenMetaverse.ParcelMediaCommand.AutoAlign"> 6198 <member name="F:OpenMetaverse.DirectoryManager.DirFindFlags.AreaSort">
8645 <summary>Turn on/off the auto align feature, similar to the auto align checkbox in the parcel media properties 6199 <summary>Specifies the query should pre sort the results using the ParcelSize field when searching the land sales database.
8646 (NOT to be confused with the "align" function in the textures view of the editor!) Takes TRUE or FALSE as parameter.</summary> 6200 This flag is only used when searching the land sales database</summary>
8647 </member> 6201 </member>
8648 <member name="F:OpenMetaverse.ParcelMediaCommand.Type"> 6202 <member name="F:OpenMetaverse.DirectoryManager.DirFindFlags.NameSort">
8649 <summary>Allows a Web page or image to be placed on a prim (1.19.1 RC0 and later only). 6203 <summary>Specifies the query should pre sort the results using the Name field when searching the land sales database.
8650 Use "text/html" for HTML.</summary> 6204 This flag is only used when searching the land sales database</summary>
8651 </member> 6205 </member>
8652 <member name="F:OpenMetaverse.ParcelMediaCommand.Size"> 6206 <member name="F:OpenMetaverse.DirectoryManager.DirFindFlags.LimitByPrice">
8653 <summary>Resizes a Web page to fit on x, y pixels (1.19.1 RC0 and later only).</summary> 6207 <summary>When set, only parcels less than the specified Price will be included when searching the land sales database.
8654 <remarks>This might still not be working</remarks> 6208 This flag is only used when searching the land sales database</summary>
8655 </member> 6209 </member>
8656 <member name="F:OpenMetaverse.ParcelMediaCommand.Desc"> 6210 <member name="F:OpenMetaverse.DirectoryManager.DirFindFlags.LimitByArea">
8657 <summary>Sets a description for the media being displayed (1.19.1 RC0 and later only).</summary> 6211 <summary>When set, only parcels greater than the specified Size will be included when searching the land sales database.
6212 This flag is only used when searching the land sales database</summary>
8658 </member> 6213 </member>
8659 <member name="T:OpenMetaverse.ParcelInfo"> 6214 <member name="F:OpenMetaverse.DirectoryManager.DirFindFlags.FilterMature">
8660 <summary> 6215 <summary>
8661 Some information about a parcel of land returned from a DirectoryManager search
8662 </summary> 6216 </summary>
8663 </member> 6217 </member>
8664 <member name="F:OpenMetaverse.ParcelInfo.ID"> 6218 <member name="F:OpenMetaverse.DirectoryManager.DirFindFlags.PGOnly">
8665 <summary>Global Key of record</summary> 6219 <summary>
6220 </summary>
8666 </member> 6221 </member>
8667 <member name="F:OpenMetaverse.ParcelInfo.OwnerID"> 6222 <member name="F:OpenMetaverse.DirectoryManager.DirFindFlags.IncludePG">
8668 <summary>Parcel Owners <seealso cref="T:OpenMetaverse.UUID"/></summary> 6223 <summary>Include PG land in results. This flag is used when searching both the Groups, Events and Land sales databases</summary>
8669 </member> 6224 </member>
8670 <member name="F:OpenMetaverse.ParcelInfo.Name"> 6225 <member name="F:OpenMetaverse.DirectoryManager.DirFindFlags.IncludeMature">
8671 <summary>Name field of parcel, limited to 128 characters</summary> 6226 <summary>Include Mature land in results. This flag is used when searching both the Groups, Events and Land sales databases</summary>
8672 </member> 6227 </member>
8673 <member name="F:OpenMetaverse.ParcelInfo.Description"> 6228 <member name="F:OpenMetaverse.DirectoryManager.DirFindFlags.IncludeAdult">
8674 <summary>Description field of parcel, limited to 256 characters</summary> 6229 <summary>Include Adult land in results. This flag is used when searching both the Groups, Events and Land sales databases</summary>
8675 </member> 6230 </member>
8676 <member name="F:OpenMetaverse.ParcelInfo.ActualArea"> 6231 <member name="F:OpenMetaverse.DirectoryManager.DirFindFlags.AdultOnly">
8677 <summary>Total Square meters of parcel</summary> 6232 <summary>
6233 </summary>
8678 </member> 6234 </member>
8679 <member name="F:OpenMetaverse.ParcelInfo.BillableArea"> 6235 <member name="T:OpenMetaverse.DirectoryManager.SearchTypeFlags">
8680 <summary>Total area billable as Tier, for group owned land this will be 10% less than ActualArea</summary> 6236 <summary>
6237 Land types to search dataserver for
6238 </summary>
8681 </member> 6239 </member>
8682 <member name="F:OpenMetaverse.ParcelInfo.Mature"> 6240 <member name="F:OpenMetaverse.DirectoryManager.SearchTypeFlags.Any">
8683 <summary>True of parcel is in Mature simulator</summary> 6241 <summary>Search Auction, Mainland and Estate</summary>
8684 </member> 6242 </member>
8685 <member name="F:OpenMetaverse.ParcelInfo.GlobalX"> 6243 <member name="F:OpenMetaverse.DirectoryManager.SearchTypeFlags.Auction">
8686 <summary>Grid global X position of parcel</summary> 6244 <summary>Land which is currently up for auction</summary>
8687 </member> 6245 </member>
8688 <member name="F:OpenMetaverse.ParcelInfo.GlobalY"> 6246 <member name="F:OpenMetaverse.DirectoryManager.SearchTypeFlags.Mainland">
8689 <summary>Grid global Y position of parcel</summary> 6247 <summary>Parcels which are on the mainland (Linden owned) continents</summary>
8690 </member> 6248 </member>
8691 <member name="F:OpenMetaverse.ParcelInfo.GlobalZ"> 6249 <member name="F:OpenMetaverse.DirectoryManager.SearchTypeFlags.Estate">
8692 <summary>Grid global Z position of parcel (not used)</summary> 6250 <summary>Parcels which are on privately owned simulators</summary>
8693 </member> 6251 </member>
8694 <member name="F:OpenMetaverse.ParcelInfo.SimName"> 6252 <member name="T:OpenMetaverse.DirectoryManager.EventFlags">
8695 <summary>Name of simulator parcel is located in</summary> 6253 <summary>
6254 The content rating of the event
6255 </summary>
8696 </member> 6256 </member>
8697 <member name="F:OpenMetaverse.ParcelInfo.SnapshotID"> 6257 <member name="F:OpenMetaverse.DirectoryManager.EventFlags.PG">
8698 <summary>Texture <seealso cref="T:OpenMetaverse.UUID"/> of parcels display picture</summary> 6258 <summary>Event is PG</summary>
8699 </member> 6259 </member>
8700 <member name="F:OpenMetaverse.ParcelInfo.Dwell"> 6260 <member name="F:OpenMetaverse.DirectoryManager.EventFlags.Mature">
8701 <summary>Float representing calculated traffic based on time spent on parcel by avatars</summary> 6261 <summary>Event is Mature</summary>
8702 </member> 6262 </member>
8703 <member name="F:OpenMetaverse.ParcelInfo.SalePrice"> 6263 <member name="F:OpenMetaverse.DirectoryManager.EventFlags.Adult">
8704 <summary>Sale price of parcel (not used)</summary> 6264 <summary>Event is Adult</summary>
8705 </member> 6265 </member>
8706 <member name="F:OpenMetaverse.ParcelInfo.AuctionID"> 6266 <member name="T:OpenMetaverse.DirectoryManager.ClassifiedFlags">
8707 <summary>Auction ID of parcel</summary> 6267 <summary>
6268 Classified Ad Options
6269 </summary>
6270 <remarks>There appear to be two formats the flags are packed in.
6271 This set of flags is for the newer style</remarks>
8708 </member> 6272 </member>
8709 <member name="T:OpenMetaverse.ParcelMedia"> 6273 <member name="F:OpenMetaverse.DirectoryManager.ClassifiedFlags.None">
8710 <summary> 6274 <summary>
8711 Parcel Media Information
8712 </summary> 6275 </summary>
8713 </member> 6276 </member>
8714 <member name="F:OpenMetaverse.ParcelMedia.MediaAutoScale"> 6277 <member name="F:OpenMetaverse.DirectoryManager.ClassifiedFlags.Mature">
8715 <summary>A byte, if 0x1 viewer should auto scale media to fit object</summary> 6278 <summary>
6279 </summary>
8716 </member> 6280 </member>
8717 <member name="F:OpenMetaverse.ParcelMedia.MediaLoop"> 6281 <member name="F:OpenMetaverse.DirectoryManager.ClassifiedFlags.Enabled">
8718 <summary>A boolean, if true the viewer should loop the media</summary> 6282 <summary>
6283 </summary>
8719 </member> 6284 </member>
8720 <member name="F:OpenMetaverse.ParcelMedia.MediaID"> 6285 <member name="F:OpenMetaverse.DirectoryManager.ClassifiedFlags.UpdateTime">
8721 <summary>The Asset UUID of the Texture which when applied to a 6286 <summary>
8722 primitive will display the media</summary> 6287 </summary>
8723 </member> 6288 </member>
8724 <member name="F:OpenMetaverse.ParcelMedia.MediaURL"> 6289 <member name="F:OpenMetaverse.DirectoryManager.ClassifiedFlags.AutoRenew">
8725 <summary>A URL which points to any Quicktime supported media type</summary> 6290 <summary>
6291 </summary>
8726 </member> 6292 </member>
8727 <member name="F:OpenMetaverse.ParcelMedia.MediaDesc"> 6293 <member name="T:OpenMetaverse.DirectoryManager.ClassifiedQueryFlags">
8728 <summary>A description of the media</summary> 6294 <summary>
6295 Classified ad query options
6296 </summary>
8729 </member> 6297 </member>
8730 <member name="F:OpenMetaverse.ParcelMedia.MediaHeight"> 6298 <member name="F:OpenMetaverse.DirectoryManager.ClassifiedQueryFlags.All">
8731 <summary>An Integer which represents the height of the media</summary> 6299 <summary>Include all ads in results</summary>
8732 </member> 6300 </member>
8733 <member name="F:OpenMetaverse.ParcelMedia.MediaWidth"> 6301 <member name="F:OpenMetaverse.DirectoryManager.ClassifiedQueryFlags.PG">
8734 <summary>An integer which represents the width of the media</summary> 6302 <summary>Include PG ads in results</summary>
8735 </member> 6303 </member>
8736 <member name="F:OpenMetaverse.ParcelMedia.MediaType"> 6304 <member name="F:OpenMetaverse.DirectoryManager.ClassifiedQueryFlags.Mature">
8737 <summary>A string which contains the mime type of the media</summary> 6305 <summary>Include Mature ads in results</summary>
8738 </member> 6306 </member>
8739 <member name="T:OpenMetaverse.Parcel"> 6307 <member name="F:OpenMetaverse.DirectoryManager.ClassifiedQueryFlags.Adult">
6308 <summary>Include Adult ads in results</summary>
6309 </member>
6310 <member name="T:OpenMetaverse.DirectoryManager.PlacesFlags">
8740 <summary> 6311 <summary>
8741 Parcel of land, a portion of virtual real estate in a simulator 6312 The For Sale flag in PlacesReplyData
8742 </summary> 6313 </summary>
8743 </member> 6314 </member>
8744 <member name="F:OpenMetaverse.Parcel.SelfCount"> 6315 <member name="F:OpenMetaverse.DirectoryManager.PlacesFlags.NotForSale">
8745 <summary>The total number of contiguous 4x4 meter blocks your agent owns within this parcel</summary> 6316 <summary>Parcel is not listed for sale</summary>
8746 </member> 6317 </member>
8747 <member name="F:OpenMetaverse.Parcel.OtherCount"> 6318 <member name="F:OpenMetaverse.DirectoryManager.PlacesFlags.ForSale">
8748 <summary>The total number of contiguous 4x4 meter blocks contained in this parcel owned by a group or agent other than your own</summary> 6319 <summary>Parcel is For Sale</summary>
8749 </member> 6320 </member>
8750 <member name="F:OpenMetaverse.Parcel.PublicCount"> 6321 <member name="T:OpenMetaverse.DirectoryManager.Classified">
8751 <summary>Deprecated, Value appears to always be 0</summary> 6322 <summary>
6323 A classified ad on the grid
6324 </summary>
8752 </member> 6325 </member>
8753 <member name="F:OpenMetaverse.Parcel.LocalID"> 6326 <member name="F:OpenMetaverse.DirectoryManager.Classified.ID">
8754 <summary>Simulator-local ID of this parcel</summary> 6327 <summary>UUID for this ad, useful for looking up detailed
6328 information about it</summary>
8755 </member> 6329 </member>
8756 <member name="F:OpenMetaverse.Parcel.OwnerID"> 6330 <member name="F:OpenMetaverse.DirectoryManager.Classified.Name">
8757 <summary>UUID of the owner of this parcel</summary> 6331 <summary>The title of this classified ad</summary>
8758 </member> 6332 </member>
8759 <member name="F:OpenMetaverse.Parcel.IsGroupOwned"> 6333 <member name="F:OpenMetaverse.DirectoryManager.Classified.Flags">
8760 <summary>Whether the land is deeded to a group or not</summary> 6334 <summary>Flags that show certain options applied to the classified</summary>
8761 </member> 6335 </member>
8762 <member name="F:OpenMetaverse.Parcel.AuctionID"> 6336 <member name="F:OpenMetaverse.DirectoryManager.Classified.CreationDate">
8763 <summary></summary> 6337 <summary>Creation date of the ad</summary>
8764 </member> 6338 </member>
8765 <member name="F:OpenMetaverse.Parcel.ClaimDate"> 6339 <member name="F:OpenMetaverse.DirectoryManager.Classified.ExpirationDate">
8766 <summary>Date land was claimed</summary> 6340 <summary>Expiration date of the ad</summary>
8767 </member> 6341 </member>
8768 <member name="F:OpenMetaverse.Parcel.ClaimPrice"> 6342 <member name="F:OpenMetaverse.DirectoryManager.Classified.Price">
8769 <summary>Appears to always be zero</summary> 6343 <summary>Price that was paid for this ad</summary>
8770 </member> 6344 </member>
8771 <member name="F:OpenMetaverse.Parcel.RentPrice"> 6345 <member name="M:OpenMetaverse.DirectoryManager.Classified.ToString">
8772 <summary>This field is no longer used</summary> 6346 <summary>Print the struct data as a string</summary>
6347 <returns>A string containing the field name, and field value</returns>
8773 </member> 6348 </member>
8774 <member name="F:OpenMetaverse.Parcel.AABBMin"> 6349 <member name="T:OpenMetaverse.DirectoryManager.DirectoryParcel">
8775 <summary>Minimum corner of the axis-aligned bounding box for this 6350 <summary>
8776 parcel</summary> 6351 A parcel retrieved from the dataserver such as results from the
6352 "For-Sale" listings or "Places" Search
6353 </summary>
8777 </member> 6354 </member>
8778 <member name="F:OpenMetaverse.Parcel.AABBMax"> 6355 <member name="F:OpenMetaverse.DirectoryManager.DirectoryParcel.ID">
8779 <summary>Maximum corner of the axis-aligned bounding box for this 6356 <summary>The unique dataserver parcel ID</summary>
8780 parcel</summary> 6357 <remarks>This id is used to obtain additional information from the entry
6358 by using the <see cref="!:ParcelManager.InfoRequest" /> method</remarks>
8781 </member> 6359 </member>
8782 <member name="F:OpenMetaverse.Parcel.Bitmap"> 6360 <member name="F:OpenMetaverse.DirectoryManager.DirectoryParcel.Name">
8783 <summary>Bitmap describing land layout in 4x4m squares across the 6361 <summary>A string containing the name of the parcel</summary>
8784 entire region</summary>
8785 </member> 6362 </member>
8786 <member name="F:OpenMetaverse.Parcel.Area"> 6363 <member name="F:OpenMetaverse.DirectoryManager.DirectoryParcel.ActualArea">
8787 <summary>Total parcel land area</summary> 6364 <summary>The size of the parcel</summary>
6365 <remarks>This field is not returned for Places searches</remarks>
8788 </member> 6366 </member>
8789 <member name="F:OpenMetaverse.Parcel.Status"> 6367 <member name="F:OpenMetaverse.DirectoryManager.DirectoryParcel.SalePrice">
8790 <summary></summary> 6368 <summary>The price of the parcel</summary>
6369 <remarks>This field is not returned for Places searches</remarks>
8791 </member> 6370 </member>
8792 <member name="F:OpenMetaverse.Parcel.SimWideMaxPrims"> 6371 <member name="F:OpenMetaverse.DirectoryManager.DirectoryParcel.Auction">
8793 <summary>Maximum primitives across the entire simulator owned by the same agent or group that owns this parcel that can be used</summary> 6372 <summary>If True, this parcel is flagged to be auctioned</summary>
8794 </member> 6373 </member>
8795 <member name="F:OpenMetaverse.Parcel.SimWideTotalPrims"> 6374 <member name="F:OpenMetaverse.DirectoryManager.DirectoryParcel.ForSale">
8796 <summary>Total primitives across the entire simulator calculated by combining the allowed prim counts for each parcel 6375 <summary>If true, this parcel is currently set for sale</summary>
8797 owned by the agent or group that owns this parcel</summary>
8798 </member> 6376 </member>
8799 <member name="F:OpenMetaverse.Parcel.MaxPrims"> 6377 <member name="F:OpenMetaverse.DirectoryManager.DirectoryParcel.Dwell">
8800 <summary>Maximum number of primitives this parcel supports</summary> 6378 <summary>Parcel traffic</summary>
8801 </member> 6379 </member>
8802 <member name="F:OpenMetaverse.Parcel.TotalPrims"> 6380 <member name="M:OpenMetaverse.DirectoryManager.DirectoryParcel.ToString">
8803 <summary>Total number of primitives on this parcel</summary> 6381 <summary>Print the struct data as a string</summary>
6382 <returns>A string containing the field name, and field value</returns>
8804 </member> 6383 </member>
8805 <member name="F:OpenMetaverse.Parcel.OwnerPrims"> 6384 <member name="T:OpenMetaverse.DirectoryManager.AgentSearchData">
8806 <summary>For group-owned parcels this indicates the total number of prims deeded to the group, 6385 <summary>
8807 for parcels owned by an individual this inicates the number of prims owned by the individual</summary> 6386 An Avatar returned from the dataserver
6387 </summary>
8808 </member> 6388 </member>
8809 <member name="F:OpenMetaverse.Parcel.GroupPrims"> 6389 <member name="F:OpenMetaverse.DirectoryManager.AgentSearchData.Online">
8810 <summary>Total number of primitives owned by the parcel group on 6390 <summary>Online status of agent</summary>
8811 this parcel, or for parcels owned by an individual with a group set the 6391 <remarks>This field appears to be obsolete and always returns false</remarks>
8812 total number of prims set to that group.</summary>
8813 </member> 6392 </member>
8814 <member name="F:OpenMetaverse.Parcel.OtherPrims"> 6393 <member name="F:OpenMetaverse.DirectoryManager.AgentSearchData.FirstName">
8815 <summary>Total number of prims owned by other avatars that are not set to group, or not the parcel owner</summary> 6394 <summary>The agents first name</summary>
8816 </member> 6395 </member>
8817 <member name="F:OpenMetaverse.Parcel.ParcelPrimBonus"> 6396 <member name="F:OpenMetaverse.DirectoryManager.AgentSearchData.LastName">
8818 <summary>A bonus multiplier which allows parcel prim counts to go over times this amount, this does not affect 6397 <summary>The agents last name</summary>
8819 the max prims per simulator. e.g: 117 prim parcel limit x 1.5 bonus = 175 allowed</summary>
8820 </member> 6398 </member>
8821 <member name="F:OpenMetaverse.Parcel.OtherCleanTime"> 6399 <member name="F:OpenMetaverse.DirectoryManager.AgentSearchData.AgentID">
8822 <summary>Autoreturn value in minutes for others' objects</summary> 6400 <summary>The agents <see cref="T:OpenMetaverse.UUID" /></summary>
8823 </member> 6401 </member>
8824 <member name="F:OpenMetaverse.Parcel.Flags"> 6402 <member name="M:OpenMetaverse.DirectoryManager.AgentSearchData.ToString">
8825 <summary></summary> 6403 <summary>Print the struct data as a string</summary>
6404 <returns>A string containing the field name, and field value</returns>
8826 </member> 6405 </member>
8827 <member name="F:OpenMetaverse.Parcel.SalePrice"> 6406 <member name="T:OpenMetaverse.DirectoryManager.GroupSearchData">
8828 <summary>Sale price of the parcel, only useful if ForSale is set</summary> 6407 <summary>
8829 <remarks>The SalePrice will remain the same after an ownership 6408 Response to a "Groups" Search
8830 transfer (sale), so it can be used to see the purchase price after 6409 </summary>
8831 a sale if the new owner has not changed it</remarks>
8832 </member> 6410 </member>
8833 <member name="F:OpenMetaverse.Parcel.Name"> 6411 <member name="F:OpenMetaverse.DirectoryManager.GroupSearchData.GroupID">
8834 <summary>Parcel Name</summary> 6412 <summary>The Group ID</summary>
8835 </member> 6413 </member>
8836 <member name="F:OpenMetaverse.Parcel.Desc"> 6414 <member name="F:OpenMetaverse.DirectoryManager.GroupSearchData.GroupName">
8837 <summary>Parcel Description</summary> 6415 <summary>The name of the group</summary>
8838 </member> 6416 </member>
8839 <member name="F:OpenMetaverse.Parcel.MusicURL"> 6417 <member name="F:OpenMetaverse.DirectoryManager.GroupSearchData.Members">
8840 <summary>URL For Music Stream</summary> 6418 <summary>The current number of members</summary>
8841 </member> 6419 </member>
8842 <member name="F:OpenMetaverse.Parcel.GroupID"> 6420 <member name="M:OpenMetaverse.DirectoryManager.GroupSearchData.ToString">
8843 <summary></summary> 6421 <summary>Print the struct data as a string</summary>
6422 <returns>A string containing the field name, and field value</returns>
8844 </member> 6423 </member>
8845 <member name="F:OpenMetaverse.Parcel.PassPrice"> 6424 <member name="T:OpenMetaverse.DirectoryManager.PlacesSearchData">
8846 <summary>Price for a temporary pass</summary> 6425 <summary>
6426 Parcel information returned from a <see cref="M:OpenMetaverse.DirectoryManager.StartPlacesSearch(OpenMetaverse.DirectoryManager.DirFindFlags,OpenMetaverse.ParcelCategory,System.String,System.String,OpenMetaverse.UUID,OpenMetaverse.UUID)" /> request
6427 <para>
6428 Represents one of the following:
6429 A parcel of land on the grid that has its Show In Search flag set
6430 A parcel of land owned by the agent making the request
6431 A parcel of land owned by a group the agent making the request is a member of
6432 </para><para>
6433 In a request for Group Land, the First record will contain an empty record
6434 </para>
6435 Note: This is not the same as searching the land for sale data source
6436 </summary>
8847 </member> 6437 </member>
8848 <member name="F:OpenMetaverse.Parcel.PassHours"> 6438 <member name="F:OpenMetaverse.DirectoryManager.PlacesSearchData.OwnerID">
8849 <summary>How long is pass valid for</summary> 6439 <summary>The ID of the Agent of Group that owns the parcel</summary>
8850 </member> 6440 </member>
8851 <member name="F:OpenMetaverse.Parcel.Category"> 6441 <member name="F:OpenMetaverse.DirectoryManager.PlacesSearchData.Name">
8852 <summary></summary> 6442 <summary>The name</summary>
8853 </member> 6443 </member>
8854 <member name="F:OpenMetaverse.Parcel.AuthBuyerID"> 6444 <member name="F:OpenMetaverse.DirectoryManager.PlacesSearchData.Desc">
8855 <summary>Key of authorized buyer</summary> 6445 <summary>The description</summary>
8856 </member> 6446 </member>
8857 <member name="F:OpenMetaverse.Parcel.SnapshotID"> 6447 <member name="F:OpenMetaverse.DirectoryManager.PlacesSearchData.ActualArea">
8858 <summary>Key of parcel snapshot</summary> 6448 <summary>The Size of the parcel</summary>
8859 </member> 6449 </member>
8860 <member name="F:OpenMetaverse.Parcel.UserLocation"> 6450 <member name="F:OpenMetaverse.DirectoryManager.PlacesSearchData.BillableArea">
8861 <summary>The landing point location</summary> 6451 <summary>The billable Size of the parcel, for mainland
6452 parcels this will match the ActualArea field. For Group owned land this will be 10 percent smaller
6453 than the ActualArea. For Estate land this will always be 0</summary>
8862 </member> 6454 </member>
8863 <member name="F:OpenMetaverse.Parcel.UserLookAt"> 6455 <member name="F:OpenMetaverse.DirectoryManager.PlacesSearchData.Flags">
8864 <summary>The landing point LookAt</summary> 6456 <summary>Indicates the ForSale status of the parcel</summary>
8865 </member> 6457 </member>
8866 <member name="F:OpenMetaverse.Parcel.Landing"> 6458 <member name="F:OpenMetaverse.DirectoryManager.PlacesSearchData.GlobalX">
8867 <summary>The type of landing enforced from the <see cref="T:OpenMetaverse.LandingType"/> enum</summary> 6459 <summary>The Gridwide X position</summary>
8868 </member> 6460 </member>
8869 <member name="F:OpenMetaverse.Parcel.Dwell"> 6461 <member name="F:OpenMetaverse.DirectoryManager.PlacesSearchData.GlobalY">
8870 <summary></summary> 6462 <summary>The Gridwide Y position</summary>
8871 </member> 6463 </member>
8872 <member name="F:OpenMetaverse.Parcel.RegionDenyAnonymous"> 6464 <member name="F:OpenMetaverse.DirectoryManager.PlacesSearchData.GlobalZ">
8873 <summary></summary> 6465 <summary>The Z position of the parcel, or 0 if no landing point set</summary>
8874 </member> 6466 </member>
8875 <member name="F:OpenMetaverse.Parcel.RegionPushOverride"> 6467 <member name="F:OpenMetaverse.DirectoryManager.PlacesSearchData.SimName">
8876 <summary></summary> 6468 <summary>The name of the Region the parcel is located in</summary>
8877 </member> 6469 </member>
8878 <member name="F:OpenMetaverse.Parcel.AccessWhiteList"> 6470 <member name="F:OpenMetaverse.DirectoryManager.PlacesSearchData.SnapshotID">
8879 <summary>Access list of who is whitelisted on this 6471 <summary>The Asset ID of the parcels Snapshot texture</summary>
8880 parcel</summary>
8881 </member> 6472 </member>
8882 <member name="F:OpenMetaverse.Parcel.AccessBlackList"> 6473 <member name="F:OpenMetaverse.DirectoryManager.PlacesSearchData.Dwell">
8883 <summary>Access list of who is blacklisted on this 6474 <summary>The calculated visitor traffic</summary>
8884 parcel</summary>
8885 </member> 6475 </member>
8886 <member name="F:OpenMetaverse.Parcel.RegionDenyAgeUnverified"> 6476 <member name="F:OpenMetaverse.DirectoryManager.PlacesSearchData.SKU">
8887 <summary>TRUE of region denies access to age unverified users</summary> 6477 <summary>The billing product SKU</summary>
6478 <remarks>Known values are:
6479 <list type="table"><item><term>023</term><description>Mainland / Full Region</description></item><item><term>024</term><description>Estate / Full Region</description></item><item><term>027</term><description>Estate / Openspace</description></item><item><term>029</term><description>Estate / Homestead</description></item><item><term>129</term><description>Mainland / Homestead (Linden Owned)</description></item></list></remarks>
8888 </member> 6480 </member>
8889 <member name="F:OpenMetaverse.Parcel.ObscureMedia"> 6481 <member name="F:OpenMetaverse.DirectoryManager.PlacesSearchData.Price">
8890 <summary>true to obscure (hide) media url</summary> 6482 <summary>No longer used, will always be 0</summary>
8891 </member> 6483 </member>
8892 <member name="F:OpenMetaverse.Parcel.ObscureMusic"> 6484 <member name="M:OpenMetaverse.DirectoryManager.PlacesSearchData.ToSLurl">
8893 <summary>true to obscure (hide) music url</summary> 6485 <summary>Get a SL URL for the parcel</summary>
6486 <returns>A string, containing a standard SLURL</returns>
8894 </member> 6487 </member>
8895 <member name="F:OpenMetaverse.Parcel.Media"> 6488 <member name="M:OpenMetaverse.DirectoryManager.PlacesSearchData.ToString">
8896 <summary>A struct containing media details</summary> 6489 <summary>Print the struct data as a string</summary>
6490 <returns>A string containing the field name, and field value</returns>
8897 </member> 6491 </member>
8898 <member name="M:OpenMetaverse.Parcel.ToString"> 6492 <member name="T:OpenMetaverse.DirectoryManager.EventsSearchData">
8899 <summary> 6493 <summary>
8900 Displays a parcel object in string format 6494 An "Event" Listing summary
8901 </summary> 6495 </summary>
8902 <returns>string containing key=value pairs of a parcel object</returns>
8903 </member> 6496 </member>
8904 <member name="M:OpenMetaverse.Parcel.#ctor(System.Int32)"> 6497 <member name="F:OpenMetaverse.DirectoryManager.EventsSearchData.Owner">
8905 <summary> 6498 <summary>The ID of the event creator</summary>
8906 Defalt constructor
8907 </summary>
8908 <param name="localID">Local ID of this parcel</param>
8909 </member> 6499 </member>
8910 <member name="M:OpenMetaverse.Parcel.Update(OpenMetaverse.Simulator,System.Boolean)"> 6500 <member name="F:OpenMetaverse.DirectoryManager.EventsSearchData.Name">
8911 <summary> 6501 <summary>The name of the event</summary>
8912 Update the simulator with any local changes to this Parcel object
8913 </summary>
8914 <param name="simulator">Simulator to send updates to</param>
8915 <param name="wantReply">Whether we want the simulator to confirm
8916 the update with a reply packet or not</param>
8917 </member> 6502 </member>
8918 <member name="M:OpenMetaverse.Parcel.UpdateOtherCleanTime(OpenMetaverse.Simulator)"> 6503 <member name="F:OpenMetaverse.DirectoryManager.EventsSearchData.ID">
8919 <summary> 6504 <summary>The events ID</summary>
8920 Set Autoreturn time
8921 </summary>
8922 <param name="simulator">Simulator to send the update to</param>
8923 </member> 6505 </member>
8924 <member name="T:OpenMetaverse.ParcelManager"> 6506 <member name="F:OpenMetaverse.DirectoryManager.EventsSearchData.Date">
6507 <summary>A string containing the short date/time the event will begin</summary>
6508 </member>
6509 <member name="F:OpenMetaverse.DirectoryManager.EventsSearchData.Time">
6510 <summary>The event start time in Unixtime (seconds since epoch)</summary>
6511 </member>
6512 <member name="F:OpenMetaverse.DirectoryManager.EventsSearchData.Flags">
6513 <summary>The events maturity rating</summary>
6514 </member>
6515 <member name="M:OpenMetaverse.DirectoryManager.EventsSearchData.ToString">
6516 <summary>Print the struct data as a string</summary>
6517 <returns>A string containing the field name, and field value</returns>
6518 </member>
6519 <member name="T:OpenMetaverse.DirectoryManager.EventInfo">
8925 <summary> 6520 <summary>
8926 Parcel (subdivided simulator lots) subsystem 6521 The details of an "Event"
8927 </summary> 6522 </summary>
8928 </member> 6523 </member>
8929 <member name="F:OpenMetaverse.ParcelManager.m_DwellReply"> 6524 <member name="F:OpenMetaverse.DirectoryManager.EventInfo.ID">
8930 <summary>The event subscribers. null if no subcribers</summary> 6525 <summary>The events ID</summary>
8931 </member> 6526 </member>
8932 <member name="M:OpenMetaverse.ParcelManager.OnParcelDwellReply(OpenMetaverse.ParcelDwellReplyEventArgs)"> 6527 <member name="F:OpenMetaverse.DirectoryManager.EventInfo.Creator">
8933 <summary>Raises the ParcelDwellReply event</summary> 6528 <summary>The ID of the event creator</summary>
8934 <param name="e">A ParcelDwellReplyEventArgs object containing the
8935 data returned from the simulator</param>
8936 </member> 6529 </member>
8937 <member name="F:OpenMetaverse.ParcelManager.m_DwellReplyLock"> 6530 <member name="F:OpenMetaverse.DirectoryManager.EventInfo.Name">
8938 <summary>Thread sync lock object</summary> 6531 <summary>The name of the event</summary>
8939 </member> 6532 </member>
8940 <member name="F:OpenMetaverse.ParcelManager.m_ParcelInfo"> 6533 <member name="F:OpenMetaverse.DirectoryManager.EventInfo.Category">
6534 <summary>The category</summary>
6535 </member>
6536 <member name="F:OpenMetaverse.DirectoryManager.EventInfo.Desc">
6537 <summary>The events description</summary>
6538 </member>
6539 <member name="F:OpenMetaverse.DirectoryManager.EventInfo.Date">
6540 <summary>The short date/time the event will begin</summary>
6541 </member>
6542 <member name="F:OpenMetaverse.DirectoryManager.EventInfo.DateUTC">
6543 <summary>The event start time in Unixtime (seconds since epoch) UTC adjusted</summary>
6544 </member>
6545 <member name="F:OpenMetaverse.DirectoryManager.EventInfo.Duration">
6546 <summary>The length of the event in minutes</summary>
6547 </member>
6548 <member name="F:OpenMetaverse.DirectoryManager.EventInfo.Cover">
6549 <summary>0 if no cover charge applies</summary>
6550 </member>
6551 <member name="F:OpenMetaverse.DirectoryManager.EventInfo.Amount">
6552 <summary>The cover charge amount in L$ if applicable</summary>
6553 </member>
6554 <member name="F:OpenMetaverse.DirectoryManager.EventInfo.SimName">
6555 <summary>The name of the region where the event is being held</summary>
6556 </member>
6557 <member name="F:OpenMetaverse.DirectoryManager.EventInfo.GlobalPos">
6558 <summary>The gridwide location of the event</summary>
6559 </member>
6560 <member name="F:OpenMetaverse.DirectoryManager.EventInfo.Flags">
6561 <summary>The maturity rating</summary>
6562 </member>
6563 <member name="M:OpenMetaverse.DirectoryManager.EventInfo.ToSLurl">
6564 <summary>Get a SL URL for the parcel where the event is hosted</summary>
6565 <returns>A string, containing a standard SLURL</returns>
6566 </member>
6567 <member name="M:OpenMetaverse.DirectoryManager.EventInfo.ToString">
6568 <summary>Print the struct data as a string</summary>
6569 <returns>A string containing the field name, and field value</returns>
6570 </member>
6571 <member name="F:OpenMetaverse.DirectoryManager.m_EventInfoReply">
8941 <summary>The event subscribers. null if no subcribers</summary> 6572 <summary>The event subscribers. null if no subcribers</summary>
8942 </member> 6573 </member>
8943 <member name="M:OpenMetaverse.ParcelManager.OnParcelInfoReply(OpenMetaverse.ParcelInfoReplyEventArgs)"> 6574 <member name="F:OpenMetaverse.DirectoryManager.m_EventDetailLock">
8944 <summary>Raises the ParcelInfoReply event</summary> 6575 <summary>Thread sync lock object</summary>
8945 <param name="e">A ParcelInfoReplyEventArgs object containing the
8946 data returned from the simulator</param>
8947 </member> 6576 </member>
8948 <member name="F:OpenMetaverse.ParcelManager.m_ParcelInfoLock"> 6577 <member name="F:OpenMetaverse.DirectoryManager.m_DirEvents">
6578 <summary>The event subscribers. null if no subcribers</summary>
6579 </member>
6580 <member name="F:OpenMetaverse.DirectoryManager.m_DirEventsLock">
8949 <summary>Thread sync lock object</summary> 6581 <summary>Thread sync lock object</summary>
8950 </member> 6582 </member>
8951 <member name="F:OpenMetaverse.ParcelManager.m_ParcelProperties"> 6583 <member name="F:OpenMetaverse.DirectoryManager.m_Places">
8952 <summary>The event subscribers. null if no subcribers</summary> 6584 <summary>The event subscribers. null if no subcribers</summary>
8953 </member> 6585 </member>
8954 <member name="M:OpenMetaverse.ParcelManager.OnParcelProperties(OpenMetaverse.ParcelPropertiesEventArgs)"> 6586 <member name="F:OpenMetaverse.DirectoryManager.m_PlacesLock">
8955 <summary>Raises the ParcelProperties event</summary> 6587 <summary>Thread sync lock object</summary>
8956 <param name="e">A ParcelPropertiesEventArgs object containing the
8957 data returned from the simulator</param>
8958 </member> 6588 </member>
8959 <member name="F:OpenMetaverse.ParcelManager.m_ParcelPropertiesLock"> 6589 <member name="F:OpenMetaverse.DirectoryManager.m_DirPlaces">
6590 <summary>The event subscribers. null if no subcribers</summary>
6591 </member>
6592 <member name="F:OpenMetaverse.DirectoryManager.m_DirPlacesLock">
8960 <summary>Thread sync lock object</summary> 6593 <summary>Thread sync lock object</summary>
8961 </member> 6594 </member>
8962 <member name="F:OpenMetaverse.ParcelManager.m_ParcelACL"> 6595 <member name="F:OpenMetaverse.DirectoryManager.m_DirClassifieds">
8963 <summary>The event subscribers. null if no subcribers</summary> 6596 <summary>The event subscribers. null if no subcribers</summary>
8964 </member> 6597 </member>
8965 <member name="M:OpenMetaverse.ParcelManager.OnParcelAccessListReply(OpenMetaverse.ParcelAccessListReplyEventArgs)"> 6598 <member name="F:OpenMetaverse.DirectoryManager.m_DirClassifiedsLock">
8966 <summary>Raises the ParcelAccessListReply event</summary> 6599 <summary>Thread sync lock object</summary>
8967 <param name="e">A ParcelAccessListReplyEventArgs object containing the
8968 data returned from the simulator</param>
8969 </member> 6600 </member>
8970 <member name="F:OpenMetaverse.ParcelManager.m_ParcelACLLock"> 6601 <member name="F:OpenMetaverse.DirectoryManager.m_DirGroups">
6602 <summary>The event subscribers. null if no subcribers</summary>
6603 </member>
6604 <member name="F:OpenMetaverse.DirectoryManager.m_DirGroupsLock">
8971 <summary>Thread sync lock object</summary> 6605 <summary>Thread sync lock object</summary>
8972 </member> 6606 </member>
8973 <member name="F:OpenMetaverse.ParcelManager.m_ParcelObjectOwnersReply"> 6607 <member name="F:OpenMetaverse.DirectoryManager.m_DirPeople">
8974 <summary>The event subscribers. null if no subcribers</summary> 6608 <summary>The event subscribers. null if no subcribers</summary>
8975 </member> 6609 </member>
8976 <member name="M:OpenMetaverse.ParcelManager.OnParcelObjectOwnersReply(OpenMetaverse.ParcelObjectOwnersReplyEventArgs)"> 6610 <member name="F:OpenMetaverse.DirectoryManager.m_DirPeopleLock">
8977 <summary>Raises the ParcelObjectOwnersReply event</summary> 6611 <summary>Thread sync lock object</summary>
8978 <param name="e">A ParcelObjectOwnersReplyEventArgs object containing the
8979 data returned from the simulator</param>
8980 </member> 6612 </member>
8981 <member name="F:OpenMetaverse.ParcelManager.m_ParcelObjectOwnersLock"> 6613 <member name="F:OpenMetaverse.DirectoryManager.m_DirLandReply">
6614 <summary>The event subscribers. null if no subcribers</summary>
6615 </member>
6616 <member name="F:OpenMetaverse.DirectoryManager.m_DirLandLock">
8982 <summary>Thread sync lock object</summary> 6617 <summary>Thread sync lock object</summary>
8983 </member> 6618 </member>
8984 <member name="F:OpenMetaverse.ParcelManager.m_SimParcelsDownloaded"> 6619 <member name="E:OpenMetaverse.DirectoryManager.EventInfoReply">
6620 <summary>Raised when the data server responds to a <see cref="M:OpenMetaverse.DirectoryManager.EventInfoRequest(System.UInt32)" /> request.</summary>
6621 </member>
6622 <member name="E:OpenMetaverse.DirectoryManager.DirEventsReply">
6623 <summary>Raised when the data server responds to a <see cref="M:OpenMetaverse.DirectoryManager.StartEventsSearch(System.String,OpenMetaverse.DirectoryManager.DirFindFlags,System.String,System.UInt32,OpenMetaverse.DirectoryManager.EventCategories)" /> request.</summary>
6624 </member>
6625 <member name="E:OpenMetaverse.DirectoryManager.PlacesReply">
6626 <summary>Raised when the data server responds to a <see cref="M:OpenMetaverse.DirectoryManager.StartPlacesSearch(OpenMetaverse.DirectoryManager.DirFindFlags,OpenMetaverse.ParcelCategory,System.String,System.String,OpenMetaverse.UUID,OpenMetaverse.UUID)" /> request.</summary>
6627 </member>
6628 <member name="E:OpenMetaverse.DirectoryManager.DirPlacesReply">
6629 <summary>Raised when the data server responds to a <see cref="M:OpenMetaverse.DirectoryManager.StartDirPlacesSearch(System.String,OpenMetaverse.DirectoryManager.DirFindFlags,OpenMetaverse.ParcelCategory,System.Int32)" /> request.</summary>
6630 </member>
6631 <member name="E:OpenMetaverse.DirectoryManager.DirClassifiedsReply">
6632 <summary>Raised when the data server responds to a <see cref="M:OpenMetaverse.DirectoryManager.StartClassifiedSearch(System.String,OpenMetaverse.DirectoryManager.ClassifiedCategories,OpenMetaverse.DirectoryManager.ClassifiedQueryFlags)" /> request.</summary>
6633 </member>
6634 <member name="E:OpenMetaverse.DirectoryManager.DirGroupsReply">
6635 <summary>Raised when the data server responds to a <see cref="M:OpenMetaverse.DirectoryManager.StartGroupSearch(System.String,System.Int32,OpenMetaverse.DirectoryManager.DirFindFlags)" /> request.</summary>
6636 </member>
6637 <member name="E:OpenMetaverse.DirectoryManager.DirPeopleReply">
6638 <summary>Raised when the data server responds to a <see cref="M:OpenMetaverse.DirectoryManager.StartPeopleSearch(System.String,System.Int32)" /> request.</summary>
6639 </member>
6640 <member name="E:OpenMetaverse.DirectoryManager.DirLandReply">
6641 <summary>Raised when the data server responds to a <see cref="M:OpenMetaverse.DirectoryManager.StartLandSearch(OpenMetaverse.DirectoryManager.DirFindFlags,OpenMetaverse.DirectoryManager.SearchTypeFlags,System.Int32,System.Int32,System.Int32)" /> request.</summary>
6642 </member>
6643 <member name="M:OpenMetaverse.DirectoryManager.OnEventInfo(OpenMetaverse.EventInfoReplyEventArgs)">
6644 <summary>Raises the EventInfoReply event</summary>
6645 <param name="e">An EventInfoReplyEventArgs object containing the
6646 data returned from the data server</param>
6647 </member>
6648 <member name="M:OpenMetaverse.DirectoryManager.OnDirEvents(OpenMetaverse.DirEventsReplyEventArgs)">
6649 <summary>Raises the DirEventsReply event</summary>
6650 <param name="e">An DirEventsReplyEventArgs object containing the
6651 data returned from the data server</param>
6652 </member>
6653 <member name="M:OpenMetaverse.DirectoryManager.OnPlaces(OpenMetaverse.PlacesReplyEventArgs)">
6654 <summary>Raises the PlacesReply event</summary>
6655 <param name="e">A PlacesReplyEventArgs object containing the
6656 data returned from the data server</param>
6657 </member>
6658 <member name="M:OpenMetaverse.DirectoryManager.OnDirPlaces(OpenMetaverse.DirPlacesReplyEventArgs)">
6659 <summary>Raises the DirPlacesReply event</summary>
6660 <param name="e">A DirPlacesReplyEventArgs object containing the
6661 data returned from the data server</param>
6662 </member>
6663 <member name="M:OpenMetaverse.DirectoryManager.OnDirClassifieds(OpenMetaverse.DirClassifiedsReplyEventArgs)">
6664 <summary>Raises the DirClassifiedsReply event</summary>
6665 <param name="e">A DirClassifiedsReplyEventArgs object containing the
6666 data returned from the data server</param>
6667 </member>
6668 <member name="M:OpenMetaverse.DirectoryManager.OnDirGroups(OpenMetaverse.DirGroupsReplyEventArgs)">
6669 <summary>Raises the DirGroupsReply event</summary>
6670 <param name="e">A DirGroupsReplyEventArgs object containing the
6671 data returned from the data server</param>
6672 </member>
6673 <member name="M:OpenMetaverse.DirectoryManager.OnDirPeople(OpenMetaverse.DirPeopleReplyEventArgs)">
6674 <summary>Raises the DirPeopleReply event</summary>
6675 <param name="e">A DirPeopleReplyEventArgs object containing the
6676 data returned from the data server</param>
6677 </member>
6678 <member name="M:OpenMetaverse.DirectoryManager.OnDirLand(OpenMetaverse.DirLandReplyEventArgs)">
6679 <summary>Raises the DirLandReply event</summary>
6680 <param name="e">A DirLandReplyEventArgs object containing the
6681 data returned from the data server</param>
6682 </member>
6683 <member name="M:OpenMetaverse.DirectoryManager.StartClassifiedSearch(System.String)">
6684 <summary>
6685 Query the data server for a list of classified ads containing the specified string.
6686 Defaults to searching for classified placed in any category, and includes PG, Adult and Mature
6687 results.
6688 Responses are sent 16 per response packet, there is no way to know how many results a query reply will contain however assuming
6689 the reply packets arrived ordered, a response with less than 16 entries would indicate all results have been received
6690 The <see cref="!:OnClassifiedReply" /> event is raised when a response is received from the simulator
6691 </summary>
6692 <param name="searchText">A string containing a list of keywords to search for</param>
6693 <returns>A UUID to correlate the results when the <see cref="!:OnClassifiedReply" /> event is raised</returns>
6694 </member>
6695 <member name="M:OpenMetaverse.DirectoryManager.StartClassifiedSearch(System.String,OpenMetaverse.DirectoryManager.ClassifiedCategories,OpenMetaverse.DirectoryManager.ClassifiedQueryFlags)">
6696 <summary>
6697 Query the data server for a list of classified ads which contain specified keywords (Overload)
6698 The <see cref="!:OnClassifiedReply" /> event is raised when a response is received from the simulator
6699 </summary>
6700 <param name="searchText">A string containing a list of keywords to search for</param>
6701 <param name="category">The category to search</param>
6702 <param name="queryFlags">A set of flags which can be ORed to modify query options
6703 such as classified maturity rating.</param>
6704 <returns>A UUID to correlate the results when the <see cref="!:OnClassifiedReply" /> event is raised</returns>
6705 <example>
6706 Search classified ads containing the key words "foo" and "bar" in the "Any" category that are either PG or Mature
6707 <code>
6708 UUID searchID = StartClassifiedSearch("foo bar", ClassifiedCategories.Any, ClassifiedQueryFlags.PG | ClassifiedQueryFlags.Mature);
6709 </code></example>
6710 <remarks>
6711 Responses are sent 16 at a time, there is no way to know how many results a query reply will contain however assuming
6712 the reply packets arrived ordered, a response with less than 16 entries would indicate all results have been received
6713 </remarks>
6714 </member>
6715 <member name="M:OpenMetaverse.DirectoryManager.StartDirPlacesSearch(System.String,System.Int32)">
6716 <summary>
6717 Starts search for places (Overloaded)
6718 The <see cref="!:OnDirPlacesReply" /> event is raised when a response is received from the simulator
6719 </summary>
6720 <param name="searchText">Search text</param>
6721 <param name="queryStart">Each request is limited to 100 places
6722 being returned. To get the first 100 result entries of a request use 0,
6723 from 100-199 use 1, 200-299 use 2, etc.</param>
6724 <returns>A UUID to correlate the results when the <see cref="!:OnDirPlacesReply" /> event is raised</returns>
6725 </member>
6726 <member name="M:OpenMetaverse.DirectoryManager.StartDirPlacesSearch(System.String,OpenMetaverse.DirectoryManager.DirFindFlags,OpenMetaverse.ParcelCategory,System.Int32)">
6727 <summary>
6728 Queries the dataserver for parcels of land which are flagged to be shown in search
6729 The <see cref="!:OnDirPlacesReply" /> event is raised when a response is received from the simulator
6730 </summary>
6731 <param name="searchText">A string containing a list of keywords to search for separated by a space character</param>
6732 <param name="queryFlags">A set of flags which can be ORed to modify query options
6733 such as classified maturity rating.</param>
6734 <param name="category">The category to search</param>
6735 <param name="queryStart">Each request is limited to 100 places
6736 being returned. To get the first 100 result entries of a request use 0,
6737 from 100-199 use 1, 200-299 use 2, etc.</param>
6738 <returns>A UUID to correlate the results when the <see cref="!:OnDirPlacesReply" /> event is raised</returns>
6739 <example>
6740 Search places containing the key words "foo" and "bar" in the "Any" category that are either PG or Adult
6741 <code>
6742 UUID searchID = StartDirPlacesSearch("foo bar", DirFindFlags.DwellSort | DirFindFlags.IncludePG | DirFindFlags.IncludeAdult, ParcelCategory.Any, 0);
6743 </code></example>
6744 <remarks>
6745 Additional information on the results can be obtained by using the ParcelManager.InfoRequest method
6746 </remarks>
6747 </member>
6748 <member name="M:OpenMetaverse.DirectoryManager.StartLandSearch(OpenMetaverse.DirectoryManager.SearchTypeFlags)">
6749 <summary>
6750 Starts a search for land sales using the directory
6751 The <see cref="!:OnDirLandReply" /> event is raised when a response is received from the simulator
6752 </summary>
6753 <param name="typeFlags">What type of land to search for. Auction,
6754 estate, mainland, "first land", etc</param>
6755 <remarks>The OnDirLandReply event handler must be registered before
6756 calling this function. There is no way to determine how many
6757 results will be returned, or how many times the callback will be
6758 fired other than you won't get more than 100 total parcels from
6759 each query.</remarks>
6760 </member>
6761 <member name="M:OpenMetaverse.DirectoryManager.StartLandSearch(OpenMetaverse.DirectoryManager.SearchTypeFlags,System.Int32,System.Int32,System.Int32)">
6762 <summary>
6763 Starts a search for land sales using the directory
6764 The <seealso cref="!:OnDirLandReply" /> event is raised when a response is received from the simulator
6765 </summary>
6766 <param name="typeFlags">What type of land to search for. Auction,
6767 estate, mainland, "first land", etc</param>
6768 <param name="priceLimit">Maximum price to search for</param>
6769 <param name="areaLimit">Maximum area to search for</param>
6770 <param name="queryStart">Each request is limited to 100 parcels
6771 being returned. To get the first 100 parcels of a request use 0,
6772 from 100-199 use 1, 200-299 use 2, etc.</param>
6773 <remarks>The OnDirLandReply event handler must be registered before
6774 calling this function. There is no way to determine how many
6775 results will be returned, or how many times the callback will be
6776 fired other than you won't get more than 100 total parcels from
6777 each query.</remarks>
6778 </member>
6779 <member name="M:OpenMetaverse.DirectoryManager.StartLandSearch(OpenMetaverse.DirectoryManager.DirFindFlags,OpenMetaverse.DirectoryManager.SearchTypeFlags,System.Int32,System.Int32,System.Int32)">
6780 <summary>
6781 Send a request to the data server for land sales listings
6782 </summary>
6783 <param name="findFlags">Flags sent to specify query options
6784 Available flags:
6785 Specify the parcel rating with one or more of the following:
6786 IncludePG IncludeMature IncludeAdult
6787 Specify the field to pre sort the results with ONLY ONE of the following:
6788 PerMeterSort NameSort AreaSort PricesSort
6789 Specify the order the results are returned in, if not specified the results are pre sorted in a Descending Order
6790 SortAsc
6791 Specify additional filters to limit the results with one or both of the following:
6792 LimitByPrice LimitByArea
6793 Flags can be combined by separating them with the | (pipe) character
6794 Additional details can be found in <see cref="T:OpenMetaverse.DirectoryManager.DirFindFlags" /></param>
6795 <param name="typeFlags">What type of land to search for. Auction,
6796 Estate or Mainland</param>
6797 <param name="priceLimit">Maximum price to search for when the
6798 DirFindFlags.LimitByPrice flag is specified in findFlags</param>
6799 <param name="areaLimit">Maximum area to search for when the
6800 DirFindFlags.LimitByArea flag is specified in findFlags</param>
6801 <param name="queryStart">Each request is limited to 100 parcels
6802 being returned. To get the first 100 parcels of a request use 0,
6803 from 100-199 use 100, 200-299 use 200, etc.</param>
6804 <remarks>
6805 <para>The <seealso cref="!:OnDirLandReply" /> event will be raised with the response from the simulator
6806 There is no way to determine how many results will be returned, or how many times the callback will be
6807 fired other than you won't get more than 100 total parcels from
6808 each reply.</para>
6809 <para>Any land set for sale to either anybody or specific to the connected agent will be included in the
6810 results if the land is included in the query</para>
6811 </remarks>
6812 <example>
6813 <code>
6814 // request all mainland, any maturity rating that is larger than 512 sq.m
6815 StartLandSearch(DirFindFlags.SortAsc | DirFindFlags.PerMeterSort | DirFindFlags.LimitByArea | DirFindFlags.IncludePG | DirFindFlags.IncludeMature | DirFindFlags.IncludeAdult, SearchTypeFlags.Mainland, 0, 512, 0);
6816 </code>
6817 </example>
6818 </member>
6819 <member name="M:OpenMetaverse.DirectoryManager.StartGroupSearch(System.String,System.Int32)">
6820 <summary>
6821 Search for Groups
6822 </summary>
6823 <param name="searchText">The name or portion of the name of the group you wish to search for</param>
6824 <param name="queryStart">Start from the match number</param>
6825 <returns>
6826 </returns>
6827 </member>
6828 <member name="M:OpenMetaverse.DirectoryManager.StartGroupSearch(System.String,System.Int32,OpenMetaverse.DirectoryManager.DirFindFlags)">
6829 <summary>
6830 Search for Groups
6831 </summary>
6832 <param name="searchText">The name or portion of the name of the group you wish to search for</param>
6833 <param name="queryStart">Start from the match number</param>
6834 <param name="flags">Search flags</param>
6835 <returns>
6836 </returns>
6837 </member>
6838 <member name="M:OpenMetaverse.DirectoryManager.StartPeopleSearch(System.String,System.Int32)">
6839 <summary>
6840 Search the People directory for other avatars
6841 </summary>
6842 <param name="searchText">The name or portion of the name of the avatar you wish to search for</param>
6843 <param name="queryStart">
6844 </param>
6845 <returns>
6846 </returns>
6847 </member>
6848 <member name="M:OpenMetaverse.DirectoryManager.StartPlacesSearch">
6849 <summary>
6850 Search Places for parcels of land you personally own
6851 </summary>
6852 </member>
6853 <member name="M:OpenMetaverse.DirectoryManager.StartPlacesSearch(OpenMetaverse.UUID)">
6854 <summary>
6855 Searches Places for land owned by the specified group
6856 </summary>
6857 <param name="groupID">ID of the group you want to recieve land list for (You must be a member of the group)</param>
6858 <returns>Transaction (Query) ID which can be associated with results from your request.</returns>
6859 </member>
6860 <member name="M:OpenMetaverse.DirectoryManager.StartPlacesSearch(System.String)">
6861 <summary>
6862 Search the Places directory for parcels that are listed in search and contain the specified keywords
6863 </summary>
6864 <param name="searchText">A string containing the keywords to search for</param>
6865 <returns>Transaction (Query) ID which can be associated with results from your request.</returns>
6866 </member>
6867 <member name="M:OpenMetaverse.DirectoryManager.StartPlacesSearch(OpenMetaverse.DirectoryManager.DirFindFlags,OpenMetaverse.ParcelCategory,System.String,System.String,OpenMetaverse.UUID,OpenMetaverse.UUID)">
6868 <summary>
6869 Search Places - All Options
6870 </summary>
6871 <param name="findFlags">One of the Values from the DirFindFlags struct, ie: AgentOwned, GroupOwned, etc.</param>
6872 <param name="searchCategory">One of the values from the SearchCategory Struct, ie: Any, Linden, Newcomer</param>
6873 <param name="searchText">A string containing a list of keywords to search for separated by a space character</param>
6874 <param name="simulatorName">String Simulator Name to search in</param>
6875 <param name="groupID">LLUID of group you want to recieve results for</param>
6876 <param name="transactionID">Transaction (Query) ID which can be associated with results from your request.</param>
6877 <returns>Transaction (Query) ID which can be associated with results from your request.</returns>
6878 </member>
6879 <member name="M:OpenMetaverse.DirectoryManager.StartEventsSearch(System.String,System.UInt32)">
6880 <summary>
6881 Search All Events with specifid searchText in all categories, includes PG, Mature and Adult
6882 </summary>
6883 <param name="searchText">A string containing a list of keywords to search for separated by a space character</param>
6884 <param name="queryStart">Each request is limited to 100 entries
6885 being returned. To get the first group of entries of a request use 0,
6886 from 100-199 use 100, 200-299 use 200, etc.</param>
6887 <returns>UUID of query to correlate results in callback.</returns>
6888 </member>
6889 <member name="M:OpenMetaverse.DirectoryManager.StartEventsSearch(System.String,OpenMetaverse.DirectoryManager.DirFindFlags,System.String,System.UInt32,OpenMetaverse.DirectoryManager.EventCategories)">
6890 <summary>
6891 Search Events
6892 </summary>
6893 <param name="searchText">A string containing a list of keywords to search for separated by a space character</param>
6894 <param name="queryFlags">One or more of the following flags: DateEvents, IncludePG, IncludeMature, IncludeAdult
6895 from the <see cref="T:OpenMetaverse.DirectoryManager.DirFindFlags" /> Enum
6896 Multiple flags can be combined by separating the flags with the | (pipe) character</param>
6897 <param name="eventDay">"u" for in-progress and upcoming events, -or- number of days since/until event is scheduled
6898 For example "0" = Today, "1" = tomorrow, "2" = following day, "-1" = yesterday, etc.</param>
6899 <param name="queryStart">Each request is limited to 100 entries
6900 being returned. To get the first group of entries of a request use 0,
6901 from 100-199 use 100, 200-299 use 200, etc.</param>
6902 <param name="category">EventCategory event is listed under.</param>
6903 <returns>UUID of query to correlate results in callback.</returns>
6904 </member>
6905 <member name="M:OpenMetaverse.DirectoryManager.EventInfoRequest(System.UInt32)">
6906 <summary>Requests Event Details</summary>
6907 <param name="eventID">ID of Event returned from the <see cref="M:OpenMetaverse.DirectoryManager.StartEventsSearch(System.String,OpenMetaverse.DirectoryManager.DirFindFlags,System.String,System.UInt32,OpenMetaverse.DirectoryManager.EventCategories)" /> method</param>
6908 </member>
6909 <member name="M:OpenMetaverse.DirectoryManager.DirClassifiedReplyHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
6910 <summary>Process an incoming packet and raise the appropriate events</summary>
6911 <param name="sender">The sender</param>
6912 <param name="e">The EventArgs object containing the packet data</param>
6913 </member>
6914 <member name="M:OpenMetaverse.DirectoryManager.DirLandReplyHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
6915 <summary>Process an incoming packet and raise the appropriate events</summary>
6916 <param name="sender">The sender</param>
6917 <param name="e">The EventArgs object containing the packet data</param>
6918 </member>
6919 <member name="M:OpenMetaverse.DirectoryManager.DirLandReplyEventHandler(System.String,OpenMetaverse.Interfaces.IMessage,OpenMetaverse.Simulator)">
6920 <summary>Process an incoming <see cref="T:OpenMetaverse.Messages.Linden.DirLandReplyMessage" /> event message</summary>
6921 <param name="capsKey">The Unique Capabilities Key</param>
6922 <param name="message">The <see cref="T:OpenMetaverse.Messages.Linden.DirLandReplyMessage" /> event message containing the data</param>
6923 <param name="simulator">The simulator the message originated from</param>
6924 </member>
6925 <member name="M:OpenMetaverse.DirectoryManager.DirPeopleReplyHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
6926 <summary>Process an incoming packet and raise the appropriate events</summary>
6927 <param name="sender">The sender</param>
6928 <param name="e">The EventArgs object containing the packet data</param>
6929 </member>
6930 <member name="M:OpenMetaverse.DirectoryManager.DirGroupsReplyHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
6931 <summary>Process an incoming packet and raise the appropriate events</summary>
6932 <param name="sender">The sender</param>
6933 <param name="e">The EventArgs object containing the packet data</param>
6934 </member>
6935 <member name="M:OpenMetaverse.DirectoryManager.PlacesReplyEventHandler(System.String,OpenMetaverse.Interfaces.IMessage,OpenMetaverse.Simulator)">
6936 <summary>Process an incoming <see cref="T:OpenMetaverse.Messages.Linden.PlacesReplyMessage" /> event message</summary>
6937 <param name="capsKey">The Unique Capabilities Key</param>
6938 <param name="message">The <see cref="T:OpenMetaverse.Messages.Linden.PlacesReplyMessage" /> event message containing the data</param>
6939 <param name="simulator">The simulator the message originated from</param>
6940 </member>
6941 <member name="M:OpenMetaverse.DirectoryManager.PlacesReplyHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
6942 <summary>Process an incoming packet and raise the appropriate events</summary>
6943 <param name="sender">The sender</param>
6944 <param name="e">The EventArgs object containing the packet data</param>
6945 </member>
6946 <member name="M:OpenMetaverse.DirectoryManager.EventsReplyHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
6947 <summary>Process an incoming packet and raise the appropriate events</summary>
6948 <param name="sender">The sender</param>
6949 <param name="e">The EventArgs object containing the packet data</param>
6950 </member>
6951 <member name="M:OpenMetaverse.DirectoryManager.EventInfoReplyHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
6952 <summary>Process an incoming packet and raise the appropriate events</summary>
6953 <param name="sender">The sender</param>
6954 <param name="e">The EventArgs object containing the packet data</param>
6955 </member>
6956 <member name="M:OpenMetaverse.DirectoryManager.DirPlacesReplyHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
6957 <summary>Process an incoming packet and raise the appropriate events</summary>
6958 <param name="sender">The sender</param>
6959 <param name="e">The EventArgs object containing the packet data</param>
6960 </member>
6961 <member name="T:OpenMetaverse.EventInfoReplyEventArgs">
6962 <summary>Contains the Event data returned from the data server from an EventInfoRequest</summary>
6963 </member>
6964 <member name="M:OpenMetaverse.EventInfoReplyEventArgs.#ctor(OpenMetaverse.DirectoryManager.EventInfo)">
6965 <summary>Construct a new instance of the EventInfoReplyEventArgs class</summary>
6966 <param name="matchedEvent">A single EventInfo object containing the details of an event</param>
6967 </member>
6968 <member name="P:OpenMetaverse.EventInfoReplyEventArgs.MatchedEvent">
6969 <summary>
6970 A single EventInfo object containing the details of an event
6971 </summary>
6972 </member>
6973 <member name="T:OpenMetaverse.DirEventsReplyEventArgs">
6974 <summary>Contains the "Event" detail data returned from the data server</summary>
6975 </member>
6976 <member name="M:OpenMetaverse.DirEventsReplyEventArgs.#ctor(OpenMetaverse.UUID,System.Collections.Generic.List{OpenMetaverse.DirectoryManager.EventsSearchData})">
6977 <summary>Construct a new instance of the DirEventsReplyEventArgs class</summary>
6978 <param name="queryID">The ID of the query returned by the data server.
6979 This will correlate to the ID returned by the <see cref="!:StartEventsSearch" /> method</param>
6980 <param name="matchedEvents">A list containing the "Events" returned by the search query</param>
6981 </member>
6982 <member name="P:OpenMetaverse.DirEventsReplyEventArgs.QueryID">
6983 <summary>The ID returned by <see cref="M:OpenMetaverse.DirectoryManager.StartEventsSearch(System.String,OpenMetaverse.DirectoryManager.DirFindFlags,System.String,System.UInt32,OpenMetaverse.DirectoryManager.EventCategories)" /></summary>
6984 </member>
6985 <member name="P:OpenMetaverse.DirEventsReplyEventArgs.MatchedEvents">
6986 <summary>A list of "Events" returned by the data server</summary>
6987 </member>
6988 <member name="T:OpenMetaverse.PlacesReplyEventArgs">
6989 <summary>Contains the "Event" list data returned from the data server</summary>
6990 </member>
6991 <member name="M:OpenMetaverse.PlacesReplyEventArgs.#ctor(OpenMetaverse.UUID,System.Collections.Generic.List{OpenMetaverse.DirectoryManager.PlacesSearchData})">
6992 <summary>Construct a new instance of PlacesReplyEventArgs class</summary>
6993 <param name="queryID">The ID of the query returned by the data server.
6994 This will correlate to the ID returned by the <see cref="!:StartPlacesSearch" /> method</param>
6995 <param name="matchedPlaces">A list containing the "Places" returned by the data server query</param>
6996 </member>
6997 <member name="P:OpenMetaverse.PlacesReplyEventArgs.QueryID">
6998 <summary>The ID returned by <see cref="M:OpenMetaverse.DirectoryManager.StartPlacesSearch(OpenMetaverse.DirectoryManager.DirFindFlags,OpenMetaverse.ParcelCategory,System.String,System.String,OpenMetaverse.UUID,OpenMetaverse.UUID)" /></summary>
6999 </member>
7000 <member name="P:OpenMetaverse.PlacesReplyEventArgs.MatchedPlaces">
7001 <summary>A list of "Places" returned by the data server</summary>
7002 </member>
7003 <member name="T:OpenMetaverse.DirPlacesReplyEventArgs">
7004 <summary>Contains the places data returned from the data server</summary>
7005 </member>
7006 <member name="M:OpenMetaverse.DirPlacesReplyEventArgs.#ctor(OpenMetaverse.UUID,System.Collections.Generic.List{OpenMetaverse.DirectoryManager.DirectoryParcel})">
7007 <summary>Construct a new instance of the DirPlacesReplyEventArgs class</summary>
7008 <param name="queryID">The ID of the query returned by the data server.
7009 This will correlate to the ID returned by the <see cref="!:StartDirPlacesSearch" /> method</param>
7010 <param name="matchedParcels">A list containing land data returned by the data server</param>
7011 </member>
7012 <member name="P:OpenMetaverse.DirPlacesReplyEventArgs.QueryID">
7013 <summary>The ID returned by <see cref="M:OpenMetaverse.DirectoryManager.StartDirPlacesSearch(System.String,OpenMetaverse.DirectoryManager.DirFindFlags,OpenMetaverse.ParcelCategory,System.Int32)" /></summary>
7014 </member>
7015 <member name="P:OpenMetaverse.DirPlacesReplyEventArgs.MatchedParcels">
7016 <summary>A list containing Places data returned by the data server</summary>
7017 </member>
7018 <member name="T:OpenMetaverse.DirClassifiedsReplyEventArgs">
7019 <summary>Contains the classified data returned from the data server</summary>
7020 </member>
7021 <member name="M:OpenMetaverse.DirClassifiedsReplyEventArgs.#ctor(System.Collections.Generic.List{OpenMetaverse.DirectoryManager.Classified})">
7022 <summary>Construct a new instance of the DirClassifiedsReplyEventArgs class</summary>
7023 <param name="classifieds">A list of classified ad data returned from the data server</param>
7024 </member>
7025 <member name="P:OpenMetaverse.DirClassifiedsReplyEventArgs.Classifieds">
7026 <summary>A list containing Classified Ads returned by the data server</summary>
7027 </member>
7028 <member name="T:OpenMetaverse.DirGroupsReplyEventArgs">
7029 <summary>Contains the group data returned from the data server</summary>
7030 </member>
7031 <member name="M:OpenMetaverse.DirGroupsReplyEventArgs.#ctor(OpenMetaverse.UUID,System.Collections.Generic.List{OpenMetaverse.DirectoryManager.GroupSearchData})">
7032 <summary>Construct a new instance of the DirGroupsReplyEventArgs class</summary>
7033 <param name="queryID">The ID of the query returned by the data server.
7034 This will correlate to the ID returned by the <see cref="!:StartGroupSearch" /> method</param>
7035 <param name="matchedGroups">A list of groups data returned by the data server</param>
7036 </member>
7037 <member name="P:OpenMetaverse.DirGroupsReplyEventArgs.QueryID">
7038 <summary>The ID returned by <see cref="M:OpenMetaverse.DirectoryManager.StartGroupSearch(System.String,System.Int32,OpenMetaverse.DirectoryManager.DirFindFlags)" /></summary>
7039 </member>
7040 <member name="P:OpenMetaverse.DirGroupsReplyEventArgs.MatchedGroups">
7041 <summary>A list containing Groups data returned by the data server</summary>
7042 </member>
7043 <member name="T:OpenMetaverse.DirPeopleReplyEventArgs">
7044 <summary>Contains the people data returned from the data server</summary>
7045 </member>
7046 <member name="M:OpenMetaverse.DirPeopleReplyEventArgs.#ctor(OpenMetaverse.UUID,System.Collections.Generic.List{OpenMetaverse.DirectoryManager.AgentSearchData})">
7047 <summary>Construct a new instance of the DirPeopleReplyEventArgs class</summary>
7048 <param name="queryID">The ID of the query returned by the data server.
7049 This will correlate to the ID returned by the <see cref="!:StartPeopleSearch" /> method</param>
7050 <param name="matchedPeople">A list of people data returned by the data server</param>
7051 </member>
7052 <member name="P:OpenMetaverse.DirPeopleReplyEventArgs.QueryID">
7053 <summary>The ID returned by <see cref="M:OpenMetaverse.DirectoryManager.StartPeopleSearch(System.String,System.Int32)" /></summary>
7054 </member>
7055 <member name="P:OpenMetaverse.DirPeopleReplyEventArgs.MatchedPeople">
7056 <summary>A list containing People data returned by the data server</summary>
7057 </member>
7058 <member name="T:OpenMetaverse.DirLandReplyEventArgs">
7059 <summary>Contains the land sales data returned from the data server</summary>
7060 </member>
7061 <member name="M:OpenMetaverse.DirLandReplyEventArgs.#ctor(System.Collections.Generic.List{OpenMetaverse.DirectoryManager.DirectoryParcel})">
7062 <summary>Construct a new instance of the DirLandReplyEventArgs class</summary>
7063 <param name="dirParcels">A list of parcels for sale returned by the data server</param>
7064 </member>
7065 <member name="P:OpenMetaverse.DirLandReplyEventArgs.DirParcels">
7066 <summary>A list containing land forsale data returned by the data server</summary>
7067 </member>
7068 <member name="T:OpenMetaverse.DownloadRequest">
7069 <summary>
7070 Represends individual HTTP Download request
7071 </summary>
7072 </member>
7073 <member name="M:OpenMetaverse.DownloadRequest.#ctor">
7074 <summary>Default constructor</summary>
7075 </member>
7076 <member name="M:OpenMetaverse.DownloadRequest.#ctor(System.Uri,System.Int32,System.String,OpenMetaverse.Http.CapsBase.DownloadProgressEventHandler,OpenMetaverse.Http.CapsBase.RequestCompletedEventHandler)">
7077 <summary>Constructor</summary>
7078 </member>
7079 <member name="F:OpenMetaverse.DownloadRequest.Address">
7080 <summary>URI of the item to fetch</summary>
7081 </member>
7082 <member name="F:OpenMetaverse.DownloadRequest.MillisecondsTimeout">
7083 <summary>Timout specified in milliseconds</summary>
7084 </member>
7085 <member name="F:OpenMetaverse.DownloadRequest.DownloadProgressCallback">
7086 <summary>Download progress callback</summary>
7087 </member>
7088 <member name="F:OpenMetaverse.DownloadRequest.CompletedCallback">
7089 <summary>Download completed callback</summary>
7090 </member>
7091 <member name="F:OpenMetaverse.DownloadRequest.ContentType">
7092 <summary>Accept the following content type</summary>
7093 </member>
7094 <member name="T:OpenMetaverse.DownloadManager">
7095 <summary>
7096 Manages async HTTP downloads with a limit on maximum
7097 concurrent downloads
7098 </summary>
7099 </member>
7100 <member name="M:OpenMetaverse.DownloadManager.#ctor">
7101 <summary>Default constructor</summary>
7102 </member>
7103 <member name="P:OpenMetaverse.DownloadManager.ParallelDownloads">
7104 <summary>Maximum number of parallel downloads from a single endpoint</summary>
7105 </member>
7106 <member name="P:OpenMetaverse.DownloadManager.ClientCert">
7107 <summary>Client certificate</summary>
7108 </member>
7109 <member name="M:OpenMetaverse.DownloadManager.Dispose">
7110 <summary>Cleanup method</summary>
7111 </member>
7112 <member name="M:OpenMetaverse.DownloadManager.SetupRequest(System.Uri,System.String)">
7113 <summary>Setup http download request</summary>
7114 </member>
7115 <member name="M:OpenMetaverse.DownloadManager.EnqueuePending">
7116 <summary>Check the queue for pending work</summary>
7117 </member>
7118 <member name="M:OpenMetaverse.DownloadManager.QueueDownlad(OpenMetaverse.DownloadRequest)">
7119 <summary>Enqueue a new HTPP download</summary>
7120 </member>
7121 <member name="T:OpenMetaverse.EstateTask">
7122 <summary>Describes tasks returned in LandStatReply</summary>
7123 </member>
7124 <member name="T:OpenMetaverse.EstateTools">
7125 <summary>
7126 Estate level administration and utilities
7127 </summary>
7128 </member>
7129 <member name="M:OpenMetaverse.EstateTools.#ctor(OpenMetaverse.GridClient)">
7130 <summary>
7131 Constructor for EstateTools class
7132 </summary>
7133 <param name="client">
7134 </param>
7135 </member>
7136 <member name="T:OpenMetaverse.EstateTools.LandStatReportType">
7137 <summary>Used in the ReportType field of a LandStatRequest</summary>
7138 </member>
7139 <member name="T:OpenMetaverse.EstateTools.EstateAccessDelta">
7140 <summary>Used by EstateOwnerMessage packets</summary>
7141 </member>
7142 <member name="T:OpenMetaverse.EstateTools.EstateAccessReplyDelta">
7143 <summary>Used by EstateOwnerMessage packets</summary>
7144 </member>
7145 <member name="T:OpenMetaverse.EstateTools.EstateReturnFlags">
7146 <summary>
7147 </summary>
7148 </member>
7149 <member name="F:OpenMetaverse.EstateTools.EstateReturnFlags.None">
7150 <summary>No flags set</summary>
7151 </member>
7152 <member name="F:OpenMetaverse.EstateTools.EstateReturnFlags.ReturnScripted">
7153 <summary>Only return targets scripted objects</summary>
7154 </member>
7155 <member name="F:OpenMetaverse.EstateTools.EstateReturnFlags.ReturnOnOthersLand">
7156 <summary>Only return targets objects if on others land</summary>
7157 </member>
7158 <member name="F:OpenMetaverse.EstateTools.EstateReturnFlags.ReturnScriptedAndOnOthers">
7159 <summary>Returns target's scripted objects and objects on other parcels</summary>
7160 </member>
7161 <member name="T:OpenMetaverse.EstateTools.GroundTextureSettings">
7162 <summary>Ground texture settings for each corner of the region</summary>
7163 </member>
7164 <member name="T:OpenMetaverse.EstateTools.GroundTextureHeight">
7165 <summary>Used by GroundTextureHeightSettings</summary>
7166 </member>
7167 <member name="T:OpenMetaverse.EstateTools.GroundTextureHeightSettings">
7168 <summary>The high and low texture thresholds for each corner of the sim</summary>
7169 </member>
7170 <member name="F:OpenMetaverse.EstateTools.GroundTextures">
7171 <summary>Textures for each of the four terrain height levels</summary>
7172 </member>
7173 <member name="F:OpenMetaverse.EstateTools.GroundTextureLimits">
7174 <summary>Upper/lower texture boundaries for each corner of the sim</summary>
7175 </member>
7176 <member name="F:OpenMetaverse.EstateTools.m_TopCollidersReply">
8985 <summary>The event subscribers. null if no subcribers</summary> 7177 <summary>The event subscribers. null if no subcribers</summary>
8986 </member> 7178 </member>
8987 <member name="M:OpenMetaverse.ParcelManager.OnSimParcelsDownloaded(OpenMetaverse.SimParcelsDownloadedEventArgs)"> 7179 <member name="F:OpenMetaverse.EstateTools.m_TopCollidersReply_Lock">
8988 <summary>Raises the SimParcelsDownloaded event</summary> 7180 <summary>Thread sync lock object</summary>
8989 <param name="e">A SimParcelsDownloadedEventArgs object containing the
8990 data returned from the simulator</param>
8991 </member> 7181 </member>
8992 <member name="F:OpenMetaverse.ParcelManager.m_SimParcelsDownloadedLock"> 7182 <member name="F:OpenMetaverse.EstateTools.m_TopScriptsReply">
7183 <summary>The event subscribers. null if no subcribers</summary>
7184 </member>
7185 <member name="F:OpenMetaverse.EstateTools.m_TopScriptsReply_Lock">
8993 <summary>Thread sync lock object</summary> 7186 <summary>Thread sync lock object</summary>
8994 </member> 7187 </member>
8995 <member name="F:OpenMetaverse.ParcelManager.m_ForceSelectObjects"> 7188 <member name="F:OpenMetaverse.EstateTools.m_EstateUsersReply">
8996 <summary>The event subscribers. null if no subcribers</summary> 7189 <summary>The event subscribers. null if no subcribers</summary>
8997 </member> 7190 </member>
8998 <member name="M:OpenMetaverse.ParcelManager.OnForceSelectObjectsReply(OpenMetaverse.ForceSelectObjectsReplyEventArgs)"> 7191 <member name="F:OpenMetaverse.EstateTools.m_EstateUsersReply_Lock">
8999 <summary>Raises the ForceSelectObjectsReply event</summary> 7192 <summary>Thread sync lock object</summary>
9000 <param name="e">A ForceSelectObjectsReplyEventArgs object containing the
9001 data returned from the simulator</param>
9002 </member> 7193 </member>
9003 <member name="F:OpenMetaverse.ParcelManager.m_ForceSelectObjectsLock"> 7194 <member name="F:OpenMetaverse.EstateTools.m_EstateGroupsReply">
7195 <summary>The event subscribers. null if no subcribers</summary>
7196 </member>
7197 <member name="F:OpenMetaverse.EstateTools.m_EstateGroupsReply_Lock">
9004 <summary>Thread sync lock object</summary> 7198 <summary>Thread sync lock object</summary>
9005 </member> 7199 </member>
9006 <member name="F:OpenMetaverse.ParcelManager.m_ParcelMediaUpdateReply"> 7200 <member name="F:OpenMetaverse.EstateTools.m_EstateManagersReply">
9007 <summary>The event subscribers. null if no subcribers</summary> 7201 <summary>The event subscribers. null if no subcribers</summary>
9008 </member> 7202 </member>
9009 <member name="M:OpenMetaverse.ParcelManager.OnParcelMediaUpdateReply(OpenMetaverse.ParcelMediaUpdateReplyEventArgs)"> 7203 <member name="F:OpenMetaverse.EstateTools.m_EstateManagersReply_Lock">
9010 <summary>Raises the ParcelMediaUpdateReply event</summary> 7204 <summary>Thread sync lock object</summary>
9011 <param name="e">A ParcelMediaUpdateReplyEventArgs object containing the
9012 data returned from the simulator</param>
9013 </member> 7205 </member>
9014 <member name="F:OpenMetaverse.ParcelManager.m_ParcelMediaUpdateReplyLock"> 7206 <member name="F:OpenMetaverse.EstateTools.m_EstateBansReply">
7207 <summary>The event subscribers. null if no subcribers</summary>
7208 </member>
7209 <member name="F:OpenMetaverse.EstateTools.m_EstateBansReply_Lock">
9015 <summary>Thread sync lock object</summary> 7210 <summary>Thread sync lock object</summary>
9016 </member> 7211 </member>
9017 <member name="F:OpenMetaverse.ParcelManager.m_ParcelMediaCommand"> 7212 <member name="F:OpenMetaverse.EstateTools.m_EstateCovenantReply">
9018 <summary>The event subscribers. null if no subcribers</summary> 7213 <summary>The event subscribers. null if no subcribers</summary>
9019 </member> 7214 </member>
9020 <member name="M:OpenMetaverse.ParcelManager.OnParcelMediaCommand(OpenMetaverse.ParcelMediaCommandEventArgs)"> 7215 <member name="F:OpenMetaverse.EstateTools.m_EstateCovenantReply_Lock">
9021 <summary>Raises the ParcelMediaCommand event</summary> 7216 <summary>Thread sync lock object</summary>
9022 <param name="e">A ParcelMediaCommandEventArgs object containing the
9023 data returned from the simulator</param>
9024 </member> 7217 </member>
9025 <member name="F:OpenMetaverse.ParcelManager.m_ParcelMediaCommandLock"> 7218 <member name="F:OpenMetaverse.EstateTools.m_EstateUpdateInfoReply">
7219 <summary>The event subscribers. null if no subcribers</summary>
7220 </member>
7221 <member name="F:OpenMetaverse.EstateTools.m_EstateUpdateInfoReply_Lock">
9026 <summary>Thread sync lock object</summary> 7222 <summary>Thread sync lock object</summary>
9027 </member> 7223 </member>
9028 <member name="M:OpenMetaverse.ParcelManager.#ctor(OpenMetaverse.GridClient)"> 7224 <member name="E:OpenMetaverse.EstateTools.TopCollidersReply">
7225 <summary>Raised when the data server responds to a <see cref="M:OpenMetaverse.EstateTools.LandStatRequest(System.Int32,OpenMetaverse.EstateTools.LandStatReportType,System.UInt32,System.String)" /> request.</summary>
7226 </member>
7227 <member name="E:OpenMetaverse.EstateTools.TopScriptsReply">
7228 <summary>Raised when the data server responds to a <see cref="M:OpenMetaverse.EstateTools.LandStatRequest(System.Int32,OpenMetaverse.EstateTools.LandStatReportType,System.UInt32,System.String)" /> request.</summary>
7229 </member>
7230 <member name="E:OpenMetaverse.EstateTools.EstateUsersReply">
7231 <summary>Raised when the data server responds to a <see cref="M:OpenMetaverse.EstateTools.LandStatRequest(System.Int32,OpenMetaverse.EstateTools.LandStatReportType,System.UInt32,System.String)" /> request.</summary>
7232 </member>
7233 <member name="E:OpenMetaverse.EstateTools.EstateGroupsReply">
7234 <summary>Raised when the data server responds to a <see cref="M:OpenMetaverse.EstateTools.LandStatRequest(System.Int32,OpenMetaverse.EstateTools.LandStatReportType,System.UInt32,System.String)" /> request.</summary>
7235 </member>
7236 <member name="E:OpenMetaverse.EstateTools.EstateManagersReply">
7237 <summary>Raised when the data server responds to a <see cref="M:OpenMetaverse.EstateTools.LandStatRequest(System.Int32,OpenMetaverse.EstateTools.LandStatReportType,System.UInt32,System.String)" /> request.</summary>
7238 </member>
7239 <member name="E:OpenMetaverse.EstateTools.EstateBansReply">
7240 <summary>Raised when the data server responds to a <see cref="M:OpenMetaverse.EstateTools.LandStatRequest(System.Int32,OpenMetaverse.EstateTools.LandStatReportType,System.UInt32,System.String)" /> request.</summary>
7241 </member>
7242 <member name="E:OpenMetaverse.EstateTools.EstateCovenantReply">
7243 <summary>Raised when the data server responds to a <see cref="M:OpenMetaverse.EstateTools.LandStatRequest(System.Int32,OpenMetaverse.EstateTools.LandStatReportType,System.UInt32,System.String)" /> request.</summary>
7244 </member>
7245 <member name="E:OpenMetaverse.EstateTools.EstateUpdateInfoReply">
7246 <summary>Raised when the data server responds to a <see cref="M:OpenMetaverse.EstateTools.LandStatRequest(System.Int32,OpenMetaverse.EstateTools.LandStatReportType,System.UInt32,System.String)" /> request.</summary>
7247 </member>
7248 <member name="M:OpenMetaverse.EstateTools.OnTopCollidersReply(OpenMetaverse.TopCollidersReplyEventArgs)">
7249 <summary>Raises the TopCollidersReply event</summary>
7250 <param name="e">A TopCollidersReplyEventArgs object containing the
7251 data returned from the data server</param>
7252 </member>
7253 <member name="M:OpenMetaverse.EstateTools.OnTopScriptsReply(OpenMetaverse.TopScriptsReplyEventArgs)">
7254 <summary>Raises the TopScriptsReply event</summary>
7255 <param name="e">A TopScriptsReplyEventArgs object containing the
7256 data returned from the data server</param>
7257 </member>
7258 <member name="M:OpenMetaverse.EstateTools.OnEstateUsersReply(OpenMetaverse.EstateUsersReplyEventArgs)">
7259 <summary>Raises the EstateUsersReply event</summary>
7260 <param name="e">A EstateUsersReplyEventArgs object containing the
7261 data returned from the data server</param>
7262 </member>
7263 <member name="M:OpenMetaverse.EstateTools.OnEstateGroupsReply(OpenMetaverse.EstateGroupsReplyEventArgs)">
7264 <summary>Raises the EstateGroupsReply event</summary>
7265 <param name="e">A EstateGroupsReplyEventArgs object containing the
7266 data returned from the data server</param>
7267 </member>
7268 <member name="M:OpenMetaverse.EstateTools.OnEstateManagersReply(OpenMetaverse.EstateManagersReplyEventArgs)">
7269 <summary>Raises the EstateManagersReply event</summary>
7270 <param name="e">A EstateManagersReplyEventArgs object containing the
7271 data returned from the data server</param>
7272 </member>
7273 <member name="M:OpenMetaverse.EstateTools.OnEstateBansReply(OpenMetaverse.EstateBansReplyEventArgs)">
7274 <summary>Raises the EstateBansReply event</summary>
7275 <param name="e">A EstateBansReplyEventArgs object containing the
7276 data returned from the data server</param>
7277 </member>
7278 <member name="M:OpenMetaverse.EstateTools.OnEstateCovenantReply(OpenMetaverse.EstateCovenantReplyEventArgs)">
7279 <summary>Raises the EstateCovenantReply event</summary>
7280 <param name="e">A EstateCovenantReplyEventArgs object containing the
7281 data returned from the data server</param>
7282 </member>
7283 <member name="M:OpenMetaverse.EstateTools.OnEstateUpdateInfoReply(OpenMetaverse.EstateUpdateInfoReplyEventArgs)">
7284 <summary>Raises the EstateUpdateInfoReply event</summary>
7285 <param name="e">A EstateUpdateInfoReplyEventArgs object containing the
7286 data returned from the data server</param>
7287 </member>
7288 <member name="M:OpenMetaverse.EstateTools.LandStatRequest(System.Int32,OpenMetaverse.EstateTools.LandStatReportType,System.UInt32,System.String)">
7289 <summary>
7290 Requests estate information such as top scripts and colliders
7291 </summary>
7292 <param name="parcelLocalID">
7293 </param>
7294 <param name="reportType">
7295 </param>
7296 <param name="requestFlags">
7297 </param>
7298 <param name="filter">
7299 </param>
7300 </member>
7301 <member name="M:OpenMetaverse.EstateTools.RequestInfo">
7302 <summary>Requests estate settings, including estate manager and access/ban lists</summary>
7303 </member>
7304 <member name="M:OpenMetaverse.EstateTools.RequestTopScripts">
7305 <summary>Requests the "Top Scripts" list for the current region</summary>
7306 </member>
7307 <member name="M:OpenMetaverse.EstateTools.RequestTopColliders">
7308 <summary>Requests the "Top Colliders" list for the current region</summary>
7309 </member>
7310 <member name="M:OpenMetaverse.EstateTools.SetTerrainVariables(System.Single,System.Single,System.Single,System.Boolean,System.Boolean,System.Single)">
7311 <summary>
7312 Set several estate specific configuration variables
7313 </summary>
7314 <param name="WaterHeight">The Height of the waterlevel over the entire estate. Defaults to 20</param>
7315 <param name="TerrainRaiseLimit">The maximum height change allowed above the baked terrain. Defaults to 4</param>
7316 <param name="TerrainLowerLimit">The minimum height change allowed below the baked terrain. Defaults to -4</param>
7317 <param name="UseEstateSun">true to use</param>
7318 <param name="FixedSun">if True forces the sun position to the position in SunPosition</param>
7319 <param name="SunPosition">The current position of the sun on the estate, or when FixedSun is true the static position
7320 the sun will remain. <remarks>6.0 = Sunrise, 30.0 = Sunset</remarks></param>
7321 </member>
7322 <member name="M:OpenMetaverse.EstateTools.SimWideReturn(OpenMetaverse.UUID,OpenMetaverse.EstateTools.EstateReturnFlags,System.Boolean)">
7323 <summary>
7324 Request return of objects owned by specified avatar
7325 </summary>
7326 <param name="Target">The Agents <see cref="T:OpenMetaverse.UUID" /> owning the primitives to return</param>
7327 <param name="flag">specify the coverage and type of objects to be included in the return</param>
7328 <param name="EstateWide">true to perform return on entire estate</param>
7329 </member>
7330 <member name="M:OpenMetaverse.EstateTools.EstateOwnerMessage(System.String,System.String)">
7331 <summary>
7332 </summary>
7333 <param name="method">
7334 </param>
7335 <param name="param">
7336 </param>
7337 </member>
7338 <member name="M:OpenMetaverse.EstateTools.EstateOwnerMessage(System.String,System.Collections.Generic.List{System.String})">
7339 <summary>
7340 Used for setting and retrieving various estate panel settings
7341 </summary>
7342 <param name="method">EstateOwnerMessage Method field</param>
7343 <param name="listParams">List of parameters to include</param>
7344 </member>
7345 <member name="M:OpenMetaverse.EstateTools.KickUser(OpenMetaverse.UUID)">
7346 <summary>
7347 Kick an avatar from an estate
7348 </summary>
7349 <param name="userID">Key of Agent to remove</param>
7350 </member>
7351 <member name="M:OpenMetaverse.EstateTools.BanUser(OpenMetaverse.UUID,System.Boolean)">
7352 <summary>
7353 Ban an avatar from an estate</summary>
7354 <param name="userID">Key of Agent to remove</param>
7355 <param name="allEstates">Ban user from this estate and all others owned by the estate owner</param>
7356 </member>
7357 <member name="M:OpenMetaverse.EstateTools.UnbanUser(OpenMetaverse.UUID,System.Boolean)">
7358 <summary>Unban an avatar from an estate</summary>
7359 <param name="userID">Key of Agent to remove</param>
7360 /// <param name="allEstates">Unban user from this estate and all others owned by the estate owner</param></member>
7361 <member name="M:OpenMetaverse.EstateTools.EstateMessage(System.String)">
7362 <summary>
7363 Send a message dialog to everyone in an entire estate
7364 </summary>
7365 <param name="message">Message to send all users in the estate</param>
7366 </member>
7367 <member name="M:OpenMetaverse.EstateTools.SimulatorMessage(System.String)">
7368 <summary>
7369 Send a message dialog to everyone in a simulator
7370 </summary>
7371 <param name="message">Message to send all users in the simulator</param>
7372 </member>
7373 <member name="M:OpenMetaverse.EstateTools.TeleportHomeUser(OpenMetaverse.UUID)">
7374 <summary>
7375 Send an avatar back to their home location
7376 </summary>
7377 <param name="pest">Key of avatar to send home</param>
7378 </member>
7379 <member name="M:OpenMetaverse.EstateTools.RestartRegion">
7380 <summary>
7381 Begin the region restart process
7382 </summary>
7383 </member>
7384 <member name="M:OpenMetaverse.EstateTools.CancelRestart">
7385 <summary>
7386 Cancels a region restart
7387 </summary>
7388 </member>
7389 <member name="M:OpenMetaverse.EstateTools.SetRegionInfo(System.Boolean,System.Boolean,System.Boolean,System.Boolean,System.Boolean,System.Boolean,System.Single,System.Single,System.Boolean)">
7390 <summary>Estate panel "Region" tab settings</summary>
7391 </member>
7392 <member name="M:OpenMetaverse.EstateTools.SetRegionDebug(System.Boolean,System.Boolean,System.Boolean)">
7393 <summary>Estate panel "Debug" tab settings</summary>
7394 </member>
7395 <member name="M:OpenMetaverse.EstateTools.SetRegionTerrain(OpenMetaverse.UUID,OpenMetaverse.UUID,OpenMetaverse.UUID,OpenMetaverse.UUID)">
7396 <summary>Used for setting the region's terrain textures for its four height levels</summary>
7397 <param name="low">
7398 </param>
7399 <param name="midLow">
7400 </param>
7401 <param name="midHigh">
7402 </param>
7403 <param name="high">
7404 </param>
7405 </member>
7406 <member name="M:OpenMetaverse.EstateTools.SetRegionTerrainHeights(System.Single,System.Single,System.Single,System.Single,System.Single,System.Single,System.Single,System.Single)">
7407 <summary>Used for setting sim terrain texture heights</summary>
7408 </member>
7409 <member name="M:OpenMetaverse.EstateTools.RequestCovenant">
7410 <summary>Requests the estate covenant</summary>
7411 </member>
7412 <member name="M:OpenMetaverse.EstateTools.UploadTerrain(System.Byte[],System.String)">
7413 <summary>
7414 Upload a terrain RAW file
7415 </summary>
7416 <param name="fileData">A byte array containing the encoded terrain data</param>
7417 <param name="fileName">The name of the file being uploaded</param>
7418 <returns>The Id of the transfer request</returns>
7419 </member>
7420 <member name="M:OpenMetaverse.EstateTools.TeleportHomeAllUsers">
7421 <summary>
7422 Teleports all users home in current Estate
7423 </summary>
7424 </member>
7425 <member name="M:OpenMetaverse.EstateTools.RemoveEstateManager(OpenMetaverse.UUID,System.Boolean)">
7426 <summary>
7427 Remove estate manager</summary>
7428 <param name="userID">Key of Agent to Remove</param>
7429 <param name="allEstates">removes manager to this estate and all others owned by the estate owner</param>
7430 </member>
7431 <member name="M:OpenMetaverse.EstateTools.AddEstateManager(OpenMetaverse.UUID,System.Boolean)">
7432 <summary>
7433 Add estate manager</summary>
7434 <param name="userID">Key of Agent to Add</param>
7435 <param name="allEstates">Add agent as manager to this estate and all others owned by the estate owner</param>
7436 </member>
7437 <member name="M:OpenMetaverse.EstateTools.AddAllowedUser(OpenMetaverse.UUID,System.Boolean)">
7438 <summary>
7439 Add's an agent to the estate Allowed list</summary>
7440 <param name="userID">Key of Agent to Add</param>
7441 <param name="allEstates">Add agent as an allowed reisdent to All estates if true</param>
7442 </member>
7443 <member name="M:OpenMetaverse.EstateTools.RemoveAllowedUser(OpenMetaverse.UUID,System.Boolean)">
7444 <summary>
7445 Removes an agent from the estate Allowed list</summary>
7446 <param name="userID">Key of Agent to Remove</param>
7447 <param name="allEstates">Removes agent as an allowed reisdent from All estates if true</param>
7448 </member>
7449 <member name="M:OpenMetaverse.EstateTools.AddAllowedGroup(OpenMetaverse.UUID,System.Boolean)">
7450 <summary>
7451 Add's a group to the estate Allowed list</summary>
7452 <param name="groupID">Key of Group to Add</param>
7453 <param name="allEstates">Add Group as an allowed group to All estates if true</param>
7454 </member>
7455 <member name="M:OpenMetaverse.EstateTools.RemoveAllowedGroup(OpenMetaverse.UUID,System.Boolean)">
7456 <summary>
7457 Removes a group from the estate Allowed list</summary>
7458 <param name="groupID">Key of Group to Remove</param>
7459 <param name="allEstates">Removes Group as an allowed Group from All estates if true</param>
7460 </member>
7461 <member name="M:OpenMetaverse.EstateTools.EstateCovenantReplyHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
7462 <summary>Process an incoming packet and raise the appropriate events</summary>
7463 <param name="sender">The sender</param>
7464 <param name="e">The EventArgs object containing the packet data</param>
7465 </member>
7466 <member name="M:OpenMetaverse.EstateTools.EstateOwnerMessageHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
7467 <summary>Process an incoming packet and raise the appropriate events</summary>
7468 <param name="sender">The sender</param>
7469 <param name="e">The EventArgs object containing the packet data</param>
7470 </member>
7471 <member name="M:OpenMetaverse.EstateTools.LandStatReplyHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
7472 <summary>Process an incoming packet and raise the appropriate events</summary>
7473 <param name="sender">The sender</param>
7474 <param name="e">The EventArgs object containing the packet data</param>
7475 </member>
7476 <member name="T:OpenMetaverse.TopCollidersReplyEventArgs">
7477 <summary>Raised on LandStatReply when the report type is for "top colliders"</summary>
7478 </member>
7479 <member name="M:OpenMetaverse.TopCollidersReplyEventArgs.#ctor(System.Int32,System.Collections.Generic.Dictionary{OpenMetaverse.UUID,OpenMetaverse.EstateTask})">
7480 <summary>Construct a new instance of the TopCollidersReplyEventArgs class</summary>
7481 <param name="objectCount">The number of returned items in LandStatReply</param>
7482 <param name="tasks">Dictionary of Object UUIDs to tasks returned in LandStatReply</param>
7483 </member>
7484 <member name="P:OpenMetaverse.TopCollidersReplyEventArgs.ObjectCount">
7485 <summary>
7486 The number of returned items in LandStatReply
7487 </summary>
7488 </member>
7489 <member name="P:OpenMetaverse.TopCollidersReplyEventArgs.Tasks">
7490 <summary>
7491 A Dictionary of Object UUIDs to tasks returned in LandStatReply
7492 </summary>
7493 </member>
7494 <member name="T:OpenMetaverse.TopScriptsReplyEventArgs">
7495 <summary>Raised on LandStatReply when the report type is for "top Scripts"</summary>
7496 </member>
7497 <member name="M:OpenMetaverse.TopScriptsReplyEventArgs.#ctor(System.Int32,System.Collections.Generic.Dictionary{OpenMetaverse.UUID,OpenMetaverse.EstateTask})">
7498 <summary>Construct a new instance of the TopScriptsReplyEventArgs class</summary>
7499 <param name="objectCount">The number of returned items in LandStatReply</param>
7500 <param name="tasks">Dictionary of Object UUIDs to tasks returned in LandStatReply</param>
7501 </member>
7502 <member name="P:OpenMetaverse.TopScriptsReplyEventArgs.ObjectCount">
7503 <summary>
7504 The number of scripts returned in LandStatReply
7505 </summary>
7506 </member>
7507 <member name="P:OpenMetaverse.TopScriptsReplyEventArgs.Tasks">
7508 <summary>
7509 A Dictionary of Object UUIDs to tasks returned in LandStatReply
7510 </summary>
7511 </member>
7512 <member name="T:OpenMetaverse.EstateBansReplyEventArgs">
7513 <summary>Returned, along with other info, upon a successful .RequestInfo()</summary>
7514 </member>
7515 <member name="M:OpenMetaverse.EstateBansReplyEventArgs.#ctor(System.UInt32,System.Int32,System.Collections.Generic.List{OpenMetaverse.UUID})">
7516 <summary>Construct a new instance of the EstateBansReplyEventArgs class</summary>
7517 <param name="estateID">The estate's identifier on the grid</param>
7518 <param name="count">The number of returned items in LandStatReply</param>
7519 <param name="banned">User UUIDs banned</param>
7520 </member>
7521 <member name="P:OpenMetaverse.EstateBansReplyEventArgs.EstateID">
7522 <summary>
7523 The identifier of the estate
7524 </summary>
7525 </member>
7526 <member name="P:OpenMetaverse.EstateBansReplyEventArgs.Count">
7527 <summary>
7528 The number of returned itmes
7529 </summary>
7530 </member>
7531 <member name="P:OpenMetaverse.EstateBansReplyEventArgs.Banned">
7532 <summary>
7533 List of UUIDs of Banned Users
7534 </summary>
7535 </member>
7536 <member name="T:OpenMetaverse.EstateUsersReplyEventArgs">
7537 <summary>Returned, along with other info, upon a successful .RequestInfo()</summary>
7538 </member>
7539 <member name="M:OpenMetaverse.EstateUsersReplyEventArgs.#ctor(System.UInt32,System.Int32,System.Collections.Generic.List{OpenMetaverse.UUID})">
7540 <summary>Construct a new instance of the EstateUsersReplyEventArgs class</summary>
7541 <param name="estateID">The estate's identifier on the grid</param>
7542 <param name="count">The number of users</param>
7543 <param name="allowedUsers">Allowed users UUIDs</param>
7544 </member>
7545 <member name="P:OpenMetaverse.EstateUsersReplyEventArgs.EstateID">
7546 <summary>
7547 The identifier of the estate
7548 </summary>
7549 </member>
7550 <member name="P:OpenMetaverse.EstateUsersReplyEventArgs.Count">
7551 <summary>
7552 The number of returned items
7553 </summary>
7554 </member>
7555 <member name="P:OpenMetaverse.EstateUsersReplyEventArgs.AllowedUsers">
7556 <summary>
7557 List of UUIDs of Allowed Users
7558 </summary>
7559 </member>
7560 <member name="T:OpenMetaverse.EstateGroupsReplyEventArgs">
7561 <summary>Returned, along with other info, upon a successful .RequestInfo()</summary>
7562 </member>
7563 <member name="M:OpenMetaverse.EstateGroupsReplyEventArgs.#ctor(System.UInt32,System.Int32,System.Collections.Generic.List{OpenMetaverse.UUID})">
7564 <summary>Construct a new instance of the EstateGroupsReplyEventArgs class</summary>
7565 <param name="estateID">The estate's identifier on the grid</param>
7566 <param name="count">The number of Groups</param>
7567 <param name="allowedGroups">Allowed Groups UUIDs</param>
7568 </member>
7569 <member name="P:OpenMetaverse.EstateGroupsReplyEventArgs.EstateID">
7570 <summary>
7571 The identifier of the estate
7572 </summary>
7573 </member>
7574 <member name="P:OpenMetaverse.EstateGroupsReplyEventArgs.Count">
7575 <summary>
7576 The number of returned items
7577 </summary>
7578 </member>
7579 <member name="P:OpenMetaverse.EstateGroupsReplyEventArgs.AllowedGroups">
7580 <summary>
7581 List of UUIDs of Allowed Groups
7582 </summary>
7583 </member>
7584 <member name="T:OpenMetaverse.EstateManagersReplyEventArgs">
7585 <summary>Returned, along with other info, upon a successful .RequestInfo()</summary>
7586 </member>
7587 <member name="M:OpenMetaverse.EstateManagersReplyEventArgs.#ctor(System.UInt32,System.Int32,System.Collections.Generic.List{OpenMetaverse.UUID})">
7588 <summary>Construct a new instance of the EstateManagersReplyEventArgs class</summary>
7589 <param name="estateID">The estate's identifier on the grid</param>
7590 <param name="count">The number of Managers</param>
7591 <param name="managers"> Managers UUIDs</param>
7592 </member>
7593 <member name="P:OpenMetaverse.EstateManagersReplyEventArgs.EstateID">
7594 <summary>
7595 The identifier of the estate
7596 </summary>
7597 </member>
7598 <member name="P:OpenMetaverse.EstateManagersReplyEventArgs.Count">
7599 <summary>
7600 The number of returned items
7601 </summary>
7602 </member>
7603 <member name="P:OpenMetaverse.EstateManagersReplyEventArgs.Managers">
7604 <summary>
7605 List of UUIDs of the Estate's Managers
7606 </summary>
7607 </member>
7608 <member name="T:OpenMetaverse.EstateCovenantReplyEventArgs">
7609 <summary>Returned, along with other info, upon a successful .RequestInfo()</summary>
7610 </member>
7611 <member name="M:OpenMetaverse.EstateCovenantReplyEventArgs.#ctor(OpenMetaverse.UUID,System.Int64,System.String,OpenMetaverse.UUID)">
7612 <summary>Construct a new instance of the EstateCovenantReplyEventArgs class</summary>
7613 <param name="covenantID">The Covenant ID</param>
7614 <param name="timestamp">The timestamp</param>
7615 <param name="estateName">The estate's name</param>
7616 <param name="estateOwnerID">The Estate Owner's ID (can be a GroupID)</param>
7617 </member>
7618 <member name="P:OpenMetaverse.EstateCovenantReplyEventArgs.CovenantID">
7619 <summary>
7620 The Covenant
7621 </summary>
7622 </member>
7623 <member name="P:OpenMetaverse.EstateCovenantReplyEventArgs.Timestamp">
7624 <summary>
7625 The timestamp
7626 </summary>
7627 </member>
7628 <member name="P:OpenMetaverse.EstateCovenantReplyEventArgs.EstateName">
7629 <summary>
7630 The Estate name
7631 </summary>
7632 </member>
7633 <member name="P:OpenMetaverse.EstateCovenantReplyEventArgs.EstateOwnerID">
7634 <summary>
7635 The Estate Owner's ID (can be a GroupID)
7636 </summary>
7637 </member>
7638 <member name="T:OpenMetaverse.EstateUpdateInfoReplyEventArgs">
7639 <summary>Returned, along with other info, upon a successful .RequestInfo()</summary>
7640 </member>
7641 <member name="M:OpenMetaverse.EstateUpdateInfoReplyEventArgs.#ctor(System.String,OpenMetaverse.UUID,System.UInt32,System.Boolean)">
7642 <summary>Construct a new instance of the EstateUpdateInfoReplyEventArgs class</summary>
7643 <param name="estateName">The estate's name</param>
7644 <param name="estateOwner">The Estate Owners ID (can be a GroupID)</param>
7645 <param name="estateID">The estate's identifier on the grid</param>
7646 <param name="denyNoPaymentInfo">
7647 </param>
7648 </member>
7649 <member name="P:OpenMetaverse.EstateUpdateInfoReplyEventArgs.EstateName">
7650 <summary>
7651 The estate's name
7652 </summary>
7653 </member>
7654 <member name="P:OpenMetaverse.EstateUpdateInfoReplyEventArgs.EstateOwner">
7655 <summary>
7656 The Estate Owner's ID (can be a GroupID)
7657 </summary>
7658 </member>
7659 <member name="P:OpenMetaverse.EstateUpdateInfoReplyEventArgs.EstateID">
7660 <summary>
7661 The identifier of the estate on the grid
7662 </summary>
7663 </member>
7664 <member name="P:OpenMetaverse.EstateUpdateInfoReplyEventArgs.DenyNoPaymentInfo">
7665 <summary>
7666 </summary>
7667 </member>
7668 <member name="T:OpenMetaverse.PacketEventDictionary">
7669 <summary>
7670 Registers, unregisters, and fires events generated by incoming packets
7671 </summary>
7672 </member>
7673 <member name="M:OpenMetaverse.PacketEventDictionary.#ctor(OpenMetaverse.GridClient)">
9029 <summary> 7674 <summary>
9030 Default constructor 7675 Default constructor
9031 </summary> 7676 </summary>
9032 <param name="client">A reference to the GridClient object</param> 7677 <param name="client">
7678 </param>
9033 </member> 7679 </member>
9034 <member name="M:OpenMetaverse.ParcelManager.RequestParcelInfo(OpenMetaverse.UUID)"> 7680 <member name="T:OpenMetaverse.PacketEventDictionary.PacketCallbackWrapper">
9035 <summary> 7681 <summary>
9036 Request basic information for a single parcel 7682 Object that is passed to worker threads in the ThreadPool for
7683 firing packet callbacks
9037 </summary> 7684 </summary>
9038 <param name="parcelID">Simulator-local ID of the parcel</param>
9039 </member> 7685 </member>
9040 <member name="M:OpenMetaverse.ParcelManager.RequestParcelProperties(OpenMetaverse.Simulator,System.Int32,System.Int32)"> 7686 <member name="F:OpenMetaverse.PacketEventDictionary.PacketCallbackWrapper.Callback">
7687 <summary>Callback to fire for this packet</summary>
7688 </member>
7689 <member name="F:OpenMetaverse.PacketEventDictionary.PacketCallbackWrapper.Simulator">
7690 <summary>Reference to the simulator that this packet came from</summary>
7691 </member>
7692 <member name="F:OpenMetaverse.PacketEventDictionary.PacketCallbackWrapper.Packet">
7693 <summary>The packet that needs to be processed</summary>
7694 </member>
7695 <member name="F:OpenMetaverse.PacketEventDictionary.Client">
7696 <summary>Reference to the GridClient object</summary>
7697 </member>
7698 <member name="M:OpenMetaverse.PacketEventDictionary.RegisterEvent(OpenMetaverse.Packets.PacketType,System.EventHandler{OpenMetaverse.PacketReceivedEventArgs},System.Boolean)">
9041 <summary> 7699 <summary>
9042 Request properties of a single parcel 7700 Register an event handler
9043 </summary> 7701 </summary>
9044 <param name="simulator">Simulator containing the parcel</param> 7702 <remarks>Use PacketType.Default to fire this event on every
9045 <param name="localID">Simulator-local ID of the parcel</param> 7703 incoming packet</remarks>
9046 <param name="sequenceID">An arbitrary integer that will be returned 7704 <param name="packetType">Packet type to register the handler for</param>
9047 with the ParcelProperties reply, useful for distinguishing between 7705 <param name="eventHandler">Callback to be fired</param>
9048 multiple simultaneous requests</param> 7706 <param name="isAsync">True if this callback should be ran
7707 asynchronously, false to run it synchronous</param>
9049 </member> 7708 </member>
9050 <member name="M:OpenMetaverse.ParcelManager.RequestParcelAccessList(OpenMetaverse.Simulator,System.Int32,OpenMetaverse.AccessList,System.Int32)"> 7709 <member name="M:OpenMetaverse.PacketEventDictionary.UnregisterEvent(OpenMetaverse.Packets.PacketType,System.EventHandler{OpenMetaverse.PacketReceivedEventArgs})">
9051 <summary> 7710 <summary>
9052 Request the access list for a single parcel 7711 Unregister an event handler
9053 </summary> 7712 </summary>
9054 <param name="simulator">Simulator containing the parcel</param> 7713 <param name="packetType">Packet type to unregister the handler for</param>
9055 <param name="localID">Simulator-local ID of the parcel</param> 7714 <param name="eventHandler">Callback to be unregistered</param>
9056 <param name="sequenceID">An arbitrary integer that will be returned
9057 with the ParcelAccessList reply, useful for distinguishing between
9058 multiple simultaneous requests</param>
9059 <param name="flags"></param>
9060 </member> 7715 </member>
9061 <member name="M:OpenMetaverse.ParcelManager.RequestParcelProperties(OpenMetaverse.Simulator,System.Single,System.Single,System.Single,System.Single,System.Int32,System.Boolean)"> 7716 <member name="M:OpenMetaverse.PacketEventDictionary.RaiseEvent(OpenMetaverse.Packets.PacketType,OpenMetaverse.Packets.Packet,OpenMetaverse.Simulator)">
9062 <summary> 7717 <summary>
9063 Request properties of parcels using a bounding box selection 7718 Fire the events registered for this packet type
9064 </summary> 7719 </summary>
9065 <param name="simulator">Simulator containing the parcel</param> 7720 <param name="packetType">Incoming packet type</param>
9066 <param name="north">Northern boundary of the parcel selection</param> 7721 <param name="packet">Incoming packet</param>
9067 <param name="east">Eastern boundary of the parcel selection</param> 7722 <param name="simulator">Simulator this packet was received from</param>
9068 <param name="south">Southern boundary of the parcel selection</param>
9069 <param name="west">Western boundary of the parcel selection</param>
9070 <param name="sequenceID">An arbitrary integer that will be returned
9071 with the ParcelProperties reply, useful for distinguishing between
9072 different types of parcel property requests</param>
9073 <param name="snapSelection">A boolean that is returned with the
9074 ParcelProperties reply, useful for snapping focus to a single
9075 parcel</param>
9076 </member> 7723 </member>
9077 <member name="M:OpenMetaverse.ParcelManager.RequestAllSimParcels(OpenMetaverse.Simulator)"> 7724 <member name="T:OpenMetaverse.CapsEventDictionary">
9078 <summary> 7725 <summary>
9079 Request all simulator parcel properties (used for populating the <code>Simulator.Parcels</code> 7726 Registers, unregisters, and fires events generated by the Capabilities
9080 dictionary) 7727 event queue
9081 </summary> 7728 </summary>
9082 <param name="simulator">Simulator to request parcels from (must be connected)</param>
9083 </member> 7729 </member>
9084 <member name="M:OpenMetaverse.ParcelManager.RequestAllSimParcels(OpenMetaverse.Simulator,System.Boolean,System.Int32)"> 7730 <member name="M:OpenMetaverse.CapsEventDictionary.#ctor(OpenMetaverse.GridClient)">
9085 <summary> 7731 <summary>
9086 Request all simulator parcel properties (used for populating the <code>Simulator.Parcels</code> 7732 Default constructor
9087 dictionary)
9088 </summary> 7733 </summary>
9089 <param name="simulator">Simulator to request parcels from (must be connected)</param> 7734 <param name="client">Reference to the GridClient object</param>
9090 <param name="refresh">If TRUE, will force a full refresh</param>
9091 <param name="msDelay">Number of milliseconds to pause in between each request</param>
9092 </member> 7735 </member>
9093 <member name="M:OpenMetaverse.ParcelManager.RequestDwell(OpenMetaverse.Simulator,System.Int32)"> 7736 <member name="T:OpenMetaverse.CapsEventDictionary.CapsCallbackWrapper">
9094 <summary> 7737 <summary>
9095 Request the dwell value for a parcel 7738 Object that is passed to worker threads in the ThreadPool for
7739 firing CAPS callbacks
9096 </summary> 7740 </summary>
9097 <param name="simulator">Simulator containing the parcel</param>
9098 <param name="localID">Simulator-local ID of the parcel</param>
9099 </member> 7741 </member>
9100 <member name="M:OpenMetaverse.ParcelManager.Buy(OpenMetaverse.Simulator,System.Int32,System.Boolean,OpenMetaverse.UUID,System.Boolean,System.Int32,System.Int32)"> 7742 <member name="F:OpenMetaverse.CapsEventDictionary.CapsCallbackWrapper.Callback">
7743 <summary>Callback to fire for this packet</summary>
7744 </member>
7745 <member name="F:OpenMetaverse.CapsEventDictionary.CapsCallbackWrapper.CapsEvent">
7746 <summary>Name of the CAPS event</summary>
7747 </member>
7748 <member name="F:OpenMetaverse.CapsEventDictionary.CapsCallbackWrapper.Message">
7749 <summary>Strongly typed decoded data</summary>
7750 </member>
7751 <member name="F:OpenMetaverse.CapsEventDictionary.CapsCallbackWrapper.Simulator">
7752 <summary>Reference to the simulator that generated this event</summary>
7753 </member>
7754 <member name="F:OpenMetaverse.CapsEventDictionary.Client">
7755 <summary>Reference to the GridClient object</summary>
7756 </member>
7757 <member name="M:OpenMetaverse.CapsEventDictionary.RegisterEvent(System.String,OpenMetaverse.Caps.EventQueueCallback)">
9101 <summary> 7758 <summary>
9102 Send a request to Purchase a parcel of land 7759 Register an new event handler for a capabilities event sent via the EventQueue
9103 </summary> 7760 </summary>
9104 <param name="simulator">The Simulator the parcel is located in</param> 7761 <remarks>Use String.Empty to fire this event on every CAPS event</remarks>
9105 <param name="localID">The parcels region specific local ID</param> 7762 <param name="capsEvent">Capability event name to register the
9106 <param name="forGroup">true if this parcel is being purchased by a group</param> 7763 handler for</param>
9107 <param name="groupID">The groups <seealso cref="T:OpenMetaverse.UUID"/></param> 7764 <param name="eventHandler">Callback to fire</param>
9108 <param name="removeContribution">true to remove tier contribution if purchase is successful</param>
9109 <param name="parcelArea">The parcels size</param>
9110 <param name="parcelPrice">The purchase price of the parcel</param>
9111 <returns></returns>
9112 </member> 7765 </member>
9113 <member name="M:OpenMetaverse.ParcelManager.Reclaim(OpenMetaverse.Simulator,System.Int32)"> 7766 <member name="M:OpenMetaverse.CapsEventDictionary.UnregisterEvent(System.String,OpenMetaverse.Caps.EventQueueCallback)">
9114 <summary> 7767 <summary>
9115 Reclaim a parcel of land 7768 Unregister a previously registered capabilities handler
9116 </summary> 7769 </summary>
9117 <param name="simulator">The simulator the parcel is in</param> 7770 <param name="capsEvent">Capability event name unregister the
9118 <param name="localID">The parcels region specific local ID</param> 7771 handler for</param>
7772 <param name="eventHandler">Callback to unregister</param>
9119 </member> 7773 </member>
9120 <member name="M:OpenMetaverse.ParcelManager.DeedToGroup(OpenMetaverse.Simulator,System.Int32,OpenMetaverse.UUID)"> 7774 <member name="M:OpenMetaverse.CapsEventDictionary.RaiseEvent(System.String,OpenMetaverse.Interfaces.IMessage,OpenMetaverse.Simulator)">
9121 <summary> 7775 <summary>
9122 Deed a parcel to a group 7776 Fire the events registered for this event type synchronously
9123 </summary> 7777 </summary>
9124 <param name="simulator">The simulator the parcel is in</param> 7778 <param name="capsEvent">Capability name</param>
9125 <param name="localID">The parcels region specific local ID</param> 7779 <param name="message">Decoded event body</param>
9126 <param name="groupID">The groups <seealso cref="T:OpenMetaverse.UUID"/></param> 7780 <param name="simulator">Reference to the simulator that
7781 generated this event</param>
9127 </member> 7782 </member>
9128 <member name="M:OpenMetaverse.ParcelManager.RequestObjectOwners(OpenMetaverse.Simulator,System.Int32)"> 7783 <member name="M:OpenMetaverse.CapsEventDictionary.BeginRaiseEvent(System.String,OpenMetaverse.Interfaces.IMessage,OpenMetaverse.Simulator)">
9129 <summary> 7784 <summary>
9130 Request prim owners of a parcel of land. 7785 Fire the events registered for this event type asynchronously
9131 </summary> 7786 </summary>
9132 <param name="simulator">Simulator parcel is in</param> 7787 <param name="capsEvent">Capability name</param>
9133 <param name="localID">The parcels region specific local ID</param> 7788 <param name="message">Decoded event body</param>
7789 <param name="simulator">Reference to the simulator that
7790 generated this event</param>
9134 </member> 7791 </member>
9135 <member name="M:OpenMetaverse.ParcelManager.ReturnObjects(OpenMetaverse.Simulator,System.Int32,OpenMetaverse.ObjectReturnType,System.Collections.Generic.List{OpenMetaverse.UUID})"> 7792 <member name="T:OpenMetaverse.FriendRights">
9136 <summary> 7793 <summary>
9137 Return objects from a parcel
9138 </summary> 7794 </summary>
9139 <param name="simulator">Simulator parcel is in</param>
9140 <param name="localID">The parcels region specific local ID</param>
9141 <param name="type">the type of objects to return, <seealso cref="T:OpenMetaverse.ObjectReturnType"/></param>
9142 <param name="ownerIDs">A list containing object owners <seealso cref="T:OpenMetaverse.UUID"/>s to return</param>
9143 </member> 7795 </member>
9144 <member name="M:OpenMetaverse.ParcelManager.ParcelSubdivide(OpenMetaverse.Simulator,System.Single,System.Single,System.Single,System.Single)"> 7796 <member name="F:OpenMetaverse.FriendRights.None">
7797 <summary>The avatar has no rights</summary>
7798 </member>
7799 <member name="F:OpenMetaverse.FriendRights.CanSeeOnline">
7800 <summary>The avatar can see the online status of the target avatar</summary>
7801 </member>
7802 <member name="F:OpenMetaverse.FriendRights.CanSeeOnMap">
7803 <summary>The avatar can see the location of the target avatar on the map</summary>
7804 </member>
7805 <member name="F:OpenMetaverse.FriendRights.CanModifyObjects">
7806 <summary>The avatar can modify the ojects of the target avatar </summary>
7807 </member>
7808 <member name="T:OpenMetaverse.FriendInfo">
9145 <summary> 7809 <summary>
9146 Subdivide (split) a parcel 7810 This class holds information about an avatar in the friends list. There are two ways
7811 to interface to this class. The first is through the set of boolean properties. This is the typical
7812 way clients of this class will use it. The second interface is through two bitflag properties,
7813 TheirFriendsRights and MyFriendsRights
9147 </summary> 7814 </summary>
9148 <param name="simulator"></param>
9149 <param name="west"></param>
9150 <param name="south"></param>
9151 <param name="east"></param>
9152 <param name="north"></param>
9153 </member> 7815 </member>
9154 <member name="M:OpenMetaverse.ParcelManager.ParcelJoin(OpenMetaverse.Simulator,System.Single,System.Single,System.Single,System.Single)"> 7816 <member name="M:OpenMetaverse.FriendInfo.#ctor(OpenMetaverse.UUID,OpenMetaverse.FriendRights,OpenMetaverse.FriendRights)">
9155 <summary> 7817 <summary>
9156 Join two parcels of land creating a single parcel 7818 Used internally when building the initial list of friends at login time
9157 </summary> 7819 </summary>
9158 <param name="simulator"></param> 7820 <param name="id">System ID of the avatar being prepesented</param>
9159 <param name="west"></param> 7821 <param name="theirRights">Rights the friend has to see you online and to modify your objects</param>
9160 <param name="south"></param> 7822 <param name="myRights">Rights you have to see your friend online and to modify their objects</param>
9161 <param name="east"></param>
9162 <param name="north"></param>
9163 </member> 7823 </member>
9164 <member name="M:OpenMetaverse.ParcelManager.GetParcelLocalID(OpenMetaverse.Simulator,OpenMetaverse.Vector3)"> 7824 <member name="P:OpenMetaverse.FriendInfo.UUID">
9165 <summary> 7825 <summary>
9166 Get a parcels LocalID 7826 System ID of the avatar
9167 </summary> 7827 </summary>
9168 <param name="simulator">Simulator parcel is in</param>
9169 <param name="position">Vector3 position in simulator (Z not used)</param>
9170 <returns>0 on failure, or parcel LocalID on success.</returns>
9171 <remarks>A call to <code>Parcels.RequestAllSimParcels</code> is required to populate map and
9172 dictionary.</remarks>
9173 </member> 7828 </member>
9174 <member name="M:OpenMetaverse.ParcelManager.Terraform(OpenMetaverse.Simulator,System.Int32,OpenMetaverse.TerraformAction,OpenMetaverse.TerraformBrushSize)"> 7829 <member name="P:OpenMetaverse.FriendInfo.Name">
9175 <summary> 7830 <summary>
9176 Terraform (raise, lower, etc) an area or whole parcel of land 7831 full name of the avatar
9177 </summary> 7832 </summary>
9178 <param name="simulator">Simulator land area is in.</param>
9179 <param name="localID">LocalID of parcel, or -1 if using bounding box</param>
9180 <param name="action">From Enum, Raise, Lower, Level, Smooth, Etc.</param>
9181 <param name="brushSize">Size of area to modify</param>
9182 <returns>true on successful request sent.</returns>
9183 <remarks>Settings.STORE_LAND_PATCHES must be true,
9184 Parcel information must be downloaded using <code>RequestAllSimParcels()</code></remarks>
9185 </member> 7833 </member>
9186 <member name="M:OpenMetaverse.ParcelManager.Terraform(OpenMetaverse.Simulator,System.Single,System.Single,System.Single,System.Single,OpenMetaverse.TerraformAction,OpenMetaverse.TerraformBrushSize)"> 7834 <member name="P:OpenMetaverse.FriendInfo.IsOnline">
9187 <summary> 7835 <summary>
9188 Terraform (raise, lower, etc) an area or whole parcel of land 7836 True if the avatar is online
9189 </summary> 7837 </summary>
9190 <param name="simulator">Simulator land area is in.</param>
9191 <param name="west">west border of area to modify</param>
9192 <param name="south">south border of area to modify</param>
9193 <param name="east">east border of area to modify</param>
9194 <param name="north">north border of area to modify</param>
9195 <param name="action">From Enum, Raise, Lower, Level, Smooth, Etc.</param>
9196 <param name="brushSize">Size of area to modify</param>
9197 <returns>true on successful request sent.</returns>
9198 <remarks>Settings.STORE_LAND_PATCHES must be true,
9199 Parcel information must be downloaded using <code>RequestAllSimParcels()</code></remarks>
9200 </member> 7838 </member>
9201 <member name="M:OpenMetaverse.ParcelManager.Terraform(OpenMetaverse.Simulator,System.Int32,System.Single,System.Single,System.Single,System.Single,OpenMetaverse.TerraformAction,OpenMetaverse.TerraformBrushSize,System.Int32)"> 7839 <member name="P:OpenMetaverse.FriendInfo.CanSeeMeOnline">
9202 <summary> 7840 <summary>
9203 Terraform (raise, lower, etc) an area or whole parcel of land 7841 True if the friend can see if I am online
9204 </summary> 7842 </summary>
9205 <param name="simulator">Simulator land area is in.</param>
9206 <param name="localID">LocalID of parcel, or -1 if using bounding box</param>
9207 <param name="west">west border of area to modify</param>
9208 <param name="south">south border of area to modify</param>
9209 <param name="east">east border of area to modify</param>
9210 <param name="north">north border of area to modify</param>
9211 <param name="action">From Enum, Raise, Lower, Level, Smooth, Etc.</param>
9212 <param name="brushSize">Size of area to modify</param>
9213 <param name="seconds">How many meters + or - to lower, 1 = 1 meter</param>
9214 <returns>true on successful request sent.</returns>
9215 <remarks>Settings.STORE_LAND_PATCHES must be true,
9216 Parcel information must be downloaded using <code>RequestAllSimParcels()</code></remarks>
9217 </member> 7843 </member>
9218 <member name="M:OpenMetaverse.ParcelManager.Terraform(OpenMetaverse.Simulator,System.Int32,System.Single,System.Single,System.Single,System.Single,OpenMetaverse.TerraformAction,OpenMetaverse.TerraformBrushSize,System.Int32,System.Single)"> 7844 <member name="P:OpenMetaverse.FriendInfo.CanSeeMeOnMap">
9219 <summary> 7845 <summary>
9220 Terraform (raise, lower, etc) an area or whole parcel of land 7846 True if the friend can see me on the map
9221 </summary> 7847 </summary>
9222 <param name="simulator">Simulator land area is in.</param>
9223 <param name="localID">LocalID of parcel, or -1 if using bounding box</param>
9224 <param name="west">west border of area to modify</param>
9225 <param name="south">south border of area to modify</param>
9226 <param name="east">east border of area to modify</param>
9227 <param name="north">north border of area to modify</param>
9228 <param name="action">From Enum, Raise, Lower, Level, Smooth, Etc.</param>
9229 <param name="brushSize">Size of area to modify</param>
9230 <param name="seconds">How many meters + or - to lower, 1 = 1 meter</param>
9231 <param name="height">Height at which the terraform operation is acting at</param>
9232 </member> 7848 </member>
9233 <member name="M:OpenMetaverse.ParcelManager.RequestSelectObjects(System.Int32,OpenMetaverse.ObjectReturnType,OpenMetaverse.UUID)"> 7849 <member name="P:OpenMetaverse.FriendInfo.CanModifyMyObjects">
9234 <summary> 7850 <summary>
9235 Sends a request to the simulator to return a list of objects owned by specific owners 7851 True if the freind can modify my objects
9236 </summary> 7852 </summary>
9237 <param name="localID">Simulator local ID of parcel</param>
9238 <param name="selectType">Owners, Others, Etc</param>
9239 <param name="ownerID">List containing keys of avatars objects to select;
9240 if List is null will return Objects of type <c>selectType</c></param>
9241 <remarks>Response data is returned in the event <seealso cref="E:OnParcelSelectedObjects"/></remarks>
9242 </member> 7853 </member>
9243 <member name="M:OpenMetaverse.ParcelManager.EjectUser(OpenMetaverse.UUID,System.Boolean)"> 7854 <member name="P:OpenMetaverse.FriendInfo.CanSeeThemOnline">
9244 <summary> 7855 <summary>
9245 Eject and optionally ban a user from a parcel 7856 True if I can see if my friend is online
9246 </summary> 7857 </summary>
9247 <param name="targetID">target key of avatar to eject</param>
9248 <param name="ban">true to also ban target</param>
9249 </member> 7858 </member>
9250 <member name="M:OpenMetaverse.ParcelManager.FreezeUser(OpenMetaverse.UUID,System.Boolean)"> 7859 <member name="P:OpenMetaverse.FriendInfo.CanSeeThemOnMap">
9251 <summary> 7860 <summary>
9252 Freeze or unfreeze an avatar over your land 7861 True if I can see if my friend is on the map
9253 </summary> 7862 </summary>
9254 <param name="targetID">target key to freeze</param>
9255 <param name="freeze">true to freeze, false to unfreeze</param>
9256 </member> 7863 </member>
9257 <member name="M:OpenMetaverse.ParcelManager.ReleaseParcel(OpenMetaverse.Simulator,System.Int32)"> 7864 <member name="P:OpenMetaverse.FriendInfo.CanModifyTheirObjects">
9258 <summary> 7865 <summary>
9259 Abandon a parcel of land 7866 True if I can modify my friend's objects
9260 </summary> 7867 </summary>
9261 <param name="simulator">Simulator parcel is in</param>
9262 <param name="localID">Simulator local ID of parcel</param>
9263 </member> 7868 </member>
9264 <member name="M:OpenMetaverse.ParcelManager.RequestRemoteParcelID(OpenMetaverse.Vector3,System.UInt64,OpenMetaverse.UUID)"> 7869 <member name="P:OpenMetaverse.FriendInfo.TheirFriendRights">
9265 <summary> 7870 <summary>
9266 Requests the UUID of the parcel in a remote region at a specified location 7871 My friend's rights represented as bitmapped flags
9267 </summary> 7872 </summary>
9268 <param name="location">Location of the parcel in the remote region</param>
9269 <param name="regionHandle">Remote region handle</param>
9270 <param name="regionID">Remote region UUID</param>
9271 <returns>If successful UUID of the remote parcel, UUID.Zero otherwise</returns>
9272 </member> 7873 </member>
9273 <member name="M:OpenMetaverse.ParcelManager.GetParcelResouces(OpenMetaverse.UUID,System.Boolean,OpenMetaverse.ParcelManager.LandResourcesCallback)"> 7874 <member name="P:OpenMetaverse.FriendInfo.MyFriendRights">
9274 <summary> 7875 <summary>
9275 Retrieves information on resources used by the parcel 7876 My rights represented as bitmapped flags
9276 </summary> 7877 </summary>
9277 <param name="parcelID">UUID of the parcel</param>
9278 <param name="getDetails">Should per object resource usage be requested</param>
9279 <param name="callback">Callback invoked when the request is complete</param>
9280 </member> 7878 </member>
9281 <member name="M:OpenMetaverse.ParcelManager.ParcelDwellReplyHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)"> 7879 <member name="M:OpenMetaverse.FriendInfo.ToString">
9282 <summary>Process an incoming packet and raise the appropriate events</summary> 7880 <summary>
9283 <param name="sender">The sender</param> 7881 FriendInfo represented as a string
9284 <param name="e">The EventArgs object containing the packet data</param> 7882 </summary>
9285 <remarks>Raises the <see cref="E:OpenMetaverse.ParcelManager.ParcelDwellReply"/> event</remarks> 7883 <returns>A string reprentation of both my rights and my friends rights</returns>
9286 </member> 7884 </member>
9287 <member name="M:OpenMetaverse.ParcelManager.ParcelInfoReplyHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)"> 7885 <member name="T:OpenMetaverse.FriendsManager">
9288 <summary>Process an incoming packet and raise the appropriate events</summary> 7886 <summary>
9289 <param name="sender">The sender</param> 7887 This class is used to add and remove avatars from your friends list and to manage their permission.
9290 <param name="e">The EventArgs object containing the packet data</param> 7888 </summary>
9291 <remarks>Raises the <see cref="E:OpenMetaverse.ParcelManager.ParcelInfoReply"/> event</remarks>
9292 </member> 7889 </member>
9293 <member name="M:OpenMetaverse.ParcelManager.ParcelAccessListReplyHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)"> 7890 <member name="M:OpenMetaverse.FriendsManager.#ctor(OpenMetaverse.GridClient)">
7891 <summary>
7892 Internal constructor
7893 </summary>
7894 <param name="client">A reference to the GridClient Object</param>
7895 </member>
7896 <member name="F:OpenMetaverse.FriendsManager.m_FriendOnline">
7897 <summary>The event subscribers. null if no subcribers</summary>
7898 </member>
7899 <member name="F:OpenMetaverse.FriendsManager.m_FriendOnlineLock">
7900 <summary>Thread sync lock object</summary>
7901 </member>
7902 <member name="F:OpenMetaverse.FriendsManager.m_FriendOffline">
7903 <summary>The event subscribers. null if no subcribers</summary>
7904 </member>
7905 <member name="F:OpenMetaverse.FriendsManager.m_FriendOfflineLock">
7906 <summary>Thread sync lock object</summary>
7907 </member>
7908 <member name="F:OpenMetaverse.FriendsManager.m_FriendRights">
7909 <summary>The event subscribers. null if no subcribers</summary>
7910 </member>
7911 <member name="F:OpenMetaverse.FriendsManager.m_FriendRightsLock">
7912 <summary>Thread sync lock object</summary>
7913 </member>
7914 <member name="F:OpenMetaverse.FriendsManager.m_FriendNames">
7915 <summary>The event subscribers. null if no subcribers</summary>
7916 </member>
7917 <member name="F:OpenMetaverse.FriendsManager.m_FriendNamesLock">
7918 <summary>Thread sync lock object</summary>
7919 </member>
7920 <member name="F:OpenMetaverse.FriendsManager.m_FriendshipOffered">
7921 <summary>The event subscribers. null if no subcribers</summary>
7922 </member>
7923 <member name="F:OpenMetaverse.FriendsManager.m_FriendshipOfferedLock">
7924 <summary>Thread sync lock object</summary>
7925 </member>
7926 <member name="F:OpenMetaverse.FriendsManager.m_FriendshipResponse">
7927 <summary>The event subscribers. null if no subcribers</summary>
7928 </member>
7929 <member name="F:OpenMetaverse.FriendsManager.m_FriendshipResponseLock">
7930 <summary>Thread sync lock object</summary>
7931 </member>
7932 <member name="F:OpenMetaverse.FriendsManager.m_FriendshipTerminated">
7933 <summary>The event subscribers. null if no subcribers</summary>
7934 </member>
7935 <member name="F:OpenMetaverse.FriendsManager.m_FriendshipTerminatedLock">
7936 <summary>Thread sync lock object</summary>
7937 </member>
7938 <member name="F:OpenMetaverse.FriendsManager.m_FriendFound">
7939 <summary>The event subscribers. null if no subcribers</summary>
7940 </member>
7941 <member name="F:OpenMetaverse.FriendsManager.m_FriendFoundLock">
7942 <summary>Thread sync lock object</summary>
7943 </member>
7944 <member name="F:OpenMetaverse.FriendsManager.FriendList">
7945 <summary>
7946 A dictionary of key/value pairs containing known friends of this avatar.
7947 The Key is the <seealso cref="T:OpenMetaverse.UUID" /> of the friend, the value is a <seealso cref="T:OpenMetaverse.FriendInfo" />
7948 object that contains detailed information including permissions you have and have given to the friend
7949 </summary>
7950 </member>
7951 <member name="F:OpenMetaverse.FriendsManager.FriendRequests">
7952 <summary>
7953 A Dictionary of key/value pairs containing current pending frienship offers.
7954 The key is the <seealso cref="T:OpenMetaverse.UUID" /> of the avatar making the request,
7955 the value is the <seealso cref="T:OpenMetaverse.UUID" /> of the request which is used to accept
7956 or decline the friendship offer
7957 </summary>
7958 </member>
7959 <member name="E:OpenMetaverse.FriendsManager.FriendOnline">
7960 <summary>Raised when the simulator sends notification one of the members in our friends list comes online</summary>
7961 </member>
7962 <member name="E:OpenMetaverse.FriendsManager.FriendOffline">
7963 <summary>Raised when the simulator sends notification one of the members in our friends list goes offline</summary>
7964 </member>
7965 <member name="E:OpenMetaverse.FriendsManager.FriendRightsUpdate">
7966 <summary>Raised when the simulator sends notification one of the members in our friends list grants or revokes permissions</summary>
7967 </member>
7968 <member name="E:OpenMetaverse.FriendsManager.FriendNames">
7969 <summary>Raised when the simulator sends us the names on our friends list</summary>
7970 </member>
7971 <member name="E:OpenMetaverse.FriendsManager.FriendshipOffered">
7972 <summary>Raised when the simulator sends notification another agent is offering us friendship</summary>
7973 </member>
7974 <member name="E:OpenMetaverse.FriendsManager.FriendshipResponse">
7975 <summary>Raised when a request we sent to friend another agent is accepted or declined</summary>
7976 </member>
7977 <member name="E:OpenMetaverse.FriendsManager.FriendshipTerminated">
7978 <summary>Raised when the simulator sends notification one of the members in our friends list has terminated
7979 our friendship</summary>
7980 </member>
7981 <member name="E:OpenMetaverse.FriendsManager.FriendFoundReply">
7982 <summary>Raised when the simulator sends the location of a friend we have
7983 requested map location info for</summary>
7984 </member>
7985 <member name="M:OpenMetaverse.FriendsManager.OnFriendOnline(OpenMetaverse.FriendInfoEventArgs)">
7986 <summary>Raises the FriendOnline event</summary>
7987 <param name="e">A FriendInfoEventArgs object containing the
7988 data returned from the data server</param>
7989 </member>
7990 <member name="M:OpenMetaverse.FriendsManager.OnFriendOffline(OpenMetaverse.FriendInfoEventArgs)">
7991 <summary>Raises the FriendOffline event</summary>
7992 <param name="e">A FriendInfoEventArgs object containing the
7993 data returned from the data server</param>
7994 </member>
7995 <member name="M:OpenMetaverse.FriendsManager.OnFriendRights(OpenMetaverse.FriendInfoEventArgs)">
7996 <summary>Raises the FriendRightsUpdate event</summary>
7997 <param name="e">A FriendInfoEventArgs object containing the
7998 data returned from the data server</param>
7999 </member>
8000 <member name="M:OpenMetaverse.FriendsManager.OnFriendNames(OpenMetaverse.FriendNamesEventArgs)">
8001 <summary>Raises the FriendNames event</summary>
8002 <param name="e">A FriendNamesEventArgs object containing the
8003 data returned from the data server</param>
8004 </member>
8005 <member name="M:OpenMetaverse.FriendsManager.OnFriendshipOffered(OpenMetaverse.FriendshipOfferedEventArgs)">
8006 <summary>Raises the FriendshipOffered event</summary>
8007 <param name="e">A FriendshipOfferedEventArgs object containing the
8008 data returned from the data server</param>
8009 </member>
8010 <member name="M:OpenMetaverse.FriendsManager.OnFriendshipResponse(OpenMetaverse.FriendshipResponseEventArgs)">
8011 <summary>Raises the FriendshipResponse event</summary>
8012 <param name="e">A FriendshipResponseEventArgs object containing the
8013 data returned from the data server</param>
8014 </member>
8015 <member name="M:OpenMetaverse.FriendsManager.OnFriendshipTerminated(OpenMetaverse.FriendshipTerminatedEventArgs)">
8016 <summary>Raises the FriendshipTerminated event</summary>
8017 <param name="e">A FriendshipTerminatedEventArgs object containing the
8018 data returned from the data server</param>
8019 </member>
8020 <member name="M:OpenMetaverse.FriendsManager.OnFriendFoundReply(OpenMetaverse.FriendFoundReplyEventArgs)">
8021 <summary>Raises the FriendFoundReply event</summary>
8022 <param name="e">A FriendFoundReplyEventArgs object containing the
8023 data returned from the data server</param>
8024 </member>
8025 <member name="M:OpenMetaverse.FriendsManager.AcceptFriendship(OpenMetaverse.UUID,OpenMetaverse.UUID)">
8026 <summary>
8027 Accept a friendship request
8028 </summary>
8029 <param name="fromAgentID">agentID of avatatar to form friendship with</param>
8030 <param name="imSessionID">imSessionID of the friendship request message</param>
8031 </member>
8032 <member name="M:OpenMetaverse.FriendsManager.DeclineFriendship(OpenMetaverse.UUID,OpenMetaverse.UUID)">
8033 <summary>
8034 Decline a friendship request
8035 </summary>
8036 <param name="fromAgentID">
8037 <seealso cref="T:OpenMetaverse.UUID" /> of friend</param>
8038 <param name="imSessionID">imSessionID of the friendship request message</param>
8039 </member>
8040 <member name="M:OpenMetaverse.FriendsManager.OfferFriendship(OpenMetaverse.UUID)">
8041 <summary>
8042 Overload: Offer friendship to an avatar.
8043 </summary>
8044 <param name="agentID">System ID of the avatar you are offering friendship to</param>
8045 </member>
8046 <member name="M:OpenMetaverse.FriendsManager.OfferFriendship(OpenMetaverse.UUID,System.String)">
8047 <summary>
8048 Offer friendship to an avatar.
8049 </summary>
8050 <param name="agentID">System ID of the avatar you are offering friendship to</param>
8051 <param name="message">A message to send with the request</param>
8052 </member>
8053 <member name="M:OpenMetaverse.FriendsManager.TerminateFriendship(OpenMetaverse.UUID)">
8054 <summary>
8055 Terminate a friendship with an avatar
8056 </summary>
8057 <param name="agentID">System ID of the avatar you are terminating the friendship with</param>
8058 </member>
8059 <member name="M:OpenMetaverse.FriendsManager.TerminateFriendshipHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
9294 <summary>Process an incoming packet and raise the appropriate events</summary> 8060 <summary>Process an incoming packet and raise the appropriate events</summary>
9295 <param name="sender">The sender</param> 8061 <param name="sender">The sender</param>
9296 <param name="e">The EventArgs object containing the packet data</param> 8062 <param name="e">The EventArgs object containing the packet data</param>
9297 <remarks>Raises the <see cref="E:OpenMetaverse.ParcelManager.ParcelAccessListReply"/> event</remarks>
9298 </member> 8063 </member>
9299 <member name="M:OpenMetaverse.ParcelManager.SelectParcelObjectsReplyHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)"> 8064 <member name="M:OpenMetaverse.FriendsManager.GrantRights(OpenMetaverse.UUID,OpenMetaverse.FriendRights)">
8065 <summary>
8066 Change the rights of a friend avatar.
8067 </summary>
8068 <param name="friendID">the <seealso cref="T:OpenMetaverse.UUID" /> of the friend</param>
8069 <param name="rights">the new rights to give the friend</param>
8070 <remarks>This method will implicitly set the rights to those passed in the rights parameter.</remarks>
8071 </member>
8072 <member name="M:OpenMetaverse.FriendsManager.MapFriend(OpenMetaverse.UUID)">
8073 <summary>
8074 Use to map a friends location on the grid.
8075 </summary>
8076 <param name="friendID">Friends UUID to find</param>
8077 <remarks>
8078 <seealso cref="E:OnFriendFound" />
8079 </remarks>
8080 </member>
8081 <member name="M:OpenMetaverse.FriendsManager.TrackFriend(OpenMetaverse.UUID)">
8082 <summary>
8083 Use to track a friends movement on the grid
8084 </summary>
8085 <param name="friendID">Friends Key</param>
8086 </member>
8087 <member name="M:OpenMetaverse.FriendsManager.RequestOnlineNotification(OpenMetaverse.UUID)">
8088 <summary>
8089 Ask for a notification of friend's online status
8090 </summary>
8091 <param name="friendID">Friend's UUID</param>
8092 </member>
8093 <member name="M:OpenMetaverse.FriendsManager.Avatars_OnAvatarNames(System.Object,OpenMetaverse.UUIDNameReplyEventArgs)">
8094 <summary>
8095 This handles the asynchronous response of a RequestAvatarNames call.
8096 </summary>
8097 <param name="sender">
8098 </param>
8099 <param name="e">names cooresponding to the the list of IDs sent the the RequestAvatarNames call.</param>
8100 </member>
8101 <member name="M:OpenMetaverse.FriendsManager.OnlineNotificationHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
9300 <summary>Process an incoming packet and raise the appropriate events</summary> 8102 <summary>Process an incoming packet and raise the appropriate events</summary>
9301 <param name="sender">The sender</param> 8103 <param name="sender">The sender</param>
9302 <param name="e">The EventArgs object containing the packet data</param> 8104 <param name="e">The EventArgs object containing the packet data</param>
9303 <remarks>Raises the <see cref="E:OpenMetaverse.ParcelManager.ForceSelectObjectsReply"/> event</remarks>
9304 </member> 8105 </member>
9305 <member name="M:OpenMetaverse.ParcelManager.ParcelMediaUpdateHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)"> 8106 <member name="M:OpenMetaverse.FriendsManager.OfflineNotificationHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
9306 <summary>Process an incoming packet and raise the appropriate events</summary> 8107 <summary>Process an incoming packet and raise the appropriate events</summary>
9307 <param name="sender">The sender</param> 8108 <param name="sender">The sender</param>
9308 <param name="e">The EventArgs object containing the packet data</param> 8109 <param name="e">The EventArgs object containing the packet data</param>
9309 <remarks>Raises the <see cref="E:OpenMetaverse.ParcelManager.ParcelMediaUpdateReply"/> event</remarks>
9310 </member> 8110 </member>
9311 <member name="M:OpenMetaverse.ParcelManager.ParcelOverlayHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)"> 8111 <member name="M:OpenMetaverse.FriendsManager.ChangeUserRightsHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
9312 <summary>Process an incoming packet and raise the appropriate events</summary> 8112 <summary>Process an incoming packet and raise the appropriate events</summary>
9313 <param name="sender">The sender</param> 8113 <param name="sender">The sender</param>
9314 <param name="e">The EventArgs object containing the packet data</param> 8114 <param name="e">The EventArgs object containing the packet data</param>
9315 </member> 8115 </member>
9316 <member name="M:OpenMetaverse.ParcelManager.ParcelMediaCommandMessagePacketHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)"> 8116 <member name="M:OpenMetaverse.FriendsManager.OnFindAgentReplyHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
9317 <summary>Process an incoming packet and raise the appropriate events</summary> 8117 <summary>Process an incoming packet and raise the appropriate events</summary>
9318 <param name="sender">The sender</param> 8118 <param name="sender">The sender</param>
9319 <param name="e">The EventArgs object containing the packet data</param> 8119 <param name="e">The EventArgs object containing the packet data</param>
9320 <remarks>Raises the <see cref="E:OpenMetaverse.ParcelManager.ParcelMediaCommand"/> event</remarks>
9321 </member>
9322 <member name="E:OpenMetaverse.ParcelManager.ParcelDwellReply">
9323 <summary>Raised when the simulator responds to a <see cref="M:OpenMetaverse.ParcelManager.RequestDwell(OpenMetaverse.Simulator,System.Int32)"/> request</summary>
9324 </member> 8120 </member>
9325 <member name="E:OpenMetaverse.ParcelManager.ParcelInfoReply"> 8121 <member name="M:OpenMetaverse.FriendsManager.Network_OnLoginResponse(System.Boolean,System.Boolean,System.String,System.String,OpenMetaverse.LoginResponseData)">
9326 <summary>Raised when the simulator responds to a <see cref="M:OpenMetaverse.ParcelManager.RequestParcelInfo(OpenMetaverse.UUID)"/> request</summary> 8122 <summary>
8123 Populate FriendList <seealso cref="!:InternalDictionary" /> with data from the login reply
8124 </summary>
8125 <param name="loginSuccess">true if login was successful</param>
8126 <param name="redirect">true if login request is requiring a redirect</param>
8127 <param name="message">A string containing the response to the login request</param>
8128 <param name="reason">A string containing the reason for the request</param>
8129 <param name="replyData">A <seealso cref="T:OpenMetaverse.LoginResponseData" /> object containing the decoded
8130 reply from the login server</param>
9327 </member> 8131 </member>
9328 <member name="E:OpenMetaverse.ParcelManager.ParcelProperties"> 8132 <member name="T:OpenMetaverse.FriendInfoEventArgs">
9329 <summary>Raised when the simulator responds to a <see cref="M:OpenMetaverse.ParcelManager.RequestParcelProperties(OpenMetaverse.Simulator,System.Int32,System.Int32)"/> request</summary> 8133 <summary>Contains information on a member of our friends list</summary>
9330 </member> 8134 </member>
9331 <member name="E:OpenMetaverse.ParcelManager.ParcelAccessListReply"> 8135 <member name="M:OpenMetaverse.FriendInfoEventArgs.#ctor(OpenMetaverse.FriendInfo)">
9332 <summary>Raised when the simulator responds to a <see cref="M:OpenMetaverse.ParcelManager.RequestParcelAccessList(OpenMetaverse.Simulator,System.Int32,OpenMetaverse.AccessList,System.Int32)"/> request</summary> 8136 <summary>
8137 Construct a new instance of the FriendInfoEventArgs class
8138 </summary>
8139 <param name="friend">The FriendInfo</param>
9333 </member> 8140 </member>
9334 <member name="E:OpenMetaverse.ParcelManager.ParcelObjectOwnersReply"> 8141 <member name="P:OpenMetaverse.FriendInfoEventArgs.Friend">
9335 <summary>Raised when the simulator responds to a <see cref="M:OpenMetaverse.ParcelManager.RequestObjectOwners(OpenMetaverse.Simulator,System.Int32)"/> request</summary> 8142 <summary>Get the FriendInfo</summary>
9336 </member> 8143 </member>
9337 <member name="E:OpenMetaverse.ParcelManager.SimParcelsDownloaded"> 8144 <member name="T:OpenMetaverse.FriendNamesEventArgs">
9338 <summary>Raised when the simulator responds to a <see cref="M:OpenMetaverse.ParcelManager.RequestAllSimParcels(OpenMetaverse.Simulator)"/> request</summary> 8145 <summary>Contains Friend Names</summary>
9339 </member> 8146 </member>
9340 <member name="E:OpenMetaverse.ParcelManager.ForceSelectObjectsReply"> 8147 <member name="M:OpenMetaverse.FriendNamesEventArgs.#ctor(System.Collections.Generic.Dictionary{OpenMetaverse.UUID,System.String})">
9341 <summary>Raised when the simulator responds to a <see cref="!:RequestForceSelectObjects"/> request</summary> 8148 <summary>
8149 Construct a new instance of the FriendNamesEventArgs class
8150 </summary>
8151 <param name="names">A dictionary where the Key is the ID of the Agent,
8152 and the Value is a string containing their name</param>
9342 </member> 8153 </member>
9343 <member name="E:OpenMetaverse.ParcelManager.ParcelMediaUpdateReply"> 8154 <member name="P:OpenMetaverse.FriendNamesEventArgs.Names">
9344 <summary>Raised when the simulator responds to a Parcel Update request</summary> 8155 <summary>A dictionary where the Key is the ID of the Agent,
8156 and the Value is a string containing their name</summary>
9345 </member> 8157 </member>
9346 <member name="E:OpenMetaverse.ParcelManager.ParcelMediaCommand"> 8158 <member name="T:OpenMetaverse.FriendshipOfferedEventArgs">
9347 <summary>Raised when the parcel your agent is located sends a ParcelMediaCommand</summary> 8159 <summary>Sent when another agent requests a friendship with our agent</summary>
9348 </member> 8160 </member>
9349 <member name="T:OpenMetaverse.ParcelManager.ParcelAccessEntry"> 8161 <member name="M:OpenMetaverse.FriendshipOfferedEventArgs.#ctor(OpenMetaverse.UUID,System.String,OpenMetaverse.UUID)">
9350 <summary> 8162 <summary>
9351 Parcel Accesslist 8163 Construct a new instance of the FriendshipOfferedEventArgs class
9352 </summary> 8164 </summary>
8165 <param name="agentID">The ID of the agent requesting friendship</param>
8166 <param name="agentName">The name of the agent requesting friendship</param>
8167 <param name="imSessionID">The ID of the session, used in accepting or declining the
8168 friendship offer</param>
9353 </member> 8169 </member>
9354 <member name="F:OpenMetaverse.ParcelManager.ParcelAccessEntry.AgentID"> 8170 <member name="P:OpenMetaverse.FriendshipOfferedEventArgs.AgentID">
9355 <summary>Agents <seealso cref="T:OpenMetaverse.UUID"/></summary> 8171 <summary>Get the ID of the agent requesting friendship</summary>
9356 </member> 8172 </member>
9357 <member name="F:OpenMetaverse.ParcelManager.ParcelAccessEntry.Time"> 8173 <member name="P:OpenMetaverse.FriendshipOfferedEventArgs.AgentName">
9358 <summary></summary> 8174 <summary>Get the name of the agent requesting friendship</summary>
9359 </member> 8175 </member>
9360 <member name="F:OpenMetaverse.ParcelManager.ParcelAccessEntry.Flags"> 8176 <member name="P:OpenMetaverse.FriendshipOfferedEventArgs.SessionID">
9361 <summary>Flags for specific entry in white/black lists</summary> 8177 <summary>Get the ID of the session, used in accepting or declining the
8178 friendship offer</summary>
9362 </member> 8179 </member>
9363 <member name="T:OpenMetaverse.ParcelManager.ParcelPrimOwners"> 8180 <member name="T:OpenMetaverse.FriendshipResponseEventArgs">
8181 <summary>A response containing the results of our request to form a friendship with another agent</summary>
8182 </member>
8183 <member name="M:OpenMetaverse.FriendshipResponseEventArgs.#ctor(OpenMetaverse.UUID,System.String,System.Boolean)">
9364 <summary> 8184 <summary>
9365 Owners of primitives on parcel 8185 Construct a new instance of the FriendShipResponseEventArgs class
9366 </summary> 8186 </summary>
8187 <param name="agentID">The ID of the agent we requested a friendship with</param>
8188 <param name="agentName">The name of the agent we requested a friendship with</param>
8189 <param name="accepted">true if the agent accepted our friendship offer</param>
9367 </member> 8190 </member>
9368 <member name="F:OpenMetaverse.ParcelManager.ParcelPrimOwners.OwnerID"> 8191 <member name="P:OpenMetaverse.FriendshipResponseEventArgs.AgentID">
9369 <summary>Prim Owners <seealso cref="T:OpenMetaverse.UUID"/></summary> 8192 <summary>Get the ID of the agent we requested a friendship with</summary>
9370 </member>
9371 <member name="F:OpenMetaverse.ParcelManager.ParcelPrimOwners.IsGroupOwned">
9372 <summary>True of owner is group</summary>
9373 </member> 8193 </member>
9374 <member name="F:OpenMetaverse.ParcelManager.ParcelPrimOwners.Count"> 8194 <member name="P:OpenMetaverse.FriendshipResponseEventArgs.AgentName">
9375 <summary>Total count of prims owned by OwnerID</summary> 8195 <summary>Get the name of the agent we requested a friendship with</summary>
9376 </member> 8196 </member>
9377 <member name="F:OpenMetaverse.ParcelManager.ParcelPrimOwners.OnlineStatus"> 8197 <member name="P:OpenMetaverse.FriendshipResponseEventArgs.Accepted">
9378 <summary>true of OwnerID is currently online and is not a group</summary> 8198 <summary>true if the agent accepted our friendship offer</summary>
9379 </member> 8199 </member>
9380 <member name="F:OpenMetaverse.ParcelManager.ParcelPrimOwners.NewestPrim"> 8200 <member name="T:OpenMetaverse.FriendshipTerminatedEventArgs">
9381 <summary>The date of the most recent prim left by OwnerID</summary> 8201 <summary>Contains data sent when a friend terminates a friendship with us</summary>
9382 </member> 8202 </member>
9383 <member name="T:OpenMetaverse.ParcelManager.LandResourcesCallback"> 8203 <member name="M:OpenMetaverse.FriendshipTerminatedEventArgs.#ctor(OpenMetaverse.UUID,System.String)">
9384 <summary> 8204 <summary>
9385 Called once parcel resource usage information has been collected 8205 Construct a new instance of the FrindshipTerminatedEventArgs class
9386 </summary> 8206 </summary>
9387 <param name="success">Indicates if operation was successfull</param> 8207 <param name="agentID">The ID of the friend who terminated the friendship with us</param>
9388 <param name="info">Parcel resource usage information</param> 8208 <param name="agentName">The name of the friend who terminated the friendship with us</param>
9389 </member> 8209 </member>
9390 <member name="T:OpenMetaverse.ParcelDwellReplyEventArgs"> 8210 <member name="P:OpenMetaverse.FriendshipTerminatedEventArgs.AgentID">
9391 <summary>Contains a parcels dwell data returned from the simulator in response to an <see cref="!:RequestParcelDwell"/></summary> 8211 <summary>Get the ID of the agent that terminated the friendship with us</summary>
9392 </member> 8212 </member>
9393 <member name="M:OpenMetaverse.ParcelDwellReplyEventArgs.#ctor(OpenMetaverse.UUID,System.Int32,System.Single)"> 8213 <member name="P:OpenMetaverse.FriendshipTerminatedEventArgs.AgentName">
8214 <summary>Get the name of the agent that terminated the friendship with us</summary>
8215 </member>
8216 <member name="T:OpenMetaverse.FriendFoundReplyEventArgs">
9394 <summary> 8217 <summary>
9395 Construct a new instance of the ParcelDwellReplyEventArgs class 8218 Data sent in response to a <see cref="!:FindFriend" /> request which contains the information to allow us to map the friends location
9396 </summary> 8219 </summary>
9397 <param name="parcelID">The global ID of the parcel</param>
9398 <param name="localID">The simulator specific ID of the parcel</param>
9399 <param name="dwell">The calculated dwell for the parcel</param>
9400 </member> 8220 </member>
9401 <member name="P:OpenMetaverse.ParcelDwellReplyEventArgs.ParcelID"> 8221 <member name="M:OpenMetaverse.FriendFoundReplyEventArgs.#ctor(OpenMetaverse.UUID,System.UInt64,OpenMetaverse.Vector3)">
9402 <summary>Get the global ID of the parcel</summary> 8222 <summary>
8223 Construct a new instance of the FriendFoundReplyEventArgs class
8224 </summary>
8225 <param name="agentID">The ID of the agent we have requested location information for</param>
8226 <param name="regionHandle">The region handle where our friend is located</param>
8227 <param name="location">The simulator local position our friend is located</param>
9403 </member> 8228 </member>
9404 <member name="P:OpenMetaverse.ParcelDwellReplyEventArgs.LocalID"> 8229 <member name="P:OpenMetaverse.FriendFoundReplyEventArgs.AgentID">
9405 <summary>Get the simulator specific ID of the parcel</summary> 8230 <summary>Get the ID of the agent we have received location information for</summary>
9406 </member> 8231 </member>
9407 <member name="P:OpenMetaverse.ParcelDwellReplyEventArgs.Dwell"> 8232 <member name="P:OpenMetaverse.FriendFoundReplyEventArgs.RegionHandle">
9408 <summary>Get the calculated dwell</summary> 8233 <summary>Get the region handle where our mapped friend is located</summary>
9409 </member> 8234 </member>
9410 <member name="T:OpenMetaverse.ParcelInfoReplyEventArgs"> 8235 <member name="P:OpenMetaverse.FriendFoundReplyEventArgs.Location">
9411 <summary>Contains basic parcel information data returned from the 8236 <summary>Get the simulator local position where our friend is located</summary>
9412 simulator in response to an <see cref="!:RequestParcelInfo"/> request</summary>
9413 </member> 8237 </member>
9414 <member name="M:OpenMetaverse.ParcelInfoReplyEventArgs.#ctor(OpenMetaverse.ParcelInfo)"> 8238 <member name="T:OpenMetaverse.GridClient">
9415 <summary> 8239 <summary>
9416 Construct a new instance of the ParcelInfoReplyEventArgs class 8240 Main class to expose grid functionality to clients. All of the
8241 classes needed for sending and receiving data are accessible through
8242 this class.
9417 </summary> 8243 </summary>
9418 <param name="parcel">The <see cref="T:OpenMetaverse.ParcelInfo"/> object containing basic parcel info</param> 8244 <example>
9419 </member> 8245 <code>
9420 <member name="P:OpenMetaverse.ParcelInfoReplyEventArgs.Parcel"> 8246 // Example minimum code required to instantiate class and
9421 <summary>Get the <see cref="T:OpenMetaverse.ParcelInfo"/> object containing basic parcel info</summary> 8247 // connect to a simulator.
9422 </member> 8248 using System;
9423 <member name="T:OpenMetaverse.ParcelPropertiesEventArgs"> 8249 using System.Collections.Generic;
9424 <summary>Contains basic parcel information data returned from the simulator in response to an <see cref="!:RequestParcelInfo"/> request</summary> 8250 using System.Text;
8251 using OpenMetaverse;
8252 namespace FirstBot
8253 {
8254 class Bot
8255 {
8256 public static GridClient Client;
8257 static void Main(string[] args)
8258 {
8259 Client = new GridClient(); // instantiates the GridClient class
8260 // to the global Client object
8261 // Login to Simulator
8262 Client.Network.Login("FirstName", "LastName", "Password", "FirstBot", "1.0");
8263 // Wait for a Keypress
8264 Console.ReadLine();
8265 // Logout of simulator
8266 Client.Network.Logout();
8267 }
8268 }
8269 }
8270 </code>
8271 </example>
9425 </member> 8272 </member>
9426 <member name="M:OpenMetaverse.ParcelPropertiesEventArgs.#ctor(OpenMetaverse.Simulator,OpenMetaverse.Parcel,OpenMetaverse.ParcelResult,System.Int32,System.Int32,System.Boolean)"> 8273 <member name="M:OpenMetaverse.GridClient.#ctor">
9427 <summary> 8274 <summary>
9428 Construct a new instance of the ParcelPropertiesEventArgs class 8275 Default constructor
9429 </summary> 8276 </summary>
9430 <param name="simulator">The <see cref="P:OpenMetaverse.ParcelPropertiesEventArgs.Parcel"/> object containing the details</param>
9431 <param name="parcel">The <see cref="P:OpenMetaverse.ParcelPropertiesEventArgs.Parcel"/> object containing the details</param>
9432 <param name="result">The result of the request</param>
9433 <param name="selectedPrims">The number of primitieves your agent is
9434 currently selecting and or sitting on in this parcel</param>
9435 <param name="sequenceID">The user assigned ID used to correlate a request with
9436 these results</param>
9437 <param name="snapSelection">TODO:</param>
9438 </member> 8277 </member>
9439 <member name="P:OpenMetaverse.ParcelPropertiesEventArgs.Simulator"> 8278 <member name="F:OpenMetaverse.GridClient.Network">
9440 <summary>Get the simulator the parcel is located in</summary> 8279 <summary>Networking subsystem</summary>
9441 </member> 8280 </member>
9442 <member name="P:OpenMetaverse.ParcelPropertiesEventArgs.Parcel"> 8281 <member name="F:OpenMetaverse.GridClient.Settings">
9443 <summary>Get the <see cref="P:OpenMetaverse.ParcelPropertiesEventArgs.Parcel"/> object containing the details</summary> 8282 <summary>Settings class including constant values and changeable
9444 <remarks>If Result is NoData, this object will not contain valid data</remarks> 8283 parameters for everything</summary>
9445 </member> 8284 </member>
9446 <member name="P:OpenMetaverse.ParcelPropertiesEventArgs.Result"> 8285 <member name="F:OpenMetaverse.GridClient.Parcels">
9447 <summary>Get the result of the request</summary> 8286 <summary>Parcel (subdivided simulator lots) subsystem</summary>
9448 </member> 8287 </member>
9449 <member name="P:OpenMetaverse.ParcelPropertiesEventArgs.SelectedPrims"> 8288 <member name="F:OpenMetaverse.GridClient.Self">
9450 <summary>Get the number of primitieves your agent is 8289 <summary>Our own avatars subsystem</summary>
9451 currently selecting and or sitting on in this parcel</summary>
9452 </member> 8290 </member>
9453 <member name="P:OpenMetaverse.ParcelPropertiesEventArgs.SequenceID"> 8291 <member name="F:OpenMetaverse.GridClient.Avatars">
9454 <summary>Get the user assigned ID used to correlate a request with 8292 <summary>Other avatars subsystem</summary>
9455 these results</summary>
9456 </member> 8293 </member>
9457 <member name="P:OpenMetaverse.ParcelPropertiesEventArgs.SnapSelection"> 8294 <member name="F:OpenMetaverse.GridClient.Estate">
9458 <summary>TODO:</summary> 8295 <summary>Estate subsystem</summary>
9459 </member> 8296 </member>
9460 <member name="T:OpenMetaverse.ParcelAccessListReplyEventArgs"> 8297 <member name="F:OpenMetaverse.GridClient.Friends">
9461 <summary>Contains blacklist and whitelist data returned from the simulator in response to an <see cref="!:RequestParcelAccesslist"/> request</summary> 8298 <summary>Friends list subsystem</summary>
9462 </member> 8299 </member>
9463 <member name="M:OpenMetaverse.ParcelAccessListReplyEventArgs.#ctor(OpenMetaverse.Simulator,System.Int32,System.Int32,System.UInt32,System.Collections.Generic.List{OpenMetaverse.ParcelManager.ParcelAccessEntry})"> 8300 <member name="F:OpenMetaverse.GridClient.Grid">
9464 <summary> 8301 <summary>Grid (aka simulator group) subsystem</summary>
9465 Construct a new instance of the ParcelAccessListReplyEventArgs class
9466 </summary>
9467 <param name="simulator">The simulator the parcel is located in</param>
9468 <param name="sequenceID">The user assigned ID used to correlate a request with
9469 these results</param>
9470 <param name="localID">The simulator specific ID of the parcel</param>
9471 <param name="flags">TODO:</param>
9472 <param name="accessEntries">The list containing the white/blacklisted agents for the parcel</param>
9473 </member> 8302 </member>
9474 <member name="P:OpenMetaverse.ParcelAccessListReplyEventArgs.Simulator"> 8303 <member name="F:OpenMetaverse.GridClient.Objects">
9475 <summary>Get the simulator the parcel is located in</summary> 8304 <summary>Object subsystem</summary>
9476 </member> 8305 </member>
9477 <member name="P:OpenMetaverse.ParcelAccessListReplyEventArgs.SequenceID"> 8306 <member name="F:OpenMetaverse.GridClient.Groups">
9478 <summary>Get the user assigned ID used to correlate a request with 8307 <summary>Group subsystem</summary>
9479 these results</summary>
9480 </member> 8308 </member>
9481 <member name="P:OpenMetaverse.ParcelAccessListReplyEventArgs.LocalID"> 8309 <member name="F:OpenMetaverse.GridClient.Assets">
9482 <summary>Get the simulator specific ID of the parcel</summary> 8310 <summary>Asset subsystem</summary>
9483 </member> 8311 </member>
9484 <member name="P:OpenMetaverse.ParcelAccessListReplyEventArgs.Flags"> 8312 <member name="F:OpenMetaverse.GridClient.Appearance">
9485 <summary>TODO:</summary> 8313 <summary>Appearance subsystem</summary>
9486 </member> 8314 </member>
9487 <member name="P:OpenMetaverse.ParcelAccessListReplyEventArgs.AccessList"> 8315 <member name="F:OpenMetaverse.GridClient.Inventory">
9488 <summary>Get the list containing the white/blacklisted agents for the parcel</summary> 8316 <summary>Inventory subsystem</summary>
9489 </member> 8317 </member>
9490 <member name="T:OpenMetaverse.ParcelObjectOwnersReplyEventArgs"> 8318 <member name="F:OpenMetaverse.GridClient.Directory">
9491 <summary>Contains blacklist and whitelist data returned from the 8319 <summary>Directory searches including classifieds, people, land
9492 simulator in response to an <see cref="!:RequestParcelAccesslist"/> request</summary> 8320 sales, etc</summary>
9493 </member> 8321 </member>
9494 <member name="M:OpenMetaverse.ParcelObjectOwnersReplyEventArgs.#ctor(OpenMetaverse.Simulator,System.Collections.Generic.List{OpenMetaverse.ParcelManager.ParcelPrimOwners})"> 8322 <member name="F:OpenMetaverse.GridClient.Terrain">
8323 <summary>Handles land, wind, and cloud heightmaps</summary>
8324 </member>
8325 <member name="F:OpenMetaverse.GridClient.Sound">
8326 <summary>Handles sound-related networking</summary>
8327 </member>
8328 <member name="F:OpenMetaverse.GridClient.Throttle">
8329 <summary>Throttling total bandwidth usage, or allocating bandwidth
8330 for specific data stream types</summary>
8331 </member>
8332 <member name="M:OpenMetaverse.GridClient.ToString">
9495 <summary> 8333 <summary>
9496 Construct a new instance of the ParcelObjectOwnersReplyEventArgs class 8334 Return the full name of this instance
9497 </summary> 8335 </summary>
9498 <param name="simulator">The simulator the parcel is located in</param> 8336 <returns>Client avatars full name</returns>
9499 <param name="primOwners">The list containing prim ownership counts</param>
9500 </member> 8337 </member>
9501 <member name="P:OpenMetaverse.ParcelObjectOwnersReplyEventArgs.Simulator"> 8338 <member name="T:OpenMetaverse.GridLayerType">
9502 <summary>Get the simulator the parcel is located in</summary> 8339 <summary>
8340 Map layer request type
8341 </summary>
9503 </member> 8342 </member>
9504 <member name="P:OpenMetaverse.ParcelObjectOwnersReplyEventArgs.PrimOwners"> 8343 <member name="F:OpenMetaverse.GridLayerType.Objects">
9505 <summary>Get the list containing prim ownership counts</summary> 8344 <summary>Objects and terrain are shown</summary>
9506 </member> 8345 </member>
9507 <member name="T:OpenMetaverse.SimParcelsDownloadedEventArgs"> 8346 <member name="F:OpenMetaverse.GridLayerType.Terrain">
9508 <summary>Contains the data returned when all parcel data has been retrieved from a simulator</summary> 8347 <summary>Only the terrain is shown, no objects</summary>
9509 </member> 8348 </member>
9510 <member name="M:OpenMetaverse.SimParcelsDownloadedEventArgs.#ctor(OpenMetaverse.Simulator,OpenMetaverse.InternalDictionary{System.Int32,OpenMetaverse.Parcel},System.Int32[0:,0:])"> 8349 <member name="F:OpenMetaverse.GridLayerType.LandForSale">
8350 <summary>Overlay showing land for sale and for auction</summary>
8351 </member>
8352 <member name="T:OpenMetaverse.GridItemType">
9511 <summary> 8353 <summary>
9512 Construct a new instance of the SimParcelsDownloadedEventArgs class 8354 Type of grid item, such as telehub, event, populator location, etc.
9513 </summary> 8355 </summary>
9514 <param name="simulator">The simulator the parcel data was retrieved from</param>
9515 <param name="simParcels">The dictionary containing the parcel data</param>
9516 <param name="parcelMap">The multidimensional array containing a x,y grid mapped
9517 to each 64x64 parcel's LocalID.</param>
9518 </member> 8356 </member>
9519 <member name="P:OpenMetaverse.SimParcelsDownloadedEventArgs.Simulator"> 8357 <member name="F:OpenMetaverse.GridItemType.Telehub">
9520 <summary>Get the simulator the parcel data was retrieved from</summary> 8358 <summary>Telehub</summary>
9521 </member> 8359 </member>
9522 <member name="P:OpenMetaverse.SimParcelsDownloadedEventArgs.Parcels"> 8360 <member name="F:OpenMetaverse.GridItemType.PgEvent">
9523 <summary>A dictionary containing the parcel data where the key correlates to the ParcelMap entry</summary> 8361 <summary>PG rated event</summary>
9524 </member> 8362 </member>
9525 <member name="P:OpenMetaverse.SimParcelsDownloadedEventArgs.ParcelMap"> 8363 <member name="F:OpenMetaverse.GridItemType.MatureEvent">
9526 <summary>Get the multidimensional array containing a x,y grid mapped 8364 <summary>Mature rated event</summary>
9527 to each 64x64 parcel's LocalID.</summary>
9528 </member> 8365 </member>
9529 <member name="T:OpenMetaverse.ForceSelectObjectsReplyEventArgs"> 8366 <member name="F:OpenMetaverse.GridItemType.Popular">
9530 <summary>Contains the data returned when a <see cref="!:RequestForceSelectObjects"/> request</summary> 8367 <summary>Popular location</summary>
9531 </member> 8368 </member>
9532 <member name="M:OpenMetaverse.ForceSelectObjectsReplyEventArgs.#ctor(OpenMetaverse.Simulator,System.Collections.Generic.List{System.UInt32},System.Boolean)"> 8369 <member name="F:OpenMetaverse.GridItemType.AgentLocations">
9533 <summary> 8370 <summary>Locations of avatar groups in a region</summary>
9534 Construct a new instance of the ForceSelectObjectsReplyEventArgs class
9535 </summary>
9536 <param name="simulator">The simulator the parcel data was retrieved from</param>
9537 <param name="objectIDs">The list of primitive IDs</param>
9538 <param name="resetList">true if the list is clean and contains the information
9539 only for a given request</param>
9540 </member> 8371 </member>
9541 <member name="P:OpenMetaverse.ForceSelectObjectsReplyEventArgs.Simulator"> 8372 <member name="F:OpenMetaverse.GridItemType.LandForSale">
9542 <summary>Get the simulator the parcel data was retrieved from</summary> 8373 <summary>Land for sale</summary>
9543 </member> 8374 </member>
9544 <member name="P:OpenMetaverse.ForceSelectObjectsReplyEventArgs.ObjectIDs"> 8375 <member name="F:OpenMetaverse.GridItemType.Classified">
9545 <summary>Get the list of primitive IDs</summary> 8376 <summary>Classified ad</summary>
9546 </member> 8377 </member>
9547 <member name="P:OpenMetaverse.ForceSelectObjectsReplyEventArgs.ResetList"> 8378 <member name="F:OpenMetaverse.GridItemType.AdultEvent">
9548 <summary>true if the list is clean and contains the information 8379 <summary>Adult rated event</summary>
9549 only for a given request</summary>
9550 </member> 8380 </member>
9551 <member name="T:OpenMetaverse.ParcelMediaUpdateReplyEventArgs"> 8381 <member name="F:OpenMetaverse.GridItemType.AdultLandForSale">
9552 <summary>Contains data when the media data for a parcel the avatar is on changes</summary> 8382 <summary>Adult land for sale</summary>
9553 </member> 8383 </member>
9554 <member name="M:OpenMetaverse.ParcelMediaUpdateReplyEventArgs.#ctor(OpenMetaverse.Simulator,OpenMetaverse.ParcelMedia)"> 8384 <member name="T:OpenMetaverse.GridRegion">
9555 <summary> 8385 <summary>
9556 Construct a new instance of the ParcelMediaUpdateReplyEventArgs class 8386 Information about a region on the grid map
9557 </summary> 8387 </summary>
9558 <param name="simulator">the simulator the parcel media data was updated in</param>
9559 <param name="media">The updated media information</param>
9560 </member> 8388 </member>
9561 <member name="P:OpenMetaverse.ParcelMediaUpdateReplyEventArgs.Simulator"> 8389 <member name="F:OpenMetaverse.GridRegion.X">
9562 <summary>Get the simulator the parcel media data was updated in</summary> 8390 <summary>Sim X position on World Map</summary>
9563 </member> 8391 </member>
9564 <member name="P:OpenMetaverse.ParcelMediaUpdateReplyEventArgs.Media"> 8392 <member name="F:OpenMetaverse.GridRegion.Y">
9565 <summary>Get the updated media information</summary> 8393 <summary>Sim Y position on World Map</summary>
9566 </member> 8394 </member>
9567 <member name="T:OpenMetaverse.ParcelMediaCommandEventArgs"> 8395 <member name="F:OpenMetaverse.GridRegion.Name">
9568 <summary>Contains the media command for a parcel the agent is currently on</summary> 8396 <summary>Sim Name (NOTE: In lowercase!)</summary>
9569 </member> 8397 </member>
9570 <member name="M:OpenMetaverse.ParcelMediaCommandEventArgs.#ctor(OpenMetaverse.Simulator,System.UInt32,OpenMetaverse.ParcelFlags,OpenMetaverse.ParcelMediaCommand,System.Single)"> 8398 <member name="F:OpenMetaverse.GridRegion.Access">
9571 <summary> 8399 <summary>
9572 Construct a new instance of the ParcelMediaCommandEventArgs class
9573 </summary> 8400 </summary>
9574 <param name="simulator">The simulator the parcel media command was issued in</param>
9575 <param name="sequence"></param>
9576 <param name="flags"></param>
9577 <param name="command">The media command that was sent</param>
9578 <param name="time"></param>
9579 </member> 8401 </member>
9580 <member name="P:OpenMetaverse.ParcelMediaCommandEventArgs.Simulator"> 8402 <member name="F:OpenMetaverse.GridRegion.RegionFlags">
9581 <summary>Get the simulator the parcel media command was issued in</summary> 8403 <summary>Appears to always be zero (None)</summary>
9582 </member> 8404 </member>
9583 <member name="P:OpenMetaverse.ParcelMediaCommandEventArgs.Sequence"> 8405 <member name="F:OpenMetaverse.GridRegion.WaterHeight">
9584 <summary></summary> 8406 <summary>Sim's defined Water Height</summary>
9585 </member> 8407 </member>
9586 <member name="P:OpenMetaverse.ParcelMediaCommandEventArgs.ParcelFlags"> 8408 <member name="F:OpenMetaverse.GridRegion.Agents">
9587 <summary></summary> 8409 <summary>
8410 </summary>
9588 </member> 8411 </member>
9589 <member name="P:OpenMetaverse.ParcelMediaCommandEventArgs.MediaCommand"> 8412 <member name="F:OpenMetaverse.GridRegion.MapImageID">
9590 <summary>Get the media command that was sent</summary> 8413 <summary>UUID of the World Map image</summary>
9591 </member> 8414 </member>
9592 <member name="P:OpenMetaverse.ParcelMediaCommandEventArgs.Time"> 8415 <member name="F:OpenMetaverse.GridRegion.RegionHandle">
9593 <summary></summary> 8416 <summary>Unique identifier for this region, a combination of the X
8417 and Y position</summary>
9594 </member> 8418 </member>
9595 <member name="T:OpenMetaverse.DictionaryEventAction"> 8419 <member name="M:OpenMetaverse.GridRegion.ToString">
9596 <summary> 8420 <summary>
9597
9598 </summary> 8421 </summary>
8422 <returns>
8423 </returns>
9599 </member> 8424 </member>
9600 <member name="F:OpenMetaverse.DictionaryEventAction.Add"> 8425 <member name="M:OpenMetaverse.GridRegion.GetHashCode">
9601 <summary> 8426 <summary>
9602
9603 </summary> 8427 </summary>
8428 <returns>
8429 </returns>
9604 </member> 8430 </member>
9605 <member name="F:OpenMetaverse.DictionaryEventAction.Remove"> 8431 <member name="M:OpenMetaverse.GridRegion.Equals(System.Object)">
9606 <summary> 8432 <summary>
9607
9608 </summary> 8433 </summary>
8434 <param name="obj">
8435 </param>
8436 <returns>
8437 </returns>
9609 </member> 8438 </member>
9610 <member name="F:OpenMetaverse.DictionaryEventAction.Change"> 8439 <member name="T:OpenMetaverse.GridLayer">
9611 <summary> 8440 <summary>
9612 8441 Visual chunk of the grid map
9613 </summary> 8442 </summary>
9614 </member> 8443 </member>
9615 <member name="T:OpenMetaverse.DictionaryChangeCallback"> 8444 <member name="T:OpenMetaverse.MapItem">
9616 <summary> 8445 <summary>
9617 8446 Base class for Map Items
9618 </summary> 8447 </summary>
9619 <param name="action"></param>
9620 <param name="entry"></param>
9621 </member> 8448 </member>
9622 <member name="T:OpenMetaverse.ObservableDictionary`2"> 8449 <member name="F:OpenMetaverse.MapItem.GlobalX">
8450 <summary>The Global X position of the item</summary>
8451 </member>
8452 <member name="F:OpenMetaverse.MapItem.GlobalY">
8453 <summary>The Global Y position of the item</summary>
8454 </member>
8455 <member name="P:OpenMetaverse.MapItem.LocalX">
8456 <summary>Get the Local X position of the item</summary>
8457 </member>
8458 <member name="P:OpenMetaverse.MapItem.LocalY">
8459 <summary>Get the Local Y position of the item</summary>
8460 </member>
8461 <member name="P:OpenMetaverse.MapItem.RegionHandle">
8462 <summary>Get the Handle of the region</summary>
8463 </member>
8464 <member name="T:OpenMetaverse.MapAgentLocation">
9623 <summary> 8465 <summary>
9624 The ObservableDictionary class is used for storing key/value pairs. It has methods for firing 8466 Represents an agent or group of agents location
9625 events to subscribers when items are added, removed, or changed.
9626 </summary> 8467 </summary>
9627 <typeparam name="TKey">Key <see langword="Tkey"/></typeparam>
9628 <typeparam name="TValue">Value <see langword="TValue"/></typeparam>
9629 </member> 8468 </member>
9630 <member name="F:OpenMetaverse.ObservableDictionary`2.Delegates"> 8469 <member name="T:OpenMetaverse.MapTelehub">
9631 <summary> 8470 <summary>
9632 A dictionary of callbacks to fire when specified action occurs 8471 Represents a Telehub location
9633 </summary> 8472 </summary>
9634 </member> 8473 </member>
9635 <member name="M:OpenMetaverse.ObservableDictionary`2.AddDelegate(OpenMetaverse.DictionaryEventAction,OpenMetaverse.DictionaryChangeCallback)"> 8474 <member name="T:OpenMetaverse.MapLandForSale">
9636 <summary> 8475 <summary>
9637 Register a callback to be fired when an action occurs 8476 Represents a non-adult parcel of land for sale
9638 </summary> 8477 </summary>
9639 <param name="action">The action</param>
9640 <param name="callback">The callback to fire</param>
9641 </member> 8478 </member>
9642 <member name="M:OpenMetaverse.ObservableDictionary`2.RemoveDelegate(OpenMetaverse.DictionaryEventAction,OpenMetaverse.DictionaryChangeCallback)"> 8479 <member name="T:OpenMetaverse.MapAdultLandForSale">
9643 <summary> 8480 <summary>
9644 Unregister a callback 8481 Represents an Adult parcel of land for sale
9645 </summary> 8482 </summary>
9646 <param name="action">The action</param>
9647 <param name="callback">The callback to fire</param>
9648 </member> 8483 </member>
9649 <member name="M:OpenMetaverse.ObservableDictionary`2.FireChangeEvent(OpenMetaverse.DictionaryEventAction,System.Collections.DictionaryEntry)"> 8484 <member name="T:OpenMetaverse.MapPGEvent">
9650 <summary> 8485 <summary>
9651 8486 Represents a PG Event
9652 </summary> 8487 </summary>
9653 <param name="action"></param>
9654 <param name="entry"></param>
9655 </member>
9656 <member name="F:OpenMetaverse.ObservableDictionary`2.Dictionary">
9657 <summary>Internal dictionary that this class wraps around. Do not
9658 modify or enumerate the contents of this dictionary without locking</summary>
9659 </member> 8488 </member>
9660 <member name="M:OpenMetaverse.ObservableDictionary`2.#ctor"> 8489 <member name="T:OpenMetaverse.MapMatureEvent">
9661 <summary> 8490 <summary>
9662 Initializes a new instance of the <seealso cref="T:ObservableDictionary"/> Class 8491 Represents a Mature event
9663 with the specified key/value, has the default initial capacity.
9664 </summary> 8492 </summary>
9665 <example>
9666 <code>
9667 // initialize a new ObservableDictionary named testDict with a string as the key and an int as the value.
9668 public ObservableDictionary&lt;string, int&gt; testDict = new ObservableDictionary&lt;string, int&gt;();
9669 </code>
9670 </example>
9671 </member> 8493 </member>
9672 <member name="M:OpenMetaverse.ObservableDictionary`2.#ctor(System.Int32)"> 8494 <member name="T:OpenMetaverse.MapAdultEvent">
9673 <summary> 8495 <summary>
9674 Initializes a new instance of the <seealso cref="T:OpenMetaverse.ObservableDictionary"/> Class 8496 Represents an Adult event
9675 with the specified key/value, With its initial capacity specified.
9676 </summary> 8497 </summary>
9677 <param name="capacity">Initial size of dictionary</param>
9678 <example>
9679 <code>
9680 // initialize a new ObservableDictionary named testDict with a string as the key and an int as the value,
9681 // initially allocated room for 10 entries.
9682 public ObservableDictionary&lt;string, int&gt; testDict = new ObservableDictionary&lt;string, int&gt;(10);
9683 </code>
9684 </example>
9685 </member> 8498 </member>
9686 <member name="M:OpenMetaverse.ObservableDictionary`2.TryGetValue(`0,`1@)"> 8499 <member name="T:OpenMetaverse.GridManager">
9687 <summary> 8500 <summary>
9688 Try to get entry from the <seealso cref="!:ObservableDictionary"/> with specified key 8501 Manages grid-wide tasks such as the world map
9689 </summary> 8502 </summary>
9690 <param name="key">Key to use for lookup</param>
9691 <param name="value">Value returned</param>
9692 <returns><see langword="true"/> if specified key exists, <see langword="false"/> if not found</returns>
9693 <example>
9694 <code>
9695 // find your avatar using the Simulator.ObjectsAvatars ObservableDictionary:
9696 Avatar av;
9697 if (Client.Network.CurrentSim.ObjectsAvatars.TryGetValue(Client.Self.AgentID, out av))
9698 Console.WriteLine("Found Avatar {0}", av.Name);
9699 </code>
9700 <seealso cref="F:OpenMetaverse.Simulator.ObjectsAvatars"/>
9701 </example>
9702 </member> 8503 </member>
9703 <member name="M:OpenMetaverse.ObservableDictionary`2.Find(System.Predicate{`1})"> 8504 <member name="M:OpenMetaverse.GridManager.#ctor(OpenMetaverse.GridClient)">
9704 <summary> 8505 <summary>
9705 Finds the specified match. 8506 Constructor
9706 </summary> 8507 </summary>
9707 <param name="match">The match.</param> 8508 <param name="client">Instance of GridClient object to associate with this GridManager instance</param>
9708 <returns>Matched value</returns>
9709 <example>
9710 <code>
9711 // use a delegate to find a prim in the ObjectsPrimitives ObservableDictionary
9712 // with the ID 95683496
9713 uint findID = 95683496;
9714 Primitive findPrim = sim.ObjectsPrimitives.Find(
9715 delegate(Primitive prim) { return prim.ID == findID; });
9716 </code>
9717 </example>
9718 </member> 8509 </member>
9719 <member name="M:OpenMetaverse.ObservableDictionary`2.FindAll(System.Predicate{`1})"> 8510 <member name="F:OpenMetaverse.GridManager.m_CoarseLocationUpdate">
9720 <summary>Find All items in an <seealso cref="T:ObservableDictionary"/></summary> 8511 <summary>The event subscribers. null if no subcribers</summary>
9721 <param name="match">return matching items.</param>
9722 <returns>a <seealso cref="T:System.Collections.Generic.List"/> containing found items.</returns>
9723 <example>
9724 Find All prims within 20 meters and store them in a List
9725 <code>
9726 int radius = 20;
9727 List&lt;Primitive&gt; prims = Client.Network.CurrentSim.ObjectsPrimitives.FindAll(
9728 delegate(Primitive prim) {
9729 Vector3 pos = prim.Position;
9730 return ((prim.ParentID == 0) &amp;&amp; (pos != Vector3.Zero) &amp;&amp; (Vector3.Distance(pos, location) &lt; radius));
9731 }
9732 );
9733 </code>
9734 </example>
9735 </member> 8512 </member>
9736 <member name="M:OpenMetaverse.ObservableDictionary`2.FindAll(System.Predicate{`0})"> 8513 <member name="F:OpenMetaverse.GridManager.m_CoarseLocationUpdateLock">
9737 <summary>Find All items in an <seealso cref="T:ObservableDictionary"/></summary> 8514 <summary>Thread sync lock object</summary>
9738 <param name="match">return matching keys.</param>
9739 <returns>a <seealso cref="T:System.Collections.Generic.List"/> containing found keys.</returns>
9740 <example>
9741 Find All keys which also exist in another dictionary
9742 <code>
9743 List&lt;UUID&gt; matches = myDict.FindAll(
9744 delegate(UUID id) {
9745 return myOtherDict.ContainsKey(id);
9746 }
9747 );
9748 </code>
9749 </example>
9750 </member> 8515 </member>
9751 <member name="M:OpenMetaverse.ObservableDictionary`2.ContainsKey(`0)"> 8516 <member name="F:OpenMetaverse.GridManager.m_GridRegion">
9752 <summary>Check if Key exists in Dictionary</summary> 8517 <summary>The event subscribers. null if no subcribers</summary>
9753 <param name="key">Key to check for</param>
9754 <returns><see langword="true"/> if found, <see langword="false"/> otherwise</returns>
9755 </member> 8518 </member>
9756 <member name="M:OpenMetaverse.ObservableDictionary`2.ContainsValue(`1)"> 8519 <member name="F:OpenMetaverse.GridManager.m_GridRegionLock">
9757 <summary>Check if Value exists in Dictionary</summary> 8520 <summary>Thread sync lock object</summary>
9758 <param name="value">Value to check for</param>
9759 <returns><see langword="true"/> if found, <see langword="false"/> otherwise</returns>
9760 </member> 8521 </member>
9761 <member name="M:OpenMetaverse.ObservableDictionary`2.Add(`0,`1)"> 8522 <member name="F:OpenMetaverse.GridManager.m_GridLayer">
8523 <summary>The event subscribers. null if no subcribers</summary>
8524 </member>
8525 <member name="F:OpenMetaverse.GridManager.m_GridLayerLock">
8526 <summary>Thread sync lock object</summary>
8527 </member>
8528 <member name="F:OpenMetaverse.GridManager.m_GridItems">
8529 <summary>The event subscribers. null if no subcribers</summary>
8530 </member>
8531 <member name="F:OpenMetaverse.GridManager.m_GridItemsLock">
8532 <summary>Thread sync lock object</summary>
8533 </member>
8534 <member name="F:OpenMetaverse.GridManager.m_RegionHandleReply">
8535 <summary>The event subscribers. null if no subcribers</summary>
8536 </member>
8537 <member name="F:OpenMetaverse.GridManager.m_RegionHandleReplyLock">
8538 <summary>Thread sync lock object</summary>
8539 </member>
8540 <member name="F:OpenMetaverse.GridManager.Regions">
8541 <summary>A dictionary of all the regions, indexed by region name</summary>
8542 </member>
8543 <member name="F:OpenMetaverse.GridManager.RegionsByHandle">
8544 <summary>A dictionary of all the regions, indexed by region handle</summary>
8545 </member>
8546 <member name="E:OpenMetaverse.GridManager.CoarseLocationUpdate">
8547 <summary>Raised when the simulator sends a <see cref="T:OpenMetaverse.Packets.CoarseLocationUpdatePacket" />
8548 containing the location of agents in the simulator</summary>
8549 </member>
8550 <member name="E:OpenMetaverse.GridManager.GridRegion">
8551 <summary>Raised when the simulator sends a Region Data in response to
8552 a Map request</summary>
8553 </member>
8554 <member name="E:OpenMetaverse.GridManager.GridLayer">
8555 <summary>Raised when the simulator sends GridLayer object containing
8556 a map tile coordinates and texture information</summary>
8557 </member>
8558 <member name="E:OpenMetaverse.GridManager.GridItems">
8559 <summary>Raised when the simulator sends GridItems object containing
8560 details on events, land sales at a specific location</summary>
8561 </member>
8562 <member name="E:OpenMetaverse.GridManager.RegionHandleReply">
8563 <summary>Raised in response to a Region lookup</summary>
8564 </member>
8565 <member name="P:OpenMetaverse.GridManager.SunPhase">
8566 <summary>Unknown</summary>
8567 </member>
8568 <member name="P:OpenMetaverse.GridManager.SunDirection">
8569 <summary>Current direction of the sun</summary>
8570 </member>
8571 <member name="P:OpenMetaverse.GridManager.SunAngVelocity">
8572 <summary>Current angular velocity of the sun</summary>
8573 </member>
8574 <member name="P:OpenMetaverse.GridManager.TimeOfDay">
8575 <summary>Microseconds since the start of SL 4-hour day</summary>
8576 </member>
8577 <member name="M:OpenMetaverse.GridManager.OnCoarseLocationUpdate(OpenMetaverse.CoarseLocationUpdateEventArgs)">
8578 <summary>Raises the CoarseLocationUpdate event</summary>
8579 <param name="e">A CoarseLocationUpdateEventArgs object containing the
8580 data sent by simulator</param>
8581 </member>
8582 <member name="M:OpenMetaverse.GridManager.OnGridRegion(OpenMetaverse.GridRegionEventArgs)">
8583 <summary>Raises the GridRegion event</summary>
8584 <param name="e">A GridRegionEventArgs object containing the
8585 data sent by simulator</param>
8586 </member>
8587 <member name="M:OpenMetaverse.GridManager.OnGridLayer(OpenMetaverse.GridLayerEventArgs)">
8588 <summary>Raises the GridLayer event</summary>
8589 <param name="e">A GridLayerEventArgs object containing the
8590 data sent by simulator</param>
8591 </member>
8592 <member name="M:OpenMetaverse.GridManager.OnGridItems(OpenMetaverse.GridItemsEventArgs)">
8593 <summary>Raises the GridItems event</summary>
8594 <param name="e">A GridItemEventArgs object containing the
8595 data sent by simulator</param>
8596 </member>
8597 <member name="M:OpenMetaverse.GridManager.OnRegionHandleReply(OpenMetaverse.RegionHandleReplyEventArgs)">
8598 <summary>Raises the RegionHandleReply event</summary>
8599 <param name="e">A RegionHandleReplyEventArgs object containing the
8600 data sent by simulator</param>
8601 </member>
8602 <member name="M:OpenMetaverse.GridManager.RequestMapLayer(OpenMetaverse.GridLayerType)">
9762 <summary> 8603 <summary>
9763 Adds the specified key to the dictionary, dictionary locking is not performed,
9764 <see cref="!:SafeAdd"/>
9765 </summary> 8604 </summary>
9766 <param name="key">The key</param> 8605 <param name="layer">
9767 <param name="value">The value</param> 8606 </param>
9768 </member> 8607 </member>
9769 <member name="M:OpenMetaverse.ObservableDictionary`2.Remove(`0)"> 8608 <member name="M:OpenMetaverse.GridManager.RequestMapRegion(System.String,OpenMetaverse.GridLayerType)">
9770 <summary> 8609 <summary>
9771 Removes the specified key, dictionary locking is not performed 8610 Request a map layer
9772 </summary> 8611 </summary>
9773 <param name="key">The key.</param> 8612 <param name="regionName">The name of the region</param>
9774 <returns><see langword="true"/> if successful, <see langword="false"/> otherwise</returns> 8613 <param name="layer">The type of layer</param>
9775 </member> 8614 </member>
9776 <member name="M:OpenMetaverse.ObservableDictionary`2.Clear"> 8615 <member name="M:OpenMetaverse.GridManager.RequestMapBlocks(OpenMetaverse.GridLayerType,System.UInt16,System.UInt16,System.UInt16,System.UInt16,System.Boolean)">
8616 <summary>
8617 </summary>
8618 <param name="layer">
8619 </param>
8620 <param name="minX">
8621 </param>
8622 <param name="minY">
8623 </param>
8624 <param name="maxX">
8625 </param>
8626 <param name="maxY">
8627 </param>
8628 <param name="returnNonExistent">
8629 </param>
8630 </member>
8631 <member name="M:OpenMetaverse.GridManager.MapItems(System.UInt64,OpenMetaverse.GridItemType,OpenMetaverse.GridLayerType,System.Int32)">
9777 <summary> 8632 <summary>
9778 Clear the contents of the dictionary
9779 </summary> 8633 </summary>
8634 <param name="regionHandle">
8635 </param>
8636 <param name="item">
8637 </param>
8638 <param name="layer">
8639 </param>
8640 <param name="timeoutMS">
8641 </param>
8642 <returns>
8643 </returns>
9780 </member> 8644 </member>
9781 <member name="M:OpenMetaverse.ObservableDictionary`2.GetEnumerator"> 8645 <member name="M:OpenMetaverse.GridManager.RequestMapItems(System.UInt64,OpenMetaverse.GridItemType,OpenMetaverse.GridLayerType)">
9782 <summary> 8646 <summary>
9783 Enumerator for iterating dictionary entries
9784 </summary> 8647 </summary>
9785 <returns></returns> 8648 <param name="regionHandle">
8649 </param>
8650 <param name="item">
8651 </param>
8652 <param name="layer">
8653 </param>
9786 </member> 8654 </member>
9787 <member name="P:OpenMetaverse.ObservableDictionary`2.Count"> 8655 <member name="M:OpenMetaverse.GridManager.RequestMainlandSims(OpenMetaverse.GridLayerType)">
9788 <summary> 8656 <summary>
9789 Gets the number of Key/Value pairs contained in the <seealso cref="T:ObservableDictionary"/> 8657 Request data for all mainland (Linden managed) simulators
9790 </summary> 8658 </summary>
9791 </member> 8659 </member>
9792 <member name="P:OpenMetaverse.ObservableDictionary`2.Item(`0)"> 8660 <member name="M:OpenMetaverse.GridManager.RequestRegionHandle(OpenMetaverse.UUID)">
9793 <summary> 8661 <summary>
9794 Indexer for the dictionary 8662 Request the region handle for the specified region UUID
9795 </summary> 8663 </summary>
9796 <param name="key">The key</param> 8664 <param name="regionID">UUID of the region to look up</param>
9797 <returns>The value</returns> 8665 </member>
8666 <member name="M:OpenMetaverse.GridManager.GetGridRegion(System.String,OpenMetaverse.GridLayerType,OpenMetaverse.GridRegion@)">
8667 <summary>
8668 Get grid region information using the region name, this function
8669 will block until it can find the region or gives up
8670 </summary>
8671 <param name="name">Name of sim you're looking for</param>
8672 <param name="layer">Layer that you are requesting</param>
8673 <param name="region">Will contain a GridRegion for the sim you're
8674 looking for if successful, otherwise an empty structure</param>
8675 <returns>True if the GridRegion was successfully fetched, otherwise
8676 false</returns>
8677 </member>
8678 <member name="M:OpenMetaverse.GridManager.MapBlockReplyHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
8679 <summary>Process an incoming packet and raise the appropriate events</summary>
8680 <param name="sender">The sender</param>
8681 <param name="e">The EventArgs object containing the packet data</param>
8682 </member>
8683 <member name="M:OpenMetaverse.GridManager.MapItemReplyHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
8684 <summary>Process an incoming packet and raise the appropriate events</summary>
8685 <param name="sender">The sender</param>
8686 <param name="e">The EventArgs object containing the packet data</param>
8687 </member>
8688 <member name="M:OpenMetaverse.GridManager.SimulatorViewerTimeMessageHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
8689 <summary>Process an incoming packet and raise the appropriate events</summary>
8690 <param name="sender">The sender</param>
8691 <param name="e">The EventArgs object containing the packet data</param>
8692 </member>
8693 <member name="M:OpenMetaverse.GridManager.CoarseLocationHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
8694 <summary>Process an incoming packet and raise the appropriate events</summary>
8695 <param name="sender">The sender</param>
8696 <param name="e">The EventArgs object containing the packet data</param>
8697 </member>
8698 <member name="M:OpenMetaverse.GridManager.RegionHandleReplyHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
8699 <summary>Process an incoming packet and raise the appropriate events</summary>
8700 <param name="sender">The sender</param>
8701 <param name="e">The EventArgs object containing the packet data</param>
9798 </member> 8702 </member>
9799 <member name="T:OpenMetaverse.GroupMember"> 8703 <member name="T:OpenMetaverse.GroupMember">
9800 <summary> 8704 <summary>
@@ -9899,13 +8803,16 @@
9899 <summary>Will group show up in search</summary> 8803 <summary>Will group show up in search</summary>
9900 </member> 8804 </member>
9901 <member name="F:OpenMetaverse.Group.Powers"> 8805 <member name="F:OpenMetaverse.Group.Powers">
9902 <summary></summary> 8806 <summary>
8807 </summary>
9903 </member> 8808 </member>
9904 <member name="F:OpenMetaverse.Group.AcceptNotices"> 8809 <member name="F:OpenMetaverse.Group.AcceptNotices">
9905 <summary></summary> 8810 <summary>
8811 </summary>
9906 </member> 8812 </member>
9907 <member name="F:OpenMetaverse.Group.AllowPublish"> 8813 <member name="F:OpenMetaverse.Group.AllowPublish">
9908 <summary></summary> 8814 <summary>
8815 </summary>
9909 </member> 8816 </member>
9910 <member name="F:OpenMetaverse.Group.MaturePublish"> 8817 <member name="F:OpenMetaverse.Group.MaturePublish">
9911 <summary>Is the group Mature</summary> 8818 <summary>Is the group Mature</summary>
@@ -9914,10 +8821,12 @@
9914 <summary>Cost of group membership</summary> 8821 <summary>Cost of group membership</summary>
9915 </member> 8822 </member>
9916 <member name="F:OpenMetaverse.Group.Money"> 8823 <member name="F:OpenMetaverse.Group.Money">
9917 <summary></summary> 8824 <summary>
8825 </summary>
9918 </member> 8826 </member>
9919 <member name="F:OpenMetaverse.Group.Contribution"> 8827 <member name="F:OpenMetaverse.Group.Contribution">
9920 <summary></summary> 8828 <summary>
8829 </summary>
9921 </member> 8830 </member>
9922 <member name="F:OpenMetaverse.Group.GroupMembershipCount"> 8831 <member name="F:OpenMetaverse.Group.GroupMembershipCount">
9923 <summary>The total number of current members this group has</summary> 8832 <summary>The total number of current members this group has</summary>
@@ -9960,72 +8869,89 @@
9960 <member name="F:OpenMetaverse.GroupProposal.Majority"> 8869 <member name="F:OpenMetaverse.GroupProposal.Majority">
9961 <summary>The required ration of yes/no votes required for vote to pass</summary> 8870 <summary>The required ration of yes/no votes required for vote to pass</summary>
9962 <remarks>The three options are Simple Majority, 2/3 Majority, and Unanimous</remarks> 8871 <remarks>The three options are Simple Majority, 2/3 Majority, and Unanimous</remarks>
9963 TODO: this should be an enum 8872 TODO: this should be an enum</member>
9964 </member>
9965 <member name="F:OpenMetaverse.GroupProposal.Duration"> 8873 <member name="F:OpenMetaverse.GroupProposal.Duration">
9966 <summary>The duration in days votes are accepted</summary> 8874 <summary>The duration in days votes are accepted</summary>
9967 </member> 8875 </member>
9968 <member name="T:OpenMetaverse.GroupAccountSummary"> 8876 <member name="T:OpenMetaverse.GroupAccountSummary">
9969 <summary> 8877 <summary>
9970
9971 </summary> 8878 </summary>
9972 </member> 8879 </member>
9973 <member name="F:OpenMetaverse.GroupAccountSummary.IntervalDays"> 8880 <member name="F:OpenMetaverse.GroupAccountSummary.IntervalDays">
9974 <summary></summary> 8881 <summary>
8882 </summary>
9975 </member> 8883 </member>
9976 <member name="F:OpenMetaverse.GroupAccountSummary.CurrentInterval"> 8884 <member name="F:OpenMetaverse.GroupAccountSummary.CurrentInterval">
9977 <summary></summary> 8885 <summary>
8886 </summary>
9978 </member> 8887 </member>
9979 <member name="F:OpenMetaverse.GroupAccountSummary.StartDate"> 8888 <member name="F:OpenMetaverse.GroupAccountSummary.StartDate">
9980 <summary></summary> 8889 <summary>
8890 </summary>
9981 </member> 8891 </member>
9982 <member name="F:OpenMetaverse.GroupAccountSummary.Balance"> 8892 <member name="F:OpenMetaverse.GroupAccountSummary.Balance">
9983 <summary></summary> 8893 <summary>
8894 </summary>
9984 </member> 8895 </member>
9985 <member name="F:OpenMetaverse.GroupAccountSummary.TotalCredits"> 8896 <member name="F:OpenMetaverse.GroupAccountSummary.TotalCredits">
9986 <summary></summary> 8897 <summary>
8898 </summary>
9987 </member> 8899 </member>
9988 <member name="F:OpenMetaverse.GroupAccountSummary.TotalDebits"> 8900 <member name="F:OpenMetaverse.GroupAccountSummary.TotalDebits">
9989 <summary></summary> 8901 <summary>
8902 </summary>
9990 </member> 8903 </member>
9991 <member name="F:OpenMetaverse.GroupAccountSummary.ObjectTaxCurrent"> 8904 <member name="F:OpenMetaverse.GroupAccountSummary.ObjectTaxCurrent">
9992 <summary></summary> 8905 <summary>
8906 </summary>
9993 </member> 8907 </member>
9994 <member name="F:OpenMetaverse.GroupAccountSummary.LightTaxCurrent"> 8908 <member name="F:OpenMetaverse.GroupAccountSummary.LightTaxCurrent">
9995 <summary></summary> 8909 <summary>
8910 </summary>
9996 </member> 8911 </member>
9997 <member name="F:OpenMetaverse.GroupAccountSummary.LandTaxCurrent"> 8912 <member name="F:OpenMetaverse.GroupAccountSummary.LandTaxCurrent">
9998 <summary></summary> 8913 <summary>
8914 </summary>
9999 </member> 8915 </member>
10000 <member name="F:OpenMetaverse.GroupAccountSummary.GroupTaxCurrent"> 8916 <member name="F:OpenMetaverse.GroupAccountSummary.GroupTaxCurrent">
10001 <summary></summary> 8917 <summary>
8918 </summary>
10002 </member> 8919 </member>
10003 <member name="F:OpenMetaverse.GroupAccountSummary.ParcelDirFeeCurrent"> 8920 <member name="F:OpenMetaverse.GroupAccountSummary.ParcelDirFeeCurrent">
10004 <summary></summary> 8921 <summary>
8922 </summary>
10005 </member> 8923 </member>
10006 <member name="F:OpenMetaverse.GroupAccountSummary.ObjectTaxEstimate"> 8924 <member name="F:OpenMetaverse.GroupAccountSummary.ObjectTaxEstimate">
10007 <summary></summary> 8925 <summary>
8926 </summary>
10008 </member> 8927 </member>
10009 <member name="F:OpenMetaverse.GroupAccountSummary.LightTaxEstimate"> 8928 <member name="F:OpenMetaverse.GroupAccountSummary.LightTaxEstimate">
10010 <summary></summary> 8929 <summary>
8930 </summary>
10011 </member> 8931 </member>
10012 <member name="F:OpenMetaverse.GroupAccountSummary.LandTaxEstimate"> 8932 <member name="F:OpenMetaverse.GroupAccountSummary.LandTaxEstimate">
10013 <summary></summary> 8933 <summary>
8934 </summary>
10014 </member> 8935 </member>
10015 <member name="F:OpenMetaverse.GroupAccountSummary.GroupTaxEstimate"> 8936 <member name="F:OpenMetaverse.GroupAccountSummary.GroupTaxEstimate">
10016 <summary></summary> 8937 <summary>
8938 </summary>
10017 </member> 8939 </member>
10018 <member name="F:OpenMetaverse.GroupAccountSummary.ParcelDirFeeEstimate"> 8940 <member name="F:OpenMetaverse.GroupAccountSummary.ParcelDirFeeEstimate">
10019 <summary></summary> 8941 <summary>
8942 </summary>
10020 </member> 8943 </member>
10021 <member name="F:OpenMetaverse.GroupAccountSummary.NonExemptMembers"> 8944 <member name="F:OpenMetaverse.GroupAccountSummary.NonExemptMembers">
10022 <summary></summary> 8945 <summary>
8946 </summary>
10023 </member> 8947 </member>
10024 <member name="F:OpenMetaverse.GroupAccountSummary.LastTaxDate"> 8948 <member name="F:OpenMetaverse.GroupAccountSummary.LastTaxDate">
10025 <summary></summary> 8949 <summary>
8950 </summary>
10026 </member> 8951 </member>
10027 <member name="F:OpenMetaverse.GroupAccountSummary.TaxDate"> 8952 <member name="F:OpenMetaverse.GroupAccountSummary.TaxDate">
10028 <summary></summary> 8953 <summary>
8954 </summary>
10029 </member> 8955 </member>
10030 <member name="T:OpenMetaverse.GroupNotice"> 8956 <member name="T:OpenMetaverse.GroupNotice">
10031 <summary> 8957 <summary>
@@ -10033,22 +8959,26 @@
10033 </summary> 8959 </summary>
10034 </member> 8960 </member>
10035 <member name="F:OpenMetaverse.GroupNotice.Subject"> 8961 <member name="F:OpenMetaverse.GroupNotice.Subject">
10036 <summary></summary> 8962 <summary>
8963 </summary>
10037 </member> 8964 </member>
10038 <member name="F:OpenMetaverse.GroupNotice.Message"> 8965 <member name="F:OpenMetaverse.GroupNotice.Message">
10039 <summary></summary> 8966 <summary>
8967 </summary>
10040 </member> 8968 </member>
10041 <member name="F:OpenMetaverse.GroupNotice.AttachmentID"> 8969 <member name="F:OpenMetaverse.GroupNotice.AttachmentID">
10042 <summary></summary> 8970 <summary>
8971 </summary>
10043 </member> 8972 </member>
10044 <member name="F:OpenMetaverse.GroupNotice.OwnerID"> 8973 <member name="F:OpenMetaverse.GroupNotice.OwnerID">
10045 <summary></summary> 8974 <summary>
8975 </summary>
10046 </member> 8976 </member>
10047 <member name="M:OpenMetaverse.GroupNotice.SerializeAttachment"> 8977 <member name="M:OpenMetaverse.GroupNotice.SerializeAttachment">
10048 <summary> 8978 <summary>
10049
10050 </summary> 8979 </summary>
10051 <returns></returns> 8980 <returns>
8981 </returns>
10052 </member> 8982 </member>
10053 <member name="T:OpenMetaverse.GroupNoticesListEntry"> 8983 <member name="T:OpenMetaverse.GroupNoticesListEntry">
10054 <summary> 8984 <summary>
@@ -10079,7 +9009,7 @@
10079 </summary> 9009 </summary>
10080 </member> 9010 </member>
10081 <member name="F:OpenMetaverse.ChatSessionMember.AvatarKey"> 9011 <member name="F:OpenMetaverse.ChatSessionMember.AvatarKey">
10082 <summary>The <see cref="T:OpenMetaverse.UUID"/> of the Avatar</summary> 9012 <summary>The <see cref="T:OpenMetaverse.UUID" /> of the Avatar</summary>
10083 </member> 9013 </member>
10084 <member name="F:OpenMetaverse.ChatSessionMember.CanVoiceChat"> 9014 <member name="F:OpenMetaverse.ChatSessionMember.CanVoiceChat">
10085 <summary>True if user has voice chat enabled</summary> 9015 <summary>True if user has voice chat enabled</summary>
@@ -10099,25 +9029,32 @@
10099 </summary> 9029 </summary>
10100 </member> 9030 </member>
10101 <member name="F:OpenMetaverse.GroupRoleUpdate.NoUpdate"> 9031 <member name="F:OpenMetaverse.GroupRoleUpdate.NoUpdate">
10102 <summary></summary> 9032 <summary>
9033 </summary>
10103 </member> 9034 </member>
10104 <member name="F:OpenMetaverse.GroupRoleUpdate.UpdateData"> 9035 <member name="F:OpenMetaverse.GroupRoleUpdate.UpdateData">
10105 <summary></summary> 9036 <summary>
9037 </summary>
10106 </member> 9038 </member>
10107 <member name="F:OpenMetaverse.GroupRoleUpdate.UpdatePowers"> 9039 <member name="F:OpenMetaverse.GroupRoleUpdate.UpdatePowers">
10108 <summary></summary> 9040 <summary>
9041 </summary>
10109 </member> 9042 </member>
10110 <member name="F:OpenMetaverse.GroupRoleUpdate.UpdateAll"> 9043 <member name="F:OpenMetaverse.GroupRoleUpdate.UpdateAll">
10111 <summary></summary> 9044 <summary>
9045 </summary>
10112 </member> 9046 </member>
10113 <member name="F:OpenMetaverse.GroupRoleUpdate.Create"> 9047 <member name="F:OpenMetaverse.GroupRoleUpdate.Create">
10114 <summary></summary> 9048 <summary>
9049 </summary>
10115 </member> 9050 </member>
10116 <member name="F:OpenMetaverse.GroupRoleUpdate.Delete"> 9051 <member name="F:OpenMetaverse.GroupRoleUpdate.Delete">
10117 <summary></summary> 9052 <summary>
9053 </summary>
10118 </member> 9054 </member>
10119 <member name="F:OpenMetaverse.GroupPowers.None"> 9055 <member name="F:OpenMetaverse.GroupPowers.None">
10120 <summary></summary> 9056 <summary>
9057 </summary>
10121 </member> 9058 </member>
10122 <member name="F:OpenMetaverse.GroupPowers.Invite"> 9059 <member name="F:OpenMetaverse.GroupPowers.Invite">
10123 <summary>Can send invitations to groups default role</summary> 9060 <summary>Can send invitations to groups default role</summary>
@@ -10194,7 +9131,7 @@
10194 <summary>Can toggle 'Edit Terrain' option in Land settings</summary> 9131 <summary>Can toggle 'Edit Terrain' option in Land settings</summary>
10195 </member> 9132 </member>
10196 <member name="F:OpenMetaverse.GroupPowers.LandOptions"> 9133 <member name="F:OpenMetaverse.GroupPowers.LandOptions">
10197 <summary>Can toggle various About Land > Options settings</summary> 9134 <summary>Can toggle various About Land &gt; Options settings</summary>
10198 </member> 9135 </member>
10199 <member name="F:OpenMetaverse.GroupPowers.AllowEditLand"> 9136 <member name="F:OpenMetaverse.GroupPowers.AllowEditLand">
10200 <summary>Can always terraform land, even if parcel settings have it turned off</summary> 9137 <summary>Can always terraform land, even if parcel settings have it turned off</summary>
@@ -10265,173 +9202,104 @@
10265 information 9202 information
10266 </summary> 9203 </summary>
10267 </member> 9204 </member>
9205 <member name="M:OpenMetaverse.GroupManager.#ctor(OpenMetaverse.GridClient)">
9206 <summary>
9207 Construct a new instance of the GroupManager class
9208 </summary>
9209 <param name="client">A reference to the current <seealso cref="T:OpenMetaverse.GridClient" /> instance</param>
9210 </member>
10268 <member name="F:OpenMetaverse.GroupManager.m_CurrentGroups"> 9211 <member name="F:OpenMetaverse.GroupManager.m_CurrentGroups">
10269 <summary>The event subscribers. null if no subcribers</summary> 9212 <summary>The event subscribers. null if no subcribers</summary>
10270 </member> 9213 </member>
10271 <member name="M:OpenMetaverse.GroupManager.OnCurrentGroups(OpenMetaverse.CurrentGroupsEventArgs)">
10272 <summary>Raises the CurrentGroups event</summary>
10273 <param name="e">A CurrentGroupsEventArgs object containing the
10274 data sent from the simulator</param>
10275 </member>
10276 <member name="F:OpenMetaverse.GroupManager.m_CurrentGroupsLock"> 9214 <member name="F:OpenMetaverse.GroupManager.m_CurrentGroupsLock">
10277 <summary>Thread sync lock object</summary> 9215 <summary>Thread sync lock object</summary>
10278 </member> 9216 </member>
10279 <member name="F:OpenMetaverse.GroupManager.m_GroupNames"> 9217 <member name="F:OpenMetaverse.GroupManager.m_GroupNames">
10280 <summary>The event subscribers. null if no subcribers</summary> 9218 <summary>The event subscribers. null if no subcribers</summary>
10281 </member> 9219 </member>
10282 <member name="M:OpenMetaverse.GroupManager.OnGroupNamesReply(OpenMetaverse.GroupNamesEventArgs)">
10283 <summary>Raises the GroupNamesReply event</summary>
10284 <param name="e">A GroupNamesEventArgs object containing the
10285 data response from the simulator</param>
10286 </member>
10287 <member name="F:OpenMetaverse.GroupManager.m_GroupNamesLock"> 9220 <member name="F:OpenMetaverse.GroupManager.m_GroupNamesLock">
10288 <summary>Thread sync lock object</summary> 9221 <summary>Thread sync lock object</summary>
10289 </member> 9222 </member>
10290 <member name="F:OpenMetaverse.GroupManager.m_GroupProfile"> 9223 <member name="F:OpenMetaverse.GroupManager.m_GroupProfile">
10291 <summary>The event subscribers. null if no subcribers</summary> 9224 <summary>The event subscribers. null if no subcribers</summary>
10292 </member> 9225 </member>
10293 <member name="M:OpenMetaverse.GroupManager.OnGroupProfile(OpenMetaverse.GroupProfileEventArgs)">
10294 <summary>Raises the GroupProfile event</summary>
10295 <param name="e">An GroupProfileEventArgs object containing the
10296 data returned from the simulator</param>
10297 </member>
10298 <member name="F:OpenMetaverse.GroupManager.m_GroupProfileLock"> 9226 <member name="F:OpenMetaverse.GroupManager.m_GroupProfileLock">
10299 <summary>Thread sync lock object</summary> 9227 <summary>Thread sync lock object</summary>
10300 </member> 9228 </member>
10301 <member name="F:OpenMetaverse.GroupManager.m_GroupMembers"> 9229 <member name="F:OpenMetaverse.GroupManager.m_GroupMembers">
10302 <summary>The event subscribers. null if no subcribers</summary> 9230 <summary>The event subscribers. null if no subcribers</summary>
10303 </member> 9231 </member>
10304 <member name="M:OpenMetaverse.GroupManager.OnGroupMembersReply(OpenMetaverse.GroupMembersReplyEventArgs)">
10305 <summary>Raises the GroupMembers event</summary>
10306 <param name="e">A GroupMembersEventArgs object containing the
10307 data returned from the simulator</param>
10308 </member>
10309 <member name="F:OpenMetaverse.GroupManager.m_GroupMembersLock"> 9232 <member name="F:OpenMetaverse.GroupManager.m_GroupMembersLock">
10310 <summary>Thread sync lock object</summary> 9233 <summary>Thread sync lock object</summary>
10311 </member> 9234 </member>
10312 <member name="F:OpenMetaverse.GroupManager.m_GroupRoles"> 9235 <member name="F:OpenMetaverse.GroupManager.m_GroupRoles">
10313 <summary>The event subscribers. null if no subcribers</summary> 9236 <summary>The event subscribers. null if no subcribers</summary>
10314 </member> 9237 </member>
10315 <member name="M:OpenMetaverse.GroupManager.OnGroupRoleDataReply(OpenMetaverse.GroupRolesDataReplyEventArgs)">
10316 <summary>Raises the GroupRolesDataReply event</summary>
10317 <param name="e">A GroupRolesDataReplyEventArgs object containing the
10318 data returned from the simulator</param>
10319 </member>
10320 <member name="F:OpenMetaverse.GroupManager.m_GroupRolesLock"> 9238 <member name="F:OpenMetaverse.GroupManager.m_GroupRolesLock">
10321 <summary>Thread sync lock object</summary> 9239 <summary>Thread sync lock object</summary>
10322 </member> 9240 </member>
10323 <member name="F:OpenMetaverse.GroupManager.m_GroupRoleMembers"> 9241 <member name="F:OpenMetaverse.GroupManager.m_GroupRoleMembers">
10324 <summary>The event subscribers. null if no subcribers</summary> 9242 <summary>The event subscribers. null if no subcribers</summary>
10325 </member> 9243 </member>
10326 <member name="M:OpenMetaverse.GroupManager.OnGroupRoleMembers(OpenMetaverse.GroupRolesMembersReplyEventArgs)">
10327 <summary>Raises the GroupRoleMembersReply event</summary>
10328 <param name="e">A GroupRolesRoleMembersReplyEventArgs object containing the
10329 data returned from the simulator</param>
10330 </member>
10331 <member name="F:OpenMetaverse.GroupManager.m_GroupRolesMembersLock"> 9244 <member name="F:OpenMetaverse.GroupManager.m_GroupRolesMembersLock">
10332 <summary>Thread sync lock object</summary> 9245 <summary>Thread sync lock object</summary>
10333 </member> 9246 </member>
10334 <member name="F:OpenMetaverse.GroupManager.m_GroupTitles"> 9247 <member name="F:OpenMetaverse.GroupManager.m_GroupTitles">
10335 <summary>The event subscribers. null if no subcribers</summary> 9248 <summary>The event subscribers. null if no subcribers</summary>
10336 </member> 9249 </member>
10337 <member name="M:OpenMetaverse.GroupManager.OnGroupTitles(OpenMetaverse.GroupTitlesReplyEventArgs)">
10338 <summary>Raises the GroupTitlesReply event</summary>
10339 <param name="e">A GroupTitlesReplyEventArgs object containing the
10340 data returned from the simulator</param>
10341 </member>
10342 <member name="F:OpenMetaverse.GroupManager.m_GroupTitlesLock"> 9250 <member name="F:OpenMetaverse.GroupManager.m_GroupTitlesLock">
10343 <summary>Thread sync lock object</summary> 9251 <summary>Thread sync lock object</summary>
10344 </member> 9252 </member>
10345 <member name="F:OpenMetaverse.GroupManager.m_GroupAccountSummary"> 9253 <member name="F:OpenMetaverse.GroupManager.m_GroupAccountSummary">
10346 <summary>The event subscribers. null if no subcribers</summary> 9254 <summary>The event subscribers. null if no subcribers</summary>
10347 </member> 9255 </member>
10348 <member name="M:OpenMetaverse.GroupManager.OnGroupAccountSummaryReply(OpenMetaverse.GroupAccountSummaryReplyEventArgs)">
10349 <summary>Raises the GroupAccountSummary event</summary>
10350 <param name="e">A GroupAccountSummaryReplyEventArgs object containing the
10351 data returned from the simulator</param>
10352 </member>
10353 <member name="F:OpenMetaverse.GroupManager.m_GroupAccountSummaryLock"> 9256 <member name="F:OpenMetaverse.GroupManager.m_GroupAccountSummaryLock">
10354 <summary>Thread sync lock object</summary> 9257 <summary>Thread sync lock object</summary>
10355 </member> 9258 </member>
10356 <member name="F:OpenMetaverse.GroupManager.m_GroupCreated"> 9259 <member name="F:OpenMetaverse.GroupManager.m_GroupCreated">
10357 <summary>The event subscribers. null if no subcribers</summary> 9260 <summary>The event subscribers. null if no subcribers</summary>
10358 </member> 9261 </member>
10359 <member name="M:OpenMetaverse.GroupManager.OnGroupCreatedReply(OpenMetaverse.GroupCreatedReplyEventArgs)">
10360 <summary>Raises the GroupCreated event</summary>
10361 <param name="e">An GroupCreatedEventArgs object containing the
10362 data returned from the simulator</param>
10363 </member>
10364 <member name="F:OpenMetaverse.GroupManager.m_GroupCreatedLock"> 9262 <member name="F:OpenMetaverse.GroupManager.m_GroupCreatedLock">
10365 <summary>Thread sync lock object</summary> 9263 <summary>Thread sync lock object</summary>
10366 </member> 9264 </member>
10367 <member name="F:OpenMetaverse.GroupManager.m_GroupJoined"> 9265 <member name="F:OpenMetaverse.GroupManager.m_GroupJoined">
10368 <summary>The event subscribers. null if no subcribers</summary> 9266 <summary>The event subscribers. null if no subcribers</summary>
10369 </member> 9267 </member>
10370 <member name="M:OpenMetaverse.GroupManager.OnGroupJoinedReply(OpenMetaverse.GroupOperationEventArgs)">
10371 <summary>Raises the GroupJoined event</summary>
10372 <param name="e">A GroupOperationEventArgs object containing the
10373 result of the operation returned from the simulator</param>
10374 </member>
10375 <member name="F:OpenMetaverse.GroupManager.m_GroupJoinedLock"> 9268 <member name="F:OpenMetaverse.GroupManager.m_GroupJoinedLock">
10376 <summary>Thread sync lock object</summary> 9269 <summary>Thread sync lock object</summary>
10377 </member> 9270 </member>
10378 <member name="F:OpenMetaverse.GroupManager.m_GroupLeft"> 9271 <member name="F:OpenMetaverse.GroupManager.m_GroupLeft">
10379 <summary>The event subscribers. null if no subcribers</summary> 9272 <summary>The event subscribers. null if no subcribers</summary>
10380 </member> 9273 </member>
10381 <member name="M:OpenMetaverse.GroupManager.OnGroupLeaveReply(OpenMetaverse.GroupOperationEventArgs)">
10382 <summary>Raises the GroupLeft event</summary>
10383 <param name="e">A GroupOperationEventArgs object containing the
10384 result of the operation returned from the simulator</param>
10385 </member>
10386 <member name="F:OpenMetaverse.GroupManager.m_GroupLeftLock"> 9274 <member name="F:OpenMetaverse.GroupManager.m_GroupLeftLock">
10387 <summary>Thread sync lock object</summary> 9275 <summary>Thread sync lock object</summary>
10388 </member> 9276 </member>
10389 <member name="F:OpenMetaverse.GroupManager.m_GroupDropped"> 9277 <member name="F:OpenMetaverse.GroupManager.m_GroupDropped">
10390 <summary>The event subscribers. null if no subcribers</summary> 9278 <summary>The event subscribers. null if no subcribers</summary>
10391 </member> 9279 </member>
10392 <member name="M:OpenMetaverse.GroupManager.OnGroupDropped(OpenMetaverse.GroupDroppedEventArgs)">
10393 <summary>Raises the GroupDropped event</summary>
10394 <param name="e">An GroupDroppedEventArgs object containing the
10395 the group your agent left</param>
10396 </member>
10397 <member name="F:OpenMetaverse.GroupManager.m_GroupDroppedLock"> 9280 <member name="F:OpenMetaverse.GroupManager.m_GroupDroppedLock">
10398 <summary>Thread sync lock object</summary> 9281 <summary>Thread sync lock object</summary>
10399 </member> 9282 </member>
10400 <member name="F:OpenMetaverse.GroupManager.m_GroupMemberEjected"> 9283 <member name="F:OpenMetaverse.GroupManager.m_GroupMemberEjected">
10401 <summary>The event subscribers. null if no subcribers</summary> 9284 <summary>The event subscribers. null if no subcribers</summary>
10402 </member> 9285 </member>
10403 <member name="M:OpenMetaverse.GroupManager.OnGroupMemberEjected(OpenMetaverse.GroupOperationEventArgs)">
10404 <summary>Raises the GroupMemberEjected event</summary>
10405 <param name="e">An GroupMemberEjectedEventArgs object containing the
10406 data returned from the simulator</param>
10407 </member>
10408 <member name="F:OpenMetaverse.GroupManager.m_GroupMemberEjectedLock"> 9286 <member name="F:OpenMetaverse.GroupManager.m_GroupMemberEjectedLock">
10409 <summary>Thread sync lock object</summary> 9287 <summary>Thread sync lock object</summary>
10410 </member> 9288 </member>
10411 <member name="F:OpenMetaverse.GroupManager.m_GroupNoticesListReply"> 9289 <member name="F:OpenMetaverse.GroupManager.m_GroupNoticesListReply">
10412 <summary>The event subscribers. null if no subcribers</summary> 9290 <summary>The event subscribers. null if no subcribers</summary>
10413 </member> 9291 </member>
10414 <member name="M:OpenMetaverse.GroupManager.OnGroupNoticesListReply(OpenMetaverse.GroupNoticesListReplyEventArgs)">
10415 <summary>Raises the GroupNoticesListReply event</summary>
10416 <param name="e">An GroupNoticesListReplyEventArgs object containing the
10417 data returned from the simulator</param>
10418 </member>
10419 <member name="F:OpenMetaverse.GroupManager.m_GroupNoticesListReplyLock"> 9292 <member name="F:OpenMetaverse.GroupManager.m_GroupNoticesListReplyLock">
10420 <summary>Thread sync lock object</summary> 9293 <summary>Thread sync lock object</summary>
10421 </member> 9294 </member>
10422 <member name="F:OpenMetaverse.GroupManager.m_GroupInvitation"> 9295 <member name="F:OpenMetaverse.GroupManager.m_GroupInvitation">
10423 <summary>The event subscribers. null if no subcribers</summary> 9296 <summary>The event subscribers. null if no subcribers</summary>
10424 </member> 9297 </member>
10425 <member name="M:OpenMetaverse.GroupManager.OnGroupInvitation(OpenMetaverse.GroupInvitationEventArgs)">
10426 <summary>Raises the GroupInvitation event</summary>
10427 <param name="e">An GroupInvitationEventArgs object containing the
10428 data returned from the simulator</param>
10429 </member>
10430 <member name="F:OpenMetaverse.GroupManager.m_GroupInvitationLock"> 9298 <member name="F:OpenMetaverse.GroupManager.m_GroupInvitationLock">
10431 <summary>Thread sync lock object</summary> 9299 <summary>Thread sync lock object</summary>
10432 </member> 9300 </member>
10433 <member name="F:OpenMetaverse.GroupManager.Client"> 9301 <member name="F:OpenMetaverse.GroupManager.Client">
10434 <summary>A reference to the current <seealso cref="T:OpenMetaverse.GridClient"/> instance</summary> 9302 <summary>A reference to the current <seealso cref="T:OpenMetaverse.GridClient" /> instance</summary>
10435 </member> 9303 </member>
10436 <member name="F:OpenMetaverse.GroupManager.GroupMembersRequests"> 9304 <member name="F:OpenMetaverse.GroupManager.GroupMembersRequests">
10437 <summary>Currently-active group members requests</summary> 9305 <summary>Currently-active group members requests</summary>
@@ -10454,11 +9322,132 @@
10454 <member name="F:OpenMetaverse.GroupManager.GroupName2KeyCache"> 9322 <member name="F:OpenMetaverse.GroupManager.GroupName2KeyCache">
10455 <summary>Caches group name lookups</summary> 9323 <summary>Caches group name lookups</summary>
10456 </member> 9324 </member>
10457 <member name="M:OpenMetaverse.GroupManager.#ctor(OpenMetaverse.GridClient)"> 9325 <member name="E:OpenMetaverse.GroupManager.CurrentGroups">
10458 <summary> 9326 <summary>Raised when the simulator sends us data containing
10459 Construct a new instance of the GroupManager class 9327 our current group membership</summary>
10460 </summary> 9328 </member>
10461 <param name="client">A reference to the current <seealso cref="T:OpenMetaverse.GridClient"/> instance</param> 9329 <member name="E:OpenMetaverse.GroupManager.GroupNamesReply">
9330 <summary>Raised when the simulator responds to a RequestGroupName
9331 or RequestGroupNames request</summary>
9332 </member>
9333 <member name="E:OpenMetaverse.GroupManager.GroupProfile">
9334 <summary>Raised when the simulator responds to a <see cref="M:OpenMetaverse.GroupManager.RequestGroupProfile(OpenMetaverse.UUID)" /> request</summary>
9335 </member>
9336 <member name="E:OpenMetaverse.GroupManager.GroupMembersReply">
9337 <summary>Raised when the simulator responds to a <see cref="M:OpenMetaverse.GroupManager.RequestGroupMembers(OpenMetaverse.UUID)" /> request</summary>
9338 </member>
9339 <member name="E:OpenMetaverse.GroupManager.GroupRoleDataReply">
9340 <summary>Raised when the simulator responds to a <see cref="!:RequestGroupRoleData" /> request</summary>
9341 </member>
9342 <member name="E:OpenMetaverse.GroupManager.GroupRoleMembersReply">
9343 <summary>Raised when the simulator responds to a <see cref="M:OpenMetaverse.GroupManager.RequestGroupRolesMembers(OpenMetaverse.UUID)" /> request</summary>
9344 </member>
9345 <member name="E:OpenMetaverse.GroupManager.GroupTitlesReply">
9346 <summary>Raised when the simulator responds to a <see cref="M:OpenMetaverse.GroupManager.RequestGroupTitles(OpenMetaverse.UUID)" /> request</summary>
9347 </member>
9348 <member name="E:OpenMetaverse.GroupManager.GroupAccountSummaryReply">
9349 <summary>Raised when a response to a RequestGroupAccountSummary is returned
9350 by the simulator</summary>
9351 </member>
9352 <member name="E:OpenMetaverse.GroupManager.GroupCreatedReply">
9353 <summary>Raised when a request to create a group is successful</summary>
9354 </member>
9355 <member name="E:OpenMetaverse.GroupManager.GroupJoinedReply">
9356 <summary>Raised when a request to join a group either
9357 fails or succeeds</summary>
9358 </member>
9359 <member name="E:OpenMetaverse.GroupManager.GroupLeaveReply">
9360 <summary>Raised when a request to leave a group either
9361 fails or succeeds</summary>
9362 </member>
9363 <member name="E:OpenMetaverse.GroupManager.GroupDropped">
9364 <summary>Raised when A group is removed from the group server</summary>
9365 </member>
9366 <member name="E:OpenMetaverse.GroupManager.GroupMemberEjected">
9367 <summary>Raised when a request to eject a member from a group either
9368 fails or succeeds</summary>
9369 </member>
9370 <member name="E:OpenMetaverse.GroupManager.GroupNoticesListReply">
9371 <summary>Raised when the simulator sends us group notices</summary>
9372 <seealso cref="M:OpenMetaverse.GroupManager.RequestGroupNoticesList(OpenMetaverse.UUID)" />
9373 </member>
9374 <member name="E:OpenMetaverse.GroupManager.GroupInvitation">
9375 <summary>Raised when another agent invites our avatar to join a group</summary>
9376 </member>
9377 <member name="M:OpenMetaverse.GroupManager.OnCurrentGroups(OpenMetaverse.CurrentGroupsEventArgs)">
9378 <summary>Raises the CurrentGroups event</summary>
9379 <param name="e">A CurrentGroupsEventArgs object containing the
9380 data sent from the simulator</param>
9381 </member>
9382 <member name="M:OpenMetaverse.GroupManager.OnGroupNamesReply(OpenMetaverse.GroupNamesEventArgs)">
9383 <summary>Raises the GroupNamesReply event</summary>
9384 <param name="e">A GroupNamesEventArgs object containing the
9385 data response from the simulator</param>
9386 </member>
9387 <member name="M:OpenMetaverse.GroupManager.OnGroupProfile(OpenMetaverse.GroupProfileEventArgs)">
9388 <summary>Raises the GroupProfile event</summary>
9389 <param name="e">An GroupProfileEventArgs object containing the
9390 data returned from the simulator</param>
9391 </member>
9392 <member name="M:OpenMetaverse.GroupManager.OnGroupMembersReply(OpenMetaverse.GroupMembersReplyEventArgs)">
9393 <summary>Raises the GroupMembers event</summary>
9394 <param name="e">A GroupMembersEventArgs object containing the
9395 data returned from the simulator</param>
9396 </member>
9397 <member name="M:OpenMetaverse.GroupManager.OnGroupRoleDataReply(OpenMetaverse.GroupRolesDataReplyEventArgs)">
9398 <summary>Raises the GroupRolesDataReply event</summary>
9399 <param name="e">A GroupRolesDataReplyEventArgs object containing the
9400 data returned from the simulator</param>
9401 </member>
9402 <member name="M:OpenMetaverse.GroupManager.OnGroupRoleMembers(OpenMetaverse.GroupRolesMembersReplyEventArgs)">
9403 <summary>Raises the GroupRoleMembersReply event</summary>
9404 <param name="e">A GroupRolesRoleMembersReplyEventArgs object containing the
9405 data returned from the simulator</param>
9406 </member>
9407 <member name="M:OpenMetaverse.GroupManager.OnGroupTitles(OpenMetaverse.GroupTitlesReplyEventArgs)">
9408 <summary>Raises the GroupTitlesReply event</summary>
9409 <param name="e">A GroupTitlesReplyEventArgs object containing the
9410 data returned from the simulator</param>
9411 </member>
9412 <member name="M:OpenMetaverse.GroupManager.OnGroupAccountSummaryReply(OpenMetaverse.GroupAccountSummaryReplyEventArgs)">
9413 <summary>Raises the GroupAccountSummary event</summary>
9414 <param name="e">A GroupAccountSummaryReplyEventArgs object containing the
9415 data returned from the simulator</param>
9416 </member>
9417 <member name="M:OpenMetaverse.GroupManager.OnGroupCreatedReply(OpenMetaverse.GroupCreatedReplyEventArgs)">
9418 <summary>Raises the GroupCreated event</summary>
9419 <param name="e">An GroupCreatedEventArgs object containing the
9420 data returned from the simulator</param>
9421 </member>
9422 <member name="M:OpenMetaverse.GroupManager.OnGroupJoinedReply(OpenMetaverse.GroupOperationEventArgs)">
9423 <summary>Raises the GroupJoined event</summary>
9424 <param name="e">A GroupOperationEventArgs object containing the
9425 result of the operation returned from the simulator</param>
9426 </member>
9427 <member name="M:OpenMetaverse.GroupManager.OnGroupLeaveReply(OpenMetaverse.GroupOperationEventArgs)">
9428 <summary>Raises the GroupLeft event</summary>
9429 <param name="e">A GroupOperationEventArgs object containing the
9430 result of the operation returned from the simulator</param>
9431 </member>
9432 <member name="M:OpenMetaverse.GroupManager.OnGroupDropped(OpenMetaverse.GroupDroppedEventArgs)">
9433 <summary>Raises the GroupDropped event</summary>
9434 <param name="e">An GroupDroppedEventArgs object containing the
9435 the group your agent left</param>
9436 </member>
9437 <member name="M:OpenMetaverse.GroupManager.OnGroupMemberEjected(OpenMetaverse.GroupOperationEventArgs)">
9438 <summary>Raises the GroupMemberEjected event</summary>
9439 <param name="e">An GroupMemberEjectedEventArgs object containing the
9440 data returned from the simulator</param>
9441 </member>
9442 <member name="M:OpenMetaverse.GroupManager.OnGroupNoticesListReply(OpenMetaverse.GroupNoticesListReplyEventArgs)">
9443 <summary>Raises the GroupNoticesListReply event</summary>
9444 <param name="e">An GroupNoticesListReplyEventArgs object containing the
9445 data returned from the simulator</param>
9446 </member>
9447 <member name="M:OpenMetaverse.GroupManager.OnGroupInvitation(OpenMetaverse.GroupInvitationEventArgs)">
9448 <summary>Raises the GroupInvitation event</summary>
9449 <param name="e">An GroupInvitationEventArgs object containing the
9450 data returned from the simulator</param>
10462 </member> 9451 </member>
10463 <member name="M:OpenMetaverse.GroupManager.RequestCurrentGroups"> 9452 <member name="M:OpenMetaverse.GroupManager.RequestCurrentGroups">
10464 <summary> 9453 <summary>
@@ -10539,7 +9528,7 @@
10539 <summary> 9528 <summary>
10540 Save wheather agent wants to accept group notices and list this group in their profile 9529 Save wheather agent wants to accept group notices and list this group in their profile
10541 </summary> 9530 </summary>
10542 <param name="groupID">Group <see cref="T:OpenMetaverse.UUID"/></param> 9531 <param name="groupID">Group <see cref="T:OpenMetaverse.UUID" /></param>
10543 <param name="acceptNotices">Accept notices from this group</param> 9532 <param name="acceptNotices">Accept notices from this group</param>
10544 <param name="listInProfile">List this group in the profile</param> 9533 <param name="listInProfile">List this group in the profile</param>
10545 </member> 9534 </member>
@@ -10603,12 +9592,14 @@
10603 <member name="M:OpenMetaverse.GroupManager.SendGroupNotice(OpenMetaverse.UUID,OpenMetaverse.GroupNotice)"> 9592 <member name="M:OpenMetaverse.GroupManager.SendGroupNotice(OpenMetaverse.UUID,OpenMetaverse.GroupNotice)">
10604 <summary>Send out a group notice</summary> 9593 <summary>Send out a group notice</summary>
10605 <param name="group">Group ID to update</param> 9594 <param name="group">Group ID to update</param>
10606 <param name="notice"><code>GroupNotice</code> structure containing notice data</param> 9595 <param name="notice">
9596 <code>GroupNotice</code> structure containing notice data</param>
10607 </member> 9597 </member>
10608 <member name="M:OpenMetaverse.GroupManager.StartProposal(OpenMetaverse.UUID,OpenMetaverse.GroupProposal)"> 9598 <member name="M:OpenMetaverse.GroupManager.StartProposal(OpenMetaverse.UUID,OpenMetaverse.GroupProposal)">
10609 <summary>Start a group proposal (vote)</summary> 9599 <summary>Start a group proposal (vote)</summary>
10610 <param name="group">The Group ID to send proposal to</param> 9600 <param name="group">The Group ID to send proposal to</param>
10611 <param name="prop"><code>GroupProposal</code> structure containing the proposal</param> 9601 <param name="prop">
9602 <code>GroupProposal</code> structure containing the proposal</param>
10612 </member> 9603 </member>
10613 <member name="M:OpenMetaverse.GroupManager.LeaveGroup(OpenMetaverse.UUID)"> 9604 <member name="M:OpenMetaverse.GroupManager.LeaveGroup(OpenMetaverse.UUID)">
10614 <summary>Request to leave a group</summary> 9605 <summary>Request to leave a group</summary>
@@ -10690,58 +9681,6 @@
10690 <param name="sender">The sender</param> 9681 <param name="sender">The sender</param>
10691 <param name="e">The EventArgs object containing the packet data</param> 9682 <param name="e">The EventArgs object containing the packet data</param>
10692 </member> 9683 </member>
10693 <member name="E:OpenMetaverse.GroupManager.CurrentGroups">
10694 <summary>Raised when the simulator sends us data containing
10695 our current group membership</summary>
10696 </member>
10697 <member name="E:OpenMetaverse.GroupManager.GroupNamesReply">
10698 <summary>Raised when the simulator responds to a RequestGroupName
10699 or RequestGroupNames request</summary>
10700 </member>
10701 <member name="E:OpenMetaverse.GroupManager.GroupProfile">
10702 <summary>Raised when the simulator responds to a <see cref="M:OpenMetaverse.GroupManager.RequestGroupProfile(OpenMetaverse.UUID)"/> request</summary>
10703 </member>
10704 <member name="E:OpenMetaverse.GroupManager.GroupMembersReply">
10705 <summary>Raised when the simulator responds to a <see cref="M:OpenMetaverse.GroupManager.RequestGroupMembers(OpenMetaverse.UUID)"/> request</summary>
10706 </member>
10707 <member name="E:OpenMetaverse.GroupManager.GroupRoleDataReply">
10708 <summary>Raised when the simulator responds to a <see cref="!:RequestGroupRoleData"/> request</summary>
10709 </member>
10710 <member name="E:OpenMetaverse.GroupManager.GroupRoleMembersReply">
10711 <summary>Raised when the simulator responds to a <see cref="M:OpenMetaverse.GroupManager.RequestGroupRolesMembers(OpenMetaverse.UUID)"/> request</summary>
10712 </member>
10713 <member name="E:OpenMetaverse.GroupManager.GroupTitlesReply">
10714 <summary>Raised when the simulator responds to a <see cref="M:OpenMetaverse.GroupManager.RequestGroupTitles(OpenMetaverse.UUID)"/> request</summary>
10715 </member>
10716 <member name="E:OpenMetaverse.GroupManager.GroupAccountSummaryReply">
10717 <summary>Raised when a response to a RequestGroupAccountSummary is returned
10718 by the simulator</summary>
10719 </member>
10720 <member name="E:OpenMetaverse.GroupManager.GroupCreatedReply">
10721 <summary>Raised when a request to create a group is successful</summary>
10722 </member>
10723 <member name="E:OpenMetaverse.GroupManager.GroupJoinedReply">
10724 <summary>Raised when a request to join a group either
10725 fails or succeeds</summary>
10726 </member>
10727 <member name="E:OpenMetaverse.GroupManager.GroupLeaveReply">
10728 <summary>Raised when a request to leave a group either
10729 fails or succeeds</summary>
10730 </member>
10731 <member name="E:OpenMetaverse.GroupManager.GroupDropped">
10732 <summary>Raised when A group is removed from the group server</summary>
10733 </member>
10734 <member name="E:OpenMetaverse.GroupManager.GroupMemberEjected">
10735 <summary>Raised when a request to eject a member from a group either
10736 fails or succeeds</summary>
10737 </member>
10738 <member name="E:OpenMetaverse.GroupManager.GroupNoticesListReply">
10739 <summary>Raised when the simulator sends us group notices</summary>
10740 <seealso cref="M:OpenMetaverse.GroupManager.RequestGroupNoticesList(OpenMetaverse.UUID)"/>
10741 </member>
10742 <member name="E:OpenMetaverse.GroupManager.GroupInvitation">
10743 <summary>Raised when another agent invites our avatar to join a group</summary>
10744 </member>
10745 <member name="T:OpenMetaverse.CurrentGroupsEventArgs"> 9684 <member name="T:OpenMetaverse.CurrentGroupsEventArgs">
10746 <summary>Contains the current groups your agent is a member of</summary> 9685 <summary>Contains the current groups your agent is a member of</summary>
10747 </member> 9686 </member>
@@ -10927,7 +9866,7 @@
10927 <summary> 9866 <summary>
10928 Provides notification of a group invitation request sent by another Avatar 9867 Provides notification of a group invitation request sent by another Avatar
10929 </summary> 9868 </summary>
10930 <remarks>The <see cref="!:GroupInvitation"/> invitation is raised when another avatar makes an offer for our avatar 9869 <remarks>The <see cref="!:GroupInvitation" /> invitation is raised when another avatar makes an offer for our avatar
10931 to join a group.</remarks> 9870 to join a group.</remarks>
10932 </member> 9871 </member>
10933 <member name="P:OpenMetaverse.GroupInvitationEventArgs.AgentID"> 9872 <member name="P:OpenMetaverse.GroupInvitationEventArgs.AgentID">
@@ -10946,401 +9885,245 @@
10946 <member name="P:OpenMetaverse.GroupInvitationEventArgs.Accept"> 9885 <member name="P:OpenMetaverse.GroupInvitationEventArgs.Accept">
10947 <summary>Set to true to accept invitation, false to decline</summary> 9886 <summary>Set to true to accept invitation, false to decline</summary>
10948 </member> 9887 </member>
10949 <member name="M:OpenMetaverse.CoordinateFrame.LookDirection(OpenMetaverse.Vector3,OpenMetaverse.Vector3)"> 9888 <member name="T:OpenMetaverse.Helpers">
10950 <summary>
10951
10952 </summary>
10953 <param name="at">Looking direction, must be a normalized vector</param>
10954 <param name="upDirection">Up direction, must be a normalized vector</param>
10955 </member>
10956 <member name="M:OpenMetaverse.CoordinateFrame.LookDirection(System.Double)">
10957 <summary>
10958 Align the coordinate frame X and Y axis with a given rotation
10959 around the Z axis in radians
10960 </summary>
10961 <param name="heading">Absolute rotation around the Z axis in
10962 radians</param>
10963 </member>
10964 <member name="P:OpenMetaverse.CoordinateFrame.Origin">
10965 <summary>Origin position of this coordinate frame</summary>
10966 </member>
10967 <member name="P:OpenMetaverse.CoordinateFrame.XAxis">
10968 <summary>X axis of this coordinate frame, or Forward/At in grid terms</summary>
10969 </member>
10970 <member name="P:OpenMetaverse.CoordinateFrame.YAxis">
10971 <summary>Y axis of this coordinate frame, or Left in grid terms</summary>
10972 </member>
10973 <member name="P:OpenMetaverse.CoordinateFrame.ZAxis">
10974 <summary>Z axis of this coordinate frame, or Up in grid terms</summary>
10975 </member>
10976 <member name="T:OpenMetaverse.ProfileFlags">
10977 <summary>
10978 Avatar profile flags
10979 </summary>
10980 </member>
10981 <member name="T:OpenMetaverse.Avatar">
10982 <summary>
10983 Represents an avatar (other than your own)
10984 </summary>
10985 </member>
10986 <member name="F:OpenMetaverse.Avatar.Groups">
10987 <summary>Groups that this avatar is a member of</summary>
10988 </member>
10989 <member name="F:OpenMetaverse.Avatar.ProfileStatistics">
10990 <summary>Positive and negative ratings</summary>
10991 </member>
10992 <member name="F:OpenMetaverse.Avatar.ProfileProperties">
10993 <summary>Avatar properties including about text, profile URL, image IDs and
10994 publishing settings</summary>
10995 </member>
10996 <member name="F:OpenMetaverse.Avatar.ProfileInterests">
10997 <summary>Avatar interests including spoken languages, skills, and "want to"
10998 choices</summary>
10999 </member>
11000 <member name="F:OpenMetaverse.Avatar.ControlFlags">
11001 <summary>Movement control flags for avatars. Typically not set or used by
11002 clients. To move your avatar, use Client.Self.Movement instead</summary>
11003 </member>
11004 <member name="F:OpenMetaverse.Avatar.VisualParameters">
11005 <summary>
11006 Contains the visual parameters describing the deformation of the avatar
11007 </summary>
11008 </member>
11009 <member name="M:OpenMetaverse.Avatar.#ctor">
11010 <summary> 9889 <summary>
11011 Default constructor 9890 Static helper functions and global variables
11012 </summary> 9891 </summary>
11013 </member> 9892 </member>
11014 <member name="P:OpenMetaverse.Avatar.FirstName"> 9893 <member name="T:OpenMetaverse.Helpers.LogLevel">
11015 <summary>First name</summary>
11016 </member>
11017 <member name="P:OpenMetaverse.Avatar.LastName">
11018 <summary>Last name</summary>
11019 </member>
11020 <member name="P:OpenMetaverse.Avatar.Name">
11021 <summary>Full name</summary>
11022 </member>
11023 <member name="P:OpenMetaverse.Avatar.GroupName">
11024 <summary>Active group</summary>
11025 </member>
11026 <member name="T:OpenMetaverse.Avatar.Statistics">
11027 <summary> 9894 <summary>
11028 Positive and negative ratings 9895 Passed to Logger.Log() to identify the severity of a log entry
11029 </summary> 9896 </summary>
11030 </member> 9897 </member>
11031 <member name="F:OpenMetaverse.Avatar.Statistics.BehaviorPositive"> 9898 <member name="F:OpenMetaverse.Helpers.LogLevel.None">
11032 <summary>Positive ratings for Behavior</summary> 9899 <summary>No logging information will be output</summary>
11033 </member>
11034 <member name="F:OpenMetaverse.Avatar.Statistics.BehaviorNegative">
11035 <summary>Negative ratings for Behavior</summary>
11036 </member>
11037 <member name="F:OpenMetaverse.Avatar.Statistics.AppearancePositive">
11038 <summary>Positive ratings for Appearance</summary>
11039 </member>
11040 <member name="F:OpenMetaverse.Avatar.Statistics.AppearanceNegative">
11041 <summary>Negative ratings for Appearance</summary>
11042 </member>
11043 <member name="F:OpenMetaverse.Avatar.Statistics.BuildingPositive">
11044 <summary>Positive ratings for Building</summary>
11045 </member> 9900 </member>
11046 <member name="F:OpenMetaverse.Avatar.Statistics.BuildingNegative"> 9901 <member name="F:OpenMetaverse.Helpers.LogLevel.Info">
11047 <summary>Negative ratings for Building</summary> 9902 <summary>Non-noisy useful information, may be helpful in
9903 debugging a problem</summary>
11048 </member> 9904 </member>
11049 <member name="F:OpenMetaverse.Avatar.Statistics.GivenPositive"> 9905 <member name="F:OpenMetaverse.Helpers.LogLevel.Warning">
11050 <summary>Positive ratings given by this avatar</summary> 9906 <summary>A non-critical error occurred. A warning will not
9907 prevent the rest of the library from operating as usual,
9908 although it may be indicative of an underlying issue</summary>
11051 </member> 9909 </member>
11052 <member name="F:OpenMetaverse.Avatar.Statistics.GivenNegative"> 9910 <member name="F:OpenMetaverse.Helpers.LogLevel.Error">
11053 <summary>Negative ratings given by this avatar</summary> 9911 <summary>A critical error has occurred. Generally this will
9912 be followed by the network layer shutting down, although the
9913 stability of the library after an error is uncertain</summary>
11054 </member> 9914 </member>
11055 <member name="T:OpenMetaverse.Avatar.AvatarProperties"> 9915 <member name="F:OpenMetaverse.Helpers.LogLevel.Debug">
11056 <summary> 9916 <summary>Used for internal testing, this logging level can
11057 Avatar properties including about text, profile URL, image IDs and 9917 generate very noisy (long and/or repetitive) messages. Don't
11058 publishing settings 9918 pass this to the Log() function, use DebugLog() instead.
11059 </summary> 9919 </summary>
11060 </member> 9920 </member>
11061 <member name="F:OpenMetaverse.Avatar.AvatarProperties.FirstLifeText"> 9921 <member name="F:OpenMetaverse.Helpers.MSG_APPENDED_ACKS">
11062 <summary>First Life about text</summary> 9922 <summary>This header flag signals that ACKs are appended to the packet</summary>
11063 </member>
11064 <member name="F:OpenMetaverse.Avatar.AvatarProperties.FirstLifeImage">
11065 <summary>First Life image ID</summary>
11066 </member>
11067 <member name="F:OpenMetaverse.Avatar.AvatarProperties.Partner">
11068 <summary></summary>
11069 </member>
11070 <member name="F:OpenMetaverse.Avatar.AvatarProperties.AboutText">
11071 <summary></summary>
11072 </member>
11073 <member name="F:OpenMetaverse.Avatar.AvatarProperties.BornOn">
11074 <summary></summary>
11075 </member>
11076 <member name="F:OpenMetaverse.Avatar.AvatarProperties.CharterMember">
11077 <summary></summary>
11078 </member>
11079 <member name="F:OpenMetaverse.Avatar.AvatarProperties.ProfileImage">
11080 <summary>Profile image ID</summary>
11081 </member>
11082 <member name="F:OpenMetaverse.Avatar.AvatarProperties.Flags">
11083 <summary>Flags of the profile</summary>
11084 </member>
11085 <member name="F:OpenMetaverse.Avatar.AvatarProperties.ProfileURL">
11086 <summary>Web URL for this profile</summary>
11087 </member>
11088 <member name="P:OpenMetaverse.Avatar.AvatarProperties.AllowPublish">
11089 <summary>Should this profile be published on the web</summary>
11090 </member>
11091 <member name="P:OpenMetaverse.Avatar.AvatarProperties.Online">
11092 <summary>Avatar Online Status</summary>
11093 </member> 9923 </member>
11094 <member name="P:OpenMetaverse.Avatar.AvatarProperties.MaturePublish"> 9924 <member name="F:OpenMetaverse.Helpers.MSG_RESENT">
11095 <summary>Is this a mature profile</summary> 9925 <summary>This header flag signals that this packet has been sent before</summary>
11096 </member> 9926 </member>
11097 <member name="P:OpenMetaverse.Avatar.AvatarProperties.Identified"> 9927 <member name="F:OpenMetaverse.Helpers.MSG_RELIABLE">
11098 <summary></summary> 9928 <summary>This header flags signals that an ACK is expected for this packet</summary>
11099 </member> 9929 </member>
11100 <member name="P:OpenMetaverse.Avatar.AvatarProperties.Transacted"> 9930 <member name="F:OpenMetaverse.Helpers.MSG_ZEROCODED">
11101 <summary></summary> 9931 <summary>This header flag signals that the message is compressed using zerocoding</summary>
11102 </member> 9932 </member>
11103 <member name="T:OpenMetaverse.Avatar.Interests"> 9933 <member name="M:OpenMetaverse.Helpers.TEOffsetShort(System.Single)">
11104 <summary> 9934 <summary>
11105 Avatar interests including spoken languages, skills, and "want to"
11106 choices
11107 </summary> 9935 </summary>
9936 <param name="offset">
9937 </param>
9938 <returns>
9939 </returns>
11108 </member> 9940 </member>
11109 <member name="F:OpenMetaverse.Avatar.Interests.LanguagesText"> 9941 <member name="M:OpenMetaverse.Helpers.TEOffsetFloat(System.Byte[],System.Int32)">
11110 <summary>Languages profile field</summary>
11111 </member>
11112 <member name="F:OpenMetaverse.Avatar.Interests.SkillsMask">
11113 <summary></summary>
11114 </member>
11115 <member name="F:OpenMetaverse.Avatar.Interests.SkillsText">
11116 <summary></summary>
11117 </member>
11118 <member name="F:OpenMetaverse.Avatar.Interests.WantToMask">
11119 <summary></summary>
11120 </member>
11121 <member name="F:OpenMetaverse.Avatar.Interests.WantToText">
11122 <summary></summary>
11123 </member>
11124 <member name="M:OpenMetaverse.Voice.VoiceParticipant.IDFromName(System.String)">
11125 <summary> 9942 <summary>
11126 Extract the avatar UUID encoded in a SIP URI
11127 </summary> 9943 </summary>
11128 <param name="inName"></param> 9944 <param name="bytes">
11129 <returns></returns> 9945 </param>
9946 <param name="pos">
9947 </param>
9948 <returns>
9949 </returns>
11130 </member> 9950 </member>
11131 <member name="T:OpenMetaverse.MediaPermission"> 9951 <member name="M:OpenMetaverse.Helpers.TERotationShort(System.Single)">
11132 <summary> 9952 <summary>
11133 Permissions for control of object media
11134 </summary> 9953 </summary>
9954 <param name="rotation">
9955 </param>
9956 <returns>
9957 </returns>
11135 </member> 9958 </member>
11136 <member name="T:OpenMetaverse.MediaControls"> 9959 <member name="M:OpenMetaverse.Helpers.TERotationFloat(System.Byte[],System.Int32)">
11137 <summary> 9960 <summary>
11138 Style of cotrols that shold be displayed to the user
11139 </summary> 9961 </summary>
9962 <param name="bytes">
9963 </param>
9964 <param name="pos">
9965 </param>
9966 <returns>
9967 </returns>
11140 </member> 9968 </member>
11141 <member name="T:OpenMetaverse.MediaEntry"> 9969 <member name="M:OpenMetaverse.Helpers.GlobalPosToRegionHandle(System.Single,System.Single,System.Single@,System.Single@)">
11142 <summary> 9970 <summary>
11143 Class representing media data for a single face 9971 Given an X/Y location in absolute (grid-relative) terms, a region
9972 handle is returned along with the local X/Y location in that region
11144 </summary> 9973 </summary>
9974 <param name="globalX">The absolute X location, a number such as
9975 255360.35</param>
9976 <param name="globalY">The absolute Y location, a number such as
9977 255360.35</param>
9978 <param name="localX">The sim-local X position of the global X
9979 position, a value from 0.0 to 256.0</param>
9980 <param name="localY">The sim-local Y position of the global Y
9981 position, a value from 0.0 to 256.0</param>
9982 <returns>A 64-bit region handle that can be used to teleport to</returns>
11145 </member> 9983 </member>
11146 <member name="F:OpenMetaverse.MediaEntry.EnableAlterntiveImage"> 9984 <member name="M:OpenMetaverse.Helpers.FloatToTerseString(System.Single)">
11147 <summary>Is display of the alternative image enabled</summary>
11148 </member>
11149 <member name="F:OpenMetaverse.MediaEntry.AutoLoop">
11150 <summary>Should media auto loop</summary>
11151 </member>
11152 <member name="F:OpenMetaverse.MediaEntry.AutoPlay">
11153 <summary>Shoule media be auto played</summary>
11154 </member>
11155 <member name="F:OpenMetaverse.MediaEntry.AutoScale">
11156 <summary>Auto scale media to prim face</summary>
11157 </member>
11158 <member name="F:OpenMetaverse.MediaEntry.AutoZoom">
11159 <summary>Should viewer automatically zoom in on the face when clicked</summary>
11160 </member>
11161 <member name="F:OpenMetaverse.MediaEntry.InteractOnFirstClick">
11162 <summary>Should viewer interpret first click as interaction with the media
11163 or when false should the first click be treated as zoom in commadn</summary>
11164 </member>
11165 <member name="F:OpenMetaverse.MediaEntry.Controls">
11166 <summary>Style of controls viewer should display when
11167 viewer media on this face</summary>
11168 </member>
11169 <member name="F:OpenMetaverse.MediaEntry.HomeURL">
11170 <summary>Starting URL for the media</summary>
11171 </member>
11172 <member name="F:OpenMetaverse.MediaEntry.CurrentURL">
11173 <summary>Currently navigated URL</summary>
11174 </member>
11175 <member name="F:OpenMetaverse.MediaEntry.Height">
11176 <summary>Media height in pixes</summary>
11177 </member>
11178 <member name="F:OpenMetaverse.MediaEntry.Width">
11179 <summary>Media width in pixels</summary>
11180 </member>
11181 <member name="F:OpenMetaverse.MediaEntry.ControlPermissions">
11182 <summary>Who can controls the media</summary>
11183 </member>
11184 <member name="F:OpenMetaverse.MediaEntry.InteractPermissions">
11185 <summary>Who can interact with the media</summary>
11186 </member>
11187 <member name="F:OpenMetaverse.MediaEntry.EnableWhiteList">
11188 <summary>Is URL whitelist enabled</summary>
11189 </member>
11190 <member name="F:OpenMetaverse.MediaEntry.WhiteList">
11191 <summary>Array of URLs that are whitelisted</summary>
11192 </member>
11193 <member name="M:OpenMetaverse.MediaEntry.GetOSD">
11194 <summary> 9985 <summary>
11195 Serialize to OSD 9986 Converts a floating point number to a terse string format used for
9987 transmitting numbers in wearable asset files
11196 </summary> 9988 </summary>
11197 <returns>OSDMap with the serialized data</returns> 9989 <param name="val">Floating point number to convert to a string</param>
9990 <returns>A terse string representation of the input number</returns>
11198 </member> 9991 </member>
11199 <member name="M:OpenMetaverse.MediaEntry.FromOSD(OpenMetaverse.StructuredData.OSD)"> 9992 <member name="M:OpenMetaverse.Helpers.FieldToString(System.Text.StringBuilder,System.Byte[],System.String)">
11200 <summary> 9993 <summary>
11201 Deserialize from OSD data 9994 Convert a variable length field (byte array) to a string, with a
9995 field name prepended to each line of the output
11202 </summary> 9996 </summary>
11203 <param name="osd">Serialized OSD data</param> 9997 <remarks>If the byte array has unprintable characters in it, a
11204 <returns>Deserialized object</returns> 9998 hex dump will be written instead</remarks>
9999 <param name="output">The StringBuilder object to write to</param>
10000 <param name="bytes">The byte array to convert to a string</param>
10001 <param name="fieldName">A field name to prepend to each line of output</param>
11205 </member> 10002 </member>
11206 <member name="T:OpenMetaverse.VisualColorOperation"> 10003 <member name="M:OpenMetaverse.Helpers.ZeroDecode(System.Byte[],System.Int32,System.Byte[])">
11207 <summary> 10004 <summary>
11208 Operation to apply when applying color to texture 10005 Decode a zerocoded byte array, used to decompress packets marked
10006 with the zerocoded flag
11209 </summary> 10007 </summary>
10008 <remarks>Any time a zero is encountered, the next byte is a count
10009 of how many zeroes to expand. One zero is encoded with 0x00 0x01,
10010 two zeroes is 0x00 0x02, three zeroes is 0x00 0x03, etc. The
10011 first four bytes are copied directly to the output buffer.
10012 </remarks>
10013 <param name="src">The byte array to decode</param>
10014 <param name="srclen">The length of the byte array to decode. This
10015 would be the length of the packet up to (but not including) any
10016 appended ACKs</param>
10017 <param name="dest">The output byte array to decode to</param>
10018 <returns>The length of the output buffer</returns>
11210 </member> 10019 </member>
11211 <member name="T:OpenMetaverse.VisualColorParam"> 10020 <member name="M:OpenMetaverse.Helpers.ZeroEncode(System.Byte[],System.Int32,System.Byte[])">
11212 <summary> 10021 <summary>
11213 Information needed to translate visual param value to RGBA color 10022 Encode a byte array with zerocoding. Used to compress packets marked
10023 with the zerocoded flag. Any zeroes in the array are compressed down
10024 to a single zero byte followed by a count of how many zeroes to expand
10025 out. A single zero becomes 0x00 0x01, two zeroes becomes 0x00 0x02,
10026 three zeroes becomes 0x00 0x03, etc. The first four bytes are copied
10027 directly to the output buffer.
11214 </summary> 10028 </summary>
10029 <param name="src">The byte array to encode</param>
10030 <param name="srclen">The length of the byte array to encode</param>
10031 <param name="dest">The output byte array to encode to</param>
10032 <returns>The length of the output buffer</returns>
11215 </member> 10033 </member>
11216 <member name="M:OpenMetaverse.VisualColorParam.#ctor(OpenMetaverse.VisualColorOperation,OpenMetaverse.Color4[])"> 10034 <member name="M:OpenMetaverse.Helpers.InventoryCRC(System.Int32,System.Byte,System.SByte,System.SByte,OpenMetaverse.UUID,OpenMetaverse.UUID,System.Int32,OpenMetaverse.UUID,OpenMetaverse.UUID,OpenMetaverse.UUID,OpenMetaverse.UUID,System.UInt32,System.UInt32,System.UInt32,System.UInt32,System.UInt32)">
11217 <summary> 10035 <summary>
11218 Construct VisualColorParam 10036 Calculates the CRC (cyclic redundancy check) needed to upload inventory.
11219 </summary> 10037 </summary>
11220 <param name="operation">Operation to apply when applying color to texture</param> 10038 <param name="creationDate">Creation date</param>
11221 <param name="colors">Colors</param> 10039 <param name="saleType">Sale type</param>
10040 <param name="invType">Inventory type</param>
10041 <param name="type">Type</param>
10042 <param name="assetID">Asset ID</param>
10043 <param name="groupID">Group ID</param>
10044 <param name="salePrice">Sale price</param>
10045 <param name="ownerID">Owner ID</param>
10046 <param name="creatorID">Creator ID</param>
10047 <param name="itemID">Item ID</param>
10048 <param name="folderID">Folder ID</param>
10049 <param name="everyoneMask">Everyone mask (permissions)</param>
10050 <param name="flags">Flags</param>
10051 <param name="nextOwnerMask">Next owner mask (permissions)</param>
10052 <param name="groupMask">Group mask (permissions)</param>
10053 <param name="ownerMask">Owner mask (permissions)</param>
10054 <returns>The calculated CRC</returns>
11222 </member> 10055 </member>
11223 <member name="T:OpenMetaverse.VisualAlphaParam"> 10056 <member name="M:OpenMetaverse.Helpers.GetResourceStream(System.String)">
11224 <summary> 10057 <summary>
11225 Represents alpha blending and bump infor for a visual parameter 10058 Attempts to load a file embedded in the assembly
11226 such as sleive length
11227 </summary> 10059 </summary>
10060 <param name="resourceName">The filename of the resource to load</param>
10061 <returns>A Stream for the requested file, or null if the resource
10062 was not successfully loaded</returns>
11228 </member> 10063 </member>
11229 <member name="F:OpenMetaverse.VisualAlphaParam.Domain"> 10064 <member name="M:OpenMetaverse.Helpers.GetResourceStream(System.String,System.String)">
11230 <summary>Stregth of the alpha to apply</summary>
11231 </member>
11232 <member name="F:OpenMetaverse.VisualAlphaParam.TGAFile">
11233 <summary>File containing the alpha channel</summary>
11234 </member>
11235 <member name="F:OpenMetaverse.VisualAlphaParam.SkipIfZero">
11236 <summary>Skip blending if parameter value is 0</summary>
11237 </member>
11238 <member name="F:OpenMetaverse.VisualAlphaParam.MultiplyBlend">
11239 <summary>Use miltiply insted of alpha blending</summary>
11240 </member>
11241 <member name="M:OpenMetaverse.VisualAlphaParam.#ctor(System.Single,System.String,System.Boolean,System.Boolean)">
11242 <summary> 10065 <summary>
11243 Create new alhpa information for a visual param 10066 Attempts to load a file either embedded in the assembly or found in
10067 a given search path
11244 </summary> 10068 </summary>
11245 <param name="domain">Stregth of the alpha to apply</param> 10069 <param name="resourceName">The filename of the resource to load</param>
11246 <param name="tgaFile">File containing the alpha channel</param> 10070 <param name="searchPath">An optional path that will be searched if
11247 <param name="skipIfZero">Skip blending if parameter value is 0</param> 10071 the asset is not found embedded in the assembly</param>
11248 <param name="multiplyBlend">Use miltiply insted of alpha blending</param> 10072 <returns>A Stream for the requested file, or null if the resource
10073 was not successfully loaded</returns>
11249 </member> 10074 </member>
11250 <member name="T:OpenMetaverse.VisualParam"> 10075 <member name="M:OpenMetaverse.Helpers.PrimListToOSD(System.Collections.Generic.List{OpenMetaverse.Primitive})">
11251 <summary> 10076 <summary>
11252 A single visual characteristic of an avatar mesh, such as eyebrow height 10077 Converts a list of primitives to an object that can be serialized
10078 with the LLSD system
11253 </summary> 10079 </summary>
10080 <param name="prims">Primitives to convert to a serializable object</param>
10081 <returns>An object that can be serialized with LLSD</returns>
11254 </member> 10082 </member>
11255 <member name="F:OpenMetaverse.VisualParam.ParamID"> 10083 <member name="M:OpenMetaverse.Helpers.OSDToPrimList(OpenMetaverse.StructuredData.OSD)">
11256 <summary>Index of this visual param</summary>
11257 </member>
11258 <member name="F:OpenMetaverse.VisualParam.Name">
11259 <summary>Internal name</summary>
11260 </member>
11261 <member name="F:OpenMetaverse.VisualParam.Group">
11262 <summary>Group ID this parameter belongs to</summary>
11263 </member>
11264 <member name="F:OpenMetaverse.VisualParam.Wearable">
11265 <summary>Name of the wearable this parameter belongs to</summary>
11266 </member>
11267 <member name="F:OpenMetaverse.VisualParam.Label">
11268 <summary>Displayable label of this characteristic</summary>
11269 </member>
11270 <member name="F:OpenMetaverse.VisualParam.LabelMin">
11271 <summary>Displayable label for the minimum value of this characteristic</summary>
11272 </member>
11273 <member name="F:OpenMetaverse.VisualParam.LabelMax">
11274 <summary>Displayable label for the maximum value of this characteristic</summary>
11275 </member>
11276 <member name="F:OpenMetaverse.VisualParam.DefaultValue">
11277 <summary>Default value</summary>
11278 </member>
11279 <member name="F:OpenMetaverse.VisualParam.MinValue">
11280 <summary>Minimum value</summary>
11281 </member>
11282 <member name="F:OpenMetaverse.VisualParam.MaxValue">
11283 <summary>Maximum value</summary>
11284 </member>
11285 <member name="F:OpenMetaverse.VisualParam.IsBumpAttribute">
11286 <summary>Is this param used for creation of bump layer?</summary>
11287 </member>
11288 <member name="F:OpenMetaverse.VisualParam.AlphaParams">
11289 <summary>Alpha blending/bump info</summary>
11290 </member>
11291 <member name="F:OpenMetaverse.VisualParam.ColorParams">
11292 <summary>Color information</summary>
11293 </member>
11294 <member name="F:OpenMetaverse.VisualParam.Drivers">
11295 <summary>Array of param IDs that are drivers for this parameter</summary>
11296 </member>
11297 <member name="M:OpenMetaverse.VisualParam.#ctor(System.Int32,System.String,System.Int32,System.String,System.String,System.String,System.String,System.Single,System.Single,System.Single,System.Boolean,System.Int32[],System.Nullable{OpenMetaverse.VisualAlphaParam},System.Nullable{OpenMetaverse.VisualColorParam})">
11298 <summary> 10084 <summary>
11299 Set all the values through the constructor 10085 Deserializes OSD in to a list of primitives
11300 </summary> 10086 </summary>
11301 <param name="paramID">Index of this visual param</param> 10087 <param name="osd">Structure holding the serialized primitive list,
11302 <param name="name">Internal name</param> 10088 must be of the SDMap type</param>
11303 <param name="group"></param> 10089 <returns>A list of deserialized primitives</returns>
11304 <param name="wearable"></param>
11305 <param name="label">Displayable label of this characteristic</param>
11306 <param name="labelMin">Displayable label for the minimum value of this characteristic</param>
11307 <param name="labelMax">Displayable label for the maximum value of this characteristic</param>
11308 <param name="def">Default value</param>
11309 <param name="min">Minimum value</param>
11310 <param name="max">Maximum value</param>
11311 <param name="isBumpAttribute">Is this param used for creation of bump layer?</param>
11312 <param name="drivers">Array of param IDs that are drivers for this parameter</param>
11313 <param name="alpha">Alpha blending/bump info</param>
11314 <param name="colorParams">Color information</param>
11315 </member> 10090 </member>
11316 <member name="T:OpenMetaverse.VisualParams"> 10091 <member name="M:OpenMetaverse.Helpers.StructToString(System.Object)">
11317 <summary> 10092 <summary>
11318 Holds the Params array of all the avatar appearance parameters 10093 Converts a struct or class object containing fields only into a key value separated string
11319 </summary> 10094 </summary>
10095 <param name="t">The struct object</param>
10096 <returns>A string containing the struct fields as the keys, and the field value as the value separated</returns>
10097 <example>
10098 <code>
10099 // Add the following code to any struct or class containing only fields to override the ToString()
10100 // method to display the values of the passed object
10101 /// <summary>Print the struct data as a string</summary>
10102 ///<returns>A string containing the field name, and field value</returns>
10103 public override string ToString()
10104 {
10105 return Helpers.StructToString(this);
10106 }
10107 </code>
10108 </example>
11320 </member> 10109 </member>
11321 <member name="T:OpenMetaverse.InternalDictionary`2"> 10110 <member name="T:OpenMetaverse.InternalDictionary`2">
11322 <summary> 10111 <summary>
11323 The InternalDictionary class is used through the library for storing key/value pairs. 10112 The InternalDictionary class is used through the library for storing key/value pairs.
11324 It is intended to be a replacement for the generic Dictionary class and should 10113 It is intended to be a replacement for the generic Dictionary class and should
11325 be used in its place. It contains several methods for allowing access to the data from 10114 be used in its place. It contains several methods for allowing access to the data from
11326 outside the library that are read only and thread safe. 10115 outside the library that are read only and thread safe.
11327
11328 </summary> 10116 </summary>
11329 <typeparam name="TKey">Key <see langword="Tkey"/></typeparam> 10117 <typeparam name="TKey">Key <see langword="Tkey" /></typeparam>
11330 <typeparam name="TValue">Value <see langword="TValue"/></typeparam> 10118 <typeparam name="TValue">Value <see langword="TValue" /></typeparam>
11331 </member>
11332 <member name="F:OpenMetaverse.InternalDictionary`2.Dictionary">
11333 <summary>Internal dictionary that this class wraps around. Do not
11334 modify or enumerate the contents of this dictionary without locking
11335 on this member</summary>
11336 </member> 10119 </member>
11337 <member name="M:OpenMetaverse.InternalDictionary`2.#ctor"> 10120 <member name="M:OpenMetaverse.InternalDictionary`2.#ctor">
11338 <summary> 10121 <summary>
11339 Initializes a new instance of the <seealso cref="T:InternalDictionary"/> Class 10122 Initializes a new instance of the <seealso cref="T:InternalDictionary" /> Class
11340 with the specified key/value, has the default initial capacity. 10123 with the specified key/value, has the default initial capacity.
11341 </summary> 10124 </summary>
11342 <example> 10125 <example>
11343 <code> 10126 <code>
11344 // initialize a new InternalDictionary named testDict with a string as the key and an int as the value. 10127 // initialize a new InternalDictionary named testDict with a string as the key and an int as the value.
11345 public InternalDictionary&lt;string, int&gt; testDict = new InternalDictionary&lt;string, int&gt;(); 10128 public InternalDictionary&lt;string, int&gt; testDict = new InternalDictionary&lt;string, int&gt;();
11346 </code> 10129 </code>
@@ -11348,22 +10131,20 @@
11348 </member> 10131 </member>
11349 <member name="M:OpenMetaverse.InternalDictionary`2.#ctor(System.Collections.Generic.IDictionary{`0,`1})"> 10132 <member name="M:OpenMetaverse.InternalDictionary`2.#ctor(System.Collections.Generic.IDictionary{`0,`1})">
11350 <summary> 10133 <summary>
11351 Initializes a new instance of the <seealso cref="T:InternalDictionary"/> Class 10134 Initializes a new instance of the <seealso cref="T:InternalDictionary" /> Class
11352 with the specified key/value, has its initial valies copied from the specified 10135 with the specified key/value, has its initial valies copied from the specified
11353 <seealso cref="T:System.Collections.Generic.Dictionary"/> 10136 <seealso cref="T:System.Collections.Generic.Dictionary" /></summary>
11354 </summary> 10137 <param name="dictionary">
11355 <param name="dictionary"><seealso cref="T:System.Collections.Generic.Dictionary"/> 10138 <seealso cref="T:System.Collections.Generic.Dictionary" />
11356 to copy initial values from</param> 10139 to copy initial values from</param>
11357 <example> 10140 <example>
11358 <code> 10141 <code>
11359 // initialize a new InternalDictionary named testAvName with a UUID as the key and an string as the value. 10142 // initialize a new InternalDictionary named testAvName with a UUID as the key and an string as the value.
11360 // populates with copied values from example KeyNameCache Dictionary. 10143 // populates with copied values from example KeyNameCache Dictionary.
11361
11362 // create source dictionary 10144 // create source dictionary
11363 Dictionary&lt;UUID, string&gt; KeyNameCache = new Dictionary&lt;UUID, string&gt;(); 10145 Dictionary&lt;UUID, string&gt; KeyNameCache = new Dictionary&lt;UUID, string&gt;();
11364 KeyNameCache.Add("8300f94a-7970-7810-cf2c-fc9aa6cdda24", "Jack Avatar"); 10146 KeyNameCache.Add("8300f94a-7970-7810-cf2c-fc9aa6cdda24", "Jack Avatar");
11365 KeyNameCache.Add("27ba1e40-13f7-0708-3e98-5819d780bd62", "Jill Avatar"); 10147 KeyNameCache.Add("27ba1e40-13f7-0708-3e98-5819d780bd62", "Jill Avatar");
11366
11367 // Initialize new dictionary. 10148 // Initialize new dictionary.
11368 public InternalDictionary&lt;UUID, string&gt; testAvName = new InternalDictionary&lt;UUID, string&gt;(KeyNameCache); 10149 public InternalDictionary&lt;UUID, string&gt; testAvName = new InternalDictionary&lt;UUID, string&gt;(KeyNameCache);
11369 </code> 10150 </code>
@@ -11371,33 +10152,50 @@
11371 </member> 10152 </member>
11372 <member name="M:OpenMetaverse.InternalDictionary`2.#ctor(System.Int32)"> 10153 <member name="M:OpenMetaverse.InternalDictionary`2.#ctor(System.Int32)">
11373 <summary> 10154 <summary>
11374 Initializes a new instance of the <seealso cref="T:OpenMetaverse.InternalDictionary"/> Class 10155 Initializes a new instance of the <seealso cref="T:OpenMetaverse.InternalDictionary" /> Class
11375 with the specified key/value, With its initial capacity specified. 10156 with the specified key/value, With its initial capacity specified.
11376 </summary> 10157 </summary>
11377 <param name="capacity">Initial size of dictionary</param> 10158 <param name="capacity">Initial size of dictionary</param>
11378 <example> 10159 <example>
11379 <code> 10160 <code>
11380 // initialize a new InternalDictionary named testDict with a string as the key and an int as the value, 10161 // initialize a new InternalDictionary named testDict with a string as the key and an int as the value,
11381 // initially allocated room for 10 entries. 10162 // initially allocated room for 10 entries.
11382 public InternalDictionary&lt;string, int&gt; testDict = new InternalDictionary&lt;string, int&gt;(10); 10163 public InternalDictionary&lt;string, int&gt; testDict = new InternalDictionary&lt;string, int&gt;(10);
11383 </code> 10164 </code>
11384 </example> 10165 </example>
11385 </member> 10166 </member>
10167 <member name="F:OpenMetaverse.InternalDictionary`2.Dictionary">
10168 <summary>Internal dictionary that this class wraps around. Do not
10169 modify or enumerate the contents of this dictionary without locking
10170 on this member</summary>
10171 </member>
10172 <member name="P:OpenMetaverse.InternalDictionary`2.Item(`0)">
10173 <summary>
10174 Indexer for the dictionary
10175 </summary>
10176 <param name="key">The key</param>
10177 <returns>The value</returns>
10178 </member>
10179 <member name="P:OpenMetaverse.InternalDictionary`2.Count">
10180 <summary>
10181 Gets the number of Key/Value pairs contained in the <seealso cref="T:InternalDictionary" /></summary>
10182 </member>
11386 <member name="M:OpenMetaverse.InternalDictionary`2.TryGetValue(`0,`1@)"> 10183 <member name="M:OpenMetaverse.InternalDictionary`2.TryGetValue(`0,`1@)">
11387 <summary> 10184 <summary>
11388 Try to get entry from <seealso cref="T:OpenMetaverse.InternalDictionary"/> with specified key 10185 Try to get entry from <seealso cref="T:OpenMetaverse.InternalDictionary" /> with specified key
11389 </summary> 10186 </summary>
11390 <param name="key">Key to use for lookup</param> 10187 <param name="key">Key to use for lookup</param>
11391 <param name="value">Value returned</param> 10188 <param name="value">Value returned</param>
11392 <returns><see langword="true"/> if specified key exists, <see langword="false"/> if not found</returns> 10189 <returns>
10190 <see langword="true" /> if specified key exists, <see langword="false" /> if not found</returns>
11393 <example> 10191 <example>
11394 <code> 10192 <code>
11395 // find your avatar using the Simulator.ObjectsAvatars InternalDictionary: 10193 // find your avatar using the Simulator.ObjectsAvatars InternalDictionary:
11396 Avatar av; 10194 Avatar av;
11397 if (Client.Network.CurrentSim.ObjectsAvatars.TryGetValue(Client.Self.AgentID, out av)) 10195 if (Client.Network.CurrentSim.ObjectsAvatars.TryGetValue(Client.Self.AgentID, out av))
11398 Console.WriteLine("Found Avatar {0}", av.Name); 10196 Console.WriteLine("Found Avatar {0}", av.Name);
11399 </code> 10197 </code>
11400 <seealso cref="F:OpenMetaverse.Simulator.ObjectsAvatars"/> 10198 <seealso cref="F:OpenMetaverse.Simulator.ObjectsAvatars" />
11401 </example> 10199 </example>
11402 </member> 10200 </member>
11403 <member name="M:OpenMetaverse.InternalDictionary`2.Find(System.Predicate{`1})"> 10201 <member name="M:OpenMetaverse.InternalDictionary`2.Find(System.Predicate{`1})">
@@ -11407,90 +10205,91 @@
11407 <param name="match">The match.</param> 10205 <param name="match">The match.</param>
11408 <returns>Matched value</returns> 10206 <returns>Matched value</returns>
11409 <example> 10207 <example>
11410 <code> 10208 <code>
11411 // use a delegate to find a prim in the ObjectsPrimitives InternalDictionary 10209 // use a delegate to find a prim in the ObjectsPrimitives InternalDictionary
11412 // with the ID 95683496 10210 // with the ID 95683496
11413 uint findID = 95683496; 10211 uint findID = 95683496;
11414 Primitive findPrim = sim.ObjectsPrimitives.Find( 10212 Primitive findPrim = sim.ObjectsPrimitives.Find(
11415 delegate(Primitive prim) { return prim.ID == findID; }); 10213 delegate(Primitive prim) { return prim.ID == findID; });
11416 </code> 10214 </code>
11417 </example> 10215 </example>
11418 </member> 10216 </member>
11419 <member name="M:OpenMetaverse.InternalDictionary`2.FindAll(System.Predicate{`1})"> 10217 <member name="M:OpenMetaverse.InternalDictionary`2.FindAll(System.Predicate{`1})">
11420 <summary>Find All items in an <seealso cref="T:InternalDictionary"/></summary> 10218 <summary>Find All items in an <seealso cref="T:InternalDictionary" /></summary>
11421 <param name="match">return matching items.</param> 10219 <param name="match">return matching items.</param>
11422 <returns>a <seealso cref="T:System.Collections.Generic.List"/> containing found items.</returns> 10220 <returns>a <seealso cref="T:System.Collections.Generic.List" /> containing found items.</returns>
11423 <example> 10221 <example>
11424 Find All prims within 20 meters and store them in a List 10222 Find All prims within 20 meters and store them in a List
11425 <code> 10223 <code>
11426 int radius = 20; 10224 int radius = 20;
11427 List&lt;Primitive&gt; prims = Client.Network.CurrentSim.ObjectsPrimitives.FindAll( 10225 List&lt;Primitive&gt; prims = Client.Network.CurrentSim.ObjectsPrimitives.FindAll(
11428 delegate(Primitive prim) { 10226 delegate(Primitive prim) {
11429 Vector3 pos = prim.Position; 10227 Vector3 pos = prim.Position;
11430 return ((prim.ParentID == 0) &amp;&amp; (pos != Vector3.Zero) &amp;&amp; (Vector3.Distance(pos, location) &lt; radius)); 10228 return ((prim.ParentID == 0) &amp;&amp; (pos != Vector3.Zero) &amp;&amp; (Vector3.Distance(pos, location) &lt; radius));
11431 } 10229 }
11432 ); 10230 );
11433 </code> 10231 </code></example>
11434 </example>
11435 </member> 10232 </member>
11436 <member name="M:OpenMetaverse.InternalDictionary`2.FindAll(System.Predicate{`0})"> 10233 <member name="M:OpenMetaverse.InternalDictionary`2.FindAll(System.Predicate{`0})">
11437 <summary>Find All items in an <seealso cref="T:InternalDictionary"/></summary> 10234 <summary>Find All items in an <seealso cref="T:InternalDictionary" /></summary>
11438 <param name="match">return matching keys.</param> 10235 <param name="match">return matching keys.</param>
11439 <returns>a <seealso cref="T:System.Collections.Generic.List"/> containing found keys.</returns> 10236 <returns>a <seealso cref="T:System.Collections.Generic.List" /> containing found keys.</returns>
11440 <example> 10237 <example>
11441 Find All keys which also exist in another dictionary 10238 Find All keys which also exist in another dictionary
11442 <code> 10239 <code>
11443 List&lt;UUID&gt; matches = myDict.FindAll( 10240 List&lt;UUID&gt; matches = myDict.FindAll(
11444 delegate(UUID id) { 10241 delegate(UUID id) {
11445 return myOtherDict.ContainsKey(id); 10242 return myOtherDict.ContainsKey(id);
11446 } 10243 }
11447 ); 10244 );
11448 </code> 10245 </code></example>
11449 </example>
11450 </member> 10246 </member>
11451 <member name="M:OpenMetaverse.InternalDictionary`2.ForEach(System.Action{`1})"> 10247 <member name="M:OpenMetaverse.InternalDictionary`2.ForEach(System.Action{`1})">
11452 <summary>Perform an <seealso cref="T:System.Action"/> on each entry in an <seealso cref="T:OpenMetaverse.InternalDictionary"/></summary> 10248 <summary>Perform an <seealso cref="T:System.Action" /> on each entry in an <seealso cref="T:OpenMetaverse.InternalDictionary" /></summary>
11453 <param name="action"><seealso cref="T:System.Action"/> to perform</param> 10249 <param name="action">
11454 <example> 10250 <seealso cref="T:System.Action" /> to perform</param>
11455 <code> 10251 <example>
11456 // Iterates over the ObjectsPrimitives InternalDictionary and prints out some information. 10252 <code>
11457 Client.Network.CurrentSim.ObjectsPrimitives.ForEach( 10253 // Iterates over the ObjectsPrimitives InternalDictionary and prints out some information.
11458 delegate(Primitive prim) 10254 Client.Network.CurrentSim.ObjectsPrimitives.ForEach(
11459 { 10255 delegate(Primitive prim)
11460 if (prim.Text != null) 10256 {
11461 { 10257 if (prim.Text != null)
11462 Console.WriteLine("NAME={0} ID = {1} TEXT = '{2}'", 10258 {
11463 prim.PropertiesFamily.Name, prim.ID, prim.Text); 10259 Console.WriteLine("NAME={0} ID = {1} TEXT = '{2}'",
11464 } 10260 prim.PropertiesFamily.Name, prim.ID, prim.Text);
11465 }); 10261 }
10262 });
11466 </code> 10263 </code>
11467 </example> 10264 </example>
11468 </member> 10265 </member>
11469 <member name="M:OpenMetaverse.InternalDictionary`2.ForEach(System.Action{`0})"> 10266 <member name="M:OpenMetaverse.InternalDictionary`2.ForEach(System.Action{`0})">
11470 <summary>Perform an <seealso cref="T:System.Action"/> on each key of an <seealso cref="T:OpenMetaverse.InternalDictionary"/></summary> 10267 <summary>Perform an <seealso cref="T:System.Action" /> on each key of an <seealso cref="T:OpenMetaverse.InternalDictionary" /></summary>
11471 <param name="action"><seealso cref="T:System.Action"/> to perform</param> 10268 <param name="action">
10269 <seealso cref="T:System.Action" /> to perform</param>
11472 </member> 10270 </member>
11473 <member name="M:OpenMetaverse.InternalDictionary`2.ForEach(System.Action{System.Collections.Generic.KeyValuePair{`0,`1}})"> 10271 <member name="M:OpenMetaverse.InternalDictionary`2.ForEach(System.Action{System.Collections.Generic.KeyValuePair{`0,`1}})">
11474 <summary> 10272 <summary>
11475 Perform an <seealso cref="T:System.Action"/> on each KeyValuePair of an <seealso cref="T:OpenMetaverse.InternalDictionary"/> 10273 Perform an <seealso cref="T:System.Action" /> on each KeyValuePair of an <seealso cref="T:OpenMetaverse.InternalDictionary" /></summary>
11476 </summary> 10274 <param name="action">
11477 <param name="action"><seealso cref="T:System.Action"/> to perform</param> 10275 <seealso cref="T:System.Action" /> to perform</param>
11478 </member> 10276 </member>
11479 <member name="M:OpenMetaverse.InternalDictionary`2.ContainsKey(`0)"> 10277 <member name="M:OpenMetaverse.InternalDictionary`2.ContainsKey(`0)">
11480 <summary>Check if Key exists in Dictionary</summary> 10278 <summary>Check if Key exists in Dictionary</summary>
11481 <param name="key">Key to check for</param> 10279 <param name="key">Key to check for</param>
11482 <returns><see langword="true"/> if found, <see langword="false"/> otherwise</returns> 10280 <returns>
10281 <see langword="true" /> if found, <see langword="false" /> otherwise</returns>
11483 </member> 10282 </member>
11484 <member name="M:OpenMetaverse.InternalDictionary`2.ContainsValue(`1)"> 10283 <member name="M:OpenMetaverse.InternalDictionary`2.ContainsValue(`1)">
11485 <summary>Check if Value exists in Dictionary</summary> 10284 <summary>Check if Value exists in Dictionary</summary>
11486 <param name="value">Value to check for</param> 10285 <param name="value">Value to check for</param>
11487 <returns><see langword="true"/> if found, <see langword="false"/> otherwise</returns> 10286 <returns>
10287 <see langword="true" /> if found, <see langword="false" /> otherwise</returns>
11488 </member> 10288 </member>
11489 <member name="M:OpenMetaverse.InternalDictionary`2.Add(`0,`1)"> 10289 <member name="M:OpenMetaverse.InternalDictionary`2.Add(`0,`1)">
11490 <summary> 10290 <summary>
11491 Adds the specified key to the dictionary, dictionary locking is not performed, 10291 Adds the specified key to the dictionary, dictionary locking is not performed,
11492 <see cref="!:SafeAdd"/> 10292 <see cref="!:SafeAdd" /></summary>
11493 </summary>
11494 <param name="key">The key</param> 10293 <param name="key">The key</param>
11495 <param name="value">The value</param> 10294 <param name="value">The value</param>
11496 </member> 10295 </member>
@@ -11499,3394 +10298,2625 @@
11499 Removes the specified key, dictionary locking is not performed 10298 Removes the specified key, dictionary locking is not performed
11500 </summary> 10299 </summary>
11501 <param name="key">The key.</param> 10300 <param name="key">The key.</param>
11502 <returns><see langword="true"/> if successful, <see langword="false"/> otherwise</returns> 10301 <returns>
10302 <see langword="true" /> if successful, <see langword="false" /> otherwise</returns>
11503 </member> 10303 </member>
11504 <member name="P:OpenMetaverse.InternalDictionary`2.Count"> 10304 <member name="T:OpenMetaverse.InventoryException">
11505 <summary> 10305 <summary>
11506 Gets the number of Key/Value pairs contained in the <seealso cref="T:InternalDictionary"/> 10306 Exception class to identify inventory exceptions
11507 </summary> 10307 </summary>
11508 </member> 10308 </member>
11509 <member name="P:OpenMetaverse.InternalDictionary`2.Item(`0)"> 10309 <member name="T:OpenMetaverse.Inventory">
11510 <summary> 10310 <summary>
11511 Indexer for the dictionary 10311 Responsible for maintaining inventory structure. Inventory constructs nodes
10312 and manages node children as is necessary to maintain a coherant hirarchy.
10313 Other classes should not manipulate or create InventoryNodes explicitly. When
10314 A node's parent changes (when a folder is moved, for example) simply pass
10315 Inventory the updated InventoryFolder and it will make the appropriate changes
10316 to its internal representation.
11512 </summary> 10317 </summary>
11513 <param name="key">The key</param>
11514 <returns>The value</returns>
11515 </member> 10318 </member>
11516 <member name="M:OpenMetaverse.Voice.VoiceGateway.ConnectorCreate(System.String,System.String,System.UInt16,System.UInt16,OpenMetaverse.Voice.VoiceGateway.VoiceLoggingSettings)"> 10319 <member name="F:OpenMetaverse.Inventory.m_InventoryObjectUpdated">
10320 <summary>The event subscribers, null of no subscribers</summary>
10321 </member>
10322 <member name="F:OpenMetaverse.Inventory.m_InventoryObjectUpdatedLock">
10323 <summary>Thread sync lock object</summary>
10324 </member>
10325 <member name="F:OpenMetaverse.Inventory.m_InventoryObjectRemoved">
10326 <summary>The event subscribers, null of no subscribers</summary>
10327 </member>
10328 <member name="F:OpenMetaverse.Inventory.m_InventoryObjectRemovedLock">
10329 <summary>Thread sync lock object</summary>
10330 </member>
10331 <member name="F:OpenMetaverse.Inventory.m_InventoryObjectAdded">
10332 <summary>The event subscribers, null of no subscribers</summary>
10333 </member>
10334 <member name="F:OpenMetaverse.Inventory.m_InventoryObjectAddedLock">
10335 <summary>Thread sync lock object</summary>
10336 </member>
10337 <member name="E:OpenMetaverse.Inventory.InventoryObjectUpdated">
10338 <summary>Raised when the simulator sends us data containing
10339 ...</summary>
10340 </member>
10341 <member name="E:OpenMetaverse.Inventory.InventoryObjectRemoved">
10342 <summary>Raised when the simulator sends us data containing
10343 ...</summary>
10344 </member>
10345 <member name="E:OpenMetaverse.Inventory.InventoryObjectAdded">
10346 <summary>Raised when the simulator sends us data containing
10347 ...</summary>
10348 </member>
10349 <member name="P:OpenMetaverse.Inventory.Item(OpenMetaverse.UUID)">
11517 <summary> 10350 <summary>
11518 This is used to initialize and stop the Connector as a whole. The Connector 10351 By using the bracket operator on this class, the program can get the
11519 Create call must be completed successfully before any other requests are made 10352 InventoryObject designated by the specified uuid. If the value for the corresponding
11520 (typically during application initialization). The shutdown should be called 10353 UUID is null, the call is equivelant to a call to <code>RemoveNodeFor(this[uuid])</code>.
11521 when the application is shutting down to gracefully release resources 10354 If the value is non-null, it is equivelant to a call to <code>UpdateNodeFor(value)</code>,
10355 the uuid parameter is ignored.
11522 </summary> 10356 </summary>
11523 <param name="ClientName">A string value indicting the Application name</param> 10357 <param name="uuid">The UUID of the InventoryObject to get or set, ignored if set to non-null value.</param>
11524 <param name="AccountManagementServer">URL for the management server</param> 10358 <returns>The InventoryObject corresponding to <code>uuid</code>.</returns>
11525 <param name="Logging">LoggingSettings</param>
11526 <param name="MaximumPort"></param>
11527 <param name="MinimumPort"></param>
11528 </member> 10359 </member>
11529 <member name="M:OpenMetaverse.Voice.VoiceGateway.ConnectorInitiateShutdown(System.String)"> 10360 <member name="P:OpenMetaverse.Inventory.RootFolder">
11530 <summary> 10361 <summary>
11531 Shutdown Connector -- Should be called when the application is shutting down 10362 The root folder of this avatars inventory
11532 to gracefully release resources
11533 </summary> 10363 </summary>
11534 <param name="ConnectorHandle">Handle returned from successful Connector ‘create’ request</param>
11535 </member> 10364 </member>
11536 <member name="M:OpenMetaverse.Voice.VoiceGateway.ConnectorMuteLocalMic(System.String,System.Boolean)"> 10365 <member name="P:OpenMetaverse.Inventory.LibraryFolder">
11537 <summary> 10366 <summary>
11538 Mute or unmute the microphone 10367 The default shared library folder
11539 </summary> 10368 </summary>
11540 <param name="ConnectorHandle">Handle returned from successful Connector ‘create’ request</param>
11541 <param name="Mute">true (mute) or false (unmute)</param>
11542 </member> 10369 </member>
11543 <member name="M:OpenMetaverse.Voice.VoiceGateway.ConnectorMuteLocalSpeaker(System.String,System.Boolean)"> 10370 <member name="P:OpenMetaverse.Inventory.RootNode">
11544 <summary> 10371 <summary>
11545 Mute or unmute the speaker 10372 The root node of the avatars inventory
11546 </summary> 10373 </summary>
11547 <param name="ConnectorHandle">Handle returned from successful Connector ‘create’ request</param>
11548 <param name="Mute">true (mute) or false (unmute)</param>
11549 </member> 10374 </member>
11550 <member name="M:OpenMetaverse.Voice.VoiceGateway.ConnectorSetLocalMicVolume(System.String,System.Int32)"> 10375 <member name="P:OpenMetaverse.Inventory.LibraryRootNode">
11551 <summary> 10376 <summary>
11552 Set microphone volume 10377 The root node of the default shared library
11553 </summary> 10378 </summary>
11554 <param name="ConnectorHandle">Handle returned from successful Connector ‘create’ request</param>
11555 <param name="Value">The level of the audio, a number between -100 and 100 where
11556 0 represents ‘normal’ speaking volume</param>
11557 </member> 10379 </member>
11558 <member name="M:OpenMetaverse.Voice.VoiceGateway.ConnectorSetLocalSpeakerVolume(System.String,System.Int32)"> 10380 <member name="M:OpenMetaverse.Inventory.OnInventoryObjectUpdated(OpenMetaverse.InventoryObjectUpdatedEventArgs)">
10381 <summary>Raises the InventoryObjectUpdated Event</summary>
10382 <param name="e">A InventoryObjectUpdatedEventArgs object containing
10383 the data sent from the simulator</param>
10384 </member>
10385 <member name="M:OpenMetaverse.Inventory.OnInventoryObjectRemoved(OpenMetaverse.InventoryObjectRemovedEventArgs)">
10386 <summary>Raises the InventoryObjectRemoved Event</summary>
10387 <param name="e">A InventoryObjectRemovedEventArgs object containing
10388 the data sent from the simulator</param>
10389 </member>
10390 <member name="M:OpenMetaverse.Inventory.OnInventoryObjectAdded(OpenMetaverse.InventoryObjectAddedEventArgs)">
10391 <summary>Raises the InventoryObjectAdded Event</summary>
10392 <param name="e">A InventoryObjectAddedEventArgs object containing
10393 the data sent from the simulator</param>
10394 </member>
10395 <member name="M:OpenMetaverse.Inventory.GetContents(OpenMetaverse.UUID)">
11559 <summary> 10396 <summary>
11560 Set local speaker volume 10397 Returns the contents of the specified folder
11561 </summary> 10398 </summary>
11562 <param name="ConnectorHandle">Handle returned from successful Connector ‘create’ request</param> 10399 <param name="folder">A folder's UUID</param>
11563 <param name="Value">The level of the audio, a number between -100 and 100 where 10400 <returns>The contents of the folder corresponding to <code>folder</code></returns>
11564 0 represents ‘normal’ speaking volume</param> 10401 <exception cref="T:OpenMetaverse.InventoryException">When <code>folder</code> does not exist in the inventory</exception>
11565 </member> 10402 </member>
11566 <member name="M:OpenMetaverse.Voice.VoiceGateway.StartDaemon(System.String,System.String)"> 10403 <member name="M:OpenMetaverse.Inventory.UpdateNodeFor(OpenMetaverse.InventoryBase)">
11567 <summary> 10404 <summary>
11568 Starts a thread that keeps the daemon running 10405 Updates the state of the InventoryNode and inventory data structure that
10406 is responsible for the InventoryObject. If the item was previously not added to inventory,
10407 it adds the item, and updates structure accordingly. If it was, it updates the
10408 InventoryNode, changing the parent node if <code>item.parentUUID</code> does
10409 not match <code>node.Parent.Data.UUID</code>.
10410 You can not set the inventory root folder using this method
11569 </summary> 10411 </summary>
11570 <param name="path"></param> 10412 <param name="item">The InventoryObject to store</param>
11571 <param name="args"></param>
11572 </member> 10413 </member>
11573 <member name="M:OpenMetaverse.Voice.VoiceGateway.StopDaemon"> 10414 <member name="M:OpenMetaverse.Inventory.RemoveNodeFor(OpenMetaverse.InventoryBase)">
11574 <summary> 10415 <summary>
11575 Stops the daemon and the thread keeping it running 10416 Removes the InventoryObject and all related node data from Inventory.
11576 </summary> 10417 </summary>
10418 <param name="item">The InventoryObject to remove.</param>
11577 </member> 10419 </member>
11578 <member name="M:OpenMetaverse.Voice.VoiceGateway.ConnectToDaemon(System.String,System.Int32)"> 10420 <member name="M:OpenMetaverse.Inventory.Contains(OpenMetaverse.UUID)">
11579 <summary> 10421 <summary>
11580 10422 Used to find out if Inventory contains the InventoryObject
10423 specified by <code>uuid</code>.
11581 </summary> 10424 </summary>
11582 <param name="address"></param> 10425 <param name="uuid">The UUID to check.</param>
11583 <param name="port"></param> 10426 <returns>true if inventory contains uuid, false otherwise</returns>
11584 <returns></returns>
11585 </member> 10427 </member>
11586 <member name="M:OpenMetaverse.Voice.VoiceGateway.AuxGetCaptureDevices"> 10428 <member name="M:OpenMetaverse.Inventory.SaveToDisk(System.String)">
11587 <summary> 10429 <summary>
11588 This is used to get a list of audio devices that can be used for capture (input) of voice. 10430 Saves the current inventory structure to a cache file
11589 </summary> 10431 </summary>
11590 <returns></returns> 10432 <param name="filename">Name of the cache file to save to</param>
11591 </member> 10433 </member>
11592 <member name="M:OpenMetaverse.Voice.VoiceGateway.AuxGetRenderDevices"> 10434 <member name="M:OpenMetaverse.Inventory.RestoreFromDisk(System.String)">
11593 <summary> 10435 <summary>
11594 This is used to get a list of audio devices that can be used for render (playback) of voice. 10436 Loads in inventory cache file into the inventory structure. Note only valid to call after login has been successful.
11595 </summary> 10437 </summary>
10438 <param name="filename">Name of the cache file to load</param>
10439 <returns>The number of inventory items sucessfully reconstructed into the inventory node tree</returns>
11596 </member> 10440 </member>
11597 <member name="M:OpenMetaverse.Voice.VoiceGateway.AuxSetRenderDevice(System.String)"> 10441 <member name="F:OpenMetaverse.InventorySortOrder.ByName">
10442 <summary>Sort by name</summary>
10443 </member>
10444 <member name="F:OpenMetaverse.InventorySortOrder.ByDate">
10445 <summary>Sort by date</summary>
10446 </member>
10447 <member name="F:OpenMetaverse.InventorySortOrder.FoldersByName">
10448 <summary>Sort folders by name, regardless of whether items are
10449 sorted by name or date</summary>
10450 </member>
10451 <member name="F:OpenMetaverse.InventorySortOrder.SystemFoldersToTop">
10452 <summary>Place system folders at the top</summary>
10453 </member>
10454 <member name="T:OpenMetaverse.DeRezDestination">
11598 <summary> 10455 <summary>
11599 This command is used to select the render device. 10456 Possible destinations for DeRezObject request
11600 </summary> 10457 </summary>
11601 <param name="RenderDeviceSpecifier">The name of the device as returned by the Aux.GetRenderDevices command.</param>
11602 </member> 10458 </member>
11603 <member name="M:OpenMetaverse.Voice.VoiceGateway.AuxSetCaptureDevice(System.String)"> 10459 <member name="F:OpenMetaverse.DeRezDestination.AgentInventorySave">
11604 <summary> 10460 <summary>
11605 This command is used to select the capture device.
11606 </summary> 10461 </summary>
11607 <param name="CaptureDeviceSpecifier">The name of the device as returned by the Aux.GetCaptureDevices command.</param>
11608 </member> 10462 </member>
11609 <member name="M:OpenMetaverse.Voice.VoiceGateway.AuxCaptureAudioStart(System.Int32)"> 10463 <member name="F:OpenMetaverse.DeRezDestination.AgentInventoryCopy">
10464 <summary>Copy from in-world to agent inventory</summary>
10465 </member>
10466 <member name="F:OpenMetaverse.DeRezDestination.TaskInventory">
10467 <summary>Derez to TaskInventory</summary>
10468 </member>
10469 <member name="F:OpenMetaverse.DeRezDestination.Attachment">
11610 <summary> 10470 <summary>
11611 This command is used to start the audio capture process which will cause
11612 AuxAudioProperty Events to be raised. These events can be used to display a
11613 microphone VU meter for the currently selected capture device. This command
11614 should not be issued if the user is on a call.
11615 </summary> 10471 </summary>
11616 <param name="Duration">(unused but required)</param>
11617 <returns></returns>
11618 </member> 10472 </member>
11619 <member name="M:OpenMetaverse.Voice.VoiceGateway.AuxCaptureAudioStop"> 10473 <member name="F:OpenMetaverse.DeRezDestination.AgentInventoryTake">
10474 <summary>Take Object</summary>
10475 </member>
10476 <member name="F:OpenMetaverse.DeRezDestination.ForceToGodInventory">
11620 <summary> 10477 <summary>
11621 This command is used to stop the audio capture process.
11622 </summary> 10478 </summary>
11623 <returns></returns>
11624 </member> 10479 </member>
11625 <member name="M:OpenMetaverse.Voice.VoiceGateway.AuxSetMicLevel(System.Int32)"> 10480 <member name="F:OpenMetaverse.DeRezDestination.TrashFolder">
10481 <summary>Delete Object</summary>
10482 </member>
10483 <member name="F:OpenMetaverse.DeRezDestination.AttachmentToInventory">
10484 <summary>Put an avatar attachment into agent inventory</summary>
10485 </member>
10486 <member name="F:OpenMetaverse.DeRezDestination.AttachmentExists">
11626 <summary> 10487 <summary>
11627 This command is used to set the mic volume while in the audio tuning process.
11628 Once an acceptable mic level is attained, the application must issue a
11629 connector set mic volume command to have that level be used while on voice
11630 calls.
11631 </summary> 10488 </summary>
11632 <param name="Level">the microphone volume (-100 to 100 inclusive)</param>
11633 <returns></returns>
11634 </member> 10489 </member>
11635 <member name="M:OpenMetaverse.Voice.VoiceGateway.AuxSetSpeakerLevel(System.Int32)"> 10490 <member name="F:OpenMetaverse.DeRezDestination.ReturnToOwner">
10491 <summary>Return an object back to the owner's inventory</summary>
10492 </member>
10493 <member name="F:OpenMetaverse.DeRezDestination.ReturnToLastOwner">
10494 <summary>Return a deeded object back to the last owner's inventory</summary>
10495 </member>
10496 <member name="T:OpenMetaverse.InventoryItemFlags">
11636 <summary> 10497 <summary>
11637 This command is used to set the speaker volume while in the audio tuning 10498 Upper half of the Flags field for inventory items
11638 process. Once an acceptable speaker level is attained, the application must
11639 issue a connector set speaker volume command to have that level be used while
11640 on voice calls.
11641 </summary> 10499 </summary>
11642 <param name="Level">the speaker volume (-100 to 100 inclusive)</param>
11643 <returns></returns>
11644 </member> 10500 </member>
11645 <member name="M:OpenMetaverse.Voice.VoiceGateway.SessionCreate(System.String,System.String,System.String,System.String,System.Boolean,System.Boolean,System.String)"> 10501 <member name="F:OpenMetaverse.InventoryItemFlags.ObjectSlamPerm">
10502 <summary>Indicates that the NextOwner permission will be set to the
10503 most restrictive set of permissions found in the object set
10504 (including linkset items and object inventory items) on next rez</summary>
10505 </member>
10506 <member name="F:OpenMetaverse.InventoryItemFlags.ObjectSlamSale">
10507 <summary>Indicates that the object sale information has been
10508 changed</summary>
10509 </member>
10510 <member name="F:OpenMetaverse.InventoryItemFlags.ObjectOverwriteBase">
10511 <summary>If set, and a slam bit is set, indicates BaseMask will be overwritten on Rez</summary>
10512 </member>
10513 <member name="F:OpenMetaverse.InventoryItemFlags.ObjectOverwriteOwner">
10514 <summary>If set, and a slam bit is set, indicates OwnerMask will be overwritten on Rez</summary>
10515 </member>
10516 <member name="F:OpenMetaverse.InventoryItemFlags.ObjectOverwriteGroup">
10517 <summary>If set, and a slam bit is set, indicates GroupMask will be overwritten on Rez</summary>
10518 </member>
10519 <member name="F:OpenMetaverse.InventoryItemFlags.ObjectOverwriteEveryone">
10520 <summary>If set, and a slam bit is set, indicates EveryoneMask will be overwritten on Rez</summary>
10521 </member>
10522 <member name="F:OpenMetaverse.InventoryItemFlags.ObjectOverwriteNextOwner">
10523 <summary>If set, and a slam bit is set, indicates NextOwnerMask will be overwritten on Rez</summary>
10524 </member>
10525 <member name="F:OpenMetaverse.InventoryItemFlags.ObjectHasMultipleItems">
10526 <summary>Indicates whether this object is composed of multiple
10527 items or not</summary>
10528 </member>
10529 <member name="F:OpenMetaverse.InventoryItemFlags.SharedSingleReference">
10530 <summary>Indicates that the asset is only referenced by this
10531 inventory item. If this item is deleted or updated to reference a
10532 new assetID, the asset can be deleted</summary>
10533 </member>
10534 <member name="T:OpenMetaverse.InventoryBase">
11646 <summary> 10535 <summary>
11647 Create a Session 10536 Base Class for Inventory Items
11648 Sessions typically represent a connection to a media session with one or more
11649 participants. This is used to generate an ‘outbound’ call to another user or
11650 channel. The specifics depend on the media types involved. A session handle is
11651 required to control the local user functions within the session (or remote
11652 users if the current account has rights to do so). Currently creating a
11653 session automatically connects to the audio media, there is no need to call
11654 Session.Connect at this time, this is reserved for future use.
11655 </summary> 10537 </summary>
11656 <param name="AccountHandle">Handle returned from successful Connector ‘create’ request</param>
11657 <param name="URI">This is the URI of the terminating point of the session (ie who/what is being called)</param>
11658 <param name="Name">This is the display name of the entity being called (user or channel)</param>
11659 <param name="Password">Only needs to be supplied when the target URI is password protected</param>
11660 <param name="PasswordHashAlgorithm">This indicates the format of the password as passed in. This can either be
11661 “ClearText” or “SHA1UserName”. If this element does not exist, it is assumed to be “ClearText”. If it is
11662 “SHA1UserName”, the password as passed in is the SHA1 hash of the password and username concatenated together,
11663 then base64 encoded, with the final “=” character stripped off.</param>
11664 <param name="JoinAudio"></param>
11665 <param name="JoinText"></param>
11666 <returns></returns>
11667 </member> 10538 </member>
11668 <member name="M:OpenMetaverse.Voice.VoiceGateway.SessionConnect(System.String,System.String)"> 10539 <member name="M:OpenMetaverse.InventoryBase.#ctor(OpenMetaverse.UUID)">
11669 <summary> 10540 <summary>
11670 Used to accept a call 10541 Constructor, takes an itemID as a parameter
11671 </summary> 10542 </summary>
11672 <param name="SessionHandle">SessionHandle such as received from SessionNewEvent</param> 10543 <param name="itemID">The <seealso cref="T:OpenMetaverse.UUID" /> of the item</param>
11673 <param name="AudioMedia">"default"</param>
11674 <returns></returns>
11675 </member> 10544 </member>
11676 <member name="M:OpenMetaverse.Voice.VoiceGateway.SessionRenderAudioStart(System.String,System.Boolean)"> 10545 <member name="M:OpenMetaverse.InventoryBase.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
11677 <summary> 10546 <summary>
11678 This command is used to start the audio render process, which will then play
11679 the passed in file through the selected audio render device. This command
11680 should not be issued if the user is on a call.
11681 </summary> 10547 </summary>
11682 <param name="SoundFilePath">The fully qualified path to the sound file.</param> 10548 <returns>
11683 <param name="Loop">True if the file is to be played continuously and false if it is should be played once.</param> 10549 </returns>
11684 <returns></returns>
11685 </member> 10550 </member>
11686 <member name="M:OpenMetaverse.Voice.VoiceGateway.SessionRenderAudioStop(System.String)"> 10551 <member name="F:OpenMetaverse.InventoryBase.UUID">
11687 <summary> 10552 <summary>
11688 This command is used to stop the audio render process. 10553 <seealso cref="T:OpenMetaverse.UUID" /> of item/folder</summary>
11689 </summary>
11690 <param name="SoundFilePath">The fully qualified path to the sound file issued in the start render command.</param>
11691 <returns></returns>
11692 </member> 10554 </member>
11693 <member name="M:OpenMetaverse.Voice.VoiceGateway.SessionTerminate(System.String)"> 10555 <member name="F:OpenMetaverse.InventoryBase.ParentUUID">
11694 <summary> 10556 <summary>
11695 This is used to ‘end’ an established session (i.e. hang-up or disconnect). 10557 <seealso cref="T:OpenMetaverse.UUID" /> of parent folder</summary>
11696 </summary>
11697 <param name="SessionHandle">Handle returned from successful Session ‘create’ request or a SessionNewEvent</param>
11698 <returns></returns>
11699 </member> 10558 </member>
11700 <member name="M:OpenMetaverse.Voice.VoiceGateway.SessionSet3DPosition(System.String,OpenMetaverse.Voice.VoicePosition,OpenMetaverse.Voice.VoicePosition)"> 10559 <member name="F:OpenMetaverse.InventoryBase.Name">
10560 <summary>Name of item/folder</summary>
10561 </member>
10562 <member name="F:OpenMetaverse.InventoryBase.OwnerID">
10563 <summary>Item/Folder Owners <seealso cref="T:OpenMetaverse.UUID" /></summary>
10564 </member>
10565 <member name="M:OpenMetaverse.InventoryBase.GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
11701 <summary> 10566 <summary>
11702 Set the combined speaking and listening position in 3D space.
11703 </summary> 10567 </summary>
11704 <param name="SessionHandle">Handle returned from successful Session ‘create’ request or a SessionNewEvent</param> 10568 <returns>
11705 <param name="SpeakerPosition">Speaking position</param> 10569 </returns>
11706 <param name="ListenerPosition">Listening position</param>
11707 <returns></returns>
11708 </member> 10570 </member>
11709 <member name="M:OpenMetaverse.Voice.VoiceGateway.SessionSetParticipantVolumeForMe(System.String,System.String,System.Int32)"> 10571 <member name="M:OpenMetaverse.InventoryBase.GetHashCode">
11710 <summary> 10572 <summary>
11711 Set User Volume for a particular user. Does not affect how other users hear that user. 10573 Generates a number corresponding to the value of the object to support the use of a hash table,
10574 suitable for use in hashing algorithms and data structures such as a hash table
11712 </summary> 10575 </summary>
11713 <param name="SessionHandle">Handle returned from successful Session ‘create’ request or a SessionNewEvent</param> 10576 <returns>A Hashcode of all the combined InventoryBase fields</returns>
11714 <param name="ParticipantURI"></param>
11715 <param name="Volume">The level of the audio, a number between -100 and 100 where 0 represents ‘normal’ speaking volume</param>
11716 <returns></returns>
11717 </member> 10577 </member>
11718 <member name="M:OpenMetaverse.Voice.VoiceGateway.Start"> 10578 <member name="M:OpenMetaverse.InventoryBase.Equals(System.Object)">
11719 <summary> 10579 <summary>
11720 Start up the Voice service. 10580 Determine whether the specified <seealso cref="T:OpenMetaverse.InventoryBase" /> object is equal to the current object
11721 </summary> 10581 </summary>
10582 <param name="o">InventoryBase object to compare against</param>
10583 <returns>true if objects are the same</returns>
11722 </member> 10584 </member>
11723 <member name="M:OpenMetaverse.Voice.VoiceGateway.connector_OnVoiceResponse(System.Object,OpenMetaverse.Voice.VoiceGateway.VoiceResponseEventArgs)"> 10585 <member name="M:OpenMetaverse.InventoryBase.Equals(OpenMetaverse.InventoryBase)">
11724 <summary> 10586 <summary>
11725 Handle miscellaneous request status 10587 Determine whether the specified <seealso cref="T:OpenMetaverse.InventoryBase" /> object is equal to the current object
11726 </summary> 10588 </summary>
11727 <param name="sender"></param> 10589 <param name="o">InventoryBase object to compare against</param>
11728 <param name="e"></param> 10590 <returns>true if objects are the same</returns>
11729 ///<remarks>If something goes wrong, we log it.</remarks>
11730 </member> 10591 </member>
11731 <member name="M:OpenMetaverse.Voice.VoiceGateway.Dispose"> 10592 <member name="T:OpenMetaverse.InventoryItem">
11732 <summary> 10593 <summary>
11733 Cleanup oject resources 10594 An Item in Inventory
11734 </summary> 10595 </summary>
11735 </member> 10596 </member>
11736 <member name="M:OpenMetaverse.Voice.VoiceGateway.Network_EventQueueRunning(System.Object,OpenMetaverse.EventQueueRunningEventArgs)"> 10597 <member name="M:OpenMetaverse.InventoryItem.#ctor(OpenMetaverse.UUID)">
11737 <summary> 10598 <summary>
11738 Request voice cap when changing regions 10599 Construct a new InventoryItem object
11739 </summary> 10600 </summary>
10601 <param name="itemID">The <seealso cref="T:OpenMetaverse.UUID" /> of the item</param>
11740 </member> 10602 </member>
11741 <member name="M:OpenMetaverse.Voice.VoiceGateway.connector_OnSessionStateChangeEvent(System.Object,OpenMetaverse.Voice.VoiceGateway.SessionStateChangeEventArgs)"> 10603 <member name="M:OpenMetaverse.InventoryItem.#ctor(OpenMetaverse.InventoryType,OpenMetaverse.UUID)">
11742 <summary> 10604 <summary>
11743 Handle a change in session state 10605 Construct a new InventoryItem object of a specific Type
11744 </summary> 10606 </summary>
10607 <param name="type">The type of item from <seealso cref="T:OpenMetaverse.InventoryType" /></param>
10608 <param name="itemID">
10609 <seealso cref="T:OpenMetaverse.UUID" /> of the item</param>
11745 </member> 10610 </member>
11746 <member name="M:OpenMetaverse.Voice.VoiceGateway.CloseSession(System.String)"> 10611 <member name="M:OpenMetaverse.InventoryItem.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
11747 <summary> 10612 <summary>
11748 Close a voice session
11749 </summary> 10613 </summary>
11750 <param name="sessionHandle"></param> 10614 <returns>
10615 </returns>
11751 </member> 10616 </member>
11752 <member name="M:OpenMetaverse.Voice.VoiceGateway.FindSession(System.String,System.Boolean)"> 10617 <member name="F:OpenMetaverse.InventoryItem.AssetUUID">
10618 <summary>The <seealso cref="T:OpenMetaverse.UUID" /> of this item</summary>
10619 </member>
10620 <member name="F:OpenMetaverse.InventoryItem.Permissions">
10621 <summary>The combined <seealso cref="T:OpenMetaverse.Permissions" /> of this item</summary>
10622 </member>
10623 <member name="F:OpenMetaverse.InventoryItem.AssetType">
10624 <summary>The type of item from <seealso cref="T:OpenMetaverse.AssetType" /></summary>
10625 </member>
10626 <member name="F:OpenMetaverse.InventoryItem.InventoryType">
10627 <summary>The type of item from the <seealso cref="T:OpenMetaverse.InventoryType" /> enum</summary>
10628 </member>
10629 <member name="F:OpenMetaverse.InventoryItem.CreatorID">
10630 <summary>The <seealso cref="T:OpenMetaverse.UUID" /> of the creator of this item</summary>
10631 </member>
10632 <member name="F:OpenMetaverse.InventoryItem.Description">
10633 <summary>A Description of this item</summary>
10634 </member>
10635 <member name="F:OpenMetaverse.InventoryItem.GroupID">
10636 <summary>The <seealso cref="T:OpenMetaverse.Group" />s <seealso cref="T:OpenMetaverse.UUID" /> this item is set to or owned by</summary>
10637 </member>
10638 <member name="F:OpenMetaverse.InventoryItem.GroupOwned">
10639 <summary>If true, item is owned by a group</summary>
10640 </member>
10641 <member name="F:OpenMetaverse.InventoryItem.SalePrice">
10642 <summary>The price this item can be purchased for</summary>
10643 </member>
10644 <member name="F:OpenMetaverse.InventoryItem.SaleType">
10645 <summary>The type of sale from the <seealso cref="T:OpenMetaverse.SaleType" /> enum</summary>
10646 </member>
10647 <member name="F:OpenMetaverse.InventoryItem.Flags">
10648 <summary>Combined flags from <seealso cref="T:OpenMetaverse.InventoryItemFlags" /></summary>
10649 </member>
10650 <member name="F:OpenMetaverse.InventoryItem.CreationDate">
10651 <summary>Time and date this inventory item was created, stored as
10652 UTC (Coordinated Universal Time)</summary>
10653 </member>
10654 <member name="F:OpenMetaverse.InventoryItem.TransactionID">
10655 <summary>Used to update the AssetID in requests sent to the server</summary>
10656 </member>
10657 <member name="F:OpenMetaverse.InventoryItem.LastOwnerID">
10658 <summary>The <seealso cref="T:OpenMetaverse.UUID" /> of the previous owner of the item</summary>
10659 </member>
10660 <member name="M:OpenMetaverse.InventoryItem.IsLink">
11753 <summary> 10661 <summary>
11754 Locate a Session context from its handle 10662 Indicates inventory item is a link
11755 </summary> 10663 </summary>
11756 <remarks>Creates the session context if it does not exist.</remarks> 10664 <returns>True if inventory item is a link to another inventory item</returns>
11757 </member> 10665 </member>
11758 <member name="M:OpenMetaverse.Voice.VoiceGateway.cClient_OnComplete(OpenMetaverse.Http.CapsClient,OpenMetaverse.StructuredData.OSD,System.Exception)"> 10666 <member name="M:OpenMetaverse.InventoryItem.GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
11759 <summary> 10667 <summary>
11760 Handle completion of main voice cap request.
11761 </summary> 10668 </summary>
11762 <param name="client"></param> 10669 <returns>
11763 <param name="result"></param> 10670 </returns>
11764 <param name="error"></param>
11765 </member> 10671 </member>
11766 <member name="M:OpenMetaverse.Voice.VoiceGateway.connector_OnDaemonRunning"> 10672 <member name="M:OpenMetaverse.InventoryItem.GetHashCode">
11767 <summary> 10673 <summary>
11768 Daemon has started so connect to it. 10674 Generates a number corresponding to the value of the object to support the use of a hash table.
10675 Suitable for use in hashing algorithms and data structures such as a hash table
11769 </summary> 10676 </summary>
10677 <returns>A Hashcode of all the combined InventoryItem fields</returns>
11770 </member> 10678 </member>
11771 <member name="M:OpenMetaverse.Voice.VoiceGateway.connector_OnDaemonConnected"> 10679 <member name="M:OpenMetaverse.InventoryItem.Equals(System.Object)">
11772 <summary> 10680 <summary>
11773 The daemon TCP connection is open. 10681 Compares an object
11774 </summary> 10682 </summary>
10683 <param name="o">The object to compare</param>
10684 <returns>true if comparison object matches</returns>
11775 </member> 10685 </member>
11776 <member name="M:OpenMetaverse.Voice.VoiceGateway.connector_OnConnectorCreateResponse(System.Object,OpenMetaverse.Voice.VoiceGateway.VoiceConnectorEventArgs)"> 10686 <member name="M:OpenMetaverse.InventoryItem.Equals(OpenMetaverse.InventoryBase)">
11777 <summary> 10687 <summary>
11778 Handle creation of the Connector. 10688 Determine whether the specified <seealso cref="T:OpenMetaverse.InventoryBase" /> object is equal to the current object
11779 </summary> 10689 </summary>
10690 <param name="o">The <seealso cref="T:OpenMetaverse.InventoryBase" /> object to compare against</param>
10691 <returns>true if objects are the same</returns>
11780 </member> 10692 </member>
11781 <member name="M:OpenMetaverse.Voice.VoiceGateway.connector_OnAuxGetRenderDevicesResponse(System.Object,OpenMetaverse.Voice.VoiceGateway.VoiceDevicesEventArgs)"> 10693 <member name="M:OpenMetaverse.InventoryItem.Equals(OpenMetaverse.InventoryItem)">
11782 <summary> 10694 <summary>
11783 Handle response to audio output device query 10695 Determine whether the specified <seealso cref="T:OpenMetaverse.InventoryItem" /> object is equal to the current object
11784 </summary> 10696 </summary>
10697 <param name="o">The <seealso cref="T:OpenMetaverse.InventoryItem" /> object to compare against</param>
10698 <returns>true if objects are the same</returns>
11785 </member> 10699 </member>
11786 <member name="M:OpenMetaverse.Voice.VoiceGateway.connector_OnAuxGetCaptureDevicesResponse(System.Object,OpenMetaverse.Voice.VoiceGateway.VoiceDevicesEventArgs)"> 10700 <member name="T:OpenMetaverse.InventoryTexture">
11787 <summary> 10701 <summary>
11788 Handle response to audio input device query 10702 InventoryTexture Class representing a graphical image
11789 </summary> 10703 </summary>
10704 <seealso cref="!:ManagedImage" />
11790 </member> 10705 </member>
11791 <member name="M:OpenMetaverse.Voice.VoiceGateway.ParcelChanged"> 10706 <member name="M:OpenMetaverse.InventoryTexture.#ctor(OpenMetaverse.UUID)">
11792 <summary>
11793 Set voice channel for new parcel
11794 </summary>
11795
11796 </member>
11797 <member name="M:OpenMetaverse.Voice.VoiceGateway.RequestParcelInfo(System.Uri)">
11798 <summary> 10707 <summary>
11799 Request info from a parcel capability Uri. 10708 Construct an InventoryTexture object
11800 </summary> 10709 </summary>
11801 <param name="cap"></param> 10710 <param name="itemID">A <seealso cref="T:OpenMetaverse.UUID" /> which becomes the
10711 <seealso cref="T:OpenMetaverse.InventoryItem" /> objects AssetUUID</param>
11802 </member> 10712 </member>
11803 <member name="M:OpenMetaverse.Voice.VoiceGateway.pCap_OnComplete(OpenMetaverse.Http.CapsClient,OpenMetaverse.StructuredData.OSD,System.Exception)"> 10713 <member name="M:OpenMetaverse.InventoryTexture.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
11804 <summary> 10714 <summary>
11805 Receive parcel voice cap 10715 Construct an InventoryTexture object from a serialization stream
11806 </summary> 10716 </summary>
11807 <param name="client"></param>
11808 <param name="result"></param>
11809 <param name="error"></param>
11810 </member> 10717 </member>
11811 <member name="M:OpenMetaverse.Voice.VoiceGateway.UpdatePosition(OpenMetaverse.AgentManager)"> 10718 <member name="T:OpenMetaverse.InventorySound">
11812 <summary> 10719 <summary>
11813 Tell Vivox where we are standing 10720 InventorySound Class representing a playable sound
11814 </summary> 10721 </summary>
11815 <remarks>This has to be called when we move or turn.</remarks>
11816 </member> 10722 </member>
11817 <member name="M:OpenMetaverse.Voice.VoiceGateway.PosUpdating(System.Boolean)"> 10723 <member name="M:OpenMetaverse.InventorySound.#ctor(OpenMetaverse.UUID)">
11818 <summary> 10724 <summary>
11819 Start and stop updating out position. 10725 Construct an InventorySound object
11820 </summary> 10726 </summary>
11821 <param name="go"></param> 10727 <param name="itemID">A <seealso cref="T:OpenMetaverse.UUID" /> which becomes the
10728 <seealso cref="T:OpenMetaverse.InventoryItem" /> objects AssetUUID</param>
11822 </member> 10729 </member>
11823 <member name="M:OpenMetaverse.Voice.VoiceGateway.AccountLogin(System.String,System.String,System.String,System.String,System.String,System.Int32,System.Boolean)"> 10730 <member name="M:OpenMetaverse.InventorySound.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
11824 <summary> 10731 <summary>
11825 This is used to login a specific user account(s). It may only be called after 10732 Construct an InventorySound object from a serialization stream
11826 Connector initialization has completed successfully
11827 </summary> 10733 </summary>
11828 <param name="ConnectorHandle">Handle returned from successful Connector ‘create’ request</param>
11829 <param name="AccountName">User's account name</param>
11830 <param name="AccountPassword">User's account password</param>
11831 <param name="AudioSessionAnswerMode">Values may be “AutoAnswer” or “VerifyAnswer”</param>
11832 <param name="AccountURI">""</param>
11833 <param name="ParticipantPropertyFrequency">This is an integer that specifies how often
11834 the daemon will send participant property events while in a channel. If this is not set
11835 the default will be “on state change”, which means that the events will be sent when
11836 the participant starts talking, stops talking, is muted, is unmuted.
11837 The valid values are:
11838 0 – Never
11839 5 – 10 times per second
11840 10 – 5 times per second
11841 50 – 1 time per second
11842 100 – on participant state change (this is the default)</param>
11843 <param name="EnableBuddiesAndPresence">false</param>
11844 <returns></returns>
11845 </member> 10734 </member>
11846 <member name="M:OpenMetaverse.Voice.VoiceGateway.AccountLogout(System.String)"> 10735 <member name="T:OpenMetaverse.InventoryCallingCard">
11847 <summary> 10736 <summary>
11848 This is used to logout a user session. It should only be called with a valid AccountHandle. 10737 InventoryCallingCard Class, contains information on another avatar
11849 </summary> 10738 </summary>
11850 <param name="AccountHandle">Handle returned from successful Connector ‘login’ request</param>
11851 <returns></returns>
11852 </member> 10739 </member>
11853 <member name="E:OpenMetaverse.Voice.VoiceGateway.OnVoiceResponse"> 10740 <member name="M:OpenMetaverse.InventoryCallingCard.#ctor(OpenMetaverse.UUID)">
11854 <summary> 10741 <summary>
11855 Event for most mundane request reposnses. 10742 Construct an InventoryCallingCard object
11856 </summary> 10743 </summary>
10744 <param name="itemID">A <seealso cref="T:OpenMetaverse.UUID" /> which becomes the
10745 <seealso cref="T:OpenMetaverse.InventoryItem" /> objects AssetUUID</param>
11857 </member> 10746 </member>
11858 <member name="E:OpenMetaverse.Voice.VoiceGateway.OnConnectorCreateResponse"> 10747 <member name="M:OpenMetaverse.InventoryCallingCard.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
11859 <summary>Response to Connector.Create request</summary>
11860 </member>
11861 <member name="E:OpenMetaverse.Voice.VoiceGateway.OnAuxGetCaptureDevicesResponse">
11862 <summary>Response to Aux.GetCaptureDevices request</summary>
11863 </member>
11864 <member name="E:OpenMetaverse.Voice.VoiceGateway.OnAuxGetRenderDevicesResponse">
11865 <summary>Response to Aux.GetRenderDevices request</summary>
11866 </member>
11867 <member name="E:OpenMetaverse.Voice.VoiceGateway.OnAuxAudioPropertiesEvent">
11868 <summary>Audio Properties Events are sent after audio capture is started.
11869 These events are used to display a microphone VU meter</summary>
11870 </member>
11871 <member name="E:OpenMetaverse.Voice.VoiceGateway.OnAccountLoginResponse">
11872 <summary>Response to Account.Login request</summary>
11873 </member>
11874 <member name="E:OpenMetaverse.Voice.VoiceGateway.OnAccountLoginStateChangeEvent">
11875 <summary>This event message is sent whenever the login state of the
11876 particular Account has transitioned from one value to another</summary>
11877 </member>
11878 <member name="P:OpenMetaverse.Voice.VoiceGateway.CaptureDevices">
11879 <summary> 10748 <summary>
11880 List of audio input devices 10749 Construct an InventoryCallingCard object from a serialization stream
11881 </summary> 10750 </summary>
11882 </member> 10751 </member>
11883 <member name="P:OpenMetaverse.Voice.VoiceGateway.PlaybackDevices"> 10752 <member name="T:OpenMetaverse.InventoryLandmark">
11884 <summary> 10753 <summary>
11885 List of audio output devices 10754 InventoryLandmark Class, contains details on a specific location
11886 </summary> 10755 </summary>
11887 </member> 10756 </member>
11888 <member name="P:OpenMetaverse.Voice.VoiceGateway.TestMode"> 10757 <member name="M:OpenMetaverse.InventoryLandmark.#ctor(OpenMetaverse.UUID)">
11889 <summary> 10758 <summary>
11890 Set audio test mode 10759 Construct an InventoryLandmark object
11891 </summary> 10760 </summary>
10761 <param name="itemID">A <seealso cref="T:OpenMetaverse.UUID" /> which becomes the
10762 <seealso cref="T:OpenMetaverse.InventoryItem" /> objects AssetUUID</param>
11892 </member> 10763 </member>
11893 <member name="F:OpenMetaverse.Voice.VoiceGateway.VoiceLoggingSettings.Enabled"> 10764 <member name="M:OpenMetaverse.InventoryLandmark.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
11894 <summary>Enable logging</summary>
11895 </member>
11896 <member name="F:OpenMetaverse.Voice.VoiceGateway.VoiceLoggingSettings.Folder">
11897 <summary>The folder where any logs will be created</summary>
11898 </member>
11899 <member name="F:OpenMetaverse.Voice.VoiceGateway.VoiceLoggingSettings.FileNamePrefix">
11900 <summary>This will be prepended to beginning of each log file</summary>
11901 </member>
11902 <member name="F:OpenMetaverse.Voice.VoiceGateway.VoiceLoggingSettings.FileNameSuffix">
11903 <summary>The suffix or extension to be appended to each log file</summary>
11904 </member>
11905 <member name="F:OpenMetaverse.Voice.VoiceGateway.VoiceLoggingSettings.LogLevel">
11906 <summary> 10765 <summary>
11907 0: NONE - No logging 10766 Construct an InventoryLandmark object from a serialization stream
11908 1: ERROR - Log errors only
11909 2: WARNING - Log errors and warnings
11910 3: INFO - Log errors, warnings and info
11911 4: DEBUG - Log errors, warnings, info and debug
11912 </summary> 10767 </summary>
11913 </member> 10768 </member>
11914 <member name="M:OpenMetaverse.Voice.VoiceGateway.VoiceLoggingSettings.#ctor"> 10769 <member name="P:OpenMetaverse.InventoryLandmark.LandmarkVisited">
11915 <summary> 10770 <summary>
11916 Constructor for default logging settings 10771 Landmarks use the InventoryItemFlags struct and will have a flag of 1 set if they have been visited
11917 </summary> 10772 </summary>
11918 </member> 10773 </member>
11919 <member name="T:OpenMetaverse.Voice.VoiceGateway.AudioPropertiesEventArgs"> 10774 <member name="T:OpenMetaverse.InventoryObject">
11920 Audio Properties Events are sent after audio capture is started. These events are used to display a microphone VU meter
11921 </member>
11922 <member name="T:OpenMetaverse.Rendering.IRendering">
11923 <summary> 10775 <summary>
11924 Abstract base for rendering plugins 10776 InventoryObject Class contains details on a primitive or coalesced set of primitives
11925 </summary> 10777 </summary>
11926 </member> 10778 </member>
11927 <member name="M:OpenMetaverse.Rendering.IRendering.GenerateSimpleMesh(OpenMetaverse.Primitive,OpenMetaverse.Rendering.DetailLevel)"> 10779 <member name="M:OpenMetaverse.InventoryObject.#ctor(OpenMetaverse.UUID)">
11928 <summary> 10780 <summary>
11929 Generates a basic mesh structure from a primitive 10781 Construct an InventoryObject object
11930 </summary> 10782 </summary>
11931 <param name="prim">Primitive to generate the mesh from</param> 10783 <param name="itemID">A <seealso cref="T:OpenMetaverse.UUID" /> which becomes the
11932 <param name="lod">Level of detail to generate the mesh at</param> 10784 <seealso cref="T:OpenMetaverse.InventoryItem" /> objects AssetUUID</param>
11933 <returns>The generated mesh</returns>
11934 </member> 10785 </member>
11935 <member name="M:OpenMetaverse.Rendering.IRendering.GenerateSimpleSculptMesh(OpenMetaverse.Primitive,System.Drawing.Bitmap,OpenMetaverse.Rendering.DetailLevel)"> 10786 <member name="M:OpenMetaverse.InventoryObject.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
11936 <summary> 10787 <summary>
11937 Generates a basic mesh structure from a sculpted primitive and 10788 Construct an InventoryObject object from a serialization stream
11938 texture
11939 </summary> 10789 </summary>
11940 <param name="prim">Sculpted primitive to generate the mesh from</param>
11941 <param name="sculptTexture">Sculpt texture</param>
11942 <param name="lod">Level of detail to generate the mesh at</param>
11943 <returns>The generated mesh</returns>
11944 </member> 10790 </member>
11945 <member name="M:OpenMetaverse.Rendering.IRendering.GenerateFacetedMesh(OpenMetaverse.Primitive,OpenMetaverse.Rendering.DetailLevel)"> 10791 <member name="P:OpenMetaverse.InventoryObject.ItemFlags">
11946 <summary> 10792 <summary>
11947 Generates a series of faces, each face containing a mesh and 10793 Gets or sets the upper byte of the Flags value
11948 metadata
11949 </summary> 10794 </summary>
11950 <param name="prim">Primitive to generate the mesh from</param>
11951 <param name="lod">Level of detail to generate the mesh at</param>
11952 <returns>The generated mesh</returns>
11953 </member> 10795 </member>
11954 <member name="M:OpenMetaverse.Rendering.IRendering.GenerateFacetedSculptMesh(OpenMetaverse.Primitive,System.Drawing.Bitmap,OpenMetaverse.Rendering.DetailLevel)"> 10796 <member name="P:OpenMetaverse.InventoryObject.AttachPoint">
11955 <summary> 10797 <summary>
11956 Generates a series of faces for a sculpted prim, each face 10798 Gets or sets the object attachment point, the lower byte of the Flags value
11957 containing a mesh and metadata
11958 </summary> 10799 </summary>
11959 <param name="prim">Sculpted primitive to generate the mesh from</param>
11960 <param name="sculptTexture">Sculpt texture</param>
11961 <param name="lod">Level of detail to generate the mesh at</param>
11962 <returns>The generated mesh</returns>
11963 </member> 10800 </member>
11964 <member name="M:OpenMetaverse.Rendering.IRendering.TransformTexCoords(System.Collections.Generic.List{OpenMetaverse.Rendering.Vertex},OpenMetaverse.Vector3,OpenMetaverse.Primitive.TextureEntryFace)"> 10801 <member name="T:OpenMetaverse.InventoryNotecard">
11965 <summary> 10802 <summary>
11966 Apply texture coordinate modifications from a 10803 InventoryNotecard Class, contains details on an encoded text document
11967 <seealso cref="!:TextureEntryFace"/> to a list of vertices
11968 </summary> 10804 </summary>
11969 <param name="vertices">Vertex list to modify texture coordinates for</param>
11970 <param name="center">Center-point of the face</param>
11971 <param name="teFace">Face texture parameters</param>
11972 </member> 10805 </member>
11973 <member name="T:OpenMetaverse.Sounds"> 10806 <member name="M:OpenMetaverse.InventoryNotecard.#ctor(OpenMetaverse.UUID)">
11974 <summary> 10807 <summary>
11975 pre-defined built in sounds 10808 Construct an InventoryNotecard object
11976 </summary> 10809 </summary>
10810 <param name="itemID">A <seealso cref="T:OpenMetaverse.UUID" /> which becomes the
10811 <seealso cref="T:OpenMetaverse.InventoryItem" /> objects AssetUUID</param>
11977 </member> 10812 </member>
11978 <member name="F:OpenMetaverse.Sounds.BELL_TING"> 10813 <member name="M:OpenMetaverse.InventoryNotecard.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
11979 <summary></summary>
11980 </member>
11981 <member name="F:OpenMetaverse.Sounds.CLICK">
11982 <summary></summary>
11983 </member>
11984 <member name="F:OpenMetaverse.Sounds.HEALTH_REDUCTION_FEMALE">
11985 <summary></summary>
11986 </member>
11987 <member name="F:OpenMetaverse.Sounds.HEALTH_REDUCTION_MALE">
11988 <summary></summary>
11989 </member>
11990 <member name="F:OpenMetaverse.Sounds.IM_START">
11991 <summary></summary>
11992 </member>
11993 <member name="F:OpenMetaverse.Sounds.INSTANT_MESSAGE_NOTIFICATION">
11994 <summary></summary>
11995 </member>
11996 <member name="F:OpenMetaverse.Sounds.INVALID_OPERATION">
11997 <summary></summary>
11998 </member>
11999 <member name="F:OpenMetaverse.Sounds.KEYBOARD_LOOP">
12000 <summary></summary>
12001 </member>
12002 <member name="F:OpenMetaverse.Sounds.MONEY_REDUCTION_COINS">
12003 <summary>coins</summary>
12004 </member>
12005 <member name="F:OpenMetaverse.Sounds.MONEY_INCREASE_CASH_REGISTER_BELL">
12006 <summary>cash register bell</summary>
12007 </member>
12008 <member name="F:OpenMetaverse.Sounds.NULL_KEYSTROKE">
12009 <summary></summary>
12010 </member>
12011 <member name="F:OpenMetaverse.Sounds.OBJECT_COLLISION">
12012 <summary></summary>
12013 </member>
12014 <member name="F:OpenMetaverse.Sounds.OBJECT_COLLISION_RUBBER">
12015 <summary>rubber</summary>
12016 </member>
12017 <member name="F:OpenMetaverse.Sounds.OBJECT_COLLISION_PLASTIC">
12018 <summary>plastic</summary>
12019 </member>
12020 <member name="F:OpenMetaverse.Sounds.OBJECT_COLLISION_FLESH">
12021 <summary>flesh</summary>
12022 </member>
12023 <member name="F:OpenMetaverse.Sounds.OBJECT_COLLISION_WOOD_SPLINTERING">
12024 <summary>wood splintering?</summary>
12025 </member>
12026 <member name="F:OpenMetaverse.Sounds.OBJECT_COLLISION_GLASS_BREAK">
12027 <summary>glass break</summary>
12028 </member>
12029 <member name="F:OpenMetaverse.Sounds.OBJECT_COLLISION_METAL_CLUNK">
12030 <summary>metal clunk</summary>
12031 </member>
12032 <member name="F:OpenMetaverse.Sounds.OBJECT_CREATE_WHOOSH">
12033 <summary>whoosh</summary>
12034 </member>
12035 <member name="F:OpenMetaverse.Sounds.OBJECT_DELETE_SHAKE">
12036 <summary>shake</summary>
12037 </member>
12038 <member name="F:OpenMetaverse.Sounds.OBJECT_REZ">
12039 <summary></summary>
12040 </member>
12041 <member name="F:OpenMetaverse.Sounds.PIE_MENU_APPEAR_DING">
12042 <summary>ding</summary>
12043 </member>
12044 <member name="F:OpenMetaverse.Sounds.PIE_MENU_SLICE_HIGHLIGHT">
12045 <summary></summary>
12046 </member>
12047 <member name="F:OpenMetaverse.Sounds.PIE_MENU_SLICE_HIGHLIGHT1">
12048 <summary></summary>
12049 </member>
12050 <member name="F:OpenMetaverse.Sounds.PIE_MENU_SLICE_HIGHLIGHT2">
12051 <summary></summary>
12052 </member>
12053 <member name="F:OpenMetaverse.Sounds.PIE_MENU_SLICE_HIGHLIGHT3">
12054 <summary></summary>
12055 </member>
12056 <member name="F:OpenMetaverse.Sounds.PIE_MENU_SLICE_HIGHLIGHT4">
12057 <summary></summary>
12058 </member>
12059 <member name="F:OpenMetaverse.Sounds.PIE_MENU_SLICE_HIGHLIGHT5">
12060 <summary></summary>
12061 </member>
12062 <member name="F:OpenMetaverse.Sounds.PIE_MENU_SLICE_HIGHLIGHT6">
12063 <summary></summary>
12064 </member>
12065 <member name="F:OpenMetaverse.Sounds.PIE_MENU_SLICE_HIGHLIGHT7">
12066 <summary></summary>
12067 </member>
12068 <member name="F:OpenMetaverse.Sounds.SNAPSHOT">
12069 <summary></summary>
12070 </member>
12071 <member name="F:OpenMetaverse.Sounds.TELEPORT_TEXTURE_APPLY">
12072 <summary></summary>
12073 </member>
12074 <member name="F:OpenMetaverse.Sounds.THUNDER">
12075 <summary></summary>
12076 </member>
12077 <member name="F:OpenMetaverse.Sounds.WINDOW_CLOSE">
12078 <summary></summary>
12079 </member>
12080 <member name="F:OpenMetaverse.Sounds.WINDOW_OPEN">
12081 <summary></summary>
12082 </member>
12083 <member name="F:OpenMetaverse.Sounds.ZIPPER">
12084 <summary></summary>
12085 </member>
12086 <member name="M:OpenMetaverse.Sounds.ToDictionary">
12087 <summary> 10814 <summary>
12088 A dictionary containing all pre-defined sounds 10815 Construct an InventoryNotecard object from a serialization stream
12089 </summary> 10816 </summary>
12090 <returns>A dictionary containing the pre-defined sounds,
12091 where the key is the sounds ID, and the value is a string
12092 containing a name to identify the purpose of the sound</returns>
12093 </member> 10817 </member>
12094 <member name="T:OpenMetaverse.RegionFlags"> 10818 <member name="T:OpenMetaverse.InventoryCategory">
12095 <summary> 10819 <summary>
12096 Simulator (region) properties 10820 InventoryCategory Class
12097 </summary> 10821 </summary>
10822 <remarks>TODO: Is this even used for anything?</remarks>
12098 </member> 10823 </member>
12099 <member name="F:OpenMetaverse.RegionFlags.None"> 10824 <member name="M:OpenMetaverse.InventoryCategory.#ctor(OpenMetaverse.UUID)">
12100 <summary>No flags set</summary>
12101 </member>
12102 <member name="F:OpenMetaverse.RegionFlags.AllowDamage">
12103 <summary>Agents can take damage and be killed</summary>
12104 </member>
12105 <member name="F:OpenMetaverse.RegionFlags.AllowLandmark">
12106 <summary>Landmarks can be created here</summary>
12107 </member>
12108 <member name="F:OpenMetaverse.RegionFlags.AllowSetHome">
12109 <summary>Home position can be set in this sim</summary>
12110 </member>
12111 <member name="F:OpenMetaverse.RegionFlags.ResetHomeOnTeleport">
12112 <summary>Home position is reset when an agent teleports away</summary>
12113 </member>
12114 <member name="F:OpenMetaverse.RegionFlags.SunFixed">
12115 <summary>Sun does not move</summary>
12116 </member>
12117 <member name="F:OpenMetaverse.RegionFlags.TaxFree">
12118 <summary>No object, land, etc. taxes</summary>
12119 </member>
12120 <member name="F:OpenMetaverse.RegionFlags.BlockTerraform">
12121 <summary>Disable heightmap alterations (agents can still plant
12122 foliage)</summary>
12123 </member>
12124 <member name="F:OpenMetaverse.RegionFlags.BlockLandResell">
12125 <summary>Land cannot be released, sold, or purchased</summary>
12126 </member>
12127 <member name="F:OpenMetaverse.RegionFlags.Sandbox">
12128 <summary>All content is wiped nightly</summary>
12129 </member>
12130 <member name="F:OpenMetaverse.RegionFlags.NullLayer">
12131 <summary>Unknown: Related to the availability of an overview world map tile.(Think mainland images when zoomed out.)</summary>
12132 </member>
12133 <member name="F:OpenMetaverse.RegionFlags.SkipAgentAction">
12134 <summary>Unknown: Related to region debug flags. Possibly to skip processing of agent interaction with world. </summary>
12135 </member>
12136 <member name="F:OpenMetaverse.RegionFlags.SkipUpdateInterestList">
12137 <summary>Region does not update agent prim interest lists. Internal debugging option.</summary>
12138 </member>
12139 <member name="F:OpenMetaverse.RegionFlags.SkipCollisions">
12140 <summary>No collision detection for non-agent objects</summary>
12141 </member>
12142 <member name="F:OpenMetaverse.RegionFlags.SkipScripts">
12143 <summary>No scripts are ran</summary>
12144 </member>
12145 <member name="F:OpenMetaverse.RegionFlags.SkipPhysics">
12146 <summary>All physics processing is turned off</summary>
12147 </member>
12148 <member name="F:OpenMetaverse.RegionFlags.ExternallyVisible">
12149 <summary>Region can be seen from other regions on world map. (Legacy world map option?) </summary>
12150 </member>
12151 <member name="F:OpenMetaverse.RegionFlags.MainlandVisible">
12152 <summary>Region can be seen from mainland on world map. (Legacy world map option?) </summary>
12153 </member>
12154 <member name="F:OpenMetaverse.RegionFlags.PublicAllowed">
12155 <summary>Agents not explicitly on the access list can visit the region. </summary>
12156 </member>
12157 <member name="F:OpenMetaverse.RegionFlags.BlockDwell">
12158 <summary>Traffic calculations are not run across entire region, overrides parcel settings. </summary>
12159 </member>
12160 <member name="F:OpenMetaverse.RegionFlags.NoFly">
12161 <summary>Flight is disabled (not currently enforced by the sim)</summary>
12162 </member>
12163 <member name="F:OpenMetaverse.RegionFlags.AllowDirectTeleport">
12164 <summary>Allow direct (p2p) teleporting</summary>
12165 </member>
12166 <member name="F:OpenMetaverse.RegionFlags.EstateSkipScripts">
12167 <summary>Estate owner has temporarily disabled scripting</summary>
12168 </member>
12169 <member name="F:OpenMetaverse.RegionFlags.RestrictPushObject">
12170 <summary>Restricts the usage of the LSL llPushObject function, applies to whole region.</summary>
12171 </member>
12172 <member name="F:OpenMetaverse.RegionFlags.DenyAnonymous">
12173 <summary>Deny agents with no payment info on file</summary>
12174 </member>
12175 <member name="F:OpenMetaverse.RegionFlags.DenyIdentified">
12176 <summary>Deny agents with payment info on file</summary>
12177 </member>
12178 <member name="F:OpenMetaverse.RegionFlags.DenyTransacted">
12179 <summary>Deny agents who have made a monetary transaction</summary>
12180 </member>
12181 <member name="F:OpenMetaverse.RegionFlags.AllowParcelChanges">
12182 <summary>Parcels within the region may be joined or divided by anyone, not just estate owners/managers. </summary>
12183 </member>
12184 <member name="F:OpenMetaverse.RegionFlags.AbuseEmailToEstateOwner">
12185 <summary>Abuse reports sent from within this region are sent to the estate owner defined email. </summary>
12186 </member>
12187 <member name="F:OpenMetaverse.RegionFlags.AllowVoice">
12188 <summary>Region is Voice Enabled</summary>
12189 </member>
12190 <member name="F:OpenMetaverse.RegionFlags.BlockParcelSearch">
12191 <summary>Removes the ability from parcel owners to set their parcels to show in search.</summary>
12192 </member>
12193 <member name="F:OpenMetaverse.RegionFlags.DenyAgeUnverified">
12194 <summary>Deny agents who have not been age verified from entering the region.</summary>
12195 </member>
12196 <member name="T:OpenMetaverse.SimAccess">
12197 <summary> 10825 <summary>
12198 Access level for a simulator 10826 Construct an InventoryCategory object
12199 </summary> 10827 </summary>
10828 <param name="itemID">A <seealso cref="T:OpenMetaverse.UUID" /> which becomes the
10829 <seealso cref="T:OpenMetaverse.InventoryItem" /> objects AssetUUID</param>
12200 </member> 10830 </member>
12201 <member name="F:OpenMetaverse.SimAccess.Unknown"> 10831 <member name="M:OpenMetaverse.InventoryCategory.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
12202 <summary>Unknown or invalid access level</summary>
12203 </member>
12204 <member name="F:OpenMetaverse.SimAccess.Trial">
12205 <summary>Trial accounts allowed</summary>
12206 </member>
12207 <member name="F:OpenMetaverse.SimAccess.PG">
12208 <summary>PG rating</summary>
12209 </member>
12210 <member name="F:OpenMetaverse.SimAccess.Mature">
12211 <summary>Mature rating</summary>
12212 </member>
12213 <member name="F:OpenMetaverse.SimAccess.Adult">
12214 <summary>Adult rating</summary>
12215 </member>
12216 <member name="F:OpenMetaverse.SimAccess.Down">
12217 <summary>Simulator is offline</summary>
12218 </member>
12219 <member name="F:OpenMetaverse.SimAccess.NonExistent">
12220 <summary>Simulator does not exist</summary>
12221 </member>
12222 <member name="T:OpenMetaverse.Simulator">
12223 <summary> 10832 <summary>
12224 10833 Construct an InventoryCategory object from a serialization stream
12225 </summary> 10834 </summary>
12226 </member> 10835 </member>
12227 <member name="T:OpenMetaverse.UDPBase"> 10836 <member name="T:OpenMetaverse.InventoryLSL">
12228 <summary> 10837 <summary>
12229 10838 InventoryLSL Class, represents a Linden Scripting Language object
12230 </summary> 10839 </summary>
12231 </member> 10840 </member>
12232 <member name="M:OpenMetaverse.UDPBase.#ctor(System.Int32)"> 10841 <member name="M:OpenMetaverse.InventoryLSL.#ctor(OpenMetaverse.UUID)">
12233 <summary> 10842 <summary>
12234 Initialize the UDP packet handler in server mode 10843 Construct an InventoryLSL object
12235 </summary> 10844 </summary>
12236 <param name="port">Port to listening for incoming UDP packets on</param> 10845 <param name="itemID">A <seealso cref="T:OpenMetaverse.UUID" /> which becomes the
10846 <seealso cref="T:OpenMetaverse.InventoryItem" /> objects AssetUUID</param>
12237 </member> 10847 </member>
12238 <member name="M:OpenMetaverse.UDPBase.#ctor(System.Net.IPEndPoint)"> 10848 <member name="M:OpenMetaverse.InventoryLSL.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
12239 <summary> 10849 <summary>
12240 Initialize the UDP packet handler in client mode 10850 Construct an InventoryLSL object from a serialization stream
12241 </summary> 10851 </summary>
12242 <param name="endPoint">Remote UDP server to connect to</param>
12243 </member> 10852 </member>
12244 <member name="M:OpenMetaverse.UDPBase.Start"> 10853 <member name="T:OpenMetaverse.InventorySnapshot">
12245 <summary> 10854 <summary>
12246 10855 InventorySnapshot Class, an image taken with the viewer
12247 </summary> 10856 </summary>
12248 </member> 10857 </member>
12249 <member name="M:OpenMetaverse.UDPBase.Stop"> 10858 <member name="M:OpenMetaverse.InventorySnapshot.#ctor(OpenMetaverse.UUID)">
12250 <summary> 10859 <summary>
12251 10860 Construct an InventorySnapshot object
12252 </summary> 10861 </summary>
10862 <param name="itemID">A <seealso cref="T:OpenMetaverse.UUID" /> which becomes the
10863 <seealso cref="T:OpenMetaverse.InventoryItem" /> objects AssetUUID</param>
12253 </member> 10864 </member>
12254 <member name="P:OpenMetaverse.UDPBase.IsRunning"> 10865 <member name="M:OpenMetaverse.InventorySnapshot.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
12255 <summary> 10866 <summary>
12256 10867 Construct an InventorySnapshot object from a serialization stream
12257 </summary> 10868 </summary>
12258 </member> 10869 </member>
12259 <member name="F:OpenMetaverse.Simulator.Client"> 10870 <member name="T:OpenMetaverse.InventoryAttachment">
12260 <summary>A public reference to the client that this Simulator object
12261 is attached to</summary>
12262 </member>
12263 <member name="F:OpenMetaverse.Simulator.ID">
12264 <summary>A Unique Cache identifier for this simulator</summary>
12265 </member>
12266 <member name="F:OpenMetaverse.Simulator.Caps">
12267 <summary>The capabilities for this simulator</summary>
12268 </member>
12269 <member name="F:OpenMetaverse.Simulator.Handle">
12270 <summary></summary>
12271 </member>
12272 <member name="F:OpenMetaverse.Simulator.SimVersion">
12273 <summary>The current version of software this simulator is running</summary>
12274 </member>
12275 <member name="F:OpenMetaverse.Simulator.Name">
12276 <summary></summary>
12277 </member>
12278 <member name="F:OpenMetaverse.Simulator.ParcelOverlay">
12279 <summary>A 64x64 grid of parcel coloring values. The values stored
12280 in this array are of the <seealso cref="!:ParcelArrayType"/> type</summary>
12281 </member>
12282 <member name="F:OpenMetaverse.Simulator.ParcelOverlaysReceived">
12283 <summary></summary>
12284 </member>
12285 <member name="F:OpenMetaverse.Simulator.TerrainHeightRange00">
12286 <summary></summary>
12287 </member>
12288 <member name="F:OpenMetaverse.Simulator.TerrainHeightRange01">
12289 <summary></summary>
12290 </member>
12291 <member name="F:OpenMetaverse.Simulator.TerrainHeightRange10">
12292 <summary></summary>
12293 </member>
12294 <member name="F:OpenMetaverse.Simulator.TerrainHeightRange11">
12295 <summary></summary>
12296 </member>
12297 <member name="F:OpenMetaverse.Simulator.TerrainStartHeight00">
12298 <summary></summary>
12299 </member>
12300 <member name="F:OpenMetaverse.Simulator.TerrainStartHeight01">
12301 <summary></summary>
12302 </member>
12303 <member name="F:OpenMetaverse.Simulator.TerrainStartHeight10">
12304 <summary></summary>
12305 </member>
12306 <member name="F:OpenMetaverse.Simulator.TerrainStartHeight11">
12307 <summary></summary>
12308 </member>
12309 <member name="F:OpenMetaverse.Simulator.WaterHeight">
12310 <summary></summary>
12311 </member>
12312 <member name="F:OpenMetaverse.Simulator.SimOwner">
12313 <summary></summary>
12314 </member>
12315 <member name="F:OpenMetaverse.Simulator.TerrainBase0">
12316 <summary></summary>
12317 </member>
12318 <member name="F:OpenMetaverse.Simulator.TerrainBase1">
12319 <summary></summary>
12320 </member>
12321 <member name="F:OpenMetaverse.Simulator.TerrainBase2">
12322 <summary></summary>
12323 </member>
12324 <member name="F:OpenMetaverse.Simulator.TerrainBase3">
12325 <summary></summary>
12326 </member>
12327 <member name="F:OpenMetaverse.Simulator.TerrainDetail0">
12328 <summary></summary>
12329 </member>
12330 <member name="F:OpenMetaverse.Simulator.TerrainDetail1">
12331 <summary></summary>
12332 </member>
12333 <member name="F:OpenMetaverse.Simulator.TerrainDetail2">
12334 <summary></summary>
12335 </member>
12336 <member name="F:OpenMetaverse.Simulator.TerrainDetail3">
12337 <summary></summary>
12338 </member>
12339 <member name="F:OpenMetaverse.Simulator.IsEstateManager">
12340 <summary>true if your agent has Estate Manager rights on this region</summary>
12341 </member>
12342 <member name="F:OpenMetaverse.Simulator.Flags">
12343 <summary></summary>
12344 </member>
12345 <member name="F:OpenMetaverse.Simulator.Access">
12346 <summary></summary>
12347 </member>
12348 <member name="F:OpenMetaverse.Simulator.BillableFactor">
12349 <summary></summary>
12350 </member>
12351 <member name="F:OpenMetaverse.Simulator.Stats">
12352 <summary>Statistics information for this simulator and the
12353 connection to the simulator, calculated by the simulator itself
12354 and the library</summary>
12355 </member>
12356 <member name="F:OpenMetaverse.Simulator.RegionID">
12357 <summary>The regions Unique ID</summary>
12358 </member>
12359 <member name="F:OpenMetaverse.Simulator.ColoLocation">
12360 <summary>The physical data center the simulator is located</summary>
12361 <remarks>Known values are:
12362 <list type="table">
12363 <item>Dallas</item>
12364 <item>Chandler</item>
12365 <item>SF</item>
12366 </list>
12367 </remarks>
12368 </member>
12369 <member name="F:OpenMetaverse.Simulator.CPUClass">
12370 <summary>The CPU Class of the simulator</summary>
12371 <remarks>Most full mainland/estate sims appear to be 5,
12372 Homesteads and Openspace appear to be 501</remarks>
12373 </member>
12374 <member name="F:OpenMetaverse.Simulator.CPURatio">
12375 <summary>The number of regions sharing the same CPU as this one</summary>
12376 <remarks>"Full Sims" appear to be 1, Homesteads appear to be 4</remarks>
12377 </member>
12378 <member name="F:OpenMetaverse.Simulator.ProductName">
12379 <summary>The billing product name</summary>
12380 <remarks>Known values are:
12381 <list type="table">
12382 <item>Mainland / Full Region (Sku: 023)</item>
12383 <item>Estate / Full Region (Sku: 024)</item>
12384 <item>Estate / Openspace (Sku: 027)</item>
12385 <item>Estate / Homestead (Sku: 029)</item>
12386 <item>Mainland / Homestead (Sku: 129) (Linden Owned)</item>
12387 <item>Mainland / Linden Homes (Sku: 131)</item>
12388 </list>
12389 </remarks>
12390 </member>
12391 <member name="F:OpenMetaverse.Simulator.ProductSku">
12392 <summary>The billing product SKU</summary>
12393 <remarks>Known values are:
12394 <list type="table">
12395 <item>023 Mainland / Full Region</item>
12396 <item>024 Estate / Full Region</item>
12397 <item>027 Estate / Openspace</item>
12398 <item>029 Estate / Homestead</item>
12399 <item>129 Mainland / Homestead (Linden Owned)</item>
12400 <item>131 Linden Homes / Full Region</item>
12401 </list>
12402 </remarks>
12403 </member>
12404 <member name="F:OpenMetaverse.Simulator.Sequence">
12405 <summary>The current sequence number for packets sent to this
12406 simulator. Must be Interlocked before modifying. Only
12407 useful for applications manipulating sequence numbers</summary>
12408 </member>
12409 <member name="F:OpenMetaverse.Simulator.ObjectsAvatars">
12410 <summary> 10871 <summary>
12411 A thread-safe dictionary containing avatars in a simulator 10872 InventoryAttachment Class, contains details on an attachable object
12412 </summary> 10873 </summary>
12413 </member> 10874 </member>
12414 <member name="F:OpenMetaverse.Simulator.ObjectsPrimitives"> 10875 <member name="M:OpenMetaverse.InventoryAttachment.#ctor(OpenMetaverse.UUID)">
12415 <summary> 10876 <summary>
12416 A thread-safe dictionary containing primitives in a simulator 10877 Construct an InventoryAttachment object
12417 </summary> 10878 </summary>
10879 <param name="itemID">A <seealso cref="T:OpenMetaverse.UUID" /> which becomes the
10880 <seealso cref="T:OpenMetaverse.InventoryItem" /> objects AssetUUID</param>
12418 </member> 10881 </member>
12419 <member name="F:OpenMetaverse.Simulator.Parcels"> 10882 <member name="M:OpenMetaverse.InventoryAttachment.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
12420 <summary> 10883 <summary>
12421 Provides access to an internal thread-safe dictionary containing parcel 10884 Construct an InventoryAttachment object from a serialization stream
12422 information found in this simulator
12423 </summary> 10885 </summary>
12424 </member> 10886 </member>
12425 <member name="M:OpenMetaverse.Simulator.IsParcelMapFull"> 10887 <member name="P:OpenMetaverse.InventoryAttachment.AttachmentPoint">
12426 <summary> 10888 <summary>
12427 Checks simulator parcel map to make sure it has downloaded all data successfully 10889 Get the last AttachmentPoint this object was attached to
12428 </summary> 10890 </summary>
12429 <returns>true if map is full (contains no 0's)</returns>
12430 </member>
12431 <member name="F:OpenMetaverse.Simulator.DisconnectCandidate">
12432 <summary>Used internally to track sim disconnections</summary>
12433 </member>
12434 <member name="F:OpenMetaverse.Simulator.ConnectedEvent">
12435 <summary>Event that is triggered when the simulator successfully
12436 establishes a connection</summary>
12437 </member>
12438 <member name="F:OpenMetaverse.Simulator.connected">
12439 <summary>Whether this sim is currently connected or not. Hooked up
12440 to the property Connected</summary>
12441 </member>
12442 <member name="F:OpenMetaverse.Simulator.avatarPositions">
12443 <summary>Coarse locations of avatars in this simulator</summary>
12444 </member>
12445 <member name="F:OpenMetaverse.Simulator.preyID">
12446 <summary>AvatarPositions key representing TrackAgent target</summary>
12447 </member>
12448 <member name="F:OpenMetaverse.Simulator.PacketArchive">
12449 <summary>Sequence numbers of packets we've received
12450 (for duplicate checking)</summary>
12451 </member>
12452 <member name="F:OpenMetaverse.Simulator.NeedAck">
12453 <summary>Packets we sent out that need ACKs from the simulator</summary>
12454 </member>
12455 <member name="F:OpenMetaverse.Simulator.pauseSerial">
12456 <summary>Sequence number for pause/resume</summary>
12457 </member>
12458 <member name="F:OpenMetaverse.Simulator.handshakeComplete">
12459 <summary>Indicates if UDP connection to the sim is fully established</summary>
12460 </member> 10891 </member>
12461 <member name="M:OpenMetaverse.Simulator.#ctor(OpenMetaverse.GridClient,System.Net.IPEndPoint,System.UInt64)"> 10892 <member name="T:OpenMetaverse.InventoryWearable">
12462 <summary> 10893 <summary>
12463 10894 InventoryWearable Class, details on a clothing item or body part
12464 </summary> 10895 </summary>
12465 <param name="client">Reference to the GridClient object</param>
12466 <param name="address">IPEndPoint of the simulator</param>
12467 <param name="handle">handle of the simulator</param>
12468 </member> 10896 </member>
12469 <member name="M:OpenMetaverse.Simulator.Dispose"> 10897 <member name="M:OpenMetaverse.InventoryWearable.#ctor(OpenMetaverse.UUID)">
12470 <summary> 10898 <summary>
12471 Called when this Simulator object is being destroyed 10899 Construct an InventoryWearable object
12472 </summary> 10900 </summary>
10901 <param name="itemID">A <seealso cref="T:OpenMetaverse.UUID" /> which becomes the
10902 <seealso cref="T:OpenMetaverse.InventoryItem" /> objects AssetUUID</param>
12473 </member> 10903 </member>
12474 <member name="M:OpenMetaverse.Simulator.Connect(System.Boolean)"> 10904 <member name="M:OpenMetaverse.InventoryWearable.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
12475 <summary> 10905 <summary>
12476 Attempt to connect to this simulator 10906 Construct an InventoryWearable object from a serialization stream
12477 </summary> 10907 </summary>
12478 <param name="moveToSim">Whether to move our agent in to this sim or not</param>
12479 <returns>True if the connection succeeded or connection status is
12480 unknown, false if there was a failure</returns>
12481 </member> 10908 </member>
12482 <member name="M:OpenMetaverse.Simulator.UseCircuitCode"> 10909 <member name="P:OpenMetaverse.InventoryWearable.WearableType">
12483 <summary> 10910 <summary>
12484 Initiates connection to the simulator 10911 The <seealso cref="T:OpenMetaverse.WearableType" />, Skin, Shape, Skirt, Etc
12485 </summary> 10912 </summary>
12486 </member> 10913 </member>
12487 <member name="M:OpenMetaverse.Simulator.Disconnect(System.Boolean)"> 10914 <member name="T:OpenMetaverse.InventoryAnimation">
12488 <summary> 10915 <summary>
12489 Disconnect from this simulator 10916 InventoryAnimation Class, A bvh encoded object which animates an avatar
12490 </summary> 10917 </summary>
12491 </member> 10918 </member>
12492 <member name="M:OpenMetaverse.Simulator.Pause"> 10919 <member name="M:OpenMetaverse.InventoryAnimation.#ctor(OpenMetaverse.UUID)">
12493 <summary> 10920 <summary>
12494 Instructs the simulator to stop sending update (and possibly other) packets 10921 Construct an InventoryAnimation object
12495 </summary> 10922 </summary>
10923 <param name="itemID">A <seealso cref="T:OpenMetaverse.UUID" /> which becomes the
10924 <seealso cref="T:OpenMetaverse.InventoryItem" /> objects AssetUUID</param>
12496 </member> 10925 </member>
12497 <member name="M:OpenMetaverse.Simulator.Resume"> 10926 <member name="M:OpenMetaverse.InventoryAnimation.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
12498 <summary> 10927 <summary>
12499 Instructs the simulator to resume sending update packets (unpause) 10928 Construct an InventoryAnimation object from a serialization stream
12500 </summary> 10929 </summary>
12501 </member> 10930 </member>
12502 <member name="M:OpenMetaverse.Simulator.TerrainHeightAtPoint(System.Int32,System.Int32,System.Single@)"> 10931 <member name="T:OpenMetaverse.InventoryGesture">
12503 <summary> 10932 <summary>
12504 Retrieve the terrain height at a given coordinate 10933 InventoryGesture Class, details on a series of animations, sounds, and actions
12505 </summary> 10934 </summary>
12506 <param name="x">Sim X coordinate, valid range is from 0 to 255</param>
12507 <param name="y">Sim Y coordinate, valid range is from 0 to 255</param>
12508 <param name="height">The terrain height at the given point if the
12509 lookup was successful, otherwise 0.0f</param>
12510 <returns>True if the lookup was successful, otherwise false</returns>
12511 </member> 10935 </member>
12512 <member name="M:OpenMetaverse.Simulator.SendPacket(OpenMetaverse.Packets.Packet)"> 10936 <member name="M:OpenMetaverse.InventoryGesture.#ctor(OpenMetaverse.UUID)">
12513 <summary> 10937 <summary>
12514 Sends a packet 10938 Construct an InventoryGesture object
12515 </summary> 10939 </summary>
12516 <param name="packet">Packet to be sent</param> 10940 <param name="itemID">A <seealso cref="T:OpenMetaverse.UUID" /> which becomes the
10941 <seealso cref="T:OpenMetaverse.InventoryItem" /> objects AssetUUID</param>
12517 </member> 10942 </member>
12518 <member name="M:OpenMetaverse.Simulator.SendPing"> 10943 <member name="M:OpenMetaverse.InventoryGesture.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
12519 <summary> 10944 <summary>
12520 10945 Construct an InventoryGesture object from a serialization stream
12521 </summary> 10946 </summary>
12522 </member> 10947 </member>
12523 <member name="M:OpenMetaverse.Simulator.ToString"> 10948 <member name="T:OpenMetaverse.InventoryFolder">
12524 <summary> 10949 <summary>
12525 Returns Simulator Name as a String 10950 A folder contains <seealso cref="T:OpenMetaverse.InventoryItem" />s and has certain attributes specific
10951 to itself
12526 </summary> 10952 </summary>
12527 <returns></returns>
12528 </member> 10953 </member>
12529 <member name="M:OpenMetaverse.Simulator.GetHashCode"> 10954 <member name="M:OpenMetaverse.InventoryFolder.#ctor(OpenMetaverse.UUID)">
12530 <summary> 10955 <summary>
12531 10956 Constructor
12532 </summary> 10957 </summary>
12533 <returns></returns> 10958 <param name="itemID">UUID of the folder</param>
12534 </member> 10959 </member>
12535 <member name="M:OpenMetaverse.Simulator.Equals(System.Object)"> 10960 <member name="M:OpenMetaverse.InventoryFolder.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
12536 <summary> 10961 <summary>
12537 10962 Construct an InventoryFolder object from a serialization stream
12538 </summary> 10963 </summary>
12539 <param name="obj"></param>
12540 <returns></returns>
12541 </member> 10964 </member>
12542 <member name="M:OpenMetaverse.Simulator.SendAcks"> 10965 <member name="F:OpenMetaverse.InventoryFolder.PreferredType">
10966 <summary>The Preferred <seealso cref="T:OpenMetaverse.AssetType" /> for a folder.</summary>
10967 </member>
10968 <member name="F:OpenMetaverse.InventoryFolder.Version">
10969 <summary>The Version of this folder</summary>
10970 </member>
10971 <member name="F:OpenMetaverse.InventoryFolder.DescendentCount">
10972 <summary>Number of child items this folder contains.</summary>
10973 </member>
10974 <member name="M:OpenMetaverse.InventoryFolder.ToString">
12543 <summary> 10975 <summary>
12544 Sends out pending acknowledgements
12545 </summary> 10976 </summary>
12546 <returns>Number of ACKs sent</returns> 10977 <returns>
10978 </returns>
12547 </member> 10979 </member>
12548 <member name="M:OpenMetaverse.Simulator.ResendUnacked"> 10980 <member name="M:OpenMetaverse.InventoryFolder.GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
12549 <summary> 10981 <summary>
12550 Resend unacknowledged packets 10982 Get Serilization data for this InventoryFolder object
12551 </summary> 10983 </summary>
12552 </member> 10984 </member>
12553 <member name="P:OpenMetaverse.Simulator.ParcelMap"> 10985 <member name="M:OpenMetaverse.InventoryFolder.GetHashCode">
12554 <summary> 10986 <summary>
12555 Provides access to an internal thread-safe multidimensional array containing a x,y grid mapped
12556 to each 64x64 parcel's LocalID.
12557 </summary> 10987 </summary>
10988 <returns>
10989 </returns>
12558 </member> 10990 </member>
12559 <member name="P:OpenMetaverse.Simulator.IPEndPoint"> 10991 <member name="M:OpenMetaverse.InventoryFolder.Equals(System.Object)">
12560 <summary>The IP address and port of the server</summary> 10992 <summary>
12561 </member> 10993 </summary>
12562 <member name="P:OpenMetaverse.Simulator.Connected"> 10994 <param name="o">
12563 <summary>Whether there is a working connection to the simulator or 10995 </param>
12564 not</summary> 10996 <returns>
10997 </returns>
12565 </member> 10998 </member>
12566 <member name="P:OpenMetaverse.Simulator.AvatarPositions"> 10999 <member name="M:OpenMetaverse.InventoryFolder.Equals(OpenMetaverse.InventoryBase)">
12567 <summary>Coarse locations of avatars in this simulator</summary> 11000 <summary>
11001 </summary>
11002 <param name="o">
11003 </param>
11004 <returns>
11005 </returns>
12568 </member> 11006 </member>
12569 <member name="P:OpenMetaverse.Simulator.PreyID"> 11007 <member name="M:OpenMetaverse.InventoryFolder.Equals(OpenMetaverse.InventoryFolder)">
12570 <summary>AvatarPositions key representing TrackAgent target</summary> 11008 <summary>
11009 </summary>
11010 <param name="o">
11011 </param>
11012 <returns>
11013 </returns>
12571 </member> 11014 </member>
12572 <member name="P:OpenMetaverse.Simulator.HandshakeComplete"> 11015 <member name="T:OpenMetaverse.InventoryManager">
12573 <summary>Indicates if UDP connection to the sim is fully established</summary> 11016 <summary>
11017 Tools for dealing with agents inventory
11018 </summary>
12574 </member> 11019 </member>
12575 <member name="T:OpenMetaverse.Simulator.SimStats"> 11020 <member name="M:OpenMetaverse.InventoryManager.#ctor(OpenMetaverse.GridClient)">
12576 <summary> 11021 <summary>
12577 Simulator Statistics 11022 Default constructor
12578 </summary> 11023 </summary>
11024 <param name="client">Reference to the GridClient object</param>
12579 </member> 11025 </member>
12580 <member name="F:OpenMetaverse.Simulator.SimStats.SentPackets"> 11026 <member name="T:OpenMetaverse.InventoryManager.ItemCreatedCallback">
12581 <summary>Total number of packets sent by this simulator to this agent</summary> 11027 <summary>
11028 Callback for inventory item creation finishing
11029 </summary>
11030 <param name="success">Whether the request to create an inventory
11031 item succeeded or not</param>
11032 <param name="item">Inventory item being created. If success is
11033 false this will be null</param>
12582 </member> 11034 </member>
12583 <member name="F:OpenMetaverse.Simulator.SimStats.RecvPackets"> 11035 <member name="T:OpenMetaverse.InventoryManager.ItemCreatedFromAssetCallback">
12584 <summary>Total number of packets received by this simulator to this agent</summary> 11036 <summary>
11037 Callback for an inventory item being create from an uploaded asset
11038 </summary>
11039 <param name="success">true if inventory item creation was successful</param>
11040 <param name="status">
11041 </param>
11042 <param name="itemID">
11043 </param>
11044 <param name="assetID">
11045 </param>
12585 </member> 11046 </member>
12586 <member name="F:OpenMetaverse.Simulator.SimStats.SentBytes"> 11047 <member name="T:OpenMetaverse.InventoryManager.ItemCopiedCallback">
12587 <summary>Total number of bytes sent by this simulator to this agent</summary> 11048 <summary>
11049 </summary>
11050 <param name="item">
11051 </param>
12588 </member> 11052 </member>
12589 <member name="F:OpenMetaverse.Simulator.SimStats.RecvBytes"> 11053 <member name="T:OpenMetaverse.InventoryManager.InventoryUploadedAssetCallback">
12590 <summary>Total number of bytes received by this simulator to this agent</summary> 11054 <summary>
11055 Reply received when uploading an inventory asset
11056 </summary>
11057 <param name="success">Has upload been successful</param>
11058 <param name="status">Error message if upload failed</param>
11059 <param name="itemID">Inventory asset UUID</param>
11060 <param name="assetID">New asset UUID</param>
12591 </member> 11061 </member>
12592 <member name="F:OpenMetaverse.Simulator.SimStats.ConnectTime"> 11062 <member name="T:OpenMetaverse.InventoryManager.ScriptUpdatedCallback">
12593 <summary>Time in seconds agent has been connected to simulator</summary> 11063 <summary>
11064 Delegate that is invoked when script upload is completed
11065 </summary>
11066 <param name="uploadSuccess">Has upload succeded (note, there still might be compile errors)</param>
11067 <param name="uploadStatus">Upload status message</param>
11068 <param name="compileSuccess">Is compilation successful</param>
11069 <param name="compileMessages">If compilation failed, list of error messages, null on compilation success</param>
11070 <param name="itemID">Script inventory UUID</param>
11071 <param name="assetID">Script's new asset UUID</param>
12594 </member> 11072 </member>
12595 <member name="F:OpenMetaverse.Simulator.SimStats.ResentPackets"> 11073 <member name="F:OpenMetaverse.InventoryManager.MAGIC_ID">
12596 <summary>Total number of packets that have been resent</summary> 11074 <summary>Used for converting shadow_id to asset_id</summary>
12597 </member> 11075 </member>
12598 <member name="F:OpenMetaverse.Simulator.SimStats.ReceivedResends"> 11076 <member name="F:OpenMetaverse.InventoryManager.m_ItemReceived">
12599 <summary>Total number of resent packets recieved</summary> 11077 <summary>The event subscribers, null of no subscribers</summary>
12600 </member> 11078 </member>
12601 <member name="F:OpenMetaverse.Simulator.SimStats.SentPings"> 11079 <member name="F:OpenMetaverse.InventoryManager.m_ItemReceivedLock">
12602 <summary>Total number of pings sent to this simulator by this agent</summary> 11080 <summary>Thread sync lock object</summary>
12603 </member> 11081 </member>
12604 <member name="F:OpenMetaverse.Simulator.SimStats.ReceivedPongs"> 11082 <member name="F:OpenMetaverse.InventoryManager.m_FolderUpdated">
12605 <summary>Total number of ping replies sent to this agent by this simulator</summary> 11083 <summary>The event subscribers, null of no subscribers</summary>
12606 </member> 11084 </member>
12607 <member name="F:OpenMetaverse.Simulator.SimStats.IncomingBPS"> 11085 <member name="F:OpenMetaverse.InventoryManager.m_FolderUpdatedLock">
12608 <summary> 11086 <summary>Thread sync lock object</summary>
12609 Incoming bytes per second
12610 </summary>
12611 <remarks>It would be nice to have this claculated on the fly, but
12612 this is far, far easier</remarks>
12613 </member> 11087 </member>
12614 <member name="F:OpenMetaverse.Simulator.SimStats.OutgoingBPS"> 11088 <member name="F:OpenMetaverse.InventoryManager.m_InventoryObjectOffered">
12615 <summary> 11089 <summary>The event subscribers, null of no subscribers</summary>
12616 Outgoing bytes per second
12617 </summary>
12618 <remarks>It would be nice to have this claculated on the fly, but
12619 this is far, far easier</remarks>
12620 </member> 11090 </member>
12621 <member name="F:OpenMetaverse.Simulator.SimStats.LastPingSent"> 11091 <member name="F:OpenMetaverse.InventoryManager.m_InventoryObjectOfferedLock">
12622 <summary>Time last ping was sent</summary> 11092 <summary>Thread sync lock object</summary>
12623 </member> 11093 </member>
12624 <member name="F:OpenMetaverse.Simulator.SimStats.LastPingID"> 11094 <member name="F:OpenMetaverse.InventoryManager.m_TaskItemReceived">
12625 <summary>ID of last Ping sent</summary> 11095 <summary>The event subscribers, null of no subscribers</summary>
12626 </member> 11096 </member>
12627 <member name="F:OpenMetaverse.Simulator.SimStats.LastLag"> 11097 <member name="F:OpenMetaverse.InventoryManager.m_TaskItemReceivedLock">
12628 <summary></summary> 11098 <summary>Thread sync lock object</summary>
12629 </member> 11099 </member>
12630 <member name="F:OpenMetaverse.Simulator.SimStats.MissedPings"> 11100 <member name="F:OpenMetaverse.InventoryManager.m_FindObjectByPathReply">
12631 <summary></summary> 11101 <summary>The event subscribers, null of no subscribers</summary>
12632 </member> 11102 </member>
12633 <member name="F:OpenMetaverse.Simulator.SimStats.Dilation"> 11103 <member name="F:OpenMetaverse.InventoryManager.m_FindObjectByPathReplyLock">
12634 <summary>Current time dilation of this simulator</summary> 11104 <summary>Thread sync lock object</summary>
12635 </member> 11105 </member>
12636 <member name="F:OpenMetaverse.Simulator.SimStats.FPS"> 11106 <member name="F:OpenMetaverse.InventoryManager.m_TaskInventoryReply">
12637 <summary>Current Frames per second of simulator</summary> 11107 <summary>The event subscribers, null of no subscribers</summary>
12638 </member> 11108 </member>
12639 <member name="F:OpenMetaverse.Simulator.SimStats.PhysicsFPS"> 11109 <member name="F:OpenMetaverse.InventoryManager.m_TaskInventoryReplyLock">
12640 <summary>Current Physics frames per second of simulator</summary> 11110 <summary>Thread sync lock object</summary>
12641 </member> 11111 </member>
12642 <member name="F:OpenMetaverse.Simulator.SimStats.AgentUpdates"> 11112 <member name="F:OpenMetaverse.InventoryManager.m_SaveAssetToInventory">
12643 <summary></summary> 11113 <summary>The event subscribers, null of no subscribers</summary>
12644 </member> 11114 </member>
12645 <member name="F:OpenMetaverse.Simulator.SimStats.FrameTime"> 11115 <member name="F:OpenMetaverse.InventoryManager.m_SaveAssetToInventoryLock">
12646 <summary></summary> 11116 <summary>Thread sync lock object</summary>
12647 </member> 11117 </member>
12648 <member name="F:OpenMetaverse.Simulator.SimStats.NetTime"> 11118 <member name="F:OpenMetaverse.InventoryManager.m_ScriptRunningReply">
12649 <summary></summary> 11119 <summary>The event subscribers, null of no subscribers</summary>
12650 </member> 11120 </member>
12651 <member name="F:OpenMetaverse.Simulator.SimStats.PhysicsTime"> 11121 <member name="F:OpenMetaverse.InventoryManager.m_ScriptRunningReplyLock">
12652 <summary></summary> 11122 <summary>Thread sync lock object</summary>
12653 </member> 11123 </member>
12654 <member name="F:OpenMetaverse.Simulator.SimStats.ImageTime"> 11124 <member name="F:OpenMetaverse.InventoryManager._NewFolderNames">
12655 <summary></summary> 11125 <summary>Partial mapping of AssetTypes to folder names</summary>
12656 </member> 11126 </member>
12657 <member name="F:OpenMetaverse.Simulator.SimStats.ScriptTime"> 11127 <member name="E:OpenMetaverse.InventoryManager.ItemReceived">
12658 <summary></summary> 11128 <summary>Raised when the simulator sends us data containing
11129 ...</summary>
12659 </member> 11130 </member>
12660 <member name="F:OpenMetaverse.Simulator.SimStats.AgentTime"> 11131 <member name="E:OpenMetaverse.InventoryManager.FolderUpdated">
12661 <summary></summary> 11132 <summary>Raised when the simulator sends us data containing
11133 ...</summary>
12662 </member> 11134 </member>
12663 <member name="F:OpenMetaverse.Simulator.SimStats.OtherTime"> 11135 <member name="E:OpenMetaverse.InventoryManager.InventoryObjectOffered">
12664 <summary></summary> 11136 <summary>Raised when the simulator sends us data containing
11137 an inventory object sent by another avatar or primitive</summary>
12665 </member> 11138 </member>
12666 <member name="F:OpenMetaverse.Simulator.SimStats.Objects"> 11139 <member name="E:OpenMetaverse.InventoryManager.TaskItemReceived">
12667 <summary>Total number of objects Simulator is simulating</summary> 11140 <summary>Raised when the simulator sends us data containing
11141 ...</summary>
12668 </member> 11142 </member>
12669 <member name="F:OpenMetaverse.Simulator.SimStats.ScriptedObjects"> 11143 <member name="E:OpenMetaverse.InventoryManager.FindObjectByPathReply">
12670 <summary>Total number of Active (Scripted) objects running</summary> 11144 <summary>Raised when the simulator sends us data containing
11145 ...</summary>
12671 </member> 11146 </member>
12672 <member name="F:OpenMetaverse.Simulator.SimStats.Agents"> 11147 <member name="E:OpenMetaverse.InventoryManager.TaskInventoryReply">
12673 <summary>Number of agents currently in this simulator</summary> 11148 <summary>Raised when the simulator sends us data containing
11149 ...</summary>
12674 </member> 11150 </member>
12675 <member name="F:OpenMetaverse.Simulator.SimStats.ChildAgents"> 11151 <member name="E:OpenMetaverse.InventoryManager.SaveAssetToInventory">
12676 <summary>Number of agents in neighbor simulators</summary> 11152 <summary>Raised when the simulator sends us data containing
11153 ...</summary>
12677 </member> 11154 </member>
12678 <member name="F:OpenMetaverse.Simulator.SimStats.ActiveScripts"> 11155 <member name="E:OpenMetaverse.InventoryManager.ScriptRunningReply">
12679 <summary>Number of Active scripts running in this simulator</summary> 11156 <summary>Raised when the simulator sends us data containing
11157 ...</summary>
12680 </member> 11158 </member>
12681 <member name="F:OpenMetaverse.Simulator.SimStats.LSLIPS"> 11159 <member name="P:OpenMetaverse.InventoryManager.Store">
12682 <summary></summary> 11160 <summary>
11161 Get this agents Inventory data
11162 </summary>
12683 </member> 11163 </member>
12684 <member name="F:OpenMetaverse.Simulator.SimStats.INPPS"> 11164 <member name="M:OpenMetaverse.InventoryManager.OnItemReceived(OpenMetaverse.ItemReceivedEventArgs)">
12685 <summary></summary> 11165 <summary>Raises the ItemReceived Event</summary>
11166 <param name="e">A ItemReceivedEventArgs object containing
11167 the data sent from the simulator</param>
12686 </member> 11168 </member>
12687 <member name="F:OpenMetaverse.Simulator.SimStats.OUTPPS"> 11169 <member name="M:OpenMetaverse.InventoryManager.OnFolderUpdated(OpenMetaverse.FolderUpdatedEventArgs)">
12688 <summary></summary> 11170 <summary>Raises the FolderUpdated Event</summary>
11171 <param name="e">A FolderUpdatedEventArgs object containing
11172 the data sent from the simulator</param>
12689 </member> 11173 </member>
12690 <member name="F:OpenMetaverse.Simulator.SimStats.PendingDownloads"> 11174 <member name="M:OpenMetaverse.InventoryManager.OnInventoryObjectOffered(OpenMetaverse.InventoryObjectOfferedEventArgs)">
12691 <summary>Number of downloads pending</summary> 11175 <summary>Raises the InventoryObjectOffered Event</summary>
11176 <param name="e">A InventoryObjectOfferedEventArgs object containing
11177 the data sent from the simulator</param>
12692 </member> 11178 </member>
12693 <member name="F:OpenMetaverse.Simulator.SimStats.PendingUploads"> 11179 <member name="M:OpenMetaverse.InventoryManager.OnTaskItemReceived(OpenMetaverse.TaskItemReceivedEventArgs)">
12694 <summary>Number of uploads pending</summary> 11180 <summary>Raises the TaskItemReceived Event</summary>
11181 <param name="e">A TaskItemReceivedEventArgs object containing
11182 the data sent from the simulator</param>
12695 </member> 11183 </member>
12696 <member name="F:OpenMetaverse.Simulator.SimStats.VirtualSize"> 11184 <member name="M:OpenMetaverse.InventoryManager.OnFindObjectByPathReply(OpenMetaverse.FindObjectByPathReplyEventArgs)">
12697 <summary></summary> 11185 <summary>Raises the FindObjectByPath Event</summary>
11186 <param name="e">A FindObjectByPathEventArgs object containing
11187 the data sent from the simulator</param>
12698 </member> 11188 </member>
12699 <member name="F:OpenMetaverse.Simulator.SimStats.ResidentSize"> 11189 <member name="M:OpenMetaverse.InventoryManager.OnTaskInventoryReply(OpenMetaverse.TaskInventoryReplyEventArgs)">
12700 <summary></summary> 11190 <summary>Raises the TaskInventoryReply Event</summary>
11191 <param name="e">A TaskInventoryReplyEventArgs object containing
11192 the data sent from the simulator</param>
12701 </member> 11193 </member>
12702 <member name="F:OpenMetaverse.Simulator.SimStats.PendingLocalUploads"> 11194 <member name="M:OpenMetaverse.InventoryManager.OnSaveAssetToInventory(OpenMetaverse.SaveAssetToInventoryEventArgs)">
12703 <summary>Number of local uploads pending</summary> 11195 <summary>Raises the SaveAssetToInventory Event</summary>
11196 <param name="e">A SaveAssetToInventoryEventArgs object containing
11197 the data sent from the simulator</param>
12704 </member> 11198 </member>
12705 <member name="F:OpenMetaverse.Simulator.SimStats.UnackedBytes"> 11199 <member name="M:OpenMetaverse.InventoryManager.OnScriptRunningReply(OpenMetaverse.ScriptRunningReplyEventArgs)">
12706 <summary>Unacknowledged bytes in queue</summary> 11200 <summary>Raises the ScriptRunningReply Event</summary>
11201 <param name="e">A ScriptRunningReplyEventArgs object containing
11202 the data sent from the simulator</param>
12707 </member> 11203 </member>
12708 <member name="M:OpenMetaverse.WrappedObject`1.Dispose"> 11204 <member name="M:OpenMetaverse.InventoryManager.FetchItem(OpenMetaverse.UUID,OpenMetaverse.UUID,System.Int32)">
12709 <summary> 11205 <summary>
12710 Checks the instance back into the object pool 11206 Fetch an inventory item from the dataserver
12711 </summary> 11207 </summary>
11208 <param name="itemID">The items <seealso cref="T:OpenMetaverse.UUID" /></param>
11209 <param name="ownerID">The item Owners <seealso cref="T:OpenMetaverse.UUID" /></param>
11210 <param name="timeoutMS">a integer representing the number of milliseconds to wait for results</param>
11211 <returns>An <seealso cref="T:OpenMetaverse.InventoryItem" /> object on success, or null if no item was found</returns>
11212 <remarks>Items will also be sent to the <seealso cref="M:OpenMetaverse.InventoryManager.OnItemReceived(OpenMetaverse.ItemReceivedEventArgs)" /> event</remarks>
12712 </member> 11213 </member>
12713 <member name="P:OpenMetaverse.WrappedObject`1.Instance"> 11214 <member name="M:OpenMetaverse.InventoryManager.RequestFetchInventory(OpenMetaverse.UUID,OpenMetaverse.UUID)">
12714 <summary> 11215 <summary>
12715 Returns an instance of the class that has been checked out of the Object Pool. 11216 Request A single inventory item
12716 </summary> 11217 </summary>
11218 <param name="itemID">The items <seealso cref="T:OpenMetaverse.UUID" /></param>
11219 <param name="ownerID">The item Owners <seealso cref="T:OpenMetaverse.UUID" /></param>
11220 <seealso cref="M:OpenMetaverse.InventoryManager.OnItemReceived(OpenMetaverse.ItemReceivedEventArgs)" />
12717 </member> 11221 </member>
12718 <member name="M:OpenMetaverse.ObjectPoolBase`1.#ctor"> 11222 <member name="M:OpenMetaverse.InventoryManager.RequestFetchInventory(System.Collections.Generic.List{OpenMetaverse.UUID},System.Collections.Generic.List{OpenMetaverse.UUID})">
12719 <summary> 11223 <summary>
12720 Creates a new instance of the ObjectPoolBase class. Initialize MUST be called 11224 Request inventory items
12721 after using this constructor.
12722 </summary> 11225 </summary>
11226 <param name="itemIDs">Inventory items to request</param>
11227 <param name="ownerIDs">Owners of the inventory items</param>
11228 <seealso cref="M:OpenMetaverse.InventoryManager.OnItemReceived(OpenMetaverse.ItemReceivedEventArgs)" />
12723 </member> 11229 </member>
12724 <member name="M:OpenMetaverse.ObjectPoolBase`1.#ctor(System.Int32,System.Int32,System.Boolean,System.Int32)"> 11230 <member name="M:OpenMetaverse.InventoryManager.FolderContents(OpenMetaverse.UUID,OpenMetaverse.UUID,System.Boolean,System.Boolean,OpenMetaverse.InventorySortOrder,System.Int32)">
12725 <summary> 11231 <summary>
12726 Creates a new instance of the ObjectPool Base class. 11232 Get contents of a folder
12727 </summary> 11233 </summary>
12728 <param name="itemsPerSegment">The object pool is composed of segments, which 11234 <param name="folder">The <seealso cref="T:OpenMetaverse.UUID" /> of the folder to search</param>
12729 are allocated whenever the size of the pool is exceeded. The number of items 11235 <param name="owner">The <seealso cref="T:OpenMetaverse.UUID" /> of the folders owner</param>
12730 in a segment should be large enough that allocating a new segmeng is a rare 11236 <param name="folders">true to retrieve folders</param>
12731 thing. For example, on a server that will have 10k people logged in at once, 11237 <param name="items">true to retrieve items</param>
12732 the receive buffer object pool should have segment sizes of at least 1000 11238 <param name="order">sort order to return results in</param>
12733 byte arrays per segment. 11239 <param name="timeoutMS">a integer representing the number of milliseconds to wait for results</param>
12734 </param> 11240 <returns>A list of inventory items matching search criteria within folder</returns>
12735 <param name="minimumSegmentCount">The minimun number of segments that may exist.</param> 11241 <seealso cref="M:OpenMetaverse.InventoryManager.RequestFolderContents(OpenMetaverse.UUID,OpenMetaverse.UUID,System.Boolean,System.Boolean,OpenMetaverse.InventorySortOrder)" />
12736 <param name="gcOnPoolGrowth">Perform a full GC.Collect whenever a segment is allocated, and then again after allocation to compact the heap.</param> 11242 <remarks>InventoryFolder.DescendentCount will only be accurate if both folders and items are
12737 <param name="cleanupFrequenceMS">The frequency which segments are checked to see if they're eligible for cleanup.</param> 11243 requested</remarks>
12738 </member> 11244 </member>
12739 <member name="M:OpenMetaverse.ObjectPoolBase`1.ForceCleanup"> 11245 <member name="M:OpenMetaverse.InventoryManager.RequestFolderContents(OpenMetaverse.UUID,OpenMetaverse.UUID,System.Boolean,System.Boolean,OpenMetaverse.InventorySortOrder)">
12740 <summary> 11246 <summary>
12741 Forces the segment cleanup algorithm to be run. This method is intended 11247 Request the contents of an inventory folder
12742 primarly for use from the Unit Test libraries.
12743 </summary> 11248 </summary>
11249 <param name="folder">The folder to search</param>
11250 <param name="owner">The folder owners <seealso cref="T:OpenMetaverse.UUID" /></param>
11251 <param name="folders">true to return <seealso cref="!:InventoryManager.InventoryFolder" />s contained in folder</param>
11252 <param name="items">true to return <seealso cref="!:InventoryManager.InventoryItem" />s containd in folder</param>
11253 <param name="order">the sort order to return items in</param>
11254 <seealso cref="M:OpenMetaverse.InventoryManager.FolderContents(OpenMetaverse.UUID,OpenMetaverse.UUID,System.Boolean,System.Boolean,OpenMetaverse.InventorySortOrder,System.Int32)" />
12744 </member> 11255 </member>
12745 <member name="M:OpenMetaverse.ObjectPoolBase`1.GetObjectInstance"> 11256 <member name="M:OpenMetaverse.InventoryManager.RequestFolderContentsCap(OpenMetaverse.UUID,OpenMetaverse.UUID,System.Boolean,System.Boolean,OpenMetaverse.InventorySortOrder)">
12746 <summary> 11257 <summary>
12747 Responsible for allocate 1 instance of an object that will be stored in a segment. 11258 Request the contents of an inventory folder using HTTP capabilities
12748 </summary> 11259 </summary>
12749 <returns>An instance of whatever objec the pool is pooling.</returns> 11260 <param name="folderID">The folder to search</param>
11261 <param name="ownerID">The folder owners <seealso cref="T:OpenMetaverse.UUID" /></param>
11262 <param name="fetchFolders">true to return <seealso cref="!:InventoryManager.InventoryFolder" />s contained in folder</param>
11263 <param name="fetchItems">true to return <seealso cref="!:InventoryManager.InventoryItem" />s containd in folder</param>
11264 <param name="order">the sort order to return items in</param>
11265 <seealso cref="M:OpenMetaverse.InventoryManager.FolderContents(OpenMetaverse.UUID,OpenMetaverse.UUID,System.Boolean,System.Boolean,OpenMetaverse.InventorySortOrder,System.Int32)" />
12750 </member> 11266 </member>
12751 <member name="M:OpenMetaverse.ObjectPoolBase`1.CheckIn(OpenMetaverse.ObjectPoolSegment{`0},`0)"> 11267 <member name="M:OpenMetaverse.InventoryManager.FindFolderForType(OpenMetaverse.AssetType)">
12752 <summary> 11268 <summary>
12753 Checks in an instance of T owned by the object pool. This method is only intended to be called 11269 Returns the UUID of the folder (category) that defaults to
12754 by the <c>WrappedObject</c> class. 11270 containing 'type'. The folder is not necessarily only for that
11271 type
12755 </summary> 11272 </summary>
12756 <param name="owningSegment">The segment from which the instance is checked out.</param> 11273 <remarks>This will return the root folder if one does not exist</remarks>
12757 <param name="instance">The instance of <c>T</c> to check back into the segment.</param> 11274 <param name="type">
11275 </param>
11276 <returns>The UUID of the desired folder if found, the UUID of the RootFolder
11277 if not found, or UUID.Zero on failure</returns>
12758 </member> 11278 </member>
12759 <member name="M:OpenMetaverse.ObjectPoolBase`1.CheckOut"> 11279 <member name="M:OpenMetaverse.InventoryManager.FindObjectByPath(OpenMetaverse.UUID,OpenMetaverse.UUID,System.String,System.Int32)">
12760 <summary> 11280 <summary>
12761 Checks an instance of <c>T</c> from the pool. If the pool is not sufficient to 11281 Find an object in inventory using a specific path to search
12762 allow the checkout, a new segment is created.
12763 </summary> 11282 </summary>
12764 <returns>A <c>WrappedObject</c> around the instance of <c>T</c>. To check 11283 <param name="baseFolder">The folder to begin the search in</param>
12765 the instance back into the segment, be sureto dispose the WrappedObject 11284 <param name="inventoryOwner">The object owners <seealso cref="T:OpenMetaverse.UUID" /></param>
12766 when finished. </returns> 11285 <param name="path">A string path to search</param>
11286 <param name="timeoutMS">milliseconds to wait for a reply</param>
11287 <returns>Found items <seealso cref="T:OpenMetaverse.UUID" /> or <seealso cref="F:OpenMetaverse.UUID.Zero" /> if
11288 timeout occurs or item is not found</returns>
12767 </member> 11289 </member>
12768 <member name="P:OpenMetaverse.ObjectPoolBase`1.TotalSegments"> 11290 <member name="M:OpenMetaverse.InventoryManager.RequestFindObjectByPath(OpenMetaverse.UUID,OpenMetaverse.UUID,System.String)">
12769 <summary> 11291 <summary>
12770 The total number of segments created. Intended to be used by the Unit Tests. 11292 Find inventory items by path
12771 </summary> 11293 </summary>
11294 <param name="baseFolder">The folder to begin the search in</param>
11295 <param name="inventoryOwner">The object owners <seealso cref="T:OpenMetaverse.UUID" /></param>
11296 <param name="path">A string path to search, folders/objects separated by a '/'</param>
11297 <remarks>Results are sent to the <seealso cref="!:InventoryManager.OnFindObjectByPath" /> event</remarks>
12772 </member> 11298 </member>
12773 <member name="P:OpenMetaverse.ObjectPoolBase`1.ItemsPerSegment"> 11299 <member name="M:OpenMetaverse.InventoryManager.LocalFind(OpenMetaverse.UUID,System.String[],System.Int32,System.Boolean)">
12774 <summary> 11300 <summary>
12775 The number of items that are in a segment. Items in a segment 11301 Search inventory Store object for an item or folder
12776 are all allocated at the same time, and are hopefully close to
12777 each other in the managed heap.
12778 </summary> 11302 </summary>
11303 <param name="baseFolder">The folder to begin the search in</param>
11304 <param name="path">An array which creates a path to search</param>
11305 <param name="level">Number of levels below baseFolder to conduct searches</param>
11306 <param name="firstOnly">if True, will stop searching after first match is found</param>
11307 <returns>A list of inventory items found</returns>
12779 </member> 11308 </member>
12780 <member name="P:OpenMetaverse.ObjectPoolBase`1.MinimumSegmentCount"> 11309 <member name="M:OpenMetaverse.InventoryManager.Move(OpenMetaverse.InventoryBase,OpenMetaverse.InventoryFolder)">
12781 <summary> 11310 <summary>
12782 The minimum number of segments. When segments are reclaimed, 11311 Move an inventory item or folder to a new location
12783 this number of segments will always be left alone. These
12784 segments are allocated at startup.
12785 </summary> 11312 </summary>
11313 <param name="item">The <seealso cref="T:InventoryBase" /> item or folder to move</param>
11314 <param name="newParent">The <seealso cref="T:InventoryFolder" /> to move item or folder to</param>
12786 </member> 11315 </member>
12787 <member name="P:OpenMetaverse.ObjectPoolBase`1.MinimumSegmentAgePriorToCleanup"> 11316 <member name="M:OpenMetaverse.InventoryManager.Move(OpenMetaverse.InventoryBase,OpenMetaverse.InventoryFolder,System.String)">
12788 <summary> 11317 <summary>
12789 The age a segment must be before it's eligible for cleanup. 11318 Move an inventory item or folder to a new location and change its name
12790 This is used to prevent thrash, and typical values are in
12791 the 5 minute range.
12792 </summary> 11319 </summary>
11320 <param name="item">The <seealso cref="T:InventoryBase" /> item or folder to move</param>
11321 <param name="newParent">The <seealso cref="T:InventoryFolder" /> to move item or folder to</param>
11322 <param name="newName">The name to change the item or folder to</param>
12793 </member> 11323 </member>
12794 <member name="P:OpenMetaverse.ObjectPoolBase`1.CleanupFrequencyMilliseconds"> 11324 <member name="M:OpenMetaverse.InventoryManager.MoveFolder(OpenMetaverse.UUID,OpenMetaverse.UUID,System.String)">
12795 <summary> 11325 <summary>
12796 The frequence which the cleanup thread runs. This is typically 11326 Move and rename a folder
12797 expected to be in the 5 minute range.
12798 </summary> 11327 </summary>
11328 <param name="folderID">The source folders <seealso cref="T:OpenMetaverse.UUID" /></param>
11329 <param name="newparentID">The destination folders <seealso cref="T:OpenMetaverse.UUID" /></param>
11330 <param name="newName">The name to change the folder to</param>
12799 </member> 11331 </member>
12800 <member name="T:OpenMetaverse.InventoryException"> 11332 <member name="M:OpenMetaverse.InventoryManager.UpdateFolderProperties(OpenMetaverse.UUID,OpenMetaverse.UUID,System.String,OpenMetaverse.AssetType)">
12801 <summary> 11333 <summary>
12802 Exception class to identify inventory exceptions 11334 Update folder properties
12803 </summary> 11335 </summary>
11336 <param name="folderID">
11337 <seealso cref="T:OpenMetaverse.UUID" /> of the folder to update</param>
11338 <param name="parentID">Sets folder's parent to <seealso cref="T:OpenMetaverse.UUID" /></param>
11339 <param name="name">Folder name</param>
11340 <param name="type">Folder type</param>
12804 </member> 11341 </member>
12805 <member name="T:OpenMetaverse.Inventory"> 11342 <member name="M:OpenMetaverse.InventoryManager.MoveFolder(OpenMetaverse.UUID,OpenMetaverse.UUID)">
12806 <summary> 11343 <summary>
12807 Responsible for maintaining inventory structure. Inventory constructs nodes 11344 Move a folder
12808 and manages node children as is necessary to maintain a coherant hirarchy.
12809 Other classes should not manipulate or create InventoryNodes explicitly. When
12810 A node's parent changes (when a folder is moved, for example) simply pass
12811 Inventory the updated InventoryFolder and it will make the appropriate changes
12812 to its internal representation.
12813 </summary> 11345 </summary>
11346 <param name="folderID">The source folders <seealso cref="T:OpenMetaverse.UUID" /></param>
11347 <param name="newParentID">The destination folders <seealso cref="T:OpenMetaverse.UUID" /></param>
12814 </member> 11348 </member>
12815 <member name="F:OpenMetaverse.Inventory.m_InventoryObjectUpdated"> 11349 <member name="M:OpenMetaverse.InventoryManager.MoveFolders(System.Collections.Generic.Dictionary{OpenMetaverse.UUID,OpenMetaverse.UUID})">
12816 <summary>The event subscribers, null of no subscribers</summary>
12817 </member>
12818 <member name="M:OpenMetaverse.Inventory.OnInventoryObjectUpdated(OpenMetaverse.InventoryObjectUpdatedEventArgs)">
12819 <summary>Raises the InventoryObjectUpdated Event</summary>
12820 <param name="e">A InventoryObjectUpdatedEventArgs object containing
12821 the data sent from the simulator</param>
12822 </member>
12823 <member name="F:OpenMetaverse.Inventory.m_InventoryObjectUpdatedLock">
12824 <summary>Thread sync lock object</summary>
12825 </member>
12826 <member name="F:OpenMetaverse.Inventory.m_InventoryObjectRemoved">
12827 <summary>The event subscribers, null of no subscribers</summary>
12828 </member>
12829 <member name="M:OpenMetaverse.Inventory.OnInventoryObjectRemoved(OpenMetaverse.InventoryObjectRemovedEventArgs)">
12830 <summary>Raises the InventoryObjectRemoved Event</summary>
12831 <param name="e">A InventoryObjectRemovedEventArgs object containing
12832 the data sent from the simulator</param>
12833 </member>
12834 <member name="F:OpenMetaverse.Inventory.m_InventoryObjectRemovedLock">
12835 <summary>Thread sync lock object</summary>
12836 </member>
12837 <member name="F:OpenMetaverse.Inventory.m_InventoryObjectAdded">
12838 <summary>The event subscribers, null of no subscribers</summary>
12839 </member>
12840 <member name="M:OpenMetaverse.Inventory.OnInventoryObjectAdded(OpenMetaverse.InventoryObjectAddedEventArgs)">
12841 <summary>Raises the InventoryObjectAdded Event</summary>
12842 <param name="e">A InventoryObjectAddedEventArgs object containing
12843 the data sent from the simulator</param>
12844 </member>
12845 <member name="F:OpenMetaverse.Inventory.m_InventoryObjectAddedLock">
12846 <summary>Thread sync lock object</summary>
12847 </member>
12848 <member name="M:OpenMetaverse.Inventory.GetContents(OpenMetaverse.UUID)">
12849 <summary> 11350 <summary>
12850 Returns the contents of the specified folder 11351 Move multiple folders, the keys in the Dictionary parameter,
11352 to a new parents, the value of that folder's key.
12851 </summary> 11353 </summary>
12852 <param name="folder">A folder's UUID</param> 11354 <param name="foldersNewParents">A Dictionary containing the
12853 <returns>The contents of the folder corresponding to <code>folder</code></returns> 11355 <seealso cref="T:OpenMetaverse.UUID" /> of the source as the key, and the
12854 <exception cref="T:OpenMetaverse.InventoryException">When <code>folder</code> does not exist in the inventory</exception> 11356 <seealso cref="T:OpenMetaverse.UUID" /> of the destination as the value</param>
12855 </member> 11357 </member>
12856 <member name="M:OpenMetaverse.Inventory.UpdateNodeFor(OpenMetaverse.InventoryBase)"> 11358 <member name="M:OpenMetaverse.InventoryManager.MoveItem(OpenMetaverse.UUID,OpenMetaverse.UUID)">
12857 <summary> 11359 <summary>
12858 Updates the state of the InventoryNode and inventory data structure that 11360 Move an inventory item to a new folder
12859 is responsible for the InventoryObject. If the item was previously not added to inventory,
12860 it adds the item, and updates structure accordingly. If it was, it updates the
12861 InventoryNode, changing the parent node if <code>item.parentUUID</code> does
12862 not match <code>node.Parent.Data.UUID</code>.
12863
12864 You can not set the inventory root folder using this method
12865 </summary> 11361 </summary>
12866 <param name="item">The InventoryObject to store</param> 11362 <param name="itemID">The <seealso cref="T:OpenMetaverse.UUID" /> of the source item to move</param>
11363 <param name="folderID">The <seealso cref="T:OpenMetaverse.UUID" /> of the destination folder</param>
12867 </member> 11364 </member>
12868 <member name="M:OpenMetaverse.Inventory.RemoveNodeFor(OpenMetaverse.InventoryBase)"> 11365 <member name="M:OpenMetaverse.InventoryManager.MoveItem(OpenMetaverse.UUID,OpenMetaverse.UUID,System.String)">
12869 <summary> 11366 <summary>
12870 Removes the InventoryObject and all related node data from Inventory. 11367 Move and rename an inventory item
12871 </summary> 11368 </summary>
12872 <param name="item">The InventoryObject to remove.</param> 11369 <param name="itemID">The <seealso cref="T:OpenMetaverse.UUID" /> of the source item to move</param>
11370 <param name="folderID">The <seealso cref="T:OpenMetaverse.UUID" /> of the destination folder</param>
11371 <param name="newName">The name to change the folder to</param>
12873 </member> 11372 </member>
12874 <member name="M:OpenMetaverse.Inventory.Contains(OpenMetaverse.UUID)"> 11373 <member name="M:OpenMetaverse.InventoryManager.MoveItems(System.Collections.Generic.Dictionary{OpenMetaverse.UUID,OpenMetaverse.UUID})">
12875 <summary> 11374 <summary>
12876 Used to find out if Inventory contains the InventoryObject 11375 Move multiple inventory items to new locations
12877 specified by <code>uuid</code>.
12878 </summary> 11376 </summary>
12879 <param name="uuid">The UUID to check.</param> 11377 <param name="itemsNewParents">A Dictionary containing the
12880 <returns>true if inventory contains uuid, false otherwise</returns> 11378 <seealso cref="T:OpenMetaverse.UUID" /> of the source item as the key, and the
11379 <seealso cref="T:OpenMetaverse.UUID" /> of the destination folder as the value</param>
12881 </member> 11380 </member>
12882 <member name="M:OpenMetaverse.Inventory.SaveToDisk(System.String)"> 11381 <member name="M:OpenMetaverse.InventoryManager.RemoveDescendants(OpenMetaverse.UUID)">
12883 <summary> 11382 <summary>
12884 Saves the current inventory structure to a cache file 11383 Remove descendants of a folder
12885 </summary> 11384 </summary>
12886 <param name="filename">Name of the cache file to save to</param> 11385 <param name="folder">The <seealso cref="T:OpenMetaverse.UUID" /> of the folder</param>
12887 </member> 11386 </member>
12888 <member name="M:OpenMetaverse.Inventory.RestoreFromDisk(System.String)"> 11387 <member name="M:OpenMetaverse.InventoryManager.RemoveItem(OpenMetaverse.UUID)">
12889 <summary> 11388 <summary>
12890 Loads in inventory cache file into the inventory structure. Note only valid to call after login has been successful. 11389 Remove a single item from inventory
12891 </summary> 11390 </summary>
12892 <param name="filename">Name of the cache file to load</param> 11391 <param name="item">The <seealso cref="T:OpenMetaverse.UUID" /> of the inventory item to remove</param>
12893 <returns>The number of inventory items sucessfully reconstructed into the inventory node tree</returns>
12894 </member>
12895 <member name="E:OpenMetaverse.Inventory.InventoryObjectUpdated">
12896 <summary>Raised when the simulator sends us data containing
12897 ...</summary>
12898 </member>
12899 <member name="E:OpenMetaverse.Inventory.InventoryObjectRemoved">
12900 <summary>Raised when the simulator sends us data containing
12901 ...</summary>
12902 </member>
12903 <member name="E:OpenMetaverse.Inventory.InventoryObjectAdded">
12904 <summary>Raised when the simulator sends us data containing
12905 ...</summary>
12906 </member> 11392 </member>
12907 <member name="P:OpenMetaverse.Inventory.RootFolder"> 11393 <member name="M:OpenMetaverse.InventoryManager.RemoveFolder(OpenMetaverse.UUID)">
12908 <summary> 11394 <summary>
12909 The root folder of this avatars inventory 11395 Remove a folder from inventory
12910 </summary> 11396 </summary>
11397 <param name="folder">The <seealso cref="T:OpenMetaverse.UUID" /> of the folder to remove</param>
12911 </member> 11398 </member>
12912 <member name="P:OpenMetaverse.Inventory.LibraryFolder"> 11399 <member name="M:OpenMetaverse.InventoryManager.Remove(System.Collections.Generic.List{OpenMetaverse.UUID},System.Collections.Generic.List{OpenMetaverse.UUID})">
12913 <summary> 11400 <summary>
12914 The default shared library folder 11401 Remove multiple items or folders from inventory
12915 </summary> 11402 </summary>
11403 <param name="items">A List containing the <seealso cref="T:OpenMetaverse.UUID" />s of items to remove</param>
11404 <param name="folders">A List containing the <seealso cref="T:OpenMetaverse.UUID" />s of the folders to remove</param>
12916 </member> 11405 </member>
12917 <member name="P:OpenMetaverse.Inventory.RootNode"> 11406 <member name="M:OpenMetaverse.InventoryManager.EmptyLostAndFound">
12918 <summary> 11407 <summary>
12919 The root node of the avatars inventory 11408 Empty the Lost and Found folder
12920 </summary> 11409 </summary>
12921 </member> 11410 </member>
12922 <member name="P:OpenMetaverse.Inventory.LibraryRootNode"> 11411 <member name="M:OpenMetaverse.InventoryManager.EmptyTrash">
12923 <summary> 11412 <summary>
12924 The root node of the default shared library 11413 Empty the Trash folder
12925 </summary> 11414 </summary>
12926 </member> 11415 </member>
12927 <member name="P:OpenMetaverse.Inventory.Item(OpenMetaverse.UUID)"> 11416 <member name="M:OpenMetaverse.InventoryManager.RequestCreateItem(OpenMetaverse.UUID,System.String,System.String,OpenMetaverse.AssetType,OpenMetaverse.UUID,OpenMetaverse.InventoryType,OpenMetaverse.PermissionMask,OpenMetaverse.InventoryManager.ItemCreatedCallback)">
12928 <summary> 11417 <summary>
12929 By using the bracket operator on this class, the program can get the
12930 InventoryObject designated by the specified uuid. If the value for the corresponding
12931 UUID is null, the call is equivelant to a call to <code>RemoveNodeFor(this[uuid])</code>.
12932 If the value is non-null, it is equivelant to a call to <code>UpdateNodeFor(value)</code>,
12933 the uuid parameter is ignored.
12934 </summary> 11418 </summary>
12935 <param name="uuid">The UUID of the InventoryObject to get or set, ignored if set to non-null value.</param> 11419 <param name="parentFolder">
12936 <returns>The InventoryObject corresponding to <code>uuid</code>.</returns> 11420 </param>
11421 <param name="name">
11422 </param>
11423 <param name="description">
11424 </param>
11425 <param name="type">
11426 </param>
11427 <param name="assetTransactionID">Proper use is to upload the inventory's asset first, then provide the Asset's TransactionID here.</param>
11428 <param name="invType">
11429 </param>
11430 <param name="nextOwnerMask">
11431 </param>
11432 <param name="callback">
11433 </param>
12937 </member> 11434 </member>
12938 <member name="T:OpenMetaverse.PacketEventDictionary"> 11435 <member name="M:OpenMetaverse.InventoryManager.RequestCreateItem(OpenMetaverse.UUID,System.String,System.String,OpenMetaverse.AssetType,OpenMetaverse.UUID,OpenMetaverse.InventoryType,OpenMetaverse.WearableType,OpenMetaverse.PermissionMask,OpenMetaverse.InventoryManager.ItemCreatedCallback)">
12939 <summary> 11436 <summary>
12940 Registers, unregisters, and fires events generated by incoming packets
12941 </summary> 11437 </summary>
11438 <param name="parentFolder">
11439 </param>
11440 <param name="name">
11441 </param>
11442 <param name="description">
11443 </param>
11444 <param name="type">
11445 </param>
11446 <param name="assetTransactionID">Proper use is to upload the inventory's asset first, then provide the Asset's TransactionID here.</param>
11447 <param name="invType">
11448 </param>
11449 <param name="wearableType">
11450 </param>
11451 <param name="nextOwnerMask">
11452 </param>
11453 <param name="callback">
11454 </param>
12942 </member> 11455 </member>
12943 <member name="F:OpenMetaverse.PacketEventDictionary.Client"> 11456 <member name="M:OpenMetaverse.InventoryManager.CreateFolder(OpenMetaverse.UUID,System.String)">
12944 <summary>Reference to the GridClient object</summary>
12945 </member>
12946 <member name="M:OpenMetaverse.PacketEventDictionary.#ctor(OpenMetaverse.GridClient)">
12947 <summary> 11457 <summary>
12948 Default constructor 11458 Creates a new inventory folder
12949 </summary> 11459 </summary>
12950 <param name="client"></param> 11460 <param name="parentID">ID of the folder to put this folder in</param>
11461 <param name="name">Name of the folder to create</param>
11462 <returns>The UUID of the newly created folder</returns>
12951 </member> 11463 </member>
12952 <member name="M:OpenMetaverse.PacketEventDictionary.RegisterEvent(OpenMetaverse.Packets.PacketType,System.EventHandler{OpenMetaverse.PacketReceivedEventArgs},System.Boolean)"> 11464 <member name="M:OpenMetaverse.InventoryManager.CreateFolder(OpenMetaverse.UUID,System.String,OpenMetaverse.AssetType)">
12953 <summary> 11465 <summary>
12954 Register an event handler 11466 Creates a new inventory folder
12955 </summary> 11467 </summary>
12956 <remarks>Use PacketType.Default to fire this event on every 11468 <param name="parentID">ID of the folder to put this folder in</param>
12957 incoming packet</remarks> 11469 <param name="name">Name of the folder to create</param>
12958 <param name="packetType">Packet type to register the handler for</param> 11470 <param name="preferredType">Sets this folder as the default folder
12959 <param name="eventHandler">Callback to be fired</param> 11471 for new assets of the specified type. Use <code>AssetType.Unknown</code>
12960 <param name="isAsync">True if this callback should be ran 11472 to create a normal folder, otherwise it will likely create a
12961 asynchronously, false to run it synchronous</param> 11473 duplicate of an existing folder type</param>
11474 <returns>The UUID of the newly created folder</returns>
11475 <remarks>If you specify a preferred type of <code>AsseType.Folder</code>
11476 it will create a new root folder which may likely cause all sorts
11477 of strange problems</remarks>
12962 </member> 11478 </member>
12963 <member name="M:OpenMetaverse.PacketEventDictionary.UnregisterEvent(OpenMetaverse.Packets.PacketType,System.EventHandler{OpenMetaverse.PacketReceivedEventArgs})"> 11479 <member name="M:OpenMetaverse.InventoryManager.RequestCreateItemFromAsset(System.Byte[],System.String,System.String,OpenMetaverse.AssetType,OpenMetaverse.InventoryType,OpenMetaverse.UUID,OpenMetaverse.InventoryManager.ItemCreatedFromAssetCallback)">
12964 <summary> 11480 <summary>
12965 Unregister an event handler 11481 Create an inventory item and upload asset data
12966 </summary> 11482 </summary>
12967 <param name="packetType">Packet type to unregister the handler for</param> 11483 <param name="data">Asset data</param>
12968 <param name="eventHandler">Callback to be unregistered</param> 11484 <param name="name">Inventory item name</param>
11485 <param name="description">Inventory item description</param>
11486 <param name="assetType">Asset type</param>
11487 <param name="invType">Inventory type</param>
11488 <param name="folderID">Put newly created inventory in this folder</param>
11489 <param name="callback">Delegate that will receive feedback on success or failure</param>
12969 </member> 11490 </member>
12970 <member name="M:OpenMetaverse.PacketEventDictionary.RaiseEvent(OpenMetaverse.Packets.PacketType,OpenMetaverse.Packets.Packet,OpenMetaverse.Simulator)"> 11491 <member name="M:OpenMetaverse.InventoryManager.RequestCreateItemFromAsset(System.Byte[],System.String,System.String,OpenMetaverse.AssetType,OpenMetaverse.InventoryType,OpenMetaverse.UUID,OpenMetaverse.Permissions,OpenMetaverse.InventoryManager.ItemCreatedFromAssetCallback)">
12971 <summary> 11492 <summary>
12972 Fire the events registered for this packet type 11493 Create an inventory item and upload asset data
12973 </summary> 11494 </summary>
12974 <param name="packetType">Incoming packet type</param> 11495 <param name="data">Asset data</param>
12975 <param name="packet">Incoming packet</param> 11496 <param name="name">Inventory item name</param>
12976 <param name="simulator">Simulator this packet was received from</param> 11497 <param name="description">Inventory item description</param>
11498 <param name="assetType">Asset type</param>
11499 <param name="invType">Inventory type</param>
11500 <param name="folderID">Put newly created inventory in this folder</param>
11501 <param name="permissions">Permission of the newly created item
11502 (EveryoneMask, GroupMask, and NextOwnerMask of Permissions struct are supported)</param>
11503 <param name="callback">Delegate that will receive feedback on success or failure</param>
12977 </member> 11504 </member>
12978 <member name="T:OpenMetaverse.PacketEventDictionary.PacketCallbackWrapper"> 11505 <member name="M:OpenMetaverse.InventoryManager.CreateLink(OpenMetaverse.UUID,OpenMetaverse.InventoryBase,OpenMetaverse.InventoryManager.ItemCreatedCallback)">
12979 <summary> 11506 <summary>
12980 Object that is passed to worker threads in the ThreadPool for 11507 Creates inventory link to another inventory item or folder
12981 firing packet callbacks
12982 </summary> 11508 </summary>
11509 <param name="folderID">Put newly created link in folder with this UUID</param>
11510 <param name="bse">Inventory item or folder</param>
11511 <param name="callback">Method to call upon creation of the link</param>
12983 </member> 11512 </member>
12984 <member name="F:OpenMetaverse.PacketEventDictionary.PacketCallbackWrapper.Callback"> 11513 <member name="M:OpenMetaverse.InventoryManager.CreateLink(OpenMetaverse.UUID,OpenMetaverse.InventoryItem,OpenMetaverse.InventoryManager.ItemCreatedCallback)">
12985 <summary>Callback to fire for this packet</summary>
12986 </member>
12987 <member name="F:OpenMetaverse.PacketEventDictionary.PacketCallbackWrapper.Simulator">
12988 <summary>Reference to the simulator that this packet came from</summary>
12989 </member>
12990 <member name="F:OpenMetaverse.PacketEventDictionary.PacketCallbackWrapper.Packet">
12991 <summary>The packet that needs to be processed</summary>
12992 </member>
12993 <member name="T:OpenMetaverse.CapsEventDictionary">
12994 <summary> 11514 <summary>
12995 Registers, unregisters, and fires events generated by the Capabilities 11515 Creates inventory link to another inventory item
12996 event queue
12997 </summary> 11516 </summary>
11517 <param name="folderID">Put newly created link in folder with this UUID</param>
11518 <param name="item">Original inventory item</param>
11519 <param name="callback">Method to call upon creation of the link</param>
12998 </member> 11520 </member>
12999 <member name="F:OpenMetaverse.CapsEventDictionary.Client"> 11521 <member name="M:OpenMetaverse.InventoryManager.CreateLink(OpenMetaverse.UUID,OpenMetaverse.InventoryFolder,OpenMetaverse.InventoryManager.ItemCreatedCallback)">
13000 <summary>Reference to the GridClient object</summary>
13001 </member>
13002 <member name="M:OpenMetaverse.CapsEventDictionary.#ctor(OpenMetaverse.GridClient)">
13003 <summary> 11522 <summary>
13004 Default constructor 11523 Creates inventory link to another inventory folder
13005 </summary> 11524 </summary>
13006 <param name="client">Reference to the GridClient object</param> 11525 <param name="folderID">Put newly created link in folder with this UUID</param>
11526 <param name="folder">Original inventory folder</param>
11527 <param name="callback">Method to call upon creation of the link</param>
13007 </member> 11528 </member>
13008 <member name="M:OpenMetaverse.CapsEventDictionary.RegisterEvent(System.String,OpenMetaverse.Caps.EventQueueCallback)"> 11529 <member name="M:OpenMetaverse.InventoryManager.CreateLink(OpenMetaverse.UUID,OpenMetaverse.UUID,System.String,System.String,OpenMetaverse.AssetType,OpenMetaverse.InventoryType,OpenMetaverse.UUID,OpenMetaverse.InventoryManager.ItemCreatedCallback)">
13009 <summary> 11530 <summary>
13010 Register an new event handler for a capabilities event sent via the EventQueue 11531 Creates inventory link to another inventory item or folder
13011 </summary> 11532 </summary>
13012 <remarks>Use String.Empty to fire this event on every CAPS event</remarks> 11533 <param name="folderID">Put newly created link in folder with this UUID</param>
13013 <param name="capsEvent">Capability event name to register the 11534 <param name="itemID">Original item's UUID</param>
13014 handler for</param> 11535 <param name="name">Name</param>
13015 <param name="eventHandler">Callback to fire</param> 11536 <param name="description">Description</param>
11537 <param name="assetType">Asset Type</param>
11538 <param name="invType">Inventory Type</param>
11539 <param name="transactionID">Transaction UUID</param>
11540 <param name="callback">Method to call upon creation of the link</param>
13016 </member> 11541 </member>
13017 <member name="M:OpenMetaverse.CapsEventDictionary.UnregisterEvent(System.String,OpenMetaverse.Caps.EventQueueCallback)"> 11542 <member name="M:OpenMetaverse.InventoryManager.RequestCopyItem(OpenMetaverse.UUID,OpenMetaverse.UUID,System.String,OpenMetaverse.InventoryManager.ItemCopiedCallback)">
13018 <summary> 11543 <summary>
13019 Unregister a previously registered capabilities handler
13020 </summary> 11544 </summary>
13021 <param name="capsEvent">Capability event name unregister the 11545 <param name="item">
13022 handler for</param> 11546 </param>
13023 <param name="eventHandler">Callback to unregister</param> 11547 <param name="newParent">
11548 </param>
11549 <param name="newName">
11550 </param>
11551 <param name="callback">
11552 </param>
13024 </member> 11553 </member>
13025 <member name="M:OpenMetaverse.CapsEventDictionary.RaiseEvent(System.String,OpenMetaverse.Interfaces.IMessage,OpenMetaverse.Simulator)"> 11554 <member name="M:OpenMetaverse.InventoryManager.RequestCopyItem(OpenMetaverse.UUID,OpenMetaverse.UUID,System.String,OpenMetaverse.UUID,OpenMetaverse.InventoryManager.ItemCopiedCallback)">
13026 <summary> 11555 <summary>
13027 Fire the events registered for this event type synchronously
13028 </summary> 11556 </summary>
13029 <param name="capsEvent">Capability name</param> 11557 <param name="item">
13030 <param name="message">Decoded event body</param> 11558 </param>
13031 <param name="simulator">Reference to the simulator that 11559 <param name="newParent">
13032 generated this event</param> 11560 </param>
11561 <param name="newName">
11562 </param>
11563 <param name="oldOwnerID">
11564 </param>
11565 <param name="callback">
11566 </param>
13033 </member> 11567 </member>
13034 <member name="M:OpenMetaverse.CapsEventDictionary.BeginRaiseEvent(System.String,OpenMetaverse.Interfaces.IMessage,OpenMetaverse.Simulator)"> 11568 <member name="M:OpenMetaverse.InventoryManager.RequestCopyItems(System.Collections.Generic.List{OpenMetaverse.UUID},System.Collections.Generic.List{OpenMetaverse.UUID},System.Collections.Generic.List{System.String},OpenMetaverse.UUID,OpenMetaverse.InventoryManager.ItemCopiedCallback)">
13035 <summary> 11569 <summary>
13036 Fire the events registered for this event type asynchronously
13037 </summary> 11570 </summary>
13038 <param name="capsEvent">Capability name</param> 11571 <param name="items">
13039 <param name="message">Decoded event body</param> 11572 </param>
13040 <param name="simulator">Reference to the simulator that 11573 <param name="targetFolders">
13041 generated this event</param> 11574 </param>
11575 <param name="newNames">
11576 </param>
11577 <param name="oldOwnerID">
11578 </param>
11579 <param name="callback">
11580 </param>
13042 </member> 11581 </member>
13043 <member name="T:OpenMetaverse.CapsEventDictionary.CapsCallbackWrapper"> 11582 <member name="M:OpenMetaverse.InventoryManager.RequestCopyItemFromNotecard(OpenMetaverse.UUID,OpenMetaverse.UUID,OpenMetaverse.UUID,OpenMetaverse.UUID,OpenMetaverse.InventoryManager.ItemCopiedCallback)">
13044 <summary> 11583 <summary>
13045 Object that is passed to worker threads in the ThreadPool for 11584 Request a copy of an asset embedded within a notecard
13046 firing CAPS callbacks
13047 </summary> 11585 </summary>
11586 <param name="objectID">Usually UUID.Zero for copying an asset from a notecard</param>
11587 <param name="notecardID">UUID of the notecard to request an asset from</param>
11588 <param name="folderID">Target folder for asset to go to in your inventory</param>
11589 <param name="itemID">UUID of the embedded asset</param>
11590 <param name="callback">callback to run when item is copied to inventory</param>
13048 </member> 11591 </member>
13049 <member name="F:OpenMetaverse.CapsEventDictionary.CapsCallbackWrapper.Callback"> 11592 <member name="M:OpenMetaverse.InventoryManager.RequestUpdateItem(OpenMetaverse.InventoryItem)">
13050 <summary>Callback to fire for this packet</summary>
13051 </member>
13052 <member name="F:OpenMetaverse.CapsEventDictionary.CapsCallbackWrapper.CapsEvent">
13053 <summary>Name of the CAPS event</summary>
13054 </member>
13055 <member name="F:OpenMetaverse.CapsEventDictionary.CapsCallbackWrapper.Message">
13056 <summary>Strongly typed decoded data</summary>
13057 </member>
13058 <member name="F:OpenMetaverse.CapsEventDictionary.CapsCallbackWrapper.Simulator">
13059 <summary>Reference to the simulator that generated this event</summary>
13060 </member>
13061 <member name="T:OpenMetaverse.DownloadRequest">
13062 <summary> 11593 <summary>
13063 Represends individual HTTP Download request
13064 </summary> 11594 </summary>
11595 <param name="item">
11596 </param>
13065 </member> 11597 </member>
13066 <member name="F:OpenMetaverse.DownloadRequest.Address"> 11598 <member name="M:OpenMetaverse.InventoryManager.RequestUpdateItems(System.Collections.Generic.List{OpenMetaverse.InventoryItem})">
13067 <summary>URI of the item to fetch</summary>
13068 </member>
13069 <member name="F:OpenMetaverse.DownloadRequest.MillisecondsTimeout">
13070 <summary>Timout specified in milliseconds</summary>
13071 </member>
13072 <member name="F:OpenMetaverse.DownloadRequest.DownloadProgressCallback">
13073 <summary>Download progress callback</summary>
13074 </member>
13075 <member name="F:OpenMetaverse.DownloadRequest.CompletedCallback">
13076 <summary>Download completed callback</summary>
13077 </member>
13078 <member name="F:OpenMetaverse.DownloadRequest.ContentType">
13079 <summary>Accept the following content type</summary>
13080 </member>
13081 <member name="M:OpenMetaverse.DownloadRequest.#ctor">
13082 <summary>Default constructor</summary>
13083 </member>
13084 <member name="M:OpenMetaverse.DownloadRequest.#ctor(System.Uri,System.Int32,System.String,OpenMetaverse.Http.CapsBase.DownloadProgressEventHandler,OpenMetaverse.Http.CapsBase.RequestCompletedEventHandler)">
13085 <summary>Constructor</summary>
13086 </member>
13087 <member name="T:OpenMetaverse.DownloadManager">
13088 <summary> 11599 <summary>
13089 Manages async HTTP downloads with a limit on maximum
13090 concurrent downloads
13091 </summary> 11600 </summary>
11601 <param name="items">
11602 </param>
13092 </member> 11603 </member>
13093 <member name="M:OpenMetaverse.DownloadManager.#ctor"> 11604 <member name="M:OpenMetaverse.InventoryManager.RequestUpdateItems(System.Collections.Generic.List{OpenMetaverse.InventoryItem},OpenMetaverse.UUID)">
13094 <summary>Default constructor</summary>
13095 </member>
13096 <member name="M:OpenMetaverse.DownloadManager.Dispose">
13097 <summary>Cleanup method</summary>
13098 </member>
13099 <member name="M:OpenMetaverse.DownloadManager.SetupRequest(System.Uri,System.String)">
13100 <summary>Setup http download request</summary>
13101 </member>
13102 <member name="M:OpenMetaverse.DownloadManager.EnqueuePending">
13103 <summary>Check the queue for pending work</summary>
13104 </member>
13105 <member name="M:OpenMetaverse.DownloadManager.QueueDownlad(OpenMetaverse.DownloadRequest)">
13106 <summary>Enqueue a new HTPP download</summary>
13107 </member>
13108 <member name="P:OpenMetaverse.DownloadManager.ParallelDownloads">
13109 <summary>Maximum number of parallel downloads from a single endpoint</summary>
13110 </member>
13111 <member name="P:OpenMetaverse.DownloadManager.ClientCert">
13112 <summary>Client certificate</summary>
13113 </member>
13114 <member name="F:OpenMetaverse.Voice.VoicePosition.Position">
13115 <summary>Positional vector of the users position</summary>
13116 </member>
13117 <member name="F:OpenMetaverse.Voice.VoicePosition.Velocity">
13118 <summary>Velocity vector of the position</summary>
13119 </member>
13120 <member name="F:OpenMetaverse.Voice.VoicePosition.AtOrientation">
13121 <summary>At Orientation (X axis) of the position</summary>
13122 </member>
13123 <member name="F:OpenMetaverse.Voice.VoicePosition.UpOrientation">
13124 <summary>Up Orientation (Y axis) of the position</summary>
13125 </member>
13126 <member name="F:OpenMetaverse.Voice.VoicePosition.LeftOrientation">
13127 <summary>Left Orientation (Z axis) of the position</summary>
13128 </member>
13129 <member name="T:OpenMetaverse.Assets.AssetMesh">
13130 <summary> 11605 <summary>
13131 Represents Mesh asset
13132 </summary> 11606 </summary>
11607 <param name="items">
11608 </param>
11609 <param name="transactionID">
11610 </param>
13133 </member> 11611 </member>
13134 <member name="M:OpenMetaverse.Assets.AssetMesh.#ctor"> 11612 <member name="M:OpenMetaverse.InventoryManager.RequestUploadNotecardAsset(System.Byte[],OpenMetaverse.UUID,OpenMetaverse.InventoryManager.InventoryUploadedAssetCallback)">
13135 <summary>Initializes a new instance of an AssetMesh object</summary>
13136 </member>
13137 <member name="M:OpenMetaverse.Assets.AssetMesh.#ctor(OpenMetaverse.UUID,System.Byte[])">
13138 <summary>Initializes a new instance of an AssetMesh object with parameters</summary>
13139 <param name="assetID">A unique <see cref="T:OpenMetaverse.UUID"/> specific to this asset</param>
13140 <param name="assetData">A byte array containing the raw asset data</param>
13141 </member>
13142 <member name="M:OpenMetaverse.Assets.AssetMesh.Encode">
13143 <summary> 11613 <summary>
13144 TODO: Encodes a scripts contents into a LSO Bytecode file
13145 </summary> 11614 </summary>
11615 <param name="data">
11616 </param>
11617 <param name="notecardID">
11618 </param>
11619 <param name="callback">
11620 </param>
13146 </member> 11621 </member>
13147 <member name="M:OpenMetaverse.Assets.AssetMesh.Decode"> 11622 <member name="M:OpenMetaverse.InventoryManager.RequestUpdateNotecardTask(System.Byte[],OpenMetaverse.UUID,OpenMetaverse.UUID,OpenMetaverse.InventoryManager.InventoryUploadedAssetCallback)">
13148 <summary> 11623 <summary>
13149 TODO: Decode LSO Bytecode into a string 11624 Save changes to notecard embedded in object contents
13150 </summary> 11625 </summary>
13151 <returns>true</returns> 11626 <param name="data">Encoded notecard asset data</param>
13152 </member> 11627 <param name="notecardID">Notecard UUID</param>
13153 <member name="P:OpenMetaverse.Assets.AssetMesh.AssetType"> 11628 <param name="taskID">Object's UUID</param>
13154 <summary>Override the base classes AssetType</summary> 11629 <param name="callback">Called upon finish of the upload with status information</param>
13155 </member> 11630 </member>
13156 <member name="T:OpenMetaverse.Helpers"> 11631 <member name="M:OpenMetaverse.InventoryManager.RequestUploadGestureAsset(System.Byte[],OpenMetaverse.UUID,OpenMetaverse.InventoryManager.InventoryUploadedAssetCallback)">
13157 <summary> 11632 <summary>
13158 Static helper functions and global variables 11633 Upload new gesture asset for an inventory gesture item
13159 </summary> 11634 </summary>
11635 <param name="data">Encoded gesture asset</param>
11636 <param name="gestureID">Gesture inventory UUID</param>
11637 <param name="callback">Callback whick will be called when upload is complete</param>
13160 </member> 11638 </member>
13161 <member name="F:OpenMetaverse.Helpers.MSG_APPENDED_ACKS"> 11639 <member name="M:OpenMetaverse.InventoryManager.RequestUpdateScriptAgentInventory(System.Byte[],OpenMetaverse.UUID,System.Boolean,OpenMetaverse.InventoryManager.ScriptUpdatedCallback)">
13162 <summary>This header flag signals that ACKs are appended to the packet</summary>
13163 </member>
13164 <member name="F:OpenMetaverse.Helpers.MSG_RESENT">
13165 <summary>This header flag signals that this packet has been sent before</summary>
13166 </member>
13167 <member name="F:OpenMetaverse.Helpers.MSG_RELIABLE">
13168 <summary>This header flags signals that an ACK is expected for this packet</summary>
13169 </member>
13170 <member name="F:OpenMetaverse.Helpers.MSG_ZEROCODED">
13171 <summary>This header flag signals that the message is compressed using zerocoding</summary>
13172 </member>
13173 <member name="M:OpenMetaverse.Helpers.TEOffsetShort(System.Single)">
13174 <summary> 11640 <summary>
13175 11641 Update an existing script in an agents Inventory
13176 </summary> 11642 </summary>
13177 <param name="offset"></param> 11643 <param name="data">A byte[] array containing the encoded scripts contents</param>
13178 <returns></returns> 11644 <param name="itemID">the itemID of the script</param>
11645 <param name="mono">if true, sets the script content to run on the mono interpreter</param>
11646 <param name="callback">
11647 </param>
13179 </member> 11648 </member>
13180 <member name="M:OpenMetaverse.Helpers.TEOffsetFloat(System.Byte[],System.Int32)"> 11649 <member name="M:OpenMetaverse.InventoryManager.RequestUpdateScriptTask(System.Byte[],OpenMetaverse.UUID,OpenMetaverse.UUID,System.Boolean,System.Boolean,OpenMetaverse.InventoryManager.ScriptUpdatedCallback)">
13181 <summary> 11650 <summary>
13182 11651 Update an existing script in an task Inventory
13183 </summary> 11652 </summary>
13184 <param name="bytes"></param> 11653 <param name="data">A byte[] array containing the encoded scripts contents</param>
13185 <param name="pos"></param> 11654 <param name="itemID">the itemID of the script</param>
13186 <returns></returns> 11655 <param name="taskID">UUID of the prim containting the script</param>
11656 <param name="mono">if true, sets the script content to run on the mono interpreter</param>
11657 <param name="running">if true, sets the script to running</param>
11658 <param name="callback">
11659 </param>
13187 </member> 11660 </member>
13188 <member name="M:OpenMetaverse.Helpers.TERotationShort(System.Single)"> 11661 <member name="M:OpenMetaverse.InventoryManager.RequestRezFromInventory(OpenMetaverse.Simulator,OpenMetaverse.Quaternion,OpenMetaverse.Vector3,OpenMetaverse.InventoryItem)">
13189 <summary> 11662 <summary>
13190 11663 Rez an object from inventory
13191 </summary> 11664 </summary>
13192 <param name="rotation"></param> 11665 <param name="simulator">Simulator to place object in</param>
13193 <returns></returns> 11666 <param name="rotation">Rotation of the object when rezzed</param>
11667 <param name="position">Vector of where to place object</param>
11668 <param name="item">InventoryItem object containing item details</param>
13194 </member> 11669 </member>
13195 <member name="M:OpenMetaverse.Helpers.TERotationFloat(System.Byte[],System.Int32)"> 11670 <member name="M:OpenMetaverse.InventoryManager.RequestRezFromInventory(OpenMetaverse.Simulator,OpenMetaverse.Quaternion,OpenMetaverse.Vector3,OpenMetaverse.InventoryItem,OpenMetaverse.UUID)">
13196 <summary> 11671 <summary>
13197 11672 Rez an object from inventory
13198 </summary> 11673 </summary>
13199 <param name="bytes"></param> 11674 <param name="simulator">Simulator to place object in</param>
13200 <param name="pos"></param> 11675 <param name="rotation">Rotation of the object when rezzed</param>
13201 <returns></returns> 11676 <param name="position">Vector of where to place object</param>
11677 <param name="item">InventoryItem object containing item details</param>
11678 <param name="groupOwner">UUID of group to own the object</param>
13202 </member> 11679 </member>
13203 <member name="M:OpenMetaverse.Helpers.GlobalPosToRegionHandle(System.Single,System.Single,System.Single@,System.Single@)"> 11680 <member name="M:OpenMetaverse.InventoryManager.RequestRezFromInventory(OpenMetaverse.Simulator,OpenMetaverse.Quaternion,OpenMetaverse.Vector3,OpenMetaverse.InventoryItem,OpenMetaverse.UUID,OpenMetaverse.UUID,System.Boolean)">
13204 <summary> 11681 <summary>
13205 Given an X/Y location in absolute (grid-relative) terms, a region 11682 Rez an object from inventory
13206 handle is returned along with the local X/Y location in that region
13207 </summary> 11683 </summary>
13208 <param name="globalX">The absolute X location, a number such as 11684 <param name="simulator">Simulator to place object in</param>
13209 255360.35</param> 11685 <param name="rotation">Rotation of the object when rezzed</param>
13210 <param name="globalY">The absolute Y location, a number such as 11686 <param name="position">Vector of where to place object</param>
13211 255360.35</param> 11687 <param name="item">InventoryItem object containing item details</param>
13212 <param name="localX">The sim-local X position of the global X 11688 <param name="groupOwner">UUID of group to own the object</param>
13213 position, a value from 0.0 to 256.0</param> 11689 <param name="queryID">User defined queryID to correlate replies</param>
13214 <param name="localY">The sim-local Y position of the global Y 11690 <param name="rezSelected">If set to true, the CreateSelected flag
13215 position, a value from 0.0 to 256.0</param> 11691 will be set on the rezzed object</param>
13216 <returns>A 64-bit region handle that can be used to teleport to</returns>
13217 </member> 11692 </member>
13218 <member name="M:OpenMetaverse.Helpers.FloatToTerseString(System.Single)"> 11693 <member name="M:OpenMetaverse.InventoryManager.RequestDeRezToInventory(System.UInt32)">
13219 <summary> 11694 <summary>
13220 Converts a floating point number to a terse string format used for 11695 DeRez an object from the simulator to the agents Objects folder in the agents Inventory
13221 transmitting numbers in wearable asset files
13222 </summary> 11696 </summary>
13223 <param name="val">Floating point number to convert to a string</param> 11697 <param name="objectLocalID">The simulator Local ID of the object</param>
13224 <returns>A terse string representation of the input number</returns> 11698 <remarks>If objectLocalID is a child primitive in a linkset, the entire linkset will be derezzed</remarks>
13225 </member> 11699 </member>
13226 <member name="M:OpenMetaverse.Helpers.FieldToString(System.Text.StringBuilder,System.Byte[],System.String)"> 11700 <member name="M:OpenMetaverse.InventoryManager.RequestDeRezToInventory(System.UInt32,OpenMetaverse.DeRezDestination,OpenMetaverse.UUID,OpenMetaverse.UUID)">
13227 <summary> 11701 <summary>
13228 Convert a variable length field (byte array) to a string, with a 11702 DeRez an object from the simulator and return to inventory
13229 field name prepended to each line of the output
13230 </summary> 11703 </summary>
13231 <remarks>If the byte array has unprintable characters in it, a 11704 <param name="objectLocalID">The simulator Local ID of the object</param>
13232 hex dump will be written instead</remarks> 11705 <param name="destType">The type of destination from the <seealso cref="T:OpenMetaverse.DeRezDestination" /> enum</param>
13233 <param name="output">The StringBuilder object to write to</param> 11706 <param name="destFolder">The destination inventory folders <seealso cref="T:OpenMetaverse.UUID" /> -or-
13234 <param name="bytes">The byte array to convert to a string</param> 11707 if DeRezzing object to a tasks Inventory, the Tasks <seealso cref="T:OpenMetaverse.UUID" /></param>
13235 <param name="fieldName">A field name to prepend to each line of output</param> 11708 <param name="transactionID">The transaction ID for this request which
11709 can be used to correlate this request with other packets</param>
11710 <remarks>If objectLocalID is a child primitive in a linkset, the entire linkset will be derezzed</remarks>
13236 </member> 11711 </member>
13237 <member name="M:OpenMetaverse.Helpers.ZeroDecode(System.Byte[],System.Int32,System.Byte[])"> 11712 <member name="M:OpenMetaverse.InventoryManager.RequestRestoreRezFromInventory(OpenMetaverse.Simulator,OpenMetaverse.InventoryItem,OpenMetaverse.UUID)">
13238 <summary> 11713 <summary>
13239 Decode a zerocoded byte array, used to decompress packets marked 11714 Rez an item from inventory to its previous simulator location
13240 with the zerocoded flag
13241 </summary> 11715 </summary>
13242 <remarks>Any time a zero is encountered, the next byte is a count 11716 <param name="simulator">
13243 of how many zeroes to expand. One zero is encoded with 0x00 0x01, 11717 </param>
13244 two zeroes is 0x00 0x02, three zeroes is 0x00 0x03, etc. The 11718 <param name="item">
13245 first four bytes are copied directly to the output buffer. 11719 </param>
13246 </remarks> 11720 <param name="queryID">
13247 <param name="src">The byte array to decode</param> 11721 </param>
13248 <param name="srclen">The length of the byte array to decode. This 11722 <returns>
13249 would be the length of the packet up to (but not including) any 11723 </returns>
13250 appended ACKs</param>
13251 <param name="dest">The output byte array to decode to</param>
13252 <returns>The length of the output buffer</returns>
13253 </member> 11724 </member>
13254 <member name="M:OpenMetaverse.Helpers.ZeroEncode(System.Byte[],System.Int32,System.Byte[])"> 11725 <member name="M:OpenMetaverse.InventoryManager.GiveItem(OpenMetaverse.UUID,System.String,OpenMetaverse.AssetType,OpenMetaverse.UUID,System.Boolean)">
13255 <summary> 11726 <summary>
13256 Encode a byte array with zerocoding. Used to compress packets marked 11727 Give an inventory item to another avatar
13257 with the zerocoded flag. Any zeroes in the array are compressed down
13258 to a single zero byte followed by a count of how many zeroes to expand
13259 out. A single zero becomes 0x00 0x01, two zeroes becomes 0x00 0x02,
13260 three zeroes becomes 0x00 0x03, etc. The first four bytes are copied
13261 directly to the output buffer.
13262 </summary> 11728 </summary>
13263 <param name="src">The byte array to encode</param> 11729 <param name="itemID">The <seealso cref="T:OpenMetaverse.UUID" /> of the item to give</param>
13264 <param name="srclen">The length of the byte array to encode</param> 11730 <param name="itemName">The name of the item</param>
13265 <param name="dest">The output byte array to encode to</param> 11731 <param name="assetType">The type of the item from the <seealso cref="T:OpenMetaverse.AssetType" /> enum</param>
13266 <returns>The length of the output buffer</returns> 11732 <param name="recipient">The <seealso cref="T:OpenMetaverse.UUID" /> of the recipient</param>
11733 <param name="doEffect">true to generate a beameffect during transfer</param>
13267 </member> 11734 </member>
13268 <member name="M:OpenMetaverse.Helpers.InventoryCRC(System.Int32,System.Byte,System.SByte,System.SByte,OpenMetaverse.UUID,OpenMetaverse.UUID,System.Int32,OpenMetaverse.UUID,OpenMetaverse.UUID,OpenMetaverse.UUID,OpenMetaverse.UUID,System.UInt32,System.UInt32,System.UInt32,System.UInt32,System.UInt32)"> 11735 <member name="M:OpenMetaverse.InventoryManager.GiveFolder(OpenMetaverse.UUID,System.String,OpenMetaverse.AssetType,OpenMetaverse.UUID,System.Boolean)">
13269 <summary> 11736 <summary>
13270 Calculates the CRC (cyclic redundancy check) needed to upload inventory. 11737 Give an inventory Folder with contents to another avatar
13271 </summary> 11738 </summary>
13272 <param name="creationDate">Creation date</param> 11739 <param name="folderID">The <seealso cref="T:OpenMetaverse.UUID" /> of the Folder to give</param>
13273 <param name="saleType">Sale type</param> 11740 <param name="folderName">The name of the folder</param>
13274 <param name="invType">Inventory type</param> 11741 <param name="assetType">The type of the item from the <seealso cref="T:OpenMetaverse.AssetType" /> enum</param>
13275 <param name="type">Type</param> 11742 <param name="recipient">The <seealso cref="T:OpenMetaverse.UUID" /> of the recipient</param>
13276 <param name="assetID">Asset ID</param> 11743 <param name="doEffect">true to generate a beameffect during transfer</param>
13277 <param name="groupID">Group ID</param>
13278 <param name="salePrice">Sale price</param>
13279 <param name="ownerID">Owner ID</param>
13280 <param name="creatorID">Creator ID</param>
13281 <param name="itemID">Item ID</param>
13282 <param name="folderID">Folder ID</param>
13283 <param name="everyoneMask">Everyone mask (permissions)</param>
13284 <param name="flags">Flags</param>
13285 <param name="nextOwnerMask">Next owner mask (permissions)</param>
13286 <param name="groupMask">Group mask (permissions)</param>
13287 <param name="ownerMask">Owner mask (permissions)</param>
13288 <returns>The calculated CRC</returns>
13289 </member> 11744 </member>
13290 <member name="M:OpenMetaverse.Helpers.GetResourceStream(System.String)"> 11745 <member name="M:OpenMetaverse.InventoryManager.UpdateTaskInventory(System.UInt32,OpenMetaverse.InventoryItem)">
13291 <summary> 11746 <summary>
13292 Attempts to load a file embedded in the assembly 11747 Copy or move an <see cref="T:OpenMetaverse.InventoryItem" /> from agent inventory to a task (primitive) inventory
13293 </summary> 11748 </summary>
13294 <param name="resourceName">The filename of the resource to load</param> 11749 <param name="objectLocalID">The target object</param>
13295 <returns>A Stream for the requested file, or null if the resource 11750 <param name="item">The item to copy or move from inventory</param>
13296 was not successfully loaded</returns> 11751 <returns>
11752 </returns>
11753 <remarks>For items with copy permissions a copy of the item is placed in the tasks inventory,
11754 for no-copy items the object is moved to the tasks inventory</remarks>
13297 </member> 11755 </member>
13298 <member name="M:OpenMetaverse.Helpers.GetResourceStream(System.String,System.String)"> 11756 <member name="M:OpenMetaverse.InventoryManager.GetTaskInventory(OpenMetaverse.UUID,System.UInt32,System.Int32)">
13299 <summary> 11757 <summary>
13300 Attempts to load a file either embedded in the assembly or found in 11758 Retrieve a listing of the items contained in a task (Primitive)
13301 a given search path
13302 </summary> 11759 </summary>
13303 <param name="resourceName">The filename of the resource to load</param> 11760 <param name="objectID">The tasks <seealso cref="T:OpenMetaverse.UUID" /></param>
13304 <param name="searchPath">An optional path that will be searched if 11761 <param name="objectLocalID">The tasks simulator local ID</param>
13305 the asset is not found embedded in the assembly</param> 11762 <param name="timeoutMS">milliseconds to wait for reply from simulator</param>
13306 <returns>A Stream for the requested file, or null if the resource 11763 <returns>A list containing the inventory items inside the task or null
13307 was not successfully loaded</returns> 11764 if a timeout occurs</returns>
11765 <remarks>This request blocks until the response from the simulator arrives
11766 or timeoutMS is exceeded</remarks>
13308 </member> 11767 </member>
13309 <member name="M:OpenMetaverse.Helpers.PrimListToOSD(System.Collections.Generic.List{OpenMetaverse.Primitive})"> 11768 <member name="M:OpenMetaverse.InventoryManager.RequestTaskInventory(System.UInt32)">
13310 <summary> 11769 <summary>
13311 Converts a list of primitives to an object that can be serialized 11770 Request the contents of a tasks (primitives) inventory from the
13312 with the LLSD system 11771 current simulator
13313 </summary> 11772 </summary>
13314 <param name="prims">Primitives to convert to a serializable object</param> 11773 <param name="objectLocalID">The LocalID of the object</param>
13315 <returns>An object that can be serialized with LLSD</returns> 11774 <seealso cref="E:OpenMetaverse.InventoryManager.TaskInventoryReply" />
13316 </member> 11775 </member>
13317 <member name="M:OpenMetaverse.Helpers.OSDToPrimList(OpenMetaverse.StructuredData.OSD)"> 11776 <member name="M:OpenMetaverse.InventoryManager.RequestTaskInventory(System.UInt32,OpenMetaverse.Simulator)">
13318 <summary> 11777 <summary>
13319 Deserializes OSD in to a list of primitives 11778 Request the contents of a tasks (primitives) inventory
13320 </summary> 11779 </summary>
13321 <param name="osd">Structure holding the serialized primitive list, 11780 <param name="objectLocalID">The simulator Local ID of the object</param>
13322 must be of the SDMap type</param> 11781 <param name="simulator">A reference to the simulator object that contains the object</param>
13323 <returns>A list of deserialized primitives</returns> 11782 <seealso cref="E:OpenMetaverse.InventoryManager.TaskInventoryReply" />
13324 </member>
13325 <member name="M:OpenMetaverse.Helpers.StructToString(System.Object)">
13326 <summary>
13327 Converts a struct or class object containing fields only into a key value separated string
13328 </summary>
13329 <param name="t">The struct object</param>
13330 <returns>A string containing the struct fields as the keys, and the field value as the value separated</returns>
13331 <example>
13332 <code>
13333 // Add the following code to any struct or class containing only fields to override the ToString()
13334 // method to display the values of the passed object
13335
13336 /// <summary>Print the struct data as a string</summary>
13337 ///<returns>A string containing the field name, and field value</returns>
13338 public override string ToString()
13339 {
13340 return Helpers.StructToString(this);
13341 }
13342 </code>
13343 </example>
13344 </member> 11783 </member>
13345 <member name="T:OpenMetaverse.Helpers.LogLevel"> 11784 <member name="M:OpenMetaverse.InventoryManager.MoveTaskInventory(System.UInt32,OpenMetaverse.UUID,OpenMetaverse.UUID,OpenMetaverse.Simulator)">
13346 <summary> 11785 <summary>
13347 Passed to Logger.Log() to identify the severity of a log entry 11786 Move an item from a tasks (Primitive) inventory to the specified folder in the avatars inventory
13348 </summary>
13349 </member>
13350 <member name="F:OpenMetaverse.Helpers.LogLevel.None">
13351 <summary>No logging information will be output</summary>
13352 </member>
13353 <member name="F:OpenMetaverse.Helpers.LogLevel.Info">
13354 <summary>Non-noisy useful information, may be helpful in
13355 debugging a problem</summary>
13356 </member>
13357 <member name="F:OpenMetaverse.Helpers.LogLevel.Warning">
13358 <summary>A non-critical error occurred. A warning will not
13359 prevent the rest of the library from operating as usual,
13360 although it may be indicative of an underlying issue</summary>
13361 </member>
13362 <member name="F:OpenMetaverse.Helpers.LogLevel.Error">
13363 <summary>A critical error has occurred. Generally this will
13364 be followed by the network layer shutting down, although the
13365 stability of the library after an error is uncertain</summary>
13366 </member>
13367 <member name="F:OpenMetaverse.Helpers.LogLevel.Debug">
13368 <summary>Used for internal testing, this logging level can
13369 generate very noisy (long and/or repetitive) messages. Don't
13370 pass this to the Log() function, use DebugLog() instead.
13371 </summary> 11787 </summary>
11788 <param name="objectLocalID">LocalID of the object in the simulator</param>
11789 <param name="taskItemID">UUID of the task item to move</param>
11790 <param name="inventoryFolderID">The ID of the destination folder in this agents inventory</param>
11791 <param name="simulator">Simulator Object</param>
11792 <remarks>Raises the <see cref="M:OpenMetaverse.InventoryManager.OnTaskItemReceived(OpenMetaverse.TaskItemReceivedEventArgs)" /> event</remarks>
13372 </member> 11793 </member>
13373 <member name="T:OpenMetaverse.Imaging.Baker"> 11794 <member name="M:OpenMetaverse.InventoryManager.RemoveTaskInventory(System.UInt32,OpenMetaverse.UUID,OpenMetaverse.Simulator)">
13374 <summary> 11795 <summary>
13375 A set of textures that are layered on texture of each other and "baked" 11796 Remove an item from an objects (Prim) Inventory
13376 in to a single texture, for avatar appearances
13377 </summary> 11797 </summary>
11798 <param name="objectLocalID">LocalID of the object in the simulator</param>
11799 <param name="taskItemID">UUID of the task item to remove</param>
11800 <param name="simulator">Simulator Object</param>
11801 <remarks>You can confirm the removal by comparing the tasks inventory serial before and after the
11802 request with the <see cref="M:OpenMetaverse.InventoryManager.RequestTaskInventory(System.UInt32,OpenMetaverse.Simulator)" /> request combined with
11803 the <seealso cref="E:OpenMetaverse.InventoryManager.TaskInventoryReply" /> event</remarks>
13378 </member> 11804 </member>
13379 <member name="F:OpenMetaverse.Imaging.Baker.bakedTexture"> 11805 <member name="M:OpenMetaverse.InventoryManager.CopyScriptToTask(System.UInt32,OpenMetaverse.InventoryItem,System.Boolean)">
13380 <summary>Final baked texture</summary>
13381 </member>
13382 <member name="F:OpenMetaverse.Imaging.Baker.textures">
13383 <summary>Component layers</summary>
13384 </member>
13385 <member name="F:OpenMetaverse.Imaging.Baker.bakeWidth">
13386 <summary>Width of the final baked image and scratchpad</summary>
13387 </member>
13388 <member name="F:OpenMetaverse.Imaging.Baker.bakeHeight">
13389 <summary>Height of the final baked image and scratchpad</summary>
13390 </member>
13391 <member name="F:OpenMetaverse.Imaging.Baker.bakeType">
13392 <summary>Bake type</summary>
13393 </member>
13394 <member name="M:OpenMetaverse.Imaging.Baker.#ctor(OpenMetaverse.BakeType)">
13395 <summary> 11806 <summary>
13396 Default constructor 11807 Copy an InventoryScript item from the Agents Inventory into a primitives task inventory
13397 </summary> 11808 </summary>
13398 <param name="bakeType">Bake type</param> 11809 <param name="objectLocalID">An unsigned integer representing a primitive being simulated</param>
11810 <param name="item">An <seealso cref="T:OpenMetaverse.InventoryItem" /> which represents a script object from the agents inventory</param>
11811 <param name="enableScript">true to set the scripts running state to enabled</param>
11812 <returns>A Unique Transaction ID</returns>
11813 <example>
11814 The following example shows the basic steps necessary to copy a script from the agents inventory into a tasks inventory
11815 and assumes the script exists in the agents inventory.
11816 <code>
11817 uint primID = 95899503; // Fake prim ID
11818 UUID scriptID = UUID.Parse("92a7fe8a-e949-dd39-a8d8-1681d8673232"); // Fake Script UUID in Inventory
11819 Client.Inventory.FolderContents(Client.Inventory.FindFolderForType(AssetType.LSLText), Client.Self.AgentID,
11820 false, true, InventorySortOrder.ByName, 10000);
11821 Client.Inventory.RezScript(primID, (InventoryItem)Client.Inventory.Store[scriptID]);
11822 </code></example>
13399 </member> 11823 </member>
13400 <member name="M:OpenMetaverse.Imaging.Baker.AddTexture(OpenMetaverse.AppearanceManager.TextureData)"> 11824 <member name="M:OpenMetaverse.InventoryManager.RequestGetScriptRunning(OpenMetaverse.UUID,OpenMetaverse.UUID)">
13401 <summary> 11825 <summary>
13402 Adds layer for baking 11826 Request the running status of a script contained in a task (primitive) inventory
13403 </summary> 11827 </summary>
13404 <param name="tdata">TexturaData struct that contains texture and its params</param> 11828 <param name="objectID">The ID of the primitive containing the script</param>
11829 <param name="scriptID">The ID of the script</param>
11830 <remarks>The <see cref="E:OpenMetaverse.InventoryManager.ScriptRunningReply" /> event can be used to obtain the results of the
11831 request</remarks>
11832 <seealso cref="E:OpenMetaverse.InventoryManager.ScriptRunningReply" />
13405 </member> 11833 </member>
13406 <member name="M:OpenMetaverse.Imaging.Baker.BakeTypeFor(OpenMetaverse.AvatarTextureIndex)"> 11834 <member name="M:OpenMetaverse.InventoryManager.RequestSetScriptRunning(OpenMetaverse.UUID,OpenMetaverse.UUID,System.Boolean)">
13407 <summary> 11835 <summary>
13408 Converts avatar texture index (face) to Bake type 11836 Send a request to set the running state of a script contained in a task (primitive) inventory
13409 </summary> 11837 </summary>
13410 <param name="index">Face number (AvatarTextureIndex)</param> 11838 <param name="objectID">The ID of the primitive containing the script</param>
13411 <returns>BakeType, layer to which this texture belongs to</returns> 11839 <param name="scriptID">The ID of the script</param>
11840 <param name="running">true to set the script running, false to stop a running script</param>
11841 <remarks>To verify the change you can use the <see cref="M:OpenMetaverse.InventoryManager.RequestGetScriptRunning(OpenMetaverse.UUID,OpenMetaverse.UUID)" /> method combined
11842 with the <see cref="E:OpenMetaverse.InventoryManager.ScriptRunningReply" /> event</remarks>
13412 </member> 11843 </member>
13413 <member name="M:OpenMetaverse.Imaging.Baker.SanitizeLayers(OpenMetaverse.Imaging.ManagedImage,OpenMetaverse.Imaging.ManagedImage)"> 11844 <member name="M:OpenMetaverse.InventoryManager.ItemCRC(OpenMetaverse.InventoryItem)">
13414 <summary> 11845 <summary>
13415 Make sure images exist, resize source if needed to match the destination 11846 Create a CRC from an InventoryItem
13416 </summary> 11847 </summary>
13417 <param name="dest">Destination image</param> 11848 <param name="iitem">The source InventoryItem</param>
13418 <param name="src">Source image</param> 11849 <returns>A uint representing the source InventoryItem as a CRC</returns>
13419 <returns>Sanitization was succefull</returns>
13420 </member> 11850 </member>
13421 <member name="M:OpenMetaverse.Imaging.Baker.InitBakedLayerColor(OpenMetaverse.Color4)"> 11851 <member name="M:OpenMetaverse.InventoryManager.DecryptShadowID(OpenMetaverse.UUID)">
13422 <summary> 11852 <summary>
13423 Fills a baked layer as a solid *appearing* color. The colors are 11853 Reverses a cheesy XORing with a fixed UUID to convert a shadow_id to an asset_id
13424 subtly dithered on a 16x16 grid to prevent the JPEG2000 stage from
13425 compressing it too far since it seems to cause upload failures if
13426 the image is a pure solid color
13427 </summary> 11854 </summary>
13428 <param name="color">Color of the base of this layer</param> 11855 <param name="shadowID">Obfuscated shadow_id value</param>
11856 <returns>Deobfuscated asset_id value</returns>
13429 </member> 11857 </member>
13430 <member name="M:OpenMetaverse.Imaging.Baker.InitBakedLayerColor(System.Single,System.Single,System.Single)"> 11858 <member name="M:OpenMetaverse.InventoryManager.EncryptAssetID(OpenMetaverse.UUID)">
13431 <summary> 11859 <summary>
13432 Fills a baked layer as a solid *appearing* color. The colors are 11860 Does a cheesy XORing with a fixed UUID to convert an asset_id to a shadow_id
13433 subtly dithered on a 16x16 grid to prevent the JPEG2000 stage from
13434 compressing it too far since it seems to cause upload failures if
13435 the image is a pure solid color
13436 </summary> 11861 </summary>
13437 <param name="r">Red value</param> 11862 <param name="assetID">asset_id value to obfuscate</param>
13438 <param name="g">Green value</param> 11863 <returns>Obfuscated shadow_id value</returns>
13439 <param name="b">Blue value</param>
13440 </member>
13441 <member name="P:OpenMetaverse.Imaging.Baker.BakedTexture">
13442 <summary>Final baked texture</summary>
13443 </member>
13444 <member name="P:OpenMetaverse.Imaging.Baker.Textures">
13445 <summary>Component layers</summary>
13446 </member>
13447 <member name="P:OpenMetaverse.Imaging.Baker.BakeWidth">
13448 <summary>Width of the final baked image and scratchpad</summary>
13449 </member>
13450 <member name="P:OpenMetaverse.Imaging.Baker.BakeHeight">
13451 <summary>Height of the final baked image and scratchpad</summary>
13452 </member>
13453 <member name="P:OpenMetaverse.Imaging.Baker.BakeType">
13454 <summary>Bake type</summary>
13455 </member>
13456 <member name="P:OpenMetaverse.Imaging.Baker.IsSkin">
13457 <summary>Is this one of the 3 skin bakes</summary>
13458 </member> 11864 </member>
13459 <member name="T:OpenMetaverse.Assets.AssetAnimation"> 11865 <member name="M:OpenMetaverse.InventoryManager.CreateInventoryItem(OpenMetaverse.InventoryType,OpenMetaverse.UUID)">
13460 <summary> 11866 <summary>
13461 Represents an Animation 11867 Wrapper for creating a new <seealso cref="T:OpenMetaverse.InventoryItem" /> object
13462 </summary> 11868 </summary>
11869 <param name="type">The type of item from the <seealso cref="T:OpenMetaverse.InventoryType" /> enum</param>
11870 <param name="id">The <seealso cref="T:OpenMetaverse.UUID" /> of the newly created object</param>
11871 <returns>An <seealso cref="T:OpenMetaverse.InventoryItem" /> object with the type and id passed</returns>
13463 </member> 11872 </member>
13464 <member name="M:OpenMetaverse.Assets.AssetAnimation.#ctor"> 11873 <member name="M:OpenMetaverse.InventoryManager.ParseTaskInventory(System.String)">
13465 <summary>Default Constructor</summary>
13466 </member>
13467 <member name="M:OpenMetaverse.Assets.AssetAnimation.#ctor(OpenMetaverse.UUID,System.Byte[])">
13468 <summary> 11874 <summary>
13469 Construct an Asset object of type Animation 11875 Parse the results of a RequestTaskInventory() response
13470 </summary> 11876 </summary>
13471 <param name="assetID">A unique <see cref="T:OpenMetaverse.UUID"/> specific to this asset</param> 11877 <param name="taskData">A string which contains the data from the task reply</param>
13472 <param name="assetData">A byte array containing the raw asset data</param> 11878 <returns>A List containing the items contained within the tasks inventory</returns>
13473 </member> 11879 </member>
13474 <member name="P:OpenMetaverse.Assets.AssetAnimation.AssetType"> 11880 <member name="M:OpenMetaverse.InventoryManager.SaveAssetIntoInventoryHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
13475 <summary>Override the base classes AssetType</summary> 11881 <summary>Process an incoming packet and raise the appropriate events</summary>
11882 <param name="sender">The sender</param>
11883 <param name="e">The EventArgs object containing the packet data</param>
13476 </member> 11884 </member>
13477 <member name="T:OpenMetaverse.AvatarTextureIndex"> 11885 <member name="M:OpenMetaverse.InventoryManager.InventoryDescendentsHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
13478 <summary> 11886 <summary>Process an incoming packet and raise the appropriate events</summary>
13479 Index of TextureEntry slots for avatar appearances 11887 <param name="sender">The sender</param>
13480 </summary> 11888 <param name="e">The EventArgs object containing the packet data</param>
13481 </member> 11889 </member>
13482 <member name="T:OpenMetaverse.BakeType"> 11890 <member name="M:OpenMetaverse.InventoryManager.UpdateCreateInventoryItemHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
13483 <summary> 11891 <summary>
13484 Bake layers for avatar appearance 11892 UpdateCreateInventoryItem packets are received when a new inventory item
11893 is created. This may occur when an object that's rezzed in world is
11894 taken into inventory, when an item is created using the CreateInventoryItem
11895 packet, or when an object is purchased
13485 </summary> 11896 </summary>
11897 <param name="sender">The sender</param>
11898 <param name="e">The EventArgs object containing the packet data</param>
13486 </member> 11899 </member>
13487 <member name="F:OpenMetaverse.AppearanceManager.MAX_CONCURRENT_DOWNLOADS"> 11900 <member name="M:OpenMetaverse.InventoryManager.MoveInventoryItemHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
13488 <summary>Maximum number of concurrent downloads for wearable assets and textures</summary> 11901 <summary>Process an incoming packet and raise the appropriate events</summary>
13489 </member> 11902 <param name="sender">The sender</param>
13490 <member name="F:OpenMetaverse.AppearanceManager.MAX_CONCURRENT_UPLOADS"> 11903 <param name="e">The EventArgs object containing the packet data</param>
13491 <summary>Maximum number of concurrent uploads for baked textures</summary>
13492 </member>
13493 <member name="F:OpenMetaverse.AppearanceManager.INVENTORY_TIMEOUT">
13494 <summary>Timeout for fetching inventory listings</summary>
13495 </member>
13496 <member name="F:OpenMetaverse.AppearanceManager.WEARABLE_TIMEOUT">
13497 <summary>Timeout for fetching a single wearable, or receiving a single packet response</summary>
13498 </member>
13499 <member name="F:OpenMetaverse.AppearanceManager.TEXTURE_TIMEOUT">
13500 <summary>Timeout for fetching a single texture</summary>
13501 </member>
13502 <member name="F:OpenMetaverse.AppearanceManager.UPLOAD_TIMEOUT">
13503 <summary>Timeout for uploading a single baked texture</summary>
13504 </member>
13505 <member name="F:OpenMetaverse.AppearanceManager.UPLOAD_RETRIES">
13506 <summary>Number of times to retry bake upload</summary>
13507 </member>
13508 <member name="F:OpenMetaverse.AppearanceManager.REBAKE_DELAY">
13509 <summary>When changing outfit, kick off rebake after
13510 20 seconds has passed since the last change</summary>
13511 </member>
13512 <member name="F:OpenMetaverse.AppearanceManager.WEARABLE_COUNT">
13513 <summary>Total number of wearables for each avatar</summary>
13514 </member>
13515 <member name="F:OpenMetaverse.AppearanceManager.BAKED_TEXTURE_COUNT">
13516 <summary>Total number of baked textures on each avatar</summary>
13517 </member>
13518 <member name="F:OpenMetaverse.AppearanceManager.WEARABLES_PER_LAYER">
13519 <summary>Total number of wearables per bake layer</summary>
13520 </member>
13521 <member name="F:OpenMetaverse.AppearanceManager.BakeIndexToTextureIndex">
13522 <summary>Mapping between BakeType and AvatarTextureIndex</summary>
13523 </member>
13524 <member name="F:OpenMetaverse.AppearanceManager.WEARABLE_BAKE_MAP">
13525 <summary>Map of what wearables are included in each bake</summary>
13526 </member>
13527 <member name="F:OpenMetaverse.AppearanceManager.BAKED_TEXTURE_HASH">
13528 <summary>Magic values to finalize the cache check hashes for each
13529 bake</summary>
13530 </member>
13531 <member name="F:OpenMetaverse.AppearanceManager.DEFAULT_AVATAR_TEXTURE">
13532 <summary>Default avatar texture, used to detect when a custom
13533 texture is not set for a face</summary>
13534 </member>
13535 <member name="F:OpenMetaverse.AppearanceManager.m_AgentWearablesReply">
13536 <summary>The event subscribers. null if no subcribers</summary>
13537 </member>
13538 <member name="M:OpenMetaverse.AppearanceManager.OnAgentWearables(OpenMetaverse.AgentWearablesReplyEventArgs)">
13539 <summary>Raises the AgentWearablesReply event</summary>
13540 <param name="e">An AgentWearablesReplyEventArgs object containing the
13541 data returned from the data server</param>
13542 </member>
13543 <member name="F:OpenMetaverse.AppearanceManager.m_AgentWearablesLock">
13544 <summary>Thread sync lock object</summary>
13545 </member>
13546 <member name="F:OpenMetaverse.AppearanceManager.m_AgentCachedBakesReply">
13547 <summary>The event subscribers. null if no subcribers</summary>
13548 </member>
13549 <member name="M:OpenMetaverse.AppearanceManager.OnAgentCachedBakes(OpenMetaverse.AgentCachedBakesReplyEventArgs)">
13550 <summary>Raises the CachedBakesReply event</summary>
13551 <param name="e">An AgentCachedBakesReplyEventArgs object containing the
13552 data returned from the data server AgentCachedTextureResponse</param>
13553 </member>
13554 <member name="F:OpenMetaverse.AppearanceManager.m_AgentCachedBakesLock">
13555 <summary>Thread sync lock object</summary>
13556 </member>
13557 <member name="F:OpenMetaverse.AppearanceManager.m_AppearanceSet">
13558 <summary>The event subscribers. null if no subcribers</summary>
13559 </member>
13560 <member name="M:OpenMetaverse.AppearanceManager.OnAppearanceSet(OpenMetaverse.AppearanceSetEventArgs)">
13561 <summary>Raises the AppearanceSet event</summary>
13562 <param name="e">An AppearanceSetEventArgs object indicating if the operatin was successfull</param>
13563 </member>
13564 <member name="F:OpenMetaverse.AppearanceManager.m_AppearanceSetLock">
13565 <summary>Thread sync lock object</summary>
13566 </member>
13567 <member name="F:OpenMetaverse.AppearanceManager.m_RebakeAvatarReply">
13568 <summary>The event subscribers. null if no subcribers</summary>
13569 </member>
13570 <member name="M:OpenMetaverse.AppearanceManager.OnRebakeAvatar(OpenMetaverse.RebakeAvatarTexturesEventArgs)">
13571 <summary>Raises the RebakeAvatarRequested event</summary>
13572 <param name="e">An RebakeAvatarTexturesEventArgs object containing the
13573 data returned from the data server</param>
13574 </member>
13575 <member name="F:OpenMetaverse.AppearanceManager.m_RebakeAvatarLock">
13576 <summary>Thread sync lock object</summary>
13577 </member>
13578 <member name="F:OpenMetaverse.AppearanceManager.Wearables">
13579 <summary>A cache of wearables currently being worn</summary>
13580 </member> 11904 </member>
13581 <member name="F:OpenMetaverse.AppearanceManager.Textures"> 11905 <member name="M:OpenMetaverse.InventoryManager.BulkUpdateInventoryHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
13582 <summary>A cache of textures currently being worn</summary> 11906 <summary>Process an incoming packet and raise the appropriate events</summary>
11907 <param name="sender">The sender</param>
11908 <param name="e">The EventArgs object containing the packet data</param>
13583 </member> 11909 </member>
13584 <member name="F:OpenMetaverse.AppearanceManager.CacheCheckSerialNum"> 11910 <member name="M:OpenMetaverse.InventoryManager.FetchInventoryReplyHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
13585 <summary>Incrementing serial number for AgentCachedTexture packets</summary> 11911 <summary>Process an incoming packet and raise the appropriate events</summary>
11912 <param name="sender">The sender</param>
11913 <param name="e">The EventArgs object containing the packet data</param>
13586 </member> 11914 </member>
13587 <member name="F:OpenMetaverse.AppearanceManager.SetAppearanceSerialNum"> 11915 <member name="M:OpenMetaverse.InventoryManager.ReplyTaskInventoryHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
13588 <summary>Incrementing serial number for AgentSetAppearance packets</summary> 11916 <summary>Process an incoming packet and raise the appropriate events</summary>
11917 <param name="sender">The sender</param>
11918 <param name="e">The EventArgs object containing the packet data</param>
13589 </member> 11919 </member>
13590 <member name="F:OpenMetaverse.AppearanceManager.AppearanceThreadRunning"> 11920 <member name="P:OpenMetaverse.InventoryObjectOfferedEventArgs.Accept">
13591 <summary>Indicates whether or not the appearance thread is currently 11921 <summary>Set to true to accept offer, false to decline it</summary>
13592 running, to prevent multiple appearance threads from running
13593 simultaneously</summary>
13594 </member> 11922 </member>
13595 <member name="F:OpenMetaverse.AppearanceManager.Client"> 11923 <member name="P:OpenMetaverse.InventoryObjectOfferedEventArgs.FolderID">
13596 <summary>Reference to our agent</summary> 11924 <summary>The folder to accept the inventory into, if null default folder for <see cref="T:OpenMetaverse.AssetType" /> will be used</summary>
13597 </member> 11925 </member>
13598 <member name="F:OpenMetaverse.AppearanceManager.RebakeScheduleTimer"> 11926 <member name="T:OpenMetaverse.TaskItemReceivedEventArgs">
13599 <summary> 11927 <summary>
13600 Timer used for delaying rebake on changing outfit 11928 Callback when an inventory object is accepted and received from a
11929 task inventory. This is the callback in which you actually get
11930 the ItemID, as in ObjectOfferedCallback it is null when received
11931 from a task.
13601 </summary> 11932 </summary>
13602 </member> 11933 </member>
13603 <member name="F:OpenMetaverse.AppearanceManager.AppearanceThread"> 11934 <member name="M:OpenMetaverse.InventoryNode.#ctor">
13604 <summary> 11935 <summary>
13605 Main appearance thread
13606 </summary> 11936 </summary>
13607 </member> 11937 </member>
13608 <member name="M:OpenMetaverse.AppearanceManager.#ctor(OpenMetaverse.GridClient)"> 11938 <member name="M:OpenMetaverse.InventoryNode.#ctor(OpenMetaverse.InventoryBase)">
13609 <summary> 11939 <summary>
13610 Default constructor
13611 </summary> 11940 </summary>
13612 <param name="client">A reference to our agent</param> 11941 <param name="data">
11942 </param>
13613 </member> 11943 </member>
13614 <member name="M:OpenMetaverse.AppearanceManager.SetPreviousAppearance"> 11944 <member name="M:OpenMetaverse.InventoryNode.#ctor(OpenMetaverse.InventoryBase,OpenMetaverse.InventoryNode)">
13615 <summary> 11945 <summary>
13616 Obsolete method for setting appearance. This function no longer does anything. 11946 De-serialization constructor for the InventoryNode Class
13617 Use RequestSetAppearance() to manually start the appearance thread
13618 </summary> 11947 </summary>
13619 </member> 11948 </member>
13620 <member name="M:OpenMetaverse.AppearanceManager.SetPreviousAppearance(System.Boolean)"> 11949 <member name="M:OpenMetaverse.InventoryNode.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
13621 <summary> 11950 <summary>
13622 Obsolete method for setting appearance. This function no longer does anything. 11951 De-serialization handler for the InventoryNode Class
13623 Use RequestSetAppearance() to manually start the appearance thread
13624 </summary> 11952 </summary>
13625 <param name="allowBake">Unused parameter</param>
13626 </member> 11953 </member>
13627 <member name="M:OpenMetaverse.AppearanceManager.RequestSetAppearance"> 11954 <member name="P:OpenMetaverse.InventoryNode.Data">
13628 <summary> 11955 <summary>
13629 Starts the appearance setting thread
13630 </summary> 11956 </summary>
13631 </member> 11957 </member>
13632 <member name="M:OpenMetaverse.AppearanceManager.RequestSetAppearance(System.Boolean)"> 11958 <member name="P:OpenMetaverse.InventoryNode.Parent">
13633 <summary> 11959 <summary>
13634 Starts the appearance setting thread
13635 </summary> 11960 </summary>
13636 <param name="forceRebake">True to force rebaking, otherwise false</param>
13637 </member> 11961 </member>
13638 <member name="M:OpenMetaverse.AppearanceManager.RequestAgentWearables"> 11962 <member name="P:OpenMetaverse.InventoryNode.ParentID">
13639 <summary> 11963 <summary>
13640 Ask the server what textures our agent is currently wearing
13641 </summary> 11964 </summary>
13642 </member> 11965 </member>
13643 <member name="M:OpenMetaverse.AppearanceManager.RequestCachedBakes"> 11966 <member name="P:OpenMetaverse.InventoryNode.Nodes">
13644 <summary> 11967 <summary>
13645 Build hashes out of the texture assetIDs for each baking layer to
13646 ask the simulator whether it has cached copies of each baked texture
13647 </summary> 11968 </summary>
13648 </member> 11969 </member>
13649 <member name="M:OpenMetaverse.AppearanceManager.GetWearableAsset(OpenMetaverse.WearableType)"> 11970 <member name="P:OpenMetaverse.InventoryNode.NeedsUpdate">
13650 <summary> 11971 <summary>
13651 Returns the AssetID of the asset that is currently being worn in a 11972 For inventory folder nodes specifies weather the folder needs to be
13652 given WearableType slot 11973 refreshed from the server
13653 </summary> 11974 </summary>
13654 <param name="type">WearableType slot to get the AssetID for</param>
13655 <returns>The UUID of the asset being worn in the given slot, or
13656 UUID.Zero if no wearable is attached to the given slot or wearables
13657 have not been downloaded yet</returns>
13658 </member> 11975 </member>
13659 <member name="M:OpenMetaverse.AppearanceManager.AddToOutfit(OpenMetaverse.InventoryItem)"> 11976 <member name="M:OpenMetaverse.InventoryNode.GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
13660 <summary> 11977 <summary>
13661 Add a wearable to the current outfit and set appearance 11978 Serialization handler for the InventoryNode Class
13662 </summary> 11979 </summary>
13663 <param name="wearableItem">Wearable to be added to the outfit</param>
13664 </member> 11980 </member>
13665 <member name="M:OpenMetaverse.AppearanceManager.AddToOutfit(System.Collections.Generic.List{OpenMetaverse.InventoryItem})"> 11981 <member name="M:OpenMetaverse.InventoryNode.ToString">
13666 <summary> 11982 <summary>
13667 Add a list of wearables to the current outfit and set appearance
13668 </summary> 11983 </summary>
13669 <param name="wearableItems">List of wearable inventory items to 11984 <returns>
13670 be added to the outfit</param> 11985 </returns>
13671 </member> 11986 </member>
13672 <member name="M:OpenMetaverse.AppearanceManager.RemoveFromOutfit(OpenMetaverse.InventoryItem)"> 11987 <member name="T:OpenMetaverse.Logger">
13673 <summary> 11988 <summary>
13674 Remove a wearable from the current outfit and set appearance 11989 Singleton logging class for the entire library
13675 </summary> 11990 </summary>
13676 <param name="wearableItem">Wearable to be removed from the outfit</param>
13677 </member> 11991 </member>
13678 <member name="M:OpenMetaverse.AppearanceManager.RemoveFromOutfit(System.Collections.Generic.List{OpenMetaverse.InventoryItem})"> 11992 <member name="M:OpenMetaverse.Logger.#ctor">
13679 <summary> 11993 <summary>
13680 Removes a list of wearables from the current outfit and set appearance 11994 Default constructor
13681 </summary> 11995 </summary>
13682 <param name="wearableItems">List of wearable inventory items to
13683 be removed from the outfit</param>
13684 </member> 11996 </member>
13685 <member name="M:OpenMetaverse.AppearanceManager.ReplaceOutfit(System.Collections.Generic.List{OpenMetaverse.InventoryItem})"> 11997 <member name="T:OpenMetaverse.Logger.LogCallback">
13686 <summary> 11998 <summary>
13687 Replace the current outfit with a list of wearables and set appearance 11999 Callback used for client apps to receive log messages from
12000 the library
13688 </summary> 12001 </summary>
13689 <param name="wearableItems">List of wearable inventory items that 12002 <param name="message">Data being logged</param>
13690 define a new outfit</param> 12003 <param name="level">The severity of the log entry from <seealso cref="T:OpenMetaverse.Helpers.LogLevel" /></param>
13691 </member> 12004 </member>
13692 <member name="M:OpenMetaverse.AppearanceManager.IsItemWorn(OpenMetaverse.InventoryItem)"> 12005 <member name="F:OpenMetaverse.Logger.LogInstance">
13693 <summary> 12006 <summary>log4net logging engine</summary>
13694 Checks if an inventory item is currently being worn
13695 </summary>
13696 <param name="item">The inventory item to check against the agent
13697 wearables</param>
13698 <returns>The WearableType slot that the item is being worn in,
13699 or WearbleType.Invalid if it is not currently being worn</returns>
13700 </member> 12007 </member>
13701 <member name="M:OpenMetaverse.AppearanceManager.GetWearables"> 12008 <member name="E:OpenMetaverse.Logger.OnLogMessage">
13702 <summary> 12009 <summary>Triggered whenever a message is logged. If this is left
13703 Returns a copy of the agents currently worn wearables 12010 null, log messages will go to the console</summary>
13704 </summary>
13705 <returns>A copy of the agents currently worn wearables</returns>
13706 <remarks>Avoid calling this function multiple times as it will make
13707 a copy of all of the wearable data each time</remarks>
13708 </member> 12011 </member>
13709 <member name="M:OpenMetaverse.AppearanceManager.WearOutfit(System.Collections.Generic.List{OpenMetaverse.InventoryBase},System.Boolean)"> 12012 <member name="M:OpenMetaverse.Logger.Log(System.Object,OpenMetaverse.Helpers.LogLevel)">
13710 <summary> 12013 <summary>
13711 Calls either <seealso cref="M:OpenMetaverse.AppearanceManager.ReplaceOutfit(System.Collections.Generic.List{OpenMetaverse.InventoryItem})"/> or 12014 Send a log message to the logging engine
13712 <seealso cref="M:OpenMetaverse.AppearanceManager.AddToOutfit(OpenMetaverse.InventoryItem)"/> depending on the value of
13713 replaceItems
13714 </summary> 12015 </summary>
13715 <param name="wearables">List of wearable inventory items to add 12016 <param name="message">The log message</param>
13716 to the outfit or become a new outfit</param> 12017 <param name="level">The severity of the log entry</param>
13717 <param name="replaceItems">True to replace existing items with the
13718 new list of items, false to add these items to the existing outfit</param>
13719 </member> 12018 </member>
13720 <member name="M:OpenMetaverse.AppearanceManager.AddAttachments(System.Collections.Generic.List{OpenMetaverse.InventoryItem},System.Boolean)"> 12019 <member name="M:OpenMetaverse.Logger.Log(System.Object,OpenMetaverse.Helpers.LogLevel,OpenMetaverse.GridClient)">
13721 <summary> 12020 <summary>
13722 Adds a list of attachments to our agent 12021 Send a log message to the logging engine
13723 </summary> 12022 </summary>
13724 <param name="attachments">A List containing the attachments to add</param> 12023 <param name="message">The log message</param>
13725 <param name="removeExistingFirst">If true, tells simulator to remove existing attachment 12024 <param name="level">The severity of the log entry</param>
13726 first</param> 12025 <param name="client">Instance of the client</param>
13727 </member> 12026 </member>
13728 <member name="M:OpenMetaverse.AppearanceManager.Attach(OpenMetaverse.InventoryItem,OpenMetaverse.AttachmentPoint)"> 12027 <member name="M:OpenMetaverse.Logger.Log(System.Object,OpenMetaverse.Helpers.LogLevel,System.Exception)">
13729 <summary> 12028 <summary>
13730 Attach an item to our agent at a specific attach point 12029 Send a log message to the logging engine
13731 </summary> 12030 </summary>
13732 <param name="item">A <seealso cref="T:OpenMetaverse.InventoryItem"/> to attach</param> 12031 <param name="message">The log message</param>
13733 <param name="attachPoint">the <seealso cref="T:OpenMetaverse.AttachmentPoint"/> on the avatar 12032 <param name="level">The severity of the log entry</param>
13734 to attach the item to</param> 12033 <param name="exception">Exception that was raised</param>
13735 </member> 12034 </member>
13736 <member name="M:OpenMetaverse.AppearanceManager.Attach(OpenMetaverse.UUID,OpenMetaverse.UUID,System.String,System.String,OpenMetaverse.Permissions,System.UInt32,OpenMetaverse.AttachmentPoint)"> 12035 <member name="M:OpenMetaverse.Logger.Log(System.Object,OpenMetaverse.Helpers.LogLevel,OpenMetaverse.GridClient,System.Exception)">
13737 <summary> 12036 <summary>
13738 Attach an item to our agent specifying attachment details 12037 Send a log message to the logging engine
13739 </summary> 12038 </summary>
13740 <param name="itemID">The <seealso cref="T:OpenMetaverse.UUID"/> of the item to attach</param> 12039 <param name="message">The log message</param>
13741 <param name="ownerID">The <seealso cref="T:OpenMetaverse.UUID"/> attachments owner</param> 12040 <param name="level">The severity of the log entry</param>
13742 <param name="name">The name of the attachment</param> 12041 <param name="client">Instance of the client</param>
13743 <param name="description">The description of the attahment</param> 12042 <param name="exception">Exception that was raised</param>
13744 <param name="perms">The <seealso cref="T:OpenMetaverse.Permissions"/> to apply when attached</param>
13745 <param name="itemFlags">The <seealso cref="T:OpenMetaverse.InventoryItemFlags"/> of the attachment</param>
13746 <param name="attachPoint">The <seealso cref="T:OpenMetaverse.AttachmentPoint"/> on the agent
13747 to attach the item to</param>
13748 </member> 12043 </member>
13749 <member name="M:OpenMetaverse.AppearanceManager.Detach(OpenMetaverse.InventoryItem)"> 12044 <member name="M:OpenMetaverse.Logger.DebugLog(System.Object)">
13750 <summary> 12045 <summary>
13751 Detach an item from our agent using an <seealso cref="T:OpenMetaverse.InventoryItem"/> object 12046 If the library is compiled with DEBUG defined, an event will be
12047 fired if an <code>OnLogMessage</code> handler is registered and the
12048 message will be sent to the logging engine
13752 </summary> 12049 </summary>
13753 <param name="item">An <seealso cref="T:OpenMetaverse.InventoryItem"/> object</param> 12050 <param name="message">The message to log at the DEBUG level to the
12051 current logging engine</param>
13754 </member> 12052 </member>
13755 <member name="M:OpenMetaverse.AppearanceManager.Detach(OpenMetaverse.UUID)"> 12053 <member name="M:OpenMetaverse.Logger.DebugLog(System.Object,OpenMetaverse.GridClient)">
13756 <summary> 12054 <summary>
13757 Detach an item from our agent 12055 If the library is compiled with DEBUG defined and
12056 <code>GridClient.Settings.DEBUG</code> is true, an event will be
12057 fired if an <code>OnLogMessage</code> handler is registered and the
12058 message will be sent to the logging engine
13758 </summary> 12059 </summary>
13759 <param name="itemID">The inventory itemID of the item to detach</param> 12060 <param name="message">The message to log at the DEBUG level to the
12061 current logging engine</param>
12062 <param name="client">Instance of the client</param>
13760 </member> 12063 </member>
13761 <member name="M:OpenMetaverse.AppearanceManager.SendAgentIsNowWearing"> 12064 <member name="T:OpenMetaverse.LoginStatus">
13762 <summary> 12065 <summary>
13763 Inform the sim which wearables are part of our current outfit
13764 </summary> 12066 </summary>
13765 </member> 12067 </member>
13766 <member name="M:OpenMetaverse.AppearanceManager.ReplaceOutfit(System.Collections.Generic.List{OpenMetaverse.InventoryWearable})"> 12068 <member name="F:OpenMetaverse.LoginStatus.Failed">
13767 <summary> 12069 <summary>
13768 Replaces the Wearables collection with a list of new wearable items
13769 </summary> 12070 </summary>
13770 <param name="wearableItems">Wearable items to replace the Wearables collection with</param>
13771 </member> 12071 </member>
13772 <member name="M:OpenMetaverse.AppearanceManager.GetColorFromParams(System.Collections.Generic.List{OpenMetaverse.AppearanceManager.ColorParamInfo})"> 12072 <member name="F:OpenMetaverse.LoginStatus.None">
13773 <summary> 12073 <summary>
13774 Calculates base color/tint for a specific wearable
13775 based on its params
13776 </summary> 12074 </summary>
13777 <param name="param">All the color info gathered from wearable's VisualParams
13778 passed as list of ColorParamInfo tuples</param>
13779 <returns>Base color/tint for the wearable</returns>
13780 </member> 12075 </member>
13781 <member name="M:OpenMetaverse.AppearanceManager.GetAgentWearables"> 12076 <member name="F:OpenMetaverse.LoginStatus.ConnectingToLogin">
13782 <summary> 12077 <summary>
13783 Blocking method to populate the Wearables dictionary
13784 </summary> 12078 </summary>
13785 <returns>True on success, otherwise false</returns>
13786 </member> 12079 </member>
13787 <member name="M:OpenMetaverse.AppearanceManager.GetCachedBakes"> 12080 <member name="F:OpenMetaverse.LoginStatus.ReadingResponse">
13788 <summary> 12081 <summary>
13789 Blocking method to populate the Textures array with cached bakes
13790 </summary> 12082 </summary>
13791 <returns>True on success, otherwise false</returns>
13792 </member> 12083 </member>
13793 <member name="M:OpenMetaverse.AppearanceManager.DecodeWearableParams(OpenMetaverse.AppearanceManager.WearableData)"> 12084 <member name="F:OpenMetaverse.LoginStatus.ConnectingToSim">
13794 <summary> 12085 <summary>
13795 Populates textures and visual params from a decoded asset
13796 </summary> 12086 </summary>
13797 <param name="wearable">Wearable to decode</param>
13798 </member> 12087 </member>
13799 <member name="M:OpenMetaverse.AppearanceManager.DownloadWearables"> 12088 <member name="F:OpenMetaverse.LoginStatus.Redirecting">
13800 <summary> 12089 <summary>
13801 Blocking method to download and parse currently worn wearable assets
13802 </summary> 12090 </summary>
13803 <returns>True on success, otherwise false</returns>
13804 </member> 12091 </member>
13805 <member name="M:OpenMetaverse.AppearanceManager.GetTextureDownloadList(OpenMetaverse.BakeType)"> 12092 <member name="F:OpenMetaverse.LoginStatus.Success">
13806 <summary> 12093 <summary>
13807 Get a list of all of the textures that need to be downloaded for a
13808 single bake layer
13809 </summary> 12094 </summary>
13810 <param name="bakeType">Bake layer to get texture AssetIDs for</param>
13811 <returns>A list of texture AssetIDs to download</returns>
13812 </member> 12095 </member>
13813 <member name="M:OpenMetaverse.AppearanceManager.AddTextureDownload(OpenMetaverse.AvatarTextureIndex,System.Collections.Generic.List{OpenMetaverse.UUID})"> 12096 <member name="T:OpenMetaverse.LoginParams">
13814 <summary> 12097 <summary>
13815 Helper method to lookup the TextureID for a single layer and add it 12098 Login Request Parameters
13816 to a list if it is not already present
13817 </summary> 12099 </summary>
13818 <param name="index"></param>
13819 <param name="textures"></param>
13820 </member> 12100 </member>
13821 <member name="M:OpenMetaverse.AppearanceManager.DownloadTextures(System.Collections.Generic.List{OpenMetaverse.BakeType})"> 12101 <member name="M:OpenMetaverse.LoginParams.#ctor">
13822 <summary> 12102 <summary>
13823 Blocking method to download all of the textures needed for baking 12103 Default constuctor, initializes sane default values
13824 the given bake layers
13825 </summary> 12104 </summary>
13826 <param name="bakeLayers">A list of layers that need baking</param>
13827 <remarks>No return value is given because the baking will happen
13828 whether or not all textures are successfully downloaded</remarks>
13829 </member> 12105 </member>
13830 <member name="M:OpenMetaverse.AppearanceManager.CreateBakes"> 12106 <member name="M:OpenMetaverse.LoginParams.#ctor(OpenMetaverse.GridClient,System.String,System.String,System.String,System.String,System.String)">
13831 <summary> 12107 <summary>
13832 Blocking method to create and upload baked textures for all of the 12108 Instantiates new LoginParams object and fills in the values
13833 missing bakes
13834 </summary> 12109 </summary>
13835 <returns>True on success, otherwise false</returns> 12110 <param name="client">Instance of GridClient to read settings from</param>
12111 <param name="firstName">Login first name</param>
12112 <param name="lastName">Login last name</param>
12113 <param name="password">Password</param>
12114 <param name="channel">Login channnel (application name)</param>
12115 <param name="version">Client version, should be application name + version number</param>
13836 </member> 12116 </member>
13837 <member name="M:OpenMetaverse.AppearanceManager.CreateBake(OpenMetaverse.BakeType)"> 12117 <member name="M:OpenMetaverse.LoginParams.#ctor(OpenMetaverse.GridClient,System.String,System.String,System.String,System.String,System.String,System.String)">
13838 <summary> 12118 <summary>
13839 Blocking method to create and upload a baked texture for a single 12119 Instantiates new LoginParams object and fills in the values
13840 bake layer
13841 </summary> 12120 </summary>
13842 <param name="bakeType">Layer to bake</param> 12121 <param name="client">Instance of GridClient to read settings from</param>
13843 <returns>True on success, otherwise false</returns> 12122 <param name="firstName">Login first name</param>
12123 <param name="lastName">Login last name</param>
12124 <param name="password">Password</param>
12125 <param name="channel">Login channnel (application name)</param>
12126 <param name="version">Client version, should be application name + version number</param>
12127 <param name="loginURI">URI of the login server</param>
13844 </member> 12128 </member>
13845 <member name="M:OpenMetaverse.AppearanceManager.UploadBake(System.Byte[])"> 12129 <member name="F:OpenMetaverse.LoginParams.URI">
13846 <summary> 12130 <summary>The URL of the Login Server</summary>
13847 Blocking method to upload a baked texture
13848 </summary>
13849 <param name="textureData">Five channel JPEG2000 texture data to upload</param>
13850 <returns>UUID of the newly created asset on success, otherwise UUID.Zero</returns>
13851 </member> 12131 </member>
13852 <member name="M:OpenMetaverse.AppearanceManager.MakeParamValues"> 12132 <member name="F:OpenMetaverse.LoginParams.Timeout">
13853 <summary> 12133 <summary>The number of milliseconds to wait before a login is considered
13854 Creates a dictionary of visual param values from the downloaded wearables 12134 failed due to timeout</summary>
13855 </summary>
13856 <returns>A dictionary of visual param indices mapping to visual param
13857 values for our agent that can be fed to the Baker class</returns>
13858 </member> 12135 </member>
13859 <member name="M:OpenMetaverse.AppearanceManager.RequestAgentSetAppearance"> 12136 <member name="F:OpenMetaverse.LoginParams.MethodName">
13860 <summary> 12137 <summary>The request method</summary>
13861 Create an AgentSetAppearance packet from Wearables data and the 12138 <remarks>login_to_simulator is currently the only supported method</remarks>
13862 Textures array and send it
13863 </summary>
13864 </member> 12139 </member>
13865 <member name="M:OpenMetaverse.AppearanceManager.WearableTypeToAssetType(OpenMetaverse.WearableType)"> 12140 <member name="F:OpenMetaverse.LoginParams.FirstName">
13866 <summary> 12141 <summary>The Agents First name</summary>
13867 Converts a WearableType to a bodypart or clothing WearableType
13868 </summary>
13869 <param name="type">A WearableType</param>
13870 <returns>AssetType.Bodypart or AssetType.Clothing or AssetType.Unknown</returns>
13871 </member> 12142 </member>
13872 <member name="M:OpenMetaverse.AppearanceManager.BakeTypeToAgentTextureIndex(OpenMetaverse.BakeType)"> 12143 <member name="F:OpenMetaverse.LoginParams.LastName">
13873 <summary> 12144 <summary>The Agents Last name</summary>
13874 Converts a BakeType to the corresponding baked texture slot in AvatarTextureIndex
13875 </summary>
13876 <param name="index">A BakeType</param>
13877 <returns>The AvatarTextureIndex slot that holds the given BakeType</returns>
13878 </member> 12145 </member>
13879 <member name="M:OpenMetaverse.AppearanceManager.MorphLayerForBakeType(OpenMetaverse.BakeType)"> 12146 <member name="F:OpenMetaverse.LoginParams.Password">
13880 <summary> 12147 <summary>A md5 hashed password</summary>
13881 Gives the layer number that is used for morph mask 12148 <remarks>plaintext password will be automatically hashed</remarks>
13882 </summary>
13883 <param name="bakeType">>A BakeType</param>
13884 <returns>Which layer number as defined in BakeTypeToTextures is used for morph mask</returns>
13885 </member> 12149 </member>
13886 <member name="M:OpenMetaverse.AppearanceManager.BakeTypeToTextures(OpenMetaverse.BakeType)"> 12150 <member name="F:OpenMetaverse.LoginParams.Start">
13887 <summary> 12151 <summary>The agents starting location once logged in</summary>
13888 Converts a BakeType to a list of the texture slots that make up that bake 12152 <remarks>Either "last", "home", or a string encoded URI
13889 </summary> 12153 containing the simulator name and x/y/z coordinates e.g: uri:hooper&amp;128&amp;152&amp;17</remarks>
13890 <param name="bakeType">A BakeType</param>
13891 <returns>A list of texture slots that are inputs for the given bake</returns>
13892 </member> 12154 </member>
13893 <member name="E:OpenMetaverse.AppearanceManager.AgentWearablesReply"> 12155 <member name="F:OpenMetaverse.LoginParams.Channel">
13894 <summary>Triggered when an AgentWearablesUpdate packet is received, 12156 <summary>A string containing the client software channel information</summary>
13895 telling us what our avatar is currently wearing 12157 <example>Second Life Release</example>
13896 <see cref="M:OpenMetaverse.AppearanceManager.RequestAgentWearables"/> request.</summary>
13897 </member> 12158 </member>
13898 <member name="E:OpenMetaverse.AppearanceManager.CachedBakesReply"> 12159 <member name="F:OpenMetaverse.LoginParams.Version">
13899 <summary>Raised when an AgentCachedTextureResponse packet is 12160 <summary>The client software version information</summary>
13900 received, giving a list of cached bakes that were found on the 12161 <remarks>The official viewer uses: Second Life Release n.n.n.n
13901 simulator 12162 where n is replaced with the current version of the viewer</remarks>
13902 <seealso cref="M:OpenMetaverse.AppearanceManager.RequestCachedBakes"/> request.</summary>
13903 </member> 12163 </member>
13904 <member name="E:OpenMetaverse.AppearanceManager.AppearanceSet"> 12164 <member name="F:OpenMetaverse.LoginParams.Platform">
13905 <summary> 12165 <summary>A string containing the platform information the agent is running on</summary>
13906 Raised when appearance data is sent to the simulator, also indicates
13907 the main appearance thread is finished.
13908 </summary>
13909 <seealso cref="M:OpenMetaverse.AppearanceManager.RequestAgentSetAppearance"/> request.
13910 </member> 12166 </member>
13911 <member name="E:OpenMetaverse.AppearanceManager.RebakeAvatarRequested"> 12167 <member name="F:OpenMetaverse.LoginParams.MAC">
13912 <summary> 12168 <summary>A string hash of the network cards Mac Address</summary>
13913 Triggered when the simulator requests the agent rebake its appearance.
13914 </summary>
13915 <seealso cref="!:RebakeAvatarRequest"/>
13916 </member> 12169 </member>
13917 <member name="P:OpenMetaverse.AppearanceManager.ManagerBusy"> 12170 <member name="F:OpenMetaverse.LoginParams.ViewerDigest">
13918 <summary> 12171 <summary>Unknown or deprecated</summary>
13919 Returns true if AppearanceManager is busy and trying to set or change appearance will fail
13920 </summary>
13921 </member> 12172 </member>
13922 <member name="T:OpenMetaverse.AppearanceManager.WearableData"> 12173 <member name="F:OpenMetaverse.LoginParams.ID0">
13923 <summary> 12174 <summary>A string hash of the first disk drives ID used to identify this clients uniqueness</summary>
13924 Contains information about a wearable inventory item
13925 </summary>
13926 </member> 12175 </member>
13927 <member name="F:OpenMetaverse.AppearanceManager.WearableData.ItemID"> 12176 <member name="F:OpenMetaverse.LoginParams.UserAgent">
13928 <summary>Inventory ItemID of the wearable</summary> 12177 <summary>A string containing the viewers Software, this is not directly sent to the login server but
12178 instead is used to generate the Version string</summary>
13929 </member> 12179 </member>
13930 <member name="F:OpenMetaverse.AppearanceManager.WearableData.AssetID"> 12180 <member name="F:OpenMetaverse.LoginParams.Author">
13931 <summary>AssetID of the wearable asset</summary> 12181 <summary>A string representing the software creator. This is not directly sent to the login server but
12182 is used by the library to generate the Version information</summary>
13932 </member> 12183 </member>
13933 <member name="F:OpenMetaverse.AppearanceManager.WearableData.WearableType"> 12184 <member name="F:OpenMetaverse.LoginParams.AgreeToTos">
13934 <summary>WearableType of the wearable</summary> 12185 <summary>If true, this agent agrees to the Terms of Service of the grid its connecting to</summary>
13935 </member> 12186 </member>
13936 <member name="F:OpenMetaverse.AppearanceManager.WearableData.AssetType"> 12187 <member name="F:OpenMetaverse.LoginParams.ReadCritical">
13937 <summary>AssetType of the wearable</summary> 12188 <summary>Unknown</summary>
13938 </member> 12189 </member>
13939 <member name="F:OpenMetaverse.AppearanceManager.WearableData.Asset"> 12190 <member name="F:OpenMetaverse.LoginParams.Options">
13940 <summary>Asset data for the wearable</summary> 12191 <summary>An array of string sent to the login server to enable various options</summary>
13941 </member> 12192 </member>
13942 <member name="T:OpenMetaverse.AppearanceManager.ColorParamInfo"> 12193 <member name="F:OpenMetaverse.LoginParams.LoginID">
13943 <summary> 12194 <summary>A randomly generated ID to distinguish between login attempts. This value is only used
13944 Data collected from visual params for each wearable 12195 internally in the library and is never sent over the wire</summary>
13945 needed for the calculation of the color
13946 </summary>
13947 </member> 12196 </member>
13948 <member name="T:OpenMetaverse.AppearanceManager.TextureData"> 12197 <member name="T:OpenMetaverse.LoginResponseData">
13949 <summary> 12198 <summary>
13950 Holds a texture assetID and the data needed to bake this layer into 12199 The decoded data returned from the login server after a successful login
13951 an outfit texture. Used to keep track of currently worn textures
13952 and baking data
13953 </summary> 12200 </summary>
13954 </member> 12201 </member>
13955 <member name="F:OpenMetaverse.AppearanceManager.TextureData.TextureID"> 12202 <member name="F:OpenMetaverse.LoginResponseData.Login">
13956 <summary>A texture AssetID</summary> 12203 <summary>true, false, indeterminate</summary>
13957 </member>
13958 <member name="F:OpenMetaverse.AppearanceManager.TextureData.Texture">
13959 <summary>Asset data for the texture</summary>
13960 </member>
13961 <member name="F:OpenMetaverse.AppearanceManager.TextureData.AlphaMasks">
13962 <summary>Collection of alpha masks that needs applying</summary>
13963 </member> 12204 </member>
13964 <member name="F:OpenMetaverse.AppearanceManager.TextureData.Color"> 12205 <member name="F:OpenMetaverse.LoginResponseData.Message">
13965 <summary>Tint that should be applied to the texture</summary> 12206 <summary>Login message of the day</summary>
13966 </member> 12207 </member>
13967 <member name="F:OpenMetaverse.AppearanceManager.TextureData.TextureIndex"> 12208 <member name="F:OpenMetaverse.LoginResponseData.AgentAccess">
13968 <summary>Where on avatar does this texture belong</summary> 12209 <summary>M or PG, also agent_region_access and agent_access_max</summary>
13969 </member> 12210 </member>
13970 <member name="T:OpenMetaverse.AgentWearablesReplyEventArgs"> 12211 <member name="M:OpenMetaverse.LoginResponseData.Parse(OpenMetaverse.StructuredData.OSDMap)">
13971 <summary>Contains the Event data returned from the data server from an AgentWearablesRequest</summary> 12212 <summary>
12213 Parse LLSD Login Reply Data
12214 </summary>
12215 <param name="reply">An <seealso cref="T:OpenMetaverse.StructuredData.OSDMap" />
12216 contaning the login response data</param>
12217 <remarks>XML-RPC logins do not require this as XML-RPC.NET
12218 automatically populates the struct properly using attributes</remarks>
13972 </member> 12219 </member>
13973 <member name="M:OpenMetaverse.AgentWearablesReplyEventArgs.#ctor"> 12220 <member name="T:OpenMetaverse.NetworkManager">
13974 <summary>Construct a new instance of the AgentWearablesReplyEventArgs class</summary> 12221 <summary>
12222 Login Routines
12223 </summary>
12224 <summary>
12225 NetworkManager is responsible for managing the network layer of
12226 OpenMetaverse. It tracks all the server connections, serializes
12227 outgoing traffic and deserializes incoming traffic, and provides
12228 instances of delegates for network-related events.
12229 </summary>
13975 </member> 12230 </member>
13976 <member name="T:OpenMetaverse.AgentCachedBakesReplyEventArgs"> 12231 <member name="M:OpenMetaverse.NetworkManager.#ctor(OpenMetaverse.GridClient)">
13977 <summary>Contains the Event data returned from the data server from an AgentCachedTextureResponse</summary> 12232 <summary>
12233 Default constructor
12234 </summary>
12235 <param name="client">Reference to the GridClient object</param>
13978 </member> 12236 </member>
13979 <member name="M:OpenMetaverse.AgentCachedBakesReplyEventArgs.#ctor"> 12237 <member name="T:OpenMetaverse.NetworkManager.DisconnectType">
13980 <summary>Construct a new instance of the AgentCachedBakesReplyEventArgs class</summary> 12238 <summary>
12239 Explains why a simulator or the grid disconnected from us
12240 </summary>
13981 </member> 12241 </member>
13982 <member name="T:OpenMetaverse.AppearanceSetEventArgs"> 12242 <member name="F:OpenMetaverse.NetworkManager.DisconnectType.ClientInitiated">
13983 <summary>Contains the Event data returned from an AppearanceSetRequest</summary> 12243 <summary>The client requested the logout or simulator disconnect</summary>
13984 </member> 12244 </member>
13985 <member name="M:OpenMetaverse.AppearanceSetEventArgs.#ctor(System.Boolean)"> 12245 <member name="F:OpenMetaverse.NetworkManager.DisconnectType.ServerInitiated">
13986 <summary> 12246 <summary>The server notified us that it is disconnecting</summary>
13987 Triggered when appearance data is sent to the sim and
13988 the main appearance thread is done.</summary>
13989 <param name="success">Indicates whether appearance setting was successful</param>
13990 </member> 12247 </member>
13991 <member name="P:OpenMetaverse.AppearanceSetEventArgs.Success"> 12248 <member name="F:OpenMetaverse.NetworkManager.DisconnectType.NetworkTimeout">
13992 <summary>Indicates whether appearance setting was successful</summary> 12249 <summary>Either a socket was closed or network traffic timed out</summary>
13993 </member> 12250 </member>
13994 <member name="T:OpenMetaverse.RebakeAvatarTexturesEventArgs"> 12251 <member name="F:OpenMetaverse.NetworkManager.DisconnectType.SimShutdown">
13995 <summary>Contains the Event data returned from the data server from an RebakeAvatarTextures</summary> 12252 <summary>The last active simulator shut down</summary>
13996 </member> 12253 </member>
13997 <member name="M:OpenMetaverse.RebakeAvatarTexturesEventArgs.#ctor(OpenMetaverse.UUID)"> 12254 <member name="T:OpenMetaverse.NetworkManager.IncomingPacket">
13998 <summary> 12255 <summary>
13999 Triggered when the simulator sends a request for this agent to rebake 12256 Holds a simulator reference and a decoded packet, these structs are put in
14000 its appearance 12257 the packet inbox for event handling
14001 </summary> 12258 </summary>
14002 <param name="textureID">The ID of the Texture Layer to bake</param>
14003 </member> 12259 </member>
14004 <member name="P:OpenMetaverse.RebakeAvatarTexturesEventArgs.TextureID"> 12260 <member name="F:OpenMetaverse.NetworkManager.IncomingPacket.Simulator">
14005 <summary>The ID of the Texture Layer to bake</summary> 12261 <summary>Reference to the simulator that this packet came from</summary>
14006 </member> 12262 </member>
14007 <member name="T:OpenMetaverse.TextureRequestState"> 12263 <member name="F:OpenMetaverse.NetworkManager.IncomingPacket.Packet">
12264 <summary>Packet that needs to be processed</summary>
12265 </member>
12266 <member name="T:OpenMetaverse.NetworkManager.OutgoingPacket">
14008 <summary> 12267 <summary>
14009 The current status of a texture request as it moves through the pipeline or final result of a texture request. 12268 Holds a simulator reference and a serialized packet, these structs are put in
12269 the packet outbox for sending
14010 </summary> 12270 </summary>
14011 </member> 12271 </member>
14012 <member name="F:OpenMetaverse.TextureRequestState.Pending"> 12272 <member name="F:OpenMetaverse.NetworkManager.OutgoingPacket.Simulator">
14013 <summary>The initial state given to a request. Requests in this state 12273 <summary>Reference to the simulator this packet is destined for</summary>
14014 are waiting for an available slot in the pipeline</summary>
14015 </member>
14016 <member name="F:OpenMetaverse.TextureRequestState.Started">
14017 <summary>A request that has been added to the pipeline and the request packet
14018 has been sent to the simulator</summary>
14019 </member>
14020 <member name="F:OpenMetaverse.TextureRequestState.Progress">
14021 <summary>A request that has received one or more packets back from the simulator</summary>
14022 </member> 12274 </member>
14023 <member name="F:OpenMetaverse.TextureRequestState.Finished"> 12275 <member name="F:OpenMetaverse.NetworkManager.OutgoingPacket.Buffer">
14024 <summary>A request that has received all packets back from the simulator</summary> 12276 <summary>Packet that needs to be sent</summary>
14025 </member> 12277 </member>
14026 <member name="F:OpenMetaverse.TextureRequestState.Timeout"> 12278 <member name="F:OpenMetaverse.NetworkManager.OutgoingPacket.SequenceNumber">
14027 <summary>A request that has taken longer than <seealso cref="F:OpenMetaverse.Settings.PIPELINE_REQUEST_TIMEOUT"/> 12279 <summary>Sequence number of the wrapped packet</summary>
14028 to download OR the initial packet containing the packet information was never received</summary>
14029 </member> 12280 </member>
14030 <member name="F:OpenMetaverse.TextureRequestState.Aborted"> 12281 <member name="F:OpenMetaverse.NetworkManager.OutgoingPacket.ResendCount">
14031 <summary>The texture request was aborted by request of the agent</summary> 12282 <summary>Number of times this packet has been resent</summary>
14032 </member> 12283 </member>
14033 <member name="F:OpenMetaverse.TextureRequestState.NotFound"> 12284 <member name="F:OpenMetaverse.NetworkManager.OutgoingPacket.TickCount">
14034 <summary>The simulator replied to the request that it was not able to find the requested texture</summary> 12285 <summary>Environment.TickCount when this packet was last sent over the wire</summary>
14035 </member> 12286 </member>
14036 <member name="T:OpenMetaverse.TextureDownloadCallback"> 12287 <member name="F:OpenMetaverse.NetworkManager.OutgoingPacket.Type">
14037 <summary> 12288 <summary>Type of the packet</summary>
14038 A callback fired to indicate the status or final state of the requested texture. For progressive
14039 downloads this will fire each time new asset data is returned from the simulator.
14040 </summary>
14041 <param name="state">The <see cref="T:OpenMetaverse.TextureRequestState"/> indicating either Progress for textures not fully downloaded,
14042 or the final result of the request after it has been processed through the TexturePipeline</param>
14043 <param name="assetTexture">The <see cref="T:OpenMetaverse.Assets.AssetTexture"/> object containing the Assets ID, raw data
14044 and other information. For progressive rendering the <see cref="F:OpenMetaverse.Assets.Asset.AssetData"/> will contain
14045 the data from the beginning of the file. For failed, aborted and timed out requests it will contain
14046 an empty byte array.</param>
14047 </member> 12289 </member>
14048 <member name="T:OpenMetaverse.TexturePipeline"> 12290 <member name="T:OpenMetaverse.NetworkManager.LoginResponseCallback">
14049 <summary> 12291 <summary>
14050 Texture request download handler, allows a configurable number of download slots which manage multiple
14051 concurrent texture downloads from the <seealso cref="T:OpenMetaverse.Simulator"/>
14052 </summary> 12292 </summary>
14053 <remarks>This class makes full use of the internal <seealso cref="!:TextureCache"/> 12293 <param name="loginSuccess">
14054 system for full texture downloads.</remarks> 12294 </param>
14055 </member> 12295 <param name="redirect">
14056 <member name="F:OpenMetaverse.TexturePipeline._Transfers"> 12296 </param>
14057 <summary>A dictionary containing all pending and in-process transfer requests where the Key is both the RequestID 12297 <param name="replyData">
14058 and also the Asset Texture ID, and the value is an object containing the current state of the request and also 12298 </param>
14059 the asset data as it is being re-assembled</summary> 12299 <param name="message">
12300 </param>
12301 <param name="reason">
12302 </param>
14060 </member> 12303 </member>
14061 <member name="F:OpenMetaverse.TexturePipeline._Client"> 12304 <member name="F:OpenMetaverse.NetworkManager.m_LoginProgress">
14062 <summary>Holds the reference to the <see cref="T:OpenMetaverse.GridClient"/> client object</summary> 12305 <summary>The event subscribers, null of no subscribers</summary>
14063 </member> 12306 </member>
14064 <member name="F:OpenMetaverse.TexturePipeline.maxTextureRequests"> 12307 <member name="F:OpenMetaverse.NetworkManager.m_LoginProgressLock">
14065 <summary>Maximum concurrent texture requests allowed at a time</summary> 12308 <summary>Thread sync lock object</summary>
14066 </member> 12309 </member>
14067 <member name="F:OpenMetaverse.TexturePipeline.resetEvents"> 12310 <member name="F:OpenMetaverse.NetworkManager.LoginSeedCapability">
14068 <summary>An array of <see cref="T:System.Threading.AutoResetEvent"/> objects used to manage worker request threads</summary> 12311 <summary>Seed CAPS URL returned from the login server</summary>
14069 </member> 12312 </member>
14070 <member name="F:OpenMetaverse.TexturePipeline.threadpoolSlots"> 12313 <member name="F:OpenMetaverse.NetworkManager.MaxAgentGroups">
14071 <summary>An array of worker slots which shows the availablity status of the slot</summary> 12314 <summary>Maximum number of groups an agent can belong to, -1 for unlimited</summary>
14072 </member> 12315 </member>
14073 <member name="F:OpenMetaverse.TexturePipeline.downloadMaster"> 12316 <member name="F:OpenMetaverse.NetworkManager.XMPPHost">
14074 <summary>The primary thread which manages the requests.</summary> 12317 <summary>XMPP server to connect to for Group chat and IM services</summary>
14075 </member> 12318 </member>
14076 <member name="F:OpenMetaverse.TexturePipeline._Running"> 12319 <member name="F:OpenMetaverse.NetworkManager.UDPBlacklist">
14077 <summary>true if the TexturePipeline is currently running</summary> 12320 <summary>A list of packets obtained during the login process which
12321 networkmanager will log but not process</summary>
14078 </member> 12322 </member>
14079 <member name="F:OpenMetaverse.TexturePipeline.lockerObject"> 12323 <member name="F:OpenMetaverse.NetworkManager.m_PacketSent">
14080 <summary>A synchronization object used by the primary thread</summary> 12324 <summary>The event subscribers, null of no subscribers</summary>
14081 </member> 12325 </member>
14082 <member name="F:OpenMetaverse.TexturePipeline.RefreshDownloadsTimer"> 12326 <member name="F:OpenMetaverse.NetworkManager.m_PacketSentLock">
14083 <summary>A refresh timer used to increase the priority of stalled requests</summary> 12327 <summary>Thread sync lock object</summary>
14084 </member> 12328 </member>
14085 <member name="M:OpenMetaverse.TexturePipeline.#ctor(OpenMetaverse.GridClient)"> 12329 <member name="F:OpenMetaverse.NetworkManager.m_LoggedOut">
14086 <summary> 12330 <summary>The event subscribers, null of no subscribers</summary>
14087 Default constructor, Instantiates a new copy of the TexturePipeline class
14088 </summary>
14089 <param name="client">Reference to the instantiated <see cref="T:OpenMetaverse.GridClient"/> object</param>
14090 </member> 12331 </member>
14091 <member name="M:OpenMetaverse.TexturePipeline.Startup"> 12332 <member name="F:OpenMetaverse.NetworkManager.m_LoggedOutLock">
14092 <summary> 12333 <summary>Thread sync lock object</summary>
14093 Initialize callbacks required for the TexturePipeline to operate
14094 </summary>
14095 </member> 12334 </member>
14096 <member name="M:OpenMetaverse.TexturePipeline.Shutdown"> 12335 <member name="F:OpenMetaverse.NetworkManager.m_SimConnecting">
14097 <summary> 12336 <summary>The event subscribers, null of no subscribers</summary>
14098 Shutdown the TexturePipeline and cleanup any callbacks or transfers
14099 </summary>
14100 </member> 12337 </member>
14101 <member name="M:OpenMetaverse.TexturePipeline.RequestTexture(OpenMetaverse.UUID,OpenMetaverse.ImageType,System.Single,System.Int32,System.UInt32,OpenMetaverse.TextureDownloadCallback,System.Boolean)"> 12338 <member name="F:OpenMetaverse.NetworkManager.m_SimConnectingLock">
14102 <summary> 12339 <summary>Thread sync lock object</summary>
14103 Request a texture asset from the simulator using the <see cref="T:OpenMetaverse.TexturePipeline"/> system to
14104 manage the requests and re-assemble the image from the packets received from the simulator
14105 </summary>
14106 <param name="textureID">The <see cref="T:OpenMetaverse.UUID"/> of the texture asset to download</param>
14107 <param name="imageType">The <see cref="T:OpenMetaverse.ImageType"/> of the texture asset.
14108 Use <see cref="F:OpenMetaverse.ImageType.Normal"/> for most textures, or <see cref="F:OpenMetaverse.ImageType.Baked"/> for baked layer texture assets</param>
14109 <param name="priority">A float indicating the requested priority for the transfer. Higher priority values tell the simulator
14110 to prioritize the request before lower valued requests. An image already being transferred using the <see cref="T:OpenMetaverse.TexturePipeline"/> can have
14111 its priority changed by resending the request with the new priority value</param>
14112 <param name="discardLevel">Number of quality layers to discard.
14113 This controls the end marker of the data sent</param>
14114 <param name="packetStart">The packet number to begin the request at. A value of 0 begins the request
14115 from the start of the asset texture</param>
14116 <param name="callback">The <see cref="T:OpenMetaverse.TextureDownloadCallback"/> callback to fire when the image is retrieved. The callback
14117 will contain the result of the request and the texture asset data</param>
14118 <param name="progressive">If true, the callback will be fired for each chunk of the downloaded image.
14119 The callback asset parameter will contain all previously received chunks of the texture asset starting
14120 from the beginning of the request</param>
14121 </member> 12340 </member>
14122 <member name="M:OpenMetaverse.TexturePipeline.RequestImage(OpenMetaverse.UUID,OpenMetaverse.ImageType,System.Single,System.Int32,System.UInt32)"> 12341 <member name="F:OpenMetaverse.NetworkManager.m_SimConnected">
14123 <summary> 12342 <summary>The event subscribers, null of no subscribers</summary>
14124 Sends the actual request packet to the simulator
14125 </summary>
14126 <param name="imageID">The image to download</param>
14127 <param name="type">Type of the image to download, either a baked
14128 avatar texture or a normal texture</param>
14129 <param name="priority">Priority level of the download. Default is
14130 <c>1,013,000.0f</c></param>
14131 <param name="discardLevel">Number of quality layers to discard.
14132 This controls the end marker of the data sent</param>
14133 <param name="packetNum">Packet number to start the download at.
14134 This controls the start marker of the data sent</param>
14135 <remarks>Sending a priority of 0 and a discardlevel of -1 aborts
14136 download</remarks>
14137 </member> 12343 </member>
14138 <member name="M:OpenMetaverse.TexturePipeline.AbortTextureRequest(OpenMetaverse.UUID)"> 12344 <member name="F:OpenMetaverse.NetworkManager.m_SimConnectedLock">
14139 <summary> 12345 <summary>Thread sync lock object</summary>
14140 Cancel a pending or in process texture request
14141 </summary>
14142 <param name="textureID">The texture assets unique ID</param>
14143 </member> 12346 </member>
14144 <member name="M:OpenMetaverse.TexturePipeline.DownloadThread"> 12347 <member name="F:OpenMetaverse.NetworkManager.m_SimDisconnected">
14145 <summary> 12348 <summary>The event subscribers, null of no subscribers</summary>
14146 Master Download Thread, Queues up downloads in the threadpool
14147 </summary>
14148 </member> 12349 </member>
14149 <member name="M:OpenMetaverse.TexturePipeline.TextureRequestDoWork(System.Object)"> 12350 <member name="F:OpenMetaverse.NetworkManager.m_SimDisconnectedLock">
14150 <summary> 12351 <summary>Thread sync lock object</summary>
14151 The worker thread that sends the request and handles timeouts
14152 </summary>
14153 <param name="threadContext">A <see cref="T:OpenMetaverse.TexturePipeline.TaskInfo"/> object containing the request details</param>
14154 </member> 12352 </member>
14155 <member name="M:OpenMetaverse.TexturePipeline.ImageNotInDatabaseHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)"> 12353 <member name="F:OpenMetaverse.NetworkManager.m_Disconnected">
14156 <summary> 12354 <summary>The event subscribers, null of no subscribers</summary>
14157 Handle responses from the simulator that tell us a texture we have requested is unable to be located
14158 or no longer exists. This will remove the request from the pipeline and free up a slot if one is in use
14159 </summary>
14160 <param name="sender">The sender</param>
14161 <param name="e">The EventArgs object containing the packet data</param>
14162 </member> 12355 </member>
14163 <member name="M:OpenMetaverse.TexturePipeline.ImagePacketHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)"> 12356 <member name="F:OpenMetaverse.NetworkManager.m_DisconnectedLock">
14164 <summary> 12357 <summary>Thread sync lock object</summary>
14165 Handles the remaining Image data that did not fit in the initial ImageData packet
14166 </summary>
14167 <param name="sender">The sender</param>
14168 <param name="e">The EventArgs object containing the packet data</param>
14169 </member> 12358 </member>
14170 <member name="M:OpenMetaverse.TexturePipeline.ImageDataHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)"> 12359 <member name="F:OpenMetaverse.NetworkManager.m_SimChanged">
14171 <summary> 12360 <summary>The event subscribers, null of no subscribers</summary>
14172 Handle the initial ImageDataPacket sent from the simulator
14173 </summary>
14174 <param name="sender">The sender</param>
14175 <param name="e">The EventArgs object containing the packet data</param>
14176 </member> 12361 </member>
14177 <member name="P:OpenMetaverse.TexturePipeline.TransferCount"> 12362 <member name="F:OpenMetaverse.NetworkManager.m_SimChangedLock">
14178 <summary>Current number of pending and in-process transfers</summary> 12363 <summary>Thread sync lock object</summary>
14179 </member> 12364 </member>
14180 <member name="T:OpenMetaverse.TexturePipeline.TaskInfo"> 12365 <member name="F:OpenMetaverse.NetworkManager.m_EventQueueRunning">
14181 <summary> 12366 <summary>The event subscribers, null of no subscribers</summary>
14182 A request task containing information and status of a request as it is processed through the <see cref="T:OpenMetaverse.TexturePipeline"/>
14183 </summary>
14184 </member> 12367 </member>
14185 <member name="F:OpenMetaverse.TexturePipeline.TaskInfo.State"> 12368 <member name="F:OpenMetaverse.NetworkManager.m_EventQueueRunningLock">
14186 <summary>The current <seealso cref="T:OpenMetaverse.TextureRequestState"/> which identifies the current status of the request</summary> 12369 <summary>Thread sync lock object</summary>
14187 </member> 12370 </member>
14188 <member name="F:OpenMetaverse.TexturePipeline.TaskInfo.RequestID"> 12371 <member name="F:OpenMetaverse.NetworkManager.Simulators">
14189 <summary>The Unique Request ID, This is also the Asset ID of the texture being requested</summary> 12372 <summary>All of the simulators we are currently connected to</summary>
14190 </member> 12373 </member>
14191 <member name="F:OpenMetaverse.TexturePipeline.TaskInfo.RequestSlot"> 12374 <member name="F:OpenMetaverse.NetworkManager.CapsEvents">
14192 <summary>The slot this request is occupying in the threadpoolSlots array</summary> 12375 <summary>Handlers for incoming capability events</summary>
14193 </member> 12376 </member>
14194 <member name="F:OpenMetaverse.TexturePipeline.TaskInfo.Type"> 12377 <member name="F:OpenMetaverse.NetworkManager.PacketEvents">
14195 <summary>The ImageType of the request.</summary> 12378 <summary>Handlers for incoming packets</summary>
14196 </member> 12379 </member>
14197 <member name="F:OpenMetaverse.TexturePipeline.TaskInfo.Callbacks"> 12380 <member name="F:OpenMetaverse.NetworkManager.PacketInbox">
14198 <summary>The callback to fire when the request is complete, will include 12381 <summary>Incoming packets that are awaiting handling</summary>
14199 the <seealso cref="T:OpenMetaverse.TextureRequestState"/> and the <see cref="T:OpenMetaverse.Assets.AssetTexture"/>
14200 object containing the result data</summary>
14201 </member> 12382 </member>
14202 <member name="F:OpenMetaverse.TexturePipeline.TaskInfo.ReportProgress"> 12383 <member name="F:OpenMetaverse.NetworkManager.PacketOutbox">
14203 <summary>If true, indicates the callback will be fired whenever new data is returned from the simulator. 12384 <summary>Outgoing packets that are awaiting handling</summary>
14204 This is used to progressively render textures as portions of the texture are received.</summary>
14205 </member> 12385 </member>
14206 <member name="F:OpenMetaverse.TexturePipeline.TaskInfo.Transfer"> 12386 <member name="E:OpenMetaverse.NetworkManager.LoginProgress">
14207 <summary>An object that maintains the data of an request thats in-process.</summary> 12387 <summary>Raised when the simulator sends us data containing
12388 ...</summary>
14208 </member> 12389 </member>
14209 <member name="T:OpenMetaverse.BitPack"> 12390 <member name="E:OpenMetaverse.NetworkManager.OnLoginResponse">
14210 <summary> 12391 <summary>Called when a reply is received from the login server, the
14211 Wrapper around a byte array that allows bit to be packed and unpacked 12392 login sequence will block until this event returns</summary>
14212 one at a time or by a variable amount. Useful for very tightly packed
14213 data like LayerData packets
14214 </summary>
14215 </member> 12393 </member>
14216 <member name="F:OpenMetaverse.BitPack.Data"> 12394 <member name="E:OpenMetaverse.NetworkManager.PacketSent">
14217 <summary></summary> 12395 <summary>Raised when the simulator sends us data containing
12396 ...</summary>
14218 </member> 12397 </member>
14219 <member name="M:OpenMetaverse.BitPack.#ctor(System.Byte[],System.Int32)"> 12398 <member name="E:OpenMetaverse.NetworkManager.LoggedOut">
14220 <summary> 12399 <summary>Raised when the simulator sends us data containing
14221 Default constructor, initialize the bit packer / bit unpacker 12400 ...</summary>
14222 with a byte array and starting position
14223 </summary>
14224 <param name="data">Byte array to pack bits in to or unpack from</param>
14225 <param name="pos">Starting position in the byte array</param>
14226 </member> 12401 </member>
14227 <member name="M:OpenMetaverse.BitPack.PackFloat(System.Single)"> 12402 <member name="E:OpenMetaverse.NetworkManager.SimConnecting">
14228 <summary> 12403 <summary>Raised when the simulator sends us data containing
14229 Pack a floating point value in to the data 12404 ...</summary>
14230 </summary>
14231 <param name="data">Floating point value to pack</param>
14232 </member> 12405 </member>
14233 <member name="M:OpenMetaverse.BitPack.PackBits(System.Int32,System.Int32)"> 12406 <member name="E:OpenMetaverse.NetworkManager.SimConnected">
14234 <summary> 12407 <summary>Raised when the simulator sends us data containing
14235 Pack part or all of an integer in to the data 12408 ...</summary>
14236 </summary>
14237 <param name="data">Integer containing the data to pack</param>
14238 <param name="totalCount">Number of bits of the integer to pack</param>
14239 </member> 12409 </member>
14240 <member name="M:OpenMetaverse.BitPack.PackBits(System.UInt32,System.Int32)"> 12410 <member name="E:OpenMetaverse.NetworkManager.SimDisconnected">
14241 <summary> 12411 <summary>Raised when the simulator sends us data containing
14242 Pack part or all of an unsigned integer in to the data 12412 ...</summary>
14243 </summary>
14244 <param name="data">Unsigned integer containing the data to pack</param>
14245 <param name="totalCount">Number of bits of the integer to pack</param>
14246 </member> 12413 </member>
14247 <member name="M:OpenMetaverse.BitPack.PackBit(System.Boolean)"> 12414 <member name="E:OpenMetaverse.NetworkManager.Disconnected">
14248 <summary> 12415 <summary>Raised when the simulator sends us data containing
14249 Pack a single bit in to the data 12416 ...</summary>
14250 </summary>
14251 <param name="bit">Bit to pack</param>
14252 </member> 12417 </member>
14253 <member name="M:OpenMetaverse.BitPack.PackFixed(System.Single,System.Boolean,System.Int32,System.Int32)"> 12418 <member name="E:OpenMetaverse.NetworkManager.SimChanged">
14254 <summary> 12419 <summary>Raised when the simulator sends us data containing
14255 12420 ...</summary>
14256 </summary>
14257 <param name="data"></param>
14258 <param name="isSigned"></param>
14259 <param name="intBits"></param>
14260 <param name="fracBits"></param>
14261 </member> 12421 </member>
14262 <member name="M:OpenMetaverse.BitPack.PackUUID(OpenMetaverse.UUID)"> 12422 <member name="E:OpenMetaverse.NetworkManager.EventQueueRunning">
14263 <summary> 12423 <summary>Raised when the simulator sends us data containing
14264 12424 ...</summary>
14265 </summary>
14266 <param name="data"></param>
14267 </member> 12425 </member>
14268 <member name="M:OpenMetaverse.BitPack.PackColor(OpenMetaverse.Color4)"> 12426 <member name="P:OpenMetaverse.NetworkManager.LoginStatusCode">
14269 <summary> 12427 <summary>Current state of logging in</summary>
14270
14271 </summary>
14272 <param name="data"></param>
14273 </member> 12428 </member>
14274 <member name="M:OpenMetaverse.BitPack.UnpackFloat"> 12429 <member name="P:OpenMetaverse.NetworkManager.LoginErrorKey">
14275 <summary> 12430 <summary>Upon login failure, contains a short string key for the
14276 Unpacking a floating point value from the data 12431 type of login error that occurred</summary>
14277 </summary>
14278 <returns>Unpacked floating point value</returns>
14279 </member> 12432 </member>
14280 <member name="M:OpenMetaverse.BitPack.UnpackBits(System.Int32)"> 12433 <member name="P:OpenMetaverse.NetworkManager.RawLoginReply">
14281 <summary> 12434 <summary>The raw XML-RPC reply from the login server, exactly as it
14282 Unpack a variable number of bits from the data in to integer format 12435 was received (minus the HTTP header)</summary>
14283 </summary>
14284 <param name="totalCount">Number of bits to unpack</param>
14285 <returns>An integer containing the unpacked bits</returns>
14286 <remarks>This function is only useful up to 32 bits</remarks>
14287 </member> 12436 </member>
14288 <member name="M:OpenMetaverse.BitPack.UnpackUBits(System.Int32)"> 12437 <member name="P:OpenMetaverse.NetworkManager.LoginMessage">
14289 <summary> 12438 <summary>During login this contains a descriptive version of
14290 Unpack a variable number of bits from the data in to unsigned 12439 LoginStatusCode. After a successful login this will contain the
14291 integer format 12440 message of the day, and after a failed login a descriptive error
14292 </summary> 12441 message will be returned</summary>
14293 <param name="totalCount">Number of bits to unpack</param>
14294 <returns>An unsigned integer containing the unpacked bits</returns>
14295 <remarks>This function is only useful up to 32 bits</remarks>
14296 </member> 12442 </member>
14297 <member name="M:OpenMetaverse.BitPack.UnpackShort"> 12443 <member name="P:OpenMetaverse.NetworkManager.CircuitCode">
14298 <summary> 12444 <summary>Unique identifier associated with our connections to
14299 Unpack a 16-bit signed integer 12445 simulators</summary>
14300 </summary>
14301 <returns>16-bit signed integer</returns>
14302 </member> 12446 </member>
14303 <member name="M:OpenMetaverse.BitPack.UnpackUShort"> 12447 <member name="P:OpenMetaverse.NetworkManager.CurrentSim">
14304 <summary> 12448 <summary>The simulator that the logged in avatar is currently
14305 Unpack a 16-bit unsigned integer 12449 occupying</summary>
14306 </summary>
14307 <returns>16-bit unsigned integer</returns>
14308 </member> 12450 </member>
14309 <member name="M:OpenMetaverse.BitPack.UnpackInt"> 12451 <member name="P:OpenMetaverse.NetworkManager.Connected">
14310 <summary> 12452 <summary>Shows whether the network layer is logged in to the
14311 Unpack a 32-bit signed integer 12453 grid or not</summary>
14312 </summary>
14313 <returns>32-bit signed integer</returns>
14314 </member> 12454 </member>
14315 <member name="M:OpenMetaverse.BitPack.UnpackUInt"> 12455 <member name="P:OpenMetaverse.NetworkManager.InboxCount">
14316 <summary> 12456 <summary>Number of packets in the incoming queue</summary>
14317 Unpack a 32-bit unsigned integer
14318 </summary>
14319 <returns>32-bit unsigned integer</returns>
14320 </member> 12457 </member>
14321 <member name="P:OpenMetaverse.BitPack.BytePos"> 12458 <member name="P:OpenMetaverse.NetworkManager.OutboxCount">
14322 <summary></summary> 12459 <summary>Number of packets in the outgoing queue</summary>
14323 </member> 12460 </member>
14324 <member name="P:OpenMetaverse.BitPack.BitPos"> 12461 <member name="M:OpenMetaverse.NetworkManager.OnLoginProgress(OpenMetaverse.LoginProgressEventArgs)">
14325 <summary></summary> 12462 <summary>Raises the LoginProgress Event</summary>
12463 <param name="e">A LoginProgressEventArgs object containing
12464 the data sent from the simulator</param>
14326 </member> 12465 </member>
14327 <member name="T:OpenMetaverse.AssetCache"> 12466 <member name="M:OpenMetaverse.NetworkManager.DefaultLoginParams(System.String,System.String,System.String,System.String,System.String)">
14328 <summary> 12467 <summary>
14329 Class that handles the local asset cache 12468 Generate sane default values for a login request
14330 </summary> 12469 </summary>
12470 <param name="firstName">Account first name</param>
12471 <param name="lastName">Account last name</param>
12472 <param name="password">Account password</param>
12473 <param name="userAgent">Client application name</param>
12474 <param name="userVersion">Client application version</param>
12475 <returns>A populated <seealso cref="T:OpenMetaverse.LoginParams" /> struct containing
12476 sane defaults</returns>
14331 </member> 12477 </member>
14332 <member name="M:OpenMetaverse.AssetCache.#ctor(OpenMetaverse.GridClient)"> 12478 <member name="M:OpenMetaverse.NetworkManager.Login(System.String,System.String,System.String,System.String,System.String)">
14333 <summary> 12479 <summary>
14334 Default constructor 12480 Simplified login that takes the most common and required fields
14335 </summary> 12481 </summary>
14336 <param name="client">A reference to the GridClient object</param> 12482 <param name="firstName">Account first name</param>
12483 <param name="lastName">Account last name</param>
12484 <param name="password">Account password</param>
12485 <param name="userAgent">Client application name</param>
12486 <param name="userVersion">Client application version</param>
12487 <returns>Whether the login was successful or not. On failure the
12488 LoginErrorKey string will contain the error code and LoginMessage
12489 will contain a description of the error</returns>
14337 </member> 12490 </member>
14338 <member name="M:OpenMetaverse.AssetCache.DestroyTimer"> 12491 <member name="M:OpenMetaverse.NetworkManager.Login(System.String,System.String,System.String,System.String,System.String,System.String)">
14339 <summary> 12492 <summary>
14340 Disposes cleanup timer 12493 Simplified login that takes the most common fields along with a
12494 starting location URI, and can accept an MD5 string instead of a
12495 plaintext password
14341 </summary> 12496 </summary>
12497 <param name="firstName">Account first name</param>
12498 <param name="lastName">Account last name</param>
12499 <param name="password">Account password or MD5 hash of the password
12500 such as $1$1682a1e45e9f957dcdf0bb56eb43319c</param>
12501 <param name="userAgent">Client application name</param>
12502 <param name="start">Starting location URI that can be built with
12503 StartLocation()</param>
12504 <param name="userVersion">Client application version</param>
12505 <returns>Whether the login was successful or not. On failure the
12506 LoginErrorKey string will contain the error code and LoginMessage
12507 will contain a description of the error</returns>
14342 </member> 12508 </member>
14343 <member name="M:OpenMetaverse.AssetCache.SetupTimer"> 12509 <member name="M:OpenMetaverse.NetworkManager.Login(OpenMetaverse.LoginParams)">
14344 <summary> 12510 <summary>
14345 Only create timer when needed 12511 Login that takes a struct of all the values that will be passed to
12512 the login server
14346 </summary> 12513 </summary>
12514 <param name="loginParams">The values that will be passed to the login
12515 server, all fields must be set even if they are String.Empty</param>
12516 <returns>Whether the login was successful or not. On failure the
12517 LoginErrorKey string will contain the error code and LoginMessage
12518 will contain a description of the error</returns>
14347 </member> 12519 </member>
14348 <member name="M:OpenMetaverse.AssetCache.GetCachedAssetBytes(OpenMetaverse.UUID)"> 12520 <member name="M:OpenMetaverse.NetworkManager.StartLocation(System.String,System.Int32,System.Int32,System.Int32)">
14349 <summary> 12521 <summary>
14350 Return bytes read from the local asset cache, null if it does not exist 12522 Build a start location URI for passing to the Login function
14351 </summary> 12523 </summary>
14352 <param name="assetID">UUID of the asset we want to get</param> 12524 <param name="sim">Name of the simulator to start in</param>
14353 <returns>Raw bytes of the asset, or null on failure</returns> 12525 <param name="x">X coordinate to start at</param>
12526 <param name="y">Y coordinate to start at</param>
12527 <param name="z">Z coordinate to start at</param>
12528 <returns>String with a URI that can be used to login to a specified
12529 location</returns>
14354 </member> 12530 </member>
14355 <member name="M:OpenMetaverse.AssetCache.GetCachedImage(OpenMetaverse.UUID)"> 12531 <member name="M:OpenMetaverse.NetworkManager.RemoteLoginHandler(OpenMetaverse.LoginResponseData,OpenMetaverse.LoginParams)">
14356 <summary> 12532 <summary>
14357 Returns ImageDownload object of the 12533 LoginParams and the initial login XmlRpcRequest were made on a remote machine.
14358 image from the local image cache, null if it does not exist 12534 This method now initializes libomv with the results.
14359 </summary> 12535 </summary>
14360 <param name="imageID">UUID of the image we want to get</param>
14361 <returns>ImageDownload object containing the image, or null on failure</returns>
14362 </member> 12536 </member>
14363 <member name="M:OpenMetaverse.AssetCache.FileName(OpenMetaverse.UUID)"> 12537 <member name="M:OpenMetaverse.NetworkManager.LoginReplyXmlRpcHandler(Nwc.XmlRpc.XmlRpcResponse,OpenMetaverse.LoginParams)">
14364 <summary> 12538 <summary>
14365 Constructs a file name of the cached asset 12539 Handles response from XML-RPC login replies
14366 </summary> 12540 </summary>
14367 <param name="assetID">UUID of the asset</param>
14368 <returns>String with the file name of the cahced asset</returns>
14369 </member> 12541 </member>
14370 <member name="M:OpenMetaverse.AssetCache.SaveAssetToCache(OpenMetaverse.UUID,System.Byte[])"> 12542 <member name="M:OpenMetaverse.NetworkManager.LoginReplyXmlRpcHandler(OpenMetaverse.LoginResponseData,OpenMetaverse.LoginParams)">
14371 <summary> 12543 <summary>
14372 Saves an asset to the local cache 12544 Handles response from XML-RPC login replies with already parsed LoginResponseData
14373 </summary> 12545 </summary>
14374 <param name="assetID">UUID of the asset</param>
14375 <param name="assetData">Raw bytes the asset consists of</param>
14376 <returns>Weather the operation was successfull</returns>
14377 </member> 12546 </member>
14378 <member name="M:OpenMetaverse.AssetCache.AssetFileName(OpenMetaverse.UUID)"> 12547 <member name="M:OpenMetaverse.NetworkManager.LoginReplyLLSDHandler(OpenMetaverse.Http.CapsClient,OpenMetaverse.StructuredData.OSD,System.Exception)">
14379 <summary> 12548 <summary>
14380 Get the file name of the asset stored with gived UUID 12549 Handle response from LLSD login replies
14381 </summary> 12550 </summary>
14382 <param name="assetID">UUID of the asset</param> 12551 <param name="client">
14383 <returns>Null if we don't have that UUID cached on disk, file name if found in the cache folder</returns> 12552 </param>
12553 <param name="result">
12554 </param>
12555 <param name="error">
12556 </param>
14384 </member> 12557 </member>
14385 <member name="M:OpenMetaverse.AssetCache.HasAsset(OpenMetaverse.UUID)"> 12558 <member name="M:OpenMetaverse.NetworkManager.GetPlatform">
14386 <summary> 12559 <summary>
14387 Checks if the asset exists in the local cache 12560 Get current OS
14388 </summary> 12561 </summary>
14389 <param name="assetID">UUID of the asset</param> 12562 <returns>Either "Win" or "Linux"</returns>
14390 <returns>True is the asset is stored in the cache, otherwise false</returns>
14391 </member> 12563 </member>
14392 <member name="M:OpenMetaverse.AssetCache.Clear"> 12564 <member name="M:OpenMetaverse.NetworkManager.GetMAC">
14393 <summary> 12565 <summary>
14394 Wipes out entire cache 12566 Get clients default Mac Address
14395 </summary> 12567 </summary>
12568 <returns>A string containing the first found Mac Address</returns>
14396 </member> 12569 </member>
14397 <member name="M:OpenMetaverse.AssetCache.Prune"> 12570 <member name="M:OpenMetaverse.NetworkManager.OnPacketSent(OpenMetaverse.PacketSentEventArgs)">
14398 <summary> 12571 <summary>Raises the PacketSent Event</summary>
14399 Brings cache size to the 90% of the max size 12572 <param name="e">A PacketSentEventArgs object containing
14400 </summary> 12573 the data sent from the simulator</param>
14401 </member> 12574 </member>
14402 <member name="M:OpenMetaverse.AssetCache.BeginPrune"> 12575 <member name="M:OpenMetaverse.NetworkManager.OnLoggedOut(OpenMetaverse.LoggedOutEventArgs)">
14403 <summary> 12576 <summary>Raises the LoggedOut Event</summary>
14404 Asynchronously brings cache size to the 90% of the max size 12577 <param name="e">A LoggedOutEventArgs object containing
14405 </summary> 12578 the data sent from the simulator</param>
14406 </member> 12579 </member>
14407 <member name="M:OpenMetaverse.AssetCache.GetFileSize(System.IO.FileInfo[])"> 12580 <member name="M:OpenMetaverse.NetworkManager.OnSimConnecting(OpenMetaverse.SimConnectingEventArgs)">
14408 <summary> 12581 <summary>Raises the SimConnecting Event</summary>
14409 Adds up file sizes passes in a FileInfo array 12582 <param name="e">A SimConnectingEventArgs object containing
14410 </summary> 12583 the data sent from the simulator</param>
14411 </member> 12584 </member>
14412 <member name="M:OpenMetaverse.AssetCache.Operational"> 12585 <member name="M:OpenMetaverse.NetworkManager.OnSimConnected(OpenMetaverse.SimConnectedEventArgs)">
14413 <summary> 12586 <summary>Raises the SimConnected Event</summary>
14414 Checks whether caching is enabled 12587 <param name="e">A SimConnectedEventArgs object containing
14415 </summary> 12588 the data sent from the simulator</param>
14416 </member> 12589 </member>
14417 <member name="M:OpenMetaverse.AssetCache.cleanerTimer_Elapsed(System.Object,System.Timers.ElapsedEventArgs)"> 12590 <member name="M:OpenMetaverse.NetworkManager.OnSimDisconnected(OpenMetaverse.SimDisconnectedEventArgs)">
14418 <summary> 12591 <summary>Raises the SimDisconnected Event</summary>
14419 Periodically prune the cache 12592 <param name="e">A SimDisconnectedEventArgs object containing
14420 </summary> 12593 the data sent from the simulator</param>
14421 </member> 12594 </member>
14422 <member name="M:OpenMetaverse.AssetCache.NiceFileSize(System.Int64)"> 12595 <member name="M:OpenMetaverse.NetworkManager.OnDisconnected(OpenMetaverse.DisconnectedEventArgs)">
14423 <summary> 12596 <summary>Raises the Disconnected Event</summary>
14424 Nicely formats file sizes 12597 <param name="e">A DisconnectedEventArgs object containing
14425 </summary> 12598 the data sent from the simulator</param>
14426 <param name="byteCount">Byte size we want to output</param>
14427 <returns>String with humanly readable file size</returns>
14428 </member> 12599 </member>
14429 <member name="P:OpenMetaverse.AssetCache.AutoPruneEnabled"> 12600 <member name="M:OpenMetaverse.NetworkManager.OnSimChanged(OpenMetaverse.SimChangedEventArgs)">
14430 <summary> 12601 <summary>Raises the SimChanged Event</summary>
14431 Allows setting weather to periodicale prune the cache if it grows too big 12602 <param name="e">A SimChangedEventArgs object containing
14432 Default is enabled, when caching is enabled 12603 the data sent from the simulator</param>
14433 </summary>
14434 </member> 12604 </member>
14435 <member name="P:OpenMetaverse.AssetCache.AutoPruneInterval"> 12605 <member name="M:OpenMetaverse.NetworkManager.OnEventQueueRunning(OpenMetaverse.EventQueueRunningEventArgs)">
14436 <summary> 12606 <summary>Raises the EventQueueRunning Event</summary>
14437 How long (in ms) between cache checks (default is 5 min.) 12607 <param name="e">A EventQueueRunningEventArgs object containing
14438 </summary> 12608 the data sent from the simulator</param>
14439 </member> 12609 </member>
14440 <member name="T:OpenMetaverse.AssetCache.SortFilesByAccesTimeHelper"> 12610 <member name="M:OpenMetaverse.NetworkManager.RegisterCallback(OpenMetaverse.Packets.PacketType,System.EventHandler{OpenMetaverse.PacketReceivedEventArgs})">
14441 <summary> 12611 <summary>
14442 Helper class for sorting files by their last accessed time 12612 Register an event handler for a packet. This is a low level event
12613 interface and should only be used if you are doing something not
12614 supported in the library
14443 </summary> 12615 </summary>
12616 <param name="type">Packet type to trigger events for</param>
12617 <param name="callback">Callback to fire when a packet of this type
12618 is received</param>
14444 </member> 12619 </member>
14445 <member name="T:OpenMetaverse.Imaging.LoadTGAClass"> 12620 <member name="M:OpenMetaverse.NetworkManager.RegisterCallback(OpenMetaverse.Packets.PacketType,System.EventHandler{OpenMetaverse.PacketReceivedEventArgs},System.Boolean)">
14446 <summary> 12621 <summary>
14447 Capability to load TGAs to Bitmap 12622 Register an event handler for a packet. This is a low level event
12623 interface and should only be used if you are doing something not
12624 supported in the library
14448 </summary> 12625 </summary>
12626 <param name="type">Packet type to trigger events for</param>
12627 <param name="callback">Callback to fire when a packet of this type
12628 is received</param>
12629 <param name="isAsync">True if the callback should be ran
12630 asynchronously. Only set this to false (synchronous for callbacks
12631 that will always complete quickly)</param>
12632 <remarks>If any callback for a packet type is marked as
12633 asynchronous, all callbacks for that packet type will be fired
12634 asynchronously</remarks>
14449 </member> 12635 </member>
14450 <member name="T:OpenMetaverse.Assets.AssetSound"> 12636 <member name="M:OpenMetaverse.NetworkManager.UnregisterCallback(OpenMetaverse.Packets.PacketType,System.EventHandler{OpenMetaverse.PacketReceivedEventArgs})">
14451 <summary> 12637 <summary>
14452 Represents a Sound Asset 12638 Unregister an event handler for a packet. This is a low level event
12639 interface and should only be used if you are doing something not
12640 supported in the library
14453 </summary> 12641 </summary>
12642 <param name="type">Packet type this callback is registered with</param>
12643 <param name="callback">Callback to stop firing events for</param>
14454 </member> 12644 </member>
14455 <member name="M:OpenMetaverse.Assets.AssetSound.#ctor"> 12645 <member name="M:OpenMetaverse.NetworkManager.RegisterEventCallback(System.String,OpenMetaverse.Caps.EventQueueCallback)">
14456 <summary>Initializes a new instance of an AssetSound object</summary>
14457 </member>
14458 <member name="M:OpenMetaverse.Assets.AssetSound.#ctor(OpenMetaverse.UUID,System.Byte[])">
14459 <summary>Initializes a new instance of an AssetSound object with parameters</summary>
14460 <param name="assetID">A unique <see cref="T:OpenMetaverse.UUID"/> specific to this asset</param>
14461 <param name="assetData">A byte array containing the raw asset data</param>
14462 </member>
14463 <member name="M:OpenMetaverse.Assets.AssetSound.Encode">
14464 <summary> 12646 <summary>
14465 TODO: Encodes a sound file 12647 Register a CAPS event handler. This is a low level event interface
12648 and should only be used if you are doing something not supported in
12649 the library
14466 </summary> 12650 </summary>
12651 <param name="capsEvent">Name of the CAPS event to register a handler for</param>
12652 <param name="callback">Callback to fire when a CAPS event is received</param>
14467 </member> 12653 </member>
14468 <member name="M:OpenMetaverse.Assets.AssetSound.Decode"> 12654 <member name="M:OpenMetaverse.NetworkManager.UnregisterEventCallback(System.String,OpenMetaverse.Caps.EventQueueCallback)">
14469 <summary> 12655 <summary>
14470 TODO: Decode a sound file 12656 Unregister a CAPS event handler. This is a low level event interface
12657 and should only be used if you are doing something not supported in
12658 the library
14471 </summary> 12659 </summary>
14472 <returns>true</returns> 12660 <param name="capsEvent">Name of the CAPS event this callback is
14473 </member> 12661 registered with</param>
14474 <member name="P:OpenMetaverse.Assets.AssetSound.AssetType"> 12662 <param name="callback">Callback to stop firing events for</param>
14475 <summary>Override the base classes AssetType</summary>
14476 </member> 12663 </member>
14477 <member name="T:OpenMetaverse.Assets.AssetScriptText"> 12664 <member name="M:OpenMetaverse.NetworkManager.SendPacket(OpenMetaverse.Packets.Packet)">
14478 <summary> 12665 <summary>
14479 Represents an LSL Text object containing a string of UTF encoded characters 12666 Send a packet to the simulator the avatar is currently occupying
14480 </summary> 12667 </summary>
12668 <param name="packet">Packet to send</param>
14481 </member> 12669 </member>
14482 <member name="F:OpenMetaverse.Assets.AssetScriptText.Source"> 12670 <member name="M:OpenMetaverse.NetworkManager.SendPacket(OpenMetaverse.Packets.Packet,OpenMetaverse.Simulator)">
14483 <summary>A string of characters represting the script contents</summary>
14484 </member>
14485 <member name="M:OpenMetaverse.Assets.AssetScriptText.#ctor">
14486 <summary>Initializes a new AssetScriptText object</summary>
14487 </member>
14488 <member name="M:OpenMetaverse.Assets.AssetScriptText.#ctor(OpenMetaverse.UUID,System.Byte[])">
14489 <summary> 12671 <summary>
14490 Initializes a new AssetScriptText object with parameters 12672 Send a packet to a specified simulator
14491 </summary> 12673 </summary>
14492 <param name="assetID">A unique <see cref="T:OpenMetaverse.UUID"/> specific to this asset</param> 12674 <param name="packet">Packet to send</param>
14493 <param name="assetData">A byte array containing the raw asset data</param> 12675 <param name="simulator">Simulator to send the packet to</param>
14494 </member> 12676 </member>
14495 <member name="M:OpenMetaverse.Assets.AssetScriptText.Encode"> 12677 <member name="M:OpenMetaverse.NetworkManager.Connect(System.Net.IPAddress,System.UInt16,System.UInt64,System.Boolean,System.String)">
14496 <summary> 12678 <summary>
14497 Encode a string containing the scripts contents into byte encoded AssetData 12679 Connect to a simulator
14498 </summary> 12680 </summary>
12681 <param name="ip">IP address to connect to</param>
12682 <param name="port">Port to connect to</param>
12683 <param name="handle">Handle for this simulator, to identify its
12684 location in the grid</param>
12685 <param name="setDefault">Whether to set CurrentSim to this new
12686 connection, use this if the avatar is moving in to this simulator</param>
12687 <param name="seedcaps">URL of the capabilities server to use for
12688 this sim connection</param>
12689 <returns>A Simulator object on success, otherwise null</returns>
14499 </member> 12690 </member>
14500 <member name="M:OpenMetaverse.Assets.AssetScriptText.Decode"> 12691 <member name="M:OpenMetaverse.NetworkManager.Connect(System.Net.IPEndPoint,System.UInt64,System.Boolean,System.String)">
14501 <summary> 12692 <summary>
14502 Decode a byte array containing the scripts contents into a string 12693 Connect to a simulator
14503 </summary> 12694 </summary>
14504 <returns>true if decoding is successful</returns> 12695 <param name="endPoint">IP address and port to connect to</param>
14505 </member> 12696 <param name="handle">Handle for this simulator, to identify its
14506 <member name="P:OpenMetaverse.Assets.AssetScriptText.AssetType"> 12697 location in the grid</param>
14507 <summary>Override the base classes AssetType</summary> 12698 <param name="setDefault">Whether to set CurrentSim to this new
12699 connection, use this if the avatar is moving in to this simulator</param>
12700 <param name="seedcaps">URL of the capabilities server to use for
12701 this sim connection</param>
12702 <returns>A Simulator object on success, otherwise null</returns>
14508 </member> 12703 </member>
14509 <member name="T:OpenMetaverse.Assets.AssetLandmark"> 12704 <member name="M:OpenMetaverse.NetworkManager.Logout">
14510 <summary> 12705 <summary>
14511 Represents a Landmark with RegionID and Position vector 12706 Initiate a blocking logout request. This will return when the logout
12707 handshake has completed or when <code>Settings.LOGOUT_TIMEOUT</code>
12708 has expired and the network layer is manually shut down
14512 </summary> 12709 </summary>
14513 </member> 12710 </member>
14514 <member name="F:OpenMetaverse.Assets.AssetLandmark.RegionID"> 12711 <member name="M:OpenMetaverse.NetworkManager.RequestLogout">
14515 <summary>UUID of the Landmark target region</summary>
14516 </member>
14517 <member name="F:OpenMetaverse.Assets.AssetLandmark.Position">
14518 <summary> Local position of the target </summary>
14519 </member>
14520 <member name="M:OpenMetaverse.Assets.AssetLandmark.#ctor">
14521 <summary>Construct an Asset of type Landmark</summary>
14522 </member>
14523 <member name="M:OpenMetaverse.Assets.AssetLandmark.#ctor(OpenMetaverse.UUID,System.Byte[])">
14524 <summary> 12712 <summary>
14525 Construct an Asset object of type Landmark 12713 Initiate the logout process. Check if logout succeeded with the
12714 <code>OnLogoutReply</code> event, and if this does not fire the
12715 <code>Shutdown()</code> function needs to be manually called
14526 </summary> 12716 </summary>
14527 <param name="assetID">A unique <see cref="T:OpenMetaverse.UUID"/> specific to this asset</param>
14528 <param name="assetData">A byte array containing the raw asset data</param>
14529 </member> 12717 </member>
14530 <member name="M:OpenMetaverse.Assets.AssetLandmark.Encode"> 12718 <member name="M:OpenMetaverse.NetworkManager.DisconnectSim(OpenMetaverse.Simulator,System.Boolean)">
14531 <summary> 12719 <summary>
14532 Encode the raw contents of a string with the specific Landmark format 12720 Close a connection to the given simulator
14533 </summary> 12721 </summary>
12722 <param name="simulator">
12723 </param>
12724 <param name="sendCloseCircuit">
12725 </param>
14534 </member> 12726 </member>
14535 <member name="M:OpenMetaverse.Assets.AssetLandmark.Decode"> 12727 <member name="M:OpenMetaverse.NetworkManager.Shutdown(OpenMetaverse.NetworkManager.DisconnectType)">
14536 <summary> 12728 <summary>
14537 Decode the raw asset data, populating the RegionID and Position 12729 Shutdown will disconnect all the sims except for the current sim
14538 </summary> 12730 first, and then kill the connection to CurrentSim. This should only
14539 <returns>true if the AssetData was successfully decoded to a UUID and Vector</returns> 12731 be called if the logout process times out on <code>RequestLogout</code></summary>
12732 <param name="type">Type of shutdown</param>
14540 </member> 12733 </member>
14541 <member name="P:OpenMetaverse.Assets.AssetLandmark.AssetType"> 12734 <member name="M:OpenMetaverse.NetworkManager.Shutdown(OpenMetaverse.NetworkManager.DisconnectType,System.String)">
14542 <summary>Override the base classes AssetType</summary> 12735 <summary>
12736 Shutdown will disconnect all the sims except for the current sim
12737 first, and then kill the connection to CurrentSim. This should only
12738 be called if the logout process times out on <code>RequestLogout</code></summary>
12739 <param name="type">Type of shutdown</param>
12740 <param name="message">Shutdown message</param>
14543 </member> 12741 </member>
14544 <member name="T:OpenMetaverse.Assets.AssetClothing"> 12742 <member name="M:OpenMetaverse.NetworkManager.FindSimulator(System.Net.IPEndPoint)">
14545 <summary> 12743 <summary>
14546 Represents an <seealso cref="T:OpenMetaverse.Assets.AssetWearable"/> that can be worn on an avatar 12744 Searches through the list of currently connected simulators to find
14547 such as a Shirt, Pants, etc. 12745 one attached to the given IPEndPoint
14548 </summary> 12746 </summary>
12747 <param name="endPoint">IPEndPoint of the Simulator to search for</param>
12748 <returns>A Simulator reference on success, otherwise null</returns>
14549 </member> 12749 </member>
14550 <member name="M:OpenMetaverse.Assets.AssetClothing.#ctor"> 12750 <member name="M:OpenMetaverse.NetworkManager.RaiseConnectedEvent(OpenMetaverse.Simulator)">
14551 <summary>Initializes a new instance of an AssetScriptBinary object</summary>
14552 </member>
14553 <member name="M:OpenMetaverse.Assets.AssetClothing.#ctor(OpenMetaverse.UUID,System.Byte[])">
14554 <summary>Initializes a new instance of an AssetScriptBinary object with parameters</summary>
14555 <param name="assetID">A unique <see cref="T:OpenMetaverse.UUID"/> specific to this asset</param>
14556 <param name="assetData">A byte array containing the raw asset data</param>
14557 </member>
14558 <member name="P:OpenMetaverse.Assets.AssetClothing.AssetType">
14559 <summary>Override the base classes AssetType</summary>
14560 </member>
14561 <member name="T:OpenMetaverse.GridClient">
14562 <summary> 12751 <summary>
14563 Main class to expose grid functionality to clients. All of the 12752 Fire an event when an event queue connects for capabilities
14564 classes needed for sending and receiving data are accessible through
14565 this class.
14566 </summary> 12753 </summary>
14567 <example> 12754 <param name="simulator">Simulator the event queue is attached to</param>
14568 <code>
14569 // Example minimum code required to instantiate class and
14570 // connect to a simulator.
14571 using System;
14572 using System.Collections.Generic;
14573 using System.Text;
14574 using OpenMetaverse;
14575
14576 namespace FirstBot
14577 {
14578 class Bot
14579 {
14580 public static GridClient Client;
14581 static void Main(string[] args)
14582 {
14583 Client = new GridClient(); // instantiates the GridClient class
14584 // to the global Client object
14585 // Login to Simulator
14586 Client.Network.Login("FirstName", "LastName", "Password", "FirstBot", "1.0");
14587 // Wait for a Keypress
14588 Console.ReadLine();
14589 // Logout of simulator
14590 Client.Network.Logout();
14591 }
14592 }
14593 }
14594 </code>
14595 </example>
14596 </member>
14597 <member name="F:OpenMetaverse.GridClient.Network">
14598 <summary>Networking subsystem</summary>
14599 </member>
14600 <member name="F:OpenMetaverse.GridClient.Settings">
14601 <summary>Settings class including constant values and changeable
14602 parameters for everything</summary>
14603 </member>
14604 <member name="F:OpenMetaverse.GridClient.Parcels">
14605 <summary>Parcel (subdivided simulator lots) subsystem</summary>
14606 </member>
14607 <member name="F:OpenMetaverse.GridClient.Self">
14608 <summary>Our own avatars subsystem</summary>
14609 </member>
14610 <member name="F:OpenMetaverse.GridClient.Avatars">
14611 <summary>Other avatars subsystem</summary>
14612 </member>
14613 <member name="F:OpenMetaverse.GridClient.Estate">
14614 <summary>Estate subsystem</summary>
14615 </member>
14616 <member name="F:OpenMetaverse.GridClient.Friends">
14617 <summary>Friends list subsystem</summary>
14618 </member>
14619 <member name="F:OpenMetaverse.GridClient.Grid">
14620 <summary>Grid (aka simulator group) subsystem</summary>
14621 </member>
14622 <member name="F:OpenMetaverse.GridClient.Objects">
14623 <summary>Object subsystem</summary>
14624 </member>
14625 <member name="F:OpenMetaverse.GridClient.Groups">
14626 <summary>Group subsystem</summary>
14627 </member>
14628 <member name="F:OpenMetaverse.GridClient.Assets">
14629 <summary>Asset subsystem</summary>
14630 </member>
14631 <member name="F:OpenMetaverse.GridClient.Appearance">
14632 <summary>Appearance subsystem</summary>
14633 </member>
14634 <member name="F:OpenMetaverse.GridClient.Inventory">
14635 <summary>Inventory subsystem</summary>
14636 </member>
14637 <member name="F:OpenMetaverse.GridClient.Directory">
14638 <summary>Directory searches including classifieds, people, land
14639 sales, etc</summary>
14640 </member> 12755 </member>
14641 <member name="F:OpenMetaverse.GridClient.Terrain"> 12756 <member name="M:OpenMetaverse.NetworkManager.LogoutReplyHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
14642 <summary>Handles land, wind, and cloud heightmaps</summary> 12757 <summary>Process an incoming packet and raise the appropriate events</summary>
12758 <param name="sender">The sender</param>
12759 <param name="e">The EventArgs object containing the packet data</param>
14643 </member> 12760 </member>
14644 <member name="F:OpenMetaverse.GridClient.Sound"> 12761 <member name="M:OpenMetaverse.NetworkManager.StartPingCheckHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
14645 <summary>Handles sound-related networking</summary> 12762 <summary>Process an incoming packet and raise the appropriate events</summary>
12763 <param name="sender">The sender</param>
12764 <param name="e">The EventArgs object containing the packet data</param>
14646 </member> 12765 </member>
14647 <member name="F:OpenMetaverse.GridClient.Throttle"> 12766 <member name="M:OpenMetaverse.NetworkManager.CompletePingCheckHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
14648 <summary>Throttling total bandwidth usage, or allocating bandwidth 12767 <summary>Process an incoming packet and raise the appropriate events</summary>
14649 for specific data stream types</summary> 12768 <param name="sender">The sender</param>
12769 <param name="e">The EventArgs object containing the packet data</param>
14650 </member> 12770 </member>
14651 <member name="M:OpenMetaverse.GridClient.#ctor"> 12771 <member name="M:OpenMetaverse.NetworkManager.SimStatsHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
14652 <summary> 12772 <summary>Process an incoming packet and raise the appropriate events</summary>
14653 Default constructor 12773 <param name="sender">The sender</param>
14654 </summary> 12774 <param name="e">The EventArgs object containing the packet data</param>
14655 </member> 12775 </member>
14656 <member name="M:OpenMetaverse.GridClient.ToString"> 12776 <member name="M:OpenMetaverse.NetworkManager.RegionHandshakeHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
14657 <summary> 12777 <summary>Process an incoming packet and raise the appropriate events</summary>
14658 Return the full name of this instance 12778 <param name="sender">The sender</param>
14659 </summary> 12779 <param name="e">The EventArgs object containing the packet data</param>
14660 <returns>Client avatars full name</returns>
14661 </member> 12780 </member>
14662 <member name="M:OpenMetaverse.Packets.Packet.BuildPacket(System.String,OpenMetaverse.StructuredData.OSDMap)"> 12781 <member name="M:OpenMetaverse.NetworkManager.DisableSimulatorHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
14663 <summary> 12782 <summary>Process an incoming packet and raise the appropriate events</summary>
14664 Attempts to convert an LLSD structure to a known Packet type 12783 <param name="sender">The sender</param>
14665 </summary> 12784 <param name="e">The EventArgs object containing the packet data</param>
14666 <param name="capsEventName">Event name, this must match an actual
14667 packet name for a Packet to be successfully built</param>
14668 <param name="body">LLSD to convert to a Packet</param>
14669 <returns>A Packet on success, otherwise null</returns>
14670 </member> 12785 </member>
14671 <member name="F:OpenMetaverse.Imaging.ManagedImage.Width"> 12786 <member name="M:OpenMetaverse.NetworkManager.KickUserHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
14672 <summary> 12787 <summary>Process an incoming packet and raise the appropriate events</summary>
14673 Image width 12788 <param name="sender">The sender</param>
14674 </summary> 12789 <param name="e">The EventArgs object containing the packet data</param>
14675 </member> 12790 </member>
14676 <member name="F:OpenMetaverse.Imaging.ManagedImage.Height"> 12791 <member name="T:OpenMetaverse.NameValue">
14677 <summary> 12792 <summary>
14678 Image height 12793 A Name Value pair with additional settings, used in the protocol
12794 primarily to transmit avatar names and active group in object packets
14679 </summary> 12795 </summary>
14680 </member> 12796 </member>
14681 <member name="F:OpenMetaverse.Imaging.ManagedImage.Channels"> 12797 <member name="M:OpenMetaverse.NameValue.#ctor(System.String,OpenMetaverse.NameValue.ValueType,OpenMetaverse.NameValue.ClassType,OpenMetaverse.NameValue.SendtoType,System.Object)">
14682 <summary> 12798 <summary>
14683 Image channel flags 12799 Constructor that takes all the fields as parameters
14684 </summary> 12800 </summary>
12801 <param name="name">
12802 </param>
12803 <param name="valueType">
12804 </param>
12805 <param name="classType">
12806 </param>
12807 <param name="sendtoType">
12808 </param>
12809 <param name="value">
12810 </param>
14685 </member> 12811 </member>
14686 <member name="F:OpenMetaverse.Imaging.ManagedImage.Red"> 12812 <member name="M:OpenMetaverse.NameValue.#ctor(System.String)">
14687 <summary> 12813 <summary>
14688 Red channel data 12814 Constructor that takes a single line from a NameValue field
14689 </summary> 12815 </summary>
12816 <param name="data">
12817 </param>
14690 </member> 12818 </member>
14691 <member name="F:OpenMetaverse.Imaging.ManagedImage.Green"> 12819 <member name="T:OpenMetaverse.NameValue.ValueType">
14692 <summary> 12820 <summary>Type of the value</summary>
14693 Green channel data
14694 </summary>
14695 </member> 12821 </member>
14696 <member name="F:OpenMetaverse.Imaging.ManagedImage.Blue"> 12822 <member name="F:OpenMetaverse.NameValue.ValueType.Unknown">
14697 <summary> 12823 <summary>Unknown</summary>
14698 Blue channel data
14699 </summary>
14700 </member> 12824 </member>
14701 <member name="F:OpenMetaverse.Imaging.ManagedImage.Alpha"> 12825 <member name="F:OpenMetaverse.NameValue.ValueType.String">
14702 <summary> 12826 <summary>String value</summary>
14703 Alpha channel data
14704 </summary>
14705 </member> 12827 </member>
14706 <member name="F:OpenMetaverse.Imaging.ManagedImage.Bump"> 12828 <member name="F:OpenMetaverse.NameValue.ValueType.F32">
14707 <summary> 12829 <summary>
14708 Bump channel data
14709 </summary> 12830 </summary>
14710 </member> 12831 </member>
14711 <member name="M:OpenMetaverse.Imaging.ManagedImage.#ctor(System.Int32,System.Int32,OpenMetaverse.Imaging.ManagedImage.ImageChannels)"> 12832 <member name="F:OpenMetaverse.NameValue.ValueType.S32">
14712 <summary> 12833 <summary>
14713 Create a new blank image
14714 </summary> 12834 </summary>
14715 <param name="width">width</param>
14716 <param name="height">height</param>
14717 <param name="channels">channel flags</param>
14718 </member> 12835 </member>
14719 <member name="M:OpenMetaverse.Imaging.ManagedImage.#ctor(System.Drawing.Bitmap)"> 12836 <member name="F:OpenMetaverse.NameValue.ValueType.VEC3">
14720 <summary> 12837 <summary>
14721
14722 </summary> 12838 </summary>
14723 <param name="bitmap"></param>
14724 </member> 12839 </member>
14725 <member name="M:OpenMetaverse.Imaging.ManagedImage.ConvertChannels(OpenMetaverse.Imaging.ManagedImage.ImageChannels)"> 12840 <member name="F:OpenMetaverse.NameValue.ValueType.U32">
14726 <summary> 12841 <summary>
14727 Convert the channels in the image. Channels are created or destroyed as required.
14728 </summary> 12842 </summary>
14729 <param name="channels">new channel flags</param>
14730 </member> 12843 </member>
14731 <member name="M:OpenMetaverse.Imaging.ManagedImage.ResizeNearestNeighbor(System.Int32,System.Int32)"> 12844 <member name="F:OpenMetaverse.NameValue.ValueType.CAMERA">
14732 <summary> 12845 <summary>Deprecated</summary>
14733 Resize or stretch the image using nearest neighbor (ugly) resampling
14734 </summary>
14735 <param name="width">new width</param>
14736 <param name="height">new height</param>
14737 </member> 12846 </member>
14738 <member name="M:OpenMetaverse.Imaging.ManagedImage.ExportRaw"> 12847 <member name="F:OpenMetaverse.NameValue.ValueType.Asset">
14739 <summary> 12848 <summary>String value, but designated as an asset</summary>
14740 Create a byte array containing 32-bit RGBA data with a bottom-left
14741 origin, suitable for feeding directly into OpenGL
14742 </summary>
14743 <returns>A byte array containing raw texture data</returns>
14744 </member> 12849 </member>
14745 <member name="T:OpenMetaverse.Assets.AssetTexture"> 12850 <member name="F:OpenMetaverse.NameValue.ValueType.U64">
14746 <summary> 12851 <summary>
14747 Represents a texture
14748 </summary> 12852 </summary>
14749 </member> 12853 </member>
14750 <member name="F:OpenMetaverse.Assets.AssetTexture.Image"> 12854 <member name="T:OpenMetaverse.NameValue.ClassType">
14751 <summary>A <seealso cref="T:OpenMetaverse.Imaging.ManagedImage"/> object containing image data</summary>
14752 </member>
14753 <member name="F:OpenMetaverse.Assets.AssetTexture.LayerInfo">
14754 <summary></summary>
14755 </member>
14756 <member name="F:OpenMetaverse.Assets.AssetTexture.Components">
14757 <summary></summary>
14758 </member>
14759 <member name="M:OpenMetaverse.Assets.AssetTexture.#ctor">
14760 <summary>Initializes a new instance of an AssetTexture object</summary>
14761 </member>
14762 <member name="M:OpenMetaverse.Assets.AssetTexture.#ctor(OpenMetaverse.UUID,System.Byte[])">
14763 <summary> 12855 <summary>
14764 Initializes a new instance of an AssetTexture object
14765 </summary> 12856 </summary>
14766 <param name="assetID">A unique <see cref="T:OpenMetaverse.UUID"/> specific to this asset</param>
14767 <param name="assetData">A byte array containing the raw asset data</param>
14768 </member> 12857 </member>
14769 <member name="M:OpenMetaverse.Assets.AssetTexture.#ctor(OpenMetaverse.Imaging.ManagedImage)"> 12858 <member name="F:OpenMetaverse.NameValue.ClassType.Unknown">
14770 <summary> 12859 <summary>
14771 Initializes a new instance of an AssetTexture object
14772 </summary> 12860 </summary>
14773 <param name="image">A <seealso cref="T:OpenMetaverse.Imaging.ManagedImage"/> object containing texture data</param>
14774 </member> 12861 </member>
14775 <member name="M:OpenMetaverse.Assets.AssetTexture.Encode"> 12862 <member name="F:OpenMetaverse.NameValue.ClassType.ReadOnly">
14776 <summary> 12863 <summary>
14777 Populates the <seealso cref="!:AssetData"/> byte array with a JPEG2000
14778 encoded image created from the data in <seealso cref="F:OpenMetaverse.Assets.AssetTexture.Image"/>
14779 </summary> 12864 </summary>
14780 </member> 12865 </member>
14781 <member name="M:OpenMetaverse.Assets.AssetTexture.Decode"> 12866 <member name="F:OpenMetaverse.NameValue.ClassType.ReadWrite">
14782 <summary> 12867 <summary>
14783 Decodes the JPEG2000 data in <code>AssetData</code> to the
14784 <seealso cref="T:OpenMetaverse.Imaging.ManagedImage"/> object <seealso cref="F:OpenMetaverse.Assets.AssetTexture.Image"/>
14785 </summary> 12868 </summary>
14786 <returns>True if the decoding was successful, otherwise false</returns>
14787 </member> 12869 </member>
14788 <member name="M:OpenMetaverse.Assets.AssetTexture.DecodeLayerBoundaries"> 12870 <member name="F:OpenMetaverse.NameValue.ClassType.Callback">
14789 <summary> 12871 <summary>
14790 Decodes the begin and end byte positions for each quality layer in
14791 the image
14792 </summary> 12872 </summary>
14793 <returns></returns>
14794 </member>
14795 <member name="P:OpenMetaverse.Assets.AssetTexture.AssetType">
14796 <summary>Override the base classes AssetType</summary>
14797 </member> 12873 </member>
14798 <member name="T:OpenMetaverse.Assets.TarArchiveReader"> 12874 <member name="T:OpenMetaverse.NameValue.SendtoType">
14799 <summary> 12875 <summary>
14800 Temporary code to do the bare minimum required to read a tar archive for our purposes
14801 </summary> 12876 </summary>
14802 </member> 12877 </member>
14803 <member name="F:OpenMetaverse.Assets.TarArchiveReader.m_br"> 12878 <member name="F:OpenMetaverse.NameValue.SendtoType.Unknown">
14804 <summary> 12879 <summary>
14805 Binary reader for the underlying stream
14806 </summary> 12880 </summary>
14807 </member> 12881 </member>
14808 <member name="F:OpenMetaverse.Assets.TarArchiveReader.m_nullCharArray"> 12882 <member name="F:OpenMetaverse.NameValue.SendtoType.Sim">
14809 <summary> 12883 <summary>
14810 Used to trim off null chars
14811 </summary> 12884 </summary>
14812 </member> 12885 </member>
14813 <member name="F:OpenMetaverse.Assets.TarArchiveReader.m_spaceCharArray"> 12886 <member name="F:OpenMetaverse.NameValue.SendtoType.DataSim">
14814 <summary> 12887 <summary>
14815 Used to trim off space chars
14816 </summary> 12888 </summary>
14817 </member> 12889 </member>
14818 <member name="M:OpenMetaverse.Assets.TarArchiveReader.#ctor(System.IO.Stream)"> 12890 <member name="F:OpenMetaverse.NameValue.SendtoType.SimViewer">
14819 <summary> 12891 <summary>
14820 Generate a tar reader which reads from the given stream.
14821 </summary> 12892 </summary>
14822 <param name="s"></param>
14823 </member> 12893 </member>
14824 <member name="M:OpenMetaverse.Assets.TarArchiveReader.ReadEntry(System.String@,OpenMetaverse.Assets.TarArchiveReader.TarEntryType@)"> 12894 <member name="F:OpenMetaverse.NameValue.SendtoType.DataSimViewer">
14825 <summary> 12895 <summary>
14826 Read the next entry in the tar file.
14827 </summary> 12896 </summary>
14828 <param name="filePath"></param>
14829 <param name="entryType"></param>
14830 <returns>the data for the entry. Returns null if there are no more entries</returns>
14831 </member> 12897 </member>
14832 <member name="M:OpenMetaverse.Assets.TarArchiveReader.ReadHeader"> 12898 <member name="F:OpenMetaverse.NameValue.Name">
14833 <summary> 12899 <summary>
14834 Read the next 512 byte chunk of data as a tar header.
14835 </summary> 12900 </summary>
14836 <returns>A tar header struct. null if we have reached the end of the archive.</returns>
14837 </member> 12901 </member>
14838 <member name="M:OpenMetaverse.Assets.TarArchiveReader.ReadData(System.Int32)"> 12902 <member name="F:OpenMetaverse.NameValue.Type">
14839 <summary> 12903 <summary>
14840 Read data following a header
14841 </summary> 12904 </summary>
14842 <param name="fileSize"></param>
14843 <returns></returns>
14844 </member> 12905 </member>
14845 <member name="M:OpenMetaverse.Assets.TarArchiveReader.ConvertOctalBytesToDecimal(System.Byte[],System.Int32,System.Int32)"> 12906 <member name="F:OpenMetaverse.NameValue.Class">
14846 <summary> 12907 <summary>
14847 Convert octal bytes to a decimal representation
14848 </summary> 12908 </summary>
14849 <param name="bytes"></param>
14850 <param name="count"></param>
14851 <param name="startIndex"></param>
14852 <returns></returns>
14853 </member> 12909 </member>
14854 <member name="F:OpenMetaverse.TerrainPatch.X"> 12910 <member name="F:OpenMetaverse.NameValue.Sendto">
14855 <summary>X position of this patch</summary>
14856 </member>
14857 <member name="F:OpenMetaverse.TerrainPatch.Y">
14858 <summary>Y position of this patch</summary>
14859 </member>
14860 <member name="F:OpenMetaverse.TerrainPatch.Data">
14861 <summary>A 16x16 array of floats holding decompressed layer data</summary>
14862 </member>
14863 <member name="M:OpenMetaverse.TerrainCompressor.CreateLandPacket(System.Single[],System.Int32[])">
14864 <summary> 12911 <summary>
14865 Creates a LayerData packet for compressed land data given a full
14866 simulator heightmap and an array of indices of patches to compress
14867 </summary> 12912 </summary>
14868 <param name="heightmap">A 256 * 256 array of floating point values
14869 specifying the height at each meter in the simulator</param>
14870 <param name="patches">Array of indexes in the 16x16 grid of patches
14871 for this simulator. For example if 1 and 17 are specified, patches
14872 x=1,y=0 and x=1,y=1 are sent</param>
14873 <returns></returns>
14874 </member> 12913 </member>
14875 <member name="M:OpenMetaverse.TerrainCompressor.CreatePatchFromHeightmap(OpenMetaverse.BitPack,System.Single[],System.Int32,System.Int32)"> 12914 <member name="F:OpenMetaverse.NameValue.Value">
14876 <summary> 12915 <summary>
14877 Add a patch of terrain to a BitPacker
14878 </summary> 12916 </summary>
14879 <param name="output">BitPacker to write the patch to</param>
14880 <param name="heightmap">Heightmap of the simulator, must be a 256 *
14881 256 float array</param>
14882 <param name="x">X offset of the patch to create, valid values are
14883 from 0 to 15</param>
14884 <param name="y">Y offset of the patch to create, valid values are
14885 from 0 to 15</param>
14886 </member> 12917 </member>
14887 <member name="T:OpenMetaverse.ReportType"> 12918 <member name="T:OpenMetaverse.ReportType">
14888 <summary> 12919 <summary>
14889
14890 </summary> 12920 </summary>
14891 </member> 12921 </member>
14892 <member name="F:OpenMetaverse.ReportType.None"> 12922 <member name="F:OpenMetaverse.ReportType.None">
@@ -14906,7 +12936,7 @@
14906 </member> 12936 </member>
14907 <member name="T:OpenMetaverse.CompressedFlags"> 12937 <member name="T:OpenMetaverse.CompressedFlags">
14908 <summary> 12938 <summary>
14909 Bitflag field for ObjectUpdateCompressed data blocks, describing 12939 Bitflag field for ObjectUpdateCompressed data blocks, describing
14910 which options are present for each object 12940 which options are present for each object
14911 </summary> 12941 </summary>
14912 </member> 12942 </member>
@@ -14982,46 +13012,70 @@
14982 </member> 13012 </member>
14983 <member name="T:OpenMetaverse.ObjectMovementUpdate"> 13013 <member name="T:OpenMetaverse.ObjectMovementUpdate">
14984 <summary> 13014 <summary>
14985 Contains the variables sent in an object update packet for objects. 13015 Contains the variables sent in an object update packet for objects.
14986 Used to track position and movement of prims and avatars 13016 Used to track position and movement of prims and avatars
14987 </summary> 13017 </summary>
14988 </member> 13018 </member>
14989 <member name="F:OpenMetaverse.ObjectMovementUpdate.Avatar"> 13019 <member name="F:OpenMetaverse.ObjectMovementUpdate.Avatar">
14990 <summary></summary> 13020 <summary>
13021 </summary>
14991 </member> 13022 </member>
14992 <member name="F:OpenMetaverse.ObjectMovementUpdate.CollisionPlane"> 13023 <member name="F:OpenMetaverse.ObjectMovementUpdate.CollisionPlane">
14993 <summary></summary> 13024 <summary>
13025 </summary>
14994 </member> 13026 </member>
14995 <member name="F:OpenMetaverse.ObjectMovementUpdate.State"> 13027 <member name="F:OpenMetaverse.ObjectMovementUpdate.State">
14996 <summary></summary> 13028 <summary>
13029 </summary>
14997 </member> 13030 </member>
14998 <member name="F:OpenMetaverse.ObjectMovementUpdate.LocalID"> 13031 <member name="F:OpenMetaverse.ObjectMovementUpdate.LocalID">
14999 <summary></summary> 13032 <summary>
13033 </summary>
15000 </member> 13034 </member>
15001 <member name="F:OpenMetaverse.ObjectMovementUpdate.Position"> 13035 <member name="F:OpenMetaverse.ObjectMovementUpdate.Position">
15002 <summary></summary> 13036 <summary>
13037 </summary>
15003 </member> 13038 </member>
15004 <member name="F:OpenMetaverse.ObjectMovementUpdate.Velocity"> 13039 <member name="F:OpenMetaverse.ObjectMovementUpdate.Velocity">
15005 <summary></summary> 13040 <summary>
13041 </summary>
15006 </member> 13042 </member>
15007 <member name="F:OpenMetaverse.ObjectMovementUpdate.Acceleration"> 13043 <member name="F:OpenMetaverse.ObjectMovementUpdate.Acceleration">
15008 <summary></summary> 13044 <summary>
13045 </summary>
15009 </member> 13046 </member>
15010 <member name="F:OpenMetaverse.ObjectMovementUpdate.Rotation"> 13047 <member name="F:OpenMetaverse.ObjectMovementUpdate.Rotation">
15011 <summary></summary> 13048 <summary>
13049 </summary>
15012 </member> 13050 </member>
15013 <member name="F:OpenMetaverse.ObjectMovementUpdate.AngularVelocity"> 13051 <member name="F:OpenMetaverse.ObjectMovementUpdate.AngularVelocity">
15014 <summary></summary> 13052 <summary>
13053 </summary>
15015 </member> 13054 </member>
15016 <member name="F:OpenMetaverse.ObjectMovementUpdate.Textures"> 13055 <member name="F:OpenMetaverse.ObjectMovementUpdate.Textures">
15017 <summary></summary> 13056 <summary>
13057 </summary>
15018 </member> 13058 </member>
15019 <member name="T:OpenMetaverse.ObjectManager"> 13059 <member name="T:OpenMetaverse.ObjectManager">
15020 <summary> 13060 <summary>
15021 Handles all network traffic related to prims and avatar positions and 13061 Handles all network traffic related to prims and avatar positions and
15022 movement. 13062 movement.
15023 </summary> 13063 </summary>
15024 </member> 13064 </member>
13065 <member name="M:OpenMetaverse.ObjectManager.#ctor(OpenMetaverse.GridClient)">
13066 <summary>
13067 Construct a new instance of the ObjectManager class
13068 </summary>
13069 <param name="client">A reference to the <see cref="T:OpenMetaverse.GridClient" /> instance</param>
13070 </member>
13071 <member name="T:OpenMetaverse.ObjectManager.ObjectMediaCallback">
13072 <summary>
13073 Callback for getting object media data via CAP
13074 </summary>
13075 <param name="success">Indicates if the operation was succesfull</param>
13076 <param name="version">Object media version string</param>
13077 <param name="faceMedia">Array indexed on prim face of media entry data</param>
13078 </member>
15025 <member name="F:OpenMetaverse.ObjectManager.m_ObjectUpdate"> 13079 <member name="F:OpenMetaverse.ObjectManager.m_ObjectUpdate">
15026 <summary>The event subscribers, null of no subscribers</summary> 13080 <summary>The event subscribers, null of no subscribers</summary>
15027 </member> 13081 </member>
@@ -15031,44 +13085,24 @@
15031 <member name="F:OpenMetaverse.ObjectManager.m_ObjectProperties"> 13085 <member name="F:OpenMetaverse.ObjectManager.m_ObjectProperties">
15032 <summary>The event subscribers, null of no subscribers</summary> 13086 <summary>The event subscribers, null of no subscribers</summary>
15033 </member> 13087 </member>
15034 <member name="M:OpenMetaverse.ObjectManager.OnObjectProperties(OpenMetaverse.ObjectPropertiesEventArgs)">
15035 <summary>Raises the ObjectProperties Event</summary>
15036 <param name="e">A ObjectPropertiesEventArgs object containing
15037 the data sent from the simulator</param>
15038 </member>
15039 <member name="F:OpenMetaverse.ObjectManager.m_ObjectPropertiesLock"> 13088 <member name="F:OpenMetaverse.ObjectManager.m_ObjectPropertiesLock">
15040 <summary>Thread sync lock object</summary> 13089 <summary>Thread sync lock object</summary>
15041 </member> 13090 </member>
15042 <member name="F:OpenMetaverse.ObjectManager.m_ObjectPropertiesUpdated"> 13091 <member name="F:OpenMetaverse.ObjectManager.m_ObjectPropertiesUpdated">
15043 <summary>The event subscribers, null of no subscribers</summary> 13092 <summary>The event subscribers, null of no subscribers</summary>
15044 </member> 13093 </member>
15045 <member name="M:OpenMetaverse.ObjectManager.OnObjectPropertiesUpdated(OpenMetaverse.ObjectPropertiesUpdatedEventArgs)">
15046 <summary>Raises the ObjectPropertiesUpdated Event</summary>
15047 <param name="e">A ObjectPropertiesUpdatedEventArgs object containing
15048 the data sent from the simulator</param>
15049 </member>
15050 <member name="F:OpenMetaverse.ObjectManager.m_ObjectPropertiesUpdatedLock"> 13094 <member name="F:OpenMetaverse.ObjectManager.m_ObjectPropertiesUpdatedLock">
15051 <summary>Thread sync lock object</summary> 13095 <summary>Thread sync lock object</summary>
15052 </member> 13096 </member>
15053 <member name="F:OpenMetaverse.ObjectManager.m_ObjectPropertiesFamily"> 13097 <member name="F:OpenMetaverse.ObjectManager.m_ObjectPropertiesFamily">
15054 <summary>The event subscribers, null of no subscribers</summary> 13098 <summary>The event subscribers, null of no subscribers</summary>
15055 </member> 13099 </member>
15056 <member name="M:OpenMetaverse.ObjectManager.OnObjectPropertiesFamily(OpenMetaverse.ObjectPropertiesFamilyEventArgs)">
15057 <summary>Raises the ObjectPropertiesFamily Event</summary>
15058 <param name="e">A ObjectPropertiesFamilyEventArgs object containing
15059 the data sent from the simulator</param>
15060 </member>
15061 <member name="F:OpenMetaverse.ObjectManager.m_ObjectPropertiesFamilyLock"> 13100 <member name="F:OpenMetaverse.ObjectManager.m_ObjectPropertiesFamilyLock">
15062 <summary>Thread sync lock object</summary> 13101 <summary>Thread sync lock object</summary>
15063 </member> 13102 </member>
15064 <member name="F:OpenMetaverse.ObjectManager.m_AvatarUpdate"> 13103 <member name="F:OpenMetaverse.ObjectManager.m_AvatarUpdate">
15065 <summary>The event subscribers, null of no subscribers</summary> 13104 <summary>The event subscribers, null of no subscribers</summary>
15066 </member> 13105 </member>
15067 <member name="M:OpenMetaverse.ObjectManager.OnAvatarUpdate(OpenMetaverse.AvatarUpdateEventArgs)">
15068 <summary>Raises the AvatarUpdate Event</summary>
15069 <param name="e">A AvatarUpdateEventArgs object containing
15070 the data sent from the simulator</param>
15071 </member>
15072 <member name="F:OpenMetaverse.ObjectManager.m_AvatarUpdateLock"> 13106 <member name="F:OpenMetaverse.ObjectManager.m_AvatarUpdateLock">
15073 <summary>Thread sync lock object</summary> 13107 <summary>Thread sync lock object</summary>
15074 </member> 13108 </member>
@@ -15081,47 +13115,33 @@
15081 <member name="F:OpenMetaverse.ObjectManager.m_ObjectDataBlockUpdate"> 13115 <member name="F:OpenMetaverse.ObjectManager.m_ObjectDataBlockUpdate">
15082 <summary>The event subscribers, null of no subscribers</summary> 13116 <summary>The event subscribers, null of no subscribers</summary>
15083 </member> 13117 </member>
15084 <member name="M:OpenMetaverse.ObjectManager.OnObjectDataBlockUpdate(OpenMetaverse.ObjectDataBlockUpdateEventArgs)">
15085 <summary>Raises the ObjectDataBlockUpdate Event</summary>
15086 <param name="e">A ObjectDataBlockUpdateEventArgs object containing
15087 the data sent from the simulator</param>
15088 </member>
15089 <member name="F:OpenMetaverse.ObjectManager.m_ObjectDataBlockUpdateLock"> 13118 <member name="F:OpenMetaverse.ObjectManager.m_ObjectDataBlockUpdateLock">
15090 <summary>Thread sync lock object</summary> 13119 <summary>Thread sync lock object</summary>
15091 </member> 13120 </member>
15092 <member name="F:OpenMetaverse.ObjectManager.m_KillObject"> 13121 <member name="F:OpenMetaverse.ObjectManager.m_KillObject">
15093 <summary>The event subscribers, null of no subscribers</summary> 13122 <summary>The event subscribers, null of no subscribers</summary>
15094 </member> 13123 </member>
15095 <member name="M:OpenMetaverse.ObjectManager.OnKillObject(OpenMetaverse.KillObjectEventArgs)">
15096 <summary>Raises the KillObject Event</summary>
15097 <param name="e">A KillObjectEventArgs object containing
15098 the data sent from the simulator</param>
15099 </member>
15100 <member name="F:OpenMetaverse.ObjectManager.m_KillObjectLock"> 13124 <member name="F:OpenMetaverse.ObjectManager.m_KillObjectLock">
15101 <summary>Thread sync lock object</summary> 13125 <summary>Thread sync lock object</summary>
15102 </member> 13126 </member>
15103 <member name="F:OpenMetaverse.ObjectManager.m_AvatarSitChanged"> 13127 <member name="F:OpenMetaverse.ObjectManager.m_AvatarSitChanged">
15104 <summary>The event subscribers, null of no subscribers</summary> 13128 <summary>The event subscribers, null of no subscribers</summary>
15105 </member> 13129 </member>
15106 <member name="M:OpenMetaverse.ObjectManager.OnAvatarSitChanged(OpenMetaverse.AvatarSitChangedEventArgs)">
15107 <summary>Raises the AvatarSitChanged Event</summary>
15108 <param name="e">A AvatarSitChangedEventArgs object containing
15109 the data sent from the simulator</param>
15110 </member>
15111 <member name="F:OpenMetaverse.ObjectManager.m_AvatarSitChangedLock"> 13130 <member name="F:OpenMetaverse.ObjectManager.m_AvatarSitChangedLock">
15112 <summary>Thread sync lock object</summary> 13131 <summary>Thread sync lock object</summary>
15113 </member> 13132 </member>
15114 <member name="F:OpenMetaverse.ObjectManager.m_PayPriceReply"> 13133 <member name="F:OpenMetaverse.ObjectManager.m_PayPriceReply">
15115 <summary>The event subscribers, null of no subscribers</summary> 13134 <summary>The event subscribers, null of no subscribers</summary>
15116 </member> 13135 </member>
15117 <member name="M:OpenMetaverse.ObjectManager.OnPayPriceReply(OpenMetaverse.PayPriceReplyEventArgs)">
15118 <summary>Raises the PayPriceReply Event</summary>
15119 <param name="e">A PayPriceReplyEventArgs object containing
15120 the data sent from the simulator</param>
15121 </member>
15122 <member name="F:OpenMetaverse.ObjectManager.m_PayPriceReplyLock"> 13136 <member name="F:OpenMetaverse.ObjectManager.m_PayPriceReplyLock">
15123 <summary>Thread sync lock object</summary> 13137 <summary>Thread sync lock object</summary>
15124 </member> 13138 </member>
13139 <member name="F:OpenMetaverse.ObjectManager.m_PhysicsProperties">
13140 <summary>The event subscribers, null of no subscribers</summary>
13141 </member>
13142 <member name="F:OpenMetaverse.ObjectManager.m_PhysicsPropertiesLock">
13143 <summary>Thread sync lock object</summary>
13144 </member>
15125 <member name="F:OpenMetaverse.ObjectManager.Client"> 13145 <member name="F:OpenMetaverse.ObjectManager.Client">
15126 <summary>Reference to the GridClient object</summary> 13146 <summary>Reference to the GridClient object</summary>
15127 </member> 13147 </member>
@@ -15129,18 +13149,108 @@
15129 <summary>Does periodic dead reckoning calculation to convert 13149 <summary>Does periodic dead reckoning calculation to convert
15130 velocity and acceleration to new positions for objects</summary> 13150 velocity and acceleration to new positions for objects</summary>
15131 </member> 13151 </member>
15132 <member name="M:OpenMetaverse.ObjectManager.#ctor(OpenMetaverse.GridClient)"> 13152 <member name="E:OpenMetaverse.ObjectManager.ObjectUpdate">
15133 <summary> 13153 <summary>Raised when the simulator sends us data containing
15134 Construct a new instance of the ObjectManager class 13154 A <see cref="T:OpenMetaverse.Primitive" />, Foliage or Attachment</summary>
15135 </summary> 13155 <seealso cref="M:OpenMetaverse.ObjectManager.RequestObject(OpenMetaverse.Simulator,System.UInt32)" />
15136 <param name="client">A reference to the <see cref="T:OpenMetaverse.GridClient"/> instance</param> 13156 <seealso cref="M:OpenMetaverse.ObjectManager.RequestObjects(OpenMetaverse.Simulator,System.Collections.Generic.List{System.UInt32})" />
13157 </member>
13158 <member name="E:OpenMetaverse.ObjectManager.ObjectProperties">
13159 <summary>Raised when the simulator sends us data containing
13160 additional <seea cref="Primitive" /> information</summary>
13161 <seealso cref="M:OpenMetaverse.ObjectManager.SelectObject(OpenMetaverse.Simulator,System.UInt32,System.Boolean)" />
13162 <seealso cref="M:OpenMetaverse.ObjectManager.SelectObjects(OpenMetaverse.Simulator,System.UInt32[])" />
13163 </member>
13164 <member name="E:OpenMetaverse.ObjectManager.ObjectPropertiesUpdated">
13165 <summary>Raised when the simulator sends us data containing
13166 Primitive.ObjectProperties for an object we are currently tracking</summary>
13167 </member>
13168 <member name="E:OpenMetaverse.ObjectManager.ObjectPropertiesFamily">
13169 <summary>Raised when the simulator sends us data containing
13170 additional <seea cref="Primitive" /> and <see cref="T:OpenMetaverse.Avatar" /> details</summary>
13171 <seealso cref="M:OpenMetaverse.ObjectManager.RequestObjectPropertiesFamily(OpenMetaverse.Simulator,OpenMetaverse.UUID,System.Boolean)" />
13172 </member>
13173 <member name="E:OpenMetaverse.ObjectManager.AvatarUpdate">
13174 <summary>Raised when the simulator sends us data containing
13175 updated information for an <see cref="T:OpenMetaverse.Avatar" /></summary>
13176 </member>
13177 <member name="E:OpenMetaverse.ObjectManager.TerseObjectUpdate">
13178 <summary>Raised when the simulator sends us data containing
13179 <see cref="T:OpenMetaverse.Primitive" /> and <see cref="T:OpenMetaverse.Avatar" /> movement changes</summary>
13180 </member>
13181 <member name="E:OpenMetaverse.ObjectManager.ObjectDataBlockUpdate">
13182 <summary>Raised when the simulator sends us data containing
13183 updates to an Objects DataBlock</summary>
13184 </member>
13185 <member name="E:OpenMetaverse.ObjectManager.KillObject">
13186 <summary>Raised when the simulator informs us an <see cref="T:OpenMetaverse.Primitive" />
13187 or <see cref="T:OpenMetaverse.Avatar" /> is no longer within view</summary>
13188 </member>
13189 <member name="E:OpenMetaverse.ObjectManager.AvatarSitChanged">
13190 <summary>Raised when the simulator sends us data containing
13191 updated sit information for our <see cref="T:OpenMetaverse.Avatar" /></summary>
13192 </member>
13193 <member name="E:OpenMetaverse.ObjectManager.PayPriceReply">
13194 <summary>Raised when the simulator sends us data containing
13195 purchase price information for a <see cref="T:OpenMetaverse.Primitive" /></summary>
13196 </member>
13197 <member name="E:OpenMetaverse.ObjectManager.PhysicsProperties">
13198 <summary>Raised when the simulator sends us data containing
13199 additional <seea cref="Primitive" /> information</summary>
13200 <seealso cref="M:OpenMetaverse.ObjectManager.SelectObject(OpenMetaverse.Simulator,System.UInt32,System.Boolean)" />
13201 <seealso cref="M:OpenMetaverse.ObjectManager.SelectObjects(OpenMetaverse.Simulator,System.UInt32[])" />
13202 </member>
13203 <member name="M:OpenMetaverse.ObjectManager.OnObjectProperties(OpenMetaverse.ObjectPropertiesEventArgs)">
13204 <summary>Raises the ObjectProperties Event</summary>
13205 <param name="e">A ObjectPropertiesEventArgs object containing
13206 the data sent from the simulator</param>
13207 </member>
13208 <member name="M:OpenMetaverse.ObjectManager.OnObjectPropertiesUpdated(OpenMetaverse.ObjectPropertiesUpdatedEventArgs)">
13209 <summary>Raises the ObjectPropertiesUpdated Event</summary>
13210 <param name="e">A ObjectPropertiesUpdatedEventArgs object containing
13211 the data sent from the simulator</param>
13212 </member>
13213 <member name="M:OpenMetaverse.ObjectManager.OnObjectPropertiesFamily(OpenMetaverse.ObjectPropertiesFamilyEventArgs)">
13214 <summary>Raises the ObjectPropertiesFamily Event</summary>
13215 <param name="e">A ObjectPropertiesFamilyEventArgs object containing
13216 the data sent from the simulator</param>
13217 </member>
13218 <member name="M:OpenMetaverse.ObjectManager.OnAvatarUpdate(OpenMetaverse.AvatarUpdateEventArgs)">
13219 <summary>Raises the AvatarUpdate Event</summary>
13220 <param name="e">A AvatarUpdateEventArgs object containing
13221 the data sent from the simulator</param>
13222 </member>
13223 <member name="M:OpenMetaverse.ObjectManager.OnObjectDataBlockUpdate(OpenMetaverse.ObjectDataBlockUpdateEventArgs)">
13224 <summary>Raises the ObjectDataBlockUpdate Event</summary>
13225 <param name="e">A ObjectDataBlockUpdateEventArgs object containing
13226 the data sent from the simulator</param>
13227 </member>
13228 <member name="M:OpenMetaverse.ObjectManager.OnKillObject(OpenMetaverse.KillObjectEventArgs)">
13229 <summary>Raises the KillObject Event</summary>
13230 <param name="e">A KillObjectEventArgs object containing
13231 the data sent from the simulator</param>
13232 </member>
13233 <member name="M:OpenMetaverse.ObjectManager.OnAvatarSitChanged(OpenMetaverse.AvatarSitChangedEventArgs)">
13234 <summary>Raises the AvatarSitChanged Event</summary>
13235 <param name="e">A AvatarSitChangedEventArgs object containing
13236 the data sent from the simulator</param>
13237 </member>
13238 <member name="M:OpenMetaverse.ObjectManager.OnPayPriceReply(OpenMetaverse.PayPriceReplyEventArgs)">
13239 <summary>Raises the PayPriceReply Event</summary>
13240 <param name="e">A PayPriceReplyEventArgs object containing
13241 the data sent from the simulator</param>
13242 </member>
13243 <member name="M:OpenMetaverse.ObjectManager.OnPhysicsProperties(OpenMetaverse.PhysicsPropertiesEventArgs)">
13244 <summary>Raises the PhysicsProperties Event</summary>
13245 <param name="e">A PhysicsPropertiesEventArgs object containing
13246 the data sent from the simulator</param>
15137 </member> 13247 </member>
15138 <member name="M:OpenMetaverse.ObjectManager.RequestObject(OpenMetaverse.Simulator,System.UInt32)"> 13248 <member name="M:OpenMetaverse.ObjectManager.RequestObject(OpenMetaverse.Simulator,System.UInt32)">
15139 <summary> 13249 <summary>
15140 Request information for a single object from a <see cref="T:OpenMetaverse.Simulator"/> 13250 Request information for a single object from a <see cref="T:OpenMetaverse.Simulator" />
15141 you are currently connected to 13251 you are currently connected to
15142 </summary> 13252 </summary>
15143 <param name="simulator">The <see cref="T:OpenMetaverse.Simulator"/> the object is located</param> 13253 <param name="simulator">The <see cref="T:OpenMetaverse.Simulator" /> the object is located</param>
15144 <param name="localID">The Local ID of the object</param> 13254 <param name="localID">The Local ID of the object</param>
15145 </member> 13255 </member>
15146 <member name="M:OpenMetaverse.ObjectManager.RequestObjects(OpenMetaverse.Simulator,System.Collections.Generic.List{System.UInt32})"> 13256 <member name="M:OpenMetaverse.ObjectManager.RequestObjects(OpenMetaverse.Simulator,System.Collections.Generic.List{System.UInt32})">
@@ -15148,31 +13258,31 @@
15148 Request information for multiple objects contained in 13258 Request information for multiple objects contained in
15149 the same simulator 13259 the same simulator
15150 </summary> 13260 </summary>
15151 <param name="simulator">The <see cref="T:OpenMetaverse.Simulator"/> the objects are located</param> 13261 <param name="simulator">The <see cref="T:OpenMetaverse.Simulator" /> the objects are located</param>
15152 <param name="localIDs">An array containing the Local IDs of the objects</param> 13262 <param name="localIDs">An array containing the Local IDs of the objects</param>
15153 </member> 13263 </member>
15154 <member name="M:OpenMetaverse.ObjectManager.BuyObject(OpenMetaverse.Simulator,System.UInt32,OpenMetaverse.SaleType,System.Int32,OpenMetaverse.UUID,OpenMetaverse.UUID)"> 13264 <member name="M:OpenMetaverse.ObjectManager.BuyObject(OpenMetaverse.Simulator,System.UInt32,OpenMetaverse.SaleType,System.Int32,OpenMetaverse.UUID,OpenMetaverse.UUID)">
15155 <summary> 13265 <summary>
15156 Attempt to purchase an original object, a copy, or the contents of 13266 Attempt to purchase an original object, a copy, or the contents of
15157 an object 13267 an object
15158 </summary> 13268 </summary>
15159 <param name="simulator">The <see cref="T:OpenMetaverse.Simulator"/> the object is located</param> 13269 <param name="simulator">The <see cref="T:OpenMetaverse.Simulator" /> the object is located</param>
15160 <param name="localID">The Local ID of the object</param> 13270 <param name="localID">The Local ID of the object</param>
15161 <param name="saleType">Whether the original, a copy, or the object 13271 <param name="saleType">Whether the original, a copy, or the object
15162 contents are on sale. This is used for verification, if the this 13272 contents are on sale. This is used for verification, if the this
15163 sale type is not valid for the object the purchase will fail</param> 13273 sale type is not valid for the object the purchase will fail</param>
15164 <param name="price">Price of the object. This is used for 13274 <param name="price">Price of the object. This is used for
15165 verification, if it does not match the actual price the purchase 13275 verification, if it does not match the actual price the purchase
15166 will fail</param> 13276 will fail</param>
15167 <param name="groupID">Group ID that will be associated with the new 13277 <param name="groupID">Group ID that will be associated with the new
15168 purchase</param> 13278 purchase</param>
15169 <param name="categoryID">Inventory folder UUID where the object or objects 13279 <param name="categoryID">Inventory folder UUID where the object or objects
15170 purchased should be placed</param> 13280 purchased should be placed</param>
15171 <example> 13281 <example>
15172 <code> 13282 <code>
15173 BuyObject(Client.Network.CurrentSim, 500, SaleType.Copy, 13283 BuyObject(Client.Network.CurrentSim, 500, SaleType.Copy,
15174 100, UUID.Zero, Client.Self.InventoryRootFolderUUID); 13284 100, UUID.Zero, Client.Self.InventoryRootFolderUUID);
15175 </code> 13285 </code>
15176 </example> 13286 </example>
15177 </member> 13287 </member>
15178 <member name="M:OpenMetaverse.ObjectManager.RequestPayPrice(OpenMetaverse.Simulator,OpenMetaverse.UUID)"> 13288 <member name="M:OpenMetaverse.ObjectManager.RequestPayPrice(OpenMetaverse.Simulator,OpenMetaverse.UUID)">
@@ -15180,104 +13290,120 @@
15180 Request prices that should be displayed in pay dialog. This will triggger the simulator 13290 Request prices that should be displayed in pay dialog. This will triggger the simulator
15181 to send us back a PayPriceReply which can be handled by OnPayPriceReply event 13291 to send us back a PayPriceReply which can be handled by OnPayPriceReply event
15182 </summary> 13292 </summary>
15183 <param name="simulator">The <see cref="T:OpenMetaverse.Simulator"/> the object is located</param> 13293 <param name="simulator">The <see cref="T:OpenMetaverse.Simulator" /> the object is located</param>
15184 <param name="objectID">The ID of the object</param> 13294 <param name="objectID">The ID of the object</param>
15185 <remarks>The result is raised in the <see cref="E:OpenMetaverse.ObjectManager.PayPriceReply"/> event</remarks> 13295 <remarks>The result is raised in the <see cref="E:OpenMetaverse.ObjectManager.PayPriceReply" /> event</remarks>
15186 </member> 13296 </member>
15187 <member name="M:OpenMetaverse.ObjectManager.SelectObject(OpenMetaverse.Simulator,System.UInt32)"> 13297 <member name="M:OpenMetaverse.ObjectManager.SelectObject(OpenMetaverse.Simulator,System.UInt32)">
15188 <summary> 13298 <summary>
15189 Select a single object. This will cause the <see cref="T:OpenMetaverse.Simulator"/> to send us 13299 Select a single object. This will cause the <see cref="T:OpenMetaverse.Simulator" /> to send us
15190 an <see cref="T:OpenMetaverse.Packets.ObjectPropertiesPacket"/> which will raise the <see cref="E:OpenMetaverse.ObjectManager.ObjectProperties"/> event 13300 an <see cref="T:OpenMetaverse.Packets.ObjectPropertiesPacket" /> which will raise the <see cref="E:OpenMetaverse.ObjectManager.ObjectProperties" /> event
15191 </summary> 13301 </summary>
15192 <param name="simulator">The <see cref="T:OpenMetaverse.Simulator"/> the object is located</param> 13302 <param name="simulator">The <see cref="T:OpenMetaverse.Simulator" /> the object is located</param>
15193 <param name="localID">The Local ID of the object</param> 13303 <param name="localID">The Local ID of the object</param>
15194 <seealso cref="T:OpenMetaverse.ObjectPropertiesFamilyEventArgs"/> 13304 <seealso cref="T:OpenMetaverse.ObjectPropertiesFamilyEventArgs" />
15195 </member> 13305 </member>
15196 <member name="M:OpenMetaverse.ObjectManager.SelectObject(OpenMetaverse.Simulator,System.UInt32,System.Boolean)"> 13306 <member name="M:OpenMetaverse.ObjectManager.SelectObject(OpenMetaverse.Simulator,System.UInt32,System.Boolean)">
15197 <summary> 13307 <summary>
15198 Select a single object. This will cause the <see cref="T:OpenMetaverse.Simulator"/> to send us 13308 Select a single object. This will cause the <see cref="T:OpenMetaverse.Simulator" /> to send us
15199 an <see cref="T:OpenMetaverse.Packets.ObjectPropertiesPacket"/> which will raise the <see cref="E:OpenMetaverse.ObjectManager.ObjectProperties"/> event 13309 an <see cref="T:OpenMetaverse.Packets.ObjectPropertiesPacket" /> which will raise the <see cref="E:OpenMetaverse.ObjectManager.ObjectProperties" /> event
15200 </summary> 13310 </summary>
15201 <param name="simulator">The <see cref="T:OpenMetaverse.Simulator"/> the object is located</param> 13311 <param name="simulator">The <see cref="T:OpenMetaverse.Simulator" /> the object is located</param>
15202 <param name="localID">The Local ID of the object</param> 13312 <param name="localID">The Local ID of the object</param>
15203 <param name="automaticDeselect">if true, a call to <see cref="M:OpenMetaverse.ObjectManager.DeselectObject(OpenMetaverse.Simulator,System.UInt32)"/> is 13313 <param name="automaticDeselect">if true, a call to <see cref="M:OpenMetaverse.ObjectManager.DeselectObject(OpenMetaverse.Simulator,System.UInt32)" /> is
15204 made immediately following the request</param> 13314 made immediately following the request</param>
15205 <seealso cref="T:OpenMetaverse.ObjectPropertiesFamilyEventArgs"/> 13315 <seealso cref="T:OpenMetaverse.ObjectPropertiesFamilyEventArgs" />
15206 </member> 13316 </member>
15207 <member name="M:OpenMetaverse.ObjectManager.SelectObjects(OpenMetaverse.Simulator,System.UInt32[],System.Boolean)"> 13317 <member name="M:OpenMetaverse.ObjectManager.SelectObjects(OpenMetaverse.Simulator,System.UInt32[],System.Boolean)">
15208 <summary> 13318 <summary>
15209 Select multiple objects. This will cause the <see cref="T:OpenMetaverse.Simulator"/> to send us 13319 Select multiple objects. This will cause the <see cref="T:OpenMetaverse.Simulator" /> to send us
15210 an <see cref="T:OpenMetaverse.Packets.ObjectPropertiesPacket"/> which will raise the <see cref="E:OpenMetaverse.ObjectManager.ObjectProperties"/> event 13320 an <see cref="T:OpenMetaverse.Packets.ObjectPropertiesPacket" /> which will raise the <see cref="E:OpenMetaverse.ObjectManager.ObjectProperties" /> event
15211 </summary> 13321 </summary>
15212 <param name="simulator">The <see cref="T:OpenMetaverse.Simulator"/> the objects are located</param> 13322 <param name="simulator">The <see cref="T:OpenMetaverse.Simulator" /> the objects are located</param>
15213 <param name="localIDs">An array containing the Local IDs of the objects</param> 13323 <param name="localIDs">An array containing the Local IDs of the objects</param>
15214 <param name="automaticDeselect">Should objects be deselected immediately after selection</param> 13324 <param name="automaticDeselect">Should objects be deselected immediately after selection</param>
15215 <seealso cref="T:OpenMetaverse.ObjectPropertiesFamilyEventArgs"/> 13325 <seealso cref="T:OpenMetaverse.ObjectPropertiesFamilyEventArgs" />
15216 </member> 13326 </member>
15217 <member name="M:OpenMetaverse.ObjectManager.SelectObjects(OpenMetaverse.Simulator,System.UInt32[])"> 13327 <member name="M:OpenMetaverse.ObjectManager.SelectObjects(OpenMetaverse.Simulator,System.UInt32[])">
15218 <summary> 13328 <summary>
15219 Select multiple objects. This will cause the <see cref="T:OpenMetaverse.Simulator"/> to send us 13329 Select multiple objects. This will cause the <see cref="T:OpenMetaverse.Simulator" /> to send us
15220 an <see cref="T:OpenMetaverse.Packets.ObjectPropertiesPacket"/> which will raise the <see cref="E:OpenMetaverse.ObjectManager.ObjectProperties"/> event 13330 an <see cref="T:OpenMetaverse.Packets.ObjectPropertiesPacket" /> which will raise the <see cref="E:OpenMetaverse.ObjectManager.ObjectProperties" /> event
15221 </summary> 13331 </summary>
15222 <param name="simulator">The <see cref="T:OpenMetaverse.Simulator"/> the objects are located</param> 13332 <param name="simulator">The <see cref="T:OpenMetaverse.Simulator" /> the objects are located</param>
15223 <param name="localIDs">An array containing the Local IDs of the objects</param> 13333 <param name="localIDs">An array containing the Local IDs of the objects</param>
15224 <seealso cref="T:OpenMetaverse.ObjectPropertiesFamilyEventArgs"/> 13334 <seealso cref="T:OpenMetaverse.ObjectPropertiesFamilyEventArgs" />
15225 </member> 13335 </member>
15226 <member name="M:OpenMetaverse.ObjectManager.SetFlags(OpenMetaverse.Simulator,System.UInt32,System.Boolean,System.Boolean,System.Boolean,System.Boolean)"> 13336 <member name="M:OpenMetaverse.ObjectManager.SetFlags(OpenMetaverse.Simulator,System.UInt32,System.Boolean,System.Boolean,System.Boolean,System.Boolean)">
15227 <summary> 13337 <summary>
15228 Update the properties of an object 13338 Update the properties of an object
15229 </summary> 13339 </summary>
15230 <param name="simulator">The <see cref="T:OpenMetaverse.Simulator"/> the object is located</param> 13340 <param name="simulator">The <see cref="T:OpenMetaverse.Simulator" /> the object is located</param>
15231 <param name="localID">The Local ID of the object</param> 13341 <param name="localID">The Local ID of the object</param>
13342 <param name="physical">true to turn the objects physical property on</param>
13343 <param name="temporary">true to turn the objects temporary property on</param>
13344 <param name="phantom">true to turn the objects phantom property on</param>
13345 <param name="castsShadow">true to turn the objects cast shadows property on</param>
13346 </member>
13347 <member name="M:OpenMetaverse.ObjectManager.SetFlags(OpenMetaverse.Simulator,System.UInt32,System.Boolean,System.Boolean,System.Boolean,System.Boolean,OpenMetaverse.PhysicsShapeType,System.Single,System.Single,System.Single,System.Single)">
13348 <summary>
13349 Update the properties of an object
13350 </summary>
13351 <param name="simulator">The <see cref="T:OpenMetaverse.Simulator" /> the object is located</param>
13352 <param name="localID">The Local ID of the object</param>
15232 <param name="physical">true to turn the objects physical property on</param> 13353 <param name="physical">true to turn the objects physical property on</param>
15233 <param name="temporary">true to turn the objects temporary property on</param> 13354 <param name="temporary">true to turn the objects temporary property on</param>
15234 <param name="phantom">true to turn the objects phantom property on</param> 13355 <param name="phantom">true to turn the objects phantom property on</param>
15235 <param name="castsShadow">true to turn the objects cast shadows property on</param> 13356 <param name="castsShadow">true to turn the objects cast shadows property on</param>
13357 <param name="physicsType">Type of the represetnation prim will have in the physics engine</param>
13358 <param name="density">Density - normal value 1000</param>
13359 <param name="friction">Friction - normal value 0.6</param>
13360 <param name="restitution">Restitution - standard value 0.5</param>
13361 <param name="gravityMultiplier">Gravity multiplier - standar value 1.0</param>
15236 </member> 13362 </member>
15237 <member name="M:OpenMetaverse.ObjectManager.SetSaleInfo(OpenMetaverse.Simulator,System.UInt32,OpenMetaverse.SaleType,System.Int32)"> 13363 <member name="M:OpenMetaverse.ObjectManager.SetSaleInfo(OpenMetaverse.Simulator,System.UInt32,OpenMetaverse.SaleType,System.Int32)">
15238 <summary> 13364 <summary>
15239 Sets the sale properties of a single object 13365 Sets the sale properties of a single object
15240 </summary> 13366 </summary>
15241 <param name="simulator">The <see cref="T:OpenMetaverse.Simulator"/> the object is located</param> 13367 <param name="simulator">The <see cref="T:OpenMetaverse.Simulator" /> the object is located</param>
15242 <param name="localID">The Local ID of the object</param> 13368 <param name="localID">The Local ID of the object</param>
15243 <param name="saleType">One of the options from the <see cref="T:OpenMetaverse.SaleType"/> enum</param> 13369 <param name="saleType">One of the options from the <see cref="T:OpenMetaverse.SaleType" /> enum</param>
15244 <param name="price">The price of the object</param> 13370 <param name="price">The price of the object</param>
15245 </member> 13371 </member>
15246 <member name="M:OpenMetaverse.ObjectManager.SetSaleInfo(OpenMetaverse.Simulator,System.Collections.Generic.List{System.UInt32},OpenMetaverse.SaleType,System.Int32)"> 13372 <member name="M:OpenMetaverse.ObjectManager.SetSaleInfo(OpenMetaverse.Simulator,System.Collections.Generic.List{System.UInt32},OpenMetaverse.SaleType,System.Int32)">
15247 <summary> 13373 <summary>
15248 Sets the sale properties of multiple objects 13374 Sets the sale properties of multiple objects
15249 </summary> 13375 </summary>
15250 <param name="simulator">The <see cref="T:OpenMetaverse.Simulator"/> the objects are located</param> 13376 <param name="simulator">The <see cref="T:OpenMetaverse.Simulator" /> the objects are located</param>
15251 <param name="localIDs">An array containing the Local IDs of the objects</param> 13377 <param name="localIDs">An array containing the Local IDs of the objects</param>
15252 <param name="saleType">One of the options from the <see cref="T:OpenMetaverse.SaleType"/> enum</param> 13378 <param name="saleType">One of the options from the <see cref="T:OpenMetaverse.SaleType" /> enum</param>
15253 <param name="price">The price of the object</param> 13379 <param name="price">The price of the object</param>
15254 </member> 13380 </member>
15255 <member name="M:OpenMetaverse.ObjectManager.DeselectObject(OpenMetaverse.Simulator,System.UInt32)"> 13381 <member name="M:OpenMetaverse.ObjectManager.DeselectObject(OpenMetaverse.Simulator,System.UInt32)">
15256 <summary> 13382 <summary>
15257 Deselect a single object 13383 Deselect a single object
15258 </summary> 13384 </summary>
15259 <param name="simulator">The <see cref="T:OpenMetaverse.Simulator"/> the object is located</param> 13385 <param name="simulator">The <see cref="T:OpenMetaverse.Simulator" /> the object is located</param>
15260 <param name="localID">The Local ID of the object</param> 13386 <param name="localID">The Local ID of the object</param>
15261 </member> 13387 </member>
15262 <member name="M:OpenMetaverse.ObjectManager.DeselectObjects(OpenMetaverse.Simulator,System.UInt32[])"> 13388 <member name="M:OpenMetaverse.ObjectManager.DeselectObjects(OpenMetaverse.Simulator,System.UInt32[])">
15263 <summary> 13389 <summary>
15264 Deselect multiple objects. 13390 Deselect multiple objects.
15265 </summary> 13391 </summary>
15266 <param name="simulator">The <see cref="T:OpenMetaverse.Simulator"/> the objects are located</param> 13392 <param name="simulator">The <see cref="T:OpenMetaverse.Simulator" /> the objects are located</param>
15267 <param name="localIDs">An array containing the Local IDs of the objects</param> 13393 <param name="localIDs">An array containing the Local IDs of the objects</param>
15268 </member> 13394 </member>
15269 <member name="M:OpenMetaverse.ObjectManager.ClickObject(OpenMetaverse.Simulator,System.UInt32)"> 13395 <member name="M:OpenMetaverse.ObjectManager.ClickObject(OpenMetaverse.Simulator,System.UInt32)">
15270 <summary> 13396 <summary>
15271 Perform a click action on an object 13397 Perform a click action on an object
15272 </summary> 13398 </summary>
15273 <param name="simulator">The <see cref="T:OpenMetaverse.Simulator"/> the object is located</param> 13399 <param name="simulator">The <see cref="T:OpenMetaverse.Simulator" /> the object is located</param>
15274 <param name="localID">The Local ID of the object</param> 13400 <param name="localID">The Local ID of the object</param>
15275 </member> 13401 </member>
15276 <member name="M:OpenMetaverse.ObjectManager.ClickObject(OpenMetaverse.Simulator,System.UInt32,OpenMetaverse.Vector3,OpenMetaverse.Vector3,System.Int32,OpenMetaverse.Vector3,OpenMetaverse.Vector3,OpenMetaverse.Vector3)"> 13402 <member name="M:OpenMetaverse.ObjectManager.ClickObject(OpenMetaverse.Simulator,System.UInt32,OpenMetaverse.Vector3,OpenMetaverse.Vector3,System.Int32,OpenMetaverse.Vector3,OpenMetaverse.Vector3,OpenMetaverse.Vector3)">
15277 <summary> 13403 <summary>
15278 Perform a click action (Grab) on a single object 13404 Perform a click action (Grab) on a single object
15279 </summary> 13405 </summary>
15280 <param name="simulator">The <see cref="T:OpenMetaverse.Simulator"/> the object is located</param> 13406 <param name="simulator">The <see cref="T:OpenMetaverse.Simulator" /> the object is located</param>
15281 <param name="localID">The Local ID of the object</param> 13407 <param name="localID">The Local ID of the object</param>
15282 <param name="uvCoord">The texture coordinates to touch</param> 13408 <param name="uvCoord">The texture coordinates to touch</param>
15283 <param name="stCoord">The surface coordinates to touch</param> 13409 <param name="stCoord">The surface coordinates to touch</param>
@@ -15291,7 +13417,7 @@
15291 <summary> 13417 <summary>
15292 Create (rez) a new prim object in a simulator 13418 Create (rez) a new prim object in a simulator
15293 </summary> 13419 </summary>
15294 <param name="simulator">A reference to the <seealso cref="T:OpenMetaverse.Simulator"/> object to place the object in</param> 13420 <param name="simulator">A reference to the <seealso cref="T:OpenMetaverse.Simulator" /> object to place the object in</param>
15295 <param name="prim">Data describing the prim object to rez</param> 13421 <param name="prim">Data describing the prim object to rez</param>
15296 <param name="groupID">Group ID that this prim will be set to, or UUID.Zero if you 13422 <param name="groupID">Group ID that this prim will be set to, or UUID.Zero if you
15297 do not want the object to be associated with a specific group</param> 13423 do not want the object to be associated with a specific group</param>
@@ -15300,40 +13426,40 @@
15300 <param name="rotation">Rotation quaternion to rotate this prim</param> 13426 <param name="rotation">Rotation quaternion to rotate this prim</param>
15301 <remarks>Due to the way client prim rezzing is done on the server, 13427 <remarks>Due to the way client prim rezzing is done on the server,
15302 the requested position for an object is only close to where the prim 13428 the requested position for an object is only close to where the prim
15303 actually ends up. If you desire exact placement you'll need to 13429 actually ends up. If you desire exact placement you'll need to
15304 follow up by moving the object after it has been created. This 13430 follow up by moving the object after it has been created. This
15305 function will not set textures, light and flexible data, or other 13431 function will not set textures, light and flexible data, or other
15306 extended primitive properties</remarks> 13432 extended primitive properties</remarks>
15307 </member> 13433 </member>
15308 <member name="M:OpenMetaverse.ObjectManager.AddPrim(OpenMetaverse.Simulator,OpenMetaverse.Primitive.ConstructionData,OpenMetaverse.UUID,OpenMetaverse.Vector3,OpenMetaverse.Vector3,OpenMetaverse.Quaternion,OpenMetaverse.PrimFlags)"> 13434 <member name="M:OpenMetaverse.ObjectManager.AddPrim(OpenMetaverse.Simulator,OpenMetaverse.Primitive.ConstructionData,OpenMetaverse.UUID,OpenMetaverse.Vector3,OpenMetaverse.Vector3,OpenMetaverse.Quaternion,OpenMetaverse.PrimFlags)">
15309 <summary> 13435 <summary>
15310 Create (rez) a new prim object in a simulator 13436 Create (rez) a new prim object in a simulator
15311 </summary> 13437 </summary>
15312 <param name="simulator">A reference to the <seealso cref="T:OpenMetaverse.Simulator"/> object to place the object in</param> 13438 <param name="simulator">A reference to the <seealso cref="T:OpenMetaverse.Simulator" /> object to place the object in</param>
15313 <param name="prim">Data describing the prim object to rez</param> 13439 <param name="prim">Data describing the prim object to rez</param>
15314 <param name="groupID">Group ID that this prim will be set to, or UUID.Zero if you 13440 <param name="groupID">Group ID that this prim will be set to, or UUID.Zero if you
15315 do not want the object to be associated with a specific group</param> 13441 do not want the object to be associated with a specific group</param>
15316 <param name="position">An approximation of the position at which to rez the prim</param> 13442 <param name="position">An approximation of the position at which to rez the prim</param>
15317 <param name="scale">Scale vector to size this prim</param> 13443 <param name="scale">Scale vector to size this prim</param>
15318 <param name="rotation">Rotation quaternion to rotate this prim</param> 13444 <param name="rotation">Rotation quaternion to rotate this prim</param>
15319 <param name="createFlags">Specify the <seealso cref="T:OpenMetaverse.PrimFlags"/></param> 13445 <param name="createFlags">Specify the <seealso cref="T:OpenMetaverse.PrimFlags" /></param>
15320 <remarks>Due to the way client prim rezzing is done on the server, 13446 <remarks>Due to the way client prim rezzing is done on the server,
15321 the requested position for an object is only close to where the prim 13447 the requested position for an object is only close to where the prim
15322 actually ends up. If you desire exact placement you'll need to 13448 actually ends up. If you desire exact placement you'll need to
15323 follow up by moving the object after it has been created. This 13449 follow up by moving the object after it has been created. This
15324 function will not set textures, light and flexible data, or other 13450 function will not set textures, light and flexible data, or other
15325 extended primitive properties</remarks> 13451 extended primitive properties</remarks>
15326 </member> 13452 </member>
15327 <member name="M:OpenMetaverse.ObjectManager.AddTree(OpenMetaverse.Simulator,OpenMetaverse.Vector3,OpenMetaverse.Quaternion,OpenMetaverse.Vector3,OpenMetaverse.Tree,OpenMetaverse.UUID,System.Boolean)"> 13453 <member name="M:OpenMetaverse.ObjectManager.AddTree(OpenMetaverse.Simulator,OpenMetaverse.Vector3,OpenMetaverse.Quaternion,OpenMetaverse.Vector3,OpenMetaverse.Tree,OpenMetaverse.UUID,System.Boolean)">
15328 <summary> 13454 <summary>
15329 Rez a Linden tree 13455 Rez a Linden tree
15330 </summary> 13456 </summary>
15331 <param name="simulator">A reference to the <seealso cref="T:OpenMetaverse.Simulator"/> object where the object resides</param> 13457 <param name="simulator">A reference to the <seealso cref="T:OpenMetaverse.Simulator" /> object where the object resides</param>
15332 <param name="scale">The size of the tree</param> 13458 <param name="scale">The size of the tree</param>
15333 <param name="rotation">The rotation of the tree</param> 13459 <param name="rotation">The rotation of the tree</param>
15334 <param name="position">The position of the tree</param> 13460 <param name="position">The position of the tree</param>
15335 <param name="treeType">The Type of tree</param> 13461 <param name="treeType">The Type of tree</param>
15336 <param name="groupOwner">The <seealso cref="T:OpenMetaverse.UUID"/> of the group to set the tree to, 13462 <param name="groupOwner">The <seealso cref="T:OpenMetaverse.UUID" /> of the group to set the tree to,
15337 or UUID.Zero if no group is to be set</param> 13463 or UUID.Zero if no group is to be set</param>
15338 <param name="newTree">true to use the "new" Linden trees, false to use the old</param> 13464 <param name="newTree">true to use the "new" Linden trees, false to use the old</param>
15339 </member> 13465 </member>
@@ -15341,19 +13467,19 @@
15341 <summary> 13467 <summary>
15342 Rez grass and ground cover 13468 Rez grass and ground cover
15343 </summary> 13469 </summary>
15344 <param name="simulator">A reference to the <seealso cref="T:OpenMetaverse.Simulator"/> object where the object resides</param> 13470 <param name="simulator">A reference to the <seealso cref="T:OpenMetaverse.Simulator" /> object where the object resides</param>
15345 <param name="scale">The size of the grass</param> 13471 <param name="scale">The size of the grass</param>
15346 <param name="rotation">The rotation of the grass</param> 13472 <param name="rotation">The rotation of the grass</param>
15347 <param name="position">The position of the grass</param> 13473 <param name="position">The position of the grass</param>
15348 <param name="grassType">The type of grass from the <seealso cref="T:OpenMetaverse.Grass"/> enum</param> 13474 <param name="grassType">The type of grass from the <seealso cref="T:OpenMetaverse.Grass" /> enum</param>
15349 <param name="groupOwner">The <seealso cref="T:OpenMetaverse.UUID"/> of the group to set the tree to, 13475 <param name="groupOwner">The <seealso cref="T:OpenMetaverse.UUID" /> of the group to set the tree to,
15350 or UUID.Zero if no group is to be set</param> 13476 or UUID.Zero if no group is to be set</param>
15351 </member> 13477 </member>
15352 <member name="M:OpenMetaverse.ObjectManager.SetTextures(OpenMetaverse.Simulator,System.UInt32,OpenMetaverse.Primitive.TextureEntry)"> 13478 <member name="M:OpenMetaverse.ObjectManager.SetTextures(OpenMetaverse.Simulator,System.UInt32,OpenMetaverse.Primitive.TextureEntry)">
15353 <summary> 13479 <summary>
15354 Set the textures to apply to the faces of an object 13480 Set the textures to apply to the faces of an object
15355 </summary> 13481 </summary>
15356 <param name="simulator">A reference to the <seealso cref="T:OpenMetaverse.Simulator"/> object where the object resides</param> 13482 <param name="simulator">A reference to the <seealso cref="T:OpenMetaverse.Simulator" /> object where the object resides</param>
15357 <param name="localID">The objects ID which is local to the simulator the object is in</param> 13483 <param name="localID">The objects ID which is local to the simulator the object is in</param>
15358 <param name="textures">The texture data to apply</param> 13484 <param name="textures">The texture data to apply</param>
15359 </member> 13485 </member>
@@ -15361,7 +13487,7 @@
15361 <summary> 13487 <summary>
15362 Set the textures to apply to the faces of an object 13488 Set the textures to apply to the faces of an object
15363 </summary> 13489 </summary>
15364 <param name="simulator">A reference to the <seealso cref="T:OpenMetaverse.Simulator"/> object where the object resides</param> 13490 <param name="simulator">A reference to the <seealso cref="T:OpenMetaverse.Simulator" /> object where the object resides</param>
15365 <param name="localID">The objects ID which is local to the simulator the object is in</param> 13491 <param name="localID">The objects ID which is local to the simulator the object is in</param>
15366 <param name="textures">The texture data to apply</param> 13492 <param name="textures">The texture data to apply</param>
15367 <param name="mediaUrl">A media URL (not used)</param> 13493 <param name="mediaUrl">A media URL (not used)</param>
@@ -15370,31 +13496,31 @@
15370 <summary> 13496 <summary>
15371 Set the Light data on an object 13497 Set the Light data on an object
15372 </summary> 13498 </summary>
15373 <param name="simulator">A reference to the <seealso cref="T:OpenMetaverse.Simulator"/> object where the object resides</param> 13499 <param name="simulator">A reference to the <seealso cref="T:OpenMetaverse.Simulator" /> object where the object resides</param>
15374 <param name="localID">The objects ID which is local to the simulator the object is in</param> 13500 <param name="localID">The objects ID which is local to the simulator the object is in</param>
15375 <param name="light">A <seealso cref="T:OpenMetaverse.Primitive.LightData"/> object containing the data to set</param> 13501 <param name="light">A <seealso cref="T:OpenMetaverse.Primitive.LightData" /> object containing the data to set</param>
15376 </member> 13502 </member>
15377 <member name="M:OpenMetaverse.ObjectManager.SetFlexible(OpenMetaverse.Simulator,System.UInt32,OpenMetaverse.Primitive.FlexibleData)"> 13503 <member name="M:OpenMetaverse.ObjectManager.SetFlexible(OpenMetaverse.Simulator,System.UInt32,OpenMetaverse.Primitive.FlexibleData)">
15378 <summary> 13504 <summary>
15379 Set the flexible data on an object 13505 Set the flexible data on an object
15380 </summary> 13506 </summary>
15381 <param name="simulator">A reference to the <seealso cref="T:OpenMetaverse.Simulator"/> object where the object resides</param> 13507 <param name="simulator">A reference to the <seealso cref="T:OpenMetaverse.Simulator" /> object where the object resides</param>
15382 <param name="localID">The objects ID which is local to the simulator the object is in</param> 13508 <param name="localID">The objects ID which is local to the simulator the object is in</param>
15383 <param name="flexible">A <seealso cref="T:OpenMetaverse.Primitive.FlexibleData"/> object containing the data to set</param> 13509 <param name="flexible">A <seealso cref="T:OpenMetaverse.Primitive.FlexibleData" /> object containing the data to set</param>
15384 </member> 13510 </member>
15385 <member name="M:OpenMetaverse.ObjectManager.SetSculpt(OpenMetaverse.Simulator,System.UInt32,OpenMetaverse.Primitive.SculptData)"> 13511 <member name="M:OpenMetaverse.ObjectManager.SetSculpt(OpenMetaverse.Simulator,System.UInt32,OpenMetaverse.Primitive.SculptData)">
15386 <summary> 13512 <summary>
15387 Set the sculptie texture and data on an object 13513 Set the sculptie texture and data on an object
15388 </summary> 13514 </summary>
15389 <param name="simulator">A reference to the <seealso cref="T:OpenMetaverse.Simulator"/> object where the object resides</param> 13515 <param name="simulator">A reference to the <seealso cref="T:OpenMetaverse.Simulator" /> object where the object resides</param>
15390 <param name="localID">The objects ID which is local to the simulator the object is in</param> 13516 <param name="localID">The objects ID which is local to the simulator the object is in</param>
15391 <param name="sculpt">A <seealso cref="T:OpenMetaverse.Primitive.SculptData"/> object containing the data to set</param> 13517 <param name="sculpt">A <seealso cref="T:OpenMetaverse.Primitive.SculptData" /> object containing the data to set</param>
15392 </member> 13518 </member>
15393 <member name="M:OpenMetaverse.ObjectManager.SetExtraParamOff(OpenMetaverse.Simulator,System.UInt32,OpenMetaverse.ExtraParamType)"> 13519 <member name="M:OpenMetaverse.ObjectManager.SetExtraParamOff(OpenMetaverse.Simulator,System.UInt32,OpenMetaverse.ExtraParamType)">
15394 <summary> 13520 <summary>
15395 Unset additional primitive parameters on an object 13521 Unset additional primitive parameters on an object
15396 </summary> 13522 </summary>
15397 <param name="simulator">A reference to the <seealso cref="T:OpenMetaverse.Simulator"/> object where the object resides</param> 13523 <param name="simulator">A reference to the <seealso cref="T:OpenMetaverse.Simulator" /> object where the object resides</param>
15398 <param name="localID">The objects ID which is local to the simulator the object is in</param> 13524 <param name="localID">The objects ID which is local to the simulator the object is in</param>
15399 <param name="type">The extra parameters to set</param> 13525 <param name="type">The extra parameters to set</param>
15400 </member> 13526 </member>
@@ -15402,7 +13528,7 @@
15402 <summary> 13528 <summary>
15403 Link multiple prims into a linkset 13529 Link multiple prims into a linkset
15404 </summary> 13530 </summary>
15405 <param name="simulator">A reference to the <seealso cref="T:OpenMetaverse.Simulator"/> object where the objects reside</param> 13531 <param name="simulator">A reference to the <seealso cref="T:OpenMetaverse.Simulator" /> object where the objects reside</param>
15406 <param name="localIDs">An array which contains the IDs of the objects to link</param> 13532 <param name="localIDs">An array which contains the IDs of the objects to link</param>
15407 <remarks>The last object in the array will be the root object of the linkset TODO: Is this true?</remarks> 13533 <remarks>The last object in the array will be the root object of the linkset TODO: Is this true?</remarks>
15408 </member> 13534 </member>
@@ -15410,14 +13536,14 @@
15410 <summary> 13536 <summary>
15411 Delink/Unlink multiple prims from a linkset 13537 Delink/Unlink multiple prims from a linkset
15412 </summary> 13538 </summary>
15413 <param name="simulator">A reference to the <seealso cref="T:OpenMetaverse.Simulator"/> object where the objects reside</param> 13539 <param name="simulator">A reference to the <seealso cref="T:OpenMetaverse.Simulator" /> object where the objects reside</param>
15414 <param name="localIDs">An array which contains the IDs of the objects to delink</param> 13540 <param name="localIDs">An array which contains the IDs of the objects to delink</param>
15415 </member> 13541 </member>
15416 <member name="M:OpenMetaverse.ObjectManager.SetRotation(OpenMetaverse.Simulator,System.UInt32,OpenMetaverse.Quaternion)"> 13542 <member name="M:OpenMetaverse.ObjectManager.SetRotation(OpenMetaverse.Simulator,System.UInt32,OpenMetaverse.Quaternion)">
15417 <summary> 13543 <summary>
15418 Change the rotation of an object 13544 Change the rotation of an object
15419 </summary> 13545 </summary>
15420 <param name="simulator">A reference to the <seealso cref="T:OpenMetaverse.Simulator"/> object where the object resides</param> 13546 <param name="simulator">A reference to the <seealso cref="T:OpenMetaverse.Simulator" /> object where the object resides</param>
15421 <param name="localID">The objects ID which is local to the simulator the object is in</param> 13547 <param name="localID">The objects ID which is local to the simulator the object is in</param>
15422 <param name="rotation">The new rotation of the object</param> 13548 <param name="rotation">The new rotation of the object</param>
15423 </member> 13549 </member>
@@ -15425,7 +13551,7 @@
15425 <summary> 13551 <summary>
15426 Set the name of an object 13552 Set the name of an object
15427 </summary> 13553 </summary>
15428 <param name="simulator">A reference to the <seealso cref="T:OpenMetaverse.Simulator"/> object where the object resides</param> 13554 <param name="simulator">A reference to the <seealso cref="T:OpenMetaverse.Simulator" /> object where the object resides</param>
15429 <param name="localID">The objects ID which is local to the simulator the object is in</param> 13555 <param name="localID">The objects ID which is local to the simulator the object is in</param>
15430 <param name="name">A string containing the new name of the object</param> 13556 <param name="name">A string containing the new name of the object</param>
15431 </member> 13557 </member>
@@ -15433,7 +13559,7 @@
15433 <summary> 13559 <summary>
15434 Set the name of multiple objects 13560 Set the name of multiple objects
15435 </summary> 13561 </summary>
15436 <param name="simulator">A reference to the <seealso cref="T:OpenMetaverse.Simulator"/> object where the objects reside</param> 13562 <param name="simulator">A reference to the <seealso cref="T:OpenMetaverse.Simulator" /> object where the objects reside</param>
15437 <param name="localIDs">An array which contains the IDs of the objects to change the name of</param> 13563 <param name="localIDs">An array which contains the IDs of the objects to change the name of</param>
15438 <param name="names">An array which contains the new names of the objects</param> 13564 <param name="names">An array which contains the new names of the objects</param>
15439 </member> 13565 </member>
@@ -15441,7 +13567,7 @@
15441 <summary> 13567 <summary>
15442 Set the description of an object 13568 Set the description of an object
15443 </summary> 13569 </summary>
15444 <param name="simulator">A reference to the <seealso cref="T:OpenMetaverse.Simulator"/> object where the object resides</param> 13570 <param name="simulator">A reference to the <seealso cref="T:OpenMetaverse.Simulator" /> object where the object resides</param>
15445 <param name="localID">The objects ID which is local to the simulator the object is in</param> 13571 <param name="localID">The objects ID which is local to the simulator the object is in</param>
15446 <param name="description">A string containing the new description of the object</param> 13572 <param name="description">A string containing the new description of the object</param>
15447 </member> 13573 </member>
@@ -15449,7 +13575,7 @@
15449 <summary> 13575 <summary>
15450 Set the descriptions of multiple objects 13576 Set the descriptions of multiple objects
15451 </summary> 13577 </summary>
15452 <param name="simulator">A reference to the <seealso cref="T:OpenMetaverse.Simulator"/> object where the objects reside</param> 13578 <param name="simulator">A reference to the <seealso cref="T:OpenMetaverse.Simulator" /> object where the objects reside</param>
15453 <param name="localIDs">An array which contains the IDs of the objects to change the description of</param> 13579 <param name="localIDs">An array which contains the IDs of the objects to change the description of</param>
15454 <param name="descriptions">An array which contains the new descriptions of the objects</param> 13580 <param name="descriptions">An array which contains the new descriptions of the objects</param>
15455 </member> 13581 </member>
@@ -15457,7 +13583,7 @@
15457 <summary> 13583 <summary>
15458 Attach an object to this avatar 13584 Attach an object to this avatar
15459 </summary> 13585 </summary>
15460 <param name="simulator">A reference to the <seealso cref="T:OpenMetaverse.Simulator"/> object where the object resides</param> 13586 <param name="simulator">A reference to the <seealso cref="T:OpenMetaverse.Simulator" /> object where the object resides</param>
15461 <param name="localID">The objects ID which is local to the simulator the object is in</param> 13587 <param name="localID">The objects ID which is local to the simulator the object is in</param>
15462 <param name="attachPoint">The point on the avatar the object will be attached</param> 13588 <param name="attachPoint">The point on the avatar the object will be attached</param>
15463 <param name="rotation">The rotation of the attached object</param> 13589 <param name="rotation">The rotation of the attached object</param>
@@ -15466,7 +13592,7 @@
15466 <summary> 13592 <summary>
15467 Drop an attached object from this avatar 13593 Drop an attached object from this avatar
15468 </summary> 13594 </summary>
15469 <param name="simulator">A reference to the <seealso cref="T:OpenMetaverse.Simulator"/> 13595 <param name="simulator">A reference to the <seealso cref="T:OpenMetaverse.Simulator" />
15470 object where the objects reside. This will always be the simulator the avatar is currently in 13596 object where the objects reside. This will always be the simulator the avatar is currently in
15471 </param> 13597 </param>
15472 <param name="localID">The object's ID which is local to the simulator the object is in</param> 13598 <param name="localID">The object's ID which is local to the simulator the object is in</param>
@@ -15475,9 +13601,8 @@
15475 <summary> 13601 <summary>
15476 Detach an object from yourself 13602 Detach an object from yourself
15477 </summary> 13603 </summary>
15478 <param name="simulator">A reference to the <seealso cref="T:OpenMetaverse.Simulator"/> 13604 <param name="simulator">A reference to the <seealso cref="T:OpenMetaverse.Simulator" />
15479 object where the objects reside 13605 object where the objects reside
15480
15481 This will always be the simulator the avatar is currently in 13606 This will always be the simulator the avatar is currently in
15482 </param> 13607 </param>
15483 <param name="localIDs">An array which contains the IDs of the objects to detach</param> 13608 <param name="localIDs">An array which contains the IDs of the objects to detach</param>
@@ -15486,7 +13611,7 @@
15486 <summary> 13611 <summary>
15487 Change the position of an object, Will change position of entire linkset 13612 Change the position of an object, Will change position of entire linkset
15488 </summary> 13613 </summary>
15489 <param name="simulator">A reference to the <seealso cref="T:OpenMetaverse.Simulator"/> object where the object resides</param> 13614 <param name="simulator">A reference to the <seealso cref="T:OpenMetaverse.Simulator" /> object where the object resides</param>
15490 <param name="localID">The objects ID which is local to the simulator the object is in</param> 13615 <param name="localID">The objects ID which is local to the simulator the object is in</param>
15491 <param name="position">The new position of the object</param> 13616 <param name="position">The new position of the object</param>
15492 </member> 13617 </member>
@@ -15494,7 +13619,7 @@
15494 <summary> 13619 <summary>
15495 Change the position of an object 13620 Change the position of an object
15496 </summary> 13621 </summary>
15497 <param name="simulator">A reference to the <seealso cref="T:OpenMetaverse.Simulator"/> object where the object resides</param> 13622 <param name="simulator">A reference to the <seealso cref="T:OpenMetaverse.Simulator" /> object where the object resides</param>
15498 <param name="localID">The objects ID which is local to the simulator the object is in</param> 13623 <param name="localID">The objects ID which is local to the simulator the object is in</param>
15499 <param name="position">The new position of the object</param> 13624 <param name="position">The new position of the object</param>
15500 <param name="childOnly">if true, will change position of (this) child prim only, not entire linkset</param> 13625 <param name="childOnly">if true, will change position of (this) child prim only, not entire linkset</param>
@@ -15503,7 +13628,7 @@
15503 <summary> 13628 <summary>
15504 Change the Scale (size) of an object 13629 Change the Scale (size) of an object
15505 </summary> 13630 </summary>
15506 <param name="simulator">A reference to the <seealso cref="T:OpenMetaverse.Simulator"/> object where the object resides</param> 13631 <param name="simulator">A reference to the <seealso cref="T:OpenMetaverse.Simulator" /> object where the object resides</param>
15507 <param name="localID">The objects ID which is local to the simulator the object is in</param> 13632 <param name="localID">The objects ID which is local to the simulator the object is in</param>
15508 <param name="scale">The new scale of the object</param> 13633 <param name="scale">The new scale of the object</param>
15509 <param name="childOnly">If true, will change scale of this prim only, not entire linkset</param> 13634 <param name="childOnly">If true, will change scale of this prim only, not entire linkset</param>
@@ -15513,7 +13638,7 @@
15513 <summary> 13638 <summary>
15514 Change the Rotation of an object that is either a child or a whole linkset 13639 Change the Rotation of an object that is either a child or a whole linkset
15515 </summary> 13640 </summary>
15516 <param name="simulator">A reference to the <seealso cref="T:OpenMetaverse.Simulator"/> object where the object resides</param> 13641 <param name="simulator">A reference to the <seealso cref="T:OpenMetaverse.Simulator" /> object where the object resides</param>
15517 <param name="localID">The objects ID which is local to the simulator the object is in</param> 13642 <param name="localID">The objects ID which is local to the simulator the object is in</param>
15518 <param name="quat">The new scale of the object</param> 13643 <param name="quat">The new scale of the object</param>
15519 <param name="childOnly">If true, will change rotation of this prim only, not entire linkset</param> 13644 <param name="childOnly">If true, will change rotation of this prim only, not entire linkset</param>
@@ -15522,51 +13647,52 @@
15522 <summary> 13647 <summary>
15523 Send a Multiple Object Update packet to change the size, scale or rotation of a primitive 13648 Send a Multiple Object Update packet to change the size, scale or rotation of a primitive
15524 </summary> 13649 </summary>
15525 <param name="simulator">A reference to the <seealso cref="T:OpenMetaverse.Simulator"/> object where the object resides</param> 13650 <param name="simulator">A reference to the <seealso cref="T:OpenMetaverse.Simulator" /> object where the object resides</param>
15526 <param name="localID">The objects ID which is local to the simulator the object is in</param> 13651 <param name="localID">The objects ID which is local to the simulator the object is in</param>
15527 <param name="data">The new rotation, size, or position of the target object</param> 13652 <param name="data">The new rotation, size, or position of the target object</param>
15528 <param name="type">The flags from the <seealso cref="T:OpenMetaverse.UpdateType"/> Enum</param> 13653 <param name="type">The flags from the <seealso cref="T:OpenMetaverse.UpdateType" /> Enum</param>
15529 </member> 13654 </member>
15530 <member name="M:OpenMetaverse.ObjectManager.DeedObject(OpenMetaverse.Simulator,System.UInt32,OpenMetaverse.UUID)"> 13655 <member name="M:OpenMetaverse.ObjectManager.DeedObject(OpenMetaverse.Simulator,System.UInt32,OpenMetaverse.UUID)">
15531 <summary> 13656 <summary>
15532 Deed an object (prim) to a group, Object must be shared with group which 13657 Deed an object (prim) to a group, Object must be shared with group which
15533 can be accomplished with SetPermissions() 13658 can be accomplished with SetPermissions()
15534 </summary> 13659 </summary>
15535 <param name="simulator">A reference to the <seealso cref="T:OpenMetaverse.Simulator"/> object where the object resides</param> 13660 <param name="simulator">A reference to the <seealso cref="T:OpenMetaverse.Simulator" /> object where the object resides</param>
15536 <param name="localID">The objects ID which is local to the simulator the object is in</param> 13661 <param name="localID">The objects ID which is local to the simulator the object is in</param>
15537 <param name="groupOwner">The <seealso cref="T:OpenMetaverse.UUID"/> of the group to deed the object to</param> 13662 <param name="groupOwner">The <seealso cref="T:OpenMetaverse.UUID" /> of the group to deed the object to</param>
15538 </member> 13663 </member>
15539 <member name="M:OpenMetaverse.ObjectManager.DeedObjects(OpenMetaverse.Simulator,System.Collections.Generic.List{System.UInt32},OpenMetaverse.UUID)"> 13664 <member name="M:OpenMetaverse.ObjectManager.DeedObjects(OpenMetaverse.Simulator,System.Collections.Generic.List{System.UInt32},OpenMetaverse.UUID)">
15540 <summary> 13665 <summary>
15541 Deed multiple objects (prims) to a group, Objects must be shared with group which 13666 Deed multiple objects (prims) to a group, Objects must be shared with group which
15542 can be accomplished with SetPermissions() 13667 can be accomplished with SetPermissions()
15543 </summary> 13668 </summary>
15544 <param name="simulator">A reference to the <seealso cref="T:OpenMetaverse.Simulator"/> object where the object resides</param> 13669 <param name="simulator">A reference to the <seealso cref="T:OpenMetaverse.Simulator" /> object where the object resides</param>
15545 <param name="localIDs">An array which contains the IDs of the objects to deed</param> 13670 <param name="localIDs">An array which contains the IDs of the objects to deed</param>
15546 <param name="groupOwner">The <seealso cref="T:OpenMetaverse.UUID"/> of the group to deed the object to</param> 13671 <param name="groupOwner">The <seealso cref="T:OpenMetaverse.UUID" /> of the group to deed the object to</param>
15547 </member> 13672 </member>
15548 <member name="M:OpenMetaverse.ObjectManager.SetPermissions(OpenMetaverse.Simulator,System.Collections.Generic.List{System.UInt32},OpenMetaverse.PermissionWho,OpenMetaverse.PermissionMask,System.Boolean)"> 13673 <member name="M:OpenMetaverse.ObjectManager.SetPermissions(OpenMetaverse.Simulator,System.Collections.Generic.List{System.UInt32},OpenMetaverse.PermissionWho,OpenMetaverse.PermissionMask,System.Boolean)">
15549 <summary> 13674 <summary>
15550 Set the permissions on multiple objects 13675 Set the permissions on multiple objects
15551 </summary> 13676 </summary>
15552 <param name="simulator">A reference to the <seealso cref="T:OpenMetaverse.Simulator"/> object where the objects reside</param> 13677 <param name="simulator">A reference to the <seealso cref="T:OpenMetaverse.Simulator" /> object where the objects reside</param>
15553 <param name="localIDs">An array which contains the IDs of the objects to set the permissions on</param> 13678 <param name="localIDs">An array which contains the IDs of the objects to set the permissions on</param>
15554 <param name="who">The new Who mask to set</param> 13679 <param name="who">The new Who mask to set</param>
15555 <param name="permissions">The new Permissions mark to set</param> 13680 <param name="permissions">Which permission to modify</param>
15556 <param name="set">TODO: What does this do?</param> 13681 <param name="set">The new state of permission</param>
15557 </member> 13682 </member>
15558 <member name="M:OpenMetaverse.ObjectManager.RequestObjectPropertiesFamily(OpenMetaverse.Simulator,OpenMetaverse.UUID)"> 13683 <member name="M:OpenMetaverse.ObjectManager.RequestObjectPropertiesFamily(OpenMetaverse.Simulator,OpenMetaverse.UUID)">
15559 <summary> 13684 <summary>
15560 Request additional properties for an object 13685 Request additional properties for an object
15561 </summary> 13686 </summary>
15562 <param name="simulator">A reference to the <seealso cref="T:OpenMetaverse.Simulator"/> object where the object resides</param> 13687 <param name="simulator">A reference to the <seealso cref="T:OpenMetaverse.Simulator" /> object where the object resides</param>
15563 <param name="objectID"></param> 13688 <param name="objectID">
13689 </param>
15564 </member> 13690 </member>
15565 <member name="M:OpenMetaverse.ObjectManager.RequestObjectPropertiesFamily(OpenMetaverse.Simulator,OpenMetaverse.UUID,System.Boolean)"> 13691 <member name="M:OpenMetaverse.ObjectManager.RequestObjectPropertiesFamily(OpenMetaverse.Simulator,OpenMetaverse.UUID,System.Boolean)">
15566 <summary> 13692 <summary>
15567 Request additional properties for an object 13693 Request additional properties for an object
15568 </summary> 13694 </summary>
15569 <param name="simulator">A reference to the <seealso cref="T:OpenMetaverse.Simulator"/> object where the object resides</param> 13695 <param name="simulator">A reference to the <seealso cref="T:OpenMetaverse.Simulator" /> object where the object resides</param>
15570 <param name="objectID">Absolute UUID of the object</param> 13696 <param name="objectID">Absolute UUID of the object</param>
15571 <param name="reliable">Whether to require server acknowledgement of this request</param> 13697 <param name="reliable">Whether to require server acknowledgement of this request</param>
15572 </member> 13698 </member>
@@ -15574,7 +13700,7 @@
15574 <summary> 13700 <summary>
15575 Set the ownership of a list of objects to the specified group 13701 Set the ownership of a list of objects to the specified group
15576 </summary> 13702 </summary>
15577 <param name="simulator">A reference to the <seealso cref="T:OpenMetaverse.Simulator"/> object where the objects reside</param> 13703 <param name="simulator">A reference to the <seealso cref="T:OpenMetaverse.Simulator" /> object where the objects reside</param>
15578 <param name="localIds">An array which contains the IDs of the objects to set the group id on</param> 13704 <param name="localIds">An array which contains the IDs of the objects to set the group id on</param>
15579 <param name="groupID">The Groups ID</param> 13705 <param name="groupID">The Groups ID</param>
15580 </member> 13706 </member>
@@ -15593,7 +13719,7 @@
15593 </summary> 13719 </summary>
15594 <param name="primID">UUID of the prim</param> 13720 <param name="primID">UUID of the prim</param>
15595 <param name="faceMedia">Array the length of prims number of faces. Null on face indexes where there is 13721 <param name="faceMedia">Array the length of prims number of faces. Null on face indexes where there is
15596 no media, <seealso cref="T:OpenMetaverse.MediaEntry"/> on faces which contain the media</param> 13722 no media, <seealso cref="T:OpenMetaverse.MediaEntry" /> on faces which contain the media</param>
15597 <param name="sim">Simulatior in which prim is located</param> 13723 <param name="sim">Simulatior in which prim is located</param>
15598 </member> 13724 </member>
15599 <member name="M:OpenMetaverse.ObjectManager.RequestObjectMedia(OpenMetaverse.UUID,OpenMetaverse.Simulator,OpenMetaverse.ObjectManager.ObjectMediaCallback)"> 13725 <member name="M:OpenMetaverse.ObjectManager.RequestObjectMedia(OpenMetaverse.UUID,OpenMetaverse.Simulator,OpenMetaverse.ObjectManager.ObjectMediaCallback)">
@@ -15648,34 +13774,48 @@
15648 <param name="sender">The sender</param> 13774 <param name="sender">The sender</param>
15649 <param name="e">The EventArgs object containing the packet data</param> 13775 <param name="e">The EventArgs object containing the packet data</param>
15650 </member> 13776 </member>
13777 <member name="M:OpenMetaverse.ObjectManager.ObjectPhysicsPropertiesHandler(System.String,OpenMetaverse.Interfaces.IMessage,OpenMetaverse.Simulator)">
13778 <summary>
13779 </summary>
13780 <param name="capsKey">
13781 </param>
13782 <param name="message">
13783 </param>
13784 <param name="simulator">
13785 </param>
13786 </member>
15651 <member name="M:OpenMetaverse.ObjectManager.BuildBasicShape(OpenMetaverse.PrimType)"> 13787 <member name="M:OpenMetaverse.ObjectManager.BuildBasicShape(OpenMetaverse.PrimType)">
15652 <summary> 13788 <summary>
15653 Setup construction data for a basic primitive shape 13789 Setup construction data for a basic primitive shape
15654 </summary> 13790 </summary>
15655 <param name="type">Primitive shape to construct</param> 13791 <param name="type">Primitive shape to construct</param>
15656 <returns>Construction data that can be plugged into a <seealso cref="T:OpenMetaverse.Primitive"/></returns> 13792 <returns>Construction data that can be plugged into a <seealso cref="T:OpenMetaverse.Primitive" /></returns>
15657 </member> 13793 </member>
15658 <member name="M:OpenMetaverse.ObjectManager.SetAvatarSittingOn(OpenMetaverse.Simulator,OpenMetaverse.Avatar,System.UInt32,System.UInt32)"> 13794 <member name="M:OpenMetaverse.ObjectManager.SetAvatarSittingOn(OpenMetaverse.Simulator,OpenMetaverse.Avatar,System.UInt32,System.UInt32)">
15659 <summary> 13795 <summary>
15660
15661 </summary> 13796 </summary>
15662 <param name="sim"></param> 13797 <param name="sim">
15663 <param name="av"></param> 13798 </param>
15664 <param name="localid"></param> 13799 <param name="av">
15665 <param name="oldSeatID"></param> 13800 </param>
13801 <param name="localid">
13802 </param>
13803 <param name="oldSeatID">
13804 </param>
15666 </member> 13805 </member>
15667 <member name="M:OpenMetaverse.ObjectManager.UpdateDilation(OpenMetaverse.Simulator,System.UInt32)"> 13806 <member name="M:OpenMetaverse.ObjectManager.UpdateDilation(OpenMetaverse.Simulator,System.UInt32)">
15668 <summary> 13807 <summary>
15669
15670 </summary> 13808 </summary>
15671 <param name="s"></param> 13809 <param name="s">
15672 <param name="dilation"></param> 13810 </param>
13811 <param name="dilation">
13812 </param>
15673 </member> 13813 </member>
15674 <member name="M:OpenMetaverse.ObjectManager.SetShape(OpenMetaverse.Simulator,System.UInt32,OpenMetaverse.Primitive.ConstructionData)"> 13814 <member name="M:OpenMetaverse.ObjectManager.SetShape(OpenMetaverse.Simulator,System.UInt32,OpenMetaverse.Primitive.ConstructionData)">
15675 <summary> 13815 <summary>
15676 Set the Shape data of an object 13816 Set the Shape data of an object
15677 </summary> 13817 </summary>
15678 <param name="simulator">A reference to the <seealso cref="T:OpenMetaverse.Simulator"/> object where the object resides</param> 13818 <param name="simulator">A reference to the <seealso cref="T:OpenMetaverse.Simulator" /> object where the object resides</param>
15679 <param name="localID">The objects ID which is local to the simulator the object is in</param> 13819 <param name="localID">The objects ID which is local to the simulator the object is in</param>
15680 <param name="prim">Data describing the prim shape</param> 13820 <param name="prim">Data describing the prim shape</param>
15681 </member> 13821 </member>
@@ -15683,107 +13823,58 @@
15683 <summary> 13823 <summary>
15684 Set the Material data of an object 13824 Set the Material data of an object
15685 </summary> 13825 </summary>
15686 <param name="simulator">A reference to the <seealso cref="T:OpenMetaverse.Simulator"/> object where the object resides</param> 13826 <param name="simulator">A reference to the <seealso cref="T:OpenMetaverse.Simulator" /> object where the object resides</param>
15687 <param name="localID">The objects ID which is local to the simulator the object is in</param> 13827 <param name="localID">The objects ID which is local to the simulator the object is in</param>
15688 <param name="material">The new material of the object</param> 13828 <param name="material">The new material of the object</param>
15689 </member> 13829 </member>
15690 <member name="M:OpenMetaverse.ObjectManager.GetPrimitive(OpenMetaverse.Simulator,System.UInt32,OpenMetaverse.UUID)"> 13830 <member name="M:OpenMetaverse.ObjectManager.GetPrimitive(OpenMetaverse.Simulator,System.UInt32,OpenMetaverse.UUID)">
15691 <summary> 13831 <summary>
15692
15693 </summary> 13832 </summary>
15694 <param name="simulator"></param> 13833 <param name="simulator">
15695 <param name="localID"></param> 13834 </param>
15696 <param name="fullID"></param> 13835 <param name="localID">
15697 <returns></returns> 13836 </param>
13837 <param name="fullID">
13838 </param>
13839 <returns>
13840 </returns>
15698 </member> 13841 </member>
15699 <member name="M:OpenMetaverse.ObjectManager.GetAvatar(OpenMetaverse.Simulator,System.UInt32,OpenMetaverse.UUID)"> 13842 <member name="M:OpenMetaverse.ObjectManager.GetAvatar(OpenMetaverse.Simulator,System.UInt32,OpenMetaverse.UUID)">
15700 <summary> 13843 <summary>
15701
15702 </summary>
15703 <param name="simulator"></param>
15704 <param name="localID"></param>
15705 <param name="fullID"></param>
15706 <returns></returns>
15707 </member>
15708 <member name="E:OpenMetaverse.ObjectManager.ObjectUpdate">
15709 <summary>Raised when the simulator sends us data containing
15710 A <see cref="T:OpenMetaverse.Primitive"/>, Foliage or Attachment</summary>
15711 <seealso cref="M:OpenMetaverse.ObjectManager.RequestObject(OpenMetaverse.Simulator,System.UInt32)"/>
15712 <seealso cref="M:OpenMetaverse.ObjectManager.RequestObjects(OpenMetaverse.Simulator,System.Collections.Generic.List{System.UInt32})"/>
15713 </member>
15714 <member name="E:OpenMetaverse.ObjectManager.ObjectProperties">
15715 <summary>Raised when the simulator sends us data containing
15716 additional <seea cref="T:OpenMetaverse.Primitive"/> information</summary>
15717 <seealso cref="M:OpenMetaverse.ObjectManager.SelectObject(OpenMetaverse.Simulator,System.UInt32)"/>
15718 <seealso cref="M:OpenMetaverse.ObjectManager.SelectObjects(OpenMetaverse.Simulator,System.UInt32[],System.Boolean)"/>
15719 </member>
15720 <member name="E:OpenMetaverse.ObjectManager.ObjectPropertiesUpdated">
15721 <summary>Raised when the simulator sends us data containing
15722 Primitive.ObjectProperties for an object we are currently tracking</summary>
15723 </member>
15724 <member name="E:OpenMetaverse.ObjectManager.ObjectPropertiesFamily">
15725 <summary>Raised when the simulator sends us data containing
15726 additional <seea cref="T:OpenMetaverse.Primitive"/> and <see cref="T:OpenMetaverse.Avatar"/> details</summary>
15727 <seealso cref="M:OpenMetaverse.ObjectManager.RequestObjectPropertiesFamily(OpenMetaverse.Simulator,OpenMetaverse.UUID)"/>
15728 </member>
15729 <member name="E:OpenMetaverse.ObjectManager.AvatarUpdate">
15730 <summary>Raised when the simulator sends us data containing
15731 updated information for an <see cref="T:OpenMetaverse.Avatar"/></summary>
15732 </member>
15733 <member name="E:OpenMetaverse.ObjectManager.TerseObjectUpdate">
15734 <summary>Raised when the simulator sends us data containing
15735 <see cref="T:OpenMetaverse.Primitive"/> and <see cref="T:OpenMetaverse.Avatar"/> movement changes</summary>
15736 </member>
15737 <member name="E:OpenMetaverse.ObjectManager.ObjectDataBlockUpdate">
15738 <summary>Raised when the simulator sends us data containing
15739 updates to an Objects DataBlock</summary>
15740 </member>
15741 <member name="E:OpenMetaverse.ObjectManager.KillObject">
15742 <summary>Raised when the simulator informs us an <see cref="T:OpenMetaverse.Primitive"/>
15743 or <see cref="T:OpenMetaverse.Avatar"/> is no longer within view</summary>
15744 </member>
15745 <member name="E:OpenMetaverse.ObjectManager.AvatarSitChanged">
15746 <summary>Raised when the simulator sends us data containing
15747 updated sit information for our <see cref="T:OpenMetaverse.Avatar"/></summary>
15748 </member>
15749 <member name="E:OpenMetaverse.ObjectManager.PayPriceReply">
15750 <summary>Raised when the simulator sends us data containing
15751 purchase price information for a <see cref="T:OpenMetaverse.Primitive"/></summary>
15752 </member>
15753 <member name="T:OpenMetaverse.ObjectManager.ObjectMediaCallback">
15754 <summary>
15755 Callback for getting object media data via CAP
15756 </summary> 13844 </summary>
15757 <param name="success">Indicates if the operation was succesfull</param> 13845 <param name="simulator">
15758 <param name="version">Object media version string</param> 13846 </param>
15759 <param name="faceMedia">Array indexed on prim face of media entry data</param> 13847 <param name="localID">
13848 </param>
13849 <param name="fullID">
13850 </param>
13851 <returns>
13852 </returns>
15760 </member> 13853 </member>
15761 <member name="T:OpenMetaverse.PrimEventArgs"> 13854 <member name="T:OpenMetaverse.PrimEventArgs">
15762 <summary>Provides data for the <see cref="E:OpenMetaverse.ObjectManager.ObjectUpdate"/> event</summary> 13855 <summary>Provides data for the <see cref="E:OpenMetaverse.ObjectManager.ObjectUpdate" /> event</summary>
15763 <remarks><para>The <see cref="E:OpenMetaverse.ObjectManager.ObjectUpdate"/> event occurs when the simulator sends 13856 <remarks>
15764 an <see cref="T:OpenMetaverse.Packets.ObjectUpdatePacket"/> containing a Primitive, Foliage or Attachment data</para> 13857 <para>The <see cref="E:OpenMetaverse.ObjectManager.ObjectUpdate" /> event occurs when the simulator sends
15765 <para>Note 1: The <see cref="E:OpenMetaverse.ObjectManager.ObjectUpdate"/> event will not be raised when the object is an Avatar</para> 13858 an <see cref="T:OpenMetaverse.Packets.ObjectUpdatePacket" /> containing a Primitive, Foliage or Attachment data</para>
15766 <para>Note 2: It is possible for the <see cref="E:OpenMetaverse.ObjectManager.ObjectUpdate"/> to be 13859 <para>Note 1: The <see cref="E:OpenMetaverse.ObjectManager.ObjectUpdate" /> event will not be raised when the object is an Avatar</para>
15767 raised twice for the same object if for example the primitive moved to a new simulator, then returned to the current simulator or 13860 <para>Note 2: It is possible for the <see cref="E:OpenMetaverse.ObjectManager.ObjectUpdate" /> to be
15768 if an Avatar crosses the border into a new simulator and returns to the current simulator</para> 13861 raised twice for the same object if for example the primitive moved to a new simulator, then returned to the current simulator or
15769 </remarks> 13862 if an Avatar crosses the border into a new simulator and returns to the current simulator</para>
15770 <example> 13863 </remarks>
15771 The following code example uses the <see cref="P:OpenMetaverse.PrimEventArgs.Prim"/>, <see cref="P:OpenMetaverse.PrimEventArgs.Simulator"/>, and <see cref="P:OpenMetaverse.PrimEventArgs.IsAttachment"/> 13864 <example>
15772 properties to display new Primitives and Attachments on the <see cref="T:System.Console"/> window. 13865 The following code example uses the <see cref="P:OpenMetaverse.PrimEventArgs.Prim" />, <see cref="P:OpenMetaverse.PrimEventArgs.Simulator" />, and <see cref="P:OpenMetaverse.PrimEventArgs.IsAttachment" />
15773 <code> 13866 properties to display new Primitives and Attachments on the <see cref="T:System.Console" /> window.
15774 // Subscribe to the event that gives us prim and foliage information 13867 <code>
15775 Client.Objects.ObjectUpdate += Objects_ObjectUpdate; 13868 // Subscribe to the event that gives us prim and foliage information
15776 13869 Client.Objects.ObjectUpdate += Objects_ObjectUpdate;
15777 13870 private void Objects_ObjectUpdate(object sender, PrimEventArgs e)
15778 private void Objects_ObjectUpdate(object sender, PrimEventArgs e) 13871 {
15779 { 13872 Console.WriteLine("Primitive {0} {1} in {2} is an attachment {3}", e.Prim.ID, e.Prim.LocalID, e.Simulator.Name, e.IsAttachment);
15780 Console.WriteLine("Primitive {0} {1} in {2} is an attachment {3}", e.Prim.ID, e.Prim.LocalID, e.Simulator.Name, e.IsAttachment); 13873 }
15781 } 13874 </code></example>
15782 </code> 13875 <seealso cref="E:OpenMetaverse.ObjectManager.ObjectUpdate" />
15783 </example> 13876 <seealso cref="E:OpenMetaverse.ObjectManager.AvatarUpdate" />
15784 <seealso cref="E:OpenMetaverse.ObjectManager.ObjectUpdate"/> 13877 <seealso cref="T:OpenMetaverse.AvatarUpdateEventArgs" />
15785 <seealso cref="E:OpenMetaverse.ObjectManager.AvatarUpdate"/>
15786 <seealso cref="T:OpenMetaverse.AvatarUpdateEventArgs"/>
15787 </member> 13878 </member>
15788 <member name="M:OpenMetaverse.PrimEventArgs.#ctor(OpenMetaverse.Simulator,OpenMetaverse.Primitive,System.UInt16,System.Boolean,System.Boolean)"> 13879 <member name="M:OpenMetaverse.PrimEventArgs.#ctor(OpenMetaverse.Simulator,OpenMetaverse.Primitive,System.UInt16,System.Boolean,System.Boolean)">
15789 <summary> 13880 <summary>
@@ -15796,72 +13887,70 @@
15796 <param name="isAttachment">true if the primitive represents an attachment to an agent</param> 13887 <param name="isAttachment">true if the primitive represents an attachment to an agent</param>
15797 </member> 13888 </member>
15798 <member name="P:OpenMetaverse.PrimEventArgs.Simulator"> 13889 <member name="P:OpenMetaverse.PrimEventArgs.Simulator">
15799 <summary>Get the simulator the <see cref="T:OpenMetaverse.Primitive"/> originated from</summary> 13890 <summary>Get the simulator the <see cref="T:OpenMetaverse.Primitive" /> originated from</summary>
15800 </member> 13891 </member>
15801 <member name="P:OpenMetaverse.PrimEventArgs.Prim"> 13892 <member name="P:OpenMetaverse.PrimEventArgs.Prim">
15802 <summary>Get the <see cref="T:OpenMetaverse.Primitive"/> details</summary> 13893 <summary>Get the <see cref="T:OpenMetaverse.Primitive" /> details</summary>
15803 </member> 13894 </member>
15804 <member name="P:OpenMetaverse.PrimEventArgs.IsNew"> 13895 <member name="P:OpenMetaverse.PrimEventArgs.IsNew">
15805 <summary>true if the <see cref="T:OpenMetaverse.Primitive"/> did not exist in the dictionary before this update (always true if object tracking has been disabled)</summary> 13896 <summary>true if the <see cref="T:OpenMetaverse.Primitive" /> did not exist in the dictionary before this update (always true if object tracking has been disabled)</summary>
15806 </member> 13897 </member>
15807 <member name="P:OpenMetaverse.PrimEventArgs.IsAttachment"> 13898 <member name="P:OpenMetaverse.PrimEventArgs.IsAttachment">
15808 <summary>true if the <see cref="T:OpenMetaverse.Primitive"/> is attached to an <see cref="T:OpenMetaverse.Avatar"/></summary> 13899 <summary>true if the <see cref="T:OpenMetaverse.Primitive" /> is attached to an <see cref="T:OpenMetaverse.Avatar" /></summary>
15809 </member> 13900 </member>
15810 <member name="P:OpenMetaverse.PrimEventArgs.TimeDilation"> 13901 <member name="P:OpenMetaverse.PrimEventArgs.TimeDilation">
15811 <summary>Get the simulator Time Dilation</summary> 13902 <summary>Get the simulator Time Dilation</summary>
15812 </member> 13903 </member>
15813 <member name="T:OpenMetaverse.AvatarUpdateEventArgs"> 13904 <member name="T:OpenMetaverse.AvatarUpdateEventArgs">
15814 <summary>Provides data for the <see cref="E:OpenMetaverse.ObjectManager.AvatarUpdate"/> event</summary> 13905 <summary>Provides data for the <see cref="E:OpenMetaverse.ObjectManager.AvatarUpdate" /> event</summary>
15815 <remarks><para>The <see cref="E:OpenMetaverse.ObjectManager.AvatarUpdate"/> event occurs when the simulator sends 13906 <remarks>
15816 an <see cref="T:OpenMetaverse.Packets.ObjectUpdatePacket"/> containing Avatar data</para> 13907 <para>The <see cref="E:OpenMetaverse.ObjectManager.AvatarUpdate" /> event occurs when the simulator sends
15817 <para>Note 1: The <see cref="E:OpenMetaverse.ObjectManager.AvatarUpdate"/> event will not be raised when the object is an Avatar</para> 13908 an <see cref="T:OpenMetaverse.Packets.ObjectUpdatePacket" /> containing Avatar data</para>
15818 <para>Note 2: It is possible for the <see cref="E:OpenMetaverse.ObjectManager.AvatarUpdate"/> to be 13909 <para>Note 1: The <see cref="E:OpenMetaverse.ObjectManager.AvatarUpdate" /> event will not be raised when the object is an Avatar</para>
15819 raised twice for the same avatar if for example the avatar moved to a new simulator, then returned to the current simulator</para> 13910 <para>Note 2: It is possible for the <see cref="E:OpenMetaverse.ObjectManager.AvatarUpdate" /> to be
15820 </remarks> 13911 raised twice for the same avatar if for example the avatar moved to a new simulator, then returned to the current simulator</para>
15821 <example> 13912 </remarks>
15822 The following code example uses the <see cref="P:OpenMetaverse.AvatarUpdateEventArgs.Avatar"/> property to make a request for the top picks 13913 <example>
15823 using the <see cref="M:OpenMetaverse.AvatarManager.RequestAvatarPicks(OpenMetaverse.UUID)"/> method in the <see cref="T:OpenMetaverse.AvatarManager"/> class to display the names 13914 The following code example uses the <see cref="P:OpenMetaverse.AvatarUpdateEventArgs.Avatar" /> property to make a request for the top picks
15824 of our own agents picks listings on the <see cref="T:System.Console"/> window. 13915 using the <see cref="M:OpenMetaverse.AvatarManager.RequestAvatarPicks(OpenMetaverse.UUID)" /> method in the <see cref="T:OpenMetaverse.AvatarManager" /> class to display the names
15825 <code> 13916 of our own agents picks listings on the <see cref="T:System.Console" /> window.
15826 // subscribe to the AvatarUpdate event to get our information 13917 <code>
15827 Client.Objects.AvatarUpdate += Objects_AvatarUpdate; 13918 // subscribe to the AvatarUpdate event to get our information
15828 Client.Avatars.AvatarPicksReply += Avatars_AvatarPicksReply; 13919 Client.Objects.AvatarUpdate += Objects_AvatarUpdate;
15829 13920 Client.Avatars.AvatarPicksReply += Avatars_AvatarPicksReply;
15830 private void Objects_AvatarUpdate(object sender, AvatarUpdateEventArgs e) 13921 private void Objects_AvatarUpdate(object sender, AvatarUpdateEventArgs e)
15831 { 13922 {
15832 // we only want our own data 13923 // we only want our own data
15833 if (e.Avatar.LocalID == Client.Self.LocalID) 13924 if (e.Avatar.LocalID == Client.Self.LocalID)
15834 { 13925 {
15835 // Unsubscribe from the avatar update event to prevent a loop 13926 // Unsubscribe from the avatar update event to prevent a loop
15836 // where we continually request the picks every time we get an update for ourselves 13927 // where we continually request the picks every time we get an update for ourselves
15837 Client.Objects.AvatarUpdate -= Objects_AvatarUpdate; 13928 Client.Objects.AvatarUpdate -= Objects_AvatarUpdate;
15838 // make the top picks request through AvatarManager 13929 // make the top picks request through AvatarManager
15839 Client.Avatars.RequestAvatarPicks(e.Avatar.ID); 13930 Client.Avatars.RequestAvatarPicks(e.Avatar.ID);
15840 } 13931 }
15841 } 13932 }
15842 13933 private void Avatars_AvatarPicksReply(object sender, AvatarPicksReplyEventArgs e)
15843 private void Avatars_AvatarPicksReply(object sender, AvatarPicksReplyEventArgs e) 13934 {
15844 { 13935 // we'll unsubscribe from the AvatarPicksReply event since we now have the data
15845 // we'll unsubscribe from the AvatarPicksReply event since we now have the data 13936 // we were looking for
15846 // we were looking for 13937 Client.Avatars.AvatarPicksReply -= Avatars_AvatarPicksReply;
15847 Client.Avatars.AvatarPicksReply -= Avatars_AvatarPicksReply; 13938 // loop through the dictionary and extract the names of the top picks from our profile
15848 // loop through the dictionary and extract the names of the top picks from our profile 13939 foreach (var pickName in e.Picks.Values)
15849 foreach (var pickName in e.Picks.Values) 13940 {
15850 { 13941 Console.WriteLine(pickName);
15851 Console.WriteLine(pickName); 13942 }
15852 } 13943 }
15853 } 13944 </code></example>
15854 </code> 13945 <seealso cref="E:OpenMetaverse.ObjectManager.ObjectUpdate" />
15855 </example> 13946 <seealso cref="T:OpenMetaverse.PrimEventArgs" />
15856 <seealso cref="E:OpenMetaverse.ObjectManager.ObjectUpdate"/>
15857 <seealso cref="T:OpenMetaverse.PrimEventArgs"/>
15858 </member> 13947 </member>
15859 <member name="M:OpenMetaverse.AvatarUpdateEventArgs.#ctor(OpenMetaverse.Simulator,OpenMetaverse.Avatar,System.UInt16,System.Boolean)"> 13948 <member name="M:OpenMetaverse.AvatarUpdateEventArgs.#ctor(OpenMetaverse.Simulator,OpenMetaverse.Avatar,System.UInt16,System.Boolean)">
15860 <summary> 13949 <summary>
15861 Construct a new instance of the AvatarUpdateEventArgs class 13950 Construct a new instance of the AvatarUpdateEventArgs class
15862 </summary> 13951 </summary>
15863 <param name="simulator">The simulator the packet originated from</param> 13952 <param name="simulator">The simulator the packet originated from</param>
15864 <param name="avatar">The <see cref="P:OpenMetaverse.AvatarUpdateEventArgs.Avatar"/> data</param> 13953 <param name="avatar">The <see cref="T:OpenMetaverse.Avatar" /> data</param>
15865 <param name="timeDilation">The simulator time dilation</param> 13954 <param name="timeDilation">The simulator time dilation</param>
15866 <param name="isNew">The avatar was not in the dictionary before this update</param> 13955 <param name="isNew">The avatar was not in the dictionary before this update</param>
15867 </member> 13956 </member>
@@ -15869,37 +13958,36 @@
15869 <summary>Get the simulator the object originated from</summary> 13958 <summary>Get the simulator the object originated from</summary>
15870 </member> 13959 </member>
15871 <member name="P:OpenMetaverse.AvatarUpdateEventArgs.Avatar"> 13960 <member name="P:OpenMetaverse.AvatarUpdateEventArgs.Avatar">
15872 <summary>Get the <see cref="P:OpenMetaverse.AvatarUpdateEventArgs.Avatar"/> data</summary> 13961 <summary>Get the <see cref="T:OpenMetaverse.Avatar" /> data</summary>
15873 </member> 13962 </member>
15874 <member name="P:OpenMetaverse.AvatarUpdateEventArgs.TimeDilation"> 13963 <member name="P:OpenMetaverse.AvatarUpdateEventArgs.TimeDilation">
15875 <summary>Get the simulator time dilation</summary> 13964 <summary>Get the simulator time dilation</summary>
15876 </member> 13965 </member>
15877 <member name="P:OpenMetaverse.AvatarUpdateEventArgs.IsNew"> 13966 <member name="P:OpenMetaverse.AvatarUpdateEventArgs.IsNew">
15878 <summary>true if the <see cref="P:OpenMetaverse.AvatarUpdateEventArgs.Avatar"/> did not exist in the dictionary before this update (always true if avatar tracking has been disabled)</summary> 13967 <summary>true if the <see cref="T:OpenMetaverse.Avatar" /> did not exist in the dictionary before this update (always true if avatar tracking has been disabled)</summary>
15879 </member> 13968 </member>
15880 <member name="T:OpenMetaverse.ObjectPropertiesEventArgs"> 13969 <member name="T:OpenMetaverse.ObjectPropertiesEventArgs">
15881 <summary>Provides additional primitive data for the <see cref="E:OpenMetaverse.ObjectManager.ObjectProperties"/> event</summary> 13970 <summary>Provides additional primitive data for the <see cref="E:OpenMetaverse.ObjectManager.ObjectProperties" /> event</summary>
15882 <remarks><para>The <see cref="E:OpenMetaverse.ObjectManager.ObjectProperties"/> event occurs when the simulator sends 13971 <remarks>
15883 an <see cref="T:OpenMetaverse.Packets.ObjectPropertiesPacket"/> containing additional details for a Primitive, Foliage data or Attachment data</para> 13972 <para>The <see cref="E:OpenMetaverse.ObjectManager.ObjectProperties" /> event occurs when the simulator sends
15884 <para>The <see cref="E:OpenMetaverse.ObjectManager.ObjectProperties"/> event is also raised when a <see cref="M:OpenMetaverse.ObjectManager.SelectObject(OpenMetaverse.Simulator,System.UInt32)"/> request is 13973 an <see cref="T:OpenMetaverse.Packets.ObjectPropertiesPacket" /> containing additional details for a Primitive, Foliage data or Attachment data</para>
13974 <para>The <see cref="E:OpenMetaverse.ObjectManager.ObjectProperties" /> event is also raised when a <see cref="M:OpenMetaverse.ObjectManager.SelectObject(OpenMetaverse.Simulator,System.UInt32,System.Boolean)" /> request is
15885 made.</para> 13975 made.</para>
15886 </remarks> 13976 </remarks>
15887 <example> 13977 <example>
15888 The following code example uses the <see cref="P:OpenMetaverse.PrimEventArgs.Prim"/>, <see cref="P:OpenMetaverse.PrimEventArgs.Simulator"/> and 13978 The following code example uses the <see cref="P:OpenMetaverse.PrimEventArgs.Prim" />, <see cref="P:OpenMetaverse.PrimEventArgs.Simulator" /> and
15889 <see cref="P:OpenMetaverse.ObjectPropertiesEventArgs.Properties"/> 13979 <see cref="P:OpenMetaverse.ObjectPropertiesEventArgs.Properties" />
15890 properties to display new attachments and send a request for additional properties containing the name of the 13980 properties to display new attachments and send a request for additional properties containing the name of the
15891 attachment then display it on the <see cref="T:System.Console"/> window. 13981 attachment then display it on the <see cref="T:System.Console" /> window.
15892 <code> 13982 <code>
15893 // Subscribe to the event that provides additional primitive details 13983 // Subscribe to the event that provides additional primitive details
15894 Client.Objects.ObjectProperties += Objects_ObjectProperties; 13984 Client.Objects.ObjectProperties += Objects_ObjectProperties;
15895 13985 // handle the properties data that arrives
15896 // handle the properties data that arrives 13986 private void Objects_ObjectProperties(object sender, ObjectPropertiesEventArgs e)
15897 private void Objects_ObjectProperties(object sender, ObjectPropertiesEventArgs e) 13987 {
15898 { 13988 Console.WriteLine("Primitive Properties: {0} Name is {1}", e.Properties.ObjectID, e.Properties.Name);
15899 Console.WriteLine("Primitive Properties: {0} Name is {1}", e.Properties.ObjectID, e.Properties.Name); 13989 }
15900 } 13990 </code></example>
15901 </code>
15902 </example>
15903 </member> 13991 </member>
15904 <member name="M:OpenMetaverse.ObjectPropertiesEventArgs.#ctor(OpenMetaverse.Simulator,OpenMetaverse.Primitive.ObjectProperties)"> 13992 <member name="M:OpenMetaverse.ObjectPropertiesEventArgs.#ctor(OpenMetaverse.Simulator,OpenMetaverse.Primitive.ObjectProperties)">
15905 <summary> 13993 <summary>
@@ -15915,18 +14003,19 @@
15915 <summary>Get the primitive properties</summary> 14003 <summary>Get the primitive properties</summary>
15916 </member> 14004 </member>
15917 <member name="T:OpenMetaverse.ObjectPropertiesUpdatedEventArgs"> 14005 <member name="T:OpenMetaverse.ObjectPropertiesUpdatedEventArgs">
15918 <summary>Provides additional primitive data for the <see cref="E:OpenMetaverse.ObjectManager.ObjectPropertiesUpdated"/> event</summary> 14006 <summary>Provides additional primitive data for the <see cref="E:OpenMetaverse.ObjectManager.ObjectPropertiesUpdated" /> event</summary>
15919 <remarks><para>The <see cref="E:OpenMetaverse.ObjectManager.ObjectPropertiesUpdated"/> event occurs when the simulator sends 14007 <remarks>
15920 an <see cref="T:OpenMetaverse.Packets.ObjectPropertiesPacket"/> containing additional details for a Primitive or Foliage data that is currently 14008 <para>The <see cref="E:OpenMetaverse.ObjectManager.ObjectPropertiesUpdated" /> event occurs when the simulator sends
15921 being tracked in the <see cref="!:Simulator.ObjectsPrimitives"/> dictionary</para> 14009 an <see cref="T:OpenMetaverse.Packets.ObjectPropertiesPacket" /> containing additional details for a Primitive or Foliage data that is currently
15922 <para>The <see cref="E:OpenMetaverse.ObjectManager.ObjectPropertiesUpdated"/> event is also raised when a <see cref="M:OpenMetaverse.ObjectManager.SelectObject(OpenMetaverse.Simulator,System.UInt32)"/> request is 14010 being tracked in the <see cref="F:OpenMetaverse.Simulator.ObjectsPrimitives" /> dictionary</para>
15923 made and <see cref="F:OpenMetaverse.Settings.OBJECT_TRACKING"/> is enabled</para> 14011 <para>The <see cref="E:OpenMetaverse.ObjectManager.ObjectPropertiesUpdated" /> event is also raised when a <see cref="M:OpenMetaverse.ObjectManager.SelectObject(OpenMetaverse.Simulator,System.UInt32,System.Boolean)" /> request is
15924 </remarks> 14012 made and <see cref="F:OpenMetaverse.Settings.OBJECT_TRACKING" /> is enabled</para>
14013 </remarks>
15925 </member> 14014 </member>
15926 <member name="M:OpenMetaverse.ObjectPropertiesUpdatedEventArgs.#ctor(OpenMetaverse.Simulator,OpenMetaverse.Primitive,OpenMetaverse.Primitive.ObjectProperties)"> 14015 <member name="M:OpenMetaverse.ObjectPropertiesUpdatedEventArgs.#ctor(OpenMetaverse.Simulator,OpenMetaverse.Primitive,OpenMetaverse.Primitive.ObjectProperties)">
15927 <summary> 14016 <summary>
15928 Construct a new instance of the ObjectPropertiesUpdatedEvenrArgs class 14017 Construct a new instance of the ObjectPropertiesUpdatedEvenrArgs class
15929 </summary> 14018 </summary>
15930 <param name="simulator">The simulator the object is located</param> 14019 <param name="simulator">The simulator the object is located</param>
15931 <param name="prim">The Primitive</param> 14020 <param name="prim">The Primitive</param>
15932 <param name="props">The primitive Properties</param> 14021 <param name="props">The primitive Properties</param>
@@ -15941,26 +14030,30 @@
15941 <summary>Get the primitive properties</summary> 14030 <summary>Get the primitive properties</summary>
15942 </member> 14031 </member>
15943 <member name="T:OpenMetaverse.ObjectPropertiesFamilyEventArgs"> 14032 <member name="T:OpenMetaverse.ObjectPropertiesFamilyEventArgs">
15944 <summary>Provides additional primitive data, permissions and sale info for the <see cref="E:OpenMetaverse.ObjectManager.ObjectPropertiesFamily"/> event</summary> 14033 <summary>Provides additional primitive data, permissions and sale info for the <see cref="E:OpenMetaverse.ObjectManager.ObjectPropertiesFamily" /> event</summary>
15945 <remarks><para>The <see cref="E:OpenMetaverse.ObjectManager.ObjectPropertiesFamily"/> event occurs when the simulator sends 14034 <remarks>
15946 an <see cref="T:OpenMetaverse.Packets.ObjectPropertiesPacket"/> containing additional details for a Primitive, Foliage data or Attachment. This includes 14035 <para>The <see cref="E:OpenMetaverse.ObjectManager.ObjectPropertiesFamily" /> event occurs when the simulator sends
14036 an <see cref="T:OpenMetaverse.Packets.ObjectPropertiesPacket" /> containing additional details for a Primitive, Foliage data or Attachment. This includes
15947 Permissions, Sale info, and other basic details on an object</para> 14037 Permissions, Sale info, and other basic details on an object</para>
15948 <para>The <see cref="E:OpenMetaverse.ObjectManager.ObjectProperties"/> event is also raised when a <see cref="M:OpenMetaverse.ObjectManager.RequestObjectPropertiesFamily(OpenMetaverse.Simulator,OpenMetaverse.UUID)"/> request is 14038 <para>The <see cref="E:OpenMetaverse.ObjectManager.ObjectProperties" /> event is also raised when a <see cref="M:OpenMetaverse.ObjectManager.RequestObjectPropertiesFamily(OpenMetaverse.Simulator,OpenMetaverse.UUID,System.Boolean)" /> request is
15949 made, the viewer equivalent is hovering the mouse cursor over an object</para> 14039 made, the viewer equivalent is hovering the mouse cursor over an object</para>
15950 </remarks> 14040 </remarks>
15951 </member> 14041 </member>
15952 <member name="P:OpenMetaverse.ObjectPropertiesFamilyEventArgs.Simulator"> 14042 <member name="P:OpenMetaverse.ObjectPropertiesFamilyEventArgs.Simulator">
15953 <summary>Get the simulator the object is located</summary> 14043 <summary>Get the simulator the object is located</summary>
15954 </member> 14044 </member>
15955 <member name="P:OpenMetaverse.ObjectPropertiesFamilyEventArgs.Properties"> 14045 <member name="P:OpenMetaverse.ObjectPropertiesFamilyEventArgs.Properties">
15956 <summary></summary> 14046 <summary>
14047 </summary>
15957 </member> 14048 </member>
15958 <member name="P:OpenMetaverse.ObjectPropertiesFamilyEventArgs.Type"> 14049 <member name="P:OpenMetaverse.ObjectPropertiesFamilyEventArgs.Type">
15959 <summary></summary> 14050 <summary>
14051 </summary>
15960 </member> 14052 </member>
15961 <member name="T:OpenMetaverse.TerseObjectUpdateEventArgs"> 14053 <member name="T:OpenMetaverse.TerseObjectUpdateEventArgs">
15962 <summary>Provides primitive data containing updated location, velocity, rotation, textures for the <see cref="E:OpenMetaverse.ObjectManager.TerseObjectUpdate"/> event</summary> 14054 <summary>Provides primitive data containing updated location, velocity, rotation, textures for the <see cref="E:OpenMetaverse.ObjectManager.TerseObjectUpdate" /> event</summary>
15963 <remarks><para>The <see cref="E:OpenMetaverse.ObjectManager.TerseObjectUpdate"/> event occurs when the simulator sends updated location, velocity, rotation, etc</para> 14055 <remarks>
14056 <para>The <see cref="E:OpenMetaverse.ObjectManager.TerseObjectUpdate" /> event occurs when the simulator sends updated location, velocity, rotation, etc</para>
15964 </remarks> 14057 </remarks>
15965 </member> 14058 </member>
15966 <member name="P:OpenMetaverse.TerseObjectUpdateEventArgs.Simulator"> 14059 <member name="P:OpenMetaverse.TerseObjectUpdateEventArgs.Simulator">
@@ -15970,14 +14063,15 @@
15970 <summary>Get the primitive details</summary> 14063 <summary>Get the primitive details</summary>
15971 </member> 14064 </member>
15972 <member name="P:OpenMetaverse.TerseObjectUpdateEventArgs.Update"> 14065 <member name="P:OpenMetaverse.TerseObjectUpdateEventArgs.Update">
15973 <summary></summary> 14066 <summary>
14067 </summary>
15974 </member> 14068 </member>
15975 <member name="P:OpenMetaverse.TerseObjectUpdateEventArgs.TimeDilation"> 14069 <member name="P:OpenMetaverse.TerseObjectUpdateEventArgs.TimeDilation">
15976 <summary></summary> 14070 <summary>
14071 </summary>
15977 </member> 14072 </member>
15978 <member name="T:OpenMetaverse.ObjectDataBlockUpdateEventArgs"> 14073 <member name="T:OpenMetaverse.ObjectDataBlockUpdateEventArgs">
15979 <summary> 14074 <summary>
15980
15981 </summary> 14075 </summary>
15982 </member> 14076 </member>
15983 <member name="P:OpenMetaverse.ObjectDataBlockUpdateEventArgs.Simulator"> 14077 <member name="P:OpenMetaverse.ObjectDataBlockUpdateEventArgs.Simulator">
@@ -15987,20 +14081,24 @@
15987 <summary>Get the primitive details</summary> 14081 <summary>Get the primitive details</summary>
15988 </member> 14082 </member>
15989 <member name="P:OpenMetaverse.ObjectDataBlockUpdateEventArgs.ConstructionData"> 14083 <member name="P:OpenMetaverse.ObjectDataBlockUpdateEventArgs.ConstructionData">
15990 <summary></summary> 14084 <summary>
14085 </summary>
15991 </member> 14086 </member>
15992 <member name="P:OpenMetaverse.ObjectDataBlockUpdateEventArgs.Block"> 14087 <member name="P:OpenMetaverse.ObjectDataBlockUpdateEventArgs.Block">
15993 <summary></summary> 14088 <summary>
14089 </summary>
15994 </member> 14090 </member>
15995 <member name="P:OpenMetaverse.ObjectDataBlockUpdateEventArgs.Update"> 14091 <member name="P:OpenMetaverse.ObjectDataBlockUpdateEventArgs.Update">
15996 <summary></summary> 14092 <summary>
14093 </summary>
15997 </member> 14094 </member>
15998 <member name="P:OpenMetaverse.ObjectDataBlockUpdateEventArgs.NameValues"> 14095 <member name="P:OpenMetaverse.ObjectDataBlockUpdateEventArgs.NameValues">
15999 <summary></summary> 14096 <summary>
14097 </summary>
16000 </member> 14098 </member>
16001 <member name="T:OpenMetaverse.KillObjectEventArgs"> 14099 <member name="T:OpenMetaverse.KillObjectEventArgs">
16002 <summary>Provides notification when an Avatar, Object or Attachment is DeRezzed or moves out of the avatars view for the 14100 <summary>Provides notification when an Avatar, Object or Attachment is DeRezzed or moves out of the avatars view for the
16003 <see cref="E:OpenMetaverse.ObjectManager.KillObject"/> event</summary> 14101 <see cref="E:OpenMetaverse.ObjectManager.KillObject" /> event</summary>
16004 </member> 14102 </member>
16005 <member name="P:OpenMetaverse.KillObjectEventArgs.Simulator"> 14103 <member name="P:OpenMetaverse.KillObjectEventArgs.Simulator">
16006 <summary>Get the simulator the object is located</summary> 14104 <summary>Get the simulator the object is located</summary>
@@ -16017,30 +14115,35 @@
16017 <summary>Get the simulator the object is located</summary> 14115 <summary>Get the simulator the object is located</summary>
16018 </member> 14116 </member>
16019 <member name="P:OpenMetaverse.AvatarSitChangedEventArgs.Avatar"> 14117 <member name="P:OpenMetaverse.AvatarSitChangedEventArgs.Avatar">
16020 <summary></summary> 14118 <summary>
14119 </summary>
16021 </member> 14120 </member>
16022 <member name="P:OpenMetaverse.AvatarSitChangedEventArgs.SittingOn"> 14121 <member name="P:OpenMetaverse.AvatarSitChangedEventArgs.SittingOn">
16023 <summary></summary> 14122 <summary>
14123 </summary>
16024 </member> 14124 </member>
16025 <member name="P:OpenMetaverse.AvatarSitChangedEventArgs.OldSeat"> 14125 <member name="P:OpenMetaverse.AvatarSitChangedEventArgs.OldSeat">
16026 <summary></summary> 14126 <summary>
14127 </summary>
16027 </member> 14128 </member>
16028 <member name="T:OpenMetaverse.PayPriceReplyEventArgs"> 14129 <member name="T:OpenMetaverse.PayPriceReplyEventArgs">
16029 <summary> 14130 <summary>
16030
16031 </summary> 14131 </summary>
16032 </member> 14132 </member>
16033 <member name="P:OpenMetaverse.PayPriceReplyEventArgs.Simulator"> 14133 <member name="P:OpenMetaverse.PayPriceReplyEventArgs.Simulator">
16034 <summary>Get the simulator the object is located</summary> 14134 <summary>Get the simulator the object is located</summary>
16035 </member> 14135 </member>
16036 <member name="P:OpenMetaverse.PayPriceReplyEventArgs.ObjectID"> 14136 <member name="P:OpenMetaverse.PayPriceReplyEventArgs.ObjectID">
16037 <summary></summary> 14137 <summary>
14138 </summary>
16038 </member> 14139 </member>
16039 <member name="P:OpenMetaverse.PayPriceReplyEventArgs.DefaultPrice"> 14140 <member name="P:OpenMetaverse.PayPriceReplyEventArgs.DefaultPrice">
16040 <summary></summary> 14141 <summary>
14142 </summary>
16041 </member> 14143 </member>
16042 <member name="P:OpenMetaverse.PayPriceReplyEventArgs.ButtonPrices"> 14144 <member name="P:OpenMetaverse.PayPriceReplyEventArgs.ButtonPrices">
16043 <summary></summary> 14145 <summary>
14146 </summary>
16044 </member> 14147 </member>
16045 <member name="P:OpenMetaverse.ObjectMediaEventArgs.Success"> 14148 <member name="P:OpenMetaverse.ObjectMediaEventArgs.Success">
16046 <summary> 14149 <summary>
@@ -16057,869 +14160,3781 @@
16057 Array of media entries indexed by face number 14160 Array of media entries indexed by face number
16058 </summary> 14161 </summary>
16059 </member> 14162 </member>
16060 <member name="M:OpenMetaverse.InventoryNode.#ctor"> 14163 <member name="T:OpenMetaverse.PhysicsPropertiesEventArgs">
16061 <summary> 14164 <summary>
16062 14165 Set when simulator sends us infomation on primitive's physical properties
16063 </summary> 14166 </summary>
16064 </member> 14167 </member>
16065 <member name="M:OpenMetaverse.InventoryNode.#ctor(OpenMetaverse.InventoryBase)"> 14168 <member name="M:OpenMetaverse.PhysicsPropertiesEventArgs.#ctor(OpenMetaverse.Simulator,OpenMetaverse.Primitive.PhysicsProperties)">
16066 <summary> 14169 <summary>
16067 14170 Constructor
16068 </summary> 14171 </summary>
16069 <param name="data"></param> 14172 <param name="sim">Simulator where the message originated</param>
14173 <param name="props">Updated physical properties</param>
16070 </member> 14174 </member>
16071 <member name="M:OpenMetaverse.InventoryNode.#ctor(OpenMetaverse.InventoryBase,OpenMetaverse.InventoryNode)"> 14175 <member name="F:OpenMetaverse.PhysicsPropertiesEventArgs.Simulator">
14176 <summary>Simulator where the message originated</summary>
14177 </member>
14178 <member name="F:OpenMetaverse.PhysicsPropertiesEventArgs.PhysicsProperties">
14179 <summary>Updated physical properties</summary>
14180 </member>
14181 <member name="M:OpenMetaverse.UDPPacketBuffer.#ctor">
16072 <summary> 14182 <summary>
16073 De-serialization constructor for the InventoryNode Class 14183 Create an allocated UDP packet buffer for receiving a packet
16074 </summary> 14184 </summary>
16075 </member> 14185 </member>
16076 <member name="M:OpenMetaverse.InventoryNode.GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)"> 14186 <member name="M:OpenMetaverse.UDPPacketBuffer.#ctor(System.Net.IPEndPoint)">
16077 <summary> 14187 <summary>
16078 Serialization handler for the InventoryNode Class 14188 Create an allocated UDP packet buffer for sending a packet
16079 </summary> 14189 </summary>
14190 <param name="endPoint">EndPoint of the remote host</param>
16080 </member> 14191 </member>
16081 <member name="M:OpenMetaverse.InventoryNode.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)"> 14192 <member name="M:OpenMetaverse.UDPPacketBuffer.#ctor(System.Net.IPEndPoint,System.Int32)">
16082 <summary> 14193 <summary>
16083 De-serialization handler for the InventoryNode Class 14194 Create an allocated UDP packet buffer for sending a packet
16084 </summary> 14195 </summary>
14196 <param name="endPoint">EndPoint of the remote host</param>
14197 <param name="bufferSize">Size of the buffer to allocate for packet data</param>
16085 </member> 14198 </member>
16086 <member name="M:OpenMetaverse.InventoryNode.ToString"> 14199 <member name="F:OpenMetaverse.UDPPacketBuffer.BUFFER_SIZE">
14200 <summary>Size of the byte array used to store raw packet data</summary>
14201 </member>
14202 <member name="F:OpenMetaverse.UDPPacketBuffer.Data">
14203 <summary>Raw packet data buffer</summary>
14204 </member>
14205 <member name="F:OpenMetaverse.UDPPacketBuffer.DataLength">
14206 <summary>Length of the data to transmit</summary>
14207 </member>
14208 <member name="F:OpenMetaverse.UDPPacketBuffer.RemoteEndPoint">
14209 <summary>EndPoint of the remote host</summary>
14210 </member>
14211 <member name="T:OpenMetaverse.PacketBufferPool">
16087 <summary> 14212 <summary>
16088 14213 Object pool for packet buffers. This is used to allocate memory for all
14214 incoming and outgoing packets, and zerocoding buffers for those packets
16089 </summary> 14215 </summary>
16090 <returns></returns>
16091 </member> 14216 </member>
16092 <member name="P:OpenMetaverse.InventoryNode.Data"> 14217 <member name="M:OpenMetaverse.PacketBufferPool.#ctor(System.Net.IPEndPoint,System.Int32,System.Int32)">
16093 <summary></summary> 14218 <summary>
14219 Initialize the object pool in client mode
14220 </summary>
14221 <param name="endPoint">Server to connect to</param>
14222 <param name="itemsPerSegment">
14223 </param>
14224 <param name="minSegments">
14225 </param>
16094 </member> 14226 </member>
16095 <member name="P:OpenMetaverse.InventoryNode.Parent"> 14227 <member name="M:OpenMetaverse.PacketBufferPool.#ctor(System.Int32,System.Int32)">
16096 <summary></summary> 14228 <summary>
14229 Initialize the object pool in server mode
14230 </summary>
14231 <param name="itemsPerSegment">
14232 </param>
14233 <param name="minSegments">
14234 </param>
16097 </member> 14235 </member>
16098 <member name="P:OpenMetaverse.InventoryNode.ParentID"> 14236 <member name="M:OpenMetaverse.PacketBufferPool.GetObjectInstance">
16099 <summary></summary> 14237 <summary>
14238 Returns a packet buffer with EndPoint set if the buffer is in
14239 client mode, or with EndPoint set to null in server mode
14240 </summary>
14241 <returns>Initialized UDPPacketBuffer object</returns>
16100 </member> 14242 </member>
16101 <member name="P:OpenMetaverse.InventoryNode.Nodes"> 14243 <member name="M:OpenMetaverse.Pool.#ctor">
16102 <summary></summary> 14244 <summary>
14245 Default constructor
14246 </summary>
16103 </member> 14247 </member>
16104 <member name="P:OpenMetaverse.InventoryNode.NeedsUpdate"> 14248 <member name="M:OpenMetaverse.Pool.CheckOut">
16105 <summary> 14249 <summary>
16106 For inventory folder nodes specifies weather the folder needs to be 14250 Check a packet buffer out of the pool
16107 refreshed from the server
16108 </summary> 14251 </summary>
14252 <returns>A packet buffer object</returns>
16109 </member> 14253 </member>
16110 <member name="T:OpenMetaverse.FriendRights"> 14254 <member name="P:OpenMetaverse.WrappedObject`1.Instance">
16111 <summary> 14255 <summary>
16112 14256 Returns an instance of the class that has been checked out of the Object Pool.
16113 </summary> 14257 </summary>
16114 </member> 14258 </member>
16115 <member name="F:OpenMetaverse.FriendRights.None"> 14259 <member name="M:OpenMetaverse.WrappedObject`1.Dispose">
16116 <summary>The avatar has no rights</summary> 14260 <summary>
14261 Checks the instance back into the object pool
14262 </summary>
16117 </member> 14263 </member>
16118 <member name="F:OpenMetaverse.FriendRights.CanSeeOnline"> 14264 <member name="M:OpenMetaverse.ObjectPoolBase`1.#ctor">
16119 <summary>The avatar can see the online status of the target avatar</summary> 14265 <summary>
14266 Creates a new instance of the ObjectPoolBase class. Initialize MUST be called
14267 after using this constructor.
14268 </summary>
16120 </member> 14269 </member>
16121 <member name="F:OpenMetaverse.FriendRights.CanSeeOnMap"> 14270 <member name="M:OpenMetaverse.ObjectPoolBase`1.#ctor(System.Int32,System.Int32,System.Boolean,System.Int32)">
16122 <summary>The avatar can see the location of the target avatar on the map</summary> 14271 <summary>
14272 Creates a new instance of the ObjectPool Base class.
14273 </summary>
14274 <param name="itemsPerSegment">The object pool is composed of segments, which
14275 are allocated whenever the size of the pool is exceeded. The number of items
14276 in a segment should be large enough that allocating a new segmeng is a rare
14277 thing. For example, on a server that will have 10k people logged in at once,
14278 the receive buffer object pool should have segment sizes of at least 1000
14279 byte arrays per segment.
14280 </param>
14281 <param name="minimumSegmentCount">The minimun number of segments that may exist.</param>
14282 <param name="gcOnPoolGrowth">Perform a full GC.Collect whenever a segment is allocated, and then again after allocation to compact the heap.</param>
14283 <param name="cleanupFrequenceMS">The frequency which segments are checked to see if they're eligible for cleanup.</param>
16123 </member> 14284 </member>
16124 <member name="F:OpenMetaverse.FriendRights.CanModifyObjects"> 14285 <member name="P:OpenMetaverse.ObjectPoolBase`1.TotalSegments">
16125 <summary>The avatar can modify the ojects of the target avatar </summary> 14286 <summary>
14287 The total number of segments created. Intended to be used by the Unit Tests.
14288 </summary>
16126 </member> 14289 </member>
16127 <member name="T:OpenMetaverse.FriendInfo"> 14290 <member name="P:OpenMetaverse.ObjectPoolBase`1.ItemsPerSegment">
16128 <summary> 14291 <summary>
16129 This class holds information about an avatar in the friends list. There are two ways 14292 The number of items that are in a segment. Items in a segment
16130 to interface to this class. The first is through the set of boolean properties. This is the typical 14293 are all allocated at the same time, and are hopefully close to
16131 way clients of this class will use it. The second interface is through two bitflag properties, 14294 each other in the managed heap.
16132 TheirFriendsRights and MyFriendsRights
16133 </summary> 14295 </summary>
16134 </member> 14296 </member>
16135 <member name="M:OpenMetaverse.FriendInfo.#ctor(OpenMetaverse.UUID,OpenMetaverse.FriendRights,OpenMetaverse.FriendRights)"> 14297 <member name="P:OpenMetaverse.ObjectPoolBase`1.MinimumSegmentCount">
16136 <summary> 14298 <summary>
16137 Used internally when building the initial list of friends at login time 14299 The minimum number of segments. When segments are reclaimed,
14300 this number of segments will always be left alone. These
14301 segments are allocated at startup.
16138 </summary> 14302 </summary>
16139 <param name="id">System ID of the avatar being prepesented</param>
16140 <param name="theirRights">Rights the friend has to see you online and to modify your objects</param>
16141 <param name="myRights">Rights you have to see your friend online and to modify their objects</param>
16142 </member> 14303 </member>
16143 <member name="M:OpenMetaverse.FriendInfo.ToString"> 14304 <member name="P:OpenMetaverse.ObjectPoolBase`1.MinimumSegmentAgePriorToCleanup">
16144 <summary> 14305 <summary>
16145 FriendInfo represented as a string 14306 The age a segment must be before it's eligible for cleanup.
14307 This is used to prevent thrash, and typical values are in
14308 the 5 minute range.
16146 </summary> 14309 </summary>
16147 <returns>A string reprentation of both my rights and my friends rights</returns>
16148 </member> 14310 </member>
16149 <member name="P:OpenMetaverse.FriendInfo.UUID"> 14311 <member name="P:OpenMetaverse.ObjectPoolBase`1.CleanupFrequencyMilliseconds">
16150 <summary> 14312 <summary>
16151 System ID of the avatar 14313 The frequence which the cleanup thread runs. This is typically
14314 expected to be in the 5 minute range.
16152 </summary> 14315 </summary>
16153 </member> 14316 </member>
16154 <member name="P:OpenMetaverse.FriendInfo.Name"> 14317 <member name="M:OpenMetaverse.ObjectPoolBase`1.ForceCleanup">
16155 <summary> 14318 <summary>
16156 full name of the avatar 14319 Forces the segment cleanup algorithm to be run. This method is intended
14320 primarly for use from the Unit Test libraries.
16157 </summary> 14321 </summary>
16158 </member> 14322 </member>
16159 <member name="P:OpenMetaverse.FriendInfo.IsOnline"> 14323 <member name="M:OpenMetaverse.ObjectPoolBase`1.GetObjectInstance">
16160 <summary> 14324 <summary>
16161 True if the avatar is online 14325 Responsible for allocate 1 instance of an object that will be stored in a segment.
16162 </summary> 14326 </summary>
14327 <returns>An instance of whatever objec the pool is pooling.</returns>
16163 </member> 14328 </member>
16164 <member name="P:OpenMetaverse.FriendInfo.CanSeeMeOnline"> 14329 <member name="M:OpenMetaverse.ObjectPoolBase`1.CheckIn(OpenMetaverse.ObjectPoolSegment{`0},`0)">
16165 <summary> 14330 <summary>
16166 True if the friend can see if I am online 14331 Checks in an instance of T owned by the object pool. This method is only intended to be called
14332 by the <c>WrappedObject</c> class.
16167 </summary> 14333 </summary>
14334 <param name="owningSegment">The segment from which the instance is checked out.</param>
14335 <param name="instance">The instance of <c>T</c> to check back into the segment.</param>
16168 </member> 14336 </member>
16169 <member name="P:OpenMetaverse.FriendInfo.CanSeeMeOnMap"> 14337 <member name="M:OpenMetaverse.ObjectPoolBase`1.CheckOut">
16170 <summary> 14338 <summary>
16171 True if the friend can see me on the map 14339 Checks an instance of <c>T</c> from the pool. If the pool is not sufficient to
14340 allow the checkout, a new segment is created.
16172 </summary> 14341 </summary>
14342 <returns>A <c>WrappedObject</c> around the instance of <c>T</c>. To check
14343 the instance back into the segment, be sureto dispose the WrappedObject
14344 when finished. </returns>
16173 </member> 14345 </member>
16174 <member name="P:OpenMetaverse.FriendInfo.CanModifyMyObjects"> 14346 <member name="T:OpenMetaverse.DictionaryEventAction">
16175 <summary> 14347 <summary>
16176 True if the freind can modify my objects
16177 </summary> 14348 </summary>
16178 </member> 14349 </member>
16179 <member name="P:OpenMetaverse.FriendInfo.CanSeeThemOnline"> 14350 <member name="F:OpenMetaverse.DictionaryEventAction.Add">
16180 <summary> 14351 <summary>
16181 True if I can see if my friend is online
16182 </summary> 14352 </summary>
16183 </member> 14353 </member>
16184 <member name="P:OpenMetaverse.FriendInfo.CanSeeThemOnMap"> 14354 <member name="F:OpenMetaverse.DictionaryEventAction.Remove">
16185 <summary> 14355 <summary>
16186 True if I can see if my friend is on the map
16187 </summary> 14356 </summary>
16188 </member> 14357 </member>
16189 <member name="P:OpenMetaverse.FriendInfo.CanModifyTheirObjects"> 14358 <member name="F:OpenMetaverse.DictionaryEventAction.Change">
16190 <summary> 14359 <summary>
16191 True if I can modify my friend's objects
16192 </summary> 14360 </summary>
16193 </member> 14361 </member>
16194 <member name="P:OpenMetaverse.FriendInfo.TheirFriendRights"> 14362 <member name="T:OpenMetaverse.ObservableDictionary`2">
16195 <summary> 14363 <summary>
16196 My friend's rights represented as bitmapped flags 14364 The ObservableDictionary class is used for storing key/value pairs. It has methods for firing
14365 events to subscribers when items are added, removed, or changed.
16197 </summary> 14366 </summary>
14367 <typeparam name="TKey">Key <see langword="Tkey" /></typeparam>
14368 <typeparam name="TValue">Value <see langword="TValue" /></typeparam>
16198 </member> 14369 </member>
16199 <member name="P:OpenMetaverse.FriendInfo.MyFriendRights"> 14370 <member name="M:OpenMetaverse.ObservableDictionary`2.#ctor">
16200 <summary> 14371 <summary>
16201 My rights represented as bitmapped flags 14372 Initializes a new instance of the <seealso cref="T:ObservableDictionary" /> Class
14373 with the specified key/value, has the default initial capacity.
16202 </summary> 14374 </summary>
14375 <example>
14376 <code>
14377 // initialize a new ObservableDictionary named testDict with a string as the key and an int as the value.
14378 public ObservableDictionary&lt;string, int&gt; testDict = new ObservableDictionary&lt;string, int&gt;();
14379 </code>
14380 </example>
16203 </member> 14381 </member>
16204 <member name="T:OpenMetaverse.FriendsManager"> 14382 <member name="M:OpenMetaverse.ObservableDictionary`2.#ctor(System.Int32)">
16205 <summary> 14383 <summary>
16206 This class is used to add and remove avatars from your friends list and to manage their permission. 14384 Initializes a new instance of the <seealso cref="T:OpenMetaverse.ObservableDictionary" /> Class
14385 with the specified key/value, With its initial capacity specified.
16207 </summary> 14386 </summary>
14387 <param name="capacity">Initial size of dictionary</param>
14388 <example>
14389 <code>
14390 // initialize a new ObservableDictionary named testDict with a string as the key and an int as the value,
14391 // initially allocated room for 10 entries.
14392 public ObservableDictionary&lt;string, int&gt; testDict = new ObservableDictionary&lt;string, int&gt;(10);
14393 </code>
14394 </example>
16208 </member> 14395 </member>
16209 <member name="F:OpenMetaverse.FriendsManager.m_FriendOnline"> 14396 <member name="F:OpenMetaverse.ObservableDictionary`2.Delegates">
16210 <summary>The event subscribers. null if no subcribers</summary> 14397 <summary>
14398 A dictionary of callbacks to fire when specified action occurs
14399 </summary>
16211 </member> 14400 </member>
16212 <member name="M:OpenMetaverse.FriendsManager.OnFriendOnline(OpenMetaverse.FriendInfoEventArgs)"> 14401 <member name="F:OpenMetaverse.ObservableDictionary`2.Dictionary">
16213 <summary>Raises the FriendOnline event</summary> 14402 <summary>Internal dictionary that this class wraps around. Do not
16214 <param name="e">A FriendInfoEventArgs object containing the 14403 modify or enumerate the contents of this dictionary without locking</summary>
16215 data returned from the data server</param>
16216 </member> 14404 </member>
16217 <member name="F:OpenMetaverse.FriendsManager.m_FriendOnlineLock"> 14405 <member name="P:OpenMetaverse.ObservableDictionary`2.Item(`0)">
16218 <summary>Thread sync lock object</summary> 14406 <summary>
14407 Indexer for the dictionary
14408 </summary>
14409 <param name="key">The key</param>
14410 <returns>The value</returns>
16219 </member> 14411 </member>
16220 <member name="F:OpenMetaverse.FriendsManager.m_FriendOffline"> 14412 <member name="P:OpenMetaverse.ObservableDictionary`2.Count">
16221 <summary>The event subscribers. null if no subcribers</summary> 14413 <summary>
14414 Gets the number of Key/Value pairs contained in the <seealso cref="T:ObservableDictionary" /></summary>
16222 </member> 14415 </member>
16223 <member name="M:OpenMetaverse.FriendsManager.OnFriendOffline(OpenMetaverse.FriendInfoEventArgs)"> 14416 <member name="M:OpenMetaverse.ObservableDictionary`2.AddDelegate(OpenMetaverse.DictionaryEventAction,OpenMetaverse.DictionaryChangeCallback)">
16224 <summary>Raises the FriendOffline event</summary> 14417 <summary>
16225 <param name="e">A FriendInfoEventArgs object containing the 14418 Register a callback to be fired when an action occurs
16226 data returned from the data server</param> 14419 </summary>
14420 <param name="action">The action</param>
14421 <param name="callback">The callback to fire</param>
16227 </member> 14422 </member>
16228 <member name="F:OpenMetaverse.FriendsManager.m_FriendOfflineLock"> 14423 <member name="M:OpenMetaverse.ObservableDictionary`2.RemoveDelegate(OpenMetaverse.DictionaryEventAction,OpenMetaverse.DictionaryChangeCallback)">
16229 <summary>Thread sync lock object</summary> 14424 <summary>
14425 Unregister a callback
14426 </summary>
14427 <param name="action">The action</param>
14428 <param name="callback">The callback to fire</param>
16230 </member> 14429 </member>
16231 <member name="F:OpenMetaverse.FriendsManager.m_FriendRights"> 14430 <member name="M:OpenMetaverse.ObservableDictionary`2.FireChangeEvent(OpenMetaverse.DictionaryEventAction,System.Collections.DictionaryEntry)">
16232 <summary>The event subscribers. null if no subcribers</summary> 14431 <summary>
14432 </summary>
14433 <param name="action">
14434 </param>
14435 <param name="entry">
14436 </param>
16233 </member> 14437 </member>
16234 <member name="M:OpenMetaverse.FriendsManager.OnFriendRights(OpenMetaverse.FriendInfoEventArgs)"> 14438 <member name="M:OpenMetaverse.ObservableDictionary`2.TryGetValue(`0,`1@)">
16235 <summary>Raises the FriendRightsUpdate event</summary> 14439 <summary>
16236 <param name="e">A FriendInfoEventArgs object containing the 14440 Try to get entry from the <seealso cref="!:ObservableDictionary" /> with specified key
16237 data returned from the data server</param> 14441 </summary>
14442 <param name="key">Key to use for lookup</param>
14443 <param name="value">Value returned</param>
14444 <returns>
14445 <see langword="true" /> if specified key exists, <see langword="false" /> if not found</returns>
14446 <example>
14447 <code>
14448 // find your avatar using the Simulator.ObjectsAvatars ObservableDictionary:
14449 Avatar av;
14450 if (Client.Network.CurrentSim.ObjectsAvatars.TryGetValue(Client.Self.AgentID, out av))
14451 Console.WriteLine("Found Avatar {0}", av.Name);
14452 </code>
14453 <seealso cref="F:OpenMetaverse.Simulator.ObjectsAvatars" />
14454 </example>
16238 </member> 14455 </member>
16239 <member name="F:OpenMetaverse.FriendsManager.m_FriendRightsLock"> 14456 <member name="M:OpenMetaverse.ObservableDictionary`2.Find(System.Predicate{`1})">
16240 <summary>Thread sync lock object</summary> 14457 <summary>
14458 Finds the specified match.
14459 </summary>
14460 <param name="match">The match.</param>
14461 <returns>Matched value</returns>
14462 <example>
14463 <code>
14464 // use a delegate to find a prim in the ObjectsPrimitives ObservableDictionary
14465 // with the ID 95683496
14466 uint findID = 95683496;
14467 Primitive findPrim = sim.ObjectsPrimitives.Find(
14468 delegate(Primitive prim) { return prim.ID == findID; });
14469 </code>
14470 </example>
16241 </member> 14471 </member>
16242 <member name="F:OpenMetaverse.FriendsManager.m_FriendNames"> 14472 <member name="M:OpenMetaverse.ObservableDictionary`2.FindAll(System.Predicate{`1})">
16243 <summary>The event subscribers. null if no subcribers</summary> 14473 <summary>Find All items in an <seealso cref="T:ObservableDictionary" /></summary>
14474 <param name="match">return matching items.</param>
14475 <returns>a <seealso cref="T:System.Collections.Generic.List" /> containing found items.</returns>
14476 <example>
14477 Find All prims within 20 meters and store them in a List
14478 <code>
14479 int radius = 20;
14480 List&lt;Primitive&gt; prims = Client.Network.CurrentSim.ObjectsPrimitives.FindAll(
14481 delegate(Primitive prim) {
14482 Vector3 pos = prim.Position;
14483 return ((prim.ParentID == 0) &amp;&amp; (pos != Vector3.Zero) &amp;&amp; (Vector3.Distance(pos, location) &lt; radius));
14484 }
14485 );
14486 </code></example>
16244 </member> 14487 </member>
16245 <member name="M:OpenMetaverse.FriendsManager.OnFriendNames(OpenMetaverse.FriendNamesEventArgs)"> 14488 <member name="M:OpenMetaverse.ObservableDictionary`2.FindAll(System.Predicate{`0})">
16246 <summary>Raises the FriendNames event</summary> 14489 <summary>Find All items in an <seealso cref="T:ObservableDictionary" /></summary>
16247 <param name="e">A FriendNamesEventArgs object containing the 14490 <param name="match">return matching keys.</param>
16248 data returned from the data server</param> 14491 <returns>a <seealso cref="T:System.Collections.Generic.List" /> containing found keys.</returns>
14492 <example>
14493 Find All keys which also exist in another dictionary
14494 <code>
14495 List&lt;UUID&gt; matches = myDict.FindAll(
14496 delegate(UUID id) {
14497 return myOtherDict.ContainsKey(id);
14498 }
14499 );
14500 </code></example>
16249 </member> 14501 </member>
16250 <member name="F:OpenMetaverse.FriendsManager.m_FriendNamesLock"> 14502 <member name="M:OpenMetaverse.ObservableDictionary`2.ContainsKey(`0)">
14503 <summary>Check if Key exists in Dictionary</summary>
14504 <param name="key">Key to check for</param>
14505 <returns>
14506 <see langword="true" /> if found, <see langword="false" /> otherwise</returns>
14507 </member>
14508 <member name="M:OpenMetaverse.ObservableDictionary`2.ContainsValue(`1)">
14509 <summary>Check if Value exists in Dictionary</summary>
14510 <param name="value">Value to check for</param>
14511 <returns>
14512 <see langword="true" /> if found, <see langword="false" /> otherwise</returns>
14513 </member>
14514 <member name="M:OpenMetaverse.ObservableDictionary`2.Add(`0,`1)">
14515 <summary>
14516 Adds the specified key to the dictionary, dictionary locking is not performed,
14517 <see cref="!:SafeAdd" /></summary>
14518 <param name="key">The key</param>
14519 <param name="value">The value</param>
14520 </member>
14521 <member name="M:OpenMetaverse.ObservableDictionary`2.Remove(`0)">
14522 <summary>
14523 Removes the specified key, dictionary locking is not performed
14524 </summary>
14525 <param name="key">The key.</param>
14526 <returns>
14527 <see langword="true" /> if successful, <see langword="false" /> otherwise</returns>
14528 </member>
14529 <member name="M:OpenMetaverse.ObservableDictionary`2.Clear">
14530 <summary>
14531 Clear the contents of the dictionary
14532 </summary>
14533 </member>
14534 <member name="M:OpenMetaverse.ObservableDictionary`2.GetEnumerator">
14535 <summary>
14536 Enumerator for iterating dictionary entries
14537 </summary>
14538 <returns>
14539 </returns>
14540 </member>
14541 <member name="T:OpenMetaverse.Packets.PacketDecoder.CustomPacketDecoder">
14542 <summary>
14543 A custom decoder callback
14544 </summary>
14545 <param name="fieldName">The key of the object</param>
14546 <param name="fieldData">the data to decode</param>
14547 <returns>A string represending the fieldData</returns>
14548 </member>
14549 <member name="M:OpenMetaverse.Packets.PacketDecoder.AddCallback(System.String,OpenMetaverse.Packets.PacketDecoder.CustomPacketDecoder)">
14550 <summary>
14551 Add a custom decoder callback
14552 </summary>
14553 <param name="key">The key of the field to decode</param>
14554 <param name="customPacketHandler">The custom decode handler</param>
14555 </member>
14556 <member name="M:OpenMetaverse.Packets.PacketDecoder.RemoveCustomHandler(System.String,OpenMetaverse.Packets.PacketDecoder.CustomPacketDecoder)">
14557 <summary>
14558 Remove a custom decoder callback
14559 </summary>
14560 <param name="key">The key of the field to decode</param>
14561 <param name="customPacketHandler">The custom decode handler</param>
14562 </member>
14563 <member name="M:OpenMetaverse.Packets.PacketDecoder.PacketToString(OpenMetaverse.Packets.Packet)">
14564 <summary>
14565 Creates a formatted string containing the values of a Packet
14566 </summary>
14567 <param name="packet">The Packet</param>
14568 <returns>A formatted string of values of the nested items in the Packet object</returns>
14569 </member>
14570 <member name="M:OpenMetaverse.Packets.PacketDecoder.MessageToString(System.Object,System.Int32)">
14571 <summary>
14572 Decode an IMessage object into a beautifully formatted string
14573 </summary>
14574 <param name="message">The IMessage object</param>
14575 <param name="recurseLevel">Recursion level (used for indenting)</param>
14576 <returns>A formatted string containing the names and values of the source object</returns>
14577 </member>
14578 <member name="T:OpenMetaverse.ObjectReturnType">
14579 <summary>
14580 Type of return to use when returning objects from a parcel
14581 </summary>
14582 </member>
14583 <member name="F:OpenMetaverse.ObjectReturnType.None">
14584 <summary>
14585 </summary>
14586 </member>
14587 <member name="F:OpenMetaverse.ObjectReturnType.Owner">
14588 <summary>Return objects owned by parcel owner</summary>
14589 </member>
14590 <member name="F:OpenMetaverse.ObjectReturnType.Group">
14591 <summary>Return objects set to group</summary>
14592 </member>
14593 <member name="F:OpenMetaverse.ObjectReturnType.Other">
14594 <summary>Return objects not owned by parcel owner or set to group</summary>
14595 </member>
14596 <member name="F:OpenMetaverse.ObjectReturnType.List">
14597 <summary>Return a specific list of objects on parcel</summary>
14598 </member>
14599 <member name="F:OpenMetaverse.ObjectReturnType.Sell">
14600 <summary>Return objects that are marked for-sale</summary>
14601 </member>
14602 <member name="T:OpenMetaverse.ParcelAccessFlags">
14603 <summary>
14604 Blacklist/Whitelist flags used in parcels Access List
14605 </summary>
14606 </member>
14607 <member name="F:OpenMetaverse.ParcelAccessFlags.NoAccess">
14608 <summary>Agent is denied access</summary>
14609 </member>
14610 <member name="F:OpenMetaverse.ParcelAccessFlags.Access">
14611 <summary>Agent is granted access</summary>
14612 </member>
14613 <member name="T:OpenMetaverse.ParcelResult">
14614 <summary>
14615 The result of a request for parcel properties
14616 </summary>
14617 </member>
14618 <member name="F:OpenMetaverse.ParcelResult.NoData">
14619 <summary>No matches were found for the request</summary>
14620 </member>
14621 <member name="F:OpenMetaverse.ParcelResult.Single">
14622 <summary>Request matched a single parcel</summary>
14623 </member>
14624 <member name="F:OpenMetaverse.ParcelResult.Multiple">
14625 <summary>Request matched multiple parcels</summary>
14626 </member>
14627 <member name="T:OpenMetaverse.AccessList">
14628 <summary>
14629 Flags used in the ParcelAccessListRequest packet to specify whether
14630 we want the access list (whitelist), ban list (blacklist), or both
14631 </summary>
14632 </member>
14633 <member name="F:OpenMetaverse.AccessList.Access">
14634 <summary>Request the access list</summary>
14635 </member>
14636 <member name="F:OpenMetaverse.AccessList.Ban">
14637 <summary>Request the ban list</summary>
14638 </member>
14639 <member name="F:OpenMetaverse.AccessList.Both">
14640 <summary>Request both White and Black lists</summary>
14641 </member>
14642 <member name="T:OpenMetaverse.ParcelPropertiesStatus">
14643 <summary>
14644 Sequence ID in ParcelPropertiesReply packets (sent when avatar
14645 tries to cross a parcel border)
14646 </summary>
14647 </member>
14648 <member name="F:OpenMetaverse.ParcelPropertiesStatus.ParcelSelected">
14649 <summary>Parcel is currently selected</summary>
14650 </member>
14651 <member name="F:OpenMetaverse.ParcelPropertiesStatus.CollisionNotInGroup">
14652 <summary>Parcel restricted to a group the avatar is not a
14653 member of</summary>
14654 </member>
14655 <member name="F:OpenMetaverse.ParcelPropertiesStatus.CollisionBanned">
14656 <summary>Avatar is banned from the parcel</summary>
14657 </member>
14658 <member name="F:OpenMetaverse.ParcelPropertiesStatus.CollisionNotOnAccessList">
14659 <summary>Parcel is restricted to an access list that the
14660 avatar is not on</summary>
14661 </member>
14662 <member name="F:OpenMetaverse.ParcelPropertiesStatus.HoveredOverParcel">
14663 <summary>Response to hovering over a parcel</summary>
14664 </member>
14665 <member name="T:OpenMetaverse.TerraformAction">
14666 <summary>
14667 The tool to use when modifying terrain levels
14668 </summary>
14669 </member>
14670 <member name="F:OpenMetaverse.TerraformAction.Level">
14671 <summary>Level the terrain</summary>
14672 </member>
14673 <member name="F:OpenMetaverse.TerraformAction.Raise">
14674 <summary>Raise the terrain</summary>
14675 </member>
14676 <member name="F:OpenMetaverse.TerraformAction.Lower">
14677 <summary>Lower the terrain</summary>
14678 </member>
14679 <member name="F:OpenMetaverse.TerraformAction.Smooth">
14680 <summary>Smooth the terrain</summary>
14681 </member>
14682 <member name="F:OpenMetaverse.TerraformAction.Noise">
14683 <summary>Add random noise to the terrain</summary>
14684 </member>
14685 <member name="F:OpenMetaverse.TerraformAction.Revert">
14686 <summary>Revert terrain to simulator default</summary>
14687 </member>
14688 <member name="T:OpenMetaverse.TerraformBrushSize">
14689 <summary>
14690 The tool size to use when changing terrain levels
14691 </summary>
14692 </member>
14693 <member name="F:OpenMetaverse.TerraformBrushSize.Small">
14694 <summary>Small</summary>
14695 </member>
14696 <member name="F:OpenMetaverse.TerraformBrushSize.Medium">
14697 <summary>Medium</summary>
14698 </member>
14699 <member name="F:OpenMetaverse.TerraformBrushSize.Large">
14700 <summary>Large</summary>
14701 </member>
14702 <member name="T:OpenMetaverse.AccessDeniedReason">
14703 <summary>
14704 Reasons agent is denied access to a parcel on the simulator
14705 </summary>
14706 </member>
14707 <member name="F:OpenMetaverse.AccessDeniedReason.NotDenied">
14708 <summary>Agent is not denied, access is granted</summary>
14709 </member>
14710 <member name="F:OpenMetaverse.AccessDeniedReason.NotInGroup">
14711 <summary>Agent is not a member of the group set for the parcel, or which owns the parcel</summary>
14712 </member>
14713 <member name="F:OpenMetaverse.AccessDeniedReason.NotOnAllowList">
14714 <summary>Agent is not on the parcels specific allow list</summary>
14715 </member>
14716 <member name="F:OpenMetaverse.AccessDeniedReason.BannedFromParcel">
14717 <summary>Agent is on the parcels ban list</summary>
14718 </member>
14719 <member name="F:OpenMetaverse.AccessDeniedReason.NoAccess">
14720 <summary>Unknown</summary>
14721 </member>
14722 <member name="F:OpenMetaverse.AccessDeniedReason.NotAgeVerified">
14723 <summary>Agent is not age verified and parcel settings deny access to non age verified avatars</summary>
14724 </member>
14725 <member name="T:OpenMetaverse.ParcelOverlayType">
14726 <summary>
14727 Parcel overlay type. This is used primarily for highlighting and
14728 coloring which is why it is a single integer instead of a set of
14729 flags
14730 </summary>
14731 <remarks>These values seem to be poorly thought out. The first three
14732 bits represent a single value, not flags. For example Auction (0x05) is
14733 not a combination of OwnedByOther (0x01) and ForSale(0x04). However,
14734 the BorderWest and BorderSouth values are bit flags that get attached
14735 to the value stored in the first three bits. Bits four, five, and six
14736 are unused</remarks>
14737 </member>
14738 <member name="F:OpenMetaverse.ParcelOverlayType.Public">
14739 <summary>Public land</summary>
14740 </member>
14741 <member name="F:OpenMetaverse.ParcelOverlayType.OwnedByOther">
14742 <summary>Land is owned by another avatar</summary>
14743 </member>
14744 <member name="F:OpenMetaverse.ParcelOverlayType.OwnedByGroup">
14745 <summary>Land is owned by a group</summary>
14746 </member>
14747 <member name="F:OpenMetaverse.ParcelOverlayType.OwnedBySelf">
14748 <summary>Land is owned by the current avatar</summary>
14749 </member>
14750 <member name="F:OpenMetaverse.ParcelOverlayType.ForSale">
14751 <summary>Land is for sale</summary>
14752 </member>
14753 <member name="F:OpenMetaverse.ParcelOverlayType.Auction">
14754 <summary>Land is being auctioned</summary>
14755 </member>
14756 <member name="F:OpenMetaverse.ParcelOverlayType.Private">
14757 <summary>Land is private</summary>
14758 </member>
14759 <member name="F:OpenMetaverse.ParcelOverlayType.BorderWest">
14760 <summary>To the west of this area is a parcel border</summary>
14761 </member>
14762 <member name="F:OpenMetaverse.ParcelOverlayType.BorderSouth">
14763 <summary>To the south of this area is a parcel border</summary>
14764 </member>
14765 <member name="T:OpenMetaverse.ParcelFlags">
14766 <summary>
14767 Various parcel properties
14768 </summary>
14769 </member>
14770 <member name="F:OpenMetaverse.ParcelFlags.None">
14771 <summary>No flags set</summary>
14772 </member>
14773 <member name="F:OpenMetaverse.ParcelFlags.AllowFly">
14774 <summary>Allow avatars to fly (a client-side only restriction)</summary>
14775 </member>
14776 <member name="F:OpenMetaverse.ParcelFlags.AllowOtherScripts">
14777 <summary>Allow foreign scripts to run</summary>
14778 </member>
14779 <member name="F:OpenMetaverse.ParcelFlags.ForSale">
14780 <summary>This parcel is for sale</summary>
14781 </member>
14782 <member name="F:OpenMetaverse.ParcelFlags.AllowLandmark">
14783 <summary>Allow avatars to create a landmark on this parcel</summary>
14784 </member>
14785 <member name="F:OpenMetaverse.ParcelFlags.AllowTerraform">
14786 <summary>Allows all avatars to edit the terrain on this parcel</summary>
14787 </member>
14788 <member name="F:OpenMetaverse.ParcelFlags.AllowDamage">
14789 <summary>Avatars have health and can take damage on this parcel.
14790 If set, avatars can be killed and sent home here</summary>
14791 </member>
14792 <member name="F:OpenMetaverse.ParcelFlags.CreateObjects">
14793 <summary>Foreign avatars can create objects here</summary>
14794 </member>
14795 <member name="F:OpenMetaverse.ParcelFlags.ForSaleObjects">
14796 <summary>All objects on this parcel can be purchased</summary>
14797 </member>
14798 <member name="F:OpenMetaverse.ParcelFlags.UseAccessGroup">
14799 <summary>Access is restricted to a group</summary>
14800 </member>
14801 <member name="F:OpenMetaverse.ParcelFlags.UseAccessList">
14802 <summary>Access is restricted to a whitelist</summary>
14803 </member>
14804 <member name="F:OpenMetaverse.ParcelFlags.UseBanList">
14805 <summary>Ban blacklist is enabled</summary>
14806 </member>
14807 <member name="F:OpenMetaverse.ParcelFlags.UsePassList">
14808 <summary>Unknown</summary>
14809 </member>
14810 <member name="F:OpenMetaverse.ParcelFlags.ShowDirectory">
14811 <summary>List this parcel in the search directory</summary>
14812 </member>
14813 <member name="F:OpenMetaverse.ParcelFlags.AllowDeedToGroup">
14814 <summary>Allow personally owned parcels to be deeded to group</summary>
14815 </member>
14816 <member name="F:OpenMetaverse.ParcelFlags.ContributeWithDeed">
14817 <summary>If Deeded, owner contributes required tier to group parcel is deeded to</summary>
14818 </member>
14819 <member name="F:OpenMetaverse.ParcelFlags.SoundLocal">
14820 <summary>Restrict sounds originating on this parcel to the
14821 parcel boundaries</summary>
14822 </member>
14823 <member name="F:OpenMetaverse.ParcelFlags.SellParcelObjects">
14824 <summary>Objects on this parcel are sold when the land is
14825 purchsaed</summary>
14826 </member>
14827 <member name="F:OpenMetaverse.ParcelFlags.AllowPublish">
14828 <summary>Allow this parcel to be published on the web</summary>
14829 </member>
14830 <member name="F:OpenMetaverse.ParcelFlags.MaturePublish">
14831 <summary>The information for this parcel is mature content</summary>
14832 </member>
14833 <member name="F:OpenMetaverse.ParcelFlags.UrlWebPage">
14834 <summary>The media URL is an HTML page</summary>
14835 </member>
14836 <member name="F:OpenMetaverse.ParcelFlags.UrlRawHtml">
14837 <summary>The media URL is a raw HTML string</summary>
14838 </member>
14839 <member name="F:OpenMetaverse.ParcelFlags.RestrictPushObject">
14840 <summary>Restrict foreign object pushes</summary>
14841 </member>
14842 <member name="F:OpenMetaverse.ParcelFlags.DenyAnonymous">
14843 <summary>Ban all non identified/transacted avatars</summary>
14844 </member>
14845 <member name="F:OpenMetaverse.ParcelFlags.AllowGroupScripts">
14846 <summary>Allow group-owned scripts to run</summary>
14847 </member>
14848 <member name="F:OpenMetaverse.ParcelFlags.CreateGroupObjects">
14849 <summary>Allow object creation by group members or group
14850 objects</summary>
14851 </member>
14852 <member name="F:OpenMetaverse.ParcelFlags.AllowAPrimitiveEntry">
14853 <summary>Allow all objects to enter this parcel</summary>
14854 </member>
14855 <member name="F:OpenMetaverse.ParcelFlags.AllowGroupObjectEntry">
14856 <summary>Only allow group and owner objects to enter this parcel</summary>
14857 </member>
14858 <member name="F:OpenMetaverse.ParcelFlags.AllowVoiceChat">
14859 <summary>Voice Enabled on this parcel</summary>
14860 </member>
14861 <member name="F:OpenMetaverse.ParcelFlags.UseEstateVoiceChan">
14862 <summary>Use Estate Voice channel for Voice on this parcel</summary>
14863 </member>
14864 <member name="F:OpenMetaverse.ParcelFlags.DenyAgeUnverified">
14865 <summary>Deny Age Unverified Users</summary>
14866 </member>
14867 <member name="T:OpenMetaverse.ParcelStatus">
14868 <summary>
14869 Parcel ownership status
14870 </summary>
14871 </member>
14872 <member name="F:OpenMetaverse.ParcelStatus.None">
14873 <summary>Placeholder</summary>
14874 </member>
14875 <member name="F:OpenMetaverse.ParcelStatus.Leased">
14876 <summary>Parcel is leased (owned) by an avatar or group</summary>
14877 </member>
14878 <member name="F:OpenMetaverse.ParcelStatus.LeasePending">
14879 <summary>Parcel is in process of being leased (purchased) by an avatar or group</summary>
14880 </member>
14881 <member name="F:OpenMetaverse.ParcelStatus.Abandoned">
14882 <summary>Parcel has been abandoned back to Governor Linden</summary>
14883 </member>
14884 <member name="T:OpenMetaverse.ParcelCategory">
14885 <summary>
14886 Category parcel is listed in under search
14887 </summary>
14888 </member>
14889 <member name="F:OpenMetaverse.ParcelCategory.None">
14890 <summary>No assigned category</summary>
14891 </member>
14892 <member name="F:OpenMetaverse.ParcelCategory.Linden">
14893 <summary>Linden Infohub or public area</summary>
14894 </member>
14895 <member name="F:OpenMetaverse.ParcelCategory.Adult">
14896 <summary>Adult themed area</summary>
14897 </member>
14898 <member name="F:OpenMetaverse.ParcelCategory.Arts">
14899 <summary>Arts and Culture</summary>
14900 </member>
14901 <member name="F:OpenMetaverse.ParcelCategory.Business">
14902 <summary>Business</summary>
14903 </member>
14904 <member name="F:OpenMetaverse.ParcelCategory.Educational">
14905 <summary>Educational</summary>
14906 </member>
14907 <member name="F:OpenMetaverse.ParcelCategory.Gaming">
14908 <summary>Gaming</summary>
14909 </member>
14910 <member name="F:OpenMetaverse.ParcelCategory.Hangout">
14911 <summary>Hangout or Club</summary>
14912 </member>
14913 <member name="F:OpenMetaverse.ParcelCategory.Newcomer">
14914 <summary>Newcomer friendly</summary>
14915 </member>
14916 <member name="F:OpenMetaverse.ParcelCategory.Park">
14917 <summary>Parks and Nature</summary>
14918 </member>
14919 <member name="F:OpenMetaverse.ParcelCategory.Residential">
14920 <summary>Residential</summary>
14921 </member>
14922 <member name="F:OpenMetaverse.ParcelCategory.Shopping">
14923 <summary>Shopping</summary>
14924 </member>
14925 <member name="F:OpenMetaverse.ParcelCategory.Stage">
14926 <summary>Not Used?</summary>
14927 </member>
14928 <member name="F:OpenMetaverse.ParcelCategory.Other">
14929 <summary>Other</summary>
14930 </member>
14931 <member name="F:OpenMetaverse.ParcelCategory.Any">
14932 <summary>Not an actual category, only used for queries</summary>
14933 </member>
14934 <member name="T:OpenMetaverse.LandingType">
14935 <summary>
14936 Type of teleport landing for a parcel
14937 </summary>
14938 </member>
14939 <member name="F:OpenMetaverse.LandingType.None">
14940 <summary>Unset, simulator default</summary>
14941 </member>
14942 <member name="F:OpenMetaverse.LandingType.LandingPoint">
14943 <summary>Specific landing point set for this parcel</summary>
14944 </member>
14945 <member name="F:OpenMetaverse.LandingType.Direct">
14946 <summary>No landing point set, direct teleports enabled for
14947 this parcel</summary>
14948 </member>
14949 <member name="T:OpenMetaverse.ParcelMediaCommand">
14950 <summary>
14951 Parcel Media Command used in ParcelMediaCommandMessage
14952 </summary>
14953 </member>
14954 <member name="F:OpenMetaverse.ParcelMediaCommand.Stop">
14955 <summary>Stop the media stream and go back to the first frame</summary>
14956 </member>
14957 <member name="F:OpenMetaverse.ParcelMediaCommand.Pause">
14958 <summary>Pause the media stream (stop playing but stay on current frame)</summary>
14959 </member>
14960 <member name="F:OpenMetaverse.ParcelMediaCommand.Play">
14961 <summary>Start the current media stream playing and stop when the end is reached</summary>
14962 </member>
14963 <member name="F:OpenMetaverse.ParcelMediaCommand.Loop">
14964 <summary>Start the current media stream playing,
14965 loop to the beginning when the end is reached and continue to play</summary>
14966 </member>
14967 <member name="F:OpenMetaverse.ParcelMediaCommand.Texture">
14968 <summary>Specifies the texture to replace with video</summary>
14969 <remarks>If passing the key of a texture, it must be explicitly typecast as a key,
14970 not just passed within double quotes.</remarks>
14971 </member>
14972 <member name="F:OpenMetaverse.ParcelMediaCommand.URL">
14973 <summary>Specifies the movie URL (254 characters max)</summary>
14974 </member>
14975 <member name="F:OpenMetaverse.ParcelMediaCommand.Time">
14976 <summary>Specifies the time index at which to begin playing</summary>
14977 </member>
14978 <member name="F:OpenMetaverse.ParcelMediaCommand.Agent">
14979 <summary>Specifies a single agent to apply the media command to</summary>
14980 </member>
14981 <member name="F:OpenMetaverse.ParcelMediaCommand.Unload">
14982 <summary>Unloads the stream. While the stop command sets the texture to the first frame of the movie,
14983 unload resets it to the real texture that the movie was replacing.</summary>
14984 </member>
14985 <member name="F:OpenMetaverse.ParcelMediaCommand.AutoAlign">
14986 <summary>Turn on/off the auto align feature, similar to the auto align checkbox in the parcel media properties
14987 (NOT to be confused with the "align" function in the textures view of the editor!) Takes TRUE or FALSE as parameter.</summary>
14988 </member>
14989 <member name="F:OpenMetaverse.ParcelMediaCommand.Type">
14990 <summary>Allows a Web page or image to be placed on a prim (1.19.1 RC0 and later only).
14991 Use "text/html" for HTML.</summary>
14992 </member>
14993 <member name="F:OpenMetaverse.ParcelMediaCommand.Size">
14994 <summary>Resizes a Web page to fit on x, y pixels (1.19.1 RC0 and later only).</summary>
14995 <remarks>This might still not be working</remarks>
14996 </member>
14997 <member name="F:OpenMetaverse.ParcelMediaCommand.Desc">
14998 <summary>Sets a description for the media being displayed (1.19.1 RC0 and later only).</summary>
14999 </member>
15000 <member name="T:OpenMetaverse.ParcelInfo">
15001 <summary>
15002 Some information about a parcel of land returned from a DirectoryManager search
15003 </summary>
15004 </member>
15005 <member name="F:OpenMetaverse.ParcelInfo.ID">
15006 <summary>Global Key of record</summary>
15007 </member>
15008 <member name="F:OpenMetaverse.ParcelInfo.OwnerID">
15009 <summary>Parcel Owners <seealso cref="T:OpenMetaverse.UUID" /></summary>
15010 </member>
15011 <member name="F:OpenMetaverse.ParcelInfo.Name">
15012 <summary>Name field of parcel, limited to 128 characters</summary>
15013 </member>
15014 <member name="F:OpenMetaverse.ParcelInfo.Description">
15015 <summary>Description field of parcel, limited to 256 characters</summary>
15016 </member>
15017 <member name="F:OpenMetaverse.ParcelInfo.ActualArea">
15018 <summary>Total Square meters of parcel</summary>
15019 </member>
15020 <member name="F:OpenMetaverse.ParcelInfo.BillableArea">
15021 <summary>Total area billable as Tier, for group owned land this will be 10% less than ActualArea</summary>
15022 </member>
15023 <member name="F:OpenMetaverse.ParcelInfo.Mature">
15024 <summary>True of parcel is in Mature simulator</summary>
15025 </member>
15026 <member name="F:OpenMetaverse.ParcelInfo.GlobalX">
15027 <summary>Grid global X position of parcel</summary>
15028 </member>
15029 <member name="F:OpenMetaverse.ParcelInfo.GlobalY">
15030 <summary>Grid global Y position of parcel</summary>
15031 </member>
15032 <member name="F:OpenMetaverse.ParcelInfo.GlobalZ">
15033 <summary>Grid global Z position of parcel (not used)</summary>
15034 </member>
15035 <member name="F:OpenMetaverse.ParcelInfo.SimName">
15036 <summary>Name of simulator parcel is located in</summary>
15037 </member>
15038 <member name="F:OpenMetaverse.ParcelInfo.SnapshotID">
15039 <summary>Texture <seealso cref="T:OpenMetaverse.UUID" /> of parcels display picture</summary>
15040 </member>
15041 <member name="F:OpenMetaverse.ParcelInfo.Dwell">
15042 <summary>Float representing calculated traffic based on time spent on parcel by avatars</summary>
15043 </member>
15044 <member name="F:OpenMetaverse.ParcelInfo.SalePrice">
15045 <summary>Sale price of parcel (not used)</summary>
15046 </member>
15047 <member name="F:OpenMetaverse.ParcelInfo.AuctionID">
15048 <summary>Auction ID of parcel</summary>
15049 </member>
15050 <member name="T:OpenMetaverse.ParcelMedia">
15051 <summary>
15052 Parcel Media Information
15053 </summary>
15054 </member>
15055 <member name="F:OpenMetaverse.ParcelMedia.MediaAutoScale">
15056 <summary>A byte, if 0x1 viewer should auto scale media to fit object</summary>
15057 </member>
15058 <member name="F:OpenMetaverse.ParcelMedia.MediaLoop">
15059 <summary>A boolean, if true the viewer should loop the media</summary>
15060 </member>
15061 <member name="F:OpenMetaverse.ParcelMedia.MediaID">
15062 <summary>The Asset UUID of the Texture which when applied to a
15063 primitive will display the media</summary>
15064 </member>
15065 <member name="F:OpenMetaverse.ParcelMedia.MediaURL">
15066 <summary>A URL which points to any Quicktime supported media type</summary>
15067 </member>
15068 <member name="F:OpenMetaverse.ParcelMedia.MediaDesc">
15069 <summary>A description of the media</summary>
15070 </member>
15071 <member name="F:OpenMetaverse.ParcelMedia.MediaHeight">
15072 <summary>An Integer which represents the height of the media</summary>
15073 </member>
15074 <member name="F:OpenMetaverse.ParcelMedia.MediaWidth">
15075 <summary>An integer which represents the width of the media</summary>
15076 </member>
15077 <member name="F:OpenMetaverse.ParcelMedia.MediaType">
15078 <summary>A string which contains the mime type of the media</summary>
15079 </member>
15080 <member name="T:OpenMetaverse.Parcel">
15081 <summary>
15082 Parcel of land, a portion of virtual real estate in a simulator
15083 </summary>
15084 </member>
15085 <member name="M:OpenMetaverse.Parcel.#ctor(System.Int32)">
15086 <summary>
15087 Defalt constructor
15088 </summary>
15089 <param name="localID">Local ID of this parcel</param>
15090 </member>
15091 <member name="F:OpenMetaverse.Parcel.SelfCount">
15092 <summary>The total number of contiguous 4x4 meter blocks your agent owns within this parcel</summary>
15093 </member>
15094 <member name="F:OpenMetaverse.Parcel.OtherCount">
15095 <summary>The total number of contiguous 4x4 meter blocks contained in this parcel owned by a group or agent other than your own</summary>
15096 </member>
15097 <member name="F:OpenMetaverse.Parcel.PublicCount">
15098 <summary>Deprecated, Value appears to always be 0</summary>
15099 </member>
15100 <member name="F:OpenMetaverse.Parcel.LocalID">
15101 <summary>Simulator-local ID of this parcel</summary>
15102 </member>
15103 <member name="F:OpenMetaverse.Parcel.OwnerID">
15104 <summary>UUID of the owner of this parcel</summary>
15105 </member>
15106 <member name="F:OpenMetaverse.Parcel.IsGroupOwned">
15107 <summary>Whether the land is deeded to a group or not</summary>
15108 </member>
15109 <member name="F:OpenMetaverse.Parcel.AuctionID">
15110 <summary>
15111 </summary>
15112 </member>
15113 <member name="F:OpenMetaverse.Parcel.ClaimDate">
15114 <summary>Date land was claimed</summary>
15115 </member>
15116 <member name="F:OpenMetaverse.Parcel.ClaimPrice">
15117 <summary>Appears to always be zero</summary>
15118 </member>
15119 <member name="F:OpenMetaverse.Parcel.RentPrice">
15120 <summary>This field is no longer used</summary>
15121 </member>
15122 <member name="F:OpenMetaverse.Parcel.AABBMin">
15123 <summary>Minimum corner of the axis-aligned bounding box for this
15124 parcel</summary>
15125 </member>
15126 <member name="F:OpenMetaverse.Parcel.AABBMax">
15127 <summary>Maximum corner of the axis-aligned bounding box for this
15128 parcel</summary>
15129 </member>
15130 <member name="F:OpenMetaverse.Parcel.Bitmap">
15131 <summary>Bitmap describing land layout in 4x4m squares across the
15132 entire region</summary>
15133 </member>
15134 <member name="F:OpenMetaverse.Parcel.Area">
15135 <summary>Total parcel land area</summary>
15136 </member>
15137 <member name="F:OpenMetaverse.Parcel.Status">
15138 <summary>
15139 </summary>
15140 </member>
15141 <member name="F:OpenMetaverse.Parcel.SimWideMaxPrims">
15142 <summary>Maximum primitives across the entire simulator owned by the same agent or group that owns this parcel that can be used</summary>
15143 </member>
15144 <member name="F:OpenMetaverse.Parcel.SimWideTotalPrims">
15145 <summary>Total primitives across the entire simulator calculated by combining the allowed prim counts for each parcel
15146 owned by the agent or group that owns this parcel</summary>
15147 </member>
15148 <member name="F:OpenMetaverse.Parcel.MaxPrims">
15149 <summary>Maximum number of primitives this parcel supports</summary>
15150 </member>
15151 <member name="F:OpenMetaverse.Parcel.TotalPrims">
15152 <summary>Total number of primitives on this parcel</summary>
15153 </member>
15154 <member name="F:OpenMetaverse.Parcel.OwnerPrims">
15155 <summary>For group-owned parcels this indicates the total number of prims deeded to the group,
15156 for parcels owned by an individual this inicates the number of prims owned by the individual</summary>
15157 </member>
15158 <member name="F:OpenMetaverse.Parcel.GroupPrims">
15159 <summary>Total number of primitives owned by the parcel group on
15160 this parcel, or for parcels owned by an individual with a group set the
15161 total number of prims set to that group.</summary>
15162 </member>
15163 <member name="F:OpenMetaverse.Parcel.OtherPrims">
15164 <summary>Total number of prims owned by other avatars that are not set to group, or not the parcel owner</summary>
15165 </member>
15166 <member name="F:OpenMetaverse.Parcel.ParcelPrimBonus">
15167 <summary>A bonus multiplier which allows parcel prim counts to go over times this amount, this does not affect
15168 the max prims per simulator. e.g: 117 prim parcel limit x 1.5 bonus = 175 allowed</summary>
15169 </member>
15170 <member name="F:OpenMetaverse.Parcel.OtherCleanTime">
15171 <summary>Autoreturn value in minutes for others' objects</summary>
15172 </member>
15173 <member name="F:OpenMetaverse.Parcel.Flags">
15174 <summary>
15175 </summary>
15176 </member>
15177 <member name="F:OpenMetaverse.Parcel.SalePrice">
15178 <summary>Sale price of the parcel, only useful if ForSale is set</summary>
15179 <remarks>The SalePrice will remain the same after an ownership
15180 transfer (sale), so it can be used to see the purchase price after
15181 a sale if the new owner has not changed it</remarks>
15182 </member>
15183 <member name="F:OpenMetaverse.Parcel.Name">
15184 <summary>Parcel Name</summary>
15185 </member>
15186 <member name="F:OpenMetaverse.Parcel.Desc">
15187 <summary>Parcel Description</summary>
15188 </member>
15189 <member name="F:OpenMetaverse.Parcel.MusicURL">
15190 <summary>URL For Music Stream</summary>
15191 </member>
15192 <member name="F:OpenMetaverse.Parcel.GroupID">
15193 <summary>
15194 </summary>
15195 </member>
15196 <member name="F:OpenMetaverse.Parcel.PassPrice">
15197 <summary>Price for a temporary pass</summary>
15198 </member>
15199 <member name="F:OpenMetaverse.Parcel.PassHours">
15200 <summary>How long is pass valid for</summary>
15201 </member>
15202 <member name="F:OpenMetaverse.Parcel.Category">
15203 <summary>
15204 </summary>
15205 </member>
15206 <member name="F:OpenMetaverse.Parcel.AuthBuyerID">
15207 <summary>Key of authorized buyer</summary>
15208 </member>
15209 <member name="F:OpenMetaverse.Parcel.SnapshotID">
15210 <summary>Key of parcel snapshot</summary>
15211 </member>
15212 <member name="F:OpenMetaverse.Parcel.UserLocation">
15213 <summary>The landing point location</summary>
15214 </member>
15215 <member name="F:OpenMetaverse.Parcel.UserLookAt">
15216 <summary>The landing point LookAt</summary>
15217 </member>
15218 <member name="F:OpenMetaverse.Parcel.Landing">
15219 <summary>The type of landing enforced from the <see cref="T:OpenMetaverse.LandingType" /> enum</summary>
15220 </member>
15221 <member name="F:OpenMetaverse.Parcel.Dwell">
15222 <summary>
15223 </summary>
15224 </member>
15225 <member name="F:OpenMetaverse.Parcel.RegionDenyAnonymous">
15226 <summary>
15227 </summary>
15228 </member>
15229 <member name="F:OpenMetaverse.Parcel.RegionPushOverride">
15230 <summary>
15231 </summary>
15232 </member>
15233 <member name="F:OpenMetaverse.Parcel.AccessWhiteList">
15234 <summary>Access list of who is whitelisted on this
15235 parcel</summary>
15236 </member>
15237 <member name="F:OpenMetaverse.Parcel.AccessBlackList">
15238 <summary>Access list of who is blacklisted on this
15239 parcel</summary>
15240 </member>
15241 <member name="F:OpenMetaverse.Parcel.RegionDenyAgeUnverified">
15242 <summary>TRUE of region denies access to age unverified users</summary>
15243 </member>
15244 <member name="F:OpenMetaverse.Parcel.ObscureMedia">
15245 <summary>true to obscure (hide) media url</summary>
15246 </member>
15247 <member name="F:OpenMetaverse.Parcel.ObscureMusic">
15248 <summary>true to obscure (hide) music url</summary>
15249 </member>
15250 <member name="F:OpenMetaverse.Parcel.Media">
15251 <summary>A struct containing media details</summary>
15252 </member>
15253 <member name="M:OpenMetaverse.Parcel.ToString">
15254 <summary>
15255 Displays a parcel object in string format
15256 </summary>
15257 <returns>string containing key=value pairs of a parcel object</returns>
15258 </member>
15259 <member name="M:OpenMetaverse.Parcel.Update(OpenMetaverse.Simulator,System.Boolean)">
15260 <summary>
15261 Update the simulator with any local changes to this Parcel object
15262 </summary>
15263 <param name="simulator">Simulator to send updates to</param>
15264 <param name="wantReply">Whether we want the simulator to confirm
15265 the update with a reply packet or not</param>
15266 </member>
15267 <member name="M:OpenMetaverse.Parcel.UpdateOtherCleanTime(OpenMetaverse.Simulator)">
15268 <summary>
15269 Set Autoreturn time
15270 </summary>
15271 <param name="simulator">Simulator to send the update to</param>
15272 </member>
15273 <member name="T:OpenMetaverse.ParcelManager">
15274 <summary>
15275 Parcel (subdivided simulator lots) subsystem
15276 </summary>
15277 </member>
15278 <member name="M:OpenMetaverse.ParcelManager.#ctor(OpenMetaverse.GridClient)">
15279 <summary>
15280 Default constructor
15281 </summary>
15282 <param name="client">A reference to the GridClient object</param>
15283 </member>
15284 <member name="T:OpenMetaverse.ParcelManager.ParcelAccessEntry">
15285 <summary>
15286 Parcel Accesslist
15287 </summary>
15288 </member>
15289 <member name="F:OpenMetaverse.ParcelManager.ParcelAccessEntry.AgentID">
15290 <summary>Agents <seealso cref="T:OpenMetaverse.UUID" /></summary>
15291 </member>
15292 <member name="F:OpenMetaverse.ParcelManager.ParcelAccessEntry.Time">
15293 <summary>
15294 </summary>
15295 </member>
15296 <member name="F:OpenMetaverse.ParcelManager.ParcelAccessEntry.Flags">
15297 <summary>Flags for specific entry in white/black lists</summary>
15298 </member>
15299 <member name="T:OpenMetaverse.ParcelManager.ParcelPrimOwners">
15300 <summary>
15301 Owners of primitives on parcel
15302 </summary>
15303 </member>
15304 <member name="F:OpenMetaverse.ParcelManager.ParcelPrimOwners.OwnerID">
15305 <summary>Prim Owners <seealso cref="T:OpenMetaverse.UUID" /></summary>
15306 </member>
15307 <member name="F:OpenMetaverse.ParcelManager.ParcelPrimOwners.IsGroupOwned">
15308 <summary>True of owner is group</summary>
15309 </member>
15310 <member name="F:OpenMetaverse.ParcelManager.ParcelPrimOwners.Count">
15311 <summary>Total count of prims owned by OwnerID</summary>
15312 </member>
15313 <member name="F:OpenMetaverse.ParcelManager.ParcelPrimOwners.OnlineStatus">
15314 <summary>true of OwnerID is currently online and is not a group</summary>
15315 </member>
15316 <member name="F:OpenMetaverse.ParcelManager.ParcelPrimOwners.NewestPrim">
15317 <summary>The date of the most recent prim left by OwnerID</summary>
15318 </member>
15319 <member name="T:OpenMetaverse.ParcelManager.LandResourcesCallback">
15320 <summary>
15321 Called once parcel resource usage information has been collected
15322 </summary>
15323 <param name="success">Indicates if operation was successfull</param>
15324 <param name="info">Parcel resource usage information</param>
15325 </member>
15326 <member name="F:OpenMetaverse.ParcelManager.m_DwellReply">
15327 <summary>The event subscribers. null if no subcribers</summary>
15328 </member>
15329 <member name="F:OpenMetaverse.ParcelManager.m_DwellReplyLock">
16251 <summary>Thread sync lock object</summary> 15330 <summary>Thread sync lock object</summary>
16252 </member> 15331 </member>
16253 <member name="F:OpenMetaverse.FriendsManager.m_FriendshipOffered"> 15332 <member name="F:OpenMetaverse.ParcelManager.m_ParcelInfo">
16254 <summary>The event subscribers. null if no subcribers</summary> 15333 <summary>The event subscribers. null if no subcribers</summary>
16255 </member> 15334 </member>
16256 <member name="M:OpenMetaverse.FriendsManager.OnFriendshipOffered(OpenMetaverse.FriendshipOfferedEventArgs)"> 15335 <member name="F:OpenMetaverse.ParcelManager.m_ParcelInfoLock">
16257 <summary>Raises the FriendshipOffered event</summary> 15336 <summary>Thread sync lock object</summary>
16258 <param name="e">A FriendshipOfferedEventArgs object containing the
16259 data returned from the data server</param>
16260 </member> 15337 </member>
16261 <member name="F:OpenMetaverse.FriendsManager.m_FriendshipOfferedLock"> 15338 <member name="F:OpenMetaverse.ParcelManager.m_ParcelProperties">
15339 <summary>The event subscribers. null if no subcribers</summary>
15340 </member>
15341 <member name="F:OpenMetaverse.ParcelManager.m_ParcelPropertiesLock">
16262 <summary>Thread sync lock object</summary> 15342 <summary>Thread sync lock object</summary>
16263 </member> 15343 </member>
16264 <member name="F:OpenMetaverse.FriendsManager.m_FriendshipResponse"> 15344 <member name="F:OpenMetaverse.ParcelManager.m_ParcelACL">
16265 <summary>The event subscribers. null if no subcribers</summary> 15345 <summary>The event subscribers. null if no subcribers</summary>
16266 </member> 15346 </member>
16267 <member name="M:OpenMetaverse.FriendsManager.OnFriendshipResponse(OpenMetaverse.FriendshipResponseEventArgs)"> 15347 <member name="F:OpenMetaverse.ParcelManager.m_ParcelACLLock">
16268 <summary>Raises the FriendshipResponse event</summary> 15348 <summary>Thread sync lock object</summary>
16269 <param name="e">A FriendshipResponseEventArgs object containing the
16270 data returned from the data server</param>
16271 </member> 15349 </member>
16272 <member name="F:OpenMetaverse.FriendsManager.m_FriendshipResponseLock"> 15350 <member name="F:OpenMetaverse.ParcelManager.m_ParcelObjectOwnersReply">
15351 <summary>The event subscribers. null if no subcribers</summary>
15352 </member>
15353 <member name="F:OpenMetaverse.ParcelManager.m_ParcelObjectOwnersLock">
16273 <summary>Thread sync lock object</summary> 15354 <summary>Thread sync lock object</summary>
16274 </member> 15355 </member>
16275 <member name="F:OpenMetaverse.FriendsManager.m_FriendshipTerminated"> 15356 <member name="F:OpenMetaverse.ParcelManager.m_SimParcelsDownloaded">
16276 <summary>The event subscribers. null if no subcribers</summary> 15357 <summary>The event subscribers. null if no subcribers</summary>
16277 </member> 15358 </member>
16278 <member name="M:OpenMetaverse.FriendsManager.OnFriendshipTerminated(OpenMetaverse.FriendshipTerminatedEventArgs)"> 15359 <member name="F:OpenMetaverse.ParcelManager.m_SimParcelsDownloadedLock">
16279 <summary>Raises the FriendshipTerminated event</summary> 15360 <summary>Thread sync lock object</summary>
16280 <param name="e">A FriendshipTerminatedEventArgs object containing the
16281 data returned from the data server</param>
16282 </member> 15361 </member>
16283 <member name="F:OpenMetaverse.FriendsManager.m_FriendshipTerminatedLock"> 15362 <member name="F:OpenMetaverse.ParcelManager.m_ForceSelectObjects">
15363 <summary>The event subscribers. null if no subcribers</summary>
15364 </member>
15365 <member name="F:OpenMetaverse.ParcelManager.m_ForceSelectObjectsLock">
16284 <summary>Thread sync lock object</summary> 15366 <summary>Thread sync lock object</summary>
16285 </member> 15367 </member>
16286 <member name="F:OpenMetaverse.FriendsManager.m_FriendFound"> 15368 <member name="F:OpenMetaverse.ParcelManager.m_ParcelMediaUpdateReply">
16287 <summary>The event subscribers. null if no subcribers</summary> 15369 <summary>The event subscribers. null if no subcribers</summary>
16288 </member> 15370 </member>
16289 <member name="M:OpenMetaverse.FriendsManager.OnFriendFoundReply(OpenMetaverse.FriendFoundReplyEventArgs)"> 15371 <member name="F:OpenMetaverse.ParcelManager.m_ParcelMediaUpdateReplyLock">
16290 <summary>Raises the FriendFoundReply event</summary> 15372 <summary>Thread sync lock object</summary>
16291 <param name="e">A FriendFoundReplyEventArgs object containing the
16292 data returned from the data server</param>
16293 </member> 15373 </member>
16294 <member name="F:OpenMetaverse.FriendsManager.m_FriendFoundLock"> 15374 <member name="F:OpenMetaverse.ParcelManager.m_ParcelMediaCommand">
15375 <summary>The event subscribers. null if no subcribers</summary>
15376 </member>
15377 <member name="F:OpenMetaverse.ParcelManager.m_ParcelMediaCommandLock">
16295 <summary>Thread sync lock object</summary> 15378 <summary>Thread sync lock object</summary>
16296 </member> 15379 </member>
16297 <member name="F:OpenMetaverse.FriendsManager.FriendList"> 15380 <member name="E:OpenMetaverse.ParcelManager.ParcelDwellReply">
15381 <summary>Raised when the simulator responds to a <see cref="M:OpenMetaverse.ParcelManager.RequestDwell(OpenMetaverse.Simulator,System.Int32)" /> request</summary>
15382 </member>
15383 <member name="E:OpenMetaverse.ParcelManager.ParcelInfoReply">
15384 <summary>Raised when the simulator responds to a <see cref="M:OpenMetaverse.ParcelManager.RequestParcelInfo(OpenMetaverse.UUID)" /> request</summary>
15385 </member>
15386 <member name="E:OpenMetaverse.ParcelManager.ParcelProperties">
15387 <summary>Raised when the simulator responds to a <see cref="M:OpenMetaverse.ParcelManager.RequestParcelProperties(OpenMetaverse.Simulator,System.Single,System.Single,System.Single,System.Single,System.Int32,System.Boolean)" /> request</summary>
15388 </member>
15389 <member name="E:OpenMetaverse.ParcelManager.ParcelAccessListReply">
15390 <summary>Raised when the simulator responds to a <see cref="M:OpenMetaverse.ParcelManager.RequestParcelAccessList(OpenMetaverse.Simulator,System.Int32,OpenMetaverse.AccessList,System.Int32)" /> request</summary>
15391 </member>
15392 <member name="E:OpenMetaverse.ParcelManager.ParcelObjectOwnersReply">
15393 <summary>Raised when the simulator responds to a <see cref="M:OpenMetaverse.ParcelManager.RequestObjectOwners(OpenMetaverse.Simulator,System.Int32)" /> request</summary>
15394 </member>
15395 <member name="E:OpenMetaverse.ParcelManager.SimParcelsDownloaded">
15396 <summary>Raised when the simulator responds to a <see cref="M:OpenMetaverse.ParcelManager.RequestAllSimParcels(OpenMetaverse.Simulator,System.Boolean,System.Int32)" /> request</summary>
15397 </member>
15398 <member name="E:OpenMetaverse.ParcelManager.ForceSelectObjectsReply">
15399 <summary>Raised when the simulator responds to a <see cref="!:RequestForceSelectObjects" /> request</summary>
15400 </member>
15401 <member name="E:OpenMetaverse.ParcelManager.ParcelMediaUpdateReply">
15402 <summary>Raised when the simulator responds to a Parcel Update request</summary>
15403 </member>
15404 <member name="E:OpenMetaverse.ParcelManager.ParcelMediaCommand">
15405 <summary>Raised when the parcel your agent is located sends a ParcelMediaCommand</summary>
15406 </member>
15407 <member name="M:OpenMetaverse.ParcelManager.OnParcelDwellReply(OpenMetaverse.ParcelDwellReplyEventArgs)">
15408 <summary>Raises the ParcelDwellReply event</summary>
15409 <param name="e">A ParcelDwellReplyEventArgs object containing the
15410 data returned from the simulator</param>
15411 </member>
15412 <member name="M:OpenMetaverse.ParcelManager.OnParcelInfoReply(OpenMetaverse.ParcelInfoReplyEventArgs)">
15413 <summary>Raises the ParcelInfoReply event</summary>
15414 <param name="e">A ParcelInfoReplyEventArgs object containing the
15415 data returned from the simulator</param>
15416 </member>
15417 <member name="M:OpenMetaverse.ParcelManager.OnParcelProperties(OpenMetaverse.ParcelPropertiesEventArgs)">
15418 <summary>Raises the ParcelProperties event</summary>
15419 <param name="e">A ParcelPropertiesEventArgs object containing the
15420 data returned from the simulator</param>
15421 </member>
15422 <member name="M:OpenMetaverse.ParcelManager.OnParcelAccessListReply(OpenMetaverse.ParcelAccessListReplyEventArgs)">
15423 <summary>Raises the ParcelAccessListReply event</summary>
15424 <param name="e">A ParcelAccessListReplyEventArgs object containing the
15425 data returned from the simulator</param>
15426 </member>
15427 <member name="M:OpenMetaverse.ParcelManager.OnParcelObjectOwnersReply(OpenMetaverse.ParcelObjectOwnersReplyEventArgs)">
15428 <summary>Raises the ParcelObjectOwnersReply event</summary>
15429 <param name="e">A ParcelObjectOwnersReplyEventArgs object containing the
15430 data returned from the simulator</param>
15431 </member>
15432 <member name="M:OpenMetaverse.ParcelManager.OnSimParcelsDownloaded(OpenMetaverse.SimParcelsDownloadedEventArgs)">
15433 <summary>Raises the SimParcelsDownloaded event</summary>
15434 <param name="e">A SimParcelsDownloadedEventArgs object containing the
15435 data returned from the simulator</param>
15436 </member>
15437 <member name="M:OpenMetaverse.ParcelManager.OnForceSelectObjectsReply(OpenMetaverse.ForceSelectObjectsReplyEventArgs)">
15438 <summary>Raises the ForceSelectObjectsReply event</summary>
15439 <param name="e">A ForceSelectObjectsReplyEventArgs object containing the
15440 data returned from the simulator</param>
15441 </member>
15442 <member name="M:OpenMetaverse.ParcelManager.OnParcelMediaUpdateReply(OpenMetaverse.ParcelMediaUpdateReplyEventArgs)">
15443 <summary>Raises the ParcelMediaUpdateReply event</summary>
15444 <param name="e">A ParcelMediaUpdateReplyEventArgs object containing the
15445 data returned from the simulator</param>
15446 </member>
15447 <member name="M:OpenMetaverse.ParcelManager.OnParcelMediaCommand(OpenMetaverse.ParcelMediaCommandEventArgs)">
15448 <summary>Raises the ParcelMediaCommand event</summary>
15449 <param name="e">A ParcelMediaCommandEventArgs object containing the
15450 data returned from the simulator</param>
15451 </member>
15452 <member name="M:OpenMetaverse.ParcelManager.RequestParcelInfo(OpenMetaverse.UUID)">
16298 <summary> 15453 <summary>
16299 A dictionary of key/value pairs containing known friends of this avatar. 15454 Request basic information for a single parcel
16300
16301 The Key is the <seealso cref="T:OpenMetaverse.UUID"/> of the friend, the value is a <seealso cref="T:OpenMetaverse.FriendInfo"/>
16302 object that contains detailed information including permissions you have and have given to the friend
16303 </summary> 15455 </summary>
15456 <param name="parcelID">Simulator-local ID of the parcel</param>
16304 </member> 15457 </member>
16305 <member name="F:OpenMetaverse.FriendsManager.FriendRequests"> 15458 <member name="M:OpenMetaverse.ParcelManager.RequestParcelProperties(OpenMetaverse.Simulator,System.Int32,System.Int32)">
16306 <summary> 15459 <summary>
16307 A Dictionary of key/value pairs containing current pending frienship offers. 15460 Request properties of a single parcel
16308
16309 The key is the <seealso cref="T:OpenMetaverse.UUID"/> of the avatar making the request,
16310 the value is the <seealso cref="T:OpenMetaverse.UUID"/> of the request which is used to accept
16311 or decline the friendship offer
16312 </summary> 15461 </summary>
15462 <param name="simulator">Simulator containing the parcel</param>
15463 <param name="localID">Simulator-local ID of the parcel</param>
15464 <param name="sequenceID">An arbitrary integer that will be returned
15465 with the ParcelProperties reply, useful for distinguishing between
15466 multiple simultaneous requests</param>
16313 </member> 15467 </member>
16314 <member name="M:OpenMetaverse.FriendsManager.#ctor(OpenMetaverse.GridClient)"> 15468 <member name="M:OpenMetaverse.ParcelManager.RequestParcelAccessList(OpenMetaverse.Simulator,System.Int32,OpenMetaverse.AccessList,System.Int32)">
16315 <summary> 15469 <summary>
16316 Internal constructor 15470 Request the access list for a single parcel
16317 </summary> 15471 </summary>
16318 <param name="client">A reference to the GridClient Object</param> 15472 <param name="simulator">Simulator containing the parcel</param>
15473 <param name="localID">Simulator-local ID of the parcel</param>
15474 <param name="sequenceID">An arbitrary integer that will be returned
15475 with the ParcelAccessList reply, useful for distinguishing between
15476 multiple simultaneous requests</param>
15477 <param name="flags">
15478 </param>
16319 </member> 15479 </member>
16320 <member name="M:OpenMetaverse.FriendsManager.AcceptFriendship(OpenMetaverse.UUID,OpenMetaverse.UUID)"> 15480 <member name="M:OpenMetaverse.ParcelManager.RequestParcelProperties(OpenMetaverse.Simulator,System.Single,System.Single,System.Single,System.Single,System.Int32,System.Boolean)">
16321 <summary> 15481 <summary>
16322 Accept a friendship request 15482 Request properties of parcels using a bounding box selection
16323 </summary> 15483 </summary>
16324 <param name="fromAgentID">agentID of avatatar to form friendship with</param> 15484 <param name="simulator">Simulator containing the parcel</param>
16325 <param name="imSessionID">imSessionID of the friendship request message</param> 15485 <param name="north">Northern boundary of the parcel selection</param>
15486 <param name="east">Eastern boundary of the parcel selection</param>
15487 <param name="south">Southern boundary of the parcel selection</param>
15488 <param name="west">Western boundary of the parcel selection</param>
15489 <param name="sequenceID">An arbitrary integer that will be returned
15490 with the ParcelProperties reply, useful for distinguishing between
15491 different types of parcel property requests</param>
15492 <param name="snapSelection">A boolean that is returned with the
15493 ParcelProperties reply, useful for snapping focus to a single
15494 parcel</param>
16326 </member> 15495 </member>
16327 <member name="M:OpenMetaverse.FriendsManager.DeclineFriendship(OpenMetaverse.UUID,OpenMetaverse.UUID)"> 15496 <member name="M:OpenMetaverse.ParcelManager.RequestAllSimParcels(OpenMetaverse.Simulator)">
16328 <summary> 15497 <summary>
16329 Decline a friendship request 15498 Request all simulator parcel properties (used for populating the <code>Simulator.Parcels</code>
15499 dictionary)
16330 </summary> 15500 </summary>
16331 <param name="fromAgentID"><seealso cref="T:OpenMetaverse.UUID"/> of friend</param> 15501 <param name="simulator">Simulator to request parcels from (must be connected)</param>
16332 <param name="imSessionID">imSessionID of the friendship request message</param>
16333 </member> 15502 </member>
16334 <member name="M:OpenMetaverse.FriendsManager.OfferFriendship(OpenMetaverse.UUID)"> 15503 <member name="M:OpenMetaverse.ParcelManager.RequestAllSimParcels(OpenMetaverse.Simulator,System.Boolean,System.Int32)">
16335 <summary> 15504 <summary>
16336 Overload: Offer friendship to an avatar. 15505 Request all simulator parcel properties (used for populating the <code>Simulator.Parcels</code>
15506 dictionary)
16337 </summary> 15507 </summary>
16338 <param name="agentID">System ID of the avatar you are offering friendship to</param> 15508 <param name="simulator">Simulator to request parcels from (must be connected)</param>
15509 <param name="refresh">If TRUE, will force a full refresh</param>
15510 <param name="msDelay">Number of milliseconds to pause in between each request</param>
16339 </member> 15511 </member>
16340 <member name="M:OpenMetaverse.FriendsManager.OfferFriendship(OpenMetaverse.UUID,System.String)"> 15512 <member name="M:OpenMetaverse.ParcelManager.RequestDwell(OpenMetaverse.Simulator,System.Int32)">
16341 <summary> 15513 <summary>
16342 Offer friendship to an avatar. 15514 Request the dwell value for a parcel
16343 </summary> 15515 </summary>
16344 <param name="agentID">System ID of the avatar you are offering friendship to</param> 15516 <param name="simulator">Simulator containing the parcel</param>
16345 <param name="message">A message to send with the request</param> 15517 <param name="localID">Simulator-local ID of the parcel</param>
16346 </member> 15518 </member>
16347 <member name="M:OpenMetaverse.FriendsManager.TerminateFriendship(OpenMetaverse.UUID)"> 15519 <member name="M:OpenMetaverse.ParcelManager.Buy(OpenMetaverse.Simulator,System.Int32,System.Boolean,OpenMetaverse.UUID,System.Boolean,System.Int32,System.Int32)">
16348 <summary> 15520 <summary>
16349 Terminate a friendship with an avatar 15521 Send a request to Purchase a parcel of land
16350 </summary> 15522 </summary>
16351 <param name="agentID">System ID of the avatar you are terminating the friendship with</param> 15523 <param name="simulator">The Simulator the parcel is located in</param>
15524 <param name="localID">The parcels region specific local ID</param>
15525 <param name="forGroup">true if this parcel is being purchased by a group</param>
15526 <param name="groupID">The groups <seealso cref="T:OpenMetaverse.UUID" /></param>
15527 <param name="removeContribution">true to remove tier contribution if purchase is successful</param>
15528 <param name="parcelArea">The parcels size</param>
15529 <param name="parcelPrice">The purchase price of the parcel</param>
15530 <returns>
15531 </returns>
16352 </member> 15532 </member>
16353 <member name="M:OpenMetaverse.FriendsManager.TerminateFriendshipHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)"> 15533 <member name="M:OpenMetaverse.ParcelManager.Reclaim(OpenMetaverse.Simulator,System.Int32)">
16354 <summary>Process an incoming packet and raise the appropriate events</summary> 15534 <summary>
16355 <param name="sender">The sender</param> 15535 Reclaim a parcel of land
16356 <param name="e">The EventArgs object containing the packet data</param> 15536 </summary>
15537 <param name="simulator">The simulator the parcel is in</param>
15538 <param name="localID">The parcels region specific local ID</param>
16357 </member> 15539 </member>
16358 <member name="M:OpenMetaverse.FriendsManager.GrantRights(OpenMetaverse.UUID,OpenMetaverse.FriendRights)"> 15540 <member name="M:OpenMetaverse.ParcelManager.DeedToGroup(OpenMetaverse.Simulator,System.Int32,OpenMetaverse.UUID)">
16359 <summary> 15541 <summary>
16360 Change the rights of a friend avatar. 15542 Deed a parcel to a group
16361 </summary> 15543 </summary>
16362 <param name="friendID">the <seealso cref="T:OpenMetaverse.UUID"/> of the friend</param> 15544 <param name="simulator">The simulator the parcel is in</param>
16363 <param name="rights">the new rights to give the friend</param> 15545 <param name="localID">The parcels region specific local ID</param>
16364 <remarks>This method will implicitly set the rights to those passed in the rights parameter.</remarks> 15546 <param name="groupID">The groups <seealso cref="T:OpenMetaverse.UUID" /></param>
16365 </member> 15547 </member>
16366 <member name="M:OpenMetaverse.FriendsManager.MapFriend(OpenMetaverse.UUID)"> 15548 <member name="M:OpenMetaverse.ParcelManager.RequestObjectOwners(OpenMetaverse.Simulator,System.Int32)">
16367 <summary> 15549 <summary>
16368 Use to map a friends location on the grid. 15550 Request prim owners of a parcel of land.
16369 </summary> 15551 </summary>
16370 <param name="friendID">Friends UUID to find</param> 15552 <param name="simulator">Simulator parcel is in</param>
16371 <remarks><seealso cref="E:OnFriendFound"/></remarks> 15553 <param name="localID">The parcels region specific local ID</param>
16372 </member> 15554 </member>
16373 <member name="M:OpenMetaverse.FriendsManager.TrackFriend(OpenMetaverse.UUID)"> 15555 <member name="M:OpenMetaverse.ParcelManager.ReturnObjects(OpenMetaverse.Simulator,System.Int32,OpenMetaverse.ObjectReturnType,System.Collections.Generic.List{OpenMetaverse.UUID})">
16374 <summary> 15556 <summary>
16375 Use to track a friends movement on the grid 15557 Return objects from a parcel
16376 </summary> 15558 </summary>
16377 <param name="friendID">Friends Key</param> 15559 <param name="simulator">Simulator parcel is in</param>
15560 <param name="localID">The parcels region specific local ID</param>
15561 <param name="type">the type of objects to return, <seealso cref="T:OpenMetaverse.ObjectReturnType" /></param>
15562 <param name="ownerIDs">A list containing object owners <seealso cref="T:OpenMetaverse.UUID" />s to return</param>
16378 </member> 15563 </member>
16379 <member name="M:OpenMetaverse.FriendsManager.RequestOnlineNotification(OpenMetaverse.UUID)"> 15564 <member name="M:OpenMetaverse.ParcelManager.ParcelSubdivide(OpenMetaverse.Simulator,System.Single,System.Single,System.Single,System.Single)">
16380 <summary> 15565 <summary>
16381 Ask for a notification of friend's online status 15566 Subdivide (split) a parcel
16382 </summary> 15567 </summary>
16383 <param name="friendID">Friend's UUID</param> 15568 <param name="simulator">
15569 </param>
15570 <param name="west">
15571 </param>
15572 <param name="south">
15573 </param>
15574 <param name="east">
15575 </param>
15576 <param name="north">
15577 </param>
16384 </member> 15578 </member>
16385 <member name="M:OpenMetaverse.FriendsManager.Avatars_OnAvatarNames(System.Object,OpenMetaverse.UUIDNameReplyEventArgs)"> 15579 <member name="M:OpenMetaverse.ParcelManager.ParcelJoin(OpenMetaverse.Simulator,System.Single,System.Single,System.Single,System.Single)">
16386 <summary> 15580 <summary>
16387 This handles the asynchronous response of a RequestAvatarNames call. 15581 Join two parcels of land creating a single parcel
16388 </summary> 15582 </summary>
16389 <param name="sender"></param> 15583 <param name="simulator">
16390 <param name="e">names cooresponding to the the list of IDs sent the the RequestAvatarNames call.</param> 15584 </param>
15585 <param name="west">
15586 </param>
15587 <param name="south">
15588 </param>
15589 <param name="east">
15590 </param>
15591 <param name="north">
15592 </param>
16391 </member> 15593 </member>
16392 <member name="M:OpenMetaverse.FriendsManager.OnlineNotificationHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)"> 15594 <member name="M:OpenMetaverse.ParcelManager.GetParcelLocalID(OpenMetaverse.Simulator,OpenMetaverse.Vector3)">
15595 <summary>
15596 Get a parcels LocalID
15597 </summary>
15598 <param name="simulator">Simulator parcel is in</param>
15599 <param name="position">Vector3 position in simulator (Z not used)</param>
15600 <returns>0 on failure, or parcel LocalID on success.</returns>
15601 <remarks>A call to <code>Parcels.RequestAllSimParcels</code> is required to populate map and
15602 dictionary.</remarks>
15603 </member>
15604 <member name="M:OpenMetaverse.ParcelManager.Terraform(OpenMetaverse.Simulator,System.Int32,OpenMetaverse.TerraformAction,OpenMetaverse.TerraformBrushSize)">
15605 <summary>
15606 Terraform (raise, lower, etc) an area or whole parcel of land
15607 </summary>
15608 <param name="simulator">Simulator land area is in.</param>
15609 <param name="localID">LocalID of parcel, or -1 if using bounding box</param>
15610 <param name="action">From Enum, Raise, Lower, Level, Smooth, Etc.</param>
15611 <param name="brushSize">Size of area to modify</param>
15612 <returns>true on successful request sent.</returns>
15613 <remarks>Settings.STORE_LAND_PATCHES must be true,
15614 Parcel information must be downloaded using <code>RequestAllSimParcels()</code></remarks>
15615 </member>
15616 <member name="M:OpenMetaverse.ParcelManager.Terraform(OpenMetaverse.Simulator,System.Single,System.Single,System.Single,System.Single,OpenMetaverse.TerraformAction,OpenMetaverse.TerraformBrushSize)">
15617 <summary>
15618 Terraform (raise, lower, etc) an area or whole parcel of land
15619 </summary>
15620 <param name="simulator">Simulator land area is in.</param>
15621 <param name="west">west border of area to modify</param>
15622 <param name="south">south border of area to modify</param>
15623 <param name="east">east border of area to modify</param>
15624 <param name="north">north border of area to modify</param>
15625 <param name="action">From Enum, Raise, Lower, Level, Smooth, Etc.</param>
15626 <param name="brushSize">Size of area to modify</param>
15627 <returns>true on successful request sent.</returns>
15628 <remarks>Settings.STORE_LAND_PATCHES must be true,
15629 Parcel information must be downloaded using <code>RequestAllSimParcels()</code></remarks>
15630 </member>
15631 <member name="M:OpenMetaverse.ParcelManager.Terraform(OpenMetaverse.Simulator,System.Int32,System.Single,System.Single,System.Single,System.Single,OpenMetaverse.TerraformAction,OpenMetaverse.TerraformBrushSize,System.Int32)">
15632 <summary>
15633 Terraform (raise, lower, etc) an area or whole parcel of land
15634 </summary>
15635 <param name="simulator">Simulator land area is in.</param>
15636 <param name="localID">LocalID of parcel, or -1 if using bounding box</param>
15637 <param name="west">west border of area to modify</param>
15638 <param name="south">south border of area to modify</param>
15639 <param name="east">east border of area to modify</param>
15640 <param name="north">north border of area to modify</param>
15641 <param name="action">From Enum, Raise, Lower, Level, Smooth, Etc.</param>
15642 <param name="brushSize">Size of area to modify</param>
15643 <param name="seconds">How many meters + or - to lower, 1 = 1 meter</param>
15644 <returns>true on successful request sent.</returns>
15645 <remarks>Settings.STORE_LAND_PATCHES must be true,
15646 Parcel information must be downloaded using <code>RequestAllSimParcels()</code></remarks>
15647 </member>
15648 <member name="M:OpenMetaverse.ParcelManager.Terraform(OpenMetaverse.Simulator,System.Int32,System.Single,System.Single,System.Single,System.Single,OpenMetaverse.TerraformAction,OpenMetaverse.TerraformBrushSize,System.Int32,System.Single)">
15649 <summary>
15650 Terraform (raise, lower, etc) an area or whole parcel of land
15651 </summary>
15652 <param name="simulator">Simulator land area is in.</param>
15653 <param name="localID">LocalID of parcel, or -1 if using bounding box</param>
15654 <param name="west">west border of area to modify</param>
15655 <param name="south">south border of area to modify</param>
15656 <param name="east">east border of area to modify</param>
15657 <param name="north">north border of area to modify</param>
15658 <param name="action">From Enum, Raise, Lower, Level, Smooth, Etc.</param>
15659 <param name="brushSize">Size of area to modify</param>
15660 <param name="seconds">How many meters + or - to lower, 1 = 1 meter</param>
15661 <param name="height">Height at which the terraform operation is acting at</param>
15662 </member>
15663 <member name="M:OpenMetaverse.ParcelManager.RequestSelectObjects(System.Int32,OpenMetaverse.ObjectReturnType,OpenMetaverse.UUID)">
15664 <summary>
15665 Sends a request to the simulator to return a list of objects owned by specific owners
15666 </summary>
15667 <param name="localID">Simulator local ID of parcel</param>
15668 <param name="selectType">Owners, Others, Etc</param>
15669 <param name="ownerID">List containing keys of avatars objects to select;
15670 if List is null will return Objects of type <c>selectType</c></param>
15671 <remarks>Response data is returned in the event <seealso cref="E:ForceSelectObjectsReply" /></remarks>
15672 </member>
15673 <member name="M:OpenMetaverse.ParcelManager.EjectUser(OpenMetaverse.UUID,System.Boolean)">
15674 <summary>
15675 Eject and optionally ban a user from a parcel
15676 </summary>
15677 <param name="targetID">target key of avatar to eject</param>
15678 <param name="ban">true to also ban target</param>
15679 </member>
15680 <member name="M:OpenMetaverse.ParcelManager.FreezeUser(OpenMetaverse.UUID,System.Boolean)">
15681 <summary>
15682 Freeze or unfreeze an avatar over your land
15683 </summary>
15684 <param name="targetID">target key to freeze</param>
15685 <param name="freeze">true to freeze, false to unfreeze</param>
15686 </member>
15687 <member name="M:OpenMetaverse.ParcelManager.ReleaseParcel(OpenMetaverse.Simulator,System.Int32)">
15688 <summary>
15689 Abandon a parcel of land
15690 </summary>
15691 <param name="simulator">Simulator parcel is in</param>
15692 <param name="localID">Simulator local ID of parcel</param>
15693 </member>
15694 <member name="M:OpenMetaverse.ParcelManager.RequestRemoteParcelID(OpenMetaverse.Vector3,System.UInt64,OpenMetaverse.UUID)">
15695 <summary>
15696 Requests the UUID of the parcel in a remote region at a specified location
15697 </summary>
15698 <param name="location">Location of the parcel in the remote region</param>
15699 <param name="regionHandle">Remote region handle</param>
15700 <param name="regionID">Remote region UUID</param>
15701 <returns>If successful UUID of the remote parcel, UUID.Zero otherwise</returns>
15702 </member>
15703 <member name="M:OpenMetaverse.ParcelManager.GetParcelResouces(OpenMetaverse.UUID,System.Boolean,OpenMetaverse.ParcelManager.LandResourcesCallback)">
15704 <summary>
15705 Retrieves information on resources used by the parcel
15706 </summary>
15707 <param name="parcelID">UUID of the parcel</param>
15708 <param name="getDetails">Should per object resource usage be requested</param>
15709 <param name="callback">Callback invoked when the request is complete</param>
15710 </member>
15711 <member name="M:OpenMetaverse.ParcelManager.ParcelDwellReplyHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
16393 <summary>Process an incoming packet and raise the appropriate events</summary> 15712 <summary>Process an incoming packet and raise the appropriate events</summary>
16394 <param name="sender">The sender</param> 15713 <param name="sender">The sender</param>
16395 <param name="e">The EventArgs object containing the packet data</param> 15714 <param name="e">The EventArgs object containing the packet data</param>
15715 <remarks>Raises the <see cref="E:OpenMetaverse.ParcelManager.ParcelDwellReply" /> event</remarks>
16396 </member> 15716 </member>
16397 <member name="M:OpenMetaverse.FriendsManager.OfflineNotificationHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)"> 15717 <member name="M:OpenMetaverse.ParcelManager.ParcelInfoReplyHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
16398 <summary>Process an incoming packet and raise the appropriate events</summary> 15718 <summary>Process an incoming packet and raise the appropriate events</summary>
16399 <param name="sender">The sender</param> 15719 <param name="sender">The sender</param>
16400 <param name="e">The EventArgs object containing the packet data</param> 15720 <param name="e">The EventArgs object containing the packet data</param>
15721 <remarks>Raises the <see cref="E:OpenMetaverse.ParcelManager.ParcelInfoReply" /> event</remarks>
16401 </member> 15722 </member>
16402 <member name="M:OpenMetaverse.FriendsManager.ChangeUserRightsHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)"> 15723 <member name="M:OpenMetaverse.ParcelManager.ParcelAccessListReplyHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
16403 <summary>Process an incoming packet and raise the appropriate events</summary> 15724 <summary>Process an incoming packet and raise the appropriate events</summary>
16404 <param name="sender">The sender</param> 15725 <param name="sender">The sender</param>
16405 <param name="e">The EventArgs object containing the packet data</param> 15726 <param name="e">The EventArgs object containing the packet data</param>
15727 <remarks>Raises the <see cref="E:OpenMetaverse.ParcelManager.ParcelAccessListReply" /> event</remarks>
16406 </member> 15728 </member>
16407 <member name="M:OpenMetaverse.FriendsManager.OnFindAgentReplyHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)"> 15729 <member name="M:OpenMetaverse.ParcelManager.SelectParcelObjectsReplyHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
16408 <summary>Process an incoming packet and raise the appropriate events</summary> 15730 <summary>Process an incoming packet and raise the appropriate events</summary>
16409 <param name="sender">The sender</param> 15731 <param name="sender">The sender</param>
16410 <param name="e">The EventArgs object containing the packet data</param> 15732 <param name="e">The EventArgs object containing the packet data</param>
15733 <remarks>Raises the <see cref="E:OpenMetaverse.ParcelManager.ForceSelectObjectsReply" /> event</remarks>
16411 </member> 15734 </member>
16412 <member name="M:OpenMetaverse.FriendsManager.Network_OnLoginResponse(System.Boolean,System.Boolean,System.String,System.String,OpenMetaverse.LoginResponseData)"> 15735 <member name="M:OpenMetaverse.ParcelManager.ParcelMediaUpdateHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
15736 <summary>Process an incoming packet and raise the appropriate events</summary>
15737 <param name="sender">The sender</param>
15738 <param name="e">The EventArgs object containing the packet data</param>
15739 <remarks>Raises the <see cref="E:OpenMetaverse.ParcelManager.ParcelMediaUpdateReply" /> event</remarks>
15740 </member>
15741 <member name="M:OpenMetaverse.ParcelManager.ParcelOverlayHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
15742 <summary>Process an incoming packet and raise the appropriate events</summary>
15743 <param name="sender">The sender</param>
15744 <param name="e">The EventArgs object containing the packet data</param>
15745 </member>
15746 <member name="M:OpenMetaverse.ParcelManager.ParcelMediaCommandMessagePacketHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
15747 <summary>Process an incoming packet and raise the appropriate events</summary>
15748 <param name="sender">The sender</param>
15749 <param name="e">The EventArgs object containing the packet data</param>
15750 <remarks>Raises the <see cref="T:OpenMetaverse.ParcelMediaCommand" /> event</remarks>
15751 </member>
15752 <member name="T:OpenMetaverse.ParcelDwellReplyEventArgs">
15753 <summary>Contains a parcels dwell data returned from the simulator in response to an <see cref="!:RequestParcelDwell" /></summary>
15754 </member>
15755 <member name="M:OpenMetaverse.ParcelDwellReplyEventArgs.#ctor(OpenMetaverse.UUID,System.Int32,System.Single)">
16413 <summary> 15756 <summary>
16414 Populate FriendList <seealso cref="!:InternalDictionary"/> with data from the login reply 15757 Construct a new instance of the ParcelDwellReplyEventArgs class
16415 </summary> 15758 </summary>
16416 <param name="loginSuccess">true if login was successful</param> 15759 <param name="parcelID">The global ID of the parcel</param>
16417 <param name="redirect">true if login request is requiring a redirect</param> 15760 <param name="localID">The simulator specific ID of the parcel</param>
16418 <param name="message">A string containing the response to the login request</param> 15761 <param name="dwell">The calculated dwell for the parcel</param>
16419 <param name="reason">A string containing the reason for the request</param>
16420 <param name="replyData">A <seealso cref="T:OpenMetaverse.LoginResponseData"/> object containing the decoded
16421 reply from the login server</param>
16422 </member> 15762 </member>
16423 <member name="E:OpenMetaverse.FriendsManager.FriendOnline"> 15763 <member name="P:OpenMetaverse.ParcelDwellReplyEventArgs.ParcelID">
16424 <summary>Raised when the simulator sends notification one of the members in our friends list comes online</summary> 15764 <summary>Get the global ID of the parcel</summary>
16425 </member> 15765 </member>
16426 <member name="E:OpenMetaverse.FriendsManager.FriendOffline"> 15766 <member name="P:OpenMetaverse.ParcelDwellReplyEventArgs.LocalID">
16427 <summary>Raised when the simulator sends notification one of the members in our friends list goes offline</summary> 15767 <summary>Get the simulator specific ID of the parcel</summary>
16428 </member> 15768 </member>
16429 <member name="E:OpenMetaverse.FriendsManager.FriendRightsUpdate"> 15769 <member name="P:OpenMetaverse.ParcelDwellReplyEventArgs.Dwell">
16430 <summary>Raised when the simulator sends notification one of the members in our friends list grants or revokes permissions</summary> 15770 <summary>Get the calculated dwell</summary>
16431 </member> 15771 </member>
16432 <member name="E:OpenMetaverse.FriendsManager.FriendNames"> 15772 <member name="T:OpenMetaverse.ParcelInfoReplyEventArgs">
16433 <summary>Raised when the simulator sends us the names on our friends list</summary> 15773 <summary>Contains basic parcel information data returned from the
15774 simulator in response to an <see cref="!:RequestParcelInfo" /> request</summary>
16434 </member> 15775 </member>
16435 <member name="E:OpenMetaverse.FriendsManager.FriendshipOffered"> 15776 <member name="M:OpenMetaverse.ParcelInfoReplyEventArgs.#ctor(OpenMetaverse.ParcelInfo)">
16436 <summary>Raised when the simulator sends notification another agent is offering us friendship</summary> 15777 <summary>
15778 Construct a new instance of the ParcelInfoReplyEventArgs class
15779 </summary>
15780 <param name="parcel">The <see cref="T:OpenMetaverse.ParcelInfo" /> object containing basic parcel info</param>
16437 </member> 15781 </member>
16438 <member name="E:OpenMetaverse.FriendsManager.FriendshipResponse"> 15782 <member name="P:OpenMetaverse.ParcelInfoReplyEventArgs.Parcel">
16439 <summary>Raised when a request we sent to friend another agent is accepted or declined</summary> 15783 <summary>Get the <see cref="T:OpenMetaverse.ParcelInfo" /> object containing basic parcel info</summary>
16440 </member> 15784 </member>
16441 <member name="E:OpenMetaverse.FriendsManager.FriendshipTerminated"> 15785 <member name="T:OpenMetaverse.ParcelPropertiesEventArgs">
16442 <summary>Raised when the simulator sends notification one of the members in our friends list has terminated 15786 <summary>Contains basic parcel information data returned from the simulator in response to an <see cref="!:RequestParcelInfo" /> request</summary>
16443 our friendship</summary>
16444 </member> 15787 </member>
16445 <member name="E:OpenMetaverse.FriendsManager.FriendFoundReply"> 15788 <member name="M:OpenMetaverse.ParcelPropertiesEventArgs.#ctor(OpenMetaverse.Simulator,OpenMetaverse.Parcel,OpenMetaverse.ParcelResult,System.Int32,System.Int32,System.Boolean)">
16446 <summary>Raised when the simulator sends the location of a friend we have 15789 <summary>
16447 requested map location info for</summary> 15790 Construct a new instance of the ParcelPropertiesEventArgs class
15791 </summary>
15792 <param name="simulator">The <see cref="T:OpenMetaverse.Parcel" /> object containing the details</param>
15793 <param name="parcel">The <see cref="T:OpenMetaverse.Parcel" /> object containing the details</param>
15794 <param name="result">The result of the request</param>
15795 <param name="selectedPrims">The number of primitieves your agent is
15796 currently selecting and or sitting on in this parcel</param>
15797 <param name="sequenceID">The user assigned ID used to correlate a request with
15798 these results</param>
15799 <param name="snapSelection">TODO:</param>
16448 </member> 15800 </member>
16449 <member name="T:OpenMetaverse.FriendInfoEventArgs"> 15801 <member name="P:OpenMetaverse.ParcelPropertiesEventArgs.Simulator">
16450 <summary>Contains information on a member of our friends list</summary> 15802 <summary>Get the simulator the parcel is located in</summary>
16451 </member> 15803 </member>
16452 <member name="M:OpenMetaverse.FriendInfoEventArgs.#ctor(OpenMetaverse.FriendInfo)"> 15804 <member name="P:OpenMetaverse.ParcelPropertiesEventArgs.Parcel">
15805 <summary>Get the <see cref="T:OpenMetaverse.Parcel" /> object containing the details</summary>
15806 <remarks>If Result is NoData, this object will not contain valid data</remarks>
15807 </member>
15808 <member name="P:OpenMetaverse.ParcelPropertiesEventArgs.Result">
15809 <summary>Get the result of the request</summary>
15810 </member>
15811 <member name="P:OpenMetaverse.ParcelPropertiesEventArgs.SelectedPrims">
15812 <summary>Get the number of primitieves your agent is
15813 currently selecting and or sitting on in this parcel</summary>
15814 </member>
15815 <member name="P:OpenMetaverse.ParcelPropertiesEventArgs.SequenceID">
15816 <summary>Get the user assigned ID used to correlate a request with
15817 these results</summary>
15818 </member>
15819 <member name="P:OpenMetaverse.ParcelPropertiesEventArgs.SnapSelection">
15820 <summary>TODO:</summary>
15821 </member>
15822 <member name="T:OpenMetaverse.ParcelAccessListReplyEventArgs">
15823 <summary>Contains blacklist and whitelist data returned from the simulator in response to an <see cref="!:RequestParcelAccesslist" /> request</summary>
15824 </member>
15825 <member name="M:OpenMetaverse.ParcelAccessListReplyEventArgs.#ctor(OpenMetaverse.Simulator,System.Int32,System.Int32,System.UInt32,System.Collections.Generic.List{OpenMetaverse.ParcelManager.ParcelAccessEntry})">
16453 <summary> 15826 <summary>
16454 Construct a new instance of the FriendInfoEventArgs class 15827 Construct a new instance of the ParcelAccessListReplyEventArgs class
16455 </summary> 15828 </summary>
16456 <param name="friend">The FriendInfo</param> 15829 <param name="simulator">The simulator the parcel is located in</param>
15830 <param name="sequenceID">The user assigned ID used to correlate a request with
15831 these results</param>
15832 <param name="localID">The simulator specific ID of the parcel</param>
15833 <param name="flags">TODO:</param>
15834 <param name="accessEntries">The list containing the white/blacklisted agents for the parcel</param>
16457 </member> 15835 </member>
16458 <member name="P:OpenMetaverse.FriendInfoEventArgs.Friend"> 15836 <member name="P:OpenMetaverse.ParcelAccessListReplyEventArgs.Simulator">
16459 <summary>Get the FriendInfo</summary> 15837 <summary>Get the simulator the parcel is located in</summary>
16460 </member> 15838 </member>
16461 <member name="T:OpenMetaverse.FriendNamesEventArgs"> 15839 <member name="P:OpenMetaverse.ParcelAccessListReplyEventArgs.SequenceID">
16462 <summary>Contains Friend Names</summary> 15840 <summary>Get the user assigned ID used to correlate a request with
15841 these results</summary>
16463 </member> 15842 </member>
16464 <member name="M:OpenMetaverse.FriendNamesEventArgs.#ctor(System.Collections.Generic.Dictionary{OpenMetaverse.UUID,System.String})"> 15843 <member name="P:OpenMetaverse.ParcelAccessListReplyEventArgs.LocalID">
15844 <summary>Get the simulator specific ID of the parcel</summary>
15845 </member>
15846 <member name="P:OpenMetaverse.ParcelAccessListReplyEventArgs.Flags">
15847 <summary>TODO:</summary>
15848 </member>
15849 <member name="P:OpenMetaverse.ParcelAccessListReplyEventArgs.AccessList">
15850 <summary>Get the list containing the white/blacklisted agents for the parcel</summary>
15851 </member>
15852 <member name="T:OpenMetaverse.ParcelObjectOwnersReplyEventArgs">
15853 <summary>Contains blacklist and whitelist data returned from the
15854 simulator in response to an <see cref="!:RequestParcelAccesslist" /> request</summary>
15855 </member>
15856 <member name="M:OpenMetaverse.ParcelObjectOwnersReplyEventArgs.#ctor(OpenMetaverse.Simulator,System.Collections.Generic.List{OpenMetaverse.ParcelManager.ParcelPrimOwners})">
16465 <summary> 15857 <summary>
16466 Construct a new instance of the FriendNamesEventArgs class 15858 Construct a new instance of the ParcelObjectOwnersReplyEventArgs class
16467 </summary> 15859 </summary>
16468 <param name="names">A dictionary where the Key is the ID of the Agent, 15860 <param name="simulator">The simulator the parcel is located in</param>
16469 and the Value is a string containing their name</param> 15861 <param name="primOwners">The list containing prim ownership counts</param>
16470 </member> 15862 </member>
16471 <member name="P:OpenMetaverse.FriendNamesEventArgs.Names"> 15863 <member name="P:OpenMetaverse.ParcelObjectOwnersReplyEventArgs.Simulator">
16472 <summary>A dictionary where the Key is the ID of the Agent, 15864 <summary>Get the simulator the parcel is located in</summary>
16473 and the Value is a string containing their name</summary>
16474 </member> 15865 </member>
16475 <member name="T:OpenMetaverse.FriendshipOfferedEventArgs"> 15866 <member name="P:OpenMetaverse.ParcelObjectOwnersReplyEventArgs.PrimOwners">
16476 <summary>Sent when another agent requests a friendship with our agent</summary> 15867 <summary>Get the list containing prim ownership counts</summary>
16477 </member> 15868 </member>
16478 <member name="M:OpenMetaverse.FriendshipOfferedEventArgs.#ctor(OpenMetaverse.UUID,System.String,OpenMetaverse.UUID)"> 15869 <member name="T:OpenMetaverse.SimParcelsDownloadedEventArgs">
15870 <summary>Contains the data returned when all parcel data has been retrieved from a simulator</summary>
15871 </member>
15872 <member name="M:OpenMetaverse.SimParcelsDownloadedEventArgs.#ctor(OpenMetaverse.Simulator,OpenMetaverse.InternalDictionary{System.Int32,OpenMetaverse.Parcel},System.Int32[,])">
16479 <summary> 15873 <summary>
16480 Construct a new instance of the FriendshipOfferedEventArgs class 15874 Construct a new instance of the SimParcelsDownloadedEventArgs class
16481 </summary> 15875 </summary>
16482 <param name="agentID">The ID of the agent requesting friendship</param> 15876 <param name="simulator">The simulator the parcel data was retrieved from</param>
16483 <param name="agentName">The name of the agent requesting friendship</param> 15877 <param name="simParcels">The dictionary containing the parcel data</param>
16484 <param name="imSessionID">The ID of the session, used in accepting or declining the 15878 <param name="parcelMap">The multidimensional array containing a x,y grid mapped
16485 friendship offer</param> 15879 to each 64x64 parcel's LocalID.</param>
16486 </member> 15880 </member>
16487 <member name="P:OpenMetaverse.FriendshipOfferedEventArgs.AgentID"> 15881 <member name="P:OpenMetaverse.SimParcelsDownloadedEventArgs.Simulator">
16488 <summary>Get the ID of the agent requesting friendship</summary> 15882 <summary>Get the simulator the parcel data was retrieved from</summary>
16489 </member> 15883 </member>
16490 <member name="P:OpenMetaverse.FriendshipOfferedEventArgs.AgentName"> 15884 <member name="P:OpenMetaverse.SimParcelsDownloadedEventArgs.Parcels">
16491 <summary>Get the name of the agent requesting friendship</summary> 15885 <summary>A dictionary containing the parcel data where the key correlates to the ParcelMap entry</summary>
16492 </member> 15886 </member>
16493 <member name="P:OpenMetaverse.FriendshipOfferedEventArgs.SessionID"> 15887 <member name="P:OpenMetaverse.SimParcelsDownloadedEventArgs.ParcelMap">
16494 <summary>Get the ID of the session, used in accepting or declining the 15888 <summary>Get the multidimensional array containing a x,y grid mapped
16495 friendship offer</summary> 15889 to each 64x64 parcel's LocalID.</summary>
16496 </member> 15890 </member>
16497 <member name="T:OpenMetaverse.FriendshipResponseEventArgs"> 15891 <member name="T:OpenMetaverse.ForceSelectObjectsReplyEventArgs">
16498 <summary>A response containing the results of our request to form a friendship with another agent</summary> 15892 <summary>Contains the data returned when a <see cref="!:RequestForceSelectObjects" /> request</summary>
16499 </member> 15893 </member>
16500 <member name="M:OpenMetaverse.FriendshipResponseEventArgs.#ctor(OpenMetaverse.UUID,System.String,System.Boolean)"> 15894 <member name="M:OpenMetaverse.ForceSelectObjectsReplyEventArgs.#ctor(OpenMetaverse.Simulator,System.Collections.Generic.List{System.UInt32},System.Boolean)">
16501 <summary> 15895 <summary>
16502 Construct a new instance of the FriendShipResponseEventArgs class 15896 Construct a new instance of the ForceSelectObjectsReplyEventArgs class
16503 </summary> 15897 </summary>
16504 <param name="agentID">The ID of the agent we requested a friendship with</param> 15898 <param name="simulator">The simulator the parcel data was retrieved from</param>
16505 <param name="agentName">The name of the agent we requested a friendship with</param> 15899 <param name="objectIDs">The list of primitive IDs</param>
16506 <param name="accepted">true if the agent accepted our friendship offer</param> 15900 <param name="resetList">true if the list is clean and contains the information
15901 only for a given request</param>
16507 </member> 15902 </member>
16508 <member name="P:OpenMetaverse.FriendshipResponseEventArgs.AgentID"> 15903 <member name="P:OpenMetaverse.ForceSelectObjectsReplyEventArgs.Simulator">
16509 <summary>Get the ID of the agent we requested a friendship with</summary> 15904 <summary>Get the simulator the parcel data was retrieved from</summary>
16510 </member> 15905 </member>
16511 <member name="P:OpenMetaverse.FriendshipResponseEventArgs.AgentName"> 15906 <member name="P:OpenMetaverse.ForceSelectObjectsReplyEventArgs.ObjectIDs">
16512 <summary>Get the name of the agent we requested a friendship with</summary> 15907 <summary>Get the list of primitive IDs</summary>
16513 </member> 15908 </member>
16514 <member name="P:OpenMetaverse.FriendshipResponseEventArgs.Accepted"> 15909 <member name="P:OpenMetaverse.ForceSelectObjectsReplyEventArgs.ResetList">
16515 <summary>true if the agent accepted our friendship offer</summary> 15910 <summary>true if the list is clean and contains the information
15911 only for a given request</summary>
16516 </member> 15912 </member>
16517 <member name="T:OpenMetaverse.FriendshipTerminatedEventArgs"> 15913 <member name="T:OpenMetaverse.ParcelMediaUpdateReplyEventArgs">
16518 <summary>Contains data sent when a friend terminates a friendship with us</summary> 15914 <summary>Contains data when the media data for a parcel the avatar is on changes</summary>
16519 </member> 15915 </member>
16520 <member name="M:OpenMetaverse.FriendshipTerminatedEventArgs.#ctor(OpenMetaverse.UUID,System.String)"> 15916 <member name="M:OpenMetaverse.ParcelMediaUpdateReplyEventArgs.#ctor(OpenMetaverse.Simulator,OpenMetaverse.ParcelMedia)">
16521 <summary> 15917 <summary>
16522 Construct a new instance of the FrindshipTerminatedEventArgs class 15918 Construct a new instance of the ParcelMediaUpdateReplyEventArgs class
16523 </summary> 15919 </summary>
16524 <param name="agentID">The ID of the friend who terminated the friendship with us</param> 15920 <param name="simulator">the simulator the parcel media data was updated in</param>
16525 <param name="agentName">The name of the friend who terminated the friendship with us</param> 15921 <param name="media">The updated media information</param>
16526 </member> 15922 </member>
16527 <member name="P:OpenMetaverse.FriendshipTerminatedEventArgs.AgentID"> 15923 <member name="P:OpenMetaverse.ParcelMediaUpdateReplyEventArgs.Simulator">
16528 <summary>Get the ID of the agent that terminated the friendship with us</summary> 15924 <summary>Get the simulator the parcel media data was updated in</summary>
16529 </member> 15925 </member>
16530 <member name="P:OpenMetaverse.FriendshipTerminatedEventArgs.AgentName"> 15926 <member name="P:OpenMetaverse.ParcelMediaUpdateReplyEventArgs.Media">
16531 <summary>Get the name of the agent that terminated the friendship with us</summary> 15927 <summary>Get the updated media information</summary>
16532 </member> 15928 </member>
16533 <member name="T:OpenMetaverse.FriendFoundReplyEventArgs"> 15929 <member name="T:OpenMetaverse.ParcelMediaCommandEventArgs">
15930 <summary>Contains the media command for a parcel the agent is currently on</summary>
15931 </member>
15932 <member name="M:OpenMetaverse.ParcelMediaCommandEventArgs.#ctor(OpenMetaverse.Simulator,System.UInt32,OpenMetaverse.ParcelFlags,OpenMetaverse.ParcelMediaCommand,System.Single)">
16534 <summary> 15933 <summary>
16535 Data sent in response to a <see cref="!:FindFriend"/> request which contains the information to allow us to map the friends location 15934 Construct a new instance of the ParcelMediaCommandEventArgs class
16536 </summary> 15935 </summary>
15936 <param name="simulator">The simulator the parcel media command was issued in</param>
15937 <param name="sequence">
15938 </param>
15939 <param name="flags">
15940 </param>
15941 <param name="command">The media command that was sent</param>
15942 <param name="time">
15943 </param>
16537 </member> 15944 </member>
16538 <member name="M:OpenMetaverse.FriendFoundReplyEventArgs.#ctor(OpenMetaverse.UUID,System.UInt64,OpenMetaverse.Vector3)"> 15945 <member name="P:OpenMetaverse.ParcelMediaCommandEventArgs.Simulator">
15946 <summary>Get the simulator the parcel media command was issued in</summary>
15947 </member>
15948 <member name="P:OpenMetaverse.ParcelMediaCommandEventArgs.Sequence">
16539 <summary> 15949 <summary>
16540 Construct a new instance of the FriendFoundReplyEventArgs class
16541 </summary> 15950 </summary>
16542 <param name="agentID">The ID of the agent we have requested location information for</param>
16543 <param name="regionHandle">The region handle where our friend is located</param>
16544 <param name="location">The simulator local position our friend is located</param>
16545 </member> 15951 </member>
16546 <member name="P:OpenMetaverse.FriendFoundReplyEventArgs.AgentID"> 15952 <member name="P:OpenMetaverse.ParcelMediaCommandEventArgs.ParcelFlags">
16547 <summary>Get the ID of the agent we have received location information for</summary> 15953 <summary>
15954 </summary>
16548 </member> 15955 </member>
16549 <member name="P:OpenMetaverse.FriendFoundReplyEventArgs.RegionHandle"> 15956 <member name="P:OpenMetaverse.ParcelMediaCommandEventArgs.MediaCommand">
16550 <summary>Get the region handle where our mapped friend is located</summary> 15957 <summary>Get the media command that was sent</summary>
16551 </member> 15958 </member>
16552 <member name="P:OpenMetaverse.FriendFoundReplyEventArgs.Location"> 15959 <member name="P:OpenMetaverse.ParcelMediaCommandEventArgs.Time">
16553 <summary>Get the simulator local position where our friend is located</summary> 15960 <summary>
15961 </summary>
16554 </member> 15962 </member>
16555 <member name="T:OpenMetaverse.BinBVHAnimationReader"> 15963 <member name="T:OpenMetaverse.PermissionMask">
16556 <summary> 15964 <summary>
16557 Reads in a byte array of an Animation Asset created by the SecondLife(tm) client.
16558 </summary> 15965 </summary>
16559 </member> 15966 </member>
16560 <member name="F:OpenMetaverse.BinBVHAnimationReader.rotationkeys"> 15967 <member name="T:OpenMetaverse.PermissionWho">
16561 <summary> 15968 <summary>
16562 Rotation Keyframe count (used internally)
16563 </summary> 15969 </summary>
16564 </member> 15970 </member>
16565 <member name="F:OpenMetaverse.BinBVHAnimationReader.positionkeys"> 15971 <member name="F:OpenMetaverse.PermissionWho.Base">
16566 <summary> 15972 <summary>
16567 Position Keyframe count (used internally)
16568 </summary> 15973 </summary>
16569 </member> 15974 </member>
16570 <member name="F:OpenMetaverse.BinBVHAnimationReader.Priority"> 15975 <member name="F:OpenMetaverse.PermissionWho.Owner">
16571 <summary> 15976 <summary>
16572 Animation Priority
16573 </summary> 15977 </summary>
16574 </member> 15978 </member>
16575 <member name="F:OpenMetaverse.BinBVHAnimationReader.Length"> 15979 <member name="F:OpenMetaverse.PermissionWho.Group">
16576 <summary> 15980 <summary>
16577 The animation length in seconds.
16578 </summary> 15981 </summary>
16579 </member> 15982 </member>
16580 <member name="F:OpenMetaverse.BinBVHAnimationReader.ExpressionName"> 15983 <member name="F:OpenMetaverse.PermissionWho.Everyone">
16581 <summary> 15984 <summary>
16582 Expression set in the client. Null if [None] is selected
16583 </summary> 15985 </summary>
16584 </member> 15986 </member>
16585 <member name="F:OpenMetaverse.BinBVHAnimationReader.InPoint"> 15987 <member name="F:OpenMetaverse.PermissionWho.NextOwner">
16586 <summary> 15988 <summary>
16587 The time in seconds to start the animation
16588 </summary> 15989 </summary>
16589 </member> 15990 </member>
16590 <member name="F:OpenMetaverse.BinBVHAnimationReader.OutPoint"> 15991 <member name="F:OpenMetaverse.PermissionWho.All">
16591 <summary> 15992 <summary>
16592 The time in seconds to end the animation
16593 </summary> 15993 </summary>
16594 </member> 15994 </member>
16595 <member name="F:OpenMetaverse.BinBVHAnimationReader.Loop"> 15995 <member name="T:OpenMetaverse.Permissions">
16596 <summary> 15996 <summary>
16597 Loop the animation
16598 </summary> 15997 </summary>
16599 </member> 15998 </member>
16600 <member name="F:OpenMetaverse.BinBVHAnimationReader.EaseInTime"> 15999 <member name="T:OpenMetaverse.FieldType">
16601 <summary> 16000 <summary>
16602 Meta data. Ease in Seconds.
16603 </summary> 16001 </summary>
16604 </member> 16002 </member>
16605 <member name="F:OpenMetaverse.BinBVHAnimationReader.EaseOutTime"> 16003 <member name="F:OpenMetaverse.FieldType.U8">
16606 <summary> 16004 <summary>
16607 Meta data. Ease out seconds.
16608 </summary> 16005 </summary>
16609 </member> 16006 </member>
16610 <member name="F:OpenMetaverse.BinBVHAnimationReader.HandPose"> 16007 <member name="F:OpenMetaverse.FieldType.U16">
16611 <summary> 16008 <summary>
16612 Meta Data for the Hand Pose
16613 </summary> 16009 </summary>
16614 </member> 16010 </member>
16615 <member name="F:OpenMetaverse.BinBVHAnimationReader.JointCount"> 16011 <member name="F:OpenMetaverse.FieldType.U32">
16616 <summary> 16012 <summary>
16617 Number of joints defined in the animation
16618 </summary> 16013 </summary>
16619 </member> 16014 </member>
16620 <member name="F:OpenMetaverse.BinBVHAnimationReader.joints"> 16015 <member name="F:OpenMetaverse.FieldType.U64">
16621 <summary> 16016 <summary>
16622 Contains an array of joints
16623 </summary> 16017 </summary>
16624 </member> 16018 </member>
16625 <member name="M:OpenMetaverse.BinBVHAnimationReader.#ctor(System.Byte[])"> 16019 <member name="F:OpenMetaverse.FieldType.S8">
16626 <summary> 16020 <summary>
16627 Searialize an animation asset into it's joints/keyframes/meta data
16628 </summary> 16021 </summary>
16629 <param name="animationdata"></param>
16630 </member> 16022 </member>
16631 <member name="M:OpenMetaverse.BinBVHAnimationReader.ReadBytesUntilNull(System.Byte[],System.Int32@)"> 16023 <member name="F:OpenMetaverse.FieldType.S16">
16632 <summary> 16024 <summary>
16633 Variable length strings seem to be null terminated in the animation asset.. but..
16634 use with caution, home grown.
16635 advances the index.
16636 </summary> 16025 </summary>
16637 <param name="data">The animation asset byte array</param>
16638 <param name="i">The offset to start reading</param>
16639 <returns>a string</returns>
16640 </member> 16026 </member>
16641 <member name="M:OpenMetaverse.BinBVHAnimationReader.readJoint(System.Byte[],System.Int32@)"> 16027 <member name="F:OpenMetaverse.FieldType.S32">
16642 <summary> 16028 <summary>
16643 Read in a Joint from an animation asset byte array
16644 Variable length Joint fields, yay!
16645 Advances the index
16646 </summary> 16029 </summary>
16647 <param name="data">animation asset byte array</param>
16648 <param name="i">Byte Offset of the start of the joint</param>
16649 <returns>The Joint data serialized into the binBVHJoint structure</returns>
16650 </member> 16030 </member>
16651 <member name="M:OpenMetaverse.BinBVHAnimationReader.readKeys(System.Byte[],System.Int32@,System.Int32,System.Single,System.Single)"> 16031 <member name="F:OpenMetaverse.FieldType.F32">
16652 <summary> 16032 <summary>
16653 Read Keyframes of a certain type
16654 advance i
16655 </summary> 16033 </summary>
16656 <param name="data">Animation Byte array</param>
16657 <param name="i">Offset in the Byte Array. Will be advanced</param>
16658 <param name="keycount">Number of Keyframes</param>
16659 <param name="min">Scaling Min to pass to the Uint16ToFloat method</param>
16660 <param name="max">Scaling Max to pass to the Uint16ToFloat method</param>
16661 <returns></returns>
16662 </member> 16034 </member>
16663 <member name="T:OpenMetaverse.binBVHJoint"> 16035 <member name="F:OpenMetaverse.FieldType.F64">
16664 <summary> 16036 <summary>
16665 A Joint and it's associated meta data and keyframes
16666 </summary> 16037 </summary>
16667 </member> 16038 </member>
16668 <member name="F:OpenMetaverse.binBVHJoint.Name"> 16039 <member name="F:OpenMetaverse.FieldType.UUID">
16669 <summary> 16040 <summary>
16670 Name of the Joint. Matches the avatar_skeleton.xml in client distros
16671 </summary> 16041 </summary>
16672 </member> 16042 </member>
16673 <member name="F:OpenMetaverse.binBVHJoint.Priority"> 16043 <member name="F:OpenMetaverse.FieldType.BOOL">
16674 <summary> 16044 <summary>
16675 Joint Animation Override? Was the same as the Priority in testing..
16676 </summary> 16045 </summary>
16677 </member> 16046 </member>
16678 <member name="F:OpenMetaverse.binBVHJoint.rotationkeys"> 16047 <member name="F:OpenMetaverse.FieldType.Vector3">
16679 <summary> 16048 <summary>
16680 Array of Rotation Keyframes in order from earliest to latest
16681 </summary> 16049 </summary>
16682 </member> 16050 </member>
16683 <member name="F:OpenMetaverse.binBVHJoint.positionkeys"> 16051 <member name="F:OpenMetaverse.FieldType.Vector3d">
16684 <summary> 16052 <summary>
16685 Array of Position Keyframes in order from earliest to latest
16686 This seems to only be for the Pelvis?
16687 </summary> 16053 </summary>
16688 </member> 16054 </member>
16689 <member name="T:OpenMetaverse.binBVHJointKey"> 16055 <member name="F:OpenMetaverse.FieldType.Vector4">
16690 <summary> 16056 <summary>
16691 A Joint Keyframe. This is either a position or a rotation.
16692 </summary> 16057 </summary>
16693 </member> 16058 </member>
16694 <member name="F:OpenMetaverse.binBVHJointKey.key_element"> 16059 <member name="F:OpenMetaverse.FieldType.Quaternion">
16695 <summary> 16060 <summary>
16696 Either a Vector3 position or a Vector3 Euler rotation
16697 </summary> 16061 </summary>
16698 </member> 16062 </member>
16699 <member name="T:OpenMetaverse.HandPose"> 16063 <member name="F:OpenMetaverse.FieldType.IPADDR">
16700 <summary> 16064 <summary>
16701 Poses set in the animation metadata for the hands.
16702 </summary> 16065 </summary>
16703 </member> 16066 </member>
16704 <member name="T:OpenMetaverse.Bumpiness"> 16067 <member name="F:OpenMetaverse.FieldType.IPPORT">
16705 <summary> 16068 <summary>
16706 The type of bump-mapping applied to a face
16707 </summary> 16069 </summary>
16708 </member> 16070 </member>
16709 <member name="F:OpenMetaverse.Bumpiness.None"> 16071 <member name="F:OpenMetaverse.FieldType.Variable">
16710 <summary></summary> 16072 <summary>
16073 </summary>
16711 </member> 16074 </member>
16712 <member name="F:OpenMetaverse.Bumpiness.Brightness"> 16075 <member name="F:OpenMetaverse.FieldType.Fixed">
16713 <summary></summary> 16076 <summary>
16077 </summary>
16714 </member> 16078 </member>
16715 <member name="F:OpenMetaverse.Bumpiness.Darkness"> 16079 <member name="F:OpenMetaverse.FieldType.Single">
16716 <summary></summary> 16080 <summary>
16081 </summary>
16717 </member> 16082 </member>
16718 <member name="F:OpenMetaverse.Bumpiness.Woodgrain"> 16083 <member name="F:OpenMetaverse.FieldType.Multiple">
16719 <summary></summary> 16084 <summary>
16085 </summary>
16720 </member> 16086 </member>
16721 <member name="F:OpenMetaverse.Bumpiness.Bark"> 16087 <member name="T:OpenMetaverse.MapField">
16722 <summary></summary> 16088 <summary>
16089 </summary>
16723 </member> 16090 </member>
16724 <member name="F:OpenMetaverse.Bumpiness.Bricks"> 16091 <member name="F:OpenMetaverse.MapField.KeywordPosition">
16725 <summary></summary> 16092 <summary>
16093 </summary>
16726 </member> 16094 </member>
16727 <member name="F:OpenMetaverse.Bumpiness.Checker"> 16095 <member name="F:OpenMetaverse.MapField.Name">
16728 <summary></summary> 16096 <summary>
16097 </summary>
16729 </member> 16098 </member>
16730 <member name="F:OpenMetaverse.Bumpiness.Concrete"> 16099 <member name="F:OpenMetaverse.MapField.Type">
16731 <summary></summary> 16100 <summary>
16101 </summary>
16732 </member> 16102 </member>
16733 <member name="F:OpenMetaverse.Bumpiness.Crustytile"> 16103 <member name="F:OpenMetaverse.MapField.Count">
16734 <summary></summary> 16104 <summary>
16105 </summary>
16735 </member> 16106 </member>
16736 <member name="F:OpenMetaverse.Bumpiness.Cutstone"> 16107 <member name="M:OpenMetaverse.MapField.CompareTo(System.Object)">
16737 <summary></summary> 16108 <summary>
16109 </summary>
16110 <param name="obj">
16111 </param>
16112 <returns>
16113 </returns>
16738 </member> 16114 </member>
16739 <member name="F:OpenMetaverse.Bumpiness.Discs"> 16115 <member name="T:OpenMetaverse.MapBlock">
16740 <summary></summary> 16116 <summary>
16117 </summary>
16741 </member> 16118 </member>
16742 <member name="F:OpenMetaverse.Bumpiness.Gravel"> 16119 <member name="F:OpenMetaverse.MapBlock.KeywordPosition">
16743 <summary></summary> 16120 <summary>
16121 </summary>
16744 </member> 16122 </member>
16745 <member name="F:OpenMetaverse.Bumpiness.Petridish"> 16123 <member name="F:OpenMetaverse.MapBlock.Name">
16746 <summary></summary> 16124 <summary>
16125 </summary>
16747 </member> 16126 </member>
16748 <member name="F:OpenMetaverse.Bumpiness.Siding"> 16127 <member name="F:OpenMetaverse.MapBlock.Count">
16749 <summary></summary> 16128 <summary>
16129 </summary>
16750 </member> 16130 </member>
16751 <member name="F:OpenMetaverse.Bumpiness.Stonetile"> 16131 <member name="F:OpenMetaverse.MapBlock.Fields">
16752 <summary></summary> 16132 <summary>
16133 </summary>
16753 </member> 16134 </member>
16754 <member name="F:OpenMetaverse.Bumpiness.Stucco"> 16135 <member name="M:OpenMetaverse.MapBlock.CompareTo(System.Object)">
16755 <summary></summary> 16136 <summary>
16137 </summary>
16138 <param name="obj">
16139 </param>
16140 <returns>
16141 </returns>
16756 </member> 16142 </member>
16757 <member name="F:OpenMetaverse.Bumpiness.Suction"> 16143 <member name="T:OpenMetaverse.MapPacket">
16758 <summary></summary> 16144 <summary>
16145 </summary>
16759 </member> 16146 </member>
16760 <member name="F:OpenMetaverse.Bumpiness.Weave"> 16147 <member name="F:OpenMetaverse.MapPacket.ID">
16761 <summary></summary> 16148 <summary>
16149 </summary>
16762 </member> 16150 </member>
16763 <member name="T:OpenMetaverse.Shininess"> 16151 <member name="F:OpenMetaverse.MapPacket.Name">
16764 <summary> 16152 <summary>
16765 The level of shininess applied to a face
16766 </summary> 16153 </summary>
16767 </member> 16154 </member>
16768 <member name="F:OpenMetaverse.Shininess.None"> 16155 <member name="F:OpenMetaverse.MapPacket.Frequency">
16769 <summary></summary> 16156 <summary>
16157 </summary>
16770 </member> 16158 </member>
16771 <member name="F:OpenMetaverse.Shininess.Low"> 16159 <member name="F:OpenMetaverse.MapPacket.Trusted">
16772 <summary></summary> 16160 <summary>
16161 </summary>
16773 </member> 16162 </member>
16774 <member name="F:OpenMetaverse.Shininess.Medium"> 16163 <member name="F:OpenMetaverse.MapPacket.Encoded">
16775 <summary></summary> 16164 <summary>
16165 </summary>
16776 </member> 16166 </member>
16777 <member name="F:OpenMetaverse.Shininess.High"> 16167 <member name="F:OpenMetaverse.MapPacket.Blocks">
16778 <summary></summary> 16168 <summary>
16169 </summary>
16779 </member> 16170 </member>
16780 <member name="T:OpenMetaverse.MappingType"> 16171 <member name="T:OpenMetaverse.ProtocolManager">
16781 <summary> 16172 <summary>
16782 The texture mapping style used for a face
16783 </summary> 16173 </summary>
16784 </member> 16174 </member>
16785 <member name="F:OpenMetaverse.MappingType.Default"> 16175 <member name="M:OpenMetaverse.ProtocolManager.#ctor(System.String,OpenMetaverse.GridClient)">
16786 <summary></summary> 16176 <summary>
16177 </summary>
16178 <param name="mapFile">
16179 </param>
16180 <param name="client">
16181 </param>
16787 </member> 16182 </member>
16788 <member name="F:OpenMetaverse.MappingType.Planar"> 16183 <member name="F:OpenMetaverse.ProtocolManager.TypeSizes">
16789 <summary></summary> 16184 <summary>
16185 </summary>
16790 </member> 16186 </member>
16791 <member name="F:OpenMetaverse.MappingType.Spherical"> 16187 <member name="F:OpenMetaverse.ProtocolManager.KeywordPositions">
16792 <summary></summary> 16188 <summary>
16189 </summary>
16793 </member> 16190 </member>
16794 <member name="F:OpenMetaverse.MappingType.Cylindrical"> 16191 <member name="F:OpenMetaverse.ProtocolManager.LowMaps">
16795 <summary></summary> 16192 <summary>
16193 </summary>
16796 </member> 16194 </member>
16797 <member name="T:OpenMetaverse.TextureAttributes"> 16195 <member name="F:OpenMetaverse.ProtocolManager.MediumMaps">
16798 <summary> 16196 <summary>
16799 Flags in the TextureEntry block that describe which properties are
16800 set
16801 </summary> 16197 </summary>
16802 </member> 16198 </member>
16803 <member name="F:OpenMetaverse.TextureAttributes.None"> 16199 <member name="F:OpenMetaverse.ProtocolManager.HighMaps">
16804 <summary></summary> 16200 <summary>
16201 </summary>
16805 </member> 16202 </member>
16806 <member name="F:OpenMetaverse.TextureAttributes.TextureID"> 16203 <member name="M:OpenMetaverse.ProtocolManager.Command(System.String)">
16807 <summary></summary> 16204 <summary>
16205 </summary>
16206 <param name="command">
16207 </param>
16208 <returns>
16209 </returns>
16808 </member> 16210 </member>
16809 <member name="F:OpenMetaverse.TextureAttributes.RGBA"> 16211 <member name="M:OpenMetaverse.ProtocolManager.Command(System.Byte[])">
16810 <summary></summary> 16212 <summary>
16213 </summary>
16214 <param name="data">
16215 </param>
16216 <returns>
16217 </returns>
16811 </member> 16218 </member>
16812 <member name="F:OpenMetaverse.TextureAttributes.RepeatU"> 16219 <member name="M:OpenMetaverse.ProtocolManager.Command(System.UInt16,OpenMetaverse.PacketFrequency)">
16813 <summary></summary> 16220 <summary>
16221 </summary>
16222 <param name="command">
16223 </param>
16224 <param name="frequency">
16225 </param>
16226 <returns>
16227 </returns>
16814 </member> 16228 </member>
16815 <member name="F:OpenMetaverse.TextureAttributes.RepeatV"> 16229 <member name="M:OpenMetaverse.ProtocolManager.PrintMap">
16816 <summary></summary> 16230 <summary>
16231 </summary>
16817 </member> 16232 </member>
16818 <member name="F:OpenMetaverse.TextureAttributes.OffsetU"> 16233 <member name="M:OpenMetaverse.ProtocolManager.PrintOneMap(OpenMetaverse.MapPacket[],System.String)">
16819 <summary></summary> 16234 <summary>
16235 </summary>
16236 <param name="map">
16237 </param>
16238 <param name="frequency">
16239 </param>
16820 </member> 16240 </member>
16821 <member name="F:OpenMetaverse.TextureAttributes.OffsetV"> 16241 <member name="M:OpenMetaverse.ProtocolManager.DecodeMapFile(System.String,System.String)">
16822 <summary></summary> 16242 <summary>
16243 </summary>
16244 <param name="mapFile">
16245 </param>
16246 <param name="outputFile">
16247 </param>
16823 </member> 16248 </member>
16824 <member name="F:OpenMetaverse.TextureAttributes.Rotation"> 16249 <member name="M:OpenMetaverse.ProtocolManager.LoadMapFile(System.String)">
16825 <summary></summary> 16250 <summary>
16251 </summary>
16252 <param name="mapFile">
16253 </param>
16826 </member> 16254 </member>
16827 <member name="F:OpenMetaverse.TextureAttributes.Material"> 16255 <member name="T:OpenMetaverse.Settings">
16828 <summary></summary> 16256 <summary>
16257 Class for controlling various system settings.
16258 </summary>
16259 <remarks>Some values are readonly because they affect things that
16260 happen when the GridClient object is initialized, so changing them at
16261 runtime won't do any good. Non-readonly values may affect things that
16262 happen at login or dynamically</remarks>
16829 </member> 16263 </member>
16830 <member name="F:OpenMetaverse.TextureAttributes.Media"> 16264 <member name="M:OpenMetaverse.Settings.#ctor(OpenMetaverse.GridClient)">
16831 <summary></summary> 16265 <summary>Constructor</summary>
16266 <param name="client">Reference to a GridClient object</param>
16832 </member> 16267 </member>
16833 <member name="F:OpenMetaverse.TextureAttributes.Glow"> 16268 <member name="F:OpenMetaverse.Settings.AGNI_LOGIN_SERVER">
16834 <summary></summary> 16269 <summary>Main grid login server</summary>
16835 </member> 16270 </member>
16836 <member name="F:OpenMetaverse.TextureAttributes.All"> 16271 <member name="F:OpenMetaverse.Settings.ADITI_LOGIN_SERVER">
16837 <summary></summary> 16272 <summary>Beta grid login server</summary>
16838 </member> 16273 </member>
16839 <member name="T:OpenMetaverse.Assets.AssetScriptBinary"> 16274 <member name="F:OpenMetaverse.Settings.ENABLE_INVENTORY_STORE">
16840 <summary> 16275 <summary>
16841 Represents an AssetScriptBinary object containing the 16276 InventoryManager requests inventory information on login,
16842 LSO compiled bytecode of an LSL script 16277 GridClient initializes an Inventory store for main inventory.
16843 </summary> 16278 </summary>
16844 </member> 16279 </member>
16845 <member name="M:OpenMetaverse.Assets.AssetScriptBinary.#ctor"> 16280 <member name="F:OpenMetaverse.Settings.ENABLE_LIBRARY_STORE">
16846 <summary>Initializes a new instance of an AssetScriptBinary object</summary> 16281 <summary>
16282 InventoryManager requests library information on login,
16283 GridClient initializes an Inventory store for the library.
16284 </summary>
16847 </member> 16285 </member>
16848 <member name="M:OpenMetaverse.Assets.AssetScriptBinary.#ctor(OpenMetaverse.UUID,System.Byte[])"> 16286 <member name="F:OpenMetaverse.Settings.PING_INTERVAL">
16849 <summary>Initializes a new instance of an AssetScriptBinary object with parameters</summary> 16287 <summary>Number of milliseconds between sending pings to each sim</summary>
16850 <param name="assetID">A unique <see cref="T:OpenMetaverse.UUID"/> specific to this asset</param>
16851 <param name="assetData">A byte array containing the raw asset data</param>
16852 </member> 16288 </member>
16853 <member name="M:OpenMetaverse.Assets.AssetScriptBinary.Encode"> 16289 <member name="F:OpenMetaverse.Settings.DEFAULT_AGENT_UPDATE_INTERVAL">
16290 <summary>Number of milliseconds between sending camera updates</summary>
16291 </member>
16292 <member name="F:OpenMetaverse.Settings.INTERPOLATION_INTERVAL">
16293 <summary>Number of milliseconds between updating the current
16294 positions of moving, non-accelerating and non-colliding objects</summary>
16295 </member>
16296 <member name="F:OpenMetaverse.Settings.NETWORK_TICK_INTERVAL">
16297 <summary>Millisecond interval between ticks, where all ACKs are
16298 sent out and the age of unACKed packets is checked</summary>
16299 </member>
16300 <member name="F:OpenMetaverse.Settings.PACKET_INBOX_SIZE">
16301 <summary>The initial size of the packet inbox, where packets are
16302 stored before processing</summary>
16303 </member>
16304 <member name="F:OpenMetaverse.Settings.MAX_PACKET_SIZE">
16305 <summary>Maximum size of packet that we want to send over the wire</summary>
16306 </member>
16307 <member name="F:OpenMetaverse.Settings.MAX_SEQUENCE">
16308 <summary>The maximum value of a packet sequence number before it
16309 rolls over back to one</summary>
16310 </member>
16311 <member name="F:OpenMetaverse.Settings.PACKET_ARCHIVE_SIZE">
16312 <summary>The maximum size of the sequence number archive, used to
16313 check for resent and/or duplicate packets</summary>
16314 </member>
16315 <member name="F:OpenMetaverse.Settings.RESOURCE_DIR">
16316 <summary>The relative directory where external resources are kept</summary>
16317 </member>
16318 <member name="F:OpenMetaverse.Settings.LOGIN_SERVER">
16319 <summary>Login server to connect to</summary>
16320 </member>
16321 <member name="F:OpenMetaverse.Settings.BIND_ADDR">
16322 <summary>IP Address the client will bind to</summary>
16323 </member>
16324 <member name="F:OpenMetaverse.Settings.USE_LLSD_LOGIN">
16325 <summary>Use XML-RPC Login or LLSD Login, default is XML-RPC Login</summary>
16326 </member>
16327 <member name="F:OpenMetaverse.Settings.TRANSFER_TIMEOUT">
16328 <summary>Number of milliseconds before an asset transfer will time
16329 out</summary>
16330 </member>
16331 <member name="F:OpenMetaverse.Settings.TELEPORT_TIMEOUT">
16332 <summary>Number of milliseconds before a teleport attempt will time
16333 out</summary>
16334 </member>
16335 <member name="F:OpenMetaverse.Settings.LOGOUT_TIMEOUT">
16336 <summary>Number of milliseconds before NetworkManager.Logout() will
16337 time out</summary>
16338 </member>
16339 <member name="F:OpenMetaverse.Settings.CAPS_TIMEOUT">
16340 <summary>Number of milliseconds before a CAPS call will time out</summary>
16341 <remarks>Setting this too low will cause web requests time out and
16342 possibly retry repeatedly</remarks>
16343 </member>
16344 <member name="F:OpenMetaverse.Settings.LOGIN_TIMEOUT">
16345 <summary>Number of milliseconds for xml-rpc to timeout</summary>
16346 </member>
16347 <member name="F:OpenMetaverse.Settings.RESEND_TIMEOUT">
16348 <summary>Milliseconds before a packet is assumed lost and resent</summary>
16349 </member>
16350 <member name="F:OpenMetaverse.Settings.SIMULATOR_TIMEOUT">
16351 <summary>Milliseconds without receiving a packet before the
16352 connection to a simulator is assumed lost</summary>
16353 </member>
16354 <member name="F:OpenMetaverse.Settings.MAP_REQUEST_TIMEOUT">
16355 <summary>Milliseconds to wait for a simulator info request through
16356 the grid interface</summary>
16357 </member>
16358 <member name="F:OpenMetaverse.Settings.MAX_PENDING_ACKS">
16359 <summary>Maximum number of queued ACKs to be sent before SendAcks()
16360 is forced</summary>
16361 </member>
16362 <member name="F:OpenMetaverse.Settings.STATS_QUEUE_SIZE">
16363 <summary>Network stats queue length (seconds)</summary>
16364 </member>
16365 <member name="F:OpenMetaverse.Settings.STORE_LAND_PATCHES">
16366 <summary>Enable/disable storing terrain heightmaps in the
16367 TerrainManager</summary>
16368 </member>
16369 <member name="F:OpenMetaverse.Settings.SEND_AGENT_UPDATES">
16370 <summary>Enable/disable sending periodic camera updates</summary>
16371 </member>
16372 <member name="F:OpenMetaverse.Settings.SEND_AGENT_APPEARANCE">
16373 <summary>Enable/disable automatically setting agent appearance at
16374 login and after sim crossing</summary>
16375 </member>
16376 <member name="F:OpenMetaverse.Settings.SEND_AGENT_THROTTLE">
16377 <summary>Enable/disable automatically setting the bandwidth throttle
16378 after connecting to each simulator</summary>
16379 <remarks>The default throttle uses the equivalent of the maximum
16380 bandwidth setting in the official client. If you do not set a
16381 throttle your connection will by default be throttled well below
16382 the minimum values and you may experience connection problems</remarks>
16383 </member>
16384 <member name="F:OpenMetaverse.Settings.SEND_PINGS">
16385 <summary>Enable/disable the sending of pings to monitor lag and
16386 packet loss</summary>
16387 </member>
16388 <member name="F:OpenMetaverse.Settings.MULTIPLE_SIMS">
16389 <summary>Should we connect to multiple sims? This will allow
16390 viewing in to neighboring simulators and sim crossings
16391 (Experimental)</summary>
16392 </member>
16393 <member name="F:OpenMetaverse.Settings.ALWAYS_DECODE_OBJECTS">
16394 <summary>If true, all object update packets will be decoded in to
16395 native objects. If false, only updates for our own agent will be
16396 decoded. Registering an event handler will force objects for that
16397 type to always be decoded. If this is disabled the object tracking
16398 will have missing or partial prim and avatar information</summary>
16399 </member>
16400 <member name="F:OpenMetaverse.Settings.ALWAYS_REQUEST_OBJECTS">
16401 <summary>If true, when a cached object check is received from the
16402 server the full object info will automatically be requested</summary>
16403 </member>
16404 <member name="F:OpenMetaverse.Settings.ENABLE_CAPS">
16405 <summary>Whether to establish connections to HTTP capabilities
16406 servers for simulators</summary>
16407 </member>
16408 <member name="F:OpenMetaverse.Settings.ENABLE_SIMSTATS">
16409 <summary>Whether to decode sim stats</summary>
16410 </member>
16411 <member name="F:OpenMetaverse.Settings.LOG_ALL_CAPS_ERRORS">
16412 <summary>The capabilities servers are currently designed to
16413 periodically return a 502 error which signals for the client to
16414 re-establish a connection. Set this to true to log those 502 errors</summary>
16415 </member>
16416 <member name="F:OpenMetaverse.Settings.FETCH_MISSING_INVENTORY">
16417 <summary>If true, any reference received for a folder or item
16418 the library is not aware of will automatically be fetched</summary>
16419 </member>
16420 <member name="F:OpenMetaverse.Settings.DISABLE_AGENT_UPDATE_DUPLICATE_CHECK">
16421 <summary>If true, and <code>SEND_AGENT_UPDATES</code> is true,
16422 AgentUpdate packets will continuously be sent out to give the bot
16423 smoother movement and autopiloting</summary>
16424 </member>
16425 <member name="F:OpenMetaverse.Settings.AVATAR_TRACKING">
16426 <summary>If true, currently visible avatars will be stored
16427 in dictionaries inside <code>Simulator.ObjectAvatars</code>.
16428 If false, a new Avatar or Primitive object will be created
16429 each time an object update packet is received</summary>
16430 </member>
16431 <member name="F:OpenMetaverse.Settings.OBJECT_TRACKING">
16432 <summary>If true, currently visible avatars will be stored
16433 in dictionaries inside <code>Simulator.ObjectPrimitives</code>.
16434 If false, a new Avatar or Primitive object will be created
16435 each time an object update packet is received</summary>
16436 </member>
16437 <member name="F:OpenMetaverse.Settings.USE_INTERPOLATION_TIMER">
16438 <summary>If true, position and velocity will periodically be
16439 interpolated (extrapolated, technically) for objects and
16440 avatars that are being tracked by the library. This is
16441 necessary to increase the accuracy of speed and position
16442 estimates for simulated objects</summary>
16443 </member>
16444 <member name="F:OpenMetaverse.Settings.TRACK_UTILIZATION">
16854 <summary> 16445 <summary>
16855 TODO: Encodes a scripts contents into a LSO Bytecode file 16446 If true, utilization statistics will be tracked. There is a minor penalty
16447 in CPU time for enabling this option.
16856 </summary> 16448 </summary>
16857 </member> 16449 </member>
16858 <member name="M:OpenMetaverse.Assets.AssetScriptBinary.Decode"> 16450 <member name="F:OpenMetaverse.Settings.PARCEL_TRACKING">
16451 <summary>If true, parcel details will be stored in the
16452 <code>Simulator.Parcels</code> dictionary as they are received</summary>
16453 </member>
16454 <member name="F:OpenMetaverse.Settings.ALWAYS_REQUEST_PARCEL_ACL">
16859 <summary> 16455 <summary>
16860 TODO: Decode LSO Bytecode into a string 16456 If true, an incoming parcel properties reply will automatically send
16457 a request for the parcel access list
16861 </summary> 16458 </summary>
16862 <returns>true</returns>
16863 </member> 16459 </member>
16864 <member name="P:OpenMetaverse.Assets.AssetScriptBinary.AssetType"> 16460 <member name="F:OpenMetaverse.Settings.ALWAYS_REQUEST_PARCEL_DWELL">
16865 <summary>Override the base classes AssetType</summary> 16461 <summary>
16462 if true, an incoming parcel properties reply will automatically send
16463 a request for the traffic count.
16464 </summary>
16866 </member> 16465 </member>
16867 <member name="T:OpenMetaverse.Assets.TarArchiveWriter"> 16466 <member name="F:OpenMetaverse.Settings.USE_ASSET_CACHE">
16868 <summary> 16467 <summary>
16869 Temporary code to produce a tar archive in tar v7 format 16468 If true, images, and other assets downloaded from the server
16469 will be cached in a local directory
16870 </summary> 16470 </summary>
16871 </member> 16471 </member>
16872 <member name="F:OpenMetaverse.Assets.TarArchiveWriter.m_bw"> 16472 <member name="F:OpenMetaverse.Settings.ASSET_CACHE_DIR">
16473 <summary>Path to store cached texture data</summary>
16474 </member>
16475 <member name="F:OpenMetaverse.Settings.ASSET_CACHE_MAX_SIZE">
16476 <summary>Maximum size cached files are allowed to take on disk (bytes)</summary>
16477 </member>
16478 <member name="F:OpenMetaverse.Settings.DEFAULT_EFFECT_COLOR">
16479 <summary>Default color used for viewer particle effects</summary>
16480 </member>
16481 <member name="F:OpenMetaverse.Settings.MAX_RESEND_COUNT">
16482 <summary>Maximum number of times to resend a failed packet</summary>
16483 </member>
16484 <member name="F:OpenMetaverse.Settings.THROTTLE_OUTGOING_PACKETS">
16485 <summary>Throttle outgoing packet rate</summary>
16486 </member>
16487 <member name="F:OpenMetaverse.Settings.CLIENT_IDENTIFICATION_TAG">
16488 <summary>UUID of a texture used by some viewers to indentify type of client used</summary>
16489 </member>
16490 <member name="F:OpenMetaverse.Settings.USE_HTTP_TEXTURES">
16873 <summary> 16491 <summary>
16874 Binary writer for the underlying stream 16492 Download textures using GetTexture capability when available
16875 </summary> 16493 </summary>
16876 </member> 16494 </member>
16877 <member name="M:OpenMetaverse.Assets.TarArchiveWriter.WriteDir(System.String)"> 16495 <member name="F:OpenMetaverse.Settings.MAX_CONCURRENT_TEXTURE_DOWNLOADS">
16496 <summary>The maximum number of concurrent texture downloads allowed</summary>
16497 <remarks>Increasing this number will not necessarily increase texture retrieval times due to
16498 simulator throttles</remarks>
16499 </member>
16500 <member name="F:OpenMetaverse.Settings.PIPELINE_REFRESH_INTERVAL">
16878 <summary> 16501 <summary>
16879 Write a directory entry to the tar archive. We can only handle one path level right now! 16502 The Refresh timer inteval is used to set the delay between checks for stalled texture downloads
16880 </summary> 16503 </summary>
16881 <param name="dirName"></param> 16504 <remarks>This is a static variable which applies to all instances</remarks>
16882 </member> 16505 </member>
16883 <member name="M:OpenMetaverse.Assets.TarArchiveWriter.WriteFile(System.String,System.String)"> 16506 <member name="F:OpenMetaverse.Settings.PIPELINE_REQUEST_TIMEOUT">
16884 <summary> 16507 <summary>
16885 Write a file to the tar archive 16508 Textures taking longer than this value will be flagged as timed out and removed from the pipeline
16886 </summary> 16509 </summary>
16887 <param name="filePath"></param>
16888 <param name="data"></param>
16889 </member> 16510 </member>
16890 <member name="M:OpenMetaverse.Assets.TarArchiveWriter.WriteFile(System.String,System.Byte[])"> 16511 <member name="F:OpenMetaverse.Settings.LOG_LEVEL">
16891 <summary> 16512 <summary>
16892 Write a file to the tar archive 16513 Get or set the minimum log level to output to the console by default
16514 If the library is not compiled with DEBUG defined and this level is set to DEBUG
16515 You will get no output on the console. This behavior can be overriden by creating
16516 a logger configuration file for log4net
16893 </summary> 16517 </summary>
16894 <param name="filePath"></param>
16895 <param name="data"></param>
16896 </member> 16518 </member>
16897 <member name="M:OpenMetaverse.Assets.TarArchiveWriter.Close"> 16519 <member name="F:OpenMetaverse.Settings.LOG_NAMES">
16520 <summary>Attach avatar names to log messages</summary>
16521 </member>
16522 <member name="F:OpenMetaverse.Settings.LOG_RESENDS">
16523 <summary>Log packet retransmission info</summary>
16524 </member>
16525 <member name="P:OpenMetaverse.Settings.UPLOAD_COST">
16526 <summary>Cost of uploading an asset</summary>
16527 <remarks>Read-only since this value is dynamically fetched at login</remarks>
16528 </member>
16529 <member name="M:OpenMetaverse.Settings.EconomyDataHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
16530 <summary>Process an incoming packet and raise the appropriate events</summary>
16531 <param name="sender">The sender</param>
16532 <param name="e">The EventArgs object containing the packet data</param>
16533 </member>
16534 <member name="T:OpenMetaverse.RegionFlags">
16898 <summary> 16535 <summary>
16899 Finish writing the raw tar archive data to a stream. The stream will be closed on completion. 16536 Simulator (region) properties
16900 </summary> 16537 </summary>
16901 </member> 16538 </member>
16902 <member name="M:OpenMetaverse.Assets.TarArchiveWriter.WriteEntry(System.String,System.Byte[],System.Char)"> 16539 <member name="F:OpenMetaverse.RegionFlags.None">
16540 <summary>No flags set</summary>
16541 </member>
16542 <member name="F:OpenMetaverse.RegionFlags.AllowDamage">
16543 <summary>Agents can take damage and be killed</summary>
16544 </member>
16545 <member name="F:OpenMetaverse.RegionFlags.AllowLandmark">
16546 <summary>Landmarks can be created here</summary>
16547 </member>
16548 <member name="F:OpenMetaverse.RegionFlags.AllowSetHome">
16549 <summary>Home position can be set in this sim</summary>
16550 </member>
16551 <member name="F:OpenMetaverse.RegionFlags.ResetHomeOnTeleport">
16552 <summary>Home position is reset when an agent teleports away</summary>
16553 </member>
16554 <member name="F:OpenMetaverse.RegionFlags.SunFixed">
16555 <summary>Sun does not move</summary>
16556 </member>
16557 <member name="F:OpenMetaverse.RegionFlags.TaxFree">
16558 <summary>No object, land, etc. taxes</summary>
16559 </member>
16560 <member name="F:OpenMetaverse.RegionFlags.BlockTerraform">
16561 <summary>Disable heightmap alterations (agents can still plant
16562 foliage)</summary>
16563 </member>
16564 <member name="F:OpenMetaverse.RegionFlags.BlockLandResell">
16565 <summary>Land cannot be released, sold, or purchased</summary>
16566 </member>
16567 <member name="F:OpenMetaverse.RegionFlags.Sandbox">
16568 <summary>All content is wiped nightly</summary>
16569 </member>
16570 <member name="F:OpenMetaverse.RegionFlags.NullLayer">
16571 <summary>Unknown: Related to the availability of an overview world map tile.(Think mainland images when zoomed out.)</summary>
16572 </member>
16573 <member name="F:OpenMetaverse.RegionFlags.SkipAgentAction">
16574 <summary>Unknown: Related to region debug flags. Possibly to skip processing of agent interaction with world. </summary>
16575 </member>
16576 <member name="F:OpenMetaverse.RegionFlags.SkipUpdateInterestList">
16577 <summary>Region does not update agent prim interest lists. Internal debugging option.</summary>
16578 </member>
16579 <member name="F:OpenMetaverse.RegionFlags.SkipCollisions">
16580 <summary>No collision detection for non-agent objects</summary>
16581 </member>
16582 <member name="F:OpenMetaverse.RegionFlags.SkipScripts">
16583 <summary>No scripts are ran</summary>
16584 </member>
16585 <member name="F:OpenMetaverse.RegionFlags.SkipPhysics">
16586 <summary>All physics processing is turned off</summary>
16587 </member>
16588 <member name="F:OpenMetaverse.RegionFlags.ExternallyVisible">
16589 <summary>Region can be seen from other regions on world map. (Legacy world map option?) </summary>
16590 </member>
16591 <member name="F:OpenMetaverse.RegionFlags.MainlandVisible">
16592 <summary>Region can be seen from mainland on world map. (Legacy world map option?) </summary>
16593 </member>
16594 <member name="F:OpenMetaverse.RegionFlags.PublicAllowed">
16595 <summary>Agents not explicitly on the access list can visit the region. </summary>
16596 </member>
16597 <member name="F:OpenMetaverse.RegionFlags.BlockDwell">
16598 <summary>Traffic calculations are not run across entire region, overrides parcel settings. </summary>
16599 </member>
16600 <member name="F:OpenMetaverse.RegionFlags.NoFly">
16601 <summary>Flight is disabled (not currently enforced by the sim)</summary>
16602 </member>
16603 <member name="F:OpenMetaverse.RegionFlags.AllowDirectTeleport">
16604 <summary>Allow direct (p2p) teleporting</summary>
16605 </member>
16606 <member name="F:OpenMetaverse.RegionFlags.EstateSkipScripts">
16607 <summary>Estate owner has temporarily disabled scripting</summary>
16608 </member>
16609 <member name="F:OpenMetaverse.RegionFlags.RestrictPushObject">
16610 <summary>Restricts the usage of the LSL llPushObject function, applies to whole region.</summary>
16611 </member>
16612 <member name="F:OpenMetaverse.RegionFlags.DenyAnonymous">
16613 <summary>Deny agents with no payment info on file</summary>
16614 </member>
16615 <member name="F:OpenMetaverse.RegionFlags.DenyIdentified">
16616 <summary>Deny agents with payment info on file</summary>
16617 </member>
16618 <member name="F:OpenMetaverse.RegionFlags.DenyTransacted">
16619 <summary>Deny agents who have made a monetary transaction</summary>
16620 </member>
16621 <member name="F:OpenMetaverse.RegionFlags.AllowParcelChanges">
16622 <summary>Parcels within the region may be joined or divided by anyone, not just estate owners/managers. </summary>
16623 </member>
16624 <member name="F:OpenMetaverse.RegionFlags.AbuseEmailToEstateOwner">
16625 <summary>Abuse reports sent from within this region are sent to the estate owner defined email. </summary>
16626 </member>
16627 <member name="F:OpenMetaverse.RegionFlags.AllowVoice">
16628 <summary>Region is Voice Enabled</summary>
16629 </member>
16630 <member name="F:OpenMetaverse.RegionFlags.BlockParcelSearch">
16631 <summary>Removes the ability from parcel owners to set their parcels to show in search.</summary>
16632 </member>
16633 <member name="F:OpenMetaverse.RegionFlags.DenyAgeUnverified">
16634 <summary>Deny agents who have not been age verified from entering the region.</summary>
16635 </member>
16636 <member name="T:OpenMetaverse.SimAccess">
16637 <summary>
16638 Access level for a simulator
16639 </summary>
16640 </member>
16641 <member name="F:OpenMetaverse.SimAccess.Unknown">
16642 <summary>Unknown or invalid access level</summary>
16643 </member>
16644 <member name="F:OpenMetaverse.SimAccess.Trial">
16645 <summary>Trial accounts allowed</summary>
16646 </member>
16647 <member name="F:OpenMetaverse.SimAccess.PG">
16648 <summary>PG rating</summary>
16649 </member>
16650 <member name="F:OpenMetaverse.SimAccess.Mature">
16651 <summary>Mature rating</summary>
16652 </member>
16653 <member name="F:OpenMetaverse.SimAccess.Adult">
16654 <summary>Adult rating</summary>
16655 </member>
16656 <member name="F:OpenMetaverse.SimAccess.Down">
16657 <summary>Simulator is offline</summary>
16658 </member>
16659 <member name="F:OpenMetaverse.SimAccess.NonExistent">
16660 <summary>Simulator does not exist</summary>
16661 </member>
16662 <member name="T:OpenMetaverse.Simulator">
16663 <summary>
16664 </summary>
16665 </member>
16666 <member name="M:OpenMetaverse.Simulator.#ctor(OpenMetaverse.GridClient,System.Net.IPEndPoint,System.UInt64)">
16667 <summary>
16668 </summary>
16669 <param name="client">Reference to the GridClient object</param>
16670 <param name="address">IPEndPoint of the simulator</param>
16671 <param name="handle">handle of the simulator</param>
16672 </member>
16673 <member name="T:OpenMetaverse.Simulator.SimStats">
16674 <summary>
16675 Simulator Statistics
16676 </summary>
16677 </member>
16678 <member name="F:OpenMetaverse.Simulator.SimStats.SentPackets">
16679 <summary>Total number of packets sent by this simulator to this agent</summary>
16680 </member>
16681 <member name="F:OpenMetaverse.Simulator.SimStats.RecvPackets">
16682 <summary>Total number of packets received by this simulator to this agent</summary>
16683 </member>
16684 <member name="F:OpenMetaverse.Simulator.SimStats.SentBytes">
16685 <summary>Total number of bytes sent by this simulator to this agent</summary>
16686 </member>
16687 <member name="F:OpenMetaverse.Simulator.SimStats.RecvBytes">
16688 <summary>Total number of bytes received by this simulator to this agent</summary>
16689 </member>
16690 <member name="F:OpenMetaverse.Simulator.SimStats.ConnectTime">
16691 <summary>Time in seconds agent has been connected to simulator</summary>
16692 </member>
16693 <member name="F:OpenMetaverse.Simulator.SimStats.ResentPackets">
16694 <summary>Total number of packets that have been resent</summary>
16695 </member>
16696 <member name="F:OpenMetaverse.Simulator.SimStats.ReceivedResends">
16697 <summary>Total number of resent packets recieved</summary>
16698 </member>
16699 <member name="F:OpenMetaverse.Simulator.SimStats.SentPings">
16700 <summary>Total number of pings sent to this simulator by this agent</summary>
16701 </member>
16702 <member name="F:OpenMetaverse.Simulator.SimStats.ReceivedPongs">
16703 <summary>Total number of ping replies sent to this agent by this simulator</summary>
16704 </member>
16705 <member name="F:OpenMetaverse.Simulator.SimStats.IncomingBPS">
16706 <summary>
16707 Incoming bytes per second
16708 </summary>
16709 <remarks>It would be nice to have this claculated on the fly, but
16710 this is far, far easier</remarks>
16711 </member>
16712 <member name="F:OpenMetaverse.Simulator.SimStats.OutgoingBPS">
16713 <summary>
16714 Outgoing bytes per second
16715 </summary>
16716 <remarks>It would be nice to have this claculated on the fly, but
16717 this is far, far easier</remarks>
16718 </member>
16719 <member name="F:OpenMetaverse.Simulator.SimStats.LastPingSent">
16720 <summary>Time last ping was sent</summary>
16721 </member>
16722 <member name="F:OpenMetaverse.Simulator.SimStats.LastPingID">
16723 <summary>ID of last Ping sent</summary>
16724 </member>
16725 <member name="F:OpenMetaverse.Simulator.SimStats.LastLag">
16726 <summary>
16727 </summary>
16728 </member>
16729 <member name="F:OpenMetaverse.Simulator.SimStats.MissedPings">
16730 <summary>
16731 </summary>
16732 </member>
16733 <member name="F:OpenMetaverse.Simulator.SimStats.Dilation">
16734 <summary>Current time dilation of this simulator</summary>
16735 </member>
16736 <member name="F:OpenMetaverse.Simulator.SimStats.FPS">
16737 <summary>Current Frames per second of simulator</summary>
16738 </member>
16739 <member name="F:OpenMetaverse.Simulator.SimStats.PhysicsFPS">
16740 <summary>Current Physics frames per second of simulator</summary>
16741 </member>
16742 <member name="F:OpenMetaverse.Simulator.SimStats.AgentUpdates">
16743 <summary>
16744 </summary>
16745 </member>
16746 <member name="F:OpenMetaverse.Simulator.SimStats.FrameTime">
16747 <summary>
16748 </summary>
16749 </member>
16750 <member name="F:OpenMetaverse.Simulator.SimStats.NetTime">
16751 <summary>
16752 </summary>
16753 </member>
16754 <member name="F:OpenMetaverse.Simulator.SimStats.PhysicsTime">
16755 <summary>
16756 </summary>
16757 </member>
16758 <member name="F:OpenMetaverse.Simulator.SimStats.ImageTime">
16759 <summary>
16760 </summary>
16761 </member>
16762 <member name="F:OpenMetaverse.Simulator.SimStats.ScriptTime">
16763 <summary>
16764 </summary>
16765 </member>
16766 <member name="F:OpenMetaverse.Simulator.SimStats.AgentTime">
16767 <summary>
16768 </summary>
16769 </member>
16770 <member name="F:OpenMetaverse.Simulator.SimStats.OtherTime">
16771 <summary>
16772 </summary>
16773 </member>
16774 <member name="F:OpenMetaverse.Simulator.SimStats.Objects">
16775 <summary>Total number of objects Simulator is simulating</summary>
16776 </member>
16777 <member name="F:OpenMetaverse.Simulator.SimStats.ScriptedObjects">
16778 <summary>Total number of Active (Scripted) objects running</summary>
16779 </member>
16780 <member name="F:OpenMetaverse.Simulator.SimStats.Agents">
16781 <summary>Number of agents currently in this simulator</summary>
16782 </member>
16783 <member name="F:OpenMetaverse.Simulator.SimStats.ChildAgents">
16784 <summary>Number of agents in neighbor simulators</summary>
16785 </member>
16786 <member name="F:OpenMetaverse.Simulator.SimStats.ActiveScripts">
16787 <summary>Number of Active scripts running in this simulator</summary>
16788 </member>
16789 <member name="F:OpenMetaverse.Simulator.SimStats.LSLIPS">
16790 <summary>
16791 </summary>
16792 </member>
16793 <member name="F:OpenMetaverse.Simulator.SimStats.INPPS">
16794 <summary>
16795 </summary>
16796 </member>
16797 <member name="F:OpenMetaverse.Simulator.SimStats.OUTPPS">
16798 <summary>
16799 </summary>
16800 </member>
16801 <member name="F:OpenMetaverse.Simulator.SimStats.PendingDownloads">
16802 <summary>Number of downloads pending</summary>
16803 </member>
16804 <member name="F:OpenMetaverse.Simulator.SimStats.PendingUploads">
16805 <summary>Number of uploads pending</summary>
16806 </member>
16807 <member name="F:OpenMetaverse.Simulator.SimStats.VirtualSize">
16808 <summary>
16809 </summary>
16810 </member>
16811 <member name="F:OpenMetaverse.Simulator.SimStats.ResidentSize">
16812 <summary>
16813 </summary>
16814 </member>
16815 <member name="F:OpenMetaverse.Simulator.SimStats.PendingLocalUploads">
16816 <summary>Number of local uploads pending</summary>
16817 </member>
16818 <member name="F:OpenMetaverse.Simulator.SimStats.UnackedBytes">
16819 <summary>Unacknowledged bytes in queue</summary>
16820 </member>
16821 <member name="F:OpenMetaverse.Simulator.Client">
16822 <summary>A public reference to the client that this Simulator object
16823 is attached to</summary>
16824 </member>
16825 <member name="F:OpenMetaverse.Simulator.ID">
16826 <summary>A Unique Cache identifier for this simulator</summary>
16827 </member>
16828 <member name="F:OpenMetaverse.Simulator.Caps">
16829 <summary>The capabilities for this simulator</summary>
16830 </member>
16831 <member name="F:OpenMetaverse.Simulator.Handle">
16832 <summary>
16833 </summary>
16834 </member>
16835 <member name="F:OpenMetaverse.Simulator.SimVersion">
16836 <summary>The current version of software this simulator is running</summary>
16837 </member>
16838 <member name="F:OpenMetaverse.Simulator.Name">
16839 <summary>
16840 </summary>
16841 </member>
16842 <member name="F:OpenMetaverse.Simulator.ParcelOverlay">
16843 <summary>A 64x64 grid of parcel coloring values. The values stored
16844 in this array are of the <seealso cref="!:ParcelArrayType" /> type</summary>
16845 </member>
16846 <member name="F:OpenMetaverse.Simulator.ParcelOverlaysReceived">
16847 <summary>
16848 </summary>
16849 </member>
16850 <member name="F:OpenMetaverse.Simulator.TerrainHeightRange00">
16851 <summary>
16852 </summary>
16853 </member>
16854 <member name="F:OpenMetaverse.Simulator.TerrainHeightRange01">
16855 <summary>
16856 </summary>
16857 </member>
16858 <member name="F:OpenMetaverse.Simulator.TerrainHeightRange10">
16859 <summary>
16860 </summary>
16861 </member>
16862 <member name="F:OpenMetaverse.Simulator.TerrainHeightRange11">
16863 <summary>
16864 </summary>
16865 </member>
16866 <member name="F:OpenMetaverse.Simulator.TerrainStartHeight00">
16867 <summary>
16868 </summary>
16869 </member>
16870 <member name="F:OpenMetaverse.Simulator.TerrainStartHeight01">
16871 <summary>
16872 </summary>
16873 </member>
16874 <member name="F:OpenMetaverse.Simulator.TerrainStartHeight10">
16875 <summary>
16876 </summary>
16877 </member>
16878 <member name="F:OpenMetaverse.Simulator.TerrainStartHeight11">
16879 <summary>
16880 </summary>
16881 </member>
16882 <member name="F:OpenMetaverse.Simulator.WaterHeight">
16883 <summary>
16884 </summary>
16885 </member>
16886 <member name="F:OpenMetaverse.Simulator.SimOwner">
16887 <summary>
16888 </summary>
16889 </member>
16890 <member name="F:OpenMetaverse.Simulator.TerrainBase0">
16891 <summary>
16892 </summary>
16893 </member>
16894 <member name="F:OpenMetaverse.Simulator.TerrainBase1">
16895 <summary>
16896 </summary>
16897 </member>
16898 <member name="F:OpenMetaverse.Simulator.TerrainBase2">
16899 <summary>
16900 </summary>
16901 </member>
16902 <member name="F:OpenMetaverse.Simulator.TerrainBase3">
16903 <summary>
16904 </summary>
16905 </member>
16906 <member name="F:OpenMetaverse.Simulator.TerrainDetail0">
16907 <summary>
16908 </summary>
16909 </member>
16910 <member name="F:OpenMetaverse.Simulator.TerrainDetail1">
16911 <summary>
16912 </summary>
16913 </member>
16914 <member name="F:OpenMetaverse.Simulator.TerrainDetail2">
16915 <summary>
16916 </summary>
16917 </member>
16918 <member name="F:OpenMetaverse.Simulator.TerrainDetail3">
16919 <summary>
16920 </summary>
16921 </member>
16922 <member name="F:OpenMetaverse.Simulator.IsEstateManager">
16923 <summary>true if your agent has Estate Manager rights on this region</summary>
16924 </member>
16925 <member name="F:OpenMetaverse.Simulator.Flags">
16926 <summary>
16927 </summary>
16928 </member>
16929 <member name="F:OpenMetaverse.Simulator.Access">
16930 <summary>
16931 </summary>
16932 </member>
16933 <member name="F:OpenMetaverse.Simulator.BillableFactor">
16934 <summary>
16935 </summary>
16936 </member>
16937 <member name="F:OpenMetaverse.Simulator.Stats">
16938 <summary>Statistics information for this simulator and the
16939 connection to the simulator, calculated by the simulator itself
16940 and the library</summary>
16941 </member>
16942 <member name="F:OpenMetaverse.Simulator.RegionID">
16943 <summary>The regions Unique ID</summary>
16944 </member>
16945 <member name="F:OpenMetaverse.Simulator.ColoLocation">
16946 <summary>The physical data center the simulator is located</summary>
16947 <remarks>Known values are:
16948 <list type="table"><item>Dallas</item><item>Chandler</item><item>SF</item></list></remarks>
16949 </member>
16950 <member name="F:OpenMetaverse.Simulator.CPUClass">
16951 <summary>The CPU Class of the simulator</summary>
16952 <remarks>Most full mainland/estate sims appear to be 5,
16953 Homesteads and Openspace appear to be 501</remarks>
16954 </member>
16955 <member name="F:OpenMetaverse.Simulator.CPURatio">
16956 <summary>The number of regions sharing the same CPU as this one</summary>
16957 <remarks>"Full Sims" appear to be 1, Homesteads appear to be 4</remarks>
16958 </member>
16959 <member name="F:OpenMetaverse.Simulator.ProductName">
16960 <summary>The billing product name</summary>
16961 <remarks>Known values are:
16962 <list type="table"><item>Mainland / Full Region (Sku: 023)</item><item>Estate / Full Region (Sku: 024)</item><item>Estate / Openspace (Sku: 027)</item><item>Estate / Homestead (Sku: 029)</item><item>Mainland / Homestead (Sku: 129) (Linden Owned)</item><item>Mainland / Linden Homes (Sku: 131)</item></list></remarks>
16963 </member>
16964 <member name="F:OpenMetaverse.Simulator.ProductSku">
16965 <summary>The billing product SKU</summary>
16966 <remarks>Known values are:
16967 <list type="table"><item>023 Mainland / Full Region</item><item>024 Estate / Full Region</item><item>027 Estate / Openspace</item><item>029 Estate / Homestead</item><item>129 Mainland / Homestead (Linden Owned)</item><item>131 Linden Homes / Full Region</item></list></remarks>
16968 </member>
16969 <member name="F:OpenMetaverse.Simulator.Sequence">
16970 <summary>The current sequence number for packets sent to this
16971 simulator. Must be Interlocked before modifying. Only
16972 useful for applications manipulating sequence numbers</summary>
16973 </member>
16974 <member name="F:OpenMetaverse.Simulator.ObjectsAvatars">
16975 <summary>
16976 A thread-safe dictionary containing avatars in a simulator
16977 </summary>
16978 </member>
16979 <member name="F:OpenMetaverse.Simulator.ObjectsPrimitives">
16980 <summary>
16981 A thread-safe dictionary containing primitives in a simulator
16982 </summary>
16983 </member>
16984 <member name="F:OpenMetaverse.Simulator.Parcels">
16985 <summary>
16986 Provides access to an internal thread-safe dictionary containing parcel
16987 information found in this simulator
16988 </summary>
16989 </member>
16990 <member name="F:OpenMetaverse.Simulator.AgentMovementComplete">
16991 <summary>
16992 Is it safe to send agent updates to this sim
16993 AgentMovementComplete message received
16994 </summary>
16995 </member>
16996 <member name="F:OpenMetaverse.Simulator.DisconnectCandidate">
16997 <summary>Used internally to track sim disconnections</summary>
16998 </member>
16999 <member name="F:OpenMetaverse.Simulator.ConnectedEvent">
17000 <summary>Event that is triggered when the simulator successfully
17001 establishes a connection</summary>
17002 </member>
17003 <member name="F:OpenMetaverse.Simulator.connected">
17004 <summary>Whether this sim is currently connected or not. Hooked up
17005 to the property Connected</summary>
17006 </member>
17007 <member name="F:OpenMetaverse.Simulator.avatarPositions">
17008 <summary>Coarse locations of avatars in this simulator</summary>
17009 </member>
17010 <member name="F:OpenMetaverse.Simulator.preyID">
17011 <summary>AvatarPositions key representing TrackAgent target</summary>
17012 </member>
17013 <member name="F:OpenMetaverse.Simulator.PacketArchive">
17014 <summary>Sequence numbers of packets we've received
17015 (for duplicate checking)</summary>
17016 </member>
17017 <member name="F:OpenMetaverse.Simulator.NeedAck">
17018 <summary>Packets we sent out that need ACKs from the simulator</summary>
17019 </member>
17020 <member name="F:OpenMetaverse.Simulator.pauseSerial">
17021 <summary>Sequence number for pause/resume</summary>
17022 </member>
17023 <member name="F:OpenMetaverse.Simulator.handshakeComplete">
17024 <summary>Indicates if UDP connection to the sim is fully established</summary>
17025 </member>
17026 <member name="P:OpenMetaverse.Simulator.ParcelMap">
17027 <summary>
17028 Provides access to an internal thread-safe multidimensional array containing a x,y grid mapped
17029 to each 64x64 parcel's LocalID.
17030 </summary>
17031 </member>
17032 <member name="P:OpenMetaverse.Simulator.IPEndPoint">
17033 <summary>The IP address and port of the server</summary>
17034 </member>
17035 <member name="P:OpenMetaverse.Simulator.Connected">
17036 <summary>Whether there is a working connection to the simulator or
17037 not</summary>
17038 </member>
17039 <member name="P:OpenMetaverse.Simulator.AvatarPositions">
17040 <summary>Coarse locations of avatars in this simulator</summary>
17041 </member>
17042 <member name="P:OpenMetaverse.Simulator.PreyID">
17043 <summary>AvatarPositions key representing TrackAgent target</summary>
17044 </member>
17045 <member name="P:OpenMetaverse.Simulator.HandshakeComplete">
17046 <summary>Indicates if UDP connection to the sim is fully established</summary>
17047 </member>
17048 <member name="M:OpenMetaverse.Simulator.IsParcelMapFull">
17049 <summary>
17050 Checks simulator parcel map to make sure it has downloaded all data successfully
17051 </summary>
17052 <returns>true if map is full (contains no 0's)</returns>
17053 </member>
17054 <member name="M:OpenMetaverse.Simulator.Dispose">
17055 <summary>
17056 Called when this Simulator object is being destroyed
17057 </summary>
17058 </member>
17059 <member name="M:OpenMetaverse.Simulator.Connect(System.Boolean)">
17060 <summary>
17061 Attempt to connect to this simulator
17062 </summary>
17063 <param name="moveToSim">Whether to move our agent in to this sim or not</param>
17064 <returns>True if the connection succeeded or connection status is
17065 unknown, false if there was a failure</returns>
17066 </member>
17067 <member name="M:OpenMetaverse.Simulator.UseCircuitCode(System.Boolean)">
17068 <summary>
17069 Initiates connection to the simulator
17070 </summary>
17071 <param name="waitForAck">Should we block until ack for this packet is recieved</param>
17072 </member>
17073 <member name="M:OpenMetaverse.Simulator.Disconnect(System.Boolean)">
17074 <summary>
17075 Disconnect from this simulator
17076 </summary>
17077 </member>
17078 <member name="M:OpenMetaverse.Simulator.Pause">
17079 <summary>
17080 Instructs the simulator to stop sending update (and possibly other) packets
17081 </summary>
17082 </member>
17083 <member name="M:OpenMetaverse.Simulator.Resume">
17084 <summary>
17085 Instructs the simulator to resume sending update packets (unpause)
17086 </summary>
17087 </member>
17088 <member name="M:OpenMetaverse.Simulator.TerrainHeightAtPoint(System.Int32,System.Int32,System.Single@)">
17089 <summary>
17090 Retrieve the terrain height at a given coordinate
17091 </summary>
17092 <param name="x">Sim X coordinate, valid range is from 0 to 255</param>
17093 <param name="y">Sim Y coordinate, valid range is from 0 to 255</param>
17094 <param name="height">The terrain height at the given point if the
17095 lookup was successful, otherwise 0.0f</param>
17096 <returns>True if the lookup was successful, otherwise false</returns>
17097 </member>
17098 <member name="M:OpenMetaverse.Simulator.SendPacket(OpenMetaverse.Packets.Packet)">
17099 <summary>
17100 Sends a packet
17101 </summary>
17102 <param name="packet">Packet to be sent</param>
17103 </member>
17104 <member name="M:OpenMetaverse.Simulator.SendPing">
17105 <summary>
17106 </summary>
17107 </member>
17108 <member name="M:OpenMetaverse.Simulator.ToString">
17109 <summary>
17110 Returns Simulator Name as a String
17111 </summary>
17112 <returns>
17113 </returns>
17114 </member>
17115 <member name="M:OpenMetaverse.Simulator.GetHashCode">
17116 <summary>
17117 </summary>
17118 <returns>
17119 </returns>
17120 </member>
17121 <member name="M:OpenMetaverse.Simulator.Equals(System.Object)">
17122 <summary>
17123 </summary>
17124 <param name="obj">
17125 </param>
17126 <returns>
17127 </returns>
17128 </member>
17129 <member name="M:OpenMetaverse.Simulator.SendAcks">
17130 <summary>
17131 Sends out pending acknowledgements
17132 </summary>
17133 <returns>Number of ACKs sent</returns>
17134 </member>
17135 <member name="M:OpenMetaverse.Simulator.ResendUnacked">
17136 <summary>
17137 Resend unacknowledged packets
17138 </summary>
17139 </member>
17140 <member name="T:OpenMetaverse.SoundManager">
17141 <summary>
17142 </summary>
17143 </member>
17144 <member name="M:OpenMetaverse.SoundManager.#ctor(OpenMetaverse.GridClient)">
17145 <summary>
17146 Construct a new instance of the SoundManager class, used for playing and receiving
17147 sound assets
17148 </summary>
17149 <param name="client">A reference to the current GridClient instance</param>
17150 </member>
17151 <member name="F:OpenMetaverse.SoundManager.m_AttachedSound">
17152 <summary>The event subscribers, null of no subscribers</summary>
17153 </member>
17154 <member name="F:OpenMetaverse.SoundManager.m_AttachedSoundLock">
17155 <summary>Thread sync lock object</summary>
17156 </member>
17157 <member name="F:OpenMetaverse.SoundManager.m_AttachedSoundGainChange">
17158 <summary>The event subscribers, null of no subscribers</summary>
17159 </member>
17160 <member name="F:OpenMetaverse.SoundManager.m_AttachedSoundGainChangeLock">
17161 <summary>Thread sync lock object</summary>
17162 </member>
17163 <member name="F:OpenMetaverse.SoundManager.m_SoundTrigger">
17164 <summary>The event subscribers, null of no subscribers</summary>
17165 </member>
17166 <member name="F:OpenMetaverse.SoundManager.m_SoundTriggerLock">
17167 <summary>Thread sync lock object</summary>
17168 </member>
17169 <member name="F:OpenMetaverse.SoundManager.m_PreloadSound">
17170 <summary>The event subscribers, null of no subscribers</summary>
17171 </member>
17172 <member name="F:OpenMetaverse.SoundManager.m_PreloadSoundLock">
17173 <summary>Thread sync lock object</summary>
17174 </member>
17175 <member name="E:OpenMetaverse.SoundManager.AttachedSound">
17176 <summary>Raised when the simulator sends us data containing
17177 sound</summary>
17178 </member>
17179 <member name="E:OpenMetaverse.SoundManager.AttachedSoundGainChange">
17180 <summary>Raised when the simulator sends us data containing
17181 ...</summary>
17182 </member>
17183 <member name="E:OpenMetaverse.SoundManager.SoundTrigger">
17184 <summary>Raised when the simulator sends us data containing
17185 ...</summary>
17186 </member>
17187 <member name="E:OpenMetaverse.SoundManager.PreloadSound">
17188 <summary>Raised when the simulator sends us data containing
17189 ...</summary>
17190 </member>
17191 <member name="M:OpenMetaverse.SoundManager.OnAttachedSound(OpenMetaverse.AttachedSoundEventArgs)">
17192 <summary>Raises the AttachedSound Event</summary>
17193 <param name="e">A AttachedSoundEventArgs object containing
17194 the data sent from the simulator</param>
17195 </member>
17196 <member name="M:OpenMetaverse.SoundManager.OnAttachedSoundGainChange(OpenMetaverse.AttachedSoundGainChangeEventArgs)">
17197 <summary>Raises the AttachedSoundGainChange Event</summary>
17198 <param name="e">A AttachedSoundGainChangeEventArgs object containing
17199 the data sent from the simulator</param>
17200 </member>
17201 <member name="M:OpenMetaverse.SoundManager.OnSoundTrigger(OpenMetaverse.SoundTriggerEventArgs)">
17202 <summary>Raises the SoundTrigger Event</summary>
17203 <param name="e">A SoundTriggerEventArgs object containing
17204 the data sent from the simulator</param>
17205 </member>
17206 <member name="M:OpenMetaverse.SoundManager.OnPreloadSound(OpenMetaverse.PreloadSoundEventArgs)">
17207 <summary>Raises the PreloadSound Event</summary>
17208 <param name="e">A PreloadSoundEventArgs object containing
17209 the data sent from the simulator</param>
17210 </member>
17211 <member name="M:OpenMetaverse.SoundManager.PlaySound(OpenMetaverse.UUID)">
17212 <summary>
17213 Plays a sound in the current region at full volume from avatar position
17214 </summary>
17215 <param name="soundID">UUID of the sound to be played</param>
17216 </member>
17217 <member name="M:OpenMetaverse.SoundManager.SendSoundTrigger(OpenMetaverse.UUID,OpenMetaverse.Vector3)">
17218 <summary>
17219 Plays a sound in the current region at full volume
17220 </summary>
17221 <param name="soundID">UUID of the sound to be played.</param>
17222 <param name="position">position for the sound to be played at. Normally the avatar.</param>
17223 </member>
17224 <member name="M:OpenMetaverse.SoundManager.SendSoundTrigger(OpenMetaverse.UUID,OpenMetaverse.Vector3,System.Single)">
17225 <summary>
17226 Plays a sound in the current region
17227 </summary>
17228 <param name="soundID">UUID of the sound to be played.</param>
17229 <param name="position">position for the sound to be played at. Normally the avatar.</param>
17230 <param name="gain">volume of the sound, from 0.0 to 1.0</param>
17231 </member>
17232 <member name="M:OpenMetaverse.SoundManager.SendSoundTrigger(OpenMetaverse.UUID,OpenMetaverse.Simulator,OpenMetaverse.Vector3,System.Single)">
17233 <summary>
17234 Plays a sound in the specified sim
17235 </summary>
17236 <param name="soundID">UUID of the sound to be played.</param>
17237 <param name="sim">UUID of the sound to be played.</param>
17238 <param name="position">position for the sound to be played at. Normally the avatar.</param>
17239 <param name="gain">volume of the sound, from 0.0 to 1.0</param>
17240 </member>
17241 <member name="M:OpenMetaverse.SoundManager.SendSoundTrigger(OpenMetaverse.UUID,System.UInt64,OpenMetaverse.Vector3,System.Single)">
17242 <summary>
17243 Play a sound asset
17244 </summary>
17245 <param name="soundID">UUID of the sound to be played.</param>
17246 <param name="handle">handle id for the sim to be played in.</param>
17247 <param name="position">position for the sound to be played at. Normally the avatar.</param>
17248 <param name="gain">volume of the sound, from 0.0 to 1.0</param>
17249 </member>
17250 <member name="M:OpenMetaverse.SoundManager.AttachedSoundHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
17251 <summary>Process an incoming packet and raise the appropriate events</summary>
17252 <param name="sender">The sender</param>
17253 <param name="e">The EventArgs object containing the packet data</param>
17254 </member>
17255 <member name="M:OpenMetaverse.SoundManager.AttachedSoundGainChangeHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
17256 <summary>Process an incoming packet and raise the appropriate events</summary>
17257 <param name="sender">The sender</param>
17258 <param name="e">The EventArgs object containing the packet data</param>
17259 </member>
17260 <member name="M:OpenMetaverse.SoundManager.PreloadSoundHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
17261 <summary>Process an incoming packet and raise the appropriate events</summary>
17262 <param name="sender">The sender</param>
17263 <param name="e">The EventArgs object containing the packet data</param>
17264 </member>
17265 <member name="M:OpenMetaverse.SoundManager.SoundTriggerHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
17266 <summary>Process an incoming packet and raise the appropriate events</summary>
17267 <param name="sender">The sender</param>
17268 <param name="e">The EventArgs object containing the packet data</param>
17269 </member>
17270 <member name="T:OpenMetaverse.AttachedSoundEventArgs">
17271 <summary>Provides data for the <see cref="E:OpenMetaverse.SoundManager.AttachedSound" /> event</summary>
17272 <remarks>The <see cref="E:OpenMetaverse.SoundManager.AttachedSound" /> event occurs when the simulator sends
17273 the sound data which emits from an agents attachment</remarks>
17274 <example>
17275 The following code example shows the process to subscribe to the <see cref="E:OpenMetaverse.SoundManager.AttachedSound" /> event
17276 and a stub to handle the data passed from the simulator
17277 <code>
17278 // Subscribe to the AttachedSound event
17279 Client.Sound.AttachedSound += Sound_AttachedSound;
17280 // process the data raised in the event here
17281 private void Sound_AttachedSound(object sender, AttachedSoundEventArgs e)
17282 {
17283 // ... Process AttachedSoundEventArgs here ...
17284 }
17285 </code></example>
17286 </member>
17287 <member name="M:OpenMetaverse.AttachedSoundEventArgs.#ctor(OpenMetaverse.Simulator,OpenMetaverse.UUID,OpenMetaverse.UUID,OpenMetaverse.UUID,System.Single,OpenMetaverse.SoundFlags)">
17288 <summary>
17289 Construct a new instance of the SoundTriggerEventArgs class
17290 </summary>
17291 <param name="sim">Simulator where the event originated</param>
17292 <param name="soundID">The sound asset id</param>
17293 <param name="ownerID">The ID of the owner</param>
17294 <param name="objectID">The ID of the object</param>
17295 <param name="gain">The volume level</param>
17296 <param name="flags">The <see cref="T:OpenMetaverse.SoundFlags" /></param>
17297 </member>
17298 <member name="P:OpenMetaverse.AttachedSoundEventArgs.Simulator">
17299 <summary>Simulator where the event originated</summary>
17300 </member>
17301 <member name="P:OpenMetaverse.AttachedSoundEventArgs.SoundID">
17302 <summary>Get the sound asset id</summary>
17303 </member>
17304 <member name="P:OpenMetaverse.AttachedSoundEventArgs.OwnerID">
17305 <summary>Get the ID of the owner</summary>
17306 </member>
17307 <member name="P:OpenMetaverse.AttachedSoundEventArgs.ObjectID">
17308 <summary>Get the ID of the Object</summary>
17309 </member>
17310 <member name="P:OpenMetaverse.AttachedSoundEventArgs.Gain">
17311 <summary>Get the volume level</summary>
17312 </member>
17313 <member name="P:OpenMetaverse.AttachedSoundEventArgs.Flags">
17314 <summary>Get the <see cref="T:OpenMetaverse.SoundFlags" /></summary>
17315 </member>
17316 <member name="T:OpenMetaverse.AttachedSoundGainChangeEventArgs">
17317 <summary>Provides data for the <see cref="E:OpenMetaverse.SoundManager.AttachedSoundGainChange" /> event</summary>
17318 <remarks>The <see cref="E:OpenMetaverse.SoundManager.AttachedSoundGainChange" /> event occurs when an attached sound
17319 changes its volume level</remarks>
17320 </member>
17321 <member name="M:OpenMetaverse.AttachedSoundGainChangeEventArgs.#ctor(OpenMetaverse.Simulator,OpenMetaverse.UUID,System.Single)">
17322 <summary>
17323 Construct a new instance of the AttachedSoundGainChangedEventArgs class
17324 </summary>
17325 <param name="sim">Simulator where the event originated</param>
17326 <param name="objectID">The ID of the Object</param>
17327 <param name="gain">The new volume level</param>
17328 </member>
17329 <member name="P:OpenMetaverse.AttachedSoundGainChangeEventArgs.Simulator">
17330 <summary>Simulator where the event originated</summary>
17331 </member>
17332 <member name="P:OpenMetaverse.AttachedSoundGainChangeEventArgs.ObjectID">
17333 <summary>Get the ID of the Object</summary>
17334 </member>
17335 <member name="P:OpenMetaverse.AttachedSoundGainChangeEventArgs.Gain">
17336 <summary>Get the volume level</summary>
17337 </member>
17338 <member name="T:OpenMetaverse.SoundTriggerEventArgs">
17339 <summary>Provides data for the <see cref="E:OpenMetaverse.SoundManager.SoundTrigger" /> event</summary>
17340 <remarks>
17341 <para>The <see cref="E:OpenMetaverse.SoundManager.SoundTrigger" /> event occurs when the simulator forwards
17342 a request made by yourself or another agent to play either an asset sound or a built in sound</para>
17343 <para>Requests to play sounds where the <see cref="P:OpenMetaverse.SoundTriggerEventArgs.SoundID" /> is not one of the built-in
17344 <see cref="T:OpenMetaverse.Sounds" /> will require sending a request to download the sound asset before it can be played</para>
17345 </remarks>
17346 <example>
17347 The following code example uses the <see cref="P:OpenMetaverse.SoundTriggerEventArgs.OwnerID" />, <see cref="P:OpenMetaverse.SoundTriggerEventArgs.SoundID" />
17348 and <see cref="P:OpenMetaverse.SoundTriggerEventArgs.Gain" />
17349 properties to display some information on a sound request on the <see cref="T:System.Console" /> window.
17350 <code>
17351 // subscribe to the event
17352 Client.Sound.SoundTrigger += Sound_SoundTrigger;
17353 // play the pre-defined BELL_TING sound
17354 Client.Sound.SendSoundTrigger(Sounds.BELL_TING);
17355 // handle the response data
17356 private void Sound_SoundTrigger(object sender, SoundTriggerEventArgs e)
17357 {
17358 Console.WriteLine("{0} played the sound {1} at volume {2}",
17359 e.OwnerID, e.SoundID, e.Gain);
17360 }
17361 </code></example>
17362 </member>
17363 <member name="M:OpenMetaverse.SoundTriggerEventArgs.#ctor(OpenMetaverse.Simulator,OpenMetaverse.UUID,OpenMetaverse.UUID,OpenMetaverse.UUID,OpenMetaverse.UUID,System.Single,System.UInt64,OpenMetaverse.Vector3)">
17364 <summary>
17365 Construct a new instance of the SoundTriggerEventArgs class
17366 </summary>
17367 <param name="sim">Simulator where the event originated</param>
17368 <param name="soundID">The sound asset id</param>
17369 <param name="ownerID">The ID of the owner</param>
17370 <param name="objectID">The ID of the object</param>
17371 <param name="parentID">The ID of the objects parent</param>
17372 <param name="gain">The volume level</param>
17373 <param name="regionHandle">The regionhandle</param>
17374 <param name="position">The source position</param>
17375 </member>
17376 <member name="P:OpenMetaverse.SoundTriggerEventArgs.Simulator">
17377 <summary>Simulator where the event originated</summary>
17378 </member>
17379 <member name="P:OpenMetaverse.SoundTriggerEventArgs.SoundID">
17380 <summary>Get the sound asset id</summary>
17381 </member>
17382 <member name="P:OpenMetaverse.SoundTriggerEventArgs.OwnerID">
17383 <summary>Get the ID of the owner</summary>
17384 </member>
17385 <member name="P:OpenMetaverse.SoundTriggerEventArgs.ObjectID">
17386 <summary>Get the ID of the Object</summary>
17387 </member>
17388 <member name="P:OpenMetaverse.SoundTriggerEventArgs.ParentID">
17389 <summary>Get the ID of the objects parent</summary>
17390 </member>
17391 <member name="P:OpenMetaverse.SoundTriggerEventArgs.Gain">
17392 <summary>Get the volume level</summary>
17393 </member>
17394 <member name="P:OpenMetaverse.SoundTriggerEventArgs.RegionHandle">
17395 <summary>Get the regionhandle</summary>
17396 </member>
17397 <member name="P:OpenMetaverse.SoundTriggerEventArgs.Position">
17398 <summary>Get the source position</summary>
17399 </member>
17400 <member name="T:OpenMetaverse.PreloadSoundEventArgs">
17401 <summary>Provides data for the <see cref="E:OpenMetaverse.AvatarManager.AvatarAppearance" /> event</summary>
17402 <remarks>The <see cref="E:OpenMetaverse.AvatarManager.AvatarAppearance" /> event occurs when the simulator sends
17403 the appearance data for an avatar</remarks>
17404 <example>
17405 The following code example uses the <see cref="P:OpenMetaverse.AvatarAppearanceEventArgs.AvatarID" /> and <see cref="P:OpenMetaverse.AvatarAppearanceEventArgs.VisualParams" />
17406 properties to display the selected shape of an avatar on the <see cref="T:System.Console" /> window.
17407 <code>
17408 // subscribe to the event
17409 Client.Avatars.AvatarAppearance += Avatars_AvatarAppearance;
17410 // handle the data when the event is raised
17411 void Avatars_AvatarAppearance(object sender, AvatarAppearanceEventArgs e)
17412 {
17413 Console.WriteLine("The Agent {0} is using a {1} shape.", e.AvatarID, (e.VisualParams[31] &gt; 0) : "male" ? "female")
17414 }
17415 </code></example>
17416 </member>
17417 <member name="M:OpenMetaverse.PreloadSoundEventArgs.#ctor(OpenMetaverse.Simulator,OpenMetaverse.UUID,OpenMetaverse.UUID,OpenMetaverse.UUID)">
17418 <summary>
17419 Construct a new instance of the PreloadSoundEventArgs class
17420 </summary>
17421 <param name="sim">Simulator where the event originated</param>
17422 <param name="soundID">The sound asset id</param>
17423 <param name="ownerID">The ID of the owner</param>
17424 <param name="objectID">The ID of the object</param>
17425 </member>
17426 <member name="P:OpenMetaverse.PreloadSoundEventArgs.Simulator">
17427 <summary>Simulator where the event originated</summary>
17428 </member>
17429 <member name="P:OpenMetaverse.PreloadSoundEventArgs.SoundID">
17430 <summary>Get the sound asset id</summary>
17431 </member>
17432 <member name="P:OpenMetaverse.PreloadSoundEventArgs.OwnerID">
17433 <summary>Get the ID of the owner</summary>
17434 </member>
17435 <member name="P:OpenMetaverse.PreloadSoundEventArgs.ObjectID">
17436 <summary>Get the ID of the Object</summary>
17437 </member>
17438 <member name="T:OpenMetaverse.Sounds">
17439 <summary>
17440 pre-defined built in sounds
17441 </summary>
17442 </member>
17443 <member name="F:OpenMetaverse.Sounds.BELL_TING">
17444 <summary>
17445 </summary>
17446 </member>
17447 <member name="F:OpenMetaverse.Sounds.CLICK">
17448 <summary>
17449 </summary>
17450 </member>
17451 <member name="F:OpenMetaverse.Sounds.HEALTH_REDUCTION_FEMALE">
17452 <summary>
17453 </summary>
17454 </member>
17455 <member name="F:OpenMetaverse.Sounds.HEALTH_REDUCTION_MALE">
17456 <summary>
17457 </summary>
17458 </member>
17459 <member name="F:OpenMetaverse.Sounds.IM_START">
17460 <summary>
17461 </summary>
17462 </member>
17463 <member name="F:OpenMetaverse.Sounds.INSTANT_MESSAGE_NOTIFICATION">
17464 <summary>
17465 </summary>
17466 </member>
17467 <member name="F:OpenMetaverse.Sounds.INVALID_OPERATION">
17468 <summary>
17469 </summary>
17470 </member>
17471 <member name="F:OpenMetaverse.Sounds.KEYBOARD_LOOP">
17472 <summary>
17473 </summary>
17474 </member>
17475 <member name="F:OpenMetaverse.Sounds.MONEY_REDUCTION_COINS">
17476 <summary>coins</summary>
17477 </member>
17478 <member name="F:OpenMetaverse.Sounds.MONEY_INCREASE_CASH_REGISTER_BELL">
17479 <summary>cash register bell</summary>
17480 </member>
17481 <member name="F:OpenMetaverse.Sounds.NULL_KEYSTROKE">
17482 <summary>
17483 </summary>
17484 </member>
17485 <member name="F:OpenMetaverse.Sounds.OBJECT_COLLISION">
17486 <summary>
17487 </summary>
17488 </member>
17489 <member name="F:OpenMetaverse.Sounds.OBJECT_COLLISION_RUBBER">
17490 <summary>rubber</summary>
17491 </member>
17492 <member name="F:OpenMetaverse.Sounds.OBJECT_COLLISION_PLASTIC">
17493 <summary>plastic</summary>
17494 </member>
17495 <member name="F:OpenMetaverse.Sounds.OBJECT_COLLISION_FLESH">
17496 <summary>flesh</summary>
17497 </member>
17498 <member name="F:OpenMetaverse.Sounds.OBJECT_COLLISION_WOOD_SPLINTERING">
17499 <summary>wood splintering?</summary>
17500 </member>
17501 <member name="F:OpenMetaverse.Sounds.OBJECT_COLLISION_GLASS_BREAK">
17502 <summary>glass break</summary>
17503 </member>
17504 <member name="F:OpenMetaverse.Sounds.OBJECT_COLLISION_METAL_CLUNK">
17505 <summary>metal clunk</summary>
17506 </member>
17507 <member name="F:OpenMetaverse.Sounds.OBJECT_CREATE_WHOOSH">
17508 <summary>whoosh</summary>
17509 </member>
17510 <member name="F:OpenMetaverse.Sounds.OBJECT_DELETE_SHAKE">
17511 <summary>shake</summary>
17512 </member>
17513 <member name="F:OpenMetaverse.Sounds.OBJECT_REZ">
17514 <summary>
17515 </summary>
17516 </member>
17517 <member name="F:OpenMetaverse.Sounds.PIE_MENU_APPEAR_DING">
17518 <summary>ding</summary>
17519 </member>
17520 <member name="F:OpenMetaverse.Sounds.PIE_MENU_SLICE_HIGHLIGHT">
17521 <summary>
17522 </summary>
17523 </member>
17524 <member name="F:OpenMetaverse.Sounds.PIE_MENU_SLICE_HIGHLIGHT1">
17525 <summary>
17526 </summary>
17527 </member>
17528 <member name="F:OpenMetaverse.Sounds.PIE_MENU_SLICE_HIGHLIGHT2">
17529 <summary>
17530 </summary>
17531 </member>
17532 <member name="F:OpenMetaverse.Sounds.PIE_MENU_SLICE_HIGHLIGHT3">
17533 <summary>
17534 </summary>
17535 </member>
17536 <member name="F:OpenMetaverse.Sounds.PIE_MENU_SLICE_HIGHLIGHT4">
17537 <summary>
17538 </summary>
17539 </member>
17540 <member name="F:OpenMetaverse.Sounds.PIE_MENU_SLICE_HIGHLIGHT5">
17541 <summary>
17542 </summary>
17543 </member>
17544 <member name="F:OpenMetaverse.Sounds.PIE_MENU_SLICE_HIGHLIGHT6">
17545 <summary>
17546 </summary>
17547 </member>
17548 <member name="F:OpenMetaverse.Sounds.PIE_MENU_SLICE_HIGHLIGHT7">
17549 <summary>
17550 </summary>
17551 </member>
17552 <member name="F:OpenMetaverse.Sounds.SNAPSHOT">
17553 <summary>
17554 </summary>
17555 </member>
17556 <member name="F:OpenMetaverse.Sounds.TELEPORT_TEXTURE_APPLY">
17557 <summary>
17558 </summary>
17559 </member>
17560 <member name="F:OpenMetaverse.Sounds.THUNDER">
17561 <summary>
17562 </summary>
17563 </member>
17564 <member name="F:OpenMetaverse.Sounds.WINDOW_CLOSE">
17565 <summary>
17566 </summary>
17567 </member>
17568 <member name="F:OpenMetaverse.Sounds.WINDOW_OPEN">
17569 <summary>
17570 </summary>
17571 </member>
17572 <member name="F:OpenMetaverse.Sounds.ZIPPER">
17573 <summary>
17574 </summary>
17575 </member>
17576 <member name="M:OpenMetaverse.Sounds.ToDictionary">
17577 <summary>
17578 A dictionary containing all pre-defined sounds
17579 </summary>
17580 <returns>A dictionary containing the pre-defined sounds,
17581 where the key is the sounds ID, and the value is a string
17582 containing a name to identify the purpose of the sound</returns>
17583 </member>
17584 <member name="F:OpenMetaverse.TerrainPatch.X">
17585 <summary>X position of this patch</summary>
17586 </member>
17587 <member name="F:OpenMetaverse.TerrainPatch.Y">
17588 <summary>Y position of this patch</summary>
17589 </member>
17590 <member name="F:OpenMetaverse.TerrainPatch.Data">
17591 <summary>A 16x16 array of floats holding decompressed layer data</summary>
17592 </member>
17593 <member name="M:OpenMetaverse.TerrainCompressor.CreateLandPacket(System.Single[],System.Int32[])">
17594 <summary>
17595 Creates a LayerData packet for compressed land data given a full
17596 simulator heightmap and an array of indices of patches to compress
17597 </summary>
17598 <param name="heightmap">A 256 * 256 array of floating point values
17599 specifying the height at each meter in the simulator</param>
17600 <param name="patches">Array of indexes in the 16x16 grid of patches
17601 for this simulator. For example if 1 and 17 are specified, patches
17602 x=1,y=0 and x=1,y=1 are sent</param>
17603 <returns>
17604 </returns>
17605 </member>
17606 <member name="M:OpenMetaverse.TerrainCompressor.CreatePatchFromHeightmap(OpenMetaverse.BitPack,System.Single[],System.Int32,System.Int32)">
17607 <summary>
17608 Add a patch of terrain to a BitPacker
17609 </summary>
17610 <param name="output">BitPacker to write the patch to</param>
17611 <param name="heightmap">Heightmap of the simulator, must be a 256 *
17612 256 float array</param>
17613 <param name="x">X offset of the patch to create, valid values are
17614 from 0 to 15</param>
17615 <param name="y">Y offset of the patch to create, valid values are
17616 from 0 to 15</param>
17617 </member>
17618 <member name="M:OpenMetaverse.TerrainManager.#ctor(OpenMetaverse.GridClient)">
17619 <summary>
17620 Default constructor
17621 </summary>
17622 <param name="client">
17623 </param>
17624 </member>
17625 <member name="F:OpenMetaverse.TerrainManager.m_LandPatchReceivedEvent">
17626 <summary>The event subscribers. null if no subcribers</summary>
17627 </member>
17628 <member name="F:OpenMetaverse.TerrainManager.m_LandPatchReceivedLock">
17629 <summary>Thread sync lock object</summary>
17630 </member>
17631 <member name="E:OpenMetaverse.TerrainManager.LandPatchReceived">
17632 <summary>Raised when the simulator responds sends </summary>
17633 </member>
17634 <member name="M:OpenMetaverse.TerrainManager.OnLandPatchReceived(OpenMetaverse.LandPatchReceivedEventArgs)">
17635 <summary>Raises the LandPatchReceived event</summary>
17636 <param name="e">A LandPatchReceivedEventArgs object containing the
17637 data returned from the simulator</param>
17638 </member>
17639 <member name="P:OpenMetaverse.LandPatchReceivedEventArgs.Simulator">
17640 <summary>Simulator from that sent tha data</summary>
17641 </member>
17642 <member name="P:OpenMetaverse.LandPatchReceivedEventArgs.X">
17643 <summary>Sim coordinate of the patch</summary>
17644 </member>
17645 <member name="P:OpenMetaverse.LandPatchReceivedEventArgs.Y">
17646 <summary>Sim coordinate of the patch</summary>
17647 </member>
17648 <member name="P:OpenMetaverse.LandPatchReceivedEventArgs.PatchSize">
17649 <summary>Size of tha patch</summary>
17650 </member>
17651 <member name="P:OpenMetaverse.LandPatchReceivedEventArgs.HeightMap">
17652 <summary>Heightmap for the patch</summary>
17653 </member>
17654 <member name="T:OpenMetaverse.TextureRequestState">
17655 <summary>
17656 The current status of a texture request as it moves through the pipeline or final result of a texture request.
17657 </summary>
17658 </member>
17659 <member name="F:OpenMetaverse.TextureRequestState.Pending">
17660 <summary>The initial state given to a request. Requests in this state
17661 are waiting for an available slot in the pipeline</summary>
17662 </member>
17663 <member name="F:OpenMetaverse.TextureRequestState.Started">
17664 <summary>A request that has been added to the pipeline and the request packet
17665 has been sent to the simulator</summary>
17666 </member>
17667 <member name="F:OpenMetaverse.TextureRequestState.Progress">
17668 <summary>A request that has received one or more packets back from the simulator</summary>
17669 </member>
17670 <member name="F:OpenMetaverse.TextureRequestState.Finished">
17671 <summary>A request that has received all packets back from the simulator</summary>
17672 </member>
17673 <member name="F:OpenMetaverse.TextureRequestState.Timeout">
17674 <summary>A request that has taken longer than <seealso cref="F:OpenMetaverse.Settings.PIPELINE_REQUEST_TIMEOUT" />
17675 to download OR the initial packet containing the packet information was never received</summary>
17676 </member>
17677 <member name="F:OpenMetaverse.TextureRequestState.Aborted">
17678 <summary>The texture request was aborted by request of the agent</summary>
17679 </member>
17680 <member name="F:OpenMetaverse.TextureRequestState.NotFound">
17681 <summary>The simulator replied to the request that it was not able to find the requested texture</summary>
17682 </member>
17683 <member name="T:OpenMetaverse.TexturePipeline">
17684 <summary>
17685 Texture request download handler, allows a configurable number of download slots which manage multiple
17686 concurrent texture downloads from the <seealso cref="T:OpenMetaverse.Simulator" /></summary>
17687 <remarks>This class makes full use of the internal <seealso cref="!:TextureCache" />
17688 system for full texture downloads.</remarks>
17689 </member>
17690 <member name="M:OpenMetaverse.TexturePipeline.#ctor(OpenMetaverse.GridClient)">
17691 <summary>
17692 Default constructor, Instantiates a new copy of the TexturePipeline class
17693 </summary>
17694 <param name="client">Reference to the instantiated <see cref="T:OpenMetaverse.GridClient" /> object</param>
17695 </member>
17696 <member name="T:OpenMetaverse.TexturePipeline.TaskInfo">
17697 <summary>
17698 A request task containing information and status of a request as it is processed through the <see cref="T:OpenMetaverse.TexturePipeline" /></summary>
17699 </member>
17700 <member name="F:OpenMetaverse.TexturePipeline.TaskInfo.State">
17701 <summary>The current <seealso cref="T:OpenMetaverse.TextureRequestState" /> which identifies the current status of the request</summary>
17702 </member>
17703 <member name="F:OpenMetaverse.TexturePipeline.TaskInfo.RequestID">
17704 <summary>The Unique Request ID, This is also the Asset ID of the texture being requested</summary>
17705 </member>
17706 <member name="F:OpenMetaverse.TexturePipeline.TaskInfo.RequestSlot">
17707 <summary>The slot this request is occupying in the threadpoolSlots array</summary>
17708 </member>
17709 <member name="F:OpenMetaverse.TexturePipeline.TaskInfo.Type">
17710 <summary>The ImageType of the request.</summary>
17711 </member>
17712 <member name="F:OpenMetaverse.TexturePipeline.TaskInfo.Callbacks">
17713 <summary>The callback to fire when the request is complete, will include
17714 the <seealso cref="T:OpenMetaverse.TextureRequestState" /> and the <see cref="T:OpenMetaverse.Assets.AssetTexture" />
17715 object containing the result data</summary>
17716 </member>
17717 <member name="F:OpenMetaverse.TexturePipeline.TaskInfo.ReportProgress">
17718 <summary>If true, indicates the callback will be fired whenever new data is returned from the simulator.
17719 This is used to progressively render textures as portions of the texture are received.</summary>
17720 </member>
17721 <member name="F:OpenMetaverse.TexturePipeline.TaskInfo.Transfer">
17722 <summary>An object that maintains the data of an request thats in-process.</summary>
17723 </member>
17724 <member name="F:OpenMetaverse.TexturePipeline._Transfers">
17725 <summary>A dictionary containing all pending and in-process transfer requests where the Key is both the RequestID
17726 and also the Asset Texture ID, and the value is an object containing the current state of the request and also
17727 the asset data as it is being re-assembled</summary>
17728 </member>
17729 <member name="F:OpenMetaverse.TexturePipeline._Client">
17730 <summary>Holds the reference to the <see cref="T:OpenMetaverse.GridClient" /> client object</summary>
17731 </member>
17732 <member name="F:OpenMetaverse.TexturePipeline.maxTextureRequests">
17733 <summary>Maximum concurrent texture requests allowed at a time</summary>
17734 </member>
17735 <member name="F:OpenMetaverse.TexturePipeline.resetEvents">
17736 <summary>An array of <see cref="T:System.Threading.AutoResetEvent" /> objects used to manage worker request threads</summary>
17737 </member>
17738 <member name="F:OpenMetaverse.TexturePipeline.threadpoolSlots">
17739 <summary>An array of worker slots which shows the availablity status of the slot</summary>
17740 </member>
17741 <member name="F:OpenMetaverse.TexturePipeline.downloadMaster">
17742 <summary>The primary thread which manages the requests.</summary>
17743 </member>
17744 <member name="F:OpenMetaverse.TexturePipeline._Running">
17745 <summary>true if the TexturePipeline is currently running</summary>
17746 </member>
17747 <member name="F:OpenMetaverse.TexturePipeline.lockerObject">
17748 <summary>A synchronization object used by the primary thread</summary>
17749 </member>
17750 <member name="F:OpenMetaverse.TexturePipeline.RefreshDownloadsTimer">
17751 <summary>A refresh timer used to increase the priority of stalled requests</summary>
17752 </member>
17753 <member name="P:OpenMetaverse.TexturePipeline.TransferCount">
17754 <summary>Current number of pending and in-process transfers</summary>
17755 </member>
17756 <member name="M:OpenMetaverse.TexturePipeline.Startup">
17757 <summary>
17758 Initialize callbacks required for the TexturePipeline to operate
17759 </summary>
17760 </member>
17761 <member name="M:OpenMetaverse.TexturePipeline.Shutdown">
17762 <summary>
17763 Shutdown the TexturePipeline and cleanup any callbacks or transfers
17764 </summary>
17765 </member>
17766 <member name="M:OpenMetaverse.TexturePipeline.RequestTexture(OpenMetaverse.UUID,OpenMetaverse.ImageType,System.Single,System.Int32,System.UInt32,OpenMetaverse.TextureDownloadCallback,System.Boolean)">
17767 <summary>
17768 Request a texture asset from the simulator using the <see cref="T:OpenMetaverse.TexturePipeline" /> system to
17769 manage the requests and re-assemble the image from the packets received from the simulator
17770 </summary>
17771 <param name="textureID">The <see cref="T:OpenMetaverse.UUID" /> of the texture asset to download</param>
17772 <param name="imageType">The <see cref="T:OpenMetaverse.ImageType" /> of the texture asset.
17773 Use <see cref="F:OpenMetaverse.ImageType.Normal" /> for most textures, or <see cref="F:OpenMetaverse.ImageType.Baked" /> for baked layer texture assets</param>
17774 <param name="priority">A float indicating the requested priority for the transfer. Higher priority values tell the simulator
17775 to prioritize the request before lower valued requests. An image already being transferred using the <see cref="T:OpenMetaverse.TexturePipeline" /> can have
17776 its priority changed by resending the request with the new priority value</param>
17777 <param name="discardLevel">Number of quality layers to discard.
17778 This controls the end marker of the data sent</param>
17779 <param name="packetStart">The packet number to begin the request at. A value of 0 begins the request
17780 from the start of the asset texture</param>
17781 <param name="callback">The <see cref="T:OpenMetaverse.TextureDownloadCallback" /> callback to fire when the image is retrieved. The callback
17782 will contain the result of the request and the texture asset data</param>
17783 <param name="progressive">If true, the callback will be fired for each chunk of the downloaded image.
17784 The callback asset parameter will contain all previously received chunks of the texture asset starting
17785 from the beginning of the request</param>
17786 </member>
17787 <member name="M:OpenMetaverse.TexturePipeline.RequestImage(OpenMetaverse.UUID,OpenMetaverse.ImageType,System.Single,System.Int32,System.UInt32)">
17788 <summary>
17789 Sends the actual request packet to the simulator
17790 </summary>
17791 <param name="imageID">The image to download</param>
17792 <param name="type">Type of the image to download, either a baked
17793 avatar texture or a normal texture</param>
17794 <param name="priority">Priority level of the download. Default is
17795 <c>1,013,000.0f</c></param>
17796 <param name="discardLevel">Number of quality layers to discard.
17797 This controls the end marker of the data sent</param>
17798 <param name="packetNum">Packet number to start the download at.
17799 This controls the start marker of the data sent</param>
17800 <remarks>Sending a priority of 0 and a discardlevel of -1 aborts
17801 download</remarks>
17802 </member>
17803 <member name="M:OpenMetaverse.TexturePipeline.AbortTextureRequest(OpenMetaverse.UUID)">
17804 <summary>
17805 Cancel a pending or in process texture request
17806 </summary>
17807 <param name="textureID">The texture assets unique ID</param>
17808 </member>
17809 <member name="M:OpenMetaverse.TexturePipeline.DownloadThread">
17810 <summary>
17811 Master Download Thread, Queues up downloads in the threadpool
17812 </summary>
17813 </member>
17814 <member name="M:OpenMetaverse.TexturePipeline.TextureRequestDoWork(System.Object)">
17815 <summary>
17816 The worker thread that sends the request and handles timeouts
17817 </summary>
17818 <param name="threadContext">A <see cref="T:OpenMetaverse.TexturePipeline.TaskInfo" /> object containing the request details</param>
17819 </member>
17820 <member name="M:OpenMetaverse.TexturePipeline.ImageNotInDatabaseHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
17821 <summary>
17822 Handle responses from the simulator that tell us a texture we have requested is unable to be located
17823 or no longer exists. This will remove the request from the pipeline and free up a slot if one is in use
17824 </summary>
17825 <param name="sender">The sender</param>
17826 <param name="e">The EventArgs object containing the packet data</param>
17827 </member>
17828 <member name="M:OpenMetaverse.TexturePipeline.ImagePacketHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
17829 <summary>
17830 Handles the remaining Image data that did not fit in the initial ImageData packet
17831 </summary>
17832 <param name="sender">The sender</param>
17833 <param name="e">The EventArgs object containing the packet data</param>
17834 </member>
17835 <member name="M:OpenMetaverse.TexturePipeline.ImageDataHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
17836 <summary>
17837 Handle the initial ImageDataPacket sent from the simulator
17838 </summary>
17839 <param name="sender">The sender</param>
17840 <param name="e">The EventArgs object containing the packet data</param>
17841 </member>
17842 <member name="T:ThreadUtil">
17843 <summary>
17844 </summary>
17845 </member>
17846 <member name="T:ThreadUtil.DelegateWrapper">
17847 <summary>
17848 Delegate to wrap another delegate and its arguments
17849 </summary>
17850 <param name="d">
17851 </param>
17852 <param name="args">
17853 </param>
17854 </member>
17855 <member name="F:ThreadUtil.wrapperInstance">
17856 <summary>
17857 An instance of DelegateWrapper which calls InvokeWrappedDelegate,
17858 which in turn calls the DynamicInvoke method of the wrapped
17859 delegate
17860 </summary>
17861 </member>
17862 <member name="F:ThreadUtil.callback">
17863 <summary>
17864 Callback used to call EndInvoke on the asynchronously
17865 invoked DelegateWrapper
17866 </summary>
17867 </member>
17868 <member name="M:ThreadUtil.FireAndForget(System.Delegate,System.Object[])">
17869 <summary>
17870 Executes the specified delegate with the specified arguments
17871 asynchronously on a thread pool thread
17872 </summary>
17873 <param name="d">
17874 </param>
17875 <param name="args">
17876 </param>
17877 </member>
17878 <member name="M:ThreadUtil.InvokeWrappedDelegate(System.Delegate,System.Object[])">
17879 <summary>
17880 Invokes the wrapped delegate synchronously
17881 </summary>
17882 <param name="d">
17883 </param>
17884 <param name="args">
17885 </param>
17886 </member>
17887 <member name="M:ThreadUtil.EndWrapperInvoke(System.IAsyncResult)">
17888 <summary>
17889 Calls EndInvoke on the wrapper and Close on the resulting WaitHandle
17890 to prevent resource leaks
17891 </summary>
17892 <param name="ar">
17893 </param>
17894 </member>
17895 <member name="T:OpenMetaverse.UDPBase">
17896 <summary>
17897 </summary>
17898 </member>
17899 <member name="M:OpenMetaverse.UDPBase.#ctor(System.Int32)">
17900 <summary>
17901 Initialize the UDP packet handler in server mode
17902 </summary>
17903 <param name="port">Port to listening for incoming UDP packets on</param>
17904 </member>
17905 <member name="M:OpenMetaverse.UDPBase.#ctor(System.Net.IPEndPoint)">
17906 <summary>
17907 Initialize the UDP packet handler in client mode
17908 </summary>
17909 <param name="endPoint">Remote UDP server to connect to</param>
17910 </member>
17911 <member name="P:OpenMetaverse.UDPBase.IsRunning">
17912 <summary>
17913 </summary>
17914 </member>
17915 <member name="M:OpenMetaverse.UDPBase.Start">
17916 <summary>
17917 </summary>
17918 </member>
17919 <member name="M:OpenMetaverse.UDPBase.Stop">
16903 <summary> 17920 <summary>
16904 Write a particular entry
16905 </summary> 17921 </summary>
16906 <param name="filePath"></param>
16907 <param name="data"></param>
16908 <param name="fileType"></param>
16909 </member> 17922 </member>
16910 <member name="T:OpenMetaverse.PacketFrequency"> 17923 <member name="T:OpenMetaverse.PacketFrequency">
16911 <summary> 17924 <summary>
16912
16913 </summary> 17925 </summary>
16914 </member> 17926 </member>
16915 <member name="F:OpenMetaverse.PacketFrequency.Low"> 17927 <member name="F:OpenMetaverse.PacketFrequency.Low">
16916 <summary></summary> 17928 <summary>
17929 </summary>
16917 </member> 17930 </member>
16918 <member name="F:OpenMetaverse.PacketFrequency.Medium"> 17931 <member name="F:OpenMetaverse.PacketFrequency.Medium">
16919 <summary></summary> 17932 <summary>
17933 </summary>
16920 </member> 17934 </member>
16921 <member name="F:OpenMetaverse.PacketFrequency.High"> 17935 <member name="F:OpenMetaverse.PacketFrequency.High">
16922 <summary></summary> 17936 <summary>
17937 </summary>
16923 </member> 17938 </member>
16924 <member name="T:OpenMetaverse.Packets.MalformedDataException"> 17939 <member name="T:OpenMetaverse.Packets.MalformedDataException">
16925 <summary> 17940 <summary>
@@ -16954,20 +17969,25 @@
16954 </member> 17969 </member>
16955 <member name="M:OpenMetaverse.Packets.Header.BuildHeader(System.Byte[],System.Int32@,System.Int32@)"> 17970 <member name="M:OpenMetaverse.Packets.Header.BuildHeader(System.Byte[],System.Int32@,System.Int32@)">
16956 <summary> 17971 <summary>
16957
16958 </summary> 17972 </summary>
16959 <param name="bytes"></param> 17973 <param name="bytes">
16960 <param name="pos"></param> 17974 </param>
16961 <param name="packetEnd"></param> 17975 <param name="pos">
16962 <returns></returns> 17976 </param>
17977 <param name="packetEnd">
17978 </param>
17979 <returns>
17980 </returns>
16963 </member> 17981 </member>
16964 <member name="M:OpenMetaverse.Packets.Header.CreateAckList(OpenMetaverse.Packets.Header@,System.Byte[],System.Int32@)"> 17982 <member name="M:OpenMetaverse.Packets.Header.CreateAckList(OpenMetaverse.Packets.Header@,System.Byte[],System.Int32@)">
16965 <summary> 17983 <summary>
16966
16967 </summary> 17984 </summary>
16968 <param name="header"></param> 17985 <param name="header">
16969 <param name="bytes"></param> 17986 </param>
16970 <param name="packetEnd"></param> 17987 <param name="bytes">
17988 </param>
17989 <param name="packetEnd">
17990 </param>
16971 </member> 17991 </member>
16972 <member name="T:OpenMetaverse.Packets.PacketBlock"> 17992 <member name="T:OpenMetaverse.Packets.PacketBlock">
16973 <summary> 17993 <summary>
@@ -16975,6 +17995,9 @@
16975 each block containing one or more fields 17995 each block containing one or more fields
16976 </summary> 17996 </summary>
16977 </member> 17997 </member>
17998 <member name="P:OpenMetaverse.Packets.PacketBlock.Length">
17999 <summary>Current length of the data in this packet</summary>
18000 </member>
16978 <member name="M:OpenMetaverse.Packets.PacketBlock.FromBytes(System.Byte[],System.Int32@)"> 18001 <member name="M:OpenMetaverse.Packets.PacketBlock.FromBytes(System.Byte[],System.Int32@)">
16979 <summary> 18002 <summary>
16980 Create a block from a byte array 18003 Create a block from a byte array
@@ -16993,8076 +18016,8407 @@
16993 This will point to the position directly after the end of the 18016 This will point to the position directly after the end of the
16994 serialized block when the call returns</param> 18017 serialized block when the call returns</param>
16995 </member> 18018 </member>
16996 <member name="P:OpenMetaverse.Packets.PacketBlock.Length">
16997 <summary>Current length of the data in this packet</summary>
16998 </member>
16999 <member name="F:OpenMetaverse.Packets.PacketType.Default"> 18019 <member name="F:OpenMetaverse.Packets.PacketType.Default">
17000 <summary>A generic value, not an actual packet type</summary> 18020 <summary>A generic value, not an actual packet type</summary>
17001 </member> 18021 </member>
17002 <member name="T:OpenMetaverse.Packets.TestMessagePacket"> 18022 <member name="T:OpenMetaverse.Packets.TestMessagePacket">
17003 <exclude/> 18023 <exclude />
17004 </member> 18024 </member>
17005 <member name="T:OpenMetaverse.Packets.TestMessagePacket.TestBlock1Block"> 18025 <member name="T:OpenMetaverse.Packets.TestMessagePacket.TestBlock1Block">
17006 <exclude/> 18026 <exclude />
17007 </member> 18027 </member>
17008 <member name="T:OpenMetaverse.Packets.TestMessagePacket.NeighborBlockBlock"> 18028 <member name="T:OpenMetaverse.Packets.TestMessagePacket.NeighborBlockBlock">
17009 <exclude/> 18029 <exclude />
17010 </member> 18030 </member>
17011 <member name="T:OpenMetaverse.Packets.UseCircuitCodePacket"> 18031 <member name="T:OpenMetaverse.Packets.UseCircuitCodePacket">
17012 <exclude/> 18032 <exclude />
17013 </member> 18033 </member>
17014 <member name="T:OpenMetaverse.Packets.UseCircuitCodePacket.CircuitCodeBlock"> 18034 <member name="T:OpenMetaverse.Packets.UseCircuitCodePacket.CircuitCodeBlock">
17015 <exclude/> 18035 <exclude />
17016 </member> 18036 </member>
17017 <member name="T:OpenMetaverse.Packets.TelehubInfoPacket"> 18037 <member name="T:OpenMetaverse.Packets.TelehubInfoPacket">
17018 <exclude/> 18038 <exclude />
17019 </member> 18039 </member>
17020 <member name="T:OpenMetaverse.Packets.TelehubInfoPacket.TelehubBlockBlock"> 18040 <member name="T:OpenMetaverse.Packets.TelehubInfoPacket.TelehubBlockBlock">
17021 <exclude/> 18041 <exclude />
17022 </member> 18042 </member>
17023 <member name="T:OpenMetaverse.Packets.TelehubInfoPacket.SpawnPointBlockBlock"> 18043 <member name="T:OpenMetaverse.Packets.TelehubInfoPacket.SpawnPointBlockBlock">
17024 <exclude/> 18044 <exclude />
17025 </member> 18045 </member>
17026 <member name="T:OpenMetaverse.Packets.EconomyDataRequestPacket"> 18046 <member name="T:OpenMetaverse.Packets.EconomyDataRequestPacket">
17027 <exclude/> 18047 <exclude />
17028 </member> 18048 </member>
17029 <member name="T:OpenMetaverse.Packets.EconomyDataPacket"> 18049 <member name="T:OpenMetaverse.Packets.EconomyDataPacket">
17030 <exclude/> 18050 <exclude />
17031 </member> 18051 </member>
17032 <member name="T:OpenMetaverse.Packets.EconomyDataPacket.InfoBlock"> 18052 <member name="T:OpenMetaverse.Packets.EconomyDataPacket.InfoBlock">
17033 <exclude/> 18053 <exclude />
17034 </member> 18054 </member>
17035 <member name="T:OpenMetaverse.Packets.AvatarPickerRequestPacket"> 18055 <member name="T:OpenMetaverse.Packets.AvatarPickerRequestPacket">
17036 <exclude/> 18056 <exclude />
17037 </member> 18057 </member>
17038 <member name="T:OpenMetaverse.Packets.AvatarPickerRequestPacket.AgentDataBlock"> 18058 <member name="T:OpenMetaverse.Packets.AvatarPickerRequestPacket.AgentDataBlock">
17039 <exclude/> 18059 <exclude />
17040 </member> 18060 </member>
17041 <member name="T:OpenMetaverse.Packets.AvatarPickerRequestPacket.DataBlock"> 18061 <member name="T:OpenMetaverse.Packets.AvatarPickerRequestPacket.DataBlock">
17042 <exclude/> 18062 <exclude />
17043 </member> 18063 </member>
17044 <member name="T:OpenMetaverse.Packets.AvatarPickerReplyPacket"> 18064 <member name="T:OpenMetaverse.Packets.AvatarPickerReplyPacket">
17045 <exclude/> 18065 <exclude />
17046 </member> 18066 </member>
17047 <member name="T:OpenMetaverse.Packets.AvatarPickerReplyPacket.AgentDataBlock"> 18067 <member name="T:OpenMetaverse.Packets.AvatarPickerReplyPacket.AgentDataBlock">
17048 <exclude/> 18068 <exclude />
17049 </member> 18069 </member>
17050 <member name="T:OpenMetaverse.Packets.AvatarPickerReplyPacket.DataBlock"> 18070 <member name="T:OpenMetaverse.Packets.AvatarPickerReplyPacket.DataBlock">
17051 <exclude/> 18071 <exclude />
17052 </member> 18072 </member>
17053 <member name="T:OpenMetaverse.Packets.PlacesQueryPacket"> 18073 <member name="T:OpenMetaverse.Packets.PlacesQueryPacket">
17054 <exclude/> 18074 <exclude />
17055 </member> 18075 </member>
17056 <member name="T:OpenMetaverse.Packets.PlacesQueryPacket.AgentDataBlock"> 18076 <member name="T:OpenMetaverse.Packets.PlacesQueryPacket.AgentDataBlock">
17057 <exclude/> 18077 <exclude />
17058 </member> 18078 </member>
17059 <member name="T:OpenMetaverse.Packets.PlacesQueryPacket.TransactionDataBlock"> 18079 <member name="T:OpenMetaverse.Packets.PlacesQueryPacket.TransactionDataBlock">
17060 <exclude/> 18080 <exclude />
17061 </member> 18081 </member>
17062 <member name="T:OpenMetaverse.Packets.PlacesQueryPacket.QueryDataBlock"> 18082 <member name="T:OpenMetaverse.Packets.PlacesQueryPacket.QueryDataBlock">
17063 <exclude/> 18083 <exclude />
17064 </member> 18084 </member>
17065 <member name="T:OpenMetaverse.Packets.PlacesReplyPacket"> 18085 <member name="T:OpenMetaverse.Packets.PlacesReplyPacket">
17066 <exclude/> 18086 <exclude />
17067 </member> 18087 </member>
17068 <member name="T:OpenMetaverse.Packets.PlacesReplyPacket.AgentDataBlock"> 18088 <member name="T:OpenMetaverse.Packets.PlacesReplyPacket.AgentDataBlock">
17069 <exclude/> 18089 <exclude />
17070 </member> 18090 </member>
17071 <member name="T:OpenMetaverse.Packets.PlacesReplyPacket.TransactionDataBlock"> 18091 <member name="T:OpenMetaverse.Packets.PlacesReplyPacket.TransactionDataBlock">
17072 <exclude/> 18092 <exclude />
17073 </member> 18093 </member>
17074 <member name="T:OpenMetaverse.Packets.PlacesReplyPacket.QueryDataBlock"> 18094 <member name="T:OpenMetaverse.Packets.PlacesReplyPacket.QueryDataBlock">
17075 <exclude/> 18095 <exclude />
17076 </member> 18096 </member>
17077 <member name="T:OpenMetaverse.Packets.DirFindQueryPacket"> 18097 <member name="T:OpenMetaverse.Packets.DirFindQueryPacket">
17078 <exclude/> 18098 <exclude />
17079 </member> 18099 </member>
17080 <member name="T:OpenMetaverse.Packets.DirFindQueryPacket.AgentDataBlock"> 18100 <member name="T:OpenMetaverse.Packets.DirFindQueryPacket.AgentDataBlock">
17081 <exclude/> 18101 <exclude />
17082 </member> 18102 </member>
17083 <member name="T:OpenMetaverse.Packets.DirFindQueryPacket.QueryDataBlock"> 18103 <member name="T:OpenMetaverse.Packets.DirFindQueryPacket.QueryDataBlock">
17084 <exclude/> 18104 <exclude />
17085 </member> 18105 </member>
17086 <member name="T:OpenMetaverse.Packets.DirPlacesQueryPacket"> 18106 <member name="T:OpenMetaverse.Packets.DirPlacesQueryPacket">
17087 <exclude/> 18107 <exclude />
17088 </member> 18108 </member>
17089 <member name="T:OpenMetaverse.Packets.DirPlacesQueryPacket.AgentDataBlock"> 18109 <member name="T:OpenMetaverse.Packets.DirPlacesQueryPacket.AgentDataBlock">
17090 <exclude/> 18110 <exclude />
17091 </member> 18111 </member>
17092 <member name="T:OpenMetaverse.Packets.DirPlacesQueryPacket.QueryDataBlock"> 18112 <member name="T:OpenMetaverse.Packets.DirPlacesQueryPacket.QueryDataBlock">
17093 <exclude/> 18113 <exclude />
17094 </member> 18114 </member>
17095 <member name="T:OpenMetaverse.Packets.DirPlacesReplyPacket"> 18115 <member name="T:OpenMetaverse.Packets.DirPlacesReplyPacket">
17096 <exclude/> 18116 <exclude />
17097 </member> 18117 </member>
17098 <member name="T:OpenMetaverse.Packets.DirPlacesReplyPacket.AgentDataBlock"> 18118 <member name="T:OpenMetaverse.Packets.DirPlacesReplyPacket.AgentDataBlock">
17099 <exclude/> 18119 <exclude />
17100 </member> 18120 </member>
17101 <member name="T:OpenMetaverse.Packets.DirPlacesReplyPacket.QueryDataBlock"> 18121 <member name="T:OpenMetaverse.Packets.DirPlacesReplyPacket.QueryDataBlock">
17102 <exclude/> 18122 <exclude />
17103 </member> 18123 </member>
17104 <member name="T:OpenMetaverse.Packets.DirPlacesReplyPacket.QueryRepliesBlock"> 18124 <member name="T:OpenMetaverse.Packets.DirPlacesReplyPacket.QueryRepliesBlock">
17105 <exclude/> 18125 <exclude />
17106 </member> 18126 </member>
17107 <member name="T:OpenMetaverse.Packets.DirPlacesReplyPacket.StatusDataBlock"> 18127 <member name="T:OpenMetaverse.Packets.DirPlacesReplyPacket.StatusDataBlock">
17108 <exclude/> 18128 <exclude />
17109 </member> 18129 </member>
17110 <member name="T:OpenMetaverse.Packets.DirPeopleReplyPacket"> 18130 <member name="T:OpenMetaverse.Packets.DirPeopleReplyPacket">
17111 <exclude/> 18131 <exclude />
17112 </member> 18132 </member>
17113 <member name="T:OpenMetaverse.Packets.DirPeopleReplyPacket.AgentDataBlock"> 18133 <member name="T:OpenMetaverse.Packets.DirPeopleReplyPacket.AgentDataBlock">
17114 <exclude/> 18134 <exclude />
17115 </member> 18135 </member>
17116 <member name="T:OpenMetaverse.Packets.DirPeopleReplyPacket.QueryDataBlock"> 18136 <member name="T:OpenMetaverse.Packets.DirPeopleReplyPacket.QueryDataBlock">
17117 <exclude/> 18137 <exclude />
17118 </member> 18138 </member>
17119 <member name="T:OpenMetaverse.Packets.DirPeopleReplyPacket.QueryRepliesBlock"> 18139 <member name="T:OpenMetaverse.Packets.DirPeopleReplyPacket.QueryRepliesBlock">
17120 <exclude/> 18140 <exclude />
17121 </member> 18141 </member>
17122 <member name="T:OpenMetaverse.Packets.DirEventsReplyPacket"> 18142 <member name="T:OpenMetaverse.Packets.DirEventsReplyPacket">
17123 <exclude/> 18143 <exclude />
17124 </member> 18144 </member>
17125 <member name="T:OpenMetaverse.Packets.DirEventsReplyPacket.AgentDataBlock"> 18145 <member name="T:OpenMetaverse.Packets.DirEventsReplyPacket.AgentDataBlock">
17126 <exclude/> 18146 <exclude />
17127 </member> 18147 </member>
17128 <member name="T:OpenMetaverse.Packets.DirEventsReplyPacket.QueryDataBlock"> 18148 <member name="T:OpenMetaverse.Packets.DirEventsReplyPacket.QueryDataBlock">
17129 <exclude/> 18149 <exclude />
17130 </member> 18150 </member>
17131 <member name="T:OpenMetaverse.Packets.DirEventsReplyPacket.QueryRepliesBlock"> 18151 <member name="T:OpenMetaverse.Packets.DirEventsReplyPacket.QueryRepliesBlock">
17132 <exclude/> 18152 <exclude />
17133 </member> 18153 </member>
17134 <member name="T:OpenMetaverse.Packets.DirEventsReplyPacket.StatusDataBlock"> 18154 <member name="T:OpenMetaverse.Packets.DirEventsReplyPacket.StatusDataBlock">
17135 <exclude/> 18155 <exclude />
17136 </member> 18156 </member>
17137 <member name="T:OpenMetaverse.Packets.DirGroupsReplyPacket"> 18157 <member name="T:OpenMetaverse.Packets.DirGroupsReplyPacket">
17138 <exclude/> 18158 <exclude />
17139 </member> 18159 </member>
17140 <member name="T:OpenMetaverse.Packets.DirGroupsReplyPacket.AgentDataBlock"> 18160 <member name="T:OpenMetaverse.Packets.DirGroupsReplyPacket.AgentDataBlock">
17141 <exclude/> 18161 <exclude />
17142 </member> 18162 </member>
17143 <member name="T:OpenMetaverse.Packets.DirGroupsReplyPacket.QueryDataBlock"> 18163 <member name="T:OpenMetaverse.Packets.DirGroupsReplyPacket.QueryDataBlock">
17144 <exclude/> 18164 <exclude />
17145 </member> 18165 </member>
17146 <member name="T:OpenMetaverse.Packets.DirGroupsReplyPacket.QueryRepliesBlock"> 18166 <member name="T:OpenMetaverse.Packets.DirGroupsReplyPacket.QueryRepliesBlock">
17147 <exclude/> 18167 <exclude />
17148 </member> 18168 </member>
17149 <member name="T:OpenMetaverse.Packets.DirClassifiedQueryPacket"> 18169 <member name="T:OpenMetaverse.Packets.DirClassifiedQueryPacket">
17150 <exclude/> 18170 <exclude />
17151 </member> 18171 </member>
17152 <member name="T:OpenMetaverse.Packets.DirClassifiedQueryPacket.AgentDataBlock"> 18172 <member name="T:OpenMetaverse.Packets.DirClassifiedQueryPacket.AgentDataBlock">
17153 <exclude/> 18173 <exclude />
17154 </member> 18174 </member>
17155 <member name="T:OpenMetaverse.Packets.DirClassifiedQueryPacket.QueryDataBlock"> 18175 <member name="T:OpenMetaverse.Packets.DirClassifiedQueryPacket.QueryDataBlock">
17156 <exclude/> 18176 <exclude />
17157 </member> 18177 </member>
17158 <member name="T:OpenMetaverse.Packets.DirClassifiedReplyPacket"> 18178 <member name="T:OpenMetaverse.Packets.DirClassifiedReplyPacket">
17159 <exclude/> 18179 <exclude />
17160 </member> 18180 </member>
17161 <member name="T:OpenMetaverse.Packets.DirClassifiedReplyPacket.AgentDataBlock"> 18181 <member name="T:OpenMetaverse.Packets.DirClassifiedReplyPacket.AgentDataBlock">
17162 <exclude/> 18182 <exclude />
17163 </member> 18183 </member>
17164 <member name="T:OpenMetaverse.Packets.DirClassifiedReplyPacket.QueryDataBlock"> 18184 <member name="T:OpenMetaverse.Packets.DirClassifiedReplyPacket.QueryDataBlock">
17165 <exclude/> 18185 <exclude />
17166 </member> 18186 </member>
17167 <member name="T:OpenMetaverse.Packets.DirClassifiedReplyPacket.QueryRepliesBlock"> 18187 <member name="T:OpenMetaverse.Packets.DirClassifiedReplyPacket.QueryRepliesBlock">
17168 <exclude/> 18188 <exclude />
17169 </member> 18189 </member>
17170 <member name="T:OpenMetaverse.Packets.DirClassifiedReplyPacket.StatusDataBlock"> 18190 <member name="T:OpenMetaverse.Packets.DirClassifiedReplyPacket.StatusDataBlock">
17171 <exclude/> 18191 <exclude />
17172 </member> 18192 </member>
17173 <member name="T:OpenMetaverse.Packets.AvatarClassifiedReplyPacket"> 18193 <member name="T:OpenMetaverse.Packets.AvatarClassifiedReplyPacket">
17174 <exclude/> 18194 <exclude />
17175 </member> 18195 </member>
17176 <member name="T:OpenMetaverse.Packets.AvatarClassifiedReplyPacket.AgentDataBlock"> 18196 <member name="T:OpenMetaverse.Packets.AvatarClassifiedReplyPacket.AgentDataBlock">
17177 <exclude/> 18197 <exclude />
17178 </member> 18198 </member>
17179 <member name="T:OpenMetaverse.Packets.AvatarClassifiedReplyPacket.DataBlock"> 18199 <member name="T:OpenMetaverse.Packets.AvatarClassifiedReplyPacket.DataBlock">
17180 <exclude/> 18200 <exclude />
17181 </member> 18201 </member>
17182 <member name="T:OpenMetaverse.Packets.ClassifiedInfoRequestPacket"> 18202 <member name="T:OpenMetaverse.Packets.ClassifiedInfoRequestPacket">
17183 <exclude/> 18203 <exclude />
17184 </member> 18204 </member>
17185 <member name="T:OpenMetaverse.Packets.ClassifiedInfoRequestPacket.AgentDataBlock"> 18205 <member name="T:OpenMetaverse.Packets.ClassifiedInfoRequestPacket.AgentDataBlock">
17186 <exclude/> 18206 <exclude />
17187 </member> 18207 </member>
17188 <member name="T:OpenMetaverse.Packets.ClassifiedInfoRequestPacket.DataBlock"> 18208 <member name="T:OpenMetaverse.Packets.ClassifiedInfoRequestPacket.DataBlock">
17189 <exclude/> 18209 <exclude />
17190 </member> 18210 </member>
17191 <member name="T:OpenMetaverse.Packets.ClassifiedInfoReplyPacket"> 18211 <member name="T:OpenMetaverse.Packets.ClassifiedInfoReplyPacket">
17192 <exclude/> 18212 <exclude />
17193 </member> 18213 </member>
17194 <member name="T:OpenMetaverse.Packets.ClassifiedInfoReplyPacket.AgentDataBlock"> 18214 <member name="T:OpenMetaverse.Packets.ClassifiedInfoReplyPacket.AgentDataBlock">
17195 <exclude/> 18215 <exclude />
17196 </member> 18216 </member>
17197 <member name="T:OpenMetaverse.Packets.ClassifiedInfoReplyPacket.DataBlock"> 18217 <member name="T:OpenMetaverse.Packets.ClassifiedInfoReplyPacket.DataBlock">
17198 <exclude/> 18218 <exclude />
17199 </member> 18219 </member>
17200 <member name="T:OpenMetaverse.Packets.ClassifiedInfoUpdatePacket"> 18220 <member name="T:OpenMetaverse.Packets.ClassifiedInfoUpdatePacket">
17201 <exclude/> 18221 <exclude />
17202 </member> 18222 </member>
17203 <member name="T:OpenMetaverse.Packets.ClassifiedInfoUpdatePacket.AgentDataBlock"> 18223 <member name="T:OpenMetaverse.Packets.ClassifiedInfoUpdatePacket.AgentDataBlock">
17204 <exclude/> 18224 <exclude />
17205 </member> 18225 </member>
17206 <member name="T:OpenMetaverse.Packets.ClassifiedInfoUpdatePacket.DataBlock"> 18226 <member name="T:OpenMetaverse.Packets.ClassifiedInfoUpdatePacket.DataBlock">
17207 <exclude/> 18227 <exclude />
17208 </member> 18228 </member>
17209 <member name="T:OpenMetaverse.Packets.ClassifiedDeletePacket"> 18229 <member name="T:OpenMetaverse.Packets.ClassifiedDeletePacket">
17210 <exclude/> 18230 <exclude />
17211 </member> 18231 </member>
17212 <member name="T:OpenMetaverse.Packets.ClassifiedDeletePacket.AgentDataBlock"> 18232 <member name="T:OpenMetaverse.Packets.ClassifiedDeletePacket.AgentDataBlock">
17213 <exclude/> 18233 <exclude />
17214 </member> 18234 </member>
17215 <member name="T:OpenMetaverse.Packets.ClassifiedDeletePacket.DataBlock"> 18235 <member name="T:OpenMetaverse.Packets.ClassifiedDeletePacket.DataBlock">
17216 <exclude/> 18236 <exclude />
17217 </member> 18237 </member>
17218 <member name="T:OpenMetaverse.Packets.ClassifiedGodDeletePacket"> 18238 <member name="T:OpenMetaverse.Packets.ClassifiedGodDeletePacket">
17219 <exclude/> 18239 <exclude />
17220 </member> 18240 </member>
17221 <member name="T:OpenMetaverse.Packets.ClassifiedGodDeletePacket.AgentDataBlock"> 18241 <member name="T:OpenMetaverse.Packets.ClassifiedGodDeletePacket.AgentDataBlock">
17222 <exclude/> 18242 <exclude />
17223 </member> 18243 </member>
17224 <member name="T:OpenMetaverse.Packets.ClassifiedGodDeletePacket.DataBlock"> 18244 <member name="T:OpenMetaverse.Packets.ClassifiedGodDeletePacket.DataBlock">
17225 <exclude/> 18245 <exclude />
17226 </member> 18246 </member>
17227 <member name="T:OpenMetaverse.Packets.DirLandQueryPacket"> 18247 <member name="T:OpenMetaverse.Packets.DirLandQueryPacket">
17228 <exclude/> 18248 <exclude />
17229 </member> 18249 </member>
17230 <member name="T:OpenMetaverse.Packets.DirLandQueryPacket.AgentDataBlock"> 18250 <member name="T:OpenMetaverse.Packets.DirLandQueryPacket.AgentDataBlock">
17231 <exclude/> 18251 <exclude />
17232 </member> 18252 </member>
17233 <member name="T:OpenMetaverse.Packets.DirLandQueryPacket.QueryDataBlock"> 18253 <member name="T:OpenMetaverse.Packets.DirLandQueryPacket.QueryDataBlock">
17234 <exclude/> 18254 <exclude />
17235 </member> 18255 </member>
17236 <member name="T:OpenMetaverse.Packets.DirLandReplyPacket"> 18256 <member name="T:OpenMetaverse.Packets.DirLandReplyPacket">
17237 <exclude/> 18257 <exclude />
17238 </member> 18258 </member>
17239 <member name="T:OpenMetaverse.Packets.DirLandReplyPacket.AgentDataBlock"> 18259 <member name="T:OpenMetaverse.Packets.DirLandReplyPacket.AgentDataBlock">
17240 <exclude/> 18260 <exclude />
17241 </member> 18261 </member>
17242 <member name="T:OpenMetaverse.Packets.DirLandReplyPacket.QueryDataBlock"> 18262 <member name="T:OpenMetaverse.Packets.DirLandReplyPacket.QueryDataBlock">
17243 <exclude/> 18263 <exclude />
17244 </member> 18264 </member>
17245 <member name="T:OpenMetaverse.Packets.DirLandReplyPacket.QueryRepliesBlock"> 18265 <member name="T:OpenMetaverse.Packets.DirLandReplyPacket.QueryRepliesBlock">
17246 <exclude/> 18266 <exclude />
17247 </member> 18267 </member>
17248 <member name="T:OpenMetaverse.Packets.DirPopularQueryPacket"> 18268 <member name="T:OpenMetaverse.Packets.DirPopularQueryPacket">
17249 <exclude/> 18269 <exclude />
17250 </member> 18270 </member>
17251 <member name="T:OpenMetaverse.Packets.DirPopularQueryPacket.AgentDataBlock"> 18271 <member name="T:OpenMetaverse.Packets.DirPopularQueryPacket.AgentDataBlock">
17252 <exclude/> 18272 <exclude />
17253 </member> 18273 </member>
17254 <member name="T:OpenMetaverse.Packets.DirPopularQueryPacket.QueryDataBlock"> 18274 <member name="T:OpenMetaverse.Packets.DirPopularQueryPacket.QueryDataBlock">
17255 <exclude/> 18275 <exclude />
17256 </member> 18276 </member>
17257 <member name="T:OpenMetaverse.Packets.DirPopularReplyPacket"> 18277 <member name="T:OpenMetaverse.Packets.DirPopularReplyPacket">
17258 <exclude/> 18278 <exclude />
17259 </member> 18279 </member>
17260 <member name="T:OpenMetaverse.Packets.DirPopularReplyPacket.AgentDataBlock"> 18280 <member name="T:OpenMetaverse.Packets.DirPopularReplyPacket.AgentDataBlock">
17261 <exclude/> 18281 <exclude />
17262 </member> 18282 </member>
17263 <member name="T:OpenMetaverse.Packets.DirPopularReplyPacket.QueryDataBlock"> 18283 <member name="T:OpenMetaverse.Packets.DirPopularReplyPacket.QueryDataBlock">
17264 <exclude/> 18284 <exclude />
17265 </member> 18285 </member>
17266 <member name="T:OpenMetaverse.Packets.DirPopularReplyPacket.QueryRepliesBlock"> 18286 <member name="T:OpenMetaverse.Packets.DirPopularReplyPacket.QueryRepliesBlock">
17267 <exclude/> 18287 <exclude />
17268 </member> 18288 </member>
17269 <member name="T:OpenMetaverse.Packets.ParcelInfoRequestPacket"> 18289 <member name="T:OpenMetaverse.Packets.ParcelInfoRequestPacket">
17270 <exclude/> 18290 <exclude />
17271 </member> 18291 </member>
17272 <member name="T:OpenMetaverse.Packets.ParcelInfoRequestPacket.AgentDataBlock"> 18292 <member name="T:OpenMetaverse.Packets.ParcelInfoRequestPacket.AgentDataBlock">
17273 <exclude/> 18293 <exclude />
17274 </member> 18294 </member>
17275 <member name="T:OpenMetaverse.Packets.ParcelInfoRequestPacket.DataBlock"> 18295 <member name="T:OpenMetaverse.Packets.ParcelInfoRequestPacket.DataBlock">
17276 <exclude/> 18296 <exclude />
17277 </member> 18297 </member>
17278 <member name="T:OpenMetaverse.Packets.ParcelInfoReplyPacket"> 18298 <member name="T:OpenMetaverse.Packets.ParcelInfoReplyPacket">
17279 <exclude/> 18299 <exclude />
17280 </member> 18300 </member>
17281 <member name="T:OpenMetaverse.Packets.ParcelInfoReplyPacket.AgentDataBlock"> 18301 <member name="T:OpenMetaverse.Packets.ParcelInfoReplyPacket.AgentDataBlock">
17282 <exclude/> 18302 <exclude />
17283 </member> 18303 </member>
17284 <member name="T:OpenMetaverse.Packets.ParcelInfoReplyPacket.DataBlock"> 18304 <member name="T:OpenMetaverse.Packets.ParcelInfoReplyPacket.DataBlock">
17285 <exclude/> 18305 <exclude />
17286 </member> 18306 </member>
17287 <member name="T:OpenMetaverse.Packets.ParcelObjectOwnersRequestPacket"> 18307 <member name="T:OpenMetaverse.Packets.ParcelObjectOwnersRequestPacket">
17288 <exclude/> 18308 <exclude />
17289 </member> 18309 </member>
17290 <member name="T:OpenMetaverse.Packets.ParcelObjectOwnersRequestPacket.AgentDataBlock"> 18310 <member name="T:OpenMetaverse.Packets.ParcelObjectOwnersRequestPacket.AgentDataBlock">
17291 <exclude/> 18311 <exclude />
17292 </member> 18312 </member>
17293 <member name="T:OpenMetaverse.Packets.ParcelObjectOwnersRequestPacket.ParcelDataBlock"> 18313 <member name="T:OpenMetaverse.Packets.ParcelObjectOwnersRequestPacket.ParcelDataBlock">
17294 <exclude/> 18314 <exclude />
17295 </member> 18315 </member>
17296 <member name="T:OpenMetaverse.Packets.ParcelObjectOwnersReplyPacket"> 18316 <member name="T:OpenMetaverse.Packets.ParcelObjectOwnersReplyPacket">
17297 <exclude/> 18317 <exclude />
17298 </member> 18318 </member>
17299 <member name="T:OpenMetaverse.Packets.ParcelObjectOwnersReplyPacket.DataBlock"> 18319 <member name="T:OpenMetaverse.Packets.ParcelObjectOwnersReplyPacket.DataBlock">
17300 <exclude/> 18320 <exclude />
17301 </member> 18321 </member>
17302 <member name="T:OpenMetaverse.Packets.GroupNoticesListRequestPacket"> 18322 <member name="T:OpenMetaverse.Packets.GroupNoticesListRequestPacket">
17303 <exclude/> 18323 <exclude />
17304 </member> 18324 </member>
17305 <member name="T:OpenMetaverse.Packets.GroupNoticesListRequestPacket.AgentDataBlock"> 18325 <member name="T:OpenMetaverse.Packets.GroupNoticesListRequestPacket.AgentDataBlock">
17306 <exclude/> 18326 <exclude />
17307 </member> 18327 </member>
17308 <member name="T:OpenMetaverse.Packets.GroupNoticesListRequestPacket.DataBlock"> 18328 <member name="T:OpenMetaverse.Packets.GroupNoticesListRequestPacket.DataBlock">
17309 <exclude/> 18329 <exclude />
17310 </member> 18330 </member>
17311 <member name="T:OpenMetaverse.Packets.GroupNoticesListReplyPacket"> 18331 <member name="T:OpenMetaverse.Packets.GroupNoticesListReplyPacket">
17312 <exclude/> 18332 <exclude />
17313 </member> 18333 </member>
17314 <member name="T:OpenMetaverse.Packets.GroupNoticesListReplyPacket.AgentDataBlock"> 18334 <member name="T:OpenMetaverse.Packets.GroupNoticesListReplyPacket.AgentDataBlock">
17315 <exclude/> 18335 <exclude />
17316 </member> 18336 </member>
17317 <member name="T:OpenMetaverse.Packets.GroupNoticesListReplyPacket.DataBlock"> 18337 <member name="T:OpenMetaverse.Packets.GroupNoticesListReplyPacket.DataBlock">
17318 <exclude/> 18338 <exclude />
17319 </member> 18339 </member>
17320 <member name="T:OpenMetaverse.Packets.GroupNoticeRequestPacket"> 18340 <member name="T:OpenMetaverse.Packets.GroupNoticeRequestPacket">
17321 <exclude/> 18341 <exclude />
17322 </member> 18342 </member>
17323 <member name="T:OpenMetaverse.Packets.GroupNoticeRequestPacket.AgentDataBlock"> 18343 <member name="T:OpenMetaverse.Packets.GroupNoticeRequestPacket.AgentDataBlock">
17324 <exclude/> 18344 <exclude />
17325 </member> 18345 </member>
17326 <member name="T:OpenMetaverse.Packets.GroupNoticeRequestPacket.DataBlock"> 18346 <member name="T:OpenMetaverse.Packets.GroupNoticeRequestPacket.DataBlock">
17327 <exclude/> 18347 <exclude />
17328 </member> 18348 </member>
17329 <member name="T:OpenMetaverse.Packets.TeleportRequestPacket"> 18349 <member name="T:OpenMetaverse.Packets.TeleportRequestPacket">
17330 <exclude/> 18350 <exclude />
17331 </member> 18351 </member>
17332 <member name="T:OpenMetaverse.Packets.TeleportRequestPacket.AgentDataBlock"> 18352 <member name="T:OpenMetaverse.Packets.TeleportRequestPacket.AgentDataBlock">
17333 <exclude/> 18353 <exclude />
17334 </member> 18354 </member>
17335 <member name="T:OpenMetaverse.Packets.TeleportRequestPacket.InfoBlock"> 18355 <member name="T:OpenMetaverse.Packets.TeleportRequestPacket.InfoBlock">
17336 <exclude/> 18356 <exclude />
17337 </member> 18357 </member>
17338 <member name="T:OpenMetaverse.Packets.TeleportLocationRequestPacket"> 18358 <member name="T:OpenMetaverse.Packets.TeleportLocationRequestPacket">
17339 <exclude/> 18359 <exclude />
17340 </member> 18360 </member>
17341 <member name="T:OpenMetaverse.Packets.TeleportLocationRequestPacket.AgentDataBlock"> 18361 <member name="T:OpenMetaverse.Packets.TeleportLocationRequestPacket.AgentDataBlock">
17342 <exclude/> 18362 <exclude />
17343 </member> 18363 </member>
17344 <member name="T:OpenMetaverse.Packets.TeleportLocationRequestPacket.InfoBlock"> 18364 <member name="T:OpenMetaverse.Packets.TeleportLocationRequestPacket.InfoBlock">
17345 <exclude/> 18365 <exclude />
17346 </member> 18366 </member>
17347 <member name="T:OpenMetaverse.Packets.TeleportLocalPacket"> 18367 <member name="T:OpenMetaverse.Packets.TeleportLocalPacket">
17348 <exclude/> 18368 <exclude />
17349 </member> 18369 </member>
17350 <member name="T:OpenMetaverse.Packets.TeleportLocalPacket.InfoBlock"> 18370 <member name="T:OpenMetaverse.Packets.TeleportLocalPacket.InfoBlock">
17351 <exclude/> 18371 <exclude />
17352 </member> 18372 </member>
17353 <member name="T:OpenMetaverse.Packets.TeleportLandmarkRequestPacket"> 18373 <member name="T:OpenMetaverse.Packets.TeleportLandmarkRequestPacket">
17354 <exclude/> 18374 <exclude />
17355 </member> 18375 </member>
17356 <member name="T:OpenMetaverse.Packets.TeleportLandmarkRequestPacket.InfoBlock"> 18376 <member name="T:OpenMetaverse.Packets.TeleportLandmarkRequestPacket.InfoBlock">
17357 <exclude/> 18377 <exclude />
17358 </member> 18378 </member>
17359 <member name="T:OpenMetaverse.Packets.TeleportProgressPacket"> 18379 <member name="T:OpenMetaverse.Packets.TeleportProgressPacket">
17360 <exclude/> 18380 <exclude />
17361 </member> 18381 </member>
17362 <member name="T:OpenMetaverse.Packets.TeleportProgressPacket.AgentDataBlock"> 18382 <member name="T:OpenMetaverse.Packets.TeleportProgressPacket.AgentDataBlock">
17363 <exclude/> 18383 <exclude />
17364 </member> 18384 </member>
17365 <member name="T:OpenMetaverse.Packets.TeleportProgressPacket.InfoBlock"> 18385 <member name="T:OpenMetaverse.Packets.TeleportProgressPacket.InfoBlock">
17366 <exclude/> 18386 <exclude />
17367 </member> 18387 </member>
17368 <member name="T:OpenMetaverse.Packets.TeleportFinishPacket"> 18388 <member name="T:OpenMetaverse.Packets.TeleportFinishPacket">
17369 <exclude/> 18389 <exclude />
17370 </member> 18390 </member>
17371 <member name="T:OpenMetaverse.Packets.TeleportFinishPacket.InfoBlock"> 18391 <member name="T:OpenMetaverse.Packets.TeleportFinishPacket.InfoBlock">
17372 <exclude/> 18392 <exclude />
17373 </member> 18393 </member>
17374 <member name="T:OpenMetaverse.Packets.StartLurePacket"> 18394 <member name="T:OpenMetaverse.Packets.StartLurePacket">
17375 <exclude/> 18395 <exclude />
17376 </member> 18396 </member>
17377 <member name="T:OpenMetaverse.Packets.StartLurePacket.AgentDataBlock"> 18397 <member name="T:OpenMetaverse.Packets.StartLurePacket.AgentDataBlock">
17378 <exclude/> 18398 <exclude />
17379 </member> 18399 </member>
17380 <member name="T:OpenMetaverse.Packets.StartLurePacket.InfoBlock"> 18400 <member name="T:OpenMetaverse.Packets.StartLurePacket.InfoBlock">
17381 <exclude/> 18401 <exclude />
17382 </member> 18402 </member>
17383 <member name="T:OpenMetaverse.Packets.StartLurePacket.TargetDataBlock"> 18403 <member name="T:OpenMetaverse.Packets.StartLurePacket.TargetDataBlock">
17384 <exclude/> 18404 <exclude />
17385 </member> 18405 </member>
17386 <member name="T:OpenMetaverse.Packets.TeleportLureRequestPacket"> 18406 <member name="T:OpenMetaverse.Packets.TeleportLureRequestPacket">
17387 <exclude/> 18407 <exclude />
17388 </member> 18408 </member>
17389 <member name="T:OpenMetaverse.Packets.TeleportLureRequestPacket.InfoBlock"> 18409 <member name="T:OpenMetaverse.Packets.TeleportLureRequestPacket.InfoBlock">
17390 <exclude/> 18410 <exclude />
17391 </member> 18411 </member>
17392 <member name="T:OpenMetaverse.Packets.TeleportCancelPacket"> 18412 <member name="T:OpenMetaverse.Packets.TeleportCancelPacket">
17393 <exclude/> 18413 <exclude />
17394 </member> 18414 </member>
17395 <member name="T:OpenMetaverse.Packets.TeleportCancelPacket.InfoBlock"> 18415 <member name="T:OpenMetaverse.Packets.TeleportCancelPacket.InfoBlock">
17396 <exclude/> 18416 <exclude />
17397 </member> 18417 </member>
17398 <member name="T:OpenMetaverse.Packets.TeleportStartPacket"> 18418 <member name="T:OpenMetaverse.Packets.TeleportStartPacket">
17399 <exclude/> 18419 <exclude />
17400 </member> 18420 </member>
17401 <member name="T:OpenMetaverse.Packets.TeleportStartPacket.InfoBlock"> 18421 <member name="T:OpenMetaverse.Packets.TeleportStartPacket.InfoBlock">
17402 <exclude/> 18422 <exclude />
17403 </member> 18423 </member>
17404 <member name="T:OpenMetaverse.Packets.TeleportFailedPacket"> 18424 <member name="T:OpenMetaverse.Packets.TeleportFailedPacket">
17405 <exclude/> 18425 <exclude />
17406 </member> 18426 </member>
17407 <member name="T:OpenMetaverse.Packets.TeleportFailedPacket.InfoBlock"> 18427 <member name="T:OpenMetaverse.Packets.TeleportFailedPacket.InfoBlock">
17408 <exclude/> 18428 <exclude />
17409 </member> 18429 </member>
17410 <member name="T:OpenMetaverse.Packets.TeleportFailedPacket.AlertInfoBlock"> 18430 <member name="T:OpenMetaverse.Packets.TeleportFailedPacket.AlertInfoBlock">
17411 <exclude/> 18431 <exclude />
17412 </member> 18432 </member>
17413 <member name="T:OpenMetaverse.Packets.UndoPacket"> 18433 <member name="T:OpenMetaverse.Packets.UndoPacket">
17414 <exclude/> 18434 <exclude />
17415 </member> 18435 </member>
17416 <member name="T:OpenMetaverse.Packets.UndoPacket.AgentDataBlock"> 18436 <member name="T:OpenMetaverse.Packets.UndoPacket.AgentDataBlock">
17417 <exclude/> 18437 <exclude />
17418 </member> 18438 </member>
17419 <member name="T:OpenMetaverse.Packets.UndoPacket.ObjectDataBlock"> 18439 <member name="T:OpenMetaverse.Packets.UndoPacket.ObjectDataBlock">
17420 <exclude/> 18440 <exclude />
17421 </member> 18441 </member>
17422 <member name="T:OpenMetaverse.Packets.RedoPacket"> 18442 <member name="T:OpenMetaverse.Packets.RedoPacket">
17423 <exclude/> 18443 <exclude />
17424 </member> 18444 </member>
17425 <member name="T:OpenMetaverse.Packets.RedoPacket.AgentDataBlock"> 18445 <member name="T:OpenMetaverse.Packets.RedoPacket.AgentDataBlock">
17426 <exclude/> 18446 <exclude />
17427 </member> 18447 </member>
17428 <member name="T:OpenMetaverse.Packets.RedoPacket.ObjectDataBlock"> 18448 <member name="T:OpenMetaverse.Packets.RedoPacket.ObjectDataBlock">
17429 <exclude/> 18449 <exclude />
17430 </member> 18450 </member>
17431 <member name="T:OpenMetaverse.Packets.UndoLandPacket"> 18451 <member name="T:OpenMetaverse.Packets.UndoLandPacket">
17432 <exclude/> 18452 <exclude />
17433 </member> 18453 </member>
17434 <member name="T:OpenMetaverse.Packets.UndoLandPacket.AgentDataBlock"> 18454 <member name="T:OpenMetaverse.Packets.UndoLandPacket.AgentDataBlock">
17435 <exclude/> 18455 <exclude />
17436 </member> 18456 </member>
17437 <member name="T:OpenMetaverse.Packets.AgentPausePacket"> 18457 <member name="T:OpenMetaverse.Packets.AgentPausePacket">
17438 <exclude/> 18458 <exclude />
17439 </member> 18459 </member>
17440 <member name="T:OpenMetaverse.Packets.AgentPausePacket.AgentDataBlock"> 18460 <member name="T:OpenMetaverse.Packets.AgentPausePacket.AgentDataBlock">
17441 <exclude/> 18461 <exclude />
17442 </member> 18462 </member>
17443 <member name="T:OpenMetaverse.Packets.AgentResumePacket"> 18463 <member name="T:OpenMetaverse.Packets.AgentResumePacket">
17444 <exclude/> 18464 <exclude />
17445 </member> 18465 </member>
17446 <member name="T:OpenMetaverse.Packets.AgentResumePacket.AgentDataBlock"> 18466 <member name="T:OpenMetaverse.Packets.AgentResumePacket.AgentDataBlock">
17447 <exclude/> 18467 <exclude />
17448 </member> 18468 </member>
17449 <member name="T:OpenMetaverse.Packets.ChatFromViewerPacket"> 18469 <member name="T:OpenMetaverse.Packets.ChatFromViewerPacket">
17450 <exclude/> 18470 <exclude />
17451 </member> 18471 </member>
17452 <member name="T:OpenMetaverse.Packets.ChatFromViewerPacket.AgentDataBlock"> 18472 <member name="T:OpenMetaverse.Packets.ChatFromViewerPacket.AgentDataBlock">
17453 <exclude/> 18473 <exclude />
17454 </member> 18474 </member>
17455 <member name="T:OpenMetaverse.Packets.ChatFromViewerPacket.ChatDataBlock"> 18475 <member name="T:OpenMetaverse.Packets.ChatFromViewerPacket.ChatDataBlock">
17456 <exclude/> 18476 <exclude />
17457 </member> 18477 </member>
17458 <member name="T:OpenMetaverse.Packets.AgentThrottlePacket"> 18478 <member name="T:OpenMetaverse.Packets.AgentThrottlePacket">
17459 <exclude/> 18479 <exclude />
17460 </member> 18480 </member>
17461 <member name="T:OpenMetaverse.Packets.AgentThrottlePacket.AgentDataBlock"> 18481 <member name="T:OpenMetaverse.Packets.AgentThrottlePacket.AgentDataBlock">
17462 <exclude/> 18482 <exclude />
17463 </member> 18483 </member>
17464 <member name="T:OpenMetaverse.Packets.AgentThrottlePacket.ThrottleBlock"> 18484 <member name="T:OpenMetaverse.Packets.AgentThrottlePacket.ThrottleBlock">
17465 <exclude/> 18485 <exclude />
17466 </member> 18486 </member>
17467 <member name="T:OpenMetaverse.Packets.AgentFOVPacket"> 18487 <member name="T:OpenMetaverse.Packets.AgentFOVPacket">
17468 <exclude/> 18488 <exclude />
17469 </member> 18489 </member>
17470 <member name="T:OpenMetaverse.Packets.AgentFOVPacket.AgentDataBlock"> 18490 <member name="T:OpenMetaverse.Packets.AgentFOVPacket.AgentDataBlock">
17471 <exclude/> 18491 <exclude />
17472 </member> 18492 </member>
17473 <member name="T:OpenMetaverse.Packets.AgentFOVPacket.FOVBlockBlock"> 18493 <member name="T:OpenMetaverse.Packets.AgentFOVPacket.FOVBlockBlock">
17474 <exclude/> 18494 <exclude />
17475 </member> 18495 </member>
17476 <member name="T:OpenMetaverse.Packets.AgentHeightWidthPacket"> 18496 <member name="T:OpenMetaverse.Packets.AgentHeightWidthPacket">
17477 <exclude/> 18497 <exclude />
17478 </member> 18498 </member>
17479 <member name="T:OpenMetaverse.Packets.AgentHeightWidthPacket.AgentDataBlock"> 18499 <member name="T:OpenMetaverse.Packets.AgentHeightWidthPacket.AgentDataBlock">
17480 <exclude/> 18500 <exclude />
17481 </member> 18501 </member>
17482 <member name="T:OpenMetaverse.Packets.AgentHeightWidthPacket.HeightWidthBlockBlock"> 18502 <member name="T:OpenMetaverse.Packets.AgentHeightWidthPacket.HeightWidthBlockBlock">
17483 <exclude/> 18503 <exclude />
17484 </member> 18504 </member>
17485 <member name="T:OpenMetaverse.Packets.AgentSetAppearancePacket"> 18505 <member name="T:OpenMetaverse.Packets.AgentSetAppearancePacket">
17486 <exclude/> 18506 <exclude />
17487 </member> 18507 </member>
17488 <member name="T:OpenMetaverse.Packets.AgentSetAppearancePacket.AgentDataBlock"> 18508 <member name="T:OpenMetaverse.Packets.AgentSetAppearancePacket.AgentDataBlock">
17489 <exclude/> 18509 <exclude />
17490 </member> 18510 </member>
17491 <member name="T:OpenMetaverse.Packets.AgentSetAppearancePacket.WearableDataBlock"> 18511 <member name="T:OpenMetaverse.Packets.AgentSetAppearancePacket.WearableDataBlock">
17492 <exclude/> 18512 <exclude />
17493 </member> 18513 </member>
17494 <member name="T:OpenMetaverse.Packets.AgentSetAppearancePacket.ObjectDataBlock"> 18514 <member name="T:OpenMetaverse.Packets.AgentSetAppearancePacket.ObjectDataBlock">
17495 <exclude/> 18515 <exclude />
17496 </member> 18516 </member>
17497 <member name="T:OpenMetaverse.Packets.AgentSetAppearancePacket.VisualParamBlock"> 18517 <member name="T:OpenMetaverse.Packets.AgentSetAppearancePacket.VisualParamBlock">
17498 <exclude/> 18518 <exclude />
17499 </member> 18519 </member>
17500 <member name="T:OpenMetaverse.Packets.AgentQuitCopyPacket"> 18520 <member name="T:OpenMetaverse.Packets.AgentQuitCopyPacket">
17501 <exclude/> 18521 <exclude />
17502 </member> 18522 </member>
17503 <member name="T:OpenMetaverse.Packets.AgentQuitCopyPacket.AgentDataBlock"> 18523 <member name="T:OpenMetaverse.Packets.AgentQuitCopyPacket.AgentDataBlock">
17504 <exclude/> 18524 <exclude />
17505 </member> 18525 </member>
17506 <member name="T:OpenMetaverse.Packets.AgentQuitCopyPacket.FuseBlockBlock"> 18526 <member name="T:OpenMetaverse.Packets.AgentQuitCopyPacket.FuseBlockBlock">
17507 <exclude/> 18527 <exclude />
17508 </member> 18528 </member>
17509 <member name="T:OpenMetaverse.Packets.ImageNotInDatabasePacket"> 18529 <member name="T:OpenMetaverse.Packets.ImageNotInDatabasePacket">
17510 <exclude/> 18530 <exclude />
17511 </member> 18531 </member>
17512 <member name="T:OpenMetaverse.Packets.ImageNotInDatabasePacket.ImageIDBlock"> 18532 <member name="T:OpenMetaverse.Packets.ImageNotInDatabasePacket.ImageIDBlock">
17513 <exclude/> 18533 <exclude />
17514 </member> 18534 </member>
17515 <member name="T:OpenMetaverse.Packets.RebakeAvatarTexturesPacket"> 18535 <member name="T:OpenMetaverse.Packets.RebakeAvatarTexturesPacket">
17516 <exclude/> 18536 <exclude />
17517 </member> 18537 </member>
17518 <member name="T:OpenMetaverse.Packets.RebakeAvatarTexturesPacket.TextureDataBlock"> 18538 <member name="T:OpenMetaverse.Packets.RebakeAvatarTexturesPacket.TextureDataBlock">
17519 <exclude/> 18539 <exclude />
17520 </member> 18540 </member>
17521 <member name="T:OpenMetaverse.Packets.SetAlwaysRunPacket"> 18541 <member name="T:OpenMetaverse.Packets.SetAlwaysRunPacket">
17522 <exclude/> 18542 <exclude />
17523 </member> 18543 </member>
17524 <member name="T:OpenMetaverse.Packets.SetAlwaysRunPacket.AgentDataBlock"> 18544 <member name="T:OpenMetaverse.Packets.SetAlwaysRunPacket.AgentDataBlock">
17525 <exclude/> 18545 <exclude />
17526 </member> 18546 </member>
17527 <member name="T:OpenMetaverse.Packets.ObjectDeletePacket"> 18547 <member name="T:OpenMetaverse.Packets.ObjectDeletePacket">
17528 <exclude/> 18548 <exclude />
17529 </member> 18549 </member>
17530 <member name="T:OpenMetaverse.Packets.ObjectDeletePacket.AgentDataBlock"> 18550 <member name="T:OpenMetaverse.Packets.ObjectDeletePacket.AgentDataBlock">
17531 <exclude/> 18551 <exclude />
17532 </member> 18552 </member>
17533 <member name="T:OpenMetaverse.Packets.ObjectDeletePacket.ObjectDataBlock"> 18553 <member name="T:OpenMetaverse.Packets.ObjectDeletePacket.ObjectDataBlock">
17534 <exclude/> 18554 <exclude />
17535 </member> 18555 </member>
17536 <member name="T:OpenMetaverse.Packets.ObjectDuplicatePacket"> 18556 <member name="T:OpenMetaverse.Packets.ObjectDuplicatePacket">
17537 <exclude/> 18557 <exclude />
17538 </member> 18558 </member>
17539 <member name="T:OpenMetaverse.Packets.ObjectDuplicatePacket.AgentDataBlock"> 18559 <member name="T:OpenMetaverse.Packets.ObjectDuplicatePacket.AgentDataBlock">
17540 <exclude/> 18560 <exclude />
17541 </member> 18561 </member>
17542 <member name="T:OpenMetaverse.Packets.ObjectDuplicatePacket.SharedDataBlock"> 18562 <member name="T:OpenMetaverse.Packets.ObjectDuplicatePacket.SharedDataBlock">
17543 <exclude/> 18563 <exclude />
17544 </member> 18564 </member>
17545 <member name="T:OpenMetaverse.Packets.ObjectDuplicatePacket.ObjectDataBlock"> 18565 <member name="T:OpenMetaverse.Packets.ObjectDuplicatePacket.ObjectDataBlock">
17546 <exclude/> 18566 <exclude />
17547 </member> 18567 </member>
17548 <member name="T:OpenMetaverse.Packets.ObjectDuplicateOnRayPacket"> 18568 <member name="T:OpenMetaverse.Packets.ObjectDuplicateOnRayPacket">
17549 <exclude/> 18569 <exclude />
17550 </member> 18570 </member>
17551 <member name="T:OpenMetaverse.Packets.ObjectDuplicateOnRayPacket.AgentDataBlock"> 18571 <member name="T:OpenMetaverse.Packets.ObjectDuplicateOnRayPacket.AgentDataBlock">
17552 <exclude/> 18572 <exclude />
17553 </member> 18573 </member>
17554 <member name="T:OpenMetaverse.Packets.ObjectDuplicateOnRayPacket.ObjectDataBlock"> 18574 <member name="T:OpenMetaverse.Packets.ObjectDuplicateOnRayPacket.ObjectDataBlock">
17555 <exclude/> 18575 <exclude />
17556 </member> 18576 </member>
17557 <member name="T:OpenMetaverse.Packets.ObjectScalePacket"> 18577 <member name="T:OpenMetaverse.Packets.ObjectScalePacket">
17558 <exclude/> 18578 <exclude />
17559 </member> 18579 </member>
17560 <member name="T:OpenMetaverse.Packets.ObjectScalePacket.AgentDataBlock"> 18580 <member name="T:OpenMetaverse.Packets.ObjectScalePacket.AgentDataBlock">
17561 <exclude/> 18581 <exclude />
17562 </member> 18582 </member>
17563 <member name="T:OpenMetaverse.Packets.ObjectScalePacket.ObjectDataBlock"> 18583 <member name="T:OpenMetaverse.Packets.ObjectScalePacket.ObjectDataBlock">
17564 <exclude/> 18584 <exclude />
17565 </member> 18585 </member>
17566 <member name="T:OpenMetaverse.Packets.ObjectRotationPacket"> 18586 <member name="T:OpenMetaverse.Packets.ObjectRotationPacket">
17567 <exclude/> 18587 <exclude />
17568 </member> 18588 </member>
17569 <member name="T:OpenMetaverse.Packets.ObjectRotationPacket.AgentDataBlock"> 18589 <member name="T:OpenMetaverse.Packets.ObjectRotationPacket.AgentDataBlock">
17570 <exclude/> 18590 <exclude />
17571 </member> 18591 </member>
17572 <member name="T:OpenMetaverse.Packets.ObjectRotationPacket.ObjectDataBlock"> 18592 <member name="T:OpenMetaverse.Packets.ObjectRotationPacket.ObjectDataBlock">
17573 <exclude/> 18593 <exclude />
17574 </member> 18594 </member>
17575 <member name="T:OpenMetaverse.Packets.ObjectFlagUpdatePacket"> 18595 <member name="T:OpenMetaverse.Packets.ObjectFlagUpdatePacket">
17576 <exclude/> 18596 <exclude />
17577 </member> 18597 </member>
17578 <member name="T:OpenMetaverse.Packets.ObjectFlagUpdatePacket.AgentDataBlock"> 18598 <member name="T:OpenMetaverse.Packets.ObjectFlagUpdatePacket.AgentDataBlock">
17579 <exclude/> 18599 <exclude />
18600 </member>
18601 <member name="T:OpenMetaverse.Packets.ObjectFlagUpdatePacket.ExtraPhysicsBlock">
18602 <exclude />
17580 </member> 18603 </member>
17581 <member name="T:OpenMetaverse.Packets.ObjectClickActionPacket"> 18604 <member name="T:OpenMetaverse.Packets.ObjectClickActionPacket">
17582 <exclude/> 18605 <exclude />
17583 </member> 18606 </member>
17584 <member name="T:OpenMetaverse.Packets.ObjectClickActionPacket.AgentDataBlock"> 18607 <member name="T:OpenMetaverse.Packets.ObjectClickActionPacket.AgentDataBlock">
17585 <exclude/> 18608 <exclude />
17586 </member> 18609 </member>
17587 <member name="T:OpenMetaverse.Packets.ObjectClickActionPacket.ObjectDataBlock"> 18610 <member name="T:OpenMetaverse.Packets.ObjectClickActionPacket.ObjectDataBlock">
17588 <exclude/> 18611 <exclude />
17589 </member> 18612 </member>
17590 <member name="T:OpenMetaverse.Packets.ObjectImagePacket"> 18613 <member name="T:OpenMetaverse.Packets.ObjectImagePacket">
17591 <exclude/> 18614 <exclude />
17592 </member> 18615 </member>
17593 <member name="T:OpenMetaverse.Packets.ObjectImagePacket.AgentDataBlock"> 18616 <member name="T:OpenMetaverse.Packets.ObjectImagePacket.AgentDataBlock">
17594 <exclude/> 18617 <exclude />
17595 </member> 18618 </member>
17596 <member name="T:OpenMetaverse.Packets.ObjectImagePacket.ObjectDataBlock"> 18619 <member name="T:OpenMetaverse.Packets.ObjectImagePacket.ObjectDataBlock">
17597 <exclude/> 18620 <exclude />
17598 </member> 18621 </member>
17599 <member name="T:OpenMetaverse.Packets.ObjectMaterialPacket"> 18622 <member name="T:OpenMetaverse.Packets.ObjectMaterialPacket">
17600 <exclude/> 18623 <exclude />
17601 </member> 18624 </member>
17602 <member name="T:OpenMetaverse.Packets.ObjectMaterialPacket.AgentDataBlock"> 18625 <member name="T:OpenMetaverse.Packets.ObjectMaterialPacket.AgentDataBlock">
17603 <exclude/> 18626 <exclude />
17604 </member> 18627 </member>
17605 <member name="T:OpenMetaverse.Packets.ObjectMaterialPacket.ObjectDataBlock"> 18628 <member name="T:OpenMetaverse.Packets.ObjectMaterialPacket.ObjectDataBlock">
17606 <exclude/> 18629 <exclude />
17607 </member> 18630 </member>
17608 <member name="T:OpenMetaverse.Packets.ObjectShapePacket"> 18631 <member name="T:OpenMetaverse.Packets.ObjectShapePacket">
17609 <exclude/> 18632 <exclude />
17610 </member> 18633 </member>
17611 <member name="T:OpenMetaverse.Packets.ObjectShapePacket.AgentDataBlock"> 18634 <member name="T:OpenMetaverse.Packets.ObjectShapePacket.AgentDataBlock">
17612 <exclude/> 18635 <exclude />
17613 </member> 18636 </member>
17614 <member name="T:OpenMetaverse.Packets.ObjectShapePacket.ObjectDataBlock"> 18637 <member name="T:OpenMetaverse.Packets.ObjectShapePacket.ObjectDataBlock">
17615 <exclude/> 18638 <exclude />
17616 </member> 18639 </member>
17617 <member name="T:OpenMetaverse.Packets.ObjectExtraParamsPacket"> 18640 <member name="T:OpenMetaverse.Packets.ObjectExtraParamsPacket">
17618 <exclude/> 18641 <exclude />
17619 </member> 18642 </member>
17620 <member name="T:OpenMetaverse.Packets.ObjectExtraParamsPacket.AgentDataBlock"> 18643 <member name="T:OpenMetaverse.Packets.ObjectExtraParamsPacket.AgentDataBlock">
17621 <exclude/> 18644 <exclude />
17622 </member> 18645 </member>
17623 <member name="T:OpenMetaverse.Packets.ObjectExtraParamsPacket.ObjectDataBlock"> 18646 <member name="T:OpenMetaverse.Packets.ObjectExtraParamsPacket.ObjectDataBlock">
17624 <exclude/> 18647 <exclude />
17625 </member> 18648 </member>
17626 <member name="T:OpenMetaverse.Packets.ObjectOwnerPacket"> 18649 <member name="T:OpenMetaverse.Packets.ObjectOwnerPacket">
17627 <exclude/> 18650 <exclude />
17628 </member> 18651 </member>
17629 <member name="T:OpenMetaverse.Packets.ObjectOwnerPacket.AgentDataBlock"> 18652 <member name="T:OpenMetaverse.Packets.ObjectOwnerPacket.AgentDataBlock">
17630 <exclude/> 18653 <exclude />
17631 </member> 18654 </member>
17632 <member name="T:OpenMetaverse.Packets.ObjectOwnerPacket.HeaderDataBlock"> 18655 <member name="T:OpenMetaverse.Packets.ObjectOwnerPacket.HeaderDataBlock">
17633 <exclude/> 18656 <exclude />
17634 </member> 18657 </member>
17635 <member name="T:OpenMetaverse.Packets.ObjectOwnerPacket.ObjectDataBlock"> 18658 <member name="T:OpenMetaverse.Packets.ObjectOwnerPacket.ObjectDataBlock">
17636 <exclude/> 18659 <exclude />
17637 </member> 18660 </member>
17638 <member name="T:OpenMetaverse.Packets.ObjectGroupPacket"> 18661 <member name="T:OpenMetaverse.Packets.ObjectGroupPacket">
17639 <exclude/> 18662 <exclude />
17640 </member> 18663 </member>
17641 <member name="T:OpenMetaverse.Packets.ObjectGroupPacket.AgentDataBlock"> 18664 <member name="T:OpenMetaverse.Packets.ObjectGroupPacket.AgentDataBlock">
17642 <exclude/> 18665 <exclude />
17643 </member> 18666 </member>
17644 <member name="T:OpenMetaverse.Packets.ObjectGroupPacket.ObjectDataBlock"> 18667 <member name="T:OpenMetaverse.Packets.ObjectGroupPacket.ObjectDataBlock">
17645 <exclude/> 18668 <exclude />
17646 </member> 18669 </member>
17647 <member name="T:OpenMetaverse.Packets.ObjectBuyPacket"> 18670 <member name="T:OpenMetaverse.Packets.ObjectBuyPacket">
17648 <exclude/> 18671 <exclude />
17649 </member> 18672 </member>
17650 <member name="T:OpenMetaverse.Packets.ObjectBuyPacket.AgentDataBlock"> 18673 <member name="T:OpenMetaverse.Packets.ObjectBuyPacket.AgentDataBlock">
17651 <exclude/> 18674 <exclude />
17652 </member> 18675 </member>
17653 <member name="T:OpenMetaverse.Packets.ObjectBuyPacket.ObjectDataBlock"> 18676 <member name="T:OpenMetaverse.Packets.ObjectBuyPacket.ObjectDataBlock">
17654 <exclude/> 18677 <exclude />
17655 </member> 18678 </member>
17656 <member name="T:OpenMetaverse.Packets.BuyObjectInventoryPacket"> 18679 <member name="T:OpenMetaverse.Packets.BuyObjectInventoryPacket">
17657 <exclude/> 18680 <exclude />
17658 </member> 18681 </member>
17659 <member name="T:OpenMetaverse.Packets.BuyObjectInventoryPacket.AgentDataBlock"> 18682 <member name="T:OpenMetaverse.Packets.BuyObjectInventoryPacket.AgentDataBlock">
17660 <exclude/> 18683 <exclude />
17661 </member> 18684 </member>
17662 <member name="T:OpenMetaverse.Packets.BuyObjectInventoryPacket.DataBlock"> 18685 <member name="T:OpenMetaverse.Packets.BuyObjectInventoryPacket.DataBlock">
17663 <exclude/> 18686 <exclude />
17664 </member> 18687 </member>
17665 <member name="T:OpenMetaverse.Packets.DerezContainerPacket"> 18688 <member name="T:OpenMetaverse.Packets.DerezContainerPacket">
17666 <exclude/> 18689 <exclude />
17667 </member> 18690 </member>
17668 <member name="T:OpenMetaverse.Packets.DerezContainerPacket.DataBlock"> 18691 <member name="T:OpenMetaverse.Packets.DerezContainerPacket.DataBlock">
17669 <exclude/> 18692 <exclude />
17670 </member> 18693 </member>
17671 <member name="T:OpenMetaverse.Packets.ObjectPermissionsPacket"> 18694 <member name="T:OpenMetaverse.Packets.ObjectPermissionsPacket">
17672 <exclude/> 18695 <exclude />
17673 </member> 18696 </member>
17674 <member name="T:OpenMetaverse.Packets.ObjectPermissionsPacket.AgentDataBlock"> 18697 <member name="T:OpenMetaverse.Packets.ObjectPermissionsPacket.AgentDataBlock">
17675 <exclude/> 18698 <exclude />
17676 </member> 18699 </member>
17677 <member name="T:OpenMetaverse.Packets.ObjectPermissionsPacket.HeaderDataBlock"> 18700 <member name="T:OpenMetaverse.Packets.ObjectPermissionsPacket.HeaderDataBlock">
17678 <exclude/> 18701 <exclude />
17679 </member> 18702 </member>
17680 <member name="T:OpenMetaverse.Packets.ObjectPermissionsPacket.ObjectDataBlock"> 18703 <member name="T:OpenMetaverse.Packets.ObjectPermissionsPacket.ObjectDataBlock">
17681 <exclude/> 18704 <exclude />
17682 </member> 18705 </member>
17683 <member name="T:OpenMetaverse.Packets.ObjectSaleInfoPacket"> 18706 <member name="T:OpenMetaverse.Packets.ObjectSaleInfoPacket">
17684 <exclude/> 18707 <exclude />
17685 </member> 18708 </member>
17686 <member name="T:OpenMetaverse.Packets.ObjectSaleInfoPacket.AgentDataBlock"> 18709 <member name="T:OpenMetaverse.Packets.ObjectSaleInfoPacket.AgentDataBlock">
17687 <exclude/> 18710 <exclude />
17688 </member> 18711 </member>
17689 <member name="T:OpenMetaverse.Packets.ObjectSaleInfoPacket.ObjectDataBlock"> 18712 <member name="T:OpenMetaverse.Packets.ObjectSaleInfoPacket.ObjectDataBlock">
17690 <exclude/> 18713 <exclude />
17691 </member> 18714 </member>
17692 <member name="T:OpenMetaverse.Packets.ObjectNamePacket"> 18715 <member name="T:OpenMetaverse.Packets.ObjectNamePacket">
17693 <exclude/> 18716 <exclude />
17694 </member> 18717 </member>
17695 <member name="T:OpenMetaverse.Packets.ObjectNamePacket.AgentDataBlock"> 18718 <member name="T:OpenMetaverse.Packets.ObjectNamePacket.AgentDataBlock">
17696 <exclude/> 18719 <exclude />
17697 </member> 18720 </member>
17698 <member name="T:OpenMetaverse.Packets.ObjectNamePacket.ObjectDataBlock"> 18721 <member name="T:OpenMetaverse.Packets.ObjectNamePacket.ObjectDataBlock">
17699 <exclude/> 18722 <exclude />
17700 </member> 18723 </member>
17701 <member name="T:OpenMetaverse.Packets.ObjectDescriptionPacket"> 18724 <member name="T:OpenMetaverse.Packets.ObjectDescriptionPacket">
17702 <exclude/> 18725 <exclude />
17703 </member> 18726 </member>
17704 <member name="T:OpenMetaverse.Packets.ObjectDescriptionPacket.AgentDataBlock"> 18727 <member name="T:OpenMetaverse.Packets.ObjectDescriptionPacket.AgentDataBlock">
17705 <exclude/> 18728 <exclude />
17706 </member> 18729 </member>
17707 <member name="T:OpenMetaverse.Packets.ObjectDescriptionPacket.ObjectDataBlock"> 18730 <member name="T:OpenMetaverse.Packets.ObjectDescriptionPacket.ObjectDataBlock">
17708 <exclude/> 18731 <exclude />
17709 </member> 18732 </member>
17710 <member name="T:OpenMetaverse.Packets.ObjectCategoryPacket"> 18733 <member name="T:OpenMetaverse.Packets.ObjectCategoryPacket">
17711 <exclude/> 18734 <exclude />
17712 </member> 18735 </member>
17713 <member name="T:OpenMetaverse.Packets.ObjectCategoryPacket.AgentDataBlock"> 18736 <member name="T:OpenMetaverse.Packets.ObjectCategoryPacket.AgentDataBlock">
17714 <exclude/> 18737 <exclude />
17715 </member> 18738 </member>
17716 <member name="T:OpenMetaverse.Packets.ObjectCategoryPacket.ObjectDataBlock"> 18739 <member name="T:OpenMetaverse.Packets.ObjectCategoryPacket.ObjectDataBlock">
17717 <exclude/> 18740 <exclude />
17718 </member> 18741 </member>
17719 <member name="T:OpenMetaverse.Packets.ObjectSelectPacket"> 18742 <member name="T:OpenMetaverse.Packets.ObjectSelectPacket">
17720 <exclude/> 18743 <exclude />
17721 </member> 18744 </member>
17722 <member name="T:OpenMetaverse.Packets.ObjectSelectPacket.AgentDataBlock"> 18745 <member name="T:OpenMetaverse.Packets.ObjectSelectPacket.AgentDataBlock">
17723 <exclude/> 18746 <exclude />
17724 </member> 18747 </member>
17725 <member name="T:OpenMetaverse.Packets.ObjectSelectPacket.ObjectDataBlock"> 18748 <member name="T:OpenMetaverse.Packets.ObjectSelectPacket.ObjectDataBlock">
17726 <exclude/> 18749 <exclude />
17727 </member> 18750 </member>
17728 <member name="T:OpenMetaverse.Packets.ObjectDeselectPacket"> 18751 <member name="T:OpenMetaverse.Packets.ObjectDeselectPacket">
17729 <exclude/> 18752 <exclude />
17730 </member> 18753 </member>
17731 <member name="T:OpenMetaverse.Packets.ObjectDeselectPacket.AgentDataBlock"> 18754 <member name="T:OpenMetaverse.Packets.ObjectDeselectPacket.AgentDataBlock">
17732 <exclude/> 18755 <exclude />
17733 </member> 18756 </member>
17734 <member name="T:OpenMetaverse.Packets.ObjectDeselectPacket.ObjectDataBlock"> 18757 <member name="T:OpenMetaverse.Packets.ObjectDeselectPacket.ObjectDataBlock">
17735 <exclude/> 18758 <exclude />
17736 </member> 18759 </member>
17737 <member name="T:OpenMetaverse.Packets.ObjectAttachPacket"> 18760 <member name="T:OpenMetaverse.Packets.ObjectAttachPacket">
17738 <exclude/> 18761 <exclude />
17739 </member> 18762 </member>
17740 <member name="T:OpenMetaverse.Packets.ObjectAttachPacket.AgentDataBlock"> 18763 <member name="T:OpenMetaverse.Packets.ObjectAttachPacket.AgentDataBlock">
17741 <exclude/> 18764 <exclude />
17742 </member> 18765 </member>
17743 <member name="T:OpenMetaverse.Packets.ObjectAttachPacket.ObjectDataBlock"> 18766 <member name="T:OpenMetaverse.Packets.ObjectAttachPacket.ObjectDataBlock">
17744 <exclude/> 18767 <exclude />
17745 </member> 18768 </member>
17746 <member name="T:OpenMetaverse.Packets.ObjectDetachPacket"> 18769 <member name="T:OpenMetaverse.Packets.ObjectDetachPacket">
17747 <exclude/> 18770 <exclude />
17748 </member> 18771 </member>
17749 <member name="T:OpenMetaverse.Packets.ObjectDetachPacket.AgentDataBlock"> 18772 <member name="T:OpenMetaverse.Packets.ObjectDetachPacket.AgentDataBlock">
17750 <exclude/> 18773 <exclude />
17751 </member> 18774 </member>
17752 <member name="T:OpenMetaverse.Packets.ObjectDetachPacket.ObjectDataBlock"> 18775 <member name="T:OpenMetaverse.Packets.ObjectDetachPacket.ObjectDataBlock">
17753 <exclude/> 18776 <exclude />
17754 </member> 18777 </member>
17755 <member name="T:OpenMetaverse.Packets.ObjectDropPacket"> 18778 <member name="T:OpenMetaverse.Packets.ObjectDropPacket">
17756 <exclude/> 18779 <exclude />
17757 </member> 18780 </member>
17758 <member name="T:OpenMetaverse.Packets.ObjectDropPacket.AgentDataBlock"> 18781 <member name="T:OpenMetaverse.Packets.ObjectDropPacket.AgentDataBlock">
17759 <exclude/> 18782 <exclude />
17760 </member> 18783 </member>
17761 <member name="T:OpenMetaverse.Packets.ObjectDropPacket.ObjectDataBlock"> 18784 <member name="T:OpenMetaverse.Packets.ObjectDropPacket.ObjectDataBlock">
17762 <exclude/> 18785 <exclude />
17763 </member> 18786 </member>
17764 <member name="T:OpenMetaverse.Packets.ObjectLinkPacket"> 18787 <member name="T:OpenMetaverse.Packets.ObjectLinkPacket">
17765 <exclude/> 18788 <exclude />
17766 </member> 18789 </member>
17767 <member name="T:OpenMetaverse.Packets.ObjectLinkPacket.AgentDataBlock"> 18790 <member name="T:OpenMetaverse.Packets.ObjectLinkPacket.AgentDataBlock">
17768 <exclude/> 18791 <exclude />
17769 </member> 18792 </member>
17770 <member name="T:OpenMetaverse.Packets.ObjectLinkPacket.ObjectDataBlock"> 18793 <member name="T:OpenMetaverse.Packets.ObjectLinkPacket.ObjectDataBlock">
17771 <exclude/> 18794 <exclude />
17772 </member> 18795 </member>
17773 <member name="T:OpenMetaverse.Packets.ObjectDelinkPacket"> 18796 <member name="T:OpenMetaverse.Packets.ObjectDelinkPacket">
17774 <exclude/> 18797 <exclude />
17775 </member> 18798 </member>
17776 <member name="T:OpenMetaverse.Packets.ObjectDelinkPacket.AgentDataBlock"> 18799 <member name="T:OpenMetaverse.Packets.ObjectDelinkPacket.AgentDataBlock">
17777 <exclude/> 18800 <exclude />
17778 </member> 18801 </member>
17779 <member name="T:OpenMetaverse.Packets.ObjectDelinkPacket.ObjectDataBlock"> 18802 <member name="T:OpenMetaverse.Packets.ObjectDelinkPacket.ObjectDataBlock">
17780 <exclude/> 18803 <exclude />
17781 </member> 18804 </member>
17782 <member name="T:OpenMetaverse.Packets.ObjectGrabPacket"> 18805 <member name="T:OpenMetaverse.Packets.ObjectGrabPacket">
17783 <exclude/> 18806 <exclude />
17784 </member> 18807 </member>
17785 <member name="T:OpenMetaverse.Packets.ObjectGrabPacket.AgentDataBlock"> 18808 <member name="T:OpenMetaverse.Packets.ObjectGrabPacket.AgentDataBlock">
17786 <exclude/> 18809 <exclude />
17787 </member> 18810 </member>
17788 <member name="T:OpenMetaverse.Packets.ObjectGrabPacket.ObjectDataBlock"> 18811 <member name="T:OpenMetaverse.Packets.ObjectGrabPacket.ObjectDataBlock">
17789 <exclude/> 18812 <exclude />
17790 </member> 18813 </member>
17791 <member name="T:OpenMetaverse.Packets.ObjectGrabPacket.SurfaceInfoBlock"> 18814 <member name="T:OpenMetaverse.Packets.ObjectGrabPacket.SurfaceInfoBlock">
17792 <exclude/> 18815 <exclude />
17793 </member> 18816 </member>
17794 <member name="T:OpenMetaverse.Packets.ObjectGrabUpdatePacket"> 18817 <member name="T:OpenMetaverse.Packets.ObjectGrabUpdatePacket">
17795 <exclude/> 18818 <exclude />
17796 </member> 18819 </member>
17797 <member name="T:OpenMetaverse.Packets.ObjectGrabUpdatePacket.AgentDataBlock"> 18820 <member name="T:OpenMetaverse.Packets.ObjectGrabUpdatePacket.AgentDataBlock">
17798 <exclude/> 18821 <exclude />
17799 </member> 18822 </member>
17800 <member name="T:OpenMetaverse.Packets.ObjectGrabUpdatePacket.ObjectDataBlock"> 18823 <member name="T:OpenMetaverse.Packets.ObjectGrabUpdatePacket.ObjectDataBlock">
17801 <exclude/> 18824 <exclude />
17802 </member> 18825 </member>
17803 <member name="T:OpenMetaverse.Packets.ObjectGrabUpdatePacket.SurfaceInfoBlock"> 18826 <member name="T:OpenMetaverse.Packets.ObjectGrabUpdatePacket.SurfaceInfoBlock">
17804 <exclude/> 18827 <exclude />
17805 </member> 18828 </member>
17806 <member name="T:OpenMetaverse.Packets.ObjectDeGrabPacket"> 18829 <member name="T:OpenMetaverse.Packets.ObjectDeGrabPacket">
17807 <exclude/> 18830 <exclude />
17808 </member> 18831 </member>
17809 <member name="T:OpenMetaverse.Packets.ObjectDeGrabPacket.AgentDataBlock"> 18832 <member name="T:OpenMetaverse.Packets.ObjectDeGrabPacket.AgentDataBlock">
17810 <exclude/> 18833 <exclude />
17811 </member> 18834 </member>
17812 <member name="T:OpenMetaverse.Packets.ObjectDeGrabPacket.ObjectDataBlock"> 18835 <member name="T:OpenMetaverse.Packets.ObjectDeGrabPacket.ObjectDataBlock">
17813 <exclude/> 18836 <exclude />
17814 </member> 18837 </member>
17815 <member name="T:OpenMetaverse.Packets.ObjectDeGrabPacket.SurfaceInfoBlock"> 18838 <member name="T:OpenMetaverse.Packets.ObjectDeGrabPacket.SurfaceInfoBlock">
17816 <exclude/> 18839 <exclude />
17817 </member> 18840 </member>
17818 <member name="T:OpenMetaverse.Packets.ObjectSpinStartPacket"> 18841 <member name="T:OpenMetaverse.Packets.ObjectSpinStartPacket">
17819 <exclude/> 18842 <exclude />
17820 </member> 18843 </member>
17821 <member name="T:OpenMetaverse.Packets.ObjectSpinStartPacket.AgentDataBlock"> 18844 <member name="T:OpenMetaverse.Packets.ObjectSpinStartPacket.AgentDataBlock">
17822 <exclude/> 18845 <exclude />
17823 </member> 18846 </member>
17824 <member name="T:OpenMetaverse.Packets.ObjectSpinStartPacket.ObjectDataBlock"> 18847 <member name="T:OpenMetaverse.Packets.ObjectSpinStartPacket.ObjectDataBlock">
17825 <exclude/> 18848 <exclude />
17826 </member> 18849 </member>
17827 <member name="T:OpenMetaverse.Packets.ObjectSpinUpdatePacket"> 18850 <member name="T:OpenMetaverse.Packets.ObjectSpinUpdatePacket">
17828 <exclude/> 18851 <exclude />
17829 </member> 18852 </member>
17830 <member name="T:OpenMetaverse.Packets.ObjectSpinUpdatePacket.AgentDataBlock"> 18853 <member name="T:OpenMetaverse.Packets.ObjectSpinUpdatePacket.AgentDataBlock">
17831 <exclude/> 18854 <exclude />
17832 </member> 18855 </member>
17833 <member name="T:OpenMetaverse.Packets.ObjectSpinUpdatePacket.ObjectDataBlock"> 18856 <member name="T:OpenMetaverse.Packets.ObjectSpinUpdatePacket.ObjectDataBlock">
17834 <exclude/> 18857 <exclude />
17835 </member> 18858 </member>
17836 <member name="T:OpenMetaverse.Packets.ObjectSpinStopPacket"> 18859 <member name="T:OpenMetaverse.Packets.ObjectSpinStopPacket">
17837 <exclude/> 18860 <exclude />
17838 </member> 18861 </member>
17839 <member name="T:OpenMetaverse.Packets.ObjectSpinStopPacket.AgentDataBlock"> 18862 <member name="T:OpenMetaverse.Packets.ObjectSpinStopPacket.AgentDataBlock">
17840 <exclude/> 18863 <exclude />
17841 </member> 18864 </member>
17842 <member name="T:OpenMetaverse.Packets.ObjectSpinStopPacket.ObjectDataBlock"> 18865 <member name="T:OpenMetaverse.Packets.ObjectSpinStopPacket.ObjectDataBlock">
17843 <exclude/> 18866 <exclude />
17844 </member> 18867 </member>
17845 <member name="T:OpenMetaverse.Packets.ObjectExportSelectedPacket"> 18868 <member name="T:OpenMetaverse.Packets.ObjectExportSelectedPacket">
17846 <exclude/> 18869 <exclude />
17847 </member> 18870 </member>
17848 <member name="T:OpenMetaverse.Packets.ObjectExportSelectedPacket.AgentDataBlock"> 18871 <member name="T:OpenMetaverse.Packets.ObjectExportSelectedPacket.AgentDataBlock">
17849 <exclude/> 18872 <exclude />
17850 </member> 18873 </member>
17851 <member name="T:OpenMetaverse.Packets.ObjectExportSelectedPacket.ObjectDataBlock"> 18874 <member name="T:OpenMetaverse.Packets.ObjectExportSelectedPacket.ObjectDataBlock">
17852 <exclude/> 18875 <exclude />
17853 </member> 18876 </member>
17854 <member name="T:OpenMetaverse.Packets.ModifyLandPacket"> 18877 <member name="T:OpenMetaverse.Packets.ModifyLandPacket">
17855 <exclude/> 18878 <exclude />
17856 </member> 18879 </member>
17857 <member name="T:OpenMetaverse.Packets.ModifyLandPacket.AgentDataBlock"> 18880 <member name="T:OpenMetaverse.Packets.ModifyLandPacket.AgentDataBlock">
17858 <exclude/> 18881 <exclude />
17859 </member> 18882 </member>
17860 <member name="T:OpenMetaverse.Packets.ModifyLandPacket.ModifyBlockBlock"> 18883 <member name="T:OpenMetaverse.Packets.ModifyLandPacket.ModifyBlockBlock">
17861 <exclude/> 18884 <exclude />
17862 </member> 18885 </member>
17863 <member name="T:OpenMetaverse.Packets.ModifyLandPacket.ParcelDataBlock"> 18886 <member name="T:OpenMetaverse.Packets.ModifyLandPacket.ParcelDataBlock">
17864 <exclude/> 18887 <exclude />
17865 </member> 18888 </member>
17866 <member name="T:OpenMetaverse.Packets.ModifyLandPacket.ModifyBlockExtendedBlock"> 18889 <member name="T:OpenMetaverse.Packets.ModifyLandPacket.ModifyBlockExtendedBlock">
17867 <exclude/> 18890 <exclude />
17868 </member> 18891 </member>
17869 <member name="T:OpenMetaverse.Packets.VelocityInterpolateOnPacket"> 18892 <member name="T:OpenMetaverse.Packets.VelocityInterpolateOnPacket">
17870 <exclude/> 18893 <exclude />
17871 </member> 18894 </member>
17872 <member name="T:OpenMetaverse.Packets.VelocityInterpolateOnPacket.AgentDataBlock"> 18895 <member name="T:OpenMetaverse.Packets.VelocityInterpolateOnPacket.AgentDataBlock">
17873 <exclude/> 18896 <exclude />
17874 </member> 18897 </member>
17875 <member name="T:OpenMetaverse.Packets.VelocityInterpolateOffPacket"> 18898 <member name="T:OpenMetaverse.Packets.VelocityInterpolateOffPacket">
17876 <exclude/> 18899 <exclude />
17877 </member> 18900 </member>
17878 <member name="T:OpenMetaverse.Packets.VelocityInterpolateOffPacket.AgentDataBlock"> 18901 <member name="T:OpenMetaverse.Packets.VelocityInterpolateOffPacket.AgentDataBlock">
17879 <exclude/> 18902 <exclude />
17880 </member> 18903 </member>
17881 <member name="T:OpenMetaverse.Packets.StateSavePacket"> 18904 <member name="T:OpenMetaverse.Packets.StateSavePacket">
17882 <exclude/> 18905 <exclude />
17883 </member> 18906 </member>
17884 <member name="T:OpenMetaverse.Packets.StateSavePacket.AgentDataBlock"> 18907 <member name="T:OpenMetaverse.Packets.StateSavePacket.AgentDataBlock">
17885 <exclude/> 18908 <exclude />
17886 </member> 18909 </member>
17887 <member name="T:OpenMetaverse.Packets.StateSavePacket.DataBlockBlock"> 18910 <member name="T:OpenMetaverse.Packets.StateSavePacket.DataBlockBlock">
17888 <exclude/> 18911 <exclude />
17889 </member> 18912 </member>
17890 <member name="T:OpenMetaverse.Packets.ReportAutosaveCrashPacket"> 18913 <member name="T:OpenMetaverse.Packets.ReportAutosaveCrashPacket">
17891 <exclude/> 18914 <exclude />
17892 </member> 18915 </member>
17893 <member name="T:OpenMetaverse.Packets.ReportAutosaveCrashPacket.AutosaveDataBlock"> 18916 <member name="T:OpenMetaverse.Packets.ReportAutosaveCrashPacket.AutosaveDataBlock">
17894 <exclude/> 18917 <exclude />
17895 </member> 18918 </member>
17896 <member name="T:OpenMetaverse.Packets.SimWideDeletesPacket"> 18919 <member name="T:OpenMetaverse.Packets.SimWideDeletesPacket">
17897 <exclude/> 18920 <exclude />
17898 </member> 18921 </member>
17899 <member name="T:OpenMetaverse.Packets.SimWideDeletesPacket.AgentDataBlock"> 18922 <member name="T:OpenMetaverse.Packets.SimWideDeletesPacket.AgentDataBlock">
17900 <exclude/> 18923 <exclude />
17901 </member> 18924 </member>
17902 <member name="T:OpenMetaverse.Packets.SimWideDeletesPacket.DataBlockBlock"> 18925 <member name="T:OpenMetaverse.Packets.SimWideDeletesPacket.DataBlockBlock">
17903 <exclude/> 18926 <exclude />
17904 </member> 18927 </member>
17905 <member name="T:OpenMetaverse.Packets.TrackAgentPacket"> 18928 <member name="T:OpenMetaverse.Packets.TrackAgentPacket">
17906 <exclude/> 18929 <exclude />
17907 </member> 18930 </member>
17908 <member name="T:OpenMetaverse.Packets.TrackAgentPacket.AgentDataBlock"> 18931 <member name="T:OpenMetaverse.Packets.TrackAgentPacket.AgentDataBlock">
17909 <exclude/> 18932 <exclude />
17910 </member> 18933 </member>
17911 <member name="T:OpenMetaverse.Packets.TrackAgentPacket.TargetDataBlock"> 18934 <member name="T:OpenMetaverse.Packets.TrackAgentPacket.TargetDataBlock">
17912 <exclude/> 18935 <exclude />
17913 </member> 18936 </member>
17914 <member name="T:OpenMetaverse.Packets.ViewerStatsPacket"> 18937 <member name="T:OpenMetaverse.Packets.ViewerStatsPacket">
17915 <exclude/> 18938 <exclude />
17916 </member> 18939 </member>
17917 <member name="T:OpenMetaverse.Packets.ViewerStatsPacket.AgentDataBlock"> 18940 <member name="T:OpenMetaverse.Packets.ViewerStatsPacket.AgentDataBlock">
17918 <exclude/> 18941 <exclude />
17919 </member> 18942 </member>
17920 <member name="T:OpenMetaverse.Packets.ViewerStatsPacket.DownloadTotalsBlock"> 18943 <member name="T:OpenMetaverse.Packets.ViewerStatsPacket.DownloadTotalsBlock">
17921 <exclude/> 18944 <exclude />
17922 </member> 18945 </member>
17923 <member name="T:OpenMetaverse.Packets.ViewerStatsPacket.NetStatsBlock"> 18946 <member name="T:OpenMetaverse.Packets.ViewerStatsPacket.NetStatsBlock">
17924 <exclude/> 18947 <exclude />
17925 </member> 18948 </member>
17926 <member name="T:OpenMetaverse.Packets.ViewerStatsPacket.FailStatsBlock"> 18949 <member name="T:OpenMetaverse.Packets.ViewerStatsPacket.FailStatsBlock">
17927 <exclude/> 18950 <exclude />
17928 </member> 18951 </member>
17929 <member name="T:OpenMetaverse.Packets.ViewerStatsPacket.MiscStatsBlock"> 18952 <member name="T:OpenMetaverse.Packets.ViewerStatsPacket.MiscStatsBlock">
17930 <exclude/> 18953 <exclude />
17931 </member> 18954 </member>
17932 <member name="T:OpenMetaverse.Packets.ScriptAnswerYesPacket"> 18955 <member name="T:OpenMetaverse.Packets.ScriptAnswerYesPacket">
17933 <exclude/> 18956 <exclude />
17934 </member> 18957 </member>
17935 <member name="T:OpenMetaverse.Packets.ScriptAnswerYesPacket.AgentDataBlock"> 18958 <member name="T:OpenMetaverse.Packets.ScriptAnswerYesPacket.AgentDataBlock">
17936 <exclude/> 18959 <exclude />
17937 </member> 18960 </member>
17938 <member name="T:OpenMetaverse.Packets.ScriptAnswerYesPacket.DataBlock"> 18961 <member name="T:OpenMetaverse.Packets.ScriptAnswerYesPacket.DataBlock">
17939 <exclude/> 18962 <exclude />
17940 </member> 18963 </member>
17941 <member name="T:OpenMetaverse.Packets.UserReportPacket"> 18964 <member name="T:OpenMetaverse.Packets.UserReportPacket">
17942 <exclude/> 18965 <exclude />
17943 </member> 18966 </member>
17944 <member name="T:OpenMetaverse.Packets.UserReportPacket.AgentDataBlock"> 18967 <member name="T:OpenMetaverse.Packets.UserReportPacket.AgentDataBlock">
17945 <exclude/> 18968 <exclude />
17946 </member> 18969 </member>
17947 <member name="T:OpenMetaverse.Packets.UserReportPacket.ReportDataBlock"> 18970 <member name="T:OpenMetaverse.Packets.UserReportPacket.ReportDataBlock">
17948 <exclude/> 18971 <exclude />
17949 </member> 18972 </member>
17950 <member name="T:OpenMetaverse.Packets.AlertMessagePacket"> 18973 <member name="T:OpenMetaverse.Packets.AlertMessagePacket">
17951 <exclude/> 18974 <exclude />
17952 </member> 18975 </member>
17953 <member name="T:OpenMetaverse.Packets.AlertMessagePacket.AlertDataBlock"> 18976 <member name="T:OpenMetaverse.Packets.AlertMessagePacket.AlertDataBlock">
17954 <exclude/> 18977 <exclude />
17955 </member> 18978 </member>
17956 <member name="T:OpenMetaverse.Packets.AlertMessagePacket.AlertInfoBlock"> 18979 <member name="T:OpenMetaverse.Packets.AlertMessagePacket.AlertInfoBlock">
17957 <exclude/> 18980 <exclude />
17958 </member> 18981 </member>
17959 <member name="T:OpenMetaverse.Packets.AgentAlertMessagePacket"> 18982 <member name="T:OpenMetaverse.Packets.AgentAlertMessagePacket">
17960 <exclude/> 18983 <exclude />
17961 </member> 18984 </member>
17962 <member name="T:OpenMetaverse.Packets.AgentAlertMessagePacket.AgentDataBlock"> 18985 <member name="T:OpenMetaverse.Packets.AgentAlertMessagePacket.AgentDataBlock">
17963 <exclude/> 18986 <exclude />
17964 </member> 18987 </member>
17965 <member name="T:OpenMetaverse.Packets.AgentAlertMessagePacket.AlertDataBlock"> 18988 <member name="T:OpenMetaverse.Packets.AgentAlertMessagePacket.AlertDataBlock">
17966 <exclude/> 18989 <exclude />
17967 </member> 18990 </member>
17968 <member name="T:OpenMetaverse.Packets.MeanCollisionAlertPacket"> 18991 <member name="T:OpenMetaverse.Packets.MeanCollisionAlertPacket">
17969 <exclude/> 18992 <exclude />
17970 </member> 18993 </member>
17971 <member name="T:OpenMetaverse.Packets.MeanCollisionAlertPacket.MeanCollisionBlock"> 18994 <member name="T:OpenMetaverse.Packets.MeanCollisionAlertPacket.MeanCollisionBlock">
17972 <exclude/> 18995 <exclude />
17973 </member> 18996 </member>
17974 <member name="T:OpenMetaverse.Packets.ViewerFrozenMessagePacket"> 18997 <member name="T:OpenMetaverse.Packets.ViewerFrozenMessagePacket">
17975 <exclude/> 18998 <exclude />
17976 </member> 18999 </member>
17977 <member name="T:OpenMetaverse.Packets.ViewerFrozenMessagePacket.FrozenDataBlock"> 19000 <member name="T:OpenMetaverse.Packets.ViewerFrozenMessagePacket.FrozenDataBlock">
17978 <exclude/> 19001 <exclude />
17979 </member> 19002 </member>
17980 <member name="T:OpenMetaverse.Packets.HealthMessagePacket"> 19003 <member name="T:OpenMetaverse.Packets.HealthMessagePacket">
17981 <exclude/> 19004 <exclude />
17982 </member> 19005 </member>
17983 <member name="T:OpenMetaverse.Packets.HealthMessagePacket.HealthDataBlock"> 19006 <member name="T:OpenMetaverse.Packets.HealthMessagePacket.HealthDataBlock">
17984 <exclude/> 19007 <exclude />
17985 </member> 19008 </member>
17986 <member name="T:OpenMetaverse.Packets.ChatFromSimulatorPacket"> 19009 <member name="T:OpenMetaverse.Packets.ChatFromSimulatorPacket">
17987 <exclude/> 19010 <exclude />
17988 </member> 19011 </member>
17989 <member name="T:OpenMetaverse.Packets.ChatFromSimulatorPacket.ChatDataBlock"> 19012 <member name="T:OpenMetaverse.Packets.ChatFromSimulatorPacket.ChatDataBlock">
17990 <exclude/> 19013 <exclude />
17991 </member> 19014 </member>
17992 <member name="T:OpenMetaverse.Packets.SimStatsPacket"> 19015 <member name="T:OpenMetaverse.Packets.SimStatsPacket">
17993 <exclude/> 19016 <exclude />
17994 </member> 19017 </member>
17995 <member name="T:OpenMetaverse.Packets.SimStatsPacket.RegionBlock"> 19018 <member name="T:OpenMetaverse.Packets.SimStatsPacket.RegionBlock">
17996 <exclude/> 19019 <exclude />
17997 </member> 19020 </member>
17998 <member name="T:OpenMetaverse.Packets.SimStatsPacket.StatBlock"> 19021 <member name="T:OpenMetaverse.Packets.SimStatsPacket.StatBlock">
17999 <exclude/> 19022 <exclude />
18000 </member> 19023 </member>
18001 <member name="T:OpenMetaverse.Packets.SimStatsPacket.PidStatBlock"> 19024 <member name="T:OpenMetaverse.Packets.SimStatsPacket.PidStatBlock">
18002 <exclude/> 19025 <exclude />
18003 </member> 19026 </member>
18004 <member name="T:OpenMetaverse.Packets.RequestRegionInfoPacket"> 19027 <member name="T:OpenMetaverse.Packets.RequestRegionInfoPacket">
18005 <exclude/> 19028 <exclude />
18006 </member> 19029 </member>
18007 <member name="T:OpenMetaverse.Packets.RequestRegionInfoPacket.AgentDataBlock"> 19030 <member name="T:OpenMetaverse.Packets.RequestRegionInfoPacket.AgentDataBlock">
18008 <exclude/> 19031 <exclude />
18009 </member> 19032 </member>
18010 <member name="T:OpenMetaverse.Packets.RegionInfoPacket"> 19033 <member name="T:OpenMetaverse.Packets.RegionInfoPacket">
18011 <exclude/> 19034 <exclude />
18012 </member> 19035 </member>
18013 <member name="T:OpenMetaverse.Packets.RegionInfoPacket.AgentDataBlock"> 19036 <member name="T:OpenMetaverse.Packets.RegionInfoPacket.AgentDataBlock">
18014 <exclude/> 19037 <exclude />
18015 </member> 19038 </member>
18016 <member name="T:OpenMetaverse.Packets.RegionInfoPacket.RegionInfoBlock"> 19039 <member name="T:OpenMetaverse.Packets.RegionInfoPacket.RegionInfoBlock">
18017 <exclude/> 19040 <exclude />
18018 </member> 19041 </member>
18019 <member name="T:OpenMetaverse.Packets.RegionInfoPacket.RegionInfo2Block"> 19042 <member name="T:OpenMetaverse.Packets.RegionInfoPacket.RegionInfo2Block">
18020 <exclude/> 19043 <exclude />
18021 </member> 19044 </member>
18022 <member name="T:OpenMetaverse.Packets.GodUpdateRegionInfoPacket"> 19045 <member name="T:OpenMetaverse.Packets.GodUpdateRegionInfoPacket">
18023 <exclude/> 19046 <exclude />
18024 </member> 19047 </member>
18025 <member name="T:OpenMetaverse.Packets.GodUpdateRegionInfoPacket.AgentDataBlock"> 19048 <member name="T:OpenMetaverse.Packets.GodUpdateRegionInfoPacket.AgentDataBlock">
18026 <exclude/> 19049 <exclude />
18027 </member> 19050 </member>
18028 <member name="T:OpenMetaverse.Packets.GodUpdateRegionInfoPacket.RegionInfoBlock"> 19051 <member name="T:OpenMetaverse.Packets.GodUpdateRegionInfoPacket.RegionInfoBlock">
18029 <exclude/> 19052 <exclude />
18030 </member> 19053 </member>
18031 <member name="T:OpenMetaverse.Packets.RegionHandshakePacket"> 19054 <member name="T:OpenMetaverse.Packets.RegionHandshakePacket">
18032 <exclude/> 19055 <exclude />
18033 </member> 19056 </member>
18034 <member name="T:OpenMetaverse.Packets.RegionHandshakePacket.RegionInfoBlock"> 19057 <member name="T:OpenMetaverse.Packets.RegionHandshakePacket.RegionInfoBlock">
18035 <exclude/> 19058 <exclude />
18036 </member> 19059 </member>
18037 <member name="T:OpenMetaverse.Packets.RegionHandshakePacket.RegionInfo2Block"> 19060 <member name="T:OpenMetaverse.Packets.RegionHandshakePacket.RegionInfo2Block">
18038 <exclude/> 19061 <exclude />
18039 </member> 19062 </member>
18040 <member name="T:OpenMetaverse.Packets.RegionHandshakePacket.RegionInfo3Block"> 19063 <member name="T:OpenMetaverse.Packets.RegionHandshakePacket.RegionInfo3Block">
18041 <exclude/> 19064 <exclude />
18042 </member> 19065 </member>
18043 <member name="T:OpenMetaverse.Packets.RegionHandshakeReplyPacket"> 19066 <member name="T:OpenMetaverse.Packets.RegionHandshakeReplyPacket">
18044 <exclude/> 19067 <exclude />
18045 </member> 19068 </member>
18046 <member name="T:OpenMetaverse.Packets.RegionHandshakeReplyPacket.AgentDataBlock"> 19069 <member name="T:OpenMetaverse.Packets.RegionHandshakeReplyPacket.AgentDataBlock">
18047 <exclude/> 19070 <exclude />
18048 </member> 19071 </member>
18049 <member name="T:OpenMetaverse.Packets.RegionHandshakeReplyPacket.RegionInfoBlock"> 19072 <member name="T:OpenMetaverse.Packets.RegionHandshakeReplyPacket.RegionInfoBlock">
18050 <exclude/> 19073 <exclude />
18051 </member> 19074 </member>
18052 <member name="T:OpenMetaverse.Packets.SimulatorViewerTimeMessagePacket"> 19075 <member name="T:OpenMetaverse.Packets.SimulatorViewerTimeMessagePacket">
18053 <exclude/> 19076 <exclude />
18054 </member> 19077 </member>
18055 <member name="T:OpenMetaverse.Packets.SimulatorViewerTimeMessagePacket.TimeInfoBlock"> 19078 <member name="T:OpenMetaverse.Packets.SimulatorViewerTimeMessagePacket.TimeInfoBlock">
18056 <exclude/> 19079 <exclude />
18057 </member> 19080 </member>
18058 <member name="T:OpenMetaverse.Packets.EnableSimulatorPacket"> 19081 <member name="T:OpenMetaverse.Packets.EnableSimulatorPacket">
18059 <exclude/> 19082 <exclude />
18060 </member> 19083 </member>
18061 <member name="T:OpenMetaverse.Packets.EnableSimulatorPacket.SimulatorInfoBlock"> 19084 <member name="T:OpenMetaverse.Packets.EnableSimulatorPacket.SimulatorInfoBlock">
18062 <exclude/> 19085 <exclude />
18063 </member> 19086 </member>
18064 <member name="T:OpenMetaverse.Packets.DisableSimulatorPacket"> 19087 <member name="T:OpenMetaverse.Packets.DisableSimulatorPacket">
18065 <exclude/> 19088 <exclude />
18066 </member> 19089 </member>
18067 <member name="T:OpenMetaverse.Packets.TransferRequestPacket"> 19090 <member name="T:OpenMetaverse.Packets.TransferRequestPacket">
18068 <exclude/> 19091 <exclude />
18069 </member> 19092 </member>
18070 <member name="T:OpenMetaverse.Packets.TransferRequestPacket.TransferInfoBlock"> 19093 <member name="T:OpenMetaverse.Packets.TransferRequestPacket.TransferInfoBlock">
18071 <exclude/> 19094 <exclude />
18072 </member> 19095 </member>
18073 <member name="T:OpenMetaverse.Packets.TransferInfoPacket"> 19096 <member name="T:OpenMetaverse.Packets.TransferInfoPacket">
18074 <exclude/> 19097 <exclude />
18075 </member> 19098 </member>
18076 <member name="T:OpenMetaverse.Packets.TransferInfoPacket.TransferInfoBlock"> 19099 <member name="T:OpenMetaverse.Packets.TransferInfoPacket.TransferInfoBlock">
18077 <exclude/> 19100 <exclude />
18078 </member> 19101 </member>
18079 <member name="T:OpenMetaverse.Packets.TransferAbortPacket"> 19102 <member name="T:OpenMetaverse.Packets.TransferAbortPacket">
18080 <exclude/> 19103 <exclude />
18081 </member> 19104 </member>
18082 <member name="T:OpenMetaverse.Packets.TransferAbortPacket.TransferInfoBlock"> 19105 <member name="T:OpenMetaverse.Packets.TransferAbortPacket.TransferInfoBlock">
18083 <exclude/> 19106 <exclude />
18084 </member> 19107 </member>
18085 <member name="T:OpenMetaverse.Packets.RequestXferPacket"> 19108 <member name="T:OpenMetaverse.Packets.RequestXferPacket">
18086 <exclude/> 19109 <exclude />
18087 </member> 19110 </member>
18088 <member name="T:OpenMetaverse.Packets.RequestXferPacket.XferIDBlock"> 19111 <member name="T:OpenMetaverse.Packets.RequestXferPacket.XferIDBlock">
18089 <exclude/> 19112 <exclude />
18090 </member> 19113 </member>
18091 <member name="T:OpenMetaverse.Packets.AbortXferPacket"> 19114 <member name="T:OpenMetaverse.Packets.AbortXferPacket">
18092 <exclude/> 19115 <exclude />
18093 </member> 19116 </member>
18094 <member name="T:OpenMetaverse.Packets.AbortXferPacket.XferIDBlock"> 19117 <member name="T:OpenMetaverse.Packets.AbortXferPacket.XferIDBlock">
18095 <exclude/> 19118 <exclude />
18096 </member> 19119 </member>
18097 <member name="T:OpenMetaverse.Packets.AvatarAppearancePacket"> 19120 <member name="T:OpenMetaverse.Packets.AvatarAppearancePacket">
18098 <exclude/> 19121 <exclude />
18099 </member> 19122 </member>
18100 <member name="T:OpenMetaverse.Packets.AvatarAppearancePacket.SenderBlock"> 19123 <member name="T:OpenMetaverse.Packets.AvatarAppearancePacket.SenderBlock">
18101 <exclude/> 19124 <exclude />
18102 </member> 19125 </member>
18103 <member name="T:OpenMetaverse.Packets.AvatarAppearancePacket.ObjectDataBlock"> 19126 <member name="T:OpenMetaverse.Packets.AvatarAppearancePacket.ObjectDataBlock">
18104 <exclude/> 19127 <exclude />
18105 </member> 19128 </member>
18106 <member name="T:OpenMetaverse.Packets.AvatarAppearancePacket.VisualParamBlock"> 19129 <member name="T:OpenMetaverse.Packets.AvatarAppearancePacket.VisualParamBlock">
18107 <exclude/> 19130 <exclude />
18108 </member> 19131 </member>
18109 <member name="T:OpenMetaverse.Packets.SetFollowCamPropertiesPacket"> 19132 <member name="T:OpenMetaverse.Packets.SetFollowCamPropertiesPacket">
18110 <exclude/> 19133 <exclude />
18111 </member> 19134 </member>
18112 <member name="T:OpenMetaverse.Packets.SetFollowCamPropertiesPacket.ObjectDataBlock"> 19135 <member name="T:OpenMetaverse.Packets.SetFollowCamPropertiesPacket.ObjectDataBlock">
18113 <exclude/> 19136 <exclude />
18114 </member> 19137 </member>
18115 <member name="T:OpenMetaverse.Packets.SetFollowCamPropertiesPacket.CameraPropertyBlock"> 19138 <member name="T:OpenMetaverse.Packets.SetFollowCamPropertiesPacket.CameraPropertyBlock">
18116 <exclude/> 19139 <exclude />
18117 </member> 19140 </member>
18118 <member name="T:OpenMetaverse.Packets.ClearFollowCamPropertiesPacket"> 19141 <member name="T:OpenMetaverse.Packets.ClearFollowCamPropertiesPacket">
18119 <exclude/> 19142 <exclude />
18120 </member> 19143 </member>
18121 <member name="T:OpenMetaverse.Packets.ClearFollowCamPropertiesPacket.ObjectDataBlock"> 19144 <member name="T:OpenMetaverse.Packets.ClearFollowCamPropertiesPacket.ObjectDataBlock">
18122 <exclude/> 19145 <exclude />
18123 </member> 19146 </member>
18124 <member name="T:OpenMetaverse.Packets.RequestPayPricePacket"> 19147 <member name="T:OpenMetaverse.Packets.RequestPayPricePacket">
18125 <exclude/> 19148 <exclude />
18126 </member> 19149 </member>
18127 <member name="T:OpenMetaverse.Packets.RequestPayPricePacket.ObjectDataBlock"> 19150 <member name="T:OpenMetaverse.Packets.RequestPayPricePacket.ObjectDataBlock">
18128 <exclude/> 19151 <exclude />
18129 </member> 19152 </member>
18130 <member name="T:OpenMetaverse.Packets.PayPriceReplyPacket"> 19153 <member name="T:OpenMetaverse.Packets.PayPriceReplyPacket">
18131 <exclude/> 19154 <exclude />
18132 </member> 19155 </member>
18133 <member name="T:OpenMetaverse.Packets.PayPriceReplyPacket.ObjectDataBlock"> 19156 <member name="T:OpenMetaverse.Packets.PayPriceReplyPacket.ObjectDataBlock">
18134 <exclude/> 19157 <exclude />
18135 </member> 19158 </member>
18136 <member name="T:OpenMetaverse.Packets.PayPriceReplyPacket.ButtonDataBlock"> 19159 <member name="T:OpenMetaverse.Packets.PayPriceReplyPacket.ButtonDataBlock">
18137 <exclude/> 19160 <exclude />
18138 </member> 19161 </member>
18139 <member name="T:OpenMetaverse.Packets.KickUserPacket"> 19162 <member name="T:OpenMetaverse.Packets.KickUserPacket">
18140 <exclude/> 19163 <exclude />
18141 </member> 19164 </member>
18142 <member name="T:OpenMetaverse.Packets.KickUserPacket.TargetBlockBlock"> 19165 <member name="T:OpenMetaverse.Packets.KickUserPacket.TargetBlockBlock">
18143 <exclude/> 19166 <exclude />
18144 </member> 19167 </member>
18145 <member name="T:OpenMetaverse.Packets.KickUserPacket.UserInfoBlock"> 19168 <member name="T:OpenMetaverse.Packets.KickUserPacket.UserInfoBlock">
18146 <exclude/> 19169 <exclude />
18147 </member> 19170 </member>
18148 <member name="T:OpenMetaverse.Packets.GodKickUserPacket"> 19171 <member name="T:OpenMetaverse.Packets.GodKickUserPacket">
18149 <exclude/> 19172 <exclude />
18150 </member> 19173 </member>
18151 <member name="T:OpenMetaverse.Packets.GodKickUserPacket.UserInfoBlock"> 19174 <member name="T:OpenMetaverse.Packets.GodKickUserPacket.UserInfoBlock">
18152 <exclude/> 19175 <exclude />
18153 </member> 19176 </member>
18154 <member name="T:OpenMetaverse.Packets.EjectUserPacket"> 19177 <member name="T:OpenMetaverse.Packets.EjectUserPacket">
18155 <exclude/> 19178 <exclude />
18156 </member> 19179 </member>
18157 <member name="T:OpenMetaverse.Packets.EjectUserPacket.AgentDataBlock"> 19180 <member name="T:OpenMetaverse.Packets.EjectUserPacket.AgentDataBlock">
18158 <exclude/> 19181 <exclude />
18159 </member> 19182 </member>
18160 <member name="T:OpenMetaverse.Packets.EjectUserPacket.DataBlock"> 19183 <member name="T:OpenMetaverse.Packets.EjectUserPacket.DataBlock">
18161 <exclude/> 19184 <exclude />
18162 </member> 19185 </member>
18163 <member name="T:OpenMetaverse.Packets.FreezeUserPacket"> 19186 <member name="T:OpenMetaverse.Packets.FreezeUserPacket">
18164 <exclude/> 19187 <exclude />
18165 </member> 19188 </member>
18166 <member name="T:OpenMetaverse.Packets.FreezeUserPacket.AgentDataBlock"> 19189 <member name="T:OpenMetaverse.Packets.FreezeUserPacket.AgentDataBlock">
18167 <exclude/> 19190 <exclude />
18168 </member> 19191 </member>
18169 <member name="T:OpenMetaverse.Packets.FreezeUserPacket.DataBlock"> 19192 <member name="T:OpenMetaverse.Packets.FreezeUserPacket.DataBlock">
18170 <exclude/> 19193 <exclude />
18171 </member> 19194 </member>
18172 <member name="T:OpenMetaverse.Packets.AvatarPropertiesRequestPacket"> 19195 <member name="T:OpenMetaverse.Packets.AvatarPropertiesRequestPacket">
18173 <exclude/> 19196 <exclude />
18174 </member> 19197 </member>
18175 <member name="T:OpenMetaverse.Packets.AvatarPropertiesRequestPacket.AgentDataBlock"> 19198 <member name="T:OpenMetaverse.Packets.AvatarPropertiesRequestPacket.AgentDataBlock">
18176 <exclude/> 19199 <exclude />
18177 </member> 19200 </member>
18178 <member name="T:OpenMetaverse.Packets.AvatarPropertiesReplyPacket"> 19201 <member name="T:OpenMetaverse.Packets.AvatarPropertiesReplyPacket">
18179 <exclude/> 19202 <exclude />
18180 </member> 19203 </member>
18181 <member name="T:OpenMetaverse.Packets.AvatarPropertiesReplyPacket.AgentDataBlock"> 19204 <member name="T:OpenMetaverse.Packets.AvatarPropertiesReplyPacket.AgentDataBlock">
18182 <exclude/> 19205 <exclude />
18183 </member> 19206 </member>
18184 <member name="T:OpenMetaverse.Packets.AvatarPropertiesReplyPacket.PropertiesDataBlock"> 19207 <member name="T:OpenMetaverse.Packets.AvatarPropertiesReplyPacket.PropertiesDataBlock">
18185 <exclude/> 19208 <exclude />
18186 </member> 19209 </member>
18187 <member name="T:OpenMetaverse.Packets.AvatarInterestsReplyPacket"> 19210 <member name="T:OpenMetaverse.Packets.AvatarInterestsReplyPacket">
18188 <exclude/> 19211 <exclude />
18189 </member> 19212 </member>
18190 <member name="T:OpenMetaverse.Packets.AvatarInterestsReplyPacket.AgentDataBlock"> 19213 <member name="T:OpenMetaverse.Packets.AvatarInterestsReplyPacket.AgentDataBlock">
18191 <exclude/> 19214 <exclude />
18192 </member> 19215 </member>
18193 <member name="T:OpenMetaverse.Packets.AvatarInterestsReplyPacket.PropertiesDataBlock"> 19216 <member name="T:OpenMetaverse.Packets.AvatarInterestsReplyPacket.PropertiesDataBlock">
18194 <exclude/> 19217 <exclude />
18195 </member> 19218 </member>
18196 <member name="T:OpenMetaverse.Packets.AvatarGroupsReplyPacket"> 19219 <member name="T:OpenMetaverse.Packets.AvatarGroupsReplyPacket">
18197 <exclude/> 19220 <exclude />
18198 </member> 19221 </member>
18199 <member name="T:OpenMetaverse.Packets.AvatarGroupsReplyPacket.AgentDataBlock"> 19222 <member name="T:OpenMetaverse.Packets.AvatarGroupsReplyPacket.AgentDataBlock">
18200 <exclude/> 19223 <exclude />
18201 </member> 19224 </member>
18202 <member name="T:OpenMetaverse.Packets.AvatarGroupsReplyPacket.GroupDataBlock"> 19225 <member name="T:OpenMetaverse.Packets.AvatarGroupsReplyPacket.GroupDataBlock">
18203 <exclude/> 19226 <exclude />
18204 </member> 19227 </member>
18205 <member name="T:OpenMetaverse.Packets.AvatarGroupsReplyPacket.NewGroupDataBlock"> 19228 <member name="T:OpenMetaverse.Packets.AvatarGroupsReplyPacket.NewGroupDataBlock">
18206 <exclude/> 19229 <exclude />
18207 </member> 19230 </member>
18208 <member name="T:OpenMetaverse.Packets.AvatarPropertiesUpdatePacket"> 19231 <member name="T:OpenMetaverse.Packets.AvatarPropertiesUpdatePacket">
18209 <exclude/> 19232 <exclude />
18210 </member> 19233 </member>
18211 <member name="T:OpenMetaverse.Packets.AvatarPropertiesUpdatePacket.AgentDataBlock"> 19234 <member name="T:OpenMetaverse.Packets.AvatarPropertiesUpdatePacket.AgentDataBlock">
18212 <exclude/> 19235 <exclude />
18213 </member> 19236 </member>
18214 <member name="T:OpenMetaverse.Packets.AvatarPropertiesUpdatePacket.PropertiesDataBlock"> 19237 <member name="T:OpenMetaverse.Packets.AvatarPropertiesUpdatePacket.PropertiesDataBlock">
18215 <exclude/> 19238 <exclude />
18216 </member> 19239 </member>
18217 <member name="T:OpenMetaverse.Packets.AvatarInterestsUpdatePacket"> 19240 <member name="T:OpenMetaverse.Packets.AvatarInterestsUpdatePacket">
18218 <exclude/> 19241 <exclude />
18219 </member> 19242 </member>
18220 <member name="T:OpenMetaverse.Packets.AvatarInterestsUpdatePacket.AgentDataBlock"> 19243 <member name="T:OpenMetaverse.Packets.AvatarInterestsUpdatePacket.AgentDataBlock">
18221 <exclude/> 19244 <exclude />
18222 </member> 19245 </member>
18223 <member name="T:OpenMetaverse.Packets.AvatarInterestsUpdatePacket.PropertiesDataBlock"> 19246 <member name="T:OpenMetaverse.Packets.AvatarInterestsUpdatePacket.PropertiesDataBlock">
18224 <exclude/> 19247 <exclude />
18225 </member> 19248 </member>
18226 <member name="T:OpenMetaverse.Packets.AvatarNotesReplyPacket"> 19249 <member name="T:OpenMetaverse.Packets.AvatarNotesReplyPacket">
18227 <exclude/> 19250 <exclude />
18228 </member> 19251 </member>
18229 <member name="T:OpenMetaverse.Packets.AvatarNotesReplyPacket.AgentDataBlock"> 19252 <member name="T:OpenMetaverse.Packets.AvatarNotesReplyPacket.AgentDataBlock">
18230 <exclude/> 19253 <exclude />
18231 </member> 19254 </member>
18232 <member name="T:OpenMetaverse.Packets.AvatarNotesReplyPacket.DataBlock"> 19255 <member name="T:OpenMetaverse.Packets.AvatarNotesReplyPacket.DataBlock">
18233 <exclude/> 19256 <exclude />
18234 </member> 19257 </member>
18235 <member name="T:OpenMetaverse.Packets.AvatarNotesUpdatePacket"> 19258 <member name="T:OpenMetaverse.Packets.AvatarNotesUpdatePacket">
18236 <exclude/> 19259 <exclude />
18237 </member> 19260 </member>
18238 <member name="T:OpenMetaverse.Packets.AvatarNotesUpdatePacket.AgentDataBlock"> 19261 <member name="T:OpenMetaverse.Packets.AvatarNotesUpdatePacket.AgentDataBlock">
18239 <exclude/> 19262 <exclude />
18240 </member> 19263 </member>
18241 <member name="T:OpenMetaverse.Packets.AvatarNotesUpdatePacket.DataBlock"> 19264 <member name="T:OpenMetaverse.Packets.AvatarNotesUpdatePacket.DataBlock">
18242 <exclude/> 19265 <exclude />
18243 </member> 19266 </member>
18244 <member name="T:OpenMetaverse.Packets.AvatarPicksReplyPacket"> 19267 <member name="T:OpenMetaverse.Packets.AvatarPicksReplyPacket">
18245 <exclude/> 19268 <exclude />
18246 </member> 19269 </member>
18247 <member name="T:OpenMetaverse.Packets.AvatarPicksReplyPacket.AgentDataBlock"> 19270 <member name="T:OpenMetaverse.Packets.AvatarPicksReplyPacket.AgentDataBlock">
18248 <exclude/> 19271 <exclude />
18249 </member> 19272 </member>
18250 <member name="T:OpenMetaverse.Packets.AvatarPicksReplyPacket.DataBlock"> 19273 <member name="T:OpenMetaverse.Packets.AvatarPicksReplyPacket.DataBlock">
18251 <exclude/> 19274 <exclude />
18252 </member> 19275 </member>
18253 <member name="T:OpenMetaverse.Packets.EventInfoRequestPacket"> 19276 <member name="T:OpenMetaverse.Packets.EventInfoRequestPacket">
18254 <exclude/> 19277 <exclude />
18255 </member> 19278 </member>
18256 <member name="T:OpenMetaverse.Packets.EventInfoRequestPacket.AgentDataBlock"> 19279 <member name="T:OpenMetaverse.Packets.EventInfoRequestPacket.AgentDataBlock">
18257 <exclude/> 19280 <exclude />
18258 </member> 19281 </member>
18259 <member name="T:OpenMetaverse.Packets.EventInfoRequestPacket.EventDataBlock"> 19282 <member name="T:OpenMetaverse.Packets.EventInfoRequestPacket.EventDataBlock">
18260 <exclude/> 19283 <exclude />
18261 </member> 19284 </member>
18262 <member name="T:OpenMetaverse.Packets.EventInfoReplyPacket"> 19285 <member name="T:OpenMetaverse.Packets.EventInfoReplyPacket">
18263 <exclude/> 19286 <exclude />
18264 </member> 19287 </member>
18265 <member name="T:OpenMetaverse.Packets.EventInfoReplyPacket.AgentDataBlock"> 19288 <member name="T:OpenMetaverse.Packets.EventInfoReplyPacket.AgentDataBlock">
18266 <exclude/> 19289 <exclude />
18267 </member> 19290 </member>
18268 <member name="T:OpenMetaverse.Packets.EventInfoReplyPacket.EventDataBlock"> 19291 <member name="T:OpenMetaverse.Packets.EventInfoReplyPacket.EventDataBlock">
18269 <exclude/> 19292 <exclude />
18270 </member> 19293 </member>
18271 <member name="T:OpenMetaverse.Packets.EventNotificationAddRequestPacket"> 19294 <member name="T:OpenMetaverse.Packets.EventNotificationAddRequestPacket">
18272 <exclude/> 19295 <exclude />
18273 </member> 19296 </member>
18274 <member name="T:OpenMetaverse.Packets.EventNotificationAddRequestPacket.AgentDataBlock"> 19297 <member name="T:OpenMetaverse.Packets.EventNotificationAddRequestPacket.AgentDataBlock">
18275 <exclude/> 19298 <exclude />
18276 </member> 19299 </member>
18277 <member name="T:OpenMetaverse.Packets.EventNotificationAddRequestPacket.EventDataBlock"> 19300 <member name="T:OpenMetaverse.Packets.EventNotificationAddRequestPacket.EventDataBlock">
18278 <exclude/> 19301 <exclude />
18279 </member> 19302 </member>
18280 <member name="T:OpenMetaverse.Packets.EventNotificationRemoveRequestPacket"> 19303 <member name="T:OpenMetaverse.Packets.EventNotificationRemoveRequestPacket">
18281 <exclude/> 19304 <exclude />
18282 </member> 19305 </member>
18283 <member name="T:OpenMetaverse.Packets.EventNotificationRemoveRequestPacket.AgentDataBlock"> 19306 <member name="T:OpenMetaverse.Packets.EventNotificationRemoveRequestPacket.AgentDataBlock">
18284 <exclude/> 19307 <exclude />
18285 </member> 19308 </member>
18286 <member name="T:OpenMetaverse.Packets.EventNotificationRemoveRequestPacket.EventDataBlock"> 19309 <member name="T:OpenMetaverse.Packets.EventNotificationRemoveRequestPacket.EventDataBlock">
18287 <exclude/> 19310 <exclude />
18288 </member> 19311 </member>
18289 <member name="T:OpenMetaverse.Packets.EventGodDeletePacket"> 19312 <member name="T:OpenMetaverse.Packets.EventGodDeletePacket">
18290 <exclude/> 19313 <exclude />
18291 </member> 19314 </member>
18292 <member name="T:OpenMetaverse.Packets.EventGodDeletePacket.AgentDataBlock"> 19315 <member name="T:OpenMetaverse.Packets.EventGodDeletePacket.AgentDataBlock">
18293 <exclude/> 19316 <exclude />
18294 </member> 19317 </member>
18295 <member name="T:OpenMetaverse.Packets.EventGodDeletePacket.EventDataBlock"> 19318 <member name="T:OpenMetaverse.Packets.EventGodDeletePacket.EventDataBlock">
18296 <exclude/> 19319 <exclude />
18297 </member> 19320 </member>
18298 <member name="T:OpenMetaverse.Packets.EventGodDeletePacket.QueryDataBlock"> 19321 <member name="T:OpenMetaverse.Packets.EventGodDeletePacket.QueryDataBlock">
18299 <exclude/> 19322 <exclude />
18300 </member> 19323 </member>
18301 <member name="T:OpenMetaverse.Packets.PickInfoReplyPacket"> 19324 <member name="T:OpenMetaverse.Packets.PickInfoReplyPacket">
18302 <exclude/> 19325 <exclude />
18303 </member> 19326 </member>
18304 <member name="T:OpenMetaverse.Packets.PickInfoReplyPacket.AgentDataBlock"> 19327 <member name="T:OpenMetaverse.Packets.PickInfoReplyPacket.AgentDataBlock">
18305 <exclude/> 19328 <exclude />
18306 </member> 19329 </member>
18307 <member name="T:OpenMetaverse.Packets.PickInfoReplyPacket.DataBlock"> 19330 <member name="T:OpenMetaverse.Packets.PickInfoReplyPacket.DataBlock">
18308 <exclude/> 19331 <exclude />
18309 </member> 19332 </member>
18310 <member name="T:OpenMetaverse.Packets.PickInfoUpdatePacket"> 19333 <member name="T:OpenMetaverse.Packets.PickInfoUpdatePacket">
18311 <exclude/> 19334 <exclude />
18312 </member> 19335 </member>
18313 <member name="T:OpenMetaverse.Packets.PickInfoUpdatePacket.AgentDataBlock"> 19336 <member name="T:OpenMetaverse.Packets.PickInfoUpdatePacket.AgentDataBlock">
18314 <exclude/> 19337 <exclude />
18315 </member> 19338 </member>
18316 <member name="T:OpenMetaverse.Packets.PickInfoUpdatePacket.DataBlock"> 19339 <member name="T:OpenMetaverse.Packets.PickInfoUpdatePacket.DataBlock">
18317 <exclude/> 19340 <exclude />
18318 </member> 19341 </member>
18319 <member name="T:OpenMetaverse.Packets.PickDeletePacket"> 19342 <member name="T:OpenMetaverse.Packets.PickDeletePacket">
18320 <exclude/> 19343 <exclude />
18321 </member> 19344 </member>
18322 <member name="T:OpenMetaverse.Packets.PickDeletePacket.AgentDataBlock"> 19345 <member name="T:OpenMetaverse.Packets.PickDeletePacket.AgentDataBlock">
18323 <exclude/> 19346 <exclude />
18324 </member> 19347 </member>
18325 <member name="T:OpenMetaverse.Packets.PickDeletePacket.DataBlock"> 19348 <member name="T:OpenMetaverse.Packets.PickDeletePacket.DataBlock">
18326 <exclude/> 19349 <exclude />
18327 </member> 19350 </member>
18328 <member name="T:OpenMetaverse.Packets.PickGodDeletePacket"> 19351 <member name="T:OpenMetaverse.Packets.PickGodDeletePacket">
18329 <exclude/> 19352 <exclude />
18330 </member> 19353 </member>
18331 <member name="T:OpenMetaverse.Packets.PickGodDeletePacket.AgentDataBlock"> 19354 <member name="T:OpenMetaverse.Packets.PickGodDeletePacket.AgentDataBlock">
18332 <exclude/> 19355 <exclude />
18333 </member> 19356 </member>
18334 <member name="T:OpenMetaverse.Packets.PickGodDeletePacket.DataBlock"> 19357 <member name="T:OpenMetaverse.Packets.PickGodDeletePacket.DataBlock">
18335 <exclude/> 19358 <exclude />
18336 </member> 19359 </member>
18337 <member name="T:OpenMetaverse.Packets.ScriptQuestionPacket"> 19360 <member name="T:OpenMetaverse.Packets.ScriptQuestionPacket">
18338 <exclude/> 19361 <exclude />
18339 </member> 19362 </member>
18340 <member name="T:OpenMetaverse.Packets.ScriptQuestionPacket.DataBlock"> 19363 <member name="T:OpenMetaverse.Packets.ScriptQuestionPacket.DataBlock">
18341 <exclude/> 19364 <exclude />
18342 </member> 19365 </member>
18343 <member name="T:OpenMetaverse.Packets.ScriptControlChangePacket"> 19366 <member name="T:OpenMetaverse.Packets.ScriptControlChangePacket">
18344 <exclude/> 19367 <exclude />
18345 </member> 19368 </member>
18346 <member name="T:OpenMetaverse.Packets.ScriptControlChangePacket.DataBlock"> 19369 <member name="T:OpenMetaverse.Packets.ScriptControlChangePacket.DataBlock">
18347 <exclude/> 19370 <exclude />
18348 </member> 19371 </member>
18349 <member name="T:OpenMetaverse.Packets.ScriptDialogPacket"> 19372 <member name="T:OpenMetaverse.Packets.ScriptDialogPacket">
18350 <exclude/> 19373 <exclude />
18351 </member> 19374 </member>
18352 <member name="T:OpenMetaverse.Packets.ScriptDialogPacket.DataBlock"> 19375 <member name="T:OpenMetaverse.Packets.ScriptDialogPacket.DataBlock">
18353 <exclude/> 19376 <exclude />
18354 </member> 19377 </member>
18355 <member name="T:OpenMetaverse.Packets.ScriptDialogPacket.ButtonsBlock"> 19378 <member name="T:OpenMetaverse.Packets.ScriptDialogPacket.ButtonsBlock">
18356 <exclude/> 19379 <exclude />
19380 </member>
19381 <member name="T:OpenMetaverse.Packets.ScriptDialogPacket.OwnerDataBlock">
19382 <exclude />
18357 </member> 19383 </member>
18358 <member name="T:OpenMetaverse.Packets.ScriptDialogReplyPacket"> 19384 <member name="T:OpenMetaverse.Packets.ScriptDialogReplyPacket">
18359 <exclude/> 19385 <exclude />
18360 </member> 19386 </member>
18361 <member name="T:OpenMetaverse.Packets.ScriptDialogReplyPacket.AgentDataBlock"> 19387 <member name="T:OpenMetaverse.Packets.ScriptDialogReplyPacket.AgentDataBlock">
18362 <exclude/> 19388 <exclude />
18363 </member> 19389 </member>
18364 <member name="T:OpenMetaverse.Packets.ScriptDialogReplyPacket.DataBlock"> 19390 <member name="T:OpenMetaverse.Packets.ScriptDialogReplyPacket.DataBlock">
18365 <exclude/> 19391 <exclude />
18366 </member> 19392 </member>
18367 <member name="T:OpenMetaverse.Packets.ForceScriptControlReleasePacket"> 19393 <member name="T:OpenMetaverse.Packets.ForceScriptControlReleasePacket">
18368 <exclude/> 19394 <exclude />
18369 </member> 19395 </member>
18370 <member name="T:OpenMetaverse.Packets.ForceScriptControlReleasePacket.AgentDataBlock"> 19396 <member name="T:OpenMetaverse.Packets.ForceScriptControlReleasePacket.AgentDataBlock">
18371 <exclude/> 19397 <exclude />
18372 </member> 19398 </member>
18373 <member name="T:OpenMetaverse.Packets.RevokePermissionsPacket"> 19399 <member name="T:OpenMetaverse.Packets.RevokePermissionsPacket">
18374 <exclude/> 19400 <exclude />
18375 </member> 19401 </member>
18376 <member name="T:OpenMetaverse.Packets.RevokePermissionsPacket.AgentDataBlock"> 19402 <member name="T:OpenMetaverse.Packets.RevokePermissionsPacket.AgentDataBlock">
18377 <exclude/> 19403 <exclude />
18378 </member> 19404 </member>
18379 <member name="T:OpenMetaverse.Packets.RevokePermissionsPacket.DataBlock"> 19405 <member name="T:OpenMetaverse.Packets.RevokePermissionsPacket.DataBlock">
18380 <exclude/> 19406 <exclude />
18381 </member> 19407 </member>
18382 <member name="T:OpenMetaverse.Packets.LoadURLPacket"> 19408 <member name="T:OpenMetaverse.Packets.LoadURLPacket">
18383 <exclude/> 19409 <exclude />
18384 </member> 19410 </member>
18385 <member name="T:OpenMetaverse.Packets.LoadURLPacket.DataBlock"> 19411 <member name="T:OpenMetaverse.Packets.LoadURLPacket.DataBlock">
18386 <exclude/> 19412 <exclude />
18387 </member> 19413 </member>
18388 <member name="T:OpenMetaverse.Packets.ScriptTeleportRequestPacket"> 19414 <member name="T:OpenMetaverse.Packets.ScriptTeleportRequestPacket">
18389 <exclude/> 19415 <exclude />
18390 </member> 19416 </member>
18391 <member name="T:OpenMetaverse.Packets.ScriptTeleportRequestPacket.DataBlock"> 19417 <member name="T:OpenMetaverse.Packets.ScriptTeleportRequestPacket.DataBlock">
18392 <exclude/> 19418 <exclude />
18393 </member> 19419 </member>
18394 <member name="T:OpenMetaverse.Packets.ParcelOverlayPacket"> 19420 <member name="T:OpenMetaverse.Packets.ParcelOverlayPacket">
18395 <exclude/> 19421 <exclude />
18396 </member> 19422 </member>
18397 <member name="T:OpenMetaverse.Packets.ParcelOverlayPacket.ParcelDataBlock"> 19423 <member name="T:OpenMetaverse.Packets.ParcelOverlayPacket.ParcelDataBlock">
18398 <exclude/> 19424 <exclude />
18399 </member> 19425 </member>
18400 <member name="T:OpenMetaverse.Packets.ParcelPropertiesRequestByIDPacket"> 19426 <member name="T:OpenMetaverse.Packets.ParcelPropertiesRequestByIDPacket">
18401 <exclude/> 19427 <exclude />
18402 </member> 19428 </member>
18403 <member name="T:OpenMetaverse.Packets.ParcelPropertiesRequestByIDPacket.AgentDataBlock"> 19429 <member name="T:OpenMetaverse.Packets.ParcelPropertiesRequestByIDPacket.AgentDataBlock">
18404 <exclude/> 19430 <exclude />
18405 </member> 19431 </member>
18406 <member name="T:OpenMetaverse.Packets.ParcelPropertiesRequestByIDPacket.ParcelDataBlock"> 19432 <member name="T:OpenMetaverse.Packets.ParcelPropertiesRequestByIDPacket.ParcelDataBlock">
18407 <exclude/> 19433 <exclude />
18408 </member> 19434 </member>
18409 <member name="T:OpenMetaverse.Packets.ParcelPropertiesUpdatePacket"> 19435 <member name="T:OpenMetaverse.Packets.ParcelPropertiesUpdatePacket">
18410 <exclude/> 19436 <exclude />
18411 </member> 19437 </member>
18412 <member name="T:OpenMetaverse.Packets.ParcelPropertiesUpdatePacket.AgentDataBlock"> 19438 <member name="T:OpenMetaverse.Packets.ParcelPropertiesUpdatePacket.AgentDataBlock">
18413 <exclude/> 19439 <exclude />
18414 </member> 19440 </member>
18415 <member name="T:OpenMetaverse.Packets.ParcelPropertiesUpdatePacket.ParcelDataBlock"> 19441 <member name="T:OpenMetaverse.Packets.ParcelPropertiesUpdatePacket.ParcelDataBlock">
18416 <exclude/> 19442 <exclude />
18417 </member> 19443 </member>
18418 <member name="T:OpenMetaverse.Packets.ParcelReturnObjectsPacket"> 19444 <member name="T:OpenMetaverse.Packets.ParcelReturnObjectsPacket">
18419 <exclude/> 19445 <exclude />
18420 </member> 19446 </member>
18421 <member name="T:OpenMetaverse.Packets.ParcelReturnObjectsPacket.AgentDataBlock"> 19447 <member name="T:OpenMetaverse.Packets.ParcelReturnObjectsPacket.AgentDataBlock">
18422 <exclude/> 19448 <exclude />
18423 </member> 19449 </member>
18424 <member name="T:OpenMetaverse.Packets.ParcelReturnObjectsPacket.ParcelDataBlock"> 19450 <member name="T:OpenMetaverse.Packets.ParcelReturnObjectsPacket.ParcelDataBlock">
18425 <exclude/> 19451 <exclude />
18426 </member> 19452 </member>
18427 <member name="T:OpenMetaverse.Packets.ParcelReturnObjectsPacket.TaskIDsBlock"> 19453 <member name="T:OpenMetaverse.Packets.ParcelReturnObjectsPacket.TaskIDsBlock">
18428 <exclude/> 19454 <exclude />
18429 </member> 19455 </member>
18430 <member name="T:OpenMetaverse.Packets.ParcelReturnObjectsPacket.OwnerIDsBlock"> 19456 <member name="T:OpenMetaverse.Packets.ParcelReturnObjectsPacket.OwnerIDsBlock">
18431 <exclude/> 19457 <exclude />
18432 </member> 19458 </member>
18433 <member name="T:OpenMetaverse.Packets.ParcelSetOtherCleanTimePacket"> 19459 <member name="T:OpenMetaverse.Packets.ParcelSetOtherCleanTimePacket">
18434 <exclude/> 19460 <exclude />
18435 </member> 19461 </member>
18436 <member name="T:OpenMetaverse.Packets.ParcelSetOtherCleanTimePacket.AgentDataBlock"> 19462 <member name="T:OpenMetaverse.Packets.ParcelSetOtherCleanTimePacket.AgentDataBlock">
18437 <exclude/> 19463 <exclude />
18438 </member> 19464 </member>
18439 <member name="T:OpenMetaverse.Packets.ParcelSetOtherCleanTimePacket.ParcelDataBlock"> 19465 <member name="T:OpenMetaverse.Packets.ParcelSetOtherCleanTimePacket.ParcelDataBlock">
18440 <exclude/> 19466 <exclude />
18441 </member> 19467 </member>
18442 <member name="T:OpenMetaverse.Packets.ParcelDisableObjectsPacket"> 19468 <member name="T:OpenMetaverse.Packets.ParcelDisableObjectsPacket">
18443 <exclude/> 19469 <exclude />
18444 </member> 19470 </member>
18445 <member name="T:OpenMetaverse.Packets.ParcelDisableObjectsPacket.AgentDataBlock"> 19471 <member name="T:OpenMetaverse.Packets.ParcelDisableObjectsPacket.AgentDataBlock">
18446 <exclude/> 19472 <exclude />
18447 </member> 19473 </member>
18448 <member name="T:OpenMetaverse.Packets.ParcelDisableObjectsPacket.ParcelDataBlock"> 19474 <member name="T:OpenMetaverse.Packets.ParcelDisableObjectsPacket.ParcelDataBlock">
18449 <exclude/> 19475 <exclude />
18450 </member> 19476 </member>
18451 <member name="T:OpenMetaverse.Packets.ParcelDisableObjectsPacket.TaskIDsBlock"> 19477 <member name="T:OpenMetaverse.Packets.ParcelDisableObjectsPacket.TaskIDsBlock">
18452 <exclude/> 19478 <exclude />
18453 </member> 19479 </member>
18454 <member name="T:OpenMetaverse.Packets.ParcelDisableObjectsPacket.OwnerIDsBlock"> 19480 <member name="T:OpenMetaverse.Packets.ParcelDisableObjectsPacket.OwnerIDsBlock">
18455 <exclude/> 19481 <exclude />
18456 </member> 19482 </member>
18457 <member name="T:OpenMetaverse.Packets.ParcelSelectObjectsPacket"> 19483 <member name="T:OpenMetaverse.Packets.ParcelSelectObjectsPacket">
18458 <exclude/> 19484 <exclude />
18459 </member> 19485 </member>
18460 <member name="T:OpenMetaverse.Packets.ParcelSelectObjectsPacket.AgentDataBlock"> 19486 <member name="T:OpenMetaverse.Packets.ParcelSelectObjectsPacket.AgentDataBlock">
18461 <exclude/> 19487 <exclude />
18462 </member> 19488 </member>
18463 <member name="T:OpenMetaverse.Packets.ParcelSelectObjectsPacket.ParcelDataBlock"> 19489 <member name="T:OpenMetaverse.Packets.ParcelSelectObjectsPacket.ParcelDataBlock">
18464 <exclude/> 19490 <exclude />
18465 </member> 19491 </member>
18466 <member name="T:OpenMetaverse.Packets.ParcelSelectObjectsPacket.ReturnIDsBlock"> 19492 <member name="T:OpenMetaverse.Packets.ParcelSelectObjectsPacket.ReturnIDsBlock">
18467 <exclude/> 19493 <exclude />
18468 </member> 19494 </member>
18469 <member name="T:OpenMetaverse.Packets.EstateCovenantRequestPacket"> 19495 <member name="T:OpenMetaverse.Packets.EstateCovenantRequestPacket">
18470 <exclude/> 19496 <exclude />
18471 </member> 19497 </member>
18472 <member name="T:OpenMetaverse.Packets.EstateCovenantRequestPacket.AgentDataBlock"> 19498 <member name="T:OpenMetaverse.Packets.EstateCovenantRequestPacket.AgentDataBlock">
18473 <exclude/> 19499 <exclude />
18474 </member> 19500 </member>
18475 <member name="T:OpenMetaverse.Packets.EstateCovenantReplyPacket"> 19501 <member name="T:OpenMetaverse.Packets.EstateCovenantReplyPacket">
18476 <exclude/> 19502 <exclude />
18477 </member> 19503 </member>
18478 <member name="T:OpenMetaverse.Packets.EstateCovenantReplyPacket.DataBlock"> 19504 <member name="T:OpenMetaverse.Packets.EstateCovenantReplyPacket.DataBlock">
18479 <exclude/> 19505 <exclude />
18480 </member> 19506 </member>
18481 <member name="T:OpenMetaverse.Packets.ForceObjectSelectPacket"> 19507 <member name="T:OpenMetaverse.Packets.ForceObjectSelectPacket">
18482 <exclude/> 19508 <exclude />
18483 </member> 19509 </member>
18484 <member name="T:OpenMetaverse.Packets.ForceObjectSelectPacket.HeaderBlock"> 19510 <member name="T:OpenMetaverse.Packets.ForceObjectSelectPacket.HeaderBlock">
18485 <exclude/> 19511 <exclude />
18486 </member> 19512 </member>
18487 <member name="T:OpenMetaverse.Packets.ForceObjectSelectPacket.DataBlock"> 19513 <member name="T:OpenMetaverse.Packets.ForceObjectSelectPacket.DataBlock">
18488 <exclude/> 19514 <exclude />
18489 </member> 19515 </member>
18490 <member name="T:OpenMetaverse.Packets.ParcelBuyPassPacket"> 19516 <member name="T:OpenMetaverse.Packets.ParcelBuyPassPacket">
18491 <exclude/> 19517 <exclude />
18492 </member> 19518 </member>
18493 <member name="T:OpenMetaverse.Packets.ParcelBuyPassPacket.AgentDataBlock"> 19519 <member name="T:OpenMetaverse.Packets.ParcelBuyPassPacket.AgentDataBlock">
18494 <exclude/> 19520 <exclude />
18495 </member> 19521 </member>
18496 <member name="T:OpenMetaverse.Packets.ParcelBuyPassPacket.ParcelDataBlock"> 19522 <member name="T:OpenMetaverse.Packets.ParcelBuyPassPacket.ParcelDataBlock">
18497 <exclude/> 19523 <exclude />
18498 </member> 19524 </member>
18499 <member name="T:OpenMetaverse.Packets.ParcelDeedToGroupPacket"> 19525 <member name="T:OpenMetaverse.Packets.ParcelDeedToGroupPacket">
18500 <exclude/> 19526 <exclude />
18501 </member> 19527 </member>
18502 <member name="T:OpenMetaverse.Packets.ParcelDeedToGroupPacket.AgentDataBlock"> 19528 <member name="T:OpenMetaverse.Packets.ParcelDeedToGroupPacket.AgentDataBlock">
18503 <exclude/> 19529 <exclude />
18504 </member> 19530 </member>
18505 <member name="T:OpenMetaverse.Packets.ParcelDeedToGroupPacket.DataBlock"> 19531 <member name="T:OpenMetaverse.Packets.ParcelDeedToGroupPacket.DataBlock">
18506 <exclude/> 19532 <exclude />
18507 </member> 19533 </member>
18508 <member name="T:OpenMetaverse.Packets.ParcelReclaimPacket"> 19534 <member name="T:OpenMetaverse.Packets.ParcelReclaimPacket">
18509 <exclude/> 19535 <exclude />
18510 </member> 19536 </member>
18511 <member name="T:OpenMetaverse.Packets.ParcelReclaimPacket.AgentDataBlock"> 19537 <member name="T:OpenMetaverse.Packets.ParcelReclaimPacket.AgentDataBlock">
18512 <exclude/> 19538 <exclude />
18513 </member> 19539 </member>
18514 <member name="T:OpenMetaverse.Packets.ParcelReclaimPacket.DataBlock"> 19540 <member name="T:OpenMetaverse.Packets.ParcelReclaimPacket.DataBlock">
18515 <exclude/> 19541 <exclude />
18516 </member> 19542 </member>
18517 <member name="T:OpenMetaverse.Packets.ParcelClaimPacket"> 19543 <member name="T:OpenMetaverse.Packets.ParcelClaimPacket">
18518 <exclude/> 19544 <exclude />
18519 </member> 19545 </member>
18520 <member name="T:OpenMetaverse.Packets.ParcelClaimPacket.AgentDataBlock"> 19546 <member name="T:OpenMetaverse.Packets.ParcelClaimPacket.AgentDataBlock">
18521 <exclude/> 19547 <exclude />
18522 </member> 19548 </member>
18523 <member name="T:OpenMetaverse.Packets.ParcelClaimPacket.DataBlock"> 19549 <member name="T:OpenMetaverse.Packets.ParcelClaimPacket.DataBlock">
18524 <exclude/> 19550 <exclude />
18525 </member> 19551 </member>
18526 <member name="T:OpenMetaverse.Packets.ParcelClaimPacket.ParcelDataBlock"> 19552 <member name="T:OpenMetaverse.Packets.ParcelClaimPacket.ParcelDataBlock">
18527 <exclude/> 19553 <exclude />
18528 </member> 19554 </member>
18529 <member name="T:OpenMetaverse.Packets.ParcelJoinPacket"> 19555 <member name="T:OpenMetaverse.Packets.ParcelJoinPacket">
18530 <exclude/> 19556 <exclude />
18531 </member> 19557 </member>
18532 <member name="T:OpenMetaverse.Packets.ParcelJoinPacket.AgentDataBlock"> 19558 <member name="T:OpenMetaverse.Packets.ParcelJoinPacket.AgentDataBlock">
18533 <exclude/> 19559 <exclude />
18534 </member> 19560 </member>
18535 <member name="T:OpenMetaverse.Packets.ParcelJoinPacket.ParcelDataBlock"> 19561 <member name="T:OpenMetaverse.Packets.ParcelJoinPacket.ParcelDataBlock">
18536 <exclude/> 19562 <exclude />
18537 </member> 19563 </member>
18538 <member name="T:OpenMetaverse.Packets.ParcelDividePacket"> 19564 <member name="T:OpenMetaverse.Packets.ParcelDividePacket">
18539 <exclude/> 19565 <exclude />
18540 </member> 19566 </member>
18541 <member name="T:OpenMetaverse.Packets.ParcelDividePacket.AgentDataBlock"> 19567 <member name="T:OpenMetaverse.Packets.ParcelDividePacket.AgentDataBlock">
18542 <exclude/> 19568 <exclude />
18543 </member> 19569 </member>
18544 <member name="T:OpenMetaverse.Packets.ParcelDividePacket.ParcelDataBlock"> 19570 <member name="T:OpenMetaverse.Packets.ParcelDividePacket.ParcelDataBlock">
18545 <exclude/> 19571 <exclude />
18546 </member> 19572 </member>
18547 <member name="T:OpenMetaverse.Packets.ParcelReleasePacket"> 19573 <member name="T:OpenMetaverse.Packets.ParcelReleasePacket">
18548 <exclude/> 19574 <exclude />
18549 </member> 19575 </member>
18550 <member name="T:OpenMetaverse.Packets.ParcelReleasePacket.AgentDataBlock"> 19576 <member name="T:OpenMetaverse.Packets.ParcelReleasePacket.AgentDataBlock">
18551 <exclude/> 19577 <exclude />
18552 </member> 19578 </member>
18553 <member name="T:OpenMetaverse.Packets.ParcelReleasePacket.DataBlock"> 19579 <member name="T:OpenMetaverse.Packets.ParcelReleasePacket.DataBlock">
18554 <exclude/> 19580 <exclude />
18555 </member> 19581 </member>
18556 <member name="T:OpenMetaverse.Packets.ParcelBuyPacket"> 19582 <member name="T:OpenMetaverse.Packets.ParcelBuyPacket">
18557 <exclude/> 19583 <exclude />
18558 </member> 19584 </member>
18559 <member name="T:OpenMetaverse.Packets.ParcelBuyPacket.AgentDataBlock"> 19585 <member name="T:OpenMetaverse.Packets.ParcelBuyPacket.AgentDataBlock">
18560 <exclude/> 19586 <exclude />
18561 </member> 19587 </member>
18562 <member name="T:OpenMetaverse.Packets.ParcelBuyPacket.DataBlock"> 19588 <member name="T:OpenMetaverse.Packets.ParcelBuyPacket.DataBlock">
18563 <exclude/> 19589 <exclude />
18564 </member> 19590 </member>
18565 <member name="T:OpenMetaverse.Packets.ParcelBuyPacket.ParcelDataBlock"> 19591 <member name="T:OpenMetaverse.Packets.ParcelBuyPacket.ParcelDataBlock">
18566 <exclude/> 19592 <exclude />
18567 </member> 19593 </member>
18568 <member name="T:OpenMetaverse.Packets.ParcelGodForceOwnerPacket"> 19594 <member name="T:OpenMetaverse.Packets.ParcelGodForceOwnerPacket">
18569 <exclude/> 19595 <exclude />
18570 </member> 19596 </member>
18571 <member name="T:OpenMetaverse.Packets.ParcelGodForceOwnerPacket.AgentDataBlock"> 19597 <member name="T:OpenMetaverse.Packets.ParcelGodForceOwnerPacket.AgentDataBlock">
18572 <exclude/> 19598 <exclude />
18573 </member> 19599 </member>
18574 <member name="T:OpenMetaverse.Packets.ParcelGodForceOwnerPacket.DataBlock"> 19600 <member name="T:OpenMetaverse.Packets.ParcelGodForceOwnerPacket.DataBlock">
18575 <exclude/> 19601 <exclude />
18576 </member> 19602 </member>
18577 <member name="T:OpenMetaverse.Packets.ParcelAccessListRequestPacket"> 19603 <member name="T:OpenMetaverse.Packets.ParcelAccessListRequestPacket">
18578 <exclude/> 19604 <exclude />
18579 </member> 19605 </member>
18580 <member name="T:OpenMetaverse.Packets.ParcelAccessListRequestPacket.AgentDataBlock"> 19606 <member name="T:OpenMetaverse.Packets.ParcelAccessListRequestPacket.AgentDataBlock">
18581 <exclude/> 19607 <exclude />
18582 </member> 19608 </member>
18583 <member name="T:OpenMetaverse.Packets.ParcelAccessListRequestPacket.DataBlock"> 19609 <member name="T:OpenMetaverse.Packets.ParcelAccessListRequestPacket.DataBlock">
18584 <exclude/> 19610 <exclude />
18585 </member> 19611 </member>
18586 <member name="T:OpenMetaverse.Packets.ParcelAccessListReplyPacket"> 19612 <member name="T:OpenMetaverse.Packets.ParcelAccessListReplyPacket">
18587 <exclude/> 19613 <exclude />
18588 </member> 19614 </member>
18589 <member name="T:OpenMetaverse.Packets.ParcelAccessListReplyPacket.DataBlock"> 19615 <member name="T:OpenMetaverse.Packets.ParcelAccessListReplyPacket.DataBlock">
18590 <exclude/> 19616 <exclude />
18591 </member> 19617 </member>
18592 <member name="T:OpenMetaverse.Packets.ParcelAccessListReplyPacket.ListBlock"> 19618 <member name="T:OpenMetaverse.Packets.ParcelAccessListReplyPacket.ListBlock">
18593 <exclude/> 19619 <exclude />
18594 </member> 19620 </member>
18595 <member name="T:OpenMetaverse.Packets.ParcelAccessListUpdatePacket"> 19621 <member name="T:OpenMetaverse.Packets.ParcelAccessListUpdatePacket">
18596 <exclude/> 19622 <exclude />
18597 </member> 19623 </member>
18598 <member name="T:OpenMetaverse.Packets.ParcelAccessListUpdatePacket.AgentDataBlock"> 19624 <member name="T:OpenMetaverse.Packets.ParcelAccessListUpdatePacket.AgentDataBlock">
18599 <exclude/> 19625 <exclude />
18600 </member> 19626 </member>
18601 <member name="T:OpenMetaverse.Packets.ParcelAccessListUpdatePacket.DataBlock"> 19627 <member name="T:OpenMetaverse.Packets.ParcelAccessListUpdatePacket.DataBlock">
18602 <exclude/> 19628 <exclude />
18603 </member> 19629 </member>
18604 <member name="T:OpenMetaverse.Packets.ParcelAccessListUpdatePacket.ListBlock"> 19630 <member name="T:OpenMetaverse.Packets.ParcelAccessListUpdatePacket.ListBlock">
18605 <exclude/> 19631 <exclude />
18606 </member> 19632 </member>
18607 <member name="T:OpenMetaverse.Packets.ParcelDwellRequestPacket"> 19633 <member name="T:OpenMetaverse.Packets.ParcelDwellRequestPacket">
18608 <exclude/> 19634 <exclude />
18609 </member> 19635 </member>
18610 <member name="T:OpenMetaverse.Packets.ParcelDwellRequestPacket.AgentDataBlock"> 19636 <member name="T:OpenMetaverse.Packets.ParcelDwellRequestPacket.AgentDataBlock">
18611 <exclude/> 19637 <exclude />
18612 </member> 19638 </member>
18613 <member name="T:OpenMetaverse.Packets.ParcelDwellRequestPacket.DataBlock"> 19639 <member name="T:OpenMetaverse.Packets.ParcelDwellRequestPacket.DataBlock">
18614 <exclude/> 19640 <exclude />
18615 </member> 19641 </member>
18616 <member name="T:OpenMetaverse.Packets.ParcelDwellReplyPacket"> 19642 <member name="T:OpenMetaverse.Packets.ParcelDwellReplyPacket">
18617 <exclude/> 19643 <exclude />
18618 </member> 19644 </member>
18619 <member name="T:OpenMetaverse.Packets.ParcelDwellReplyPacket.AgentDataBlock"> 19645 <member name="T:OpenMetaverse.Packets.ParcelDwellReplyPacket.AgentDataBlock">
18620 <exclude/> 19646 <exclude />
18621 </member> 19647 </member>
18622 <member name="T:OpenMetaverse.Packets.ParcelDwellReplyPacket.DataBlock"> 19648 <member name="T:OpenMetaverse.Packets.ParcelDwellReplyPacket.DataBlock">
18623 <exclude/> 19649 <exclude />
18624 </member> 19650 </member>
18625 <member name="T:OpenMetaverse.Packets.ParcelGodMarkAsContentPacket"> 19651 <member name="T:OpenMetaverse.Packets.ParcelGodMarkAsContentPacket">
18626 <exclude/> 19652 <exclude />
18627 </member> 19653 </member>
18628 <member name="T:OpenMetaverse.Packets.ParcelGodMarkAsContentPacket.AgentDataBlock"> 19654 <member name="T:OpenMetaverse.Packets.ParcelGodMarkAsContentPacket.AgentDataBlock">
18629 <exclude/> 19655 <exclude />
18630 </member> 19656 </member>
18631 <member name="T:OpenMetaverse.Packets.ParcelGodMarkAsContentPacket.ParcelDataBlock"> 19657 <member name="T:OpenMetaverse.Packets.ParcelGodMarkAsContentPacket.ParcelDataBlock">
18632 <exclude/> 19658 <exclude />
18633 </member> 19659 </member>
18634 <member name="T:OpenMetaverse.Packets.ViewerStartAuctionPacket"> 19660 <member name="T:OpenMetaverse.Packets.ViewerStartAuctionPacket">
18635 <exclude/> 19661 <exclude />
18636 </member> 19662 </member>
18637 <member name="T:OpenMetaverse.Packets.ViewerStartAuctionPacket.AgentDataBlock"> 19663 <member name="T:OpenMetaverse.Packets.ViewerStartAuctionPacket.AgentDataBlock">
18638 <exclude/> 19664 <exclude />
18639 </member> 19665 </member>
18640 <member name="T:OpenMetaverse.Packets.ViewerStartAuctionPacket.ParcelDataBlock"> 19666 <member name="T:OpenMetaverse.Packets.ViewerStartAuctionPacket.ParcelDataBlock">
18641 <exclude/> 19667 <exclude />
18642 </member> 19668 </member>
18643 <member name="T:OpenMetaverse.Packets.UUIDNameRequestPacket"> 19669 <member name="T:OpenMetaverse.Packets.UUIDNameRequestPacket">
18644 <exclude/> 19670 <exclude />
18645 </member> 19671 </member>
18646 <member name="T:OpenMetaverse.Packets.UUIDNameRequestPacket.UUIDNameBlockBlock"> 19672 <member name="T:OpenMetaverse.Packets.UUIDNameRequestPacket.UUIDNameBlockBlock">
18647 <exclude/> 19673 <exclude />
18648 </member> 19674 </member>
18649 <member name="T:OpenMetaverse.Packets.UUIDNameReplyPacket"> 19675 <member name="T:OpenMetaverse.Packets.UUIDNameReplyPacket">
18650 <exclude/> 19676 <exclude />
18651 </member> 19677 </member>
18652 <member name="T:OpenMetaverse.Packets.UUIDNameReplyPacket.UUIDNameBlockBlock"> 19678 <member name="T:OpenMetaverse.Packets.UUIDNameReplyPacket.UUIDNameBlockBlock">
18653 <exclude/> 19679 <exclude />
18654 </member> 19680 </member>
18655 <member name="T:OpenMetaverse.Packets.UUIDGroupNameRequestPacket"> 19681 <member name="T:OpenMetaverse.Packets.UUIDGroupNameRequestPacket">
18656 <exclude/> 19682 <exclude />
18657 </member> 19683 </member>
18658 <member name="T:OpenMetaverse.Packets.UUIDGroupNameRequestPacket.UUIDNameBlockBlock"> 19684 <member name="T:OpenMetaverse.Packets.UUIDGroupNameRequestPacket.UUIDNameBlockBlock">
18659 <exclude/> 19685 <exclude />
18660 </member> 19686 </member>
18661 <member name="T:OpenMetaverse.Packets.UUIDGroupNameReplyPacket"> 19687 <member name="T:OpenMetaverse.Packets.UUIDGroupNameReplyPacket">
18662 <exclude/> 19688 <exclude />
18663 </member> 19689 </member>
18664 <member name="T:OpenMetaverse.Packets.UUIDGroupNameReplyPacket.UUIDNameBlockBlock"> 19690 <member name="T:OpenMetaverse.Packets.UUIDGroupNameReplyPacket.UUIDNameBlockBlock">
18665 <exclude/> 19691 <exclude />
18666 </member> 19692 </member>
18667 <member name="T:OpenMetaverse.Packets.ChildAgentDyingPacket"> 19693 <member name="T:OpenMetaverse.Packets.ChildAgentDyingPacket">
18668 <exclude/> 19694 <exclude />
18669 </member> 19695 </member>
18670 <member name="T:OpenMetaverse.Packets.ChildAgentDyingPacket.AgentDataBlock"> 19696 <member name="T:OpenMetaverse.Packets.ChildAgentDyingPacket.AgentDataBlock">
18671 <exclude/> 19697 <exclude />
18672 </member> 19698 </member>
18673 <member name="T:OpenMetaverse.Packets.ChildAgentUnknownPacket"> 19699 <member name="T:OpenMetaverse.Packets.ChildAgentUnknownPacket">
18674 <exclude/> 19700 <exclude />
18675 </member> 19701 </member>
18676 <member name="T:OpenMetaverse.Packets.ChildAgentUnknownPacket.AgentDataBlock"> 19702 <member name="T:OpenMetaverse.Packets.ChildAgentUnknownPacket.AgentDataBlock">
18677 <exclude/> 19703 <exclude />
18678 </member> 19704 </member>
18679 <member name="T:OpenMetaverse.Packets.GetScriptRunningPacket"> 19705 <member name="T:OpenMetaverse.Packets.GetScriptRunningPacket">
18680 <exclude/> 19706 <exclude />
18681 </member> 19707 </member>
18682 <member name="T:OpenMetaverse.Packets.GetScriptRunningPacket.ScriptBlock"> 19708 <member name="T:OpenMetaverse.Packets.GetScriptRunningPacket.ScriptBlock">
18683 <exclude/> 19709 <exclude />
18684 </member> 19710 </member>
18685 <member name="T:OpenMetaverse.Packets.ScriptRunningReplyPacket"> 19711 <member name="T:OpenMetaverse.Packets.ScriptRunningReplyPacket">
18686 <exclude/> 19712 <exclude />
18687 </member> 19713 </member>
18688 <member name="T:OpenMetaverse.Packets.ScriptRunningReplyPacket.ScriptBlock"> 19714 <member name="T:OpenMetaverse.Packets.ScriptRunningReplyPacket.ScriptBlock">
18689 <exclude/> 19715 <exclude />
18690 </member> 19716 </member>
18691 <member name="T:OpenMetaverse.Packets.SetScriptRunningPacket"> 19717 <member name="T:OpenMetaverse.Packets.SetScriptRunningPacket">
18692 <exclude/> 19718 <exclude />
18693 </member> 19719 </member>
18694 <member name="T:OpenMetaverse.Packets.SetScriptRunningPacket.AgentDataBlock"> 19720 <member name="T:OpenMetaverse.Packets.SetScriptRunningPacket.AgentDataBlock">
18695 <exclude/> 19721 <exclude />
18696 </member> 19722 </member>
18697 <member name="T:OpenMetaverse.Packets.SetScriptRunningPacket.ScriptBlock"> 19723 <member name="T:OpenMetaverse.Packets.SetScriptRunningPacket.ScriptBlock">
18698 <exclude/> 19724 <exclude />
18699 </member> 19725 </member>
18700 <member name="T:OpenMetaverse.Packets.ScriptResetPacket"> 19726 <member name="T:OpenMetaverse.Packets.ScriptResetPacket">
18701 <exclude/> 19727 <exclude />
18702 </member> 19728 </member>
18703 <member name="T:OpenMetaverse.Packets.ScriptResetPacket.AgentDataBlock"> 19729 <member name="T:OpenMetaverse.Packets.ScriptResetPacket.AgentDataBlock">
18704 <exclude/> 19730 <exclude />
18705 </member> 19731 </member>
18706 <member name="T:OpenMetaverse.Packets.ScriptResetPacket.ScriptBlock"> 19732 <member name="T:OpenMetaverse.Packets.ScriptResetPacket.ScriptBlock">
18707 <exclude/> 19733 <exclude />
18708 </member> 19734 </member>
18709 <member name="T:OpenMetaverse.Packets.ScriptSensorRequestPacket"> 19735 <member name="T:OpenMetaverse.Packets.ScriptSensorRequestPacket">
18710 <exclude/> 19736 <exclude />
18711 </member> 19737 </member>
18712 <member name="T:OpenMetaverse.Packets.ScriptSensorRequestPacket.RequesterBlock"> 19738 <member name="T:OpenMetaverse.Packets.ScriptSensorRequestPacket.RequesterBlock">
18713 <exclude/> 19739 <exclude />
18714 </member> 19740 </member>
18715 <member name="T:OpenMetaverse.Packets.ScriptSensorReplyPacket"> 19741 <member name="T:OpenMetaverse.Packets.ScriptSensorReplyPacket">
18716 <exclude/> 19742 <exclude />
18717 </member> 19743 </member>
18718 <member name="T:OpenMetaverse.Packets.ScriptSensorReplyPacket.RequesterBlock"> 19744 <member name="T:OpenMetaverse.Packets.ScriptSensorReplyPacket.RequesterBlock">
18719 <exclude/> 19745 <exclude />
18720 </member> 19746 </member>
18721 <member name="T:OpenMetaverse.Packets.ScriptSensorReplyPacket.SensedDataBlock"> 19747 <member name="T:OpenMetaverse.Packets.ScriptSensorReplyPacket.SensedDataBlock">
18722 <exclude/> 19748 <exclude />
18723 </member> 19749 </member>
18724 <member name="T:OpenMetaverse.Packets.CompleteAgentMovementPacket"> 19750 <member name="T:OpenMetaverse.Packets.CompleteAgentMovementPacket">
18725 <exclude/> 19751 <exclude />
18726 </member> 19752 </member>
18727 <member name="T:OpenMetaverse.Packets.CompleteAgentMovementPacket.AgentDataBlock"> 19753 <member name="T:OpenMetaverse.Packets.CompleteAgentMovementPacket.AgentDataBlock">
18728 <exclude/> 19754 <exclude />
18729 </member> 19755 </member>
18730 <member name="T:OpenMetaverse.Packets.AgentMovementCompletePacket"> 19756 <member name="T:OpenMetaverse.Packets.AgentMovementCompletePacket">
18731 <exclude/> 19757 <exclude />
18732 </member> 19758 </member>
18733 <member name="T:OpenMetaverse.Packets.AgentMovementCompletePacket.AgentDataBlock"> 19759 <member name="T:OpenMetaverse.Packets.AgentMovementCompletePacket.AgentDataBlock">
18734 <exclude/> 19760 <exclude />
18735 </member> 19761 </member>
18736 <member name="T:OpenMetaverse.Packets.AgentMovementCompletePacket.DataBlock"> 19762 <member name="T:OpenMetaverse.Packets.AgentMovementCompletePacket.DataBlock">
18737 <exclude/> 19763 <exclude />
18738 </member> 19764 </member>
18739 <member name="T:OpenMetaverse.Packets.AgentMovementCompletePacket.SimDataBlock"> 19765 <member name="T:OpenMetaverse.Packets.AgentMovementCompletePacket.SimDataBlock">
18740 <exclude/> 19766 <exclude />
18741 </member> 19767 </member>
18742 <member name="T:OpenMetaverse.Packets.LogoutRequestPacket"> 19768 <member name="T:OpenMetaverse.Packets.LogoutRequestPacket">
18743 <exclude/> 19769 <exclude />
18744 </member> 19770 </member>
18745 <member name="T:OpenMetaverse.Packets.LogoutRequestPacket.AgentDataBlock"> 19771 <member name="T:OpenMetaverse.Packets.LogoutRequestPacket.AgentDataBlock">
18746 <exclude/> 19772 <exclude />
18747 </member> 19773 </member>
18748 <member name="T:OpenMetaverse.Packets.LogoutReplyPacket"> 19774 <member name="T:OpenMetaverse.Packets.LogoutReplyPacket">
18749 <exclude/> 19775 <exclude />
18750 </member> 19776 </member>
18751 <member name="T:OpenMetaverse.Packets.LogoutReplyPacket.AgentDataBlock"> 19777 <member name="T:OpenMetaverse.Packets.LogoutReplyPacket.AgentDataBlock">
18752 <exclude/> 19778 <exclude />
18753 </member> 19779 </member>
18754 <member name="T:OpenMetaverse.Packets.LogoutReplyPacket.InventoryDataBlock"> 19780 <member name="T:OpenMetaverse.Packets.LogoutReplyPacket.InventoryDataBlock">
18755 <exclude/> 19781 <exclude />
18756 </member> 19782 </member>
18757 <member name="T:OpenMetaverse.Packets.ImprovedInstantMessagePacket"> 19783 <member name="T:OpenMetaverse.Packets.ImprovedInstantMessagePacket">
18758 <exclude/> 19784 <exclude />
18759 </member> 19785 </member>
18760 <member name="T:OpenMetaverse.Packets.ImprovedInstantMessagePacket.AgentDataBlock"> 19786 <member name="T:OpenMetaverse.Packets.ImprovedInstantMessagePacket.AgentDataBlock">
18761 <exclude/> 19787 <exclude />
18762 </member> 19788 </member>
18763 <member name="T:OpenMetaverse.Packets.ImprovedInstantMessagePacket.MessageBlockBlock"> 19789 <member name="T:OpenMetaverse.Packets.ImprovedInstantMessagePacket.MessageBlockBlock">
18764 <exclude/> 19790 <exclude />
18765 </member> 19791 </member>
18766 <member name="T:OpenMetaverse.Packets.RetrieveInstantMessagesPacket"> 19792 <member name="T:OpenMetaverse.Packets.RetrieveInstantMessagesPacket">
18767 <exclude/> 19793 <exclude />
18768 </member> 19794 </member>
18769 <member name="T:OpenMetaverse.Packets.RetrieveInstantMessagesPacket.AgentDataBlock"> 19795 <member name="T:OpenMetaverse.Packets.RetrieveInstantMessagesPacket.AgentDataBlock">
18770 <exclude/> 19796 <exclude />
18771 </member> 19797 </member>
18772 <member name="T:OpenMetaverse.Packets.FindAgentPacket"> 19798 <member name="T:OpenMetaverse.Packets.FindAgentPacket">
18773 <exclude/> 19799 <exclude />
18774 </member> 19800 </member>
18775 <member name="T:OpenMetaverse.Packets.FindAgentPacket.AgentBlockBlock"> 19801 <member name="T:OpenMetaverse.Packets.FindAgentPacket.AgentBlockBlock">
18776 <exclude/> 19802 <exclude />
18777 </member> 19803 </member>
18778 <member name="T:OpenMetaverse.Packets.FindAgentPacket.LocationBlockBlock"> 19804 <member name="T:OpenMetaverse.Packets.FindAgentPacket.LocationBlockBlock">
18779 <exclude/> 19805 <exclude />
18780 </member> 19806 </member>
18781 <member name="T:OpenMetaverse.Packets.RequestGodlikePowersPacket"> 19807 <member name="T:OpenMetaverse.Packets.RequestGodlikePowersPacket">
18782 <exclude/> 19808 <exclude />
18783 </member> 19809 </member>
18784 <member name="T:OpenMetaverse.Packets.RequestGodlikePowersPacket.AgentDataBlock"> 19810 <member name="T:OpenMetaverse.Packets.RequestGodlikePowersPacket.AgentDataBlock">
18785 <exclude/> 19811 <exclude />
18786 </member> 19812 </member>
18787 <member name="T:OpenMetaverse.Packets.RequestGodlikePowersPacket.RequestBlockBlock"> 19813 <member name="T:OpenMetaverse.Packets.RequestGodlikePowersPacket.RequestBlockBlock">
18788 <exclude/> 19814 <exclude />
18789 </member> 19815 </member>
18790 <member name="T:OpenMetaverse.Packets.GrantGodlikePowersPacket"> 19816 <member name="T:OpenMetaverse.Packets.GrantGodlikePowersPacket">
18791 <exclude/> 19817 <exclude />
18792 </member> 19818 </member>
18793 <member name="T:OpenMetaverse.Packets.GrantGodlikePowersPacket.AgentDataBlock"> 19819 <member name="T:OpenMetaverse.Packets.GrantGodlikePowersPacket.AgentDataBlock">
18794 <exclude/> 19820 <exclude />
18795 </member> 19821 </member>
18796 <member name="T:OpenMetaverse.Packets.GrantGodlikePowersPacket.GrantDataBlock"> 19822 <member name="T:OpenMetaverse.Packets.GrantGodlikePowersPacket.GrantDataBlock">
18797 <exclude/> 19823 <exclude />
18798 </member> 19824 </member>
18799 <member name="T:OpenMetaverse.Packets.GodlikeMessagePacket"> 19825 <member name="T:OpenMetaverse.Packets.GodlikeMessagePacket">
18800 <exclude/> 19826 <exclude />
18801 </member> 19827 </member>
18802 <member name="T:OpenMetaverse.Packets.GodlikeMessagePacket.AgentDataBlock"> 19828 <member name="T:OpenMetaverse.Packets.GodlikeMessagePacket.AgentDataBlock">
18803 <exclude/> 19829 <exclude />
18804 </member> 19830 </member>
18805 <member name="T:OpenMetaverse.Packets.GodlikeMessagePacket.MethodDataBlock"> 19831 <member name="T:OpenMetaverse.Packets.GodlikeMessagePacket.MethodDataBlock">
18806 <exclude/> 19832 <exclude />
18807 </member> 19833 </member>
18808 <member name="T:OpenMetaverse.Packets.GodlikeMessagePacket.ParamListBlock"> 19834 <member name="T:OpenMetaverse.Packets.GodlikeMessagePacket.ParamListBlock">
18809 <exclude/> 19835 <exclude />
18810 </member> 19836 </member>
18811 <member name="T:OpenMetaverse.Packets.EstateOwnerMessagePacket"> 19837 <member name="T:OpenMetaverse.Packets.EstateOwnerMessagePacket">
18812 <exclude/> 19838 <exclude />
18813 </member> 19839 </member>
18814 <member name="T:OpenMetaverse.Packets.EstateOwnerMessagePacket.AgentDataBlock"> 19840 <member name="T:OpenMetaverse.Packets.EstateOwnerMessagePacket.AgentDataBlock">
18815 <exclude/> 19841 <exclude />
18816 </member> 19842 </member>
18817 <member name="T:OpenMetaverse.Packets.EstateOwnerMessagePacket.MethodDataBlock"> 19843 <member name="T:OpenMetaverse.Packets.EstateOwnerMessagePacket.MethodDataBlock">
18818 <exclude/> 19844 <exclude />
18819 </member> 19845 </member>
18820 <member name="T:OpenMetaverse.Packets.EstateOwnerMessagePacket.ParamListBlock"> 19846 <member name="T:OpenMetaverse.Packets.EstateOwnerMessagePacket.ParamListBlock">
18821 <exclude/> 19847 <exclude />
18822 </member> 19848 </member>
18823 <member name="T:OpenMetaverse.Packets.GenericMessagePacket"> 19849 <member name="T:OpenMetaverse.Packets.GenericMessagePacket">
18824 <exclude/> 19850 <exclude />
18825 </member> 19851 </member>
18826 <member name="T:OpenMetaverse.Packets.GenericMessagePacket.AgentDataBlock"> 19852 <member name="T:OpenMetaverse.Packets.GenericMessagePacket.AgentDataBlock">
18827 <exclude/> 19853 <exclude />
18828 </member> 19854 </member>
18829 <member name="T:OpenMetaverse.Packets.GenericMessagePacket.MethodDataBlock"> 19855 <member name="T:OpenMetaverse.Packets.GenericMessagePacket.MethodDataBlock">
18830 <exclude/> 19856 <exclude />
18831 </member> 19857 </member>
18832 <member name="T:OpenMetaverse.Packets.GenericMessagePacket.ParamListBlock"> 19858 <member name="T:OpenMetaverse.Packets.GenericMessagePacket.ParamListBlock">
18833 <exclude/> 19859 <exclude />
18834 </member> 19860 </member>
18835 <member name="T:OpenMetaverse.Packets.MuteListRequestPacket"> 19861 <member name="T:OpenMetaverse.Packets.MuteListRequestPacket">
18836 <exclude/> 19862 <exclude />
18837 </member> 19863 </member>
18838 <member name="T:OpenMetaverse.Packets.MuteListRequestPacket.AgentDataBlock"> 19864 <member name="T:OpenMetaverse.Packets.MuteListRequestPacket.AgentDataBlock">
18839 <exclude/> 19865 <exclude />
18840 </member> 19866 </member>
18841 <member name="T:OpenMetaverse.Packets.MuteListRequestPacket.MuteDataBlock"> 19867 <member name="T:OpenMetaverse.Packets.MuteListRequestPacket.MuteDataBlock">
18842 <exclude/> 19868 <exclude />
18843 </member> 19869 </member>
18844 <member name="T:OpenMetaverse.Packets.UpdateMuteListEntryPacket"> 19870 <member name="T:OpenMetaverse.Packets.UpdateMuteListEntryPacket">
18845 <exclude/> 19871 <exclude />
18846 </member> 19872 </member>
18847 <member name="T:OpenMetaverse.Packets.UpdateMuteListEntryPacket.AgentDataBlock"> 19873 <member name="T:OpenMetaverse.Packets.UpdateMuteListEntryPacket.AgentDataBlock">
18848 <exclude/> 19874 <exclude />
18849 </member> 19875 </member>
18850 <member name="T:OpenMetaverse.Packets.UpdateMuteListEntryPacket.MuteDataBlock"> 19876 <member name="T:OpenMetaverse.Packets.UpdateMuteListEntryPacket.MuteDataBlock">
18851 <exclude/> 19877 <exclude />
18852 </member> 19878 </member>
18853 <member name="T:OpenMetaverse.Packets.RemoveMuteListEntryPacket"> 19879 <member name="T:OpenMetaverse.Packets.RemoveMuteListEntryPacket">
18854 <exclude/> 19880 <exclude />
18855 </member> 19881 </member>
18856 <member name="T:OpenMetaverse.Packets.RemoveMuteListEntryPacket.AgentDataBlock"> 19882 <member name="T:OpenMetaverse.Packets.RemoveMuteListEntryPacket.AgentDataBlock">
18857 <exclude/> 19883 <exclude />
18858 </member> 19884 </member>
18859 <member name="T:OpenMetaverse.Packets.RemoveMuteListEntryPacket.MuteDataBlock"> 19885 <member name="T:OpenMetaverse.Packets.RemoveMuteListEntryPacket.MuteDataBlock">
18860 <exclude/> 19886 <exclude />
18861 </member> 19887 </member>
18862 <member name="T:OpenMetaverse.Packets.CopyInventoryFromNotecardPacket"> 19888 <member name="T:OpenMetaverse.Packets.CopyInventoryFromNotecardPacket">
18863 <exclude/> 19889 <exclude />
18864 </member> 19890 </member>
18865 <member name="T:OpenMetaverse.Packets.CopyInventoryFromNotecardPacket.AgentDataBlock"> 19891 <member name="T:OpenMetaverse.Packets.CopyInventoryFromNotecardPacket.AgentDataBlock">
18866 <exclude/> 19892 <exclude />
18867 </member> 19893 </member>
18868 <member name="T:OpenMetaverse.Packets.CopyInventoryFromNotecardPacket.NotecardDataBlock"> 19894 <member name="T:OpenMetaverse.Packets.CopyInventoryFromNotecardPacket.NotecardDataBlock">
18869 <exclude/> 19895 <exclude />
18870 </member> 19896 </member>
18871 <member name="T:OpenMetaverse.Packets.CopyInventoryFromNotecardPacket.InventoryDataBlock"> 19897 <member name="T:OpenMetaverse.Packets.CopyInventoryFromNotecardPacket.InventoryDataBlock">
18872 <exclude/> 19898 <exclude />
18873 </member> 19899 </member>
18874 <member name="T:OpenMetaverse.Packets.UpdateInventoryItemPacket"> 19900 <member name="T:OpenMetaverse.Packets.UpdateInventoryItemPacket">
18875 <exclude/> 19901 <exclude />
18876 </member> 19902 </member>
18877 <member name="T:OpenMetaverse.Packets.UpdateInventoryItemPacket.AgentDataBlock"> 19903 <member name="T:OpenMetaverse.Packets.UpdateInventoryItemPacket.AgentDataBlock">
18878 <exclude/> 19904 <exclude />
18879 </member> 19905 </member>
18880 <member name="T:OpenMetaverse.Packets.UpdateInventoryItemPacket.InventoryDataBlock"> 19906 <member name="T:OpenMetaverse.Packets.UpdateInventoryItemPacket.InventoryDataBlock">
18881 <exclude/> 19907 <exclude />
18882 </member> 19908 </member>
18883 <member name="T:OpenMetaverse.Packets.UpdateCreateInventoryItemPacket"> 19909 <member name="T:OpenMetaverse.Packets.UpdateCreateInventoryItemPacket">
18884 <exclude/> 19910 <exclude />
18885 </member> 19911 </member>
18886 <member name="T:OpenMetaverse.Packets.UpdateCreateInventoryItemPacket.AgentDataBlock"> 19912 <member name="T:OpenMetaverse.Packets.UpdateCreateInventoryItemPacket.AgentDataBlock">
18887 <exclude/> 19913 <exclude />
18888 </member> 19914 </member>
18889 <member name="T:OpenMetaverse.Packets.UpdateCreateInventoryItemPacket.InventoryDataBlock"> 19915 <member name="T:OpenMetaverse.Packets.UpdateCreateInventoryItemPacket.InventoryDataBlock">
18890 <exclude/> 19916 <exclude />
18891 </member> 19917 </member>
18892 <member name="T:OpenMetaverse.Packets.MoveInventoryItemPacket"> 19918 <member name="T:OpenMetaverse.Packets.MoveInventoryItemPacket">
18893 <exclude/> 19919 <exclude />
18894 </member> 19920 </member>
18895 <member name="T:OpenMetaverse.Packets.MoveInventoryItemPacket.AgentDataBlock"> 19921 <member name="T:OpenMetaverse.Packets.MoveInventoryItemPacket.AgentDataBlock">
18896 <exclude/> 19922 <exclude />
18897 </member> 19923 </member>
18898 <member name="T:OpenMetaverse.Packets.MoveInventoryItemPacket.InventoryDataBlock"> 19924 <member name="T:OpenMetaverse.Packets.MoveInventoryItemPacket.InventoryDataBlock">
18899 <exclude/> 19925 <exclude />
18900 </member> 19926 </member>
18901 <member name="T:OpenMetaverse.Packets.CopyInventoryItemPacket"> 19927 <member name="T:OpenMetaverse.Packets.CopyInventoryItemPacket">
18902 <exclude/> 19928 <exclude />
18903 </member> 19929 </member>
18904 <member name="T:OpenMetaverse.Packets.CopyInventoryItemPacket.AgentDataBlock"> 19930 <member name="T:OpenMetaverse.Packets.CopyInventoryItemPacket.AgentDataBlock">
18905 <exclude/> 19931 <exclude />
18906 </member> 19932 </member>
18907 <member name="T:OpenMetaverse.Packets.CopyInventoryItemPacket.InventoryDataBlock"> 19933 <member name="T:OpenMetaverse.Packets.CopyInventoryItemPacket.InventoryDataBlock">
18908 <exclude/> 19934 <exclude />
18909 </member> 19935 </member>
18910 <member name="T:OpenMetaverse.Packets.RemoveInventoryItemPacket"> 19936 <member name="T:OpenMetaverse.Packets.RemoveInventoryItemPacket">
18911 <exclude/> 19937 <exclude />
18912 </member> 19938 </member>
18913 <member name="T:OpenMetaverse.Packets.RemoveInventoryItemPacket.AgentDataBlock"> 19939 <member name="T:OpenMetaverse.Packets.RemoveInventoryItemPacket.AgentDataBlock">
18914 <exclude/> 19940 <exclude />
18915 </member> 19941 </member>
18916 <member name="T:OpenMetaverse.Packets.RemoveInventoryItemPacket.InventoryDataBlock"> 19942 <member name="T:OpenMetaverse.Packets.RemoveInventoryItemPacket.InventoryDataBlock">
18917 <exclude/> 19943 <exclude />
18918 </member> 19944 </member>
18919 <member name="T:OpenMetaverse.Packets.ChangeInventoryItemFlagsPacket"> 19945 <member name="T:OpenMetaverse.Packets.ChangeInventoryItemFlagsPacket">
18920 <exclude/> 19946 <exclude />
18921 </member> 19947 </member>
18922 <member name="T:OpenMetaverse.Packets.ChangeInventoryItemFlagsPacket.AgentDataBlock"> 19948 <member name="T:OpenMetaverse.Packets.ChangeInventoryItemFlagsPacket.AgentDataBlock">
18923 <exclude/> 19949 <exclude />
18924 </member> 19950 </member>
18925 <member name="T:OpenMetaverse.Packets.ChangeInventoryItemFlagsPacket.InventoryDataBlock"> 19951 <member name="T:OpenMetaverse.Packets.ChangeInventoryItemFlagsPacket.InventoryDataBlock">
18926 <exclude/> 19952 <exclude />
18927 </member> 19953 </member>
18928 <member name="T:OpenMetaverse.Packets.SaveAssetIntoInventoryPacket"> 19954 <member name="T:OpenMetaverse.Packets.SaveAssetIntoInventoryPacket">
18929 <exclude/> 19955 <exclude />
18930 </member> 19956 </member>
18931 <member name="T:OpenMetaverse.Packets.SaveAssetIntoInventoryPacket.AgentDataBlock"> 19957 <member name="T:OpenMetaverse.Packets.SaveAssetIntoInventoryPacket.AgentDataBlock">
18932 <exclude/> 19958 <exclude />
18933 </member> 19959 </member>
18934 <member name="T:OpenMetaverse.Packets.SaveAssetIntoInventoryPacket.InventoryDataBlock"> 19960 <member name="T:OpenMetaverse.Packets.SaveAssetIntoInventoryPacket.InventoryDataBlock">
18935 <exclude/> 19961 <exclude />
18936 </member> 19962 </member>
18937 <member name="T:OpenMetaverse.Packets.CreateInventoryFolderPacket"> 19963 <member name="T:OpenMetaverse.Packets.CreateInventoryFolderPacket">
18938 <exclude/> 19964 <exclude />
18939 </member> 19965 </member>
18940 <member name="T:OpenMetaverse.Packets.CreateInventoryFolderPacket.AgentDataBlock"> 19966 <member name="T:OpenMetaverse.Packets.CreateInventoryFolderPacket.AgentDataBlock">
18941 <exclude/> 19967 <exclude />
18942 </member> 19968 </member>
18943 <member name="T:OpenMetaverse.Packets.CreateInventoryFolderPacket.FolderDataBlock"> 19969 <member name="T:OpenMetaverse.Packets.CreateInventoryFolderPacket.FolderDataBlock">
18944 <exclude/> 19970 <exclude />
18945 </member> 19971 </member>
18946 <member name="T:OpenMetaverse.Packets.UpdateInventoryFolderPacket"> 19972 <member name="T:OpenMetaverse.Packets.UpdateInventoryFolderPacket">
18947 <exclude/> 19973 <exclude />
18948 </member> 19974 </member>
18949 <member name="T:OpenMetaverse.Packets.UpdateInventoryFolderPacket.AgentDataBlock"> 19975 <member name="T:OpenMetaverse.Packets.UpdateInventoryFolderPacket.AgentDataBlock">
18950 <exclude/> 19976 <exclude />
18951 </member> 19977 </member>
18952 <member name="T:OpenMetaverse.Packets.UpdateInventoryFolderPacket.FolderDataBlock"> 19978 <member name="T:OpenMetaverse.Packets.UpdateInventoryFolderPacket.FolderDataBlock">
18953 <exclude/> 19979 <exclude />
18954 </member> 19980 </member>
18955 <member name="T:OpenMetaverse.Packets.MoveInventoryFolderPacket"> 19981 <member name="T:OpenMetaverse.Packets.MoveInventoryFolderPacket">
18956 <exclude/> 19982 <exclude />
18957 </member> 19983 </member>
18958 <member name="T:OpenMetaverse.Packets.MoveInventoryFolderPacket.AgentDataBlock"> 19984 <member name="T:OpenMetaverse.Packets.MoveInventoryFolderPacket.AgentDataBlock">
18959 <exclude/> 19985 <exclude />
18960 </member> 19986 </member>
18961 <member name="T:OpenMetaverse.Packets.MoveInventoryFolderPacket.InventoryDataBlock"> 19987 <member name="T:OpenMetaverse.Packets.MoveInventoryFolderPacket.InventoryDataBlock">
18962 <exclude/> 19988 <exclude />
18963 </member> 19989 </member>
18964 <member name="T:OpenMetaverse.Packets.RemoveInventoryFolderPacket"> 19990 <member name="T:OpenMetaverse.Packets.RemoveInventoryFolderPacket">
18965 <exclude/> 19991 <exclude />
18966 </member> 19992 </member>
18967 <member name="T:OpenMetaverse.Packets.RemoveInventoryFolderPacket.AgentDataBlock"> 19993 <member name="T:OpenMetaverse.Packets.RemoveInventoryFolderPacket.AgentDataBlock">
18968 <exclude/> 19994 <exclude />
18969 </member> 19995 </member>
18970 <member name="T:OpenMetaverse.Packets.RemoveInventoryFolderPacket.FolderDataBlock"> 19996 <member name="T:OpenMetaverse.Packets.RemoveInventoryFolderPacket.FolderDataBlock">
18971 <exclude/> 19997 <exclude />
18972 </member> 19998 </member>
18973 <member name="T:OpenMetaverse.Packets.FetchInventoryDescendentsPacket"> 19999 <member name="T:OpenMetaverse.Packets.FetchInventoryDescendentsPacket">
18974 <exclude/> 20000 <exclude />
18975 </member> 20001 </member>
18976 <member name="T:OpenMetaverse.Packets.FetchInventoryDescendentsPacket.AgentDataBlock"> 20002 <member name="T:OpenMetaverse.Packets.FetchInventoryDescendentsPacket.AgentDataBlock">
18977 <exclude/> 20003 <exclude />
18978 </member> 20004 </member>
18979 <member name="T:OpenMetaverse.Packets.FetchInventoryDescendentsPacket.InventoryDataBlock"> 20005 <member name="T:OpenMetaverse.Packets.FetchInventoryDescendentsPacket.InventoryDataBlock">
18980 <exclude/> 20006 <exclude />
18981 </member> 20007 </member>
18982 <member name="T:OpenMetaverse.Packets.InventoryDescendentsPacket"> 20008 <member name="T:OpenMetaverse.Packets.InventoryDescendentsPacket">
18983 <exclude/> 20009 <exclude />
18984 </member> 20010 </member>
18985 <member name="T:OpenMetaverse.Packets.InventoryDescendentsPacket.AgentDataBlock"> 20011 <member name="T:OpenMetaverse.Packets.InventoryDescendentsPacket.AgentDataBlock">
18986 <exclude/> 20012 <exclude />
18987 </member> 20013 </member>
18988 <member name="T:OpenMetaverse.Packets.InventoryDescendentsPacket.FolderDataBlock"> 20014 <member name="T:OpenMetaverse.Packets.InventoryDescendentsPacket.FolderDataBlock">
18989 <exclude/> 20015 <exclude />
18990 </member> 20016 </member>
18991 <member name="T:OpenMetaverse.Packets.InventoryDescendentsPacket.ItemDataBlock"> 20017 <member name="T:OpenMetaverse.Packets.InventoryDescendentsPacket.ItemDataBlock">
18992 <exclude/> 20018 <exclude />
18993 </member> 20019 </member>
18994 <member name="T:OpenMetaverse.Packets.FetchInventoryPacket"> 20020 <member name="T:OpenMetaverse.Packets.FetchInventoryPacket">
18995 <exclude/> 20021 <exclude />
18996 </member> 20022 </member>
18997 <member name="T:OpenMetaverse.Packets.FetchInventoryPacket.AgentDataBlock"> 20023 <member name="T:OpenMetaverse.Packets.FetchInventoryPacket.AgentDataBlock">
18998 <exclude/> 20024 <exclude />
18999 </member> 20025 </member>
19000 <member name="T:OpenMetaverse.Packets.FetchInventoryPacket.InventoryDataBlock"> 20026 <member name="T:OpenMetaverse.Packets.FetchInventoryPacket.InventoryDataBlock">
19001 <exclude/> 20027 <exclude />
19002 </member> 20028 </member>
19003 <member name="T:OpenMetaverse.Packets.FetchInventoryReplyPacket"> 20029 <member name="T:OpenMetaverse.Packets.FetchInventoryReplyPacket">
19004 <exclude/> 20030 <exclude />
19005 </member> 20031 </member>
19006 <member name="T:OpenMetaverse.Packets.FetchInventoryReplyPacket.AgentDataBlock"> 20032 <member name="T:OpenMetaverse.Packets.FetchInventoryReplyPacket.AgentDataBlock">
19007 <exclude/> 20033 <exclude />
19008 </member> 20034 </member>
19009 <member name="T:OpenMetaverse.Packets.FetchInventoryReplyPacket.InventoryDataBlock"> 20035 <member name="T:OpenMetaverse.Packets.FetchInventoryReplyPacket.InventoryDataBlock">
19010 <exclude/> 20036 <exclude />
19011 </member> 20037 </member>
19012 <member name="T:OpenMetaverse.Packets.BulkUpdateInventoryPacket"> 20038 <member name="T:OpenMetaverse.Packets.BulkUpdateInventoryPacket">
19013 <exclude/> 20039 <exclude />
19014 </member> 20040 </member>
19015 <member name="T:OpenMetaverse.Packets.BulkUpdateInventoryPacket.AgentDataBlock"> 20041 <member name="T:OpenMetaverse.Packets.BulkUpdateInventoryPacket.AgentDataBlock">
19016 <exclude/> 20042 <exclude />
19017 </member> 20043 </member>
19018 <member name="T:OpenMetaverse.Packets.BulkUpdateInventoryPacket.FolderDataBlock"> 20044 <member name="T:OpenMetaverse.Packets.BulkUpdateInventoryPacket.FolderDataBlock">
19019 <exclude/> 20045 <exclude />
19020 </member> 20046 </member>
19021 <member name="T:OpenMetaverse.Packets.BulkUpdateInventoryPacket.ItemDataBlock"> 20047 <member name="T:OpenMetaverse.Packets.BulkUpdateInventoryPacket.ItemDataBlock">
19022 <exclude/> 20048 <exclude />
19023 </member> 20049 </member>
19024 <member name="T:OpenMetaverse.Packets.RemoveInventoryObjectsPacket"> 20050 <member name="T:OpenMetaverse.Packets.RemoveInventoryObjectsPacket">
19025 <exclude/> 20051 <exclude />
19026 </member> 20052 </member>
19027 <member name="T:OpenMetaverse.Packets.RemoveInventoryObjectsPacket.AgentDataBlock"> 20053 <member name="T:OpenMetaverse.Packets.RemoveInventoryObjectsPacket.AgentDataBlock">
19028 <exclude/> 20054 <exclude />
19029 </member> 20055 </member>
19030 <member name="T:OpenMetaverse.Packets.RemoveInventoryObjectsPacket.FolderDataBlock"> 20056 <member name="T:OpenMetaverse.Packets.RemoveInventoryObjectsPacket.FolderDataBlock">
19031 <exclude/> 20057 <exclude />
19032 </member> 20058 </member>
19033 <member name="T:OpenMetaverse.Packets.RemoveInventoryObjectsPacket.ItemDataBlock"> 20059 <member name="T:OpenMetaverse.Packets.RemoveInventoryObjectsPacket.ItemDataBlock">
19034 <exclude/> 20060 <exclude />
19035 </member> 20061 </member>
19036 <member name="T:OpenMetaverse.Packets.PurgeInventoryDescendentsPacket"> 20062 <member name="T:OpenMetaverse.Packets.PurgeInventoryDescendentsPacket">
19037 <exclude/> 20063 <exclude />
19038 </member> 20064 </member>
19039 <member name="T:OpenMetaverse.Packets.PurgeInventoryDescendentsPacket.AgentDataBlock"> 20065 <member name="T:OpenMetaverse.Packets.PurgeInventoryDescendentsPacket.AgentDataBlock">
19040 <exclude/> 20066 <exclude />
19041 </member> 20067 </member>
19042 <member name="T:OpenMetaverse.Packets.PurgeInventoryDescendentsPacket.InventoryDataBlock"> 20068 <member name="T:OpenMetaverse.Packets.PurgeInventoryDescendentsPacket.InventoryDataBlock">
19043 <exclude/> 20069 <exclude />
19044 </member> 20070 </member>
19045 <member name="T:OpenMetaverse.Packets.UpdateTaskInventoryPacket"> 20071 <member name="T:OpenMetaverse.Packets.UpdateTaskInventoryPacket">
19046 <exclude/> 20072 <exclude />
19047 </member> 20073 </member>
19048 <member name="T:OpenMetaverse.Packets.UpdateTaskInventoryPacket.AgentDataBlock"> 20074 <member name="T:OpenMetaverse.Packets.UpdateTaskInventoryPacket.AgentDataBlock">
19049 <exclude/> 20075 <exclude />
19050 </member> 20076 </member>
19051 <member name="T:OpenMetaverse.Packets.UpdateTaskInventoryPacket.UpdateDataBlock"> 20077 <member name="T:OpenMetaverse.Packets.UpdateTaskInventoryPacket.UpdateDataBlock">
19052 <exclude/> 20078 <exclude />
19053 </member> 20079 </member>
19054 <member name="T:OpenMetaverse.Packets.UpdateTaskInventoryPacket.InventoryDataBlock"> 20080 <member name="T:OpenMetaverse.Packets.UpdateTaskInventoryPacket.InventoryDataBlock">
19055 <exclude/> 20081 <exclude />
19056 </member> 20082 </member>
19057 <member name="T:OpenMetaverse.Packets.RemoveTaskInventoryPacket"> 20083 <member name="T:OpenMetaverse.Packets.RemoveTaskInventoryPacket">
19058 <exclude/> 20084 <exclude />
19059 </member> 20085 </member>
19060 <member name="T:OpenMetaverse.Packets.RemoveTaskInventoryPacket.AgentDataBlock"> 20086 <member name="T:OpenMetaverse.Packets.RemoveTaskInventoryPacket.AgentDataBlock">
19061 <exclude/> 20087 <exclude />
19062 </member> 20088 </member>
19063 <member name="T:OpenMetaverse.Packets.RemoveTaskInventoryPacket.InventoryDataBlock"> 20089 <member name="T:OpenMetaverse.Packets.RemoveTaskInventoryPacket.InventoryDataBlock">
19064 <exclude/> 20090 <exclude />
19065 </member> 20091 </member>
19066 <member name="T:OpenMetaverse.Packets.MoveTaskInventoryPacket"> 20092 <member name="T:OpenMetaverse.Packets.MoveTaskInventoryPacket">
19067 <exclude/> 20093 <exclude />
19068 </member> 20094 </member>
19069 <member name="T:OpenMetaverse.Packets.MoveTaskInventoryPacket.AgentDataBlock"> 20095 <member name="T:OpenMetaverse.Packets.MoveTaskInventoryPacket.AgentDataBlock">
19070 <exclude/> 20096 <exclude />
19071 </member> 20097 </member>
19072 <member name="T:OpenMetaverse.Packets.MoveTaskInventoryPacket.InventoryDataBlock"> 20098 <member name="T:OpenMetaverse.Packets.MoveTaskInventoryPacket.InventoryDataBlock">
19073 <exclude/> 20099 <exclude />
19074 </member> 20100 </member>
19075 <member name="T:OpenMetaverse.Packets.RequestTaskInventoryPacket"> 20101 <member name="T:OpenMetaverse.Packets.RequestTaskInventoryPacket">
19076 <exclude/> 20102 <exclude />
19077 </member> 20103 </member>
19078 <member name="T:OpenMetaverse.Packets.RequestTaskInventoryPacket.AgentDataBlock"> 20104 <member name="T:OpenMetaverse.Packets.RequestTaskInventoryPacket.AgentDataBlock">
19079 <exclude/> 20105 <exclude />
19080 </member> 20106 </member>
19081 <member name="T:OpenMetaverse.Packets.RequestTaskInventoryPacket.InventoryDataBlock"> 20107 <member name="T:OpenMetaverse.Packets.RequestTaskInventoryPacket.InventoryDataBlock">
19082 <exclude/> 20108 <exclude />
19083 </member> 20109 </member>
19084 <member name="T:OpenMetaverse.Packets.ReplyTaskInventoryPacket"> 20110 <member name="T:OpenMetaverse.Packets.ReplyTaskInventoryPacket">
19085 <exclude/> 20111 <exclude />
19086 </member> 20112 </member>
19087 <member name="T:OpenMetaverse.Packets.ReplyTaskInventoryPacket.InventoryDataBlock"> 20113 <member name="T:OpenMetaverse.Packets.ReplyTaskInventoryPacket.InventoryDataBlock">
19088 <exclude/> 20114 <exclude />
19089 </member> 20115 </member>
19090 <member name="T:OpenMetaverse.Packets.DeRezObjectPacket"> 20116 <member name="T:OpenMetaverse.Packets.DeRezObjectPacket">
19091 <exclude/> 20117 <exclude />
19092 </member> 20118 </member>
19093 <member name="T:OpenMetaverse.Packets.DeRezObjectPacket.AgentDataBlock"> 20119 <member name="T:OpenMetaverse.Packets.DeRezObjectPacket.AgentDataBlock">
19094 <exclude/> 20120 <exclude />
19095 </member> 20121 </member>
19096 <member name="T:OpenMetaverse.Packets.DeRezObjectPacket.AgentBlockBlock"> 20122 <member name="T:OpenMetaverse.Packets.DeRezObjectPacket.AgentBlockBlock">
19097 <exclude/> 20123 <exclude />
19098 </member> 20124 </member>
19099 <member name="T:OpenMetaverse.Packets.DeRezObjectPacket.ObjectDataBlock"> 20125 <member name="T:OpenMetaverse.Packets.DeRezObjectPacket.ObjectDataBlock">
19100 <exclude/> 20126 <exclude />
19101 </member> 20127 </member>
19102 <member name="T:OpenMetaverse.Packets.DeRezAckPacket"> 20128 <member name="T:OpenMetaverse.Packets.DeRezAckPacket">
19103 <exclude/> 20129 <exclude />
19104 </member> 20130 </member>
19105 <member name="T:OpenMetaverse.Packets.DeRezAckPacket.TransactionDataBlock"> 20131 <member name="T:OpenMetaverse.Packets.DeRezAckPacket.TransactionDataBlock">
19106 <exclude/> 20132 <exclude />
19107 </member> 20133 </member>
19108 <member name="T:OpenMetaverse.Packets.RezObjectPacket"> 20134 <member name="T:OpenMetaverse.Packets.RezObjectPacket">
19109 <exclude/> 20135 <exclude />
19110 </member> 20136 </member>
19111 <member name="T:OpenMetaverse.Packets.RezObjectPacket.AgentDataBlock"> 20137 <member name="T:OpenMetaverse.Packets.RezObjectPacket.AgentDataBlock">
19112 <exclude/> 20138 <exclude />
19113 </member> 20139 </member>
19114 <member name="T:OpenMetaverse.Packets.RezObjectPacket.RezDataBlock"> 20140 <member name="T:OpenMetaverse.Packets.RezObjectPacket.RezDataBlock">
19115 <exclude/> 20141 <exclude />
19116 </member> 20142 </member>
19117 <member name="T:OpenMetaverse.Packets.RezObjectPacket.InventoryDataBlock"> 20143 <member name="T:OpenMetaverse.Packets.RezObjectPacket.InventoryDataBlock">
19118 <exclude/> 20144 <exclude />
19119 </member> 20145 </member>
19120 <member name="T:OpenMetaverse.Packets.RezObjectFromNotecardPacket"> 20146 <member name="T:OpenMetaverse.Packets.RezObjectFromNotecardPacket">
19121 <exclude/> 20147 <exclude />
19122 </member> 20148 </member>
19123 <member name="T:OpenMetaverse.Packets.RezObjectFromNotecardPacket.AgentDataBlock"> 20149 <member name="T:OpenMetaverse.Packets.RezObjectFromNotecardPacket.AgentDataBlock">
19124 <exclude/> 20150 <exclude />
19125 </member> 20151 </member>
19126 <member name="T:OpenMetaverse.Packets.RezObjectFromNotecardPacket.RezDataBlock"> 20152 <member name="T:OpenMetaverse.Packets.RezObjectFromNotecardPacket.RezDataBlock">
19127 <exclude/> 20153 <exclude />
19128 </member> 20154 </member>
19129 <member name="T:OpenMetaverse.Packets.RezObjectFromNotecardPacket.NotecardDataBlock"> 20155 <member name="T:OpenMetaverse.Packets.RezObjectFromNotecardPacket.NotecardDataBlock">
19130 <exclude/> 20156 <exclude />
19131 </member> 20157 </member>
19132 <member name="T:OpenMetaverse.Packets.RezObjectFromNotecardPacket.InventoryDataBlock"> 20158 <member name="T:OpenMetaverse.Packets.RezObjectFromNotecardPacket.InventoryDataBlock">
19133 <exclude/> 20159 <exclude />
19134 </member> 20160 </member>
19135 <member name="T:OpenMetaverse.Packets.AcceptFriendshipPacket"> 20161 <member name="T:OpenMetaverse.Packets.AcceptFriendshipPacket">
19136 <exclude/> 20162 <exclude />
19137 </member> 20163 </member>
19138 <member name="T:OpenMetaverse.Packets.AcceptFriendshipPacket.AgentDataBlock"> 20164 <member name="T:OpenMetaverse.Packets.AcceptFriendshipPacket.AgentDataBlock">
19139 <exclude/> 20165 <exclude />
19140 </member> 20166 </member>
19141 <member name="T:OpenMetaverse.Packets.AcceptFriendshipPacket.TransactionBlockBlock"> 20167 <member name="T:OpenMetaverse.Packets.AcceptFriendshipPacket.TransactionBlockBlock">
19142 <exclude/> 20168 <exclude />
19143 </member> 20169 </member>
19144 <member name="T:OpenMetaverse.Packets.AcceptFriendshipPacket.FolderDataBlock"> 20170 <member name="T:OpenMetaverse.Packets.AcceptFriendshipPacket.FolderDataBlock">
19145 <exclude/> 20171 <exclude />
19146 </member> 20172 </member>
19147 <member name="T:OpenMetaverse.Packets.DeclineFriendshipPacket"> 20173 <member name="T:OpenMetaverse.Packets.DeclineFriendshipPacket">
19148 <exclude/> 20174 <exclude />
19149 </member> 20175 </member>
19150 <member name="T:OpenMetaverse.Packets.DeclineFriendshipPacket.AgentDataBlock"> 20176 <member name="T:OpenMetaverse.Packets.DeclineFriendshipPacket.AgentDataBlock">
19151 <exclude/> 20177 <exclude />
19152 </member> 20178 </member>
19153 <member name="T:OpenMetaverse.Packets.DeclineFriendshipPacket.TransactionBlockBlock"> 20179 <member name="T:OpenMetaverse.Packets.DeclineFriendshipPacket.TransactionBlockBlock">
19154 <exclude/> 20180 <exclude />
19155 </member> 20181 </member>
19156 <member name="T:OpenMetaverse.Packets.TerminateFriendshipPacket"> 20182 <member name="T:OpenMetaverse.Packets.TerminateFriendshipPacket">
19157 <exclude/> 20183 <exclude />
19158 </member> 20184 </member>
19159 <member name="T:OpenMetaverse.Packets.TerminateFriendshipPacket.AgentDataBlock"> 20185 <member name="T:OpenMetaverse.Packets.TerminateFriendshipPacket.AgentDataBlock">
19160 <exclude/> 20186 <exclude />
19161 </member> 20187 </member>
19162 <member name="T:OpenMetaverse.Packets.TerminateFriendshipPacket.ExBlockBlock"> 20188 <member name="T:OpenMetaverse.Packets.TerminateFriendshipPacket.ExBlockBlock">
19163 <exclude/> 20189 <exclude />
19164 </member> 20190 </member>
19165 <member name="T:OpenMetaverse.Packets.OfferCallingCardPacket"> 20191 <member name="T:OpenMetaverse.Packets.OfferCallingCardPacket">
19166 <exclude/> 20192 <exclude />
19167 </member> 20193 </member>
19168 <member name="T:OpenMetaverse.Packets.OfferCallingCardPacket.AgentDataBlock"> 20194 <member name="T:OpenMetaverse.Packets.OfferCallingCardPacket.AgentDataBlock">
19169 <exclude/> 20195 <exclude />
19170 </member> 20196 </member>
19171 <member name="T:OpenMetaverse.Packets.OfferCallingCardPacket.AgentBlockBlock"> 20197 <member name="T:OpenMetaverse.Packets.OfferCallingCardPacket.AgentBlockBlock">
19172 <exclude/> 20198 <exclude />
19173 </member> 20199 </member>
19174 <member name="T:OpenMetaverse.Packets.AcceptCallingCardPacket"> 20200 <member name="T:OpenMetaverse.Packets.AcceptCallingCardPacket">
19175 <exclude/> 20201 <exclude />
19176 </member> 20202 </member>
19177 <member name="T:OpenMetaverse.Packets.AcceptCallingCardPacket.AgentDataBlock"> 20203 <member name="T:OpenMetaverse.Packets.AcceptCallingCardPacket.AgentDataBlock">
19178 <exclude/> 20204 <exclude />
19179 </member> 20205 </member>
19180 <member name="T:OpenMetaverse.Packets.AcceptCallingCardPacket.TransactionBlockBlock"> 20206 <member name="T:OpenMetaverse.Packets.AcceptCallingCardPacket.TransactionBlockBlock">
19181 <exclude/> 20207 <exclude />
19182 </member> 20208 </member>
19183 <member name="T:OpenMetaverse.Packets.AcceptCallingCardPacket.FolderDataBlock"> 20209 <member name="T:OpenMetaverse.Packets.AcceptCallingCardPacket.FolderDataBlock">
19184 <exclude/> 20210 <exclude />
19185 </member> 20211 </member>
19186 <member name="T:OpenMetaverse.Packets.DeclineCallingCardPacket"> 20212 <member name="T:OpenMetaverse.Packets.DeclineCallingCardPacket">
19187 <exclude/> 20213 <exclude />
19188 </member> 20214 </member>
19189 <member name="T:OpenMetaverse.Packets.DeclineCallingCardPacket.AgentDataBlock"> 20215 <member name="T:OpenMetaverse.Packets.DeclineCallingCardPacket.AgentDataBlock">
19190 <exclude/> 20216 <exclude />
19191 </member> 20217 </member>
19192 <member name="T:OpenMetaverse.Packets.DeclineCallingCardPacket.TransactionBlockBlock"> 20218 <member name="T:OpenMetaverse.Packets.DeclineCallingCardPacket.TransactionBlockBlock">
19193 <exclude/> 20219 <exclude />
19194 </member> 20220 </member>
19195 <member name="T:OpenMetaverse.Packets.RezScriptPacket"> 20221 <member name="T:OpenMetaverse.Packets.RezScriptPacket">
19196 <exclude/> 20222 <exclude />
19197 </member> 20223 </member>
19198 <member name="T:OpenMetaverse.Packets.RezScriptPacket.AgentDataBlock"> 20224 <member name="T:OpenMetaverse.Packets.RezScriptPacket.AgentDataBlock">
19199 <exclude/> 20225 <exclude />
19200 </member> 20226 </member>
19201 <member name="T:OpenMetaverse.Packets.RezScriptPacket.UpdateBlockBlock"> 20227 <member name="T:OpenMetaverse.Packets.RezScriptPacket.UpdateBlockBlock">
19202 <exclude/> 20228 <exclude />
19203 </member> 20229 </member>
19204 <member name="T:OpenMetaverse.Packets.RezScriptPacket.InventoryBlockBlock"> 20230 <member name="T:OpenMetaverse.Packets.RezScriptPacket.InventoryBlockBlock">
19205 <exclude/> 20231 <exclude />
19206 </member> 20232 </member>
19207 <member name="T:OpenMetaverse.Packets.CreateInventoryItemPacket"> 20233 <member name="T:OpenMetaverse.Packets.CreateInventoryItemPacket">
19208 <exclude/> 20234 <exclude />
19209 </member> 20235 </member>
19210 <member name="T:OpenMetaverse.Packets.CreateInventoryItemPacket.AgentDataBlock"> 20236 <member name="T:OpenMetaverse.Packets.CreateInventoryItemPacket.AgentDataBlock">
19211 <exclude/> 20237 <exclude />
19212 </member> 20238 </member>
19213 <member name="T:OpenMetaverse.Packets.CreateInventoryItemPacket.InventoryBlockBlock"> 20239 <member name="T:OpenMetaverse.Packets.CreateInventoryItemPacket.InventoryBlockBlock">
19214 <exclude/> 20240 <exclude />
19215 </member> 20241 </member>
19216 <member name="T:OpenMetaverse.Packets.CreateLandmarkForEventPacket"> 20242 <member name="T:OpenMetaverse.Packets.CreateLandmarkForEventPacket">
19217 <exclude/> 20243 <exclude />
19218 </member> 20244 </member>
19219 <member name="T:OpenMetaverse.Packets.CreateLandmarkForEventPacket.AgentDataBlock"> 20245 <member name="T:OpenMetaverse.Packets.CreateLandmarkForEventPacket.AgentDataBlock">
19220 <exclude/> 20246 <exclude />
19221 </member> 20247 </member>
19222 <member name="T:OpenMetaverse.Packets.CreateLandmarkForEventPacket.EventDataBlock"> 20248 <member name="T:OpenMetaverse.Packets.CreateLandmarkForEventPacket.EventDataBlock">
19223 <exclude/> 20249 <exclude />
19224 </member> 20250 </member>
19225 <member name="T:OpenMetaverse.Packets.CreateLandmarkForEventPacket.InventoryBlockBlock"> 20251 <member name="T:OpenMetaverse.Packets.CreateLandmarkForEventPacket.InventoryBlockBlock">
19226 <exclude/> 20252 <exclude />
19227 </member> 20253 </member>
19228 <member name="T:OpenMetaverse.Packets.RegionHandleRequestPacket"> 20254 <member name="T:OpenMetaverse.Packets.RegionHandleRequestPacket">
19229 <exclude/> 20255 <exclude />
19230 </member> 20256 </member>
19231 <member name="T:OpenMetaverse.Packets.RegionHandleRequestPacket.RequestBlockBlock"> 20257 <member name="T:OpenMetaverse.Packets.RegionHandleRequestPacket.RequestBlockBlock">
19232 <exclude/> 20258 <exclude />
19233 </member> 20259 </member>
19234 <member name="T:OpenMetaverse.Packets.RegionIDAndHandleReplyPacket"> 20260 <member name="T:OpenMetaverse.Packets.RegionIDAndHandleReplyPacket">
19235 <exclude/> 20261 <exclude />
19236 </member> 20262 </member>
19237 <member name="T:OpenMetaverse.Packets.RegionIDAndHandleReplyPacket.ReplyBlockBlock"> 20263 <member name="T:OpenMetaverse.Packets.RegionIDAndHandleReplyPacket.ReplyBlockBlock">
19238 <exclude/> 20264 <exclude />
19239 </member> 20265 </member>
19240 <member name="T:OpenMetaverse.Packets.MoneyTransferRequestPacket"> 20266 <member name="T:OpenMetaverse.Packets.MoneyTransferRequestPacket">
19241 <exclude/> 20267 <exclude />
19242 </member> 20268 </member>
19243 <member name="T:OpenMetaverse.Packets.MoneyTransferRequestPacket.AgentDataBlock"> 20269 <member name="T:OpenMetaverse.Packets.MoneyTransferRequestPacket.AgentDataBlock">
19244 <exclude/> 20270 <exclude />
19245 </member> 20271 </member>
19246 <member name="T:OpenMetaverse.Packets.MoneyTransferRequestPacket.MoneyDataBlock"> 20272 <member name="T:OpenMetaverse.Packets.MoneyTransferRequestPacket.MoneyDataBlock">
19247 <exclude/> 20273 <exclude />
19248 </member> 20274 </member>
19249 <member name="T:OpenMetaverse.Packets.MoneyBalanceRequestPacket"> 20275 <member name="T:OpenMetaverse.Packets.MoneyBalanceRequestPacket">
19250 <exclude/> 20276 <exclude />
19251 </member> 20277 </member>
19252 <member name="T:OpenMetaverse.Packets.MoneyBalanceRequestPacket.AgentDataBlock"> 20278 <member name="T:OpenMetaverse.Packets.MoneyBalanceRequestPacket.AgentDataBlock">
19253 <exclude/> 20279 <exclude />
19254 </member> 20280 </member>
19255 <member name="T:OpenMetaverse.Packets.MoneyBalanceRequestPacket.MoneyDataBlock"> 20281 <member name="T:OpenMetaverse.Packets.MoneyBalanceRequestPacket.MoneyDataBlock">
19256 <exclude/> 20282 <exclude />
19257 </member> 20283 </member>
19258 <member name="T:OpenMetaverse.Packets.MoneyBalanceReplyPacket"> 20284 <member name="T:OpenMetaverse.Packets.MoneyBalanceReplyPacket">
19259 <exclude/> 20285 <exclude />
19260 </member> 20286 </member>
19261 <member name="T:OpenMetaverse.Packets.MoneyBalanceReplyPacket.MoneyDataBlock"> 20287 <member name="T:OpenMetaverse.Packets.MoneyBalanceReplyPacket.MoneyDataBlock">
19262 <exclude/> 20288 <exclude />
20289 </member>
20290 <member name="T:OpenMetaverse.Packets.MoneyBalanceReplyPacket.TransactionInfoBlock">
20291 <exclude />
19263 </member> 20292 </member>
19264 <member name="T:OpenMetaverse.Packets.RoutedMoneyBalanceReplyPacket"> 20293 <member name="T:OpenMetaverse.Packets.RoutedMoneyBalanceReplyPacket">
19265 <exclude/> 20294 <exclude />
19266 </member> 20295 </member>
19267 <member name="T:OpenMetaverse.Packets.RoutedMoneyBalanceReplyPacket.TargetBlockBlock"> 20296 <member name="T:OpenMetaverse.Packets.RoutedMoneyBalanceReplyPacket.TargetBlockBlock">
19268 <exclude/> 20297 <exclude />
19269 </member> 20298 </member>
19270 <member name="T:OpenMetaverse.Packets.RoutedMoneyBalanceReplyPacket.MoneyDataBlock"> 20299 <member name="T:OpenMetaverse.Packets.RoutedMoneyBalanceReplyPacket.MoneyDataBlock">
19271 <exclude/> 20300 <exclude />
20301 </member>
20302 <member name="T:OpenMetaverse.Packets.RoutedMoneyBalanceReplyPacket.TransactionInfoBlock">
20303 <exclude />
19272 </member> 20304 </member>
19273 <member name="T:OpenMetaverse.Packets.ActivateGesturesPacket"> 20305 <member name="T:OpenMetaverse.Packets.ActivateGesturesPacket">
19274 <exclude/> 20306 <exclude />
19275 </member> 20307 </member>
19276 <member name="T:OpenMetaverse.Packets.ActivateGesturesPacket.AgentDataBlock"> 20308 <member name="T:OpenMetaverse.Packets.ActivateGesturesPacket.AgentDataBlock">
19277 <exclude/> 20309 <exclude />
19278 </member> 20310 </member>
19279 <member name="T:OpenMetaverse.Packets.ActivateGesturesPacket.DataBlock"> 20311 <member name="T:OpenMetaverse.Packets.ActivateGesturesPacket.DataBlock">
19280 <exclude/> 20312 <exclude />
19281 </member> 20313 </member>
19282 <member name="T:OpenMetaverse.Packets.DeactivateGesturesPacket"> 20314 <member name="T:OpenMetaverse.Packets.DeactivateGesturesPacket">
19283 <exclude/> 20315 <exclude />
19284 </member> 20316 </member>
19285 <member name="T:OpenMetaverse.Packets.DeactivateGesturesPacket.AgentDataBlock"> 20317 <member name="T:OpenMetaverse.Packets.DeactivateGesturesPacket.AgentDataBlock">
19286 <exclude/> 20318 <exclude />
19287 </member> 20319 </member>
19288 <member name="T:OpenMetaverse.Packets.DeactivateGesturesPacket.DataBlock"> 20320 <member name="T:OpenMetaverse.Packets.DeactivateGesturesPacket.DataBlock">
19289 <exclude/> 20321 <exclude />
19290 </member> 20322 </member>
19291 <member name="T:OpenMetaverse.Packets.MuteListUpdatePacket"> 20323 <member name="T:OpenMetaverse.Packets.MuteListUpdatePacket">
19292 <exclude/> 20324 <exclude />
19293 </member> 20325 </member>
19294 <member name="T:OpenMetaverse.Packets.MuteListUpdatePacket.MuteDataBlock"> 20326 <member name="T:OpenMetaverse.Packets.MuteListUpdatePacket.MuteDataBlock">
19295 <exclude/> 20327 <exclude />
19296 </member> 20328 </member>
19297 <member name="T:OpenMetaverse.Packets.UseCachedMuteListPacket"> 20329 <member name="T:OpenMetaverse.Packets.UseCachedMuteListPacket">
19298 <exclude/> 20330 <exclude />
19299 </member> 20331 </member>
19300 <member name="T:OpenMetaverse.Packets.UseCachedMuteListPacket.AgentDataBlock"> 20332 <member name="T:OpenMetaverse.Packets.UseCachedMuteListPacket.AgentDataBlock">
19301 <exclude/> 20333 <exclude />
19302 </member> 20334 </member>
19303 <member name="T:OpenMetaverse.Packets.GrantUserRightsPacket"> 20335 <member name="T:OpenMetaverse.Packets.GrantUserRightsPacket">
19304 <exclude/> 20336 <exclude />
19305 </member> 20337 </member>
19306 <member name="T:OpenMetaverse.Packets.GrantUserRightsPacket.AgentDataBlock"> 20338 <member name="T:OpenMetaverse.Packets.GrantUserRightsPacket.AgentDataBlock">
19307 <exclude/> 20339 <exclude />
19308 </member> 20340 </member>
19309 <member name="T:OpenMetaverse.Packets.GrantUserRightsPacket.RightsBlock"> 20341 <member name="T:OpenMetaverse.Packets.GrantUserRightsPacket.RightsBlock">
19310 <exclude/> 20342 <exclude />
19311 </member> 20343 </member>
19312 <member name="T:OpenMetaverse.Packets.ChangeUserRightsPacket"> 20344 <member name="T:OpenMetaverse.Packets.ChangeUserRightsPacket">
19313 <exclude/> 20345 <exclude />
19314 </member> 20346 </member>
19315 <member name="T:OpenMetaverse.Packets.ChangeUserRightsPacket.AgentDataBlock"> 20347 <member name="T:OpenMetaverse.Packets.ChangeUserRightsPacket.AgentDataBlock">
19316 <exclude/> 20348 <exclude />
19317 </member> 20349 </member>
19318 <member name="T:OpenMetaverse.Packets.ChangeUserRightsPacket.RightsBlock"> 20350 <member name="T:OpenMetaverse.Packets.ChangeUserRightsPacket.RightsBlock">
19319 <exclude/> 20351 <exclude />
19320 </member> 20352 </member>
19321 <member name="T:OpenMetaverse.Packets.OnlineNotificationPacket"> 20353 <member name="T:OpenMetaverse.Packets.OnlineNotificationPacket">
19322 <exclude/> 20354 <exclude />
19323 </member> 20355 </member>
19324 <member name="T:OpenMetaverse.Packets.OnlineNotificationPacket.AgentBlockBlock"> 20356 <member name="T:OpenMetaverse.Packets.OnlineNotificationPacket.AgentBlockBlock">
19325 <exclude/> 20357 <exclude />
19326 </member> 20358 </member>
19327 <member name="T:OpenMetaverse.Packets.OfflineNotificationPacket"> 20359 <member name="T:OpenMetaverse.Packets.OfflineNotificationPacket">
19328 <exclude/> 20360 <exclude />
19329 </member> 20361 </member>
19330 <member name="T:OpenMetaverse.Packets.OfflineNotificationPacket.AgentBlockBlock"> 20362 <member name="T:OpenMetaverse.Packets.OfflineNotificationPacket.AgentBlockBlock">
19331 <exclude/> 20363 <exclude />
19332 </member> 20364 </member>
19333 <member name="T:OpenMetaverse.Packets.SetStartLocationRequestPacket"> 20365 <member name="T:OpenMetaverse.Packets.SetStartLocationRequestPacket">
19334 <exclude/> 20366 <exclude />
19335 </member> 20367 </member>
19336 <member name="T:OpenMetaverse.Packets.SetStartLocationRequestPacket.AgentDataBlock"> 20368 <member name="T:OpenMetaverse.Packets.SetStartLocationRequestPacket.AgentDataBlock">
19337 <exclude/> 20369 <exclude />
19338 </member> 20370 </member>
19339 <member name="T:OpenMetaverse.Packets.SetStartLocationRequestPacket.StartLocationDataBlock"> 20371 <member name="T:OpenMetaverse.Packets.SetStartLocationRequestPacket.StartLocationDataBlock">
19340 <exclude/> 20372 <exclude />
19341 </member> 20373 </member>
19342 <member name="T:OpenMetaverse.Packets.AssetUploadRequestPacket"> 20374 <member name="T:OpenMetaverse.Packets.AssetUploadRequestPacket">
19343 <exclude/> 20375 <exclude />
19344 </member> 20376 </member>
19345 <member name="T:OpenMetaverse.Packets.AssetUploadRequestPacket.AssetBlockBlock"> 20377 <member name="T:OpenMetaverse.Packets.AssetUploadRequestPacket.AssetBlockBlock">
19346 <exclude/> 20378 <exclude />
19347 </member> 20379 </member>
19348 <member name="T:OpenMetaverse.Packets.AssetUploadCompletePacket"> 20380 <member name="T:OpenMetaverse.Packets.AssetUploadCompletePacket">
19349 <exclude/> 20381 <exclude />
19350 </member> 20382 </member>
19351 <member name="T:OpenMetaverse.Packets.AssetUploadCompletePacket.AssetBlockBlock"> 20383 <member name="T:OpenMetaverse.Packets.AssetUploadCompletePacket.AssetBlockBlock">
19352 <exclude/> 20384 <exclude />
19353 </member> 20385 </member>
19354 <member name="T:OpenMetaverse.Packets.CreateGroupRequestPacket"> 20386 <member name="T:OpenMetaverse.Packets.CreateGroupRequestPacket">
19355 <exclude/> 20387 <exclude />
19356 </member> 20388 </member>
19357 <member name="T:OpenMetaverse.Packets.CreateGroupRequestPacket.AgentDataBlock"> 20389 <member name="T:OpenMetaverse.Packets.CreateGroupRequestPacket.AgentDataBlock">
19358 <exclude/> 20390 <exclude />
19359 </member> 20391 </member>
19360 <member name="T:OpenMetaverse.Packets.CreateGroupRequestPacket.GroupDataBlock"> 20392 <member name="T:OpenMetaverse.Packets.CreateGroupRequestPacket.GroupDataBlock">
19361 <exclude/> 20393 <exclude />
19362 </member> 20394 </member>
19363 <member name="T:OpenMetaverse.Packets.CreateGroupReplyPacket"> 20395 <member name="T:OpenMetaverse.Packets.CreateGroupReplyPacket">
19364 <exclude/> 20396 <exclude />
19365 </member> 20397 </member>
19366 <member name="T:OpenMetaverse.Packets.CreateGroupReplyPacket.AgentDataBlock"> 20398 <member name="T:OpenMetaverse.Packets.CreateGroupReplyPacket.AgentDataBlock">
19367 <exclude/> 20399 <exclude />
19368 </member> 20400 </member>
19369 <member name="T:OpenMetaverse.Packets.CreateGroupReplyPacket.ReplyDataBlock"> 20401 <member name="T:OpenMetaverse.Packets.CreateGroupReplyPacket.ReplyDataBlock">
19370 <exclude/> 20402 <exclude />
19371 </member> 20403 </member>
19372 <member name="T:OpenMetaverse.Packets.UpdateGroupInfoPacket"> 20404 <member name="T:OpenMetaverse.Packets.UpdateGroupInfoPacket">
19373 <exclude/> 20405 <exclude />
19374 </member> 20406 </member>
19375 <member name="T:OpenMetaverse.Packets.UpdateGroupInfoPacket.AgentDataBlock"> 20407 <member name="T:OpenMetaverse.Packets.UpdateGroupInfoPacket.AgentDataBlock">
19376 <exclude/> 20408 <exclude />
19377 </member> 20409 </member>
19378 <member name="T:OpenMetaverse.Packets.UpdateGroupInfoPacket.GroupDataBlock"> 20410 <member name="T:OpenMetaverse.Packets.UpdateGroupInfoPacket.GroupDataBlock">
19379 <exclude/> 20411 <exclude />
19380 </member> 20412 </member>
19381 <member name="T:OpenMetaverse.Packets.GroupRoleChangesPacket"> 20413 <member name="T:OpenMetaverse.Packets.GroupRoleChangesPacket">
19382 <exclude/> 20414 <exclude />
19383 </member> 20415 </member>
19384 <member name="T:OpenMetaverse.Packets.GroupRoleChangesPacket.AgentDataBlock"> 20416 <member name="T:OpenMetaverse.Packets.GroupRoleChangesPacket.AgentDataBlock">
19385 <exclude/> 20417 <exclude />
19386 </member> 20418 </member>
19387 <member name="T:OpenMetaverse.Packets.GroupRoleChangesPacket.RoleChangeBlock"> 20419 <member name="T:OpenMetaverse.Packets.GroupRoleChangesPacket.RoleChangeBlock">
19388 <exclude/> 20420 <exclude />
19389 </member> 20421 </member>
19390 <member name="T:OpenMetaverse.Packets.JoinGroupRequestPacket"> 20422 <member name="T:OpenMetaverse.Packets.JoinGroupRequestPacket">
19391 <exclude/> 20423 <exclude />
19392 </member> 20424 </member>
19393 <member name="T:OpenMetaverse.Packets.JoinGroupRequestPacket.AgentDataBlock"> 20425 <member name="T:OpenMetaverse.Packets.JoinGroupRequestPacket.AgentDataBlock">
19394 <exclude/> 20426 <exclude />
19395 </member> 20427 </member>
19396 <member name="T:OpenMetaverse.Packets.JoinGroupRequestPacket.GroupDataBlock"> 20428 <member name="T:OpenMetaverse.Packets.JoinGroupRequestPacket.GroupDataBlock">
19397 <exclude/> 20429 <exclude />
19398 </member> 20430 </member>
19399 <member name="T:OpenMetaverse.Packets.JoinGroupReplyPacket"> 20431 <member name="T:OpenMetaverse.Packets.JoinGroupReplyPacket">
19400 <exclude/> 20432 <exclude />
19401 </member> 20433 </member>
19402 <member name="T:OpenMetaverse.Packets.JoinGroupReplyPacket.AgentDataBlock"> 20434 <member name="T:OpenMetaverse.Packets.JoinGroupReplyPacket.AgentDataBlock">
19403 <exclude/> 20435 <exclude />
19404 </member> 20436 </member>
19405 <member name="T:OpenMetaverse.Packets.JoinGroupReplyPacket.GroupDataBlock"> 20437 <member name="T:OpenMetaverse.Packets.JoinGroupReplyPacket.GroupDataBlock">
19406 <exclude/> 20438 <exclude />
19407 </member> 20439 </member>
19408 <member name="T:OpenMetaverse.Packets.EjectGroupMemberRequestPacket"> 20440 <member name="T:OpenMetaverse.Packets.EjectGroupMemberRequestPacket">
19409 <exclude/> 20441 <exclude />
19410 </member> 20442 </member>
19411 <member name="T:OpenMetaverse.Packets.EjectGroupMemberRequestPacket.AgentDataBlock"> 20443 <member name="T:OpenMetaverse.Packets.EjectGroupMemberRequestPacket.AgentDataBlock">
19412 <exclude/> 20444 <exclude />
19413 </member> 20445 </member>
19414 <member name="T:OpenMetaverse.Packets.EjectGroupMemberRequestPacket.GroupDataBlock"> 20446 <member name="T:OpenMetaverse.Packets.EjectGroupMemberRequestPacket.GroupDataBlock">
19415 <exclude/> 20447 <exclude />
19416 </member> 20448 </member>
19417 <member name="T:OpenMetaverse.Packets.EjectGroupMemberRequestPacket.EjectDataBlock"> 20449 <member name="T:OpenMetaverse.Packets.EjectGroupMemberRequestPacket.EjectDataBlock">
19418 <exclude/> 20450 <exclude />
19419 </member> 20451 </member>
19420 <member name="T:OpenMetaverse.Packets.EjectGroupMemberReplyPacket"> 20452 <member name="T:OpenMetaverse.Packets.EjectGroupMemberReplyPacket">
19421 <exclude/> 20453 <exclude />
19422 </member> 20454 </member>
19423 <member name="T:OpenMetaverse.Packets.EjectGroupMemberReplyPacket.AgentDataBlock"> 20455 <member name="T:OpenMetaverse.Packets.EjectGroupMemberReplyPacket.AgentDataBlock">
19424 <exclude/> 20456 <exclude />
19425 </member> 20457 </member>
19426 <member name="T:OpenMetaverse.Packets.EjectGroupMemberReplyPacket.GroupDataBlock"> 20458 <member name="T:OpenMetaverse.Packets.EjectGroupMemberReplyPacket.GroupDataBlock">
19427 <exclude/> 20459 <exclude />
19428 </member> 20460 </member>
19429 <member name="T:OpenMetaverse.Packets.EjectGroupMemberReplyPacket.EjectDataBlock"> 20461 <member name="T:OpenMetaverse.Packets.EjectGroupMemberReplyPacket.EjectDataBlock">
19430 <exclude/> 20462 <exclude />
19431 </member> 20463 </member>
19432 <member name="T:OpenMetaverse.Packets.LeaveGroupRequestPacket"> 20464 <member name="T:OpenMetaverse.Packets.LeaveGroupRequestPacket">
19433 <exclude/> 20465 <exclude />
19434 </member> 20466 </member>
19435 <member name="T:OpenMetaverse.Packets.LeaveGroupRequestPacket.AgentDataBlock"> 20467 <member name="T:OpenMetaverse.Packets.LeaveGroupRequestPacket.AgentDataBlock">
19436 <exclude/> 20468 <exclude />
19437 </member> 20469 </member>
19438 <member name="T:OpenMetaverse.Packets.LeaveGroupRequestPacket.GroupDataBlock"> 20470 <member name="T:OpenMetaverse.Packets.LeaveGroupRequestPacket.GroupDataBlock">
19439 <exclude/> 20471 <exclude />
19440 </member> 20472 </member>
19441 <member name="T:OpenMetaverse.Packets.LeaveGroupReplyPacket"> 20473 <member name="T:OpenMetaverse.Packets.LeaveGroupReplyPacket">
19442 <exclude/> 20474 <exclude />
19443 </member> 20475 </member>
19444 <member name="T:OpenMetaverse.Packets.LeaveGroupReplyPacket.AgentDataBlock"> 20476 <member name="T:OpenMetaverse.Packets.LeaveGroupReplyPacket.AgentDataBlock">
19445 <exclude/> 20477 <exclude />
19446 </member> 20478 </member>
19447 <member name="T:OpenMetaverse.Packets.LeaveGroupReplyPacket.GroupDataBlock"> 20479 <member name="T:OpenMetaverse.Packets.LeaveGroupReplyPacket.GroupDataBlock">
19448 <exclude/> 20480 <exclude />
19449 </member> 20481 </member>
19450 <member name="T:OpenMetaverse.Packets.InviteGroupRequestPacket"> 20482 <member name="T:OpenMetaverse.Packets.InviteGroupRequestPacket">
19451 <exclude/> 20483 <exclude />
19452 </member> 20484 </member>
19453 <member name="T:OpenMetaverse.Packets.InviteGroupRequestPacket.AgentDataBlock"> 20485 <member name="T:OpenMetaverse.Packets.InviteGroupRequestPacket.AgentDataBlock">
19454 <exclude/> 20486 <exclude />
19455 </member> 20487 </member>
19456 <member name="T:OpenMetaverse.Packets.InviteGroupRequestPacket.GroupDataBlock"> 20488 <member name="T:OpenMetaverse.Packets.InviteGroupRequestPacket.GroupDataBlock">
19457 <exclude/> 20489 <exclude />
19458 </member> 20490 </member>
19459 <member name="T:OpenMetaverse.Packets.InviteGroupRequestPacket.InviteDataBlock"> 20491 <member name="T:OpenMetaverse.Packets.InviteGroupRequestPacket.InviteDataBlock">
19460 <exclude/> 20492 <exclude />
19461 </member> 20493 </member>
19462 <member name="T:OpenMetaverse.Packets.GroupProfileRequestPacket"> 20494 <member name="T:OpenMetaverse.Packets.GroupProfileRequestPacket">
19463 <exclude/> 20495 <exclude />
19464 </member> 20496 </member>
19465 <member name="T:OpenMetaverse.Packets.GroupProfileRequestPacket.AgentDataBlock"> 20497 <member name="T:OpenMetaverse.Packets.GroupProfileRequestPacket.AgentDataBlock">
19466 <exclude/> 20498 <exclude />
19467 </member> 20499 </member>
19468 <member name="T:OpenMetaverse.Packets.GroupProfileRequestPacket.GroupDataBlock"> 20500 <member name="T:OpenMetaverse.Packets.GroupProfileRequestPacket.GroupDataBlock">
19469 <exclude/> 20501 <exclude />
19470 </member> 20502 </member>
19471 <member name="T:OpenMetaverse.Packets.GroupProfileReplyPacket"> 20503 <member name="T:OpenMetaverse.Packets.GroupProfileReplyPacket">
19472 <exclude/> 20504 <exclude />
19473 </member> 20505 </member>
19474 <member name="T:OpenMetaverse.Packets.GroupProfileReplyPacket.AgentDataBlock"> 20506 <member name="T:OpenMetaverse.Packets.GroupProfileReplyPacket.AgentDataBlock">
19475 <exclude/> 20507 <exclude />
19476 </member> 20508 </member>
19477 <member name="T:OpenMetaverse.Packets.GroupProfileReplyPacket.GroupDataBlock"> 20509 <member name="T:OpenMetaverse.Packets.GroupProfileReplyPacket.GroupDataBlock">
19478 <exclude/> 20510 <exclude />
19479 </member> 20511 </member>
19480 <member name="T:OpenMetaverse.Packets.GroupAccountSummaryRequestPacket"> 20512 <member name="T:OpenMetaverse.Packets.GroupAccountSummaryRequestPacket">
19481 <exclude/> 20513 <exclude />
19482 </member> 20514 </member>
19483 <member name="T:OpenMetaverse.Packets.GroupAccountSummaryRequestPacket.AgentDataBlock"> 20515 <member name="T:OpenMetaverse.Packets.GroupAccountSummaryRequestPacket.AgentDataBlock">
19484 <exclude/> 20516 <exclude />
19485 </member> 20517 </member>
19486 <member name="T:OpenMetaverse.Packets.GroupAccountSummaryRequestPacket.MoneyDataBlock"> 20518 <member name="T:OpenMetaverse.Packets.GroupAccountSummaryRequestPacket.MoneyDataBlock">
19487 <exclude/> 20519 <exclude />
19488 </member> 20520 </member>
19489 <member name="T:OpenMetaverse.Packets.GroupAccountSummaryReplyPacket"> 20521 <member name="T:OpenMetaverse.Packets.GroupAccountSummaryReplyPacket">
19490 <exclude/> 20522 <exclude />
19491 </member> 20523 </member>
19492 <member name="T:OpenMetaverse.Packets.GroupAccountSummaryReplyPacket.AgentDataBlock"> 20524 <member name="T:OpenMetaverse.Packets.GroupAccountSummaryReplyPacket.AgentDataBlock">
19493 <exclude/> 20525 <exclude />
19494 </member> 20526 </member>
19495 <member name="T:OpenMetaverse.Packets.GroupAccountSummaryReplyPacket.MoneyDataBlock"> 20527 <member name="T:OpenMetaverse.Packets.GroupAccountSummaryReplyPacket.MoneyDataBlock">
19496 <exclude/> 20528 <exclude />
19497 </member> 20529 </member>
19498 <member name="T:OpenMetaverse.Packets.GroupAccountDetailsRequestPacket"> 20530 <member name="T:OpenMetaverse.Packets.GroupAccountDetailsRequestPacket">
19499 <exclude/> 20531 <exclude />
19500 </member> 20532 </member>
19501 <member name="T:OpenMetaverse.Packets.GroupAccountDetailsRequestPacket.AgentDataBlock"> 20533 <member name="T:OpenMetaverse.Packets.GroupAccountDetailsRequestPacket.AgentDataBlock">
19502 <exclude/> 20534 <exclude />
19503 </member> 20535 </member>
19504 <member name="T:OpenMetaverse.Packets.GroupAccountDetailsRequestPacket.MoneyDataBlock"> 20536 <member name="T:OpenMetaverse.Packets.GroupAccountDetailsRequestPacket.MoneyDataBlock">
19505 <exclude/> 20537 <exclude />
19506 </member> 20538 </member>
19507 <member name="T:OpenMetaverse.Packets.GroupAccountDetailsReplyPacket"> 20539 <member name="T:OpenMetaverse.Packets.GroupAccountDetailsReplyPacket">
19508 <exclude/> 20540 <exclude />
19509 </member> 20541 </member>
19510 <member name="T:OpenMetaverse.Packets.GroupAccountDetailsReplyPacket.AgentDataBlock"> 20542 <member name="T:OpenMetaverse.Packets.GroupAccountDetailsReplyPacket.AgentDataBlock">
19511 <exclude/> 20543 <exclude />
19512 </member> 20544 </member>
19513 <member name="T:OpenMetaverse.Packets.GroupAccountDetailsReplyPacket.MoneyDataBlock"> 20545 <member name="T:OpenMetaverse.Packets.GroupAccountDetailsReplyPacket.MoneyDataBlock">
19514 <exclude/> 20546 <exclude />
19515 </member> 20547 </member>
19516 <member name="T:OpenMetaverse.Packets.GroupAccountDetailsReplyPacket.HistoryDataBlock"> 20548 <member name="T:OpenMetaverse.Packets.GroupAccountDetailsReplyPacket.HistoryDataBlock">
19517 <exclude/> 20549 <exclude />
19518 </member> 20550 </member>
19519 <member name="T:OpenMetaverse.Packets.GroupAccountTransactionsRequestPacket"> 20551 <member name="T:OpenMetaverse.Packets.GroupAccountTransactionsRequestPacket">
19520 <exclude/> 20552 <exclude />
19521 </member> 20553 </member>
19522 <member name="T:OpenMetaverse.Packets.GroupAccountTransactionsRequestPacket.AgentDataBlock"> 20554 <member name="T:OpenMetaverse.Packets.GroupAccountTransactionsRequestPacket.AgentDataBlock">
19523 <exclude/> 20555 <exclude />
19524 </member> 20556 </member>
19525 <member name="T:OpenMetaverse.Packets.GroupAccountTransactionsRequestPacket.MoneyDataBlock"> 20557 <member name="T:OpenMetaverse.Packets.GroupAccountTransactionsRequestPacket.MoneyDataBlock">
19526 <exclude/> 20558 <exclude />
19527 </member> 20559 </member>
19528 <member name="T:OpenMetaverse.Packets.GroupAccountTransactionsReplyPacket"> 20560 <member name="T:OpenMetaverse.Packets.GroupAccountTransactionsReplyPacket">
19529 <exclude/> 20561 <exclude />
19530 </member> 20562 </member>
19531 <member name="T:OpenMetaverse.Packets.GroupAccountTransactionsReplyPacket.AgentDataBlock"> 20563 <member name="T:OpenMetaverse.Packets.GroupAccountTransactionsReplyPacket.AgentDataBlock">
19532 <exclude/> 20564 <exclude />
19533 </member> 20565 </member>
19534 <member name="T:OpenMetaverse.Packets.GroupAccountTransactionsReplyPacket.MoneyDataBlock"> 20566 <member name="T:OpenMetaverse.Packets.GroupAccountTransactionsReplyPacket.MoneyDataBlock">
19535 <exclude/> 20567 <exclude />
19536 </member> 20568 </member>
19537 <member name="T:OpenMetaverse.Packets.GroupAccountTransactionsReplyPacket.HistoryDataBlock"> 20569 <member name="T:OpenMetaverse.Packets.GroupAccountTransactionsReplyPacket.HistoryDataBlock">
19538 <exclude/> 20570 <exclude />
19539 </member> 20571 </member>
19540 <member name="T:OpenMetaverse.Packets.GroupActiveProposalsRequestPacket"> 20572 <member name="T:OpenMetaverse.Packets.GroupActiveProposalsRequestPacket">
19541 <exclude/> 20573 <exclude />
19542 </member> 20574 </member>
19543 <member name="T:OpenMetaverse.Packets.GroupActiveProposalsRequestPacket.AgentDataBlock"> 20575 <member name="T:OpenMetaverse.Packets.GroupActiveProposalsRequestPacket.AgentDataBlock">
19544 <exclude/> 20576 <exclude />
19545 </member> 20577 </member>
19546 <member name="T:OpenMetaverse.Packets.GroupActiveProposalsRequestPacket.GroupDataBlock"> 20578 <member name="T:OpenMetaverse.Packets.GroupActiveProposalsRequestPacket.GroupDataBlock">
19547 <exclude/> 20579 <exclude />
19548 </member> 20580 </member>
19549 <member name="T:OpenMetaverse.Packets.GroupActiveProposalsRequestPacket.TransactionDataBlock"> 20581 <member name="T:OpenMetaverse.Packets.GroupActiveProposalsRequestPacket.TransactionDataBlock">
19550 <exclude/> 20582 <exclude />
19551 </member> 20583 </member>
19552 <member name="T:OpenMetaverse.Packets.GroupActiveProposalItemReplyPacket"> 20584 <member name="T:OpenMetaverse.Packets.GroupActiveProposalItemReplyPacket">
19553 <exclude/> 20585 <exclude />
19554 </member> 20586 </member>
19555 <member name="T:OpenMetaverse.Packets.GroupActiveProposalItemReplyPacket.AgentDataBlock"> 20587 <member name="T:OpenMetaverse.Packets.GroupActiveProposalItemReplyPacket.AgentDataBlock">
19556 <exclude/> 20588 <exclude />
19557 </member> 20589 </member>
19558 <member name="T:OpenMetaverse.Packets.GroupActiveProposalItemReplyPacket.TransactionDataBlock"> 20590 <member name="T:OpenMetaverse.Packets.GroupActiveProposalItemReplyPacket.TransactionDataBlock">
19559 <exclude/> 20591 <exclude />
19560 </member> 20592 </member>
19561 <member name="T:OpenMetaverse.Packets.GroupActiveProposalItemReplyPacket.ProposalDataBlock"> 20593 <member name="T:OpenMetaverse.Packets.GroupActiveProposalItemReplyPacket.ProposalDataBlock">
19562 <exclude/> 20594 <exclude />
19563 </member> 20595 </member>
19564 <member name="T:OpenMetaverse.Packets.GroupVoteHistoryRequestPacket"> 20596 <member name="T:OpenMetaverse.Packets.GroupVoteHistoryRequestPacket">
19565 <exclude/> 20597 <exclude />
19566 </member> 20598 </member>
19567 <member name="T:OpenMetaverse.Packets.GroupVoteHistoryRequestPacket.AgentDataBlock"> 20599 <member name="T:OpenMetaverse.Packets.GroupVoteHistoryRequestPacket.AgentDataBlock">
19568 <exclude/> 20600 <exclude />
19569 </member> 20601 </member>
19570 <member name="T:OpenMetaverse.Packets.GroupVoteHistoryRequestPacket.GroupDataBlock"> 20602 <member name="T:OpenMetaverse.Packets.GroupVoteHistoryRequestPacket.GroupDataBlock">
19571 <exclude/> 20603 <exclude />
19572 </member> 20604 </member>
19573 <member name="T:OpenMetaverse.Packets.GroupVoteHistoryRequestPacket.TransactionDataBlock"> 20605 <member name="T:OpenMetaverse.Packets.GroupVoteHistoryRequestPacket.TransactionDataBlock">
19574 <exclude/> 20606 <exclude />
19575 </member> 20607 </member>
19576 <member name="T:OpenMetaverse.Packets.GroupVoteHistoryItemReplyPacket"> 20608 <member name="T:OpenMetaverse.Packets.GroupVoteHistoryItemReplyPacket">
19577 <exclude/> 20609 <exclude />
19578 </member> 20610 </member>
19579 <member name="T:OpenMetaverse.Packets.GroupVoteHistoryItemReplyPacket.AgentDataBlock"> 20611 <member name="T:OpenMetaverse.Packets.GroupVoteHistoryItemReplyPacket.AgentDataBlock">
19580 <exclude/> 20612 <exclude />
19581 </member> 20613 </member>
19582 <member name="T:OpenMetaverse.Packets.GroupVoteHistoryItemReplyPacket.TransactionDataBlock"> 20614 <member name="T:OpenMetaverse.Packets.GroupVoteHistoryItemReplyPacket.TransactionDataBlock">
19583 <exclude/> 20615 <exclude />
19584 </member> 20616 </member>
19585 <member name="T:OpenMetaverse.Packets.GroupVoteHistoryItemReplyPacket.HistoryItemDataBlock"> 20617 <member name="T:OpenMetaverse.Packets.GroupVoteHistoryItemReplyPacket.HistoryItemDataBlock">
19586 <exclude/> 20618 <exclude />
19587 </member> 20619 </member>
19588 <member name="T:OpenMetaverse.Packets.GroupVoteHistoryItemReplyPacket.VoteItemBlock"> 20620 <member name="T:OpenMetaverse.Packets.GroupVoteHistoryItemReplyPacket.VoteItemBlock">
19589 <exclude/> 20621 <exclude />
19590 </member> 20622 </member>
19591 <member name="T:OpenMetaverse.Packets.StartGroupProposalPacket"> 20623 <member name="T:OpenMetaverse.Packets.StartGroupProposalPacket">
19592 <exclude/> 20624 <exclude />
19593 </member> 20625 </member>
19594 <member name="T:OpenMetaverse.Packets.StartGroupProposalPacket.AgentDataBlock"> 20626 <member name="T:OpenMetaverse.Packets.StartGroupProposalPacket.AgentDataBlock">
19595 <exclude/> 20627 <exclude />
19596 </member> 20628 </member>
19597 <member name="T:OpenMetaverse.Packets.StartGroupProposalPacket.ProposalDataBlock"> 20629 <member name="T:OpenMetaverse.Packets.StartGroupProposalPacket.ProposalDataBlock">
19598 <exclude/> 20630 <exclude />
19599 </member> 20631 </member>
19600 <member name="T:OpenMetaverse.Packets.GroupProposalBallotPacket"> 20632 <member name="T:OpenMetaverse.Packets.GroupProposalBallotPacket">
19601 <exclude/> 20633 <exclude />
19602 </member> 20634 </member>
19603 <member name="T:OpenMetaverse.Packets.GroupProposalBallotPacket.AgentDataBlock"> 20635 <member name="T:OpenMetaverse.Packets.GroupProposalBallotPacket.AgentDataBlock">
19604 <exclude/> 20636 <exclude />
19605 </member> 20637 </member>
19606 <member name="T:OpenMetaverse.Packets.GroupProposalBallotPacket.ProposalDataBlock"> 20638 <member name="T:OpenMetaverse.Packets.GroupProposalBallotPacket.ProposalDataBlock">
19607 <exclude/> 20639 <exclude />
19608 </member> 20640 </member>
19609 <member name="T:OpenMetaverse.Packets.GroupMembersRequestPacket"> 20641 <member name="T:OpenMetaverse.Packets.GroupMembersRequestPacket">
19610 <exclude/> 20642 <exclude />
19611 </member> 20643 </member>
19612 <member name="T:OpenMetaverse.Packets.GroupMembersRequestPacket.AgentDataBlock"> 20644 <member name="T:OpenMetaverse.Packets.GroupMembersRequestPacket.AgentDataBlock">
19613 <exclude/> 20645 <exclude />
19614 </member> 20646 </member>
19615 <member name="T:OpenMetaverse.Packets.GroupMembersRequestPacket.GroupDataBlock"> 20647 <member name="T:OpenMetaverse.Packets.GroupMembersRequestPacket.GroupDataBlock">
19616 <exclude/> 20648 <exclude />
19617 </member> 20649 </member>
19618 <member name="T:OpenMetaverse.Packets.GroupMembersReplyPacket"> 20650 <member name="T:OpenMetaverse.Packets.GroupMembersReplyPacket">
19619 <exclude/> 20651 <exclude />
19620 </member> 20652 </member>
19621 <member name="T:OpenMetaverse.Packets.GroupMembersReplyPacket.AgentDataBlock"> 20653 <member name="T:OpenMetaverse.Packets.GroupMembersReplyPacket.AgentDataBlock">
19622 <exclude/> 20654 <exclude />
19623 </member> 20655 </member>
19624 <member name="T:OpenMetaverse.Packets.GroupMembersReplyPacket.GroupDataBlock"> 20656 <member name="T:OpenMetaverse.Packets.GroupMembersReplyPacket.GroupDataBlock">
19625 <exclude/> 20657 <exclude />
19626 </member> 20658 </member>
19627 <member name="T:OpenMetaverse.Packets.GroupMembersReplyPacket.MemberDataBlock"> 20659 <member name="T:OpenMetaverse.Packets.GroupMembersReplyPacket.MemberDataBlock">
19628 <exclude/> 20660 <exclude />
19629 </member> 20661 </member>
19630 <member name="T:OpenMetaverse.Packets.ActivateGroupPacket"> 20662 <member name="T:OpenMetaverse.Packets.ActivateGroupPacket">
19631 <exclude/> 20663 <exclude />
19632 </member> 20664 </member>
19633 <member name="T:OpenMetaverse.Packets.ActivateGroupPacket.AgentDataBlock"> 20665 <member name="T:OpenMetaverse.Packets.ActivateGroupPacket.AgentDataBlock">
19634 <exclude/> 20666 <exclude />
19635 </member> 20667 </member>
19636 <member name="T:OpenMetaverse.Packets.SetGroupContributionPacket"> 20668 <member name="T:OpenMetaverse.Packets.SetGroupContributionPacket">
19637 <exclude/> 20669 <exclude />
19638 </member> 20670 </member>
19639 <member name="T:OpenMetaverse.Packets.SetGroupContributionPacket.AgentDataBlock"> 20671 <member name="T:OpenMetaverse.Packets.SetGroupContributionPacket.AgentDataBlock">
19640 <exclude/> 20672 <exclude />
19641 </member> 20673 </member>
19642 <member name="T:OpenMetaverse.Packets.SetGroupContributionPacket.DataBlock"> 20674 <member name="T:OpenMetaverse.Packets.SetGroupContributionPacket.DataBlock">
19643 <exclude/> 20675 <exclude />
19644 </member> 20676 </member>
19645 <member name="T:OpenMetaverse.Packets.SetGroupAcceptNoticesPacket"> 20677 <member name="T:OpenMetaverse.Packets.SetGroupAcceptNoticesPacket">
19646 <exclude/> 20678 <exclude />
19647 </member> 20679 </member>
19648 <member name="T:OpenMetaverse.Packets.SetGroupAcceptNoticesPacket.AgentDataBlock"> 20680 <member name="T:OpenMetaverse.Packets.SetGroupAcceptNoticesPacket.AgentDataBlock">
19649 <exclude/> 20681 <exclude />
19650 </member> 20682 </member>
19651 <member name="T:OpenMetaverse.Packets.SetGroupAcceptNoticesPacket.DataBlock"> 20683 <member name="T:OpenMetaverse.Packets.SetGroupAcceptNoticesPacket.DataBlock">
19652 <exclude/> 20684 <exclude />
19653 </member> 20685 </member>
19654 <member name="T:OpenMetaverse.Packets.SetGroupAcceptNoticesPacket.NewDataBlock"> 20686 <member name="T:OpenMetaverse.Packets.SetGroupAcceptNoticesPacket.NewDataBlock">
19655 <exclude/> 20687 <exclude />
19656 </member> 20688 </member>
19657 <member name="T:OpenMetaverse.Packets.GroupRoleDataRequestPacket"> 20689 <member name="T:OpenMetaverse.Packets.GroupRoleDataRequestPacket">
19658 <exclude/> 20690 <exclude />
19659 </member> 20691 </member>
19660 <member name="T:OpenMetaverse.Packets.GroupRoleDataRequestPacket.AgentDataBlock"> 20692 <member name="T:OpenMetaverse.Packets.GroupRoleDataRequestPacket.AgentDataBlock">
19661 <exclude/> 20693 <exclude />
19662 </member> 20694 </member>
19663 <member name="T:OpenMetaverse.Packets.GroupRoleDataRequestPacket.GroupDataBlock"> 20695 <member name="T:OpenMetaverse.Packets.GroupRoleDataRequestPacket.GroupDataBlock">
19664 <exclude/> 20696 <exclude />
19665 </member> 20697 </member>
19666 <member name="T:OpenMetaverse.Packets.GroupRoleDataReplyPacket"> 20698 <member name="T:OpenMetaverse.Packets.GroupRoleDataReplyPacket">
19667 <exclude/> 20699 <exclude />
19668 </member> 20700 </member>
19669 <member name="T:OpenMetaverse.Packets.GroupRoleDataReplyPacket.AgentDataBlock"> 20701 <member name="T:OpenMetaverse.Packets.GroupRoleDataReplyPacket.AgentDataBlock">
19670 <exclude/> 20702 <exclude />
19671 </member> 20703 </member>
19672 <member name="T:OpenMetaverse.Packets.GroupRoleDataReplyPacket.GroupDataBlock"> 20704 <member name="T:OpenMetaverse.Packets.GroupRoleDataReplyPacket.GroupDataBlock">
19673 <exclude/> 20705 <exclude />
19674 </member> 20706 </member>
19675 <member name="T:OpenMetaverse.Packets.GroupRoleDataReplyPacket.RoleDataBlock"> 20707 <member name="T:OpenMetaverse.Packets.GroupRoleDataReplyPacket.RoleDataBlock">
19676 <exclude/> 20708 <exclude />
19677 </member> 20709 </member>
19678 <member name="T:OpenMetaverse.Packets.GroupRoleMembersRequestPacket"> 20710 <member name="T:OpenMetaverse.Packets.GroupRoleMembersRequestPacket">
19679 <exclude/> 20711 <exclude />
19680 </member> 20712 </member>
19681 <member name="T:OpenMetaverse.Packets.GroupRoleMembersRequestPacket.AgentDataBlock"> 20713 <member name="T:OpenMetaverse.Packets.GroupRoleMembersRequestPacket.AgentDataBlock">
19682 <exclude/> 20714 <exclude />
19683 </member> 20715 </member>
19684 <member name="T:OpenMetaverse.Packets.GroupRoleMembersRequestPacket.GroupDataBlock"> 20716 <member name="T:OpenMetaverse.Packets.GroupRoleMembersRequestPacket.GroupDataBlock">
19685 <exclude/> 20717 <exclude />
19686 </member> 20718 </member>
19687 <member name="T:OpenMetaverse.Packets.GroupRoleMembersReplyPacket"> 20719 <member name="T:OpenMetaverse.Packets.GroupRoleMembersReplyPacket">
19688 <exclude/> 20720 <exclude />
19689 </member> 20721 </member>
19690 <member name="T:OpenMetaverse.Packets.GroupRoleMembersReplyPacket.AgentDataBlock"> 20722 <member name="T:OpenMetaverse.Packets.GroupRoleMembersReplyPacket.AgentDataBlock">
19691 <exclude/> 20723 <exclude />
19692 </member> 20724 </member>
19693 <member name="T:OpenMetaverse.Packets.GroupRoleMembersReplyPacket.MemberDataBlock"> 20725 <member name="T:OpenMetaverse.Packets.GroupRoleMembersReplyPacket.MemberDataBlock">
19694 <exclude/> 20726 <exclude />
19695 </member> 20727 </member>
19696 <member name="T:OpenMetaverse.Packets.GroupTitlesRequestPacket"> 20728 <member name="T:OpenMetaverse.Packets.GroupTitlesRequestPacket">
19697 <exclude/> 20729 <exclude />
19698 </member> 20730 </member>
19699 <member name="T:OpenMetaverse.Packets.GroupTitlesRequestPacket.AgentDataBlock"> 20731 <member name="T:OpenMetaverse.Packets.GroupTitlesRequestPacket.AgentDataBlock">
19700 <exclude/> 20732 <exclude />
19701 </member> 20733 </member>
19702 <member name="T:OpenMetaverse.Packets.GroupTitlesReplyPacket"> 20734 <member name="T:OpenMetaverse.Packets.GroupTitlesReplyPacket">
19703 <exclude/> 20735 <exclude />
19704 </member> 20736 </member>
19705 <member name="T:OpenMetaverse.Packets.GroupTitlesReplyPacket.AgentDataBlock"> 20737 <member name="T:OpenMetaverse.Packets.GroupTitlesReplyPacket.AgentDataBlock">
19706 <exclude/> 20738 <exclude />
19707 </member> 20739 </member>
19708 <member name="T:OpenMetaverse.Packets.GroupTitlesReplyPacket.GroupDataBlock"> 20740 <member name="T:OpenMetaverse.Packets.GroupTitlesReplyPacket.GroupDataBlock">
19709 <exclude/> 20741 <exclude />
19710 </member> 20742 </member>
19711 <member name="T:OpenMetaverse.Packets.GroupTitleUpdatePacket"> 20743 <member name="T:OpenMetaverse.Packets.GroupTitleUpdatePacket">
19712 <exclude/> 20744 <exclude />
19713 </member> 20745 </member>
19714 <member name="T:OpenMetaverse.Packets.GroupTitleUpdatePacket.AgentDataBlock"> 20746 <member name="T:OpenMetaverse.Packets.GroupTitleUpdatePacket.AgentDataBlock">
19715 <exclude/> 20747 <exclude />
19716 </member> 20748 </member>
19717 <member name="T:OpenMetaverse.Packets.GroupRoleUpdatePacket"> 20749 <member name="T:OpenMetaverse.Packets.GroupRoleUpdatePacket">
19718 <exclude/> 20750 <exclude />
19719 </member> 20751 </member>
19720 <member name="T:OpenMetaverse.Packets.GroupRoleUpdatePacket.AgentDataBlock"> 20752 <member name="T:OpenMetaverse.Packets.GroupRoleUpdatePacket.AgentDataBlock">
19721 <exclude/> 20753 <exclude />
19722 </member> 20754 </member>
19723 <member name="T:OpenMetaverse.Packets.GroupRoleUpdatePacket.RoleDataBlock"> 20755 <member name="T:OpenMetaverse.Packets.GroupRoleUpdatePacket.RoleDataBlock">
19724 <exclude/> 20756 <exclude />
19725 </member> 20757 </member>
19726 <member name="T:OpenMetaverse.Packets.LiveHelpGroupRequestPacket"> 20758 <member name="T:OpenMetaverse.Packets.LiveHelpGroupRequestPacket">
19727 <exclude/> 20759 <exclude />
19728 </member> 20760 </member>
19729 <member name="T:OpenMetaverse.Packets.LiveHelpGroupRequestPacket.RequestDataBlock"> 20761 <member name="T:OpenMetaverse.Packets.LiveHelpGroupRequestPacket.RequestDataBlock">
19730 <exclude/> 20762 <exclude />
19731 </member> 20763 </member>
19732 <member name="T:OpenMetaverse.Packets.LiveHelpGroupReplyPacket"> 20764 <member name="T:OpenMetaverse.Packets.LiveHelpGroupReplyPacket">
19733 <exclude/> 20765 <exclude />
19734 </member> 20766 </member>
19735 <member name="T:OpenMetaverse.Packets.LiveHelpGroupReplyPacket.ReplyDataBlock"> 20767 <member name="T:OpenMetaverse.Packets.LiveHelpGroupReplyPacket.ReplyDataBlock">
19736 <exclude/> 20768 <exclude />
19737 </member> 20769 </member>
19738 <member name="T:OpenMetaverse.Packets.AgentWearablesRequestPacket"> 20770 <member name="T:OpenMetaverse.Packets.AgentWearablesRequestPacket">
19739 <exclude/> 20771 <exclude />
19740 </member> 20772 </member>
19741 <member name="T:OpenMetaverse.Packets.AgentWearablesRequestPacket.AgentDataBlock"> 20773 <member name="T:OpenMetaverse.Packets.AgentWearablesRequestPacket.AgentDataBlock">
19742 <exclude/> 20774 <exclude />
19743 </member> 20775 </member>
19744 <member name="T:OpenMetaverse.Packets.AgentWearablesUpdatePacket"> 20776 <member name="T:OpenMetaverse.Packets.AgentWearablesUpdatePacket">
19745 <exclude/> 20777 <exclude />
19746 </member> 20778 </member>
19747 <member name="T:OpenMetaverse.Packets.AgentWearablesUpdatePacket.AgentDataBlock"> 20779 <member name="T:OpenMetaverse.Packets.AgentWearablesUpdatePacket.AgentDataBlock">
19748 <exclude/> 20780 <exclude />
19749 </member> 20781 </member>
19750 <member name="T:OpenMetaverse.Packets.AgentWearablesUpdatePacket.WearableDataBlock"> 20782 <member name="T:OpenMetaverse.Packets.AgentWearablesUpdatePacket.WearableDataBlock">
19751 <exclude/> 20783 <exclude />
19752 </member> 20784 </member>
19753 <member name="T:OpenMetaverse.Packets.AgentIsNowWearingPacket"> 20785 <member name="T:OpenMetaverse.Packets.AgentIsNowWearingPacket">
19754 <exclude/> 20786 <exclude />
19755 </member> 20787 </member>
19756 <member name="T:OpenMetaverse.Packets.AgentIsNowWearingPacket.AgentDataBlock"> 20788 <member name="T:OpenMetaverse.Packets.AgentIsNowWearingPacket.AgentDataBlock">
19757 <exclude/> 20789 <exclude />
19758 </member> 20790 </member>
19759 <member name="T:OpenMetaverse.Packets.AgentIsNowWearingPacket.WearableDataBlock"> 20791 <member name="T:OpenMetaverse.Packets.AgentIsNowWearingPacket.WearableDataBlock">
19760 <exclude/> 20792 <exclude />
19761 </member> 20793 </member>
19762 <member name="T:OpenMetaverse.Packets.AgentCachedTexturePacket"> 20794 <member name="T:OpenMetaverse.Packets.AgentCachedTexturePacket">
19763 <exclude/> 20795 <exclude />
19764 </member> 20796 </member>
19765 <member name="T:OpenMetaverse.Packets.AgentCachedTexturePacket.AgentDataBlock"> 20797 <member name="T:OpenMetaverse.Packets.AgentCachedTexturePacket.AgentDataBlock">
19766 <exclude/> 20798 <exclude />
19767 </member> 20799 </member>
19768 <member name="T:OpenMetaverse.Packets.AgentCachedTexturePacket.WearableDataBlock"> 20800 <member name="T:OpenMetaverse.Packets.AgentCachedTexturePacket.WearableDataBlock">
19769 <exclude/> 20801 <exclude />
19770 </member> 20802 </member>
19771 <member name="T:OpenMetaverse.Packets.AgentCachedTextureResponsePacket"> 20803 <member name="T:OpenMetaverse.Packets.AgentCachedTextureResponsePacket">
19772 <exclude/> 20804 <exclude />
19773 </member> 20805 </member>
19774 <member name="T:OpenMetaverse.Packets.AgentCachedTextureResponsePacket.AgentDataBlock"> 20806 <member name="T:OpenMetaverse.Packets.AgentCachedTextureResponsePacket.AgentDataBlock">
19775 <exclude/> 20807 <exclude />
19776 </member> 20808 </member>
19777 <member name="T:OpenMetaverse.Packets.AgentCachedTextureResponsePacket.WearableDataBlock"> 20809 <member name="T:OpenMetaverse.Packets.AgentCachedTextureResponsePacket.WearableDataBlock">
19778 <exclude/> 20810 <exclude />
19779 </member> 20811 </member>
19780 <member name="T:OpenMetaverse.Packets.AgentDataUpdateRequestPacket"> 20812 <member name="T:OpenMetaverse.Packets.AgentDataUpdateRequestPacket">
19781 <exclude/> 20813 <exclude />
19782 </member> 20814 </member>
19783 <member name="T:OpenMetaverse.Packets.AgentDataUpdateRequestPacket.AgentDataBlock"> 20815 <member name="T:OpenMetaverse.Packets.AgentDataUpdateRequestPacket.AgentDataBlock">
19784 <exclude/> 20816 <exclude />
19785 </member> 20817 </member>
19786 <member name="T:OpenMetaverse.Packets.AgentDataUpdatePacket"> 20818 <member name="T:OpenMetaverse.Packets.AgentDataUpdatePacket">
19787 <exclude/> 20819 <exclude />
19788 </member> 20820 </member>
19789 <member name="T:OpenMetaverse.Packets.AgentDataUpdatePacket.AgentDataBlock"> 20821 <member name="T:OpenMetaverse.Packets.AgentDataUpdatePacket.AgentDataBlock">
19790 <exclude/> 20822 <exclude />
19791 </member> 20823 </member>
19792 <member name="T:OpenMetaverse.Packets.GroupDataUpdatePacket"> 20824 <member name="T:OpenMetaverse.Packets.GroupDataUpdatePacket">
19793 <exclude/> 20825 <exclude />
19794 </member> 20826 </member>
19795 <member name="T:OpenMetaverse.Packets.GroupDataUpdatePacket.AgentGroupDataBlock"> 20827 <member name="T:OpenMetaverse.Packets.GroupDataUpdatePacket.AgentGroupDataBlock">
19796 <exclude/> 20828 <exclude />
19797 </member> 20829 </member>
19798 <member name="T:OpenMetaverse.Packets.AgentGroupDataUpdatePacket"> 20830 <member name="T:OpenMetaverse.Packets.AgentGroupDataUpdatePacket">
19799 <exclude/> 20831 <exclude />
19800 </member> 20832 </member>
19801 <member name="T:OpenMetaverse.Packets.AgentGroupDataUpdatePacket.AgentDataBlock"> 20833 <member name="T:OpenMetaverse.Packets.AgentGroupDataUpdatePacket.AgentDataBlock">
19802 <exclude/> 20834 <exclude />
19803 </member> 20835 </member>
19804 <member name="T:OpenMetaverse.Packets.AgentGroupDataUpdatePacket.GroupDataBlock"> 20836 <member name="T:OpenMetaverse.Packets.AgentGroupDataUpdatePacket.GroupDataBlock">
19805 <exclude/> 20837 <exclude />
19806 </member> 20838 </member>
19807 <member name="T:OpenMetaverse.Packets.AgentDropGroupPacket"> 20839 <member name="T:OpenMetaverse.Packets.AgentDropGroupPacket">
19808 <exclude/> 20840 <exclude />
19809 </member> 20841 </member>
19810 <member name="T:OpenMetaverse.Packets.AgentDropGroupPacket.AgentDataBlock"> 20842 <member name="T:OpenMetaverse.Packets.AgentDropGroupPacket.AgentDataBlock">
19811 <exclude/> 20843 <exclude />
19812 </member> 20844 </member>
19813 <member name="T:OpenMetaverse.Packets.RezSingleAttachmentFromInvPacket"> 20845 <member name="T:OpenMetaverse.Packets.RezSingleAttachmentFromInvPacket">
19814 <exclude/> 20846 <exclude />
19815 </member> 20847 </member>
19816 <member name="T:OpenMetaverse.Packets.RezSingleAttachmentFromInvPacket.AgentDataBlock"> 20848 <member name="T:OpenMetaverse.Packets.RezSingleAttachmentFromInvPacket.AgentDataBlock">
19817 <exclude/> 20849 <exclude />
19818 </member> 20850 </member>
19819 <member name="T:OpenMetaverse.Packets.RezSingleAttachmentFromInvPacket.ObjectDataBlock"> 20851 <member name="T:OpenMetaverse.Packets.RezSingleAttachmentFromInvPacket.ObjectDataBlock">
19820 <exclude/> 20852 <exclude />
19821 </member> 20853 </member>
19822 <member name="T:OpenMetaverse.Packets.RezMultipleAttachmentsFromInvPacket"> 20854 <member name="T:OpenMetaverse.Packets.RezMultipleAttachmentsFromInvPacket">
19823 <exclude/> 20855 <exclude />
19824 </member> 20856 </member>
19825 <member name="T:OpenMetaverse.Packets.RezMultipleAttachmentsFromInvPacket.AgentDataBlock"> 20857 <member name="T:OpenMetaverse.Packets.RezMultipleAttachmentsFromInvPacket.AgentDataBlock">
19826 <exclude/> 20858 <exclude />
19827 </member> 20859 </member>
19828 <member name="T:OpenMetaverse.Packets.RezMultipleAttachmentsFromInvPacket.HeaderDataBlock"> 20860 <member name="T:OpenMetaverse.Packets.RezMultipleAttachmentsFromInvPacket.HeaderDataBlock">
19829 <exclude/> 20861 <exclude />
19830 </member> 20862 </member>
19831 <member name="T:OpenMetaverse.Packets.RezMultipleAttachmentsFromInvPacket.ObjectDataBlock"> 20863 <member name="T:OpenMetaverse.Packets.RezMultipleAttachmentsFromInvPacket.ObjectDataBlock">
19832 <exclude/> 20864 <exclude />
19833 </member> 20865 </member>
19834 <member name="T:OpenMetaverse.Packets.DetachAttachmentIntoInvPacket"> 20866 <member name="T:OpenMetaverse.Packets.DetachAttachmentIntoInvPacket">
19835 <exclude/> 20867 <exclude />
19836 </member> 20868 </member>
19837 <member name="T:OpenMetaverse.Packets.DetachAttachmentIntoInvPacket.ObjectDataBlock"> 20869 <member name="T:OpenMetaverse.Packets.DetachAttachmentIntoInvPacket.ObjectDataBlock">
19838 <exclude/> 20870 <exclude />
19839 </member> 20871 </member>
19840 <member name="T:OpenMetaverse.Packets.CreateNewOutfitAttachmentsPacket"> 20872 <member name="T:OpenMetaverse.Packets.CreateNewOutfitAttachmentsPacket">
19841 <exclude/> 20873 <exclude />
19842 </member> 20874 </member>
19843 <member name="T:OpenMetaverse.Packets.CreateNewOutfitAttachmentsPacket.AgentDataBlock"> 20875 <member name="T:OpenMetaverse.Packets.CreateNewOutfitAttachmentsPacket.AgentDataBlock">
19844 <exclude/> 20876 <exclude />
19845 </member> 20877 </member>
19846 <member name="T:OpenMetaverse.Packets.CreateNewOutfitAttachmentsPacket.HeaderDataBlock"> 20878 <member name="T:OpenMetaverse.Packets.CreateNewOutfitAttachmentsPacket.HeaderDataBlock">
19847 <exclude/> 20879 <exclude />
19848 </member> 20880 </member>
19849 <member name="T:OpenMetaverse.Packets.CreateNewOutfitAttachmentsPacket.ObjectDataBlock"> 20881 <member name="T:OpenMetaverse.Packets.CreateNewOutfitAttachmentsPacket.ObjectDataBlock">
19850 <exclude/> 20882 <exclude />
19851 </member> 20883 </member>
19852 <member name="T:OpenMetaverse.Packets.UserInfoRequestPacket"> 20884 <member name="T:OpenMetaverse.Packets.UserInfoRequestPacket">
19853 <exclude/> 20885 <exclude />
19854 </member> 20886 </member>
19855 <member name="T:OpenMetaverse.Packets.UserInfoRequestPacket.AgentDataBlock"> 20887 <member name="T:OpenMetaverse.Packets.UserInfoRequestPacket.AgentDataBlock">
19856 <exclude/> 20888 <exclude />
19857 </member> 20889 </member>
19858 <member name="T:OpenMetaverse.Packets.UserInfoReplyPacket"> 20890 <member name="T:OpenMetaverse.Packets.UserInfoReplyPacket">
19859 <exclude/> 20891 <exclude />
19860 </member> 20892 </member>
19861 <member name="T:OpenMetaverse.Packets.UserInfoReplyPacket.AgentDataBlock"> 20893 <member name="T:OpenMetaverse.Packets.UserInfoReplyPacket.AgentDataBlock">
19862 <exclude/> 20894 <exclude />
19863 </member> 20895 </member>
19864 <member name="T:OpenMetaverse.Packets.UserInfoReplyPacket.UserDataBlock"> 20896 <member name="T:OpenMetaverse.Packets.UserInfoReplyPacket.UserDataBlock">
19865 <exclude/> 20897 <exclude />
19866 </member> 20898 </member>
19867 <member name="T:OpenMetaverse.Packets.UpdateUserInfoPacket"> 20899 <member name="T:OpenMetaverse.Packets.UpdateUserInfoPacket">
19868 <exclude/> 20900 <exclude />
19869 </member> 20901 </member>
19870 <member name="T:OpenMetaverse.Packets.UpdateUserInfoPacket.AgentDataBlock"> 20902 <member name="T:OpenMetaverse.Packets.UpdateUserInfoPacket.AgentDataBlock">
19871 <exclude/> 20903 <exclude />
19872 </member> 20904 </member>
19873 <member name="T:OpenMetaverse.Packets.UpdateUserInfoPacket.UserDataBlock"> 20905 <member name="T:OpenMetaverse.Packets.UpdateUserInfoPacket.UserDataBlock">
19874 <exclude/> 20906 <exclude />
19875 </member> 20907 </member>
19876 <member name="T:OpenMetaverse.Packets.InitiateDownloadPacket"> 20908 <member name="T:OpenMetaverse.Packets.InitiateDownloadPacket">
19877 <exclude/> 20909 <exclude />
19878 </member> 20910 </member>
19879 <member name="T:OpenMetaverse.Packets.InitiateDownloadPacket.AgentDataBlock"> 20911 <member name="T:OpenMetaverse.Packets.InitiateDownloadPacket.AgentDataBlock">
19880 <exclude/> 20912 <exclude />
19881 </member> 20913 </member>
19882 <member name="T:OpenMetaverse.Packets.InitiateDownloadPacket.FileDataBlock"> 20914 <member name="T:OpenMetaverse.Packets.InitiateDownloadPacket.FileDataBlock">
19883 <exclude/> 20915 <exclude />
19884 </member> 20916 </member>
19885 <member name="T:OpenMetaverse.Packets.MapLayerRequestPacket"> 20917 <member name="T:OpenMetaverse.Packets.MapLayerRequestPacket">
19886 <exclude/> 20918 <exclude />
19887 </member> 20919 </member>
19888 <member name="T:OpenMetaverse.Packets.MapLayerRequestPacket.AgentDataBlock"> 20920 <member name="T:OpenMetaverse.Packets.MapLayerRequestPacket.AgentDataBlock">
19889 <exclude/> 20921 <exclude />
19890 </member> 20922 </member>
19891 <member name="T:OpenMetaverse.Packets.MapLayerReplyPacket"> 20923 <member name="T:OpenMetaverse.Packets.MapLayerReplyPacket">
19892 <exclude/> 20924 <exclude />
19893 </member> 20925 </member>
19894 <member name="T:OpenMetaverse.Packets.MapLayerReplyPacket.AgentDataBlock"> 20926 <member name="T:OpenMetaverse.Packets.MapLayerReplyPacket.AgentDataBlock">
19895 <exclude/> 20927 <exclude />
19896 </member> 20928 </member>
19897 <member name="T:OpenMetaverse.Packets.MapLayerReplyPacket.LayerDataBlock"> 20929 <member name="T:OpenMetaverse.Packets.MapLayerReplyPacket.LayerDataBlock">
19898 <exclude/> 20930 <exclude />
19899 </member> 20931 </member>
19900 <member name="T:OpenMetaverse.Packets.MapBlockRequestPacket"> 20932 <member name="T:OpenMetaverse.Packets.MapBlockRequestPacket">
19901 <exclude/> 20933 <exclude />
19902 </member> 20934 </member>
19903 <member name="T:OpenMetaverse.Packets.MapBlockRequestPacket.AgentDataBlock"> 20935 <member name="T:OpenMetaverse.Packets.MapBlockRequestPacket.AgentDataBlock">
19904 <exclude/> 20936 <exclude />
19905 </member> 20937 </member>
19906 <member name="T:OpenMetaverse.Packets.MapBlockRequestPacket.PositionDataBlock"> 20938 <member name="T:OpenMetaverse.Packets.MapBlockRequestPacket.PositionDataBlock">
19907 <exclude/> 20939 <exclude />
19908 </member> 20940 </member>
19909 <member name="T:OpenMetaverse.Packets.MapNameRequestPacket"> 20941 <member name="T:OpenMetaverse.Packets.MapNameRequestPacket">
19910 <exclude/> 20942 <exclude />
19911 </member> 20943 </member>
19912 <member name="T:OpenMetaverse.Packets.MapNameRequestPacket.AgentDataBlock"> 20944 <member name="T:OpenMetaverse.Packets.MapNameRequestPacket.AgentDataBlock">
19913 <exclude/> 20945 <exclude />
19914 </member> 20946 </member>
19915 <member name="T:OpenMetaverse.Packets.MapNameRequestPacket.NameDataBlock"> 20947 <member name="T:OpenMetaverse.Packets.MapNameRequestPacket.NameDataBlock">
19916 <exclude/> 20948 <exclude />
19917 </member> 20949 </member>
19918 <member name="T:OpenMetaverse.Packets.MapBlockReplyPacket"> 20950 <member name="T:OpenMetaverse.Packets.MapBlockReplyPacket">
19919 <exclude/> 20951 <exclude />
19920 </member> 20952 </member>
19921 <member name="T:OpenMetaverse.Packets.MapBlockReplyPacket.AgentDataBlock"> 20953 <member name="T:OpenMetaverse.Packets.MapBlockReplyPacket.AgentDataBlock">
19922 <exclude/> 20954 <exclude />
19923 </member> 20955 </member>
19924 <member name="T:OpenMetaverse.Packets.MapBlockReplyPacket.DataBlock"> 20956 <member name="T:OpenMetaverse.Packets.MapBlockReplyPacket.DataBlock">
19925 <exclude/> 20957 <exclude />
19926 </member> 20958 </member>
19927 <member name="T:OpenMetaverse.Packets.MapItemRequestPacket"> 20959 <member name="T:OpenMetaverse.Packets.MapItemRequestPacket">
19928 <exclude/> 20960 <exclude />
19929 </member> 20961 </member>
19930 <member name="T:OpenMetaverse.Packets.MapItemRequestPacket.AgentDataBlock"> 20962 <member name="T:OpenMetaverse.Packets.MapItemRequestPacket.AgentDataBlock">
19931 <exclude/> 20963 <exclude />
19932 </member> 20964 </member>
19933 <member name="T:OpenMetaverse.Packets.MapItemRequestPacket.RequestDataBlock"> 20965 <member name="T:OpenMetaverse.Packets.MapItemRequestPacket.RequestDataBlock">
19934 <exclude/> 20966 <exclude />
19935 </member> 20967 </member>
19936 <member name="T:OpenMetaverse.Packets.MapItemReplyPacket"> 20968 <member name="T:OpenMetaverse.Packets.MapItemReplyPacket">
19937 <exclude/> 20969 <exclude />
19938 </member> 20970 </member>
19939 <member name="T:OpenMetaverse.Packets.MapItemReplyPacket.AgentDataBlock"> 20971 <member name="T:OpenMetaverse.Packets.MapItemReplyPacket.AgentDataBlock">
19940 <exclude/> 20972 <exclude />
19941 </member> 20973 </member>
19942 <member name="T:OpenMetaverse.Packets.MapItemReplyPacket.RequestDataBlock"> 20974 <member name="T:OpenMetaverse.Packets.MapItemReplyPacket.RequestDataBlock">
19943 <exclude/> 20975 <exclude />
19944 </member> 20976 </member>
19945 <member name="T:OpenMetaverse.Packets.MapItemReplyPacket.DataBlock"> 20977 <member name="T:OpenMetaverse.Packets.MapItemReplyPacket.DataBlock">
19946 <exclude/> 20978 <exclude />
19947 </member> 20979 </member>
19948 <member name="T:OpenMetaverse.Packets.SendPostcardPacket"> 20980 <member name="T:OpenMetaverse.Packets.SendPostcardPacket">
19949 <exclude/> 20981 <exclude />
19950 </member> 20982 </member>
19951 <member name="T:OpenMetaverse.Packets.SendPostcardPacket.AgentDataBlock"> 20983 <member name="T:OpenMetaverse.Packets.SendPostcardPacket.AgentDataBlock">
19952 <exclude/> 20984 <exclude />
19953 </member> 20985 </member>
19954 <member name="T:OpenMetaverse.Packets.ParcelMediaCommandMessagePacket"> 20986 <member name="T:OpenMetaverse.Packets.ParcelMediaCommandMessagePacket">
19955 <exclude/> 20987 <exclude />
19956 </member> 20988 </member>
19957 <member name="T:OpenMetaverse.Packets.ParcelMediaCommandMessagePacket.CommandBlockBlock"> 20989 <member name="T:OpenMetaverse.Packets.ParcelMediaCommandMessagePacket.CommandBlockBlock">
19958 <exclude/> 20990 <exclude />
19959 </member> 20991 </member>
19960 <member name="T:OpenMetaverse.Packets.ParcelMediaUpdatePacket"> 20992 <member name="T:OpenMetaverse.Packets.ParcelMediaUpdatePacket">
19961 <exclude/> 20993 <exclude />
19962 </member> 20994 </member>
19963 <member name="T:OpenMetaverse.Packets.ParcelMediaUpdatePacket.DataBlockBlock"> 20995 <member name="T:OpenMetaverse.Packets.ParcelMediaUpdatePacket.DataBlockBlock">
19964 <exclude/> 20996 <exclude />
19965 </member> 20997 </member>
19966 <member name="T:OpenMetaverse.Packets.ParcelMediaUpdatePacket.DataBlockExtendedBlock"> 20998 <member name="T:OpenMetaverse.Packets.ParcelMediaUpdatePacket.DataBlockExtendedBlock">
19967 <exclude/> 20999 <exclude />
19968 </member> 21000 </member>
19969 <member name="T:OpenMetaverse.Packets.LandStatRequestPacket"> 21001 <member name="T:OpenMetaverse.Packets.LandStatRequestPacket">
19970 <exclude/> 21002 <exclude />
19971 </member> 21003 </member>
19972 <member name="T:OpenMetaverse.Packets.LandStatRequestPacket.AgentDataBlock"> 21004 <member name="T:OpenMetaverse.Packets.LandStatRequestPacket.AgentDataBlock">
19973 <exclude/> 21005 <exclude />
19974 </member> 21006 </member>
19975 <member name="T:OpenMetaverse.Packets.LandStatRequestPacket.RequestDataBlock"> 21007 <member name="T:OpenMetaverse.Packets.LandStatRequestPacket.RequestDataBlock">
19976 <exclude/> 21008 <exclude />
19977 </member> 21009 </member>
19978 <member name="T:OpenMetaverse.Packets.LandStatReplyPacket"> 21010 <member name="T:OpenMetaverse.Packets.LandStatReplyPacket">
19979 <exclude/> 21011 <exclude />
19980 </member> 21012 </member>
19981 <member name="T:OpenMetaverse.Packets.LandStatReplyPacket.RequestDataBlock"> 21013 <member name="T:OpenMetaverse.Packets.LandStatReplyPacket.RequestDataBlock">
19982 <exclude/> 21014 <exclude />
19983 </member> 21015 </member>
19984 <member name="T:OpenMetaverse.Packets.LandStatReplyPacket.ReportDataBlock"> 21016 <member name="T:OpenMetaverse.Packets.LandStatReplyPacket.ReportDataBlock">
19985 <exclude/> 21017 <exclude />
19986 </member> 21018 </member>
19987 <member name="T:OpenMetaverse.Packets.ErrorPacket"> 21019 <member name="T:OpenMetaverse.Packets.ErrorPacket">
19988 <exclude/> 21020 <exclude />
19989 </member> 21021 </member>
19990 <member name="T:OpenMetaverse.Packets.ErrorPacket.AgentDataBlock"> 21022 <member name="T:OpenMetaverse.Packets.ErrorPacket.AgentDataBlock">
19991 <exclude/> 21023 <exclude />
19992 </member> 21024 </member>
19993 <member name="T:OpenMetaverse.Packets.ErrorPacket.DataBlock"> 21025 <member name="T:OpenMetaverse.Packets.ErrorPacket.DataBlock">
19994 <exclude/> 21026 <exclude />
19995 </member> 21027 </member>
19996 <member name="T:OpenMetaverse.Packets.ObjectIncludeInSearchPacket"> 21028 <member name="T:OpenMetaverse.Packets.ObjectIncludeInSearchPacket">
19997 <exclude/> 21029 <exclude />
19998 </member> 21030 </member>
19999 <member name="T:OpenMetaverse.Packets.ObjectIncludeInSearchPacket.AgentDataBlock"> 21031 <member name="T:OpenMetaverse.Packets.ObjectIncludeInSearchPacket.AgentDataBlock">
20000 <exclude/> 21032 <exclude />
20001 </member> 21033 </member>
20002 <member name="T:OpenMetaverse.Packets.ObjectIncludeInSearchPacket.ObjectDataBlock"> 21034 <member name="T:OpenMetaverse.Packets.ObjectIncludeInSearchPacket.ObjectDataBlock">
20003 <exclude/> 21035 <exclude />
20004 </member> 21036 </member>
20005 <member name="T:OpenMetaverse.Packets.RezRestoreToWorldPacket"> 21037 <member name="T:OpenMetaverse.Packets.RezRestoreToWorldPacket">
20006 <exclude/> 21038 <exclude />
20007 </member> 21039 </member>
20008 <member name="T:OpenMetaverse.Packets.RezRestoreToWorldPacket.AgentDataBlock"> 21040 <member name="T:OpenMetaverse.Packets.RezRestoreToWorldPacket.AgentDataBlock">
20009 <exclude/> 21041 <exclude />
20010 </member> 21042 </member>
20011 <member name="T:OpenMetaverse.Packets.RezRestoreToWorldPacket.InventoryDataBlock"> 21043 <member name="T:OpenMetaverse.Packets.RezRestoreToWorldPacket.InventoryDataBlock">
20012 <exclude/> 21044 <exclude />
20013 </member> 21045 </member>
20014 <member name="T:OpenMetaverse.Packets.LinkInventoryItemPacket"> 21046 <member name="T:OpenMetaverse.Packets.LinkInventoryItemPacket">
20015 <exclude/> 21047 <exclude />
20016 </member> 21048 </member>
20017 <member name="T:OpenMetaverse.Packets.LinkInventoryItemPacket.AgentDataBlock"> 21049 <member name="T:OpenMetaverse.Packets.LinkInventoryItemPacket.AgentDataBlock">
20018 <exclude/> 21050 <exclude />
20019 </member> 21051 </member>
20020 <member name="T:OpenMetaverse.Packets.LinkInventoryItemPacket.InventoryBlockBlock"> 21052 <member name="T:OpenMetaverse.Packets.LinkInventoryItemPacket.InventoryBlockBlock">
20021 <exclude/> 21053 <exclude />
20022 </member> 21054 </member>
20023 <member name="T:OpenMetaverse.Packets.PacketAckPacket"> 21055 <member name="T:OpenMetaverse.Packets.PacketAckPacket">
20024 <exclude/> 21056 <exclude />
20025 </member> 21057 </member>
20026 <member name="T:OpenMetaverse.Packets.PacketAckPacket.PacketsBlock"> 21058 <member name="T:OpenMetaverse.Packets.PacketAckPacket.PacketsBlock">
20027 <exclude/> 21059 <exclude />
20028 </member> 21060 </member>
20029 <member name="T:OpenMetaverse.Packets.OpenCircuitPacket"> 21061 <member name="T:OpenMetaverse.Packets.OpenCircuitPacket">
20030 <exclude/> 21062 <exclude />
20031 </member> 21063 </member>
20032 <member name="T:OpenMetaverse.Packets.OpenCircuitPacket.CircuitInfoBlock"> 21064 <member name="T:OpenMetaverse.Packets.OpenCircuitPacket.CircuitInfoBlock">
20033 <exclude/> 21065 <exclude />
20034 </member> 21066 </member>
20035 <member name="T:OpenMetaverse.Packets.CloseCircuitPacket"> 21067 <member name="T:OpenMetaverse.Packets.CloseCircuitPacket">
20036 <exclude/> 21068 <exclude />
20037 </member> 21069 </member>
20038 <member name="T:OpenMetaverse.Packets.ObjectAddPacket"> 21070 <member name="T:OpenMetaverse.Packets.ObjectAddPacket">
20039 <exclude/> 21071 <exclude />
20040 </member> 21072 </member>
20041 <member name="T:OpenMetaverse.Packets.ObjectAddPacket.AgentDataBlock"> 21073 <member name="T:OpenMetaverse.Packets.ObjectAddPacket.AgentDataBlock">
20042 <exclude/> 21074 <exclude />
20043 </member> 21075 </member>
20044 <member name="T:OpenMetaverse.Packets.ObjectAddPacket.ObjectDataBlock"> 21076 <member name="T:OpenMetaverse.Packets.ObjectAddPacket.ObjectDataBlock">
20045 <exclude/> 21077 <exclude />
20046 </member> 21078 </member>
20047 <member name="T:OpenMetaverse.Packets.MultipleObjectUpdatePacket"> 21079 <member name="T:OpenMetaverse.Packets.MultipleObjectUpdatePacket">
20048 <exclude/> 21080 <exclude />
20049 </member> 21081 </member>
20050 <member name="T:OpenMetaverse.Packets.MultipleObjectUpdatePacket.AgentDataBlock"> 21082 <member name="T:OpenMetaverse.Packets.MultipleObjectUpdatePacket.AgentDataBlock">
20051 <exclude/> 21083 <exclude />
20052 </member> 21084 </member>
20053 <member name="T:OpenMetaverse.Packets.MultipleObjectUpdatePacket.ObjectDataBlock"> 21085 <member name="T:OpenMetaverse.Packets.MultipleObjectUpdatePacket.ObjectDataBlock">
20054 <exclude/> 21086 <exclude />
20055 </member> 21087 </member>
20056 <member name="T:OpenMetaverse.Packets.RequestMultipleObjectsPacket"> 21088 <member name="T:OpenMetaverse.Packets.RequestMultipleObjectsPacket">
20057 <exclude/> 21089 <exclude />
20058 </member> 21090 </member>
20059 <member name="T:OpenMetaverse.Packets.RequestMultipleObjectsPacket.AgentDataBlock"> 21091 <member name="T:OpenMetaverse.Packets.RequestMultipleObjectsPacket.AgentDataBlock">
20060 <exclude/> 21092 <exclude />
20061 </member> 21093 </member>
20062 <member name="T:OpenMetaverse.Packets.RequestMultipleObjectsPacket.ObjectDataBlock"> 21094 <member name="T:OpenMetaverse.Packets.RequestMultipleObjectsPacket.ObjectDataBlock">
20063 <exclude/> 21095 <exclude />
20064 </member> 21096 </member>
20065 <member name="T:OpenMetaverse.Packets.ObjectPositionPacket"> 21097 <member name="T:OpenMetaverse.Packets.ObjectPositionPacket">
20066 <exclude/> 21098 <exclude />
20067 </member> 21099 </member>
20068 <member name="T:OpenMetaverse.Packets.ObjectPositionPacket.AgentDataBlock"> 21100 <member name="T:OpenMetaverse.Packets.ObjectPositionPacket.AgentDataBlock">
20069 <exclude/> 21101 <exclude />
20070 </member> 21102 </member>
20071 <member name="T:OpenMetaverse.Packets.ObjectPositionPacket.ObjectDataBlock"> 21103 <member name="T:OpenMetaverse.Packets.ObjectPositionPacket.ObjectDataBlock">
20072 <exclude/> 21104 <exclude />
20073 </member> 21105 </member>
20074 <member name="T:OpenMetaverse.Packets.RequestObjectPropertiesFamilyPacket"> 21106 <member name="T:OpenMetaverse.Packets.RequestObjectPropertiesFamilyPacket">
20075 <exclude/> 21107 <exclude />
20076 </member> 21108 </member>
20077 <member name="T:OpenMetaverse.Packets.RequestObjectPropertiesFamilyPacket.AgentDataBlock"> 21109 <member name="T:OpenMetaverse.Packets.RequestObjectPropertiesFamilyPacket.AgentDataBlock">
20078 <exclude/> 21110 <exclude />
20079 </member> 21111 </member>
20080 <member name="T:OpenMetaverse.Packets.RequestObjectPropertiesFamilyPacket.ObjectDataBlock"> 21112 <member name="T:OpenMetaverse.Packets.RequestObjectPropertiesFamilyPacket.ObjectDataBlock">
20081 <exclude/> 21113 <exclude />
20082 </member> 21114 </member>
20083 <member name="T:OpenMetaverse.Packets.CoarseLocationUpdatePacket"> 21115 <member name="T:OpenMetaverse.Packets.CoarseLocationUpdatePacket">
20084 <exclude/> 21116 <exclude />
20085 </member> 21117 </member>
20086 <member name="T:OpenMetaverse.Packets.CoarseLocationUpdatePacket.LocationBlock"> 21118 <member name="T:OpenMetaverse.Packets.CoarseLocationUpdatePacket.LocationBlock">
20087 <exclude/> 21119 <exclude />
20088 </member> 21120 </member>
20089 <member name="T:OpenMetaverse.Packets.CoarseLocationUpdatePacket.IndexBlock"> 21121 <member name="T:OpenMetaverse.Packets.CoarseLocationUpdatePacket.IndexBlock">
20090 <exclude/> 21122 <exclude />
20091 </member> 21123 </member>
20092 <member name="T:OpenMetaverse.Packets.CoarseLocationUpdatePacket.AgentDataBlock"> 21124 <member name="T:OpenMetaverse.Packets.CoarseLocationUpdatePacket.AgentDataBlock">
20093 <exclude/> 21125 <exclude />
20094 </member> 21126 </member>
20095 <member name="T:OpenMetaverse.Packets.CrossedRegionPacket"> 21127 <member name="T:OpenMetaverse.Packets.CrossedRegionPacket">
20096 <exclude/> 21128 <exclude />
20097 </member> 21129 </member>
20098 <member name="T:OpenMetaverse.Packets.CrossedRegionPacket.AgentDataBlock"> 21130 <member name="T:OpenMetaverse.Packets.CrossedRegionPacket.AgentDataBlock">
20099 <exclude/> 21131 <exclude />
20100 </member> 21132 </member>
20101 <member name="T:OpenMetaverse.Packets.CrossedRegionPacket.RegionDataBlock"> 21133 <member name="T:OpenMetaverse.Packets.CrossedRegionPacket.RegionDataBlock">
20102 <exclude/> 21134 <exclude />
20103 </member> 21135 </member>
20104 <member name="T:OpenMetaverse.Packets.CrossedRegionPacket.InfoBlock"> 21136 <member name="T:OpenMetaverse.Packets.CrossedRegionPacket.InfoBlock">
20105 <exclude/> 21137 <exclude />
20106 </member> 21138 </member>
20107 <member name="T:OpenMetaverse.Packets.ConfirmEnableSimulatorPacket"> 21139 <member name="T:OpenMetaverse.Packets.ConfirmEnableSimulatorPacket">
20108 <exclude/> 21140 <exclude />
20109 </member> 21141 </member>
20110 <member name="T:OpenMetaverse.Packets.ConfirmEnableSimulatorPacket.AgentDataBlock"> 21142 <member name="T:OpenMetaverse.Packets.ConfirmEnableSimulatorPacket.AgentDataBlock">
20111 <exclude/> 21143 <exclude />
20112 </member> 21144 </member>
20113 <member name="T:OpenMetaverse.Packets.ObjectPropertiesPacket"> 21145 <member name="T:OpenMetaverse.Packets.ObjectPropertiesPacket">
20114 <exclude/> 21146 <exclude />
20115 </member> 21147 </member>
20116 <member name="T:OpenMetaverse.Packets.ObjectPropertiesPacket.ObjectDataBlock"> 21148 <member name="T:OpenMetaverse.Packets.ObjectPropertiesPacket.ObjectDataBlock">
20117 <exclude/> 21149 <exclude />
20118 </member> 21150 </member>
20119 <member name="T:OpenMetaverse.Packets.ObjectPropertiesFamilyPacket"> 21151 <member name="T:OpenMetaverse.Packets.ObjectPropertiesFamilyPacket">
20120 <exclude/> 21152 <exclude />
20121 </member> 21153 </member>
20122 <member name="T:OpenMetaverse.Packets.ObjectPropertiesFamilyPacket.ObjectDataBlock"> 21154 <member name="T:OpenMetaverse.Packets.ObjectPropertiesFamilyPacket.ObjectDataBlock">
20123 <exclude/> 21155 <exclude />
20124 </member> 21156 </member>
20125 <member name="T:OpenMetaverse.Packets.ParcelPropertiesRequestPacket"> 21157 <member name="T:OpenMetaverse.Packets.ParcelPropertiesRequestPacket">
20126 <exclude/> 21158 <exclude />
20127 </member> 21159 </member>
20128 <member name="T:OpenMetaverse.Packets.ParcelPropertiesRequestPacket.AgentDataBlock"> 21160 <member name="T:OpenMetaverse.Packets.ParcelPropertiesRequestPacket.AgentDataBlock">
20129 <exclude/> 21161 <exclude />
20130 </member> 21162 </member>
20131 <member name="T:OpenMetaverse.Packets.ParcelPropertiesRequestPacket.ParcelDataBlock"> 21163 <member name="T:OpenMetaverse.Packets.ParcelPropertiesRequestPacket.ParcelDataBlock">
20132 <exclude/> 21164 <exclude />
20133 </member> 21165 </member>
20134 <member name="T:OpenMetaverse.Packets.AttachedSoundPacket"> 21166 <member name="T:OpenMetaverse.Packets.AttachedSoundPacket">
20135 <exclude/> 21167 <exclude />
20136 </member> 21168 </member>
20137 <member name="T:OpenMetaverse.Packets.AttachedSoundPacket.DataBlockBlock"> 21169 <member name="T:OpenMetaverse.Packets.AttachedSoundPacket.DataBlockBlock">
20138 <exclude/> 21170 <exclude />
20139 </member> 21171 </member>
20140 <member name="T:OpenMetaverse.Packets.AttachedSoundGainChangePacket"> 21172 <member name="T:OpenMetaverse.Packets.AttachedSoundGainChangePacket">
20141 <exclude/> 21173 <exclude />
20142 </member> 21174 </member>
20143 <member name="T:OpenMetaverse.Packets.AttachedSoundGainChangePacket.DataBlockBlock"> 21175 <member name="T:OpenMetaverse.Packets.AttachedSoundGainChangePacket.DataBlockBlock">
20144 <exclude/> 21176 <exclude />
20145 </member> 21177 </member>
20146 <member name="T:OpenMetaverse.Packets.PreloadSoundPacket"> 21178 <member name="T:OpenMetaverse.Packets.PreloadSoundPacket">
20147 <exclude/> 21179 <exclude />
20148 </member> 21180 </member>
20149 <member name="T:OpenMetaverse.Packets.PreloadSoundPacket.DataBlockBlock"> 21181 <member name="T:OpenMetaverse.Packets.PreloadSoundPacket.DataBlockBlock">
20150 <exclude/> 21182 <exclude />
20151 </member> 21183 </member>
20152 <member name="T:OpenMetaverse.Packets.ViewerEffectPacket"> 21184 <member name="T:OpenMetaverse.Packets.ViewerEffectPacket">
20153 <exclude/> 21185 <exclude />
20154 </member> 21186 </member>
20155 <member name="T:OpenMetaverse.Packets.ViewerEffectPacket.AgentDataBlock"> 21187 <member name="T:OpenMetaverse.Packets.ViewerEffectPacket.AgentDataBlock">
20156 <exclude/> 21188 <exclude />
20157 </member> 21189 </member>
20158 <member name="T:OpenMetaverse.Packets.ViewerEffectPacket.EffectBlock"> 21190 <member name="T:OpenMetaverse.Packets.ViewerEffectPacket.EffectBlock">
20159 <exclude/> 21191 <exclude />
20160 </member> 21192 </member>
20161 <member name="T:OpenMetaverse.Packets.StartPingCheckPacket"> 21193 <member name="T:OpenMetaverse.Packets.StartPingCheckPacket">
20162 <exclude/> 21194 <exclude />
20163 </member> 21195 </member>
20164 <member name="T:OpenMetaverse.Packets.StartPingCheckPacket.PingIDBlock"> 21196 <member name="T:OpenMetaverse.Packets.StartPingCheckPacket.PingIDBlock">
20165 <exclude/> 21197 <exclude />
20166 </member> 21198 </member>
20167 <member name="T:OpenMetaverse.Packets.CompletePingCheckPacket"> 21199 <member name="T:OpenMetaverse.Packets.CompletePingCheckPacket">
20168 <exclude/> 21200 <exclude />
20169 </member> 21201 </member>
20170 <member name="T:OpenMetaverse.Packets.CompletePingCheckPacket.PingIDBlock"> 21202 <member name="T:OpenMetaverse.Packets.CompletePingCheckPacket.PingIDBlock">
20171 <exclude/> 21203 <exclude />
20172 </member> 21204 </member>
20173 <member name="T:OpenMetaverse.Packets.AgentUpdatePacket"> 21205 <member name="T:OpenMetaverse.Packets.AgentUpdatePacket">
20174 <exclude/> 21206 <exclude />
20175 </member> 21207 </member>
20176 <member name="T:OpenMetaverse.Packets.AgentUpdatePacket.AgentDataBlock"> 21208 <member name="T:OpenMetaverse.Packets.AgentUpdatePacket.AgentDataBlock">
20177 <exclude/> 21209 <exclude />
20178 </member> 21210 </member>
20179 <member name="T:OpenMetaverse.Packets.AgentAnimationPacket"> 21211 <member name="T:OpenMetaverse.Packets.AgentAnimationPacket">
20180 <exclude/> 21212 <exclude />
20181 </member> 21213 </member>
20182 <member name="T:OpenMetaverse.Packets.AgentAnimationPacket.AgentDataBlock"> 21214 <member name="T:OpenMetaverse.Packets.AgentAnimationPacket.AgentDataBlock">
20183 <exclude/> 21215 <exclude />
20184 </member> 21216 </member>
20185 <member name="T:OpenMetaverse.Packets.AgentAnimationPacket.AnimationListBlock"> 21217 <member name="T:OpenMetaverse.Packets.AgentAnimationPacket.AnimationListBlock">
20186 <exclude/> 21218 <exclude />
20187 </member> 21219 </member>
20188 <member name="T:OpenMetaverse.Packets.AgentAnimationPacket.PhysicalAvatarEventListBlock"> 21220 <member name="T:OpenMetaverse.Packets.AgentAnimationPacket.PhysicalAvatarEventListBlock">
20189 <exclude/> 21221 <exclude />
20190 </member> 21222 </member>
20191 <member name="T:OpenMetaverse.Packets.AgentRequestSitPacket"> 21223 <member name="T:OpenMetaverse.Packets.AgentRequestSitPacket">
20192 <exclude/> 21224 <exclude />
20193 </member> 21225 </member>
20194 <member name="T:OpenMetaverse.Packets.AgentRequestSitPacket.AgentDataBlock"> 21226 <member name="T:OpenMetaverse.Packets.AgentRequestSitPacket.AgentDataBlock">
20195 <exclude/> 21227 <exclude />
20196 </member> 21228 </member>
20197 <member name="T:OpenMetaverse.Packets.AgentRequestSitPacket.TargetObjectBlock"> 21229 <member name="T:OpenMetaverse.Packets.AgentRequestSitPacket.TargetObjectBlock">
20198 <exclude/> 21230 <exclude />
20199 </member> 21231 </member>
20200 <member name="T:OpenMetaverse.Packets.AgentSitPacket"> 21232 <member name="T:OpenMetaverse.Packets.AgentSitPacket">
20201 <exclude/> 21233 <exclude />
20202 </member> 21234 </member>
20203 <member name="T:OpenMetaverse.Packets.AgentSitPacket.AgentDataBlock"> 21235 <member name="T:OpenMetaverse.Packets.AgentSitPacket.AgentDataBlock">
20204 <exclude/> 21236 <exclude />
20205 </member> 21237 </member>
20206 <member name="T:OpenMetaverse.Packets.RequestImagePacket"> 21238 <member name="T:OpenMetaverse.Packets.RequestImagePacket">
20207 <exclude/> 21239 <exclude />
20208 </member> 21240 </member>
20209 <member name="T:OpenMetaverse.Packets.RequestImagePacket.AgentDataBlock"> 21241 <member name="T:OpenMetaverse.Packets.RequestImagePacket.AgentDataBlock">
20210 <exclude/> 21242 <exclude />
20211 </member> 21243 </member>
20212 <member name="T:OpenMetaverse.Packets.RequestImagePacket.RequestImageBlock"> 21244 <member name="T:OpenMetaverse.Packets.RequestImagePacket.RequestImageBlock">
20213 <exclude/> 21245 <exclude />
20214 </member> 21246 </member>
20215 <member name="T:OpenMetaverse.Packets.ImageDataPacket"> 21247 <member name="T:OpenMetaverse.Packets.ImageDataPacket">
20216 <exclude/> 21248 <exclude />
20217 </member> 21249 </member>
20218 <member name="T:OpenMetaverse.Packets.ImageDataPacket.ImageIDBlock"> 21250 <member name="T:OpenMetaverse.Packets.ImageDataPacket.ImageIDBlock">
20219 <exclude/> 21251 <exclude />
20220 </member> 21252 </member>
20221 <member name="T:OpenMetaverse.Packets.ImageDataPacket.ImageDataBlock"> 21253 <member name="T:OpenMetaverse.Packets.ImageDataPacket.ImageDataBlock">
20222 <exclude/> 21254 <exclude />
20223 </member> 21255 </member>
20224 <member name="T:OpenMetaverse.Packets.ImagePacketPacket"> 21256 <member name="T:OpenMetaverse.Packets.ImagePacketPacket">
20225 <exclude/> 21257 <exclude />
20226 </member> 21258 </member>
20227 <member name="T:OpenMetaverse.Packets.ImagePacketPacket.ImageIDBlock"> 21259 <member name="T:OpenMetaverse.Packets.ImagePacketPacket.ImageIDBlock">
20228 <exclude/> 21260 <exclude />
20229 </member> 21261 </member>
20230 <member name="T:OpenMetaverse.Packets.ImagePacketPacket.ImageDataBlock"> 21262 <member name="T:OpenMetaverse.Packets.ImagePacketPacket.ImageDataBlock">
20231 <exclude/> 21263 <exclude />
20232 </member> 21264 </member>
20233 <member name="T:OpenMetaverse.Packets.LayerDataPacket"> 21265 <member name="T:OpenMetaverse.Packets.LayerDataPacket">
20234 <exclude/> 21266 <exclude />
20235 </member> 21267 </member>
20236 <member name="T:OpenMetaverse.Packets.LayerDataPacket.LayerIDBlock"> 21268 <member name="T:OpenMetaverse.Packets.LayerDataPacket.LayerIDBlock">
20237 <exclude/> 21269 <exclude />
20238 </member> 21270 </member>
20239 <member name="T:OpenMetaverse.Packets.LayerDataPacket.LayerDataBlock"> 21271 <member name="T:OpenMetaverse.Packets.LayerDataPacket.LayerDataBlock">
20240 <exclude/> 21272 <exclude />
20241 </member> 21273 </member>
20242 <member name="T:OpenMetaverse.Packets.ObjectUpdatePacket"> 21274 <member name="T:OpenMetaverse.Packets.ObjectUpdatePacket">
20243 <exclude/> 21275 <exclude />
20244 </member> 21276 </member>
20245 <member name="T:OpenMetaverse.Packets.ObjectUpdatePacket.RegionDataBlock"> 21277 <member name="T:OpenMetaverse.Packets.ObjectUpdatePacket.RegionDataBlock">
20246 <exclude/> 21278 <exclude />
20247 </member> 21279 </member>
20248 <member name="T:OpenMetaverse.Packets.ObjectUpdatePacket.ObjectDataBlock"> 21280 <member name="T:OpenMetaverse.Packets.ObjectUpdatePacket.ObjectDataBlock">
20249 <exclude/> 21281 <exclude />
20250 </member> 21282 </member>
20251 <member name="T:OpenMetaverse.Packets.ObjectUpdateCompressedPacket"> 21283 <member name="T:OpenMetaverse.Packets.ObjectUpdateCompressedPacket">
20252 <exclude/> 21284 <exclude />
20253 </member> 21285 </member>
20254 <member name="T:OpenMetaverse.Packets.ObjectUpdateCompressedPacket.RegionDataBlock"> 21286 <member name="T:OpenMetaverse.Packets.ObjectUpdateCompressedPacket.RegionDataBlock">
20255 <exclude/> 21287 <exclude />
20256 </member> 21288 </member>
20257 <member name="T:OpenMetaverse.Packets.ObjectUpdateCompressedPacket.ObjectDataBlock"> 21289 <member name="T:OpenMetaverse.Packets.ObjectUpdateCompressedPacket.ObjectDataBlock">
20258 <exclude/> 21290 <exclude />
20259 </member> 21291 </member>
20260 <member name="T:OpenMetaverse.Packets.ObjectUpdateCachedPacket"> 21292 <member name="T:OpenMetaverse.Packets.ObjectUpdateCachedPacket">
20261 <exclude/> 21293 <exclude />
20262 </member> 21294 </member>
20263 <member name="T:OpenMetaverse.Packets.ObjectUpdateCachedPacket.RegionDataBlock"> 21295 <member name="T:OpenMetaverse.Packets.ObjectUpdateCachedPacket.RegionDataBlock">
20264 <exclude/> 21296 <exclude />
20265 </member> 21297 </member>
20266 <member name="T:OpenMetaverse.Packets.ObjectUpdateCachedPacket.ObjectDataBlock"> 21298 <member name="T:OpenMetaverse.Packets.ObjectUpdateCachedPacket.ObjectDataBlock">
20267 <exclude/> 21299 <exclude />
20268 </member> 21300 </member>
20269 <member name="T:OpenMetaverse.Packets.ImprovedTerseObjectUpdatePacket"> 21301 <member name="T:OpenMetaverse.Packets.ImprovedTerseObjectUpdatePacket">
20270 <exclude/> 21302 <exclude />
20271 </member> 21303 </member>
20272 <member name="T:OpenMetaverse.Packets.ImprovedTerseObjectUpdatePacket.RegionDataBlock"> 21304 <member name="T:OpenMetaverse.Packets.ImprovedTerseObjectUpdatePacket.RegionDataBlock">
20273 <exclude/> 21305 <exclude />
20274 </member> 21306 </member>
20275 <member name="T:OpenMetaverse.Packets.ImprovedTerseObjectUpdatePacket.ObjectDataBlock"> 21307 <member name="T:OpenMetaverse.Packets.ImprovedTerseObjectUpdatePacket.ObjectDataBlock">
20276 <exclude/> 21308 <exclude />
20277 </member> 21309 </member>
20278 <member name="T:OpenMetaverse.Packets.KillObjectPacket"> 21310 <member name="T:OpenMetaverse.Packets.KillObjectPacket">
20279 <exclude/> 21311 <exclude />
20280 </member> 21312 </member>
20281 <member name="T:OpenMetaverse.Packets.KillObjectPacket.ObjectDataBlock"> 21313 <member name="T:OpenMetaverse.Packets.KillObjectPacket.ObjectDataBlock">
20282 <exclude/> 21314 <exclude />
20283 </member> 21315 </member>
20284 <member name="T:OpenMetaverse.Packets.TransferPacketPacket"> 21316 <member name="T:OpenMetaverse.Packets.TransferPacketPacket">
20285 <exclude/> 21317 <exclude />
20286 </member> 21318 </member>
20287 <member name="T:OpenMetaverse.Packets.TransferPacketPacket.TransferDataBlock"> 21319 <member name="T:OpenMetaverse.Packets.TransferPacketPacket.TransferDataBlock">
20288 <exclude/> 21320 <exclude />
20289 </member> 21321 </member>
20290 <member name="T:OpenMetaverse.Packets.SendXferPacketPacket"> 21322 <member name="T:OpenMetaverse.Packets.SendXferPacketPacket">
20291 <exclude/> 21323 <exclude />
20292 </member> 21324 </member>
20293 <member name="T:OpenMetaverse.Packets.SendXferPacketPacket.XferIDBlock"> 21325 <member name="T:OpenMetaverse.Packets.SendXferPacketPacket.XferIDBlock">
20294 <exclude/> 21326 <exclude />
20295 </member> 21327 </member>
20296 <member name="T:OpenMetaverse.Packets.SendXferPacketPacket.DataPacketBlock"> 21328 <member name="T:OpenMetaverse.Packets.SendXferPacketPacket.DataPacketBlock">
20297 <exclude/> 21329 <exclude />
20298 </member> 21330 </member>
20299 <member name="T:OpenMetaverse.Packets.ConfirmXferPacketPacket"> 21331 <member name="T:OpenMetaverse.Packets.ConfirmXferPacketPacket">
20300 <exclude/> 21332 <exclude />
20301 </member> 21333 </member>
20302 <member name="T:OpenMetaverse.Packets.ConfirmXferPacketPacket.XferIDBlock"> 21334 <member name="T:OpenMetaverse.Packets.ConfirmXferPacketPacket.XferIDBlock">
20303 <exclude/> 21335 <exclude />
20304 </member> 21336 </member>
20305 <member name="T:OpenMetaverse.Packets.AvatarAnimationPacket"> 21337 <member name="T:OpenMetaverse.Packets.AvatarAnimationPacket">
20306 <exclude/> 21338 <exclude />
20307 </member> 21339 </member>
20308 <member name="T:OpenMetaverse.Packets.AvatarAnimationPacket.SenderBlock"> 21340 <member name="T:OpenMetaverse.Packets.AvatarAnimationPacket.SenderBlock">
20309 <exclude/> 21341 <exclude />
20310 </member> 21342 </member>
20311 <member name="T:OpenMetaverse.Packets.AvatarAnimationPacket.AnimationListBlock"> 21343 <member name="T:OpenMetaverse.Packets.AvatarAnimationPacket.AnimationListBlock">
20312 <exclude/> 21344 <exclude />
20313 </member> 21345 </member>
20314 <member name="T:OpenMetaverse.Packets.AvatarAnimationPacket.AnimationSourceListBlock"> 21346 <member name="T:OpenMetaverse.Packets.AvatarAnimationPacket.AnimationSourceListBlock">
20315 <exclude/> 21347 <exclude />
20316 </member> 21348 </member>
20317 <member name="T:OpenMetaverse.Packets.AvatarAnimationPacket.PhysicalAvatarEventListBlock"> 21349 <member name="T:OpenMetaverse.Packets.AvatarAnimationPacket.PhysicalAvatarEventListBlock">
20318 <exclude/> 21350 <exclude />
20319 </member> 21351 </member>
20320 <member name="T:OpenMetaverse.Packets.AvatarSitResponsePacket"> 21352 <member name="T:OpenMetaverse.Packets.AvatarSitResponsePacket">
20321 <exclude/> 21353 <exclude />
20322 </member> 21354 </member>
20323 <member name="T:OpenMetaverse.Packets.AvatarSitResponsePacket.SitObjectBlock"> 21355 <member name="T:OpenMetaverse.Packets.AvatarSitResponsePacket.SitObjectBlock">
20324 <exclude/> 21356 <exclude />
20325 </member> 21357 </member>
20326 <member name="T:OpenMetaverse.Packets.AvatarSitResponsePacket.SitTransformBlock"> 21358 <member name="T:OpenMetaverse.Packets.AvatarSitResponsePacket.SitTransformBlock">
20327 <exclude/> 21359 <exclude />
20328 </member> 21360 </member>
20329 <member name="T:OpenMetaverse.Packets.CameraConstraintPacket"> 21361 <member name="T:OpenMetaverse.Packets.CameraConstraintPacket">
20330 <exclude/> 21362 <exclude />
20331 </member> 21363 </member>
20332 <member name="T:OpenMetaverse.Packets.CameraConstraintPacket.CameraCollidePlaneBlock"> 21364 <member name="T:OpenMetaverse.Packets.CameraConstraintPacket.CameraCollidePlaneBlock">
20333 <exclude/> 21365 <exclude />
20334 </member> 21366 </member>
20335 <member name="T:OpenMetaverse.Packets.ParcelPropertiesPacket"> 21367 <member name="T:OpenMetaverse.Packets.ParcelPropertiesPacket">
20336 <exclude/> 21368 <exclude />
20337 </member> 21369 </member>
20338 <member name="T:OpenMetaverse.Packets.ParcelPropertiesPacket.ParcelDataBlock"> 21370 <member name="T:OpenMetaverse.Packets.ParcelPropertiesPacket.ParcelDataBlock">
20339 <exclude/> 21371 <exclude />
20340 </member> 21372 </member>
20341 <member name="T:OpenMetaverse.Packets.ParcelPropertiesPacket.AgeVerificationBlockBlock"> 21373 <member name="T:OpenMetaverse.Packets.ParcelPropertiesPacket.AgeVerificationBlockBlock">
20342 <exclude/> 21374 <exclude />
20343 </member> 21375 </member>
20344 <member name="T:OpenMetaverse.Packets.ChildAgentUpdatePacket"> 21376 <member name="T:OpenMetaverse.Packets.ChildAgentUpdatePacket">
20345 <exclude/> 21377 <exclude />
20346 </member> 21378 </member>
20347 <member name="T:OpenMetaverse.Packets.ChildAgentUpdatePacket.AgentDataBlock"> 21379 <member name="T:OpenMetaverse.Packets.ChildAgentUpdatePacket.AgentDataBlock">
20348 <exclude/> 21380 <exclude />
20349 </member> 21381 </member>
20350 <member name="T:OpenMetaverse.Packets.ChildAgentUpdatePacket.GroupDataBlock"> 21382 <member name="T:OpenMetaverse.Packets.ChildAgentUpdatePacket.GroupDataBlock">
20351 <exclude/> 21383 <exclude />
20352 </member> 21384 </member>
20353 <member name="T:OpenMetaverse.Packets.ChildAgentUpdatePacket.AnimationDataBlock"> 21385 <member name="T:OpenMetaverse.Packets.ChildAgentUpdatePacket.AnimationDataBlock">
20354 <exclude/> 21386 <exclude />
20355 </member> 21387 </member>
20356 <member name="T:OpenMetaverse.Packets.ChildAgentUpdatePacket.GranterBlockBlock"> 21388 <member name="T:OpenMetaverse.Packets.ChildAgentUpdatePacket.GranterBlockBlock">
20357 <exclude/> 21389 <exclude />
20358 </member> 21390 </member>
20359 <member name="T:OpenMetaverse.Packets.ChildAgentUpdatePacket.NVPairDataBlock"> 21391 <member name="T:OpenMetaverse.Packets.ChildAgentUpdatePacket.NVPairDataBlock">
20360 <exclude/> 21392 <exclude />
20361 </member> 21393 </member>
20362 <member name="T:OpenMetaverse.Packets.ChildAgentUpdatePacket.VisualParamBlock"> 21394 <member name="T:OpenMetaverse.Packets.ChildAgentUpdatePacket.VisualParamBlock">
20363 <exclude/> 21395 <exclude />
20364 </member> 21396 </member>
20365 <member name="T:OpenMetaverse.Packets.ChildAgentUpdatePacket.AgentAccessBlock"> 21397 <member name="T:OpenMetaverse.Packets.ChildAgentUpdatePacket.AgentAccessBlock">
20366 <exclude/> 21398 <exclude />
20367 </member> 21399 </member>
20368 <member name="T:OpenMetaverse.Packets.ChildAgentUpdatePacket.AgentInfoBlock"> 21400 <member name="T:OpenMetaverse.Packets.ChildAgentUpdatePacket.AgentInfoBlock">
20369 <exclude/> 21401 <exclude />
20370 </member> 21402 </member>
20371 <member name="T:OpenMetaverse.Packets.ChildAgentAlivePacket"> 21403 <member name="T:OpenMetaverse.Packets.ChildAgentAlivePacket">
20372 <exclude/> 21404 <exclude />
20373 </member> 21405 </member>
20374 <member name="T:OpenMetaverse.Packets.ChildAgentAlivePacket.AgentDataBlock"> 21406 <member name="T:OpenMetaverse.Packets.ChildAgentAlivePacket.AgentDataBlock">
20375 <exclude/> 21407 <exclude />
20376 </member> 21408 </member>
20377 <member name="T:OpenMetaverse.Packets.ChildAgentPositionUpdatePacket"> 21409 <member name="T:OpenMetaverse.Packets.ChildAgentPositionUpdatePacket">
20378 <exclude/> 21410 <exclude />
20379 </member> 21411 </member>
20380 <member name="T:OpenMetaverse.Packets.ChildAgentPositionUpdatePacket.AgentDataBlock"> 21412 <member name="T:OpenMetaverse.Packets.ChildAgentPositionUpdatePacket.AgentDataBlock">
20381 <exclude/> 21413 <exclude />
20382 </member> 21414 </member>
20383 <member name="T:OpenMetaverse.Packets.SoundTriggerPacket"> 21415 <member name="T:OpenMetaverse.Packets.SoundTriggerPacket">
20384 <exclude/> 21416 <exclude />
20385 </member> 21417 </member>
20386 <member name="T:OpenMetaverse.Packets.SoundTriggerPacket.SoundDataBlock"> 21418 <member name="T:OpenMetaverse.Packets.SoundTriggerPacket.SoundDataBlock">
20387 <exclude/> 21419 <exclude />
20388 </member> 21420 </member>
20389 <member name="T:OpenMetaverse.Voice.VoiceSession"> 21421 <member name="T:OpenMetaverse.VisualColorOperation">
20390 <summary> 21422 <summary>
20391 Represents a single Voice Session to the Vivox service. 21423 Operation to apply when applying color to texture
20392 </summary> 21424 </summary>
20393 </member> 21425 </member>
20394 <member name="M:OpenMetaverse.Voice.VoiceSession.Close"> 21426 <member name="T:OpenMetaverse.VisualColorParam">
20395 <summary> 21427 <summary>
20396 Close this session. 21428 Information needed to translate visual param value to RGBA color
20397 </summary> 21429 </summary>
20398 </member> 21430 </member>
20399 <member name="M:OpenMetaverse.Voice.VoiceSession.FindParticipant(System.String)"> 21431 <member name="M:OpenMetaverse.VisualColorParam.#ctor(OpenMetaverse.VisualColorOperation,OpenMetaverse.Color4[])">
20400 <summary> 21432 <summary>
20401 Look up an existing Participants in this session 21433 Construct VisualColorParam
20402 </summary> 21434 </summary>
20403 <param name="puri"></param> 21435 <param name="operation">Operation to apply when applying color to texture</param>
20404 <returns></returns> 21436 <param name="colors">Colors</param>
20405 </member> 21437 </member>
20406 <member name="T:ThreadUtil"> 21438 <member name="T:OpenMetaverse.VisualAlphaParam">
20407 <summary> 21439 <summary>
20408 21440 Represents alpha blending and bump infor for a visual parameter
21441 such as sleive length
20409 </summary> 21442 </summary>
20410 </member> 21443 </member>
20411 <member name="F:ThreadUtil.wrapperInstance"> 21444 <member name="M:OpenMetaverse.VisualAlphaParam.#ctor(System.Single,System.String,System.Boolean,System.Boolean)">
20412 <summary> 21445 <summary>
20413 An instance of DelegateWrapper which calls InvokeWrappedDelegate, 21446 Create new alhpa information for a visual param
20414 which in turn calls the DynamicInvoke method of the wrapped
20415 delegate
20416 </summary> 21447 </summary>
21448 <param name="domain">Stregth of the alpha to apply</param>
21449 <param name="tgaFile">File containing the alpha channel</param>
21450 <param name="skipIfZero">Skip blending if parameter value is 0</param>
21451 <param name="multiplyBlend">Use miltiply insted of alpha blending</param>
20417 </member> 21452 </member>
20418 <member name="F:ThreadUtil.callback"> 21453 <member name="F:OpenMetaverse.VisualAlphaParam.Domain">
21454 <summary>Stregth of the alpha to apply</summary>
21455 </member>
21456 <member name="F:OpenMetaverse.VisualAlphaParam.TGAFile">
21457 <summary>File containing the alpha channel</summary>
21458 </member>
21459 <member name="F:OpenMetaverse.VisualAlphaParam.SkipIfZero">
21460 <summary>Skip blending if parameter value is 0</summary>
21461 </member>
21462 <member name="F:OpenMetaverse.VisualAlphaParam.MultiplyBlend">
21463 <summary>Use miltiply insted of alpha blending</summary>
21464 </member>
21465 <member name="T:OpenMetaverse.VisualParam">
20419 <summary> 21466 <summary>
20420 Callback used to call EndInvoke on the asynchronously 21467 A single visual characteristic of an avatar mesh, such as eyebrow height
20421 invoked DelegateWrapper
20422 </summary> 21468 </summary>
20423 </member> 21469 </member>
20424 <member name="M:ThreadUtil.FireAndForget(System.Delegate,System.Object[])"> 21470 <member name="M:OpenMetaverse.VisualParam.#ctor(System.Int32,System.String,System.Int32,System.String,System.String,System.String,System.String,System.Single,System.Single,System.Single,System.Boolean,System.Int32[],System.Nullable{OpenMetaverse.VisualAlphaParam},System.Nullable{OpenMetaverse.VisualColorParam})">
20425 <summary> 21471 <summary>
20426 Executes the specified delegate with the specified arguments 21472 Set all the values through the constructor
20427 asynchronously on a thread pool thread
20428 </summary> 21473 </summary>
20429 <param name="d"></param> 21474 <param name="paramID">Index of this visual param</param>
20430 <param name="args"></param> 21475 <param name="name">Internal name</param>
21476 <param name="group">
21477 </param>
21478 <param name="wearable">
21479 </param>
21480 <param name="label">Displayable label of this characteristic</param>
21481 <param name="labelMin">Displayable label for the minimum value of this characteristic</param>
21482 <param name="labelMax">Displayable label for the maximum value of this characteristic</param>
21483 <param name="def">Default value</param>
21484 <param name="min">Minimum value</param>
21485 <param name="max">Maximum value</param>
21486 <param name="isBumpAttribute">Is this param used for creation of bump layer?</param>
21487 <param name="drivers">Array of param IDs that are drivers for this parameter</param>
21488 <param name="alpha">Alpha blending/bump info</param>
21489 <param name="colorParams">Color information</param>
20431 </member> 21490 </member>
20432 <member name="M:ThreadUtil.InvokeWrappedDelegate(System.Delegate,System.Object[])"> 21491 <member name="F:OpenMetaverse.VisualParam.ParamID">
21492 <summary>Index of this visual param</summary>
21493 </member>
21494 <member name="F:OpenMetaverse.VisualParam.Name">
21495 <summary>Internal name</summary>
21496 </member>
21497 <member name="F:OpenMetaverse.VisualParam.Group">
21498 <summary>Group ID this parameter belongs to</summary>
21499 </member>
21500 <member name="F:OpenMetaverse.VisualParam.Wearable">
21501 <summary>Name of the wearable this parameter belongs to</summary>
21502 </member>
21503 <member name="F:OpenMetaverse.VisualParam.Label">
21504 <summary>Displayable label of this characteristic</summary>
21505 </member>
21506 <member name="F:OpenMetaverse.VisualParam.LabelMin">
21507 <summary>Displayable label for the minimum value of this characteristic</summary>
21508 </member>
21509 <member name="F:OpenMetaverse.VisualParam.LabelMax">
21510 <summary>Displayable label for the maximum value of this characteristic</summary>
21511 </member>
21512 <member name="F:OpenMetaverse.VisualParam.DefaultValue">
21513 <summary>Default value</summary>
21514 </member>
21515 <member name="F:OpenMetaverse.VisualParam.MinValue">
21516 <summary>Minimum value</summary>
21517 </member>
21518 <member name="F:OpenMetaverse.VisualParam.MaxValue">
21519 <summary>Maximum value</summary>
21520 </member>
21521 <member name="F:OpenMetaverse.VisualParam.IsBumpAttribute">
21522 <summary>Is this param used for creation of bump layer?</summary>
21523 </member>
21524 <member name="F:OpenMetaverse.VisualParam.AlphaParams">
21525 <summary>Alpha blending/bump info</summary>
21526 </member>
21527 <member name="F:OpenMetaverse.VisualParam.ColorParams">
21528 <summary>Color information</summary>
21529 </member>
21530 <member name="F:OpenMetaverse.VisualParam.Drivers">
21531 <summary>Array of param IDs that are drivers for this parameter</summary>
21532 </member>
21533 <member name="T:OpenMetaverse.VisualParams">
20433 <summary> 21534 <summary>
20434 Invokes the wrapped delegate synchronously 21535 Holds the Params array of all the avatar appearance parameters
20435 </summary> 21536 </summary>
20436 <param name="d"></param>
20437 <param name="args"></param>
20438 </member> 21537 </member>
20439 <member name="M:ThreadUtil.EndWrapperInvoke(System.IAsyncResult)"> 21538 <member name="T:OpenMetaverse.Assets.Asset">
20440 <summary> 21539 <summary>
20441 Calls EndInvoke on the wrapper and Close on the resulting WaitHandle 21540 Base class for all Asset types
20442 to prevent resource leaks
20443 </summary> 21541 </summary>
20444 <param name="ar"></param>
20445 </member> 21542 </member>
20446 <member name="T:ThreadUtil.DelegateWrapper"> 21543 <member name="M:OpenMetaverse.Assets.Asset.#ctor">
20447 <summary> 21544 <summary>
20448 Delegate to wrap another delegate and its arguments 21545 Construct a new Asset object
20449 </summary> 21546 </summary>
20450 <param name="d"></param>
20451 <param name="args"></param>
20452 </member>
20453 <member name="F:OpenMetaverse.TerrainManager.m_LandPatchReceivedEvent">
20454 <summary>The event subscribers. null if no subcribers</summary>
20455 </member>
20456 <member name="M:OpenMetaverse.TerrainManager.OnLandPatchReceived(OpenMetaverse.LandPatchReceivedEventArgs)">
20457 <summary>Raises the LandPatchReceived event</summary>
20458 <param name="e">A LandPatchReceivedEventArgs object containing the
20459 data returned from the simulator</param>
20460 </member>
20461 <member name="F:OpenMetaverse.TerrainManager.m_LandPatchReceivedLock">
20462 <summary>Thread sync lock object</summary>
20463 </member> 21547 </member>
20464 <member name="M:OpenMetaverse.TerrainManager.#ctor(OpenMetaverse.GridClient)"> 21548 <member name="M:OpenMetaverse.Assets.Asset.#ctor(OpenMetaverse.UUID,System.Byte[])">
20465 <summary> 21549 <summary>
20466 Default constructor 21550 Construct a new Asset object
20467 </summary> 21551 </summary>
20468 <param name="client"></param> 21552 <param name="assetID">A unique <see cref="T:OpenMetaverse.UUID" /> specific to this asset</param>
21553 <param name="assetData">A byte array containing the raw asset data</param>
20469 </member> 21554 </member>
20470 <member name="E:OpenMetaverse.TerrainManager.LandPatchReceived"> 21555 <member name="F:OpenMetaverse.Assets.Asset.AssetData">
20471 <summary>Raised when the simulator responds sends </summary> 21556 <summary>A byte array containing the raw asset data</summary>
20472 </member> 21557 </member>
20473 <member name="P:OpenMetaverse.LandPatchReceivedEventArgs.Simulator"> 21558 <member name="F:OpenMetaverse.Assets.Asset.Temporary">
20474 <summary>Simulator from that sent tha data</summary> 21559 <summary>True if the asset it only stored on the server temporarily</summary>
20475 </member> 21560 </member>
20476 <member name="P:OpenMetaverse.LandPatchReceivedEventArgs.X"> 21561 <member name="F:OpenMetaverse.Assets.Asset._AssetID">
20477 <summary>Sim coordinate of the patch</summary> 21562 <summary>A unique ID</summary>
20478 </member> 21563 </member>
20479 <member name="P:OpenMetaverse.LandPatchReceivedEventArgs.Y"> 21564 <member name="P:OpenMetaverse.Assets.Asset.AssetID">
20480 <summary>Sim coordinate of the patch</summary> 21565 <summary>The assets unique ID</summary>
20481 </member> 21566 </member>
20482 <member name="P:OpenMetaverse.LandPatchReceivedEventArgs.PatchSize"> 21567 <member name="P:OpenMetaverse.Assets.Asset.AssetType">
20483 <summary>Size of tha patch</summary> 21568 <summary>
21569 The "type" of asset, Notecard, Animation, etc
21570 </summary>
20484 </member> 21571 </member>
20485 <member name="P:OpenMetaverse.LandPatchReceivedEventArgs.HeightMap"> 21572 <member name="M:OpenMetaverse.Assets.Asset.Encode">
20486 <summary>Heightmap for the patch</summary> 21573 <summary>
21574 Regenerates the <code>AssetData</code> byte array from the properties
21575 of the derived class.
21576 </summary>
20487 </member> 21577 </member>
20488 <member name="T:OpenMetaverse.PermissionMask"> 21578 <member name="M:OpenMetaverse.Assets.Asset.Decode">
20489 <summary> 21579 <summary>
20490 21580 Decodes the AssetData, placing it in appropriate properties of the derived
21581 class.
20491 </summary> 21582 </summary>
21583 <returns>True if the asset decoding succeeded, otherwise false</returns>
20492 </member> 21584 </member>
20493 <member name="T:OpenMetaverse.PermissionWho"> 21585 <member name="T:OpenMetaverse.Assets.ArchiveConstants">
20494 <summary> 21586 <summary>
20495 21587 Constants for the archiving module
20496 </summary> 21588 </summary>
20497 </member> 21589 </member>
20498 <member name="F:OpenMetaverse.PermissionWho.Base"> 21590 <member name="F:OpenMetaverse.Assets.ArchiveConstants.CONTROL_FILE_PATH">
20499 <summary></summary> 21591 <summary>
21592 The location of the archive control file
21593 </summary>
20500 </member> 21594 </member>
20501 <member name="F:OpenMetaverse.PermissionWho.Owner"> 21595 <member name="F:OpenMetaverse.Assets.ArchiveConstants.ASSETS_PATH">
20502 <summary></summary> 21596 <summary>
21597 Path for the assets held in an archive
21598 </summary>
20503 </member> 21599 </member>
20504 <member name="F:OpenMetaverse.PermissionWho.Group"> 21600 <member name="F:OpenMetaverse.Assets.ArchiveConstants.OBJECTS_PATH">
20505 <summary></summary> 21601 <summary>
21602 Path for the prims file
21603 </summary>
20506 </member> 21604 </member>
20507 <member name="F:OpenMetaverse.PermissionWho.Everyone"> 21605 <member name="F:OpenMetaverse.Assets.ArchiveConstants.TERRAINS_PATH">
20508 <summary></summary> 21606 <summary>
21607 Path for terrains. Technically these may be assets, but I think it's quite nice to split them out.
21608 </summary>
20509 </member> 21609 </member>
20510 <member name="F:OpenMetaverse.PermissionWho.NextOwner"> 21610 <member name="F:OpenMetaverse.Assets.ArchiveConstants.SETTINGS_PATH">
20511 <summary></summary> 21611 <summary>
21612 Path for region settings.
21613 </summary>
20512 </member> 21614 </member>
20513 <member name="F:OpenMetaverse.PermissionWho.All"> 21615 <member name="F:OpenMetaverse.Assets.ArchiveConstants.ASSET_EXTENSION_SEPARATOR">
20514 <summary></summary> 21616 <summary>
21617 The character the separates the uuid from extension information in an archived asset filename
21618 </summary>
20515 </member> 21619 </member>
20516 <member name="T:OpenMetaverse.Permissions"> 21620 <member name="F:OpenMetaverse.Assets.ArchiveConstants.ASSET_TYPE_TO_EXTENSION">
20517 <summary> 21621 <summary>
20518 21622 Extensions used for asset types in the archive
20519 </summary> 21623 </summary>
20520 </member> 21624 </member>
20521 <member name="F:OpenMetaverse.UDPPacketBuffer.BUFFER_SIZE"> 21625 <member name="T:OpenMetaverse.Assets.AssetsArchiver">
20522 <summary>Size of the byte array used to store raw packet data</summary> 21626 <summary>
21627 Archives assets
21628 </summary>
20523 </member> 21629 </member>
20524 <member name="F:OpenMetaverse.UDPPacketBuffer.Data"> 21630 <member name="F:OpenMetaverse.Assets.AssetsArchiver.m_assets">
20525 <summary>Raw packet data buffer</summary> 21631 <summary>
21632 Archive assets
21633 </summary>
20526 </member> 21634 </member>
20527 <member name="F:OpenMetaverse.UDPPacketBuffer.DataLength"> 21635 <member name="M:OpenMetaverse.Assets.AssetsArchiver.Archive(OpenMetaverse.Assets.TarArchiveWriter)">
20528 <summary>Length of the data to transmit</summary> 21636 <summary>
21637 Archive the assets given to this archiver to the given archive.
21638 </summary>
21639 <param name="archive">
21640 </param>
20529 </member> 21641 </member>
20530 <member name="F:OpenMetaverse.UDPPacketBuffer.RemoteEndPoint"> 21642 <member name="M:OpenMetaverse.Assets.AssetsArchiver.WriteMetadata(OpenMetaverse.Assets.TarArchiveWriter)">
20531 <summary>EndPoint of the remote host</summary> 21643 <summary>
21644 Write an assets metadata file to the given archive
21645 </summary>
21646 <param name="archive">
21647 </param>
20532 </member> 21648 </member>
20533 <member name="M:OpenMetaverse.UDPPacketBuffer.#ctor"> 21649 <member name="M:OpenMetaverse.Assets.AssetsArchiver.WriteData(OpenMetaverse.Assets.TarArchiveWriter)">
20534 <summary> 21650 <summary>
20535 Create an allocated UDP packet buffer for receiving a packet 21651 Write asset data files to the given archive
20536 </summary> 21652 </summary>
21653 <param name="archive">
21654 </param>
20537 </member> 21655 </member>
20538 <member name="M:OpenMetaverse.UDPPacketBuffer.#ctor(System.Net.IPEndPoint)"> 21656 <member name="T:OpenMetaverse.Assets.TarArchiveReader">
20539 <summary> 21657 <summary>
20540 Create an allocated UDP packet buffer for sending a packet 21658 Temporary code to do the bare minimum required to read a tar archive for our purposes
20541 </summary> 21659 </summary>
20542 <param name="endPoint">EndPoint of the remote host</param>
20543 </member> 21660 </member>
20544 <member name="M:OpenMetaverse.UDPPacketBuffer.#ctor(System.Net.IPEndPoint,System.Int32)"> 21661 <member name="M:OpenMetaverse.Assets.TarArchiveReader.#ctor(System.IO.Stream)">
20545 <summary> 21662 <summary>
20546 Create an allocated UDP packet buffer for sending a packet 21663 Generate a tar reader which reads from the given stream.
20547 </summary> 21664 </summary>
20548 <param name="endPoint">EndPoint of the remote host</param> 21665 <param name="s">
20549 <param name="bufferSize">Size of the buffer to allocate for packet data</param> 21666 </param>
20550 </member> 21667 </member>
20551 <member name="T:OpenMetaverse.PacketBufferPool"> 21668 <member name="F:OpenMetaverse.Assets.TarArchiveReader.m_br">
20552 <summary> 21669 <summary>
20553 Object pool for packet buffers. This is used to allocate memory for all 21670 Binary reader for the underlying stream
20554 incoming and outgoing packets, and zerocoding buffers for those packets
20555 </summary> 21671 </summary>
20556 </member> 21672 </member>
20557 <member name="M:OpenMetaverse.PacketBufferPool.#ctor(System.Net.IPEndPoint,System.Int32,System.Int32)"> 21673 <member name="F:OpenMetaverse.Assets.TarArchiveReader.m_nullCharArray">
20558 <summary> 21674 <summary>
20559 Initialize the object pool in client mode 21675 Used to trim off null chars
20560 </summary> 21676 </summary>
20561 <param name="endPoint">Server to connect to</param>
20562 <param name="itemsPerSegment"></param>
20563 <param name="minSegments"></param>
20564 </member> 21677 </member>
20565 <member name="M:OpenMetaverse.PacketBufferPool.#ctor(System.Int32,System.Int32)"> 21678 <member name="F:OpenMetaverse.Assets.TarArchiveReader.m_spaceCharArray">
20566 <summary> 21679 <summary>
20567 Initialize the object pool in server mode 21680 Used to trim off space chars
20568 </summary> 21681 </summary>
20569 <param name="itemsPerSegment"></param>
20570 <param name="minSegments"></param>
20571 </member> 21682 </member>
20572 <member name="M:OpenMetaverse.PacketBufferPool.GetObjectInstance"> 21683 <member name="M:OpenMetaverse.Assets.TarArchiveReader.ReadEntry(System.String@,OpenMetaverse.Assets.TarArchiveReader.TarEntryType@)">
20573 <summary> 21684 <summary>
20574 Returns a packet buffer with EndPoint set if the buffer is in 21685 Read the next entry in the tar file.
20575 client mode, or with EndPoint set to null in server mode
20576 </summary> 21686 </summary>
20577 <returns>Initialized UDPPacketBuffer object</returns> 21687 <param name="filePath">
21688 </param>
21689 <param name="entryType">
21690 </param>
21691 <returns>the data for the entry. Returns null if there are no more entries</returns>
20578 </member> 21692 </member>
20579 <member name="M:OpenMetaverse.Pool.#cctor"> 21693 <member name="M:OpenMetaverse.Assets.TarArchiveReader.ReadHeader">
20580 <summary> 21694 <summary>
20581 Default constructor 21695 Read the next 512 byte chunk of data as a tar header.
20582 </summary> 21696 </summary>
21697 <returns>A tar header struct. null if we have reached the end of the archive.</returns>
20583 </member> 21698 </member>
20584 <member name="M:OpenMetaverse.Pool.CheckOut"> 21699 <member name="M:OpenMetaverse.Assets.TarArchiveReader.ReadData(System.Int32)">
20585 <summary> 21700 <summary>
20586 Check a packet buffer out of the pool 21701 Read data following a header
20587 </summary> 21702 </summary>
20588 <returns>A packet buffer object</returns> 21703 <param name="fileSize">
21704 </param>
21705 <returns>
21706 </returns>
20589 </member> 21707 </member>
20590 <member name="T:OpenMetaverse.Logger"> 21708 <member name="M:OpenMetaverse.Assets.TarArchiveReader.ConvertOctalBytesToDecimal(System.Byte[],System.Int32,System.Int32)">
20591 <summary> 21709 <summary>
20592 Singleton logging class for the entire library 21710 Convert octal bytes to a decimal representation
20593 </summary> 21711 </summary>
21712 <param name="bytes">
21713 </param>
21714 <param name="count">
21715 </param>
21716 <param name="startIndex">
21717 </param>
21718 <returns>
21719 </returns>
20594 </member> 21720 </member>
20595 <member name="F:OpenMetaverse.Logger.LogInstance"> 21721 <member name="T:OpenMetaverse.Assets.TarArchiveWriter">
20596 <summary>log4net logging engine</summary> 21722 <summary>
21723 Temporary code to produce a tar archive in tar v7 format
21724 </summary>
20597 </member> 21725 </member>
20598 <member name="M:OpenMetaverse.Logger.#cctor"> 21726 <member name="F:OpenMetaverse.Assets.TarArchiveWriter.m_bw">
20599 <summary> 21727 <summary>
20600 Default constructor 21728 Binary writer for the underlying stream
20601 </summary> 21729 </summary>
20602 </member> 21730 </member>
20603 <member name="M:OpenMetaverse.Logger.Log(System.Object,OpenMetaverse.Helpers.LogLevel)"> 21731 <member name="M:OpenMetaverse.Assets.TarArchiveWriter.WriteDir(System.String)">
20604 <summary> 21732 <summary>
20605 Send a log message to the logging engine 21733 Write a directory entry to the tar archive. We can only handle one path level right now!
20606 </summary> 21734 </summary>
20607 <param name="message">The log message</param> 21735 <param name="dirName">
20608 <param name="level">The severity of the log entry</param> 21736 </param>
20609 </member> 21737 </member>
20610 <member name="M:OpenMetaverse.Logger.Log(System.Object,OpenMetaverse.Helpers.LogLevel,OpenMetaverse.GridClient)"> 21738 <member name="M:OpenMetaverse.Assets.TarArchiveWriter.WriteFile(System.String,System.String)">
20611 <summary> 21739 <summary>
20612 Send a log message to the logging engine 21740 Write a file to the tar archive
20613 </summary> 21741 </summary>
20614 <param name="message">The log message</param> 21742 <param name="filePath">
20615 <param name="level">The severity of the log entry</param> 21743 </param>
20616 <param name="client">Instance of the client</param> 21744 <param name="data">
21745 </param>
20617 </member> 21746 </member>
20618 <member name="M:OpenMetaverse.Logger.Log(System.Object,OpenMetaverse.Helpers.LogLevel,System.Exception)"> 21747 <member name="M:OpenMetaverse.Assets.TarArchiveWriter.WriteFile(System.String,System.Byte[])">
20619 <summary> 21748 <summary>
20620 Send a log message to the logging engine 21749 Write a file to the tar archive
20621 </summary> 21750 </summary>
20622 <param name="message">The log message</param> 21751 <param name="filePath">
20623 <param name="level">The severity of the log entry</param> 21752 </param>
20624 <param name="exception">Exception that was raised</param> 21753 <param name="data">
21754 </param>
20625 </member> 21755 </member>
20626 <member name="M:OpenMetaverse.Logger.Log(System.Object,OpenMetaverse.Helpers.LogLevel,OpenMetaverse.GridClient,System.Exception)"> 21756 <member name="M:OpenMetaverse.Assets.TarArchiveWriter.Close">
20627 <summary> 21757 <summary>
20628 Send a log message to the logging engine 21758 Finish writing the raw tar archive data to a stream. The stream will be closed on completion.
20629 </summary> 21759 </summary>
20630 <param name="message">The log message</param>
20631 <param name="level">The severity of the log entry</param>
20632 <param name="client">Instance of the client</param>
20633 <param name="exception">Exception that was raised</param>
20634 </member> 21760 </member>
20635 <member name="M:OpenMetaverse.Logger.DebugLog(System.Object)"> 21761 <member name="M:OpenMetaverse.Assets.TarArchiveWriter.WriteEntry(System.String,System.Byte[],System.Char)">
20636 <summary> 21762 <summary>
20637 If the library is compiled with DEBUG defined, an event will be 21763 Write a particular entry
20638 fired if an <code>OnLogMessage</code> handler is registered and the
20639 message will be sent to the logging engine
20640 </summary> 21764 </summary>
20641 <param name="message">The message to log at the DEBUG level to the 21765 <param name="filePath">
20642 current logging engine</param> 21766 </param>
21767 <param name="data">
21768 </param>
21769 <param name="fileType">
21770 </param>
20643 </member> 21771 </member>
20644 <member name="M:OpenMetaverse.Logger.DebugLog(System.Object,OpenMetaverse.GridClient)"> 21772 <member name="T:OpenMetaverse.Assets.AssetAnimation">
20645 <summary> 21773 <summary>
20646 If the library is compiled with DEBUG defined and 21774 Represents an Animation
20647 <code>GridClient.Settings.DEBUG</code> is true, an event will be
20648 fired if an <code>OnLogMessage</code> handler is registered and the
20649 message will be sent to the logging engine
20650 </summary> 21775 </summary>
20651 <param name="message">The message to log at the DEBUG level to the
20652 current logging engine</param>
20653 <param name="client">Instance of the client</param>
20654 </member> 21776 </member>
20655 <member name="E:OpenMetaverse.Logger.OnLogMessage"> 21777 <member name="M:OpenMetaverse.Assets.AssetAnimation.#ctor">
20656 <summary>Triggered whenever a message is logged. If this is left 21778 <summary>Default Constructor</summary>
20657 null, log messages will go to the console</summary>
20658 </member> 21779 </member>
20659 <member name="T:OpenMetaverse.Logger.LogCallback"> 21780 <member name="M:OpenMetaverse.Assets.AssetAnimation.#ctor(OpenMetaverse.UUID,System.Byte[])">
20660 <summary> 21781 <summary>
20661 Callback used for client apps to receive log messages from 21782 Construct an Asset object of type Animation
20662 the library
20663 </summary> 21783 </summary>
20664 <param name="message">Data being logged</param> 21784 <param name="assetID">A unique <see cref="T:OpenMetaverse.UUID" /> specific to this asset</param>
20665 <param name="level">The severity of the log entry from <seealso cref="T:OpenMetaverse.Helpers.LogLevel"/></param> 21785 <param name="assetData">A byte array containing the raw asset data</param>
20666 </member> 21786 </member>
20667 <member name="F:OpenMetaverse.InventorySortOrder.ByName"> 21787 <member name="P:OpenMetaverse.Assets.AssetAnimation.AssetType">
20668 <summary>Sort by name</summary> 21788 <summary>Override the base classes AssetType</summary>
20669 </member> 21789 </member>
20670 <member name="F:OpenMetaverse.InventorySortOrder.ByDate"> 21790 <member name="T:OpenMetaverse.Assets.AssetBodypart">
20671 <summary>Sort by date</summary> 21791 <summary>
21792 Represents an <seealso cref="T:OpenMetaverse.Assets.AssetWearable" /> that represents an avatars body ie: Hair, Etc.
21793 </summary>
20672 </member> 21794 </member>
20673 <member name="F:OpenMetaverse.InventorySortOrder.FoldersByName"> 21795 <member name="M:OpenMetaverse.Assets.AssetBodypart.#ctor">
20674 <summary>Sort folders by name, regardless of whether items are 21796 <summary>Initializes a new instance of an AssetBodyPart object</summary>
20675 sorted by name or date</summary>
20676 </member> 21797 </member>
20677 <member name="F:OpenMetaverse.InventorySortOrder.SystemFoldersToTop"> 21798 <member name="M:OpenMetaverse.Assets.AssetBodypart.#ctor(OpenMetaverse.UUID,System.Byte[])">
20678 <summary>Place system folders at the top</summary> 21799 <summary>Initializes a new instance of an AssetBodyPart object with parameters</summary>
21800 <param name="assetID">A unique <see cref="T:OpenMetaverse.UUID" /> specific to this asset</param>
21801 <param name="assetData">A byte array containing the raw asset data</param>
20679 </member> 21802 </member>
20680 <member name="T:OpenMetaverse.DeRezDestination"> 21803 <member name="P:OpenMetaverse.Assets.AssetBodypart.AssetType">
21804 <summary>Override the base classes AssetType</summary>
21805 </member>
21806 <member name="T:OpenMetaverse.Assets.AssetClothing">
20681 <summary> 21807 <summary>
20682 Possible destinations for DeRezObject request 21808 Represents an <seealso cref="T:OpenMetaverse.Assets.AssetWearable" /> that can be worn on an avatar
21809 such as a Shirt, Pants, etc.
20683 </summary> 21810 </summary>
20684 </member> 21811 </member>
20685 <member name="F:OpenMetaverse.DeRezDestination.AgentInventorySave"> 21812 <member name="M:OpenMetaverse.Assets.AssetClothing.#ctor">
20686 <summary></summary> 21813 <summary>Initializes a new instance of an AssetScriptBinary object</summary>
20687 </member> 21814 </member>
20688 <member name="F:OpenMetaverse.DeRezDestination.AgentInventoryCopy"> 21815 <member name="M:OpenMetaverse.Assets.AssetClothing.#ctor(OpenMetaverse.UUID,System.Byte[])">
20689 <summary>Copy from in-world to agent inventory</summary> 21816 <summary>Initializes a new instance of an AssetScriptBinary object with parameters</summary>
21817 <param name="assetID">A unique <see cref="T:OpenMetaverse.UUID" /> specific to this asset</param>
21818 <param name="assetData">A byte array containing the raw asset data</param>
20690 </member> 21819 </member>
20691 <member name="F:OpenMetaverse.DeRezDestination.TaskInventory"> 21820 <member name="P:OpenMetaverse.Assets.AssetClothing.AssetType">
20692 <summary>Derez to TaskInventory</summary> 21821 <summary>Override the base classes AssetType</summary>
20693 </member> 21822 </member>
20694 <member name="F:OpenMetaverse.DeRezDestination.Attachment"> 21823 <member name="T:OpenMetaverse.Assets.GestureStepType">
20695 <summary></summary> 21824 <summary>
21825 Type of gesture step
21826 </summary>
20696 </member> 21827 </member>
20697 <member name="F:OpenMetaverse.DeRezDestination.AgentInventoryTake"> 21828 <member name="T:OpenMetaverse.Assets.GestureStep">
20698 <summary>Take Object</summary> 21829 <summary>
21830 Base class for gesture steps
21831 </summary>
20699 </member> 21832 </member>
20700 <member name="F:OpenMetaverse.DeRezDestination.ForceToGodInventory"> 21833 <member name="P:OpenMetaverse.Assets.GestureStep.GestureStepType">
20701 <summary></summary> 21834 <summary>
21835 Retururns what kind of gesture step this is
21836 </summary>
20702 </member> 21837 </member>
20703 <member name="F:OpenMetaverse.DeRezDestination.TrashFolder"> 21838 <member name="T:OpenMetaverse.Assets.GestureStepAnimation">
20704 <summary>Delete Object</summary> 21839 <summary>
21840 Describes animation step of a gesture
21841 </summary>
20705 </member> 21842 </member>
20706 <member name="F:OpenMetaverse.DeRezDestination.AttachmentToInventory"> 21843 <member name="F:OpenMetaverse.Assets.GestureStepAnimation.AnimationStart">
20707 <summary>Put an avatar attachment into agent inventory</summary> 21844 <summary>
21845 If true, this step represents start of animation, otherwise animation stop
21846 </summary>
20708 </member> 21847 </member>
20709 <member name="F:OpenMetaverse.DeRezDestination.AttachmentExists"> 21848 <member name="F:OpenMetaverse.Assets.GestureStepAnimation.ID">
20710 <summary></summary> 21849 <summary>
21850 Animation asset <see cref="T:OpenMetaverse.UUID" /></summary>
20711 </member> 21851 </member>
20712 <member name="F:OpenMetaverse.DeRezDestination.ReturnToOwner"> 21852 <member name="F:OpenMetaverse.Assets.GestureStepAnimation.Name">
20713 <summary>Return an object back to the owner's inventory</summary> 21853 <summary>
21854 Animation inventory name
21855 </summary>
20714 </member> 21856 </member>
20715 <member name="F:OpenMetaverse.DeRezDestination.ReturnToLastOwner"> 21857 <member name="P:OpenMetaverse.Assets.GestureStepAnimation.GestureStepType">
20716 <summary>Return a deeded object back to the last owner's inventory</summary> 21858 <summary>
21859 Returns what kind of gesture step this is
21860 </summary>
20717 </member> 21861 </member>
20718 <member name="T:OpenMetaverse.InventoryItemFlags"> 21862 <member name="T:OpenMetaverse.Assets.GestureStepSound">
20719 <summary> 21863 <summary>
20720 Upper half of the Flags field for inventory items 21864 Describes sound step of a gesture
20721 </summary> 21865 </summary>
20722 </member> 21866 </member>
20723 <member name="F:OpenMetaverse.InventoryItemFlags.ObjectSlamPerm"> 21867 <member name="F:OpenMetaverse.Assets.GestureStepSound.ID">
20724 <summary>Indicates that the NextOwner permission will be set to the 21868 <summary>
20725 most restrictive set of permissions found in the object set 21869 Sound asset <see cref="T:OpenMetaverse.UUID" /></summary>
20726 (including linkset items and object inventory items) on next rez</summary>
20727 </member> 21870 </member>
20728 <member name="F:OpenMetaverse.InventoryItemFlags.ObjectSlamSale"> 21871 <member name="F:OpenMetaverse.Assets.GestureStepSound.Name">
20729 <summary>Indicates that the object sale information has been 21872 <summary>
20730 changed</summary> 21873 Sound inventory name
21874 </summary>
20731 </member> 21875 </member>
20732 <member name="F:OpenMetaverse.InventoryItemFlags.ObjectOverwriteBase"> 21876 <member name="P:OpenMetaverse.Assets.GestureStepSound.GestureStepType">
20733 <summary>If set, and a slam bit is set, indicates BaseMask will be overwritten on Rez</summary> 21877 <summary>
21878 Returns what kind of gesture step this is
21879 </summary>
20734 </member> 21880 </member>
20735 <member name="F:OpenMetaverse.InventoryItemFlags.ObjectOverwriteOwner"> 21881 <member name="T:OpenMetaverse.Assets.GestureStepChat">
20736 <summary>If set, and a slam bit is set, indicates OwnerMask will be overwritten on Rez</summary> 21882 <summary>
21883 Describes sound step of a gesture
21884 </summary>
20737 </member> 21885 </member>
20738 <member name="F:OpenMetaverse.InventoryItemFlags.ObjectOverwriteGroup"> 21886 <member name="F:OpenMetaverse.Assets.GestureStepChat.Text">
20739 <summary>If set, and a slam bit is set, indicates GroupMask will be overwritten on Rez</summary> 21887 <summary>
21888 Text to output in chat
21889 </summary>
20740 </member> 21890 </member>
20741 <member name="F:OpenMetaverse.InventoryItemFlags.ObjectOverwriteEveryone"> 21891 <member name="P:OpenMetaverse.Assets.GestureStepChat.GestureStepType">
20742 <summary>If set, and a slam bit is set, indicates EveryoneMask will be overwritten on Rez</summary> 21892 <summary>
21893 Returns what kind of gesture step this is
21894 </summary>
20743 </member> 21895 </member>
20744 <member name="F:OpenMetaverse.InventoryItemFlags.ObjectOverwriteNextOwner"> 21896 <member name="T:OpenMetaverse.Assets.GestureStepWait">
20745 <summary>If set, and a slam bit is set, indicates NextOwnerMask will be overwritten on Rez</summary> 21897 <summary>
21898 Describes sound step of a gesture
21899 </summary>
20746 </member> 21900 </member>
20747 <member name="F:OpenMetaverse.InventoryItemFlags.ObjectHasMultipleItems"> 21901 <member name="F:OpenMetaverse.Assets.GestureStepWait.WaitForAnimation">
20748 <summary>Indicates whether this object is composed of multiple 21902 <summary>
20749 items or not</summary> 21903 If true in this step we wait for all animations to finish
21904 </summary>
20750 </member> 21905 </member>
20751 <member name="F:OpenMetaverse.InventoryItemFlags.SharedSingleReference"> 21906 <member name="F:OpenMetaverse.Assets.GestureStepWait.WaitForTime">
20752 <summary>Indicates that the asset is only referenced by this 21907 <summary>
20753 inventory item. If this item is deleted or updated to reference a 21908 If true gesture player should wait for the specified amount of time
20754 new assetID, the asset can be deleted</summary> 21909 </summary>
20755 </member> 21910 </member>
20756 <member name="T:OpenMetaverse.InventoryBase"> 21911 <member name="F:OpenMetaverse.Assets.GestureStepWait.WaitTime">
20757 <summary> 21912 <summary>
20758 Base Class for Inventory Items 21913 Time in seconds to wait if WaitForAnimation is false
20759 </summary> 21914 </summary>
20760 </member> 21915 </member>
20761 <member name="F:OpenMetaverse.InventoryBase.UUID"> 21916 <member name="P:OpenMetaverse.Assets.GestureStepWait.GestureStepType">
20762 <summary><seealso cref="T:OpenMetaverse.UUID"/> of item/folder</summary> 21917 <summary>
21918 Returns what kind of gesture step this is
21919 </summary>
20763 </member> 21920 </member>
20764 <member name="F:OpenMetaverse.InventoryBase.ParentUUID"> 21921 <member name="T:OpenMetaverse.Assets.GestureStepEOF">
20765 <summary><seealso cref="T:OpenMetaverse.UUID"/> of parent folder</summary> 21922 <summary>
21923 Describes the final step of a gesture
21924 </summary>
20766 </member> 21925 </member>
20767 <member name="F:OpenMetaverse.InventoryBase.Name"> 21926 <member name="P:OpenMetaverse.Assets.GestureStepEOF.GestureStepType">
20768 <summary>Name of item/folder</summary> 21927 <summary>
21928 Returns what kind of gesture step this is
21929 </summary>
20769 </member> 21930 </member>
20770 <member name="F:OpenMetaverse.InventoryBase.OwnerID"> 21931 <member name="T:OpenMetaverse.Assets.AssetGesture">
20771 <summary>Item/Folder Owners <seealso cref="T:OpenMetaverse.UUID"/></summary> 21932 <summary>
21933 Represents a sequence of animations, sounds, and chat actions
21934 </summary>
20772 </member> 21935 </member>
20773 <member name="M:OpenMetaverse.InventoryBase.#ctor(OpenMetaverse.UUID)"> 21936 <member name="M:OpenMetaverse.Assets.AssetGesture.#ctor">
20774 <summary> 21937 <summary>
20775 Constructor, takes an itemID as a parameter 21938 Constructs guesture asset
20776 </summary> 21939 </summary>
20777 <param name="itemID">The <seealso cref="T:OpenMetaverse.UUID"/> of the item</param>
20778 </member> 21940 </member>
20779 <member name="M:OpenMetaverse.InventoryBase.GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)"> 21941 <member name="M:OpenMetaverse.Assets.AssetGesture.#ctor(OpenMetaverse.UUID,System.Byte[])">
20780 <summary> 21942 <summary>
20781 21943 Constructs guesture asset
20782 </summary> 21944 </summary>
20783 <returns></returns> 21945 <param name="assetID">A unique <see cref="T:OpenMetaverse.UUID" /> specific to this asset</param>
21946 <param name="assetData">A byte array containing the raw asset data</param>
20784 </member> 21947 </member>
20785 <member name="M:OpenMetaverse.InventoryBase.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)"> 21948 <member name="F:OpenMetaverse.Assets.AssetGesture.TriggerKey">
20786 <summary> 21949 <summary>
20787 21950 Keyboard key that triggers the gestyre
20788 </summary> 21951 </summary>
20789 <returns></returns>
20790 </member> 21952 </member>
20791 <member name="M:OpenMetaverse.InventoryBase.GetHashCode"> 21953 <member name="F:OpenMetaverse.Assets.AssetGesture.TriggerKeyMask">
20792 <summary> 21954 <summary>
20793 Generates a number corresponding to the value of the object to support the use of a hash table, 21955 Modifier to the trigger key
20794 suitable for use in hashing algorithms and data structures such as a hash table
20795 </summary> 21956 </summary>
20796 <returns>A Hashcode of all the combined InventoryBase fields</returns>
20797 </member> 21957 </member>
20798 <member name="M:OpenMetaverse.InventoryBase.Equals(System.Object)"> 21958 <member name="F:OpenMetaverse.Assets.AssetGesture.Trigger">
20799 <summary> 21959 <summary>
20800 Determine whether the specified <seealso cref="T:OpenMetaverse.InventoryBase"/> object is equal to the current object 21960 String that triggers playing of the gesture sequence
20801 </summary> 21961 </summary>
20802 <param name="o">InventoryBase object to compare against</param>
20803 <returns>true if objects are the same</returns>
20804 </member> 21962 </member>
20805 <member name="M:OpenMetaverse.InventoryBase.Equals(OpenMetaverse.InventoryBase)"> 21963 <member name="F:OpenMetaverse.Assets.AssetGesture.ReplaceWith">
20806 <summary> 21964 <summary>
20807 Determine whether the specified <seealso cref="T:OpenMetaverse.InventoryBase"/> object is equal to the current object 21965 Text that replaces trigger in chat once gesture is triggered
20808 </summary> 21966 </summary>
20809 <param name="o">InventoryBase object to compare against</param>
20810 <returns>true if objects are the same</returns>
20811 </member> 21967 </member>
20812 <member name="T:OpenMetaverse.InventoryItem"> 21968 <member name="F:OpenMetaverse.Assets.AssetGesture.Sequence">
20813 <summary> 21969 <summary>
20814 An Item in Inventory 21970 Sequence of gesture steps
20815 </summary> 21971 </summary>
20816 </member> 21972 </member>
20817 <member name="F:OpenMetaverse.InventoryItem.AssetUUID"> 21973 <member name="P:OpenMetaverse.Assets.AssetGesture.AssetType">
20818 <summary>The <seealso cref="T:OpenMetaverse.UUID"/> of this item</summary> 21974 <summary>
21975 Returns asset type
21976 </summary>
20819 </member> 21977 </member>
20820 <member name="F:OpenMetaverse.InventoryItem.Permissions"> 21978 <member name="M:OpenMetaverse.Assets.AssetGesture.Encode">
20821 <summary>The combined <seealso cref="T:OpenMetaverse.Permissions"/> of this item</summary> 21979 <summary>
21980 Encodes gesture asset suitable for uplaod
21981 </summary>
20822 </member> 21982 </member>
20823 <member name="F:OpenMetaverse.InventoryItem.AssetType"> 21983 <member name="M:OpenMetaverse.Assets.AssetGesture.Decode">
20824 <summary>The type of item from <seealso cref="T:OpenMetaverse.AssetType"/></summary> 21984 <summary>
21985 Decodes gesture assset into play sequence
21986 </summary>
21987 <returns>true if the asset data was decoded successfully</returns>
20825 </member> 21988 </member>
20826 <member name="F:OpenMetaverse.InventoryItem.InventoryType"> 21989 <member name="T:OpenMetaverse.Assets.AssetLandmark">
20827 <summary>The type of item from the <seealso cref="T:OpenMetaverse.InventoryType"/> enum</summary> 21990 <summary>
21991 Represents a Landmark with RegionID and Position vector
21992 </summary>
20828 </member> 21993 </member>
20829 <member name="F:OpenMetaverse.InventoryItem.CreatorID"> 21994 <member name="M:OpenMetaverse.Assets.AssetLandmark.#ctor">
20830 <summary>The <seealso cref="T:OpenMetaverse.UUID"/> of the creator of this item</summary> 21995 <summary>Construct an Asset of type Landmark</summary>
20831 </member> 21996 </member>
20832 <member name="F:OpenMetaverse.InventoryItem.Description"> 21997 <member name="M:OpenMetaverse.Assets.AssetLandmark.#ctor(OpenMetaverse.UUID,System.Byte[])">
20833 <summary>A Description of this item</summary> 21998 <summary>
21999 Construct an Asset object of type Landmark
22000 </summary>
22001 <param name="assetID">A unique <see cref="T:OpenMetaverse.UUID" /> specific to this asset</param>
22002 <param name="assetData">A byte array containing the raw asset data</param>
20834 </member> 22003 </member>
20835 <member name="F:OpenMetaverse.InventoryItem.GroupID"> 22004 <member name="F:OpenMetaverse.Assets.AssetLandmark.RegionID">
20836 <summary>The <seealso cref="T:OpenMetaverse.Group"/>s <seealso cref="T:OpenMetaverse.UUID"/> this item is set to or owned by</summary> 22005 <summary>UUID of the Landmark target region</summary>
20837 </member> 22006 </member>
20838 <member name="F:OpenMetaverse.InventoryItem.GroupOwned"> 22007 <member name="F:OpenMetaverse.Assets.AssetLandmark.Position">
20839 <summary>If true, item is owned by a group</summary> 22008 <summary> Local position of the target </summary>
20840 </member> 22009 </member>
20841 <member name="F:OpenMetaverse.InventoryItem.SalePrice"> 22010 <member name="P:OpenMetaverse.Assets.AssetLandmark.AssetType">
20842 <summary>The price this item can be purchased for</summary> 22011 <summary>Override the base classes AssetType</summary>
20843 </member> 22012 </member>
20844 <member name="F:OpenMetaverse.InventoryItem.SaleType"> 22013 <member name="M:OpenMetaverse.Assets.AssetLandmark.Encode">
20845 <summary>The type of sale from the <seealso cref="T:OpenMetaverse.SaleType"/> enum</summary> 22014 <summary>
22015 Encode the raw contents of a string with the specific Landmark format
22016 </summary>
20846 </member> 22017 </member>
20847 <member name="F:OpenMetaverse.InventoryItem.Flags"> 22018 <member name="M:OpenMetaverse.Assets.AssetLandmark.Decode">
20848 <summary>Combined flags from <seealso cref="T:OpenMetaverse.InventoryItemFlags"/></summary> 22019 <summary>
22020 Decode the raw asset data, populating the RegionID and Position
22021 </summary>
22022 <returns>true if the AssetData was successfully decoded to a UUID and Vector</returns>
20849 </member> 22023 </member>
20850 <member name="F:OpenMetaverse.InventoryItem.CreationDate"> 22024 <member name="T:OpenMetaverse.Assets.AssetMesh">
20851 <summary>Time and date this inventory item was created, stored as 22025 <summary>
20852 UTC (Coordinated Universal Time)</summary> 22026 Represents Mesh asset
22027 </summary>
20853 </member> 22028 </member>
20854 <member name="F:OpenMetaverse.InventoryItem.TransactionID"> 22029 <member name="M:OpenMetaverse.Assets.AssetMesh.#ctor">
20855 <summary>Used to update the AssetID in requests sent to the server</summary> 22030 <summary>Initializes a new instance of an AssetMesh object</summary>
20856 </member> 22031 </member>
20857 <member name="F:OpenMetaverse.InventoryItem.LastOwnerID"> 22032 <member name="M:OpenMetaverse.Assets.AssetMesh.#ctor(OpenMetaverse.UUID,System.Byte[])">
20858 <summary>The <seealso cref="T:OpenMetaverse.UUID"/> of the previous owner of the item</summary> 22033 <summary>Initializes a new instance of an AssetMesh object with parameters</summary>
22034 <param name="assetID">A unique <see cref="T:OpenMetaverse.UUID" /> specific to this asset</param>
22035 <param name="assetData">A byte array containing the raw asset data</param>
20859 </member> 22036 </member>
20860 <member name="M:OpenMetaverse.InventoryItem.#ctor(OpenMetaverse.UUID)"> 22037 <member name="F:OpenMetaverse.Assets.AssetMesh.MeshData">
20861 <summary> 22038 <summary>
20862 Construct a new InventoryItem object 22039 Decoded mesh data
20863 </summary> 22040 </summary>
20864 <param name="itemID">The <seealso cref="T:OpenMetaverse.UUID"/> of the item</param>
20865 </member> 22041 </member>
20866 <member name="M:OpenMetaverse.InventoryItem.#ctor(OpenMetaverse.InventoryType,OpenMetaverse.UUID)"> 22042 <member name="P:OpenMetaverse.Assets.AssetMesh.AssetType">
22043 <summary>Override the base classes AssetType</summary>
22044 </member>
22045 <member name="M:OpenMetaverse.Assets.AssetMesh.Encode">
20867 <summary> 22046 <summary>
20868 Construct a new InventoryItem object of a specific Type 22047 TODO: Encodes Collada file into LLMesh format
20869 </summary> 22048 </summary>
20870 <param name="type">The type of item from <seealso cref="T:OpenMetaverse.InventoryType"/></param>
20871 <param name="itemID"><seealso cref="T:OpenMetaverse.UUID"/> of the item</param>
20872 </member> 22049 </member>
20873 <member name="M:OpenMetaverse.InventoryItem.IsLink"> 22050 <member name="M:OpenMetaverse.Assets.AssetMesh.Decode">
20874 <summary> 22051 <summary>
20875 Indicates inventory item is a link 22052 Decodes mesh asset. See <see cref="M:OpenMetaverse.Rendering.FacetedMesh.TryDecodeFromAsset(OpenMetaverse.Primitive,OpenMetaverse.Assets.AssetMesh,OpenMetaverse.Rendering.DetailLevel,OpenMetaverse.Rendering.FacetedMesh)" />
22053 to furter decode it for rendering</summary>
22054 <returns>true</returns>
22055 </member>
22056 <member name="T:OpenMetaverse.Assets.AssetNotecard">
22057 <summary>
22058 Represents a string of characters encoded with specific formatting properties
20876 </summary> 22059 </summary>
20877 <returns>True if inventory item is a link to another inventory item</returns>
20878 </member> 22060 </member>
20879 <member name="M:OpenMetaverse.InventoryItem.GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)"> 22061 <member name="M:OpenMetaverse.Assets.AssetNotecard.#ctor">
22062 <summary>Construct an Asset of type Notecard</summary>
22063 </member>
22064 <member name="M:OpenMetaverse.Assets.AssetNotecard.#ctor(OpenMetaverse.UUID,System.Byte[])">
20880 <summary> 22065 <summary>
20881 22066 Construct an Asset object of type Notecard
20882 </summary> 22067 </summary>
20883 <returns></returns> 22068 <param name="assetID">A unique <see cref="T:OpenMetaverse.UUID" /> specific to this asset</param>
22069 <param name="assetData">A byte array containing the raw asset data</param>
20884 </member> 22070 </member>
20885 <member name="M:OpenMetaverse.InventoryItem.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)"> 22071 <member name="F:OpenMetaverse.Assets.AssetNotecard.BodyText">
22072 <summary>A text string containing main text of the notecard</summary>
22073 </member>
22074 <member name="F:OpenMetaverse.Assets.AssetNotecard.EmbeddedItems">
22075 <summary>List of <see cref="T:OpenMetaverse.InventoryItem" />s embedded on the notecard</summary>
22076 </member>
22077 <member name="P:OpenMetaverse.Assets.AssetNotecard.AssetType">
22078 <summary>Override the base classes AssetType</summary>
22079 </member>
22080 <member name="M:OpenMetaverse.Assets.AssetNotecard.Encode">
20886 <summary> 22081 <summary>
20887 22082 Encode the raw contents of a string with the specific Linden Text properties
20888 </summary> 22083 </summary>
20889 <returns></returns>
20890 </member> 22084 </member>
20891 <member name="M:OpenMetaverse.InventoryItem.GetHashCode"> 22085 <member name="M:OpenMetaverse.Assets.AssetNotecard.Decode">
20892 <summary> 22086 <summary>
20893 Generates a number corresponding to the value of the object to support the use of a hash table. 22087 Decode the raw asset data including the Linden Text properties
20894 Suitable for use in hashing algorithms and data structures such as a hash table
20895 </summary> 22088 </summary>
20896 <returns>A Hashcode of all the combined InventoryItem fields</returns> 22089 <returns>true if the AssetData was successfully decoded</returns>
20897 </member> 22090 </member>
20898 <member name="M:OpenMetaverse.InventoryItem.Equals(System.Object)"> 22091 <member name="T:OpenMetaverse.Assets.AssetPrim">
20899 <summary> 22092 <summary>
20900 Compares an object 22093 A linkset asset, containing a parent primitive and zero or more children
20901 </summary> 22094 </summary>
20902 <param name="o">The object to compare</param>
20903 <returns>true if comparison object matches</returns>
20904 </member> 22095 </member>
20905 <member name="M:OpenMetaverse.InventoryItem.Equals(OpenMetaverse.InventoryBase)"> 22096 <member name="M:OpenMetaverse.Assets.AssetPrim.#ctor">
22097 <summary>Initializes a new instance of an AssetPrim object</summary>
22098 </member>
22099 <member name="M:OpenMetaverse.Assets.AssetPrim.#ctor(OpenMetaverse.UUID,System.Byte[])">
20906 <summary> 22100 <summary>
20907 Determine whether the specified <seealso cref="T:OpenMetaverse.InventoryBase"/> object is equal to the current object 22101 Initializes a new instance of an AssetPrim object
20908 </summary> 22102 </summary>
20909 <param name="o">The <seealso cref="T:OpenMetaverse.InventoryBase"/> object to compare against</param> 22103 <param name="assetID">A unique <see cref="T:OpenMetaverse.UUID" /> specific to this asset</param>
20910 <returns>true if objects are the same</returns> 22104 <param name="assetData">A byte array containing the raw asset data</param>
20911 </member> 22105 </member>
20912 <member name="M:OpenMetaverse.InventoryItem.Equals(OpenMetaverse.InventoryItem)"> 22106 <member name="T:OpenMetaverse.Assets.AssetPrim.ProfileShape">
20913 <summary> 22107 <summary>
20914 Determine whether the specified <seealso cref="T:OpenMetaverse.InventoryItem"/> object is equal to the current object 22108 Only used internally for XML serialization/deserialization
20915 </summary> 22109 </summary>
20916 <param name="o">The <seealso cref="T:OpenMetaverse.InventoryItem"/> object to compare against</param>
20917 <returns>true if objects are the same</returns>
20918 </member> 22110 </member>
20919 <member name="T:OpenMetaverse.InventoryTexture"> 22111 <member name="P:OpenMetaverse.Assets.AssetPrim.AssetType">
22112 <summary>Override the base classes AssetType</summary>
22113 </member>
22114 <member name="M:OpenMetaverse.Assets.AssetPrim.Encode">
20920 <summary> 22115 <summary>
20921 InventoryTexture Class representing a graphical image
20922 </summary> 22116 </summary>
20923 <seealso cref="!:ManagedImage"/>
20924 </member> 22117 </member>
20925 <member name="M:OpenMetaverse.InventoryTexture.#ctor(OpenMetaverse.UUID)"> 22118 <member name="M:OpenMetaverse.Assets.AssetPrim.Decode">
20926 <summary> 22119 <summary>
20927 Construct an InventoryTexture object
20928 </summary> 22120 </summary>
20929 <param name="itemID">A <seealso cref="T:OpenMetaverse.UUID"/> which becomes the 22121 <returns>
20930 <seealso cref="T:OpenMetaverse.InventoryItem"/> objects AssetUUID</param> 22122 </returns>
20931 </member> 22123 </member>
20932 <member name="M:OpenMetaverse.InventoryTexture.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)"> 22124 <member name="T:OpenMetaverse.Assets.PrimObject">
20933 <summary> 22125 <summary>
20934 Construct an InventoryTexture object from a serialization stream 22126 The deserialized form of a single primitive in a linkset asset
20935 </summary> 22127 </summary>
20936 </member> 22128 </member>
20937 <member name="T:OpenMetaverse.InventorySound"> 22129 <member name="T:OpenMetaverse.Assets.AssetScriptBinary">
20938 <summary> 22130 <summary>
20939 InventorySound Class representing a playable sound 22131 Represents an AssetScriptBinary object containing the
22132 LSO compiled bytecode of an LSL script
20940 </summary> 22133 </summary>
20941 </member> 22134 </member>
20942 <member name="M:OpenMetaverse.InventorySound.#ctor(OpenMetaverse.UUID)"> 22135 <member name="M:OpenMetaverse.Assets.AssetScriptBinary.#ctor">
22136 <summary>Initializes a new instance of an AssetScriptBinary object</summary>
22137 </member>
22138 <member name="M:OpenMetaverse.Assets.AssetScriptBinary.#ctor(OpenMetaverse.UUID,System.Byte[])">
22139 <summary>Initializes a new instance of an AssetScriptBinary object with parameters</summary>
22140 <param name="assetID">A unique <see cref="T:OpenMetaverse.UUID" /> specific to this asset</param>
22141 <param name="assetData">A byte array containing the raw asset data</param>
22142 </member>
22143 <member name="P:OpenMetaverse.Assets.AssetScriptBinary.AssetType">
22144 <summary>Override the base classes AssetType</summary>
22145 </member>
22146 <member name="M:OpenMetaverse.Assets.AssetScriptBinary.Encode">
20943 <summary> 22147 <summary>
20944 Construct an InventorySound object 22148 TODO: Encodes a scripts contents into a LSO Bytecode file
20945 </summary> 22149 </summary>
20946 <param name="itemID">A <seealso cref="T:OpenMetaverse.UUID"/> which becomes the
20947 <seealso cref="T:OpenMetaverse.InventoryItem"/> objects AssetUUID</param>
20948 </member> 22150 </member>
20949 <member name="M:OpenMetaverse.InventorySound.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)"> 22151 <member name="M:OpenMetaverse.Assets.AssetScriptBinary.Decode">
20950 <summary> 22152 <summary>
20951 Construct an InventorySound object from a serialization stream 22153 TODO: Decode LSO Bytecode into a string
20952 </summary> 22154 </summary>
22155 <returns>true</returns>
20953 </member> 22156 </member>
20954 <member name="T:OpenMetaverse.InventoryCallingCard"> 22157 <member name="T:OpenMetaverse.Assets.AssetScriptText">
20955 <summary> 22158 <summary>
20956 InventoryCallingCard Class, contains information on another avatar 22159 Represents an LSL Text object containing a string of UTF encoded characters
20957 </summary> 22160 </summary>
20958 </member> 22161 </member>
20959 <member name="M:OpenMetaverse.InventoryCallingCard.#ctor(OpenMetaverse.UUID)"> 22162 <member name="M:OpenMetaverse.Assets.AssetScriptText.#ctor">
22163 <summary>Initializes a new AssetScriptText object</summary>
22164 </member>
22165 <member name="M:OpenMetaverse.Assets.AssetScriptText.#ctor(OpenMetaverse.UUID,System.Byte[])">
20960 <summary> 22166 <summary>
20961 Construct an InventoryCallingCard object 22167 Initializes a new AssetScriptText object with parameters
20962 </summary> 22168 </summary>
20963 <param name="itemID">A <seealso cref="T:OpenMetaverse.UUID"/> which becomes the 22169 <param name="assetID">A unique <see cref="T:OpenMetaverse.UUID" /> specific to this asset</param>
20964 <seealso cref="T:OpenMetaverse.InventoryItem"/> objects AssetUUID</param> 22170 <param name="assetData">A byte array containing the raw asset data</param>
20965 </member> 22171 </member>
20966 <member name="M:OpenMetaverse.InventoryCallingCard.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)"> 22172 <member name="F:OpenMetaverse.Assets.AssetScriptText.Source">
22173 <summary>A string of characters represting the script contents</summary>
22174 </member>
22175 <member name="P:OpenMetaverse.Assets.AssetScriptText.AssetType">
22176 <summary>Override the base classes AssetType</summary>
22177 </member>
22178 <member name="M:OpenMetaverse.Assets.AssetScriptText.Encode">
20967 <summary> 22179 <summary>
20968 Construct an InventoryCallingCard object from a serialization stream 22180 Encode a string containing the scripts contents into byte encoded AssetData
20969 </summary> 22181 </summary>
20970 </member> 22182 </member>
20971 <member name="T:OpenMetaverse.InventoryLandmark"> 22183 <member name="M:OpenMetaverse.Assets.AssetScriptText.Decode">
20972 <summary> 22184 <summary>
20973 InventoryLandmark Class, contains details on a specific location 22185 Decode a byte array containing the scripts contents into a string
20974 </summary> 22186 </summary>
22187 <returns>true if decoding is successful</returns>
20975 </member> 22188 </member>
20976 <member name="M:OpenMetaverse.InventoryLandmark.#ctor(OpenMetaverse.UUID)"> 22189 <member name="T:OpenMetaverse.Assets.AssetSound">
20977 <summary> 22190 <summary>
20978 Construct an InventoryLandmark object 22191 Represents a Sound Asset
20979 </summary> 22192 </summary>
20980 <param name="itemID">A <seealso cref="T:OpenMetaverse.UUID"/> which becomes the
20981 <seealso cref="T:OpenMetaverse.InventoryItem"/> objects AssetUUID</param>
20982 </member> 22193 </member>
20983 <member name="M:OpenMetaverse.InventoryLandmark.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)"> 22194 <member name="M:OpenMetaverse.Assets.AssetSound.#ctor">
22195 <summary>Initializes a new instance of an AssetSound object</summary>
22196 </member>
22197 <member name="M:OpenMetaverse.Assets.AssetSound.#ctor(OpenMetaverse.UUID,System.Byte[])">
22198 <summary>Initializes a new instance of an AssetSound object with parameters</summary>
22199 <param name="assetID">A unique <see cref="T:OpenMetaverse.UUID" /> specific to this asset</param>
22200 <param name="assetData">A byte array containing the raw asset data</param>
22201 </member>
22202 <member name="P:OpenMetaverse.Assets.AssetSound.AssetType">
22203 <summary>Override the base classes AssetType</summary>
22204 </member>
22205 <member name="M:OpenMetaverse.Assets.AssetSound.Encode">
20984 <summary> 22206 <summary>
20985 Construct an InventoryLandmark object from a serialization stream 22207 TODO: Encodes a sound file
20986 </summary> 22208 </summary>
20987 </member> 22209 </member>
20988 <member name="P:OpenMetaverse.InventoryLandmark.LandmarkVisited"> 22210 <member name="M:OpenMetaverse.Assets.AssetSound.Decode">
20989 <summary> 22211 <summary>
20990 Landmarks use the InventoryItemFlags struct and will have a flag of 1 set if they have been visited 22212 TODO: Decode a sound file
20991 </summary> 22213 </summary>
22214 <returns>true</returns>
20992 </member> 22215 </member>
20993 <member name="T:OpenMetaverse.InventoryObject"> 22216 <member name="T:OpenMetaverse.Assets.AssetTexture">
20994 <summary> 22217 <summary>
20995 InventoryObject Class contains details on a primitive or coalesced set of primitives 22218 Represents a texture
20996 </summary> 22219 </summary>
20997 </member> 22220 </member>
20998 <member name="M:OpenMetaverse.InventoryObject.#ctor(OpenMetaverse.UUID)"> 22221 <member name="M:OpenMetaverse.Assets.AssetTexture.#ctor">
22222 <summary>Initializes a new instance of an AssetTexture object</summary>
22223 </member>
22224 <member name="M:OpenMetaverse.Assets.AssetTexture.#ctor(OpenMetaverse.UUID,System.Byte[])">
20999 <summary> 22225 <summary>
21000 Construct an InventoryObject object 22226 Initializes a new instance of an AssetTexture object
21001 </summary> 22227 </summary>
21002 <param name="itemID">A <seealso cref="T:OpenMetaverse.UUID"/> which becomes the 22228 <param name="assetID">A unique <see cref="T:OpenMetaverse.UUID" /> specific to this asset</param>
21003 <seealso cref="T:OpenMetaverse.InventoryItem"/> objects AssetUUID</param> 22229 <param name="assetData">A byte array containing the raw asset data</param>
21004 </member> 22230 </member>
21005 <member name="M:OpenMetaverse.InventoryObject.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)"> 22231 <member name="M:OpenMetaverse.Assets.AssetTexture.#ctor(OpenMetaverse.Imaging.ManagedImage)">
21006 <summary> 22232 <summary>
21007 Construct an InventoryObject object from a serialization stream 22233 Initializes a new instance of an AssetTexture object
21008 </summary> 22234 </summary>
22235 <param name="image">A <seealso cref="T:OpenMetaverse.Imaging.ManagedImage" /> object containing texture data</param>
21009 </member> 22236 </member>
21010 <member name="P:OpenMetaverse.InventoryObject.ItemFlags"> 22237 <member name="F:OpenMetaverse.Assets.AssetTexture.Image">
22238 <summary>A <seealso cref="T:OpenMetaverse.Imaging.ManagedImage" /> object containing image data</summary>
22239 </member>
22240 <member name="F:OpenMetaverse.Assets.AssetTexture.LayerInfo">
21011 <summary> 22241 <summary>
21012 Gets or sets the upper byte of the Flags value
21013 </summary> 22242 </summary>
21014 </member> 22243 </member>
21015 <member name="P:OpenMetaverse.InventoryObject.AttachPoint"> 22244 <member name="F:OpenMetaverse.Assets.AssetTexture.Components">
21016 <summary> 22245 <summary>
21017 Gets or sets the object attachment point, the lower byte of the Flags value
21018 </summary> 22246 </summary>
21019 </member> 22247 </member>
21020 <member name="T:OpenMetaverse.InventoryNotecard"> 22248 <member name="P:OpenMetaverse.Assets.AssetTexture.AssetType">
22249 <summary>Override the base classes AssetType</summary>
22250 </member>
22251 <member name="M:OpenMetaverse.Assets.AssetTexture.Encode">
21021 <summary> 22252 <summary>
21022 InventoryNotecard Class, contains details on an encoded text document 22253 Populates the <seealso cref="F:OpenMetaverse.Assets.AssetTexture.AssetData" /> byte array with a JPEG2000
22254 encoded image created from the data in <seealso cref="F:OpenMetaverse.Assets.AssetTexture.Image" /></summary>
22255 </member>
22256 <member name="M:OpenMetaverse.Assets.AssetTexture.Decode">
22257 <summary>
22258 Decodes the JPEG2000 data in <code>AssetData</code> to the
22259 <seealso cref="T:OpenMetaverse.Imaging.ManagedImage" /> object <seealso cref="F:OpenMetaverse.Assets.AssetTexture.Image" /></summary>
22260 <returns>True if the decoding was successful, otherwise false</returns>
22261 </member>
22262 <member name="M:OpenMetaverse.Assets.AssetTexture.DecodeLayerBoundaries">
22263 <summary>
22264 Decodes the begin and end byte positions for each quality layer in
22265 the image
21023 </summary> 22266 </summary>
22267 <returns>
22268 </returns>
21024 </member> 22269 </member>
21025 <member name="M:OpenMetaverse.InventoryNotecard.#ctor(OpenMetaverse.UUID)"> 22270 <member name="T:OpenMetaverse.Assets.AssetWearable">
21026 <summary> 22271 <summary>
21027 Construct an InventoryNotecard object 22272 Represents a Wearable Asset, Clothing, Hair, Skin, Etc
21028 </summary> 22273 </summary>
21029 <param name="itemID">A <seealso cref="T:OpenMetaverse.UUID"/> which becomes the
21030 <seealso cref="T:OpenMetaverse.InventoryItem"/> objects AssetUUID</param>
21031 </member> 22274 </member>
21032 <member name="M:OpenMetaverse.InventoryNotecard.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)"> 22275 <member name="M:OpenMetaverse.Assets.AssetWearable.#ctor">
22276 <summary>Initializes a new instance of an AssetWearable object</summary>
22277 </member>
22278 <member name="M:OpenMetaverse.Assets.AssetWearable.#ctor(OpenMetaverse.UUID,System.Byte[])">
22279 <summary>Initializes a new instance of an AssetWearable object with parameters</summary>
22280 <param name="assetID">A unique <see cref="T:OpenMetaverse.UUID" /> specific to this asset</param>
22281 <param name="assetData">A byte array containing the raw asset data</param>
22282 </member>
22283 <member name="F:OpenMetaverse.Assets.AssetWearable.Name">
22284 <summary>A string containing the name of the asset</summary>
22285 </member>
22286 <member name="F:OpenMetaverse.Assets.AssetWearable.Description">
22287 <summary>A string containing a short description of the asset</summary>
22288 </member>
22289 <member name="F:OpenMetaverse.Assets.AssetWearable.WearableType">
22290 <summary>The Assets WearableType</summary>
22291 </member>
22292 <member name="F:OpenMetaverse.Assets.AssetWearable.ForSale">
22293 <summary>The For-Sale status of the object</summary>
22294 </member>
22295 <member name="F:OpenMetaverse.Assets.AssetWearable.SalePrice">
22296 <summary>An Integer representing the purchase price of the asset</summary>
22297 </member>
22298 <member name="F:OpenMetaverse.Assets.AssetWearable.Creator">
22299 <summary>The <seealso cref="T:OpenMetaverse.UUID" /> of the assets creator</summary>
22300 </member>
22301 <member name="F:OpenMetaverse.Assets.AssetWearable.Owner">
22302 <summary>The <seealso cref="T:OpenMetaverse.UUID" /> of the assets current owner</summary>
22303 </member>
22304 <member name="F:OpenMetaverse.Assets.AssetWearable.LastOwner">
22305 <summary>The <seealso cref="T:OpenMetaverse.UUID" /> of the assets prior owner</summary>
22306 </member>
22307 <member name="F:OpenMetaverse.Assets.AssetWearable.Group">
22308 <summary>The <seealso cref="T:OpenMetaverse.UUID" /> of the Group this asset is set to</summary>
22309 </member>
22310 <member name="F:OpenMetaverse.Assets.AssetWearable.GroupOwned">
22311 <summary>True if the asset is owned by a <seealso cref="T:OpenMetaverse.Group" /></summary>
22312 </member>
22313 <member name="F:OpenMetaverse.Assets.AssetWearable.Permissions">
22314 <summary>The Permissions mask of the asset</summary>
22315 </member>
22316 <member name="F:OpenMetaverse.Assets.AssetWearable.Params">
22317 <summary>A Dictionary containing Key/Value pairs of the objects parameters</summary>
22318 </member>
22319 <member name="F:OpenMetaverse.Assets.AssetWearable.Textures">
22320 <summary>A Dictionary containing Key/Value pairs where the Key is the textures Index and the Value is the Textures <seealso cref="T:OpenMetaverse.UUID" /></summary>
22321 </member>
22322 <member name="M:OpenMetaverse.Assets.AssetWearable.Decode">
21033 <summary> 22323 <summary>
21034 Construct an InventoryNotecard object from a serialization stream 22324 Decode an assets byte encoded data to a string
21035 </summary> 22325 </summary>
22326 <returns>true if the asset data was decoded successfully</returns>
21036 </member> 22327 </member>
21037 <member name="T:OpenMetaverse.InventoryCategory"> 22328 <member name="M:OpenMetaverse.Assets.AssetWearable.Encode">
21038 <summary> 22329 <summary>
21039 InventoryCategory Class 22330 Encode the assets string represantion into a format consumable by the asset server
21040 </summary> 22331 </summary>
21041 <remarks>TODO: Is this even used for anything?</remarks>
21042 </member> 22332 </member>
21043 <member name="M:OpenMetaverse.InventoryCategory.#ctor(OpenMetaverse.UUID)"> 22333 <member name="F:OpenMetaverse.Http.EventQueueClient.REQUEST_TIMEOUT">
22334 <summary>=</summary>
22335 </member>
22336 <member name="F:OpenMetaverse.Http.EventQueueClient._errorCount">
22337 <summary>Number of times we've received an unknown CAPS exception in series.</summary>
22338 </member>
22339 <member name="F:OpenMetaverse.Http.EventQueueClient._random">
22340 <summary>For exponential backoff on error.</summary>
22341 </member>
22342 <member name="T:OpenMetaverse.Imaging.Baker">
21044 <summary> 22343 <summary>
21045 Construct an InventoryCategory object 22344 A set of textures that are layered on texture of each other and "baked"
22345 in to a single texture, for avatar appearances
21046 </summary> 22346 </summary>
21047 <param name="itemID">A <seealso cref="T:OpenMetaverse.UUID"/> which becomes the
21048 <seealso cref="T:OpenMetaverse.InventoryItem"/> objects AssetUUID</param>
21049 </member> 22347 </member>
21050 <member name="M:OpenMetaverse.InventoryCategory.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)"> 22348 <member name="M:OpenMetaverse.Imaging.Baker.#ctor(OpenMetaverse.BakeType)">
21051 <summary> 22349 <summary>
21052 Construct an InventoryCategory object from a serialization stream 22350 Default constructor
21053 </summary> 22351 </summary>
22352 <param name="bakeType">Bake type</param>
21054 </member> 22353 </member>
21055 <member name="T:OpenMetaverse.InventoryLSL"> 22354 <member name="F:OpenMetaverse.Imaging.Baker.bakedTexture">
22355 <summary>Final baked texture</summary>
22356 </member>
22357 <member name="F:OpenMetaverse.Imaging.Baker.textures">
22358 <summary>Component layers</summary>
22359 </member>
22360 <member name="F:OpenMetaverse.Imaging.Baker.bakeWidth">
22361 <summary>Width of the final baked image and scratchpad</summary>
22362 </member>
22363 <member name="F:OpenMetaverse.Imaging.Baker.bakeHeight">
22364 <summary>Height of the final baked image and scratchpad</summary>
22365 </member>
22366 <member name="F:OpenMetaverse.Imaging.Baker.bakeType">
22367 <summary>Bake type</summary>
22368 </member>
22369 <member name="P:OpenMetaverse.Imaging.Baker.BakedTexture">
22370 <summary>Final baked texture</summary>
22371 </member>
22372 <member name="P:OpenMetaverse.Imaging.Baker.Textures">
22373 <summary>Component layers</summary>
22374 </member>
22375 <member name="P:OpenMetaverse.Imaging.Baker.BakeWidth">
22376 <summary>Width of the final baked image and scratchpad</summary>
22377 </member>
22378 <member name="P:OpenMetaverse.Imaging.Baker.BakeHeight">
22379 <summary>Height of the final baked image and scratchpad</summary>
22380 </member>
22381 <member name="P:OpenMetaverse.Imaging.Baker.BakeType">
22382 <summary>Bake type</summary>
22383 </member>
22384 <member name="P:OpenMetaverse.Imaging.Baker.IsSkin">
22385 <summary>Is this one of the 3 skin bakes</summary>
22386 </member>
22387 <member name="M:OpenMetaverse.Imaging.Baker.AddTexture(OpenMetaverse.AppearanceManager.TextureData)">
21056 <summary> 22388 <summary>
21057 InventoryLSL Class, represents a Linden Scripting Language object 22389 Adds layer for baking
21058 </summary> 22390 </summary>
22391 <param name="tdata">TexturaData struct that contains texture and its params</param>
21059 </member> 22392 </member>
21060 <member name="M:OpenMetaverse.InventoryLSL.#ctor(OpenMetaverse.UUID)"> 22393 <member name="M:OpenMetaverse.Imaging.Baker.BakeTypeFor(OpenMetaverse.AvatarTextureIndex)">
21061 <summary> 22394 <summary>
21062 Construct an InventoryLSL object 22395 Converts avatar texture index (face) to Bake type
21063 </summary> 22396 </summary>
21064 <param name="itemID">A <seealso cref="T:OpenMetaverse.UUID"/> which becomes the 22397 <param name="index">Face number (AvatarTextureIndex)</param>
21065 <seealso cref="T:OpenMetaverse.InventoryItem"/> objects AssetUUID</param> 22398 <returns>BakeType, layer to which this texture belongs to</returns>
21066 </member> 22399 </member>
21067 <member name="M:OpenMetaverse.InventoryLSL.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)"> 22400 <member name="M:OpenMetaverse.Imaging.Baker.SanitizeLayers(OpenMetaverse.Imaging.ManagedImage,OpenMetaverse.Imaging.ManagedImage)">
21068 <summary> 22401 <summary>
21069 Construct an InventoryLSL object from a serialization stream 22402 Make sure images exist, resize source if needed to match the destination
21070 </summary> 22403 </summary>
22404 <param name="dest">Destination image</param>
22405 <param name="src">Source image</param>
22406 <returns>Sanitization was succefull</returns>
21071 </member> 22407 </member>
21072 <member name="T:OpenMetaverse.InventorySnapshot"> 22408 <member name="M:OpenMetaverse.Imaging.Baker.InitBakedLayerColor(OpenMetaverse.Color4)">
21073 <summary> 22409 <summary>
21074 InventorySnapshot Class, an image taken with the viewer 22410 Fills a baked layer as a solid *appearing* color. The colors are
22411 subtly dithered on a 16x16 grid to prevent the JPEG2000 stage from
22412 compressing it too far since it seems to cause upload failures if
22413 the image is a pure solid color
21075 </summary> 22414 </summary>
22415 <param name="color">Color of the base of this layer</param>
21076 </member> 22416 </member>
21077 <member name="M:OpenMetaverse.InventorySnapshot.#ctor(OpenMetaverse.UUID)"> 22417 <member name="M:OpenMetaverse.Imaging.Baker.InitBakedLayerColor(System.Single,System.Single,System.Single)">
21078 <summary> 22418 <summary>
21079 Construct an InventorySnapshot object 22419 Fills a baked layer as a solid *appearing* color. The colors are
22420 subtly dithered on a 16x16 grid to prevent the JPEG2000 stage from
22421 compressing it too far since it seems to cause upload failures if
22422 the image is a pure solid color
21080 </summary> 22423 </summary>
21081 <param name="itemID">A <seealso cref="T:OpenMetaverse.UUID"/> which becomes the 22424 <param name="r">Red value</param>
21082 <seealso cref="T:OpenMetaverse.InventoryItem"/> objects AssetUUID</param> 22425 <param name="g">Green value</param>
22426 <param name="b">Blue value</param>
21083 </member> 22427 </member>
21084 <member name="M:OpenMetaverse.InventorySnapshot.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)"> 22428 <member name="M:OpenMetaverse.Imaging.ManagedImage.#ctor(System.Int32,System.Int32,OpenMetaverse.Imaging.ManagedImage.ImageChannels)">
21085 <summary> 22429 <summary>
21086 Construct an InventorySnapshot object from a serialization stream 22430 Create a new blank image
21087 </summary> 22431 </summary>
22432 <param name="width">width</param>
22433 <param name="height">height</param>
22434 <param name="channels">channel flags</param>
21088 </member> 22435 </member>
21089 <member name="T:OpenMetaverse.InventoryAttachment"> 22436 <member name="M:OpenMetaverse.Imaging.ManagedImage.#ctor(System.Drawing.Bitmap)">
21090 <summary> 22437 <summary>
21091 InventoryAttachment Class, contains details on an attachable object
21092 </summary> 22438 </summary>
22439 <param name="bitmap">
22440 </param>
21093 </member> 22441 </member>
21094 <member name="M:OpenMetaverse.InventoryAttachment.#ctor(OpenMetaverse.UUID)"> 22442 <member name="F:OpenMetaverse.Imaging.ManagedImage.Width">
21095 <summary> 22443 <summary>
21096 Construct an InventoryAttachment object 22444 Image width
21097 </summary> 22445 </summary>
21098 <param name="itemID">A <seealso cref="T:OpenMetaverse.UUID"/> which becomes the
21099 <seealso cref="T:OpenMetaverse.InventoryItem"/> objects AssetUUID</param>
21100 </member> 22446 </member>
21101 <member name="M:OpenMetaverse.InventoryAttachment.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)"> 22447 <member name="F:OpenMetaverse.Imaging.ManagedImage.Height">
21102 <summary> 22448 <summary>
21103 Construct an InventoryAttachment object from a serialization stream 22449 Image height
21104 </summary> 22450 </summary>
21105 </member> 22451 </member>
21106 <member name="P:OpenMetaverse.InventoryAttachment.AttachmentPoint"> 22452 <member name="F:OpenMetaverse.Imaging.ManagedImage.Channels">
21107 <summary> 22453 <summary>
21108 Get the last AttachmentPoint this object was attached to 22454 Image channel flags
21109 </summary> 22455 </summary>
21110 </member> 22456 </member>
21111 <member name="T:OpenMetaverse.InventoryWearable"> 22457 <member name="F:OpenMetaverse.Imaging.ManagedImage.Red">
21112 <summary> 22458 <summary>
21113 InventoryWearable Class, details on a clothing item or body part 22459 Red channel data
21114 </summary> 22460 </summary>
21115 </member> 22461 </member>
21116 <member name="M:OpenMetaverse.InventoryWearable.#ctor(OpenMetaverse.UUID)"> 22462 <member name="F:OpenMetaverse.Imaging.ManagedImage.Green">
21117 <summary> 22463 <summary>
21118 Construct an InventoryWearable object 22464 Green channel data
21119 </summary> 22465 </summary>
21120 <param name="itemID">A <seealso cref="T:OpenMetaverse.UUID"/> which becomes the
21121 <seealso cref="T:OpenMetaverse.InventoryItem"/> objects AssetUUID</param>
21122 </member> 22466 </member>
21123 <member name="M:OpenMetaverse.InventoryWearable.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)"> 22467 <member name="F:OpenMetaverse.Imaging.ManagedImage.Blue">
21124 <summary> 22468 <summary>
21125 Construct an InventoryWearable object from a serialization stream 22469 Blue channel data
21126 </summary> 22470 </summary>
21127 </member> 22471 </member>
21128 <member name="P:OpenMetaverse.InventoryWearable.WearableType"> 22472 <member name="F:OpenMetaverse.Imaging.ManagedImage.Alpha">
21129 <summary> 22473 <summary>
21130 The <seealso cref="T:OpenMetaverse.WearableType"/>, Skin, Shape, Skirt, Etc 22474 Alpha channel data
21131 </summary> 22475 </summary>
21132 </member> 22476 </member>
21133 <member name="T:OpenMetaverse.InventoryAnimation"> 22477 <member name="F:OpenMetaverse.Imaging.ManagedImage.Bump">
21134 <summary> 22478 <summary>
21135 InventoryAnimation Class, A bvh encoded object which animates an avatar 22479 Bump channel data
21136 </summary> 22480 </summary>
21137 </member> 22481 </member>
21138 <member name="M:OpenMetaverse.InventoryAnimation.#ctor(OpenMetaverse.UUID)"> 22482 <member name="M:OpenMetaverse.Imaging.ManagedImage.ConvertChannels(OpenMetaverse.Imaging.ManagedImage.ImageChannels)">
21139 <summary> 22483 <summary>
21140 Construct an InventoryAnimation object 22484 Convert the channels in the image. Channels are created or destroyed as required.
21141 </summary> 22485 </summary>
21142 <param name="itemID">A <seealso cref="T:OpenMetaverse.UUID"/> which becomes the 22486 <param name="channels">new channel flags</param>
21143 <seealso cref="T:OpenMetaverse.InventoryItem"/> objects AssetUUID</param>
21144 </member> 22487 </member>
21145 <member name="M:OpenMetaverse.InventoryAnimation.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)"> 22488 <member name="M:OpenMetaverse.Imaging.ManagedImage.ResizeNearestNeighbor(System.Int32,System.Int32)">
21146 <summary> 22489 <summary>
21147 Construct an InventoryAnimation object from a serialization stream 22490 Resize or stretch the image using nearest neighbor (ugly) resampling
21148 </summary> 22491 </summary>
22492 <param name="width">new width</param>
22493 <param name="height">new height</param>
21149 </member> 22494 </member>
21150 <member name="T:OpenMetaverse.InventoryGesture"> 22495 <member name="M:OpenMetaverse.Imaging.ManagedImage.ExportRaw">
21151 <summary> 22496 <summary>
21152 InventoryGesture Class, details on a series of animations, sounds, and actions 22497 Create a byte array containing 32-bit RGBA data with a bottom-left
22498 origin, suitable for feeding directly into OpenGL
21153 </summary> 22499 </summary>
22500 <returns>A byte array containing raw texture data</returns>
21154 </member> 22501 </member>
21155 <member name="M:OpenMetaverse.InventoryGesture.#ctor(OpenMetaverse.UUID)"> 22502 <member name="T:OpenMetaverse.Imaging.OpenJPEG">
21156 <summary> 22503 <summary>
21157 Construct an InventoryGesture object 22504 A Wrapper around openjpeg to encode and decode images to and from byte arrays
21158 </summary> 22505 </summary>
21159 <param name="itemID">A <seealso cref="T:OpenMetaverse.UUID"/> which becomes the
21160 <seealso cref="T:OpenMetaverse.InventoryItem"/> objects AssetUUID</param>
21161 </member> 22506 </member>
21162 <member name="M:OpenMetaverse.InventoryGesture.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)"> 22507 <member name="T:OpenMetaverse.Imaging.OpenJPEG.J2KLayerInfo">
21163 <summary> 22508 <summary>
21164 Construct an InventoryGesture object from a serialization stream 22509 Defines the beginning and ending file positions of a layer in an
22510 LRCP-progression JPEG2000 file
21165 </summary> 22511 </summary>
21166 </member> 22512 </member>
21167 <member name="T:OpenMetaverse.InventoryFolder"> 22513 <member name="T:OpenMetaverse.Imaging.OpenJPEG.MarshalledImage">
21168 <summary> 22514 <summary>
21169 A folder contains <seealso cref="T:OpenMetaverse.InventoryItem"/>s and has certain attributes specific 22515 This structure is used to marshal both encoded and decoded images.
21170 to itself 22516 MUST MATCH THE STRUCT IN dotnet.h!
21171 </summary> 22517 </summary>
21172 </member> 22518 </member>
21173 <member name="F:OpenMetaverse.InventoryFolder.PreferredType"> 22519 <member name="T:OpenMetaverse.Imaging.OpenJPEG.MarshalledPacket">
21174 <summary>The Preferred <seealso cref="T:OpenMetaverse.AssetType"/> for a folder.</summary> 22520 <summary>
22521 Information about a single packet in a JPEG2000 stream
22522 </summary>
21175 </member> 22523 </member>
21176 <member name="F:OpenMetaverse.InventoryFolder.Version"> 22524 <member name="F:OpenMetaverse.Imaging.OpenJPEG.MarshalledPacket.start_pos">
21177 <summary>The Version of this folder</summary> 22525 <summary>Packet start position</summary>
21178 </member> 22526 </member>
21179 <member name="F:OpenMetaverse.InventoryFolder.DescendentCount"> 22527 <member name="F:OpenMetaverse.Imaging.OpenJPEG.MarshalledPacket.end_ph_pos">
21180 <summary>Number of child items this folder contains.</summary> 22528 <summary>Packet header end position</summary>
21181 </member> 22529 </member>
21182 <member name="M:OpenMetaverse.InventoryFolder.#ctor(OpenMetaverse.UUID)"> 22530 <member name="F:OpenMetaverse.Imaging.OpenJPEG.MarshalledPacket.end_pos">
22531 <summary>Packet end position</summary>
22532 </member>
22533 <member name="F:OpenMetaverse.Imaging.OpenJPEG.TGA_HEADER_SIZE">
22534 <summary>TGA Header size</summary>
22535 </member>
22536 <member name="F:OpenMetaverse.Imaging.OpenJPEG.OpenJPEGLock">
22537 <summary>OpenJPEG is not threadsafe, so this object is used to lock
22538 during calls into unmanaged code</summary>
22539 </member>
22540 <member name="M:OpenMetaverse.Imaging.OpenJPEG.Encode(OpenMetaverse.Imaging.ManagedImage,System.Boolean)">
21183 <summary> 22541 <summary>
21184 Constructor 22542 Encode a <seealso cref="T:OpenMetaverse.Imaging.ManagedImage" /> object into a byte array
21185 </summary> 22543 </summary>
21186 <param name="itemID">UUID of the folder</param> 22544 <param name="image">The <seealso cref="T:OpenMetaverse.Imaging.ManagedImage" /> object to encode</param>
22545 <param name="lossless">true to enable lossless conversion, only useful for small images ie: sculptmaps</param>
22546 <returns>A byte array containing the encoded Image object</returns>
21187 </member> 22547 </member>
21188 <member name="M:OpenMetaverse.InventoryFolder.ToString"> 22548 <member name="M:OpenMetaverse.Imaging.OpenJPEG.Encode(OpenMetaverse.Imaging.ManagedImage)">
21189 <summary> 22549 <summary>
21190 22550 Encode a <seealso cref="T:OpenMetaverse.Imaging.ManagedImage" /> object into a byte array
21191 </summary> 22551 </summary>
21192 <returns></returns> 22552 <param name="image">The <seealso cref="T:OpenMetaverse.Imaging.ManagedImage" /> object to encode</param>
22553 <returns>a byte array of the encoded image</returns>
21193 </member> 22554 </member>
21194 <member name="M:OpenMetaverse.InventoryFolder.GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)"> 22555 <member name="M:OpenMetaverse.Imaging.OpenJPEG.DecodeToImage(System.Byte[],OpenMetaverse.Imaging.ManagedImage@,System.Drawing.Image@)">
21195 <summary> 22556 <summary>
21196 Get Serilization data for this InventoryFolder object 22557 Decode JPEG2000 data to an <seealso cref="T:System.Drawing.Image" /> and
21197 </summary> 22558 <seealso cref="T:OpenMetaverse.Imaging.ManagedImage" /></summary>
22559 <param name="encoded">JPEG2000 encoded data</param>
22560 <param name="managedImage">ManagedImage object to decode to</param>
22561 <param name="image">Image object to decode to</param>
22562 <returns>True if the decode succeeds, otherwise false</returns>
21198 </member> 22563 </member>
21199 <member name="M:OpenMetaverse.InventoryFolder.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)"> 22564 <member name="M:OpenMetaverse.Imaging.OpenJPEG.DecodeToImage(System.Byte[],OpenMetaverse.Imaging.ManagedImage@)">
21200 <summary> 22565 <summary>
21201 Construct an InventoryFolder object from a serialization stream
21202 </summary> 22566 </summary>
22567 <param name="encoded">
22568 </param>
22569 <param name="managedImage">
22570 </param>
22571 <returns>
22572 </returns>
21203 </member> 22573 </member>
21204 <member name="M:OpenMetaverse.InventoryFolder.GetHashCode"> 22574 <member name="M:OpenMetaverse.Imaging.OpenJPEG.DecodeLayerBoundaries(System.Byte[],OpenMetaverse.Imaging.OpenJPEG.J2KLayerInfo[]@,System.Int32@)">
21205 <summary> 22575 <summary>
21206
21207 </summary> 22576 </summary>
21208 <returns></returns> 22577 <param name="encoded">
22578 </param>
22579 <param name="layerInfo">
22580 </param>
22581 <param name="components">
22582 </param>
22583 <returns>
22584 </returns>
21209 </member> 22585 </member>
21210 <member name="M:OpenMetaverse.InventoryFolder.Equals(System.Object)"> 22586 <member name="M:OpenMetaverse.Imaging.OpenJPEG.EncodeFromImage(System.Drawing.Bitmap,System.Boolean)">
21211 <summary> 22587 <summary>
21212 22588 Encode a <seealso cref="T:System.Drawing.Bitmap" /> object into a byte array
21213 </summary> 22589 </summary>
21214 <param name="o"></param> 22590 <param name="bitmap">The source <seealso cref="T:System.Drawing.Bitmap" /> object to encode</param>
21215 <returns></returns> 22591 <param name="lossless">true to enable lossless decoding</param>
22592 <returns>A byte array containing the source Bitmap object</returns>
21216 </member> 22593 </member>
21217 <member name="M:OpenMetaverse.InventoryFolder.Equals(OpenMetaverse.InventoryBase)"> 22594 <member name="T:OpenMetaverse.Imaging.LoadTGAClass">
21218 <summary> 22595 <summary>
21219 22596 Capability to load TGAs to Bitmap
21220 </summary> 22597 </summary>
21221 <param name="o"></param>
21222 <returns></returns>
21223 </member> 22598 </member>
21224 <member name="M:OpenMetaverse.InventoryFolder.Equals(OpenMetaverse.InventoryFolder)"> 22599 <member name="T:OpenMetaverse.Interfaces.IMessage">
21225 <summary> 22600 <summary>
21226 22601 Interface requirements for Messaging system
21227 </summary> 22602 </summary>
21228 <param name="o"></param>
21229 <returns></returns>
21230 </member> 22603 </member>
21231 <member name="T:OpenMetaverse.InventoryManager"> 22604 <member name="T:OpenMetaverse.Rendering.IRendering">
21232 <summary> 22605 <summary>
21233 Tools for dealing with agents inventory 22606 Abstract base for rendering plugins
21234 </summary> 22607 </summary>
21235 </member> 22608 </member>
21236 <member name="F:OpenMetaverse.InventoryManager.MAGIC_ID"> 22609 <member name="M:OpenMetaverse.Rendering.IRendering.GenerateSimpleMesh(OpenMetaverse.Primitive,OpenMetaverse.Rendering.DetailLevel)">
21237 <summary>Used for converting shadow_id to asset_id</summary> 22610 <summary>
21238 </member> 22611 Generates a basic mesh structure from a primitive
21239 <member name="F:OpenMetaverse.InventoryManager.m_ItemReceived"> 22612 </summary>
21240 <summary>The event subscribers, null of no subscribers</summary> 22613 <param name="prim">Primitive to generate the mesh from</param>
21241 </member> 22614 <param name="lod">Level of detail to generate the mesh at</param>
21242 <member name="M:OpenMetaverse.InventoryManager.OnItemReceived(OpenMetaverse.ItemReceivedEventArgs)"> 22615 <returns>The generated mesh</returns>
21243 <summary>Raises the ItemReceived Event</summary>
21244 <param name="e">A ItemReceivedEventArgs object containing
21245 the data sent from the simulator</param>
21246 </member>
21247 <member name="F:OpenMetaverse.InventoryManager.m_ItemReceivedLock">
21248 <summary>Thread sync lock object</summary>
21249 </member>
21250 <member name="F:OpenMetaverse.InventoryManager.m_FolderUpdated">
21251 <summary>The event subscribers, null of no subscribers</summary>
21252 </member>
21253 <member name="M:OpenMetaverse.InventoryManager.OnFolderUpdated(OpenMetaverse.FolderUpdatedEventArgs)">
21254 <summary>Raises the FolderUpdated Event</summary>
21255 <param name="e">A FolderUpdatedEventArgs object containing
21256 the data sent from the simulator</param>
21257 </member>
21258 <member name="F:OpenMetaverse.InventoryManager.m_FolderUpdatedLock">
21259 <summary>Thread sync lock object</summary>
21260 </member>
21261 <member name="F:OpenMetaverse.InventoryManager.m_InventoryObjectOffered">
21262 <summary>The event subscribers, null of no subscribers</summary>
21263 </member>
21264 <member name="M:OpenMetaverse.InventoryManager.OnInventoryObjectOffered(OpenMetaverse.InventoryObjectOfferedEventArgs)">
21265 <summary>Raises the InventoryObjectOffered Event</summary>
21266 <param name="e">A InventoryObjectOfferedEventArgs object containing
21267 the data sent from the simulator</param>
21268 </member>
21269 <member name="F:OpenMetaverse.InventoryManager.m_InventoryObjectOfferedLock">
21270 <summary>Thread sync lock object</summary>
21271 </member> 22616 </member>
21272 <member name="F:OpenMetaverse.InventoryManager.m_TaskItemReceived"> 22617 <member name="M:OpenMetaverse.Rendering.IRendering.GenerateSimpleSculptMesh(OpenMetaverse.Primitive,System.Drawing.Bitmap,OpenMetaverse.Rendering.DetailLevel)">
21273 <summary>The event subscribers, null of no subscribers</summary> 22618 <summary>
22619 Generates a basic mesh structure from a sculpted primitive and
22620 texture
22621 </summary>
22622 <param name="prim">Sculpted primitive to generate the mesh from</param>
22623 <param name="sculptTexture">Sculpt texture</param>
22624 <param name="lod">Level of detail to generate the mesh at</param>
22625 <returns>The generated mesh</returns>
21274 </member> 22626 </member>
21275 <member name="M:OpenMetaverse.InventoryManager.OnTaskItemReceived(OpenMetaverse.TaskItemReceivedEventArgs)"> 22627 <member name="M:OpenMetaverse.Rendering.IRendering.GenerateFacetedMesh(OpenMetaverse.Primitive,OpenMetaverse.Rendering.DetailLevel)">
21276 <summary>Raises the TaskItemReceived Event</summary> 22628 <summary>
21277 <param name="e">A TaskItemReceivedEventArgs object containing 22629 Generates a series of faces, each face containing a mesh and
21278 the data sent from the simulator</param> 22630 metadata
22631 </summary>
22632 <param name="prim">Primitive to generate the mesh from</param>
22633 <param name="lod">Level of detail to generate the mesh at</param>
22634 <returns>The generated mesh</returns>
21279 </member> 22635 </member>
21280 <member name="F:OpenMetaverse.InventoryManager.m_TaskItemReceivedLock"> 22636 <member name="M:OpenMetaverse.Rendering.IRendering.GenerateFacetedSculptMesh(OpenMetaverse.Primitive,System.Drawing.Bitmap,OpenMetaverse.Rendering.DetailLevel)">
21281 <summary>Thread sync lock object</summary> 22637 <summary>
22638 Generates a series of faces for a sculpted prim, each face
22639 containing a mesh and metadata
22640 </summary>
22641 <param name="prim">Sculpted primitive to generate the mesh from</param>
22642 <param name="sculptTexture">Sculpt texture</param>
22643 <param name="lod">Level of detail to generate the mesh at</param>
22644 <returns>The generated mesh</returns>
21282 </member> 22645 </member>
21283 <member name="F:OpenMetaverse.InventoryManager.m_FindObjectByPathReply"> 22646 <member name="M:OpenMetaverse.Rendering.IRendering.TransformTexCoords(System.Collections.Generic.List{OpenMetaverse.Rendering.Vertex},OpenMetaverse.Vector3,OpenMetaverse.Primitive.TextureEntryFace,OpenMetaverse.Vector3)">
21284 <summary>The event subscribers, null of no subscribers</summary> 22647 <summary>
22648 Apply texture coordinate modifications from a
22649 <seealso cref="!:TextureEntryFace" /> to a list of vertices
22650 </summary>
22651 <param name="vertices">Vertex list to modify texture coordinates for</param>
22652 <param name="center">Center-point of the face</param>
22653 <param name="teFace">Face texture parameters</param>
22654 <param name="primScale">Scale of the prim</param>
21285 </member> 22655 </member>
21286 <member name="M:OpenMetaverse.InventoryManager.OnFindObjectByPathReply(OpenMetaverse.FindObjectByPathReplyEventArgs)"> 22656 <member name="T:OpenMetaverse.Messages.Linden.TeleportFinishMessage">
21287 <summary>Raises the FindObjectByPath Event</summary> 22657 <summary>
21288 <param name="e">A FindObjectByPathEventArgs object containing 22658 Sent to the client to indicate a teleport request has completed
21289 the data sent from the simulator</param> 22659 </summary>
21290 </member> 22660 </member>
21291 <member name="F:OpenMetaverse.InventoryManager.m_FindObjectByPathReplyLock"> 22661 <member name="F:OpenMetaverse.Messages.Linden.TeleportFinishMessage.AgentID">
21292 <summary>Thread sync lock object</summary> 22662 <summary>The <see cref="T:OpenMetaverse.UUID" /> of the agent</summary>
21293 </member> 22663 </member>
21294 <member name="F:OpenMetaverse.InventoryManager.m_TaskInventoryReply"> 22664 <member name="F:OpenMetaverse.Messages.Linden.TeleportFinishMessage.LocationID">
21295 <summary>The event subscribers, null of no subscribers</summary> 22665 <summary>
22666 </summary>
21296 </member> 22667 </member>
21297 <member name="M:OpenMetaverse.InventoryManager.OnTaskInventoryReply(OpenMetaverse.TaskInventoryReplyEventArgs)"> 22668 <member name="F:OpenMetaverse.Messages.Linden.TeleportFinishMessage.RegionHandle">
21298 <summary>Raises the TaskInventoryReply Event</summary> 22669 <summary>The simulators handle the agent teleported to</summary>
21299 <param name="e">A TaskInventoryReplyEventArgs object containing
21300 the data sent from the simulator</param>
21301 </member> 22670 </member>
21302 <member name="F:OpenMetaverse.InventoryManager.m_TaskInventoryReplyLock"> 22671 <member name="F:OpenMetaverse.Messages.Linden.TeleportFinishMessage.SeedCapability">
21303 <summary>Thread sync lock object</summary> 22672 <summary>A Uri which contains a list of Capabilities the simulator supports</summary>
21304 </member> 22673 </member>
21305 <member name="F:OpenMetaverse.InventoryManager.m_SaveAssetToInventory"> 22674 <member name="F:OpenMetaverse.Messages.Linden.TeleportFinishMessage.SimAccess">
21306 <summary>The event subscribers, null of no subscribers</summary> 22675 <summary>Indicates the level of access required
22676 to access the simulator, or the content rating, or the simulators
22677 map status</summary>
21307 </member> 22678 </member>
21308 <member name="M:OpenMetaverse.InventoryManager.OnSaveAssetToInventory(OpenMetaverse.SaveAssetToInventoryEventArgs)"> 22679 <member name="F:OpenMetaverse.Messages.Linden.TeleportFinishMessage.IP">
21309 <summary>Raises the SaveAssetToInventory Event</summary> 22680 <summary>The IP Address of the simulator</summary>
21310 <param name="e">A SaveAssetToInventoryEventArgs object containing
21311 the data sent from the simulator</param>
21312 </member> 22681 </member>
21313 <member name="F:OpenMetaverse.InventoryManager.m_SaveAssetToInventoryLock"> 22682 <member name="F:OpenMetaverse.Messages.Linden.TeleportFinishMessage.Port">
21314 <summary>Thread sync lock object</summary> 22683 <summary>The UDP Port the simulator will listen for UDP traffic on</summary>
21315 </member> 22684 </member>
21316 <member name="F:OpenMetaverse.InventoryManager.m_ScriptRunningReply"> 22685 <member name="F:OpenMetaverse.Messages.Linden.TeleportFinishMessage.Flags">
21317 <summary>The event subscribers, null of no subscribers</summary> 22686 <summary>Status flags indicating the state of the Agent upon arrival, Flying, etc.</summary>
21318 </member> 22687 </member>
21319 <member name="M:OpenMetaverse.InventoryManager.OnScriptRunningReply(OpenMetaverse.ScriptRunningReplyEventArgs)"> 22688 <member name="M:OpenMetaverse.Messages.Linden.TeleportFinishMessage.Serialize">
21320 <summary>Raises the ScriptRunningReply Event</summary> 22689 <summary>
21321 <param name="e">A ScriptRunningReplyEventArgs object containing 22690 Serialize the object
21322 the data sent from the simulator</param> 22691 </summary>
22692 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the objects data</returns>
21323 </member> 22693 </member>
21324 <member name="F:OpenMetaverse.InventoryManager.m_ScriptRunningReplyLock"> 22694 <member name="M:OpenMetaverse.Messages.Linden.TeleportFinishMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
21325 <summary>Thread sync lock object</summary> 22695 <summary>
22696 Deserialize the message
22697 </summary>
22698 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the data</param>
21326 </member> 22699 </member>
21327 <member name="F:OpenMetaverse.InventoryManager._NewFolderNames"> 22700 <member name="T:OpenMetaverse.Messages.Linden.EstablishAgentCommunicationMessage">
21328 <summary>Partial mapping of AssetTypes to folder names</summary> 22701 <summary>
22702 Sent to the viewer when a neighboring simulator is requesting the agent make a connection to it.
22703 </summary>
21329 </member> 22704 </member>
21330 <member name="M:OpenMetaverse.InventoryManager.#ctor(OpenMetaverse.GridClient)"> 22705 <member name="M:OpenMetaverse.Messages.Linden.EstablishAgentCommunicationMessage.Serialize">
21331 <summary> 22706 <summary>
21332 Default constructor 22707 Serialize the object
21333 </summary> 22708 </summary>
21334 <param name="client">Reference to the GridClient object</param> 22709 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the objects data</returns>
21335 </member> 22710 </member>
21336 <member name="M:OpenMetaverse.InventoryManager.FetchItem(OpenMetaverse.UUID,OpenMetaverse.UUID,System.Int32)"> 22711 <member name="M:OpenMetaverse.Messages.Linden.EstablishAgentCommunicationMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
21337 <summary> 22712 <summary>
21338 Fetch an inventory item from the dataserver 22713 Deserialize the message
21339 </summary> 22714 </summary>
21340 <param name="itemID">The items <seealso cref="T:OpenMetaverse.UUID"/></param> 22715 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the data</param>
21341 <param name="ownerID">The item Owners <seealso cref="T:OpenMetaverse.UUID"/></param>
21342 <param name="timeoutMS">a integer representing the number of milliseconds to wait for results</param>
21343 <returns>An <seealso cref="T:OpenMetaverse.InventoryItem"/> object on success, or null if no item was found</returns>
21344 <remarks>Items will also be sent to the <seealso cref="M:OpenMetaverse.InventoryManager.OnItemReceived(OpenMetaverse.ItemReceivedEventArgs)"/> event</remarks>
21345 </member> 22716 </member>
21346 <member name="M:OpenMetaverse.InventoryManager.RequestFetchInventory(OpenMetaverse.UUID,OpenMetaverse.UUID)"> 22717 <member name="M:OpenMetaverse.Messages.Linden.CrossedRegionMessage.Serialize">
21347 <summary> 22718 <summary>
21348 Request A single inventory item 22719 Serialize the object
21349 </summary> 22720 </summary>
21350 <param name="itemID">The items <seealso cref="T:OpenMetaverse.UUID"/></param> 22721 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the objects data</returns>
21351 <param name="ownerID">The item Owners <seealso cref="T:OpenMetaverse.UUID"/></param>
21352 <seealso cref="M:OpenMetaverse.InventoryManager.OnItemReceived(OpenMetaverse.ItemReceivedEventArgs)"/>
21353 </member> 22722 </member>
21354 <member name="M:OpenMetaverse.InventoryManager.RequestFetchInventory(System.Collections.Generic.List{OpenMetaverse.UUID},System.Collections.Generic.List{OpenMetaverse.UUID})"> 22723 <member name="M:OpenMetaverse.Messages.Linden.CrossedRegionMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
21355 <summary> 22724 <summary>
21356 Request inventory items 22725 Deserialize the message
21357 </summary> 22726 </summary>
21358 <param name="itemIDs">Inventory items to request</param> 22727 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the data</param>
21359 <param name="ownerIDs">Owners of the inventory items</param>
21360 <seealso cref="M:OpenMetaverse.InventoryManager.OnItemReceived(OpenMetaverse.ItemReceivedEventArgs)"/>
21361 </member> 22728 </member>
21362 <member name="M:OpenMetaverse.InventoryManager.FolderContents(OpenMetaverse.UUID,OpenMetaverse.UUID,System.Boolean,System.Boolean,OpenMetaverse.InventorySortOrder,System.Int32)"> 22729 <member name="M:OpenMetaverse.Messages.Linden.EnableSimulatorMessage.Serialize">
21363 <summary> 22730 <summary>
21364 Get contents of a folder 22731 Serialize the object
21365 </summary> 22732 </summary>
21366 <param name="folder">The <seealso cref="T:OpenMetaverse.UUID"/> of the folder to search</param> 22733 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the objects data</returns>
21367 <param name="owner">The <seealso cref="T:OpenMetaverse.UUID"/> of the folders owner</param>
21368 <param name="folders">true to retrieve folders</param>
21369 <param name="items">true to retrieve items</param>
21370 <param name="order">sort order to return results in</param>
21371 <param name="timeoutMS">a integer representing the number of milliseconds to wait for results</param>
21372 <returns>A list of inventory items matching search criteria within folder</returns>
21373 <seealso cref="M:OpenMetaverse.InventoryManager.RequestFolderContents(OpenMetaverse.UUID,OpenMetaverse.UUID,System.Boolean,System.Boolean,OpenMetaverse.InventorySortOrder)"/>
21374 <remarks>InventoryFolder.DescendentCount will only be accurate if both folders and items are
21375 requested</remarks>
21376 </member> 22734 </member>
21377 <member name="M:OpenMetaverse.InventoryManager.RequestFolderContents(OpenMetaverse.UUID,OpenMetaverse.UUID,System.Boolean,System.Boolean,OpenMetaverse.InventorySortOrder)"> 22735 <member name="M:OpenMetaverse.Messages.Linden.EnableSimulatorMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
21378 <summary> 22736 <summary>
21379 Request the contents of an inventory folder 22737 Deserialize the message
21380 </summary> 22738 </summary>
21381 <param name="folder">The folder to search</param> 22739 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the data</param>
21382 <param name="owner">The folder owners <seealso cref="T:OpenMetaverse.UUID"/></param>
21383 <param name="folders">true to return <seealso cref="!:InventoryManager.InventoryFolder"/>s contained in folder</param>
21384 <param name="items">true to return <seealso cref="!:InventoryManager.InventoryItem"/>s containd in folder</param>
21385 <param name="order">the sort order to return items in</param>
21386 <seealso cref="M:OpenMetaverse.InventoryManager.FolderContents(OpenMetaverse.UUID,OpenMetaverse.UUID,System.Boolean,System.Boolean,OpenMetaverse.InventorySortOrder,System.Int32)"/>
21387 </member> 22740 </member>
21388 <member name="M:OpenMetaverse.InventoryManager.FindFolderForType(OpenMetaverse.AssetType)"> 22741 <member name="T:OpenMetaverse.Messages.Linden.TeleportFailedMessage">
21389 <summary> 22742 <summary>
21390 Returns the UUID of the folder (category) that defaults to 22743 A message sent to the client which indicates a teleport request has failed
21391 containing 'type'. The folder is not necessarily only for that 22744 and contains some information on why it failed
21392 type
21393 </summary> 22745 </summary>
21394 <remarks>This will return the root folder if one does not exist</remarks>
21395 <param name="type"></param>
21396 <returns>The UUID of the desired folder if found, the UUID of the RootFolder
21397 if not found, or UUID.Zero on failure</returns>
21398 </member> 22746 </member>
21399 <member name="M:OpenMetaverse.InventoryManager.FindObjectByPath(OpenMetaverse.UUID,OpenMetaverse.UUID,System.String,System.Int32)"> 22747 <member name="F:OpenMetaverse.Messages.Linden.TeleportFailedMessage.ExtraParams">
21400 <summary> 22748 <summary>
21401 Find an object in inventory using a specific path to search
21402 </summary> 22749 </summary>
21403 <param name="baseFolder">The folder to begin the search in</param>
21404 <param name="inventoryOwner">The object owners <seealso cref="T:OpenMetaverse.UUID"/></param>
21405 <param name="path">A string path to search</param>
21406 <param name="timeoutMS">milliseconds to wait for a reply</param>
21407 <returns>Found items <seealso cref="T:OpenMetaverse.UUID"/> or <seealso cref="F:OpenMetaverse.UUID.Zero"/> if
21408 timeout occurs or item is not found</returns>
21409 </member> 22750 </member>
21410 <member name="M:OpenMetaverse.InventoryManager.RequestFindObjectByPath(OpenMetaverse.UUID,OpenMetaverse.UUID,System.String)"> 22751 <member name="F:OpenMetaverse.Messages.Linden.TeleportFailedMessage.MessageKey">
22752 <summary>A string key of the reason the teleport failed e.g. CouldntTPCloser
22753 Which could be used to look up a value in a dictionary or enum</summary>
22754 </member>
22755 <member name="F:OpenMetaverse.Messages.Linden.TeleportFailedMessage.AgentID">
22756 <summary>The <see cref="T:OpenMetaverse.UUID" /> of the Agent</summary>
22757 </member>
22758 <member name="F:OpenMetaverse.Messages.Linden.TeleportFailedMessage.Reason">
22759 <summary>A string human readable message containing the reason </summary>
22760 <remarks>An example: Could not teleport closer to destination</remarks>
22761 </member>
22762 <member name="M:OpenMetaverse.Messages.Linden.TeleportFailedMessage.Serialize">
21411 <summary> 22763 <summary>
21412 Find inventory items by path 22764 Serialize the object
21413 </summary> 22765 </summary>
21414 <param name="baseFolder">The folder to begin the search in</param> 22766 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the objects data</returns>
21415 <param name="inventoryOwner">The object owners <seealso cref="T:OpenMetaverse.UUID"/></param>
21416 <param name="path">A string path to search, folders/objects separated by a '/'</param>
21417 <remarks>Results are sent to the <seealso cref="!:InventoryManager.OnFindObjectByPath"/> event</remarks>
21418 </member> 22767 </member>
21419 <member name="M:OpenMetaverse.InventoryManager.LocalFind(OpenMetaverse.UUID,System.String[],System.Int32,System.Boolean)"> 22768 <member name="M:OpenMetaverse.Messages.Linden.TeleportFailedMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
21420 <summary> 22769 <summary>
21421 Search inventory Store object for an item or folder 22770 Deserialize the message
21422 </summary> 22771 </summary>
21423 <param name="baseFolder">The folder to begin the search in</param> 22772 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the data</param>
21424 <param name="path">An array which creates a path to search</param>
21425 <param name="level">Number of levels below baseFolder to conduct searches</param>
21426 <param name="firstOnly">if True, will stop searching after first match is found</param>
21427 <returns>A list of inventory items found</returns>
21428 </member> 22773 </member>
21429 <member name="M:OpenMetaverse.InventoryManager.Move(OpenMetaverse.InventoryBase,OpenMetaverse.InventoryFolder)"> 22774 <member name="M:OpenMetaverse.Messages.Linden.LandStatReplyMessage.Serialize">
21430 <summary> 22775 <summary>
21431 Move an inventory item or folder to a new location 22776 Serialize the object
21432 </summary> 22777 </summary>
21433 <param name="item">The <seealso cref="T:InventoryBase"/> item or folder to move</param> 22778 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the objects data</returns>
21434 <param name="newParent">The <seealso cref="T:InventoryFolder"/> to move item or folder to</param>
21435 </member> 22779 </member>
21436 <member name="M:OpenMetaverse.InventoryManager.Move(OpenMetaverse.InventoryBase,OpenMetaverse.InventoryFolder,System.String)"> 22780 <member name="M:OpenMetaverse.Messages.Linden.LandStatReplyMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
21437 <summary> 22781 <summary>
21438 Move an inventory item or folder to a new location and change its name 22782 Deserialize the message
21439 </summary> 22783 </summary>
21440 <param name="item">The <seealso cref="T:InventoryBase"/> item or folder to move</param> 22784 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the data</param>
21441 <param name="newParent">The <seealso cref="T:InventoryFolder"/> to move item or folder to</param>
21442 <param name="newName">The name to change the item or folder to</param>
21443 </member> 22785 </member>
21444 <member name="M:OpenMetaverse.InventoryManager.MoveFolder(OpenMetaverse.UUID,OpenMetaverse.UUID,System.String)"> 22786 <member name="T:OpenMetaverse.Messages.Linden.ParcelObjectOwnersReplyMessage">
21445 <summary> 22787 <summary>
21446 Move and rename a folder 22788 Contains a list of prim owner information for a specific parcel in a simulator
21447 </summary> 22789 </summary>
21448 <param name="folderID">The source folders <seealso cref="T:OpenMetaverse.UUID"/></param> 22790 <remarks>
21449 <param name="newparentID">The destination folders <seealso cref="T:OpenMetaverse.UUID"/></param> 22791 A Simulator will always return at least 1 entry
21450 <param name="newName">The name to change the folder to</param> 22792 If agent does not have proper permission the OwnerID will be UUID.Zero
22793 If agent does not have proper permission OR there are no primitives on parcel
22794 the DataBlocksExtended map will not be sent from the simulator
22795 </remarks>
21451 </member> 22796 </member>
21452 <member name="M:OpenMetaverse.InventoryManager.UpdateFolderProperties(OpenMetaverse.UUID,OpenMetaverse.UUID,System.String,OpenMetaverse.AssetType)"> 22797 <member name="T:OpenMetaverse.Messages.Linden.ParcelObjectOwnersReplyMessage.PrimOwner">
21453 <summary> 22798 <summary>
21454 Update folder properties 22799 Prim ownership information for a specified owner on a single parcel
21455 </summary> 22800 </summary>
21456 <param name="folderID"><seealso cref="T:OpenMetaverse.UUID"/> of the folder to update</param>
21457 <param name="parentID">Sets folder's parent to <seealso cref="T:OpenMetaverse.UUID"/></param>
21458 <param name="name">Folder name</param>
21459 <param name="type">Folder type</param>
21460 </member> 22801 </member>
21461 <member name="M:OpenMetaverse.InventoryManager.MoveFolder(OpenMetaverse.UUID,OpenMetaverse.UUID)"> 22802 <member name="F:OpenMetaverse.Messages.Linden.ParcelObjectOwnersReplyMessage.PrimOwner.OwnerID">
22803 <summary>The <see cref="T:OpenMetaverse.UUID" /> of the prim owner,
22804 UUID.Zero if agent has no permission to view prim owner information</summary>
22805 </member>
22806 <member name="F:OpenMetaverse.Messages.Linden.ParcelObjectOwnersReplyMessage.PrimOwner.Count">
22807 <summary>The total number of prims</summary>
22808 </member>
22809 <member name="F:OpenMetaverse.Messages.Linden.ParcelObjectOwnersReplyMessage.PrimOwner.IsGroupOwned">
22810 <summary>True if the OwnerID is a <see cref="T:OpenMetaverse.Group" /></summary>
22811 </member>
22812 <member name="F:OpenMetaverse.Messages.Linden.ParcelObjectOwnersReplyMessage.PrimOwner.OnlineStatus">
22813 <summary>True if the owner is online
22814 <remarks>This is no longer used by the LL Simulators</remarks></summary>
22815 </member>
22816 <member name="F:OpenMetaverse.Messages.Linden.ParcelObjectOwnersReplyMessage.PrimOwner.TimeStamp">
22817 <summary>The date the most recent prim was rezzed</summary>
22818 </member>
22819 <member name="F:OpenMetaverse.Messages.Linden.ParcelObjectOwnersReplyMessage.PrimOwnersBlock">
22820 <summary>An Array of <see cref="T:OpenMetaverse.Messages.Linden.ParcelObjectOwnersReplyMessage.PrimOwner" /> objects</summary>
22821 </member>
22822 <member name="M:OpenMetaverse.Messages.Linden.ParcelObjectOwnersReplyMessage.Serialize">
21462 <summary> 22823 <summary>
21463 Move a folder 22824 Serialize the object
21464 </summary> 22825 </summary>
21465 <param name="folderID">The source folders <seealso cref="T:OpenMetaverse.UUID"/></param> 22826 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the objects data</returns>
21466 <param name="newParentID">The destination folders <seealso cref="T:OpenMetaverse.UUID"/></param>
21467 </member> 22827 </member>
21468 <member name="M:OpenMetaverse.InventoryManager.MoveFolders(System.Collections.Generic.Dictionary{OpenMetaverse.UUID,OpenMetaverse.UUID})"> 22828 <member name="M:OpenMetaverse.Messages.Linden.ParcelObjectOwnersReplyMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
21469 <summary> 22829 <summary>
21470 Move multiple folders, the keys in the Dictionary parameter, 22830 Deserialize the message
21471 to a new parents, the value of that folder's key.
21472 </summary> 22831 </summary>
21473 <param name="foldersNewParents">A Dictionary containing the 22832 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the data</param>
21474 <seealso cref="T:OpenMetaverse.UUID"/> of the source as the key, and the
21475 <seealso cref="T:OpenMetaverse.UUID"/> of the destination as the value</param>
21476 </member> 22833 </member>
21477 <member name="M:OpenMetaverse.InventoryManager.MoveItem(OpenMetaverse.UUID,OpenMetaverse.UUID)"> 22834 <member name="T:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage">
21478 <summary> 22835 <summary>
21479 Move an inventory item to a new folder 22836 The details of a single parcel in a region, also contains some regionwide globals
21480 </summary> 22837 </summary>
21481 <param name="itemID">The <seealso cref="T:OpenMetaverse.UUID"/> of the source item to move</param>
21482 <param name="folderID">The <seealso cref="T:OpenMetaverse.UUID"/> of the destination folder</param>
21483 </member> 22838 </member>
21484 <member name="M:OpenMetaverse.InventoryManager.MoveItem(OpenMetaverse.UUID,OpenMetaverse.UUID,System.String)"> 22839 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.LocalID">
22840 <summary>Simulator-local ID of this parcel</summary>
22841 </member>
22842 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.AABBMax">
22843 <summary>Maximum corner of the axis-aligned bounding box for this
22844 parcel</summary>
22845 </member>
22846 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.AABBMin">
22847 <summary>Minimum corner of the axis-aligned bounding box for this
22848 parcel</summary>
22849 </member>
22850 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.Area">
22851 <summary>Total parcel land area</summary>
22852 </member>
22853 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.AuctionID">
21485 <summary> 22854 <summary>
21486 Move and rename an inventory item
21487 </summary> 22855 </summary>
21488 <param name="itemID">The <seealso cref="T:OpenMetaverse.UUID"/> of the source item to move</param>
21489 <param name="folderID">The <seealso cref="T:OpenMetaverse.UUID"/> of the destination folder</param>
21490 <param name="newName">The name to change the folder to</param>
21491 </member> 22856 </member>
21492 <member name="M:OpenMetaverse.InventoryManager.MoveItems(System.Collections.Generic.Dictionary{OpenMetaverse.UUID,OpenMetaverse.UUID})"> 22857 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.AuthBuyerID">
22858 <summary>Key of authorized buyer</summary>
22859 </member>
22860 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.Bitmap">
22861 <summary>Bitmap describing land layout in 4x4m squares across the
22862 entire region</summary>
22863 </member>
22864 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.Category">
21493 <summary> 22865 <summary>
21494 Move multiple inventory items to new locations
21495 </summary> 22866 </summary>
21496 <param name="itemsNewParents">A Dictionary containing the
21497 <seealso cref="T:OpenMetaverse.UUID"/> of the source item as the key, and the
21498 <seealso cref="T:OpenMetaverse.UUID"/> of the destination folder as the value</param>
21499 </member> 22867 </member>
21500 <member name="M:OpenMetaverse.InventoryManager.RemoveDescendants(OpenMetaverse.UUID)"> 22868 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.ClaimDate">
22869 <summary>Date land was claimed</summary>
22870 </member>
22871 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.ClaimPrice">
22872 <summary>Appears to always be zero</summary>
22873 </member>
22874 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.Desc">
22875 <summary>Parcel Description</summary>
22876 </member>
22877 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.ParcelFlags">
21501 <summary> 22878 <summary>
21502 Remove descendants of a folder
21503 </summary> 22879 </summary>
21504 <param name="folder">The <seealso cref="T:OpenMetaverse.UUID"/> of the folder</param>
21505 </member> 22880 </member>
21506 <member name="M:OpenMetaverse.InventoryManager.RemoveItem(OpenMetaverse.UUID)"> 22881 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.GroupID">
21507 <summary> 22882 <summary>
21508 Remove a single item from inventory
21509 </summary> 22883 </summary>
21510 <param name="item">The <seealso cref="T:OpenMetaverse.UUID"/> of the inventory item to remove</param>
21511 </member> 22884 </member>
21512 <member name="M:OpenMetaverse.InventoryManager.RemoveFolder(OpenMetaverse.UUID)"> 22885 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.GroupPrims">
22886 <summary>Total number of primitives owned by the parcel group on
22887 this parcel</summary>
22888 </member>
22889 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.IsGroupOwned">
22890 <summary>Whether the land is deeded to a group or not</summary>
22891 </member>
22892 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.LandingType">
21513 <summary> 22893 <summary>
21514 Remove a folder from inventory
21515 </summary> 22894 </summary>
21516 <param name="folder">The <seealso cref="T:OpenMetaverse.UUID"/> of the folder to remove</param>
21517 </member> 22895 </member>
21518 <member name="M:OpenMetaverse.InventoryManager.Remove(System.Collections.Generic.List{OpenMetaverse.UUID},System.Collections.Generic.List{OpenMetaverse.UUID})"> 22896 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.MaxPrims">
22897 <summary>Maximum number of primitives this parcel supports</summary>
22898 </member>
22899 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.MediaID">
22900 <summary>The Asset UUID of the Texture which when applied to a
22901 primitive will display the media</summary>
22902 </member>
22903 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.MediaURL">
22904 <summary>A URL which points to any Quicktime supported media type</summary>
22905 </member>
22906 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.MediaAutoScale">
22907 <summary>A byte, if 0x1 viewer should auto scale media to fit object</summary>
22908 </member>
22909 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.MusicURL">
22910 <summary>URL For Music Stream</summary>
22911 </member>
22912 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.Name">
22913 <summary>Parcel Name</summary>
22914 </member>
22915 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.OtherCleanTime">
22916 <summary>Autoreturn value in minutes for others' objects</summary>
22917 </member>
22918 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.OtherCount">
21519 <summary> 22919 <summary>
21520 Remove multiple items or folders from inventory
21521 </summary> 22920 </summary>
21522 <param name="items">A List containing the <seealso cref="T:OpenMetaverse.UUID"/>s of items to remove</param>
21523 <param name="folders">A List containing the <seealso cref="T:OpenMetaverse.UUID"/>s of the folders to remove</param>
21524 </member> 22921 </member>
21525 <member name="M:OpenMetaverse.InventoryManager.EmptyLostAndFound"> 22922 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.OtherPrims">
22923 <summary>Total number of other primitives on this parcel</summary>
22924 </member>
22925 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.OwnerID">
22926 <summary>UUID of the owner of this parcel</summary>
22927 </member>
22928 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.OwnerPrims">
22929 <summary>Total number of primitives owned by the parcel owner on
22930 this parcel</summary>
22931 </member>
22932 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.ParcelPrimBonus">
21526 <summary> 22933 <summary>
21527 Empty the Lost and Found folder
21528 </summary> 22934 </summary>
21529 </member> 22935 </member>
21530 <member name="M:OpenMetaverse.InventoryManager.EmptyTrash"> 22936 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.PassHours">
22937 <summary>How long is pass valid for</summary>
22938 </member>
22939 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.PassPrice">
22940 <summary>Price for a temporary pass</summary>
22941 </member>
22942 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.PublicCount">
21531 <summary> 22943 <summary>
21532 Empty the Trash folder
21533 </summary> 22944 </summary>
21534 </member> 22945 </member>
21535 <member name="M:OpenMetaverse.InventoryManager.RequestCreateItem(OpenMetaverse.UUID,System.String,System.String,OpenMetaverse.AssetType,OpenMetaverse.UUID,OpenMetaverse.InventoryType,OpenMetaverse.PermissionMask,OpenMetaverse.InventoryManager.ItemCreatedCallback)"> 22946 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.Privacy">
22947 <summary>Disallows people outside the parcel from being able to see in</summary>
22948 </member>
22949 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.RegionDenyAnonymous">
21536 <summary> 22950 <summary>
21537
21538 </summary> 22951 </summary>
21539 <param name="parentFolder"></param>
21540 <param name="name"></param>
21541 <param name="description"></param>
21542 <param name="type"></param>
21543 <param name="assetTransactionID">Proper use is to upload the inventory's asset first, then provide the Asset's TransactionID here.</param>
21544 <param name="invType"></param>
21545 <param name="nextOwnerMask"></param>
21546 <param name="callback"></param>
21547 </member> 22952 </member>
21548 <member name="M:OpenMetaverse.InventoryManager.RequestCreateItem(OpenMetaverse.UUID,System.String,System.String,OpenMetaverse.AssetType,OpenMetaverse.UUID,OpenMetaverse.InventoryType,OpenMetaverse.WearableType,OpenMetaverse.PermissionMask,OpenMetaverse.InventoryManager.ItemCreatedCallback)"> 22953 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.RegionDenyIdentified">
21549 <summary> 22954 <summary>
21550
21551 </summary> 22955 </summary>
21552 <param name="parentFolder"></param>
21553 <param name="name"></param>
21554 <param name="description"></param>
21555 <param name="type"></param>
21556 <param name="assetTransactionID">Proper use is to upload the inventory's asset first, then provide the Asset's TransactionID here.</param>
21557 <param name="invType"></param>
21558 <param name="wearableType"></param>
21559 <param name="nextOwnerMask"></param>
21560 <param name="callback"></param>
21561 </member> 22956 </member>
21562 <member name="M:OpenMetaverse.InventoryManager.CreateFolder(OpenMetaverse.UUID,System.String)"> 22957 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.RegionDenyTransacted">
21563 <summary> 22958 <summary>
21564 Creates a new inventory folder
21565 </summary> 22959 </summary>
21566 <param name="parentID">ID of the folder to put this folder in</param>
21567 <param name="name">Name of the folder to create</param>
21568 <returns>The UUID of the newly created folder</returns>
21569 </member> 22960 </member>
21570 <member name="M:OpenMetaverse.InventoryManager.CreateFolder(OpenMetaverse.UUID,System.String,OpenMetaverse.AssetType)"> 22961 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.RegionDenyAgeUnverified">
22962 <summary>True if the region denies access to age unverified users</summary>
22963 </member>
22964 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.RegionPushOverride">
21571 <summary> 22965 <summary>
21572 Creates a new inventory folder
21573 </summary> 22966 </summary>
21574 <param name="parentID">ID of the folder to put this folder in</param>
21575 <param name="name">Name of the folder to create</param>
21576 <param name="preferredType">Sets this folder as the default folder
21577 for new assets of the specified type. Use <code>AssetType.Unknown</code>
21578 to create a normal folder, otherwise it will likely create a
21579 duplicate of an existing folder type</param>
21580 <returns>The UUID of the newly created folder</returns>
21581 <remarks>If you specify a preferred type of <code>AsseType.Folder</code>
21582 it will create a new root folder which may likely cause all sorts
21583 of strange problems</remarks>
21584 </member> 22967 </member>
21585 <member name="M:OpenMetaverse.InventoryManager.RequestCreateItemFromAsset(System.Byte[],System.String,System.String,OpenMetaverse.AssetType,OpenMetaverse.InventoryType,OpenMetaverse.UUID,OpenMetaverse.InventoryManager.ItemCreatedFromAssetCallback)"> 22968 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.RentPrice">
22969 <summary>This field is no longer used</summary>
22970 </member>
22971 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.RequestResult">
22972 The result of a request for parcel properties</member>
22973 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.SalePrice">
22974 <summary>Sale price of the parcel, only useful if ForSale is set</summary>
22975 <remarks>The SalePrice will remain the same after an ownership
22976 transfer (sale), so it can be used to see the purchase price after
22977 a sale if the new owner has not changed it</remarks>
22978 </member>
22979 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.SelectedPrims">
21586 <summary> 22980 <summary>
21587 Create an inventory item and upload asset data 22981 Number of primitives your avatar is currently
22982 selecting and sitting on in this parcel
21588 </summary> 22983 </summary>
21589 <param name="data">Asset data</param>
21590 <param name="name">Inventory item name</param>
21591 <param name="description">Inventory item description</param>
21592 <param name="assetType">Asset type</param>
21593 <param name="invType">Inventory type</param>
21594 <param name="folderID">Put newly created inventory in this folder</param>
21595 <param name="callback">Delegate that will receive feedback on success or failure</param>
21596 </member> 22984 </member>
21597 <member name="M:OpenMetaverse.InventoryManager.RequestCreateItemFromAsset(System.Byte[],System.String,System.String,OpenMetaverse.AssetType,OpenMetaverse.InventoryType,OpenMetaverse.UUID,OpenMetaverse.Permissions,OpenMetaverse.InventoryManager.ItemCreatedFromAssetCallback)"> 22985 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.SelfCount">
21598 <summary> 22986 <summary>
21599 Create an inventory item and upload asset data
21600 </summary> 22987 </summary>
21601 <param name="data">Asset data</param>
21602 <param name="name">Inventory item name</param>
21603 <param name="description">Inventory item description</param>
21604 <param name="assetType">Asset type</param>
21605 <param name="invType">Inventory type</param>
21606 <param name="folderID">Put newly created inventory in this folder</param>
21607 <param name="permissions">Permission of the newly created item
21608 (EveryoneMask, GroupMask, and NextOwnerMask of Permissions struct are supported)</param>
21609 <param name="callback">Delegate that will receive feedback on success or failure</param>
21610 </member> 22988 </member>
21611 <member name="M:OpenMetaverse.InventoryManager.CreateLink(OpenMetaverse.UUID,OpenMetaverse.InventoryBase,OpenMetaverse.InventoryManager.ItemCreatedCallback)"> 22989 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.SequenceID">
21612 <summary> 22990 <summary>
21613 Creates inventory link to another inventory item or folder 22991 A number which increments by 1, starting at 0 for each ParcelProperties request.
22992 Can be overriden by specifying the sequenceID with the ParcelPropertiesRequest being sent.
22993 a Negative number indicates the action in <seealso cref="T:OpenMetaverse.ParcelPropertiesStatus" /> has occurred.
21614 </summary> 22994 </summary>
21615 <param name="folderID">Put newly created link in folder with this UUID</param>
21616 <param name="bse">Inventory item or folder</param>
21617 <param name="callback">Method to call upon creation of the link</param>
21618 </member> 22995 </member>
21619 <member name="M:OpenMetaverse.InventoryManager.CreateLink(OpenMetaverse.UUID,OpenMetaverse.InventoryItem,OpenMetaverse.InventoryManager.ItemCreatedCallback)"> 22996 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.SimWideMaxPrims">
22997 <summary>Maximum primitives across the entire simulator</summary>
22998 </member>
22999 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.SimWideTotalPrims">
23000 <summary>Total primitives across the entire simulator</summary>
23001 </member>
23002 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.SnapSelection">
21620 <summary> 23003 <summary>
21621 Creates inventory link to another inventory item
21622 </summary> 23004 </summary>
21623 <param name="folderID">Put newly created link in folder with this UUID</param>
21624 <param name="item">Original inventory item</param>
21625 <param name="callback">Method to call upon creation of the link</param>
21626 </member> 23005 </member>
21627 <member name="M:OpenMetaverse.InventoryManager.CreateLink(OpenMetaverse.UUID,OpenMetaverse.InventoryFolder,OpenMetaverse.InventoryManager.ItemCreatedCallback)"> 23006 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.SnapshotID">
23007 <summary>Key of parcel snapshot</summary>
23008 </member>
23009 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.Status">
23010 <summary>Parcel ownership status</summary>
23011 </member>
23012 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.TotalPrims">
23013 <summary>Total number of primitives on this parcel</summary>
23014 </member>
23015 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.UserLocation">
21628 <summary> 23016 <summary>
21629 Creates inventory link to another inventory folder
21630 </summary> 23017 </summary>
21631 <param name="folderID">Put newly created link in folder with this UUID</param>
21632 <param name="folder">Original inventory folder</param>
21633 <param name="callback">Method to call upon creation of the link</param>
21634 </member> 23018 </member>
21635 <member name="M:OpenMetaverse.InventoryManager.CreateLink(OpenMetaverse.UUID,OpenMetaverse.UUID,System.String,System.String,OpenMetaverse.AssetType,OpenMetaverse.InventoryType,OpenMetaverse.UUID,OpenMetaverse.InventoryManager.ItemCreatedCallback)"> 23019 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.UserLookAt">
21636 <summary> 23020 <summary>
21637 Creates inventory link to another inventory item or folder
21638 </summary> 23021 </summary>
21639 <param name="folderID">Put newly created link in folder with this UUID</param>
21640 <param name="itemID">Original item's UUID</param>
21641 <param name="name">Name</param>
21642 <param name="description">Description</param>
21643 <param name="assetType">Asset Type</param>
21644 <param name="invType">Inventory Type</param>
21645 <param name="transactionID">Transaction UUID</param>
21646 <param name="callback">Method to call upon creation of the link</param>
21647 </member> 23022 </member>
21648 <member name="M:OpenMetaverse.InventoryManager.RequestCopyItem(OpenMetaverse.UUID,OpenMetaverse.UUID,System.String,OpenMetaverse.InventoryManager.ItemCopiedCallback)"> 23023 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.MediaDesc">
23024 <summary>A description of the media</summary>
23025 </member>
23026 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.MediaHeight">
23027 <summary>An Integer which represents the height of the media</summary>
23028 </member>
23029 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.MediaWidth">
23030 <summary>An integer which represents the width of the media</summary>
23031 </member>
23032 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.MediaLoop">
23033 <summary>A boolean, if true the viewer should loop the media</summary>
23034 </member>
23035 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.MediaType">
23036 <summary>A string which contains the mime type of the media</summary>
23037 </member>
23038 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.ObscureMedia">
23039 <summary>true to obscure (hide) media url</summary>
23040 </member>
23041 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.ObscureMusic">
23042 <summary>true to obscure (hide) music url</summary>
23043 </member>
23044 <member name="M:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.Serialize">
21649 <summary> 23045 <summary>
21650 23046 Serialize the object
21651 </summary> 23047 </summary>
21652 <param name="item"></param> 23048 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the objects data</returns>
21653 <param name="newParent"></param>
21654 <param name="newName"></param>
21655 <param name="callback"></param>
21656 </member> 23049 </member>
21657 <member name="M:OpenMetaverse.InventoryManager.RequestCopyItem(OpenMetaverse.UUID,OpenMetaverse.UUID,System.String,OpenMetaverse.UUID,OpenMetaverse.InventoryManager.ItemCopiedCallback)"> 23050 <member name="M:OpenMetaverse.Messages.Linden.ParcelPropertiesMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
21658 <summary> 23051 <summary>
21659 23052 Deserialize the message
21660 </summary> 23053 </summary>
21661 <param name="item"></param> 23054 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the data</param>
21662 <param name="newParent"></param>
21663 <param name="newName"></param>
21664 <param name="oldOwnerID"></param>
21665 <param name="callback"></param>
21666 </member> 23055 </member>
21667 <member name="M:OpenMetaverse.InventoryManager.RequestCopyItems(System.Collections.Generic.List{OpenMetaverse.UUID},System.Collections.Generic.List{OpenMetaverse.UUID},System.Collections.Generic.List{System.String},OpenMetaverse.UUID,OpenMetaverse.InventoryManager.ItemCopiedCallback)"> 23056 <member name="T:OpenMetaverse.Messages.Linden.ParcelPropertiesUpdateMessage">
23057 <summary>A message sent from the viewer to the simulator to updated a specific parcels settings</summary>
23058 </member>
23059 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesUpdateMessage.AuthBuyerID">
23060 <summary>The <seealso cref="T:OpenMetaverse.UUID" /> of the agent authorized to purchase this
23061 parcel of land or a NULL <seealso cref="T:OpenMetaverse.UUID" /> if the sale is authorized to anyone</summary>
23062 </member>
23063 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesUpdateMessage.MediaAutoScale">
23064 <summary>true to enable auto scaling of the parcel media</summary>
23065 </member>
23066 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesUpdateMessage.Category">
23067 <summary>The category of this parcel used when search is enabled to restrict
23068 search results</summary>
23069 </member>
23070 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesUpdateMessage.Desc">
23071 <summary>A string containing the description to set</summary>
23072 </member>
23073 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesUpdateMessage.GroupID">
23074 <summary>The <seealso cref="T:OpenMetaverse.UUID" /> of the <seealso cref="T:OpenMetaverse.Group" /> which allows for additional
23075 powers and restrictions.</summary>
23076 </member>
23077 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesUpdateMessage.Landing">
23078 <summary>The <seealso cref="T:OpenMetaverse.LandingType" /> which specifies how avatars which teleport
23079 to this parcel are handled</summary>
23080 </member>
23081 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesUpdateMessage.LocalID">
23082 <summary>The LocalID of the parcel to update settings on</summary>
23083 </member>
23084 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesUpdateMessage.MediaDesc">
23085 <summary>A string containing the description of the media which can be played
23086 to visitors</summary>
23087 </member>
23088 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesUpdateMessage.MediaHeight">
21668 <summary> 23089 <summary>
21669
21670 </summary> 23090 </summary>
21671 <param name="items"></param>
21672 <param name="targetFolders"></param>
21673 <param name="newNames"></param>
21674 <param name="oldOwnerID"></param>
21675 <param name="callback"></param>
21676 </member> 23091 </member>
21677 <member name="M:OpenMetaverse.InventoryManager.RequestCopyItemFromNotecard(OpenMetaverse.UUID,OpenMetaverse.UUID,OpenMetaverse.UUID,OpenMetaverse.UUID,OpenMetaverse.InventoryManager.ItemCopiedCallback)"> 23092 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesUpdateMessage.MediaLoop">
21678 <summary> 23093 <summary>
21679 Request a copy of an asset embedded within a notecard
21680 </summary> 23094 </summary>
21681 <param name="objectID">Usually UUID.Zero for copying an asset from a notecard</param>
21682 <param name="notecardID">UUID of the notecard to request an asset from</param>
21683 <param name="folderID">Target folder for asset to go to in your inventory</param>
21684 <param name="itemID">UUID of the embedded asset</param>
21685 <param name="callback">callback to run when item is copied to inventory</param>
21686 </member> 23095 </member>
21687 <member name="M:OpenMetaverse.InventoryManager.RequestUpdateItem(OpenMetaverse.InventoryItem)"> 23096 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesUpdateMessage.MediaID">
21688 <summary> 23097 <summary>
21689
21690 </summary> 23098 </summary>
21691 <param name="item"></param>
21692 </member> 23099 </member>
21693 <member name="M:OpenMetaverse.InventoryManager.RequestUpdateItems(System.Collections.Generic.List{OpenMetaverse.InventoryItem})"> 23100 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesUpdateMessage.MediaType">
21694 <summary> 23101 <summary>
21695
21696 </summary> 23102 </summary>
21697 <param name="items"></param>
21698 </member> 23103 </member>
21699 <member name="M:OpenMetaverse.InventoryManager.RequestUpdateItems(System.Collections.Generic.List{OpenMetaverse.InventoryItem},OpenMetaverse.UUID)"> 23104 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesUpdateMessage.MediaURL">
21700 <summary> 23105 <summary>
21701
21702 </summary> 23106 </summary>
21703 <param name="items"></param>
21704 <param name="transactionID"></param>
21705 </member> 23107 </member>
21706 <member name="M:OpenMetaverse.InventoryManager.RequestUploadNotecardAsset(System.Byte[],OpenMetaverse.UUID,OpenMetaverse.InventoryManager.InventoryUploadedAssetCallback)"> 23108 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesUpdateMessage.MediaWidth">
21707 <summary> 23109 <summary>
21708
21709 </summary> 23110 </summary>
21710 <param name="data"></param>
21711 <param name="notecardID"></param>
21712 <param name="callback"></param>
21713 </member> 23111 </member>
21714 <member name="M:OpenMetaverse.InventoryManager.RequestUpdateNotecardTask(System.Byte[],OpenMetaverse.UUID,OpenMetaverse.UUID,OpenMetaverse.InventoryManager.InventoryUploadedAssetCallback)"> 23112 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesUpdateMessage.MusicURL">
21715 <summary> 23113 <summary>
21716 Save changes to notecard embedded in object contents
21717 </summary> 23114 </summary>
21718 <param name="data">Encoded notecard asset data</param>
21719 <param name="notecardID">Notecard UUID</param>
21720 <param name="taskID">Object's UUID</param>
21721 <param name="callback">Called upon finish of the upload with status information</param>
21722 </member> 23115 </member>
21723 <member name="M:OpenMetaverse.InventoryManager.RequestUploadGestureAsset(System.Byte[],OpenMetaverse.UUID,OpenMetaverse.InventoryManager.InventoryUploadedAssetCallback)"> 23116 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesUpdateMessage.Name">
21724 <summary> 23117 <summary>
21725 Upload new gesture asset for an inventory gesture item
21726 </summary> 23118 </summary>
21727 <param name="data">Encoded gesture asset</param>
21728 <param name="gestureID">Gesture inventory UUID</param>
21729 <param name="callback">Callback whick will be called when upload is complete</param>
21730 </member> 23119 </member>
21731 <member name="M:OpenMetaverse.InventoryManager.RequestUpdateScriptAgentInventory(System.Byte[],OpenMetaverse.UUID,System.Boolean,OpenMetaverse.InventoryManager.ScriptUpdatedCallback)"> 23120 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesUpdateMessage.ObscureMedia">
21732 <summary> 23121 <summary>
21733 Update an existing script in an agents Inventory
21734 </summary> 23122 </summary>
21735 <param name="data">A byte[] array containing the encoded scripts contents</param>
21736 <param name="itemID">the itemID of the script</param>
21737 <param name="mono">if true, sets the script content to run on the mono interpreter</param>
21738 <param name="callback"></param>
21739 </member> 23123 </member>
21740 <member name="M:OpenMetaverse.InventoryManager.RequestUpdateScriptTask(System.Byte[],OpenMetaverse.UUID,OpenMetaverse.UUID,System.Boolean,System.Boolean,OpenMetaverse.InventoryManager.ScriptUpdatedCallback)"> 23124 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesUpdateMessage.ObscureMusic">
21741 <summary> 23125 <summary>
21742 Update an existing script in an task Inventory
21743 </summary> 23126 </summary>
21744 <param name="data">A byte[] array containing the encoded scripts contents</param>
21745 <param name="itemID">the itemID of the script</param>
21746 <param name="taskID">UUID of the prim containting the script</param>
21747 <param name="mono">if true, sets the script content to run on the mono interpreter</param>
21748 <param name="running">if true, sets the script to running</param>
21749 <param name="callback"></param>
21750 </member> 23127 </member>
21751 <member name="M:OpenMetaverse.InventoryManager.RequestRezFromInventory(OpenMetaverse.Simulator,OpenMetaverse.Quaternion,OpenMetaverse.Vector3,OpenMetaverse.InventoryItem)"> 23128 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesUpdateMessage.ParcelFlags">
21752 <summary> 23129 <summary>
21753 Rez an object from inventory
21754 </summary> 23130 </summary>
21755 <param name="simulator">Simulator to place object in</param>
21756 <param name="rotation">Rotation of the object when rezzed</param>
21757 <param name="position">Vector of where to place object</param>
21758 <param name="item">InventoryItem object containing item details</param>
21759 </member> 23131 </member>
21760 <member name="M:OpenMetaverse.InventoryManager.RequestRezFromInventory(OpenMetaverse.Simulator,OpenMetaverse.Quaternion,OpenMetaverse.Vector3,OpenMetaverse.InventoryItem,OpenMetaverse.UUID)"> 23132 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesUpdateMessage.PassHours">
21761 <summary> 23133 <summary>
21762 Rez an object from inventory
21763 </summary> 23134 </summary>
21764 <param name="simulator">Simulator to place object in</param>
21765 <param name="rotation">Rotation of the object when rezzed</param>
21766 <param name="position">Vector of where to place object</param>
21767 <param name="item">InventoryItem object containing item details</param>
21768 <param name="groupOwner">UUID of group to own the object</param>
21769 </member> 23135 </member>
21770 <member name="M:OpenMetaverse.InventoryManager.RequestRezFromInventory(OpenMetaverse.Simulator,OpenMetaverse.Quaternion,OpenMetaverse.Vector3,OpenMetaverse.InventoryItem,OpenMetaverse.UUID,OpenMetaverse.UUID,System.Boolean)"> 23136 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesUpdateMessage.PassPrice">
21771 <summary> 23137 <summary>
21772 Rez an object from inventory
21773 </summary> 23138 </summary>
21774 <param name="simulator">Simulator to place object in</param>
21775 <param name="rotation">Rotation of the object when rezzed</param>
21776 <param name="position">Vector of where to place object</param>
21777 <param name="item">InventoryItem object containing item details</param>
21778 <param name="groupOwner">UUID of group to own the object</param>
21779 <param name="queryID">User defined queryID to correlate replies</param>
21780 <param name="rezSelected">If set to true, the CreateSelected flag
21781 will be set on the rezzed object</param>
21782 </member> 23139 </member>
21783 <member name="M:OpenMetaverse.InventoryManager.RequestDeRezToInventory(System.UInt32)"> 23140 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesUpdateMessage.Privacy">
21784 <summary> 23141 <summary>
21785 DeRez an object from the simulator to the agents Objects folder in the agents Inventory
21786 </summary> 23142 </summary>
21787 <param name="objectLocalID">The simulator Local ID of the object</param>
21788 <remarks>If objectLocalID is a child primitive in a linkset, the entire linkset will be derezzed</remarks>
21789 </member> 23143 </member>
21790 <member name="M:OpenMetaverse.InventoryManager.RequestDeRezToInventory(System.UInt32,OpenMetaverse.DeRezDestination,OpenMetaverse.UUID,OpenMetaverse.UUID)"> 23144 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesUpdateMessage.SalePrice">
21791 <summary> 23145 <summary>
21792 DeRez an object from the simulator and return to inventory
21793 </summary> 23146 </summary>
21794 <param name="objectLocalID">The simulator Local ID of the object</param>
21795 <param name="destType">The type of destination from the <seealso cref="T:OpenMetaverse.DeRezDestination"/> enum</param>
21796 <param name="destFolder">The destination inventory folders <seealso cref="T:OpenMetaverse.UUID"/> -or-
21797 if DeRezzing object to a tasks Inventory, the Tasks <seealso cref="T:OpenMetaverse.UUID"/></param>
21798 <param name="transactionID">The transaction ID for this request which
21799 can be used to correlate this request with other packets</param>
21800 <remarks>If objectLocalID is a child primitive in a linkset, the entire linkset will be derezzed</remarks>
21801 </member> 23147 </member>
21802 <member name="M:OpenMetaverse.InventoryManager.RequestRestoreRezFromInventory(OpenMetaverse.Simulator,OpenMetaverse.InventoryItem,OpenMetaverse.UUID)"> 23148 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesUpdateMessage.SnapshotID">
21803 <summary> 23149 <summary>
21804 Rez an item from inventory to its previous simulator location
21805 </summary> 23150 </summary>
21806 <param name="simulator"></param>
21807 <param name="item"></param>
21808 <param name="queryID"></param>
21809 <returns></returns>
21810 </member> 23151 </member>
21811 <member name="M:OpenMetaverse.InventoryManager.GiveItem(OpenMetaverse.UUID,System.String,OpenMetaverse.AssetType,OpenMetaverse.UUID,System.Boolean)"> 23152 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesUpdateMessage.UserLocation">
21812 <summary> 23153 <summary>
21813 Give an inventory item to another avatar
21814 </summary> 23154 </summary>
21815 <param name="itemID">The <seealso cref="T:OpenMetaverse.UUID"/> of the item to give</param>
21816 <param name="itemName">The name of the item</param>
21817 <param name="assetType">The type of the item from the <seealso cref="T:OpenMetaverse.AssetType"/> enum</param>
21818 <param name="recipient">The <seealso cref="T:OpenMetaverse.UUID"/> of the recipient</param>
21819 <param name="doEffect">true to generate a beameffect during transfer</param>
21820 </member> 23155 </member>
21821 <member name="M:OpenMetaverse.InventoryManager.GiveFolder(OpenMetaverse.UUID,System.String,OpenMetaverse.AssetType,OpenMetaverse.UUID,System.Boolean)"> 23156 <member name="F:OpenMetaverse.Messages.Linden.ParcelPropertiesUpdateMessage.UserLookAt">
21822 <summary> 23157 <summary>
21823 Give an inventory Folder with contents to another avatar
21824 </summary> 23158 </summary>
21825 <param name="folderID">The <seealso cref="T:OpenMetaverse.UUID"/> of the Folder to give</param>
21826 <param name="folderName">The name of the folder</param>
21827 <param name="assetType">The type of the item from the <seealso cref="T:OpenMetaverse.AssetType"/> enum</param>
21828 <param name="recipient">The <seealso cref="T:OpenMetaverse.UUID"/> of the recipient</param>
21829 <param name="doEffect">true to generate a beameffect during transfer</param>
21830 </member> 23159 </member>
21831 <member name="M:OpenMetaverse.InventoryManager.UpdateTaskInventory(System.UInt32,OpenMetaverse.InventoryItem)"> 23160 <member name="M:OpenMetaverse.Messages.Linden.ParcelPropertiesUpdateMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
21832 <summary> 23161 <summary>
21833 Copy or move an <see cref="T:OpenMetaverse.InventoryItem"/> from agent inventory to a task (primitive) inventory 23162 Deserialize the message
21834 </summary> 23163 </summary>
21835 <param name="objectLocalID">The target object</param> 23164 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the data</param>
21836 <param name="item">The item to copy or move from inventory</param>
21837 <returns></returns>
21838 <remarks>For items with copy permissions a copy of the item is placed in the tasks inventory,
21839 for no-copy items the object is moved to the tasks inventory</remarks>
21840 </member> 23165 </member>
21841 <member name="M:OpenMetaverse.InventoryManager.GetTaskInventory(OpenMetaverse.UUID,System.UInt32,System.Int32)"> 23166 <member name="M:OpenMetaverse.Messages.Linden.ParcelPropertiesUpdateMessage.Serialize">
21842 <summary> 23167 <summary>
21843 Retrieve a listing of the items contained in a task (Primitive) 23168 Serialize the object
21844 </summary> 23169 </summary>
21845 <param name="objectID">The tasks <seealso cref="T:OpenMetaverse.UUID"/></param> 23170 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the objects data</returns>
21846 <param name="objectLocalID">The tasks simulator local ID</param>
21847 <param name="timeoutMS">milliseconds to wait for reply from simulator</param>
21848 <returns>A list containing the inventory items inside the task or null
21849 if a timeout occurs</returns>
21850 <remarks>This request blocks until the response from the simulator arrives
21851 or timeoutMS is exceeded</remarks>
21852 </member> 23171 </member>
21853 <member name="M:OpenMetaverse.InventoryManager.RequestTaskInventory(System.UInt32)"> 23172 <member name="T:OpenMetaverse.Messages.Linden.RemoteParcelRequestBlock">
23173 <summary>Base class used for the RemoteParcelRequest message</summary>
23174 </member>
23175 <member name="T:OpenMetaverse.Messages.Linden.RemoteParcelRequestRequest">
21854 <summary> 23176 <summary>
21855 Request the contents of a tasks (primitives) inventory from the 23177 A message sent from the viewer to the simulator to request information
21856 current simulator 23178 on a remote parcel
21857 </summary> 23179 </summary>
21858 <param name="objectLocalID">The LocalID of the object</param>
21859 <seealso cref="E:OpenMetaverse.InventoryManager.TaskInventoryReply"/>
21860 </member> 23180 </member>
21861 <member name="M:OpenMetaverse.InventoryManager.RequestTaskInventory(System.UInt32,OpenMetaverse.Simulator)"> 23181 <member name="F:OpenMetaverse.Messages.Linden.RemoteParcelRequestRequest.Location">
23182 <summary>Local sim position of the parcel we are looking up</summary>
23183 </member>
23184 <member name="F:OpenMetaverse.Messages.Linden.RemoteParcelRequestRequest.RegionHandle">
23185 <summary>Region handle of the parcel we are looking up</summary>
23186 </member>
23187 <member name="F:OpenMetaverse.Messages.Linden.RemoteParcelRequestRequest.RegionID">
23188 <summary>Region <see cref="T:OpenMetaverse.UUID" /> of the parcel we are looking up</summary>
23189 </member>
23190 <member name="M:OpenMetaverse.Messages.Linden.RemoteParcelRequestRequest.Serialize">
21862 <summary> 23191 <summary>
21863 Request the contents of a tasks (primitives) inventory 23192 Serialize the object
21864 </summary> 23193 </summary>
21865 <param name="objectLocalID">The simulator Local ID of the object</param> 23194 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the objects data</returns>
21866 <param name="simulator">A reference to the simulator object that contains the object</param>
21867 <seealso cref="E:OpenMetaverse.InventoryManager.TaskInventoryReply"/>
21868 </member> 23195 </member>
21869 <member name="M:OpenMetaverse.InventoryManager.MoveTaskInventory(System.UInt32,OpenMetaverse.UUID,OpenMetaverse.UUID,OpenMetaverse.Simulator)"> 23196 <member name="M:OpenMetaverse.Messages.Linden.RemoteParcelRequestRequest.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
21870 <summary> 23197 <summary>
21871 Move an item from a tasks (Primitive) inventory to the specified folder in the avatars inventory 23198 Deserialize the message
21872 </summary> 23199 </summary>
21873 <param name="objectLocalID">LocalID of the object in the simulator</param> 23200 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the data</param>
21874 <param name="taskItemID">UUID of the task item to move</param>
21875 <param name="inventoryFolderID">The ID of the destination folder in this agents inventory</param>
21876 <param name="simulator">Simulator Object</param>
21877 <remarks>Raises the <see cref="M:OpenMetaverse.InventoryManager.OnTaskItemReceived(OpenMetaverse.TaskItemReceivedEventArgs)"/> event</remarks>
21878 </member> 23201 </member>
21879 <member name="M:OpenMetaverse.InventoryManager.RemoveTaskInventory(System.UInt32,OpenMetaverse.UUID,OpenMetaverse.Simulator)"> 23202 <member name="T:OpenMetaverse.Messages.Linden.RemoteParcelRequestReply">
21880 <summary> 23203 <summary>
21881 Remove an item from an objects (Prim) Inventory 23204 A message sent from the simulator to the viewer in response to a <see cref="T:OpenMetaverse.Messages.Linden.RemoteParcelRequestRequest" />
23205 which will contain parcel information
21882 </summary> 23206 </summary>
21883 <param name="objectLocalID">LocalID of the object in the simulator</param>
21884 <param name="taskItemID">UUID of the task item to remove</param>
21885 <param name="simulator">Simulator Object</param>
21886 <remarks>You can confirm the removal by comparing the tasks inventory serial before and after the
21887 request with the <see cref="M:OpenMetaverse.InventoryManager.RequestTaskInventory(System.UInt32)"/> request combined with
21888 the <seealso cref="E:OpenMetaverse.InventoryManager.TaskInventoryReply"/> event</remarks>
21889 </member> 23207 </member>
21890 <member name="M:OpenMetaverse.InventoryManager.CopyScriptToTask(System.UInt32,OpenMetaverse.InventoryItem,System.Boolean)"> 23208 <member name="F:OpenMetaverse.Messages.Linden.RemoteParcelRequestReply.ParcelID">
21891 <summary> 23209 <summary>The grid-wide unique parcel ID</summary>
21892 Copy an InventoryScript item from the Agents Inventory into a primitives task inventory
21893 </summary>
21894 <param name="objectLocalID">An unsigned integer representing a primitive being simulated</param>
21895 <param name="item">An <seealso cref="T:OpenMetaverse.InventoryItem"/> which represents a script object from the agents inventory</param>
21896 <param name="enableScript">true to set the scripts running state to enabled</param>
21897 <returns>A Unique Transaction ID</returns>
21898 <example>
21899 The following example shows the basic steps necessary to copy a script from the agents inventory into a tasks inventory
21900 and assumes the script exists in the agents inventory.
21901 <code>
21902 uint primID = 95899503; // Fake prim ID
21903 UUID scriptID = UUID.Parse("92a7fe8a-e949-dd39-a8d8-1681d8673232"); // Fake Script UUID in Inventory
21904
21905 Client.Inventory.FolderContents(Client.Inventory.FindFolderForType(AssetType.LSLText), Client.Self.AgentID,
21906 false, true, InventorySortOrder.ByName, 10000);
21907
21908 Client.Inventory.RezScript(primID, (InventoryItem)Client.Inventory.Store[scriptID]);
21909 </code>
21910 </example>
21911 </member> 23210 </member>
21912 <member name="M:OpenMetaverse.InventoryManager.RequestGetScriptRunning(OpenMetaverse.UUID,OpenMetaverse.UUID)"> 23211 <member name="M:OpenMetaverse.Messages.Linden.RemoteParcelRequestReply.Serialize">
21913 <summary> 23212 <summary>
21914 Request the running status of a script contained in a task (primitive) inventory 23213 Serialize the object
21915 </summary> 23214 </summary>
21916 <param name="objectID">The ID of the primitive containing the script</param> 23215 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the objects data</returns>
21917 <param name="scriptID">The ID of the script</param>
21918 <remarks>The <see cref="E:OpenMetaverse.InventoryManager.ScriptRunningReply"/> event can be used to obtain the results of the
21919 request</remarks>
21920 <seealso cref="E:OpenMetaverse.InventoryManager.ScriptRunningReply"/>
21921 </member> 23216 </member>
21922 <member name="M:OpenMetaverse.InventoryManager.RequestSetScriptRunning(OpenMetaverse.UUID,OpenMetaverse.UUID,System.Boolean)"> 23217 <member name="M:OpenMetaverse.Messages.Linden.RemoteParcelRequestReply.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
21923 <summary> 23218 <summary>
21924 Send a request to set the running state of a script contained in a task (primitive) inventory 23219 Deserialize the message
21925 </summary> 23220 </summary>
21926 <param name="objectID">The ID of the primitive containing the script</param> 23221 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the data</param>
21927 <param name="scriptID">The ID of the script</param>
21928 <param name="running">true to set the script running, false to stop a running script</param>
21929 <remarks>To verify the change you can use the <see cref="M:OpenMetaverse.InventoryManager.RequestGetScriptRunning(OpenMetaverse.UUID,OpenMetaverse.UUID)"/> method combined
21930 with the <see cref="E:OpenMetaverse.InventoryManager.ScriptRunningReply"/> event</remarks>
21931 </member> 23222 </member>
21932 <member name="M:OpenMetaverse.InventoryManager.ItemCRC(OpenMetaverse.InventoryItem)"> 23223 <member name="T:OpenMetaverse.Messages.Linden.RemoteParcelRequestMessage">
21933 <summary> 23224 <summary>
21934 Create a CRC from an InventoryItem 23225 A message containing a request for a remote parcel from a viewer, or a response
23226 from the simulator to that request
21935 </summary> 23227 </summary>
21936 <param name="iitem">The source InventoryItem</param>
21937 <returns>A uint representing the source InventoryItem as a CRC</returns>
21938 </member> 23228 </member>
21939 <member name="M:OpenMetaverse.InventoryManager.DecryptShadowID(OpenMetaverse.UUID)"> 23229 <member name="F:OpenMetaverse.Messages.Linden.RemoteParcelRequestMessage.Request">
23230 <summary>The request or response details block</summary>
23231 </member>
23232 <member name="M:OpenMetaverse.Messages.Linden.RemoteParcelRequestMessage.Serialize">
21940 <summary> 23233 <summary>
21941 Reverses a cheesy XORing with a fixed UUID to convert a shadow_id to an asset_id 23234 Serialize the object
21942 </summary> 23235 </summary>
21943 <param name="shadowID">Obfuscated shadow_id value</param> 23236 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the objects data</returns>
21944 <returns>Deobfuscated asset_id value</returns>
21945 </member> 23237 </member>
21946 <member name="M:OpenMetaverse.InventoryManager.EncryptAssetID(OpenMetaverse.UUID)"> 23238 <member name="M:OpenMetaverse.Messages.Linden.RemoteParcelRequestMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
21947 <summary> 23239 <summary>
21948 Does a cheesy XORing with a fixed UUID to convert an asset_id to a shadow_id 23240 Deserialize the message
21949 </summary> 23241 </summary>
21950 <param name="assetID">asset_id value to obfuscate</param> 23242 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the data</param>
21951 <returns>Obfuscated shadow_id value</returns>
21952 </member> 23243 </member>
21953 <member name="M:OpenMetaverse.InventoryManager.CreateInventoryItem(OpenMetaverse.InventoryType,OpenMetaverse.UUID)"> 23244 <member name="M:OpenMetaverse.Messages.Linden.NewFileAgentInventoryMessage.Serialize">
21954 <summary> 23245 <summary>
21955 Wrapper for creating a new <seealso cref="T:OpenMetaverse.InventoryItem"/> object 23246 Serialize the object
21956 </summary> 23247 </summary>
21957 <param name="type">The type of item from the <seealso cref="T:OpenMetaverse.InventoryType"/> enum</param> 23248 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the objects data</returns>
21958 <param name="id">The <seealso cref="T:OpenMetaverse.UUID"/> of the newly created object</param>
21959 <returns>An <seealso cref="T:OpenMetaverse.InventoryItem"/> object with the type and id passed</returns>
21960 </member> 23249 </member>
21961 <member name="M:OpenMetaverse.InventoryManager.ParseTaskInventory(System.String)"> 23250 <member name="M:OpenMetaverse.Messages.Linden.NewFileAgentInventoryMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
21962 <summary> 23251 <summary>
21963 Parse the results of a RequestTaskInventory() response 23252 Deserialize the message
21964 </summary> 23253 </summary>
21965 <param name="taskData">A string which contains the data from the task reply</param> 23254 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the data</param>
21966 <returns>A List containing the items contained within the tasks inventory</returns>
21967 </member> 23255 </member>
21968 <member name="M:OpenMetaverse.InventoryManager.SaveAssetIntoInventoryHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)"> 23256 <member name="M:OpenMetaverse.Messages.Linden.NewFileAgentInventoryVariablePriceMessage.Serialize">
21969 <summary>Process an incoming packet and raise the appropriate events</summary> 23257 <summary>
21970 <param name="sender">The sender</param> 23258 Serialize the object
21971 <param name="e">The EventArgs object containing the packet data</param> 23259 </summary>
23260 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the objects data</returns>
21972 </member> 23261 </member>
21973 <member name="M:OpenMetaverse.InventoryManager.InventoryDescendentsHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)"> 23262 <member name="M:OpenMetaverse.Messages.Linden.NewFileAgentInventoryVariablePriceMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
21974 <summary>Process an incoming packet and raise the appropriate events</summary> 23263 <summary>
21975 <param name="sender">The sender</param> 23264 Deserialize the message
21976 <param name="e">The EventArgs object containing the packet data</param> 23265 </summary>
23266 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the data</param>
21977 </member> 23267 </member>
21978 <member name="M:OpenMetaverse.InventoryManager.UpdateCreateInventoryItemHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)"> 23268 <member name="T:OpenMetaverse.Messages.Linden.AgentGroupDataUpdateMessage">
21979 <summary> 23269 <summary>
21980 UpdateCreateInventoryItem packets are received when a new inventory item 23270 A message sent from the simulator to an agent which contains
21981 is created. This may occur when an object that's rezzed in world is 23271 the groups the agent is in
21982 taken into inventory, when an item is created using the CreateInventoryItem
21983 packet, or when an object is purchased
21984 </summary> 23272 </summary>
21985 <param name="sender">The sender</param>
21986 <param name="e">The EventArgs object containing the packet data</param>
21987 </member> 23273 </member>
21988 <member name="M:OpenMetaverse.InventoryManager.MoveInventoryItemHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)"> 23274 <member name="T:OpenMetaverse.Messages.Linden.AgentGroupDataUpdateMessage.GroupData">
21989 <summary>Process an incoming packet and raise the appropriate events</summary> 23275 <summary>Group Details specific to the agent</summary>
21990 <param name="sender">The sender</param>
21991 <param name="e">The EventArgs object containing the packet data</param>
21992 </member> 23276 </member>
21993 <member name="M:OpenMetaverse.InventoryManager.BulkUpdateInventoryHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)"> 23277 <member name="F:OpenMetaverse.Messages.Linden.AgentGroupDataUpdateMessage.GroupData.AcceptNotices">
21994 <summary>Process an incoming packet and raise the appropriate events</summary> 23278 <summary>true of the agent accepts group notices</summary>
21995 <param name="sender">The sender</param>
21996 <param name="e">The EventArgs object containing the packet data</param>
21997 </member> 23279 </member>
21998 <member name="M:OpenMetaverse.InventoryManager.FetchInventoryReplyHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)"> 23280 <member name="F:OpenMetaverse.Messages.Linden.AgentGroupDataUpdateMessage.GroupData.Contribution">
21999 <summary>Process an incoming packet and raise the appropriate events</summary> 23281 <summary>The agents tier contribution to the group</summary>
22000 <param name="sender">The sender</param>
22001 <param name="e">The EventArgs object containing the packet data</param>
22002 </member> 23282 </member>
22003 <member name="M:OpenMetaverse.InventoryManager.ReplyTaskInventoryHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)"> 23283 <member name="F:OpenMetaverse.Messages.Linden.AgentGroupDataUpdateMessage.GroupData.GroupID">
22004 <summary>Process an incoming packet and raise the appropriate events</summary> 23284 <summary>The Groups <seealso cref="T:OpenMetaverse.UUID" /></summary>
22005 <param name="sender">The sender</param>
22006 <param name="e">The EventArgs object containing the packet data</param>
22007 </member> 23285 </member>
22008 <member name="E:OpenMetaverse.InventoryManager.ItemReceived"> 23286 <member name="F:OpenMetaverse.Messages.Linden.AgentGroupDataUpdateMessage.GroupData.GroupInsigniaID">
22009 <summary>Raised when the simulator sends us data containing 23287 <summary>The <seealso cref="T:OpenMetaverse.UUID" /> of the groups insignia</summary>
22010 ...</summary>
22011 </member> 23288 </member>
22012 <member name="E:OpenMetaverse.InventoryManager.FolderUpdated"> 23289 <member name="F:OpenMetaverse.Messages.Linden.AgentGroupDataUpdateMessage.GroupData.GroupName">
22013 <summary>Raised when the simulator sends us data containing 23290 <summary>The name of the group</summary>
22014 ...</summary>
22015 </member> 23291 </member>
22016 <member name="E:OpenMetaverse.InventoryManager.InventoryObjectOffered"> 23292 <member name="F:OpenMetaverse.Messages.Linden.AgentGroupDataUpdateMessage.GroupData.GroupPowers">
22017 <summary>Raised when the simulator sends us data containing 23293 <summary>The aggregate permissions the agent has in the group for all roles the agent
22018 an inventory object sent by another avatar or primitive</summary> 23294 is assigned</summary>
22019 </member> 23295 </member>
22020 <member name="E:OpenMetaverse.InventoryManager.TaskItemReceived"> 23296 <member name="T:OpenMetaverse.Messages.Linden.AgentGroupDataUpdateMessage.NewGroupData">
22021 <summary>Raised when the simulator sends us data containing 23297 <summary>An optional block containing additional agent specific information</summary>
22022 ...</summary>
22023 </member> 23298 </member>
22024 <member name="E:OpenMetaverse.InventoryManager.FindObjectByPathReply"> 23299 <member name="F:OpenMetaverse.Messages.Linden.AgentGroupDataUpdateMessage.NewGroupData.ListInProfile">
22025 <summary>Raised when the simulator sends us data containing 23300 <summary>true of the agent allows this group to be
22026 ...</summary> 23301 listed in their profile</summary>
22027 </member> 23302 </member>
22028 <member name="E:OpenMetaverse.InventoryManager.TaskInventoryReply"> 23303 <member name="F:OpenMetaverse.Messages.Linden.AgentGroupDataUpdateMessage.AgentID">
22029 <summary>Raised when the simulator sends us data containing 23304 <summary>The Agent receiving the message</summary>
22030 ...</summary>
22031 </member> 23305 </member>
22032 <member name="E:OpenMetaverse.InventoryManager.SaveAssetToInventory"> 23306 <member name="F:OpenMetaverse.Messages.Linden.AgentGroupDataUpdateMessage.GroupDataBlock">
22033 <summary>Raised when the simulator sends us data containing 23307 <summary>An array containing <seealso cref="T:OpenMetaverse.Messages.Linden.AgentGroupDataUpdateMessage.GroupData" /> information
22034 ...</summary> 23308 for each <see cref="T:OpenMetaverse.Group" /> the agent is a member of</summary>
22035 </member> 23309 </member>
22036 <member name="E:OpenMetaverse.InventoryManager.ScriptRunningReply"> 23310 <member name="F:OpenMetaverse.Messages.Linden.AgentGroupDataUpdateMessage.NewGroupDataBlock">
22037 <summary>Raised when the simulator sends us data containing 23311 <summary>An array containing <seealso cref="T:OpenMetaverse.Messages.Linden.AgentGroupDataUpdateMessage.NewGroupData" /> information
22038 ...</summary> 23312 for each <see cref="T:OpenMetaverse.Group" /> the agent is a member of</summary>
22039 </member> 23313 </member>
22040 <member name="P:OpenMetaverse.InventoryManager.Store"> 23314 <member name="M:OpenMetaverse.Messages.Linden.AgentGroupDataUpdateMessage.Serialize">
22041 <summary> 23315 <summary>
22042 Get this agents Inventory data 23316 Serialize the object
22043 </summary> 23317 </summary>
23318 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the objects data</returns>
22044 </member> 23319 </member>
22045 <member name="T:OpenMetaverse.InventoryManager.ItemCreatedCallback"> 23320 <member name="M:OpenMetaverse.Messages.Linden.AgentGroupDataUpdateMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
22046 <summary> 23321 <summary>
22047 Callback for inventory item creation finishing 23322 Deserialize the message
22048 </summary> 23323 </summary>
22049 <param name="success">Whether the request to create an inventory 23324 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the data</param>
22050 item succeeded or not</param>
22051 <param name="item">Inventory item being created. If success is
22052 false this will be null</param>
22053 </member> 23325 </member>
22054 <member name="T:OpenMetaverse.InventoryManager.ItemCreatedFromAssetCallback"> 23326 <member name="T:OpenMetaverse.Messages.Linden.UpdateAgentLanguageMessage">
22055 <summary> 23327 <summary>
22056 Callback for an inventory item being create from an uploaded asset 23328 A message sent from the viewer to the simulator which
23329 specifies the language and permissions for others to detect
23330 the language specified
22057 </summary> 23331 </summary>
22058 <param name="success">true if inventory item creation was successful</param>
22059 <param name="status"></param>
22060 <param name="itemID"></param>
22061 <param name="assetID"></param>
22062 </member> 23332 </member>
22063 <member name="T:OpenMetaverse.InventoryManager.ItemCopiedCallback"> 23333 <member name="F:OpenMetaverse.Messages.Linden.UpdateAgentLanguageMessage.Language">
23334 <summary>A string containng the default language
23335 to use for the agent</summary>
23336 </member>
23337 <member name="F:OpenMetaverse.Messages.Linden.UpdateAgentLanguageMessage.LanguagePublic">
23338 <summary>true of others are allowed to
23339 know the language setting</summary>
23340 </member>
23341 <member name="M:OpenMetaverse.Messages.Linden.UpdateAgentLanguageMessage.Serialize">
22064 <summary> 23342 <summary>
22065 23343 Serialize the object
22066 </summary> 23344 </summary>
22067 <param name="item"></param> 23345 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the objects data</returns>
22068 </member> 23346 </member>
22069 <member name="T:OpenMetaverse.InventoryManager.InventoryUploadedAssetCallback"> 23347 <member name="M:OpenMetaverse.Messages.Linden.UpdateAgentLanguageMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
22070 <summary> 23348 <summary>
22071 Reply received when uploading an inventory asset 23349 Deserialize the message
22072 </summary> 23350 </summary>
22073 <param name="success">Has upload been successful</param> 23351 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the data</param>
22074 <param name="status">Error message if upload failed</param>
22075 <param name="itemID">Inventory asset UUID</param>
22076 <param name="assetID">New asset UUID</param>
22077 </member> 23352 </member>
22078 <member name="T:OpenMetaverse.InventoryManager.ScriptUpdatedCallback"> 23353 <member name="T:OpenMetaverse.Messages.Linden.AgentDropGroupMessage">
22079 <summary> 23354 <summary>
22080 Delegate that is invoked when script upload is completed 23355 An EventQueue message sent from the simulator to an agent when the agent
23356 leaves a group
22081 </summary> 23357 </summary>
22082 <param name="uploadSuccess">Has upload succeded (note, there still might be compile errors)</param>
22083 <param name="uploadStatus">Upload status message</param>
22084 <param name="compileSuccess">Is compilation successful</param>
22085 <param name="compileMessages">If compilation failed, list of error messages, null on compilation success</param>
22086 <param name="itemID">Script inventory UUID</param>
22087 <param name="assetID">Script's new asset UUID</param>
22088 </member> 23358 </member>
22089 <member name="P:OpenMetaverse.InventoryObjectOfferedEventArgs.Accept"> 23359 <member name="T:OpenMetaverse.Messages.Linden.AgentDropGroupMessage.AgentData">
22090 <summary>Set to true to accept offer, false to decline it</summary> 23360 <summary>An object containing the Agents UUID, and the Groups UUID</summary>
22091 </member> 23361 </member>
22092 <member name="P:OpenMetaverse.InventoryObjectOfferedEventArgs.FolderID"> 23362 <member name="F:OpenMetaverse.Messages.Linden.AgentDropGroupMessage.AgentData.AgentID">
22093 <summary>The folder to accept the inventory into, if null default folder for <see cref="P:OpenMetaverse.InventoryObjectOfferedEventArgs.AssetType"/> will be used</summary> 23363 <summary>The ID of the Agent leaving the group</summary>
22094 </member> 23364 </member>
22095 <member name="T:OpenMetaverse.TaskItemReceivedEventArgs"> 23365 <member name="F:OpenMetaverse.Messages.Linden.AgentDropGroupMessage.AgentData.GroupID">
23366 <summary>The GroupID the Agent is leaving</summary>
23367 </member>
23368 <member name="F:OpenMetaverse.Messages.Linden.AgentDropGroupMessage.AgentDataBlock">
22096 <summary> 23369 <summary>
22097 Callback when an inventory object is accepted and received from a 23370 An Array containing the AgentID and GroupID
22098 task inventory. This is the callback in which you actually get
22099 the ItemID, as in ObjectOfferedCallback it is null when received
22100 from a task.
22101 </summary> 23371 </summary>
22102 </member> 23372 </member>
22103 <member name="T:OpenMetaverse.GridLayerType"> 23373 <member name="M:OpenMetaverse.Messages.Linden.AgentDropGroupMessage.Serialize">
22104 <summary> 23374 <summary>
22105 Map layer request type 23375 Serialize the object
22106 </summary> 23376 </summary>
23377 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the objects data</returns>
22107 </member> 23378 </member>
22108 <member name="F:OpenMetaverse.GridLayerType.Objects"> 23379 <member name="M:OpenMetaverse.Messages.Linden.AgentDropGroupMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
22109 <summary>Objects and terrain are shown</summary>
22110 </member>
22111 <member name="F:OpenMetaverse.GridLayerType.Terrain">
22112 <summary>Only the terrain is shown, no objects</summary>
22113 </member>
22114 <member name="F:OpenMetaverse.GridLayerType.LandForSale">
22115 <summary>Overlay showing land for sale and for auction</summary>
22116 </member>
22117 <member name="T:OpenMetaverse.GridItemType">
22118 <summary> 23380 <summary>
22119 Type of grid item, such as telehub, event, populator location, etc. 23381 Deserialize the message
22120 </summary> 23382 </summary>
23383 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the data</param>
22121 </member> 23384 </member>
22122 <member name="F:OpenMetaverse.GridItemType.Telehub"> 23385 <member name="T:OpenMetaverse.Messages.Linden.AssetUploaderBlock">
22123 <summary>Telehub</summary> 23386 <summary>Base class for Asset uploads/results via Capabilities</summary>
22124 </member>
22125 <member name="F:OpenMetaverse.GridItemType.PgEvent">
22126 <summary>PG rated event</summary>
22127 </member>
22128 <member name="F:OpenMetaverse.GridItemType.MatureEvent">
22129 <summary>Mature rated event</summary>
22130 </member>
22131 <member name="F:OpenMetaverse.GridItemType.Popular">
22132 <summary>Popular location</summary>
22133 </member>
22134 <member name="F:OpenMetaverse.GridItemType.AgentLocations">
22135 <summary>Locations of avatar groups in a region</summary>
22136 </member>
22137 <member name="F:OpenMetaverse.GridItemType.LandForSale">
22138 <summary>Land for sale</summary>
22139 </member>
22140 <member name="F:OpenMetaverse.GridItemType.Classified">
22141 <summary>Classified ad</summary>
22142 </member>
22143 <member name="F:OpenMetaverse.GridItemType.AdultEvent">
22144 <summary>Adult rated event</summary>
22145 </member>
22146 <member name="F:OpenMetaverse.GridItemType.AdultLandForSale">
22147 <summary>Adult land for sale</summary>
22148 </member> 23387 </member>
22149 <member name="T:OpenMetaverse.GridRegion"> 23388 <member name="F:OpenMetaverse.Messages.Linden.AssetUploaderBlock.State">
22150 <summary> 23389 <summary>
22151 Information about a region on the grid map 23390 The request state
22152 </summary> 23391 </summary>
22153 </member> 23392 </member>
22154 <member name="F:OpenMetaverse.GridRegion.X"> 23393 <member name="M:OpenMetaverse.Messages.Linden.AssetUploaderBlock.Serialize">
22155 <summary>Sim X position on World Map</summary> 23394 <summary>
22156 </member> 23395 Serialize the object
22157 <member name="F:OpenMetaverse.GridRegion.Y"> 23396 </summary>
22158 <summary>Sim Y position on World Map</summary> 23397 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the objects data</returns>
22159 </member> 23398 </member>
22160 <member name="F:OpenMetaverse.GridRegion.Name"> 23399 <member name="M:OpenMetaverse.Messages.Linden.AssetUploaderBlock.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
22161 <summary>Sim Name (NOTE: In lowercase!)</summary> 23400 <summary>
23401 Deserialize the message
23402 </summary>
23403 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the data</param>
22162 </member> 23404 </member>
22163 <member name="F:OpenMetaverse.GridRegion.Access"> 23405 <member name="T:OpenMetaverse.Messages.Linden.UploaderRequestUpload">
22164 <summary></summary> 23406 <summary>
23407 A message sent from the viewer to the simulator to request a temporary upload capability
23408 which allows an asset to be uploaded
23409 </summary>
22165 </member> 23410 </member>
22166 <member name="F:OpenMetaverse.GridRegion.RegionFlags"> 23411 <member name="F:OpenMetaverse.Messages.Linden.UploaderRequestUpload.Url">
22167 <summary>Appears to always be zero (None)</summary> 23412 <summary>The Capability URL sent by the simulator to upload the baked texture to</summary>
22168 </member> 23413 </member>
22169 <member name="F:OpenMetaverse.GridRegion.WaterHeight"> 23414 <member name="T:OpenMetaverse.Messages.Linden.UploaderRequestComplete">
22170 <summary>Sim's defined Water Height</summary> 23415 <summary>
23416 A message sent from the simulator that will inform the agent the upload is complete,
23417 and the UUID of the uploaded asset
23418 </summary>
22171 </member> 23419 </member>
22172 <member name="F:OpenMetaverse.GridRegion.Agents"> 23420 <member name="F:OpenMetaverse.Messages.Linden.UploaderRequestComplete.AssetID">
22173 <summary></summary> 23421 <summary>The uploaded texture asset ID</summary>
22174 </member> 23422 </member>
22175 <member name="F:OpenMetaverse.GridRegion.MapImageID"> 23423 <member name="T:OpenMetaverse.Messages.Linden.UploadBakedTextureMessage">
22176 <summary>UUID of the World Map image</summary> 23424 <summary>
23425 A message sent from the viewer to the simulator to request a temporary
23426 capability URI which is used to upload an agents baked appearance textures
23427 </summary>
22177 </member> 23428 </member>
22178 <member name="F:OpenMetaverse.GridRegion.RegionHandle"> 23429 <member name="F:OpenMetaverse.Messages.Linden.UploadBakedTextureMessage.Request">
22179 <summary>Unique identifier for this region, a combination of the X 23430 <summary>Object containing request or response</summary>
22180 and Y position</summary>
22181 </member> 23431 </member>
22182 <member name="M:OpenMetaverse.GridRegion.ToString"> 23432 <member name="M:OpenMetaverse.Messages.Linden.UploadBakedTextureMessage.Serialize">
22183 <summary> 23433 <summary>
22184 23434 Serialize the object
22185 </summary> 23435 </summary>
22186 <returns></returns> 23436 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the objects data</returns>
22187 </member> 23437 </member>
22188 <member name="M:OpenMetaverse.GridRegion.GetHashCode"> 23438 <member name="M:OpenMetaverse.Messages.Linden.UploadBakedTextureMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
22189 <summary> 23439 <summary>
22190 23440 Deserialize the message
22191 </summary> 23441 </summary>
22192 <returns></returns> 23442 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the data</param>
22193 </member> 23443 </member>
22194 <member name="M:OpenMetaverse.GridRegion.Equals(System.Object)"> 23444 <member name="T:OpenMetaverse.Messages.Linden.RequiredVoiceVersionMessage">
22195 <summary> 23445 <summary>
22196 23446 A message sent from the simulator which indicates the minimum version required for
23447 using voice chat
22197 </summary> 23448 </summary>
22198 <param name="obj"></param>
22199 <returns></returns>
22200 </member> 23449 </member>
22201 <member name="T:OpenMetaverse.GridLayer"> 23450 <member name="F:OpenMetaverse.Messages.Linden.RequiredVoiceVersionMessage.MajorVersion">
23451 <summary>Major Version Required</summary>
23452 </member>
23453 <member name="F:OpenMetaverse.Messages.Linden.RequiredVoiceVersionMessage.MinorVersion">
23454 <summary>Minor version required</summary>
23455 </member>
23456 <member name="F:OpenMetaverse.Messages.Linden.RequiredVoiceVersionMessage.RegionName">
23457 <summary>The name of the region sending the version requrements</summary>
23458 </member>
23459 <member name="M:OpenMetaverse.Messages.Linden.RequiredVoiceVersionMessage.Serialize">
22202 <summary> 23460 <summary>
22203 Visual chunk of the grid map 23461 Serialize the object
22204 </summary> 23462 </summary>
23463 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the objects data</returns>
22205 </member> 23464 </member>
22206 <member name="T:OpenMetaverse.MapItem"> 23465 <member name="M:OpenMetaverse.Messages.Linden.RequiredVoiceVersionMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
22207 <summary> 23466 <summary>
22208 Base class for Map Items 23467 Deserialize the message
22209 </summary> 23468 </summary>
23469 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the data</param>
22210 </member> 23470 </member>
22211 <member name="F:OpenMetaverse.MapItem.GlobalX"> 23471 <member name="T:OpenMetaverse.Messages.Linden.ParcelVoiceInfoRequestMessage">
22212 <summary>The Global X position of the item</summary> 23472 <summary>
23473 A message sent from the simulator to the viewer containing the
23474 voice server URI
23475 </summary>
22213 </member> 23476 </member>
22214 <member name="F:OpenMetaverse.MapItem.GlobalY"> 23477 <member name="F:OpenMetaverse.Messages.Linden.ParcelVoiceInfoRequestMessage.ParcelID">
22215 <summary>The Global Y position of the item</summary> 23478 <summary>The Parcel ID which the voice server URI applies</summary>
22216 </member> 23479 </member>
22217 <member name="P:OpenMetaverse.MapItem.LocalX"> 23480 <member name="F:OpenMetaverse.Messages.Linden.ParcelVoiceInfoRequestMessage.RegionName">
22218 <summary>Get the Local X position of the item</summary> 23481 <summary>The name of the region</summary>
22219 </member> 23482 </member>
22220 <member name="P:OpenMetaverse.MapItem.LocalY"> 23483 <member name="F:OpenMetaverse.Messages.Linden.ParcelVoiceInfoRequestMessage.SipChannelUri">
22221 <summary>Get the Local Y position of the item</summary> 23484 <summary>A uri containing the server/channel information
23485 which the viewer can utilize to participate in voice conversations</summary>
22222 </member> 23486 </member>
22223 <member name="P:OpenMetaverse.MapItem.RegionHandle"> 23487 <member name="M:OpenMetaverse.Messages.Linden.ParcelVoiceInfoRequestMessage.Serialize">
22224 <summary>Get the Handle of the region</summary> 23488 <summary>
23489 Serialize the object
23490 </summary>
23491 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the objects data</returns>
22225 </member> 23492 </member>
22226 <member name="T:OpenMetaverse.MapAgentLocation"> 23493 <member name="M:OpenMetaverse.Messages.Linden.ParcelVoiceInfoRequestMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
22227 <summary> 23494 <summary>
22228 Represents an agent or group of agents location 23495 Deserialize the message
22229 </summary> 23496 </summary>
23497 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the data</param>
22230 </member> 23498 </member>
22231 <member name="T:OpenMetaverse.MapTelehub"> 23499 <member name="T:OpenMetaverse.Messages.Linden.ProvisionVoiceAccountRequestMessage">
22232 <summary> 23500 <summary>
22233 Represents a Telehub location
22234 </summary> 23501 </summary>
22235 </member> 23502 </member>
22236 <member name="T:OpenMetaverse.MapLandForSale"> 23503 <member name="F:OpenMetaverse.Messages.Linden.ProvisionVoiceAccountRequestMessage.Password">
22237 <summary> 23504 <summary>
22238 Represents a non-adult parcel of land for sale
22239 </summary> 23505 </summary>
22240 </member> 23506 </member>
22241 <member name="T:OpenMetaverse.MapAdultLandForSale"> 23507 <member name="F:OpenMetaverse.Messages.Linden.ProvisionVoiceAccountRequestMessage.Username">
22242 <summary> 23508 <summary>
22243 Represents an Adult parcel of land for sale
22244 </summary> 23509 </summary>
22245 </member> 23510 </member>
22246 <member name="T:OpenMetaverse.MapPGEvent"> 23511 <member name="M:OpenMetaverse.Messages.Linden.ProvisionVoiceAccountRequestMessage.Serialize">
22247 <summary> 23512 <summary>
22248 Represents a PG Event 23513 Serialize the object
22249 </summary> 23514 </summary>
23515 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the objects data</returns>
22250 </member> 23516 </member>
22251 <member name="T:OpenMetaverse.MapMatureEvent"> 23517 <member name="M:OpenMetaverse.Messages.Linden.ProvisionVoiceAccountRequestMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
22252 <summary> 23518 <summary>
22253 Represents a Mature event 23519 Deserialize the message
22254 </summary> 23520 </summary>
23521 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the data</param>
22255 </member> 23522 </member>
22256 <member name="T:OpenMetaverse.MapAdultEvent"> 23523 <member name="T:OpenMetaverse.Messages.Linden.UploadScriptTaskMessage">
22257 <summary> 23524 <summary>
22258 Represents an Adult event 23525 A message sent by the viewer to the simulator to request a temporary
23526 capability for a script contained with in a Tasks inventory to be updated
22259 </summary> 23527 </summary>
22260 </member> 23528 </member>
22261 <member name="T:OpenMetaverse.GridManager"> 23529 <member name="F:OpenMetaverse.Messages.Linden.UploadScriptTaskMessage.Request">
23530 <summary>Object containing request or response</summary>
23531 </member>
23532 <member name="M:OpenMetaverse.Messages.Linden.UploadScriptTaskMessage.Serialize">
22262 <summary> 23533 <summary>
22263 Manages grid-wide tasks such as the world map 23534 Serialize the object
22264 </summary> 23535 </summary>
23536 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the objects data</returns>
22265 </member> 23537 </member>
22266 <member name="F:OpenMetaverse.GridManager.m_CoarseLocationUpdate"> 23538 <member name="M:OpenMetaverse.Messages.Linden.UploadScriptTaskMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
22267 <summary>The event subscribers. null if no subcribers</summary> 23539 <summary>
23540 Deserialize the message
23541 </summary>
23542 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the data</param>
22268 </member> 23543 </member>
22269 <member name="M:OpenMetaverse.GridManager.OnCoarseLocationUpdate(OpenMetaverse.CoarseLocationUpdateEventArgs)"> 23544 <member name="T:OpenMetaverse.Messages.Linden.ScriptRunningReplyMessage">
22270 <summary>Raises the CoarseLocationUpdate event</summary> 23545 <summary>
22271 <param name="e">A CoarseLocationUpdateEventArgs object containing the 23546 A message sent from the simulator to the viewer to indicate
22272 data sent by simulator</param> 23547 a Tasks scripts status.
23548 </summary>
22273 </member> 23549 </member>
22274 <member name="F:OpenMetaverse.GridManager.m_CoarseLocationUpdateLock"> 23550 <member name="F:OpenMetaverse.Messages.Linden.ScriptRunningReplyMessage.ItemID">
22275 <summary>Thread sync lock object</summary> 23551 <summary>The Asset ID of the script</summary>
22276 </member> 23552 </member>
22277 <member name="F:OpenMetaverse.GridManager.m_GridRegion"> 23553 <member name="F:OpenMetaverse.Messages.Linden.ScriptRunningReplyMessage.Mono">
22278 <summary>The event subscribers. null if no subcribers</summary> 23554 <summary>True of the script is compiled/ran using the mono interpreter, false indicates it
23555 uses the older less efficient lsl2 interprter</summary>
22279 </member> 23556 </member>
22280 <member name="M:OpenMetaverse.GridManager.OnGridRegion(OpenMetaverse.GridRegionEventArgs)"> 23557 <member name="F:OpenMetaverse.Messages.Linden.ScriptRunningReplyMessage.ObjectID">
22281 <summary>Raises the GridRegion event</summary> 23558 <summary>The Task containing the scripts <seealso cref="T:OpenMetaverse.UUID" /></summary>
22282 <param name="e">A GridRegionEventArgs object containing the
22283 data sent by simulator</param>
22284 </member> 23559 </member>
22285 <member name="F:OpenMetaverse.GridManager.m_GridRegionLock"> 23560 <member name="F:OpenMetaverse.Messages.Linden.ScriptRunningReplyMessage.Running">
22286 <summary>Thread sync lock object</summary> 23561 <summary>true of the script is in a running state</summary>
22287 </member> 23562 </member>
22288 <member name="F:OpenMetaverse.GridManager.m_GridLayer"> 23563 <member name="M:OpenMetaverse.Messages.Linden.ScriptRunningReplyMessage.Serialize">
22289 <summary>The event subscribers. null if no subcribers</summary> 23564 <summary>
23565 Serialize the object
23566 </summary>
23567 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the objects data</returns>
22290 </member> 23568 </member>
22291 <member name="M:OpenMetaverse.GridManager.OnGridLayer(OpenMetaverse.GridLayerEventArgs)"> 23569 <member name="M:OpenMetaverse.Messages.Linden.ScriptRunningReplyMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
22292 <summary>Raises the GridLayer event</summary> 23570 <summary>
22293 <param name="e">A GridLayerEventArgs object containing the 23571 Deserialize the message
22294 data sent by simulator</param> 23572 </summary>
23573 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the data</param>
22295 </member> 23574 </member>
22296 <member name="F:OpenMetaverse.GridManager.m_GridLayerLock"> 23575 <member name="T:OpenMetaverse.Messages.Linden.UpdateGestureAgentInventoryMessage">
22297 <summary>Thread sync lock object</summary> 23576 <summary>
23577 A message containing the request/response used for updating a gesture
23578 contained with an agents inventory
23579 </summary>
22298 </member> 23580 </member>
22299 <member name="F:OpenMetaverse.GridManager.m_GridItems"> 23581 <member name="F:OpenMetaverse.Messages.Linden.UpdateGestureAgentInventoryMessage.Request">
22300 <summary>The event subscribers. null if no subcribers</summary> 23582 <summary>Object containing request or response</summary>
22301 </member> 23583 </member>
22302 <member name="M:OpenMetaverse.GridManager.OnGridItems(OpenMetaverse.GridItemsEventArgs)"> 23584 <member name="M:OpenMetaverse.Messages.Linden.UpdateGestureAgentInventoryMessage.Serialize">
22303 <summary>Raises the GridItems event</summary> 23585 <summary>
22304 <param name="e">A GridItemEventArgs object containing the 23586 Serialize the object
22305 data sent by simulator</param> 23587 </summary>
23588 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the objects data</returns>
22306 </member> 23589 </member>
22307 <member name="F:OpenMetaverse.GridManager.m_GridItemsLock"> 23590 <member name="M:OpenMetaverse.Messages.Linden.UpdateGestureAgentInventoryMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
22308 <summary>Thread sync lock object</summary> 23591 <summary>
23592 Deserialize the message
23593 </summary>
23594 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the data</param>
22309 </member> 23595 </member>
22310 <member name="F:OpenMetaverse.GridManager.m_RegionHandleReply"> 23596 <member name="T:OpenMetaverse.Messages.Linden.UpdateNotecardTaskInventoryMessage">
22311 <summary>The event subscribers. null if no subcribers</summary> 23597 <summary>
23598 A message request/response which is used to update a notecard contained within
23599 a tasks inventory
23600 </summary>
22312 </member> 23601 </member>
22313 <member name="M:OpenMetaverse.GridManager.OnRegionHandleReply(OpenMetaverse.RegionHandleReplyEventArgs)"> 23602 <member name="F:OpenMetaverse.Messages.Linden.UpdateNotecardTaskInventoryMessage.TaskID">
22314 <summary>Raises the RegionHandleReply event</summary> 23603 <summary>The <seealso cref="T:OpenMetaverse.UUID" /> of the Task containing the notecard asset to update</summary>
22315 <param name="e">A RegionHandleReplyEventArgs object containing the
22316 data sent by simulator</param>
22317 </member> 23604 </member>
22318 <member name="F:OpenMetaverse.GridManager.m_RegionHandleReplyLock"> 23605 <member name="F:OpenMetaverse.Messages.Linden.UpdateNotecardTaskInventoryMessage.ItemID">
22319 <summary>Thread sync lock object</summary> 23606 <summary>The notecard assets <seealso cref="T:OpenMetaverse.UUID" /> contained in the tasks inventory</summary>
22320 </member> 23607 </member>
22321 <member name="F:OpenMetaverse.GridManager.Regions"> 23608 <member name="M:OpenMetaverse.Messages.Linden.UpdateNotecardTaskInventoryMessage.Serialize">
22322 <summary>A dictionary of all the regions, indexed by region name</summary> 23609 <summary>
23610 Serialize the object
23611 </summary>
23612 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the objects data</returns>
22323 </member> 23613 </member>
22324 <member name="F:OpenMetaverse.GridManager.RegionsByHandle"> 23614 <member name="M:OpenMetaverse.Messages.Linden.UpdateNotecardTaskInventoryMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
22325 <summary>A dictionary of all the regions, indexed by region handle</summary> 23615 <summary>
23616 Deserialize the message
23617 </summary>
23618 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the data</param>
22326 </member> 23619 </member>
22327 <member name="M:OpenMetaverse.GridManager.#ctor(OpenMetaverse.GridClient)"> 23620 <member name="T:OpenMetaverse.Messages.Linden.UpdateAgentInventoryRequestMessage">
22328 <summary> 23621 <summary>
22329 Constructor 23622 A reusable class containing a message sent from the viewer to the simulator to request a temporary uploader capability
23623 which is used to update an asset in an agents inventory
22330 </summary> 23624 </summary>
22331 <param name="client">Instance of GridClient object to associate with this GridManager instance</param>
22332 </member> 23625 </member>
22333 <member name="M:OpenMetaverse.GridManager.RequestMapLayer(OpenMetaverse.GridLayerType)"> 23626 <member name="F:OpenMetaverse.Messages.Linden.UpdateAgentInventoryRequestMessage.ItemID">
22334 <summary> 23627 <summary>
22335 23628 The Notecard AssetID to replace
22336 </summary> 23629 </summary>
22337 <param name="layer"></param>
22338 </member> 23630 </member>
22339 <member name="M:OpenMetaverse.GridManager.RequestMapRegion(System.String,OpenMetaverse.GridLayerType)"> 23631 <member name="M:OpenMetaverse.Messages.Linden.UpdateAgentInventoryRequestMessage.Serialize">
22340 <summary> 23632 <summary>
22341 Request a map layer 23633 Serialize the object
22342 </summary> 23634 </summary>
22343 <param name="regionName">The name of the region</param> 23635 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the objects data</returns>
22344 <param name="layer">The type of layer</param>
22345 </member> 23636 </member>
22346 <member name="M:OpenMetaverse.GridManager.RequestMapBlocks(OpenMetaverse.GridLayerType,System.UInt16,System.UInt16,System.UInt16,System.UInt16,System.Boolean)"> 23637 <member name="M:OpenMetaverse.Messages.Linden.UpdateAgentInventoryRequestMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
22347 <summary> 23638 <summary>
22348 23639 Deserialize the message
22349 </summary> 23640 </summary>
22350 <param name="layer"></param> 23641 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the data</param>
22351 <param name="minX"></param>
22352 <param name="minY"></param>
22353 <param name="maxX"></param>
22354 <param name="maxY"></param>
22355 <param name="returnNonExistent"></param>
22356 </member> 23642 </member>
22357 <member name="M:OpenMetaverse.GridManager.MapItems(System.UInt64,OpenMetaverse.GridItemType,OpenMetaverse.GridLayerType,System.Int32)"> 23643 <member name="T:OpenMetaverse.Messages.Linden.UpdateNotecardAgentInventoryMessage">
22358 <summary> 23644 <summary>
22359 23645 A message containing the request/response used for updating a notecard
23646 contained with an agents inventory
22360 </summary> 23647 </summary>
22361 <param name="regionHandle"></param>
22362 <param name="item"></param>
22363 <param name="layer"></param>
22364 <param name="timeoutMS"></param>
22365 <returns></returns>
22366 </member> 23648 </member>
22367 <member name="M:OpenMetaverse.GridManager.RequestMapItems(System.UInt64,OpenMetaverse.GridItemType,OpenMetaverse.GridLayerType)"> 23649 <member name="F:OpenMetaverse.Messages.Linden.UpdateNotecardAgentInventoryMessage.Request">
23650 <summary>Object containing request or response</summary>
23651 </member>
23652 <member name="M:OpenMetaverse.Messages.Linden.UpdateNotecardAgentInventoryMessage.Serialize">
22368 <summary> 23653 <summary>
22369 23654 Serialize the object
22370 </summary> 23655 </summary>
22371 <param name="regionHandle"></param> 23656 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the objects data</returns>
22372 <param name="item"></param>
22373 <param name="layer"></param>
22374 </member> 23657 </member>
22375 <member name="M:OpenMetaverse.GridManager.RequestMainlandSims(OpenMetaverse.GridLayerType)"> 23658 <member name="M:OpenMetaverse.Messages.Linden.UpdateNotecardAgentInventoryMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
22376 <summary> 23659 <summary>
22377 Request data for all mainland (Linden managed) simulators 23660 Deserialize the message
22378 </summary> 23661 </summary>
23662 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the data</param>
22379 </member> 23663 </member>
22380 <member name="M:OpenMetaverse.GridManager.RequestRegionHandle(OpenMetaverse.UUID)"> 23664 <member name="M:OpenMetaverse.Messages.Linden.CopyInventoryFromNotecardMessage.Serialize">
22381 <summary> 23665 <summary>
22382 Request the region handle for the specified region UUID 23666 Serialize the object
22383 </summary> 23667 </summary>
22384 <param name="regionID">UUID of the region to look up</param> 23668 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the objects data</returns>
22385 </member> 23669 </member>
22386 <member name="M:OpenMetaverse.GridManager.GetGridRegion(System.String,OpenMetaverse.GridLayerType,OpenMetaverse.GridRegion@)"> 23670 <member name="M:OpenMetaverse.Messages.Linden.CopyInventoryFromNotecardMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
22387 <summary> 23671 <summary>
22388 Get grid region information using the region name, this function 23672 Deserialize the message
22389 will block until it can find the region or gives up
22390 </summary> 23673 </summary>
22391 <param name="name">Name of sim you're looking for</param> 23674 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the data</param>
22392 <param name="layer">Layer that you are requesting</param>
22393 <param name="region">Will contain a GridRegion for the sim you're
22394 looking for if successful, otherwise an empty structure</param>
22395 <returns>True if the GridRegion was successfully fetched, otherwise
22396 false</returns>
22397 </member> 23675 </member>
22398 <member name="M:OpenMetaverse.GridManager.MapBlockReplyHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)"> 23676 <member name="T:OpenMetaverse.Messages.Linden.UploaderScriptRequestError">
22399 <summary>Process an incoming packet and raise the appropriate events</summary> 23677 <summary>
22400 <param name="sender">The sender</param> 23678 A message sent from the simulator to the viewer which indicates
22401 <param name="e">The EventArgs object containing the packet data</param> 23679 an error occurred while attempting to update a script in an agents or tasks
23680 inventory
23681 </summary>
22402 </member> 23682 </member>
22403 <member name="M:OpenMetaverse.GridManager.MapItemReplyHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)"> 23683 <member name="F:OpenMetaverse.Messages.Linden.UploaderScriptRequestError.Compiled">
22404 <summary>Process an incoming packet and raise the appropriate events</summary> 23684 <summary>true of the script was successfully compiled by the simulator</summary>
22405 <param name="sender">The sender</param>
22406 <param name="e">The EventArgs object containing the packet data</param>
22407 </member> 23685 </member>
22408 <member name="M:OpenMetaverse.GridManager.SimulatorViewerTimeMessageHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)"> 23686 <member name="F:OpenMetaverse.Messages.Linden.UploaderScriptRequestError.Error">
22409 <summary>Process an incoming packet and raise the appropriate events</summary> 23687 <summary>A string containing the error which occured while trying
22410 <param name="sender">The sender</param> 23688 to update the script</summary>
22411 <param name="e">The EventArgs object containing the packet data</param>
22412 </member> 23689 </member>
22413 <member name="M:OpenMetaverse.GridManager.CoarseLocationHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)"> 23690 <member name="F:OpenMetaverse.Messages.Linden.UploaderScriptRequestError.AssetID">
22414 <summary>Process an incoming packet and raise the appropriate events</summary> 23691 <summary>A new AssetID assigned to the script</summary>
22415 <param name="sender">The sender</param>
22416 <param name="e">The EventArgs object containing the packet data</param>
22417 </member> 23692 </member>
22418 <member name="M:OpenMetaverse.GridManager.RegionHandleReplyHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)"> 23693 <member name="T:OpenMetaverse.Messages.Linden.UpdateScriptTaskUpdateMessage">
22419 <summary>Process an incoming packet and raise the appropriate events</summary> 23694 <summary>
22420 <param name="sender">The sender</param> 23695 A message sent from the viewer to the simulator
22421 <param name="e">The EventArgs object containing the packet data</param> 23696 requesting the update of an existing script contained
23697 within a tasks inventory
23698 </summary>
22422 </member> 23699 </member>
22423 <member name="E:OpenMetaverse.GridManager.CoarseLocationUpdate"> 23700 <member name="F:OpenMetaverse.Messages.Linden.UpdateScriptTaskUpdateMessage.ScriptRunning">
22424 <summary>Raised when the simulator sends a <see cref="T:OpenMetaverse.Packets.CoarseLocationUpdatePacket"/> 23701 <summary>if true, set the script mode to running</summary>
22425 containing the location of agents in the simulator</summary>
22426 </member> 23702 </member>
22427 <member name="E:OpenMetaverse.GridManager.GridRegion"> 23703 <member name="F:OpenMetaverse.Messages.Linden.UpdateScriptTaskUpdateMessage.ItemID">
22428 <summary>Raised when the simulator sends a Region Data in response to 23704 <summary>The scripts InventoryItem ItemID to update</summary>
22429 a Map request</summary>
22430 </member> 23705 </member>
22431 <member name="E:OpenMetaverse.GridManager.GridLayer"> 23706 <member name="F:OpenMetaverse.Messages.Linden.UpdateScriptTaskUpdateMessage.Target">
22432 <summary>Raised when the simulator sends GridLayer object containing 23707 <summary>A lowercase string containing either "mono" or "lsl2" which
22433 a map tile coordinates and texture information</summary> 23708 specifies the script is compiled and ran on the mono runtime, or the older
23709 lsl runtime</summary>
22434 </member> 23710 </member>
22435 <member name="E:OpenMetaverse.GridManager.GridItems"> 23711 <member name="F:OpenMetaverse.Messages.Linden.UpdateScriptTaskUpdateMessage.TaskID">
22436 <summary>Raised when the simulator sends GridItems object containing 23712 <summary>The tasks <see cref="T:OpenMetaverse.UUID" /> which contains the script to update</summary>
22437 details on events, land sales at a specific location</summary>
22438 </member> 23713 </member>
22439 <member name="E:OpenMetaverse.GridManager.RegionHandleReply"> 23714 <member name="M:OpenMetaverse.Messages.Linden.UpdateScriptTaskUpdateMessage.Serialize">
22440 <summary>Raised in response to a Region lookup</summary> 23715 <summary>
23716 Serialize the object
23717 </summary>
23718 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the objects data</returns>
22441 </member> 23719 </member>
22442 <member name="P:OpenMetaverse.GridManager.SunPhase"> 23720 <member name="M:OpenMetaverse.Messages.Linden.UpdateScriptTaskUpdateMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
22443 <summary>Unknown</summary> 23721 <summary>
23722 Deserialize the message
23723 </summary>
23724 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the data</param>
22444 </member> 23725 </member>
22445 <member name="P:OpenMetaverse.GridManager.SunDirection"> 23726 <member name="T:OpenMetaverse.Messages.Linden.UpdateScriptTaskMessage">
22446 <summary>Current direction of the sun</summary> 23727 <summary>
23728 A message containing either the request or response used in updating a script inside
23729 a tasks inventory
23730 </summary>
22447 </member> 23731 </member>
22448 <member name="P:OpenMetaverse.GridManager.SunAngVelocity"> 23732 <member name="F:OpenMetaverse.Messages.Linden.UpdateScriptTaskMessage.Request">
22449 <summary>Current angular velocity of the sun</summary> 23733 <summary>Object containing request or response</summary>
22450 </member> 23734 </member>
22451 <member name="P:OpenMetaverse.GridManager.WorldTime"> 23735 <member name="M:OpenMetaverse.Messages.Linden.UpdateScriptTaskMessage.Serialize">
22452 <summary>Current world time</summary> 23736 <summary>
23737 Serialize the object
23738 </summary>
23739 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the objects data</returns>
22453 </member> 23740 </member>
22454 <member name="T:OpenMetaverse.LoginStatus"> 23741 <member name="M:OpenMetaverse.Messages.Linden.UpdateScriptTaskMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
22455 <summary> 23742 <summary>
22456 23743 Deserialize the message
22457 </summary> 23744 </summary>
23745 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the data</param>
22458 </member> 23746 </member>
22459 <member name="F:OpenMetaverse.LoginStatus.Failed"> 23747 <member name="T:OpenMetaverse.Messages.Linden.UploaderRequestScriptComplete">
22460 <summary></summary> 23748 <summary>
23749 Response from the simulator to notify the viewer the upload is completed, and
23750 the UUID of the script asset and its compiled status
23751 </summary>
22461 </member> 23752 </member>
22462 <member name="F:OpenMetaverse.LoginStatus.None"> 23753 <member name="F:OpenMetaverse.Messages.Linden.UploaderRequestScriptComplete.AssetID">
22463 <summary></summary> 23754 <summary>The uploaded texture asset ID</summary>
22464 </member> 23755 </member>
22465 <member name="F:OpenMetaverse.LoginStatus.ConnectingToLogin"> 23756 <member name="F:OpenMetaverse.Messages.Linden.UploaderRequestScriptComplete.Compiled">
22466 <summary></summary> 23757 <summary>true of the script was compiled successfully</summary>
22467 </member> 23758 </member>
22468 <member name="F:OpenMetaverse.LoginStatus.ReadingResponse"> 23759 <member name="T:OpenMetaverse.Messages.Linden.UpdateScriptAgentRequestMessage">
22469 <summary></summary> 23760 <summary>
23761 A message sent from a viewer to the simulator requesting a temporary uploader capability
23762 used to update a script contained in an agents inventory
23763 </summary>
22470 </member> 23764 </member>
22471 <member name="F:OpenMetaverse.LoginStatus.ConnectingToSim"> 23765 <member name="F:OpenMetaverse.Messages.Linden.UpdateScriptAgentRequestMessage.ItemID">
22472 <summary></summary> 23766 <summary>The existing asset if of the script in the agents inventory to replace</summary>
22473 </member> 23767 </member>
22474 <member name="F:OpenMetaverse.LoginStatus.Redirecting"> 23768 <member name="F:OpenMetaverse.Messages.Linden.UpdateScriptAgentRequestMessage.Target">
22475 <summary></summary> 23769 <summary>The language of the script</summary>
23770 <remarks>Defaults to lsl version 2, "mono" might be another possible option</remarks>
22476 </member> 23771 </member>
22477 <member name="F:OpenMetaverse.LoginStatus.Success"> 23772 <member name="M:OpenMetaverse.Messages.Linden.UpdateScriptAgentRequestMessage.Serialize">
22478 <summary></summary> 23773 <summary>
23774 Serialize the object
23775 </summary>
23776 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the objects data</returns>
22479 </member> 23777 </member>
22480 <member name="T:OpenMetaverse.LoginParams"> 23778 <member name="M:OpenMetaverse.Messages.Linden.UpdateScriptAgentRequestMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
22481 <summary> 23779 <summary>
22482 Login Request Parameters 23780 Deserialize the message
22483 </summary> 23781 </summary>
23782 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the data</param>
22484 </member> 23783 </member>
22485 <member name="F:OpenMetaverse.LoginParams.URI"> 23784 <member name="T:OpenMetaverse.Messages.Linden.UpdateScriptAgentMessage">
22486 <summary>The URL of the Login Server</summary> 23785 <summary>
23786 A message containing either the request or response used in updating a script inside
23787 an agents inventory
23788 </summary>
22487 </member> 23789 </member>
22488 <member name="F:OpenMetaverse.LoginParams.Timeout"> 23790 <member name="F:OpenMetaverse.Messages.Linden.UpdateScriptAgentMessage.Request">
22489 <summary>The number of milliseconds to wait before a login is considered 23791 <summary>Object containing request or response</summary>
22490 failed due to timeout</summary>
22491 </member> 23792 </member>
22492 <member name="F:OpenMetaverse.LoginParams.MethodName"> 23793 <member name="M:OpenMetaverse.Messages.Linden.UpdateScriptAgentMessage.Serialize">
22493 <summary>The request method</summary> 23794 <summary>
22494 <remarks>login_to_simulator is currently the only supported method</remarks> 23795 Serialize the object
23796 </summary>
23797 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the objects data</returns>
22495 </member> 23798 </member>
22496 <member name="F:OpenMetaverse.LoginParams.FirstName"> 23799 <member name="M:OpenMetaverse.Messages.Linden.UpdateScriptAgentMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
22497 <summary>The Agents First name</summary> 23800 <summary>
23801 Deserialize the message
23802 </summary>
23803 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the data</param>
22498 </member> 23804 </member>
22499 <member name="F:OpenMetaverse.LoginParams.LastName"> 23805 <member name="M:OpenMetaverse.Messages.Linden.SendPostcardMessage.Serialize">
22500 <summary>The Agents Last name</summary> 23806 <summary>
23807 Serialize the object
23808 </summary>
23809 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the objects data</returns>
22501 </member> 23810 </member>
22502 <member name="F:OpenMetaverse.LoginParams.Password"> 23811 <member name="M:OpenMetaverse.Messages.Linden.SendPostcardMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
22503 <summary>A md5 hashed password</summary> 23812 <summary>
22504 <remarks>plaintext password will be automatically hashed</remarks> 23813 Deserialize the message
23814 </summary>
23815 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the data</param>
22505 </member> 23816 </member>
22506 <member name="F:OpenMetaverse.LoginParams.Start"> 23817 <member name="T:OpenMetaverse.Messages.Linden.MapLayerMessageBase">
22507 <summary>The agents starting location once logged in</summary> 23818 <summary>Base class for Map Layers via Capabilities</summary>
22508 <remarks>Either "last", "home", or a string encoded URI
22509 containing the simulator name and x/y/z coordinates e.g: uri:hooper&amp;128&amp;152&amp;17</remarks>
22510 </member> 23819 </member>
22511 <member name="F:OpenMetaverse.LoginParams.Channel"> 23820 <member name="F:OpenMetaverse.Messages.Linden.MapLayerMessageBase.Flags">
22512 <summary>A string containing the client software channel information</summary> 23821 <summary>
22513 <example>Second Life Release</example> 23822 </summary>
22514 </member> 23823 </member>
22515 <member name="F:OpenMetaverse.LoginParams.Version"> 23824 <member name="M:OpenMetaverse.Messages.Linden.MapLayerMessageBase.Serialize">
22516 <summary>The client software version information</summary> 23825 <summary>
22517 <remarks>The official viewer uses: Second Life Release n.n.n.n 23826 Serialize the object
22518 where n is replaced with the current version of the viewer</remarks> 23827 </summary>
23828 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the objects data</returns>
22519 </member> 23829 </member>
22520 <member name="F:OpenMetaverse.LoginParams.Platform"> 23830 <member name="M:OpenMetaverse.Messages.Linden.MapLayerMessageBase.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
22521 <summary>A string containing the platform information the agent is running on</summary> 23831 <summary>
23832 Deserialize the message
23833 </summary>
23834 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the data</param>
22522 </member> 23835 </member>
22523 <member name="F:OpenMetaverse.LoginParams.MAC"> 23836 <member name="T:OpenMetaverse.Messages.Linden.MapLayerRequestVariant">
22524 <summary>A string hash of the network cards Mac Address</summary> 23837 <summary>
23838 Sent by an agent to the capabilities server to request map layers
23839 </summary>
22525 </member> 23840 </member>
22526 <member name="F:OpenMetaverse.LoginParams.ViewerDigest"> 23841 <member name="T:OpenMetaverse.Messages.Linden.MapLayerReplyVariant">
22527 <summary>Unknown or deprecated</summary> 23842 <summary>
23843 A message sent from the simulator to the viewer which contains an array of map images and their grid coordinates
23844 </summary>
22528 </member> 23845 </member>
22529 <member name="F:OpenMetaverse.LoginParams.ID0"> 23846 <member name="T:OpenMetaverse.Messages.Linden.MapLayerReplyVariant.LayerData">
22530 <summary>A string hash of the first disk drives ID used to identify this clients uniqueness</summary> 23847 <summary>
23848 An object containing map location details
23849 </summary>
22531 </member> 23850 </member>
22532 <member name="F:OpenMetaverse.LoginParams.UserAgent"> 23851 <member name="F:OpenMetaverse.Messages.Linden.MapLayerReplyVariant.LayerData.ImageID">
22533 <summary>A string containing the viewers Software, this is not directly sent to the login server but 23852 <summary>The Asset ID of the regions tile overlay</summary>
22534 instead is used to generate the Version string</summary>
22535 </member> 23853 </member>
22536 <member name="F:OpenMetaverse.LoginParams.Author"> 23854 <member name="F:OpenMetaverse.Messages.Linden.MapLayerReplyVariant.LayerData.Bottom">
22537 <summary>A string representing the software creator. This is not directly sent to the login server but 23855 <summary>The grid location of the southern border of the map tile</summary>
22538 is used by the library to generate the Version information</summary>
22539 </member> 23856 </member>
22540 <member name="F:OpenMetaverse.LoginParams.AgreeToTos"> 23857 <member name="F:OpenMetaverse.Messages.Linden.MapLayerReplyVariant.LayerData.Left">
22541 <summary>If true, this agent agrees to the Terms of Service of the grid its connecting to</summary> 23858 <summary>The grid location of the western border of the map tile</summary>
22542 </member> 23859 </member>
22543 <member name="F:OpenMetaverse.LoginParams.ReadCritical"> 23860 <member name="F:OpenMetaverse.Messages.Linden.MapLayerReplyVariant.LayerData.Right">
22544 <summary>Unknown</summary> 23861 <summary>The grid location of the eastern border of the map tile</summary>
22545 </member> 23862 </member>
22546 <member name="F:OpenMetaverse.LoginParams.Options"> 23863 <member name="F:OpenMetaverse.Messages.Linden.MapLayerReplyVariant.LayerData.Top">
22547 <summary>An array of string sent to the login server to enable various options</summary> 23864 <summary>The grid location of the northern border of the map tile</summary>
22548 </member> 23865 </member>
22549 <member name="F:OpenMetaverse.LoginParams.LoginID"> 23866 <member name="F:OpenMetaverse.Messages.Linden.MapLayerReplyVariant.LayerDataBlocks">
22550 <summary>A randomly generated ID to distinguish between login attempts. This value is only used 23867 <summary>An array containing LayerData items</summary>
22551 internally in the library and is never sent over the wire</summary>
22552 </member> 23868 </member>
22553 <member name="M:OpenMetaverse.LoginParams.#ctor"> 23869 <member name="M:OpenMetaverse.Messages.Linden.MapLayerReplyVariant.Serialize">
22554 <summary> 23870 <summary>
22555 Default constuctor, initializes sane default values 23871 Serialize the object
22556 </summary> 23872 </summary>
23873 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the objects data</returns>
22557 </member> 23874 </member>
22558 <member name="M:OpenMetaverse.LoginParams.#ctor(OpenMetaverse.GridClient,System.String,System.String,System.String,System.String,System.String)"> 23875 <member name="M:OpenMetaverse.Messages.Linden.MapLayerReplyVariant.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
22559 <summary> 23876 <summary>
22560 Instantiates new LoginParams object and fills in the values 23877 Deserialize the message
22561 </summary> 23878 </summary>
22562 <param name="client">Instance of GridClient to read settings from</param> 23879 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the data</param>
22563 <param name="firstName">Login first name</param>
22564 <param name="lastName">Login last name</param>
22565 <param name="password">Password</param>
22566 <param name="channel">Login channnel (application name)</param>
22567 <param name="version">Client version, should be application name + version number</param>
22568 </member> 23880 </member>
22569 <member name="M:OpenMetaverse.LoginParams.#ctor(OpenMetaverse.GridClient,System.String,System.String,System.String,System.String,System.String,System.String)"> 23881 <member name="F:OpenMetaverse.Messages.Linden.MapLayerMessage.Request">
23882 <summary>Object containing request or response</summary>
23883 </member>
23884 <member name="M:OpenMetaverse.Messages.Linden.MapLayerMessage.Serialize">
22570 <summary> 23885 <summary>
22571 Instantiates new LoginParams object and fills in the values 23886 Serialize the object
22572 </summary> 23887 </summary>
22573 <param name="client">Instance of GridClient to read settings from</param> 23888 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the objects data</returns>
22574 <param name="firstName">Login first name</param>
22575 <param name="lastName">Login last name</param>
22576 <param name="password">Password</param>
22577 <param name="channel">Login channnel (application name)</param>
22578 <param name="version">Client version, should be application name + version number</param>
22579 <param name="loginURI">URI of the login server</param>
22580 </member> 23889 </member>
22581 <member name="T:OpenMetaverse.LoginResponseData"> 23890 <member name="M:OpenMetaverse.Messages.Linden.MapLayerMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
22582 <summary> 23891 <summary>
22583 The decoded data returned from the login server after a successful login 23892 Deserialize the message
22584 </summary> 23893 </summary>
23894 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the data</param>
22585 </member> 23895 </member>
22586 <member name="F:OpenMetaverse.LoginResponseData.Login"> 23896 <member name="T:OpenMetaverse.Messages.Linden.ProductInfoRequestMessage">
22587 <summary>true, false, indeterminate</summary>
22588 </member>
22589 <member name="F:OpenMetaverse.LoginResponseData.Message">
22590 <summary>Login message of the day</summary>
22591 </member>
22592 <member name="F:OpenMetaverse.LoginResponseData.AgentAccess">
22593 <summary>M or PG, also agent_region_access and agent_access_max</summary>
22594 </member>
22595 <member name="M:OpenMetaverse.LoginResponseData.Parse(OpenMetaverse.StructuredData.OSDMap)">
22596 <summary> 23897 <summary>
22597 Parse LLSD Login Reply Data 23898 New as of 1.23 RC1, no details yet.
22598 </summary> 23899 </summary>
22599 <param name="reply">An <seealso cref="T:OpenMetaverse.StructuredData.OSDMap"/>
22600 contaning the login response data</param>
22601 <remarks>XML-RPC logins do not require this as XML-RPC.NET
22602 automatically populates the struct properly using attributes</remarks>
22603 </member> 23900 </member>
22604 <member name="T:OpenMetaverse.StatusCode"> 23901 <member name="M:OpenMetaverse.Messages.Linden.ProductInfoRequestMessage.Serialize">
22605 <summary> 23902 <summary>
22606 23903 Serialize the object
22607 </summary> 23904 </summary>
23905 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the objects data</returns>
22608 </member> 23906 </member>
22609 <member name="F:OpenMetaverse.StatusCode.OK"> 23907 <member name="M:OpenMetaverse.Messages.Linden.ProductInfoRequestMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
22610 <summary>OK</summary>
22611 </member>
22612 <member name="F:OpenMetaverse.StatusCode.Done">
22613 <summary>Transfer completed</summary>
22614 </member>
22615 <member name="F:OpenMetaverse.StatusCode.Skip">
22616 <summary></summary>
22617 </member>
22618 <member name="F:OpenMetaverse.StatusCode.Abort">
22619 <summary></summary>
22620 </member>
22621 <member name="F:OpenMetaverse.StatusCode.Error">
22622 <summary>Unknown error occurred</summary>
22623 </member>
22624 <member name="F:OpenMetaverse.StatusCode.UnknownSource">
22625 <summary>Equivalent to a 404 error</summary>
22626 </member>
22627 <member name="F:OpenMetaverse.StatusCode.InsufficientPermissions">
22628 <summary>Client does not have permission for that resource</summary>
22629 </member>
22630 <member name="F:OpenMetaverse.StatusCode.Unknown">
22631 <summary>Unknown status</summary>
22632 </member>
22633 <member name="T:OpenMetaverse.ChannelType">
22634 <summary> 23908 <summary>
22635 23909 Deserialize the message
22636 </summary> 23910 </summary>
23911 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the data</param>
22637 </member> 23912 </member>
22638 <member name="F:OpenMetaverse.ChannelType.Unknown"> 23913 <member name="M:OpenMetaverse.Messages.Linden.SearchStatRequestMessage.Serialize">
22639 <summary></summary> 23914 <summary>
23915 Serialize the object
23916 </summary>
23917 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the objects data</returns>
22640 </member> 23918 </member>
22641 <member name="F:OpenMetaverse.ChannelType.Misc"> 23919 <member name="M:OpenMetaverse.Messages.Linden.SearchStatRequestMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
22642 <summary>Unknown</summary> 23920 <summary>
23921 Deserialize the message
23922 </summary>
23923 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the data</param>
22643 </member> 23924 </member>
22644 <member name="F:OpenMetaverse.ChannelType.Asset"> 23925 <member name="F:OpenMetaverse.Messages.Linden.ChatSessionRequestBlock.Method">
22645 <summary>Virtually all asset transfers use this channel</summary> 23926 <summary>A string containing the method used</summary>
22646 </member> 23927 </member>
22647 <member name="T:OpenMetaverse.SourceType"> 23928 <member name="T:OpenMetaverse.Messages.Linden.ChatSessionRequestStartConference">
22648 <summary> 23929 <summary>
22649 23930 A request sent from an agent to the Simulator to begin a new conference.
23931 Contains a list of Agents which will be included in the conference
22650 </summary> 23932 </summary>
22651 </member> 23933 </member>
22652 <member name="F:OpenMetaverse.SourceType.Unknown"> 23934 <member name="F:OpenMetaverse.Messages.Linden.ChatSessionRequestStartConference.AgentsBlock">
22653 <summary></summary> 23935 <summary>An array containing the <see cref="T:OpenMetaverse.UUID" /> of the agents invited to this conference</summary>
22654 </member> 23936 </member>
22655 <member name="F:OpenMetaverse.SourceType.Asset"> 23937 <member name="F:OpenMetaverse.Messages.Linden.ChatSessionRequestStartConference.SessionID">
22656 <summary>Asset from the asset server</summary> 23938 <summary>The conferences Session ID</summary>
22657 </member> 23939 </member>
22658 <member name="F:OpenMetaverse.SourceType.SimInventoryItem"> 23940 <member name="M:OpenMetaverse.Messages.Linden.ChatSessionRequestStartConference.Serialize">
22659 <summary>Inventory item</summary> 23941 <summary>
23942 Serialize the object
23943 </summary>
23944 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the objects data</returns>
22660 </member> 23945 </member>
22661 <member name="F:OpenMetaverse.SourceType.SimEstate"> 23946 <member name="M:OpenMetaverse.Messages.Linden.ChatSessionRequestStartConference.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
22662 <summary>Estate asset, such as an estate covenant</summary> 23947 <summary>
23948 Deserialize the message
23949 </summary>
23950 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the data</param>
22663 </member> 23951 </member>
22664 <member name="T:OpenMetaverse.TargetType"> 23952 <member name="T:OpenMetaverse.Messages.Linden.ChatSessionRequestMuteUpdate">
22665 <summary> 23953 <summary>
22666 23954 A moderation request sent from a conference moderator
23955 Contains an agent and an optional action to take
22667 </summary> 23956 </summary>
22668 </member> 23957 </member>
22669 <member name="F:OpenMetaverse.TargetType.Unknown"> 23958 <member name="F:OpenMetaverse.Messages.Linden.ChatSessionRequestMuteUpdate.SessionID">
22670 <summary></summary> 23959 <summary>The Session ID</summary>
22671 </member> 23960 </member>
22672 <member name="F:OpenMetaverse.TargetType.File"> 23961 <member name="F:OpenMetaverse.Messages.Linden.ChatSessionRequestMuteUpdate.AgentID">
22673 <summary></summary> 23962 <summary>
23963 </summary>
22674 </member> 23964 </member>
22675 <member name="F:OpenMetaverse.TargetType.VFile"> 23965 <member name="F:OpenMetaverse.Messages.Linden.ChatSessionRequestMuteUpdate.RequestKey">
22676 <summary></summary> 23966 <summary>A list containing Key/Value pairs, known valid values:
23967 key: text value: true/false - allow/disallow specified agents ability to use text in session
23968 key: voice value: true/false - allow/disallow specified agents ability to use voice in session
23969 </summary>
23970 <remarks>"text" or "voice"</remarks>
22677 </member> 23971 </member>
22678 <member name="T:OpenMetaverse.ImageType"> 23972 <member name="F:OpenMetaverse.Messages.Linden.ChatSessionRequestMuteUpdate.RequestValue">
22679 <summary> 23973 <summary>
22680
22681 </summary> 23974 </summary>
22682 </member> 23975 </member>
22683 <member name="F:OpenMetaverse.ImageType.Normal"> 23976 <member name="M:OpenMetaverse.Messages.Linden.ChatSessionRequestMuteUpdate.Serialize">
22684 <summary></summary> 23977 <summary>
22685 </member> 23978 Serialize the object
22686 <member name="F:OpenMetaverse.ImageType.Baked"> 23979 </summary>
22687 <summary></summary> 23980 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the objects data</returns>
22688 </member> 23981 </member>
22689 <member name="T:OpenMetaverse.ImageCodec"> 23982 <member name="M:OpenMetaverse.Messages.Linden.ChatSessionRequestMuteUpdate.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
22690 <summary> 23983 <summary>
22691 Image file format 23984 Deserialize the message
22692 </summary> 23985 </summary>
23986 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the data</param>
22693 </member> 23987 </member>
22694 <member name="T:OpenMetaverse.Transfer"> 23988 <member name="T:OpenMetaverse.Messages.Linden.ChatSessionAcceptInvitation">
22695 <summary> 23989 <summary>
22696 23990 A message sent from the agent to the simulator which tells the
23991 simulator we've accepted a conference invitation
22697 </summary> 23992 </summary>
22698 </member> 23993 </member>
22699 <member name="P:OpenMetaverse.Transfer.TimeSinceLastPacket"> 23994 <member name="F:OpenMetaverse.Messages.Linden.ChatSessionAcceptInvitation.SessionID">
22700 <summary>Number of milliseconds passed since the last transfer 23995 <summary>The conference SessionID</summary>
22701 packet was received</summary>
22702 </member> 23996 </member>
22703 <member name="T:OpenMetaverse.AssetDownload"> 23997 <member name="M:OpenMetaverse.Messages.Linden.ChatSessionAcceptInvitation.Serialize">
22704 <summary> 23998 <summary>
22705 23999 Serialize the object
22706 </summary> 24000 </summary>
24001 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the objects data</returns>
22707 </member> 24002 </member>
22708 <member name="T:OpenMetaverse.XferDownload"> 24003 <member name="M:OpenMetaverse.Messages.Linden.ChatSessionAcceptInvitation.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
22709 <summary> 24004 <summary>
22710 24005 Deserialize the message
22711 </summary> 24006 </summary>
24007 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the data</param>
22712 </member> 24008 </member>
22713 <member name="T:OpenMetaverse.ImageDownload"> 24009 <member name="M:OpenMetaverse.Messages.Linden.ChatSessionRequestMessage.Serialize">
22714 <summary> 24010 <summary>
22715 24011 Serialize the object
22716 </summary> 24012 </summary>
24013 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the objects data</returns>
22717 </member> 24014 </member>
22718 <member name="T:OpenMetaverse.AssetUpload"> 24015 <member name="M:OpenMetaverse.Messages.Linden.ChatSessionRequestMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
22719 <summary> 24016 <summary>
22720 24017 Deserialize the message
22721 </summary> 24018 </summary>
24019 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the data</param>
22722 </member> 24020 </member>
22723 <member name="T:OpenMetaverse.ImageRequest"> 24021 <member name="M:OpenMetaverse.Messages.Linden.ChatterboxSessionEventReplyMessage.Serialize">
22724 <summary> 24022 <summary>
22725 24023 Serialize the object
22726 </summary> 24024 </summary>
24025 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the objects data</returns>
22727 </member> 24026 </member>
22728 <member name="M:OpenMetaverse.ImageRequest.#ctor(OpenMetaverse.UUID,OpenMetaverse.ImageType,System.Single,System.Int32)"> 24027 <member name="M:OpenMetaverse.Messages.Linden.ChatterboxSessionEventReplyMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
22729 <summary> 24028 <summary>
22730 24029 Deserialize the message
22731 </summary> 24030 </summary>
22732 <param name="imageid"></param> 24031 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the data</param>
22733 <param name="type"></param>
22734 <param name="priority"></param>
22735 <param name="discardLevel"></param>
22736 </member> 24032 </member>
22737 <member name="T:OpenMetaverse.AssetManager"> 24033 <member name="M:OpenMetaverse.Messages.Linden.ChatterBoxSessionStartReplyMessage.Serialize">
22738 <summary> 24034 <summary>
22739 24035 Serialize the object
22740 </summary> 24036 </summary>
24037 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the objects data</returns>
22741 </member> 24038 </member>
22742 <member name="F:OpenMetaverse.AssetManager.TRANSFER_HEADER_TIMEOUT"> 24039 <member name="M:OpenMetaverse.Messages.Linden.ChatterBoxSessionStartReplyMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
22743 <summary>Number of milliseconds to wait for a transfer header packet if out of order data was received</summary> 24040 <summary>
24041 Deserialize the message
24042 </summary>
24043 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the data</param>
22744 </member> 24044 </member>
22745 <member name="F:OpenMetaverse.AssetManager.m_XferReceivedEvent"> 24045 <member name="F:OpenMetaverse.Messages.Linden.ChatterBoxInvitationMessage.FromAgentID">
22746 <summary>The event subscribers. null if no subcribers</summary> 24046 <summary>Key of sender</summary>
22747 </member> 24047 </member>
22748 <member name="M:OpenMetaverse.AssetManager.OnXferReceived(OpenMetaverse.XferReceivedEventArgs)"> 24048 <member name="F:OpenMetaverse.Messages.Linden.ChatterBoxInvitationMessage.FromAgentName">
22749 <summary>Raises the XferReceived event</summary> 24049 <summary>Name of sender</summary>
22750 <param name="e">A XferReceivedEventArgs object containing the
22751 data returned from the simulator</param>
22752 </member> 24050 </member>
22753 <member name="F:OpenMetaverse.AssetManager.m_XferReceivedLock"> 24051 <member name="F:OpenMetaverse.Messages.Linden.ChatterBoxInvitationMessage.ToAgentID">
22754 <summary>Thread sync lock object</summary> 24052 <summary>Key of destination avatar</summary>
22755 </member> 24053 </member>
22756 <member name="F:OpenMetaverse.AssetManager.m_AssetUploadedEvent"> 24054 <member name="F:OpenMetaverse.Messages.Linden.ChatterBoxInvitationMessage.ParentEstateID">
22757 <summary>The event subscribers. null if no subcribers</summary> 24055 <summary>ID of originating estate</summary>
22758 </member> 24056 </member>
22759 <member name="M:OpenMetaverse.AssetManager.OnAssetUploaded(OpenMetaverse.AssetUploadEventArgs)"> 24057 <member name="F:OpenMetaverse.Messages.Linden.ChatterBoxInvitationMessage.RegionID">
22760 <summary>Raises the AssetUploaded event</summary> 24058 <summary>Key of originating region</summary>
22761 <param name="e">A AssetUploadedEventArgs object containing the
22762 data returned from the simulator</param>
22763 </member> 24059 </member>
22764 <member name="F:OpenMetaverse.AssetManager.m_AssetUploadedLock"> 24060 <member name="F:OpenMetaverse.Messages.Linden.ChatterBoxInvitationMessage.Position">
22765 <summary>Thread sync lock object</summary> 24061 <summary>Coordinates in originating region</summary>
22766 </member> 24062 </member>
22767 <member name="F:OpenMetaverse.AssetManager.m_UploadProgressEvent"> 24063 <member name="F:OpenMetaverse.Messages.Linden.ChatterBoxInvitationMessage.Dialog">
22768 <summary>The event subscribers. null if no subcribers</summary> 24064 <summary>Instant message type</summary>
22769 </member> 24065 </member>
22770 <member name="M:OpenMetaverse.AssetManager.OnUploadProgress(OpenMetaverse.AssetUploadEventArgs)"> 24066 <member name="F:OpenMetaverse.Messages.Linden.ChatterBoxInvitationMessage.GroupIM">
22771 <summary>Raises the UploadProgress event</summary> 24067 <summary>Group IM session toggle</summary>
22772 <param name="e">A UploadProgressEventArgs object containing the
22773 data returned from the simulator</param>
22774 </member> 24068 </member>
22775 <member name="F:OpenMetaverse.AssetManager.m_UploadProgressLock"> 24069 <member name="F:OpenMetaverse.Messages.Linden.ChatterBoxInvitationMessage.IMSessionID">
22776 <summary>Thread sync lock object</summary> 24070 <summary>Key of IM session, for Group Messages, the groups UUID</summary>
22777 </member> 24071 </member>
22778 <member name="F:OpenMetaverse.AssetManager.m_InitiateDownloadEvent"> 24072 <member name="F:OpenMetaverse.Messages.Linden.ChatterBoxInvitationMessage.Timestamp">
22779 <summary>The event subscribers. null if no subcribers</summary> 24073 <summary>Timestamp of the instant message</summary>
22780 </member> 24074 </member>
22781 <member name="M:OpenMetaverse.AssetManager.OnInitiateDownload(OpenMetaverse.InitiateDownloadEventArgs)"> 24075 <member name="F:OpenMetaverse.Messages.Linden.ChatterBoxInvitationMessage.Message">
22782 <summary>Raises the InitiateDownload event</summary> 24076 <summary>Instant message text</summary>
22783 <param name="e">A InitiateDownloadEventArgs object containing the
22784 data returned from the simulator</param>
22785 </member> 24077 </member>
22786 <member name="F:OpenMetaverse.AssetManager.m_InitiateDownloadLock"> 24078 <member name="F:OpenMetaverse.Messages.Linden.ChatterBoxInvitationMessage.Offline">
22787 <summary>Thread sync lock object</summary> 24079 <summary>Whether this message is held for offline avatars</summary>
22788 </member> 24080 </member>
22789 <member name="F:OpenMetaverse.AssetManager.m_ImageReceiveProgressEvent"> 24081 <member name="F:OpenMetaverse.Messages.Linden.ChatterBoxInvitationMessage.BinaryBucket">
22790 <summary>The event subscribers. null if no subcribers</summary> 24082 <summary>Context specific packed data</summary>
22791 </member> 24083 </member>
22792 <member name="M:OpenMetaverse.AssetManager.OnImageReceiveProgress(OpenMetaverse.ImageReceiveProgressEventArgs)"> 24084 <member name="F:OpenMetaverse.Messages.Linden.ChatterBoxInvitationMessage.Voice">
22793 <summary>Raises the ImageReceiveProgress event</summary> 24085 <summary>Is this invitation for voice group/conference chat</summary>
22794 <param name="e">A ImageReceiveProgressEventArgs object containing the
22795 data returned from the simulator</param>
22796 </member> 24086 </member>
22797 <member name="F:OpenMetaverse.AssetManager.m_ImageReceiveProgressLock"> 24087 <member name="M:OpenMetaverse.Messages.Linden.ChatterBoxInvitationMessage.Serialize">
22798 <summary>Thread sync lock object</summary> 24088 <summary>
24089 Serialize the object
24090 </summary>
24091 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the objects data</returns>
22799 </member> 24092 </member>
22800 <member name="F:OpenMetaverse.AssetManager.Cache"> 24093 <member name="M:OpenMetaverse.Messages.Linden.ChatterBoxInvitationMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
22801 <summary>Texture download cache</summary> 24094 <summary>
24095 Deserialize the message
24096 </summary>
24097 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the data</param>
22802 </member> 24098 </member>
22803 <member name="M:OpenMetaverse.AssetManager.#ctor(OpenMetaverse.GridClient)"> 24099 <member name="T:OpenMetaverse.Messages.Linden.ChatterBoxSessionAgentListUpdatesMessage">
22804 <summary> 24100 <summary>
22805 Default constructor 24101 Sent from the simulator to the viewer.
24102 When an agent initially joins a session the AgentUpdatesBlock object will contain a list of session members including
24103 a boolean indicating they can use voice chat in this session, a boolean indicating they are allowed to moderate
24104 this session, and lastly a string which indicates another agent is entering the session with the Transition set to "ENTER"
24105 During the session lifetime updates on individuals are sent. During the update the booleans sent during the initial join are
24106 excluded with the exception of the Transition field. This indicates a new user entering or exiting the session with
24107 the string "ENTER" or "LEAVE" respectively.
22806 </summary> 24108 </summary>
22807 <param name="client">A reference to the GridClient object</param>
22808 </member> 24109 </member>
22809 <member name="M:OpenMetaverse.AssetManager.RequestAsset(OpenMetaverse.UUID,OpenMetaverse.AssetType,System.Boolean,OpenMetaverse.AssetManager.AssetReceivedCallback)"> 24110 <member name="M:OpenMetaverse.Messages.Linden.ChatterBoxSessionAgentListUpdatesMessage.Serialize">
22810 <summary> 24111 <summary>
22811 Request an asset download 24112 Serialize the object
22812 </summary> 24113 </summary>
22813 <param name="assetID">Asset UUID</param> 24114 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the objects data</returns>
22814 <param name="type">Asset type, must be correct for the transfer to succeed</param>
22815 <param name="priority">Whether to give this transfer an elevated priority</param>
22816 <param name="callback">The callback to fire when the simulator responds with the asset data</param>
22817 </member> 24115 </member>
22818 <member name="M:OpenMetaverse.AssetManager.RequestAsset(OpenMetaverse.UUID,OpenMetaverse.AssetType,System.Boolean,OpenMetaverse.SourceType,OpenMetaverse.AssetManager.AssetReceivedCallback)"> 24116 <member name="M:OpenMetaverse.Messages.Linden.ChatterBoxSessionAgentListUpdatesMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
22819 <summary> 24117 <summary>
22820 Request an asset download 24118 Deserialize the message
22821 </summary> 24119 </summary>
22822 <param name="assetID">Asset UUID</param> 24120 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the data</param>
22823 <param name="type">Asset type, must be correct for the transfer to succeed</param>
22824 <param name="priority">Whether to give this transfer an elevated priority</param>
22825 <param name="sourceType">Source location of the requested asset</param>
22826 <param name="callback">The callback to fire when the simulator responds with the asset data</param>
22827 </member> 24121 </member>
22828 <member name="M:OpenMetaverse.AssetManager.RequestAsset(OpenMetaverse.UUID,OpenMetaverse.AssetType,System.Boolean,OpenMetaverse.SourceType,OpenMetaverse.UUID,OpenMetaverse.AssetManager.AssetReceivedCallback)"> 24122 <member name="T:OpenMetaverse.Messages.Linden.ForceCloseChatterBoxSessionMessage">
22829 <summary> 24123 <summary>
22830 Request an asset download 24124 An EventQueue message sent when the agent is forcibly removed from a chatterbox session
22831 </summary> 24125 </summary>
22832 <param name="assetID">Asset UUID</param>
22833 <param name="type">Asset type, must be correct for the transfer to succeed</param>
22834 <param name="priority">Whether to give this transfer an elevated priority</param>
22835 <param name="sourceType">Source location of the requested asset</param>
22836 <param name="transactionID">UUID of the transaction</param>
22837 <param name="callback">The callback to fire when the simulator responds with the asset data</param>
22838 </member> 24126 </member>
22839 <member name="M:OpenMetaverse.AssetManager.RequestAssetXfer(System.String,System.Boolean,System.Boolean,OpenMetaverse.UUID,OpenMetaverse.AssetType,System.Boolean)"> 24127 <member name="F:OpenMetaverse.Messages.Linden.ForceCloseChatterBoxSessionMessage.Reason">
22840 <summary> 24128 <summary>
22841 Request an asset download through the almost deprecated Xfer system 24129 A string containing the reason the agent was removed
22842 </summary> 24130 </summary>
22843 <param name="filename">Filename of the asset to request</param>
22844 <param name="deleteOnCompletion">Whether or not to delete the asset
22845 off the server after it is retrieved</param>
22846 <param name="useBigPackets">Use large transfer packets or not</param>
22847 <param name="vFileID">UUID of the file to request, if filename is
22848 left empty</param>
22849 <param name="vFileType">Asset type of <code>vFileID</code>, or
22850 <code>AssetType.Unknown</code> if filename is not empty</param>
22851 <param name="fromCache">Sets the FilePath in the request to Cache
22852 (4) if true, otherwise Unknown (0) is used</param>
22853 <returns></returns>
22854 </member> 24131 </member>
22855 <member name="M:OpenMetaverse.AssetManager.RequestInventoryAsset(OpenMetaverse.UUID,OpenMetaverse.UUID,OpenMetaverse.UUID,OpenMetaverse.UUID,OpenMetaverse.AssetType,System.Boolean,OpenMetaverse.AssetManager.AssetReceivedCallback)"> 24132 <member name="F:OpenMetaverse.Messages.Linden.ForceCloseChatterBoxSessionMessage.SessionID">
22856 <summary> 24133 <summary>
22857 24134 The ChatterBoxSession's SessionID
22858 </summary> 24135 </summary>
22859 <param name="assetID">Use UUID.Zero if you do not have the
22860 asset ID but have all the necessary permissions</param>
22861 <param name="itemID">The item ID of this asset in the inventory</param>
22862 <param name="taskID">Use UUID.Zero if you are not requesting an
22863 asset from an object inventory</param>
22864 <param name="ownerID">The owner of this asset</param>
22865 <param name="type">Asset type</param>
22866 <param name="priority">Whether to prioritize this asset download or not</param>
22867 <param name="callback"></param>
22868 </member> 24136 </member>
22869 <member name="M:OpenMetaverse.AssetManager.SetPendingAssetUploadData(OpenMetaverse.AssetUpload)"> 24137 <member name="M:OpenMetaverse.Messages.Linden.ForceCloseChatterBoxSessionMessage.Serialize">
22870 <summary> 24138 <summary>
22871 Used to force asset data into the PendingUpload property, ie: for raw terrain uploads 24139 Serialize the object
22872 </summary> 24140 </summary>
22873 <param name="assetData">An AssetUpload object containing the data to upload to the simulator</param> 24141 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the objects data</returns>
22874 </member> 24142 </member>
22875 <member name="M:OpenMetaverse.AssetManager.RequestUpload(OpenMetaverse.Assets.Asset,System.Boolean)"> 24143 <member name="M:OpenMetaverse.Messages.Linden.ForceCloseChatterBoxSessionMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
22876 <summary> 24144 <summary>
22877 Request an asset be uploaded to the simulator 24145 Deserialize the message
22878 </summary> 24146 </summary>
22879 <param name="asset">The <seealso cref="T:OpenMetaverse.Assets.Asset"/> Object containing the asset data</param> 24147 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the data</param>
22880 <param name="storeLocal">If True, the asset once uploaded will be stored on the simulator
22881 in which the client was connected in addition to being stored on the asset server</param>
22882 <returns>The <seealso cref="T:OpenMetaverse.UUID"/> of the transfer, can be used to correlate the upload with
22883 events being fired</returns>
22884 </member> 24148 </member>
22885 <member name="M:OpenMetaverse.AssetManager.RequestUpload(OpenMetaverse.AssetType,System.Byte[],System.Boolean)"> 24149 <member name="M:OpenMetaverse.Messages.Linden.EventQueueAck.Serialize">
22886 <summary> 24150 <summary>
22887 Request an asset be uploaded to the simulator 24151 Serialize the object
22888 </summary> 24152 </summary>
22889 <param name="type">The <seealso cref="T:OpenMetaverse.AssetType"/> of the asset being uploaded</param> 24153 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the objects data</returns>
22890 <param name="data">A byte array containing the encoded asset data</param>
22891 <param name="storeLocal">If True, the asset once uploaded will be stored on the simulator
22892 in which the client was connected in addition to being stored on the asset server</param>
22893 <returns>The <seealso cref="T:OpenMetaverse.UUID"/> of the transfer, can be used to correlate the upload with
22894 events being fired</returns>
22895 </member> 24154 </member>
22896 <member name="M:OpenMetaverse.AssetManager.RequestUpload(OpenMetaverse.UUID@,OpenMetaverse.AssetType,System.Byte[],System.Boolean)"> 24155 <member name="M:OpenMetaverse.Messages.Linden.EventQueueAck.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
22897 <summary> 24156 <summary>
22898 Request an asset be uploaded to the simulator 24157 Deserialize the message
22899 </summary> 24158 </summary>
22900 <param name="assetID"></param> 24159 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the data</param>
22901 <param name="type">Asset type to upload this data as</param>
22902 <param name="data">A byte array containing the encoded asset data</param>
22903 <param name="storeLocal">If True, the asset once uploaded will be stored on the simulator
22904 in which the client was connected in addition to being stored on the asset server</param>
22905 <returns>The <seealso cref="T:OpenMetaverse.UUID"/> of the transfer, can be used to correlate the upload with
22906 events being fired</returns>
22907 </member> 24160 </member>
22908 <member name="M:OpenMetaverse.AssetManager.RequestUpload(OpenMetaverse.UUID@,OpenMetaverse.AssetType,System.Byte[],System.Boolean,OpenMetaverse.UUID)"> 24161 <member name="M:OpenMetaverse.Messages.Linden.EventQueueEvent.Serialize">
22909 <summary> 24162 <summary>
22910 Initiate an asset upload 24163 Serialize the object
22911 </summary> 24164 </summary>
22912 <param name="assetID">The ID this asset will have if the 24165 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the objects data</returns>
22913 upload succeeds</param>
22914 <param name="type">Asset type to upload this data as</param>
22915 <param name="data">Raw asset data to upload</param>
22916 <param name="storeLocal">Whether to store this asset on the local
22917 simulator or the grid-wide asset server</param>
22918 <param name="transactionID">The tranaction id for the upload <see cref="!:RequestCreateItem"/></param>
22919 <returns>The transaction ID of this transfer</returns>
22920 </member> 24166 </member>
22921 <member name="M:OpenMetaverse.AssetManager.RequestImage(OpenMetaverse.UUID,OpenMetaverse.ImageType,System.Single,System.Int32,System.UInt32,OpenMetaverse.TextureDownloadCallback,System.Boolean)"> 24167 <member name="M:OpenMetaverse.Messages.Linden.EventQueueEvent.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
22922 <summary> 24168 <summary>
22923 Request a texture asset from the simulator using the <see cref="T:OpenMetaverse.TexturePipeline"/> system to 24169 Deserialize the message
22924 manage the requests and re-assemble the image from the packets received from the simulator 24170 </summary>
22925 </summary> 24171 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the data</param>
22926 <param name="textureID">The <see cref="T:OpenMetaverse.UUID"/> of the texture asset to download</param>
22927 <param name="imageType">The <see cref="T:OpenMetaverse.ImageType"/> of the texture asset.
22928 Use <see cref="F:OpenMetaverse.ImageType.Normal"/> for most textures, or <see cref="F:OpenMetaverse.ImageType.Baked"/> for baked layer texture assets</param>
22929 <param name="priority">A float indicating the requested priority for the transfer. Higher priority values tell the simulator
22930 to prioritize the request before lower valued requests. An image already being transferred using the <see cref="T:OpenMetaverse.TexturePipeline"/> can have
22931 its priority changed by resending the request with the new priority value</param>
22932 <param name="discardLevel">Number of quality layers to discard.
22933 This controls the end marker of the data sent. Sending with value -1 combined with priority of 0 cancels an in-progress
22934 transfer.</param>
22935 <remarks>A bug exists in the Linden Simulator where a -1 will occasionally be sent with a non-zero priority
22936 indicating an off-by-one error.</remarks>
22937 <param name="packetStart">The packet number to begin the request at. A value of 0 begins the request
22938 from the start of the asset texture</param>
22939 <param name="callback">The <see cref="T:OpenMetaverse.TextureDownloadCallback"/> callback to fire when the image is retrieved. The callback
22940 will contain the result of the request and the texture asset data</param>
22941 <param name="progress">If true, the callback will be fired for each chunk of the downloaded image.
22942 The callback asset parameter will contain all previously received chunks of the texture asset starting
22943 from the beginning of the request</param>
22944 <example>
22945 Request an image and fire a callback when the request is complete
22946 <code>
22947 Client.Assets.RequestImage(UUID.Parse("c307629f-e3a1-4487-5e88-0d96ac9d4965"), ImageType.Normal, TextureDownloader_OnDownloadFinished);
22948
22949 private void TextureDownloader_OnDownloadFinished(TextureRequestState state, AssetTexture asset)
22950 {
22951 if(state == TextureRequestState.Finished)
22952 {
22953 Console.WriteLine("Texture {0} ({1} bytes) has been successfully downloaded",
22954 asset.AssetID,
22955 asset.AssetData.Length);
22956 }
22957 }
22958 </code>
22959 Request an image and use an inline anonymous method to handle the downloaded texture data
22960 <code>
22961 Client.Assets.RequestImage(UUID.Parse("c307629f-e3a1-4487-5e88-0d96ac9d4965"), ImageType.Normal, delegate(TextureRequestState state, AssetTexture asset)
22962 {
22963 if(state == TextureRequestState.Finished)
22964 {
22965 Console.WriteLine("Texture {0} ({1} bytes) has been successfully downloaded",
22966 asset.AssetID,
22967 asset.AssetData.Length);
22968 }
22969 }
22970 );
22971 </code>
22972 Request a texture, decode the texture to a bitmap image and apply it to a imagebox
22973 <code>
22974 Client.Assets.RequestImage(UUID.Parse("c307629f-e3a1-4487-5e88-0d96ac9d4965"), ImageType.Normal, TextureDownloader_OnDownloadFinished);
22975
22976 private void TextureDownloader_OnDownloadFinished(TextureRequestState state, AssetTexture asset)
22977 {
22978 if(state == TextureRequestState.Finished)
22979 {
22980 ManagedImage imgData;
22981 Image bitmap;
22982
22983 if (state == TextureRequestState.Finished)
22984 {
22985 OpenJPEG.DecodeToImage(assetTexture.AssetData, out imgData, out bitmap);
22986 picInsignia.Image = bitmap;
22987 }
22988 }
22989 }
22990 </code>
22991 </example>
22992 </member> 24172 </member>
22993 <member name="M:OpenMetaverse.AssetManager.RequestImage(OpenMetaverse.UUID,OpenMetaverse.TextureDownloadCallback)"> 24173 <member name="M:OpenMetaverse.Messages.Linden.EventQueueGetMessage.Serialize">
22994 <summary> 24174 <summary>
22995 Overload: Request a texture asset from the simulator using the <see cref="T:OpenMetaverse.TexturePipeline"/> system to 24175 Serialize the object
22996 manage the requests and re-assemble the image from the packets received from the simulator
22997 </summary> 24176 </summary>
22998 <param name="textureID">The <see cref="T:OpenMetaverse.UUID"/> of the texture asset to download</param> 24177 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the objects data</returns>
22999 <param name="callback">The <see cref="T:OpenMetaverse.TextureDownloadCallback"/> callback to fire when the image is retrieved. The callback
23000 will contain the result of the request and the texture asset data</param>
23001 </member> 24178 </member>
23002 <member name="M:OpenMetaverse.AssetManager.RequestImage(OpenMetaverse.UUID,OpenMetaverse.ImageType,OpenMetaverse.TextureDownloadCallback)"> 24179 <member name="M:OpenMetaverse.Messages.Linden.EventQueueGetMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
23003 <summary> 24180 <summary>
23004 Overload: Request a texture asset from the simulator using the <see cref="T:OpenMetaverse.TexturePipeline"/> system to 24181 Deserialize the message
23005 manage the requests and re-assemble the image from the packets received from the simulator
23006 </summary> 24182 </summary>
23007 <param name="textureID">The <see cref="T:OpenMetaverse.UUID"/> of the texture asset to download</param> 24183 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the data</param>
23008 <param name="imageType">The <see cref="T:OpenMetaverse.ImageType"/> of the texture asset.
23009 Use <see cref="F:OpenMetaverse.ImageType.Normal"/> for most textures, or <see cref="F:OpenMetaverse.ImageType.Baked"/> for baked layer texture assets</param>
23010 <param name="callback">The <see cref="T:OpenMetaverse.TextureDownloadCallback"/> callback to fire when the image is retrieved. The callback
23011 will contain the result of the request and the texture asset data</param>
23012 </member> 24184 </member>
23013 <member name="M:OpenMetaverse.AssetManager.RequestImage(OpenMetaverse.UUID,OpenMetaverse.ImageType,OpenMetaverse.TextureDownloadCallback,System.Boolean)"> 24185 <member name="M:OpenMetaverse.Messages.Linden.ViewerStatsMessage.Serialize">
23014 <summary> 24186 <summary>
23015 Overload: Request a texture asset from the simulator using the <see cref="T:OpenMetaverse.TexturePipeline"/> system to 24187 Serialize the object
23016 manage the requests and re-assemble the image from the packets received from the simulator
23017 </summary> 24188 </summary>
23018 <param name="textureID">The <see cref="T:OpenMetaverse.UUID"/> of the texture asset to download</param> 24189 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the objects data</returns>
23019 <param name="imageType">The <see cref="T:OpenMetaverse.ImageType"/> of the texture asset.
23020 Use <see cref="F:OpenMetaverse.ImageType.Normal"/> for most textures, or <see cref="F:OpenMetaverse.ImageType.Baked"/> for baked layer texture assets</param>
23021 <param name="callback">The <see cref="T:OpenMetaverse.TextureDownloadCallback"/> callback to fire when the image is retrieved. The callback
23022 will contain the result of the request and the texture asset data</param>
23023 <param name="progress">If true, the callback will be fired for each chunk of the downloaded image.
23024 The callback asset parameter will contain all previously received chunks of the texture asset starting
23025 from the beginning of the request</param>
23026 </member> 24190 </member>
23027 <member name="M:OpenMetaverse.AssetManager.RequestImageCancel(OpenMetaverse.UUID)"> 24191 <member name="M:OpenMetaverse.Messages.Linden.ViewerStatsMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
23028 <summary> 24192 <summary>
23029 Cancel a texture request 24193 Deserialize the message
23030 </summary> 24194 </summary>
23031 <param name="textureID">The texture assets <see cref="T:OpenMetaverse.UUID"/></param> 24195 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the data</param>
23032 </member> 24196 </member>
23033 <member name="M:OpenMetaverse.AssetManager.RequestMesh(OpenMetaverse.UUID,OpenMetaverse.AssetManager.MeshDownloadCallback)"> 24197 <member name="T:OpenMetaverse.Messages.Linden.PlacesReplyMessage">
23034 <summary> 24198 <summary>
23035 Requests download of a mesh asset
23036 </summary> 24199 </summary>
23037 <param name="meshID">UUID of the mesh asset</param>
23038 <param name="callback">Callback when the request completes</param>
23039 </member> 24200 </member>
23040 <member name="M:OpenMetaverse.AssetManager.FireImageProgressEvent(OpenMetaverse.UUID,System.Int32,System.Int32)"> 24201 <member name="M:OpenMetaverse.Messages.Linden.PlacesReplyMessage.Serialize">
23041 <summary> 24202 <summary>
23042 Lets TexturePipeline class fire the progress event 24203 Serialize the object
23043 </summary> 24204 </summary>
23044 <param name="texureID">The texture ID currently being downloaded</param> 24205 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the objects data</returns>
23045 <param name="transferredBytes">the number of bytes transferred</param>
23046 <param name="totalBytes">the total number of bytes expected</param>
23047 </member> 24206 </member>
23048 <member name="M:OpenMetaverse.AssetManager.TransferInfoHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)"> 24207 <member name="M:OpenMetaverse.Messages.Linden.PlacesReplyMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
23049 <summary>Process an incoming packet and raise the appropriate events</summary> 24208 <summary>
23050 <param name="sender">The sender</param> 24209 Deserialize the message
23051 <param name="e">The EventArgs object containing the packet data</param> 24210 </summary>
24211 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the data</param>
23052 </member> 24212 </member>
23053 <member name="M:OpenMetaverse.AssetManager.TransferPacketHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)"> 24213 <member name="M:OpenMetaverse.Messages.Linden.UpdateAgentInformationMessage.Serialize">
23054 <summary>Process an incoming packet and raise the appropriate events</summary> 24214 <summary>
23055 <param name="sender">The sender</param> 24215 Serialize the object
23056 <param name="e">The EventArgs object containing the packet data</param> 24216 </summary>
24217 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the objects data</returns>
23057 </member> 24218 </member>
23058 <member name="M:OpenMetaverse.AssetManager.InitiateDownloadPacketHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)"> 24219 <member name="M:OpenMetaverse.Messages.Linden.UpdateAgentInformationMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
23059 <summary>Process an incoming packet and raise the appropriate events</summary> 24220 <summary>
23060 <param name="sender">The sender</param> 24221 Deserialize the message
23061 <param name="e">The EventArgs object containing the packet data</param> 24222 </summary>
24223 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the data</param>
23062 </member> 24224 </member>
23063 <member name="M:OpenMetaverse.AssetManager.RequestXferHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)"> 24225 <member name="M:OpenMetaverse.Messages.Linden.DirLandReplyMessage.Serialize">
23064 <summary>Process an incoming packet and raise the appropriate events</summary> 24226 <summary>
23065 <param name="sender">The sender</param> 24227 Serialize the object
23066 <param name="e">The EventArgs object containing the packet data</param> 24228 </summary>
24229 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the objects data</returns>
23067 </member> 24230 </member>
23068 <member name="M:OpenMetaverse.AssetManager.ConfirmXferPacketHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)"> 24231 <member name="M:OpenMetaverse.Messages.Linden.DirLandReplyMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
23069 <summary>Process an incoming packet and raise the appropriate events</summary> 24232 <summary>
23070 <param name="sender">The sender</param> 24233 Deserialize the message
23071 <param name="e">The EventArgs object containing the packet data</param> 24234 </summary>
24235 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the data</param>
23072 </member> 24236 </member>
23073 <member name="M:OpenMetaverse.AssetManager.AssetUploadCompleteHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)"> 24237 <member name="T:OpenMetaverse.Messages.Linden.ObjectPhysicsPropertiesMessage">
23074 <summary>Process an incoming packet and raise the appropriate events</summary> 24238 <summary>
23075 <param name="sender">The sender</param> 24239 Event Queue message describing physics engine attributes of a list of objects
23076 <param name="e">The EventArgs object containing the packet data</param> 24240 Sim sends these when object is selected
24241 </summary>
23077 </member> 24242 </member>
23078 <member name="M:OpenMetaverse.AssetManager.SendXferPacketHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)"> 24243 <member name="F:OpenMetaverse.Messages.Linden.ObjectPhysicsPropertiesMessage.ObjectPhysicsProperties">
23079 <summary>Process an incoming packet and raise the appropriate events</summary> 24244 <summary> Array with the list of physics properties</summary>
23080 <param name="sender">The sender</param>
23081 <param name="e">The EventArgs object containing the packet data</param>
23082 </member> 24245 </member>
23083 <member name="M:OpenMetaverse.AssetManager.AbortXferHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)"> 24246 <member name="M:OpenMetaverse.Messages.Linden.ObjectPhysicsPropertiesMessage.Serialize">
23084 <summary>Process an incoming packet and raise the appropriate events</summary> 24247 <summary>
23085 <param name="sender">The sender</param> 24248 Serializes the message
23086 <param name="e">The EventArgs object containing the packet data</param> 24249 </summary>
24250 <returns>Serialized OSD</returns>
23087 </member> 24251 </member>
23088 <member name="E:OpenMetaverse.AssetManager.XferReceived"> 24252 <member name="M:OpenMetaverse.Messages.Linden.ObjectPhysicsPropertiesMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
23089 <summary>Raised when the simulator responds sends </summary> 24253 <summary>
24254 Deseializes the message
24255 </summary>
24256 <param name="map">Incoming data to deserialize</param>
23090 </member> 24257 </member>
23091 <member name="E:OpenMetaverse.AssetManager.AssetUploaded"> 24258 <member name="T:OpenMetaverse.Messages.Linden.ObjectMediaNavigateMessage">
23092 <summary>Raised during upload completes</summary> 24259 <summary>
24260 A message sent from the viewer to the simulator which
24261 specifies that the user has changed current URL
24262 of the specific media on a prim face
24263 </summary>
23093 </member> 24264 </member>
23094 <member name="E:OpenMetaverse.AssetManager.UploadProgress"> 24265 <member name="F:OpenMetaverse.Messages.Linden.ObjectMediaNavigateMessage.URL">
23095 <summary>Raised during upload with progres update</summary> 24266 <summary>
24267 New URL
24268 </summary>
23096 </member> 24269 </member>
23097 <member name="E:OpenMetaverse.AssetManager.InitiateDownload"> 24270 <member name="F:OpenMetaverse.Messages.Linden.ObjectMediaNavigateMessage.PrimID">
23098 <summary>Fired when the simulator sends an InitiateDownloadPacket, used to download terrain .raw files</summary> 24271 <summary>
24272 Prim UUID where navigation occured
24273 </summary>
23099 </member> 24274 </member>
23100 <member name="E:OpenMetaverse.AssetManager.ImageReceiveProgress"> 24275 <member name="F:OpenMetaverse.Messages.Linden.ObjectMediaNavigateMessage.Face">
23101 <summary>Fired when a texture is in the process of being downloaded by the TexturePipeline class</summary> 24276 <summary>
24277 Face index
24278 </summary>
23102 </member> 24279 </member>
23103 <member name="T:OpenMetaverse.AssetManager.AssetReceivedCallback"> 24280 <member name="M:OpenMetaverse.Messages.Linden.ObjectMediaNavigateMessage.Serialize">
23104 <summary> 24281 <summary>
23105 Callback used for various asset download requests 24282 Serialize the object
23106 </summary> 24283 </summary>
23107 <param name="transfer">Transfer information</param> 24284 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the objects data</returns>
23108 <param name="asset">Downloaded asset, null on fail</param>
23109 </member> 24285 </member>
23110 <member name="T:OpenMetaverse.AssetManager.BakedTextureUploadedCallback"> 24286 <member name="M:OpenMetaverse.Messages.Linden.ObjectMediaNavigateMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
23111 <summary> 24287 <summary>
23112 Callback used upon competition of baked texture upload 24288 Deserialize the message
23113 </summary> 24289 </summary>
23114 <param name="newAssetID">Asset UUID of the newly uploaded baked texture</param> 24290 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the data</param>
23115 </member> 24291 </member>
23116 <member name="T:OpenMetaverse.AssetManager.MeshDownloadCallback"> 24292 <member name="T:OpenMetaverse.Messages.Linden.ObjectMediaBlock">
24293 <summary>Base class used for the ObjectMedia message</summary>
24294 </member>
24295 <member name="T:OpenMetaverse.Messages.Linden.ObjectMediaRequest">
23117 <summary> 24296 <summary>
23118 A callback that fires upon the completition of the RequestMesh call 24297 Message used to retrive prim media data
23119 </summary> 24298 </summary>
23120 <param name="success">Was the download successfull</param>
23121 <param name="assetMesh">Resulting mesh or null on problems</param>
23122 </member> 24299 </member>
23123 <member name="P:OpenMetaverse.XferReceivedEventArgs.Xfer"> 24300 <member name="F:OpenMetaverse.Messages.Linden.ObjectMediaRequest.PrimID">
23124 <summary>Xfer data</summary> 24301 <summary>
24302 Prim UUID
24303 </summary>
23125 </member> 24304 </member>
23126 <member name="P:OpenMetaverse.AssetUploadEventArgs.Upload"> 24305 <member name="F:OpenMetaverse.Messages.Linden.ObjectMediaRequest.Verb">
23127 <summary>Upload data</summary> 24306 <summary>
24307 Requested operation, either GET or UPDATE
24308 </summary>
23128 </member> 24309 </member>
23129 <member name="P:OpenMetaverse.InitiateDownloadEventArgs.SimFileName"> 24310 <member name="M:OpenMetaverse.Messages.Linden.ObjectMediaRequest.Serialize">
23130 <summary>Filename used on the simulator</summary> 24311 <summary>
24312 Serialize object
24313 </summary>
24314 <returns>Serialized object as OSDMap</returns>
23131 </member> 24315 </member>
23132 <member name="P:OpenMetaverse.InitiateDownloadEventArgs.ViewerFileName"> 24316 <member name="M:OpenMetaverse.Messages.Linden.ObjectMediaRequest.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
23133 <summary>Filename used by the client</summary> 24317 <summary>
24318 Deserialize the message
24319 </summary>
24320 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the data</param>
23134 </member> 24321 </member>
23135 <member name="P:OpenMetaverse.ImageReceiveProgressEventArgs.ImageID"> 24322 <member name="T:OpenMetaverse.Messages.Linden.ObjectMediaResponse">
23136 <summary>UUID of the image that is in progress</summary> 24323 <summary>
24324 Message used to update prim media data
24325 </summary>
23137 </member> 24326 </member>
23138 <member name="P:OpenMetaverse.ImageReceiveProgressEventArgs.Received"> 24327 <member name="F:OpenMetaverse.Messages.Linden.ObjectMediaResponse.PrimID">
23139 <summary>Number of bytes received so far</summary> 24328 <summary>
24329 Prim UUID
24330 </summary>
23140 </member> 24331 </member>
23141 <member name="P:OpenMetaverse.ImageReceiveProgressEventArgs.Total"> 24332 <member name="F:OpenMetaverse.Messages.Linden.ObjectMediaResponse.FaceMedia">
23142 <summary>Image size in bytes</summary> 24333 <summary>
24334 Array of media entries indexed by face number
24335 </summary>
23143 </member> 24336 </member>
23144 <member name="T:OpenMetaverse.Animations"> 24337 <member name="F:OpenMetaverse.Messages.Linden.ObjectMediaResponse.Version">
23145 <summary> 24338 <summary>
23146 Static pre-defined animations available to all agents 24339 Media version string
23147 </summary> 24340 </summary>
23148 </member> 24341 </member>
23149 <member name="F:OpenMetaverse.Animations.AFRAID"> 24342 <member name="M:OpenMetaverse.Messages.Linden.ObjectMediaResponse.Serialize">
23150 <summary>Agent with afraid expression on face</summary> 24343 <summary>
24344 Serialize object
24345 </summary>
24346 <returns>Serialized object as OSDMap</returns>
23151 </member> 24347 </member>
23152 <member name="F:OpenMetaverse.Animations.AIM_BAZOOKA_R"> 24348 <member name="M:OpenMetaverse.Messages.Linden.ObjectMediaResponse.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
23153 <summary>Agent aiming a bazooka (right handed)</summary> 24349 <summary>
24350 Deserialize the message
24351 </summary>
24352 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the data</param>
23154 </member> 24353 </member>
23155 <member name="F:OpenMetaverse.Animations.AIM_BOW_L"> 24354 <member name="T:OpenMetaverse.Messages.Linden.ObjectMediaUpdate">
23156 <summary>Agent aiming a bow (left handed)</summary> 24355 <summary>
24356 Message used to update prim media data
24357 </summary>
23157 </member> 24358 </member>
23158 <member name="F:OpenMetaverse.Animations.AIM_HANDGUN_R"> 24359 <member name="F:OpenMetaverse.Messages.Linden.ObjectMediaUpdate.PrimID">
23159 <summary>Agent aiming a hand gun (right handed)</summary> 24360 <summary>
24361 Prim UUID
24362 </summary>
23160 </member> 24363 </member>
23161 <member name="F:OpenMetaverse.Animations.AIM_RIFLE_R"> 24364 <member name="F:OpenMetaverse.Messages.Linden.ObjectMediaUpdate.FaceMedia">
23162 <summary>Agent aiming a rifle (right handed)</summary> 24365 <summary>
24366 Array of media entries indexed by face number
24367 </summary>
23163 </member> 24368 </member>
23164 <member name="F:OpenMetaverse.Animations.ANGRY"> 24369 <member name="F:OpenMetaverse.Messages.Linden.ObjectMediaUpdate.Verb">
23165 <summary>Agent with angry expression on face</summary> 24370 <summary>
24371 Requested operation, either GET or UPDATE
24372 </summary>
23166 </member> 24373 </member>
23167 <member name="F:OpenMetaverse.Animations.AWAY"> 24374 <member name="M:OpenMetaverse.Messages.Linden.ObjectMediaUpdate.Serialize">
23168 <summary>Agent hunched over (away)</summary> 24375 <summary>
24376 Serialize object
24377 </summary>
24378 <returns>Serialized object as OSDMap</returns>
23169 </member> 24379 </member>
23170 <member name="F:OpenMetaverse.Animations.BACKFLIP"> 24380 <member name="M:OpenMetaverse.Messages.Linden.ObjectMediaUpdate.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
23171 <summary>Agent doing a backflip</summary> 24381 <summary>
24382 Deserialize the message
24383 </summary>
24384 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the data</param>
23172 </member> 24385 </member>
23173 <member name="F:OpenMetaverse.Animations.BELLY_LAUGH"> 24386 <member name="T:OpenMetaverse.Messages.Linden.ObjectMediaMessage">
23174 <summary>Agent laughing while holding belly</summary> 24387 <summary>
24388 Message for setting or getting per face MediaEntry
24389 </summary>
23175 </member> 24390 </member>
23176 <member name="F:OpenMetaverse.Animations.BLOW_KISS"> 24391 <member name="F:OpenMetaverse.Messages.Linden.ObjectMediaMessage.Request">
23177 <summary>Agent blowing a kiss</summary> 24392 <summary>The request or response details block</summary>
23178 </member> 24393 </member>
23179 <member name="F:OpenMetaverse.Animations.BORED"> 24394 <member name="M:OpenMetaverse.Messages.Linden.ObjectMediaMessage.Serialize">
23180 <summary>Agent with bored expression on face</summary> 24395 <summary>
24396 Serialize the object
24397 </summary>
24398 <returns>An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the objects data</returns>
23181 </member> 24399 </member>
23182 <member name="F:OpenMetaverse.Animations.BOW"> 24400 <member name="M:OpenMetaverse.Messages.Linden.ObjectMediaMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
23183 <summary>Agent bowing to audience</summary> 24401 <summary>
24402 Deserialize the message
24403 </summary>
24404 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the data</param>
23184 </member> 24405 </member>
23185 <member name="F:OpenMetaverse.Animations.BRUSH"> 24406 <member name="T:OpenMetaverse.Messages.Linden.ObjectResourcesDetail">
23186 <summary>Agent brushing himself/herself off</summary> 24407 <summary>Details about object resource usage</summary>
23187 </member> 24408 </member>
23188 <member name="F:OpenMetaverse.Animations.BUSY"> 24409 <member name="F:OpenMetaverse.Messages.Linden.ObjectResourcesDetail.ID">
23189 <summary>Agent in busy mode</summary> 24410 <summary>Object UUID</summary>
23190 </member> 24411 </member>
23191 <member name="F:OpenMetaverse.Animations.CLAP"> 24412 <member name="F:OpenMetaverse.Messages.Linden.ObjectResourcesDetail.Name">
23192 <summary>Agent clapping hands</summary> 24413 <summary>Object name</summary>
23193 </member> 24414 </member>
23194 <member name="F:OpenMetaverse.Animations.COURTBOW"> 24415 <member name="F:OpenMetaverse.Messages.Linden.ObjectResourcesDetail.GroupOwned">
23195 <summary>Agent doing a curtsey bow</summary> 24416 <summary>Indicates if object is group owned</summary>
23196 </member> 24417 </member>
23197 <member name="F:OpenMetaverse.Animations.CROUCH"> 24418 <member name="F:OpenMetaverse.Messages.Linden.ObjectResourcesDetail.Location">
23198 <summary>Agent crouching</summary> 24419 <summary>Locatio of the object</summary>
23199 </member> 24420 </member>
23200 <member name="F:OpenMetaverse.Animations.CROUCHWALK"> 24421 <member name="F:OpenMetaverse.Messages.Linden.ObjectResourcesDetail.OwnerID">
23201 <summary>Agent crouching while walking</summary> 24422 <summary>Object owner</summary>
23202 </member> 24423 </member>
23203 <member name="F:OpenMetaverse.Animations.CRY"> 24424 <member name="F:OpenMetaverse.Messages.Linden.ObjectResourcesDetail.Resources">
23204 <summary>Agent crying</summary> 24425 <summary>Resource usage, keys are resource names, values are resource usage for that specific resource</summary>
23205 </member> 24426 </member>
23206 <member name="F:OpenMetaverse.Animations.CUSTOMIZE"> 24427 <member name="M:OpenMetaverse.Messages.Linden.ObjectResourcesDetail.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
23207 <summary>Agent unanimated with arms out (e.g. setting appearance)</summary> 24428 <summary>
24429 Deserializes object from OSD
24430 </summary>
24431 <param name="obj">An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the data</param>
23208 </member> 24432 </member>
23209 <member name="F:OpenMetaverse.Animations.CUSTOMIZE_DONE"> 24433 <member name="M:OpenMetaverse.Messages.Linden.ObjectResourcesDetail.FromOSD(OpenMetaverse.StructuredData.OSD)">
23210 <summary>Agent re-animated after set appearance finished</summary> 24434 <summary>
24435 Makes an instance based on deserialized data
24436 </summary>
24437 <param name="osd">
24438 <see cref="T:OpenMetaverse.StructuredData.OSD" /> serialized data</param>
24439 <returns>Instance containg deserialized data</returns>
23211 </member> 24440 </member>
23212 <member name="F:OpenMetaverse.Animations.DANCE1"> 24441 <member name="T:OpenMetaverse.Messages.Linden.ParcelResourcesDetail">
23213 <summary>Agent dancing</summary> 24442 <summary>Details about parcel resource usage</summary>
23214 </member> 24443 </member>
23215 <member name="F:OpenMetaverse.Animations.DANCE2"> 24444 <member name="F:OpenMetaverse.Messages.Linden.ParcelResourcesDetail.ID">
23216 <summary>Agent dancing</summary> 24445 <summary>Parcel UUID</summary>
23217 </member> 24446 </member>
23218 <member name="F:OpenMetaverse.Animations.DANCE3"> 24447 <member name="F:OpenMetaverse.Messages.Linden.ParcelResourcesDetail.LocalID">
23219 <summary>Agent dancing</summary> 24448 <summary>Parcel local ID</summary>
23220 </member> 24449 </member>
23221 <member name="F:OpenMetaverse.Animations.DANCE4"> 24450 <member name="F:OpenMetaverse.Messages.Linden.ParcelResourcesDetail.Name">
23222 <summary>Agent dancing</summary> 24451 <summary>Parcel name</summary>
23223 </member> 24452 </member>
23224 <member name="F:OpenMetaverse.Animations.DANCE5"> 24453 <member name="F:OpenMetaverse.Messages.Linden.ParcelResourcesDetail.GroupOwned">
23225 <summary>Agent dancing</summary> 24454 <summary>Indicates if parcel is group owned</summary>
23226 </member> 24455 </member>
23227 <member name="F:OpenMetaverse.Animations.DANCE6"> 24456 <member name="F:OpenMetaverse.Messages.Linden.ParcelResourcesDetail.OwnerID">
23228 <summary>Agent dancing</summary> 24457 <summary>Parcel owner</summary>
23229 </member> 24458 </member>
23230 <member name="F:OpenMetaverse.Animations.DANCE7"> 24459 <member name="F:OpenMetaverse.Messages.Linden.ParcelResourcesDetail.Objects">
23231 <summary>Agent dancing</summary> 24460 <summary>Array of <see cref="T:OpenMetaverse.Messages.Linden.ObjectResourcesDetail" /> containing per object resource usage</summary>
23232 </member> 24461 </member>
23233 <member name="F:OpenMetaverse.Animations.DANCE8"> 24462 <member name="M:OpenMetaverse.Messages.Linden.ParcelResourcesDetail.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
23234 <summary>Agent dancing</summary> 24463 <summary>
24464 Deserializes object from OSD
24465 </summary>
24466 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the data</param>
23235 </member> 24467 </member>
23236 <member name="F:OpenMetaverse.Animations.DEAD"> 24468 <member name="M:OpenMetaverse.Messages.Linden.ParcelResourcesDetail.FromOSD(OpenMetaverse.StructuredData.OSD)">
23237 <summary>Agent on ground unanimated</summary> 24469 <summary>
24470 Makes an instance based on deserialized data
24471 </summary>
24472 <param name="osd">
24473 <see cref="T:OpenMetaverse.StructuredData.OSD" /> serialized data</param>
24474 <returns>Instance containg deserialized data</returns>
23238 </member> 24475 </member>
23239 <member name="F:OpenMetaverse.Animations.DRINK"> 24476 <member name="T:OpenMetaverse.Messages.Linden.BaseResourcesInfo">
23240 <summary>Agent boozing it up</summary> 24477 <summary>Resource usage base class, both agent and parcel resource
24478 usage contains summary information</summary>
23241 </member> 24479 </member>
23242 <member name="F:OpenMetaverse.Animations.EMBARRASSED"> 24480 <member name="F:OpenMetaverse.Messages.Linden.BaseResourcesInfo.SummaryAvailable">
23243 <summary>Agent with embarassed expression on face</summary> 24481 <summary>Summary of available resources, keys are resource names,
24482 values are resource usage for that specific resource</summary>
23244 </member> 24483 </member>
23245 <member name="F:OpenMetaverse.Animations.EXPRESS_AFRAID"> 24484 <member name="F:OpenMetaverse.Messages.Linden.BaseResourcesInfo.SummaryUsed">
23246 <summary>Agent with afraid expression on face</summary> 24485 <summary>Summary resource usage, keys are resource names,
24486 values are resource usage for that specific resource</summary>
23247 </member> 24487 </member>
23248 <member name="F:OpenMetaverse.Animations.EXPRESS_ANGER"> 24488 <member name="M:OpenMetaverse.Messages.Linden.BaseResourcesInfo.Serialize">
23249 <summary>Agent with angry expression on face</summary> 24489 <summary>
24490 Serializes object
24491 </summary>
24492 <returns>
24493 <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> serialized data</returns>
23250 </member> 24494 </member>
23251 <member name="F:OpenMetaverse.Animations.EXPRESS_BORED"> 24495 <member name="M:OpenMetaverse.Messages.Linden.BaseResourcesInfo.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
23252 <summary>Agent with bored expression on face</summary> 24496 <summary>
24497 Deserializes object from OSD
24498 </summary>
24499 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the data</param>
23253 </member> 24500 </member>
23254 <member name="F:OpenMetaverse.Animations.EXPRESS_CRY"> 24501 <member name="T:OpenMetaverse.Messages.Linden.AttachmentResourcesMessage">
23255 <summary>Agent crying</summary> 24502 <summary>Agent resource usage</summary>
23256 </member> 24503 </member>
23257 <member name="F:OpenMetaverse.Animations.EXPRESS_DISDAIN"> 24504 <member name="F:OpenMetaverse.Messages.Linden.AttachmentResourcesMessage.Attachments">
23258 <summary>Agent showing disdain (dislike) for something</summary> 24505 <summary>Per attachment point object resource usage</summary>
23259 </member> 24506 </member>
23260 <member name="F:OpenMetaverse.Animations.EXPRESS_EMBARRASSED"> 24507 <member name="M:OpenMetaverse.Messages.Linden.AttachmentResourcesMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
23261 <summary>Agent with embarassed expression on face</summary> 24508 <summary>
24509 Deserializes object from OSD
24510 </summary>
24511 <param name="osd">An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the data</param>
23262 </member> 24512 </member>
23263 <member name="F:OpenMetaverse.Animations.EXPRESS_FROWN"> 24513 <member name="M:OpenMetaverse.Messages.Linden.AttachmentResourcesMessage.FromOSD(OpenMetaverse.StructuredData.OSD)">
23264 <summary>Agent with frowning expression on face</summary> 24514 <summary>
24515 Makes an instance based on deserialized data
24516 </summary>
24517 <param name="osd">
24518 <see cref="T:OpenMetaverse.StructuredData.OSD" /> serialized data</param>
24519 <returns>Instance containg deserialized data</returns>
23265 </member> 24520 </member>
23266 <member name="F:OpenMetaverse.Animations.EXPRESS_KISS"> 24521 <member name="M:OpenMetaverse.Messages.Linden.AttachmentResourcesMessage.GetMessageHandler(OpenMetaverse.StructuredData.OSDMap)">
23267 <summary>Agent with kissy face</summary> 24522 <summary>
24523 Detects which class handles deserialization of this message
24524 </summary>
24525 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the data</param>
24526 <returns>Object capable of decoding this message</returns>
23268 </member> 24527 </member>
23269 <member name="F:OpenMetaverse.Animations.EXPRESS_LAUGH"> 24528 <member name="T:OpenMetaverse.Messages.Linden.LandResourcesRequest">
23270 <summary>Agent expressing laughgter</summary> 24529 <summary>Request message for parcel resource usage</summary>
23271 </member> 24530 </member>
23272 <member name="F:OpenMetaverse.Animations.EXPRESS_OPEN_MOUTH"> 24531 <member name="F:OpenMetaverse.Messages.Linden.LandResourcesRequest.ParcelID">
23273 <summary>Agent with open mouth</summary> 24532 <summary>UUID of the parel to request resource usage info</summary>
23274 </member> 24533 </member>
23275 <member name="F:OpenMetaverse.Animations.EXPRESS_REPULSED"> 24534 <member name="M:OpenMetaverse.Messages.Linden.LandResourcesRequest.Serialize">
23276 <summary>Agent with repulsed expression on face</summary> 24535 <summary>
24536 Serializes object
24537 </summary>
24538 <returns>
24539 <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> serialized data</returns>
23277 </member> 24540 </member>
23278 <member name="F:OpenMetaverse.Animations.EXPRESS_SAD"> 24541 <member name="M:OpenMetaverse.Messages.Linden.LandResourcesRequest.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
23279 <summary>Agent expressing sadness</summary> 24542 <summary>
24543 Deserializes object from OSD
24544 </summary>
24545 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the data</param>
23280 </member> 24546 </member>
23281 <member name="F:OpenMetaverse.Animations.EXPRESS_SHRUG"> 24547 <member name="T:OpenMetaverse.Messages.Linden.LandResourcesMessage">
23282 <summary>Agent shrugging shoulders</summary> 24548 <summary>Response message for parcel resource usage</summary>
23283 </member> 24549 </member>
23284 <member name="F:OpenMetaverse.Animations.EXPRESS_SMILE"> 24550 <member name="F:OpenMetaverse.Messages.Linden.LandResourcesMessage.ScriptResourceDetails">
23285 <summary>Agent with a smile</summary> 24551 <summary>URL where parcel resource usage details can be retrieved</summary>
23286 </member> 24552 </member>
23287 <member name="F:OpenMetaverse.Animations.EXPRESS_SURPRISE"> 24553 <member name="F:OpenMetaverse.Messages.Linden.LandResourcesMessage.ScriptResourceSummary">
23288 <summary>Agent expressing surprise</summary> 24554 <summary>URL where parcel resource usage summary can be retrieved</summary>
23289 </member> 24555 </member>
23290 <member name="F:OpenMetaverse.Animations.EXPRESS_TONGUE_OUT"> 24556 <member name="M:OpenMetaverse.Messages.Linden.LandResourcesMessage.Serialize">
23291 <summary>Agent sticking tongue out</summary> 24557 <summary>
24558 Serializes object
24559 </summary>
24560 <returns>
24561 <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> serialized data</returns>
23292 </member> 24562 </member>
23293 <member name="F:OpenMetaverse.Animations.EXPRESS_TOOTHSMILE"> 24563 <member name="M:OpenMetaverse.Messages.Linden.LandResourcesMessage.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
23294 <summary>Agent with big toothy smile</summary> 24564 <summary>
24565 Deserializes object from OSD
24566 </summary>
24567 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the data</param>
23295 </member> 24568 </member>
23296 <member name="F:OpenMetaverse.Animations.EXPRESS_WINK"> 24569 <member name="M:OpenMetaverse.Messages.Linden.LandResourcesMessage.GetMessageHandler(OpenMetaverse.StructuredData.OSDMap)">
23297 <summary>Agent winking</summary> 24570 <summary>
24571 Detects which class handles deserialization of this message
24572 </summary>
24573 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the data</param>
24574 <returns>Object capable of decoding this message</returns>
23298 </member> 24575 </member>
23299 <member name="F:OpenMetaverse.Animations.EXPRESS_WORRY"> 24576 <member name="T:OpenMetaverse.Messages.Linden.LandResourcesInfo">
23300 <summary>Agent expressing worry</summary> 24577 <summary>Parcel resource usage</summary>
23301 </member> 24578 </member>
23302 <member name="F:OpenMetaverse.Animations.FALLDOWN"> 24579 <member name="F:OpenMetaverse.Messages.Linden.LandResourcesInfo.Parcels">
23303 <summary>Agent falling down</summary> 24580 <summary>Array of <see cref="T:OpenMetaverse.Messages.Linden.ParcelResourcesDetail" /> containing per percal resource usage</summary>
23304 </member> 24581 </member>
23305 <member name="F:OpenMetaverse.Animations.FEMALE_WALK"> 24582 <member name="M:OpenMetaverse.Messages.Linden.LandResourcesInfo.Deserialize(OpenMetaverse.StructuredData.OSDMap)">
23306 <summary>Agent walking (feminine version)</summary> 24583 <summary>
24584 Deserializes object from OSD
24585 </summary>
24586 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> containing the data</param>
23307 </member> 24587 </member>
23308 <member name="F:OpenMetaverse.Animations.FINGER_WAG"> 24588 <member name="T:OpenMetaverse.Messages.Linden.GetDisplayNamesMessage">
23309 <summary>Agent wagging finger (disapproval)</summary> 24589 <summary>
24590 Reply to request for bunch if display names
24591 </summary>
23310 </member> 24592 </member>
23311 <member name="F:OpenMetaverse.Animations.FIST_PUMP"> 24593 <member name="F:OpenMetaverse.Messages.Linden.GetDisplayNamesMessage.Agents">
23312 <summary>I'm not sure I want to know</summary> 24594 <summary> Current display name </summary>
23313 </member> 24595 </member>
23314 <member name="F:OpenMetaverse.Animations.FLY"> 24596 <member name="F:OpenMetaverse.Messages.Linden.GetDisplayNamesMessage.BadIDs">
23315 <summary>Agent in superman position</summary> 24597 <summary> Following UUIDs failed to return a valid display name </summary>
23316 </member> 24598 </member>
23317 <member name="F:OpenMetaverse.Animations.FLYSLOW"> 24599 <member name="M:OpenMetaverse.Messages.Linden.GetDisplayNamesMessage.Serialize">
23318 <summary>Agent in superman position</summary> 24600 <summary>
24601 Serializes the message
24602 </summary>
24603 <returns>OSD containting the messaage</returns>
23319 </member> 24604 </member>
23320 <member name="F:OpenMetaverse.Animations.HELLO"> 24605 <member name="T:OpenMetaverse.Messages.Linden.SetDisplayNameMessage">
23321 <summary>Agent greeting another</summary> 24606 <summary>
24607 Message sent when requesting change of the display name
24608 </summary>
23322 </member> 24609 </member>
23323 <member name="F:OpenMetaverse.Animations.HOLD_BAZOOKA_R"> 24610 <member name="F:OpenMetaverse.Messages.Linden.SetDisplayNameMessage.OldDisplayName">
23324 <summary>Agent holding bazooka (right handed)</summary> 24611 <summary> Current display name </summary>
23325 </member> 24612 </member>
23326 <member name="F:OpenMetaverse.Animations.HOLD_BOW_L"> 24613 <member name="F:OpenMetaverse.Messages.Linden.SetDisplayNameMessage.NewDisplayName">
23327 <summary>Agent holding a bow (left handed)</summary> 24614 <summary> Desired new display name </summary>
23328 </member> 24615 </member>
23329 <member name="F:OpenMetaverse.Animations.HOLD_HANDGUN_R"> 24616 <member name="M:OpenMetaverse.Messages.Linden.SetDisplayNameMessage.Serialize">
23330 <summary>Agent holding a handgun (right handed)</summary> 24617 <summary>
24618 Serializes the message
24619 </summary>
24620 <returns>OSD containting the messaage</returns>
23331 </member> 24621 </member>
23332 <member name="F:OpenMetaverse.Animations.HOLD_RIFLE_R"> 24622 <member name="T:OpenMetaverse.Messages.Linden.SetDisplayNameReplyMessage">
23333 <summary>Agent holding a rifle (right handed)</summary> 24623 <summary>
24624 Message recieved in response to request to change display name
24625 </summary>
23334 </member> 24626 </member>
23335 <member name="F:OpenMetaverse.Animations.HOLD_THROW_R"> 24627 <member name="F:OpenMetaverse.Messages.Linden.SetDisplayNameReplyMessage.DisplayName">
23336 <summary>Agent throwing an object (right handed)</summary> 24628 <summary> New display name </summary>
23337 </member> 24629 </member>
23338 <member name="F:OpenMetaverse.Animations.HOVER"> 24630 <member name="F:OpenMetaverse.Messages.Linden.SetDisplayNameReplyMessage.Reason">
23339 <summary>Agent in static hover</summary> 24631 <summary> String message indicating the result of the operation </summary>
23340 </member> 24632 </member>
23341 <member name="F:OpenMetaverse.Animations.HOVER_DOWN"> 24633 <member name="F:OpenMetaverse.Messages.Linden.SetDisplayNameReplyMessage.Status">
23342 <summary>Agent hovering downward</summary> 24634 <summary> Numerical code of the result, 200 indicates success </summary>
23343 </member> 24635 </member>
23344 <member name="F:OpenMetaverse.Animations.HOVER_UP"> 24636 <member name="M:OpenMetaverse.Messages.Linden.SetDisplayNameReplyMessage.Serialize">
23345 <summary>Agent hovering upward</summary> 24637 <summary>
24638 Serializes the message
24639 </summary>
24640 <returns>OSD containting the messaage</returns>
23346 </member> 24641 </member>
23347 <member name="F:OpenMetaverse.Animations.IMPATIENT"> 24642 <member name="T:OpenMetaverse.Messages.Linden.DisplayNameUpdateMessage">
23348 <summary>Agent being impatient</summary> 24643 <summary>
24644 Message recieved when someone nearby changes their display name
24645 </summary>
23349 </member> 24646 </member>
23350 <member name="F:OpenMetaverse.Animations.JUMP"> 24647 <member name="F:OpenMetaverse.Messages.Linden.DisplayNameUpdateMessage.OldDisplayName">
23351 <summary>Agent jumping</summary> 24648 <summary> Previous display name, empty string if default </summary>
23352 </member> 24649 </member>
23353 <member name="F:OpenMetaverse.Animations.JUMP_FOR_JOY"> 24650 <member name="F:OpenMetaverse.Messages.Linden.DisplayNameUpdateMessage.DisplayName">
23354 <summary>Agent jumping with fervor</summary> 24651 <summary> New display name </summary>
23355 </member> 24652 </member>
23356 <member name="F:OpenMetaverse.Animations.KISS_MY_BUTT"> 24653 <member name="M:OpenMetaverse.Messages.Linden.DisplayNameUpdateMessage.Serialize">
23357 <summary>Agent point to lips then rear end</summary> 24654 <summary>
24655 Serializes the message
24656 </summary>
24657 <returns>OSD containting the messaage</returns>
23358 </member> 24658 </member>
23359 <member name="F:OpenMetaverse.Animations.LAND"> 24659 <member name="M:OpenMetaverse.Messages.MessageUtils.DecodeEvent(System.String,OpenMetaverse.StructuredData.OSDMap)">
23360 <summary>Agent landing from jump, finished flight, etc</summary> 24660 <summary>
24661 Return a decoded capabilities message as a strongly typed object
24662 </summary>
24663 <param name="eventName">A string containing the name of the capabilities message key</param>
24664 <param name="map">An <see cref="T:OpenMetaverse.StructuredData.OSDMap" /> to decode</param>
24665 <returns>A strongly typed object containing the decoded information from the capabilities message, or null
24666 if no existing Message object exists for the specified event</returns>
23361 </member> 24667 </member>
23362 <member name="F:OpenMetaverse.Animations.LAUGH_SHORT"> 24668 <member name="T:OpenMetaverse.MediaPermission">
23363 <summary>Agent laughing</summary> 24669 <summary>
24670 Permissions for control of object media
24671 </summary>
23364 </member> 24672 </member>
23365 <member name="F:OpenMetaverse.Animations.MEDIUM_LAND"> 24673 <member name="T:OpenMetaverse.MediaControls">
23366 <summary>Agent landing from jump, finished flight, etc</summary> 24674 <summary>
24675 Style of cotrols that shold be displayed to the user
24676 </summary>
23367 </member> 24677 </member>
23368 <member name="F:OpenMetaverse.Animations.MOTORCYCLE_SIT"> 24678 <member name="T:OpenMetaverse.MediaEntry">
23369 <summary>Agent sitting on a motorcycle</summary> 24679 <summary>
24680 Class representing media data for a single face
24681 </summary>
23370 </member> 24682 </member>
23371 <member name="F:OpenMetaverse.Animations.MUSCLE_BEACH"> 24683 <member name="F:OpenMetaverse.MediaEntry.EnableAlterntiveImage">
23372 <summary></summary> 24684 <summary>Is display of the alternative image enabled</summary>
23373 </member> 24685 </member>
23374 <member name="F:OpenMetaverse.Animations.NO"> 24686 <member name="F:OpenMetaverse.MediaEntry.AutoLoop">
23375 <summary>Agent moving head side to side</summary> 24687 <summary>Should media auto loop</summary>
23376 </member> 24688 </member>
23377 <member name="F:OpenMetaverse.Animations.NO_UNHAPPY"> 24689 <member name="F:OpenMetaverse.MediaEntry.AutoPlay">
23378 <summary>Agent moving head side to side with unhappy expression</summary> 24690 <summary>Shoule media be auto played</summary>
23379 </member> 24691 </member>
23380 <member name="F:OpenMetaverse.Animations.NYAH_NYAH"> 24692 <member name="F:OpenMetaverse.MediaEntry.AutoScale">
23381 <summary>Agent taunting another</summary> 24693 <summary>Auto scale media to prim face</summary>
23382 </member> 24694 </member>
23383 <member name="F:OpenMetaverse.Animations.ONETWO_PUNCH"> 24695 <member name="F:OpenMetaverse.MediaEntry.AutoZoom">
23384 <summary></summary> 24696 <summary>Should viewer automatically zoom in on the face when clicked</summary>
23385 </member> 24697 </member>
23386 <member name="F:OpenMetaverse.Animations.PEACE"> 24698 <member name="F:OpenMetaverse.MediaEntry.InteractOnFirstClick">
23387 <summary>Agent giving peace sign</summary> 24699 <summary>Should viewer interpret first click as interaction with the media
24700 or when false should the first click be treated as zoom in commadn</summary>
23388 </member> 24701 </member>
23389 <member name="F:OpenMetaverse.Animations.POINT_ME"> 24702 <member name="F:OpenMetaverse.MediaEntry.Controls">
23390 <summary>Agent pointing at self</summary> 24703 <summary>Style of controls viewer should display when
24704 viewer media on this face</summary>
23391 </member> 24705 </member>
23392 <member name="F:OpenMetaverse.Animations.POINT_YOU"> 24706 <member name="F:OpenMetaverse.MediaEntry.HomeURL">
23393 <summary>Agent pointing at another</summary> 24707 <summary>Starting URL for the media</summary>
23394 </member> 24708 </member>
23395 <member name="F:OpenMetaverse.Animations.PRE_JUMP"> 24709 <member name="F:OpenMetaverse.MediaEntry.CurrentURL">
23396 <summary>Agent preparing for jump (bending knees)</summary> 24710 <summary>Currently navigated URL</summary>
23397 </member> 24711 </member>
23398 <member name="F:OpenMetaverse.Animations.PUNCH_LEFT"> 24712 <member name="F:OpenMetaverse.MediaEntry.Height">
23399 <summary>Agent punching with left hand</summary> 24713 <summary>Media height in pixes</summary>
23400 </member> 24714 </member>
23401 <member name="F:OpenMetaverse.Animations.PUNCH_RIGHT"> 24715 <member name="F:OpenMetaverse.MediaEntry.Width">
23402 <summary>Agent punching with right hand</summary> 24716 <summary>Media width in pixels</summary>
23403 </member> 24717 </member>
23404 <member name="F:OpenMetaverse.Animations.REPULSED"> 24718 <member name="F:OpenMetaverse.MediaEntry.ControlPermissions">
23405 <summary>Agent acting repulsed</summary> 24719 <summary>Who can controls the media</summary>
23406 </member> 24720 </member>
23407 <member name="F:OpenMetaverse.Animations.ROUNDHOUSE_KICK"> 24721 <member name="F:OpenMetaverse.MediaEntry.InteractPermissions">
23408 <summary>Agent trying to be Chuck Norris</summary> 24722 <summary>Who can interact with the media</summary>
23409 </member> 24723 </member>
23410 <member name="F:OpenMetaverse.Animations.RPS_COUNTDOWN"> 24724 <member name="F:OpenMetaverse.MediaEntry.EnableWhiteList">
23411 <summary>Rocks, Paper, Scissors 1, 2, 3</summary> 24725 <summary>Is URL whitelist enabled</summary>
23412 </member> 24726 </member>
23413 <member name="F:OpenMetaverse.Animations.RPS_PAPER"> 24727 <member name="F:OpenMetaverse.MediaEntry.WhiteList">
23414 <summary>Agent with hand flat over other hand</summary> 24728 <summary>Array of URLs that are whitelisted</summary>
23415 </member> 24729 </member>
23416 <member name="F:OpenMetaverse.Animations.RPS_ROCK"> 24730 <member name="M:OpenMetaverse.MediaEntry.GetOSD">
23417 <summary>Agent with fist over other hand</summary> 24731 <summary>
24732 Serialize to OSD
24733 </summary>
24734 <returns>OSDMap with the serialized data</returns>
23418 </member> 24735 </member>
23419 <member name="F:OpenMetaverse.Animations.RPS_SCISSORS"> 24736 <member name="M:OpenMetaverse.MediaEntry.FromOSD(OpenMetaverse.StructuredData.OSD)">
23420 <summary>Agent with two fingers spread over other hand</summary> 24737 <summary>
24738 Deserialize from OSD data
24739 </summary>
24740 <param name="osd">Serialized OSD data</param>
24741 <returns>Deserialized object</returns>
23421 </member> 24742 </member>
23422 <member name="F:OpenMetaverse.Animations.RUN"> 24743 <member name="T:OpenMetaverse.Primitive">
23423 <summary>Agent running</summary> 24744 <summary>
24745 Particle system specific enumerators, flags and methods.
24746 </summary>
23424 </member> 24747 </member>
23425 <member name="F:OpenMetaverse.Animations.SAD"> 24748 <member name="M:OpenMetaverse.Primitive.#ctor">
23426 <summary>Agent appearing sad</summary> 24749 <summary>
24750 Default constructor
24751 </summary>
23427 </member> 24752 </member>
23428 <member name="F:OpenMetaverse.Animations.SALUTE"> 24753 <member name="T:OpenMetaverse.Primitive.ParticleSystem">
23429 <summary>Agent saluting</summary> 24754 <summary>
24755 Complete structure for the particle system
24756 </summary>
23430 </member> 24757 </member>
23431 <member name="F:OpenMetaverse.Animations.SHOOT_BOW_L"> 24758 <member name="M:OpenMetaverse.Primitive.ParticleSystem.#ctor(System.Byte[],System.Int32)">
23432 <summary>Agent shooting bow (left handed)</summary> 24759 <summary>
24760 Decodes a byte[] array into a ParticleSystem Object
24761 </summary>
24762 <param name="data">ParticleSystem object</param>
24763 <param name="pos">Start position for BitPacker</param>
23433 </member> 24764 </member>
23434 <member name="F:OpenMetaverse.Animations.SHOUT"> 24765 <member name="T:OpenMetaverse.Primitive.ParticleSystem.SourcePattern">
23435 <summary>Agent cupping mouth as if shouting</summary> 24766 <summary>
24767 Particle source pattern
24768 </summary>
23436 </member> 24769 </member>
23437 <member name="F:OpenMetaverse.Animations.SHRUG"> 24770 <member name="F:OpenMetaverse.Primitive.ParticleSystem.SourcePattern.None">
23438 <summary>Agent shrugging shoulders</summary> 24771 <summary>None</summary>
23439 </member> 24772 </member>
23440 <member name="F:OpenMetaverse.Animations.SIT"> 24773 <member name="F:OpenMetaverse.Primitive.ParticleSystem.SourcePattern.Drop">
23441 <summary>Agent in sit position</summary> 24774 <summary>Drop particles from source position with no force</summary>
23442 </member> 24775 </member>
23443 <member name="F:OpenMetaverse.Animations.SIT_FEMALE"> 24776 <member name="F:OpenMetaverse.Primitive.ParticleSystem.SourcePattern.Explode">
23444 <summary>Agent in sit position (feminine)</summary> 24777 <summary>"Explode" particles in all directions</summary>
23445 </member> 24778 </member>
23446 <member name="F:OpenMetaverse.Animations.SIT_GENERIC"> 24779 <member name="F:OpenMetaverse.Primitive.ParticleSystem.SourcePattern.Angle">
23447 <summary>Agent in sit position (generic)</summary> 24780 <summary>Particles shoot across a 2D area</summary>
23448 </member> 24781 </member>
23449 <member name="F:OpenMetaverse.Animations.SIT_GROUND"> 24782 <member name="F:OpenMetaverse.Primitive.ParticleSystem.SourcePattern.AngleCone">
23450 <summary>Agent sitting on ground</summary> 24783 <summary>Particles shoot across a 3D Cone</summary>
23451 </member> 24784 </member>
23452 <member name="F:OpenMetaverse.Animations.SIT_GROUND_staticRAINED"> 24785 <member name="F:OpenMetaverse.Primitive.ParticleSystem.SourcePattern.AngleConeEmpty">
23453 <summary>Agent sitting on ground</summary> 24786 <summary>Inverse of AngleCone (shoot particles everywhere except the 3D cone defined</summary>
23454 </member> 24787 </member>
23455 <member name="F:OpenMetaverse.Animations.SIT_TO_STAND"> 24788 <member name="T:OpenMetaverse.Primitive.ParticleSystem.ParticleDataFlags">
23456 <summary></summary> 24789 <summary>
24790 Particle Data Flags
24791 </summary>
23457 </member> 24792 </member>
23458 <member name="F:OpenMetaverse.Animations.SLEEP"> 24793 <member name="F:OpenMetaverse.Primitive.ParticleSystem.ParticleDataFlags.None">
23459 <summary>Agent sleeping on side</summary> 24794 <summary>None</summary>
23460 </member> 24795 </member>
23461 <member name="F:OpenMetaverse.Animations.SMOKE_IDLE"> 24796 <member name="F:OpenMetaverse.Primitive.ParticleSystem.ParticleDataFlags.InterpColor">
23462 <summary>Agent smoking</summary> 24797 <summary>Interpolate color and alpha from start to end</summary>
23463 </member> 24798 </member>
23464 <member name="F:OpenMetaverse.Animations.SMOKE_INHALE"> 24799 <member name="F:OpenMetaverse.Primitive.ParticleSystem.ParticleDataFlags.InterpScale">
23465 <summary>Agent inhaling smoke</summary> 24800 <summary>Interpolate scale from start to end</summary>
23466 </member> 24801 </member>
23467 <member name="F:OpenMetaverse.Animations.SMOKE_THROW_DOWN"> 24802 <member name="F:OpenMetaverse.Primitive.ParticleSystem.ParticleDataFlags.Bounce">
23468 <summary></summary> 24803 <summary>Bounce particles off particle sources Z height</summary>
23469 </member> 24804 </member>
23470 <member name="F:OpenMetaverse.Animations.SNAPSHOT"> 24805 <member name="F:OpenMetaverse.Primitive.ParticleSystem.ParticleDataFlags.Wind">
23471 <summary>Agent taking a picture</summary> 24806 <summary>velocity of particles is dampened toward the simulators wind</summary>
23472 </member> 24807 </member>
23473 <member name="F:OpenMetaverse.Animations.STAND"> 24808 <member name="F:OpenMetaverse.Primitive.ParticleSystem.ParticleDataFlags.FollowSrc">
23474 <summary>Agent standing</summary> 24809 <summary>Particles follow the source</summary>
23475 </member> 24810 </member>
23476 <member name="F:OpenMetaverse.Animations.STANDUP"> 24811 <member name="F:OpenMetaverse.Primitive.ParticleSystem.ParticleDataFlags.FollowVelocity">
23477 <summary>Agent standing up</summary> 24812 <summary>Particles point towards the direction of source's velocity</summary>
23478 </member> 24813 </member>
23479 <member name="F:OpenMetaverse.Animations.STAND_1"> 24814 <member name="F:OpenMetaverse.Primitive.ParticleSystem.ParticleDataFlags.TargetPos">
23480 <summary>Agent standing</summary> 24815 <summary>Target of the particles</summary>
23481 </member> 24816 </member>
23482 <member name="F:OpenMetaverse.Animations.STAND_2"> 24817 <member name="F:OpenMetaverse.Primitive.ParticleSystem.ParticleDataFlags.TargetLinear">
23483 <summary>Agent standing</summary> 24818 <summary>Particles are sent in a straight line</summary>
23484 </member> 24819 </member>
23485 <member name="F:OpenMetaverse.Animations.STAND_3"> 24820 <member name="F:OpenMetaverse.Primitive.ParticleSystem.ParticleDataFlags.Emissive">
23486 <summary>Agent standing</summary> 24821 <summary>Particles emit a glow</summary>
23487 </member> 24822 </member>
23488 <member name="F:OpenMetaverse.Animations.STAND_4"> 24823 <member name="F:OpenMetaverse.Primitive.ParticleSystem.ParticleDataFlags.Beam">
23489 <summary>Agent standing</summary> 24824 <summary>used for point/grab/touch</summary>
23490 </member> 24825 </member>
23491 <member name="F:OpenMetaverse.Animations.STRETCH"> 24826 <member name="T:OpenMetaverse.Primitive.ParticleSystem.ParticleFlags">
23492 <summary>Agent stretching</summary> 24827 <summary>
24828 Particle Flags Enum
24829 </summary>
23493 </member> 24830 </member>
23494 <member name="F:OpenMetaverse.Animations.STRIDE"> 24831 <member name="F:OpenMetaverse.Primitive.ParticleSystem.ParticleFlags.None">
23495 <summary>Agent in stride (fast walk)</summary> 24832 <summary>None</summary>
23496 </member> 24833 </member>
23497 <member name="F:OpenMetaverse.Animations.SURF"> 24834 <member name="F:OpenMetaverse.Primitive.ParticleSystem.ParticleFlags.ObjectRelative">
23498 <summary>Agent surfing</summary> 24835 <summary>Acceleration and velocity for particles are
24836 relative to the object rotation</summary>
23499 </member> 24837 </member>
23500 <member name="F:OpenMetaverse.Animations.SURPRISE"> 24838 <member name="F:OpenMetaverse.Primitive.ParticleSystem.ParticleFlags.UseNewAngle">
23501 <summary>Agent acting surprised</summary> 24839 <summary>Particles use new 'correct' angle parameters</summary>
23502 </member> 24840 </member>
23503 <member name="F:OpenMetaverse.Animations.SWORD_STRIKE"> 24841 <member name="F:OpenMetaverse.Primitive.ParticleSystem.PartFlags">
23504 <summary>Agent striking with a sword</summary> 24842 <summary>Particle Flags</summary>
24843 <remarks>There appears to be more data packed in to this area
24844 for many particle systems. It doesn't appear to be flag values
24845 and serialization breaks unless there is a flag for every
24846 possible bit so it is left as an unsigned integer</remarks>
23505 </member> 24847 </member>
23506 <member name="F:OpenMetaverse.Animations.TALK"> 24848 <member name="F:OpenMetaverse.Primitive.ParticleSystem.Pattern">
23507 <summary>Agent talking (lips moving)</summary> 24849 <summary>
24850 <seealso cref="T:SourcePattern" /> pattern of particles</summary>
23508 </member> 24851 </member>
23509 <member name="F:OpenMetaverse.Animations.TANTRUM"> 24852 <member name="F:OpenMetaverse.Primitive.ParticleSystem.MaxAge">
23510 <summary>Agent throwing a tantrum</summary> 24853 <summary>A <see langword="float" /> representing the maximimum age (in seconds) particle will be displayed</summary>
24854 <remarks>Maximum value is 30 seconds</remarks>
23511 </member> 24855 </member>
23512 <member name="F:OpenMetaverse.Animations.THROW_R"> 24856 <member name="F:OpenMetaverse.Primitive.ParticleSystem.StartAge">
23513 <summary>Agent throwing an object (right handed)</summary> 24857 <summary>A <see langword="float" /> representing the number of seconds,
24858 from when the particle source comes into view,
24859 or the particle system's creation, that the object will emits particles;
24860 after this time period no more particles are emitted</summary>
23514 </member> 24861 </member>
23515 <member name="F:OpenMetaverse.Animations.TRYON_SHIRT"> 24862 <member name="F:OpenMetaverse.Primitive.ParticleSystem.InnerAngle">
23516 <summary>Agent trying on a shirt</summary> 24863 <summary>A <see langword="float" /> in radians that specifies where particles will not be created</summary>
23517 </member> 24864 </member>
23518 <member name="F:OpenMetaverse.Animations.TURNLEFT"> 24865 <member name="F:OpenMetaverse.Primitive.ParticleSystem.OuterAngle">
23519 <summary>Agent turning to the left</summary> 24866 <summary>A <see langword="float" /> in radians that specifies where particles will be created</summary>
23520 </member> 24867 </member>
23521 <member name="F:OpenMetaverse.Animations.TURNRIGHT"> 24868 <member name="F:OpenMetaverse.Primitive.ParticleSystem.BurstRate">
23522 <summary>Agent turning to the right</summary> 24869 <summary>A <see langword="float" /> representing the number of seconds between burts.</summary>
23523 </member> 24870 </member>
23524 <member name="F:OpenMetaverse.Animations.TYPE"> 24871 <member name="F:OpenMetaverse.Primitive.ParticleSystem.BurstRadius">
23525 <summary>Agent typing</summary> 24872 <summary>A <see langword="float" /> representing the number of meters
24873 around the center of the source where particles will be created.</summary>
23526 </member> 24874 </member>
23527 <member name="F:OpenMetaverse.Animations.WALK"> 24875 <member name="F:OpenMetaverse.Primitive.ParticleSystem.BurstSpeedMin">
23528 <summary>Agent walking</summary> 24876 <summary>A <see langword="float" /> representing in seconds, the minimum speed between bursts of new particles
24877 being emitted</summary>
23529 </member> 24878 </member>
23530 <member name="F:OpenMetaverse.Animations.WHISPER"> 24879 <member name="F:OpenMetaverse.Primitive.ParticleSystem.BurstSpeedMax">
23531 <summary>Agent whispering</summary> 24880 <summary>A <see langword="float" /> representing in seconds the maximum speed of new particles being emitted.</summary>
23532 </member> 24881 </member>
23533 <member name="F:OpenMetaverse.Animations.WHISTLE"> 24882 <member name="F:OpenMetaverse.Primitive.ParticleSystem.BurstPartCount">
23534 <summary>Agent whispering with fingers in mouth</summary> 24883 <summary>A <see langword="byte" /> representing the maximum number of particles emitted per burst</summary>
23535 </member> 24884 </member>
23536 <member name="F:OpenMetaverse.Animations.WINK"> 24885 <member name="F:OpenMetaverse.Primitive.ParticleSystem.AngularVelocity">
23537 <summary>Agent winking</summary> 24886 <summary>A <see cref="T:Vector3" /> which represents the velocity (speed) from the source which particles are emitted</summary>
23538 </member> 24887 </member>
23539 <member name="F:OpenMetaverse.Animations.WINK_HOLLYWOOD"> 24888 <member name="F:OpenMetaverse.Primitive.ParticleSystem.PartAcceleration">
23540 <summary>Agent winking</summary> 24889 <summary>A <see cref="T:Vector3" /> which represents the Acceleration from the source which particles are emitted</summary>
23541 </member> 24890 </member>
23542 <member name="F:OpenMetaverse.Animations.WORRY"> 24891 <member name="F:OpenMetaverse.Primitive.ParticleSystem.Texture">
23543 <summary>Agent worried</summary> 24892 <summary>The <see cref="T:UUID" /> Key of the texture displayed on the particle</summary>
23544 </member> 24893 </member>
23545 <member name="F:OpenMetaverse.Animations.YES"> 24894 <member name="F:OpenMetaverse.Primitive.ParticleSystem.Target">
23546 <summary>Agent nodding yes</summary> 24895 <summary>The <see cref="T:UUID" /> Key of the specified target object or avatar particles will follow</summary>
23547 </member> 24896 </member>
23548 <member name="F:OpenMetaverse.Animations.YES_HAPPY"> 24897 <member name="F:OpenMetaverse.Primitive.ParticleSystem.PartDataFlags">
23549 <summary>Agent nodding yes with happy face</summary> 24898 <summary>Flags of particle from <seealso cref="T:ParticleDataFlags" /></summary>
23550 </member> 24899 </member>
23551 <member name="F:OpenMetaverse.Animations.YOGA_FLOAT"> 24900 <member name="F:OpenMetaverse.Primitive.ParticleSystem.PartMaxAge">
23552 <summary>Agent floating with legs and arms crossed</summary> 24901 <summary>Max Age particle system will emit particles for</summary>
23553 </member> 24902 </member>
23554 <member name="M:OpenMetaverse.Animations.ToDictionary"> 24903 <member name="F:OpenMetaverse.Primitive.ParticleSystem.PartStartColor">
24904 <summary>The <see cref="T:Color4" /> the particle has at the beginning of its lifecycle</summary>
24905 </member>
24906 <member name="F:OpenMetaverse.Primitive.ParticleSystem.PartEndColor">
24907 <summary>The <see cref="T:Color4" /> the particle has at the ending of its lifecycle</summary>
24908 </member>
24909 <member name="F:OpenMetaverse.Primitive.ParticleSystem.PartStartScaleX">
24910 <summary>A <see langword="float" /> that represents the starting X size of the particle</summary>
24911 <remarks>Minimum value is 0, maximum value is 4</remarks>
24912 </member>
24913 <member name="F:OpenMetaverse.Primitive.ParticleSystem.PartStartScaleY">
24914 <summary>A <see langword="float" /> that represents the starting Y size of the particle</summary>
24915 <remarks>Minimum value is 0, maximum value is 4</remarks>
24916 </member>
24917 <member name="F:OpenMetaverse.Primitive.ParticleSystem.PartEndScaleX">
24918 <summary>A <see langword="float" /> that represents the ending X size of the particle</summary>
24919 <remarks>Minimum value is 0, maximum value is 4</remarks>
24920 </member>
24921 <member name="F:OpenMetaverse.Primitive.ParticleSystem.PartEndScaleY">
24922 <summary>A <see langword="float" /> that represents the ending Y size of the particle</summary>
24923 <remarks>Minimum value is 0, maximum value is 4</remarks>
24924 </member>
24925 <member name="M:OpenMetaverse.Primitive.ParticleSystem.GetBytes">
23555 <summary> 24926 <summary>
23556 A dictionary containing all pre-defined animations 24927 Generate byte[] array from particle data
23557 </summary> 24928 </summary>
23558 <returns>A dictionary containing the pre-defined animations, 24929 <returns>Byte array</returns>
23559 where the key is the animations ID, and the value is a string
23560 containing a name to identify the purpose of the animation</returns>
23561 </member> 24930 </member>
23562 <member name="T:OpenMetaverse.Rendering.LindenMesh.LODMesh"> 24931 <member name="T:OpenMetaverse.Primitive.ConstructionData">
23563 <summary> 24932 <summary>
23564 Level of Detail mesh 24933 Parameters used to construct a visual representation of a primitive
23565 </summary> 24934 </summary>
23566 </member> 24935 </member>
23567 <member name="T:OpenMetaverse.Assets.AssetPrim"> 24936 <member name="F:OpenMetaverse.Primitive.ConstructionData.profileCurve">
23568 <summary> 24937 <summary>
23569 A linkset asset, containing a parent primitive and zero or more children
23570 </summary> 24938 </summary>
23571 </member> 24939 </member>
23572 <member name="M:OpenMetaverse.Assets.AssetPrim.#ctor"> 24940 <member name="F:OpenMetaverse.Primitive.ConstructionData.PathCurve">
23573 <summary>Initializes a new instance of an AssetPrim object</summary>
23574 </member>
23575 <member name="M:OpenMetaverse.Assets.AssetPrim.#ctor(OpenMetaverse.UUID,System.Byte[])">
23576 <summary> 24941 <summary>
23577 Initializes a new instance of an AssetPrim object
23578 </summary> 24942 </summary>
23579 <param name="assetID">A unique <see cref="T:OpenMetaverse.UUID"/> specific to this asset</param>
23580 <param name="assetData">A byte array containing the raw asset data</param>
23581 </member> 24943 </member>
23582 <member name="M:OpenMetaverse.Assets.AssetPrim.Encode"> 24944 <member name="F:OpenMetaverse.Primitive.ConstructionData.PathEnd">
23583 <summary> 24945 <summary>
23584
23585 </summary> 24946 </summary>
23586 </member> 24947 </member>
23587 <member name="M:OpenMetaverse.Assets.AssetPrim.Decode"> 24948 <member name="F:OpenMetaverse.Primitive.ConstructionData.PathRadiusOffset">
23588 <summary> 24949 <summary>
23589
23590 </summary> 24950 </summary>
23591 <returns></returns>
23592 </member>
23593 <member name="P:OpenMetaverse.Assets.AssetPrim.AssetType">
23594 <summary>Override the base classes AssetType</summary>
23595 </member> 24951 </member>
23596 <member name="T:OpenMetaverse.Assets.AssetPrim.ProfileShape"> 24952 <member name="F:OpenMetaverse.Primitive.ConstructionData.PathSkew">
23597 <summary> 24953 <summary>
23598 Only used internally for XML serialization/deserialization
23599 </summary> 24954 </summary>
23600 </member> 24955 </member>
23601 <member name="T:OpenMetaverse.Assets.PrimObject"> 24956 <member name="F:OpenMetaverse.Primitive.ConstructionData.PathScaleX">
23602 <summary> 24957 <summary>
23603 The deserialized form of a single primitive in a linkset asset
23604 </summary> 24958 </summary>
23605 </member> 24959 </member>
23606 <member name="T:OpenMetaverse.SoundManager"> 24960 <member name="F:OpenMetaverse.Primitive.ConstructionData.PathScaleY">
23607 <summary> 24961 <summary>
23608
23609 </summary> 24962 </summary>
23610 </member> 24963 </member>
23611 <member name="F:OpenMetaverse.SoundManager.m_AttachedSound"> 24964 <member name="F:OpenMetaverse.Primitive.ConstructionData.PathShearX">
23612 <summary>The event subscribers, null of no subscribers</summary>
23613 </member>
23614 <member name="M:OpenMetaverse.SoundManager.OnAttachedSound(OpenMetaverse.AttachedSoundEventArgs)">
23615 <summary>Raises the AttachedSound Event</summary>
23616 <param name="e">A AttachedSoundEventArgs object containing
23617 the data sent from the simulator</param>
23618 </member>
23619 <member name="F:OpenMetaverse.SoundManager.m_AttachedSoundLock">
23620 <summary>Thread sync lock object</summary>
23621 </member>
23622 <member name="F:OpenMetaverse.SoundManager.m_AttachedSoundGainChange">
23623 <summary>The event subscribers, null of no subscribers</summary>
23624 </member>
23625 <member name="M:OpenMetaverse.SoundManager.OnAttachedSoundGainChange(OpenMetaverse.AttachedSoundGainChangeEventArgs)">
23626 <summary>Raises the AttachedSoundGainChange Event</summary>
23627 <param name="e">A AttachedSoundGainChangeEventArgs object containing
23628 the data sent from the simulator</param>
23629 </member>
23630 <member name="F:OpenMetaverse.SoundManager.m_AttachedSoundGainChangeLock">
23631 <summary>Thread sync lock object</summary>
23632 </member>
23633 <member name="F:OpenMetaverse.SoundManager.m_SoundTrigger">
23634 <summary>The event subscribers, null of no subscribers</summary>
23635 </member>
23636 <member name="M:OpenMetaverse.SoundManager.OnSoundTrigger(OpenMetaverse.SoundTriggerEventArgs)">
23637 <summary>Raises the SoundTrigger Event</summary>
23638 <param name="e">A SoundTriggerEventArgs object containing
23639 the data sent from the simulator</param>
23640 </member>
23641 <member name="F:OpenMetaverse.SoundManager.m_SoundTriggerLock">
23642 <summary>Thread sync lock object</summary>
23643 </member>
23644 <member name="F:OpenMetaverse.SoundManager.m_PreloadSound">
23645 <summary>The event subscribers, null of no subscribers</summary>
23646 </member>
23647 <member name="M:OpenMetaverse.SoundManager.OnPreloadSound(OpenMetaverse.PreloadSoundEventArgs)">
23648 <summary>Raises the PreloadSound Event</summary>
23649 <param name="e">A PreloadSoundEventArgs object containing
23650 the data sent from the simulator</param>
23651 </member>
23652 <member name="F:OpenMetaverse.SoundManager.m_PreloadSoundLock">
23653 <summary>Thread sync lock object</summary>
23654 </member>
23655 <member name="M:OpenMetaverse.SoundManager.#ctor(OpenMetaverse.GridClient)">
23656 <summary> 24965 <summary>
23657 Construct a new instance of the SoundManager class, used for playing and receiving
23658 sound assets
23659 </summary> 24966 </summary>
23660 <param name="client">A reference to the current GridClient instance</param>
23661 </member> 24967 </member>
23662 <member name="M:OpenMetaverse.SoundManager.PlaySound(OpenMetaverse.UUID)"> 24968 <member name="F:OpenMetaverse.Primitive.ConstructionData.PathShearY">
23663 <summary> 24969 <summary>
23664 Plays a sound in the current region at full volume from avatar position
23665 </summary> 24970 </summary>
23666 <param name="soundID">UUID of the sound to be played</param>
23667 </member> 24971 </member>
23668 <member name="M:OpenMetaverse.SoundManager.SendSoundTrigger(OpenMetaverse.UUID,OpenMetaverse.Vector3)"> 24972 <member name="F:OpenMetaverse.Primitive.ConstructionData.PathTaperX">
23669 <summary> 24973 <summary>
23670 Plays a sound in the current region at full volume
23671 </summary> 24974 </summary>
23672 <param name="soundID">UUID of the sound to be played.</param>
23673 <param name="position">position for the sound to be played at. Normally the avatar.</param>
23674 </member> 24975 </member>
23675 <member name="M:OpenMetaverse.SoundManager.SendSoundTrigger(OpenMetaverse.UUID,OpenMetaverse.Vector3,System.Single)"> 24976 <member name="F:OpenMetaverse.Primitive.ConstructionData.PathTaperY">
23676 <summary> 24977 <summary>
23677 Plays a sound in the current region
23678 </summary> 24978 </summary>
23679 <param name="soundID">UUID of the sound to be played.</param>
23680 <param name="position">position for the sound to be played at. Normally the avatar.</param>
23681 <param name="gain">volume of the sound, from 0.0 to 1.0</param>
23682 </member> 24979 </member>
23683 <member name="M:OpenMetaverse.SoundManager.SendSoundTrigger(OpenMetaverse.UUID,OpenMetaverse.Simulator,OpenMetaverse.Vector3,System.Single)"> 24980 <member name="F:OpenMetaverse.Primitive.ConstructionData.PathBegin">
23684 <summary> 24981 <summary>
23685 Plays a sound in the specified sim
23686 </summary> 24982 </summary>
23687 <param name="soundID">UUID of the sound to be played.</param>
23688 <param name="sim">UUID of the sound to be played.</param>
23689 <param name="position">position for the sound to be played at. Normally the avatar.</param>
23690 <param name="gain">volume of the sound, from 0.0 to 1.0</param>
23691 </member> 24983 </member>
23692 <member name="M:OpenMetaverse.SoundManager.SendSoundTrigger(OpenMetaverse.UUID,System.UInt64,OpenMetaverse.Vector3,System.Single)"> 24984 <member name="F:OpenMetaverse.Primitive.ConstructionData.PathTwist">
23693 <summary> 24985 <summary>
23694 Play a sound asset
23695 </summary> 24986 </summary>
23696 <param name="soundID">UUID of the sound to be played.</param>
23697 <param name="handle">handle id for the sim to be played in.</param>
23698 <param name="position">position for the sound to be played at. Normally the avatar.</param>
23699 <param name="gain">volume of the sound, from 0.0 to 1.0</param>
23700 </member> 24987 </member>
23701 <member name="M:OpenMetaverse.SoundManager.AttachedSoundHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)"> 24988 <member name="F:OpenMetaverse.Primitive.ConstructionData.PathTwistBegin">
23702 <summary>Process an incoming packet and raise the appropriate events</summary>
23703 <param name="sender">The sender</param>
23704 <param name="e">The EventArgs object containing the packet data</param>
23705 </member>
23706 <member name="M:OpenMetaverse.SoundManager.AttachedSoundGainChangeHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
23707 <summary>Process an incoming packet and raise the appropriate events</summary>
23708 <param name="sender">The sender</param>
23709 <param name="e">The EventArgs object containing the packet data</param>
23710 </member>
23711 <member name="M:OpenMetaverse.SoundManager.PreloadSoundHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
23712 <summary>Process an incoming packet and raise the appropriate events</summary>
23713 <param name="sender">The sender</param>
23714 <param name="e">The EventArgs object containing the packet data</param>
23715 </member>
23716 <member name="M:OpenMetaverse.SoundManager.SoundTriggerHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)">
23717 <summary>Process an incoming packet and raise the appropriate events</summary>
23718 <param name="sender">The sender</param>
23719 <param name="e">The EventArgs object containing the packet data</param>
23720 </member>
23721 <member name="E:OpenMetaverse.SoundManager.AttachedSound">
23722 <summary>Raised when the simulator sends us data containing
23723 sound</summary>
23724 </member>
23725 <member name="E:OpenMetaverse.SoundManager.AttachedSoundGainChange">
23726 <summary>Raised when the simulator sends us data containing
23727 ...</summary>
23728 </member>
23729 <member name="E:OpenMetaverse.SoundManager.SoundTrigger">
23730 <summary>Raised when the simulator sends us data containing
23731 ...</summary>
23732 </member>
23733 <member name="E:OpenMetaverse.SoundManager.PreloadSound">
23734 <summary>Raised when the simulator sends us data containing
23735 ...</summary>
23736 </member>
23737 <member name="T:OpenMetaverse.AttachedSoundEventArgs">
23738 <summary>Provides data for the <see cref="E:OpenMetaverse.SoundManager.AttachedSound"/> event</summary>
23739 <remarks>The <see cref="E:OpenMetaverse.SoundManager.AttachedSound"/> event occurs when the simulator sends
23740 the sound data which emits from an agents attachment</remarks>
23741 <example>
23742 The following code example shows the process to subscribe to the <see cref="E:OpenMetaverse.SoundManager.AttachedSound"/> event
23743 and a stub to handle the data passed from the simulator
23744 <code>
23745 // Subscribe to the AttachedSound event
23746 Client.Sound.AttachedSound += Sound_AttachedSound;
23747
23748 // process the data raised in the event here
23749 private void Sound_AttachedSound(object sender, AttachedSoundEventArgs e)
23750 {
23751 // ... Process AttachedSoundEventArgs here ...
23752 }
23753 </code>
23754 </example>
23755 </member>
23756 <member name="M:OpenMetaverse.AttachedSoundEventArgs.#ctor(OpenMetaverse.Simulator,OpenMetaverse.UUID,OpenMetaverse.UUID,OpenMetaverse.UUID,System.Single,OpenMetaverse.SoundFlags)">
23757 <summary> 24989 <summary>
23758 Construct a new instance of the SoundTriggerEventArgs class
23759 </summary> 24990 </summary>
23760 <param name="sim">Simulator where the event originated</param>
23761 <param name="soundID">The sound asset id</param>
23762 <param name="ownerID">The ID of the owner</param>
23763 <param name="objectID">The ID of the object</param>
23764 <param name="gain">The volume level</param>
23765 <param name="flags">The <see cref="T:OpenMetaverse.SoundFlags"/></param>
23766 </member>
23767 <member name="P:OpenMetaverse.AttachedSoundEventArgs.Simulator">
23768 <summary>Simulator where the event originated</summary>
23769 </member>
23770 <member name="P:OpenMetaverse.AttachedSoundEventArgs.SoundID">
23771 <summary>Get the sound asset id</summary>
23772 </member> 24991 </member>
23773 <member name="P:OpenMetaverse.AttachedSoundEventArgs.OwnerID"> 24992 <member name="F:OpenMetaverse.Primitive.ConstructionData.PathRevolutions">
23774 <summary>Get the ID of the owner</summary> 24993 <summary>
24994 </summary>
23775 </member> 24995 </member>
23776 <member name="P:OpenMetaverse.AttachedSoundEventArgs.ObjectID"> 24996 <member name="F:OpenMetaverse.Primitive.ConstructionData.ProfileBegin">
23777 <summary>Get the ID of the Object</summary> 24997 <summary>
24998 </summary>
23778 </member> 24999 </member>
23779 <member name="P:OpenMetaverse.AttachedSoundEventArgs.Gain"> 25000 <member name="F:OpenMetaverse.Primitive.ConstructionData.ProfileEnd">
23780 <summary>Get the volume level</summary> 25001 <summary>
25002 </summary>
23781 </member> 25003 </member>
23782 <member name="P:OpenMetaverse.AttachedSoundEventArgs.Flags"> 25004 <member name="F:OpenMetaverse.Primitive.ConstructionData.ProfileHollow">
23783 <summary>Get the <see cref="T:OpenMetaverse.SoundFlags"/></summary> 25005 <summary>
25006 </summary>
23784 </member> 25007 </member>
23785 <member name="T:OpenMetaverse.AttachedSoundGainChangeEventArgs"> 25008 <member name="F:OpenMetaverse.Primitive.ConstructionData.Material">
23786 <summary>Provides data for the <see cref="E:OpenMetaverse.SoundManager.AttachedSoundGainChange"/> event</summary> 25009 <summary>
23787 <remarks>The <see cref="E:OpenMetaverse.SoundManager.AttachedSoundGainChange"/> event occurs when an attached sound 25010 </summary>
23788 changes its volume level</remarks>
23789 </member> 25011 </member>
23790 <member name="M:OpenMetaverse.AttachedSoundGainChangeEventArgs.#ctor(OpenMetaverse.Simulator,OpenMetaverse.UUID,System.Single)"> 25012 <member name="F:OpenMetaverse.Primitive.ConstructionData.State">
23791 <summary> 25013 <summary>
23792 Construct a new instance of the AttachedSoundGainChangedEventArgs class
23793 </summary> 25014 </summary>
23794 <param name="sim">Simulator where the event originated</param>
23795 <param name="objectID">The ID of the Object</param>
23796 <param name="gain">The new volume level</param>
23797 </member> 25015 </member>
23798 <member name="P:OpenMetaverse.AttachedSoundGainChangeEventArgs.Simulator"> 25016 <member name="F:OpenMetaverse.Primitive.ConstructionData.PCode">
23799 <summary>Simulator where the event originated</summary> 25017 <summary>
25018 </summary>
23800 </member> 25019 </member>
23801 <member name="P:OpenMetaverse.AttachedSoundGainChangeEventArgs.ObjectID"> 25020 <member name="P:OpenMetaverse.Primitive.ConstructionData.AttachmentPoint">
23802 <summary>Get the ID of the Object</summary> 25021 <summary>Attachment point to an avatar</summary>
23803 </member> 25022 </member>
23804 <member name="P:OpenMetaverse.AttachedSoundGainChangeEventArgs.Gain"> 25023 <member name="P:OpenMetaverse.Primitive.ConstructionData.ProfileCurve">
23805 <summary>Get the volume level</summary> 25024 <summary>
25025 </summary>
23806 </member> 25026 </member>
23807 <member name="T:OpenMetaverse.SoundTriggerEventArgs"> 25027 <member name="P:OpenMetaverse.Primitive.ConstructionData.ProfileHole">
23808 <summary>Provides data for the <see cref="E:OpenMetaverse.SoundManager.SoundTrigger"/> event</summary> 25028 <summary>
23809 <remarks><para>The <see cref="E:OpenMetaverse.SoundManager.SoundTrigger"/> event occurs when the simulator forwards 25029 </summary>
23810 a request made by yourself or another agent to play either an asset sound or a built in sound</para>
23811
23812 <para>Requests to play sounds where the <see cref="P:OpenMetaverse.SoundTriggerEventArgs.SoundID"/> is not one of the built-in
23813 <see cref="T:OpenMetaverse.Sounds"/> will require sending a request to download the sound asset before it can be played</para>
23814 </remarks>
23815 <example>
23816 The following code example uses the <see cref="P:OpenMetaverse.SoundTriggerEventArgs.OwnerID"/>, <see cref="P:OpenMetaverse.SoundTriggerEventArgs.SoundID"/>
23817 and <see cref="P:OpenMetaverse.SoundTriggerEventArgs.Gain"/>
23818 properties to display some information on a sound request on the <see cref="T:System.Console"/> window.
23819 <code>
23820 // subscribe to the event
23821 Client.Sound.SoundTrigger += Sound_SoundTrigger;
23822
23823 // play the pre-defined BELL_TING sound
23824 Client.Sound.SendSoundTrigger(Sounds.BELL_TING);
23825
23826 // handle the response data
23827 private void Sound_SoundTrigger(object sender, SoundTriggerEventArgs e)
23828 {
23829 Console.WriteLine("{0} played the sound {1} at volume {2}",
23830 e.OwnerID, e.SoundID, e.Gain);
23831 }
23832 </code>
23833 </example>
23834 </member> 25030 </member>
23835 <member name="M:OpenMetaverse.SoundTriggerEventArgs.#ctor(OpenMetaverse.Simulator,OpenMetaverse.UUID,OpenMetaverse.UUID,OpenMetaverse.UUID,OpenMetaverse.UUID,System.Single,System.UInt64,OpenMetaverse.Vector3)"> 25031 <member name="P:OpenMetaverse.Primitive.ConstructionData.PathBeginScale">
23836 <summary> 25032 <summary>
23837 Construct a new instance of the SoundTriggerEventArgs class
23838 </summary> 25033 </summary>
23839 <param name="sim">Simulator where the event originated</param>
23840 <param name="soundID">The sound asset id</param>
23841 <param name="ownerID">The ID of the owner</param>
23842 <param name="objectID">The ID of the object</param>
23843 <param name="parentID">The ID of the objects parent</param>
23844 <param name="gain">The volume level</param>
23845 <param name="regionHandle">The regionhandle</param>
23846 <param name="position">The source position</param>
23847 </member> 25034 </member>
23848 <member name="P:OpenMetaverse.SoundTriggerEventArgs.Simulator"> 25035 <member name="P:OpenMetaverse.Primitive.ConstructionData.PathEndScale">
23849 <summary>Simulator where the event originated</summary> 25036 <summary>
25037 </summary>
23850 </member> 25038 </member>
23851 <member name="P:OpenMetaverse.SoundTriggerEventArgs.SoundID"> 25039 <member name="M:OpenMetaverse.Primitive.ConstructionData.GetHashCode">
23852 <summary>Get the sound asset id</summary> 25040 <summary>
25041 Calculdates hash code for prim construction data
25042 </summary>
25043 <returns>The has</returns>
23853 </member> 25044 </member>
23854 <member name="P:OpenMetaverse.SoundTriggerEventArgs.OwnerID"> 25045 <member name="T:OpenMetaverse.Primitive.FlexibleData">
23855 <summary>Get the ID of the owner</summary> 25046 <summary>
25047 Information on the flexible properties of a primitive
25048 </summary>
23856 </member> 25049 </member>
23857 <member name="P:OpenMetaverse.SoundTriggerEventArgs.ObjectID"> 25050 <member name="M:OpenMetaverse.Primitive.FlexibleData.#ctor">
23858 <summary>Get the ID of the Object</summary> 25051 <summary>
25052 Default constructor
25053 </summary>
23859 </member> 25054 </member>
23860 <member name="P:OpenMetaverse.SoundTriggerEventArgs.ParentID"> 25055 <member name="M:OpenMetaverse.Primitive.FlexibleData.#ctor(System.Byte[],System.Int32)">
23861 <summary>Get the ID of the objects parent</summary> 25056 <summary>
25057 </summary>
25058 <param name="data">
25059 </param>
25060 <param name="pos">
25061 </param>
23862 </member> 25062 </member>
23863 <member name="P:OpenMetaverse.SoundTriggerEventArgs.Gain"> 25063 <member name="F:OpenMetaverse.Primitive.FlexibleData.Softness">
23864 <summary>Get the volume level</summary> 25064 <summary>
25065 </summary>
23865 </member> 25066 </member>
23866 <member name="P:OpenMetaverse.SoundTriggerEventArgs.RegionHandle"> 25067 <member name="F:OpenMetaverse.Primitive.FlexibleData.Gravity">
23867 <summary>Get the regionhandle</summary> 25068 <summary>
25069 </summary>
23868 </member> 25070 </member>
23869 <member name="P:OpenMetaverse.SoundTriggerEventArgs.Position"> 25071 <member name="F:OpenMetaverse.Primitive.FlexibleData.Drag">
23870 <summary>Get the source position</summary> 25072 <summary>
25073 </summary>
23871 </member> 25074 </member>
23872 <member name="T:OpenMetaverse.PreloadSoundEventArgs"> 25075 <member name="F:OpenMetaverse.Primitive.FlexibleData.Wind">
23873 <summary>Provides data for the <see cref="E:OpenMetaverse.AvatarManager.AvatarAppearance"/> event</summary> 25076 <summary>
23874 <remarks>The <see cref="E:OpenMetaverse.AvatarManager.AvatarAppearance"/> event occurs when the simulator sends 25077 </summary>
23875 the appearance data for an avatar</remarks>
23876 <example>
23877 The following code example uses the <see cref="P:OpenMetaverse.AvatarAppearanceEventArgs.AvatarID"/> and <see cref="P:OpenMetaverse.AvatarAppearanceEventArgs.VisualParams"/>
23878 properties to display the selected shape of an avatar on the <see cref="T:System.Console"/> window.
23879 <code>
23880 // subscribe to the event
23881 Client.Avatars.AvatarAppearance += Avatars_AvatarAppearance;
23882
23883 // handle the data when the event is raised
23884 void Avatars_AvatarAppearance(object sender, AvatarAppearanceEventArgs e)
23885 {
23886 Console.WriteLine("The Agent {0} is using a {1} shape.", e.AvatarID, (e.VisualParams[31] &gt; 0) : "male" ? "female")
23887 }
23888 </code>
23889 </example>
23890 </member> 25078 </member>
23891 <member name="M:OpenMetaverse.PreloadSoundEventArgs.#ctor(OpenMetaverse.Simulator,OpenMetaverse.UUID,OpenMetaverse.UUID,OpenMetaverse.UUID)"> 25079 <member name="F:OpenMetaverse.Primitive.FlexibleData.Tension">
23892 <summary> 25080 <summary>
23893 Construct a new instance of the PreloadSoundEventArgs class
23894 </summary> 25081 </summary>
23895 <param name="sim">Simulator where the event originated</param>
23896 <param name="soundID">The sound asset id</param>
23897 <param name="ownerID">The ID of the owner</param>
23898 <param name="objectID">The ID of the object</param>
23899 </member> 25082 </member>
23900 <member name="P:OpenMetaverse.PreloadSoundEventArgs.Simulator"> 25083 <member name="F:OpenMetaverse.Primitive.FlexibleData.Force">
23901 <summary>Simulator where the event originated</summary> 25084 <summary>
25085 </summary>
23902 </member> 25086 </member>
23903 <member name="P:OpenMetaverse.PreloadSoundEventArgs.SoundID"> 25087 <member name="M:OpenMetaverse.Primitive.FlexibleData.GetBytes">
23904 <summary>Get the sound asset id</summary> 25088 <summary>
25089 </summary>
25090 <returns>
25091 </returns>
23905 </member> 25092 </member>
23906 <member name="P:OpenMetaverse.PreloadSoundEventArgs.OwnerID"> 25093 <member name="M:OpenMetaverse.Primitive.FlexibleData.GetOSD">
23907 <summary>Get the ID of the owner</summary> 25094 <summary>
25095 </summary>
25096 <returns>
25097 </returns>
23908 </member> 25098 </member>
23909 <member name="P:OpenMetaverse.PreloadSoundEventArgs.ObjectID"> 25099 <member name="T:OpenMetaverse.Primitive.LightData">
23910 <summary>Get the ID of the Object</summary> 25100 <summary>
25101 Information on the light properties of a primitive
25102 </summary>
23911 </member> 25103 </member>
23912 <member name="T:OpenMetaverse.NameValue"> 25104 <member name="M:OpenMetaverse.Primitive.LightData.#ctor">
23913 <summary> 25105 <summary>
23914 A Name Value pair with additional settings, used in the protocol 25106 Default constructor
23915 primarily to transmit avatar names and active group in object packets
23916 </summary> 25107 </summary>
23917 </member> 25108 </member>
23918 <member name="F:OpenMetaverse.NameValue.Name"> 25109 <member name="M:OpenMetaverse.Primitive.LightData.#ctor(System.Byte[],System.Int32)">
23919 <summary></summary> 25110 <summary>
25111 </summary>
25112 <param name="data">
25113 </param>
25114 <param name="pos">
25115 </param>
23920 </member> 25116 </member>
23921 <member name="F:OpenMetaverse.NameValue.Type"> 25117 <member name="F:OpenMetaverse.Primitive.LightData.Color">
23922 <summary></summary> 25118 <summary>
25119 </summary>
23923 </member> 25120 </member>
23924 <member name="F:OpenMetaverse.NameValue.Class"> 25121 <member name="F:OpenMetaverse.Primitive.LightData.Intensity">
23925 <summary></summary> 25122 <summary>
25123 </summary>
23926 </member> 25124 </member>
23927 <member name="F:OpenMetaverse.NameValue.Sendto"> 25125 <member name="F:OpenMetaverse.Primitive.LightData.Radius">
23928 <summary></summary> 25126 <summary>
25127 </summary>
23929 </member> 25128 </member>
23930 <member name="F:OpenMetaverse.NameValue.Value"> 25129 <member name="F:OpenMetaverse.Primitive.LightData.Cutoff">
23931 <summary></summary> 25130 <summary>
25131 </summary>
23932 </member> 25132 </member>
23933 <member name="M:OpenMetaverse.NameValue.#ctor(System.String,OpenMetaverse.NameValue.ValueType,OpenMetaverse.NameValue.ClassType,OpenMetaverse.NameValue.SendtoType,System.Object)"> 25133 <member name="F:OpenMetaverse.Primitive.LightData.Falloff">
23934 <summary> 25134 <summary>
23935 Constructor that takes all the fields as parameters
23936 </summary> 25135 </summary>
23937 <param name="name"></param>
23938 <param name="valueType"></param>
23939 <param name="classType"></param>
23940 <param name="sendtoType"></param>
23941 <param name="value"></param>
23942 </member> 25136 </member>
23943 <member name="M:OpenMetaverse.NameValue.#ctor(System.String)"> 25137 <member name="M:OpenMetaverse.Primitive.LightData.GetBytes">
23944 <summary> 25138 <summary>
23945 Constructor that takes a single line from a NameValue field
23946 </summary> 25139 </summary>
23947 <param name="data"></param> 25140 <returns>
25141 </returns>
23948 </member> 25142 </member>
23949 <member name="T:OpenMetaverse.NameValue.ValueType"> 25143 <member name="M:OpenMetaverse.Primitive.LightData.ToString">
23950 <summary>Type of the value</summary> 25144 <summary>
25145 </summary>
25146 <returns>
25147 </returns>
23951 </member> 25148 </member>
23952 <member name="F:OpenMetaverse.NameValue.ValueType.Unknown"> 25149 <member name="T:OpenMetaverse.Primitive.SculptData">
23953 <summary>Unknown</summary> 25150 <summary>
25151 Information on the sculpt properties of a sculpted primitive
25152 </summary>
23954 </member> 25153 </member>
23955 <member name="F:OpenMetaverse.NameValue.ValueType.String"> 25154 <member name="M:OpenMetaverse.Primitive.SculptData.#ctor">
23956 <summary>String value</summary> 25155 <summary>
25156 Default constructor
25157 </summary>
23957 </member> 25158 </member>
23958 <member name="F:OpenMetaverse.NameValue.ValueType.F32"> 25159 <member name="M:OpenMetaverse.Primitive.SculptData.#ctor(System.Byte[],System.Int32)">
23959 <summary></summary> 25160 <summary>
25161 </summary>
25162 <param name="data">
25163 </param>
25164 <param name="pos">
25165 </param>
23960 </member> 25166 </member>
23961 <member name="F:OpenMetaverse.NameValue.ValueType.S32"> 25167 <member name="P:OpenMetaverse.Primitive.SculptData.Invert">
23962 <summary></summary> 25168 <summary>
25169 Render inside out (inverts the normals).
25170 </summary>
23963 </member> 25171 </member>
23964 <member name="F:OpenMetaverse.NameValue.ValueType.VEC3"> 25172 <member name="P:OpenMetaverse.Primitive.SculptData.Mirror">
23965 <summary></summary> 25173 <summary>
25174 Render an X axis mirror of the sculpty.
25175 </summary>
23966 </member> 25176 </member>
23967 <member name="F:OpenMetaverse.NameValue.ValueType.U32"> 25177 <member name="T:OpenMetaverse.Primitive.ObjectProperties">
23968 <summary></summary> 25178 <summary>
25179 Extended properties to describe an object
25180 </summary>
23969 </member> 25181 </member>
23970 <member name="F:OpenMetaverse.NameValue.ValueType.CAMERA"> 25182 <member name="M:OpenMetaverse.Primitive.ObjectProperties.#ctor">
23971 <summary>Deprecated</summary> 25183 <summary>
25184 Default constructor
25185 </summary>
23972 </member> 25186 </member>
23973 <member name="F:OpenMetaverse.NameValue.ValueType.Asset"> 25187 <member name="F:OpenMetaverse.Primitive.ObjectProperties.ObjectID">
23974 <summary>String value, but designated as an asset</summary> 25188 <summary>
25189 </summary>
23975 </member> 25190 </member>
23976 <member name="F:OpenMetaverse.NameValue.ValueType.U64"> 25191 <member name="F:OpenMetaverse.Primitive.ObjectProperties.CreatorID">
23977 <summary></summary> 25192 <summary>
25193 </summary>
23978 </member> 25194 </member>
23979 <member name="T:OpenMetaverse.NameValue.ClassType"> 25195 <member name="F:OpenMetaverse.Primitive.ObjectProperties.OwnerID">
23980 <summary> 25196 <summary>
23981
23982 </summary> 25197 </summary>
23983 </member> 25198 </member>
23984 <member name="F:OpenMetaverse.NameValue.ClassType.Unknown"> 25199 <member name="F:OpenMetaverse.Primitive.ObjectProperties.GroupID">
23985 <summary></summary> 25200 <summary>
25201 </summary>
23986 </member> 25202 </member>
23987 <member name="F:OpenMetaverse.NameValue.ClassType.ReadOnly"> 25203 <member name="F:OpenMetaverse.Primitive.ObjectProperties.CreationDate">
23988 <summary></summary> 25204 <summary>
25205 </summary>
23989 </member> 25206 </member>
23990 <member name="F:OpenMetaverse.NameValue.ClassType.ReadWrite"> 25207 <member name="F:OpenMetaverse.Primitive.ObjectProperties.Permissions">
23991 <summary></summary> 25208 <summary>
25209 </summary>
23992 </member> 25210 </member>
23993 <member name="F:OpenMetaverse.NameValue.ClassType.Callback"> 25211 <member name="F:OpenMetaverse.Primitive.ObjectProperties.OwnershipCost">
23994 <summary></summary> 25212 <summary>
25213 </summary>
23995 </member> 25214 </member>
23996 <member name="T:OpenMetaverse.NameValue.SendtoType"> 25215 <member name="F:OpenMetaverse.Primitive.ObjectProperties.SaleType">
23997 <summary> 25216 <summary>
23998
23999 </summary> 25217 </summary>
24000 </member> 25218 </member>
24001 <member name="F:OpenMetaverse.NameValue.SendtoType.Unknown"> 25219 <member name="F:OpenMetaverse.Primitive.ObjectProperties.SalePrice">
24002 <summary></summary> 25220 <summary>
25221 </summary>
24003 </member> 25222 </member>
24004 <member name="F:OpenMetaverse.NameValue.SendtoType.Sim"> 25223 <member name="F:OpenMetaverse.Primitive.ObjectProperties.AggregatePerms">
24005 <summary></summary> 25224 <summary>
25225 </summary>
24006 </member> 25226 </member>
24007 <member name="F:OpenMetaverse.NameValue.SendtoType.DataSim"> 25227 <member name="F:OpenMetaverse.Primitive.ObjectProperties.AggregatePermTextures">
24008 <summary></summary> 25228 <summary>
25229 </summary>
24009 </member> 25230 </member>
24010 <member name="F:OpenMetaverse.NameValue.SendtoType.SimViewer"> 25231 <member name="F:OpenMetaverse.Primitive.ObjectProperties.AggregatePermTexturesOwner">
24011 <summary></summary> 25232 <summary>
25233 </summary>
24012 </member> 25234 </member>
24013 <member name="F:OpenMetaverse.NameValue.SendtoType.DataSimViewer"> 25235 <member name="F:OpenMetaverse.Primitive.ObjectProperties.Category">
24014 <summary></summary> 25236 <summary>
25237 </summary>
24015 </member> 25238 </member>
24016 <member name="T:OpenMetaverse.EstateTask"> 25239 <member name="F:OpenMetaverse.Primitive.ObjectProperties.InventorySerial">
24017 <summary>Describes tasks returned in LandStatReply</summary> 25240 <summary>
25241 </summary>
24018 </member> 25242 </member>
24019 <member name="T:OpenMetaverse.EstateTools"> 25243 <member name="F:OpenMetaverse.Primitive.ObjectProperties.ItemID">
24020 <summary> 25244 <summary>
24021 Estate level administration and utilities
24022 </summary> 25245 </summary>
24023 </member> 25246 </member>
24024 <member name="F:OpenMetaverse.EstateTools.GroundTextures"> 25247 <member name="F:OpenMetaverse.Primitive.ObjectProperties.FolderID">
24025 <summary>Textures for each of the four terrain height levels</summary> 25248 <summary>
25249 </summary>
24026 </member> 25250 </member>
24027 <member name="F:OpenMetaverse.EstateTools.GroundTextureLimits"> 25251 <member name="F:OpenMetaverse.Primitive.ObjectProperties.FromTaskID">
24028 <summary>Upper/lower texture boundaries for each corner of the sim</summary> 25252 <summary>
25253 </summary>
24029 </member> 25254 </member>
24030 <member name="M:OpenMetaverse.EstateTools.#ctor(OpenMetaverse.GridClient)"> 25255 <member name="F:OpenMetaverse.Primitive.ObjectProperties.LastOwnerID">
24031 <summary> 25256 <summary>
24032 Constructor for EstateTools class
24033 </summary> 25257 </summary>
24034 <param name="client"></param>
24035 </member> 25258 </member>
24036 <member name="F:OpenMetaverse.EstateTools.m_TopCollidersReply"> 25259 <member name="F:OpenMetaverse.Primitive.ObjectProperties.Name">
24037 <summary>The event subscribers. null if no subcribers</summary> 25260 <summary>
25261 </summary>
24038 </member> 25262 </member>
24039 <member name="M:OpenMetaverse.EstateTools.OnTopCollidersReply(OpenMetaverse.TopCollidersReplyEventArgs)"> 25263 <member name="F:OpenMetaverse.Primitive.ObjectProperties.Description">
24040 <summary>Raises the TopCollidersReply event</summary> 25264 <summary>
24041 <param name="e">A TopCollidersReplyEventArgs object containing the 25265 </summary>
24042 data returned from the data server</param>
24043 </member> 25266 </member>
24044 <member name="F:OpenMetaverse.EstateTools.m_TopCollidersReply_Lock"> 25267 <member name="F:OpenMetaverse.Primitive.ObjectProperties.TouchName">
24045 <summary>Thread sync lock object</summary> 25268 <summary>
25269 </summary>
24046 </member> 25270 </member>
24047 <member name="F:OpenMetaverse.EstateTools.m_TopScriptsReply"> 25271 <member name="F:OpenMetaverse.Primitive.ObjectProperties.SitName">
24048 <summary>The event subscribers. null if no subcribers</summary> 25272 <summary>
25273 </summary>
24049 </member> 25274 </member>
24050 <member name="M:OpenMetaverse.EstateTools.OnTopScriptsReply(OpenMetaverse.TopScriptsReplyEventArgs)"> 25275 <member name="F:OpenMetaverse.Primitive.ObjectProperties.TextureIDs">
24051 <summary>Raises the TopScriptsReply event</summary> 25276 <summary>
24052 <param name="e">A TopScriptsReplyEventArgs object containing the 25277 </summary>
24053 data returned from the data server</param>
24054 </member> 25278 </member>
24055 <member name="F:OpenMetaverse.EstateTools.m_TopScriptsReply_Lock"> 25279 <member name="M:OpenMetaverse.Primitive.ObjectProperties.SetFamilyProperties(OpenMetaverse.Primitive.ObjectProperties)">
24056 <summary>Thread sync lock object</summary> 25280 <summary>
25281 Set the properties that are set in an ObjectPropertiesFamily packet
25282 </summary>
25283 <param name="props">
25284 <seealso cref="T:OpenMetaverse.Primitive.ObjectProperties" /> that has
25285 been partially filled by an ObjectPropertiesFamily packet</param>
24057 </member> 25286 </member>
24058 <member name="F:OpenMetaverse.EstateTools.m_EstateUsersReply"> 25287 <member name="T:OpenMetaverse.Primitive.PhysicsProperties">
24059 <summary>The event subscribers. null if no subcribers</summary> 25288 <summary>
25289 Describes physics attributes of the prim
25290 </summary>
24060 </member> 25291 </member>
24061 <member name="M:OpenMetaverse.EstateTools.OnEstateUsersReply(OpenMetaverse.EstateUsersReplyEventArgs)"> 25292 <member name="F:OpenMetaverse.Primitive.PhysicsProperties.LocalID">
24062 <summary>Raises the EstateUsersReply event</summary> 25293 <summary>Primitive's local ID</summary>
24063 <param name="e">A EstateUsersReplyEventArgs object containing the
24064 data returned from the data server</param>
24065 </member> 25294 </member>
24066 <member name="F:OpenMetaverse.EstateTools.m_EstateUsersReply_Lock"> 25295 <member name="F:OpenMetaverse.Primitive.PhysicsProperties.Density">
24067 <summary>Thread sync lock object</summary> 25296 <summary>Density (1000 for normal density)</summary>
24068 </member> 25297 </member>
24069 <member name="F:OpenMetaverse.EstateTools.m_EstateGroupsReply"> 25298 <member name="F:OpenMetaverse.Primitive.PhysicsProperties.Friction">
24070 <summary>The event subscribers. null if no subcribers</summary> 25299 <summary>Friction</summary>
24071 </member> 25300 </member>
24072 <member name="M:OpenMetaverse.EstateTools.OnEstateGroupsReply(OpenMetaverse.EstateGroupsReplyEventArgs)"> 25301 <member name="F:OpenMetaverse.Primitive.PhysicsProperties.GravityMultiplier">
24073 <summary>Raises the EstateGroupsReply event</summary> 25302 <summary>Gravity multiplier (1 for normal gravity) </summary>
24074 <param name="e">A EstateGroupsReplyEventArgs object containing the
24075 data returned from the data server</param>
24076 </member> 25303 </member>
24077 <member name="F:OpenMetaverse.EstateTools.m_EstateGroupsReply_Lock"> 25304 <member name="F:OpenMetaverse.Primitive.PhysicsProperties.PhysicsShapeType">
24078 <summary>Thread sync lock object</summary> 25305 <summary>Type of physics representation of this primitive in the simulator</summary>
24079 </member> 25306 </member>
24080 <member name="F:OpenMetaverse.EstateTools.m_EstateManagersReply"> 25307 <member name="F:OpenMetaverse.Primitive.PhysicsProperties.Restitution">
24081 <summary>The event subscribers. null if no subcribers</summary> 25308 <summary>Restitution</summary>
24082 </member> 25309 </member>
24083 <member name="M:OpenMetaverse.EstateTools.OnEstateManagersReply(OpenMetaverse.EstateManagersReplyEventArgs)"> 25310 <member name="M:OpenMetaverse.Primitive.PhysicsProperties.FromOSD(OpenMetaverse.StructuredData.OSD)">
24084 <summary>Raises the EstateManagersReply event</summary> 25311 <summary>
24085 <param name="e">A EstateManagersReplyEventArgs object containing the 25312 Creates PhysicsProperties from OSD
24086 data returned from the data server</param> 25313 </summary>
25314 <param name="osd">OSDMap with incoming data</param>
25315 <returns>Deserialized PhysicsProperties object</returns>
24087 </member> 25316 </member>
24088 <member name="F:OpenMetaverse.EstateTools.m_EstateManagersReply_Lock"> 25317 <member name="M:OpenMetaverse.Primitive.PhysicsProperties.GetOSD">
24089 <summary>Thread sync lock object</summary> 25318 <summary>
25319 Serializes PhysicsProperties to OSD
25320 </summary>
25321 <returns>OSDMap with serialized PhysicsProperties data</returns>
24090 </member> 25322 </member>
24091 <member name="F:OpenMetaverse.EstateTools.m_EstateBansReply"> 25323 <member name="T:OpenMetaverse.Primitive.TextureAnimMode">
24092 <summary>The event subscribers. null if no subcribers</summary> 25324 <summary>
25325 Texture animation mode
25326 </summary>
24093 </member> 25327 </member>
24094 <member name="M:OpenMetaverse.EstateTools.OnEstateBansReply(OpenMetaverse.EstateBansReplyEventArgs)"> 25328 <member name="F:OpenMetaverse.Primitive.TextureAnimMode.ANIM_OFF">
24095 <summary>Raises the EstateBansReply event</summary> 25329 <summary>Disable texture animation</summary>
24096 <param name="e">A EstateBansReplyEventArgs object containing the
24097 data returned from the data server</param>
24098 </member> 25330 </member>
24099 <member name="F:OpenMetaverse.EstateTools.m_EstateBansReply_Lock"> 25331 <member name="F:OpenMetaverse.Primitive.TextureAnimMode.ANIM_ON">
24100 <summary>Thread sync lock object</summary> 25332 <summary>Enable texture animation</summary>
24101 </member> 25333 </member>
24102 <member name="F:OpenMetaverse.EstateTools.m_EstateCovenantReply"> 25334 <member name="F:OpenMetaverse.Primitive.TextureAnimMode.LOOP">
24103 <summary>The event subscribers. null if no subcribers</summary> 25335 <summary>Loop when animating textures</summary>
24104 </member> 25336 </member>
24105 <member name="M:OpenMetaverse.EstateTools.OnEstateCovenantReply(OpenMetaverse.EstateCovenantReplyEventArgs)"> 25337 <member name="F:OpenMetaverse.Primitive.TextureAnimMode.REVERSE">
24106 <summary>Raises the EstateCovenantReply event</summary> 25338 <summary>Animate in reverse direction</summary>
24107 <param name="e">A EstateCovenantReplyEventArgs object containing the
24108 data returned from the data server</param>
24109 </member> 25339 </member>
24110 <member name="F:OpenMetaverse.EstateTools.m_EstateCovenantReply_Lock"> 25340 <member name="F:OpenMetaverse.Primitive.TextureAnimMode.PING_PONG">
24111 <summary>Thread sync lock object</summary> 25341 <summary>Animate forward then reverse</summary>
24112 </member> 25342 </member>
24113 <member name="F:OpenMetaverse.EstateTools.m_EstateUpdateInfoReply"> 25343 <member name="F:OpenMetaverse.Primitive.TextureAnimMode.SMOOTH">
24114 <summary>The event subscribers. null if no subcribers</summary> 25344 <summary>Slide texture smoothly instead of frame-stepping</summary>
24115 </member> 25345 </member>
24116 <member name="M:OpenMetaverse.EstateTools.OnEstateUpdateInfoReply(OpenMetaverse.EstateUpdateInfoReplyEventArgs)"> 25346 <member name="F:OpenMetaverse.Primitive.TextureAnimMode.ROTATE">
24117 <summary>Raises the EstateUpdateInfoReply event</summary> 25347 <summary>Rotate texture instead of using frames</summary>
24118 <param name="e">A EstateUpdateInfoReplyEventArgs object containing the
24119 data returned from the data server</param>
24120 </member> 25348 </member>
24121 <member name="F:OpenMetaverse.EstateTools.m_EstateUpdateInfoReply_Lock"> 25349 <member name="F:OpenMetaverse.Primitive.TextureAnimMode.SCALE">
24122 <summary>Thread sync lock object</summary> 25350 <summary>Scale texture instead of using frames</summary>
24123 </member> 25351 </member>
24124 <member name="M:OpenMetaverse.EstateTools.LandStatRequest(System.Int32,OpenMetaverse.EstateTools.LandStatReportType,System.UInt32,System.String)"> 25352 <member name="T:OpenMetaverse.Primitive.TextureEntryFace">
24125 <summary> 25353 <summary>
24126 Requests estate information such as top scripts and colliders 25354 A single textured face. Don't instantiate this class yourself, use the
25355 methods in TextureEntry
24127 </summary> 25356 </summary>
24128 <param name="parcelLocalID"></param>
24129 <param name="reportType"></param>
24130 <param name="requestFlags"></param>
24131 <param name="filter"></param>
24132 </member>
24133 <member name="M:OpenMetaverse.EstateTools.RequestInfo">
24134 <summary>Requests estate settings, including estate manager and access/ban lists</summary>
24135 </member>
24136 <member name="M:OpenMetaverse.EstateTools.RequestTopScripts">
24137 <summary>Requests the "Top Scripts" list for the current region</summary>
24138 </member> 25357 </member>
24139 <member name="M:OpenMetaverse.EstateTools.RequestTopColliders"> 25358 <member name="M:OpenMetaverse.Primitive.TextureEntryFace.#ctor(OpenMetaverse.Primitive.TextureEntryFace)">
24140 <summary>Requests the "Top Colliders" list for the current region</summary>
24141 </member>
24142 <member name="M:OpenMetaverse.EstateTools.SetTerrainVariables(System.Single,System.Single,System.Single,System.Boolean,System.Boolean,System.Single)">
24143 <summary> 25359 <summary>
24144 Set several estate specific configuration variables 25360 Contains the definition for individual faces
24145 </summary> 25361 </summary>
24146 <param name="WaterHeight">The Height of the waterlevel over the entire estate. Defaults to 20</param> 25362 <param name="defaultTexture">
24147 <param name="TerrainRaiseLimit">The maximum height change allowed above the baked terrain. Defaults to 4</param> 25363 </param>
24148 <param name="TerrainLowerLimit">The minimum height change allowed below the baked terrain. Defaults to -4</param>
24149 <param name="UseEstateSun">true to use</param>
24150 <param name="FixedSun">if True forces the sun position to the position in SunPosition</param>
24151 <param name="SunPosition">The current position of the sun on the estate, or when FixedSun is true the static position
24152 the sun will remain. <remarks>6.0 = Sunrise, 30.0 = Sunset</remarks></param>
24153 </member> 25364 </member>
24154 <member name="M:OpenMetaverse.EstateTools.SimWideReturn(OpenMetaverse.UUID,OpenMetaverse.EstateTools.EstateReturnFlags,System.Boolean)"> 25365 <member name="P:OpenMetaverse.Primitive.TextureEntryFace.material">
24155 <summary> 25366 <summary>
24156 Request return of objects owned by specified avatar
24157 </summary> 25367 </summary>
24158 <param name="Target">The Agents <see cref="T:OpenMetaverse.UUID"/> owning the primitives to return</param>
24159 <param name="flag">specify the coverage and type of objects to be included in the return</param>
24160 <param name="EstateWide">true to perform return on entire estate</param>
24161 </member>
24162 <member name="M:OpenMetaverse.EstateTools.EstateOwnerMessage(System.String,System.String)">
24163 <summary></summary>
24164 <param name="method"></param>
24165 <param name="param"></param>
24166 </member> 25368 </member>
24167 <member name="M:OpenMetaverse.EstateTools.EstateOwnerMessage(System.String,System.Collections.Generic.List{System.String})"> 25369 <member name="P:OpenMetaverse.Primitive.TextureEntryFace.media">
24168 <summary> 25370 <summary>
24169 Used for setting and retrieving various estate panel settings
24170 </summary> 25371 </summary>
24171 <param name="method">EstateOwnerMessage Method field</param>
24172 <param name="listParams">List of parameters to include</param>
24173 </member> 25372 </member>
24174 <member name="M:OpenMetaverse.EstateTools.KickUser(OpenMetaverse.UUID)"> 25373 <member name="P:OpenMetaverse.Primitive.TextureEntryFace.RGBA">
24175 <summary> 25374 <summary>
24176 Kick an avatar from an estate
24177 </summary> 25375 </summary>
24178 <param name="userID">Key of Agent to remove</param>
24179 </member> 25376 </member>
24180 <member name="M:OpenMetaverse.EstateTools.BanUser(OpenMetaverse.UUID,System.Boolean)"> 25377 <member name="P:OpenMetaverse.Primitive.TextureEntryFace.RepeatU">
24181 <summary> 25378 <summary>
24182 Ban an avatar from an estate</summary> 25379 </summary>
24183 <param name="userID">Key of Agent to remove</param>
24184 <param name="allEstates">Ban user from this estate and all others owned by the estate owner</param>
24185 </member>
24186 <member name="M:OpenMetaverse.EstateTools.UnbanUser(OpenMetaverse.UUID,System.Boolean)">
24187 <summary>Unban an avatar from an estate</summary>
24188 <param name="userID">Key of Agent to remove</param>
24189 /// <param name="allEstates">Unban user from this estate and all others owned by the estate owner</param>
24190 </member> 25380 </member>
24191 <member name="M:OpenMetaverse.EstateTools.EstateMessage(System.String)"> 25381 <member name="P:OpenMetaverse.Primitive.TextureEntryFace.RepeatV">
24192 <summary> 25382 <summary>
24193 Send a message dialog to everyone in an entire estate
24194 </summary> 25383 </summary>
24195 <param name="message">Message to send all users in the estate</param>
24196 </member> 25384 </member>
24197 <member name="M:OpenMetaverse.EstateTools.SimulatorMessage(System.String)"> 25385 <member name="P:OpenMetaverse.Primitive.TextureEntryFace.OffsetU">
24198 <summary> 25386 <summary>
24199 Send a message dialog to everyone in a simulator
24200 </summary> 25387 </summary>
24201 <param name="message">Message to send all users in the simulator</param>
24202 </member> 25388 </member>
24203 <member name="M:OpenMetaverse.EstateTools.TeleportHomeUser(OpenMetaverse.UUID)"> 25389 <member name="P:OpenMetaverse.Primitive.TextureEntryFace.OffsetV">
24204 <summary> 25390 <summary>
24205 Send an avatar back to their home location
24206 </summary> 25391 </summary>
24207 <param name="pest">Key of avatar to send home</param>
24208 </member> 25392 </member>
24209 <member name="M:OpenMetaverse.EstateTools.RestartRegion"> 25393 <member name="P:OpenMetaverse.Primitive.TextureEntryFace.Rotation">
24210 <summary> 25394 <summary>
24211 Begin the region restart process
24212 </summary> 25395 </summary>
24213 </member> 25396 </member>
24214 <member name="M:OpenMetaverse.EstateTools.CancelRestart"> 25397 <member name="P:OpenMetaverse.Primitive.TextureEntryFace.Glow">
24215 <summary> 25398 <summary>
24216 Cancels a region restart
24217 </summary> 25399 </summary>
24218 </member> 25400 </member>
24219 <member name="M:OpenMetaverse.EstateTools.SetRegionInfo(System.Boolean,System.Boolean,System.Boolean,System.Boolean,System.Boolean,System.Boolean,System.Single,System.Single,System.Boolean)"> 25401 <member name="P:OpenMetaverse.Primitive.TextureEntryFace.Bump">
24220 <summary>Estate panel "Region" tab settings</summary> 25402 <summary>
24221 </member> 25403 </summary>
24222 <member name="M:OpenMetaverse.EstateTools.SetRegionDebug(System.Boolean,System.Boolean,System.Boolean)">
24223 <summary>Estate panel "Debug" tab settings</summary>
24224 </member> 25404 </member>
24225 <member name="M:OpenMetaverse.EstateTools.SetRegionTerrain(OpenMetaverse.UUID,OpenMetaverse.UUID,OpenMetaverse.UUID,OpenMetaverse.UUID)"> 25405 <member name="P:OpenMetaverse.Primitive.TextureEntryFace.MediaFlags">
24226 <summary>Used for setting the region's terrain textures for its four height levels</summary> 25406 <summary>In the future this will specify whether a webpage is
24227 <param name="low"></param> 25407 attached to this face</summary>
24228 <param name="midLow"></param>
24229 <param name="midHigh"></param>
24230 <param name="high"></param>
24231 </member> 25408 </member>
24232 <member name="M:OpenMetaverse.EstateTools.SetRegionTerrainHeights(System.Single,System.Single,System.Single,System.Single,System.Single,System.Single,System.Single,System.Single)"> 25409 <member name="P:OpenMetaverse.Primitive.TextureEntryFace.TextureID">
24233 <summary>Used for setting sim terrain texture heights</summary> 25410 <summary>
25411 </summary>
24234 </member> 25412 </member>
24235 <member name="M:OpenMetaverse.EstateTools.RequestCovenant"> 25413 <member name="M:OpenMetaverse.Primitive.TextureEntryFace.ToString">
24236 <summary>Requests the estate covenant</summary> 25414 <summary>
25415 </summary>
25416 <returns>
25417 </returns>
24237 </member> 25418 </member>
24238 <member name="M:OpenMetaverse.EstateTools.UploadTerrain(System.Byte[],System.String)"> 25419 <member name="T:OpenMetaverse.Primitive.TextureEntry">
24239 <summary> 25420 <summary>
24240 Upload a terrain RAW file 25421 Represents all of the texturable faces for an object
24241 </summary> 25422 </summary>
24242 <param name="fileData">A byte array containing the encoded terrain data</param> 25423 <remarks>Grid objects have infinite faces, with each face
24243 <param name="fileName">The name of the file being uploaded</param> 25424 using the properties of the default face unless set otherwise. So if
24244 <returns>The Id of the transfer request</returns> 25425 you have a TextureEntry with a default texture uuid of X, and face 18
25426 has a texture UUID of Y, every face would be textured with X except for
25427 face 18 that uses Y. In practice however, primitives utilize a maximum
25428 of nine faces</remarks>
24245 </member> 25429 </member>
24246 <member name="M:OpenMetaverse.EstateTools.TeleportHomeAllUsers"> 25430 <member name="M:OpenMetaverse.Primitive.TextureEntry.#ctor(OpenMetaverse.UUID)">
24247 <summary> 25431 <summary>
24248 Teleports all users home in current Estate 25432 Constructor that takes a default texture UUID
24249 </summary> 25433 </summary>
25434 <param name="defaultTextureID">Texture UUID to use as the default texture</param>
24250 </member> 25435 </member>
24251 <member name="M:OpenMetaverse.EstateTools.RemoveEstateManager(OpenMetaverse.UUID,System.Boolean)"> 25436 <member name="M:OpenMetaverse.Primitive.TextureEntry.#ctor(OpenMetaverse.Primitive.TextureEntryFace)">
24252 <summary> 25437 <summary>
24253 Remove estate manager</summary> 25438 Constructor that takes a <code>TextureEntryFace</code> for the
24254 <param name="userID">Key of Agent to Remove</param> 25439 default face
24255 <param name="allEstates">removes manager to this estate and all others owned by the estate owner</param> 25440 </summary>
25441 <param name="defaultFace">Face to use as the default face</param>
24256 </member> 25442 </member>
24257 <member name="M:OpenMetaverse.EstateTools.AddEstateManager(OpenMetaverse.UUID,System.Boolean)"> 25443 <member name="M:OpenMetaverse.Primitive.TextureEntry.#ctor(System.Byte[],System.Int32,System.Int32)">
24258 <summary> 25444 <summary>
24259 Add estate manager</summary> 25445 Constructor that creates the TextureEntry class from a byte array
24260 <param name="userID">Key of Agent to Add</param> 25446 </summary>
24261 <param name="allEstates">Add agent as manager to this estate and all others owned by the estate owner</param> 25447 <param name="data">Byte array containing the TextureEntry field</param>
25448 <param name="pos">Starting position of the TextureEntry field in
25449 the byte array</param>
25450 <param name="length">Length of the TextureEntry field, in bytes</param>
24262 </member> 25451 </member>
24263 <member name="M:OpenMetaverse.EstateTools.AddAllowedUser(OpenMetaverse.UUID,System.Boolean)"> 25452 <member name="F:OpenMetaverse.Primitive.TextureEntry.DefaultTexture">
24264 <summary> 25453 <summary>
24265 Add's an agent to the estate Allowed list</summary> 25454 </summary>
24266 <param name="userID">Key of Agent to Add</param>
24267 <param name="allEstates">Add agent as an allowed reisdent to All estates if true</param>
24268 </member> 25455 </member>
24269 <member name="M:OpenMetaverse.EstateTools.RemoveAllowedUser(OpenMetaverse.UUID,System.Boolean)"> 25456 <member name="F:OpenMetaverse.Primitive.TextureEntry.FaceTextures">
24270 <summary> 25457 <summary>
24271 Removes an agent from the estate Allowed list</summary> 25458 </summary>
24272 <param name="userID">Key of Agent to Remove</param>
24273 <param name="allEstates">Removes agent as an allowed reisdent from All estates if true</param>
24274 </member> 25459 </member>
24275 <member name="M:OpenMetaverse.EstateTools.AddAllowedGroup(OpenMetaverse.UUID,System.Boolean)"> 25460 <member name="M:OpenMetaverse.Primitive.TextureEntry.CreateFace(System.UInt32)">
24276 25461 <summary>
24277 <summary> 25462 This will either create a new face if a custom face for the given
24278 Add's a group to the estate Allowed list</summary> 25463 index is not defined, or return the custom face for that index if
24279 <param name="groupID">Key of Group to Add</param> 25464 it already exists
24280 <param name="allEstates">Add Group as an allowed group to All estates if true</param> 25465 </summary>
25466 <param name="index">The index number of the face to create or
25467 retrieve</param>
25468 <returns>A TextureEntryFace containing all the properties for that
25469 face</returns>
24281 </member> 25470 </member>
24282 <member name="M:OpenMetaverse.EstateTools.RemoveAllowedGroup(OpenMetaverse.UUID,System.Boolean)"> 25471 <member name="M:OpenMetaverse.Primitive.TextureEntry.GetFace(System.UInt32)">
24283 25472 <summary>
24284 <summary> 25473 </summary>
24285 Removes a group from the estate Allowed list</summary> 25474 <param name="index">
24286 <param name="groupID">Key of Group to Remove</param> 25475 </param>
24287 <param name="allEstates">Removes Group as an allowed Group from All estates if true</param> 25476 <returns>
25477 </returns>
24288 </member> 25478 </member>
24289 <member name="M:OpenMetaverse.EstateTools.EstateCovenantReplyHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)"> 25479 <member name="M:OpenMetaverse.Primitive.TextureEntry.GetOSD">
24290 <summary>Process an incoming packet and raise the appropriate events</summary> 25480 <summary>
24291 <param name="sender">The sender</param> 25481 </summary>
24292 <param name="e">The EventArgs object containing the packet data</param> 25482 <returns>
25483 </returns>
24293 </member> 25484 </member>
24294 <member name="M:OpenMetaverse.EstateTools.EstateOwnerMessageHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)"> 25485 <member name="M:OpenMetaverse.Primitive.TextureEntry.GetBytes">
24295 <summary>Process an incoming packet and raise the appropriate events</summary> 25486 <summary>
24296 <param name="sender">The sender</param> 25487 </summary>
24297 <param name="e">The EventArgs object containing the packet data</param> 25488 <returns>
25489 </returns>
24298 </member> 25490 </member>
24299 <member name="M:OpenMetaverse.EstateTools.LandStatReplyHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)"> 25491 <member name="M:OpenMetaverse.Primitive.TextureEntry.ToString">
24300 <summary>Process an incoming packet and raise the appropriate events</summary> 25492 <summary>
24301 <param name="sender">The sender</param> 25493 </summary>
24302 <param name="e">The EventArgs object containing the packet data</param> 25494 <returns>
25495 </returns>
24303 </member> 25496 </member>
24304 <member name="E:OpenMetaverse.EstateTools.TopCollidersReply"> 25497 <member name="T:OpenMetaverse.Primitive.TextureAnimation">
24305 <summary>Raised when the data server responds to a <see cref="M:OpenMetaverse.EstateTools.LandStatRequest(System.Int32,OpenMetaverse.EstateTools.LandStatReportType,System.UInt32,System.String)"/> request.</summary> 25498 <summary>
25499 Controls the texture animation of a particular prim
25500 </summary>
24306 </member> 25501 </member>
24307 <member name="E:OpenMetaverse.EstateTools.TopScriptsReply"> 25502 <member name="M:OpenMetaverse.Primitive.TextureAnimation.#ctor(System.Byte[],System.Int32)">
24308 <summary>Raised when the data server responds to a <see cref="M:OpenMetaverse.EstateTools.LandStatRequest(System.Int32,OpenMetaverse.EstateTools.LandStatReportType,System.UInt32,System.String)"/> request.</summary> 25503 <summary>
25504 </summary>
25505 <param name="data">
25506 </param>
25507 <param name="pos">
25508 </param>
24309 </member> 25509 </member>
24310 <member name="E:OpenMetaverse.EstateTools.EstateUsersReply"> 25510 <member name="F:OpenMetaverse.Primitive.TextureAnimation.Flags">
24311 <summary>Raised when the data server responds to a <see cref="M:OpenMetaverse.EstateTools.LandStatRequest(System.Int32,OpenMetaverse.EstateTools.LandStatReportType,System.UInt32,System.String)"/> request.</summary> 25511 <summary>
25512 </summary>
24312 </member> 25513 </member>
24313 <member name="E:OpenMetaverse.EstateTools.EstateGroupsReply"> 25514 <member name="F:OpenMetaverse.Primitive.TextureAnimation.Face">
24314 <summary>Raised when the data server responds to a <see cref="M:OpenMetaverse.EstateTools.LandStatRequest(System.Int32,OpenMetaverse.EstateTools.LandStatReportType,System.UInt32,System.String)"/> request.</summary> 25515 <summary>
25516 </summary>
24315 </member> 25517 </member>
24316 <member name="E:OpenMetaverse.EstateTools.EstateManagersReply"> 25518 <member name="F:OpenMetaverse.Primitive.TextureAnimation.SizeX">
24317 <summary>Raised when the data server responds to a <see cref="M:OpenMetaverse.EstateTools.LandStatRequest(System.Int32,OpenMetaverse.EstateTools.LandStatReportType,System.UInt32,System.String)"/> request.</summary> 25519 <summary>
25520 </summary>
24318 </member> 25521 </member>
24319 <member name="E:OpenMetaverse.EstateTools.EstateBansReply"> 25522 <member name="F:OpenMetaverse.Primitive.TextureAnimation.SizeY">
24320 <summary>Raised when the data server responds to a <see cref="M:OpenMetaverse.EstateTools.LandStatRequest(System.Int32,OpenMetaverse.EstateTools.LandStatReportType,System.UInt32,System.String)"/> request.</summary> 25523 <summary>
25524 </summary>
24321 </member> 25525 </member>
24322 <member name="E:OpenMetaverse.EstateTools.EstateCovenantReply"> 25526 <member name="F:OpenMetaverse.Primitive.TextureAnimation.Start">
24323 <summary>Raised when the data server responds to a <see cref="M:OpenMetaverse.EstateTools.LandStatRequest(System.Int32,OpenMetaverse.EstateTools.LandStatReportType,System.UInt32,System.String)"/> request.</summary> 25527 <summary>
25528 </summary>
24324 </member> 25529 </member>
24325 <member name="E:OpenMetaverse.EstateTools.EstateUpdateInfoReply"> 25530 <member name="F:OpenMetaverse.Primitive.TextureAnimation.Length">
24326 <summary>Raised when the data server responds to a <see cref="M:OpenMetaverse.EstateTools.LandStatRequest(System.Int32,OpenMetaverse.EstateTools.LandStatReportType,System.UInt32,System.String)"/> request.</summary> 25531 <summary>
25532 </summary>
24327 </member> 25533 </member>
24328 <member name="T:OpenMetaverse.EstateTools.LandStatReportType"> 25534 <member name="F:OpenMetaverse.Primitive.TextureAnimation.Rate">
24329 <summary>Used in the ReportType field of a LandStatRequest</summary> 25535 <summary>
25536 </summary>
24330 </member> 25537 </member>
24331 <member name="T:OpenMetaverse.EstateTools.EstateAccessDelta"> 25538 <member name="M:OpenMetaverse.Primitive.TextureAnimation.GetBytes">
24332 <summary>Used by EstateOwnerMessage packets</summary> 25539 <summary>
25540 </summary>
25541 <returns>
25542 </returns>
24333 </member> 25543 </member>
24334 <member name="T:OpenMetaverse.EstateTools.EstateAccessReplyDelta"> 25544 <member name="F:OpenMetaverse.Primitive.MediaVersion">
24335 <summary>Used by EstateOwnerMessage packets</summary> 25545 <summary>
25546 Current version of the media data for the prim
25547 </summary>
24336 </member> 25548 </member>
24337 <member name="T:OpenMetaverse.EstateTools.EstateReturnFlags"> 25549 <member name="F:OpenMetaverse.Primitive.FaceMedia">
24338 <summary> 25550 <summary>
24339 25551 Array of media entries indexed by face number
24340 </summary> 25552 </summary>
24341 </member> 25553 </member>
24342 <member name="F:OpenMetaverse.EstateTools.EstateReturnFlags.None"> 25554 <member name="F:OpenMetaverse.Primitive.ParticleSys">
24343 <summary>No flags set</summary> 25555 <summary>
25556 </summary>
24344 </member> 25557 </member>
24345 <member name="F:OpenMetaverse.EstateTools.EstateReturnFlags.ReturnScripted"> 25558 <member name="F:OpenMetaverse.Primitive.ID">
24346 <summary>Only return targets scripted objects</summary> 25559 <summary>
25560 </summary>
24347 </member> 25561 </member>
24348 <member name="F:OpenMetaverse.EstateTools.EstateReturnFlags.ReturnOnOthersLand"> 25562 <member name="F:OpenMetaverse.Primitive.GroupID">
24349 <summary>Only return targets objects if on others land</summary> 25563 <summary>
25564 </summary>
24350 </member> 25565 </member>
24351 <member name="F:OpenMetaverse.EstateTools.EstateReturnFlags.ReturnScriptedAndOnOthers"> 25566 <member name="F:OpenMetaverse.Primitive.LocalID">
24352 <summary>Returns target's scripted objects and objects on other parcels</summary> 25567 <summary>
25568 </summary>
24353 </member> 25569 </member>
24354 <member name="T:OpenMetaverse.EstateTools.GroundTextureSettings"> 25570 <member name="F:OpenMetaverse.Primitive.ParentID">
24355 <summary>Ground texture settings for each corner of the region</summary> 25571 <summary>
25572 </summary>
24356 </member> 25573 </member>
24357 <member name="T:OpenMetaverse.EstateTools.GroundTextureHeight"> 25574 <member name="F:OpenMetaverse.Primitive.RegionHandle">
24358 <summary>Used by GroundTextureHeightSettings</summary> 25575 <summary>
25576 </summary>
24359 </member> 25577 </member>
24360 <member name="T:OpenMetaverse.EstateTools.GroundTextureHeightSettings"> 25578 <member name="F:OpenMetaverse.Primitive.Flags">
24361 <summary>The high and low texture thresholds for each corner of the sim</summary> 25579 <summary>
25580 </summary>
24362 </member> 25581 </member>
24363 <member name="T:OpenMetaverse.TopCollidersReplyEventArgs"> 25582 <member name="F:OpenMetaverse.Primitive.TreeSpecies">
24364 <summary>Raised on LandStatReply when the report type is for "top colliders"</summary> 25583 <summary>Foliage type for this primitive. Only applicable if this
25584 primitive is foliage</summary>
24365 </member> 25585 </member>
24366 <member name="M:OpenMetaverse.TopCollidersReplyEventArgs.#ctor(System.Int32,System.Collections.Generic.Dictionary{OpenMetaverse.UUID,OpenMetaverse.EstateTask})"> 25586 <member name="F:OpenMetaverse.Primitive.ScratchPad">
24367 <summary>Construct a new instance of the TopCollidersReplyEventArgs class</summary> 25587 <summary>Unknown</summary>
24368 <param name="objectCount">The number of returned items in LandStatReply</param>
24369 <param name="tasks">Dictionary of Object UUIDs to tasks returned in LandStatReply</param>
24370 </member> 25588 </member>
24371 <member name="P:OpenMetaverse.TopCollidersReplyEventArgs.ObjectCount"> 25589 <member name="F:OpenMetaverse.Primitive.Position">
24372 <summary> 25590 <summary>
24373 The number of returned items in LandStatReply
24374 </summary> 25591 </summary>
24375 </member> 25592 </member>
24376 <member name="P:OpenMetaverse.TopCollidersReplyEventArgs.Tasks"> 25593 <member name="F:OpenMetaverse.Primitive.Scale">
24377 <summary> 25594 <summary>
24378 A Dictionary of Object UUIDs to tasks returned in LandStatReply
24379 </summary> 25595 </summary>
24380 </member> 25596 </member>
24381 <member name="T:OpenMetaverse.TopScriptsReplyEventArgs"> 25597 <member name="F:OpenMetaverse.Primitive.Rotation">
24382 <summary>Raised on LandStatReply when the report type is for "top Scripts"</summary> 25598 <summary>
25599 </summary>
24383 </member> 25600 </member>
24384 <member name="M:OpenMetaverse.TopScriptsReplyEventArgs.#ctor(System.Int32,System.Collections.Generic.Dictionary{OpenMetaverse.UUID,OpenMetaverse.EstateTask})"> 25601 <member name="F:OpenMetaverse.Primitive.Velocity">
24385 <summary>Construct a new instance of the TopScriptsReplyEventArgs class</summary> 25602 <summary>
24386 <param name="objectCount">The number of returned items in LandStatReply</param> 25603 </summary>
24387 <param name="tasks">Dictionary of Object UUIDs to tasks returned in LandStatReply</param>
24388 </member> 25604 </member>
24389 <member name="P:OpenMetaverse.TopScriptsReplyEventArgs.ObjectCount"> 25605 <member name="F:OpenMetaverse.Primitive.AngularVelocity">
24390 <summary> 25606 <summary>
24391 The number of scripts returned in LandStatReply
24392 </summary> 25607 </summary>
24393 </member> 25608 </member>
24394 <member name="P:OpenMetaverse.TopScriptsReplyEventArgs.Tasks"> 25609 <member name="F:OpenMetaverse.Primitive.Acceleration">
24395 <summary> 25610 <summary>
24396 A Dictionary of Object UUIDs to tasks returned in LandStatReply
24397 </summary> 25611 </summary>
24398 </member> 25612 </member>
24399 <member name="T:OpenMetaverse.EstateBansReplyEventArgs"> 25613 <member name="F:OpenMetaverse.Primitive.CollisionPlane">
24400 <summary>Returned, along with other info, upon a successful .RequestInfo()</summary> 25614 <summary>
25615 </summary>
24401 </member> 25616 </member>
24402 <member name="M:OpenMetaverse.EstateBansReplyEventArgs.#ctor(System.UInt32,System.Int32,System.Collections.Generic.List{OpenMetaverse.UUID})"> 25617 <member name="F:OpenMetaverse.Primitive.Flexible">
24403 <summary>Construct a new instance of the EstateBansReplyEventArgs class</summary> 25618 <summary>
24404 <param name="estateID">The estate's identifier on the grid</param> 25619 </summary>
24405 <param name="count">The number of returned items in LandStatReply</param>
24406 <param name="banned">User UUIDs banned</param>
24407 </member> 25620 </member>
24408 <member name="P:OpenMetaverse.EstateBansReplyEventArgs.EstateID"> 25621 <member name="F:OpenMetaverse.Primitive.Light">
24409 <summary> 25622 <summary>
24410 The identifier of the estate
24411 </summary> 25623 </summary>
24412 </member> 25624 </member>
24413 <member name="P:OpenMetaverse.EstateBansReplyEventArgs.Count"> 25625 <member name="F:OpenMetaverse.Primitive.Sculpt">
24414 <summary> 25626 <summary>
24415 The number of returned itmes
24416 </summary> 25627 </summary>
24417 </member> 25628 </member>
24418 <member name="P:OpenMetaverse.EstateBansReplyEventArgs.Banned"> 25629 <member name="F:OpenMetaverse.Primitive.ClickAction">
24419 <summary> 25630 <summary>
24420 List of UUIDs of Banned Users
24421 </summary> 25631 </summary>
24422 </member> 25632 </member>
24423 <member name="T:OpenMetaverse.EstateUsersReplyEventArgs"> 25633 <member name="F:OpenMetaverse.Primitive.Sound">
24424 <summary>Returned, along with other info, upon a successful .RequestInfo()</summary> 25634 <summary>
25635 </summary>
24425 </member> 25636 </member>
24426 <member name="M:OpenMetaverse.EstateUsersReplyEventArgs.#ctor(System.UInt32,System.Int32,System.Collections.Generic.List{OpenMetaverse.UUID})"> 25637 <member name="F:OpenMetaverse.Primitive.OwnerID">
24427 <summary>Construct a new instance of the EstateUsersReplyEventArgs class</summary> 25638 <summary>Identifies the owner if audio or a particle system is
24428 <param name="estateID">The estate's identifier on the grid</param> 25639 active</summary>
24429 <param name="count">The number of users</param>
24430 <param name="allowedUsers">Allowed users UUIDs</param>
24431 </member> 25640 </member>
24432 <member name="P:OpenMetaverse.EstateUsersReplyEventArgs.EstateID"> 25641 <member name="F:OpenMetaverse.Primitive.SoundFlags">
24433 <summary> 25642 <summary>
24434 The identifier of the estate
24435 </summary> 25643 </summary>
24436 </member> 25644 </member>
24437 <member name="P:OpenMetaverse.EstateUsersReplyEventArgs.Count"> 25645 <member name="F:OpenMetaverse.Primitive.SoundGain">
24438 <summary> 25646 <summary>
24439 The number of returned items
24440 </summary> 25647 </summary>
24441 </member> 25648 </member>
24442 <member name="P:OpenMetaverse.EstateUsersReplyEventArgs.AllowedUsers"> 25649 <member name="F:OpenMetaverse.Primitive.SoundRadius">
24443 <summary> 25650 <summary>
24444 List of UUIDs of Allowed Users
24445 </summary> 25651 </summary>
24446 </member> 25652 </member>
24447 <member name="T:OpenMetaverse.EstateGroupsReplyEventArgs"> 25653 <member name="F:OpenMetaverse.Primitive.Text">
24448 <summary>Returned, along with other info, upon a successful .RequestInfo()</summary> 25654 <summary>
24449 </member> 25655 </summary>
24450 <member name="M:OpenMetaverse.EstateGroupsReplyEventArgs.#ctor(System.UInt32,System.Int32,System.Collections.Generic.List{OpenMetaverse.UUID})">
24451 <summary>Construct a new instance of the EstateGroupsReplyEventArgs class</summary>
24452 <param name="estateID">The estate's identifier on the grid</param>
24453 <param name="count">The number of Groups</param>
24454 <param name="allowedGroups">Allowed Groups UUIDs</param>
24455 </member> 25656 </member>
24456 <member name="P:OpenMetaverse.EstateGroupsReplyEventArgs.EstateID"> 25657 <member name="F:OpenMetaverse.Primitive.TextColor">
24457 <summary> 25658 <summary>
24458 The identifier of the estate
24459 </summary> 25659 </summary>
24460 </member> 25660 </member>
24461 <member name="P:OpenMetaverse.EstateGroupsReplyEventArgs.Count"> 25661 <member name="F:OpenMetaverse.Primitive.MediaURL">
24462 <summary> 25662 <summary>
24463 The number of returned items
24464 </summary> 25663 </summary>
24465 </member> 25664 </member>
24466 <member name="P:OpenMetaverse.EstateGroupsReplyEventArgs.AllowedGroups"> 25665 <member name="F:OpenMetaverse.Primitive.Joint">
24467 <summary> 25666 <summary>
24468 List of UUIDs of Allowed Groups
24469 </summary> 25667 </summary>
24470 </member> 25668 </member>
24471 <member name="T:OpenMetaverse.EstateManagersReplyEventArgs"> 25669 <member name="F:OpenMetaverse.Primitive.JointPivot">
24472 <summary>Returned, along with other info, upon a successful .RequestInfo()</summary> 25670 <summary>
25671 </summary>
24473 </member> 25672 </member>
24474 <member name="M:OpenMetaverse.EstateManagersReplyEventArgs.#ctor(System.UInt32,System.Int32,System.Collections.Generic.List{OpenMetaverse.UUID})"> 25673 <member name="F:OpenMetaverse.Primitive.JointAxisOrAnchor">
24475 <summary>Construct a new instance of the EstateManagersReplyEventArgs class</summary> 25674 <summary>
24476 <param name="estateID">The estate's identifier on the grid</param> 25675 </summary>
24477 <param name="count">The number of Managers</param>
24478 <param name="managers"> Managers UUIDs</param>
24479 </member> 25676 </member>
24480 <member name="P:OpenMetaverse.EstateManagersReplyEventArgs.EstateID"> 25677 <member name="F:OpenMetaverse.Primitive.NameValues">
24481 <summary> 25678 <summary>
24482 The identifier of the estate
24483 </summary> 25679 </summary>
24484 </member> 25680 </member>
24485 <member name="P:OpenMetaverse.EstateManagersReplyEventArgs.Count"> 25681 <member name="F:OpenMetaverse.Primitive.PrimData">
24486 <summary> 25682 <summary>
24487 The number of returned items
24488 </summary> 25683 </summary>
24489 </member> 25684 </member>
24490 <member name="P:OpenMetaverse.EstateManagersReplyEventArgs.Managers"> 25685 <member name="F:OpenMetaverse.Primitive.Properties">
24491 <summary> 25686 <summary>
24492 List of UUIDs of the Estate's Managers
24493 </summary> 25687 </summary>
24494 </member> 25688 </member>
24495 <member name="T:OpenMetaverse.EstateCovenantReplyEventArgs"> 25689 <member name="F:OpenMetaverse.Primitive.PhysicsProps">
24496 <summary>Returned, along with other info, upon a successful .RequestInfo()</summary> 25690 <summary>Objects physics engine propertis</summary>
24497 </member> 25691 </member>
24498 <member name="M:OpenMetaverse.EstateCovenantReplyEventArgs.#ctor(OpenMetaverse.UUID,System.Int64,System.String,OpenMetaverse.UUID)"> 25692 <member name="F:OpenMetaverse.Primitive.Tag">
24499 <summary>Construct a new instance of the EstateCovenantReplyEventArgs class</summary> 25693 <summary>Extra data about primitive</summary>
24500 <param name="covenantID">The Covenant ID</param>
24501 <param name="timestamp">The timestamp</param>
24502 <param name="estateName">The estate's name</param>
24503 <param name="estateOwnerID">The Estate Owner's ID (can be a GroupID)</param>
24504 </member> 25694 </member>
24505 <member name="P:OpenMetaverse.EstateCovenantReplyEventArgs.CovenantID"> 25695 <member name="F:OpenMetaverse.Primitive.IsAttachment">
25696 <summary>Indicates if prim is attached to an avatar</summary>
25697 </member>
25698 <member name="F:OpenMetaverse.Primitive.Textures">
24506 <summary> 25699 <summary>
24507 The Covenant
24508 </summary> 25700 </summary>
24509 </member> 25701 </member>
24510 <member name="P:OpenMetaverse.EstateCovenantReplyEventArgs.Timestamp"> 25702 <member name="F:OpenMetaverse.Primitive.TextureAnim">
24511 <summary> 25703 <summary>
24512 The timestamp
24513 </summary> 25704 </summary>
24514 </member> 25705 </member>
24515 <member name="P:OpenMetaverse.EstateCovenantReplyEventArgs.EstateName"> 25706 <member name="P:OpenMetaverse.Primitive.Type">
25707 <summary>Uses basic heuristics to estimate the primitive shape</summary>
25708 </member>
25709 <member name="M:OpenMetaverse.Primitive.PackPathTwist(System.Single)">
24516 <summary> 25710 <summary>
24517 The Estate name 25711 Packs PathTwist, PathTwistBegin, PathRadiusOffset, and PathSkew
25712 parameters in to signed eight bit values
24518 </summary> 25713 </summary>
25714 <param name="pathTwist">Floating point parameter to pack</param>
25715 <returns>Signed eight bit value containing the packed parameter</returns>
24519 </member> 25716 </member>
24520 <member name="P:OpenMetaverse.EstateCovenantReplyEventArgs.EstateOwnerID"> 25717 <member name="M:OpenMetaverse.Primitive.UnpackPathTwist(System.SByte)">
24521 <summary> 25718 <summary>
24522 The Estate Owner's ID (can be a GroupID) 25719 Unpacks PathTwist, PathTwistBegin, PathRadiusOffset, and PathSkew
25720 parameters from signed eight bit integers to floating point values
24523 </summary> 25721 </summary>
25722 <param name="pathTwist">Signed eight bit value to unpack</param>
25723 <returns>Unpacked floating point value</returns>
24524 </member> 25724 </member>
24525 <member name="T:OpenMetaverse.EstateUpdateInfoReplyEventArgs"> 25725 <member name="T:OpenMetaverse.Bumpiness">
24526 <summary>Returned, along with other info, upon a successful .RequestInfo()</summary>
24527 </member>
24528 <member name="M:OpenMetaverse.EstateUpdateInfoReplyEventArgs.#ctor(System.String,OpenMetaverse.UUID,System.UInt32,System.Boolean)">
24529 <summary>Construct a new instance of the EstateUpdateInfoReplyEventArgs class</summary>
24530 <param name="estateName">The estate's name</param>
24531 <param name="estateOwner">The Estate Owners ID (can be a GroupID)</param>
24532 <param name="estateID">The estate's identifier on the grid</param>
24533 <param name="denyNoPaymentInfo"></param>
24534 </member>
24535 <member name="P:OpenMetaverse.EstateUpdateInfoReplyEventArgs.EstateName">
24536 <summary> 25726 <summary>
24537 The estate's name 25727 The type of bump-mapping applied to a face
24538 </summary> 25728 </summary>
24539 </member> 25729 </member>
24540 <member name="P:OpenMetaverse.EstateUpdateInfoReplyEventArgs.EstateOwner"> 25730 <member name="F:OpenMetaverse.Bumpiness.None">
24541 <summary> 25731 <summary>
24542 The Estate Owner's ID (can be a GroupID)
24543 </summary> 25732 </summary>
24544 </member> 25733 </member>
24545 <member name="P:OpenMetaverse.EstateUpdateInfoReplyEventArgs.EstateID"> 25734 <member name="F:OpenMetaverse.Bumpiness.Brightness">
24546 <summary> 25735 <summary>
24547 The identifier of the estate on the grid
24548 </summary> 25736 </summary>
24549 </member> 25737 </member>
24550 <member name="P:OpenMetaverse.EstateUpdateInfoReplyEventArgs.DenyNoPaymentInfo"> 25738 <member name="F:OpenMetaverse.Bumpiness.Darkness">
24551 <summary></summary> 25739 <summary>
25740 </summary>
24552 </member> 25741 </member>
24553 <member name="T:OpenMetaverse.AvatarGroup"> 25742 <member name="F:OpenMetaverse.Bumpiness.Woodgrain">
24554 <summary> 25743 <summary>
24555 Holds group information for Avatars such as those you might find in a profile
24556 </summary> 25744 </summary>
24557 </member> 25745 </member>
24558 <member name="F:OpenMetaverse.AvatarGroup.AcceptNotices"> 25746 <member name="F:OpenMetaverse.Bumpiness.Bark">
24559 <summary>true of Avatar accepts group notices</summary> 25747 <summary>
25748 </summary>
24560 </member> 25749 </member>
24561 <member name="F:OpenMetaverse.AvatarGroup.GroupID"> 25750 <member name="F:OpenMetaverse.Bumpiness.Bricks">
24562 <summary>Groups Key</summary> 25751 <summary>
25752 </summary>
24563 </member> 25753 </member>
24564 <member name="F:OpenMetaverse.AvatarGroup.GroupInsigniaID"> 25754 <member name="F:OpenMetaverse.Bumpiness.Checker">
24565 <summary>Texture Key for groups insignia</summary> 25755 <summary>
25756 </summary>
24566 </member> 25757 </member>
24567 <member name="F:OpenMetaverse.AvatarGroup.GroupName"> 25758 <member name="F:OpenMetaverse.Bumpiness.Concrete">
24568 <summary>Name of the group</summary> 25759 <summary>
25760 </summary>
24569 </member> 25761 </member>
24570 <member name="F:OpenMetaverse.AvatarGroup.GroupPowers"> 25762 <member name="F:OpenMetaverse.Bumpiness.Crustytile">
24571 <summary>Powers avatar has in the group</summary> 25763 <summary>
25764 </summary>
24572 </member> 25765 </member>
24573 <member name="F:OpenMetaverse.AvatarGroup.GroupTitle"> 25766 <member name="F:OpenMetaverse.Bumpiness.Cutstone">
24574 <summary>Avatars Currently selected title</summary> 25767 <summary>
25768 </summary>
24575 </member> 25769 </member>
24576 <member name="F:OpenMetaverse.AvatarGroup.ListInProfile"> 25770 <member name="F:OpenMetaverse.Bumpiness.Discs">
24577 <summary>true of Avatar has chosen to list this in their profile</summary> 25771 <summary>
25772 </summary>
24578 </member> 25773 </member>
24579 <member name="T:OpenMetaverse.Animation"> 25774 <member name="F:OpenMetaverse.Bumpiness.Gravel">
24580 <summary> 25775 <summary>
24581 Contains an animation currently being played by an agent
24582 </summary> 25776 </summary>
24583 </member> 25777 </member>
24584 <member name="F:OpenMetaverse.Animation.AnimationID"> 25778 <member name="F:OpenMetaverse.Bumpiness.Petridish">
24585 <summary>The ID of the animation asset</summary> 25779 <summary>
25780 </summary>
24586 </member> 25781 </member>
24587 <member name="F:OpenMetaverse.Animation.AnimationSequence"> 25782 <member name="F:OpenMetaverse.Bumpiness.Siding">
24588 <summary>A number to indicate start order of currently playing animations</summary> 25783 <summary>
24589 <remarks>On Linden Grids this number is unique per region, with OpenSim it is per client</remarks> 25784 </summary>
24590 </member> 25785 </member>
24591 <member name="F:OpenMetaverse.Animation.AnimationSourceObjectID"> 25786 <member name="F:OpenMetaverse.Bumpiness.Stonetile">
24592 <summary></summary> 25787 <summary>
25788 </summary>
24593 </member> 25789 </member>
24594 <member name="T:OpenMetaverse.ProfilePick"> 25790 <member name="F:OpenMetaverse.Bumpiness.Stucco">
24595 <summary> 25791 <summary>
24596 Holds group information on an individual profile pick
24597 </summary> 25792 </summary>
24598 </member> 25793 </member>
24599 <member name="T:OpenMetaverse.AvatarManager"> 25794 <member name="F:OpenMetaverse.Bumpiness.Suction">
24600 <summary> 25795 <summary>
24601 Retrieve friend status notifications, and retrieve avatar names and
24602 profiles
24603 </summary> 25796 </summary>
24604 </member> 25797 </member>
24605 <member name="F:OpenMetaverse.AvatarManager.m_AvatarAnimation"> 25798 <member name="F:OpenMetaverse.Bumpiness.Weave">
24606 <summary>The event subscribers, null of no subscribers</summary> 25799 <summary>
25800 </summary>
24607 </member> 25801 </member>
24608 <member name="M:OpenMetaverse.AvatarManager.OnAvatarAnimation(OpenMetaverse.AvatarAnimationEventArgs)"> 25802 <member name="T:OpenMetaverse.Shininess">
24609 <summary>Raises the AvatarAnimation Event</summary> 25803 <summary>
24610 <param name="e">An AvatarAnimationEventArgs object containing 25804 The level of shininess applied to a face
24611 the data sent from the simulator</param> 25805 </summary>
24612 </member> 25806 </member>
24613 <member name="F:OpenMetaverse.AvatarManager.m_AvatarAnimationLock"> 25807 <member name="F:OpenMetaverse.Shininess.None">
24614 <summary>Thread sync lock object</summary> 25808 <summary>
25809 </summary>
24615 </member> 25810 </member>
24616 <member name="F:OpenMetaverse.AvatarManager.m_AvatarAppearance"> 25811 <member name="F:OpenMetaverse.Shininess.Low">
24617 <summary>The event subscribers, null of no subscribers</summary> 25812 <summary>
25813 </summary>
24618 </member> 25814 </member>
24619 <member name="M:OpenMetaverse.AvatarManager.OnAvatarAppearance(OpenMetaverse.AvatarAppearanceEventArgs)"> 25815 <member name="F:OpenMetaverse.Shininess.Medium">
24620 <summary>Raises the AvatarAppearance Event</summary> 25816 <summary>
24621 <param name="e">A AvatarAppearanceEventArgs object containing 25817 </summary>
24622 the data sent from the simulator</param>
24623 </member> 25818 </member>
24624 <member name="F:OpenMetaverse.AvatarManager.m_AvatarAppearanceLock"> 25819 <member name="F:OpenMetaverse.Shininess.High">
24625 <summary>Thread sync lock object</summary> 25820 <summary>
25821 </summary>
24626 </member> 25822 </member>
24627 <member name="F:OpenMetaverse.AvatarManager.m_UUIDNameReply"> 25823 <member name="T:OpenMetaverse.MappingType">
24628 <summary>The event subscribers, null of no subscribers</summary> 25824 <summary>
25825 The texture mapping style used for a face
25826 </summary>
24629 </member> 25827 </member>
24630 <member name="M:OpenMetaverse.AvatarManager.OnUUIDNameReply(OpenMetaverse.UUIDNameReplyEventArgs)"> 25828 <member name="F:OpenMetaverse.MappingType.Default">
24631 <summary>Raises the UUIDNameReply Event</summary> 25829 <summary>
24632 <param name="e">A UUIDNameReplyEventArgs object containing 25830 </summary>
24633 the data sent from the simulator</param>
24634 </member> 25831 </member>
24635 <member name="F:OpenMetaverse.AvatarManager.m_UUIDNameReplyLock"> 25832 <member name="F:OpenMetaverse.MappingType.Planar">
24636 <summary>Thread sync lock object</summary> 25833 <summary>
25834 </summary>
24637 </member> 25835 </member>
24638 <member name="F:OpenMetaverse.AvatarManager.m_AvatarInterestsReply"> 25836 <member name="F:OpenMetaverse.MappingType.Spherical">
24639 <summary>The event subscribers, null of no subscribers</summary> 25837 <summary>
25838 </summary>
24640 </member> 25839 </member>
24641 <member name="M:OpenMetaverse.AvatarManager.OnAvatarInterestsReply(OpenMetaverse.AvatarInterestsReplyEventArgs)"> 25840 <member name="F:OpenMetaverse.MappingType.Cylindrical">
24642 <summary>Raises the AvatarInterestsReply Event</summary> 25841 <summary>
24643 <param name="e">A AvatarInterestsReplyEventArgs object containing 25842 </summary>
24644 the data sent from the simulator</param>
24645 </member> 25843 </member>
24646 <member name="F:OpenMetaverse.AvatarManager.m_AvatarInterestsReplyLock"> 25844 <member name="T:OpenMetaverse.TextureAttributes">
24647 <summary>Thread sync lock object</summary> 25845 <summary>
25846 Flags in the TextureEntry block that describe which properties are
25847 set
25848 </summary>
24648 </member> 25849 </member>
24649 <member name="F:OpenMetaverse.AvatarManager.m_AvatarPropertiesReply"> 25850 <member name="F:OpenMetaverse.TextureAttributes.None">
24650 <summary>The event subscribers, null of no subscribers</summary> 25851 <summary>
25852 </summary>
24651 </member> 25853 </member>
24652 <member name="M:OpenMetaverse.AvatarManager.OnAvatarPropertiesReply(OpenMetaverse.AvatarPropertiesReplyEventArgs)"> 25854 <member name="F:OpenMetaverse.TextureAttributes.TextureID">
24653 <summary>Raises the AvatarPropertiesReply Event</summary> 25855 <summary>
24654 <param name="e">A AvatarPropertiesReplyEventArgs object containing 25856 </summary>
24655 the data sent from the simulator</param>
24656 </member> 25857 </member>
24657 <member name="F:OpenMetaverse.AvatarManager.m_AvatarPropertiesReplyLock"> 25858 <member name="F:OpenMetaverse.TextureAttributes.RGBA">
24658 <summary>Thread sync lock object</summary> 25859 <summary>
25860 </summary>
24659 </member> 25861 </member>
24660 <member name="F:OpenMetaverse.AvatarManager.m_AvatarGroupsReply"> 25862 <member name="F:OpenMetaverse.TextureAttributes.RepeatU">
24661 <summary>The event subscribers, null of no subscribers</summary> 25863 <summary>
25864 </summary>
24662 </member> 25865 </member>
24663 <member name="M:OpenMetaverse.AvatarManager.OnAvatarGroupsReply(OpenMetaverse.AvatarGroupsReplyEventArgs)"> 25866 <member name="F:OpenMetaverse.TextureAttributes.RepeatV">
24664 <summary>Raises the AvatarGroupsReply Event</summary> 25867 <summary>
24665 <param name="e">A AvatarGroupsReplyEventArgs object containing 25868 </summary>
24666 the data sent from the simulator</param>
24667 </member> 25869 </member>
24668 <member name="F:OpenMetaverse.AvatarManager.m_AvatarGroupsReplyLock"> 25870 <member name="F:OpenMetaverse.TextureAttributes.OffsetU">
24669 <summary>Thread sync lock object</summary> 25871 <summary>
25872 </summary>
24670 </member> 25873 </member>
24671 <member name="F:OpenMetaverse.AvatarManager.m_AvatarPickerReply"> 25874 <member name="F:OpenMetaverse.TextureAttributes.OffsetV">
24672 <summary>The event subscribers, null of no subscribers</summary> 25875 <summary>
25876 </summary>
24673 </member> 25877 </member>
24674 <member name="M:OpenMetaverse.AvatarManager.OnAvatarPickerReply(OpenMetaverse.AvatarPickerReplyEventArgs)"> 25878 <member name="F:OpenMetaverse.TextureAttributes.Rotation">
24675 <summary>Raises the AvatarPickerReply Event</summary> 25879 <summary>
24676 <param name="e">A AvatarPickerReplyEventArgs object containing 25880 </summary>
24677 the data sent from the simulator</param>
24678 </member> 25881 </member>
24679 <member name="F:OpenMetaverse.AvatarManager.m_AvatarPickerReplyLock"> 25882 <member name="F:OpenMetaverse.TextureAttributes.Material">
24680 <summary>Thread sync lock object</summary> 25883 <summary>
25884 </summary>
24681 </member> 25885 </member>
24682 <member name="F:OpenMetaverse.AvatarManager.m_ViewerEffectPointAt"> 25886 <member name="F:OpenMetaverse.TextureAttributes.Media">
24683 <summary>The event subscribers, null of no subscribers</summary> 25887 <summary>
25888 </summary>
24684 </member> 25889 </member>
24685 <member name="M:OpenMetaverse.AvatarManager.OnViewerEffectPointAt(OpenMetaverse.ViewerEffectPointAtEventArgs)"> 25890 <member name="F:OpenMetaverse.TextureAttributes.Glow">
24686 <summary>Raises the ViewerEffectPointAt Event</summary> 25891 <summary>
24687 <param name="e">A ViewerEffectPointAtEventArgs object containing 25892 </summary>
24688 the data sent from the simulator</param>
24689 </member> 25893 </member>
24690 <member name="F:OpenMetaverse.AvatarManager.m_ViewerEffectPointAtLock"> 25894 <member name="F:OpenMetaverse.TextureAttributes.All">
24691 <summary>Thread sync lock object</summary> 25895 <summary>
25896 </summary>
24692 </member> 25897 </member>
24693 <member name="F:OpenMetaverse.AvatarManager.m_ViewerEffectLookAt"> 25898 <member name="T:OpenMetaverse.Rendering.LindenMesh.LODMesh">
24694 <summary>The event subscribers, null of no subscribers</summary> 25899 <summary>
25900 Level of Detail mesh
25901 </summary>
24695 </member> 25902 </member>
24696 <member name="M:OpenMetaverse.AvatarManager.OnViewerEffectLookAt(OpenMetaverse.ViewerEffectLookAtEventArgs)"> 25903 <member name="T:OpenMetaverse.Rendering.FacetedMesh">
24697 <summary>Raises the ViewerEffectLookAt Event</summary> 25904 <summary>
24698 <param name="e">A ViewerEffectLookAtEventArgs object containing 25905 Contains all mesh faces that belong to a prim
24699 the data sent from the simulator</param> 25906 </summary>
24700 </member> 25907 </member>
24701 <member name="F:OpenMetaverse.AvatarManager.m_ViewerEffectLookAtLock"> 25908 <member name="F:OpenMetaverse.Rendering.FacetedMesh.Faces">
24702 <summary>Thread sync lock object</summary> 25909 <summary>List of primitive faces</summary>
24703 </member> 25910 </member>
24704 <member name="F:OpenMetaverse.AvatarManager.m_ViewerEffect"> 25911 <member name="M:OpenMetaverse.Rendering.FacetedMesh.TryDecodeFromAsset(OpenMetaverse.Primitive,OpenMetaverse.Assets.AssetMesh,OpenMetaverse.Rendering.DetailLevel,OpenMetaverse.Rendering.FacetedMesh@)">
24705 <summary>The event subscribers, null of no subscribers</summary> 25912 <summary>
25913 Decodes mesh asset into FacetedMesh
25914 </summary>
25915 <param name="prim">Mesh primitive</param>
25916 <param name="meshAsset">Asset retrieved from the asset server</param>
25917 <param name="LOD">Level of detail</param>
25918 <param name="mesh">Resulting decoded FacetedMesh</param>
25919 <returns>True if mesh asset decoding was successful</returns>
24706 </member> 25920 </member>
24707 <member name="M:OpenMetaverse.AvatarManager.OnViewerEffect(OpenMetaverse.ViewerEffectEventArgs)"> 25921 <member name="M:OpenMetaverse.Voice.VoiceGateway.VoiceLoggingSettings.#ctor">
24708 <summary>Raises the ViewerEffect Event</summary> 25922 <summary>
24709 <param name="e">A ViewerEffectEventArgs object containing 25923 Constructor for default logging settings
24710 the data sent from the simulator</param> 25924 </summary>
24711 </member> 25925 </member>
24712 <member name="F:OpenMetaverse.AvatarManager.m_ViewerEffectLock"> 25926 <member name="F:OpenMetaverse.Voice.VoiceGateway.VoiceLoggingSettings.Enabled">
24713 <summary>Thread sync lock object</summary> 25927 <summary>Enable logging</summary>
24714 </member> 25928 </member>
24715 <member name="F:OpenMetaverse.AvatarManager.m_AvatarPicksReply"> 25929 <member name="F:OpenMetaverse.Voice.VoiceGateway.VoiceLoggingSettings.Folder">
24716 <summary>The event subscribers, null of no subscribers</summary> 25930 <summary>The folder where any logs will be created</summary>
24717 </member> 25931 </member>
24718 <member name="M:OpenMetaverse.AvatarManager.OnAvatarPicksReply(OpenMetaverse.AvatarPicksReplyEventArgs)"> 25932 <member name="F:OpenMetaverse.Voice.VoiceGateway.VoiceLoggingSettings.FileNamePrefix">
24719 <summary>Raises the AvatarPicksReply Event</summary> 25933 <summary>This will be prepended to beginning of each log file</summary>
24720 <param name="e">A AvatarPicksReplyEventArgs object containing
24721 the data sent from the simulator</param>
24722 </member> 25934 </member>
24723 <member name="F:OpenMetaverse.AvatarManager.m_AvatarPicksReplyLock"> 25935 <member name="F:OpenMetaverse.Voice.VoiceGateway.VoiceLoggingSettings.FileNameSuffix">
24724 <summary>Thread sync lock object</summary> 25936 <summary>The suffix or extension to be appended to each log file</summary>
24725 </member> 25937 </member>
24726 <member name="F:OpenMetaverse.AvatarManager.m_PickInfoReply"> 25938 <member name="F:OpenMetaverse.Voice.VoiceGateway.VoiceLoggingSettings.LogLevel">
24727 <summary>The event subscribers, null of no subscribers</summary> 25939 <summary>
25940 0: NONE - No logging
25941 1: ERROR - Log errors only
25942 2: WARNING - Log errors and warnings
25943 3: INFO - Log errors, warnings and info
25944 4: DEBUG - Log errors, warnings, info and debug
25945 </summary>
24728 </member> 25946 </member>
24729 <member name="M:OpenMetaverse.AvatarManager.OnPickInfoReply(OpenMetaverse.PickInfoReplyEventArgs)"> 25947 <member name="T:OpenMetaverse.Voice.VoiceGateway.AudioPropertiesEventArgs">
24730 <summary>Raises the PickInfoReply Event</summary> 25948 Audio Properties Events are sent after audio capture is started. These events are used to display a microphone VU meter</member>
24731 <param name="e">A PickInfoReplyEventArgs object containing 25949 <member name="E:OpenMetaverse.Voice.VoiceGateway.OnVoiceResponse">
24732 the data sent from the simulator</param> 25950 <summary>
25951 Event for most mundane request reposnses.
25952 </summary>
24733 </member> 25953 </member>
24734 <member name="F:OpenMetaverse.AvatarManager.m_PickInfoReplyLock"> 25954 <member name="E:OpenMetaverse.Voice.VoiceGateway.OnConnectorCreateResponse">
24735 <summary>Thread sync lock object</summary> 25955 <summary>Response to Connector.Create request</summary>
24736 </member> 25956 </member>
24737 <member name="F:OpenMetaverse.AvatarManager.m_AvatarClassifiedReply"> 25957 <member name="E:OpenMetaverse.Voice.VoiceGateway.OnAuxGetCaptureDevicesResponse">
24738 <summary>The event subscribers, null of no subscribers</summary> 25958 <summary>Response to Aux.GetCaptureDevices request</summary>
24739 </member> 25959 </member>
24740 <member name="M:OpenMetaverse.AvatarManager.OnAvatarClassifiedReply(OpenMetaverse.AvatarClassifiedReplyEventArgs)"> 25960 <member name="E:OpenMetaverse.Voice.VoiceGateway.OnAuxGetRenderDevicesResponse">
24741 <summary>Raises the AvatarClassifiedReply Event</summary> 25961 <summary>Response to Aux.GetRenderDevices request</summary>
24742 <param name="e">A AvatarClassifiedReplyEventArgs object containing
24743 the data sent from the simulator</param>
24744 </member> 25962 </member>
24745 <member name="F:OpenMetaverse.AvatarManager.m_AvatarClassifiedReplyLock"> 25963 <member name="E:OpenMetaverse.Voice.VoiceGateway.OnAuxAudioPropertiesEvent">
24746 <summary>Thread sync lock object</summary> 25964 <summary>Audio Properties Events are sent after audio capture is started.
25965 These events are used to display a microphone VU meter</summary>
24747 </member> 25966 </member>
24748 <member name="F:OpenMetaverse.AvatarManager.m_ClassifiedInfoReply"> 25967 <member name="E:OpenMetaverse.Voice.VoiceGateway.OnAccountLoginResponse">
24749 <summary>The event subscribers, null of no subscribers</summary> 25968 <summary>Response to Account.Login request</summary>
24750 </member> 25969 </member>
24751 <member name="M:OpenMetaverse.AvatarManager.OnClassifiedInfoReply(OpenMetaverse.ClassifiedInfoReplyEventArgs)"> 25970 <member name="E:OpenMetaverse.Voice.VoiceGateway.OnAccountLoginStateChangeEvent">
24752 <summary>Raises the ClassifiedInfoReply Event</summary> 25971 <summary>This event message is sent whenever the login state of the
24753 <param name="e">A ClassifiedInfoReplyEventArgs object containing 25972 particular Account has transitioned from one value to another</summary>
24754 the data sent from the simulator</param>
24755 </member> 25973 </member>
24756 <member name="F:OpenMetaverse.AvatarManager.m_ClassifiedInfoReplyLock"> 25974 <member name="P:OpenMetaverse.Voice.VoiceGateway.CaptureDevices">
24757 <summary>Thread sync lock object</summary> 25975 <summary>
25976 List of audio input devices
25977 </summary>
24758 </member> 25978 </member>
24759 <member name="M:OpenMetaverse.AvatarManager.#ctor(OpenMetaverse.GridClient)"> 25979 <member name="P:OpenMetaverse.Voice.VoiceGateway.PlaybackDevices">
24760 <summary> 25980 <summary>
24761 Represents other avatars 25981 List of audio output devices
24762 </summary> 25982 </summary>
24763 <param name="client"></param>
24764 </member> 25983 </member>
24765 <member name="M:OpenMetaverse.AvatarManager.RequestTrackAgent(OpenMetaverse.UUID)"> 25984 <member name="P:OpenMetaverse.Voice.VoiceGateway.TestMode">
24766 <summary>Tracks the specified avatar on your map</summary> 25985 <summary>
24767 <param name="preyID">Avatar ID to track</param> 25986 Set audio test mode
25987 </summary>
24768 </member> 25988 </member>
24769 <member name="M:OpenMetaverse.AvatarManager.RequestAvatarName(OpenMetaverse.UUID)"> 25989 <member name="M:OpenMetaverse.Voice.VoiceGateway.AccountLogin(System.String,System.String,System.String,System.String,System.String,System.Int32,System.Boolean)">
24770 <summary> 25990 <summary>
24771 Request a single avatar name 25991 This is used to login a specific user account(s). It may only be called after
25992 Connector initialization has completed successfully
24772 </summary> 25993 </summary>
24773 <param name="id">The avatar key to retrieve a name for</param> 25994 <param name="ConnectorHandle">Handle returned from successful Connector �create� request</param>
25995 <param name="AccountName">User's account name</param>
25996 <param name="AccountPassword">User's account password</param>
25997 <param name="AudioSessionAnswerMode">Values may be �AutoAnswer� or �VerifyAnswer�</param>
25998 <param name="AccountURI">""</param>
25999 <param name="ParticipantPropertyFrequency">This is an integer that specifies how often
26000 the daemon will send participant property events while in a channel. If this is not set
26001 the default will be �on state change�, which means that the events will be sent when
26002 the participant starts talking, stops talking, is muted, is unmuted.
26003 The valid values are:
26004 0 � Never
26005 5 � 10 times per second
26006 10 � 5 times per second
26007 50 � 1 time per second
26008 100 � on participant state change (this is the default)</param>
26009 <param name="EnableBuddiesAndPresence">false</param>
26010 <returns>
26011 </returns>
24774 </member> 26012 </member>
24775 <member name="M:OpenMetaverse.AvatarManager.RequestAvatarNames(System.Collections.Generic.List{OpenMetaverse.UUID})"> 26013 <member name="M:OpenMetaverse.Voice.VoiceGateway.AccountLogout(System.String)">
24776 <summary> 26014 <summary>
24777 Request a list of avatar names 26015 This is used to logout a user session. It should only be called with a valid AccountHandle.
24778 </summary> 26016 </summary>
24779 <param name="ids">The avatar keys to retrieve names for</param> 26017 <param name="AccountHandle">Handle returned from successful Connector �login� request</param>
26018 <returns>
26019 </returns>
24780 </member> 26020 </member>
24781 <member name="M:OpenMetaverse.AvatarManager.RequestAvatarProperties(OpenMetaverse.UUID)"> 26021 <member name="M:OpenMetaverse.Voice.VoiceGateway.AuxGetCaptureDevices">
24782 <summary> 26022 <summary>
24783 Start a request for Avatar Properties 26023 This is used to get a list of audio devices that can be used for capture (input) of voice.
24784 </summary> 26024 </summary>
24785 <param name="avatarid"></param> 26025 <returns>
26026 </returns>
24786 </member> 26027 </member>
24787 <member name="M:OpenMetaverse.AvatarManager.RequestAvatarNameSearch(System.String,OpenMetaverse.UUID)"> 26028 <member name="M:OpenMetaverse.Voice.VoiceGateway.AuxGetRenderDevices">
24788 <summary> 26029 <summary>
24789 Search for an avatar (first name, last name) 26030 This is used to get a list of audio devices that can be used for render (playback) of voice.
24790 </summary> 26031 </summary>
24791 <param name="name">The name to search for</param>
24792 <param name="queryID">An ID to associate with this query</param>
24793 </member> 26032 </member>
24794 <member name="M:OpenMetaverse.AvatarManager.RequestAvatarPicks(OpenMetaverse.UUID)"> 26033 <member name="M:OpenMetaverse.Voice.VoiceGateway.AuxSetRenderDevice(System.String)">
24795 <summary> 26034 <summary>
24796 Start a request for Avatar Picks 26035 This command is used to select the render device.
24797 </summary> 26036 </summary>
24798 <param name="avatarid">UUID of the avatar</param> 26037 <param name="RenderDeviceSpecifier">The name of the device as returned by the Aux.GetRenderDevices command.</param>
24799 </member> 26038 </member>
24800 <member name="M:OpenMetaverse.AvatarManager.RequestAvatarClassified(OpenMetaverse.UUID)"> 26039 <member name="M:OpenMetaverse.Voice.VoiceGateway.AuxSetCaptureDevice(System.String)">
24801 <summary> 26040 <summary>
24802 Start a request for Avatar Classifieds 26041 This command is used to select the capture device.
24803 </summary> 26042 </summary>
24804 <param name="avatarid">UUID of the avatar</param> 26043 <param name="CaptureDeviceSpecifier">The name of the device as returned by the Aux.GetCaptureDevices command.</param>
24805 </member> 26044 </member>
24806 <member name="M:OpenMetaverse.AvatarManager.RequestPickInfo(OpenMetaverse.UUID,OpenMetaverse.UUID)"> 26045 <member name="M:OpenMetaverse.Voice.VoiceGateway.AuxCaptureAudioStart(System.Int32)">
24807 <summary> 26046 <summary>
24808 Start a request for details of a specific profile pick 26047 This command is used to start the audio capture process which will cause
26048 AuxAudioProperty Events to be raised. These events can be used to display a
26049 microphone VU meter for the currently selected capture device. This command
26050 should not be issued if the user is on a call.
24809 </summary> 26051 </summary>
24810 <param name="avatarid">UUID of the avatar</param> 26052 <param name="Duration">(unused but required)</param>
24811 <param name="pickid">UUID of the profile pick</param> 26053 <returns>
26054 </returns>
24812 </member> 26055 </member>
24813 <member name="M:OpenMetaverse.AvatarManager.RequestClassifiedInfo(OpenMetaverse.UUID,OpenMetaverse.UUID)"> 26056 <member name="M:OpenMetaverse.Voice.VoiceGateway.AuxCaptureAudioStop">
24814 <summary> 26057 <summary>
24815 Start a request for details of a specific profile classified 26058 This command is used to stop the audio capture process.
24816 </summary> 26059 </summary>
24817 <param name="avatarid">UUID of the avatar</param> 26060 <returns>
24818 <param name="classifiedid">UUID of the profile classified</param> 26061 </returns>
24819 </member> 26062 </member>
24820 <member name="M:OpenMetaverse.AvatarManager.UUIDNameReplyHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)"> 26063 <member name="M:OpenMetaverse.Voice.VoiceGateway.AuxSetMicLevel(System.Int32)">
24821 <summary>Process an incoming packet and raise the appropriate events</summary> 26064 <summary>
24822 <param name="sender">The sender</param> 26065 This command is used to set the mic volume while in the audio tuning process.
24823 <param name="e">The EventArgs object containing the packet data</param> 26066 Once an acceptable mic level is attained, the application must issue a
26067 connector set mic volume command to have that level be used while on voice
26068 calls.
26069 </summary>
26070 <param name="Level">the microphone volume (-100 to 100 inclusive)</param>
26071 <returns>
26072 </returns>
24824 </member> 26073 </member>
24825 <member name="M:OpenMetaverse.AvatarManager.AvatarAnimationHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)"> 26074 <member name="M:OpenMetaverse.Voice.VoiceGateway.AuxSetSpeakerLevel(System.Int32)">
24826 <summary>Process an incoming packet and raise the appropriate events</summary> 26075 <summary>
24827 <param name="sender">The sender</param> 26076 This command is used to set the speaker volume while in the audio tuning
24828 <param name="e">The EventArgs object containing the packet data</param> 26077 process. Once an acceptable speaker level is attained, the application must
26078 issue a connector set speaker volume command to have that level be used while
26079 on voice calls.
26080 </summary>
26081 <param name="Level">the speaker volume (-100 to 100 inclusive)</param>
26082 <returns>
26083 </returns>
24829 </member> 26084 </member>
24830 <member name="M:OpenMetaverse.AvatarManager.AvatarAppearanceHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)"> 26085 <member name="M:OpenMetaverse.Voice.VoiceGateway.ConnectorCreate(System.String,System.String,System.UInt16,System.UInt16,OpenMetaverse.Voice.VoiceGateway.VoiceLoggingSettings)">
24831 <summary>Process an incoming packet and raise the appropriate events</summary> 26086 <summary>
24832 <param name="sender">The sender</param> 26087 This is used to initialize and stop the Connector as a whole. The Connector
24833 <param name="e">The EventArgs object containing the packet data</param> 26088 Create call must be completed successfully before any other requests are made
26089 (typically during application initialization). The shutdown should be called
26090 when the application is shutting down to gracefully release resources
26091 </summary>
26092 <param name="ClientName">A string value indicting the Application name</param>
26093 <param name="AccountManagementServer">URL for the management server</param>
26094 <param name="Logging">LoggingSettings</param>
26095 <param name="MaximumPort">
26096 </param>
26097 <param name="MinimumPort">
26098 </param>
24834 </member> 26099 </member>
24835 <member name="M:OpenMetaverse.AvatarManager.AvatarPropertiesHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)"> 26100 <member name="M:OpenMetaverse.Voice.VoiceGateway.ConnectorInitiateShutdown(System.String)">
24836 <summary>Process an incoming packet and raise the appropriate events</summary> 26101 <summary>
24837 <param name="sender">The sender</param> 26102 Shutdown Connector -- Should be called when the application is shutting down
24838 <param name="e">The EventArgs object containing the packet data</param> 26103 to gracefully release resources
26104 </summary>
26105 <param name="ConnectorHandle">Handle returned from successful Connector �create� request</param>
24839 </member> 26106 </member>
24840 <member name="M:OpenMetaverse.AvatarManager.AvatarInterestsHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)"> 26107 <member name="M:OpenMetaverse.Voice.VoiceGateway.ConnectorMuteLocalMic(System.String,System.Boolean)">
24841 <summary>Process an incoming packet and raise the appropriate events</summary> 26108 <summary>
24842 <param name="sender">The sender</param> 26109 Mute or unmute the microphone
24843 <param name="e">The EventArgs object containing the packet data</param> 26110 </summary>
26111 <param name="ConnectorHandle">Handle returned from successful Connector �create� request</param>
26112 <param name="Mute">true (mute) or false (unmute)</param>
24844 </member> 26113 </member>
24845 <member name="M:OpenMetaverse.AvatarManager.AvatarGroupsReplyMessageHandler(System.String,OpenMetaverse.Interfaces.IMessage,OpenMetaverse.Simulator)"> 26114 <member name="M:OpenMetaverse.Voice.VoiceGateway.ConnectorMuteLocalSpeaker(System.String,System.Boolean)">
24846 <summary> 26115 <summary>
24847 Crossed region handler for message that comes across the EventQueue. Sent to an agent 26116 Mute or unmute the speaker
24848 when the agent crosses a sim border into a new region.
24849 </summary> 26117 </summary>
24850 <param name="capsKey">The message key</param> 26118 <param name="ConnectorHandle">Handle returned from successful Connector �create� request</param>
24851 <param name="message">the IMessage object containing the deserialized data sent from the simulator</param> 26119 <param name="Mute">true (mute) or false (unmute)</param>
24852 <param name="simulator">The <see cref="T:OpenMetaverse.Simulator"/> which originated the packet</param>
24853 </member> 26120 </member>
24854 <member name="M:OpenMetaverse.AvatarManager.AvatarGroupsReplyHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)"> 26121 <member name="M:OpenMetaverse.Voice.VoiceGateway.ConnectorSetLocalMicVolume(System.String,System.Int32)">
24855 <summary>Process an incoming packet and raise the appropriate events</summary> 26122 <summary>
24856 <param name="sender">The sender</param> 26123 Set microphone volume
24857 <param name="e">The EventArgs object containing the packet data</param> 26124 </summary>
26125 <param name="ConnectorHandle">Handle returned from successful Connector �create� request</param>
26126 <param name="Value">The level of the audio, a number between -100 and 100 where
26127 0 represents �normal� speaking volume</param>
24858 </member> 26128 </member>
24859 <member name="M:OpenMetaverse.AvatarManager.AvatarPickerReplyHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)"> 26129 <member name="M:OpenMetaverse.Voice.VoiceGateway.ConnectorSetLocalSpeakerVolume(System.String,System.Int32)">
24860 <summary>Process an incoming packet and raise the appropriate events</summary> 26130 <summary>
24861 <param name="sender">The sender</param> 26131 Set local speaker volume
24862 <param name="e">The EventArgs object containing the packet data</param> 26132 </summary>
26133 <param name="ConnectorHandle">Handle returned from successful Connector �create� request</param>
26134 <param name="Value">The level of the audio, a number between -100 and 100 where
26135 0 represents �normal� speaking volume</param>
24863 </member> 26136 </member>
24864 <member name="M:OpenMetaverse.AvatarManager.ViewerEffectHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)"> 26137 <member name="M:OpenMetaverse.Voice.VoiceGateway.Start">
24865 <summary>Process an incoming packet and raise the appropriate events</summary> 26138 <summary>
24866 <param name="sender">The sender</param> 26139 Start up the Voice service.
24867 <param name="e">The EventArgs object containing the packet data</param> 26140 </summary>
24868 </member> 26141 </member>
24869 <member name="M:OpenMetaverse.AvatarManager.AvatarPicksReplyHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)"> 26142 <member name="M:OpenMetaverse.Voice.VoiceGateway.connector_OnVoiceResponse(System.Object,OpenMetaverse.Voice.VoiceGateway.VoiceResponseEventArgs)">
24870 <summary>Process an incoming packet and raise the appropriate events</summary> 26143 <summary>
24871 <param name="sender">The sender</param> 26144 Handle miscellaneous request status
24872 <param name="e">The EventArgs object containing the packet data</param> 26145 </summary>
26146 <param name="sender">
26147 </param>
26148 <param name="e">
26149 </param>
26150 ///<remarks>If something goes wrong, we log it.</remarks></member>
26151 <member name="M:OpenMetaverse.Voice.VoiceGateway.Dispose">
26152 <summary>
26153 Cleanup oject resources
26154 </summary>
24873 </member> 26155 </member>
24874 <member name="M:OpenMetaverse.AvatarManager.PickInfoReplyHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)"> 26156 <member name="M:OpenMetaverse.Voice.VoiceGateway.Network_EventQueueRunning(System.Object,OpenMetaverse.EventQueueRunningEventArgs)">
24875 <summary>Process an incoming packet and raise the appropriate events</summary> 26157 <summary>
24876 <param name="sender">The sender</param> 26158 Request voice cap when changing regions
24877 <param name="e">The EventArgs object containing the packet data</param> 26159 </summary>
24878 </member> 26160 </member>
24879 <member name="M:OpenMetaverse.AvatarManager.AvatarClassifiedReplyHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)"> 26161 <member name="M:OpenMetaverse.Voice.VoiceGateway.connector_OnSessionStateChangeEvent(System.Object,OpenMetaverse.Voice.VoiceGateway.SessionStateChangeEventArgs)">
24880 <summary>Process an incoming packet and raise the appropriate events</summary> 26162 <summary>
24881 <param name="sender">The sender</param> 26163 Handle a change in session state
24882 <param name="e">The EventArgs object containing the packet data</param> 26164 </summary>
24883 </member> 26165 </member>
24884 <member name="M:OpenMetaverse.AvatarManager.ClassifiedInfoReplyHandler(System.Object,OpenMetaverse.PacketReceivedEventArgs)"> 26166 <member name="M:OpenMetaverse.Voice.VoiceGateway.CloseSession(System.String)">
24885 <summary>Process an incoming packet and raise the appropriate events</summary> 26167 <summary>
24886 <param name="sender">The sender</param> 26168 Close a voice session
24887 <param name="e">The EventArgs object containing the packet data</param> 26169 </summary>
26170 <param name="sessionHandle">
26171 </param>
24888 </member> 26172 </member>
24889 <member name="E:OpenMetaverse.AvatarManager.AvatarAnimation"> 26173 <member name="M:OpenMetaverse.Voice.VoiceGateway.FindSession(System.String,System.Boolean)">
24890 <summary>Raised when the simulator sends us data containing 26174 <summary>
24891 an agents animation playlist</summary> 26175 Locate a Session context from its handle
26176 </summary>
26177 <remarks>Creates the session context if it does not exist.</remarks>
24892 </member> 26178 </member>
24893 <member name="E:OpenMetaverse.AvatarManager.AvatarAppearance"> 26179 <member name="M:OpenMetaverse.Voice.VoiceGateway.cClient_OnComplete(OpenMetaverse.Http.CapsClient,OpenMetaverse.StructuredData.OSD,System.Exception)">
24894 <summary>Raised when the simulator sends us data containing 26180 <summary>
24895 the appearance information for an agent</summary> 26181 Handle completion of main voice cap request.
26182 </summary>
26183 <param name="client">
26184 </param>
26185 <param name="result">
26186 </param>
26187 <param name="error">
26188 </param>
24896 </member> 26189 </member>
24897 <member name="E:OpenMetaverse.AvatarManager.UUIDNameReply"> 26190 <member name="M:OpenMetaverse.Voice.VoiceGateway.connector_OnDaemonRunning">
24898 <summary>Raised when the simulator sends us data containing 26191 <summary>
24899 agent names/id values</summary> 26192 Daemon has started so connect to it.
26193 </summary>
24900 </member> 26194 </member>
24901 <member name="E:OpenMetaverse.AvatarManager.AvatarInterestsReply"> 26195 <member name="M:OpenMetaverse.Voice.VoiceGateway.connector_OnDaemonConnected">
24902 <summary>Raised when the simulator sends us data containing 26196 <summary>
24903 the interests listed in an agents profile</summary> 26197 The daemon TCP connection is open.
26198 </summary>
24904 </member> 26199 </member>
24905 <member name="E:OpenMetaverse.AvatarManager.AvatarPropertiesReply"> 26200 <member name="M:OpenMetaverse.Voice.VoiceGateway.connector_OnConnectorCreateResponse(System.Object,OpenMetaverse.Voice.VoiceGateway.VoiceConnectorEventArgs)">
24906 <summary>Raised when the simulator sends us data containing 26201 <summary>
24907 profile property information for an agent</summary> 26202 Handle creation of the Connector.
26203 </summary>
24908 </member> 26204 </member>
24909 <member name="E:OpenMetaverse.AvatarManager.AvatarGroupsReply"> 26205 <member name="M:OpenMetaverse.Voice.VoiceGateway.connector_OnAuxGetRenderDevicesResponse(System.Object,OpenMetaverse.Voice.VoiceGateway.VoiceDevicesEventArgs)">
24910 <summary>Raised when the simulator sends us data containing 26206 <summary>
24911 the group membership an agent is a member of</summary> 26207 Handle response to audio output device query
26208 </summary>
24912 </member> 26209 </member>
24913 <member name="E:OpenMetaverse.AvatarManager.AvatarPickerReply"> 26210 <member name="M:OpenMetaverse.Voice.VoiceGateway.connector_OnAuxGetCaptureDevicesResponse(System.Object,OpenMetaverse.Voice.VoiceGateway.VoiceDevicesEventArgs)">
24914 <summary>Raised when the simulator sends us data containing 26211 <summary>
24915 name/id pair</summary> 26212 Handle response to audio input device query
26213 </summary>
24916 </member> 26214 </member>
24917 <member name="E:OpenMetaverse.AvatarManager.ViewerEffectPointAt"> 26215 <member name="M:OpenMetaverse.Voice.VoiceGateway.ParcelChanged">
24918 <summary>Raised when the simulator sends us data containing 26216 <summary>
24919 the objects and effect when an agent is pointing at</summary> 26217 Set voice channel for new parcel
26218 </summary>
24920 </member> 26219 </member>
24921 <member name="E:OpenMetaverse.AvatarManager.ViewerEffectLookAt"> 26220 <member name="M:OpenMetaverse.Voice.VoiceGateway.RequestParcelInfo(System.Uri)">
24922 <summary>Raised when the simulator sends us data containing 26221 <summary>
24923 the objects and effect when an agent is looking at</summary> 26222 Request info from a parcel capability Uri.
26223 </summary>
26224 <param name="cap">
26225 </param>
24924 </member> 26226 </member>
24925 <member name="E:OpenMetaverse.AvatarManager.ViewerEffect"> 26227 <member name="M:OpenMetaverse.Voice.VoiceGateway.pCap_OnComplete(OpenMetaverse.Http.CapsClient,OpenMetaverse.StructuredData.OSD,System.Exception)">
24926 <summary>Raised when the simulator sends us data containing 26228 <summary>
24927 an agents viewer effect information</summary> 26229 Receive parcel voice cap
26230 </summary>
26231 <param name="client">
26232 </param>
26233 <param name="result">
26234 </param>
26235 <param name="error">
26236 </param>
24928 </member> 26237 </member>
24929 <member name="E:OpenMetaverse.AvatarManager.AvatarPicksReply"> 26238 <member name="M:OpenMetaverse.Voice.VoiceGateway.UpdatePosition(OpenMetaverse.AgentManager)">
24930 <summary>Raised when the simulator sends us data containing 26239 <summary>
24931 the top picks from an agents profile</summary> 26240 Tell Vivox where we are standing
26241 </summary>
26242 <remarks>This has to be called when we move or turn.</remarks>
24932 </member> 26243 </member>
24933 <member name="E:OpenMetaverse.AvatarManager.PickInfoReply"> 26244 <member name="M:OpenMetaverse.Voice.VoiceGateway.PosUpdating(System.Boolean)">
24934 <summary>Raised when the simulator sends us data containing 26245 <summary>
24935 the Pick details</summary> 26246 Start and stop updating out position.
26247 </summary>
26248 <param name="go">
26249 </param>
24936 </member> 26250 </member>
24937 <member name="E:OpenMetaverse.AvatarManager.AvatarClassifiedReply"> 26251 <member name="M:OpenMetaverse.Voice.VoiceGateway.StartDaemon(System.String,System.String)">
24938 <summary>Raised when the simulator sends us data containing 26252 <summary>
24939 the classified ads an agent has placed</summary> 26253 Starts a thread that keeps the daemon running
26254 </summary>
26255 <param name="path">
26256 </param>
26257 <param name="args">
26258 </param>
24940 </member> 26259 </member>
24941 <member name="E:OpenMetaverse.AvatarManager.ClassifiedInfoReply"> 26260 <member name="M:OpenMetaverse.Voice.VoiceGateway.StopDaemon">
24942 <summary>Raised when the simulator sends us data containing 26261 <summary>
24943 the details of a classified ad</summary> 26262 Stops the daemon and the thread keeping it running
26263 </summary>
24944 </member> 26264 </member>
24945 <member name="T:OpenMetaverse.AvatarAnimationEventArgs"> 26265 <member name="M:OpenMetaverse.Voice.VoiceGateway.ConnectToDaemon(System.String,System.Int32)">
24946 <summary>Provides data for the <see cref="E:OpenMetaverse.AvatarManager.AvatarAnimation"/> event</summary> 26266 <summary>
24947 <remarks>The <see cref="E:OpenMetaverse.AvatarManager.AvatarAnimation"/> event occurs when the simulator sends 26267 </summary>
24948 the animation playlist for an agent</remarks> 26268 <param name="address">
24949 <example> 26269 </param>
24950 The following code example uses the <see cref="P:OpenMetaverse.AvatarAnimationEventArgs.AvatarID"/> and <see cref="P:OpenMetaverse.AvatarAnimationEventArgs.Animations"/> 26270 <param name="port">
24951 properties to display the animation playlist of an avatar on the <see cref="T:System.Console"/> window. 26271 </param>
24952 <code> 26272 <returns>
24953 // subscribe to the event 26273 </returns>
24954 Client.Avatars.AvatarAnimation += Avatars_AvatarAnimation;
24955
24956 private void Avatars_AvatarAnimation(object sender, AvatarAnimationEventArgs e)
24957 {
24958 // create a dictionary of "known" animations from the Animations class using System.Reflection
24959 Dictionary&lt;UUID, string&gt; systemAnimations = new Dictionary&lt;UUID, string&gt;();
24960 Type type = typeof(Animations);
24961 System.Reflection.FieldInfo[] fields = type.GetFields(System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.Static);
24962 foreach (System.Reflection.FieldInfo field in fields)
24963 {
24964 systemAnimations.Add((UUID)field.GetValue(type), field.Name);
24965 }
24966
24967 // find out which animations being played are known animations and which are assets
24968 foreach (Animation animation in e.Animations)
24969 {
24970 if (systemAnimations.ContainsKey(animation.AnimationID))
24971 {
24972 Console.WriteLine("{0} is playing {1} ({2}) sequence {3}", e.AvatarID,
24973 systemAnimations[animation.AnimationID], animation.AnimationSequence);
24974 }
24975 else
24976 {
24977 Console.WriteLine("{0} is playing {1} (Asset) sequence {2}", e.AvatarID,
24978 animation.AnimationID, animation.AnimationSequence);
24979 }
24980 }
24981 }
24982 </code>
24983 </example>
24984 </member> 26274 </member>
24985 <member name="M:OpenMetaverse.AvatarAnimationEventArgs.#ctor(OpenMetaverse.UUID,System.Collections.Generic.List{OpenMetaverse.Animation})"> 26275 <member name="M:OpenMetaverse.Voice.VoiceGateway.SessionCreate(System.String,System.String,System.String,System.String,System.Boolean,System.Boolean,System.String)">
24986 <summary> 26276 <summary>
24987 Construct a new instance of the AvatarAnimationEventArgs class 26277 Create a Session
26278 Sessions typically represent a connection to a media session with one or more
26279 participants. This is used to generate an �outbound� call to another user or
26280 channel. The specifics depend on the media types involved. A session handle is
26281 required to control the local user functions within the session (or remote
26282 users if the current account has rights to do so). Currently creating a
26283 session automatically connects to the audio media, there is no need to call
26284 Session.Connect at this time, this is reserved for future use.
24988 </summary> 26285 </summary>
24989 <param name="avatarID">The ID of the agent</param> 26286 <param name="AccountHandle">Handle returned from successful Connector �create� request</param>
24990 <param name="anims">The list of animations to start</param> 26287 <param name="URI">This is the URI of the terminating point of the session (ie who/what is being called)</param>
26288 <param name="Name">This is the display name of the entity being called (user or channel)</param>
26289 <param name="Password">Only needs to be supplied when the target URI is password protected</param>
26290 <param name="PasswordHashAlgorithm">This indicates the format of the password as passed in. This can either be
26291 �ClearText� or �SHA1UserName�. If this element does not exist, it is assumed to be �ClearText�. If it is
26292 �SHA1UserName�, the password as passed in is the SHA1 hash of the password and username concatenated together,
26293 then base64 encoded, with the final �=� character stripped off.</param>
26294 <param name="JoinAudio">
26295 </param>
26296 <param name="JoinText">
26297 </param>
26298 <returns>
26299 </returns>
24991 </member> 26300 </member>
24992 <member name="P:OpenMetaverse.AvatarAnimationEventArgs.AvatarID"> 26301 <member name="M:OpenMetaverse.Voice.VoiceGateway.SessionConnect(System.String,System.String)">
24993 <summary>Get the ID of the agent</summary> 26302 <summary>
26303 Used to accept a call
26304 </summary>
26305 <param name="SessionHandle">SessionHandle such as received from SessionNewEvent</param>
26306 <param name="AudioMedia">"default"</param>
26307 <returns>
26308 </returns>
24994 </member> 26309 </member>
24995 <member name="P:OpenMetaverse.AvatarAnimationEventArgs.Animations"> 26310 <member name="M:OpenMetaverse.Voice.VoiceGateway.SessionRenderAudioStart(System.String,System.Boolean)">
24996 <summary>Get the list of animations to start</summary> 26311 <summary>
26312 This command is used to start the audio render process, which will then play
26313 the passed in file through the selected audio render device. This command
26314 should not be issued if the user is on a call.
26315 </summary>
26316 <param name="SoundFilePath">The fully qualified path to the sound file.</param>
26317 <param name="Loop">True if the file is to be played continuously and false if it is should be played once.</param>
26318 <returns>
26319 </returns>
24997 </member> 26320 </member>
24998 <member name="T:OpenMetaverse.AvatarAppearanceEventArgs"> 26321 <member name="M:OpenMetaverse.Voice.VoiceGateway.SessionRenderAudioStop(System.String)">
24999 <summary>Provides data for the <see cref="E:OpenMetaverse.AvatarManager.AvatarAppearance"/> event</summary> 26322 <summary>
25000 <remarks>The <see cref="E:OpenMetaverse.AvatarManager.AvatarAppearance"/> event occurs when the simulator sends 26323 This command is used to stop the audio render process.
25001 the appearance data for an avatar</remarks> 26324 </summary>
25002 <example> 26325 <param name="SoundFilePath">The fully qualified path to the sound file issued in the start render command.</param>
25003 The following code example uses the <see cref="P:OpenMetaverse.AvatarAppearanceEventArgs.AvatarID"/> and <see cref="P:OpenMetaverse.AvatarAppearanceEventArgs.VisualParams"/> 26326 <returns>
25004 properties to display the selected shape of an avatar on the <see cref="T:System.Console"/> window. 26327 </returns>
25005 <code>
25006 // subscribe to the event
25007 Client.Avatars.AvatarAppearance += Avatars_AvatarAppearance;
25008
25009 // handle the data when the event is raised
25010 void Avatars_AvatarAppearance(object sender, AvatarAppearanceEventArgs e)
25011 {
25012 Console.WriteLine("The Agent {0} is using a {1} shape.", e.AvatarID, (e.VisualParams[31] &gt; 0) : "male" ? "female")
25013 }
25014 </code>
25015 </example>
25016 </member> 26328 </member>
25017 <member name="M:OpenMetaverse.AvatarAppearanceEventArgs.#ctor(OpenMetaverse.Simulator,OpenMetaverse.UUID,System.Boolean,OpenMetaverse.Primitive.TextureEntryFace,OpenMetaverse.Primitive.TextureEntryFace[],System.Collections.Generic.List{System.Byte})"> 26329 <member name="M:OpenMetaverse.Voice.VoiceGateway.SessionTerminate(System.String)">
25018 <summary> 26330 <summary>
25019 Construct a new instance of the AvatarAppearanceEventArgs class 26331 This is used to end� an established session (i.e. hang-up or disconnect).
25020 </summary> 26332 </summary>
25021 <param name="sim">The simulator request was from</param> 26333 <param name="SessionHandle">Handle returned from successful Session �create� request or a SessionNewEvent</param>
25022 <param name="avatarID">The ID of the agent</param> 26334 <returns>
25023 <param name="isTrial">true of the agent is a trial account</param> 26335 </returns>
25024 <param name="defaultTexture">The default agent texture</param>
25025 <param name="faceTextures">The agents appearance layer textures</param>
25026 <param name="visualParams">The <see cref="P:OpenMetaverse.AvatarAppearanceEventArgs.VisualParams"/> for the agent</param>
25027 </member> 26336 </member>
25028 <member name="P:OpenMetaverse.AvatarAppearanceEventArgs.Simulator"> 26337 <member name="M:OpenMetaverse.Voice.VoiceGateway.SessionSet3DPosition(System.String,OpenMetaverse.Voice.VoicePosition,OpenMetaverse.Voice.VoicePosition)">
25029 <summary>Get the Simulator this request is from of the agent</summary> 26338 <summary>
26339 Set the combined speaking and listening position in 3D space.
26340 </summary>
26341 <param name="SessionHandle">Handle returned from successful Session �create� request or a SessionNewEvent</param>
26342 <param name="SpeakerPosition">Speaking position</param>
26343 <param name="ListenerPosition">Listening position</param>
26344 <returns>
26345 </returns>
25030 </member> 26346 </member>
25031 <member name="P:OpenMetaverse.AvatarAppearanceEventArgs.AvatarID"> 26347 <member name="M:OpenMetaverse.Voice.VoiceGateway.SessionSetParticipantVolumeForMe(System.String,System.String,System.Int32)">
25032 <summary>Get the ID of the agent</summary> 26348 <summary>
26349 Set User Volume for a particular user. Does not affect how other users hear that user.
26350 </summary>
26351 <param name="SessionHandle">Handle returned from successful Session �create� request or a SessionNewEvent</param>
26352 <param name="ParticipantURI">
26353 </param>
26354 <param name="Volume">The level of the audio, a number between -100 and 100 where 0 represents �normal� speaking volume</param>
26355 <returns>
26356 </returns>
25033 </member> 26357 </member>
25034 <member name="P:OpenMetaverse.AvatarAppearanceEventArgs.IsTrial"> 26358 <member name="F:OpenMetaverse.Voice.VoicePosition.Position">
25035 <summary>true if the agent is a trial account</summary> 26359 <summary>Positional vector of the users position</summary>
25036 </member> 26360 </member>
25037 <member name="P:OpenMetaverse.AvatarAppearanceEventArgs.DefaultTexture"> 26361 <member name="F:OpenMetaverse.Voice.VoicePosition.Velocity">
25038 <summary>Get the default agent texture</summary> 26362 <summary>Velocity vector of the position</summary>
25039 </member> 26363 </member>
25040 <member name="P:OpenMetaverse.AvatarAppearanceEventArgs.FaceTextures"> 26364 <member name="F:OpenMetaverse.Voice.VoicePosition.AtOrientation">
25041 <summary>Get the agents appearance layer textures</summary> 26365 <summary>At Orientation (X axis) of the position</summary>
25042 </member> 26366 </member>
25043 <member name="P:OpenMetaverse.AvatarAppearanceEventArgs.VisualParams"> 26367 <member name="F:OpenMetaverse.Voice.VoicePosition.UpOrientation">
25044 <summary>Get the <see cref="P:OpenMetaverse.AvatarAppearanceEventArgs.VisualParams"/> for the agent</summary> 26368 <summary>Up Orientation (Y axis) of the position</summary>
25045 </member> 26369 </member>
25046 <member name="T:OpenMetaverse.AvatarInterestsReplyEventArgs"> 26370 <member name="F:OpenMetaverse.Voice.VoicePosition.LeftOrientation">
25047 <summary>Represents the interests from the profile of an agent</summary> 26371 <summary>Left Orientation (Z axis) of the position</summary>
25048 </member> 26372 </member>
25049 <member name="P:OpenMetaverse.AvatarInterestsReplyEventArgs.AvatarID"> 26373 <member name="M:OpenMetaverse.Voice.VoiceParticipant.IDFromName(System.String)">
25050 <summary>Get the ID of the agent</summary> 26374 <summary>
26375 Extract the avatar UUID encoded in a SIP URI
26376 </summary>
26377 <param name="inName">
26378 </param>
26379 <returns>
26380 </returns>
25051 </member> 26381 </member>
25052 <member name="T:OpenMetaverse.AvatarPropertiesReplyEventArgs"> 26382 <member name="T:OpenMetaverse.Voice.VoiceSession">
25053 <summary>The properties of an agent</summary> 26383 <summary>
26384 Represents a single Voice Session to the Vivox service.
26385 </summary>
25054 </member> 26386 </member>
25055 <member name="P:OpenMetaverse.AvatarPropertiesReplyEventArgs.AvatarID"> 26387 <member name="M:OpenMetaverse.Voice.VoiceSession.Close">
25056 <summary>Get the ID of the agent</summary> 26388 <summary>
26389 Close this session.
26390 </summary>
25057 </member> 26391 </member>
25058 <member name="P:OpenMetaverse.AvatarGroupsReplyEventArgs.AvatarID"> 26392 <member name="M:OpenMetaverse.Voice.VoiceSession.FindParticipant(System.String)">
25059 <summary>Get the ID of the agent</summary> 26393 <summary>
26394 Look up an existing Participants in this session
26395 </summary>
26396 <param name="puri">
26397 </param>
26398 <returns>
26399 </returns>
25060 </member> 26400 </member>
25061 <member name="P:OpenMetaverse.AvatarPicksReplyEventArgs.AvatarID"> 26401 <member name="T:OpenMetaverse.DictionaryChangeCallback">
25062 <summary>Get the ID of the agent</summary> 26402 <summary>
26403 </summary>
26404 <param name="action">
26405 </param>
26406 <param name="entry">
26407 </param>
25063 </member> 26408 </member>
25064 <member name="P:OpenMetaverse.AvatarClassifiedReplyEventArgs.AvatarID"> 26409 <member name="T:OpenMetaverse.TextureDownloadCallback">
25065 <summary>Get the ID of the avatar</summary> 26410 <summary>
26411 A callback fired to indicate the status or final state of the requested texture. For progressive
26412 downloads this will fire each time new asset data is returned from the simulator.
26413 </summary>
26414 <param name="state">The <see cref="T:OpenMetaverse.TextureRequestState" /> indicating either Progress for textures not fully downloaded,
26415 or the final result of the request after it has been processed through the TexturePipeline</param>
26416 <param name="assetTexture">The <see cref="T:OpenMetaverse.Assets.AssetTexture" /> object containing the Assets ID, raw data
26417 and other information. For progressive rendering the <see cref="F:OpenMetaverse.Assets.Asset.AssetData" /> will contain
26418 the data from the beginning of the file. For failed, aborted and timed out requests it will contain
26419 an empty byte array.</param>
25066 </member> 26420 </member>
25067 </members> 26421 </members>
25068</doc> 26422</doc>
diff --git a/bin/OpenMetaverse.dll b/bin/OpenMetaverse.dll
index 523f5a7..7e742e2 100755
--- a/bin/OpenMetaverse.dll
+++ b/bin/OpenMetaverse.dll
Binary files differ
diff --git a/bin/OpenMetaverseTypes.XML b/bin/OpenMetaverseTypes.XML
index befc8d4..ce1298e 100644
--- a/bin/OpenMetaverseTypes.XML
+++ b/bin/OpenMetaverseTypes.XML
@@ -1,131 +1,239 @@
1<?xml version="1.0"?> 1<?xml version="1.0"?>
2<doc> 2<doc>
3 <assembly> 3 <assembly>
4 <name>OpenMetaverseTypes</name> 4 <name>/home/root/libomv-0.9.1-source/bin/OpenMetaverseTypes</name>
5 </assembly> 5 </assembly>
6 <members> 6 <members>
7 <member name="T:OpenMetaverse.Vector3d"> 7 <member name="T:OpenMetaverse.BlockingQueue`1">
8 <summary> 8 <summary>
9 A three-dimensional vector with doubleing-point values 9 Same as Queue except Dequeue function blocks until there is an object to return.
10 Note: This class does not need to be synchronized
10 </summary> 11 </summary>
11 </member> 12 </member>
12 <member name="F:OpenMetaverse.Vector3d.X"> 13 <member name="M:OpenMetaverse.BlockingQueue`1.#ctor(System.Collections.Generic.IEnumerable{`0})">
13 <summary>X value</summary> 14 <summary>
15 Create new BlockingQueue.
16 </summary>
17 <param name="col">The System.Collections.ICollection to copy elements from</param>
14 </member> 18 </member>
15 <member name="F:OpenMetaverse.Vector3d.Y"> 19 <member name="M:OpenMetaverse.BlockingQueue`1.#ctor(System.Int32)">
16 <summary>Y value</summary> 20 <summary>
21 Create new BlockingQueue.
22 </summary>
23 <param name="capacity">The initial number of elements that the queue can contain</param>
17 </member> 24 </member>
18 <member name="F:OpenMetaverse.Vector3d.Z"> 25 <member name="M:OpenMetaverse.BlockingQueue`1.#ctor">
19 <summary>Z value</summary> 26 <summary>
27 Create new BlockingQueue.
28 </summary>
20 </member> 29 </member>
21 <member name="M:OpenMetaverse.Vector3d.#ctor(System.Byte[],System.Int32)"> 30 <member name="P:OpenMetaverse.BlockingQueue`1.Closed">
22 <summary> 31 <summary>
23 Constructor, builds a vector from a byte array 32 Gets flag indicating if queue has been closed.
24 </summary> 33 </summary>
25 <param name="byteArray">Byte array containing three eight-byte doubles</param>
26 <param name="pos">Beginning position in the byte array</param>
27 </member> 34 </member>
28 <member name="M:OpenMetaverse.Vector3d.ApproxEquals(OpenMetaverse.Vector3d,System.Double)"> 35 <member name="M:OpenMetaverse.BlockingQueue`1.Finalize">
29 <summary> 36 <summary>
30 Test if this vector is equal to another vector, within a given 37 BlockingQueue Destructor (Close queue, resume any waiting thread).
31 tolerance range
32 </summary> 38 </summary>
33 <param name="vec">Vector to test against</param>
34 <param name="tolerance">The acceptable magnitude of difference
35 between the two vectors</param>
36 <returns>True if the magnitude of difference between the two vectors
37 is less than the given tolerance, otherwise false</returns>
38 </member> 39 </member>
39 <member name="M:OpenMetaverse.Vector3d.CompareTo(OpenMetaverse.Vector3d)"> 40 <member name="M:OpenMetaverse.BlockingQueue`1.Clear">
40 <summary> 41 <summary>
41 IComparable.CompareTo implementation 42 Remove all objects from the Queue.
42 </summary> 43 </summary>
43 </member> 44 </member>
44 <member name="M:OpenMetaverse.Vector3d.IsFinite"> 45 <member name="M:OpenMetaverse.BlockingQueue`1.Close">
45 <summary> 46 <summary>
46 Test if this vector is composed of all finite numbers 47 Remove all objects from the Queue, resume all dequeue threads.
47 </summary> 48 </summary>
48 </member> 49 </member>
49 <member name="M:OpenMetaverse.Vector3d.FromBytes(System.Byte[],System.Int32)"> 50 <member name="M:OpenMetaverse.BlockingQueue`1.Dequeue">
50 <summary> 51 <summary>
51 Builds a vector from a byte array 52 Removes and returns the object at the beginning of the Queue.
52 </summary> 53 </summary>
53 <param name="byteArray">Byte array containing a 24 byte vector</param> 54 <returns>Object in queue.</returns>
54 <param name="pos">Beginning position in the byte array</param>
55 </member> 55 </member>
56 <member name="M:OpenMetaverse.Vector3d.GetBytes"> 56 <member name="M:OpenMetaverse.BlockingQueue`1.Dequeue(System.TimeSpan)">
57 <summary> 57 <summary>
58 Returns the raw bytes for this vector 58 Removes and returns the object at the beginning of the Queue.
59 </summary> 59 </summary>
60 <returns>A 24 byte array containing X, Y, and Z</returns> 60 <param name="timeout">time to wait before returning</param>
61 <returns>Object in queue.</returns>
61 </member> 62 </member>
62 <member name="M:OpenMetaverse.Vector3d.ToBytes(System.Byte[],System.Int32)"> 63 <member name="M:OpenMetaverse.BlockingQueue`1.Dequeue(System.Int32)">
63 <summary> 64 <summary>
64 Writes the raw bytes for this vector to a byte array 65 Removes and returns the object at the beginning of the Queue.
65 </summary> 66 </summary>
66 <param name="dest">Destination byte array</param> 67 <param name="timeout">time to wait before returning (in milliseconds)</param>
67 <param name="pos">Position in the destination array to start 68 <returns>Object in queue.</returns>
68 writing. Must be at least 24 bytes before the end of the array</param>
69 </member> 69 </member>
70 <member name="M:OpenMetaverse.Vector3d.Parse(System.String)"> 70 <member name="M:OpenMetaverse.BlockingQueue`1.Enqueue(`0)">
71 <summary> 71 <summary>
72 Parse a vector from a string 72 Adds an object to the end of the Queue
73 </summary> 73 </summary>
74 <param name="val">A string representation of a 3D vector, enclosed 74 <param name="obj">Object to put in queue</param>
75 in arrow brackets and separated by commas</param>
76 </member> 75 </member>
77 <member name="M:OpenMetaverse.Vector3d.SmoothStep(OpenMetaverse.Vector3d,OpenMetaverse.Vector3d,System.Double)"> 76 <member name="M:OpenMetaverse.BlockingQueue`1.Open">
78 <summary> 77 <summary>
79 Interpolates between two vectors using a cubic equation 78 Open Queue.
80 </summary> 79 </summary>
81 </member> 80 </member>
82 <member name="M:OpenMetaverse.Vector3d.ToString"> 81 <member name="M:OpenMetaverse.CircularQueue`1.#ctor(OpenMetaverse.CircularQueue{`0})">
83 <summary> 82 <summary>
84 Get a formatted string representation of the vector 83 Copy constructor
85 </summary> 84 </summary>
86 <returns>A string representation of the vector</returns> 85 <param name="queue">Circular queue to copy</param>
87 </member> 86 </member>
88 <member name="M:OpenMetaverse.Vector3d.ToRawString"> 87 <member name="T:OpenMetaverse.Color4">
89 <summary> 88 <summary>
90 Get a string representation of the vector elements with up to three 89 An 8-bit color structure including an alpha channel
91 decimal digits and separated by spaces only
92 </summary> 90 </summary>
93 <returns>Raw string representation of the vector</returns>
94 </member> 91 </member>
95 <member name="M:OpenMetaverse.Vector3d.op_Modulus(OpenMetaverse.Vector3d,OpenMetaverse.Vector3d)"> 92 <member name="M:OpenMetaverse.Color4.#ctor(System.Byte,System.Byte,System.Byte,System.Byte)">
96 <summary> 93 <summary>
97 Cross product between two vectors
98 </summary> 94 </summary>
95 <param name="r">
96 </param>
97 <param name="g">
98 </param>
99 <param name="b">
100 </param>
101 <param name="a">
102 </param>
99 </member> 103 </member>
100 <member name="F:OpenMetaverse.Vector3d.Zero"> 104 <member name="M:OpenMetaverse.Color4.#ctor(System.Byte[],System.Int32,System.Boolean)">
101 <summary>A vector with a value of 0,0,0</summary> 105 <summary>
106 Builds a color from a byte array
107 </summary>
108 <param name="byteArray">Byte array containing a 16 byte color</param>
109 <param name="pos">Beginning position in the byte array</param>
110 <param name="inverted">True if the byte array stores inverted values,
111 otherwise false. For example the color black (fully opaque) inverted
112 would be 0xFF 0xFF 0xFF 0x00</param>
102 </member> 113 </member>
103 <member name="F:OpenMetaverse.Vector3d.One"> 114 <member name="M:OpenMetaverse.Color4.#ctor(System.Byte[],System.Int32,System.Boolean,System.Boolean)">
104 <summary>A vector with a value of 1,1,1</summary> 115 <summary>
116 Returns the raw bytes for this vector
117 </summary>
118 <param name="byteArray">Byte array containing a 16 byte color</param>
119 <param name="pos">Beginning position in the byte array</param>
120 <param name="inverted">True if the byte array stores inverted values,
121 otherwise false. For example the color black (fully opaque) inverted
122 would be 0xFF 0xFF 0xFF 0x00</param>
123 <param name="alphaInverted">True if the alpha value is inverted in
124 addition to whatever the inverted parameter is. Setting inverted true
125 and alphaInverted true will flip the alpha value back to non-inverted,
126 but keep the other color bytes inverted</param>
127 <returns>A 16 byte array containing R, G, B, and A</returns>
105 </member> 128 </member>
106 <member name="F:OpenMetaverse.Vector3d.UnitX"> 129 <member name="M:OpenMetaverse.Color4.#ctor(OpenMetaverse.Color4)">
107 <summary>A unit vector facing forward (X axis), value of 1,0,0</summary> 130 <summary>
131 Copy constructor
132 </summary>
133 <param name="color">Color to copy</param>
108 </member> 134 </member>
109 <member name="F:OpenMetaverse.Vector3d.UnitY"> 135 <member name="F:OpenMetaverse.Color4.R">
110 <summary>A unit vector facing left (Y axis), value of 0,1,0</summary> 136 <summary>Red</summary>
111 </member> 137 </member>
112 <member name="F:OpenMetaverse.Vector3d.UnitZ"> 138 <member name="F:OpenMetaverse.Color4.G">
113 <summary>A unit vector facing up (Z axis), value of 0,0,1</summary> 139 <summary>Green</summary>
140 </member>
141 <member name="F:OpenMetaverse.Color4.B">
142 <summary>Blue</summary>
143 </member>
144 <member name="F:OpenMetaverse.Color4.A">
145 <summary>Alpha</summary>
146 </member>
147 <member name="F:OpenMetaverse.Color4.Black">
148 <summary>A Color4 with zero RGB values and fully opaque (alpha 1.0)</summary>
149 </member>
150 <member name="F:OpenMetaverse.Color4.White">
151 <summary>A Color4 with full RGB values (1.0) and fully opaque (alpha 1.0)</summary>
152 </member>
153 <member name="M:OpenMetaverse.Color4.CompareTo(OpenMetaverse.Color4)">
154 <summary>
155 IComparable.CompareTo implementation
156 </summary>
157 <remarks>Sorting ends up like this: |--Grayscale--||--Color--|.
158 Alpha is only used when the colors are otherwise equivalent</remarks>
159 </member>
160 <member name="M:OpenMetaverse.Color4.FromBytes(System.Byte[],System.Int32,System.Boolean,System.Boolean)">
161 <summary>
162 Builds a color from a byte array
163 </summary>
164 <param name="byteArray">Byte array containing a 16 byte color</param>
165 <param name="pos">Beginning position in the byte array</param>
166 <param name="inverted">True if the byte array stores inverted values,
167 otherwise false. For example the color black (fully opaque) inverted
168 would be 0xFF 0xFF 0xFF 0x00</param>
169 <param name="alphaInverted">True if the alpha value is inverted in
170 addition to whatever the inverted parameter is. Setting inverted true
171 and alphaInverted true will flip the alpha value back to non-inverted,
172 but keep the other color bytes inverted</param>
173 </member>
174 <member name="M:OpenMetaverse.Color4.ToBytes(System.Byte[],System.Int32)">
175 <summary>
176 Writes the raw bytes for this color to a byte array
177 </summary>
178 <param name="dest">Destination byte array</param>
179 <param name="pos">Position in the destination array to start
180 writing. Must be at least 16 bytes before the end of the array</param>
181 </member>
182 <member name="M:OpenMetaverse.Color4.ToBytes(System.Byte[],System.Int32,System.Boolean)">
183 <summary>
184 Serializes this color into four bytes in a byte array
185 </summary>
186 <param name="dest">Destination byte array</param>
187 <param name="pos">Position in the destination array to start
188 writing. Must be at least 4 bytes before the end of the array</param>
189 <param name="inverted">True to invert the output (1.0 becomes 0
190 instead of 255)</param>
191 </member>
192 <member name="M:OpenMetaverse.Color4.ToFloatBytes(System.Byte[],System.Int32)">
193 <summary>
194 Writes the raw bytes for this color to a byte array
195 </summary>
196 <param name="dest">Destination byte array</param>
197 <param name="pos">Position in the destination array to start
198 writing. Must be at least 16 bytes before the end of the array</param>
199 </member>
200 <member name="M:OpenMetaverse.Color4.ClampValues">
201 <summary>
202 Ensures that values are in range 0-1
203 </summary>
204 </member>
205 <member name="M:OpenMetaverse.Color4.FromHSV(System.Double,System.Double,System.Double)">
206 <summary>
207 Create an RGB color from a hue, saturation, value combination
208 </summary>
209 <param name="hue">Hue</param>
210 <param name="saturation">Saturation</param>
211 <param name="value">Value</param>
212 <returns>An fully opaque RGB color (alpha is 1.0)</returns>
213 </member>
214 <member name="M:OpenMetaverse.Color4.Lerp(OpenMetaverse.Color4,OpenMetaverse.Color4,System.Single)">
215 <summary>
216 Performs linear interpolation between two colors
217 </summary>
218 <param name="value1">Color to start at</param>
219 <param name="value2">Color to end at</param>
220 <param name="amount">Amount to interpolate</param>
221 <returns>The interpolated color</returns>
114 </member> 222 </member>
115 <member name="T:OpenMetaverse.EnumInfoAttribute"> 223 <member name="T:OpenMetaverse.EnumInfoAttribute">
116 <summary> 224 <summary>
117 Attribute class that allows extra attributes to be attached to ENUMs 225 Attribute class that allows extra attributes to be attached to ENUMs
118 </summary> 226 </summary>
119 </member> 227 </member>
120 <member name="F:OpenMetaverse.EnumInfoAttribute.Text">
121 <summary>Text used when presenting ENUM to user</summary>
122 </member>
123 <member name="M:OpenMetaverse.EnumInfoAttribute.#ctor"> 228 <member name="M:OpenMetaverse.EnumInfoAttribute.#ctor">
124 <summary>Default initializer</summary> 229 <summary>Default initializer</summary>
125 </member> 230 </member>
126 <member name="M:OpenMetaverse.EnumInfoAttribute.#ctor(System.String)"> 231 <member name="M:OpenMetaverse.EnumInfoAttribute.#ctor(System.String)">
127 <summary>Text used when presenting ENUM to user</summary> 232 <summary>Text used when presenting ENUM to user</summary>
128 </member> 233 </member>
234 <member name="F:OpenMetaverse.EnumInfoAttribute.Text">
235 <summary>Text used when presenting ENUM to user</summary>
236 </member>
129 <member name="T:OpenMetaverse.AssetType"> 237 <member name="T:OpenMetaverse.AssetType">
130 <summary> 238 <summary>
131 The different types of grid assets 239 The different types of grid assets
@@ -147,11 +255,11 @@
147 <summary>Link to a location in world</summary> 255 <summary>Link to a location in world</summary>
148 </member> 256 </member>
149 <member name="F:OpenMetaverse.AssetType.Clothing"> 257 <member name="F:OpenMetaverse.AssetType.Clothing">
150 <summary>Collection of textures and parameters that can be 258 <summary>Collection of textures and parameters that can be
151 worn by an avatar</summary> 259 worn by an avatar</summary>
152 </member> 260 </member>
153 <member name="F:OpenMetaverse.AssetType.Object"> 261 <member name="F:OpenMetaverse.AssetType.Object">
154 <summary>Primitive that can contain textures, sounds, 262 <summary>Primitive that can contain textures, sounds,
155 scripts and more</summary> 263 scripts and more</summary>
156 </member> 264 </member>
157 <member name="F:OpenMetaverse.AssetType.Notecard"> 265 <member name="F:OpenMetaverse.AssetType.Notecard">
@@ -259,34 +367,42 @@
259 <summary>Notecard</summary> 367 <summary>Notecard</summary>
260 </member> 368 </member>
261 <member name="F:OpenMetaverse.InventoryType.Category"> 369 <member name="F:OpenMetaverse.InventoryType.Category">
262 <summary></summary> 370 <summary>
371 </summary>
263 </member> 372 </member>
264 <member name="F:OpenMetaverse.InventoryType.Folder"> 373 <member name="F:OpenMetaverse.InventoryType.Folder">
265 <summary>Folder</summary> 374 <summary>Folder</summary>
266 </member> 375 </member>
267 <member name="F:OpenMetaverse.InventoryType.RootCategory"> 376 <member name="F:OpenMetaverse.InventoryType.RootCategory">
268 <summary></summary> 377 <summary>
378 </summary>
269 </member> 379 </member>
270 <member name="F:OpenMetaverse.InventoryType.LSL"> 380 <member name="F:OpenMetaverse.InventoryType.LSL">
271 <summary>an LSL Script</summary> 381 <summary>an LSL Script</summary>
272 </member> 382 </member>
273 <member name="F:OpenMetaverse.InventoryType.Snapshot"> 383 <member name="F:OpenMetaverse.InventoryType.Snapshot">
274 <summary></summary> 384 <summary>
385 </summary>
275 </member> 386 </member>
276 <member name="F:OpenMetaverse.InventoryType.Attachment"> 387 <member name="F:OpenMetaverse.InventoryType.Attachment">
277 <summary></summary> 388 <summary>
389 </summary>
278 </member> 390 </member>
279 <member name="F:OpenMetaverse.InventoryType.Wearable"> 391 <member name="F:OpenMetaverse.InventoryType.Wearable">
280 <summary></summary> 392 <summary>
393 </summary>
281 </member> 394 </member>
282 <member name="F:OpenMetaverse.InventoryType.Animation"> 395 <member name="F:OpenMetaverse.InventoryType.Animation">
283 <summary></summary> 396 <summary>
397 </summary>
284 </member> 398 </member>
285 <member name="F:OpenMetaverse.InventoryType.Gesture"> 399 <member name="F:OpenMetaverse.InventoryType.Gesture">
286 <summary></summary> 400 <summary>
401 </summary>
287 </member> 402 </member>
288 <member name="F:OpenMetaverse.InventoryType.Mesh"> 403 <member name="F:OpenMetaverse.InventoryType.Mesh">
289 <summary></summary> 404 <summary>
405 </summary>
290 </member> 406 </member>
291 <member name="T:OpenMetaverse.SaleType"> 407 <member name="T:OpenMetaverse.SaleType">
292 <summary> 408 <summary>
@@ -355,107 +471,691 @@
355 <member name="F:OpenMetaverse.WearableType.Tattoo"> 471 <member name="F:OpenMetaverse.WearableType.Tattoo">
356 <summary>Tattoo</summary> 472 <summary>Tattoo</summary>
357 </member> 473 </member>
474 <member name="F:OpenMetaverse.WearableType.Physics">
475 <summary>Physics</summary>
476 </member>
358 <member name="F:OpenMetaverse.WearableType.Invalid"> 477 <member name="F:OpenMetaverse.WearableType.Invalid">
359 <summary>Invalid wearable asset</summary> 478 <summary>Invalid wearable asset</summary>
360 </member> 479 </member>
361 <member name="T:OpenMetaverse.TokenBucket"> 480 <member name="T:OpenMetaverse.PCode">
362 <summary> 481 <summary>
363 A hierarchical token bucket for bandwidth throttling. See 482 Identifier code for primitive types
364 http://en.wikipedia.org/wiki/Token_bucket for more information
365 </summary> 483 </summary>
366 </member> 484 </member>
367 <member name="F:OpenMetaverse.TokenBucket.parent"> 485 <member name="F:OpenMetaverse.PCode.None">
368 <summary>Parent bucket to this bucket, or null if this is a root 486 <summary>None</summary>
369 bucket</summary>
370 </member> 487 </member>
371 <member name="F:OpenMetaverse.TokenBucket.maxBurst"> 488 <member name="F:OpenMetaverse.PCode.Prim">
372 <summary>Size of the bucket in bytes. If zero, the bucket has 489 <summary>A Primitive</summary>
373 infinite capacity</summary>
374 </member> 490 </member>
375 <member name="F:OpenMetaverse.TokenBucket.tokensPerMS"> 491 <member name="F:OpenMetaverse.PCode.Avatar">
376 <summary>Rate that the bucket fills, in bytes per millisecond. If 492 <summary>A Avatar</summary>
377 zero, the bucket always remains full</summary>
378 </member> 493 </member>
379 <member name="F:OpenMetaverse.TokenBucket.content"> 494 <member name="F:OpenMetaverse.PCode.Grass">
380 <summary>Number of tokens currently in the bucket</summary> 495 <summary>Linden grass</summary>
381 </member> 496 </member>
382 <member name="F:OpenMetaverse.TokenBucket.lastDrip"> 497 <member name="F:OpenMetaverse.PCode.NewTree">
383 <summary>Time of the last drip, in system ticks</summary> 498 <summary>Linden tree</summary>
384 </member> 499 </member>
385 <member name="M:OpenMetaverse.TokenBucket.#ctor(OpenMetaverse.TokenBucket,System.Int32,System.Int32)"> 500 <member name="F:OpenMetaverse.PCode.ParticleSystem">
501 <summary>A primitive that acts as the source for a particle stream</summary>
502 </member>
503 <member name="F:OpenMetaverse.PCode.Tree">
504 <summary>A Linden tree</summary>
505 </member>
506 <member name="T:OpenMetaverse.PrimFlags">
386 <summary> 507 <summary>
387 Default constructor 508 Primary parameters for primitives such as Physics Enabled or Phantom
388 </summary> 509 </summary>
389 <param name="parent">Parent bucket if this is a child bucket, or
390 null if this is a root bucket</param>
391 <param name="maxBurst">Maximum size of the bucket in bytes, or
392 zero if this bucket has no maximum capacity</param>
393 <param name="dripRate">Rate that the bucket fills, in bytes per
394 second. If zero, the bucket always remains full</param>
395 </member> 510 </member>
396 <member name="M:OpenMetaverse.TokenBucket.RemoveTokens(System.Int32)"> 511 <member name="F:OpenMetaverse.PrimFlags.None">
512 <summary>Deprecated</summary>
513 </member>
514 <member name="F:OpenMetaverse.PrimFlags.Physics">
515 <summary>Whether physics are enabled for this object</summary>
516 </member>
517 <member name="F:OpenMetaverse.PrimFlags.CreateSelected">
397 <summary> 518 <summary>
398 Remove a given number of tokens from the bucket
399 </summary> 519 </summary>
400 <param name="amount">Number of tokens to remove from the bucket</param>
401 <returns>True if the requested number of tokens were removed from
402 the bucket, otherwise false</returns>
403 </member> 520 </member>
404 <member name="M:OpenMetaverse.TokenBucket.RemoveTokens(System.Int32,System.Boolean@)"> 521 <member name="F:OpenMetaverse.PrimFlags.ObjectModify">
405 <summary> 522 <summary>
406 Remove a given number of tokens from the bucket
407 </summary> 523 </summary>
408 <param name="amount">Number of tokens to remove from the bucket</param>
409 <param name="dripSucceeded">True if tokens were added to the bucket
410 during this call, otherwise false</param>
411 <returns>True if the requested number of tokens were removed from
412 the bucket, otherwise false</returns>
413 </member> 524 </member>
414 <member name="M:OpenMetaverse.TokenBucket.Drip"> 525 <member name="F:OpenMetaverse.PrimFlags.ObjectCopy">
415 <summary> 526 <summary>
416 Add tokens to the bucket over time. The number of tokens added each
417 call depends on the length of time that has passed since the last
418 call to Drip
419 </summary> 527 </summary>
420 <returns>True if tokens were added to the bucket, otherwise false</returns>
421 </member> 528 </member>
422 <member name="P:OpenMetaverse.TokenBucket.Parent"> 529 <member name="F:OpenMetaverse.PrimFlags.ObjectAnyOwner">
423 <summary> 530 <summary>
424 The parent bucket of this bucket, or null if this bucket has no
425 parent. The parent bucket will limit the aggregate bandwidth of all
426 of its children buckets
427 </summary> 531 </summary>
428 </member> 532 </member>
429 <member name="P:OpenMetaverse.TokenBucket.MaxBurst"> 533 <member name="F:OpenMetaverse.PrimFlags.ObjectYouOwner">
430 <summary> 534 <summary>
431 Maximum burst rate in bytes per second. This is the maximum number
432 of tokens that can accumulate in the bucket at any one time
433 </summary> 535 </summary>
434 </member> 536 </member>
435 <member name="P:OpenMetaverse.TokenBucket.DripRate"> 537 <member name="F:OpenMetaverse.PrimFlags.Scripted">
436 <summary> 538 <summary>
437 The speed limit of this bucket in bytes per second. This is the
438 number of tokens that are added to the bucket per second
439 </summary> 539 </summary>
440 <remarks>Tokens are added to the bucket any time
441 <seealso cref="M:OpenMetaverse.TokenBucket.RemoveTokens(System.Int32)"/> is called, at the granularity of
442 the system tick interval (typically around 15-22ms)</remarks>
443 </member> 540 </member>
444 <member name="P:OpenMetaverse.TokenBucket.Content"> 541 <member name="F:OpenMetaverse.PrimFlags.Touch">
542 <summary>Whether this object contains an active touch script</summary>
543 </member>
544 <member name="F:OpenMetaverse.PrimFlags.ObjectMove">
445 <summary> 545 <summary>
446 The number of bytes that can be sent at this moment. This is the 546 </summary>
447 current number of tokens in the bucket 547 </member>
448 <remarks>If this bucket has a parent bucket that does not have 548 <member name="F:OpenMetaverse.PrimFlags.Money">
449 enough tokens for a request, <seealso cref="M:OpenMetaverse.TokenBucket.RemoveTokens(System.Int32)"/> will 549 <summary>Whether this object can receive payments</summary>
450 return false regardless of the content of this bucket</remarks> 550 </member>
551 <member name="F:OpenMetaverse.PrimFlags.Phantom">
552 <summary>Whether this object is phantom (no collisions)</summary>
553 </member>
554 <member name="F:OpenMetaverse.PrimFlags.InventoryEmpty">
555 <summary>
556 </summary>
557 </member>
558 <member name="F:OpenMetaverse.PrimFlags.JointHinge">
559 <summary>
560 </summary>
561 </member>
562 <member name="F:OpenMetaverse.PrimFlags.JointP2P">
563 <summary>
564 </summary>
565 </member>
566 <member name="F:OpenMetaverse.PrimFlags.JointLP2P">
567 <summary>
568 </summary>
569 </member>
570 <member name="F:OpenMetaverse.PrimFlags.JointWheel">
571 <summary>Deprecated</summary>
572 </member>
573 <member name="F:OpenMetaverse.PrimFlags.AllowInventoryDrop">
574 <summary>
575 </summary>
576 </member>
577 <member name="F:OpenMetaverse.PrimFlags.ObjectTransfer">
578 <summary>
579 </summary>
580 </member>
581 <member name="F:OpenMetaverse.PrimFlags.ObjectGroupOwned">
582 <summary>
583 </summary>
584 </member>
585 <member name="F:OpenMetaverse.PrimFlags.ObjectYouOfficer">
586 <summary>Deprecated</summary>
587 </member>
588 <member name="F:OpenMetaverse.PrimFlags.CameraDecoupled">
589 <summary>
590 </summary>
591 </member>
592 <member name="F:OpenMetaverse.PrimFlags.AnimSource">
593 <summary>
594 </summary>
595 </member>
596 <member name="F:OpenMetaverse.PrimFlags.CameraSource">
597 <summary>
598 </summary>
599 </member>
600 <member name="F:OpenMetaverse.PrimFlags.CastShadows">
601 <summary>
602 </summary>
603 </member>
604 <member name="F:OpenMetaverse.PrimFlags.DieAtEdge">
605 <summary>Server flag, will not be sent to clients. Specifies that
606 the object is destroyed when it touches a simulator edge</summary>
607 </member>
608 <member name="F:OpenMetaverse.PrimFlags.ReturnAtEdge">
609 <summary>Server flag, will not be sent to clients. Specifies that
610 the object will be returned to the owner's inventory when it
611 touches a simulator edge</summary>
612 </member>
613 <member name="F:OpenMetaverse.PrimFlags.Sandbox">
614 <summary>Server flag, will not be sent to clients.</summary>
615 </member>
616 <member name="F:OpenMetaverse.PrimFlags.Flying">
617 <summary>Server flag, will not be sent to client. Specifies that
618 the object is hovering/flying</summary>
619 </member>
620 <member name="F:OpenMetaverse.PrimFlags.ObjectOwnerModify">
621 <summary>
622 </summary>
623 </member>
624 <member name="F:OpenMetaverse.PrimFlags.TemporaryOnRez">
625 <summary>
626 </summary>
627 </member>
628 <member name="F:OpenMetaverse.PrimFlags.Temporary">
629 <summary>
630 </summary>
631 </member>
632 <member name="F:OpenMetaverse.PrimFlags.ZlibCompressed">
633 <summary>
634 </summary>
635 </member>
636 <member name="T:OpenMetaverse.SoundFlags">
637 <summary>
638 Sound flags for sounds attached to primitives
639 </summary>
640 </member>
641 <member name="F:OpenMetaverse.SoundFlags.None">
642 <summary>
643 </summary>
644 </member>
645 <member name="F:OpenMetaverse.SoundFlags.Loop">
646 <summary>
647 </summary>
648 </member>
649 <member name="F:OpenMetaverse.SoundFlags.SyncMaster">
650 <summary>
651 </summary>
652 </member>
653 <member name="F:OpenMetaverse.SoundFlags.SyncSlave">
654 <summary>
655 </summary>
656 </member>
657 <member name="F:OpenMetaverse.SoundFlags.SyncPending">
658 <summary>
659 </summary>
660 </member>
661 <member name="F:OpenMetaverse.SoundFlags.Queue">
662 <summary>
663 </summary>
664 </member>
665 <member name="F:OpenMetaverse.SoundFlags.Stop">
666 <summary>
667 </summary>
668 </member>
669 <member name="T:OpenMetaverse.Material">
670 <summary>
671 Material type for a primitive
672 </summary>
673 </member>
674 <member name="F:OpenMetaverse.Material.Stone">
675 <summary>
676 </summary>
677 </member>
678 <member name="F:OpenMetaverse.Material.Metal">
679 <summary>
680 </summary>
681 </member>
682 <member name="F:OpenMetaverse.Material.Glass">
683 <summary>
684 </summary>
685 </member>
686 <member name="F:OpenMetaverse.Material.Wood">
687 <summary>
688 </summary>
689 </member>
690 <member name="F:OpenMetaverse.Material.Flesh">
691 <summary>
692 </summary>
693 </member>
694 <member name="F:OpenMetaverse.Material.Plastic">
695 <summary>
696 </summary>
697 </member>
698 <member name="F:OpenMetaverse.Material.Rubber">
699 <summary>
700 </summary>
701 </member>
702 <member name="F:OpenMetaverse.Material.Light">
703 <summary>
704 </summary>
705 </member>
706 <member name="T:OpenMetaverse.PrimType">
707 <summary>
708 Used in a helper function to roughly determine prim shape
709 </summary>
710 </member>
711 <member name="T:OpenMetaverse.ExtraParamType">
712 <summary>
713 Extra parameters for primitives, these flags are for features that have
714 been added after the original ObjectFlags that has all eight bits
715 reserved already
716 </summary>
717 </member>
718 <member name="F:OpenMetaverse.ExtraParamType.Flexible">
719 <summary>Whether this object has flexible parameters</summary>
720 </member>
721 <member name="F:OpenMetaverse.ExtraParamType.Light">
722 <summary>Whether this object has light parameters</summary>
723 </member>
724 <member name="F:OpenMetaverse.ExtraParamType.Sculpt">
725 <summary>Whether this object is a sculpted prim</summary>
726 </member>
727 <member name="F:OpenMetaverse.ExtraParamType.Mesh">
728 <summary>Whether this object is a mesh</summary>
729 </member>
730 <member name="T:OpenMetaverse.JointType">
731 <summary>
732 </summary>
733 </member>
734 <member name="F:OpenMetaverse.JointType.Invalid">
735 <summary>
736 </summary>
737 </member>
738 <member name="F:OpenMetaverse.JointType.Hinge">
739 <summary>
740 </summary>
741 </member>
742 <member name="F:OpenMetaverse.JointType.Point">
743 <summary>
744 </summary>
745 </member>
746 <member name="T:OpenMetaverse.SculptType">
747 <summary>
748 </summary>
749 </member>
750 <member name="F:OpenMetaverse.SculptType.None">
751 <summary>
752 </summary>
753 </member>
754 <member name="F:OpenMetaverse.SculptType.Sphere">
755 <summary>
756 </summary>
757 </member>
758 <member name="F:OpenMetaverse.SculptType.Torus">
759 <summary>
760 </summary>
761 </member>
762 <member name="F:OpenMetaverse.SculptType.Plane">
763 <summary>
764 </summary>
765 </member>
766 <member name="F:OpenMetaverse.SculptType.Cylinder">
767 <summary>
768 </summary>
769 </member>
770 <member name="F:OpenMetaverse.SculptType.Mesh">
771 <summary>
772 </summary>
773 </member>
774 <member name="F:OpenMetaverse.SculptType.Invert">
775 <summary>
776 </summary>
777 </member>
778 <member name="F:OpenMetaverse.SculptType.Mirror">
779 <summary>
780 </summary>
781 </member>
782 <member name="T:OpenMetaverse.FaceType">
783 <summary>
784 </summary>
785 </member>
786 <member name="F:OpenMetaverse.FaceType.PathBegin">
787 <summary>
788 </summary>
789 </member>
790 <member name="F:OpenMetaverse.FaceType.PathEnd">
791 <summary>
792 </summary>
793 </member>
794 <member name="F:OpenMetaverse.FaceType.InnerSide">
795 <summary>
796 </summary>
797 </member>
798 <member name="F:OpenMetaverse.FaceType.ProfileBegin">
799 <summary>
800 </summary>
801 </member>
802 <member name="F:OpenMetaverse.FaceType.ProfileEnd">
803 <summary>
804 </summary>
805 </member>
806 <member name="F:OpenMetaverse.FaceType.OuterSide0">
807 <summary>
808 </summary>
809 </member>
810 <member name="F:OpenMetaverse.FaceType.OuterSide1">
811 <summary>
812 </summary>
813 </member>
814 <member name="F:OpenMetaverse.FaceType.OuterSide2">
815 <summary>
816 </summary>
817 </member>
818 <member name="F:OpenMetaverse.FaceType.OuterSide3">
819 <summary>
820 </summary>
821 </member>
822 <member name="T:OpenMetaverse.ObjectCategory">
823 <summary>
824 </summary>
825 </member>
826 <member name="F:OpenMetaverse.ObjectCategory.Invalid">
827 <summary>
828 </summary>
829 </member>
830 <member name="F:OpenMetaverse.ObjectCategory.None">
831 <summary>
832 </summary>
833 </member>
834 <member name="F:OpenMetaverse.ObjectCategory.Owner">
835 <summary>
836 </summary>
837 </member>
838 <member name="F:OpenMetaverse.ObjectCategory.Group">
839 <summary>
840 </summary>
841 </member>
842 <member name="F:OpenMetaverse.ObjectCategory.Other">
843 <summary>
844 </summary>
845 </member>
846 <member name="F:OpenMetaverse.ObjectCategory.Selected">
847 <summary>
848 </summary>
849 </member>
850 <member name="F:OpenMetaverse.ObjectCategory.Temporary">
851 <summary>
852 </summary>
853 </member>
854 <member name="T:OpenMetaverse.AttachmentPoint">
855 <summary>
856 Attachment points for objects on avatar bodies
857 </summary>
858 <remarks>
859 Both InventoryObject and InventoryAttachment types can be attached
860 </remarks>
861 </member>
862 <member name="F:OpenMetaverse.AttachmentPoint.Default">
863 <summary>Right hand if object was not previously attached</summary>
864 </member>
865 <member name="F:OpenMetaverse.AttachmentPoint.Chest">
866 <summary>Chest</summary>
867 </member>
868 <member name="F:OpenMetaverse.AttachmentPoint.Skull">
869 <summary>Skull</summary>
870 </member>
871 <member name="F:OpenMetaverse.AttachmentPoint.LeftShoulder">
872 <summary>Left shoulder</summary>
873 </member>
874 <member name="F:OpenMetaverse.AttachmentPoint.RightShoulder">
875 <summary>Right shoulder</summary>
876 </member>
877 <member name="F:OpenMetaverse.AttachmentPoint.LeftHand">
878 <summary>Left hand</summary>
879 </member>
880 <member name="F:OpenMetaverse.AttachmentPoint.RightHand">
881 <summary>Right hand</summary>
882 </member>
883 <member name="F:OpenMetaverse.AttachmentPoint.LeftFoot">
884 <summary>Left foot</summary>
885 </member>
886 <member name="F:OpenMetaverse.AttachmentPoint.RightFoot">
887 <summary>Right foot</summary>
888 </member>
889 <member name="F:OpenMetaverse.AttachmentPoint.Spine">
890 <summary>Spine</summary>
891 </member>
892 <member name="F:OpenMetaverse.AttachmentPoint.Pelvis">
893 <summary>Pelvis</summary>
894 </member>
895 <member name="F:OpenMetaverse.AttachmentPoint.Mouth">
896 <summary>Mouth</summary>
897 </member>
898 <member name="F:OpenMetaverse.AttachmentPoint.Chin">
899 <summary>Chin</summary>
900 </member>
901 <member name="F:OpenMetaverse.AttachmentPoint.LeftEar">
902 <summary>Left ear</summary>
903 </member>
904 <member name="F:OpenMetaverse.AttachmentPoint.RightEar">
905 <summary>Right ear</summary>
906 </member>
907 <member name="F:OpenMetaverse.AttachmentPoint.LeftEyeball">
908 <summary>Left eyeball</summary>
909 </member>
910 <member name="F:OpenMetaverse.AttachmentPoint.RightEyeball">
911 <summary>Right eyeball</summary>
912 </member>
913 <member name="F:OpenMetaverse.AttachmentPoint.Nose">
914 <summary>Nose</summary>
915 </member>
916 <member name="F:OpenMetaverse.AttachmentPoint.RightUpperArm">
917 <summary>Right upper arm</summary>
918 </member>
919 <member name="F:OpenMetaverse.AttachmentPoint.RightForearm">
920 <summary>Right forearm</summary>
921 </member>
922 <member name="F:OpenMetaverse.AttachmentPoint.LeftUpperArm">
923 <summary>Left upper arm</summary>
924 </member>
925 <member name="F:OpenMetaverse.AttachmentPoint.LeftForearm">
926 <summary>Left forearm</summary>
927 </member>
928 <member name="F:OpenMetaverse.AttachmentPoint.RightHip">
929 <summary>Right hip</summary>
930 </member>
931 <member name="F:OpenMetaverse.AttachmentPoint.RightUpperLeg">
932 <summary>Right upper leg</summary>
933 </member>
934 <member name="F:OpenMetaverse.AttachmentPoint.RightLowerLeg">
935 <summary>Right lower leg</summary>
936 </member>
937 <member name="F:OpenMetaverse.AttachmentPoint.LeftHip">
938 <summary>Left hip</summary>
939 </member>
940 <member name="F:OpenMetaverse.AttachmentPoint.LeftUpperLeg">
941 <summary>Left upper leg</summary>
942 </member>
943 <member name="F:OpenMetaverse.AttachmentPoint.LeftLowerLeg">
944 <summary>Left lower leg</summary>
945 </member>
946 <member name="F:OpenMetaverse.AttachmentPoint.Stomach">
947 <summary>Stomach</summary>
948 </member>
949 <member name="F:OpenMetaverse.AttachmentPoint.LeftPec">
950 <summary>Left pectoral</summary>
951 </member>
952 <member name="F:OpenMetaverse.AttachmentPoint.RightPec">
953 <summary>Right pectoral</summary>
954 </member>
955 <member name="F:OpenMetaverse.AttachmentPoint.HUDCenter2">
956 <summary>HUD Center position 2</summary>
957 </member>
958 <member name="F:OpenMetaverse.AttachmentPoint.HUDTopRight">
959 <summary>HUD Top-right</summary>
960 </member>
961 <member name="F:OpenMetaverse.AttachmentPoint.HUDTop">
962 <summary>HUD Top</summary>
963 </member>
964 <member name="F:OpenMetaverse.AttachmentPoint.HUDTopLeft">
965 <summary>HUD Top-left</summary>
966 </member>
967 <member name="F:OpenMetaverse.AttachmentPoint.HUDCenter">
968 <summary>HUD Center</summary>
969 </member>
970 <member name="F:OpenMetaverse.AttachmentPoint.HUDBottomLeft">
971 <summary>HUD Bottom-left</summary>
972 </member>
973 <member name="F:OpenMetaverse.AttachmentPoint.HUDBottom">
974 <summary>HUD Bottom</summary>
975 </member>
976 <member name="F:OpenMetaverse.AttachmentPoint.HUDBottomRight">
977 <summary>HUD Bottom-right</summary>
978 </member>
979 <member name="T:OpenMetaverse.Tree">
980 <summary>
981 Tree foliage types
982 </summary>
983 </member>
984 <member name="F:OpenMetaverse.Tree.Pine1">
985 <summary>Pine1 tree</summary>
986 </member>
987 <member name="F:OpenMetaverse.Tree.Oak">
988 <summary>Oak tree</summary>
989 </member>
990 <member name="F:OpenMetaverse.Tree.TropicalBush1">
991 <summary>Tropical Bush1</summary>
992 </member>
993 <member name="F:OpenMetaverse.Tree.Palm1">
994 <summary>Palm1 tree</summary>
995 </member>
996 <member name="F:OpenMetaverse.Tree.Dogwood">
997 <summary>Dogwood tree</summary>
998 </member>
999 <member name="F:OpenMetaverse.Tree.TropicalBush2">
1000 <summary>Tropical Bush2</summary>
1001 </member>
1002 <member name="F:OpenMetaverse.Tree.Palm2">
1003 <summary>Palm2 tree</summary>
1004 </member>
1005 <member name="F:OpenMetaverse.Tree.Cypress1">
1006 <summary>Cypress1 tree</summary>
1007 </member>
1008 <member name="F:OpenMetaverse.Tree.Cypress2">
1009 <summary>Cypress2 tree</summary>
1010 </member>
1011 <member name="F:OpenMetaverse.Tree.Pine2">
1012 <summary>Pine2 tree</summary>
1013 </member>
1014 <member name="F:OpenMetaverse.Tree.Plumeria">
1015 <summary>Plumeria</summary>
1016 </member>
1017 <member name="F:OpenMetaverse.Tree.WinterPine1">
1018 <summary>Winter pinetree1</summary>
1019 </member>
1020 <member name="F:OpenMetaverse.Tree.WinterAspen">
1021 <summary>Winter Aspen tree</summary>
1022 </member>
1023 <member name="F:OpenMetaverse.Tree.WinterPine2">
1024 <summary>Winter pinetree2</summary>
1025 </member>
1026 <member name="F:OpenMetaverse.Tree.Eucalyptus">
1027 <summary>Eucalyptus tree</summary>
1028 </member>
1029 <member name="F:OpenMetaverse.Tree.Fern">
1030 <summary>Fern</summary>
1031 </member>
1032 <member name="F:OpenMetaverse.Tree.Eelgrass">
1033 <summary>Eelgrass</summary>
1034 </member>
1035 <member name="F:OpenMetaverse.Tree.SeaSword">
1036 <summary>Sea Sword</summary>
1037 </member>
1038 <member name="F:OpenMetaverse.Tree.Kelp1">
1039 <summary>Kelp1 plant</summary>
1040 </member>
1041 <member name="F:OpenMetaverse.Tree.BeachGrass1">
1042 <summary>Beach grass</summary>
1043 </member>
1044 <member name="F:OpenMetaverse.Tree.Kelp2">
1045 <summary>Kelp2 plant</summary>
1046 </member>
1047 <member name="T:OpenMetaverse.Grass">
1048 <summary>
1049 Grass foliage types
1050 </summary>
1051 </member>
1052 <member name="F:OpenMetaverse.Grass.Grass0">
1053 <summary>
1054 </summary>
1055 </member>
1056 <member name="F:OpenMetaverse.Grass.Grass1">
1057 <summary>
1058 </summary>
1059 </member>
1060 <member name="F:OpenMetaverse.Grass.Grass2">
1061 <summary>
1062 </summary>
1063 </member>
1064 <member name="F:OpenMetaverse.Grass.Grass3">
1065 <summary>
1066 </summary>
1067 </member>
1068 <member name="F:OpenMetaverse.Grass.Grass4">
1069 <summary>
1070 </summary>
1071 </member>
1072 <member name="F:OpenMetaverse.Grass.Undergrowth1">
1073 <summary>
1074 </summary>
1075 </member>
1076 <member name="T:OpenMetaverse.ClickAction">
1077 <summary>
1078 Action associated with clicking on an object
1079 </summary>
1080 </member>
1081 <member name="F:OpenMetaverse.ClickAction.Touch">
1082 <summary>Touch object</summary>
1083 </member>
1084 <member name="F:OpenMetaverse.ClickAction.Sit">
1085 <summary>Sit on object</summary>
1086 </member>
1087 <member name="F:OpenMetaverse.ClickAction.Buy">
1088 <summary>Purchase object or contents</summary>
1089 </member>
1090 <member name="F:OpenMetaverse.ClickAction.Pay">
1091 <summary>Pay the object</summary>
1092 </member>
1093 <member name="F:OpenMetaverse.ClickAction.OpenTask">
1094 <summary>Open task inventory</summary>
1095 </member>
1096 <member name="F:OpenMetaverse.ClickAction.PlayMedia">
1097 <summary>Play parcel media</summary>
1098 </member>
1099 <member name="F:OpenMetaverse.ClickAction.OpenMedia">
1100 <summary>Open parcel media</summary>
1101 </member>
1102 <member name="T:OpenMetaverse.PhysicsShapeType">
1103 <summary>
1104 Type of physics representation used for this prim in the simulator
1105 </summary>
1106 </member>
1107 <member name="F:OpenMetaverse.PhysicsShapeType.Prim">
1108 <summary>Use prim physics form this object</summary>
1109 </member>
1110 <member name="F:OpenMetaverse.PhysicsShapeType.None">
1111 <summary>No physics, prim doesn't collide</summary>
1112 </member>
1113 <member name="F:OpenMetaverse.PhysicsShapeType.ConvexHull">
1114 <summary>Use convex hull represantion of this prim</summary>
1115 </member>
1116 <member name="F:OpenMetaverse.ExpiringCache`2.syncRoot">
1117 <summary>For thread safety</summary>
1118 </member>
1119 <member name="F:OpenMetaverse.ExpiringCache`2.isPurging">
1120 <summary>For thread safety</summary>
1121 </member>
1122 <member name="M:OpenMetaverse.ExpiringCache`2.PurgeCache(System.Object,System.Timers.ElapsedEventArgs)">
1123 <summary>
1124 Purges expired objects from the cache. Called automatically by the purge timer.
451 </summary> 1125 </summary>
452 </member> 1126 </member>
453 <member name="T:OpenMetaverse.LocklessQueue`1"> 1127 <member name="T:OpenMetaverse.LocklessQueue`1">
454 <summary> 1128 <summary>
455 A thread-safe lockless queue that supports multiple readers and 1129 A thread-safe lockless queue that supports multiple readers and
456 multiple writers 1130 multiple writers
457 </summary> 1131 </summary>
458 </member> 1132 </member>
1133 <member name="M:OpenMetaverse.LocklessQueue`1.#ctor">
1134 <summary>
1135 Constructor
1136 </summary>
1137 </member>
1138 <member name="T:OpenMetaverse.LocklessQueue`1.SingleLinkNode">
1139 <summary>
1140 Provides a node container for data in a singly linked list
1141 </summary>
1142 </member>
1143 <member name="M:OpenMetaverse.LocklessQueue`1.SingleLinkNode.#ctor">
1144 <summary>
1145 Constructor
1146 </summary>
1147 </member>
1148 <member name="M:OpenMetaverse.LocklessQueue`1.SingleLinkNode.#ctor(`0)">
1149 <summary>
1150 Constructor
1151 </summary>
1152 </member>
1153 <member name="F:OpenMetaverse.LocklessQueue`1.SingleLinkNode.Next">
1154 <summary>Pointer to the next node in list</summary>
1155 </member>
1156 <member name="F:OpenMetaverse.LocklessQueue`1.SingleLinkNode.Item">
1157 <summary>The data contained by the node</summary>
1158 </member>
459 <member name="F:OpenMetaverse.LocklessQueue`1.head"> 1159 <member name="F:OpenMetaverse.LocklessQueue`1.head">
460 <summary>Queue head</summary> 1160 <summary>Queue head</summary>
461 </member> 1161 </member>
@@ -465,10 +1165,10 @@
465 <member name="F:OpenMetaverse.LocklessQueue`1.count"> 1165 <member name="F:OpenMetaverse.LocklessQueue`1.count">
466 <summary>Queue item count</summary> 1166 <summary>Queue item count</summary>
467 </member> 1167 </member>
468 <member name="M:OpenMetaverse.LocklessQueue`1.#ctor"> 1168 <member name="P:OpenMetaverse.LocklessQueue`1.Count">
469 <summary> 1169 <summary>Gets the current number of items in the queue. Since this
470 Constructor 1170 is a lockless collection this value should be treated as a close
471 </summary> 1171 estimate</summary>
472 </member> 1172 </member>
473 <member name="M:OpenMetaverse.LocklessQueue`1.Enqueue(`0)"> 1173 <member name="M:OpenMetaverse.LocklessQueue`1.Enqueue(`0)">
474 <summary> 1174 <summary>
@@ -483,168 +1183,228 @@
483 <param name="item">Dequeued item if the dequeue was successful</param> 1183 <param name="item">Dequeued item if the dequeue was successful</param>
484 <returns>True if an item was successfully deqeued, otherwise false</returns> 1184 <returns>True if an item was successfully deqeued, otherwise false</returns>
485 </member> 1185 </member>
486 <member name="P:OpenMetaverse.LocklessQueue`1.Count"> 1186 <member name="F:OpenMetaverse.Matrix4.Zero">
487 <summary>Gets the current number of items in the queue. Since this 1187 <summary>A 4x4 matrix containing all zeroes</summary>
488 is a lockless collection this value should be treated as a close
489 estimate</summary>
490 </member> 1188 </member>
491 <member name="T:OpenMetaverse.LocklessQueue`1.SingleLinkNode"> 1189 <member name="F:OpenMetaverse.Matrix4.Identity">
1190 <summary>A 4x4 identity matrix</summary>
1191 </member>
1192 <member name="M:OpenMetaverse.Matrix4.GetEulerAngles(System.Single@,System.Single@,System.Single@)">
492 <summary> 1193 <summary>
493 Provides a node container for data in a singly linked list 1194 Convert this matrix to euler rotations
494 </summary> 1195 </summary>
1196 <param name="roll">X euler angle</param>
1197 <param name="pitch">Y euler angle</param>
1198 <param name="yaw">Z euler angle</param>
495 </member> 1199 </member>
496 <member name="F:OpenMetaverse.LocklessQueue`1.SingleLinkNode.Next"> 1200 <member name="M:OpenMetaverse.Matrix4.GetQuaternion">
497 <summary>Pointer to the next node in list</summary> 1201 <summary>
1202 Convert this matrix to a quaternion rotation
1203 </summary>
1204 <returns>A quaternion representation of this rotation matrix</returns>
498 </member> 1205 </member>
499 <member name="F:OpenMetaverse.LocklessQueue`1.SingleLinkNode.Item"> 1206 <member name="M:OpenMetaverse.Matrix4.CreateFromEulers(System.Single,System.Single,System.Single)">
500 <summary>The data contained by the node</summary> 1207 <summary>
1208 Construct a matrix from euler rotation values in radians
1209 </summary>
1210 <param name="roll">X euler angle in radians</param>
1211 <param name="pitch">Y euler angle in radians</param>
1212 <param name="yaw">Z euler angle in radians</param>
501 </member> 1213 </member>
502 <member name="M:OpenMetaverse.LocklessQueue`1.SingleLinkNode.#ctor"> 1214 <member name="M:OpenMetaverse.Matrix4.ToString">
503 <summary> 1215 <summary>
504 Constructor 1216 Get a formatted string representation of the vector
505 </summary> 1217 </summary>
1218 <returns>A string representation of the vector</returns>
506 </member> 1219 </member>
507 <member name="M:OpenMetaverse.LocklessQueue`1.SingleLinkNode.#ctor(`0)"> 1220 <member name="T:OpenMetaverse.Parallel">
508 <summary> 1221 <summary>
509 Constructor 1222 Provides helper methods for parallelizing loops
510 </summary> 1223 </summary>
511 </member> 1224 </member>
512 <member name="T:OpenMetaverse.Color4"> 1225 <member name="M:OpenMetaverse.Parallel.For(System.Int32,System.Int32,System.Action{System.Int32})">
513 <summary> 1226 <summary>
514 An 8-bit color structure including an alpha channel 1227 Executes a for loop in which iterations may run in parallel
515 </summary> 1228 </summary>
1229 <param name="fromInclusive">The loop will be started at this index</param>
1230 <param name="toExclusive">The loop will be terminated before this index is reached</param>
1231 <param name="body">Method body to run for each iteration of the loop</param>
516 </member> 1232 </member>
517 <member name="F:OpenMetaverse.Color4.R"> 1233 <member name="M:OpenMetaverse.Parallel.For(System.Int32,System.Int32,System.Int32,System.Action{System.Int32})">
518 <summary>Red</summary> 1234 <summary>
1235 Executes a for loop in which iterations may run in parallel
1236 </summary>
1237 <param name="threadCount">The number of concurrent execution threads to run</param>
1238 <param name="fromInclusive">The loop will be started at this index</param>
1239 <param name="toExclusive">The loop will be terminated before this index is reached</param>
1240 <param name="body">Method body to run for each iteration of the loop</param>
519 </member> 1241 </member>
520 <member name="F:OpenMetaverse.Color4.G"> 1242 <member name="M:OpenMetaverse.Parallel.ForEach``1(System.Collections.Generic.IEnumerable{``0},System.Action{``0})">
521 <summary>Green</summary> 1243 <summary>
1244 Executes a foreach loop in which iterations may run in parallel
1245 </summary>
1246 <typeparam name="T">Object type that the collection wraps</typeparam>
1247 <param name="enumerable">An enumerable collection to iterate over</param>
1248 <param name="body">Method body to run for each object in the collection</param>
522 </member> 1249 </member>
523 <member name="F:OpenMetaverse.Color4.B"> 1250 <member name="M:OpenMetaverse.Parallel.ForEach``1(System.Int32,System.Collections.Generic.IEnumerable{``0},System.Action{``0})">
524 <summary>Blue</summary> 1251 <summary>
1252 Executes a foreach loop in which iterations may run in parallel
1253 </summary>
1254 <typeparam name="T">Object type that the collection wraps</typeparam>
1255 <param name="threadCount">The number of concurrent execution threads to run</param>
1256 <param name="enumerable">An enumerable collection to iterate over</param>
1257 <param name="body">Method body to run for each object in the collection</param>
525 </member> 1258 </member>
526 <member name="F:OpenMetaverse.Color4.A"> 1259 <member name="M:OpenMetaverse.Parallel.Invoke(System.Action[])">
527 <summary>Alpha</summary> 1260 <summary>
1261 Executes a series of tasks in parallel
1262 </summary>
1263 <param name="actions">A series of method bodies to execute</param>
528 </member> 1264 </member>
529 <member name="M:OpenMetaverse.Color4.#ctor(System.Byte,System.Byte,System.Byte,System.Byte)"> 1265 <member name="M:OpenMetaverse.Parallel.Invoke(System.Int32,System.Action[])">
530 <summary> 1266 <summary>
531 1267 Executes a series of tasks in parallel
532 </summary> 1268 </summary>
533 <param name="r"></param> 1269 <param name="threadCount">The number of concurrent execution threads to run</param>
534 <param name="g"></param> 1270 <param name="actions">A series of method bodies to execute</param>
535 <param name="b"></param>
536 <param name="a"></param>
537 </member> 1271 </member>
538 <member name="M:OpenMetaverse.Color4.#ctor(System.Byte[],System.Int32,System.Boolean)"> 1272 <member name="M:OpenMetaverse.Quaternion.#ctor(System.Single,System.Single,System.Single)">
539 <summary> 1273 <summary>
540 Builds a color from a byte array 1274 Build a quaternion from normalized float values
541 </summary> 1275 </summary>
542 <param name="byteArray">Byte array containing a 16 byte color</param> 1276 <param name="x">X value from -1.0 to 1.0</param>
543 <param name="pos">Beginning position in the byte array</param> 1277 <param name="y">Y value from -1.0 to 1.0</param>
544 <param name="inverted">True if the byte array stores inverted values, 1278 <param name="z">Z value from -1.0 to 1.0</param>
545 otherwise false. For example the color black (fully opaque) inverted
546 would be 0xFF 0xFF 0xFF 0x00</param>
547 </member> 1279 </member>
548 <member name="M:OpenMetaverse.Color4.#ctor(System.Byte[],System.Int32,System.Boolean,System.Boolean)"> 1280 <member name="M:OpenMetaverse.Quaternion.#ctor(System.Byte[],System.Int32,System.Boolean)">
549 <summary> 1281 <summary>
550 Returns the raw bytes for this vector 1282 Constructor, builds a quaternion object from a byte array
551 </summary> 1283 </summary>
552 <param name="byteArray">Byte array containing a 16 byte color</param> 1284 <param name="byteArray">Byte array containing four four-byte floats</param>
553 <param name="pos">Beginning position in the byte array</param> 1285 <param name="pos">Offset in the byte array to start reading at</param>
554 <param name="inverted">True if the byte array stores inverted values, 1286 <param name="normalized">Whether the source data is normalized or
555 otherwise false. For example the color black (fully opaque) inverted 1287 not. If this is true 12 bytes will be read, otherwise 16 bytes will
556 would be 0xFF 0xFF 0xFF 0x00</param> 1288 be read.</param>
557 <param name="alphaInverted">True if the alpha value is inverted in
558 addition to whatever the inverted parameter is. Setting inverted true
559 and alphaInverted true will flip the alpha value back to non-inverted,
560 but keep the other color bytes inverted</param>
561 <returns>A 16 byte array containing R, G, B, and A</returns>
562 </member> 1289 </member>
563 <member name="M:OpenMetaverse.Color4.#ctor(OpenMetaverse.Color4)"> 1290 <member name="F:OpenMetaverse.Quaternion.X">
1291 <summary>X value</summary>
1292 </member>
1293 <member name="F:OpenMetaverse.Quaternion.Y">
1294 <summary>Y value</summary>
1295 </member>
1296 <member name="F:OpenMetaverse.Quaternion.Z">
1297 <summary>Z value</summary>
1298 </member>
1299 <member name="F:OpenMetaverse.Quaternion.W">
1300 <summary>W value</summary>
1301 </member>
1302 <member name="F:OpenMetaverse.Quaternion.Identity">
1303 <summary>A quaternion with a value of 0,0,0,1</summary>
1304 </member>
1305 <member name="M:OpenMetaverse.Quaternion.Normalize">
564 <summary> 1306 <summary>
565 Copy constructor 1307 Normalizes the quaternion
566 </summary> 1308 </summary>
567 <param name="color">Color to copy</param>
568 </member> 1309 </member>
569 <member name="M:OpenMetaverse.Color4.CompareTo(OpenMetaverse.Color4)"> 1310 <member name="M:OpenMetaverse.Quaternion.FromBytes(System.Byte[],System.Int32,System.Boolean)">
570 <summary> 1311 <summary>
571 IComparable.CompareTo implementation 1312 Builds a quaternion object from a byte array
572 </summary> 1313 </summary>
573 <remarks>Sorting ends up like this: |--Grayscale--||--Color--|. 1314 <param name="byteArray">The source byte array</param>
574 Alpha is only used when the colors are otherwise equivalent</remarks> 1315 <param name="pos">Offset in the byte array to start reading at</param>
1316 <param name="normalized">Whether the source data is normalized or
1317 not. If this is true 12 bytes will be read, otherwise 16 bytes will
1318 be read.</param>
575 </member> 1319 </member>
576 <member name="M:OpenMetaverse.Color4.FromBytes(System.Byte[],System.Int32,System.Boolean,System.Boolean)"> 1320 <member name="M:OpenMetaverse.Quaternion.GetBytes">
577 <summary> 1321 <summary>
578 Builds a color from a byte array 1322 Normalize this quaternion and serialize it to a byte array
579 </summary> 1323 </summary>
580 <param name="byteArray">Byte array containing a 16 byte color</param> 1324 <returns>A 12 byte array containing normalized X, Y, and Z floating
581 <param name="pos">Beginning position in the byte array</param> 1325 point values in order using little endian byte ordering</returns>
582 <param name="inverted">True if the byte array stores inverted values,
583 otherwise false. For example the color black (fully opaque) inverted
584 would be 0xFF 0xFF 0xFF 0x00</param>
585 <param name="alphaInverted">True if the alpha value is inverted in
586 addition to whatever the inverted parameter is. Setting inverted true
587 and alphaInverted true will flip the alpha value back to non-inverted,
588 but keep the other color bytes inverted</param>
589 </member> 1326 </member>
590 <member name="M:OpenMetaverse.Color4.ToBytes(System.Byte[],System.Int32)"> 1327 <member name="M:OpenMetaverse.Quaternion.ToBytes(System.Byte[],System.Int32)">
591 <summary> 1328 <summary>
592 Writes the raw bytes for this color to a byte array 1329 Writes the raw bytes for this quaternion to a byte array
593 </summary> 1330 </summary>
594 <param name="dest">Destination byte array</param> 1331 <param name="dest">Destination byte array</param>
595 <param name="pos">Position in the destination array to start 1332 <param name="pos">Position in the destination array to start
596 writing. Must be at least 16 bytes before the end of the array</param> 1333 writing. Must be at least 12 bytes before the end of the array</param>
597 </member> 1334 </member>
598 <member name="M:OpenMetaverse.Color4.ToBytes(System.Byte[],System.Int32,System.Boolean)"> 1335 <member name="M:OpenMetaverse.Quaternion.GetEulerAngles(System.Single@,System.Single@,System.Single@)">
599 <summary> 1336 <summary>
600 Serializes this color into four bytes in a byte array 1337 Convert this quaternion to euler angles
601 </summary> 1338 </summary>
602 <param name="dest">Destination byte array</param> 1339 <param name="roll">X euler angle</param>
603 <param name="pos">Position in the destination array to start 1340 <param name="pitch">Y euler angle</param>
604 writing. Must be at least 4 bytes before the end of the array</param> 1341 <param name="yaw">Z euler angle</param>
605 <param name="inverted">True to invert the output (1.0 becomes 0
606 instead of 255)</param>
607 </member> 1342 </member>
608 <member name="M:OpenMetaverse.Color4.ToFloatBytes(System.Byte[],System.Int32)"> 1343 <member name="M:OpenMetaverse.Quaternion.GetAxisAngle(OpenMetaverse.Vector3@,System.Single@)">
609 <summary> 1344 <summary>
610 Writes the raw bytes for this color to a byte array 1345 Convert this quaternion to an angle around an axis
611 </summary> 1346 </summary>
612 <param name="dest">Destination byte array</param> 1347 <param name="axis">Unit vector describing the axis</param>
613 <param name="pos">Position in the destination array to start 1348 <param name="angle">Angle around the axis, in radians</param>
614 writing. Must be at least 16 bytes before the end of the array</param>
615 </member> 1349 </member>
616 <member name="M:OpenMetaverse.Color4.ClampValues"> 1350 <member name="M:OpenMetaverse.Quaternion.Conjugate(OpenMetaverse.Quaternion)">
617 <summary> 1351 <summary>
618 Ensures that values are in range 0-1 1352 Returns the conjugate (spatial inverse) of a quaternion
619 </summary> 1353 </summary>
620 </member> 1354 </member>
621 <member name="M:OpenMetaverse.Color4.FromHSV(System.Double,System.Double,System.Double)"> 1355 <member name="M:OpenMetaverse.Quaternion.CreateFromAxisAngle(System.Single,System.Single,System.Single,System.Single)">
622 <summary> 1356 <summary>
623 Create an RGB color from a hue, saturation, value combination 1357 Build a quaternion from an axis and an angle of rotation around
1358 that axis
624 </summary> 1359 </summary>
625 <param name="hue">Hue</param>
626 <param name="saturation">Saturation</param>
627 <param name="value">Value</param>
628 <returns>An fully opaque RGB color (alpha is 1.0)</returns>
629 </member> 1360 </member>
630 <member name="M:OpenMetaverse.Color4.Lerp(OpenMetaverse.Color4,OpenMetaverse.Color4,System.Single)"> 1361 <member name="M:OpenMetaverse.Quaternion.CreateFromAxisAngle(OpenMetaverse.Vector3,System.Single)">
631 <summary> 1362 <summary>
632 Performs linear interpolation between two colors 1363 Build a quaternion from an axis and an angle of rotation around
1364 that axis
633 </summary> 1365 </summary>
634 <param name="value1">Color to start at</param> 1366 <param name="axis">Axis of rotation</param>
635 <param name="value2">Color to end at</param> 1367 <param name="angle">Angle of rotation</param>
636 <param name="amount">Amount to interpolate</param>
637 <returns>The interpolated color</returns>
638 </member> 1368 </member>
639 <member name="F:OpenMetaverse.Color4.Black"> 1369 <member name="M:OpenMetaverse.Quaternion.CreateFromEulers(OpenMetaverse.Vector3)">
640 <summary>A Color4 with zero RGB values and fully opaque (alpha 1.0)</summary> 1370 <summary>
1371 Creates a quaternion from a vector containing roll, pitch, and yaw
1372 in radians
1373 </summary>
1374 <param name="eulers">Vector representation of the euler angles in
1375 radians</param>
1376 <returns>Quaternion representation of the euler angles</returns>
641 </member> 1377 </member>
642 <member name="F:OpenMetaverse.Color4.White"> 1378 <member name="M:OpenMetaverse.Quaternion.CreateFromEulers(System.Single,System.Single,System.Single)">
643 <summary>A Color4 with full RGB values (1.0) and fully opaque (alpha 1.0)</summary> 1379 <summary>
1380 Creates a quaternion from roll, pitch, and yaw euler angles in
1381 radians
1382 </summary>
1383 <param name="roll">X angle in radians</param>
1384 <param name="pitch">Y angle in radians</param>
1385 <param name="yaw">Z angle in radians</param>
1386 <returns>Quaternion representation of the euler angles</returns>
1387 </member>
1388 <member name="M:OpenMetaverse.Quaternion.Inverse(OpenMetaverse.Quaternion)">
1389 <summary>
1390 Conjugates and renormalizes a vector
1391 </summary>
1392 </member>
1393 <member name="M:OpenMetaverse.Quaternion.Slerp(OpenMetaverse.Quaternion,OpenMetaverse.Quaternion,System.Single)">
1394 <summary>
1395 Spherical linear interpolation between two quaternions
1396 </summary>
1397 </member>
1398 <member name="M:OpenMetaverse.Quaternion.ToRawString">
1399 <summary>
1400 Get a string representation of the quaternion elements with up to three
1401 decimal digits and separated by spaces only
1402 </summary>
1403 <returns>Raw string representation of the quaternion</returns>
644 </member> 1404 </member>
645 <member name="M:OpenMetaverse.ReaderWriterLockSlim.ExitAndWakeUpAppropriateWaiters"> 1405 <member name="M:OpenMetaverse.ReaderWriterLockSlim.ExitAndWakeUpAppropriateWaiters">
646 <summary> 1406 <summary>
647 Determines the appropriate events to set, leaves the locks, and sets the events. 1407 Determines the appropriate events to set, leaves the locks, and sets the events.
648 </summary> 1408 </summary>
649 </member> 1409 </member>
650 <member name="M:OpenMetaverse.ReaderWriterLockSlim.LazyCreateEvent(System.Threading.EventWaitHandle@,System.Boolean)"> 1410 <member name="M:OpenMetaverse.ReaderWriterLockSlim.LazyCreateEvent(System.Threading.EventWaitHandle@,System.Boolean)">
@@ -652,20 +1412,105 @@
652 A routine for lazily creating a event outside the lock (so if errors 1412 A routine for lazily creating a event outside the lock (so if errors
653 happen they are outside the lock and that we don't do much work 1413 happen they are outside the lock and that we don't do much work
654 while holding a spin lock). If all goes well, reenter the lock and 1414 while holding a spin lock). If all goes well, reenter the lock and
655 set 'waitEvent' 1415 set 'waitEvent'
656 </summary> 1416 </summary>
657 </member> 1417 </member>
658 <member name="M:OpenMetaverse.ReaderWriterLockSlim.WaitOnEvent(System.Threading.EventWaitHandle,System.UInt32@,System.Int32)"> 1418 <member name="M:OpenMetaverse.ReaderWriterLockSlim.WaitOnEvent(System.Threading.EventWaitHandle,System.UInt32@,System.Int32)">
659 <summary> 1419 <summary>
660 Waits on 'waitEvent' with a timeout of 'millisceondsTimeout. 1420 Waits on 'waitEvent' with a timeout of 'millisceondsTimeout.
661 Before the wait 'numWaiters' is incremented and is restored before leaving this routine. 1421 Before the wait 'numWaiters' is incremented and is restored before leaving this routine.
662 </summary> 1422 </summary>
663 </member> 1423 </member>
664 <member name="M:OpenMetaverse.CircularQueue`1.#ctor(OpenMetaverse.CircularQueue{`0})"> 1424 <member name="T:OpenMetaverse.TokenBucket">
665 <summary> 1425 <summary>
666 Copy constructor 1426 A hierarchical token bucket for bandwidth throttling. See
1427 http://en.wikipedia.org/wiki/Token_bucket for more information
667 </summary> 1428 </summary>
668 <param name="queue">Circular queue to copy</param> 1429 </member>
1430 <member name="M:OpenMetaverse.TokenBucket.#ctor(OpenMetaverse.TokenBucket,System.Int32,System.Int32)">
1431 <summary>
1432 Default constructor
1433 </summary>
1434 <param name="parent">Parent bucket if this is a child bucket, or
1435 null if this is a root bucket</param>
1436 <param name="maxBurst">Maximum size of the bucket in bytes, or
1437 zero if this bucket has no maximum capacity</param>
1438 <param name="dripRate">Rate that the bucket fills, in bytes per
1439 second. If zero, the bucket always remains full</param>
1440 </member>
1441 <member name="F:OpenMetaverse.TokenBucket.parent">
1442 <summary>Parent bucket to this bucket, or null if this is a root
1443 bucket</summary>
1444 </member>
1445 <member name="F:OpenMetaverse.TokenBucket.maxBurst">
1446 <summary>Size of the bucket in bytes. If zero, the bucket has
1447 infinite capacity</summary>
1448 </member>
1449 <member name="F:OpenMetaverse.TokenBucket.tokensPerMS">
1450 <summary>Rate that the bucket fills, in bytes per millisecond. If
1451 zero, the bucket always remains full</summary>
1452 </member>
1453 <member name="F:OpenMetaverse.TokenBucket.content">
1454 <summary>Number of tokens currently in the bucket</summary>
1455 </member>
1456 <member name="F:OpenMetaverse.TokenBucket.lastDrip">
1457 <summary>Time of the last drip, in system ticks</summary>
1458 </member>
1459 <member name="P:OpenMetaverse.TokenBucket.Parent">
1460 <summary>
1461 The parent bucket of this bucket, or null if this bucket has no
1462 parent. The parent bucket will limit the aggregate bandwidth of all
1463 of its children buckets
1464 </summary>
1465 </member>
1466 <member name="P:OpenMetaverse.TokenBucket.MaxBurst">
1467 <summary>
1468 Maximum burst rate in bytes per second. This is the maximum number
1469 of tokens that can accumulate in the bucket at any one time
1470 </summary>
1471 </member>
1472 <member name="P:OpenMetaverse.TokenBucket.DripRate">
1473 <summary>
1474 The speed limit of this bucket in bytes per second. This is the
1475 number of tokens that are added to the bucket per second
1476 </summary>
1477 <remarks>Tokens are added to the bucket any time
1478 <seealso cref="M:OpenMetaverse.TokenBucket.RemoveTokens(System.Int32,System.Boolean)" /> is called, at the granularity of
1479 the system tick interval (typically around 15-22ms)</remarks>
1480 </member>
1481 <member name="P:OpenMetaverse.TokenBucket.Content">
1482 <summary>
1483 The number of bytes that can be sent at this moment. This is the
1484 current number of tokens in the bucket
1485 <remarks>If this bucket has a parent bucket that does not have
1486 enough tokens for a request, <seealso cref="M:OpenMetaverse.TokenBucket.RemoveTokens(System.Int32,System.Boolean)" /> will
1487 return false regardless of the content of this bucket</remarks></summary>
1488 </member>
1489 <member name="M:OpenMetaverse.TokenBucket.RemoveTokens(System.Int32)">
1490 <summary>
1491 Remove a given number of tokens from the bucket
1492 </summary>
1493 <param name="amount">Number of tokens to remove from the bucket</param>
1494 <returns>True if the requested number of tokens were removed from
1495 the bucket, otherwise false</returns>
1496 </member>
1497 <member name="M:OpenMetaverse.TokenBucket.RemoveTokens(System.Int32,System.Boolean@)">
1498 <summary>
1499 Remove a given number of tokens from the bucket
1500 </summary>
1501 <param name="amount">Number of tokens to remove from the bucket</param>
1502 <param name="dripSucceeded">True if tokens were added to the bucket
1503 during this call, otherwise false</param>
1504 <returns>True if the requested number of tokens were removed from
1505 the bucket, otherwise false</returns>
1506 </member>
1507 <member name="M:OpenMetaverse.TokenBucket.Drip">
1508 <summary>
1509 Add tokens to the bucket over time. The number of tokens added each
1510 call depends on the length of time that has passed since the last
1511 call to Drip
1512 </summary>
1513 <returns>True if tokens were added to the bucket, otherwise false</returns>
669 </member> 1514 </member>
670 <member name="T:OpenMetaverse.UUID"> 1515 <member name="T:OpenMetaverse.UUID">
671 <summary> 1516 <summary>
@@ -673,14 +1518,11 @@
673 Life networking protocol 1518 Life networking protocol
674 </summary> 1519 </summary>
675 </member> 1520 </member>
676 <member name="F:OpenMetaverse.UUID.Guid">
677 <summary>The System.Guid object this struct wraps around</summary>
678 </member>
679 <member name="M:OpenMetaverse.UUID.#ctor(System.String)"> 1521 <member name="M:OpenMetaverse.UUID.#ctor(System.String)">
680 <summary> 1522 <summary>
681 Constructor that takes a string UUID representation 1523 Constructor that takes a string UUID representation
682 </summary> 1524 </summary>
683 <param name="val">A string representation of a UUID, case 1525 <param name="val">A string representation of a UUID, case
684 insensitive and can either be hyphenated or non-hyphenated</param> 1526 insensitive and can either be hyphenated or non-hyphenated</param>
685 <example>UUID("11f8aa9c-b071-4242-836b-13b7abe0d489")</example> 1527 <example>UUID("11f8aa9c-b071-4242-836b-13b7abe0d489")</example>
686 </member> 1528 </member>
@@ -700,7 +1542,7 @@
700 </member> 1542 </member>
701 <member name="M:OpenMetaverse.UUID.#ctor(System.UInt64)"> 1543 <member name="M:OpenMetaverse.UUID.#ctor(System.UInt64)">
702 <summary> 1544 <summary>
703 Constructor that takes an unsigned 64-bit unsigned integer to 1545 Constructor that takes an unsigned 64-bit unsigned integer to
704 convert to a UUID 1546 convert to a UUID
705 </summary> 1547 </summary>
706 <param name="val">64-bit unsigned integer to convert to a UUID</param> 1548 <param name="val">64-bit unsigned integer to convert to a UUID</param>
@@ -711,6 +1553,15 @@
711 </summary> 1553 </summary>
712 <param name="val">UUID to copy</param> 1554 <param name="val">UUID to copy</param>
713 </member> 1555 </member>
1556 <member name="F:OpenMetaverse.UUID.Guid">
1557 <summary>The System.Guid object this struct wraps around</summary>
1558 </member>
1559 <member name="F:OpenMetaverse.UUID.Zero">
1560 <summary>An UUID with a value of all zeroes</summary>
1561 </member>
1562 <member name="F:OpenMetaverse.UUID.ZeroString">
1563 <summary>A cache of UUID.Zero as a string to optimize a common path</summary>
1564 </member>
714 <member name="M:OpenMetaverse.UUID.CompareTo(OpenMetaverse.UUID)"> 1565 <member name="M:OpenMetaverse.UUID.CompareTo(OpenMetaverse.UUID)">
715 <summary> 1566 <summary>
716 IComparable.CompareTo implementation 1567 IComparable.CompareTo implementation
@@ -753,7 +1604,7 @@
753 <summary> 1604 <summary>
754 Generate a UUID from a string 1605 Generate a UUID from a string
755 </summary> 1606 </summary>
756 <param name="val">A string representation of a UUID, case 1607 <param name="val">A string representation of a UUID, case
757 insensitive and can either be hyphenated or non-hyphenated</param> 1608 insensitive and can either be hyphenated or non-hyphenated</param>
758 <example>UUID.Parse("11f8aa9c-b071-4242-836b-13b7abe0d489")</example> 1609 <example>UUID.Parse("11f8aa9c-b071-4242-836b-13b7abe0d489")</example>
759 </member> 1610 </member>
@@ -761,7 +1612,7 @@
761 <summary> 1612 <summary>
762 Generate a UUID from a string 1613 Generate a UUID from a string
763 </summary> 1614 </summary>
764 <param name="val">A string representation of a UUID, case 1615 <param name="val">A string representation of a UUID, case
765 insensitive and can either be hyphenated or non-hyphenated</param> 1616 insensitive and can either be hyphenated or non-hyphenated</param>
766 <param name="result">Will contain the parsed UUID if successful, 1617 <param name="result">Will contain the parsed UUID if successful,
767 otherwise null</param> 1618 otherwise null</param>
@@ -779,9 +1630,9 @@
779 </member> 1630 </member>
780 <member name="M:OpenMetaverse.UUID.Random"> 1631 <member name="M:OpenMetaverse.UUID.Random">
781 <summary> 1632 <summary>
782
783 </summary> 1633 </summary>
784 <returns></returns> 1634 <returns>
1635 </returns>
785 </member> 1636 </member>
786 <member name="M:OpenMetaverse.UUID.GetHashCode"> 1637 <member name="M:OpenMetaverse.UUID.GetHashCode">
787 <summary> 1638 <summary>
@@ -807,7 +1658,7 @@
807 <summary> 1658 <summary>
808 Get a hyphenated string representation of this UUID 1659 Get a hyphenated string representation of this UUID
809 </summary> 1660 </summary>
810 <returns>A string representation of this UUID, lowercase and 1661 <returns>A string representation of this UUID, lowercase and
811 with hyphens</returns> 1662 with hyphens</returns>
812 <example>11f8aa9c-b071-4242-836b-13b7abe0d489</example> 1663 <example>11f8aa9c-b071-4242-836b-13b7abe0d489</example>
813 </member> 1664 </member>
@@ -839,15 +1690,40 @@
839 <summary> 1690 <summary>
840 String typecasting operator 1691 String typecasting operator
841 </summary> 1692 </summary>
842 <param name="val">A UUID in string form. Case insensitive, 1693 <param name="val">A UUID in string form. Case insensitive,
843 hyphenated or non-hyphenated</param> 1694 hyphenated or non-hyphenated</param>
844 <returns>A UUID built from the string representation</returns> 1695 <returns>A UUID built from the string representation</returns>
845 </member> 1696 </member>
846 <member name="F:OpenMetaverse.UUID.Zero"> 1697 <member name="T:OpenMetaverse.Utils.Platform">
847 <summary>An UUID with a value of all zeroes</summary> 1698 <summary>
1699 Operating system
1700 </summary>
848 </member> 1701 </member>
849 <member name="F:OpenMetaverse.UUID.ZeroString"> 1702 <member name="F:OpenMetaverse.Utils.Platform.Unknown">
850 <summary>A cache of UUID.Zero as a string to optimize a common path</summary> 1703 <summary>Unknown</summary>
1704 </member>
1705 <member name="F:OpenMetaverse.Utils.Platform.Windows">
1706 <summary>Microsoft Windows</summary>
1707 </member>
1708 <member name="F:OpenMetaverse.Utils.Platform.WindowsCE">
1709 <summary>Microsoft Windows CE</summary>
1710 </member>
1711 <member name="F:OpenMetaverse.Utils.Platform.Linux">
1712 <summary>Linux</summary>
1713 </member>
1714 <member name="F:OpenMetaverse.Utils.Platform.OSX">
1715 <summary>Apple OSX</summary>
1716 </member>
1717 <member name="T:OpenMetaverse.Utils.Runtime">
1718 <summary>
1719 Runtime platform
1720 </summary>
1721 </member>
1722 <member name="F:OpenMetaverse.Utils.Runtime.Windows">
1723 <summary>.NET runtime</summary>
1724 </member>
1725 <member name="F:OpenMetaverse.Utils.Runtime.Mono">
1726 <summary>Mono runtime: http://www.mono-project.com/</summary>
851 </member> 1727 </member>
852 <member name="F:OpenMetaverse.Utils.DEG_TO_RAD"> 1728 <member name="F:OpenMetaverse.Utils.DEG_TO_RAD">
853 <summary>Used for converting degrees to radians</summary> 1729 <summary>Used for converting degrees to radians</summary>
@@ -857,7 +1733,7 @@
857 </member> 1733 </member>
858 <member name="F:OpenMetaverse.Utils.EnUsCulture"> 1734 <member name="F:OpenMetaverse.Utils.EnUsCulture">
859 <summary>Provide a single instance of the CultureInfo class to 1735 <summary>Provide a single instance of the CultureInfo class to
860 help parsing in situations where the grid assumes an en-us 1736 help parsing in situations where the grid assumes an en-us
861 culture</summary> 1737 culture</summary>
862 </member> 1738 </member>
863 <member name="F:OpenMetaverse.Utils.Epoch"> 1739 <member name="F:OpenMetaverse.Utils.Epoch">
@@ -1279,7 +2155,7 @@
1279 <summary> 2155 <summary>
1280 Takes an AssetType and returns the string representation 2156 Takes an AssetType and returns the string representation
1281 </summary> 2157 </summary>
1282 <param name="type">The source <seealso cref="T:OpenMetaverse.AssetType"/></param> 2158 <param name="type">The source <seealso cref="T:OpenMetaverse.AssetType" /></param>
1283 <returns>The string version of the AssetType</returns> 2159 <returns>The string version of the AssetType</returns>
1284 </member> 2160 </member>
1285 <member name="M:OpenMetaverse.Utils.StringToAssetType(System.String)"> 2161 <member name="M:OpenMetaverse.Utils.StringToAssetType(System.String)">
@@ -1293,7 +2169,7 @@
1293 <summary> 2169 <summary>
1294 Convert an InventoryType to a string 2170 Convert an InventoryType to a string
1295 </summary> 2171 </summary>
1296 <param name="type">The <seealso cref="T:InventoryType"/> to convert</param> 2172 <param name="type">The <seealso cref="T:InventoryType" /> to convert</param>
1297 <returns>A string representation of the source</returns> 2173 <returns>A string representation of the source</returns>
1298 </member> 2174 </member>
1299 <member name="M:OpenMetaverse.Utils.StringToInventoryType(System.String)"> 2175 <member name="M:OpenMetaverse.Utils.StringToInventoryType(System.String)">
@@ -1307,7 +2183,7 @@
1307 <summary> 2183 <summary>
1308 Convert a SaleType to a string 2184 Convert a SaleType to a string
1309 </summary> 2185 </summary>
1310 <param name="type">The <seealso cref="T:SaleType"/> to convert</param> 2186 <param name="type">The <seealso cref="T:SaleType" /> to convert</param>
1311 <returns>A string representation of the source</returns> 2187 <returns>A string representation of the source</returns>
1312 </member> 2188 </member>
1313 <member name="M:OpenMetaverse.Utils.StringToSaleType(System.String)"> 2189 <member name="M:OpenMetaverse.Utils.StringToSaleType(System.String)">
@@ -1382,7 +2258,7 @@
1382 <summary> 2258 <summary>
1383 Convert a native DateTime object to a UNIX timestamp 2259 Convert a native DateTime object to a UNIX timestamp
1384 </summary> 2260 </summary>
1385 <param name="time">A DateTime object you want to convert to a 2261 <param name="time">A DateTime object you want to convert to a
1386 timestamp</param> 2262 timestamp</param>
1387 <returns>An unsigned integer representing a UNIX timestamp</returns> 2263 <returns>An unsigned integer representing a UNIX timestamp</returns>
1388 </member> 2264 </member>
@@ -1413,356 +2289,35 @@
1413 <member name="M:OpenMetaverse.Utils.HostnameToIPv4(System.String)"> 2289 <member name="M:OpenMetaverse.Utils.HostnameToIPv4(System.String)">
1414 <summary> 2290 <summary>
1415 Attempts to convert a string representation of a hostname or IP 2291 Attempts to convert a string representation of a hostname or IP
1416 address to a <seealso cref="T:System.Net.IPAddress"/> 2292 address to a <seealso cref="T:System.Net.IPAddress" /></summary>
1417 </summary>
1418 <param name="hostname">Hostname to convert to an IPAddress</param> 2293 <param name="hostname">Hostname to convert to an IPAddress</param>
1419 <returns>Converted IP address object, or null if the conversion 2294 <returns>Converted IP address object, or null if the conversion
1420 failed</returns> 2295 failed</returns>
1421 </member> 2296 </member>
1422 <member name="T:OpenMetaverse.Utils.Platform"> 2297 <member name="T:OpenMetaverse.Vector2">
1423 <summary>
1424 Operating system
1425 </summary>
1426 </member>
1427 <member name="F:OpenMetaverse.Utils.Platform.Unknown">
1428 <summary>Unknown</summary>
1429 </member>
1430 <member name="F:OpenMetaverse.Utils.Platform.Windows">
1431 <summary>Microsoft Windows</summary>
1432 </member>
1433 <member name="F:OpenMetaverse.Utils.Platform.WindowsCE">
1434 <summary>Microsoft Windows CE</summary>
1435 </member>
1436 <member name="F:OpenMetaverse.Utils.Platform.Linux">
1437 <summary>Linux</summary>
1438 </member>
1439 <member name="F:OpenMetaverse.Utils.Platform.OSX">
1440 <summary>Apple OSX</summary>
1441 </member>
1442 <member name="T:OpenMetaverse.Utils.Runtime">
1443 <summary> 2298 <summary>
1444 Runtime platform 2299 A two-dimensional vector with floating-point values
1445 </summary> 2300 </summary>
1446 </member> 2301 </member>
1447 <member name="F:OpenMetaverse.Utils.Runtime.Windows"> 2302 <member name="F:OpenMetaverse.Vector2.X">
1448 <summary>.NET runtime</summary>
1449 </member>
1450 <member name="F:OpenMetaverse.Utils.Runtime.Mono">
1451 <summary>Mono runtime: http://www.mono-project.com/</summary>
1452 </member>
1453 <member name="F:OpenMetaverse.Quaternion.X">
1454 <summary>X value</summary> 2303 <summary>X value</summary>
1455 </member> 2304 </member>
1456 <member name="F:OpenMetaverse.Quaternion.Y"> 2305 <member name="F:OpenMetaverse.Vector2.Y">
1457 <summary>Y value</summary> 2306 <summary>Y value</summary>
1458 </member> 2307 </member>
1459 <member name="F:OpenMetaverse.Quaternion.Z"> 2308 <member name="F:OpenMetaverse.Vector2.Zero">
1460 <summary>Z value</summary> 2309 <summary>A vector with a value of 0,0</summary>
1461 </member>
1462 <member name="F:OpenMetaverse.Quaternion.W">
1463 <summary>W value</summary>
1464 </member>
1465 <member name="M:OpenMetaverse.Quaternion.#ctor(System.Single,System.Single,System.Single)">
1466 <summary>
1467 Build a quaternion from normalized float values
1468 </summary>
1469 <param name="x">X value from -1.0 to 1.0</param>
1470 <param name="y">Y value from -1.0 to 1.0</param>
1471 <param name="z">Z value from -1.0 to 1.0</param>
1472 </member>
1473 <member name="M:OpenMetaverse.Quaternion.#ctor(System.Byte[],System.Int32,System.Boolean)">
1474 <summary>
1475 Constructor, builds a quaternion object from a byte array
1476 </summary>
1477 <param name="byteArray">Byte array containing four four-byte floats</param>
1478 <param name="pos">Offset in the byte array to start reading at</param>
1479 <param name="normalized">Whether the source data is normalized or
1480 not. If this is true 12 bytes will be read, otherwise 16 bytes will
1481 be read.</param>
1482 </member>
1483 <member name="M:OpenMetaverse.Quaternion.Normalize">
1484 <summary>
1485 Normalizes the quaternion
1486 </summary>
1487 </member>
1488 <member name="M:OpenMetaverse.Quaternion.FromBytes(System.Byte[],System.Int32,System.Boolean)">
1489 <summary>
1490 Builds a quaternion object from a byte array
1491 </summary>
1492 <param name="byteArray">The source byte array</param>
1493 <param name="pos">Offset in the byte array to start reading at</param>
1494 <param name="normalized">Whether the source data is normalized or
1495 not. If this is true 12 bytes will be read, otherwise 16 bytes will
1496 be read.</param>
1497 </member>
1498 <member name="M:OpenMetaverse.Quaternion.GetBytes">
1499 <summary>
1500 Normalize this quaternion and serialize it to a byte array
1501 </summary>
1502 <returns>A 12 byte array containing normalized X, Y, and Z floating
1503 point values in order using little endian byte ordering</returns>
1504 </member>
1505 <member name="M:OpenMetaverse.Quaternion.ToBytes(System.Byte[],System.Int32)">
1506 <summary>
1507 Writes the raw bytes for this quaternion to a byte array
1508 </summary>
1509 <param name="dest">Destination byte array</param>
1510 <param name="pos">Position in the destination array to start
1511 writing. Must be at least 12 bytes before the end of the array</param>
1512 </member>
1513 <member name="M:OpenMetaverse.Quaternion.GetEulerAngles(System.Single@,System.Single@,System.Single@)">
1514 <summary>
1515 Convert this quaternion to euler angles
1516 </summary>
1517 <param name="roll">X euler angle</param>
1518 <param name="pitch">Y euler angle</param>
1519 <param name="yaw">Z euler angle</param>
1520 </member>
1521 <member name="M:OpenMetaverse.Quaternion.GetAxisAngle(OpenMetaverse.Vector3@,System.Single@)">
1522 <summary>
1523 Convert this quaternion to an angle around an axis
1524 </summary>
1525 <param name="axis">Unit vector describing the axis</param>
1526 <param name="angle">Angle around the axis, in radians</param>
1527 </member>
1528 <member name="M:OpenMetaverse.Quaternion.Conjugate(OpenMetaverse.Quaternion)">
1529 <summary>
1530 Returns the conjugate (spatial inverse) of a quaternion
1531 </summary>
1532 </member>
1533 <member name="M:OpenMetaverse.Quaternion.CreateFromAxisAngle(System.Single,System.Single,System.Single,System.Single)">
1534 <summary>
1535 Build a quaternion from an axis and an angle of rotation around
1536 that axis
1537 </summary>
1538 </member>
1539 <member name="M:OpenMetaverse.Quaternion.CreateFromAxisAngle(OpenMetaverse.Vector3,System.Single)">
1540 <summary>
1541 Build a quaternion from an axis and an angle of rotation around
1542 that axis
1543 </summary>
1544 <param name="axis">Axis of rotation</param>
1545 <param name="angle">Angle of rotation</param>
1546 </member>
1547 <member name="M:OpenMetaverse.Quaternion.CreateFromEulers(OpenMetaverse.Vector3)">
1548 <summary>
1549 Creates a quaternion from a vector containing roll, pitch, and yaw
1550 in radians
1551 </summary>
1552 <param name="eulers">Vector representation of the euler angles in
1553 radians</param>
1554 <returns>Quaternion representation of the euler angles</returns>
1555 </member>
1556 <member name="M:OpenMetaverse.Quaternion.CreateFromEulers(System.Single,System.Single,System.Single)">
1557 <summary>
1558 Creates a quaternion from roll, pitch, and yaw euler angles in
1559 radians
1560 </summary>
1561 <param name="roll">X angle in radians</param>
1562 <param name="pitch">Y angle in radians</param>
1563 <param name="yaw">Z angle in radians</param>
1564 <returns>Quaternion representation of the euler angles</returns>
1565 </member>
1566 <member name="M:OpenMetaverse.Quaternion.Inverse(OpenMetaverse.Quaternion)">
1567 <summary>
1568 Conjugates and renormalizes a vector
1569 </summary>
1570 </member>
1571 <member name="M:OpenMetaverse.Quaternion.Slerp(OpenMetaverse.Quaternion,OpenMetaverse.Quaternion,System.Single)">
1572 <summary>
1573 Spherical linear interpolation between two quaternions
1574 </summary>
1575 </member>
1576 <member name="M:OpenMetaverse.Quaternion.ToRawString">
1577 <summary>
1578 Get a string representation of the quaternion elements with up to three
1579 decimal digits and separated by spaces only
1580 </summary>
1581 <returns>Raw string representation of the quaternion</returns>
1582 </member>
1583 <member name="F:OpenMetaverse.Quaternion.Identity">
1584 <summary>A quaternion with a value of 0,0,0,1</summary>
1585 </member>
1586 <member name="T:OpenMetaverse.BlockingQueue`1">
1587 <summary>
1588 Same as Queue except Dequeue function blocks until there is an object to return.
1589 Note: This class does not need to be synchronized
1590 </summary>
1591 </member>
1592 <member name="M:OpenMetaverse.BlockingQueue`1.#ctor(System.Collections.Generic.IEnumerable{`0})">
1593 <summary>
1594 Create new BlockingQueue.
1595 </summary>
1596 <param name="col">The System.Collections.ICollection to copy elements from</param>
1597 </member>
1598 <member name="M:OpenMetaverse.BlockingQueue`1.#ctor(System.Int32)">
1599 <summary>
1600 Create new BlockingQueue.
1601 </summary>
1602 <param name="capacity">The initial number of elements that the queue can contain</param>
1603 </member>
1604 <member name="M:OpenMetaverse.BlockingQueue`1.#ctor">
1605 <summary>
1606 Create new BlockingQueue.
1607 </summary>
1608 </member>
1609 <member name="M:OpenMetaverse.BlockingQueue`1.Finalize">
1610 <summary>
1611 BlockingQueue Destructor (Close queue, resume any waiting thread).
1612 </summary>
1613 </member>
1614 <member name="M:OpenMetaverse.BlockingQueue`1.Clear">
1615 <summary>
1616 Remove all objects from the Queue.
1617 </summary>
1618 </member>
1619 <member name="M:OpenMetaverse.BlockingQueue`1.Close">
1620 <summary>
1621 Remove all objects from the Queue, resume all dequeue threads.
1622 </summary>
1623 </member>
1624 <member name="M:OpenMetaverse.BlockingQueue`1.Dequeue">
1625 <summary>
1626 Removes and returns the object at the beginning of the Queue.
1627 </summary>
1628 <returns>Object in queue.</returns>
1629 </member>
1630 <member name="M:OpenMetaverse.BlockingQueue`1.Dequeue(System.TimeSpan)">
1631 <summary>
1632 Removes and returns the object at the beginning of the Queue.
1633 </summary>
1634 <param name="timeout">time to wait before returning</param>
1635 <returns>Object in queue.</returns>
1636 </member>
1637 <member name="M:OpenMetaverse.BlockingQueue`1.Dequeue(System.Int32)">
1638 <summary>
1639 Removes and returns the object at the beginning of the Queue.
1640 </summary>
1641 <param name="timeout">time to wait before returning (in milliseconds)</param>
1642 <returns>Object in queue.</returns>
1643 </member>
1644 <member name="M:OpenMetaverse.BlockingQueue`1.Enqueue(`0)">
1645 <summary>
1646 Adds an object to the end of the Queue
1647 </summary>
1648 <param name="obj">Object to put in queue</param>
1649 </member>
1650 <member name="M:OpenMetaverse.BlockingQueue`1.Open">
1651 <summary>
1652 Open Queue.
1653 </summary>
1654 </member>
1655 <member name="P:OpenMetaverse.BlockingQueue`1.Closed">
1656 <summary>
1657 Gets flag indicating if queue has been closed.
1658 </summary>
1659 </member>
1660 <member name="T:OpenMetaverse.Parallel">
1661 <summary>
1662 Provides helper methods for parallelizing loops
1663 </summary>
1664 </member>
1665 <member name="M:OpenMetaverse.Parallel.For(System.Int32,System.Int32,System.Action{System.Int32})">
1666 <summary>
1667 Executes a for loop in which iterations may run in parallel
1668 </summary>
1669 <param name="fromInclusive">The loop will be started at this index</param>
1670 <param name="toExclusive">The loop will be terminated before this index is reached</param>
1671 <param name="body">Method body to run for each iteration of the loop</param>
1672 </member>
1673 <member name="M:OpenMetaverse.Parallel.For(System.Int32,System.Int32,System.Int32,System.Action{System.Int32})">
1674 <summary>
1675 Executes a for loop in which iterations may run in parallel
1676 </summary>
1677 <param name="threadCount">The number of concurrent execution threads to run</param>
1678 <param name="fromInclusive">The loop will be started at this index</param>
1679 <param name="toExclusive">The loop will be terminated before this index is reached</param>
1680 <param name="body">Method body to run for each iteration of the loop</param>
1681 </member>
1682 <member name="M:OpenMetaverse.Parallel.ForEach``1(System.Collections.Generic.IEnumerable{``0},System.Action{``0})">
1683 <summary>
1684 Executes a foreach loop in which iterations may run in parallel
1685 </summary>
1686 <typeparam name="T">Object type that the collection wraps</typeparam>
1687 <param name="enumerable">An enumerable collection to iterate over</param>
1688 <param name="body">Method body to run for each object in the collection</param>
1689 </member>
1690 <member name="M:OpenMetaverse.Parallel.ForEach``1(System.Int32,System.Collections.Generic.IEnumerable{``0},System.Action{``0})">
1691 <summary>
1692 Executes a foreach loop in which iterations may run in parallel
1693 </summary>
1694 <typeparam name="T">Object type that the collection wraps</typeparam>
1695 <param name="threadCount">The number of concurrent execution threads to run</param>
1696 <param name="enumerable">An enumerable collection to iterate over</param>
1697 <param name="body">Method body to run for each object in the collection</param>
1698 </member>
1699 <member name="M:OpenMetaverse.Parallel.Invoke(System.Action[])">
1700 <summary>
1701 Executes a series of tasks in parallel
1702 </summary>
1703 <param name="actions">A series of method bodies to execute</param>
1704 </member>
1705 <member name="M:OpenMetaverse.Parallel.Invoke(System.Int32,System.Action[])">
1706 <summary>
1707 Executes a series of tasks in parallel
1708 </summary>
1709 <param name="threadCount">The number of concurrent execution threads to run</param>
1710 <param name="actions">A series of method bodies to execute</param>
1711 </member>
1712 <member name="M:OpenMetaverse.Matrix4.GetEulerAngles(System.Single@,System.Single@,System.Single@)">
1713 <summary>
1714 Convert this matrix to euler rotations
1715 </summary>
1716 <param name="roll">X euler angle</param>
1717 <param name="pitch">Y euler angle</param>
1718 <param name="yaw">Z euler angle</param>
1719 </member>
1720 <member name="M:OpenMetaverse.Matrix4.GetQuaternion">
1721 <summary>
1722 Convert this matrix to a quaternion rotation
1723 </summary>
1724 <returns>A quaternion representation of this rotation matrix</returns>
1725 </member>
1726 <member name="M:OpenMetaverse.Matrix4.CreateFromEulers(System.Single,System.Single,System.Single)">
1727 <summary>
1728 Construct a matrix from euler rotation values in radians
1729 </summary>
1730 <param name="roll">X euler angle in radians</param>
1731 <param name="pitch">Y euler angle in radians</param>
1732 <param name="yaw">Z euler angle in radians</param>
1733 </member>
1734 <member name="M:OpenMetaverse.Matrix4.ToString">
1735 <summary>
1736 Get a formatted string representation of the vector
1737 </summary>
1738 <returns>A string representation of the vector</returns>
1739 </member>
1740 <member name="F:OpenMetaverse.Matrix4.Zero">
1741 <summary>A 4x4 matrix containing all zeroes</summary>
1742 </member>
1743 <member name="F:OpenMetaverse.Matrix4.Identity">
1744 <summary>A 4x4 identity matrix</summary>
1745 </member>
1746 <member name="F:OpenMetaverse.Vector4.X">
1747 <summary>X value</summary>
1748 </member>
1749 <member name="F:OpenMetaverse.Vector4.Y">
1750 <summary>Y value</summary>
1751 </member> 2310 </member>
1752 <member name="F:OpenMetaverse.Vector4.Z"> 2311 <member name="F:OpenMetaverse.Vector2.One">
1753 <summary>Z value</summary> 2312 <summary>A vector with a value of 1,1</summary>
1754 </member> 2313 </member>
1755 <member name="F:OpenMetaverse.Vector4.W"> 2314 <member name="F:OpenMetaverse.Vector2.UnitX">
1756 <summary>W value</summary> 2315 <summary>A vector with a value of 1,0</summary>
1757 </member> 2316 </member>
1758 <member name="M:OpenMetaverse.Vector4.#ctor(System.Byte[],System.Int32)"> 2317 <member name="F:OpenMetaverse.Vector2.UnitY">
1759 <summary> 2318 <summary>A vector with a value of 0,1</summary>
1760 Constructor, builds a vector from a byte array
1761 </summary>
1762 <param name="byteArray">Byte array containing four four-byte floats</param>
1763 <param name="pos">Beginning position in the byte array</param>
1764 </member> 2319 </member>
1765 <member name="M:OpenMetaverse.Vector4.ApproxEquals(OpenMetaverse.Vector4,System.Single)"> 2320 <member name="M:OpenMetaverse.Vector2.ApproxEquals(OpenMetaverse.Vector2,System.Single)">
1766 <summary> 2321 <summary>
1767 Test if this vector is equal to another vector, within a given 2322 Test if this vector is equal to another vector, within a given
1768 tolerance range 2323 tolerance range
@@ -1773,78 +2328,74 @@
1773 <returns>True if the magnitude of difference between the two vectors 2328 <returns>True if the magnitude of difference between the two vectors
1774 is less than the given tolerance, otherwise false</returns> 2329 is less than the given tolerance, otherwise false</returns>
1775 </member> 2330 </member>
1776 <member name="M:OpenMetaverse.Vector4.CompareTo(OpenMetaverse.Vector4)"> 2331 <member name="M:OpenMetaverse.Vector2.IsFinite">
1777 <summary> 2332 <summary>
1778 IComparable.CompareTo implementation 2333 Test if this vector is composed of all finite numbers
1779 </summary> 2334 </summary>
1780 </member> 2335 </member>
1781 <member name="M:OpenMetaverse.Vector4.IsFinite"> 2336 <member name="M:OpenMetaverse.Vector2.CompareTo(OpenMetaverse.Vector2)">
1782 <summary> 2337 <summary>
1783 Test if this vector is composed of all finite numbers 2338 IComparable.CompareTo implementation
1784 </summary> 2339 </summary>
1785 </member> 2340 </member>
1786 <member name="M:OpenMetaverse.Vector4.FromBytes(System.Byte[],System.Int32)"> 2341 <member name="M:OpenMetaverse.Vector2.FromBytes(System.Byte[],System.Int32)">
1787 <summary> 2342 <summary>
1788 Builds a vector from a byte array 2343 Builds a vector from a byte array
1789 </summary> 2344 </summary>
1790 <param name="byteArray">Byte array containing a 16 byte vector</param> 2345 <param name="byteArray">Byte array containing two four-byte floats</param>
1791 <param name="pos">Beginning position in the byte array</param> 2346 <param name="pos">Beginning position in the byte array</param>
1792 </member> 2347 </member>
1793 <member name="M:OpenMetaverse.Vector4.GetBytes"> 2348 <member name="M:OpenMetaverse.Vector2.GetBytes">
1794 <summary> 2349 <summary>
1795 Returns the raw bytes for this vector 2350 Returns the raw bytes for this vector
1796 </summary> 2351 </summary>
1797 <returns>A 16 byte array containing X, Y, Z, and W</returns> 2352 <returns>An eight-byte array containing X and Y</returns>
1798 </member> 2353 </member>
1799 <member name="M:OpenMetaverse.Vector4.ToBytes(System.Byte[],System.Int32)"> 2354 <member name="M:OpenMetaverse.Vector2.ToBytes(System.Byte[],System.Int32)">
1800 <summary> 2355 <summary>
1801 Writes the raw bytes for this vector to a byte array 2356 Writes the raw bytes for this vector to a byte array
1802 </summary> 2357 </summary>
1803 <param name="dest">Destination byte array</param> 2358 <param name="dest">Destination byte array</param>
1804 <param name="pos">Position in the destination array to start 2359 <param name="pos">Position in the destination array to start
1805 writing. Must be at least 16 bytes before the end of the array</param> 2360 writing. Must be at least 8 bytes before the end of the array</param>
1806 </member> 2361 </member>
1807 <member name="M:OpenMetaverse.Vector4.ToRawString"> 2362 <member name="M:OpenMetaverse.Vector2.Parse(System.String)">
1808 <summary> 2363 <summary>
1809 Get a string representation of the vector elements with up to three 2364 Parse a vector from a string
1810 decimal digits and separated by spaces only
1811 </summary> 2365 </summary>
1812 <returns>Raw string representation of the vector</returns> 2366 <param name="val">A string representation of a 2D vector, enclosed
1813 </member> 2367 in arrow brackets and separated by commas</param>
1814 <member name="F:OpenMetaverse.Vector4.Zero">
1815 <summary>A vector with a value of 0,0,0,0</summary>
1816 </member>
1817 <member name="F:OpenMetaverse.Vector4.One">
1818 <summary>A vector with a value of 1,1,1,1</summary>
1819 </member>
1820 <member name="F:OpenMetaverse.Vector4.UnitX">
1821 <summary>A vector with a value of 1,0,0,0</summary>
1822 </member>
1823 <member name="F:OpenMetaverse.Vector4.UnitY">
1824 <summary>A vector with a value of 0,1,0,0</summary>
1825 </member>
1826 <member name="F:OpenMetaverse.Vector4.UnitZ">
1827 <summary>A vector with a value of 0,0,1,0</summary>
1828 </member>
1829 <member name="F:OpenMetaverse.Vector4.UnitW">
1830 <summary>A vector with a value of 0,0,0,1</summary>
1831 </member> 2368 </member>
1832 <member name="F:OpenMetaverse.ExpiringCache`2.syncRoot"> 2369 <member name="M:OpenMetaverse.Vector2.SmoothStep(OpenMetaverse.Vector2,OpenMetaverse.Vector2,System.Single)">
1833 <summary>For thread safety</summary> 2370 <summary>
2371 Interpolates between two vectors using a cubic equation
2372 </summary>
1834 </member> 2373 </member>
1835 <member name="F:OpenMetaverse.ExpiringCache`2.isPurging"> 2374 <member name="M:OpenMetaverse.Vector2.ToString">
1836 <summary>For thread safety</summary> 2375 <summary>
2376 Get a formatted string representation of the vector
2377 </summary>
2378 <returns>A string representation of the vector</returns>
1837 </member> 2379 </member>
1838 <member name="M:OpenMetaverse.ExpiringCache`2.PurgeCache(System.Object,System.Timers.ElapsedEventArgs)"> 2380 <member name="M:OpenMetaverse.Vector2.ToRawString">
1839 <summary> 2381 <summary>
1840 Purges expired objects from the cache. Called automatically by the purge timer. 2382 Get a string representation of the vector elements with up to three
2383 decimal digits and separated by spaces only
1841 </summary> 2384 </summary>
2385 <returns>Raw string representation of the vector</returns>
1842 </member> 2386 </member>
1843 <member name="T:OpenMetaverse.Vector3"> 2387 <member name="T:OpenMetaverse.Vector3">
1844 <summary> 2388 <summary>
1845 A three-dimensional vector with floating-point values 2389 A three-dimensional vector with floating-point values
1846 </summary> 2390 </summary>
1847 </member> 2391 </member>
2392 <member name="M:OpenMetaverse.Vector3.#ctor(System.Byte[],System.Int32)">
2393 <summary>
2394 Constructor, builds a vector from a byte array
2395 </summary>
2396 <param name="byteArray">Byte array containing three four-byte floats</param>
2397 <param name="pos">Beginning position in the byte array</param>
2398 </member>
1848 <member name="F:OpenMetaverse.Vector3.X"> 2399 <member name="F:OpenMetaverse.Vector3.X">
1849 <summary>X value</summary> 2400 <summary>X value</summary>
1850 </member> 2401 </member>
@@ -1854,12 +2405,20 @@
1854 <member name="F:OpenMetaverse.Vector3.Z"> 2405 <member name="F:OpenMetaverse.Vector3.Z">
1855 <summary>Z value</summary> 2406 <summary>Z value</summary>
1856 </member> 2407 </member>
1857 <member name="M:OpenMetaverse.Vector3.#ctor(System.Byte[],System.Int32)"> 2408 <member name="F:OpenMetaverse.Vector3.Zero">
1858 <summary> 2409 <summary>A vector with a value of 0,0,0</summary>
1859 Constructor, builds a vector from a byte array 2410 </member>
1860 </summary> 2411 <member name="F:OpenMetaverse.Vector3.One">
1861 <param name="byteArray">Byte array containing three four-byte floats</param> 2412 <summary>A vector with a value of 1,1,1</summary>
1862 <param name="pos">Beginning position in the byte array</param> 2413 </member>
2414 <member name="F:OpenMetaverse.Vector3.UnitX">
2415 <summary>A unit vector facing forward (X axis), value 1,0,0</summary>
2416 </member>
2417 <member name="F:OpenMetaverse.Vector3.UnitY">
2418 <summary>A unit vector facing left (Y axis), value 0,1,0</summary>
2419 </member>
2420 <member name="F:OpenMetaverse.Vector3.UnitZ">
2421 <summary>A unit vector facing up (Z axis), value 0,0,1</summary>
1863 </member> 2422 </member>
1864 <member name="M:OpenMetaverse.Vector3.ApproxEquals(OpenMetaverse.Vector3,System.Single)"> 2423 <member name="M:OpenMetaverse.Vector3.ApproxEquals(OpenMetaverse.Vector3,System.Single)">
1865 <summary> 2424 <summary>
@@ -1907,7 +2466,7 @@
1907 <summary> 2466 <summary>
1908 Parse a vector from a string 2467 Parse a vector from a string
1909 </summary> 2468 </summary>
1910 <param name="val">A string representation of a 3D vector, enclosed 2469 <param name="val">A string representation of a 3D vector, enclosed
1911 in arrow brackets and separated by commas</param> 2470 in arrow brackets and separated by commas</param>
1912 </member> 2471 </member>
1913 <member name="M:OpenMetaverse.Vector3.RotationBetween(OpenMetaverse.Vector3,OpenMetaverse.Vector3)"> 2472 <member name="M:OpenMetaverse.Vector3.RotationBetween(OpenMetaverse.Vector3,OpenMetaverse.Vector3)">
@@ -1940,586 +2499,152 @@
1940 Cross product between two vectors 2499 Cross product between two vectors
1941 </summary> 2500 </summary>
1942 </member> 2501 </member>
1943 <member name="F:OpenMetaverse.Vector3.Zero"> 2502 <member name="T:OpenMetaverse.Vector3d">
1944 <summary>A vector with a value of 0,0,0</summary>
1945 </member>
1946 <member name="F:OpenMetaverse.Vector3.One">
1947 <summary>A vector with a value of 1,1,1</summary>
1948 </member>
1949 <member name="F:OpenMetaverse.Vector3.UnitX">
1950 <summary>A unit vector facing forward (X axis), value 1,0,0</summary>
1951 </member>
1952 <member name="F:OpenMetaverse.Vector3.UnitY">
1953 <summary>A unit vector facing left (Y axis), value 0,1,0</summary>
1954 </member>
1955 <member name="F:OpenMetaverse.Vector3.UnitZ">
1956 <summary>A unit vector facing up (Z axis), value 0,0,1</summary>
1957 </member>
1958 <member name="T:OpenMetaverse.PCode">
1959 <summary> 2503 <summary>
1960 Identifier code for primitive types 2504 A three-dimensional vector with doubleing-point values
1961 </summary> 2505 </summary>
1962 </member> 2506 </member>
1963 <member name="F:OpenMetaverse.PCode.None"> 2507 <member name="M:OpenMetaverse.Vector3d.#ctor(System.Byte[],System.Int32)">
1964 <summary>None</summary>
1965 </member>
1966 <member name="F:OpenMetaverse.PCode.Prim">
1967 <summary>A Primitive</summary>
1968 </member>
1969 <member name="F:OpenMetaverse.PCode.Avatar">
1970 <summary>A Avatar</summary>
1971 </member>
1972 <member name="F:OpenMetaverse.PCode.Grass">
1973 <summary>Linden grass</summary>
1974 </member>
1975 <member name="F:OpenMetaverse.PCode.NewTree">
1976 <summary>Linden tree</summary>
1977 </member>
1978 <member name="F:OpenMetaverse.PCode.ParticleSystem">
1979 <summary>A primitive that acts as the source for a particle stream</summary>
1980 </member>
1981 <member name="F:OpenMetaverse.PCode.Tree">
1982 <summary>A Linden tree</summary>
1983 </member>
1984 <member name="T:OpenMetaverse.PrimFlags">
1985 <summary> 2508 <summary>
1986 Primary parameters for primitives such as Physics Enabled or Phantom 2509 Constructor, builds a vector from a byte array
1987 </summary> 2510 </summary>
2511 <param name="byteArray">Byte array containing three eight-byte doubles</param>
2512 <param name="pos">Beginning position in the byte array</param>
1988 </member> 2513 </member>
1989 <member name="F:OpenMetaverse.PrimFlags.None"> 2514 <member name="F:OpenMetaverse.Vector3d.X">
1990 <summary>Deprecated</summary> 2515 <summary>X value</summary>
1991 </member>
1992 <member name="F:OpenMetaverse.PrimFlags.Physics">
1993 <summary>Whether physics are enabled for this object</summary>
1994 </member>
1995 <member name="F:OpenMetaverse.PrimFlags.CreateSelected">
1996 <summary></summary>
1997 </member>
1998 <member name="F:OpenMetaverse.PrimFlags.ObjectModify">
1999 <summary></summary>
2000 </member>
2001 <member name="F:OpenMetaverse.PrimFlags.ObjectCopy">
2002 <summary></summary>
2003 </member>
2004 <member name="F:OpenMetaverse.PrimFlags.ObjectAnyOwner">
2005 <summary></summary>
2006 </member>
2007 <member name="F:OpenMetaverse.PrimFlags.ObjectYouOwner">
2008 <summary></summary>
2009 </member>
2010 <member name="F:OpenMetaverse.PrimFlags.Scripted">
2011 <summary></summary>
2012 </member>
2013 <member name="F:OpenMetaverse.PrimFlags.Touch">
2014 <summary>Whether this object contains an active touch script</summary>
2015 </member>
2016 <member name="F:OpenMetaverse.PrimFlags.ObjectMove">
2017 <summary></summary>
2018 </member>
2019 <member name="F:OpenMetaverse.PrimFlags.Money">
2020 <summary>Whether this object can receive payments</summary>
2021 </member>
2022 <member name="F:OpenMetaverse.PrimFlags.Phantom">
2023 <summary>Whether this object is phantom (no collisions)</summary>
2024 </member>
2025 <member name="F:OpenMetaverse.PrimFlags.InventoryEmpty">
2026 <summary></summary>
2027 </member>
2028 <member name="F:OpenMetaverse.PrimFlags.JointHinge">
2029 <summary></summary>
2030 </member>
2031 <member name="F:OpenMetaverse.PrimFlags.JointP2P">
2032 <summary></summary>
2033 </member>
2034 <member name="F:OpenMetaverse.PrimFlags.JointLP2P">
2035 <summary></summary>
2036 </member>
2037 <member name="F:OpenMetaverse.PrimFlags.JointWheel">
2038 <summary>Deprecated</summary>
2039 </member>
2040 <member name="F:OpenMetaverse.PrimFlags.AllowInventoryDrop">
2041 <summary></summary>
2042 </member>
2043 <member name="F:OpenMetaverse.PrimFlags.ObjectTransfer">
2044 <summary></summary>
2045 </member>
2046 <member name="F:OpenMetaverse.PrimFlags.ObjectGroupOwned">
2047 <summary></summary>
2048 </member>
2049 <member name="F:OpenMetaverse.PrimFlags.ObjectYouOfficer">
2050 <summary>Deprecated</summary>
2051 </member>
2052 <member name="F:OpenMetaverse.PrimFlags.CameraDecoupled">
2053 <summary></summary>
2054 </member>
2055 <member name="F:OpenMetaverse.PrimFlags.AnimSource">
2056 <summary></summary>
2057 </member>
2058 <member name="F:OpenMetaverse.PrimFlags.CameraSource">
2059 <summary></summary>
2060 </member>
2061 <member name="F:OpenMetaverse.PrimFlags.CastShadows">
2062 <summary></summary>
2063 </member>
2064 <member name="F:OpenMetaverse.PrimFlags.DieAtEdge">
2065 <summary>Server flag, will not be sent to clients. Specifies that
2066 the object is destroyed when it touches a simulator edge</summary>
2067 </member> 2516 </member>
2068 <member name="F:OpenMetaverse.PrimFlags.ReturnAtEdge"> 2517 <member name="F:OpenMetaverse.Vector3d.Y">
2069 <summary>Server flag, will not be sent to clients. Specifies that 2518 <summary>Y value</summary>
2070 the object will be returned to the owner's inventory when it
2071 touches a simulator edge</summary>
2072 </member> 2519 </member>
2073 <member name="F:OpenMetaverse.PrimFlags.Sandbox"> 2520 <member name="F:OpenMetaverse.Vector3d.Z">
2074 <summary>Server flag, will not be sent to clients.</summary> 2521 <summary>Z value</summary>
2075 </member> 2522 </member>
2076 <member name="F:OpenMetaverse.PrimFlags.Flying"> 2523 <member name="F:OpenMetaverse.Vector3d.Zero">
2077 <summary>Server flag, will not be sent to client. Specifies that 2524 <summary>A vector with a value of 0,0,0</summary>
2078 the object is hovering/flying</summary>
2079 </member> 2525 </member>
2080 <member name="F:OpenMetaverse.PrimFlags.ObjectOwnerModify"> 2526 <member name="F:OpenMetaverse.Vector3d.One">
2081 <summary></summary> 2527 <summary>A vector with a value of 1,1,1</summary>
2082 </member> 2528 </member>
2083 <member name="F:OpenMetaverse.PrimFlags.TemporaryOnRez"> 2529 <member name="F:OpenMetaverse.Vector3d.UnitX">
2084 <summary></summary> 2530 <summary>A unit vector facing forward (X axis), value of 1,0,0</summary>
2085 </member> 2531 </member>
2086 <member name="F:OpenMetaverse.PrimFlags.Temporary"> 2532 <member name="F:OpenMetaverse.Vector3d.UnitY">
2087 <summary></summary> 2533 <summary>A unit vector facing left (Y axis), value of 0,1,0</summary>
2088 </member> 2534 </member>
2089 <member name="F:OpenMetaverse.PrimFlags.ZlibCompressed"> 2535 <member name="F:OpenMetaverse.Vector3d.UnitZ">
2090 <summary></summary> 2536 <summary>A unit vector facing up (Z axis), value of 0,0,1</summary>
2091 </member> 2537 </member>
2092 <member name="T:OpenMetaverse.SoundFlags"> 2538 <member name="M:OpenMetaverse.Vector3d.ApproxEquals(OpenMetaverse.Vector3d,System.Double)">
2093 <summary> 2539 <summary>
2094 Sound flags for sounds attached to primitives 2540 Test if this vector is equal to another vector, within a given
2541 tolerance range
2095 </summary> 2542 </summary>
2543 <param name="vec">Vector to test against</param>
2544 <param name="tolerance">The acceptable magnitude of difference
2545 between the two vectors</param>
2546 <returns>True if the magnitude of difference between the two vectors
2547 is less than the given tolerance, otherwise false</returns>
2096 </member> 2548 </member>
2097 <member name="F:OpenMetaverse.SoundFlags.None"> 2549 <member name="M:OpenMetaverse.Vector3d.CompareTo(OpenMetaverse.Vector3d)">
2098 <summary></summary>
2099 </member>
2100 <member name="F:OpenMetaverse.SoundFlags.Loop">
2101 <summary></summary>
2102 </member>
2103 <member name="F:OpenMetaverse.SoundFlags.SyncMaster">
2104 <summary></summary>
2105 </member>
2106 <member name="F:OpenMetaverse.SoundFlags.SyncSlave">
2107 <summary></summary>
2108 </member>
2109 <member name="F:OpenMetaverse.SoundFlags.SyncPending">
2110 <summary></summary>
2111 </member>
2112 <member name="F:OpenMetaverse.SoundFlags.Queue">
2113 <summary></summary>
2114 </member>
2115 <member name="F:OpenMetaverse.SoundFlags.Stop">
2116 <summary></summary>
2117 </member>
2118 <member name="T:OpenMetaverse.Material">
2119 <summary> 2550 <summary>
2120 Material type for a primitive 2551 IComparable.CompareTo implementation
2121 </summary> 2552 </summary>
2122 </member> 2553 </member>
2123 <member name="F:OpenMetaverse.Material.Stone"> 2554 <member name="M:OpenMetaverse.Vector3d.IsFinite">
2124 <summary></summary>
2125 </member>
2126 <member name="F:OpenMetaverse.Material.Metal">
2127 <summary></summary>
2128 </member>
2129 <member name="F:OpenMetaverse.Material.Glass">
2130 <summary></summary>
2131 </member>
2132 <member name="F:OpenMetaverse.Material.Wood">
2133 <summary></summary>
2134 </member>
2135 <member name="F:OpenMetaverse.Material.Flesh">
2136 <summary></summary>
2137 </member>
2138 <member name="F:OpenMetaverse.Material.Plastic">
2139 <summary></summary>
2140 </member>
2141 <member name="F:OpenMetaverse.Material.Rubber">
2142 <summary></summary>
2143 </member>
2144 <member name="F:OpenMetaverse.Material.Light">
2145 <summary></summary>
2146 </member>
2147 <member name="T:OpenMetaverse.PrimType">
2148 <summary> 2555 <summary>
2149 Used in a helper function to roughly determine prim shape 2556 Test if this vector is composed of all finite numbers
2150 </summary> 2557 </summary>
2151 </member> 2558 </member>
2152 <member name="T:OpenMetaverse.ExtraParamType"> 2559 <member name="M:OpenMetaverse.Vector3d.FromBytes(System.Byte[],System.Int32)">
2153 <summary> 2560 <summary>
2154 Extra parameters for primitives, these flags are for features that have 2561 Builds a vector from a byte array
2155 been added after the original ObjectFlags that has all eight bits
2156 reserved already
2157 </summary> 2562 </summary>
2563 <param name="byteArray">Byte array containing a 24 byte vector</param>
2564 <param name="pos">Beginning position in the byte array</param>
2158 </member> 2565 </member>
2159 <member name="F:OpenMetaverse.ExtraParamType.Flexible"> 2566 <member name="M:OpenMetaverse.Vector3d.GetBytes">
2160 <summary>Whether this object has flexible parameters</summary>
2161 </member>
2162 <member name="F:OpenMetaverse.ExtraParamType.Light">
2163 <summary>Whether this object has light parameters</summary>
2164 </member>
2165 <member name="F:OpenMetaverse.ExtraParamType.Sculpt">
2166 <summary>Whether this object is a sculpted prim</summary>
2167 </member>
2168 <member name="T:OpenMetaverse.JointType">
2169 <summary> 2567 <summary>
2170 2568 Returns the raw bytes for this vector
2171 </summary> 2569 </summary>
2570 <returns>A 24 byte array containing X, Y, and Z</returns>
2172 </member> 2571 </member>
2173 <member name="F:OpenMetaverse.JointType.Invalid"> 2572 <member name="M:OpenMetaverse.Vector3d.ToBytes(System.Byte[],System.Int32)">
2174 <summary></summary>
2175 </member>
2176 <member name="F:OpenMetaverse.JointType.Hinge">
2177 <summary></summary>
2178 </member>
2179 <member name="F:OpenMetaverse.JointType.Point">
2180 <summary></summary>
2181 </member>
2182 <member name="T:OpenMetaverse.SculptType">
2183 <summary> 2573 <summary>
2184 2574 Writes the raw bytes for this vector to a byte array
2185 </summary> 2575 </summary>
2576 <param name="dest">Destination byte array</param>
2577 <param name="pos">Position in the destination array to start
2578 writing. Must be at least 24 bytes before the end of the array</param>
2186 </member> 2579 </member>
2187 <member name="F:OpenMetaverse.SculptType.None"> 2580 <member name="M:OpenMetaverse.Vector3d.Parse(System.String)">
2188 <summary></summary>
2189 </member>
2190 <member name="F:OpenMetaverse.SculptType.Sphere">
2191 <summary></summary>
2192 </member>
2193 <member name="F:OpenMetaverse.SculptType.Torus">
2194 <summary></summary>
2195 </member>
2196 <member name="F:OpenMetaverse.SculptType.Plane">
2197 <summary></summary>
2198 </member>
2199 <member name="F:OpenMetaverse.SculptType.Cylinder">
2200 <summary></summary>
2201 </member>
2202 <member name="F:OpenMetaverse.SculptType.Mesh">
2203 <summary></summary>
2204 </member>
2205 <member name="F:OpenMetaverse.SculptType.Invert">
2206 <summary></summary>
2207 </member>
2208 <member name="F:OpenMetaverse.SculptType.Mirror">
2209 <summary></summary>
2210 </member>
2211 <member name="T:OpenMetaverse.FaceType">
2212 <summary> 2581 <summary>
2213 2582 Parse a vector from a string
2214 </summary> 2583 </summary>
2584 <param name="val">A string representation of a 3D vector, enclosed
2585 in arrow brackets and separated by commas</param>
2215 </member> 2586 </member>
2216 <member name="F:OpenMetaverse.FaceType.PathBegin"> 2587 <member name="M:OpenMetaverse.Vector3d.SmoothStep(OpenMetaverse.Vector3d,OpenMetaverse.Vector3d,System.Double)">
2217 <summary></summary>
2218 </member>
2219 <member name="F:OpenMetaverse.FaceType.PathEnd">
2220 <summary></summary>
2221 </member>
2222 <member name="F:OpenMetaverse.FaceType.InnerSide">
2223 <summary></summary>
2224 </member>
2225 <member name="F:OpenMetaverse.FaceType.ProfileBegin">
2226 <summary></summary>
2227 </member>
2228 <member name="F:OpenMetaverse.FaceType.ProfileEnd">
2229 <summary></summary>
2230 </member>
2231 <member name="F:OpenMetaverse.FaceType.OuterSide0">
2232 <summary></summary>
2233 </member>
2234 <member name="F:OpenMetaverse.FaceType.OuterSide1">
2235 <summary></summary>
2236 </member>
2237 <member name="F:OpenMetaverse.FaceType.OuterSide2">
2238 <summary></summary>
2239 </member>
2240 <member name="F:OpenMetaverse.FaceType.OuterSide3">
2241 <summary></summary>
2242 </member>
2243 <member name="T:OpenMetaverse.ObjectCategory">
2244 <summary> 2588 <summary>
2245 2589 Interpolates between two vectors using a cubic equation
2246 </summary> 2590 </summary>
2247 </member> 2591 </member>
2248 <member name="F:OpenMetaverse.ObjectCategory.Invalid"> 2592 <member name="M:OpenMetaverse.Vector3d.ToString">
2249 <summary></summary>
2250 </member>
2251 <member name="F:OpenMetaverse.ObjectCategory.None">
2252 <summary></summary>
2253 </member>
2254 <member name="F:OpenMetaverse.ObjectCategory.Owner">
2255 <summary></summary>
2256 </member>
2257 <member name="F:OpenMetaverse.ObjectCategory.Group">
2258 <summary></summary>
2259 </member>
2260 <member name="F:OpenMetaverse.ObjectCategory.Other">
2261 <summary></summary>
2262 </member>
2263 <member name="F:OpenMetaverse.ObjectCategory.Selected">
2264 <summary></summary>
2265 </member>
2266 <member name="F:OpenMetaverse.ObjectCategory.Temporary">
2267 <summary></summary>
2268 </member>
2269 <member name="T:OpenMetaverse.AttachmentPoint">
2270 <summary>
2271 Attachment points for objects on avatar bodies
2272 </summary>
2273 <remarks>
2274 Both InventoryObject and InventoryAttachment types can be attached
2275 </remarks>
2276 </member>
2277 <member name="F:OpenMetaverse.AttachmentPoint.Default">
2278 <summary>Right hand if object was not previously attached</summary>
2279 </member>
2280 <member name="F:OpenMetaverse.AttachmentPoint.Chest">
2281 <summary>Chest</summary>
2282 </member>
2283 <member name="F:OpenMetaverse.AttachmentPoint.Skull">
2284 <summary>Skull</summary>
2285 </member>
2286 <member name="F:OpenMetaverse.AttachmentPoint.LeftShoulder">
2287 <summary>Left shoulder</summary>
2288 </member>
2289 <member name="F:OpenMetaverse.AttachmentPoint.RightShoulder">
2290 <summary>Right shoulder</summary>
2291 </member>
2292 <member name="F:OpenMetaverse.AttachmentPoint.LeftHand">
2293 <summary>Left hand</summary>
2294 </member>
2295 <member name="F:OpenMetaverse.AttachmentPoint.RightHand">
2296 <summary>Right hand</summary>
2297 </member>
2298 <member name="F:OpenMetaverse.AttachmentPoint.LeftFoot">
2299 <summary>Left foot</summary>
2300 </member>
2301 <member name="F:OpenMetaverse.AttachmentPoint.RightFoot">
2302 <summary>Right foot</summary>
2303 </member>
2304 <member name="F:OpenMetaverse.AttachmentPoint.Spine">
2305 <summary>Spine</summary>
2306 </member>
2307 <member name="F:OpenMetaverse.AttachmentPoint.Pelvis">
2308 <summary>Pelvis</summary>
2309 </member>
2310 <member name="F:OpenMetaverse.AttachmentPoint.Mouth">
2311 <summary>Mouth</summary>
2312 </member>
2313 <member name="F:OpenMetaverse.AttachmentPoint.Chin">
2314 <summary>Chin</summary>
2315 </member>
2316 <member name="F:OpenMetaverse.AttachmentPoint.LeftEar">
2317 <summary>Left ear</summary>
2318 </member>
2319 <member name="F:OpenMetaverse.AttachmentPoint.RightEar">
2320 <summary>Right ear</summary>
2321 </member>
2322 <member name="F:OpenMetaverse.AttachmentPoint.LeftEyeball">
2323 <summary>Left eyeball</summary>
2324 </member>
2325 <member name="F:OpenMetaverse.AttachmentPoint.RightEyeball">
2326 <summary>Right eyeball</summary>
2327 </member>
2328 <member name="F:OpenMetaverse.AttachmentPoint.Nose">
2329 <summary>Nose</summary>
2330 </member>
2331 <member name="F:OpenMetaverse.AttachmentPoint.RightUpperArm">
2332 <summary>Right upper arm</summary>
2333 </member>
2334 <member name="F:OpenMetaverse.AttachmentPoint.RightForearm">
2335 <summary>Right forearm</summary>
2336 </member>
2337 <member name="F:OpenMetaverse.AttachmentPoint.LeftUpperArm">
2338 <summary>Left upper arm</summary>
2339 </member>
2340 <member name="F:OpenMetaverse.AttachmentPoint.LeftForearm">
2341 <summary>Left forearm</summary>
2342 </member>
2343 <member name="F:OpenMetaverse.AttachmentPoint.RightHip">
2344 <summary>Right hip</summary>
2345 </member>
2346 <member name="F:OpenMetaverse.AttachmentPoint.RightUpperLeg">
2347 <summary>Right upper leg</summary>
2348 </member>
2349 <member name="F:OpenMetaverse.AttachmentPoint.RightLowerLeg">
2350 <summary>Right lower leg</summary>
2351 </member>
2352 <member name="F:OpenMetaverse.AttachmentPoint.LeftHip">
2353 <summary>Left hip</summary>
2354 </member>
2355 <member name="F:OpenMetaverse.AttachmentPoint.LeftUpperLeg">
2356 <summary>Left upper leg</summary>
2357 </member>
2358 <member name="F:OpenMetaverse.AttachmentPoint.LeftLowerLeg">
2359 <summary>Left lower leg</summary>
2360 </member>
2361 <member name="F:OpenMetaverse.AttachmentPoint.Stomach">
2362 <summary>Stomach</summary>
2363 </member>
2364 <member name="F:OpenMetaverse.AttachmentPoint.LeftPec">
2365 <summary>Left pectoral</summary>
2366 </member>
2367 <member name="F:OpenMetaverse.AttachmentPoint.RightPec">
2368 <summary>Right pectoral</summary>
2369 </member>
2370 <member name="F:OpenMetaverse.AttachmentPoint.HUDCenter2">
2371 <summary>HUD Center position 2</summary>
2372 </member>
2373 <member name="F:OpenMetaverse.AttachmentPoint.HUDTopRight">
2374 <summary>HUD Top-right</summary>
2375 </member>
2376 <member name="F:OpenMetaverse.AttachmentPoint.HUDTop">
2377 <summary>HUD Top</summary>
2378 </member>
2379 <member name="F:OpenMetaverse.AttachmentPoint.HUDTopLeft">
2380 <summary>HUD Top-left</summary>
2381 </member>
2382 <member name="F:OpenMetaverse.AttachmentPoint.HUDCenter">
2383 <summary>HUD Center</summary>
2384 </member>
2385 <member name="F:OpenMetaverse.AttachmentPoint.HUDBottomLeft">
2386 <summary>HUD Bottom-left</summary>
2387 </member>
2388 <member name="F:OpenMetaverse.AttachmentPoint.HUDBottom">
2389 <summary>HUD Bottom</summary>
2390 </member>
2391 <member name="F:OpenMetaverse.AttachmentPoint.HUDBottomRight">
2392 <summary>HUD Bottom-right</summary>
2393 </member>
2394 <member name="T:OpenMetaverse.Tree">
2395 <summary> 2593 <summary>
2396 Tree foliage types 2594 Get a formatted string representation of the vector
2397 </summary> 2595 </summary>
2596 <returns>A string representation of the vector</returns>
2398 </member> 2597 </member>
2399 <member name="F:OpenMetaverse.Tree.Pine1"> 2598 <member name="M:OpenMetaverse.Vector3d.ToRawString">
2400 <summary>Pine1 tree</summary>
2401 </member>
2402 <member name="F:OpenMetaverse.Tree.Oak">
2403 <summary>Oak tree</summary>
2404 </member>
2405 <member name="F:OpenMetaverse.Tree.TropicalBush1">
2406 <summary>Tropical Bush1</summary>
2407 </member>
2408 <member name="F:OpenMetaverse.Tree.Palm1">
2409 <summary>Palm1 tree</summary>
2410 </member>
2411 <member name="F:OpenMetaverse.Tree.Dogwood">
2412 <summary>Dogwood tree</summary>
2413 </member>
2414 <member name="F:OpenMetaverse.Tree.TropicalBush2">
2415 <summary>Tropical Bush2</summary>
2416 </member>
2417 <member name="F:OpenMetaverse.Tree.Palm2">
2418 <summary>Palm2 tree</summary>
2419 </member>
2420 <member name="F:OpenMetaverse.Tree.Cypress1">
2421 <summary>Cypress1 tree</summary>
2422 </member>
2423 <member name="F:OpenMetaverse.Tree.Cypress2">
2424 <summary>Cypress2 tree</summary>
2425 </member>
2426 <member name="F:OpenMetaverse.Tree.Pine2">
2427 <summary>Pine2 tree</summary>
2428 </member>
2429 <member name="F:OpenMetaverse.Tree.Plumeria">
2430 <summary>Plumeria</summary>
2431 </member>
2432 <member name="F:OpenMetaverse.Tree.WinterPine1">
2433 <summary>Winter pinetree1</summary>
2434 </member>
2435 <member name="F:OpenMetaverse.Tree.WinterAspen">
2436 <summary>Winter Aspen tree</summary>
2437 </member>
2438 <member name="F:OpenMetaverse.Tree.WinterPine2">
2439 <summary>Winter pinetree2</summary>
2440 </member>
2441 <member name="F:OpenMetaverse.Tree.Eucalyptus">
2442 <summary>Eucalyptus tree</summary>
2443 </member>
2444 <member name="F:OpenMetaverse.Tree.Fern">
2445 <summary>Fern</summary>
2446 </member>
2447 <member name="F:OpenMetaverse.Tree.Eelgrass">
2448 <summary>Eelgrass</summary>
2449 </member>
2450 <member name="F:OpenMetaverse.Tree.SeaSword">
2451 <summary>Sea Sword</summary>
2452 </member>
2453 <member name="F:OpenMetaverse.Tree.Kelp1">
2454 <summary>Kelp1 plant</summary>
2455 </member>
2456 <member name="F:OpenMetaverse.Tree.BeachGrass1">
2457 <summary>Beach grass</summary>
2458 </member>
2459 <member name="F:OpenMetaverse.Tree.Kelp2">
2460 <summary>Kelp2 plant</summary>
2461 </member>
2462 <member name="T:OpenMetaverse.Grass">
2463 <summary> 2599 <summary>
2464 Grass foliage types 2600 Get a string representation of the vector elements with up to three
2601 decimal digits and separated by spaces only
2465 </summary> 2602 </summary>
2603 <returns>Raw string representation of the vector</returns>
2466 </member> 2604 </member>
2467 <member name="F:OpenMetaverse.Grass.Grass0"> 2605 <member name="M:OpenMetaverse.Vector3d.op_Modulus(OpenMetaverse.Vector3d,OpenMetaverse.Vector3d)">
2468 <summary></summary> 2606 <summary>
2469 </member> 2607 Cross product between two vectors
2470 <member name="F:OpenMetaverse.Grass.Grass1"> 2608 </summary>
2471 <summary></summary>
2472 </member>
2473 <member name="F:OpenMetaverse.Grass.Grass2">
2474 <summary></summary>
2475 </member>
2476 <member name="F:OpenMetaverse.Grass.Grass3">
2477 <summary></summary>
2478 </member>
2479 <member name="F:OpenMetaverse.Grass.Grass4">
2480 <summary></summary>
2481 </member>
2482 <member name="F:OpenMetaverse.Grass.Undergrowth1">
2483 <summary></summary>
2484 </member> 2609 </member>
2485 <member name="T:OpenMetaverse.ClickAction"> 2610 <member name="M:OpenMetaverse.Vector4.#ctor(System.Byte[],System.Int32)">
2486 <summary> 2611 <summary>
2487 Action associated with clicking on an object 2612 Constructor, builds a vector from a byte array
2488 </summary> 2613 </summary>
2614 <param name="byteArray">Byte array containing four four-byte floats</param>
2615 <param name="pos">Beginning position in the byte array</param>
2489 </member> 2616 </member>
2490 <member name="F:OpenMetaverse.ClickAction.Touch"> 2617 <member name="F:OpenMetaverse.Vector4.X">
2491 <summary>Touch object</summary> 2618 <summary>X value</summary>
2492 </member> 2619 </member>
2493 <member name="F:OpenMetaverse.ClickAction.Sit"> 2620 <member name="F:OpenMetaverse.Vector4.Y">
2494 <summary>Sit on object</summary> 2621 <summary>Y value</summary>
2495 </member> 2622 </member>
2496 <member name="F:OpenMetaverse.ClickAction.Buy"> 2623 <member name="F:OpenMetaverse.Vector4.Z">
2497 <summary>Purchase object or contents</summary> 2624 <summary>Z value</summary>
2498 </member> 2625 </member>
2499 <member name="F:OpenMetaverse.ClickAction.Pay"> 2626 <member name="F:OpenMetaverse.Vector4.W">
2500 <summary>Pay the object</summary> 2627 <summary>W value</summary>
2501 </member> 2628 </member>
2502 <member name="F:OpenMetaverse.ClickAction.OpenTask"> 2629 <member name="F:OpenMetaverse.Vector4.Zero">
2503 <summary>Open task inventory</summary> 2630 <summary>A vector with a value of 0,0,0,0</summary>
2504 </member> 2631 </member>
2505 <member name="F:OpenMetaverse.ClickAction.PlayMedia"> 2632 <member name="F:OpenMetaverse.Vector4.One">
2506 <summary>Play parcel media</summary> 2633 <summary>A vector with a value of 1,1,1,1</summary>
2507 </member> 2634 </member>
2508 <member name="F:OpenMetaverse.ClickAction.OpenMedia"> 2635 <member name="F:OpenMetaverse.Vector4.UnitX">
2509 <summary>Open parcel media</summary> 2636 <summary>A vector with a value of 1,0,0,0</summary>
2510 </member> 2637 </member>
2511 <member name="T:OpenMetaverse.Vector2"> 2638 <member name="F:OpenMetaverse.Vector4.UnitY">
2512 <summary> 2639 <summary>A vector with a value of 0,1,0,0</summary>
2513 A two-dimensional vector with floating-point values
2514 </summary>
2515 </member> 2640 </member>
2516 <member name="F:OpenMetaverse.Vector2.X"> 2641 <member name="F:OpenMetaverse.Vector4.UnitZ">
2517 <summary>X value</summary> 2642 <summary>A vector with a value of 0,0,1,0</summary>
2518 </member> 2643 </member>
2519 <member name="F:OpenMetaverse.Vector2.Y"> 2644 <member name="F:OpenMetaverse.Vector4.UnitW">
2520 <summary>Y value</summary> 2645 <summary>A vector with a value of 0,0,0,1</summary>
2521 </member> 2646 </member>
2522 <member name="M:OpenMetaverse.Vector2.ApproxEquals(OpenMetaverse.Vector2,System.Single)"> 2647 <member name="M:OpenMetaverse.Vector4.ApproxEquals(OpenMetaverse.Vector4,System.Single)">
2523 <summary> 2648 <summary>
2524 Test if this vector is equal to another vector, within a given 2649 Test if this vector is equal to another vector, within a given
2525 tolerance range 2650 tolerance range
@@ -2530,73 +2655,43 @@
2530 <returns>True if the magnitude of difference between the two vectors 2655 <returns>True if the magnitude of difference between the two vectors
2531 is less than the given tolerance, otherwise false</returns> 2656 is less than the given tolerance, otherwise false</returns>
2532 </member> 2657 </member>
2533 <member name="M:OpenMetaverse.Vector2.IsFinite"> 2658 <member name="M:OpenMetaverse.Vector4.CompareTo(OpenMetaverse.Vector4)">
2534 <summary> 2659 <summary>
2535 Test if this vector is composed of all finite numbers 2660 IComparable.CompareTo implementation
2536 </summary> 2661 </summary>
2537 </member> 2662 </member>
2538 <member name="M:OpenMetaverse.Vector2.CompareTo(OpenMetaverse.Vector2)"> 2663 <member name="M:OpenMetaverse.Vector4.IsFinite">
2539 <summary> 2664 <summary>
2540 IComparable.CompareTo implementation 2665 Test if this vector is composed of all finite numbers
2541 </summary> 2666 </summary>
2542 </member> 2667 </member>
2543 <member name="M:OpenMetaverse.Vector2.FromBytes(System.Byte[],System.Int32)"> 2668 <member name="M:OpenMetaverse.Vector4.FromBytes(System.Byte[],System.Int32)">
2544 <summary> 2669 <summary>
2545 Builds a vector from a byte array 2670 Builds a vector from a byte array
2546 </summary> 2671 </summary>
2547 <param name="byteArray">Byte array containing two four-byte floats</param> 2672 <param name="byteArray">Byte array containing a 16 byte vector</param>
2548 <param name="pos">Beginning position in the byte array</param> 2673 <param name="pos">Beginning position in the byte array</param>
2549 </member> 2674 </member>
2550 <member name="M:OpenMetaverse.Vector2.GetBytes"> 2675 <member name="M:OpenMetaverse.Vector4.GetBytes">
2551 <summary> 2676 <summary>
2552 Returns the raw bytes for this vector 2677 Returns the raw bytes for this vector
2553 </summary> 2678 </summary>
2554 <returns>An eight-byte array containing X and Y</returns> 2679 <returns>A 16 byte array containing X, Y, Z, and W</returns>
2555 </member> 2680 </member>
2556 <member name="M:OpenMetaverse.Vector2.ToBytes(System.Byte[],System.Int32)"> 2681 <member name="M:OpenMetaverse.Vector4.ToBytes(System.Byte[],System.Int32)">
2557 <summary> 2682 <summary>
2558 Writes the raw bytes for this vector to a byte array 2683 Writes the raw bytes for this vector to a byte array
2559 </summary> 2684 </summary>
2560 <param name="dest">Destination byte array</param> 2685 <param name="dest">Destination byte array</param>
2561 <param name="pos">Position in the destination array to start 2686 <param name="pos">Position in the destination array to start
2562 writing. Must be at least 8 bytes before the end of the array</param> 2687 writing. Must be at least 16 bytes before the end of the array</param>
2563 </member>
2564 <member name="M:OpenMetaverse.Vector2.Parse(System.String)">
2565 <summary>
2566 Parse a vector from a string
2567 </summary>
2568 <param name="val">A string representation of a 2D vector, enclosed
2569 in arrow brackets and separated by commas</param>
2570 </member>
2571 <member name="M:OpenMetaverse.Vector2.SmoothStep(OpenMetaverse.Vector2,OpenMetaverse.Vector2,System.Single)">
2572 <summary>
2573 Interpolates between two vectors using a cubic equation
2574 </summary>
2575 </member>
2576 <member name="M:OpenMetaverse.Vector2.ToString">
2577 <summary>
2578 Get a formatted string representation of the vector
2579 </summary>
2580 <returns>A string representation of the vector</returns>
2581 </member> 2688 </member>
2582 <member name="M:OpenMetaverse.Vector2.ToRawString"> 2689 <member name="M:OpenMetaverse.Vector4.ToRawString">
2583 <summary> 2690 <summary>
2584 Get a string representation of the vector elements with up to three 2691 Get a string representation of the vector elements with up to three
2585 decimal digits and separated by spaces only 2692 decimal digits and separated by spaces only
2586 </summary> 2693 </summary>
2587 <returns>Raw string representation of the vector</returns> 2694 <returns>Raw string representation of the vector</returns>
2588 </member> 2695 </member>
2589 <member name="F:OpenMetaverse.Vector2.Zero">
2590 <summary>A vector with a value of 0,0</summary>
2591 </member>
2592 <member name="F:OpenMetaverse.Vector2.One">
2593 <summary>A vector with a value of 1,1</summary>
2594 </member>
2595 <member name="F:OpenMetaverse.Vector2.UnitX">
2596 <summary>A vector with a value of 1,0</summary>
2597 </member>
2598 <member name="F:OpenMetaverse.Vector2.UnitY">
2599 <summary>A vector with a value of 0,1</summary>
2600 </member>
2601 </members> 2696 </members>
2602</doc> 2697</doc>
diff --git a/bin/OpenMetaverseTypes.dll b/bin/OpenMetaverseTypes.dll
index e3356c9..fd9ce88 100755
--- a/bin/OpenMetaverseTypes.dll
+++ b/bin/OpenMetaverseTypes.dll
Binary files differ
diff --git a/bin/OpenSimDefaults.ini b/bin/OpenSimDefaults.ini
index ededdc05..6d699fd 100644
--- a/bin/OpenSimDefaults.ini
+++ b/bin/OpenSimDefaults.ini
@@ -498,7 +498,7 @@
498 ; clients login by starting each connection more slowly. Disabled by 498 ; clients login by starting each connection more slowly. Disabled by
499 ; default 499 ; default
500 ; 500 ;
501 enable_adaptive_throttles = true 501 enable_adaptive_throttles = false
502 502
503 ; Per-client bytes per second rates for the various throttle categories. 503 ; Per-client bytes per second rates for the various throttle categories.
504 ; These are default values that will be overriden by clients. These 504 ; These are default values that will be overriden by clients. These
@@ -1519,7 +1519,7 @@
1519 GroupsCacheTimeout = 30 1519 GroupsCacheTimeout = 30
1520 1520
1521 ; Specify which messaging module to use for groups messaging and if it's enabled 1521 ; Specify which messaging module to use for groups messaging and if it's enabled
1522 MessagingModule = GroupsMessagingModule 1522 ;MessagingModule = GroupsMessagingModule
1523 ;MessagingEnabled = true 1523 ;MessagingEnabled = true
1524 1524
1525 ; Service connectors to the Groups Service. Select one depending on whether you're using a Flotsam XmlRpc backend or a SimianGrid backend 1525 ; Service connectors to the Groups Service. Select one depending on whether you're using a Flotsam XmlRpc backend or a SimianGrid backend
diff --git a/bin/OpenSimDefaults.ini.example b/bin/OpenSimDefaults.ini.example
new file mode 100644
index 0000000..ef8f73a
--- /dev/null
+++ b/bin/OpenSimDefaults.ini.example
@@ -0,0 +1,1325 @@
1[Startup]
2 ; Set this to true if you want to log crashes to disk
3 ; this can be useful when submitting bug reports.
4 save_crashes = false
5
6 ; Directory to save crashes to if above is enabled
7 ; (default is /opensimdir/crashes/*.txt or C:\opensim\crashes\*.txt)
8 crash_dir = "crashes"
9
10 ; Place to create a PID file
11 ; PIDFile = "/tmp/my.pid"
12
13 ; Http proxy support for llHTTPRequest and dynamic texture loading
14 ; Set HttpProxy to the URL for your proxy server if you would like
15 ; to proxy llHTTPRequests through a firewall
16 ; HttpProxy = "http://proxy.com"
17 ; Set HttpProxyExceptions to a list of regular expressions for
18 ; URLs that you don't want going through the proxy such as servers
19 ; inside your firewall, separate patterns with a ';'
20 ; HttpProxyExceptions = ".mydomain.com;localhost"
21
22 startup_console_commands_file = "startup_commands.txt"
23 shutdown_console_commands_file = "shutdown_commands.txt"
24
25 ; To run a script every few minutes, set the script filename here
26 ; timer_Script = "filename"
27
28 ; ##
29 ; ## SYSTEM
30 ; ##
31
32 ; Sets the method that OpenSim will use to fire asynchronous
33 ; events. Valid values are UnsafeQueueUserWorkItem,
34 ; QueueUserWorkItem, BeginInvoke, SmartThreadPool, and Thread.
35 ; SmartThreadPool is reported to work well on Mono/Linux, but
36 ; UnsafeQueueUserWorkItem has been benchmarked with better
37 ; performance on .NET/Windows
38 async_call_method = SmartThreadPool
39
40 ; Max threads to allocate on the FireAndForget thread pool
41 ; when running with the SmartThreadPool option above
42 MaxPoolThreads = 15
43
44 ; ##
45 ; ## CLIENTS
46 ; ##
47
48 ; Enables EventQueueGet Service.
49 EventQueue = true
50
51 ; Set this to the DLL containing the client stack to use.
52 clientstack_plugin="OpenSim.Region.ClientStack.LindenUDP.dll"
53
54 ; ##
55 ; ## REGIONS
56 ; ##
57
58 ; Determine where OpenSimulator looks for the files which tell it which regions to server
59 ; Defaults to "filesystem" if this setting isn't present
60 region_info_source = "filesystem"
61 ; region_info_source = "web"
62
63 ; Determines where the region XML files are stored if you are loading these from the filesystem.
64 ; Defaults to bin/Regions in your OpenSimulator installation directory
65 ; regionload_regionsdir="C:\somewhere\xmlfiles\"
66
67 ; Determines the page from which regions xml is retrieved if you are loading these from the web
68 ; The XML here has the same format as it does on the filesystem (including the <Root> tag),
69 ; except that everything is also enclosed in a <Regions> tag.
70 ; regionload_webserver_url = "http://example.com/regions.xml";
71
72 ; Draw objects on maptile. This step might take a long time if you've got a large number of
73 ; objects, so you can turn it off here if you'd like.
74 DrawPrimOnMapTile = true
75 ; Use terrain texture for maptiles if true, use shaded green if false
76 TextureOnMapTile = false
77
78 ; Maximum total size, and maximum size where a prim can be physical
79 NonPhysicalPrimMax = 256
80 PhysicalPrimMax = 10 ; (I think this was moved to the Regions.ini!)
81 ClampPrimSize = false
82
83 ; Allow scripts to cross region boundaries. These are recompiled on the new region.
84 AllowScriptCrossing = false
85
86 ; Allow compiled script binary code to cross region boundaries.
87 ; If you set this to "true", any region that can teleport to you can
88 ; inject ARBITRARY BINARY CODE into your system. Use at your own risk.
89 ; YOU HAVE BEEN WARNED!!!
90 TrustBinaries = false
91
92 ; Combine all contiguous regions into one large megaregion
93 ; Order your regions from South to North, West to East in your regions.ini and then set this to true
94 ; Warning! Don't use this with regions that have existing content!, This will likely break them
95 CombineContiguousRegions = false
96
97 ; If you have only one region in an instance, or to avoid the many bugs
98 ; that you can trigger in modules by restarting a region, set this to
99 ; true to make the entire instance exit instead of restarting the region.
100 ; This is meant to be used on systems where some external system like
101 ; Monit will restart any instance that exits, thereby making the shutdown
102 ; into a restart.
103 ;InworldRestartShutsDown = false
104
105 ; ##
106 ; ## PRIM STORAGE
107 ; ##
108
109 ; Persistence of changed objects happens during regular sweeps. The following control that behaviour to
110 ; prevent frequently changing objects from heavily loading the region data store.
111 ; If both of these values are set to zero then persistence of all changed objects will happen on every sweep.
112 ;
113 ; Objects will be considered for persistance in the next sweep when they have not changed for this number of seconds
114 MinimumTimeBeforePersistenceConsidered = 60
115 ; Objects will always be considered for persistance in the next sweep if the first change occurred this number of seconds ago
116 MaximumTimeBeforePersistenceConsidered = 600
117
118 ; Should avatars in neighbor sims see objects in this sim?
119 see_into_this_sim_from_neighbor = true
120
121 ; ##
122 ; ## PHYSICS
123 ; ##
124
125 ; if you would like to allow prims to be physical and move by physics with the physical checkbox in the client set this to true.
126 physical_prim = true
127
128 ; Select a mesher here.
129 ;
130 ; Meshmerizer properly handles complex prims by using triangle meshes.
131 ; Note that only the ODE physics engine currently deals with meshed prims in a satisfactory way
132 ;
133 ; ZeroMesher is faster but leaves the physics engine to model the mesh using the basic shapes that it supports
134 ; Usually this is only a box
135
136 meshing = Meshmerizer
137 ;meshing = ZeroMesher
138
139 ; Choose one of the physics engines below
140 ; OpenDynamicsEngine is by some distance the most developed physics engine
141 ; basicphysics effectively does not model physics at all, making all objects phantom
142
143 physics = OpenDynamicsEngine
144 ;physics = basicphysics
145 ;physics = POS
146 ;physics = modified_BulletX
147
148 ; ##
149 ; ## PERMISSIONS
150 ; ##
151
152 ;permissionmodules = "DefaultPermissionsModule"
153
154 ;If any of the specified permissions modules fail to load, quit?
155 SecurePermissionsLoading = true
156
157 ; If set to false, then, in theory, the server never carries out permission checks (allowing anybody to copy
158 ; any item, etc. This may not yet be implemented uniformally.
159 ; If set to true, then all permissions checks are carried out
160 ; Default is false
161 serverside_object_permissions = false
162
163 allow_grid_gods = false
164
165 ; This allows somne control over permissions
166 ; please note that this still doesn't duplicate SL, and is not intended to
167 ;region_owner_is_god = true
168 ;region_manager_is_god = false
169 ;parcel_owner_is_god = true
170
171 ; Control user types that are allowed to create new scripts
172 ; Only enforced if serviceside_object_permissions is true
173 ;
174 ; Current possible values are
175 ; all - anyone can create scripts (subject to normal permissions)
176 ; gods - only administrators can create scripts (as long as allow_grid_gods is true)
177 ; Default value is all
178 ; allowed_script_creators = all
179
180 ; Control user types that are allowed to edit (save) scripts
181 ; Only enforced if serviceside_object_permissions is true
182 ;
183 ; Current possible values are
184 ; all - anyone can edit scripts (subject to normal permissions)
185 ; gods - only administrators can edit scripts (as long as allow_grid_gods is true)
186 ; Default value is all
187 ; allowed_script_editors = all
188
189 ; ##
190 ; ## SCRIPT ENGINE
191 ; ##
192
193 DefaultScriptEngine = "XEngine"
194
195 ; ##
196 ; ## WORLD MAP
197 ; ##
198
199 ;WorldMapModule = "WorldMap"
200 ;MapImageModule = "MapImageModule"
201 ; Set to false to not generate any maptiles
202 ;GenerateMaptiles = "true"
203 ; Refresh (in seconds) the map tile periodically
204 ;MaptileRefresh = 0
205 ; If not generating maptiles, use this static texture asset ID
206 ;MaptileStaticUUID = "00000000-0000-0000-0000-000000000000"
207
208 ; ##
209 ; ## EMAIL MODULE
210 ; ##
211
212 ;emailmodule = DefaultEmailModule
213
214 ; ##
215 ; ## ANIMATIONS
216 ; ##
217
218 ; If enabled, enableFlySlow will change the primary fly state to
219 ; FLYSLOW, and the "always run" state will be the regular fly.
220
221 enableflyslow = false
222
223 ; PreJump is an additional animation state, but it probably
224 ; won't look right until the physics engine supports it
225 ; (i.e delays takeoff for a moment)
226
227 ; This is commented so it will come on automatically once it's
228 ; supported.
229
230 ; enableprejump = true
231
232 ; Simulator Stats URI
233 ; Enable JSON simulator data by setting a URI name (case sensitive)
234 ; Stats_URI = "jsonSimStats"
235
236 ; Make OpenSim start all regions woth logins disabled. They will need
237 ; to be enabled from the console if this is set
238 ; StartDisabled = false
239
240 ; Image decoding. Use CSJ2K for layer boundary decoding if true,
241 ; OpenJPEG if false
242 ; UseCSJ2K = true
243
244[SMTP]
245 enabled=false
246
247 ;enabled=true
248 ;internal_object_host=lsl.opensim.local
249 ;host_domain_header_from=127.0.0.1
250 ;SMTP_SERVER_HOSTNAME=127.0.0.1
251 ;SMTP_SERVER_PORT=25
252 ;SMTP_SERVER_LOGIN=foo
253 ;SMTP_SERVER_PASSWORD=bar
254
255[Network]
256 ConsoleUser = "Test"
257 ConsolePass = "secret"
258 http_listener_port = 9000
259 console_port = 0
260
261 ; ssl config: Experimental! The auto https config only really works definately on windows XP now
262 ; you need a Cert Request/Signed pair installed in the MY store with the CN specified below
263 ; you can use https on other platforms, but you'll need to configure the httpapi yourself for now
264 http_listener_ssl = false ; Also create a SSL server
265 http_listener_cn = "localhost" ; Use the cert with the common name
266 http_listener_sslport = 9001 ; Use this port for SSL connections
267 http_listener_ssl_cert = "" ; Currently unused, but will be used for OSHttpServer
268
269 ; Hostname to use in llRequestURL/llRequestSecureURL
270 ; if not defined - default machine name is being used
271 ; (on Windows this mean NETBIOS name - useably only inside local network)
272 ; ExternalHostNameForLSL=127.0.0.1
273
274 ; What is reported as the "X-Secondlife-Shard"
275 ; Defaults to the user server url if not set
276 ; The old default is "OpenSim", set here for compatibility
277 shard = "OpenSim"
278
279 ; What is reported as the "User-Agent" when using llHTTPRequest
280 ; Defaults to not sent if not set here. See the notes section in the wiki at
281 ; http://wiki.secondlife.com/wiki/LlHTTPRequest for comments on adding
282 ; " (Mozilla Compatible)" to the text where there are problems with a web server
283 ;user_agent = "OpenSim LSL (Mozilla Compatible)"
284
285[XMLRPC]
286 ; ##
287 ; ## Scripting XMLRPC mapper
288 ; ##
289
290 ; If enabled, this will post an event, "xmlrpc_uri(string)" to the
291 ; script concurrently with the first remote_data event.
292 ; This will contain the fully qualified URI an external site needs
293 ; to use to send XMLRPC requests to that script
294
295 ;XmlRpcRouterModule = "XmlRpcRouterModule"
296 ;XmlRpcPort = 20800
297
298[ClientStack.LindenUDP]
299 ; Set this to true to process incoming packets asynchronously. Networking is
300 ; already separated from packet handling with a queue, so this will only
301 ; affect whether networking internals such as packet decoding and
302 ; acknowledgement accounting are done synchronously or asynchronously
303 ;
304 ;async_packet_handling = false
305
306 ; The client socket receive buffer size determines how many
307 ; incoming requests we can process; the default on .NET is 8192
308 ; which is about 2 4k-sized UDP datagrams. On mono this is
309 ; whatever the underlying operating system has as default; for
310 ; example, ubuntu 8.04 or SLES11 have about 111k, which is about
311 ; 27 4k-sized UDP datagrams (on linux platforms you can [as root]
312 ; do "sysctl net.core.rmem_default" to find out what your system
313 ; uses a default socket receive buffer size.
314 ;
315 ; client_socket_rcvbuf_size allows you to specify the receive
316 ; buffer size LLUDPServer should use. NOTE: this will be limited
317 ; by the system's settings for the maximum client receive buffer
318 ; size (on linux systems you can set that with "sysctl -w
319 ; net.core.rmem_max=X")
320 ;
321 ;client_socket_rcvbuf_size = 8388608
322
323 ; Maximum outbound bytes per second for a single scene. This can be used to
324 ; throttle total outbound UDP traffic for a simulator. The default value is
325 ; 0, meaning no throttling at the scene level. The example given here is
326 ; 20 megabits
327 ;
328 ;scene_throttle_max_bps = 2621440
329
330 ; Maximum bits per second to send to any single client. This will override
331 ; the user's viewer preference settings. The default value is 0, meaning no
332 ; aggregate throttling on clients (only per-category throttling). The
333 ; example given here is 1.5 megabits
334 ;
335 ;client_throttle_max_bps = 196608
336
337 ; Per-client bytes per second rates for the various throttle categories.
338 ; These are default values that will be overriden by clients
339 ;
340 ;resend_default = 12500
341 ;land_default = 1000
342 ;wind_default = 1000
343 ;cloud_default = 1000
344 ;task_default = 1000
345 ;texture_default = 1000
346 ;asset_default = 1000
347 ;state_default = 1000
348
349 ; Per-client maximum burst rates in bytes per second for the various
350 ; throttle categories. These are default values that will be overriden by
351 ; clients
352 ;
353 ;resend_limit = 18750
354 ;land_limit = 29750
355 ;wind_limit = 18750
356 ;cloud_limit = 18750
357 ;task_limit = 18750
358 ;texture_limit = 55750
359 ;asset_limit = 27500
360 ;state_limit = 37000
361
362 ; Configures how ObjectUpdates are aggregated. These numbers
363 ; do not literally mean how many updates will be put in each
364 ; packet that goes over the wire, as packets are
365 ; automatically split on a 1400 byte boundary. These control
366 ; the balance between responsiveness of interest list updates
367 ; and total throughput. Higher numbers will ensure more full-
368 ; sized packets and faster sending of data, but more delay in
369 ; updating interest lists
370 ;
371 ;PrimTerseUpdatesPerPacket = 25
372 ;AvatarTerseUpdatesPerPacket = 10
373 ;PrimFullUpdatesPerPacket = 100
374
375 ; TextureSendLimit determines how many packets will be put on
376 ; the outgoing queue each cycle. Like the settings above, this
377 ; is a balance between responsiveness to priority updates and
378 ; total throughput. Higher numbers will give a better
379 ; throughput at the cost of reduced responsiveness to client
380 ; priority changes or transfer aborts
381 ;
382 ;TextureSendLimit = 20
383
384 ; Quash and remove any light properties from attachments not on the
385 ; hands. This allows flashlights and lanterns to function, but kills
386 ; silly vanity "Facelights" dead. Sorry, head mounted miner's lamps
387 ; will also be affected.
388 ;
389 ;DisableFacelights = "false"
390
391[Chat]
392 ; Controls whether the chat module is enabled. Default is true.
393 enabled = true;
394
395 ; Distance in meters that whispers should travel. Default is 10m
396 whisper_distance = 10
397
398 ; Distance in meters that ordinary chat should travel. Default is 30m
399 say_distance = 30
400
401 ; Distance in meters that shouts should travel. Default is 100m
402 shout_distance = 100
403
404 ; Append a prefix to the god avatar names appearing in chat whilst in god mode
405 ; admin_prefix = "@"
406
407
408[Messaging]
409 ; Control which region module is used for instant messaging.
410 ; Default is InstantMessageModule (this is the name of the core IM module as well as the setting)
411 InstantMessageModule = InstantMessageModule
412 ; MessageTransferModule = MessageTransferModule
413 ; OfflineMessageModule = OfflineMessageModule
414 ; OfflineMessageURL = http://yourserver/Offline.php
415 ; MuteListModule = MuteListModule
416 ; MuteListURL = http://yourserver/Mute.php
417
418 ; Control whether group messages are forwarded to offline users. Default is true.
419 ; ForwardOfflineGroupMessages = true
420
421
422[ODEPhysicsSettings]
423 ;##
424 ;## World Settings
425 ;##
426
427 ;Gravity. Feel like falling up? change world_gravityz to 9.8 instead of -9.8. m/s
428 world_gravityx = 0
429 world_gravityy = 0
430 world_gravityz = -9.8
431
432 ; World Step size. (warning these are dangerous. Changing these will probably cause your scene to explode dramatically)
433 ; reference: fps = (0.09375/ODE_STEPSIZE) * 1000;
434 world_stepsize = 0.020
435 world_internal_steps_without_collisions = 10
436
437 ;World Space settings. Affects memory consumption vs Collider CPU time for avatar and physical prim
438 world_hashspace_size_low = -4
439 world_hashSpace_size_high = 128
440
441 ;Dynamic space settings Affects memory consumption vs Collider CPU time for static prim
442 meters_in_small_space = 29.9
443 small_hashspace_size_low = -4
444 small_hashspace_size_high = 66
445
446 ; ##
447 ; ## Contact properties. (the stuff that happens when things come in contact with each other)
448 ; ##
449
450 ; surface layer around geometries other geometries can sink into before generating a contact
451 world_contact_surface_layer = 0.001
452
453 ; Filtering collisions helps keep things stable physics wise, but sometimes
454 ; it can be overzealous. If you notice bouncing, chances are it's that.
455 filter_collisions = false
456
457 ; Non Moving Terrain Contact (avatar isn't moving)
458 nm_terraincontact_friction = 255.0
459 nm_terraincontact_bounce = 0.1
460 nm_terraincontact_erp = 0.1025
461
462 ; Moving Terrain Contact (avatar is moving)
463 m_terraincontact_friction = 75.0
464 m_terraincontact_bounce = 0.05
465 m_terrainContact_erp = 0.05025
466
467 ; Moving Avatar to object Contact
468 m_avatarobjectcontact_friction = 75.0
469 m_avatarobjectcontact_bounce = 0.1
470
471 ; Object to Object Contact and Non-Moving Avatar to object
472 objectcontact_friction = 250.0
473 objectcontact_bounce = 0.2
474
475 ; ##
476 ; ## Avatar Control
477 ; ##
478
479 ; PID Controller Settings. These affect the math that causes the avatar to reach the
480 ; desired velocity
481 ; See http://en.wikipedia.org/wiki/PID_controller
482
483 av_pid_derivative_linux = 2200.0
484 av_pid_proportional_linux = 900.0;
485
486 av_pid_derivative_win = 2200.0
487 av_pid_proportional_win = 900.0;
488
489 ;girth of the avatar. Adds radius to the height also
490 av_capsule_radius = 0.37
491
492 ; Max force permissible to use to keep the avatar standing up straight
493 av_capsule_standup_tensor_win = 550000
494 av_capsule_standup_tensor_linux = 550000
495
496 ; specifies if the capsule should be tilted (=true; old compatibility mode)
497 ; or straight up-and-down (=false; better and more consistent physics behavior)
498 av_capsule_tilted = false
499
500 ; used to calculate mass of avatar.
501 ; float AVvolume = (float) (Math.PI*Math.Pow(CAPSULE_RADIUS, 2)*CAPSULE_LENGTH);
502 ; av_density * AVvolume;
503 av_density = 80
504
505 ; use this value to cut 52% of the height the sim gives us
506 av_height_fudge_factor = 0.52
507
508 ; Movement. Smaller is faster.
509
510 ; speed of movement with Always Run off
511 av_movement_divisor_walk = 1.3
512
513 ; speed of movement with Always Run on
514 av_movement_divisor_run = 0.8
515
516 ; When the avatar flies, it will be moved up by this amount off the ground (in meters)
517 minimum_ground_flight_offset = 3.0
518
519 ; ##
520 ; ## Object options
521 ; ##
522
523 ; used in the mass calculation.
524 geometry_default_density = 10.000006836
525
526 ; amount of ODE steps where object is non moving for ODE to automatically put it to sleep
527 body_frames_auto_disable = 20
528
529 ; used to control llMove2Target
530 body_pid_derivative = 35
531 body_pid_gain = 25
532
533 ; maximum number of contact points to generate per collision
534 contacts_per_collision = 80
535
536 ; amount of time a geom/body will try to cross a region border before it gets disabled
537 geom_crossing_failures_before_outofbounds = 5
538
539 ; start throttling the object updates if object comes in contact with 3 or more other objects
540 geom_contactpoints_start_throttling = 3
541
542 ; send 1 update for every x updates below when throttled
543 geom_updates_before_throttled_update = 15
544
545 ; Used for llSetStatus. How rigid the object rotation is held on the axis specified
546 body_motor_joint_maxforce_tensor_linux = 5
547 body_motor_joint_maxforce_tensor_win = 5
548
549 ; Maximum mass an object can be before it is clamped
550 maximum_mass_object = 10000.01
551
552 ; ##
553 ; ## Sculpted Prim settings
554 ; ##
555
556 ; Do we want to mesh sculpted prim to collide like they look?
557 mesh_sculpted_prim = true
558
559 ; number^2 non-physical level of detail of the sculpt texture. 32x32 - 1024 verticies
560 mesh_lod = 32
561
562 ; number^2 physical level of detail of the sculpt texture. 16x16 - 256 verticies
563 mesh_physical_lod = 16
564
565 ; ##
566 ; ## Physics logging settings - logfiles are saved to *.DIF files
567 ; ##
568
569 ; default is false
570 ;physics_logging = true
571 ;; every n simulation iterations, the physics snapshot file is updated
572 ;physics_logging_interval = 50
573 ;; append to existing physics logfile, or overwrite existing logfiles?
574 ;physics_logging_append_existing_logfile = true
575
576 ; ##
577 ; ## Joint support
578 ; ##
579
580 ; if you would like physics joints to be enabled through a special naming convention in the client, set this to true.
581 ; (see NINJA Physics documentation, http://opensimulator.org/wiki/NINJA_Physics)
582 ; default is false
583 ;use_NINJA_physics_joints = true
584
585 ; ##
586 ; ## additional meshing options
587 ; ##
588
589 ; physical collision mesh proxies are normally created for complex prim shapes, and collisions for simple boxes and
590 ; spheres are computed algorithmically. If you would rather have mesh proxies for simple prims, you can set this to
591 ; true. Note that this will increase memory usage and region startup time. Default is false.
592 ;force_simple_prim_meshing = true
593
594
595[RemoteAdmin]
596 enabled = false
597
598 ; Set this to a nonzero value to have remote admin use a different port
599 port = 0
600
601 ; This password is required to make any XMLRPC call (should be set as the "password" parameter)
602 access_password = unknown
603
604 ; set this variable to true if you want the create_region XmlRpc
605 ; call to unconditionally enable voice on all parcels for a newly
606 ; created region [default: false]
607 create_region_enable_voice = false
608
609 ; set this variable to false if you want the create_region XmlRpc
610 ; call to create all regions as private per default (can be
611 ; overridden in the XmlRpc call) [default: true]
612 create_region_public = false
613
614 ; the create_region XmlRpc call uses region_file_template to generate
615 ; the file name of newly create regions (if they are created
616 ; persistent). the parameter available are:
617 ; {0} - X location
618 ; {1} - Y location
619 ; {2} - region UUID
620 ; {3} - region port
621 ; {4} - region name with " ", ":", "/" mapped to "_"
622 region_file_template = "{0}x{1}-{2}.ini"
623
624 ; we can limit the number of regions that XmlRpcCreateRegion will
625 ; allow by setting this to a positive, non-0 number: as long as the
626 ; number of regions is below region_limits, XmlRpcCreateRegion will
627 ; succeed. setting region_limit to 0 disables the check.
628 ; default is 0
629 ;region_limit = 0
630
631 ; enable only those methods you deem to be appropriate using a | delimited whitelist
632 ; for example, enabled_methods = admin_broadcast|admin_region_query|admin_save_oar|admin_save_xml
633 ; if this parameter is not specified but enabled = true, all methods will be available
634 enabled_methods = all
635
636 ; specify the default appearance for an avatar created through the remote admin interface
637 ; This will only take effect is the file specified by the default_appearance setting below exists
638 ;default_male = Default Male
639 ;default_female = Default Female
640
641 ; update appearance copies inventory items and wearables of default avatars. if this value is false
642 ; (default), just worn assets are copied to the Clothes folder; if true, all Clothes and Bodyparts
643 ; subfolders are copied. the receiver will wear the same items the default avatar did wear.
644 ;copy_folders = false
645
646 ; path to default appearance XML file that specifies the look of the default avatars
647 ;default_appearance = default_appearance.xml
648
649[RestPlugins]
650 ; Change this to true to enable REST Plugins. This must be true if you wish to use
651 ; REST Region or REST Asset and Inventory Plugins
652 enabled = false
653 god_key = SECRET
654 prefix = /admin
655
656
657[RestRegionPlugin]
658 ; Change this to true to enable the REST Region Plugin
659 enabled = false
660
661
662[RestHandler]
663 ; Change this to true to enable the REST Asset and Inventory Plugin
664 enabled = false
665 authenticate = true
666 secured = true
667 extended-escape = true
668 realm = OpenSim REST
669 dump-asset = false
670 path-fill = true
671 dump-line-size = 32
672 flush-on-error = true
673
674
675; Uncomment the following for IRC bridge
676; experimental, so if it breaks... keep both parts... yada yada
677; also, not good error detection when it fails
678;[IRC]
679 ;enabled = true ; you need to set this otherwise it won't connect
680 ;server = name.of.irc.server.on.the.net
681 ;; user password - only use this if the server requires one
682 ;password = mypass
683 ;nick = OpenSimBotNameProbablyMakeThisShorter
684 ;channel = #the_irc_channel_you_want_to_connect_to
685 ;user = "USER OpenSimBot 8 * :I'm an OpenSim to IRC bot"
686 ;port = 6667
687 ;; channel to listen for configuration commands
688 ;commands_enabled = false
689 ;command_channel = 2777
690 ;report_clients = true
691 ;; relay private chat connections
692 ;; relay_private_channels = true: will relay IRC chat from/to private in-world channels
693 ;; relay_private_channel_out -- channel to send messages out to the IRC bridge
694 ;; relay_private_channel_in -- channel to receive message from the IRC bridge
695 ;; relay_chat = false: IRC bridge will not relay normal chat
696 ;; access_password -- simple security device
697 ;;
698 ;; so, to just relay chat from an IRC channel to in-world region and vice versa:
699 ;;
700 ;; relay_private_channels = false
701 ;; relay_chat = true
702 ;;
703 ;; to relay chat only to/from private in-world channels:
704 ;;
705 ;; relay_chat = false
706 ;; relay_private_channels = true
707 ;; relay_private_channel_in = 2226
708 ;; relay_private_channel_out = 2225
709 ;;
710 ;; in this example, all chat coming in from IRC will be send out via
711 ;; in-world channel 2226, and all chat from in-world channel 2225 will
712 ;; be relayed to the IRC channel.
713 ;;
714 ;relay_private_channels = false
715 ;relay_private_channel_in = 2226
716 ;relay_private_channel_out = 2225
717 ;relay_chat = true
718 ;access_password = foobar
719
720 ;;fallback_region = name of "default" region
721 ;;MSGformat fields : 0=botnick, 1=user, 2=region, 3=message
722 ;; must start with "PRIVMSG {0} : " or irc server will get upset
723 ;;for <bot>:<user in region> :<message>
724 ;;msgformat = "PRIVMSG {0} :<{1} in {2}>: {3}"
725 ;;for <bot>:<message> - <user of region> :
726 ;msgformat = "PRIVMSG {0} : {3} - {1} of {2}"
727 ;;for <bot>:<message> - from <user> :
728 ;;msgformat = "PRIVMSG {0} : {3} - from {1}"
729
730 ;; exclude_list allows you to stop the IRC connector from announcing the
731 ;;arrival and departure of certain users. For example: admins, bots.
732
733 ;exclude_list=User 1,User 2,User 3
734
735
736;[CMS]
737 ;enabled = true
738 ;channel = 345
739
740
741; Uncomment the following to control the progression of daytime
742; in the Sim. The defaults are what is shown below
743;[Sun]
744 ; number of wall clock hours for an opensim day. 24.0 would mean realtime
745 ;day_length = 4
746 ; Year length in days
747 ;year_length = 60
748 ; Day to Night Ratio
749 ;day_night_offset = 0.45
750 ; send a Sun update every update_interval # of frames. A lower number will
751 ; make for smoother sun transition at the cost of network
752 ;update_interval = 100
753
754
755[Wind]
756 ; Enables the wind module. Default is true
757 enabled = true
758
759 ; How often should wind be updated, as a function of world frames. Approximately 50 frames a second
760 wind_update_rate = 150
761
762 ; The Default Wind Plugin to load
763 wind_plugin = SimpleRandomWind
764
765 ; These settings are specific to the ConfigurableWind plugin
766 ; To use ConfigurableWind as the default, simply change wind_plugin to ConfigurableWind and uncomment the following.
767 ; avg_strength = 5.0
768 ; avg_direction = 0.0
769 ; var_strength = 0.0
770 ; var_direction = 0.0
771 ; rate_change = 1.0
772
773 ; This setting is specific to the SimpleRandomWind plugin
774 ; Adjusts wind strength. 0.0 = no wind, 1.0 = normal wind. Default is 1.0
775 strength = 1.0
776
777
778[Cloud]
779 ; Enable this to generate classic particle clouds above the sim.
780 ; default is disabled - turn it on here
781 enabled = false
782
783 ; Density of cloud cover 0.0 to 1.0 Defult 0.5
784 density = 0.5
785
786 ; update interval for the cloud cover data returned by llCloud().
787 ; default is 1000
788 cloud_update_rate = 1000
789
790[LightShare]
791
792 ; This enables the transmission of Windlight scenes to supporting clients, such as the Meta7 viewer.
793 ; It has no ill effect on viewers which do not support server-side windlight settings.
794 ; Currently we only have support for MySQL databases.
795 enable_windlight = false;
796
797[Trees]
798 ; Enable this to allow the tree module to manage your sim trees, including growing, reproducing and dying
799 ; default is false
800 active_trees = false
801
802 ; Density of tree population
803 tree_density = 1000.0
804
805
806[VectorRender]
807
808 ; the font to use for rendering text (default: Arial)
809 ; font_name = "Arial"
810
811
812[LL-Functions]
813 ; Set the following to true to allow administrator owned scripts to execute console commands
814 ; currently unused
815 ; AllowosConsoleCommand=false
816
817 AllowGodFunctions = false
818
819 ; Maximum number of llListen events we allow per script
820 ; Set this to 0 to have no limit imposed.
821 max_listens_per_script = 64
822
823
824[DataSnapshot]
825 ; The following set of configs pertains to search.
826 ; Set index_sims to true to enable search engines to index your searchable data
827 ; If false, no data will be exposed, DataSnapshot module will be off, and you can ignore the rest of these search-related configs
828 ; default is false
829 index_sims = false
830
831 ; The variable data_exposure controls what the regions expose:
832 ; minimum: exposes only things explicitly marked for search
833 ; all: exposes everything
834 data_exposure = minimum
835
836 ; If search is on, change this to your grid name; will be ignored for standalones
837 gridname = "OSGrid"
838
839 ; Period between data snapshots, in seconds. 20 minutes, for starters, so that you see the initial changes fast.
840 ; Later, you may want to increase this to 3600 (1 hour) or more
841 default_snapshot_period = 1200
842
843 ; This will be created in bin, if it doesn't exist already. It will hold the data snapshots.
844 snapshot_cache_directory = "DataSnapshot"
845
846 ; This semicolon-separated string serves to notify specific data services about the existence
847 ; of this sim. Uncomment if you want to index your data with this and/or other search providers.
848 ;data_services="http://metaverseink.com/cgi-bin/register.py"
849
850
851[Economy]
852 ; These economy values get used in the BetaGridLikeMoneyModule. - This module is for demonstration only -
853
854 ; Enables selling things for $0
855 SellEnabled = "false"
856
857 ; 45000 is the highest value that the sim could possibly report because of protocol constraints
858 ObjectCapacity = 45000
859
860 ; Money Unit fee to upload textures, animations etc
861 PriceUpload = 0
862
863 ; Money Unit fee to create groups
864 PriceGroupCreate = 0
865
866 ; We don't really know what the rest of these values do. These get sent to the client
867 ; These taken from Agni at a Public Telehub. Change at your own risk.
868 ObjectCount = 0
869 PriceEnergyUnit = 100
870 PriceObjectClaim = 10
871 PricePublicObjectDecay = 4
872 PricePublicObjectDelete = 4
873 PriceParcelClaim = 1
874 PriceParcelClaimFactor = 1
875
876 PriceRentLight = 5
877 TeleportMinPrice = 2
878 TeleportPriceExponent = 2
879 EnergyEfficiency = 1
880 PriceObjectRent = 1
881 PriceObjectScaleFactor = 10
882 PriceParcelRent = 1
883
884[Git]
885Enabled = true
886RepoPath = "git"
887
888;How many seconds between the scheduled commits?
889CommitInterval = 21600
890
891;Disable all except the initial commit?
892DisableNonEssentialCommits = false
893
894;Should we automatically commit when necessary to avoid objects never making it into the repo?
895UseSafetyCommit = true
896
897
898[SVN]
899 Enabled = false
900 Directory = SVNmodule\repo
901 URL = "svn://your.repo.here/"
902 Username = "user"
903 Password = "password"
904 ImportOnStartup = false
905 Autosave = false
906 AutoSavePeriod = 15 ; Number of minutes between autosave backups
907
908
909[XEngine]
910 ; Enable this engine in this OpenSim instance
911 Enabled = true
912
913 ; How many threads to keep alive even if nothing is happening
914 MinThreads = 2
915
916 ; How many threads to start at maximum load
917 MaxThreads = 100
918
919 ; Time a thread must be idle (in seconds) before it dies
920 IdleTimeout = 60
921
922 ; Thread priority ("Lowest", "BelowNormal", "Normal", "AboveNormal", "Highest")
923 Priority = "BelowNormal"
924
925 ; Maximum number of events to queue for a script (excluding timers)
926 MaxScriptEventQueue = 300
927
928 ; Stack size per thread created
929 ThreadStackSize = 262144
930
931 ; Set this to true (the default) to load each script into a separate
932 ; AppDomain. Setting this to false will load all script assemblies into the
933 ; current AppDomain, which will reduce the per-script overhead at the
934 ; expense of reduced security and the inability to garbage collect the
935 ; script assemblies
936 AppDomainLoading = true
937
938 ; Rate to poll for asynchronous command replies (ms)
939 ; currently unused
940 ;AsyncLLCommandLoopms = 50
941
942 ; Save the source of all compiled scripts
943 WriteScriptSourceToDebugFile = false
944
945 ; Default language for scripts
946 DefaultCompileLanguage = lsl
947
948 ; List of allowed languages (lsl,vb,js,cs)
949 ; AllowedCompilers=lsl,cs,js,vb.
950 ; *warning*, non lsl languages have access to static methods such as System.IO.File. Enable at your own risk.
951 AllowedCompilers=lsl
952
953 ; Compile debug info (line numbers) into the script assemblies
954 CompileWithDebugInformation = true
955
956 ; Allow the user of mod* functions. This allows a script to pass messages
957 ; to a region module via the modSendCommand() function
958 ; Default is false
959 AllowMODFunctions = false
960
961 ; Allow the use of os* functions (some are dangerous)
962 AllowOSFunctions = false
963
964 ; Allow the user of LightShare functions
965 AllowLightShareFunctions = false
966
967 ; Threat level to allow, one of None, VeryLow, Low, Moderate, High, VeryHigh, Severe
968 OSFunctionThreatLevel = VeryLow
969
970 ; Interval (s) between background save of script states
971 SaveInterval = 120
972
973 ; Interval (s) between maintenance runs (0 = disable)
974 MaintenanceInterval = 10
975
976 ; Time a script can spend in an event handler before it is interrupted
977 EventLimit = 30
978
979 ; If a script overruns it's event limit, kill the script?
980 KillTimedOutScripts = false
981
982 ; Sets the multiplier for the scripting delays
983 ScriptDelayFactor = 1.0
984
985 ; The factor the 10 m distances llimits are multiplied by
986 ScriptDistanceLimitFactor = 1.0
987
988 ; Maximum length of notecard line read
989 ; Increasing this to large values potentially opens
990 ; up the system to malicious scripters
991 ; NotecardLineReadCharsMax = 255
992
993 ; Sensor settings
994 SensorMaxRange = 96.0
995 SensorMaxResults = 16
996
997 ; OS Functions enable/disable
998 ; For each function, you can add one line, as shown
999 ; The default for all functions allows them if below threat level
1000
1001 ; true allows the use of the function unconditionally
1002 ; Allow_osSetRegionWaterHeight = true
1003
1004 ; false disables the function completely
1005 ; Allow_osSetRegionWaterHeight = false
1006
1007 ; Comma separated list of UUIDS allows the function for that list of UUIDS
1008 ; Allow_osSetRegionWaterHeight = 888760cb-a3cf-43ac-8ea4-8732fd3ee2bb
1009
1010 ; You can also use script creators as the uuid
1011 ; Creators_osSetRegionWaterHeight = <uuid>, ...
1012
1013 ; If both Allow_ and Creators_ are given, effective permissions
1014 ; are the union of the two.
1015
1016 ; Allow for llCreateLink and llBreakLink to work without asking for permission
1017 ; only enable this in a trusted environment otherwise you may be subject to hijacking
1018 ; AutomaticLinkPermission = false
1019
1020 ; Disable underground movement of prims (default true); set to
1021 ; false to allow script controlled underground positioning of
1022 ; prims
1023 ; DisableUndergroundMovement = true
1024
1025
1026[OpenGridProtocol]
1027 ;These are the settings for the Open Grid Protocol.. the Agent Domain, Region Domain, you know..
1028 ;On/true or Off/false
1029 ogp_enabled=false
1030
1031 ;Name Prefix/suffix when using OGP
1032 ogp_firstname_prefix=""
1033 ogp_lastname_suffix="_EXTERNAL"
1034
1035
1036[Concierge]
1037 ; Enable concierge module
1038 ; Default is false
1039 enabled = false
1040
1041 ; name of the concierge
1042 whoami = "jeeves"
1043
1044 ; password for updating the welcome message templates via XmlRpc
1045 password = SECRET
1046
1047 ; regex specifying for which regions concierge service is desired; if
1048 ; empty, then for all
1049 regions = "^MeetingSpace-"
1050
1051 ; for each region that matches the regions regexp you can provide
1052 ; (optionally) a welcome template using format substitution:
1053 ; {0} is replaced with the name of the avatar entering the region
1054 ; {1} is replaced with the name of the region
1055 ; {2} is replaced with the name of the concierge (whoami variable above)
1056
1057 welcomes = /path/to/welcome/template/directory
1058
1059 ; Concierge can send attendee lists to an event broker whenever an
1060 ; avatar enters or leaves a concierged region. the URL is subject
1061 ; to format substitution:
1062 ; {0} is replaced with the region's name
1063 ; {1} is replaced with the region's UUID
1064 broker = "http://broker.place.com/{1}"
1065
1066
1067[RegionReady]
1068 ; Enable this module to get notified once all items and scripts in the region have been completely loaded and compiled
1069 ; default is false
1070 enabled = false
1071
1072 ; Channel on which to signal region readiness through a message
1073 ; formatted as follows: "{server_startup|oar_file_load},{0|1},n,[oar error]"
1074 ; - the first field indicating whether this is an initial server startup
1075 ; - the second field is a number indicating whether the OAR file loaded ok (1 == ok, 0 == error)
1076 ; - the third field is a number indicating how many scripts failed to compile
1077 ; - "oar error" if supplied, provides the error message from the OAR load
1078 channel_notify = -800
1079
1080
1081[MRM]
1082 ; Enables the Mini Region Modules Script Engine.
1083 ; default is false
1084 Enabled = false
1085
1086 ; Runs MRM in a Security Sandbox
1087 ; WARNING: DISABLING IS A SECURITY RISK.
1088 Sandboxed = true
1089
1090 ; The level sandbox to use, adjust at your OWN RISK.
1091 ; Valid values are:
1092 ; * FullTrust
1093 ; * SkipVerification
1094 ; * Execution
1095 ; * Nothing
1096 ; * LocalIntranet
1097 ; * Internet
1098 ; * Everything
1099 SandboxLevel = "Internet"
1100
1101 ; Only allow Region Owners to run MRMs
1102 ; May represent a security risk if you disable this.
1103 OwnerOnly = true
1104
1105[Hypergrid]
1106 ; Keep it false for now. Making it true requires the use of a special client in order to access inventory
1107 safemode = false
1108
1109[VivoxVoice]
1110 ; The VivoxVoice module will allow you to provide voice on your
1111 ; region(s). It uses the same voice technology as the LL grid and
1112 ; works with recent LL clients (we have tested 1.22.9.110075, so
1113 ; anything later ought to be fine as well).
1114 ;
1115 ; For this to work you need to obtain an admin account from Vivox
1116 ; that allows you to create voice accounts and region channels.
1117
1118 enabled = false
1119
1120 ; vivox voice server
1121 vivox_server = www.foobar.vivox.com
1122
1123 ; vivox SIP URI
1124 vivox_sip_uri = foobar.vivox.com
1125
1126 ; vivox admin user name
1127 vivox_admin_user = DeepThroat
1128
1129 ; vivox admin password
1130 vivox_admin_password = VoiceG4te
1131
1132 ; channel type: "channel" or "positional"
1133 ; - positional: spatial sound (default)
1134 ; - channel: normal "conference call", no spatial sound
1135 ;vivox_channel_type = positional
1136
1137 ; channel characteristics (unless you know what you are doing, i'd
1138 ; leave them as they are --- now you WILL muck around with them,
1139 ; huh? sigh)
1140
1141 ; channel distance model:
1142 ; 0 - no attenuation
1143 ; 1 - inverse distance attenuation
1144 ; 2 - linear attenuation (default)
1145 ; 3 - exponential attenuation
1146 ;vivox_channel_distance_model = 2
1147
1148 ; channel mode:
1149 ; - "open" (default)
1150 ; - "lecture"
1151 ; - "presentation"
1152 ; - "auditorium"
1153 ;vivox_channel_mode = "open"
1154
1155 ; channel roll off: rate of attenuation
1156 ; - a value between 1.0 and 4.0, default is 2.0
1157 ;vivox_channel_roll_off = 2.0
1158
1159 ; channel max range: distance at which channel is silent
1160 ; - a value between 0 and 160, default is 80
1161 ;vivox_channel_max_range = 80
1162
1163 ; channel clamping distance: distance before attenuation applies
1164 ; - a value between 0 and 160, default is 10
1165 ;vivox_channel_clamping_distance = 10
1166
1167[FreeSwitchVoice]
1168 ; In order for this to work you need a functioning FreeSWITCH PBX set up.
1169 ; Configuration details at http://opensimulator.org/wiki/Freeswitch_Module
1170 enabled = false
1171 ; FreeSWITCH server is going to contact us and ask us all sorts of things
1172 freeswitch_server_user = freeswitch
1173 freeswitch_server_pass = password
1174 freeswitch_api_prefix = /api
1175 ; external IP address of your OpenSim voice enabled region
1176 ; note: all regions running on same OpenSim.exe will be enabled
1177 freeswitch_service_server = ip.address.of.your.sim
1178 ; this should be the same port the region listens on
1179 freeswitch_service_port = 9000
1180 freeswitch_realm = ip.address.of.freeswitch.server
1181 freeswitch_sip_proxy = ip.address.of.freeswitch.server:5060
1182 ; STUN = Simple Traversal of UDP through NATs
1183 ; See http://wiki.freeswitch.org/wiki/NAT_Traversal
1184 ; stun.freeswitch.org is not guaranteed to be running so use it in production at your own risk
1185 freeswitch_attempt_stun = false
1186 freeswitch_stun_server = ip.address.of.stun.server
1187 freeswitch_echo_server = ip.address.of.freeswitch.server
1188 freeswitch_echo_port = 50505
1189 freeswitch_well_known_ip = ip.address.of.freeswitch.server
1190 ;
1191 ; Type the address of your http server here, hostname is allowed. This is provided so you can specify a hostname
1192 ; This is used by client for account verification. By default, it's the same as the freeswitch service server.
1193 ;
1194 ; opensim_well_known_http_address = Address_Of_Your_SIM_HTTP_Server_Hostname_Allowed
1195 ;
1196 freeswitch_default_timeout = 5000
1197 freeswitch_subscribe_retry = 120
1198 ; freeswitch_password_reset_url =
1199
1200[Groups]
1201 Enabled = false
1202
1203 ; This is the current groups stub in Region.CoreModules.Avatar.Groups. All the other settings below only really
1204 ; apply to the Flotsam/SimianGrid GroupsModule
1205 Module = Default
1206
1207 ; This module can use a PHP XmlRpc server from the Flotsam project at http://code.google.com/p/flotsam/
1208 ; or from the SimianGrid project at http://code.google.com/p/openmetaverse
1209 ;Module = GroupsModule
1210
1211 ; Enable Group Notices
1212 ;NoticesEnabled = true
1213
1214 ; This makes the Groups modules very chatty on the console.
1215 DebugEnabled = false
1216
1217 ; Specify which messaging module to use for groups messaging and if it's enabled
1218 ;MessagingModule = GroupsMessagingModule
1219 ;MessagingEnabled = true
1220
1221 ; Service connectors to the Groups Service. Select one depending on whether you're using a Flotsam XmlRpc backend or a SimianGrid backend
1222
1223 ; SimianGrid Service for Groups
1224 ;ServicesConnectorModule = SimianGroupsServicesConnector
1225 ;GroupsServerURI = http://mygridserver.com:82/Grid/
1226
1227 ; Flotsam XmlRpc Service for Groups
1228 ;ServicesConnectorModule = XmlRpcGroupsServicesConnector
1229 ;GroupsServerURI = http://yourxmlrpcserver.com/xmlrpc.php
1230
1231 ; XmlRpc Security settings. These must match those set on your backend groups service.
1232 ;XmlRpcServiceReadKey = 1234
1233 ;XmlRpcServiceWriteKey = 1234
1234
1235 ; Disables HTTP Keep-Alive for XmlRpcGroupsServicesConnector HTTP Requests,
1236 ; this is a work around fora problem discovered on some Windows based region servers.
1237 ; Only disable keep alive if you see a large number (dozens) of the following Exceptions:
1238 ; System.Net.WebException: The request was aborted: The request was canceled.
1239 ; XmlRpcDisableKeepAlive = false
1240
1241
1242[PacketPool]
1243 ; Enables the experimental packet pool. Yes, we've been here before.
1244 ;RecyclePackets = true;
1245 ;RecycleDataBlocks = true;
1246
1247
1248[InterestManagement]
1249 ; This section controls how state updates are prioritized for each client
1250 ; Valid values are Time, Distance, SimpleAngularDistance, and FrontBack
1251 UpdatePrioritizationScheme = FrontBack
1252 ReprioritizationEnabled = true
1253 ReprioritizationInterval = 2000.0
1254 RootReprioritizationDistance = 10.0
1255 ChildReprioritizationDistance = 20.0
1256
1257
1258[WebStats]
1259; View region statistics via a web page
1260; See http://opensimulator.org/wiki/FAQ#Region_Statistics_on_a_Web_Page
1261; Use a web browser and type in the "Login URI" + "/SStats/"
1262; For example- http://127.0.0.1:9000/SStats/
1263; enabled=false
1264
1265[LandManagement]
1266; DefaultAdministratorGroupUUID = "";
1267; DefaultAdministratorParcelName = "";
1268
1269[MediaOnAPrim]
1270 ; Enable media on a prim facilities
1271 Enabled = true;
1272
1273[MOTD]
1274Enabled = false
1275Message = "The MOTD module is working!"
1276
1277
1278;;
1279;; These are defaults that are overwritten below in [Architecture].
1280;; These defaults allow OpenSim to work out of the box with
1281;; zero configuration
1282;;
1283[AssetService]
1284 DefaultAssetLoader = "OpenSim.Framework.AssetLoader.Filesystem.dll"
1285 AssetLoaderArgs = "assets/AssetSets.xml"
1286
1287 ; Disable this to prevent the default asset set from being inserted into the
1288 ; asset store each time the region starts
1289 AssetLoaderEnabled = true
1290
1291[GridService]
1292 ;; default standalone, overridable in StandaloneCommon.ini
1293 StorageProvider = "OpenSim.Data.Null.dll:NullRegionData"
1294
1295 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1296 ;; The following is the configuration section for the new style services
1297 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1298[Architecture]
1299 ; Choose exactly one and only one of the architectures below.
1300
1301 Include-Standalone = "config-include/Standalone.ini"
1302 ;Include-HGStandalone = "config-include/StandaloneHypergrid.ini"
1303 ;Include-Grid = "config-include/Grid.ini"
1304 ;Include-HGGrid = "config-include/GridHypergrid.ini"
1305 ;Include-SimianGrid = "config-include/SimianGrid.ini"
1306 ;Include-HyperSimianGrid = "config-include/HyperSimianGrid.ini"
1307
1308 ; Then choose
1309 ; config-include/StandaloneCommon.ini.example (if you're in standlone) OR
1310 ; config-include/GridCommon.ini.example (if you're connected to a grid)
1311 ; Copy to your own .ini there (without .example extension) and edit it
1312 ; to customize your data
1313
1314
1315 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1316 ;; The below pulls in optional module config files
1317 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1318[Modules]
1319 Include-modules = "addon-modules/*/config/*.ini"
1320
1321
1322;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1323;; ENSURE [Architecture] and [Modules] Sections with their "includes"
1324;; are last to allow for overrides
1325;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
diff --git a/bin/Physics/OpenSim.Region.Physics.UbitOdePlugin.dll.config b/bin/Physics/OpenSim.Region.Physics.UbitOdePlugin.dll.config
new file mode 100644
index 0000000..c72c281
--- /dev/null
+++ b/bin/Physics/OpenSim.Region.Physics.UbitOdePlugin.dll.config
@@ -0,0 +1,7 @@
1<configuration>
2 <dllmap os="osx" dll="ode" target="lib64/libode.dylib" />
3 <dllmap os="!windows,osx" cpu="x86-64,ia64" dll="ode" target="lib64/libode-x86_64" />
4 <dllmap os="!windows,osx" cpu="x86" dll="ode" target="lib32/libode" />
5 <dllmap os="!windows,osx" cpu="ppc64" dll="ode" target="lib64/libode-ppc64" />
6 <dllmap os="!windows,osx" cpu="s390x" dll="ode" target="lib64/libode-s390x" />
7</configuration>
diff --git a/bin/assets/TexturesAssetSet/defaultalpha.jp2 b/bin/assets/TexturesAssetSet/defaultalpha.jp2
new file mode 100644
index 0000000..af73c1e
--- /dev/null
+++ b/bin/assets/TexturesAssetSet/defaultalpha.jp2
Binary files differ
diff --git a/prebuild.xml b/prebuild.xml
index 45f58c7..21bf71f 100644
--- a/prebuild.xml
+++ b/prebuild.xml
@@ -6,7 +6,7 @@
6 <CompilerDefines>TRACE;DEBUG</CompilerDefines> 6 <CompilerDefines>TRACE;DEBUG</CompilerDefines>
7 <OptimizeCode>false</OptimizeCode> 7 <OptimizeCode>false</OptimizeCode>
8 <CheckUnderflowOverflow>false</CheckUnderflowOverflow> 8 <CheckUnderflowOverflow>false</CheckUnderflowOverflow>
9 <AllowUnsafe>false</AllowUnsafe> 9 <AllowUnsafe>true</AllowUnsafe>
10 <WarningLevel>4</WarningLevel> 10 <WarningLevel>4</WarningLevel>
11 <WarningsAsErrors>false</WarningsAsErrors> 11 <WarningsAsErrors>false</WarningsAsErrors>
12 <SuppressWarnings/> 12 <SuppressWarnings/>
@@ -34,7 +34,7 @@
34 34
35 <!-- Core OpenSim Projects --> 35 <!-- Core OpenSim Projects -->
36<!-- 36<!--
37 <Project frameworkVersion="v3_5" name="OpenSim.Model" path="OpenSim/Model" type="Library"> 37 <Project frameworkVersion="v4_0" name="OpenSim.Model" path="OpenSim/Model" type="Library">
38 <Configuration name="Debug"> 38 <Configuration name="Debug">
39 <Options> 39 <Options>
40 <OutputPath>../../../bin/</OutputPath> 40 <OutputPath>../../../bin/</OutputPath>
@@ -55,7 +55,7 @@
55 </Project> 55 </Project>
56--> 56-->
57 57
58 <Project frameworkVersion="v3_5" name="SmartThreadPool" path="ThirdParty/SmartThreadPool" type="Library"> 58 <Project frameworkVersion="v4_0" name="SmartThreadPool" path="ThirdParty/SmartThreadPool" type="Library">
59 <Configuration name="Debug"> 59 <Configuration name="Debug">
60 <Options> 60 <Options>
61 <OutputPath>../../bin/</OutputPath> 61 <OutputPath>../../bin/</OutputPath>
@@ -77,7 +77,7 @@
77 </Files> 77 </Files>
78 </Project> 78 </Project>
79 79
80 <Project frameworkVersion="v3_5" name="OpenSim.Framework" path="OpenSim/Framework" type="Library"> 80 <Project frameworkVersion="v4_0" name="OpenSim.Framework" path="OpenSim/Framework" type="Library">
81 <Configuration name="Debug"> 81 <Configuration name="Debug">
82 <Options> 82 <Options>
83 <OutputPath>../../bin/</OutputPath> 83 <OutputPath>../../bin/</OutputPath>
@@ -112,7 +112,7 @@
112 </Files> 112 </Files>
113 </Project> 113 </Project>
114 114
115 <Project frameworkVersion="v3_5" name="OpenSim.Framework.Servers.HttpServer" path="OpenSim/Framework/Servers/HttpServer" type="Library"> 115 <Project frameworkVersion="v4_0" name="OpenSim.Framework.Servers.HttpServer" path="OpenSim/Framework/Servers/HttpServer" type="Library">
116 <Configuration name="Debug"> 116 <Configuration name="Debug">
117 <Options> 117 <Options>
118 <OutputPath>../../../../bin/</OutputPath> 118 <OutputPath>../../../../bin/</OutputPath>
@@ -151,7 +151,7 @@
151 </Files> 151 </Files>
152 </Project> 152 </Project>
153 153
154 <Project frameworkVersion="v3_5" name="OpenSim.Framework.Console" path="OpenSim/Framework/Console" type="Library"> 154 <Project frameworkVersion="v4_0" name="OpenSim.Framework.Console" path="OpenSim/Framework/Console" type="Library">
155 <Configuration name="Debug"> 155 <Configuration name="Debug">
156 <Options> 156 <Options>
157 <OutputPath>../../../bin/</OutputPath> 157 <OutputPath>../../../bin/</OutputPath>
@@ -178,7 +178,7 @@
178 </Files> 178 </Files>
179 </Project> 179 </Project>
180 180
181 <Project frameworkVersion="v3_5" name="OpenSim.Services.Interfaces" path="OpenSim/Services/Interfaces" type="Library"> 181 <Project frameworkVersion="v4_0" name="OpenSim.Services.Interfaces" path="OpenSim/Services/Interfaces" type="Library">
182 <Configuration name="Debug"> 182 <Configuration name="Debug">
183 <Options> 183 <Options>
184 <OutputPath>../../../bin/</OutputPath> 184 <OutputPath>../../../bin/</OutputPath>
@@ -206,7 +206,7 @@
206 </Files> 206 </Files>
207 </Project> 207 </Project>
208 208
209 <Project frameworkVersion="v3_5" name="OpenSim.Framework.Serialization" path="OpenSim/Framework/Serialization" type="Library"> 209 <Project frameworkVersion="v4_0" name="OpenSim.Framework.Serialization" path="OpenSim/Framework/Serialization" type="Library">
210 <Configuration name="Debug"> 210 <Configuration name="Debug">
211 <Options> 211 <Options>
212 <OutputPath>../../../bin/</OutputPath> 212 <OutputPath>../../../bin/</OutputPath>
@@ -235,7 +235,7 @@
235 </Files> 235 </Files>
236 </Project> 236 </Project>
237 237
238 <Project frameworkVersion="v3_5" name="OpenSim.Framework.Statistics" path="OpenSim/Framework/Statistics" type="Library"> 238 <Project frameworkVersion="v4_0" name="OpenSim.Framework.Statistics" path="OpenSim/Framework/Statistics" type="Library">
239 <Configuration name="Debug"> 239 <Configuration name="Debug">
240 <Options> 240 <Options>
241 <OutputPath>../../../bin/</OutputPath> 241 <OutputPath>../../../bin/</OutputPath>
@@ -259,7 +259,7 @@
259 </Files> 259 </Files>
260 </Project> 260 </Project>
261 261
262 <Project frameworkVersion="v3_5" name="OpenSim.Data" path="OpenSim/Data" type="Library"> 262 <Project frameworkVersion="v4_0" name="OpenSim.Data" path="OpenSim/Data" type="Library">
263 <Configuration name="Debug"> 263 <Configuration name="Debug">
264 <Options> 264 <Options>
265 <OutputPath>../../bin/</OutputPath> 265 <OutputPath>../../bin/</OutputPath>
@@ -288,7 +288,7 @@
288 </Files> 288 </Files>
289 </Project> 289 </Project>
290 290
291 <Project frameworkVersion="v3_5" name="OpenSim.Framework.Configuration.XML" path="OpenSim/Framework/Configuration/XML" type="Library"> 291 <Project frameworkVersion="v4_0" name="OpenSim.Framework.Configuration.XML" path="OpenSim/Framework/Configuration/XML" type="Library">
292 <Configuration name="Debug"> 292 <Configuration name="Debug">
293 <Options> 293 <Options>
294 <OutputPath>../../../../bin/</OutputPath> 294 <OutputPath>../../../../bin/</OutputPath>
@@ -313,7 +313,7 @@
313 </Files> 313 </Files>
314 </Project> 314 </Project>
315 315
316 <Project frameworkVersion="v3_5" name="OpenSim.Framework.Configuration.HTTP" path="OpenSim/Framework/Configuration/HTTP" type="Library"> 316 <Project frameworkVersion="v4_0" name="OpenSim.Framework.Configuration.HTTP" path="OpenSim/Framework/Configuration/HTTP" type="Library">
317 <Configuration name="Debug"> 317 <Configuration name="Debug">
318 <Options> 318 <Options>
319 <OutputPath>../../../../bin/</OutputPath> 319 <OutputPath>../../../../bin/</OutputPath>
@@ -340,7 +340,7 @@
340 </Files> 340 </Files>
341 </Project> 341 </Project>
342 342
343 <Project frameworkVersion="v3_5" name="OpenSim.Framework.AssetLoader.Filesystem" path="OpenSim/Framework/AssetLoader/Filesystem" type="Library"> 343 <Project frameworkVersion="v4_0" name="OpenSim.Framework.AssetLoader.Filesystem" path="OpenSim/Framework/AssetLoader/Filesystem" type="Library">
344 <Configuration name="Debug"> 344 <Configuration name="Debug">
345 <Options> 345 <Options>
346 <OutputPath>../../../../bin/</OutputPath> 346 <OutputPath>../../../../bin/</OutputPath>
@@ -365,7 +365,7 @@
365 </Files> 365 </Files>
366 </Project> 366 </Project>
367 367
368 <Project frameworkVersion="v3_5" name="OpenSim.Framework.RegionLoader.Web" path="OpenSim/Framework/RegionLoader/Web" type="Library"> 368 <Project frameworkVersion="v4_0" name="OpenSim.Framework.RegionLoader.Web" path="OpenSim/Framework/RegionLoader/Web" type="Library">
369 <Configuration name="Debug"> 369 <Configuration name="Debug">
370 <Options> 370 <Options>
371 <OutputPath>../../../../bin/</OutputPath> 371 <OutputPath>../../../../bin/</OutputPath>
@@ -391,7 +391,7 @@
391 </Files> 391 </Files>
392 </Project> 392 </Project>
393 393
394 <Project frameworkVersion="v3_5" name="OpenSim.Framework.RegionLoader.Filesystem" path="OpenSim/Framework/RegionLoader/Filesystem" type="Library"> 394 <Project frameworkVersion="v4_0" name="OpenSim.Framework.RegionLoader.Filesystem" path="OpenSim/Framework/RegionLoader/Filesystem" type="Library">
395 <Configuration name="Debug"> 395 <Configuration name="Debug">
396 <Options> 396 <Options>
397 <OutputPath>../../../../bin/</OutputPath> 397 <OutputPath>../../../../bin/</OutputPath>
@@ -417,7 +417,7 @@
417 </Files> 417 </Files>
418 </Project> 418 </Project>
419 419
420 <Project frameworkVersion="v3_5" name="OpenSim.Framework.Servers" path="OpenSim/Framework/Servers" type="Library"> 420 <Project frameworkVersion="v4_0" name="OpenSim.Framework.Servers" path="OpenSim/Framework/Servers" type="Library">
421 <Configuration name="Debug"> 421 <Configuration name="Debug">
422 <Options> 422 <Options>
423 <OutputPath>../../../bin/</OutputPath> 423 <OutputPath>../../../bin/</OutputPath>
@@ -449,7 +449,7 @@
449 </Files> 449 </Files>
450 </Project> 450 </Project>
451 451
452 <Project frameworkVersion="v3_5" name="OpenSim.Region.Physics.Manager" path="OpenSim/Region/Physics/Manager" type="Library"> 452 <Project frameworkVersion="v4_0" name="OpenSim.Region.Physics.Manager" path="OpenSim/Region/Physics/Manager" type="Library">
453 <Configuration name="Debug"> 453 <Configuration name="Debug">
454 <Options> 454 <Options>
455 <OutputPath>../../../../bin/</OutputPath> 455 <OutputPath>../../../../bin/</OutputPath>
@@ -477,7 +477,7 @@
477 </Project> 477 </Project>
478 478
479 <!-- Physics Plug-ins --> 479 <!-- Physics Plug-ins -->
480 <Project frameworkVersion="v3_5" name="OpenSim.Region.Physics.BasicPhysicsPlugin" path="OpenSim/Region/Physics/BasicPhysicsPlugin" type="Library"> 480 <Project frameworkVersion="v4_0" name="OpenSim.Region.Physics.BasicPhysicsPlugin" path="OpenSim/Region/Physics/BasicPhysicsPlugin" type="Library">
481 <Configuration name="Debug"> 481 <Configuration name="Debug">
482 <Options> 482 <Options>
483 <OutputPath>../../../../bin/Physics/</OutputPath> 483 <OutputPath>../../../../bin/Physics/</OutputPath>
@@ -500,7 +500,7 @@
500 </Files> 500 </Files>
501 </Project> 501 </Project>
502 502
503 <Project frameworkVersion="v3_5" name="OpenSim.Region.Physics.POSPlugin" path="OpenSim/Region/Physics/POSPlugin" type="Library"> 503 <Project frameworkVersion="v4_0" name="OpenSim.Region.Physics.POSPlugin" path="OpenSim/Region/Physics/POSPlugin" type="Library">
504 <Configuration name="Debug"> 504 <Configuration name="Debug">
505 <Options> 505 <Options>
506 <OutputPath>../../../../bin/Physics/</OutputPath> 506 <OutputPath>../../../../bin/Physics/</OutputPath>
@@ -523,7 +523,7 @@
523 </Files> 523 </Files>
524 </Project> 524 </Project>
525 525
526 <Project frameworkVersion="v3_5" name="OpenSim.Region.Physics.OdePlugin" path="OpenSim/Region/Physics/OdePlugin" type="Library"> 526 <Project frameworkVersion="v4_0" name="OpenSim.Region.Physics.OdePlugin" path="OpenSim/Region/Physics/OdePlugin" type="Library">
527 <Configuration name="Debug"> 527 <Configuration name="Debug">
528 <Options> 528 <Options>
529 <OutputPath>../../../../bin/Physics/</OutputPath> 529 <OutputPath>../../../../bin/Physics/</OutputPath>
@@ -553,7 +553,7 @@
553 </Files> 553 </Files>
554 </Project> 554 </Project>
555 555
556 <Project frameworkVersion="v3_5" name="OpenSim.Region.Physics.ConvexDecompositionDotNet" path="OpenSim/Region/Physics/ConvexDecompositionDotNet" type="Library"> 556 <Project frameworkVersion="v4_0" name="OpenSim.Region.Physics.ConvexDecompositionDotNet" path="OpenSim/Region/Physics/ConvexDecompositionDotNet" type="Library">
557 <Configuration name="Debug"> 557 <Configuration name="Debug">
558 <Options> 558 <Options>
559 <OutputPath>../../../../bin/</OutputPath> 559 <OutputPath>../../../../bin/</OutputPath>
@@ -578,7 +578,69 @@
578 </Files> 578 </Files>
579 </Project> 579 </Project>
580 580
581 <Project frameworkVersion="v3_5" name="OpenSim.Region.Physics.BulletSPlugin" path="OpenSim/Region/Physics/BulletSPlugin" type="Library"> 581 <Project frameworkVersion="v4_0" name="OpenSim.Region.Physics.ChOdePlugin" path="OpenSim/Region/Physics/ChOdePlugin" type="Library">
582 <Configuration name="Debug">
583 <Options>
584 <OutputPath>../../../../bin/Physics/</OutputPath>
585 </Options>
586 </Configuration>
587 <Configuration name="Release">
588 <Options>
589 <OutputPath>../../../../bin/Physics/</OutputPath>
590 </Options>
591 </Configuration>
592
593 <ReferencePath>../../../../bin/</ReferencePath>
594 <Reference name="System"/>
595 <Reference name="System.Core"/>
596 <Reference name="OpenMetaverseTypes.dll"/>
597 <Reference name="Nini.dll" />
598 <Reference name="OpenSim.Framework"/>
599 <Reference name="OpenSim.Framework.Console"/>
600 <Reference name="OpenSim.Region.Physics.Manager"/>
601 <Reference name="OpenSim.Region.Physics.ConvexDecompositionDotNet"/>
602 <Reference name="Ode.NET.dll" />
603 <Reference name="log4net.dll"/>
604
605 <Files>
606 <Match pattern="*.cs" recurse="true">
607 <Exclude name="Tests" pattern="Tests"/>
608 </Match>
609 </Files>
610 </Project>
611
612 <Project frameworkVersion="v4_0" name="OpenSim.Region.Physics.UbitOdePlugin" path="OpenSim/Region/Physics/UbitOdePlugin" type="Library">
613 <Configuration name="Debug">
614 <Options>
615 <OutputPath>../../../../bin/Physics/</OutputPath>
616 </Options>
617 </Configuration>
618 <Configuration name="Release">
619 <Options>
620 <OutputPath>../../../../bin/Physics/</OutputPath>
621 </Options>
622 </Configuration>
623
624 <ReferencePath>../../../../bin/</ReferencePath>
625 <Reference name="System"/>
626 <Reference name="System.Core"/>
627 <Reference name="OpenMetaverseTypes" path="../../../../bin/"/>
628 <Reference name="Nini" path="../../../../bin/"/>
629
630 <Reference name="OpenSim.Framework"/>
631 <Reference name="OpenSim.Framework.Console"/>
632 <Reference name="OpenSim.Region.Physics.Manager"/>
633 <Reference name="OpenSim.Region.Physics.ConvexDecompositionDotNet"/>
634 <Reference name="log4net" path="../../../../bin/"/>
635
636 <Files>
637 <Match pattern="*.cs" recurse="true">
638 <Exclude name="Tests" pattern="Tests"/>
639 </Match>
640 </Files>
641 </Project>
642
643 <Project frameworkVersion="v4_0" name="OpenSim.Region.Physics.BulletSPlugin" path="OpenSim/Region/Physics/BulletSPlugin" type="Library">
582 <Configuration name="Debug"> 644 <Configuration name="Debug">
583 <Options> 645 <Options>
584 <OutputPath>../../../../bin/Physics/</OutputPath> 646 <OutputPath>../../../../bin/Physics/</OutputPath>
@@ -611,7 +673,38 @@
611 </Files> 673 </Files>
612 </Project> 674 </Project>
613 675
614 <Project frameworkVersion="v3_5" name="OpenSim.Region.Physics.Meshing" path="OpenSim/Region/Physics/Meshing" type="Library"> 676 <Project frameworkVersion="v4_0" name="OpenSim.Region.Physics.Meshing" path="OpenSim/Region/Physics/Meshing" type="Library">
677 <Configuration name="Debug">
678 <Options>
679 <OutputPath>../../../../bin/Physics/</OutputPath>
680 </Options>
681 </Configuration>
682 <Configuration name="Release">
683 <Options>
684 <OutputPath>../../../../bin/Physics/</OutputPath>
685 </Options>
686 </Configuration>
687
688 <ReferencePath>../../../../bin/</ReferencePath>
689 <Reference name="System"/>
690 <Reference name="System.Drawing"/>
691 <Reference name="CSJ2K" path="../../../../bin/"/>
692 <Reference name="OpenMetaverseTypes" path="../../../../bin/"/>
693 <Reference name="OpenMetaverse" path="../../../../bin/"/>
694 <Reference name="OpenMetaverse.StructuredData" path="../../../../bin/"/>
695 <Reference name="Nini" path="../../../../bin/"/>
696 <Reference name="OpenSim.Framework"/>
697 <Reference name="OpenSim.Framework.Console"/>
698 <Reference name="OpenSim.Region.Physics.Manager"/>
699 <Reference name="log4net" path="../../../../bin/"/>
700 <Reference name="zlib.net" path="../../../../bin/"/>
701
702 <Files>
703 <Match pattern="*.cs" recurse="true"/>
704 </Files>
705 </Project>
706
707 <Project frameworkVersion="v4_0" name="OpenSim.Region.Physics.UbitMeshing" path="OpenSim/Region/Physics/UbitMeshing" type="Library">
615 <Configuration name="Debug"> 708 <Configuration name="Debug">
616 <Options> 709 <Options>
617 <OutputPath>../../../../bin/Physics/</OutputPath> 710 <OutputPath>../../../../bin/Physics/</OutputPath>
@@ -634,6 +727,7 @@
634 <Reference name="OpenSim.Framework"/> 727 <Reference name="OpenSim.Framework"/>
635 <Reference name="OpenSim.Framework.Console"/> 728 <Reference name="OpenSim.Framework.Console"/>
636 <Reference name="OpenSim.Region.Physics.Manager"/> 729 <Reference name="OpenSim.Region.Physics.Manager"/>
730 <Reference name="OpenSim.Region.Physics.ConvexDecompositionDotNet"/>
637 <Reference name="log4net" path="../../../../bin/"/> 731 <Reference name="log4net" path="../../../../bin/"/>
638 <Reference name="zlib.net" path="../../../../bin/"/> 732 <Reference name="zlib.net" path="../../../../bin/"/>
639 733
@@ -642,7 +736,7 @@
642 </Files> 736 </Files>
643 </Project> 737 </Project>
644 738
645 <Project frameworkVersion="v3_5" name="OpenSim.Capabilities" path="OpenSim/Capabilities" type="Library"> 739 <Project frameworkVersion="v4_0" name="OpenSim.Capabilities" path="OpenSim/Capabilities" type="Library">
646 <Configuration name="Debug"> 740 <Configuration name="Debug">
647 <Options> 741 <Options>
648 <OutputPath>../../bin/</OutputPath> 742 <OutputPath>../../bin/</OutputPath>
@@ -677,7 +771,7 @@
677 </Project> 771 </Project>
678 772
679 773
680 <Project frameworkVersion="v3_5" name="OpenSim.Framework.Communications" path="OpenSim/Framework/Communications" type="Library"> 774 <Project frameworkVersion="v4_0" name="OpenSim.Framework.Communications" path="OpenSim/Framework/Communications" type="Library">
681 <Configuration name="Debug"> 775 <Configuration name="Debug">
682 <Options> 776 <Options>
683 <OutputPath>../../../bin/</OutputPath> 777 <OutputPath>../../../bin/</OutputPath>
@@ -718,7 +812,7 @@
718 </Project> 812 </Project>
719 813
720 814
721 <Project frameworkVersion="v3_5" name="OpenSim.Region.Framework" path="OpenSim/Region/Framework" type="Library"> 815 <Project frameworkVersion="v4_0" name="OpenSim.Region.Framework" path="OpenSim/Region/Framework" type="Library">
722 <Configuration name="Debug"> 816 <Configuration name="Debug">
723 <Options> 817 <Options>
724 <OutputPath>../../../bin/</OutputPath> 818 <OutputPath>../../../bin/</OutputPath>
@@ -771,7 +865,7 @@
771 <!-- OGS projects --> 865 <!-- OGS projects -->
772 866
773 867
774 <Project frameworkVersion="v3_5" name="OpenSim.Server.Base" path="OpenSim/Server/Base" type="Library"> 868 <Project frameworkVersion="v4_0" name="OpenSim.Server.Base" path="OpenSim/Server/Base" type="Library">
775 <Configuration name="Debug"> 869 <Configuration name="Debug">
776 <Options> 870 <Options>
777 <OutputPath>../../../bin/</OutputPath> 871 <OutputPath>../../../bin/</OutputPath>
@@ -801,7 +895,7 @@
801 </Files> 895 </Files>
802 </Project> 896 </Project>
803 897
804 <Project frameworkVersion="v3_5" name="OpenSim.Services.Base" path="OpenSim/Services/Base" type="Library"> 898 <Project frameworkVersion="v4_0" name="OpenSim.Services.Base" path="OpenSim/Services/Base" type="Library">
805 <Configuration name="Debug"> 899 <Configuration name="Debug">
806 <Options> 900 <Options>
807 <OutputPath>../../../bin/</OutputPath> 901 <OutputPath>../../../bin/</OutputPath>
@@ -828,7 +922,7 @@
828 </Files> 922 </Files>
829 </Project> 923 </Project>
830 924
831 <Project frameworkVersion="v3_5" name="OpenSim.Services.UserAccountService" path="OpenSim/Services/UserAccountService" type="Library"> 925 <Project frameworkVersion="v4_0" name="OpenSim.Services.UserAccountService" path="OpenSim/Services/UserAccountService" type="Library">
832 <Configuration name="Debug"> 926 <Configuration name="Debug">
833 <Options> 927 <Options>
834 <OutputPath>../../../bin/</OutputPath> 928 <OutputPath>../../../bin/</OutputPath>
@@ -859,7 +953,7 @@
859 </Files> 953 </Files>
860 </Project> 954 </Project>
861 955
862 <Project frameworkVersion="v3_5" name="OpenSim.Services.FriendsService" path="OpenSim/Services/Friends" type="Library"> 956 <Project frameworkVersion="v4_0" name="OpenSim.Services.FriendsService" path="OpenSim/Services/Friends" type="Library">
863 <Configuration name="Debug"> 957 <Configuration name="Debug">
864 <Options> 958 <Options>
865 <OutputPath>../../../bin/</OutputPath> 959 <OutputPath>../../../bin/</OutputPath>
@@ -890,7 +984,7 @@
890 </Files> 984 </Files>
891 </Project> 985 </Project>
892 986
893 <Project frameworkVersion="v3_5" name="OpenSim.Services.Connectors" path="OpenSim/Services/Connectors" type="Library"> 987 <Project frameworkVersion="v4_0" name="OpenSim.Services.Connectors" path="OpenSim/Services/Connectors" type="Library">
894 <Configuration name="Debug"> 988 <Configuration name="Debug">
895 <Options> 989 <Options>
896 <OutputPath>../../../bin/</OutputPath> 990 <OutputPath>../../../bin/</OutputPath>
@@ -929,7 +1023,7 @@
929 </Files> 1023 </Files>
930 </Project> 1024 </Project>
931 1025
932 <Project frameworkVersion="v3_5" name="OpenSim.Services.AssetService" path="OpenSim/Services/AssetService" type="Library"> 1026 <Project frameworkVersion="v4_0" name="OpenSim.Services.AssetService" path="OpenSim/Services/AssetService" type="Library">
933 <Configuration name="Debug"> 1027 <Configuration name="Debug">
934 <Options> 1028 <Options>
935 <OutputPath>../../../bin/</OutputPath> 1029 <OutputPath>../../../bin/</OutputPath>
@@ -960,7 +1054,7 @@
960 </Files> 1054 </Files>
961 </Project> 1055 </Project>
962 1056
963 <Project frameworkVersion="v3_5" name="OpenSim.Services.AuthorizationService" path="OpenSim/Services/AuthorizationService" type="Library"> 1057 <Project frameworkVersion="v4_0" name="OpenSim.Services.AuthorizationService" path="OpenSim/Services/AuthorizationService" type="Library">
964 <Configuration name="Debug"> 1058 <Configuration name="Debug">
965 <Options> 1059 <Options>
966 <OutputPath>../../../bin/</OutputPath> 1060 <OutputPath>../../../bin/</OutputPath>
@@ -991,7 +1085,7 @@
991 </Files> 1085 </Files>
992 </Project> 1086 </Project>
993 1087
994 <Project frameworkVersion="v3_5" name="OpenSim.Services.FreeswitchService" path="OpenSim/Services/FreeswitchService" type="Library"> 1088 <Project frameworkVersion="v4_0" name="OpenSim.Services.FreeswitchService" path="OpenSim/Services/FreeswitchService" type="Library">
995 <Configuration name="Debug"> 1089 <Configuration name="Debug">
996 <Options> 1090 <Options>
997 <OutputPath>../../../bin/</OutputPath> 1091 <OutputPath>../../../bin/</OutputPath>
@@ -1023,7 +1117,7 @@
1023 </Files> 1117 </Files>
1024 </Project> 1118 </Project>
1025 1119
1026 <Project frameworkVersion="v3_5" name="OpenSim.Services.AuthenticationService" path="OpenSim/Services/AuthenticationService" type="Library"> 1120 <Project frameworkVersion="v4_0" name="OpenSim.Services.AuthenticationService" path="OpenSim/Services/AuthenticationService" type="Library">
1027 <Configuration name="Debug"> 1121 <Configuration name="Debug">
1028 <Options> 1122 <Options>
1029 <OutputPath>../../../bin/</OutputPath> 1123 <OutputPath>../../../bin/</OutputPath>
@@ -1045,6 +1139,7 @@
1045 <Reference name="OpenSim.Server.Base"/> 1139 <Reference name="OpenSim.Server.Base"/>
1046 <Reference name="OpenSim.Services.Interfaces"/> 1140 <Reference name="OpenSim.Services.Interfaces"/>
1047 <Reference name="OpenSim.Services.Base"/> 1141 <Reference name="OpenSim.Services.Base"/>
1142 <Reference name="OpenSim.Server.Base"/>
1048 <Reference name="OpenSim.Services.Connectors"/> 1143 <Reference name="OpenSim.Services.Connectors"/>
1049 <Reference name="OpenSim.Data"/> 1144 <Reference name="OpenSim.Data"/>
1050 <Reference name="Nini" path="../../../bin/"/> 1145 <Reference name="Nini" path="../../../bin/"/>
@@ -1055,7 +1150,7 @@
1055 </Files> 1150 </Files>
1056 </Project> 1151 </Project>
1057 1152
1058 <Project frameworkVersion="v3_5" name="OpenSim.Services.GridService" path="OpenSim/Services/GridService" type="Library"> 1153 <Project frameworkVersion="v4_0" name="OpenSim.Services.GridService" path="OpenSim/Services/GridService" type="Library">
1059 <Configuration name="Debug"> 1154 <Configuration name="Debug">
1060 <Options> 1155 <Options>
1061 <OutputPath>../../../bin/</OutputPath> 1156 <OutputPath>../../../bin/</OutputPath>
@@ -1089,7 +1184,7 @@
1089 </Files> 1184 </Files>
1090 </Project> 1185 </Project>
1091 1186
1092 <Project frameworkVersion="v3_5" name="OpenSim.Services.PresenceService" path="OpenSim/Services/PresenceService" type="Library"> 1187 <Project frameworkVersion="v4_0" name="OpenSim.Services.PresenceService" path="OpenSim/Services/PresenceService" type="Library">
1093 <Configuration name="Debug"> 1188 <Configuration name="Debug">
1094 <Options> 1189 <Options>
1095 <OutputPath>../../../bin/</OutputPath> 1190 <OutputPath>../../../bin/</OutputPath>
@@ -1120,7 +1215,7 @@
1120 </Files> 1215 </Files>
1121 </Project> 1216 </Project>
1122 1217
1123 <Project frameworkVersion="v3_5" name="OpenSim.Services.AvatarService" path="OpenSim/Services/AvatarService" type="Library"> 1218 <Project frameworkVersion="v4_0" name="OpenSim.Services.AvatarService" path="OpenSim/Services/AvatarService" type="Library">
1124 <Configuration name="Debug"> 1219 <Configuration name="Debug">
1125 <Options> 1220 <Options>
1126 <OutputPath>../../../bin/</OutputPath> 1221 <OutputPath>../../../bin/</OutputPath>
@@ -1151,7 +1246,7 @@
1151 </Files> 1246 </Files>
1152 </Project> 1247 </Project>
1153 1248
1154 <Project frameworkVersion="v3_5" name="OpenSim.Services.InventoryService" path="OpenSim/Services/InventoryService" type="Library"> 1249 <Project frameworkVersion="v4_0" name="OpenSim.Services.InventoryService" path="OpenSim/Services/InventoryService" type="Library">
1155 <Configuration name="Debug"> 1250 <Configuration name="Debug">
1156 <Options> 1251 <Options>
1157 <OutputPath>../../../bin/</OutputPath> 1252 <OutputPath>../../../bin/</OutputPath>
@@ -1184,7 +1279,7 @@
1184 </Project> 1279 </Project>
1185 1280
1186 1281
1187 <Project frameworkVersion="v3_5" name="OpenSim.Services.LLLoginService" path="OpenSim/Services/LLLoginService" type="Library"> 1282 <Project frameworkVersion="v4_0" name="OpenSim.Services.LLLoginService" path="OpenSim/Services/LLLoginService" type="Library">
1188 <Configuration name="Debug"> 1283 <Configuration name="Debug">
1189 <Options> 1284 <Options>
1190 <OutputPath>../../../bin/</OutputPath> 1285 <OutputPath>../../../bin/</OutputPath>
@@ -1217,7 +1312,7 @@
1217 </Files> 1312 </Files>
1218 </Project> 1313 </Project>
1219 1314
1220 <Project frameworkVersion="v3_5" name="OpenSim.Services.HypergridService" path="OpenSim/Services/HypergridService" type="Library"> 1315 <Project frameworkVersion="v4_0" name="OpenSim.Services.HypergridService" path="OpenSim/Services/HypergridService" type="Library">
1221 <Configuration name="Debug"> 1316 <Configuration name="Debug">
1222 <Options> 1317 <Options>
1223 <OutputPath>../../../bin/</OutputPath> 1318 <OutputPath>../../../bin/</OutputPath>
@@ -1255,7 +1350,7 @@
1255 </Files> 1350 </Files>
1256 </Project> 1351 </Project>
1257 1352
1258 <Project frameworkVersion="v3_5" name="OpenSim.Services.MapImageService" path="OpenSim/Services/MapImageService" type="Library"> 1353 <Project frameworkVersion="v4_0" name="OpenSim.Services.MapImageService" path="OpenSim/Services/MapImageService" type="Library">
1259 <Configuration name="Debug"> 1354 <Configuration name="Debug">
1260 <Options> 1355 <Options>
1261 <OutputPath>../../../bin/</OutputPath> 1356 <OutputPath>../../../bin/</OutputPath>
@@ -1285,7 +1380,7 @@
1285 </Files> 1380 </Files>
1286 </Project> 1381 </Project>
1287 1382
1288 <Project frameworkVersion="v3_5" name="OpenSim.Server.Handlers" path="OpenSim/Server/Handlers" type="Library"> 1383 <Project frameworkVersion="v4_0" name="OpenSim.Server.Handlers" path="OpenSim/Server/Handlers" type="Library">
1289 <Configuration name="Debug"> 1384 <Configuration name="Debug">
1290 <Options> 1385 <Options>
1291 <OutputPath>../../../bin/</OutputPath> 1386 <OutputPath>../../../bin/</OutputPath>
@@ -1324,7 +1419,7 @@
1324 </Project> 1419 </Project>
1325 1420
1326 1421
1327 <Project frameworkVersion="v3_5" name="OpenSim.Capabilities.Handlers" path="OpenSim/Capabilities/Handlers" type="Library"> 1422 <Project frameworkVersion="v4_0" name="OpenSim.Capabilities.Handlers" path="OpenSim/Capabilities/Handlers" type="Library">
1328 <Configuration name="Debug"> 1423 <Configuration name="Debug">
1329 <Options> 1424 <Options>
1330 <OutputPath>../../../bin/</OutputPath> 1425 <OutputPath>../../../bin/</OutputPath>
@@ -1365,7 +1460,7 @@
1365 </Project> 1460 </Project>
1366 1461
1367 1462
1368 <Project frameworkVersion="v3_5" name="Robust" path="OpenSim/Server" type="Exe"> 1463 <Project frameworkVersion="v4_0" name="Robust" path="OpenSim/Server" type="Exe">
1369 <Configuration name="Debug"> 1464 <Configuration name="Debug">
1370 <Options> 1465 <Options>
1371 <OutputPath>../../bin/</OutputPath> 1466 <OutputPath>../../bin/</OutputPath>
@@ -1399,7 +1494,7 @@
1399 </Files> 1494 </Files>
1400 </Project> 1495 </Project>
1401 1496
1402 <Project frameworkVersion="v3_5" name="OpenSim.ConsoleClient" path="OpenSim/ConsoleClient" type="Exe"> 1497 <Project frameworkVersion="v4_0" name="OpenSim.ConsoleClient" path="OpenSim/ConsoleClient" type="Exe">
1403 <Configuration name="Debug"> 1498 <Configuration name="Debug">
1404 <Options> 1499 <Options>
1405 <OutputPath>../../bin/</OutputPath> 1500 <OutputPath>../../bin/</OutputPath>
@@ -1431,7 +1526,7 @@
1431 </Files> 1526 </Files>
1432 </Project> 1527 </Project>
1433 1528
1434 <Project frameworkVersion="v3_5" name="OpenSim.Region.CoreModules" path="OpenSim/Region/CoreModules" type="Library"> 1529 <Project frameworkVersion="v4_0" name="OpenSim.Region.CoreModules" path="OpenSim/Region/CoreModules" type="Library">
1435 <Configuration name="Debug"> 1530 <Configuration name="Debug">
1436 <Options> 1531 <Options>
1437 <OutputPath>../../../bin/</OutputPath> 1532 <OutputPath>../../../bin/</OutputPath>
@@ -1497,7 +1592,7 @@
1497 </Files> 1592 </Files>
1498 </Project> 1593 </Project>
1499 1594
1500 <Project frameworkVersion="v3_5" name="OpenSim.Region.RegionCombinerModule" path="OpenSim/Region/RegionCombinerModule" type="Library"> 1595 <Project frameworkVersion="v4_0" name="OpenSim.Region.RegionCombinerModule" path="OpenSim/Region/RegionCombinerModule" type="Library">
1501 <Configuration name="Debug"> 1596 <Configuration name="Debug">
1502 <Options> 1597 <Options>
1503 <OutputPath>../../../bin/</OutputPath> 1598 <OutputPath>../../../bin/</OutputPath>
@@ -1535,7 +1630,7 @@
1535 </Files> 1630 </Files>
1536 </Project> 1631 </Project>
1537 1632
1538 <Project frameworkVersion="v3_5" name="OpenSim.Region.ClientStack" path="OpenSim/Region/ClientStack" type="Library"> 1633 <Project frameworkVersion="v4_0" name="OpenSim.Region.ClientStack" path="OpenSim/Region/ClientStack" type="Library">
1539 <Configuration name="Debug"> 1634 <Configuration name="Debug">
1540 <Options> 1635 <Options>
1541 <OutputPath>../../../bin/</OutputPath> 1636 <OutputPath>../../../bin/</OutputPath>
@@ -1570,7 +1665,7 @@
1570 </Project> 1665 </Project>
1571 1666
1572 <!-- ClientStack Plugins --> 1667 <!-- ClientStack Plugins -->
1573 <Project frameworkVersion="v3_5" name="OpenSim.Region.ClientStack.LindenUDP" path="OpenSim/Region/ClientStack/Linden/UDP" type="Library"> 1668 <Project frameworkVersion="v4_0" name="OpenSim.Region.ClientStack.LindenUDP" path="OpenSim/Region/ClientStack/Linden/UDP" type="Library">
1574 <Configuration name="Debug"> 1669 <Configuration name="Debug">
1575 <Options> 1670 <Options>
1576 <OutputPath>../../../../../bin/</OutputPath> 1671 <OutputPath>../../../../../bin/</OutputPath>
@@ -1613,7 +1708,7 @@
1613 </Files> 1708 </Files>
1614 </Project> 1709 </Project>
1615 1710
1616 <Project frameworkVersion="v3_5" name="OpenSim.Region.ClientStack.LindenCaps" path="OpenSim/Region/ClientStack/Linden/Caps" type="Library"> 1711 <Project frameworkVersion="v4_0" name="OpenSim.Region.ClientStack.LindenCaps" path="OpenSim/Region/ClientStack/Linden/Caps" type="Library">
1617 <Configuration name="Debug"> 1712 <Configuration name="Debug">
1618 <Options> 1713 <Options>
1619 <OutputPath>../../../../../bin/</OutputPath> 1714 <OutputPath>../../../../../bin/</OutputPath>
@@ -1655,7 +1750,7 @@
1655 </Files> 1750 </Files>
1656 </Project> 1751 </Project>
1657 1752
1658 <Project frameworkVersion="v3_5" name="OpenSim.Region.OptionalModules" path="OpenSim/Region/OptionalModules" type="Library"> 1753 <Project frameworkVersion="v4_0" name="OpenSim.Region.OptionalModules" path="OpenSim/Region/OptionalModules" type="Library">
1659 <Configuration name="Debug"> 1754 <Configuration name="Debug">
1660 <Options> 1755 <Options>
1661 <OutputPath>../../../bin/</OutputPath> 1756 <OutputPath>../../../bin/</OutputPath>
@@ -1712,7 +1807,7 @@
1712 </Project> 1807 </Project>
1713 1808
1714 <!-- Datastore Plugins --> 1809 <!-- Datastore Plugins -->
1715 <Project frameworkVersion="v3_5" name="OpenSim.Data.Null" path="OpenSim/Data/Null" type="Library"> 1810 <Project frameworkVersion="v4_0" name="OpenSim.Data.Null" path="OpenSim/Data/Null" type="Library">
1716 <Configuration name="Debug"> 1811 <Configuration name="Debug">
1717 <Options> 1812 <Options>
1718 <OutputPath>../../../bin/</OutputPath> 1813 <OutputPath>../../../bin/</OutputPath>
@@ -1740,7 +1835,7 @@
1740 </Project> 1835 </Project>
1741 1836
1742 <!-- OpenSim app --> 1837 <!-- OpenSim app -->
1743 <Project frameworkVersion="v3_5" name="OpenSim" path="OpenSim/Region/Application" type="Exe"> 1838 <Project frameworkVersion="v4_0" name="OpenSim" path="OpenSim/Region/Application" type="Exe">
1744 <Configuration name="Debug"> 1839 <Configuration name="Debug">
1745 <Options> 1840 <Options>
1746 <OutputPath>../../../bin/</OutputPath> 1841 <OutputPath>../../../bin/</OutputPath>
@@ -1784,7 +1879,7 @@
1784 </Files> 1879 </Files>
1785 </Project> 1880 </Project>
1786 1881
1787 <Project frameworkVersion="v3_5" name="OpenSim.ApplicationPlugins.LoadRegions" path="OpenSim/ApplicationPlugins/LoadRegions" type="Library"> 1882 <Project frameworkVersion="v4_0" name="OpenSim.ApplicationPlugins.LoadRegions" path="OpenSim/ApplicationPlugins/LoadRegions" type="Library">
1788 <Configuration name="Debug"> 1883 <Configuration name="Debug">
1789 <Options> 1884 <Options>
1790 <OutputPath>../../../bin/</OutputPath> 1885 <OutputPath>../../../bin/</OutputPath>
@@ -1819,7 +1914,7 @@
1819 </Files> 1914 </Files>
1820 </Project> 1915 </Project>
1821 1916
1822 <Project frameworkVersion="v3_5" name="OpenSim.ApplicationPlugins.RegionModulesController" path="OpenSim/ApplicationPlugins/RegionModulesController" type="Library"> 1917 <Project frameworkVersion="v4_0" name="OpenSim.ApplicationPlugins.RegionModulesController" path="OpenSim/ApplicationPlugins/RegionModulesController" type="Library">
1823 <Configuration name="Debug"> 1918 <Configuration name="Debug">
1824 <Options> 1919 <Options>
1825 <OutputPath>../../../bin/</OutputPath> 1920 <OutputPath>../../../bin/</OutputPath>
@@ -1849,7 +1944,7 @@
1849 </Files> 1944 </Files>
1850 </Project> 1945 </Project>
1851 1946
1852 <Project frameworkVersion="v3_5" name="OpenSim.ApplicationPlugins.RemoteController" path="OpenSim/ApplicationPlugins/RemoteController" type="Library"> 1947 <Project frameworkVersion="v4_0" name="OpenSim.ApplicationPlugins.RemoteController" path="OpenSim/ApplicationPlugins/RemoteController" type="Library">
1853 <Configuration name="Debug"> 1948 <Configuration name="Debug">
1854 <Options> 1949 <Options>
1855 <OutputPath>../../../bin/</OutputPath> 1950 <OutputPath>../../../bin/</OutputPath>
@@ -1890,7 +1985,7 @@
1890 </Project> 1985 </Project>
1891 1986
1892 <!-- REST plugins --> 1987 <!-- REST plugins -->
1893 <Project frameworkVersion="v3_5" name="OpenSim.ApplicationPlugins.Rest" path="OpenSim/ApplicationPlugins/Rest" type="Library"> 1988 <Project frameworkVersion="v4_0" name="OpenSim.ApplicationPlugins.Rest" path="OpenSim/ApplicationPlugins/Rest" type="Library">
1894 <Configuration name="Debug"> 1989 <Configuration name="Debug">
1895 <Options> 1990 <Options>
1896 <OutputPath>../../../bin/</OutputPath> 1991 <OutputPath>../../../bin/</OutputPath>
@@ -1925,7 +2020,7 @@
1925 </Files> 2020 </Files>
1926 </Project> 2021 </Project>
1927 2022
1928 <Project frameworkVersion="v3_5" name="OpenSim.ApplicationPlugins.Rest.Regions" path="OpenSim/ApplicationPlugins/Rest/Regions" type="Library"> 2023 <Project frameworkVersion="v4_0" name="OpenSim.ApplicationPlugins.Rest.Regions" path="OpenSim/ApplicationPlugins/Rest/Regions" type="Library">
1929 <Configuration name="Debug"> 2024 <Configuration name="Debug">
1930 <Options> 2025 <Options>
1931 <OutputPath>../../../../bin/</OutputPath> 2026 <OutputPath>../../../../bin/</OutputPath>
@@ -1962,7 +2057,7 @@
1962 </Files> 2057 </Files>
1963 </Project> 2058 </Project>
1964 2059
1965 <Project frameworkVersion="v3_5" name="OpenSim.ApplicationPlugins.Rest.Inventory" path="OpenSim/ApplicationPlugins/Rest/Inventory" type="Library"> 2060 <Project frameworkVersion="v4_0" name="OpenSim.ApplicationPlugins.Rest.Inventory" path="OpenSim/ApplicationPlugins/Rest/Inventory" type="Library">
1966 <Configuration name="Debug"> 2061 <Configuration name="Debug">
1967 <Options> 2062 <Options>
1968 <OutputPath>../../../../bin/</OutputPath> 2063 <OutputPath>../../../../bin/</OutputPath>
@@ -2006,7 +2101,7 @@
2006 2101
2007 <!-- Scene Server API Example Apps --> 2102 <!-- Scene Server API Example Apps -->
2008 2103
2009 <Project frameworkVersion="v3_5" name="OpenSim.Region.DataSnapshot" path="OpenSim/Region/DataSnapshot" type="Library"> 2104 <Project frameworkVersion="v4_0" name="OpenSim.Region.DataSnapshot" path="OpenSim/Region/DataSnapshot" type="Library">
2010 <Configuration name="Debug"> 2105 <Configuration name="Debug">
2011 <Options> 2106 <Options>
2012 <OutputPath>../../../bin/</OutputPath> 2107 <OutputPath>../../../bin/</OutputPath>
@@ -2043,7 +2138,7 @@
2043 </Project> 2138 </Project>
2044 2139
2045 <!-- Data Base Modules --> 2140 <!-- Data Base Modules -->
2046 <Project frameworkVersion="v3_5" name="OpenSim.Data.MySQL" path="OpenSim/Data/MySQL" type="Library"> 2141 <Project frameworkVersion="v4_0" name="OpenSim.Data.MySQL" path="OpenSim/Data/MySQL" type="Library">
2047 <Configuration name="Debug"> 2142 <Configuration name="Debug">
2048 <Options> 2143 <Options>
2049 <OutputPath>../../../bin/</OutputPath> 2144 <OutputPath>../../../bin/</OutputPath>
@@ -2081,7 +2176,7 @@
2081 </Files> 2176 </Files>
2082 </Project> 2177 </Project>
2083 2178
2084 <Project frameworkVersion="v3_5" name="OpenSim.Data.MSSQL" path="OpenSim/Data/MSSQL" type="Library"> 2179 <Project frameworkVersion="v4_0" name="OpenSim.Data.MSSQL" path="OpenSim/Data/MSSQL" type="Library">
2085 <Configuration name="Debug"> 2180 <Configuration name="Debug">
2086 <Options> 2181 <Options>
2087 <OutputPath>../../../bin/</OutputPath> 2182 <OutputPath>../../../bin/</OutputPath>
@@ -2115,7 +2210,7 @@
2115 </Files> 2210 </Files>
2116 </Project> 2211 </Project>
2117 2212
2118 <Project frameworkVersion="v3_5" name="OpenSim.Data.SQLite" path="OpenSim/Data/SQLite" type="Library"> 2213 <Project frameworkVersion="v4_0" name="OpenSim.Data.SQLite" path="OpenSim/Data/SQLite" type="Library">
2119 <Configuration name="Debug"> 2214 <Configuration name="Debug">
2120 <Options> 2215 <Options>
2121 <OutputPath>../../../bin/</OutputPath> 2216 <OutputPath>../../../bin/</OutputPath>
@@ -2156,7 +2251,7 @@
2156 </Project> 2251 </Project>
2157 2252
2158 2253
2159 <Project frameworkVersion="v3_5" name="OpenSim.Region.ScriptEngine.Shared" path="OpenSim/Region/ScriptEngine/Shared" type="Library"> 2254 <Project frameworkVersion="v4_0" name="OpenSim.Region.ScriptEngine.Shared" path="OpenSim/Region/ScriptEngine/Shared" type="Library">
2160 <Configuration name="Debug"> 2255 <Configuration name="Debug">
2161 <Options> 2256 <Options>
2162 <OutputPath>../../../../bin/</OutputPath> 2257 <OutputPath>../../../../bin/</OutputPath>
@@ -2194,7 +2289,7 @@
2194 </Files> 2289 </Files>
2195 </Project> 2290 </Project>
2196 2291
2197 <Project frameworkVersion="v3_5" name="OpenSim.Region.ScriptEngine.Shared.Api.Runtime" path="OpenSim/Region/ScriptEngine/Shared/Api/Runtime" type="Library"> 2292 <Project frameworkVersion="v4_0" name="OpenSim.Region.ScriptEngine.Shared.Api.Runtime" path="OpenSim/Region/ScriptEngine/Shared/Api/Runtime" type="Library">
2198 <Configuration name="Debug"> 2293 <Configuration name="Debug">
2199 <Options> 2294 <Options>
2200 <OutputPath>../../../../../../bin/</OutputPath> 2295 <OutputPath>../../../../../../bin/</OutputPath>
@@ -2227,7 +2322,7 @@
2227 </Files> 2322 </Files>
2228 </Project> 2323 </Project>
2229 2324
2230 <Project frameworkVersion="v3_5" name="OpenSim.Region.ScriptEngine.Shared.YieldProlog" path="OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/" type="Library"> 2325 <Project frameworkVersion="v4_0" name="OpenSim.Region.ScriptEngine.Shared.YieldProlog" path="OpenSim/Region/ScriptEngine/Shared/Api/Runtime/YieldProlog/" type="Library">
2231 <Configuration name="Debug"> 2326 <Configuration name="Debug">
2232 <Options> 2327 <Options>
2233 <OutputPath>../../../../../../../bin/</OutputPath> 2328 <OutputPath>../../../../../../../bin/</OutputPath>
@@ -2259,7 +2354,7 @@
2259 </Files> 2354 </Files>
2260 </Project> 2355 </Project>
2261 2356
2262 <Project frameworkVersion="v3_5" name="OpenSim.Region.ScriptEngine.Shared.Api" path="OpenSim/Region/ScriptEngine/Shared/Api/Implementation" type="Library"> 2357 <Project frameworkVersion="v4_0" name="OpenSim.Region.ScriptEngine.Shared.Api" path="OpenSim/Region/ScriptEngine/Shared/Api/Implementation" type="Library">
2263 <Configuration name="Debug"> 2358 <Configuration name="Debug">
2264 <Options> 2359 <Options>
2265 <OutputPath>../../../../../../bin/</OutputPath> 2360 <OutputPath>../../../../../../bin/</OutputPath>
@@ -2273,6 +2368,7 @@
2273 2368
2274 <ReferencePath>../../../../../../bin/</ReferencePath> 2369 <ReferencePath>../../../../../../bin/</ReferencePath>
2275 <Reference name="System"/> 2370 <Reference name="System"/>
2371 <Reference name="System.Core"/>
2276 <Reference name="System.Data"/> 2372 <Reference name="System.Data"/>
2277 <Reference name="System.Web"/> 2373 <Reference name="System.Web"/>
2278 <Reference name="System.Xml"/> 2374 <Reference name="System.Xml"/>
@@ -2297,7 +2393,7 @@
2297 </Files> 2393 </Files>
2298 </Project> 2394 </Project>
2299 2395
2300 <Project frameworkVersion="v3_5" name="OpenSim.Region.ScriptEngine.Shared.CodeTools" path="OpenSim/Region/ScriptEngine/Shared/CodeTools" type="Library"> 2396 <Project frameworkVersion="v4_0" name="OpenSim.Region.ScriptEngine.Shared.CodeTools" path="OpenSim/Region/ScriptEngine/Shared/CodeTools" type="Library">
2301 <Configuration name="Debug"> 2397 <Configuration name="Debug">
2302 <Options> 2398 <Options>
2303 <OutputPath>../../../../../bin/</OutputPath> 2399 <OutputPath>../../../../../bin/</OutputPath>
@@ -2328,7 +2424,7 @@
2328 </Files> 2424 </Files>
2329 </Project> 2425 </Project>
2330 2426
2331 <Project frameworkVersion="v3_5" name="OpenSim.Region.ScriptEngine.Shared.Instance" path="OpenSim/Region/ScriptEngine/Shared/Instance" type="Library"> 2427 <Project frameworkVersion="v4_0" name="OpenSim.Region.ScriptEngine.Shared.Instance" path="OpenSim/Region/ScriptEngine/Shared/Instance" type="Library">
2332 <Configuration name="Debug"> 2428 <Configuration name="Debug">
2333 <Options> 2429 <Options>
2334 <OutputPath>../../../../../bin/</OutputPath> 2430 <OutputPath>../../../../../bin/</OutputPath>
@@ -2366,7 +2462,7 @@
2366 </Files> 2462 </Files>
2367 </Project> 2463 </Project>
2368 2464
2369 <Project frameworkVersion="v3_5" name="OpenSim.Region.ScriptEngine.XEngine" path="OpenSim/Region/ScriptEngine/XEngine" type="Library"> 2465 <Project frameworkVersion="v4_0" name="OpenSim.Region.ScriptEngine.XEngine" path="OpenSim/Region/ScriptEngine/XEngine" type="Library">
2370 <Configuration name="Debug"> 2466 <Configuration name="Debug">
2371 <Options> 2467 <Options>
2372 <OutputPath>../../../../bin/</OutputPath> 2468 <OutputPath>../../../../bin/</OutputPath>
@@ -2409,7 +2505,7 @@
2409 </Project> 2505 </Project>
2410 2506
2411 2507
2412 <Project frameworkVersion="v3_5" name="OpenSim.Region.UserStatistics" path="OpenSim/Region/UserStatistics" type="Library"> 2508 <Project frameworkVersion="v4_0" name="OpenSim.Region.UserStatistics" path="OpenSim/Region/UserStatistics" type="Library">
2413 <Configuration name="Debug"> 2509 <Configuration name="Debug">
2414 <Options> 2510 <Options>
2415 <OutputPath>../../../bin/</OutputPath> 2511 <OutputPath>../../../bin/</OutputPath>
@@ -2460,7 +2556,7 @@
2460 2556
2461 <!-- Tools --> 2557 <!-- Tools -->
2462 2558
2463 <Project frameworkVersion="v3_5" name="pCampBot" path="OpenSim/Tools/pCampBot" type="Exe"> 2559 <Project frameworkVersion="v4_0" name="pCampBot" path="OpenSim/Tools/pCampBot" type="Exe">
2464 <Configuration name="Debug"> 2560 <Configuration name="Debug">
2465 <Options> 2561 <Options>
2466 <OutputPath>../../../bin/</OutputPath> 2562 <OutputPath>../../../bin/</OutputPath>
@@ -2487,7 +2583,7 @@
2487 </Files> 2583 </Files>
2488 </Project> 2584 </Project>
2489 2585
2490 <Project frameworkVersion="v3_5" name="OpenSim.Tools.lslc" path="OpenSim/Tools/Compiler" type="Exe"> 2586 <Project frameworkVersion="v4_0" name="OpenSim.Tools.lslc" path="OpenSim/Tools/Compiler" type="Exe">
2491 <Configuration name="Debug"> 2587 <Configuration name="Debug">
2492 <Options> 2588 <Options>
2493 <OutputPath>../../../bin/</OutputPath> 2589 <OutputPath>../../../bin/</OutputPath>
@@ -2514,7 +2610,7 @@
2514 </Files> 2610 </Files>
2515 </Project> 2611 </Project>
2516 2612
2517 <Project frameworkVersion="v3_5" name="OpenSim.Tools.Configger" path="OpenSim/Tools/Configger" type="Exe"> 2613 <Project frameworkVersion="v4_0" name="OpenSim.Tools.Configger" path="OpenSim/Tools/Configger" type="Exe">
2518 <Configuration name="Debug"> 2614 <Configuration name="Debug">
2519 <Options> 2615 <Options>
2520 <OutputPath>../../../bin/</OutputPath> 2616 <OutputPath>../../../bin/</OutputPath>
@@ -2538,7 +2634,7 @@
2538 </Project> 2634 </Project>
2539 2635
2540 <!-- Test Clients --> 2636 <!-- Test Clients -->
2541 <Project frameworkVersion="v3_5" name="OpenSim.Tests.Clients.GridClient" path="OpenSim/Tests/Clients/Grid" type="Exe"> 2637 <Project frameworkVersion="v4_0" name="OpenSim.Tests.Clients.GridClient" path="OpenSim/Tests/Clients/Grid" type="Exe">
2542 <Configuration name="Debug"> 2638 <Configuration name="Debug">
2543 <Options> 2639 <Options>
2544 <OutputPath>../../../../bin/</OutputPath> 2640 <OutputPath>../../../../bin/</OutputPath>
@@ -2565,7 +2661,7 @@
2565 </Files> 2661 </Files>
2566 </Project> 2662 </Project>
2567 2663
2568 <Project frameworkVersion="v3_5" name="OpenSim.Tests.Clients.PresenceClient" path="OpenSim/Tests/Clients/Presence" type="Exe"> 2664 <Project frameworkVersion="v4_0" name="OpenSim.Tests.Clients.PresenceClient" path="OpenSim/Tests/Clients/Presence" type="Exe">
2569 <Configuration name="Debug"> 2665 <Configuration name="Debug">
2570 <Options> 2666 <Options>
2571 <OutputPath>../../../../bin/</OutputPath> 2667 <OutputPath>../../../../bin/</OutputPath>
@@ -2592,7 +2688,7 @@
2592 </Files> 2688 </Files>
2593 </Project> 2689 </Project>
2594 2690
2595 <Project frameworkVersion="v3_5" name="OpenSim.Tests.Clients.UserAccountClient" path="OpenSim/Tests/Clients/UserAccounts" type="Exe"> 2691 <Project frameworkVersion="v4_0" name="OpenSim.Tests.Clients.UserAccountClient" path="OpenSim/Tests/Clients/UserAccounts" type="Exe">
2596 <Configuration name="Debug"> 2692 <Configuration name="Debug">
2597 <Options> 2693 <Options>
2598 <OutputPath>../../../../bin/</OutputPath> 2694 <OutputPath>../../../../bin/</OutputPath>
@@ -2619,7 +2715,7 @@
2619 </Files> 2715 </Files>
2620 </Project> 2716 </Project>
2621 2717
2622 <Project frameworkVersion="v3_5" name="OpenSim.Tests.Clients.InstantantMessage" path="OpenSim/Tests/Clients/InstantMessage" type="Exe"> 2718 <Project frameworkVersion="v4_0" name="OpenSim.Tests.Clients.InstantantMessage" path="OpenSim/Tests/Clients/InstantMessage" type="Exe">
2623 <Configuration name="Debug"> 2719 <Configuration name="Debug">
2624 <Options> 2720 <Options>
2625 <OutputPath>../../../../bin/</OutputPath> 2721 <OutputPath>../../../../bin/</OutputPath>
@@ -2647,7 +2743,7 @@
2647 </Project> 2743 </Project>
2648 2744
2649 <!-- Test assemblies --> 2745 <!-- Test assemblies -->
2650 <Project frameworkVersion="v3_5" name="OpenSim.Tests.Common" path="OpenSim/Tests/Common" type="Library"> 2746 <Project frameworkVersion="v4_0" name="OpenSim.Tests.Common" path="OpenSim/Tests/Common" type="Library">
2651 <Configuration name="Debug"> 2747 <Configuration name="Debug">
2652 <Options> 2748 <Options>
2653 <OutputPath>../../../bin/</OutputPath> 2749 <OutputPath>../../../bin/</OutputPath>
@@ -2691,7 +2787,7 @@
2691 </Files> 2787 </Files>
2692 </Project> 2788 </Project>
2693 2789
2694 <Project frameworkVersion="v3_5" name="OpenSim.Tests" path="OpenSim/Tests" type="Library"> 2790 <Project frameworkVersion="v4_0" name="OpenSim.Tests" path="OpenSim/Tests" type="Library">
2695 <Configuration name="Debug"> 2791 <Configuration name="Debug">
2696 <Options> 2792 <Options>
2697 <OutputPath>../../bin/</OutputPath> 2793 <OutputPath>../../bin/</OutputPath>
@@ -2714,7 +2810,7 @@
2714 </Project> 2810 </Project>
2715 2811
2716 2812
2717 <Project frameworkVersion="v3_5" name="OpenSim.Capabilities.Handlers.Tests" path="OpenSim/Capabilities/Handlers" type="Library"> 2813 <Project frameworkVersion="v4_0" name="OpenSim.Capabilities.Handlers.Tests" path="OpenSim/Capabilities/Handlers" type="Library">
2718 <Configuration name="Debug"> 2814 <Configuration name="Debug">
2719 <Options> 2815 <Options>
2720 <OutputPath>../../../bin/</OutputPath> 2816 <OutputPath>../../../bin/</OutputPath>
@@ -2764,7 +2860,7 @@
2764 </Project> 2860 </Project>
2765 2861
2766 2862
2767 <Project frameworkVersion="v3_5" name="OpenSim.Data.Tests" path="OpenSim/Data/Tests" type="Library"> 2863 <Project frameworkVersion="v4_0" name="OpenSim.Data.Tests" path="OpenSim/Data/Tests" type="Library">
2768 <Configuration name="Debug"> 2864 <Configuration name="Debug">
2769 <Options> 2865 <Options>
2770 <OutputPath>../../../bin/</OutputPath> 2866 <OutputPath>../../../bin/</OutputPath>
@@ -2806,7 +2902,7 @@
2806 </Files> 2902 </Files>
2807 </Project> 2903 </Project>
2808 2904
2809 <Project frameworkVersion="v3_5" name="OpenSim.Framework.Tests" path="OpenSim/Framework/Tests" type="Library"> 2905 <Project frameworkVersion="v4_0" name="OpenSim.Framework.Tests" path="OpenSim/Framework/Tests" type="Library">
2810 <Configuration name="Debug"> 2906 <Configuration name="Debug">
2811 <Options> 2907 <Options>
2812 <OutputPath>../../../bin/</OutputPath> 2908 <OutputPath>../../../bin/</OutputPath>
@@ -2837,7 +2933,7 @@
2837 </Files> 2933 </Files>
2838 </Project> 2934 </Project>
2839 2935
2840 <Project frameworkVersion="v3_5" name="OpenSim.Framework.Serialization.Tests" path="OpenSim/Framework/Serialization/Tests" type="Library"> 2936 <Project frameworkVersion="v4_0" name="OpenSim.Framework.Serialization.Tests" path="OpenSim/Framework/Serialization/Tests" type="Library">
2841 <Configuration name="Debug"> 2937 <Configuration name="Debug">
2842 <Options> 2938 <Options>
2843 <OutputPath>../../../../bin/</OutputPath> 2939 <OutputPath>../../../../bin/</OutputPath>
@@ -2868,7 +2964,7 @@
2868 </Files> 2964 </Files>
2869 </Project> 2965 </Project>
2870 2966
2871 <Project frameworkVersion="v3_5" name="OpenSim.Framework.Servers.Tests" path="OpenSim/Framework/Servers/Tests" type="Library"> 2967 <Project frameworkVersion="v4_0" name="OpenSim.Framework.Servers.Tests" path="OpenSim/Framework/Servers/Tests" type="Library">
2872 <Configuration name="Debug"> 2968 <Configuration name="Debug">
2873 <Options> 2969 <Options>
2874 <OutputPath>../../../../bin/</OutputPath> 2970 <OutputPath>../../../../bin/</OutputPath>
@@ -2898,7 +2994,7 @@
2898 </Files> 2994 </Files>
2899 </Project> 2995 </Project>
2900 2996
2901 <Project frameworkVersion="v3_5" name="OpenSim.Region.CoreModules.Tests" path="OpenSim/Region/CoreModules" type="Library"> 2997 <Project frameworkVersion="v4_0" name="OpenSim.Region.CoreModules.Tests" path="OpenSim/Region/CoreModules" type="Library">
2902 <Configuration name="Debug"> 2998 <Configuration name="Debug">
2903 <Options> 2999 <Options>
2904 <OutputPath>../../../bin/</OutputPath> 3000 <OutputPath>../../../bin/</OutputPath>
@@ -2969,7 +3065,7 @@
2969 </Files> 3065 </Files>
2970 </Project> 3066 </Project>
2971 3067
2972 <Project frameworkVersion="v3_5" name="OpenSim.Region.OptionalModules.Tests" path="OpenSim/Region/OptionalModules" type="Library"> 3068 <Project frameworkVersion="v4_0" name="OpenSim.Region.OptionalModules.Tests" path="OpenSim/Region/OptionalModules" type="Library">
2973 <Configuration name="Debug"> 3069 <Configuration name="Debug">
2974 <Options> 3070 <Options>
2975 <OutputPath>../../../bin/</OutputPath> 3071 <OutputPath>../../../bin/</OutputPath>
@@ -3028,7 +3124,7 @@
3028 </Files> 3124 </Files>
3029 </Project> 3125 </Project>
3030 3126
3031 <Project frameworkVersion="v3_5" name="OpenSim.Region.Framework.Tests" path="OpenSim/Region/Framework" type="Library"> 3127 <Project frameworkVersion="v4_0" name="OpenSim.Region.Framework.Tests" path="OpenSim/Region/Framework" type="Library">
3032 <Configuration name="Debug"> 3128 <Configuration name="Debug">
3033 <Options> 3129 <Options>
3034 <OutputPath>../../../bin/</OutputPath> 3130 <OutputPath>../../../bin/</OutputPath>
@@ -3086,7 +3182,7 @@
3086 </Files> 3182 </Files>
3087 </Project> 3183 </Project>
3088 3184
3089 <Project frameworkVersion="v3_5" name="OpenSim.Region.ClientStack.LindenCaps.Tests" path="OpenSim/Region/ClientStack/Linden/Caps" type="Library"> 3185 <Project frameworkVersion="v4_0" name="OpenSim.Region.ClientStack.LindenCaps.Tests" path="OpenSim/Region/ClientStack/Linden/Caps" type="Library">
3090 <Configuration name="Debug"> 3186 <Configuration name="Debug">
3091 <Options> 3187 <Options>
3092 <OutputPath>../../../../../bin/</OutputPath> 3188 <OutputPath>../../../../../bin/</OutputPath>
@@ -3123,7 +3219,7 @@
3123 </Files> 3219 </Files>
3124 </Project> 3220 </Project>
3125 3221
3126 <Project frameworkVersion="v3_5" name="OpenSim.Region.ClientStack.LindenUDP.Tests" path="OpenSim/Region/ClientStack/Linden/UDP/Tests" type="Library"> 3222 <Project frameworkVersion="v4_0" name="OpenSim.Region.ClientStack.LindenUDP.Tests" path="OpenSim/Region/ClientStack/Linden/UDP/Tests" type="Library">
3127 <Configuration name="Debug"> 3223 <Configuration name="Debug">
3128 <Options> 3224 <Options>
3129 <OutputPath>../../../../../../bin/</OutputPath> 3225 <OutputPath>../../../../../../bin/</OutputPath>
@@ -3159,7 +3255,7 @@
3159 </Files> 3255 </Files>
3160 </Project> 3256 </Project>
3161 3257
3162 <Project frameworkVersion="v3_5" name="OpenSim.Region.ScriptEngine.Tests" path="OpenSim/Region/ScriptEngine" type="Library"> 3258 <Project frameworkVersion="v4_0" name="OpenSim.Region.ScriptEngine.Tests" path="OpenSim/Region/ScriptEngine" type="Library">
3163 <Configuration name="Debug"> 3259 <Configuration name="Debug">
3164 <Options> 3260 <Options>
3165 <OutputPath>../../../bin/</OutputPath> 3261 <OutputPath>../../../bin/</OutputPath>
@@ -3213,7 +3309,7 @@
3213 TODO: this is kind of lame, we basically build a duplicate 3309 TODO: this is kind of lame, we basically build a duplicate
3214 assembly but with tests added in, just because we can't resolve cross-bin-dir-refs. 3310 assembly but with tests added in, just because we can't resolve cross-bin-dir-refs.
3215 --> 3311 -->
3216 <Project frameworkVersion="v3_5" name="OpenSim.Region.Physics.OdePlugin.Tests" path="OpenSim/Region/Physics/OdePlugin/Tests" type="Library"> 3312 <Project frameworkVersion="v4_0" name="OpenSim.Region.Physics.OdePlugin.Tests" path="OpenSim/Region/Physics/OdePlugin/Tests" type="Library">
3217 <Configuration name="Debug"> 3313 <Configuration name="Debug">
3218 <Options> 3314 <Options>
3219 <OutputPath>../../../../../bin/</OutputPath> 3315 <OutputPath>../../../../../bin/</OutputPath>
@@ -3243,7 +3339,7 @@
3243 </Files> 3339 </Files>
3244 </Project> 3340 </Project>
3245 3341
3246 <Project frameworkVersion="v3_5" name="OpenSim.Tests.Torture" path="OpenSim/Tests/Torture" type="Library"> 3342 <Project frameworkVersion="v4_0" name="OpenSim.Tests.Torture" path="OpenSim/Tests/Torture" type="Library">
3247 <Configuration name="Debug"> 3343 <Configuration name="Debug">
3248 <Options> 3344 <Options>
3249 <OutputPath>../../../bin/</OutputPath> 3345 <OutputPath>../../../bin/</OutputPath>
diff --git a/runprebuild.bat b/runprebuild.bat
index 8927e9a..9265391 100755
--- a/runprebuild.bat
+++ b/runprebuild.bat
@@ -1,4 +1,4 @@
1bin\Prebuild.exe /target nant 1bin\Prebuild.exe /target nant
2bin\Prebuild.exe /target vs2008 2bin\Prebuild.exe /target vs2008
3echo C:\WINDOWS\Microsoft.NET\Framework\v3.5\msbuild opensim.sln > compile.bat 3echo C:\WINDOWS\Microsoft.NET\Framework\v3.5\msbuild OpenSim.sln > compile.bat
4 4