diff options
author | UbitUmarov | 2018-02-07 19:52:18 +0000 |
---|---|---|
committer | UbitUmarov | 2018-02-07 19:52:18 +0000 |
commit | 01ceb4d17e80b794432062ff3bf3b85f884c9548 (patch) | |
tree | b74cb4ddb1dea21276991ae379e084708aa3fce2 /OpenSim/Region/ScriptEngine/XMREngine/XMRInstBackend.cs | |
parent | add a warning about XMR only suoprting one region per instance at this point,... (diff) | |
download | opensim-SC-01ceb4d17e80b794432062ff3bf3b85f884c9548.zip opensim-SC-01ceb4d17e80b794432062ff3bf3b85f884c9548.tar.gz opensim-SC-01ceb4d17e80b794432062ff3bf3b85f884c9548.tar.bz2 opensim-SC-01ceb4d17e80b794432062ff3bf3b85f884c9548.tar.xz |
try to fix xmr on multiregions per instance. Ugly spargetti ...; remove fixes for 2 llparcel functions that should not be needed; remove xmr own API, it has no business having one.
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ScriptEngine/XMREngine/XMRInstBackend.cs | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/OpenSim/Region/ScriptEngine/XMREngine/XMRInstBackend.cs b/OpenSim/Region/ScriptEngine/XMREngine/XMRInstBackend.cs index edbd5ce..a24036a 100644 --- a/OpenSim/Region/ScriptEngine/XMREngine/XMRInstBackend.cs +++ b/OpenSim/Region/ScriptEngine/XMREngine/XMRInstBackend.cs | |||
@@ -32,11 +32,6 @@ using OpenMetaverse; | |||
32 | using OpenSim.Framework; | 32 | using OpenSim.Framework; |
33 | using OpenSim.Region.ScriptEngine.Shared; | 33 | using OpenSim.Region.ScriptEngine.Shared; |
34 | using OpenSim.Region.ScriptEngine.Shared.Api; | 34 | using OpenSim.Region.ScriptEngine.Shared.Api; |
35 | using OpenSim.Region.ScriptEngine.Shared.ScriptBase; | ||
36 | using OpenSim.Region.ScriptEngine.XMREngine; | ||
37 | using OpenSim.Region.Framework.Scenes; | ||
38 | using OpenSim.Region.Framework.Scenes.Scripting; | ||
39 | using OpenSim.Region.Framework.Interfaces; | ||
40 | using log4net; | 35 | using log4net; |
41 | 36 | ||
42 | using LSL_Float = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLFloat; | 37 | using LSL_Float = OpenSim.Region.ScriptEngine.Shared.LSL_Types.LSLFloat; |
@@ -88,6 +83,7 @@ namespace OpenSim.Region.ScriptEngine.XMREngine | |||
88 | * -2: no av granted perms | 83 | * -2: no av granted perms |
89 | * -3: av not in region | 84 | * -3: av not in region |
90 | */ | 85 | */ |
86 | /* engines should not have own API | ||
91 | public int xmrSeatAvatar (bool owner) | 87 | public int xmrSeatAvatar (bool owner) |
92 | { | 88 | { |
93 | // Get avatar to be seated and make sure they have given us ANIMATION permission | 89 | // Get avatar to be seated and make sure they have given us ANIMATION permission |
@@ -118,7 +114,7 @@ namespace OpenSim.Region.ScriptEngine.XMREngine | |||
118 | presence.HandleAgentRequestSit (null, UUID.Zero, m_host.UUID, OpenMetaverse.Vector3.Zero); | 114 | presence.HandleAgentRequestSit (null, UUID.Zero, m_host.UUID, OpenMetaverse.Vector3.Zero); |
119 | return 0; | 115 | return 0; |
120 | } | 116 | } |
121 | 117 | */ | |
122 | /** | 118 | /** |
123 | * @brief llTeleportAgent() is broken in that if you pass it a landmark, | 119 | * @brief llTeleportAgent() is broken in that if you pass it a landmark, |
124 | * it still subjects the position to spawn points, as it always | 120 | * it still subjects the position to spawn points, as it always |
@@ -129,6 +125,7 @@ namespace OpenSim.Region.ScriptEngine.XMREngine | |||
129 | * @param landmark = inventory name or UUID of a landmark object | 125 | * @param landmark = inventory name or UUID of a landmark object |
130 | * @param lookat = looking direction after teleport | 126 | * @param lookat = looking direction after teleport |
131 | */ | 127 | */ |
128 | /* engines should not have own API | ||
132 | public void xmrTeleportAgent2Landmark (string agent, string landmark, LSL_Vector lookat) | 129 | public void xmrTeleportAgent2Landmark (string agent, string landmark, LSL_Vector lookat) |
133 | { | 130 | { |
134 | // find out about agent to be teleported | 131 | // find out about agent to be teleported |
@@ -172,13 +169,14 @@ namespace OpenSim.Region.ScriptEngine.XMREngine | |||
172 | lookat, | 169 | lookat, |
173 | (uint)TeleportFlags.ViaLandmark); | 170 | (uint)TeleportFlags.ViaLandmark); |
174 | } | 171 | } |
175 | 172 | */ | |
176 | /** | 173 | /** |
177 | * @brief Allow any member of group given by config SetParcelMusicURLGroup to set music URL. | 174 | * @brief Allow any member of group given by config SetParcelMusicURLGroup to set music URL. |
178 | * Code modelled after llSetParcelMusicURL(). | 175 | * Code modelled after llSetParcelMusicURL(). |
179 | * @param newurl = new URL to set (or "" to leave it alone) | 176 | * @param newurl = new URL to set (or "" to leave it alone) |
180 | * @returns previous URL string | 177 | * @returns previous URL string |
181 | */ | 178 | */ |
179 | /* engines should not have own API | ||
182 | public string xmrSetParcelMusicURLGroup (string newurl) | 180 | public string xmrSetParcelMusicURLGroup (string newurl) |
183 | { | 181 | { |
184 | string groupname = m_ScriptEngine.Config.GetString ("SetParcelMusicURLGroup", ""); | 182 | string groupname = m_ScriptEngine.Config.GetString ("SetParcelMusicURLGroup", ""); |
@@ -200,6 +198,7 @@ namespace OpenSim.Region.ScriptEngine.XMREngine | |||
200 | if ((newurl != null) && (newurl != "")) land.SetMusicUrl (newurl); | 198 | if ((newurl != null) && (newurl != "")) land.SetMusicUrl (newurl); |
201 | return oldurl; | 199 | return oldurl; |
202 | } | 200 | } |
201 | */ | ||
203 | } | 202 | } |
204 | 203 | ||
205 | public partial class XMRInstance | 204 | public partial class XMRInstance |