aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/MOD_Api.cs (follow)
Commit message (Collapse)AuthorAgeFilesLines
* bad merge?UbitUmarov2015-09-011-1/+5
|\
| * Merge branch 'master' into careminsterMelanie2013-08-071-2/+2
| |\ | | | | | | | | | | | | | | | | | | Conflicts: OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs OpenSim/Region/Framework/Scenes/Scene.Inventory.cs OpenSim/Region/Framework/Scenes/Scene.cs
| * \ Merge branch 'master' into careminsterMelanie2013-03-081-0/+4
| |\ \ | | | | | | | | | | | | | | | | Conflicts: OpenSim/Region/CoreModules/Framework/EntityTransfer/EntityTransferModule.cs
| * \ \ Merge branch 'avination' into careminsterMelanie2013-03-061-1/+5
| |\ \ \ | | | | | | | | | | | | | | | | | | | | Conflicts: OpenSim/Region/CoreModules/Avatar/Attachments/AttachmentsModule.cs
| | * | | Add support for void return typeroot2013-03-031-1/+5
| | | | |
* | | | | Convert the lsl list type into a struct. EXPERIMENTAL! This may affectMelanie Thielker2015-08-191-1/+1
| | | | | | | | | | | | | | | | | | | | the llSetPrimitiveParams family of functions adversely. Please test!
* | | | | Change the IScriptApi back to it's original form, removing XEngineMelanie Thielker2015-08-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | specific additions that should not have been there in the first place. Sleeping and time measurement are now completely internal to XEngine
* | | | | Revert "When scripts are sleeping, don't count that as execution time"Melanie Thielker2015-08-171-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The approach is good but the way it is written breaks the architecture. Rewrite follows. This reverts commit a568f06b7faea807149205d0e47454e4883e4836.
* | | | | When scripts are sleeping, don't count that as execution timeOren Hurvitz2015-08-111-1/+3
| |_|_|/ |/| | | | | | | | | | | Sleeping doesn't use the CPU.
* | | | Fix problem with modInvoke defined integer constants being build intoRobert Adams2013-08-021-2/+2
| |_|/ |/| | | | | | | | | | | | | | scripts as boxed integers rather than proper reference to a new LSLInteger. This fixes an exception when using a registered integer constant in a script.
* | | Convert doubles passed back through the MOD interface into LSL_FloatsMic Bowman2013-03-051-0/+4
|/ /
* | Removed duplicate 'using' statement.Diva Canto2013-02-271-1/+0
| |
* | Fix bug where viewers would not see the "Module command functions not ↵Justin Clark-Casey (justincc)2013-02-051-2/+62
| | | | | | | | | | | | enabled" error if these were disabled and a viewer attempted to call one. This was not working because the shouter was wrongly signalled as an agent rather than a prim
* | Pass narrower WaitHandle rather than EventWaitHandle as co-op termination ↵Justin Clark-Casey (justincc)2013-01-231-1/+1
| | | | | | | | | | | | wait handle to script APIs. APIs don't need to reference any methods on EventWaitHandle
* | Implement co-operative script termination if termination comes during a ↵Justin Clark-Casey (justincc)2013-01-161-4/+6
| | | | | | | | | | | | | | | | | | | | script wait event (llSleep(), etc.) This makes use of EventWaitHandles since various web references indicate that Thread.Interrupt() can also cause runtime instability. If co-op termination is enabled, then termination sets the wait handle instead of waiting for a timeout before possibly aborting the thread. This allows the script to cleanly terminate if it's in a llSleep/LL function delay or the next time it enters such a wait without any timeout period. Co-op termination is not yet testable since checking for termination request within loops that never trigger a wait is not yet implemented. This commit, unlike 1b5c41c, passes the wait handle as an extra parameter through IScript.Initialize() instead of passing IScriptInstance itself.
* | Instead of passing separate engine, part and item components to script APIs, ↵Justin Clark-Casey (justincc)2013-01-151-4/+4
|/ | | | | | | | pass down IScriptInstance instead. This is to allow the future co-operative script thread terminate feature to detect and act upon termination requests. This splits the assembly and state loading out from the ScriptInstance() constructor to a separate Load() method in order to facilititate continued script logic regression testing.
* minor: Add comment as to why we are pulcking plain old ints out of the ↵Justin Clark-Casey (justincc)2012-10-261-0/+2
| | | | LSL_List when converting values from LSL for modInvoke()
* Removing the apparently superfluous explicit namespace reference so that the ↵SignpostMarv2012-10-261-8/+2
| | | | if-else-if-else block in ConvertFromLSL can have a consistent appearance
* system ints can end up in LSL lists, which can cause counter-intuitive ↵SignpostMarv2012-10-261-0/+2
| | | | unknown list element type errors in ConvertFromLSL (via modInvoke)
* When scripts generate expected exceptions (e.g. due to checked bad ↵Justin Clark-Casey (justincc)2012-10-251-5/+5
| | | | | | | parameter) throw ScriptException instead of just a plain old exception. This is to make it easier to distinguish these exceptions from unexpected OpenSimulator problems internally and in regression tests. No functional changes.
* passing in the function name to MOD_Api.ConvertFromLSL for more ↵SignpostMarv2012-09-101-4/+4
| | | | user-friendly error messages
* Enables cast from int to float for MOD* functions;Mic Bowman2012-09-051-1/+1
| | | | Thanks SignpostMarv!
* implicit operators mean one does not need to instantiate new objects manuallySignpostMarv2012-08-181-4/+3
|
* refactoring for Vector3 operator & constructor tweaksSignpostMarv2012-08-181-4/+3
|
* Enables support for UUIDs to be returned in lists fromMic Bowman2012-07-201-3/+13
| | | | | | modInvoke commands. Thanks SignpostMarv!!!
* refactor: Eliminate local id parameter from api initialize.Justin Clark-Casey (justincc)2012-05-081-3/+1
| | | | This is always available from m_host.LocalId
* Instead of constantly looking up unchanging self item in script code, pass ↵Justin Clark-Casey (justincc)2012-05-081-5/+5
| | | | in self item on initialization.
* Add a hust UUID to the script invocationsMelanie2012-03-261-1/+10
|
* Add support for key, vector, rotation and list types for bothMic Bowman2012-03-241-57/+188
| | | | | | arguments and return values to the modInvoke family of functions. See http://opensimulator.org/wiki/OSSL_Script_Library/ModInvoke
* Adds a new script command 'modInvoke' to invoke registered functionsMic Bowman2012-03-151-0/+109
| | | | | | | | | from region modules. The LSL translator is extended to generate the modInvoke format of commands for directly inlined function calls. A region module can register a function Test() with the name "Test". LSL code can call that function as "Test()". The compiler will translate that invocation into modInvoke("Test", ...)
* Add IScriptModuleComms interface and region module to handle dispatch ofMelanie2009-11-101-3/+16
| | | | | | | | script messages to region modules and sending back replies. Hook IScriptModuleComms.OnScriptCommand to see commands and use DispatchReply to reply to the script. It is recommended to pass the "id" parameter from the event as the "k" parameter of the reply. The script will receive the reply as a link message from link -1.
* Add modSendCommand function (note, this is a new API module, using the APIMelanie2009-11-101-0/+121
extension mechanism, it's not a osFunction!