diff options
author | Tedd Hansen | 2008-01-12 10:25:08 +0000 |
---|---|---|
committer | Tedd Hansen | 2008-01-12 10:25:08 +0000 |
commit | a993d0d3351f15510e404cc09951723cf5c435fb (patch) | |
tree | b4e186b85fc5b1907dffb1347d8b855a4ea7a0ad /OpenSim/Region/ScriptEngine/DotNetEngine/LSLLongCmdHandler.cs | |
parent | ScriptServer protocol now correctly casts datatypes -- ready for implementing (diff) | |
download | opensim-SC-a993d0d3351f15510e404cc09951723cf5c435fb.zip opensim-SC-a993d0d3351f15510e404cc09951723cf5c435fb.tar.gz opensim-SC-a993d0d3351f15510e404cc09951723cf5c435fb.tar.bz2 opensim-SC-a993d0d3351f15510e404cc09951723cf5c435fb.tar.xz |
ScriptServer communication is ok. Script is creatd on onrez. But since it can not access Scene it sort of crashes right away ;)
Added some sample placeholders for implementing rest of LSL events.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/DotNetEngine/LSLLongCmdHandler.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/DotNetEngine/LSLLongCmdHandler.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/DotNetEngine/LSLLongCmdHandler.cs b/OpenSim/Region/ScriptEngine/DotNetEngine/LSLLongCmdHandler.cs index e403385..1e4dc99 100644 --- a/OpenSim/Region/ScriptEngine/DotNetEngine/LSLLongCmdHandler.cs +++ b/OpenSim/Region/ScriptEngine/DotNetEngine/LSLLongCmdHandler.cs | |||
@@ -202,6 +202,9 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine | |||
202 | 202 | ||
203 | public void CheckHttpRequests() | 203 | public void CheckHttpRequests() |
204 | { | 204 | { |
205 | if (m_ScriptEngine.World == null) | ||
206 | return; | ||
207 | |||
205 | IHttpRequests iHttpReq = | 208 | IHttpRequests iHttpReq = |
206 | m_ScriptEngine.World.RequestModuleInterface<IHttpRequests>(); | 209 | m_ScriptEngine.World.RequestModuleInterface<IHttpRequests>(); |
207 | 210 | ||
@@ -241,6 +244,9 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine | |||
241 | 244 | ||
242 | public void CheckXMLRPCRequests() | 245 | public void CheckXMLRPCRequests() |
243 | { | 246 | { |
247 | if (m_ScriptEngine.World == null) | ||
248 | return; | ||
249 | |||
244 | IXMLRPC xmlrpc = m_ScriptEngine.World.RequestModuleInterface<IXMLRPC>(); | 250 | IXMLRPC xmlrpc = m_ScriptEngine.World.RequestModuleInterface<IXMLRPC>(); |
245 | 251 | ||
246 | if (xmlrpc != null) | 252 | if (xmlrpc != null) |
@@ -266,6 +272,8 @@ namespace OpenSim.Region.ScriptEngine.DotNetEngine | |||
266 | 272 | ||
267 | public void CheckListeners() | 273 | public void CheckListeners() |
268 | { | 274 | { |
275 | if (m_ScriptEngine.World == null) | ||
276 | return; | ||
269 | IWorldComm comms = m_ScriptEngine.World.RequestModuleInterface<IWorldComm>(); | 277 | IWorldComm comms = m_ScriptEngine.World.RequestModuleInterface<IWorldComm>(); |
270 | 278 | ||
271 | while (comms.HasMessages()) | 279 | while (comms.HasMessages()) |